@sdkgen/playground 0.0.0-dev.20220208110641 → 0.0.0-dev.20220209191102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ (self.webpackChunksdkgen_playground=self.webpackChunksdkgen_playground||[]).push([[179],{4602:function(Ve,g){"use strict";var T,l=this&&this.__extends||(T=function(S,d){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,M){P.__proto__=M}||function(P,M){for(var b in M)Object.prototype.hasOwnProperty.call(M,b)&&(P[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 P(){this.constructor=S}T(S,d),S.prototype=null===d?Object.create(d):(P.prototype=d.prototype,new P)}),i=this&&this.__spreadArray||function(T,S,d){if(d||2===arguments.length)for(var b,P=0,M=S.length;P<M;P++)(b||!(P in S))&&(b||(b=Array.prototype.slice.call(S,0,P)),b[P]=S[P]);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,P,M){var k;try{k=JSON.stringify(M)}catch($){k=String(M)}return T.call(this,"Invalid type at '".concat(d,"', expected ").concat(P,", 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 P=!0;try{atob(d)}catch(b){P=!1}if("string"!=typeof d||!P)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,P){if("string"==typeof d&&!d.endsWith("?")&&"void"!==d&&null==P)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===P)return P;if(Array.isArray(P)&&2===P.length&&k===P[0])return P[0];if(Array.isArray(k)&&2===k.length){if(k[0]===P)return[P,_(T,"".concat(S,".").concat(k[0]),k[1],{})];if(Array.isArray(P)&&2===P.length&&k[0]===P[0])return[P[0],_(T,"".concat(S,".").concat(k[0]),k[1],P[1])]}}throw new c(S,d,P)}if("object"==typeof d){if("object"!=typeof P)throw new c(S,d,P);for(var $={},pe=0,U=Object.keys(d);pe<U.length;pe++){var he=U[pe];$[he]=_(T,"".concat(S,".").concat(he),d[he],P[he])}return $}if(d.endsWith("?"))return null==P?null:_(T,S,d.slice(0,d.length-1),P);if(d.endsWith("[]")){if(!Array.isArray(P))throw new c(S,d,P);return P.map(function(ge,ye){return _(T,"".concat(S,"[").concat(ye,"]"),d.slice(0,d.length-2),ge)})}if(m.indexOf(d)>=0)return s(S,d,P);if("bytes"===d){if(!(P instanceof ArrayBuffer))throw new c(S,d,P);return btoa(String.fromCharCode.apply(String,new Uint8Array(P)))}if("bigint"===d){if("bigint"!=typeof P)throw new c(S,d,P);return P.toString()}if("cpf"===d){if("string"!=typeof P)throw new c(S,d,P);return P}if("cnpj"===d){if("string"!=typeof P)throw new c(S,d,P);return P}if("date"===d){if((!(P instanceof Date)||isNaN(P.getTime()))&&("string"!=typeof P||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(P)))throw new c(S,d,P);return"string"==typeof P?new Date(P).toISOString().split("T")[0]:P.toISOString().split("T")[0]}if("datetime"===d){if((!(P instanceof Date)||isNaN(P.getTime()))&&("string"!=typeof P||!/^[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(P)))throw new c(S,d,P);return("string"==typeof P?new Date(P):P).toISOString().replace("Z","")}var ke=T[d];if(ke)return _(T,S,ke,P);throw new Error("Unknown type '".concat(d,"' at '").concat(S,"'"))},g.decode=function D(T,S,d,P){if("string"==typeof d&&!d.endsWith("?")&&"void"!==d&&null==P)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===P)return P;if(Array.isArray(P)&&2===P.length&&k===P[0])return P[0];if(Array.isArray(k)&&2===k.length){if(k[0]===P)return[P,D(T,"".concat(S,".").concat(k[0]),k[1],{})];if(Array.isArray(P)&&2===P.length&&k[0]===P[0])return[P[0],D(T,"".concat(S,".").concat(k[0]),k[1],P[1])]}}throw new c(S,d,P)}if("object"==typeof d){if("object"!=typeof P)throw new c(S,d,P);for(var $={},pe=0,U=Object.keys(d);pe<U.length;pe++){var he=U[pe];$[he]=D(T,"".concat(S,".").concat(he),d[he],P[he])}return $}if(d.endsWith("?"))return null==P?null:D(T,S,d.slice(0,d.length-1),P);if(d.endsWith("[]")){if(!Array.isArray(P))throw new c(S,d,P);return P.map(function(xe,Je){return D(T,"".concat(S,"[").concat(Je,"]"),d.slice(0,d.length-2),xe)})}if(m.indexOf(d)>=0)return s(S,d,P);if("bytes"!==d){if("bigint"===d){if("number"!=typeof P&&("string"!=typeof P||!/^-?[0-9]+$/u.test(P)))throw new c(S,d,P);return BigInt(P)}if("cpf"===d){if("string"!=typeof P)throw new c(S,d,P);return P}if("cnpj"===d){if("string"!=typeof P)throw new c(S,d,P);return P}if("date"===d){if("string"!=typeof P||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(P))throw new c(S,d,P);var ke=parseInt(P.split("-")[2],10),ge=parseInt(P.split("-")[1],10)-1,ye=parseInt(P.split("-")[0],10),Y=new Date(ye,ge,ke);if(Y.getFullYear()!==ye||Y.getMonth()!==ge||Y.getDate()!==ke)throw new c(S,d,P);return Y}if("datetime"===d){if("string"!=typeof P||!/^[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(P))throw new c(S,d,P);return new Date("".concat(P.endsWith("Z")?P:P.concat("Z")))}var ve=T[d];if(ve)return D(T,S,ve,P);throw new Error("Unknown type '".concat(d,"' at '").concat(S,"'"))}if("string"!=typeof P)throw new c(S,"".concat(d," (base 64)"),P);try{return Uint8Array.from(atob(P),function(xe){return xe.charCodeAt(0)})}catch(xe){throw new c(S,"".concat(d," (base 64)"),P)}}},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,P,M){return new(P||(P=Promise))(function(k,$){function pe(ke){try{he(M.next(ke))}catch(ge){$(ge)}}function U(ke){try{he(M.throw(ke))}catch(ge){$(ge)}}function he(ke){ke.done?k(ke.value):function b(k){return k instanceof P?k:new P(function($){$(k)})}(ke.value).then(pe,U)}he((M=M.apply(S,d||[])).next())})},u=this&&this.__generator||function(S,d){var M,b,k,$,P={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(he){return function(ke){return function U(he){if(M)throw new TypeError("Generator is already executing.");for(;P;)try{if(M=1,b&&(k=2&he[0]?b.return:he[0]?b.throw||((k=b.return)&&k.call(b),0):b.next)&&!(k=k.call(b,he[1])).done)return k;switch(b=0,k&&(he=[2&he[0],k.value]),he[0]){case 0:case 1:k=he;break;case 4:return P.label++,{value:he[1],done:!1};case 5:P.label++,b=he[1],he=[0];continue;case 7:he=P.ops.pop(),P.trys.pop();continue;default:if(!(k=(k=P.trys).length>0&&k[k.length-1])&&(6===he[0]||2===he[0])){P=0;continue}if(3===he[0]&&(!k||he[1]>k[0]&&he[1]<k[3])){P.label=he[1];break}if(6===he[0]&&P.label<k[1]){P.label=k[1],k=he;break}if(k&&P.label<k[2]){P.label=k[2],P.ops.push(he);break}k[2]&&P.ops.pop(),P.trys.pop();continue}he=d.call(S,P)}catch(ke){he=[6,ke],b=0}finally{M=k=0}if(5&he[0])throw he[1];return{value:he[0]?he[1]:void 0,done:!0}}([he,ke])}}};Object.defineProperty(g,"__esModule",{value:!0}),g.SdkgenHttpClient=void 0;var m=l(4602);function c(S){for(var d="",P=0;P<2*S;++P)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,P,M){this.astJson=P,this.errClasses=M,this.extra=new Map,this.successHook=function(){},this.errorHook=function(){},this.baseUrl=d}return S.prototype.makeRequest=function(d,P){var M,b;return i(this,void 0,void 0,function(){var k,$,pe,U,he,ke=this;return u(this,function(ge){switch(ge.label){case 0:if(!(k=this.astJson.functionTable[d]))throw new Error("Unknown function ".concat(d));return $={},this.extra.forEach(function(ye,Y){$[Y]=ye}),pe={args:(0,m.encode)(this.astJson.typeTable,"".concat(d,".args"),k.args,P),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(ye,Y){var ve=new XMLHttpRequest;ve.open("POST","".concat(ke.baseUrl,"/").concat(d)),ve.setRequestHeader("Content-Type","application/sdkgen"),ve.onreadystatechange=function(){if(4===ve.readyState)try{var xe=JSON.parse(ve.responseText);try{D(xe,"error")&&xe.error?(Y(xe.error),ke.errorHook(xe.error,d,P)):ye(D(xe,"result")?xe.result:null)}catch(at){var Je={message:"".concat(at),type:"Fatal"};Y(Je),ke.errorHook(Je,d,P)}}catch(at){Y(Je={message:"Falha de conex\xe3o com o servidor",type:"Fatal"}),ke.errorHook(Je,d,P)}},ve.send(JSON.stringify(pe))}).catch(function(ye){if(ke.errorHook(ye,d,P),D(ye,"type")&&D(ye,"message")&&"string"==typeof ye.type&&"string"==typeof ye.message){var Y=ke.errClasses[ye.type];if(Y){var ve=ke.astJson.errors.find(function(xe){return Array.isArray(xe)?xe[0]===ye.type:xe===ye.type});if(ve)throw Array.isArray(ve)&&D(ye,"data")?new Y(ye.message,(0,m.decode)(ke.astJson.typeTable,"".concat(Y.name,".data"),ve[1],ye.data)):new Y(ye.message,void 0)}throw new ke.errClasses.Fatal("".concat(ye.type,": ").concat(ye.message))}throw ye})];case 1:return U=ge.sent(),he=(0,m.decode)(this.astJson.typeTable,"".concat(d,".ret"),k.ret,U),this.successHook(he,d,P),[2,he]}})})},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 he=`${$.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)} ${he};\n ${T(M.base,b,k,he,pe,!1).replace(/\n/gu,"\n ")}\n ${$} = ${he};\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 P(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 P(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 P(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 P=[];P.push("timeoutMillis: Long? = null"),s&&P.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(P);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 P="";switch(d&&d!==m(d)&&(P+=` @SerializedName("${d}")\n`),S.constructor){case i.DatePrimitiveType:P+=" @JsonAdapter(DateAdapter::class)\n";break;case i.DateTimePrimitiveType:P+=" @JsonAdapter(DateTimeAdapter::class)\n";break;case i.ArrayType:case i.OptionalType:P+=_(S.base)}return P}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(P=>m(P.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(P=>{let M=_(P.type,P.name);return M+=` var ${m(P.name)}: ${u(P.type)}${P.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,be){var Xe={};for(var mt in Re)Object.prototype.hasOwnProperty.call(Re,mt)&&be.indexOf(mt)<0&&(Xe[mt]=Re[mt]);if(null!=Re&&"function"==typeof Object.getOwnPropertySymbols){var _t=0;for(mt=Object.getOwnPropertySymbols(Re);_t<mt.length;_t++)be.indexOf(mt[_t])<0&&Object.prototype.propertyIsEnumerable.call(Re,mt[_t])&&(Xe[mt[_t]]=Re[mt[_t]])}return Xe};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(be){return this.location=be.location,this}atLocation(be){return this.location=be,this}}g.AstNode=m;class c extends m{toJSON(){const be=Object.assign({},this);return i(be,["name"])}}g.Type=c,g.ErrorNode=class s extends m{constructor(be,Xe){super(),this.name=be,this.dataType=Xe}};class _ extends m{}g.Annotation=_,g.DescriptionAnnotation=class D extends _{constructor(be){super(),this.text=be}},g.ThrowsAnnotation=class T extends _{constructor(be){super(),this.error=be}},g.ArgDescriptionAnnotation=class S extends _{constructor(be,Xe){super(),this.argName=be,this.text=Xe}},g.RestAnnotation=class d extends _{constructor(be,Xe,mt,_t,It,ut){super(),this.method=be,this.path=Xe,this.pathVariables=mt,this.queryVariables=_t,this.headers=It,this.bodyVariable=ut}},g.HiddenAnnotation=class P 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 he extends M{constructor(){super(...arguments),this.name="date"}},g.DateTimePrimitiveType=class ke extends M{constructor(){super(...arguments),this.name="datetime"}},g.BoolPrimitiveType=class ge extends M{constructor(){super(...arguments),this.name="bool"}},g.BytesPrimitiveType=class ye extends M{constructor(){super(...arguments),this.name="bytes"}},g.VoidPrimitiveType=class Y extends M{constructor(){super(...arguments),this.name="void"}},g.MoneyPrimitiveType=class ve extends M{constructor(){super(...arguments),this.name="money"}},g.CpfPrimitiveType=class xe extends M{constructor(){super(...arguments),this.name="cpf"}},g.CnpjPrimitiveType=class Je extends M{constructor(){super(...arguments),this.name="cnpj"}},g.EmailPrimitiveType=class at extends M{constructor(){super(...arguments),this.name="email"}},g.UrlPrimitiveType=class ne extends M{constructor(){super(...arguments),this.name="url"}},g.UuidPrimitiveType=class Fe extends M{constructor(){super(...arguments),this.name="uuid"}},g.HexPrimitiveType=class q extends M{constructor(){super(...arguments),this.name="hex"}},g.HtmlPrimitiveType=class le extends M{constructor(){super(...arguments),this.name="html"}},g.Base64PrimitiveType=class Pe extends M{constructor(){super(...arguments),this.name="base64"}},g.XmlPrimitiveType=class ie 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(be){super(),this.base=be}get name(){return`${this.base.name}?`}},g.ArrayType=class tt extends c{constructor(be){super(),this.base=be}get name(){return`${this.base.name}[]`}},g.EnumValue=class Ee extends m{constructor(be){super(),this.value=be,this.annotations=[],this.struct=null}},g.EnumType=class Ue extends c{constructor(be){super(),this.values=be}get hasStructValues(){return this.values.some(be=>null!==be.struct)}},g.Field=class ct extends m{constructor(be,Xe,mt=!1){super(),this.name=be,this.type=Xe,this.secret=mt,this.annotations=[]}},g.Spread=class bt extends m{constructor(be){super(),this.typeReference=be}},g.TypeReference=class Be extends c{constructor(be){super(),this.name=be}},g.StructType=class qe extends c{constructor(be){super(),this.fieldsAndSpreads=be,this.fields=[]}},g.TypeDefinition=class X extends m{constructor(be,Xe){super(),this.name=be,this.type=Xe,this.annotations=[]}},g.FunctionOperation=class me extends m{constructor(be,Xe,mt){super(),this.name=be,this.fieldsAndSpreads=Xe,this.returnType=mt,this.annotations=[],this.args=[]}},g.AstRoot=class Se{constructor(be=[],Xe=[],mt=[]){this.typeDefinitions=be,this.operations=Xe,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 P of T.fields){const M=D.fields.find(b=>b.name===P.name);if(M)u(`${s}.${M.name}`,_,M.type,P.type);else{if(P.type instanceof i.OptionalType)continue;_.push(`${s}.${P.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 P of D.values){const M=T.values.find(b=>b.value===P.value);M?u(`${s}.${P.value}`,_,null!==(S=P.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 "${P.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 P of D.fields){const M=T.fields.find(b=>b.name===P.name);if(M)m(`${s}.${P.name}`,_,P.type,M.type);else{if(P.type instanceof i.OptionalType)continue;_.push(`${s}.${P.name} used to exist with type ${P.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 P of T.values){const M=D.values.find(b=>b.value===P.value);M?m(`${s}.${P.value}`,_,null!==(S=M.struct)&&void 0!==S?S:new i.StructType([]),null!==(d=P.struct)&&void 0!==d?d:new i.StructType([])):_.push(`The enum at ${s} now has the value "${P.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 P=T.args.find(M=>M.name===d.name);if(P)u(`${T.name}.args.${P.name}`,D,P.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:P,queryVariables:M,headers:b,bodyVariable:k}=T.value;return new i.RestAnnotation(S,d,P,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,P;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:he}of T.structTypes){b[U]={};const ke=b[U];for(const ge of he){ke[ge.name]=k(ge.type);for(const ye of ge.annotations)if(ye instanceof i.DescriptionAnnotation){const Y=`type.${U}.${ge.name}`;null!==(S=M[Y])&&void 0!==S||(M[Y]=[]),M[Y].push(c(ye))}}}for(const{name:U,values:he}of T.enumTypes)b[U]=he.map(ke=>ke.struct?[ke.value,ke.struct.name]:ke.value);for(const{name:U,type:he}of T.typeDefinitions)he instanceof i.StructType||he instanceof i.EnumType||(b[U]=k(he));const $={};for(const U of T.operations){const he={};for(const ke of U.args){he[ke.name]=k(ke.type);for(const ge of ke.annotations)if(ge instanceof i.DescriptionAnnotation){const ye=`fn.${U.name}.${ke.name}`;null!==(d=M[ye])&&void 0!==d||(M[ye]=[]),M[ye].push(c(ge))}}$[U.name]={args:he,ret:k(U.returnType)};for(const ke of U.annotations){const ge=`fn.${U.name}`;null!==(P=M[ge])&&void 0!==P||(M[ge]=[]),M[ge].push(c(ke))}}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 P=[],M=[],b=[];function k(U,he){var ke;if("string"==typeof U){const ye=m.primitiveToAstClass.get(U);return ye?new ye: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(ye=>{if(Array.isArray(ye)){const[Y,ve]=ye,xe=new i.EnumValue(Y);return b.push([xe,ve]),xe}return new i.EnumValue(ye)}));const ge=[];for(const ye of Object.keys(U)){const Y=new i.Field(ye,k(U[ye]));if(he){const ve=`type.${he}.${ye}`;for(const xe of null!==(ke=T.annotations[ve])&&void 0!==ke?ke:[])Y.annotations.push(s(xe))}ge.push(Y)}return new i.StructType(ge)}for(const[U,he]of Object.entries(T.typeTable)){const ke=k(he,U);M.push(new i.TypeDefinition(U,ke))}for(const[U,he]of Object.entries(T.functionTable)){const ke=Object.keys(he.args).map(Y=>{var ve;const xe=new i.Field(Y,k(he.args[Y])),Je=`fn.${U}.${Y}`;for(const at of null!==(ve=T.annotations[Je])&&void 0!==ve?ve:[])xe.annotations.push(s(at));return xe}),ge=new i.FunctionOperation(U,ke,k(he.ret)),ye=`fn.${U}`;for(const Y of null!==(S=T.annotations[ye])&&void 0!==S?S:[])ge.annotations.push(s(Y));P.push(ge)}for(const[U,he]of b){const ke=null===(d=M.find(ge=>ge.name===he))||void 0===d?void 0:d.type;ke instanceof i.StructType&&(U.struct=ke)}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,P,$);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(P){}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 P=this.token.constructor.name;if(P in d)return d[P](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 P=this.token.maybeAsIdentifier();if(P instanceof s.IdentifierToken)return P}throw new D(`Expected ${d.name.replace("Token","")} at ${this.token.location}, but found ${this.token}`)}parse(){const d=[],P=[],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:()=>{P.push(this.parseTypeDefinition())}});const b=new i.AstRoot(P,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(" "),P=this.token.value.slice(d[0].length).trim();switch(d[0]){case"description":this.annotations.push(new i.DescriptionAnnotation(P).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(P).at(this.token));break;case"rest":try{this.annotations.push((0,m.parseRestAnnotation)(P).at(this.token))}catch(M){throw new D(`${M instanceof Error?M.message:M} at ${this.token.location}`)}break;case"hidden":if(""!==P)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 P=this.expect(s.IdentifierToken),M=P.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 ${P.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 P=this.expect(s.IdentifierToken),M=P.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 ${P.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 P=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:he=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),k=!0,$=he},IdentifierToken:()=>{const he=this.parseField();if(M.has(he.name))throw new D(`Cannot redeclare argument '${he.name}'`);M.add(he.name),b.push(he),this.multiExpect({ParensCloseSymbolToken:ke=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),k=!0,$=ke},CommaSymbolToken:()=>this.nextToken()})},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const he=this.expect(s.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(he.value[0]))throw new D(`Expected a type but found ${JSON.stringify(he.value)} at ${he.location}`);b.push(new i.Spread(new i.TypeReference(he.value).at(he)).at(he)),this.multiExpect({ParensCloseSymbolToken:ke=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),k=!0,$=ke},CommaSymbolToken:()=>this.nextToken()})}});for(const he of d)if(he instanceof i.ArgDescriptionAnnotation){const ke=b.find(ge=>ge instanceof i.Field&&ge.name===he.argName);if(!ke)throw new D(`Argument '${he.argName}' not found, at ${he.location}`);ke.annotations.push(new i.DescriptionAnnotation(he.text).atLocation(he.location))}d=d.filter(he=>!(he instanceof i.ArgDescriptionAnnotation));let pe=(new i.VoidPrimitiveType).at($);this.token instanceof s.ColonSymbolToken&&(this.nextToken(),pe=this.parseType());const U=new i.FunctionOperation(P,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 P=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=[],P.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 P}parseField(){const d=this.expect(s.IdentifierToken);this.nextToken(),this.expect(s.ColonSymbolToken),this.nextToken();const{annotations:P}=this;this.annotations=[];const M=this.parseType(),b=new i.Field(d.value,M).at(d);for(b.annotations=P;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 P=[],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),P.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}`);P.push(new i.Spread(new i.TypeReference(k.value).at(k)).at(k))}});return new i.StructType(P).at(d)}parseType(){this.checkCannotHaveAnnotationsHere();let d=this.multiExpect({CurlyOpenSymbolToken:()=>this.parseStruct(),EnumKeywordToken:()=>this.parseEnum(),IdentifierToken:P=>{if(this.nextToken(),!/[A-Z]/u.test(P.value[0]))throw new D(`Expected a type but found ${JSON.stringify(P.value)} at ${P.location}`);return new i.TypeReference(P.value).at(P)},PrimitiveTypeToken:P=>{this.nextToken();const M=_.primitiveToAstClass.get(P.value);if(M)return(new M).at(P);throw new D(`BUG! Should handle primitive ${P.value}`)}});for(;this.token instanceof s.ArraySymbolToken||this.token instanceof s.OptionalSymbolToken;)this.multiExpect({ArraySymbolToken:P=>d=new i.ArrayType(d).at(P),OptionalSymbolToken:P=>d=new i.OptionalType(d).at(P)}),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 P=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,P,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 P=D.get(d.name);P?s[P]=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 P=D.args.find(b=>b.name===d);if(!P)throw new u.SemanticError(`Argument '${d}' not found at ${T.location}`);if(T.pathVariables.includes(d)&&P.type instanceof i.OptionalType)throw new u.SemanticError(`The path argument '${d}' can't be nullable at ${T.location}`);if(!((_=c(P.type instanceof i.OptionalType?P.type.base:P.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 '${P.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 P(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(Je=""){this.value=Je,this.location=new l,Object.defineProperty(this,"location",{enumerable:!1})}maybeAsIdentifier(){return this}toString(){const Je=this.constructor.name.replace("Token","");return""===this.value?Je:`${Je}(${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 P 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 he extends i{maybeAsIdentifier(){return new u("enum")}},g.FnKeywordToken=class ke extends i{maybeAsIdentifier(){return new u("fn")}},g.ErrorKeywordToken=class ge extends i{maybeAsIdentifier(){return new u("error")}},g.TrueKeywordToken=class ye extends i{maybeAsIdentifier(){return new u("true")}},g.FalseKeywordToken=class Y extends i{maybeAsIdentifier(){return new u("false")}},g.PrimitiveTypeToken=class ve 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)),P=(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)),he=(0,i.__importStar)(l(5585)),ke=(0,i.__importStar)(l(7423)),ge=(0,i.__importStar)(l(7238)),ye=(0,i.__importStar)(l(4264)),Y=(0,i.__importStar)(l(7822)),ve=(0,i.__importStar)(l(2181));function xe(_e,tt){1&_e&&(d.\u0275\u0275elementContainerStart(0),d.\u0275\u0275text(1,"Editor Avan\xe7ado"),d.\u0275\u0275elementContainerEnd())}function Je(_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 Ee=d.\u0275\u0275nextContext(2).$implicit;d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate1("\u25b6\xa0",Ee.function,"")}}function at(_e,tt){if(1&_e){const Ee=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"span",17),d.\u0275\u0275template(1,xe,2,0,"ng-container",18),d.\u0275\u0275template(2,Je,3,1,"ng-container",18),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(3,"button",19),d.\u0275\u0275listener("click",function(){d.\u0275\u0275restoreView(Ee);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 Ee=d.\u0275\u0275nextContext().$implicit;d.\u0275\u0275property("ngSwitch",Ee.type),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngSwitchCase","advanced"),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngSwitchCase","simple")}}function ne(_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 Ee=d.\u0275\u0275nextContext().$implicit;d.\u0275\u0275advance(1),d.\u0275\u0275property("fn",Ee.function)}}function q(_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,ne,2,0,"ng-container",18),d.\u0275\u0275template(4,Fe,2,1,"ng-container",18),d.\u0275\u0275elementContainerEnd(),d.\u0275\u0275elementEnd()),2&_e){const Ee=tt.$implicit;d.\u0275\u0275advance(2),d.\u0275\u0275property("ngSwitch",Ee.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 Ee=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"button",22),d.\u0275\u0275listener("click",function(){return d.\u0275\u0275restoreView(Ee),d.\u0275\u0275nextContext(2).addAdvancedTab()}),d.\u0275\u0275elementStart(1,"mat-icon"),d.\u0275\u0275text(2,"add_circle"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()}}function Pe(_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 Ee=d.\u0275\u0275reference(5);d.\u0275\u0275property("matMenuTriggerFor",Ee)}}function ie(_e,tt){if(1&_e){const Ee=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"mat-tab-group",11),d.\u0275\u0275listener("selectedIndexChange",function(ct){return d.\u0275\u0275restoreView(Ee),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(Ee),d.\u0275\u0275nextContext().addSimpleTab(ct)}),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(3,q,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,Pe,3,1,"ng-template",16),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()}if(2&_e){const Ee=d.\u0275\u0275nextContext();d.\u0275\u0275property("selectedIndex",Ee.selected.value),d.\u0275\u0275advance(3),d.\u0275\u0275property("ngForOf",Ee.tabs)}}class Ke{constructor(tt,Ee,Ue){this.sdkgen=tt,this.domSanitizer=Ee,this.matIconRegistry=Ue,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 Ee,Ue;switch(tt){case"typescript_nodeserver":Ee=(0,T.generateNodeServerSource)(this.state.astRoot),Ue="node-server.ts";break;case"typescript_nodeclient":Ee=(0,T.generateNodeClientSource)(this.state.astRoot),Ue="node-client.ts";break;case"typescript_web":Ee=(0,T.generateBrowserClientSource)(this.state.astRoot),Ue="web-client.ts";break;case"typescript_interfaces":Ee=(0,T.generateTypescriptInterfaces)(this.state.astRoot),Ue="interfaces.ts";break;case"flutter":Ee=(0,c.generateDartClientSource)(this.state.astRoot),Ue="flutter-client.dart";break;case"csharp_server":Ee=(0,m.generateCSharpServerSource)(this.state.astRoot),Ue="csharp-server.cs";break;case"fsharp_server":Ee=(0,s.generateFSharpServerSource)(this.state.astRoot),Ue="fsharp-server.fs";break;case"kotlin_android":Ee=(0,_.generateAndroidClientSource)(this.state.astRoot,!0),Ue="android-client.kt";break;case"kotlin_android_without_callbacks":Ee=(0,_.generateAndroidClientSource)(this.state.astRoot,!1),Ue="android-client-no-callbacks.kt";break;case"swift_ios":Ee=(0,D.generateSwiftClientSource)(this.state.astRoot,!1),Ue="ios-client.swift";break;case"rxswift_ios":Ee=(0,D.generateSwiftClientSource)(this.state.astRoot,!0),Ue="ios-client-rx.swift"}(0,S.saveAs)(new Blob([Ee],{type:"application/octet-stream"}),Ue)}}g.AppComponent=Ke,Ke.\u0275fac=function(tt){return new(tt||Ke)(d.\u0275\u0275directiveInject(P.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,Ee){1&tt&&(d.\u0275\u0275element(0,"ngx-monaco-editor",0),d.\u0275\u0275element(1,"app-tab-nav"),d.\u0275\u0275template(2,ie,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 Ee.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 Ee.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 Ee.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 Ee.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 Ee.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 Ee.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 Ee.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 Ee.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 Ee.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 Ee.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 Ee.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,Ee.sdkgen.state$)))},directives:[k.MonacoEditorComponent,$.TabNavComponent,pe.NgIf,U.MatTabGroup,U.MatTab,he.TabHomeComponent,pe.NgForOf,U.MatTabLabel,pe.NgSwitch,pe.NgSwitchCase,ke.MatButton,ge.MatTooltip,b.MatIcon,ye.TabEditorComponent,Y.SimpleCallComponent,ve.MatMenuTrigger,ve.MatMenu,ve.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),P=l(3251),M=l(7238),b=l(2313),k=l(6360),$=l(107),pe=l(1430),U=l(5109),he=l(2290),ke=l(5041),ge=(0,i.__importStar)(l(5e3));(0,i.__importStar)(l(2290));class Y{}g.AppModule=Y,Y.\u0275fac=function(xe){return new(xe||Y)},Y.\u0275mod=ge.\u0275\u0275defineNgModule({type:Y,bootstrap:[ke.AppComponent]}),Y.\u0275inj=ge.\u0275\u0275defineInjector({providers:[{provide:$.MONACO_PATH,useValue:"assets/vs"}],imports:[[b.BrowserModule,m.FormsModule,m.ReactiveFormsModule,$.MonacoEditorModule,k.BrowserAnimationsModule,U.NgxJsonViewerModule,he.ToastrModule.forRoot(),pe.AngularSplitModule,u.HttpClientModule,c.MatButtonModule,s.MatChipsModule,D.MatDialogModule,T.MatIconModule,S.MatMenuModule,_.MatRippleModule,d.MatTableModule,P.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 P(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,P,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(P,M){if(1&P&&(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&P){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=_,P=d.values.slice(0,3),M=P.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) ${P.map(b=>`${b.value}${b.struct?"(\u2026)":""}`).join(", ")}${P.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)),P=(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)),he=(0,i.__importStar)(l(107)),ke=(0,i.__importStar)(l(4211));function ge(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 ye=function(ut){return{active:ut}};function Y(ut,Ge){if(1&ut){const L=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"li",5),s.\u0275\u0275listener("click",function(){const ce=s.\u0275\u0275restoreView(L).$implicit;return s.\u0275\u0275nextContext().selectedFunction=ce}),s.\u0275\u0275elementStart(1,"span",6),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(3,ge,2,1,"span",7),s.\u0275\u0275elementEnd()}if(2&ut){const L=Ge.$implicit,ae=s.\u0275\u0275nextContext();s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(3,ye,(null==ae.selectedFunction?null:ae.selectedFunction.name)===L.name)),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate(L.name),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",L.description)}}function ve(ut,Ge){1&ut&&s.\u0275\u0275element(0,"span")}function xe(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 ce=s.\u0275\u0275restoreView(L).$implicit;return s.\u0275\u0275nextContext(2).showDocumentation(ce.rawType)}),s.\u0275\u0275text(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(10,ve,1,0,"span",38),s.\u0275\u0275elementEnd()}if(2&ut){const L=Ge.$implicit,ae=Ge.index;s.\u0275\u0275nextContext();const Ae=s.\u0275\u0275reference(18),ce=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",ae!=we.selectedFunction.args.length-1)("ngIfThen",Ae)("ngIfElse",ce)}}function Je(ut,Ge){1&ut&&s.\u0275\u0275text(0,",")}function at(ut,Ge){1&ut&&s.\u0275\u0275element(0,"br")}function ne(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 Ae=s.\u0275\u0275nextContext().$implicit;return s.\u0275\u0275nextContext(3).showDocumentation(Ae.dataType)}),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()}if(2&ut){const L=s.\u0275\u0275nextContext().$implicit,ae=s.\u0275\u0275nextContext(3);s.\u0275\u0275property("matTooltip",ae.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,ne,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 q(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 Pe(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 ie(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 Ee(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 ce=s.\u0275\u0275restoreView(L).$implicit;return s.\u0275\u0275nextContext(3).showDocumentation(ce.rawType)}),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&ut){const L=Ge.$implicit,ae=s.\u0275\u0275nextContext(3);s.\u0275\u0275advance(1),s.\u0275\u0275property("matTooltip",ae.getTooltip(L.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(L.type)}}function Ue(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 qe(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,Ee,3,2,"td",48),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275elementContainerStart(7,50),s.\u0275\u0275template(8,Ue,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 X(ut,Ge){1&ut&&(s.\u0275\u0275elementStart(0,"span",59),s.\u0275\u0275text(1,"Dart"),s.\u0275\u0275elementEnd())}function me(ut,Ge){1&ut&&(s.\u0275\u0275elementStart(0,"span",59),s.\u0275\u0275text(1,"Swift"),s.\u0275\u0275elementEnd())}const Se=function(){return{theme:"vs-dark",language:"javascript"}},Re=function(){return{theme:"vs-dark",language:"kotlin"}},be=function(){return{theme:"vs-dark",language:"dart"}},Xe=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,xe,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 Ae=s.\u0275\u0275nextContext();return Ae.showDocumentation(Ae.selectedFunction.returns.rawType)}),s.\u0275\u0275text(16),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(17,Je,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,q,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,Pe,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,ie,2,0,"p",23),s.\u0275\u0275elementStart(37,"div",25),s.\u0275\u0275template(38,qe,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 Ae=s.\u0275\u0275nextContext();return Ae.showDocumentation(Ae.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,X,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,me,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,Se))("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,be))("ngModel",L.selectedFunction.examples.dart),s.\u0275\u0275advance(3),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(23,Xe))("ngModel",L.selectedFunction.examples.swift)}}const _t=function(){return{standalone:!0}};class It{constructor(Ge,L,ae){this.sdkgen=Ge,this.dialog=L,this.responsive=ae,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,ae)=>L.name.localeCompare(ae.name)).map(L=>{var ae,Ae,ce;const we=Ge.astJson.annotations[`fn.${L.name}`],De=this.sdkgen.buildJsonObject(L.args);return(null==we?void 0:we.find(oe=>"hidden"===oe.type))?null:{name:L.name,description:null===(ae=null==we?void 0:we.find(oe=>"description"===oe.type))||void 0===ae?void 0:ae.value,args:L.args.map(({name:oe,type:Ce})=>{var Qe,it,ht;return{name:oe,description:null===(ht=[...null!==(Qe=Ge.astJson.annotations[`type.${Ce}.${oe}`])&&void 0!==Qe?Qe:[],...null!==(it=Ge.astJson.annotations[`fn.${L.name}.${oe}`])&&void 0!==it?it:[]].find(Dt=>"description"===Dt.type))||void 0===ht?void 0:ht.value,type:Ce.name,rawType:Ce}}),argsStr:L.args.map(oe=>`${oe.name}: ${oe.type.name}`).join(", "),argsFields:L.args,returns:{type:L.returnType.name,rawType:L.returnType},labels:null!==(Ae=null==we?void 0:we.filter(oe=>["rest","throws"].includes(oe.type)).map(oe=>{var Ce;return"rest"===oe.type?{name:"REST",type:`${oe.value.method} ${oe.value.path}`}:"throws"===oe.type?{name:"THROWS",type:oe.value,dataType:null===(Ce=Ge.astRoot.errors.find(Qe=>Qe.name===oe.value))||void 0===Ce?void 0:Ce.dataType}:{name:"?",type:"?"}}))&&void 0!==Ae?Ae:[],throws:null===(ce=null==we?void 0:we.find(oe=>"throws"===oe.type))||void 0===ce?void 0:ce.value,examples:{typeScript:this.sdkgen.getTypeScriptCode(L.name,De),kotlin:this.sdkgen.getKotlinCode(L.name,L.args),dart:this.sdkgen.getDartCode(L.name,De),swift:this.sdkgen.getSwiftCode(L.name,De)}}}).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(Ae){return L.searchText=Ae}),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(6,"ul"),s.\u0275\u0275template(7,Y,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,_t)),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,P.NgForOf,P.NgClass,P.NgIf,M.MatTooltip,b.MatButton,k.MatIcon,$.MatChipList,$.MatChip,P.NgSwitch,P.NgSwitchCase,P.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,he.MonacoEditorComponent,U.MatTabLabel],pipes:[ke.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)),P=(0,u.__importStar)(l(508)),M=(0,u.__importStar)(l(9808)),b=(0,u.__importStar)(l(5245)),k=(0,u.__importStar)(l(7423));function $(he,ke){1&he&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275elementStart(1,"mat-icon",6),_.\u0275\u0275text(2,"loop"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementContainerEnd())}function pe(he,ke){1&he&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275elementStart(1,"mat-icon"),_.\u0275\u0275text(2,"arrow_forward"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementContainerEnd())}class U{constructor(ke,ge,ye){this.sdkgen=ke,this.toastr=ge,this.dialog=ye,this.loading=!1,this.url=new m.FormControl("")}ngOnInit(){fetch("/ast.json").then(ke=>{ke.ok&&(this.url.setValue(`${window.location.protocol}//${window.location.host}`),this.loadUrl())}).catch(()=>{})}loadUrl(ke){var ge=this;return i(function*(){null==ke||ke.preventDefault();try{ge.loading=!0,/^https?:\/\//.test(ge.url.value)||ge.url.setValue(`https://${ge.url.value}`);const ye=new URL(ge.url.value);ye.pathname+=(/\/$/u.test(ye.pathname)?"":"/")+"ast.json";const Y=ye.toString();console.debug("astUrl",Y);const ve=yield fetch(Y).then(xe=>xe.ok?xe.json():xe);if(ve instanceof Response)throw ve instanceof Error?ve:new Error(ve.statusText);if(!ve.errors||!ve.functionTable||!ve.typeTable)throw new Error("Invalid AST");for(;"undefined"==typeof monaco;)yield new Promise(xe=>setTimeout(xe,250));console.debug("astJson",ve),ge.sdkgen.state$.next({astJson:ve,astRoot:(0,c.jsonToAst)(ve),url:ge.url.value})}catch(ye){ge.toastr.error(ye instanceof Error?ye.message:JSON.stringify(ye),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{ge.loading=!1}})()}openAbout(){this.dialog.open(s.DialogAboutComponent)}}g.TabNavComponent=U,U.\u0275fac=function(ke){return new(ke||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(ke,ge){1&ke&&(_.\u0275\u0275element(0,"img",0),_.\u0275\u0275elementStart(1,"form",1),_.\u0275\u0275listener("submit",function(Y){return ge.loadUrl(Y)}),_.\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 ge.openAbout()}),_.\u0275\u0275elementStart(7,"mat-icon"),_.\u0275\u0275text(8,"info"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()),2&ke&&(_.\u0275\u0275advance(2),_.\u0275\u0275property("formControl",ge.url)("readonly",ge.loading),_.\u0275\u0275advance(1),_.\u0275\u0275property("disabled",ge.loading)("ngSwitch",ge.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,P.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)),P=(0,i.__importStar)(l(7238));function M(le,Pe){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,Pe){if(1&le&&(c.\u0275\u0275elementStart(0,"mat-chip",7),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&le){const ie=Pe.$implicit;c.\u0275\u0275property("disableRipple",!0),c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(ie)}}function k(le,Pe){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,Pe){1&le&&(c.\u0275\u0275elementStart(0,"th",20),c.\u0275\u0275text(1,"Nome"),c.\u0275\u0275elementEnd())}function pe(le,Pe){if(1&le&&(c.\u0275\u0275elementStart(0,"td",21),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&le){const ie=Pe.$implicit;c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(ie.name)}}function U(le,Pe){1&le&&(c.\u0275\u0275elementStart(0,"th",20),c.\u0275\u0275text(1,"Tipo"),c.\u0275\u0275elementEnd())}function he(le,Pe){1&le&&(c.\u0275\u0275elementStart(0,"span"),c.\u0275\u0275text(1,"-"),c.\u0275\u0275elementEnd())}function ke(le,Pe){if(1&le){const ie=c.\u0275\u0275getCurrentView();c.\u0275\u0275elementStart(0,"u",25),c.\u0275\u0275listener("click",function(){c.\u0275\u0275restoreView(ie);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 ie=c.\u0275\u0275nextContext().$implicit,Ke=c.\u0275\u0275nextContext(2);c.\u0275\u0275property("matTooltip",Ke.getTooltip(ie.type)),c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(ie.type.name)}}function ge(le,Pe){1&le&&(c.\u0275\u0275elementStart(0,"td",22),c.\u0275\u0275template(1,he,2,0,"span",23),c.\u0275\u0275template(2,ke,2,2,"u",24),c.\u0275\u0275elementEnd()),2&le&&(c.\u0275\u0275property("ngSwitch",Pe.$implicit.type),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngSwitchCase",null))}function ye(le,Pe){1&le&&(c.\u0275\u0275elementStart(0,"th",20),c.\u0275\u0275text(1,"Descri\xe7\xe3o"),c.\u0275\u0275elementEnd())}function Y(le,Pe){if(1&le&&(c.\u0275\u0275elementStart(0,"td",26),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&le){const ie=Pe.$implicit;c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(ie.description||"-")}}function ve(le,Pe){1&le&&c.\u0275\u0275element(0,"tr",27)}function xe(le,Pe){1&le&&c.\u0275\u0275element(0,"tr",28)}const Je=function(){return[]};function at(le,Pe){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,ge,3,2,"td",15),c.\u0275\u0275elementContainerEnd(),c.\u0275\u0275elementContainerStart(9,16),c.\u0275\u0275template(10,ye,2,0,"th",12),c.\u0275\u0275template(11,Y,2,1,"td",17),c.\u0275\u0275elementContainerEnd(),c.\u0275\u0275template(12,ve,1,0,"tr",18),c.\u0275\u0275template(13,xe,1,0,"tr",19),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd()),2&le){const ie=c.\u0275\u0275nextContext();let Ke;c.\u0275\u0275advance(2),c.\u0275\u0275property("dataSource",null!==(Ke=null==ie.typeDoc?null:ie.typeDoc.structFields)&&void 0!==Ke?Ke:c.\u0275\u0275pureFunction0(3,Je)),c.\u0275\u0275advance(10),c.\u0275\u0275property("matHeaderRowDef",ie.argumentsTableColumns),c.\u0275\u0275advance(1),c.\u0275\u0275property("matRowDefColumns",ie.argumentsTableColumns)}}function ne(le,Pe){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 ie=Pe.$implicit;c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(ie)}}function Fe(le,Pe){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,ne,3,1,"li",29),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd()),2&le){const ie=c.\u0275\u0275nextContext();c.\u0275\u0275advance(4),c.\u0275\u0275property("ngForOf",null==ie.typeDoc?null:ie.typeDoc.examples)}}class q{constructor(Pe,ie,Ke){this.dialogRef=Pe,this.data=ie,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(Pe){return(0,m.getTypeDoc)(Pe).shortDescription}showDocumentation(Pe){this.dialog.open(q,{position:{right:"0"},data:{type:Pe,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}g.TypeDetailsComponent=q,q.\u0275fac=function(Pe){return new(Pe||q)(c.\u0275\u0275directiveInject(s.MatDialogRef),c.\u0275\u0275directiveInject(u.MAT_DIALOG_DATA),c.\u0275\u0275directiveInject(s.MatDialog))},q.\u0275cmp=c.\u0275\u0275defineComponent({type:q,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(Pe,ie){1&Pe&&(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&Pe&&(c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",ie.data.subdialog),c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(ie.data.type.name),c.\u0275\u0275advance(1),c.\u0275\u0275property("selectable",!1),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngForOf",ie.labels),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",!ie.data.subdialog),c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(null==ie.typeDoc?null:ie.typeDoc.longDescription),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",(null==ie.typeDoc?null:ie.typeDoc.isStruct)&&(null==ie.typeDoc?null:ie.typeDoc.structFields)),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",null==ie.typeDoc||null==ie.typeDoc.examples?null:ie.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,P.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,P,M){var b=new XMLHttpRequest;b.open("GET",d),b.responseType="blob",b.onload=function(){S(b.response,P,M)},b.onerror=function(){console.error("could not download file")},b.send()}function s(d){var P=new XMLHttpRequest;P.open("HEAD",d,!1);try{P.send()}catch(M){}return 200<=P.status&&299>=P.status}function _(d){try{d.dispatchEvent(new MouseEvent("click"))}catch(M){var P=document.createEvent("MouseEvents");P.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),d.dispatchEvent(P)}}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,P,M){var b=D.URL||D.webkitURL,k=document.createElement("a");k.download=P=P||d.name||"download",k.rel="noopener","string"==typeof d?(k.href=d,k.origin===location.origin?_(k):s(k.href)?c(d,P,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,P,M){if(P=P||d.name||"download","string"!=typeof d)navigator.msSaveOrOpenBlob(function m(d,P){return void 0===P?P={autoBom:!1}:"object"!=typeof P&&(console.warn("Deprecated: Expected third argument to be a object"),P={autoBom:!P}),P.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),P);else if(s(d))c(d,P,M);else{var b=document.createElement("a");b.href=d,b.target="_blank",setTimeout(function(){_(b)})}}:function(d,P,M,b){if((b=b||open("","_blank"))&&(b.document.title=b.document.body.innerText="downloading..."),"string"==typeof d)return c(d,P,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 ge=U.result;ge=pe?ge:ge.replace(/^data:[^;]*;/,"data:attachment/file;"),b?b.location.href=ge:location=ge,b=null},U.readAsDataURL(d)}else{var he=D.URL||D.webkitURL,ke=he.createObjectURL(d);b?b.location=ke:location.href=ke,b=null,setTimeout(function(){he.revokeObjectURL(ke)},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(P,M){1&P&&u.\u0275\u0275element(0,"div",9)}function c(P,M){if(1&P&&(u.\u0275\u0275elementStart(0,"span",10),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&P){const b=u.\u0275\u0275nextContext().$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(b.description)}}function s(P,M){if(1&P&&(u.\u0275\u0275elementStart(0,"section",11),u.\u0275\u0275element(1,"ngx-json-viewer",12),u.\u0275\u0275elementEnd()),2&P){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(P){return["segment",P]},D=function(P,M){return{"segment-main":!0,expandable:P,expanded:M}};function T(P,M){if(1&P){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&P){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 P{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 he,ke;return"object"!=typeof pe||null===pe||pe instanceof Boolean||pe instanceof Date||pe instanceof Number||pe instanceof RegExp||pe instanceof String?pe:(he=k.get(pe),void 0!==he?{$ref:he}:(k.set(pe,U),Array.isArray(pe)?(ke=[],pe.forEach(function(ge,ye){ke[ye]=$(ge,U+"["+ye+"]")})):(ke={},Object.keys(pe).forEach(function(ge){ke[ge]=$(pe[ge],U+"["+JSON.stringify(ge)+"]")})),ke))}(b,"$")}}return P.\u0275fac=function(b){return new(b||P)},P.\u0275cmp=u.\u0275\u0275defineComponent({type:P,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,P],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}']}),P})(),d=(()=>{class P{}return P.\u0275fac=function(b){return new(b||P)},P.\u0275mod=u.\u0275\u0275defineNgModule({type:P}),P.\u0275inj=u.\u0275\u0275defineInjector({imports:[[i.CommonModule]]}),P})()},9802:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{ArgumentOutOfRangeError:()=>be,AsyncSubject:()=>U,BehaviorSubject:()=>k.X,ConnectableObservable:()=>_,EMPTY:()=>Pe.E,EmptyError:()=>me,NEVER:()=>O,NotFoundError:()=>Xe,Notification:()=>Ee,NotificationKind:()=>tt,ObjectUnsubscribedError:()=>mt.N,Observable:()=>i.y,ReplaySubject:()=>pe,Scheduler:()=>q.b,SequenceError:()=>_t,Subject:()=>b.x,Subscriber:()=>le.Lv,Subscription:()=>u.w0,TimeoutError:()=>L,UnsubscriptionError:()=>ce.B,VirtualAction:()=>Fe,VirtualTimeScheduler:()=>ne,animationFrame:()=>at.r,animationFrameScheduler:()=>at.Z,animationFrames:()=>d,asap:()=>he.e,asapScheduler:()=>he.E,async:()=>ke.P,asyncScheduler:()=>ke.z,audit:()=>oi.U,auditTime:()=>Gn.e,bindCallback:()=>it,bindNodeCallback:()=>ht,buffer:()=>Mn,bufferCount:()=>Sn,bufferTime:()=>H,bufferToggle:()=>Ie,bufferWhen:()=>W,catchError:()=>Oe.K,combineAll:()=>bn,combineLatest:()=>ft.a,combineLatestAll:()=>Lt,combineLatestWith:()=>An,concat:()=>Dt.z,concatAll:()=>Rn.u,concatMap:()=>yn.b,concatMapTo:()=>Tn,concatWith:()=>Cn,config:()=>xn.v,connect:()=>ri,connectable:()=>Ft,count:()=>Bn,debounce:()=>jn,debounceTime:()=>ui.b,defaultIfEmpty:()=>_i,defer:()=>Bt.P,delay:()=>si.g,delayWhen:()=>Fn.j,dematerialize:()=>gr,distinct:()=>Ki,distinctUntilChanged:()=>ir.x,distinctUntilKeyChanged:()=>Vn,elementAt:()=>wr,empty:()=>Pe.c,endWith:()=>ki,every:()=>_r,exhaust:()=>Ni,exhaustAll:()=>Mi,exhaustMap:()=>rr,expand:()=>yr,filter:()=>je.h,finalize:()=>or.x,find:()=>Gi,findIndex:()=>Si,first:()=>sr,firstValueFrom:()=>Re,flatMap:()=>Vi,forkJoin:()=>pn.D,from:()=>en.D,fromEvent:()=>$t.R,fromEventPattern:()=>Tt,generate:()=>Kt,groupBy:()=>Li,identity:()=>Be.y,ignoreElements:()=>Qi.l,iif:()=>tn,interval:()=>Z,isEmpty:()=>Yn,isObservable:()=>qe.b,last:()=>vi,lastValueFrom:()=>Se,map:()=>hi.U,mapTo:()=>Bi.h,materialize:()=>bi,max:()=>vr,merge:()=>N.T,mergeAll:()=>ji.J,mergeMap:()=>et.z,mergeMapTo:()=>Zi,mergeScan:()=>ti,mergeWith:()=>kn,min:()=>Hi,multicast:()=>Ci,never:()=>ee,noop:()=>bt.Z,observable:()=>D.L,observeOn:()=>Ce.Q,of:()=>ie.of,onErrorResumeNext:()=>st,pairs:()=>Wt,pairwise:()=>Yi,partition:()=>We,pipe:()=>ct.z,pluck:()=>br,publish:()=>J,publishBehavior:()=>f,publishLast:()=>p,publishReplay:()=>x,queue:()=>Je,queueScheduler:()=>xe,race:()=>de,raceWith:()=>Q,range:()=>dt,reduce:()=>wt,refCount:()=>s,repeat:()=>fe,repeatWhen:()=>y,retry:()=>R,retryWhen:()=>C,sample:()=>V,sampleTime:()=>Te,scan:()=>Ye,scheduled:()=>_n.x,sequenceEqual:()=>ot,share:()=>Pt.B,shareReplay:()=>xt,single:()=>Vt,skip:()=>Gt.T,skipLast:()=>ln,skipUntil:()=>F,skipWhile:()=>A,startWith:()=>I.O,subscribeOn:()=>De.R,switchAll:()=>Ze,switchMap:()=>G.w,switchMapTo:()=>At,switchScan:()=>dn,take:()=>Fi.q,takeLast:()=>yi,takeUntil:()=>wn.R,takeWhile:()=>Ei,tap:()=>Di.b,throttle:()=>Sr,throttleTime:()=>Ct,throwError:()=>Ke._,throwIfEmpty:()=>$n,timeInterval:()=>Mt,timeout:()=>ae,timeoutWith:()=>jt,timer:()=>ue.H,timestamp:()=>hn,toArray:()=>Zt,using:()=>Nt,window:()=>In,windowCount:()=>Nn,windowTime:()=>Jn,windowToggle:()=>Ti,windowWhen:()=>Pn,withLatestFrom:()=>Ur,zip:()=>nn,zipAll:()=>Ir,zipWith:()=>On});var i=l(9751),u=l(6921),m=l(4482),c=l(5403);function s(){return(0,m.e)((re,z)=>{let te=null;re._refCount++;const se=(0,c.x)(z,void 0,void 0,void 0,()=>{if(!re||re._refCount<=0||0<--re._refCount)return void(te=null);const Ne=re._connection,He=te;te=null,Ne&&(!He||Ne===He)&&Ne.unsubscribe(),z.unsubscribe()});re.subscribe(se),se.closed||(te=re.connect())})}class _ extends i.y{constructor(z,te){super(),this.source=z,this.subjectFactory=te,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 te=this.getSubject();z.add(this.source.subscribe((0,c.x)(te,void 0,()=>{this._teardown(),te.complete()},se=>{this._teardown(),te.error(se)},()=>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(re){return re?P(re):M}function P(re){const{schedule:z}=S.l;return new i.y(te=>{const se=new u.w0,Ne=re||T,He=Ne.now(),rt=yt=>{const gt=Ne.now();te.next({timestamp:re?gt:yt,elapsed:gt-He}),te.closed||se.add(z(rt))};return se.add(z(rt)),se})}const M=P();var b=l(6758),k=l(1135),$=l(6063);class pe extends b.x{constructor(z=1/0,te=1/0,se=$.l){super(),this._bufferSize=z,this._windowTime=te,this._timestampProvider=se,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=te===1/0,this._bufferSize=Math.max(1,z),this._windowTime=Math.max(1,te)}next(z){const{isStopped:te,_buffer:se,_infiniteTimeWindow:Ne,_timestampProvider:He,_windowTime:rt}=this;te||(se.push(z),!Ne&&se.push(He.now()+rt)),this._trimBuffer(),super.next(z)}_subscribe(z){this._throwIfClosed(),this._trimBuffer();const te=this._innerSubscribe(z),{_infiniteTimeWindow:se,_buffer:Ne}=this,He=Ne.slice();for(let rt=0;rt<He.length&&!z.closed;rt+=se?1:2)z.next(He[rt]);return this._checkFinalizedStatuses(z),te}_trimBuffer(){const{_bufferSize:z,_timestampProvider:te,_buffer:se,_infiniteTimeWindow:Ne}=this,He=(Ne?1:2)*z;if(z<1/0&&He<se.length&&se.splice(0,se.length-He),!Ne){const rt=te.now();let yt=0;for(let gt=1;gt<se.length&&se[gt]<=rt;gt+=2)yt=gt;yt&&se.splice(0,yt+1)}}}class U extends b.x{constructor(){super(...arguments),this._value=null,this._hasValue=!1,this._isComplete=!1}_checkFinalizedStatuses(z){const{hasError:te,_hasValue:se,_value:Ne,thrownError:He,isStopped:rt,_isComplete:yt}=this;te?z.error(He):(rt||yt)&&(se&&z.next(Ne),z.complete())}next(z){this.isStopped||(this._value=z,this._hasValue=!0)}complete(){const{_hasValue:z,_value:te,_isComplete:se}=this;se||(this._isComplete=!0,z&&super.next(te),super.complete())}}var he=l(3101),ke=l(4986),ge=l(4408),Y=l(8950);const xe=new class ve extends Y.v{}(class ye extends ge.o{constructor(z,te){super(z,te),this.scheduler=z,this.work=te}schedule(z,te=0){return te>0?super.schedule(z,te):(this.delay=te,this.state=z,this.scheduler.flush(this),this)}execute(z,te){return te>0||this.closed?super.execute(z,te):this._execute(z,te)}requestAsyncId(z,te,se=0){return null!=se&&se>0||null==se&&this.delay>0?super.requestAsyncId(z,te,se):z.flush(this)}}),Je=xe;var at=l(29);let ne=(()=>{class re extends Y.v{constructor(te=Fe,se=1/0){super(te,()=>this.frame),this.maxFrames=se,this.frame=0,this.index=-1}flush(){const{actions:te,maxFrames:se}=this;let Ne,He;for(;(He=te[0])&&He.delay<=se&&(te.shift(),this.frame=He.delay,!(Ne=He.execute(He.state,He.delay))););if(Ne){for(;He=te.shift();)He.unsubscribe();throw Ne}}}return re.frameTimeFactor=10,re})();class Fe extends ge.o{constructor(z,te,se=(z.index+=1)){super(z,te),this.scheduler=z,this.work=te,this.index=se,this.active=!0,this.index=z.index=se}schedule(z,te=0){if(Number.isFinite(te)){if(!this.id)return super.schedule(z,te);this.active=!1;const se=new Fe(this.scheduler,this.work);return this.add(se),se.schedule(z,te)}return u.w0.EMPTY}requestAsyncId(z,te,se=0){this.delay=z.frame+se;const{actions:Ne}=z;return Ne.push(this),Ne.sort(Fe.sortActions),!0}recycleAsyncId(z,te,se=0){}_execute(z,te){if(!0===this.active)return super._execute(z,te)}static sortActions(z,te){return z.delay===te.delay?z.index===te.index?0:z.index>te.index?1:-1:z.delay>te.delay?1:-1}}var q=l(6646),le=l(930),Pe=l(515),ie=l(9646),Ke=l(2843),_e=l(576),tt=(()=>{return(re=tt||(tt={})).NEXT="N",re.ERROR="E",re.COMPLETE="C",tt;var re})();class Ee{constructor(z,te,se){this.kind=z,this.value=te,this.error=se,this.hasValue="N"===z}observe(z){return Ue(this,z)}do(z,te,se){const{kind:Ne,value:He,error:rt}=this;return"N"===Ne?null==z?void 0:z(He):"E"===Ne?null==te?void 0:te(rt):null==se?void 0:se()}accept(z,te,se){var Ne;return(0,_e.m)(null===(Ne=z)||void 0===Ne?void 0:Ne.next)?this.observe(z):this.do(z,te,se)}toObservable(){const{kind:z,value:te,error:se}=this,Ne="N"===z?(0,ie.of)(te):"E"===z?(0,Ke._)(()=>se):"C"===z?Pe.E:0;if(!Ne)throw new TypeError(`Unexpected notification kind ${z}`);return Ne}static createNext(z){return new Ee("N",z)}static createError(z){return new Ee("E",void 0,z)}static createComplete(){return Ee.completeNotification}}function Ue(re,z){var te,se,Ne;const{kind:He,value:rt,error:yt}=re;if("string"!=typeof He)throw new TypeError('Invalid notification, missing "kind"');"N"===He?null===(te=z.next)||void 0===te||te.call(z,rt):"E"===He?null===(se=z.error)||void 0===se||se.call(z,yt):null===(Ne=z.complete)||void 0===Ne||Ne.call(z)}Ee.completeNotification=new Ee("C");var ct=l(9635),bt=l(5032),Be=l(4671),qe=l(5191),X=l(3888);const me=(0,X.d)(re=>function(){re(this),this.name="EmptyError",this.message="no elements in sequence"});function Se(re,z){const te="object"==typeof z;return new Promise((se,Ne)=>{let rt,He=!1;re.subscribe({next:yt=>{rt=yt,He=!0},error:Ne,complete:()=>{He?se(rt):te?se(z.defaultValue):Ne(new me)}})})}function Re(re,z){const te="object"==typeof z;return new Promise((se,Ne)=>{const He=new le.Hp({next:rt=>{se(rt),He.unsubscribe()},error:Ne,complete:()=>{te?se(z.defaultValue):Ne(new me)}});re.subscribe(He)})}const be=(0,X.d)(re=>function(){re(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}),Xe=(0,X.d)(re=>function(te){re(this),this.name="NotFoundError",this.message=te});var mt=l(7448);const _t=(0,X.d)(re=>function(te){re(this),this.name="SequenceError",this.message=te});var It=l(1165),ut=l(8421),Ge=l(9672);const L=(0,X.d)(re=>function(te=null){re(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=te});function ae(re,z){const{first:te,each:se,with:Ne=Ae,scheduler:He=(null!=z?z:ke.z),meta:rt=null}=(0,It.q)(re)?{first:re}:"number"==typeof re?{each:re}:re;if(null==te&&null==se)throw new TypeError("No timeout provided.");return(0,m.e)((yt,gt)=>{let zt,Yt,mn=null,En=0;const Un=sn=>{Yt=(0,Ge.f)(gt,He,()=>{try{zt.unsubscribe(),(0,ut.Xf)(Ne({meta:rt,lastValue:mn,seen:En})).subscribe(gt)}catch(fn){gt.error(fn)}},sn)};zt=yt.subscribe((0,c.x)(gt,sn=>{null==Yt||Yt.unsubscribe(),En++,gt.next(mn=sn),se>0&&Un(se)},void 0,void 0,()=>{(null==Yt?void 0:Yt.closed)||null==Yt||Yt.unsubscribe(),mn=null})),Un(null!=te?"number"==typeof te?te:+te-He.now():se)})}function Ae(re){throw new L(re)}var ce=l(7896),we=l(3532),De=l(9468),oe=l(3268),Ce=l(5363);function Qe(re,z,te,se){if(te){if(!(0,we.K)(te))return function(...Ne){return Qe(re,z,se).apply(this,Ne).pipe((0,oe.Z)(te))};se=te}return se?function(...Ne){return Qe(re,z).apply(this,Ne).pipe((0,De.R)(se),(0,Ce.Q)(se))}:function(...Ne){const He=new U;let rt=!0;return new i.y(yt=>{const gt=He.subscribe(yt);if(rt){rt=!1;let zt=!1,Yt=!1;z.apply(this,[...Ne,(...mn)=>{if(re){const En=mn.shift();if(null!=En)return void He.error(En)}He.next(1<mn.length?mn:mn[0]),Yt=!0,zt&&He.complete()}]),Yt&&He.complete(),zt=!0}return gt})}}function it(re,z,te){return Qe(!1,re,z,te)}function ht(re,z,te){return Qe(!0,re,z,te)}var ft=l(9841),Dt=l(1350),Bt=l(9770);const Jt={connector:()=>new b.x,resetOnDisconnect:!0};function Ft(re,z=Jt){let te=null;const{connector:se,resetOnDisconnect:Ne=!0}=z;let He=se();const rt=new i.y(yt=>He.subscribe(yt));return rt.connect=()=>((!te||te.closed)&&(te=(0,Bt.P)(()=>re).subscribe(He),Ne&&te.add(()=>He=se())),te),rt}var pn=l(4128),en=l(188),$t=l(4968);function Tt(re,z,te){return te?Tt(re,z).pipe((0,oe.Z)(te)):new i.y(se=>{const Ne=(...rt)=>se.next(1===rt.length?rt[0]:rt),He=re(Ne);return(0,_e.m)(z)?()=>z(Ne,He):void 0})}var cn=l(6340);function Kt(re,z,te,se,Ne){let He,rt;function*yt(){for(let gt=rt;!z||z(gt);gt=te(gt))yield He(gt)}return 1===arguments.length?({initialState:rt,condition:z,iterate:te,resultSelector:He=Be.y,scheduler:Ne}=re):(rt=re,!se||(0,we.K)(se)?(He=Be.y,Ne=se):He=se),(0,Bt.P)(Ne?()=>(0,cn.Q)(yt(),Ne):yt)}function tn(re,z,te){return(0,Bt.P)(()=>re()?z:te)}var ue=l(2805);function Z(re=0,z=ke.z){return re<0&&(re=0),(0,ue.H)(re,re,z)}var N=l(6451);const O=new i.y(bt.Z);function ee(){return O}const{isArray:E}=Array;function j(re){return 1===re.length&&E(re[0])?re[0]:re}function st(...re){return function Le(...re){const z=j(re);return(0,m.e)((te,se)=>{const Ne=[te,...z],He=()=>{if(!se.closed)if(Ne.length>0){let rt;try{rt=(0,ut.Xf)(Ne.shift())}catch(gt){return void He()}const yt=(0,c.x)(se,void 0,bt.Z,bt.Z);rt.subscribe(yt),yt.add(He)}else se.complete()};He()})}(j(re))(Pe.E)}function Wt(re,z){return(0,en.D)(Object.entries(re),z)}function Ht(re,z){return(te,se)=>!re.call(z,te,se)}var je=l(9300);function We(re,z,te){return[(0,je.h)(z,te)((0,ut.Xf)(re)),(0,je.h)(Ht(z,te))((0,ut.Xf)(re))]}function de(...re){return 1===(re=j(re)).length?(0,ut.Xf)(re[0]):new i.y($e(re))}function $e(re){return z=>{let te=[];for(let se=0;te&&!z.closed&&se<re.length;se++)te.push((0,ut.Xf)(re[se]).subscribe((0,c.x)(z,Ne=>{if(te){for(let He=0;He<te.length;He++)He!==se&&te[He].unsubscribe();te=null}z.next(Ne)})))}}function dt(re,z,te){if(null==z&&(z=re,re=0),z<=0)return Pe.E;const se=z+re;return new i.y(te?Ne=>{let He=re;return te.schedule(function(){He<se?(Ne.next(He++),this.schedule()):Ne.complete()})}:Ne=>{let He=re;for(;He<se&&!Ne.closed;)Ne.next(He++);Ne.complete()})}function Nt(re,z){return new i.y(te=>{const se=re(),Ne=z(se);return(Ne?(0,ut.Xf)(Ne):Pe.E).subscribe(te),()=>{se&&se.unsubscribe()}})}var Rt=l(3269);function nn(...re){const z=(0,Rt.jO)(re),te=j(re);return te.length?new i.y(se=>{let Ne=te.map(()=>[]),He=te.map(()=>!1);se.add(()=>{Ne=He=null});for(let rt=0;!se.closed&&rt<te.length;rt++)(0,ut.Xf)(te[rt]).subscribe((0,c.x)(se,yt=>{if(Ne[rt].push(yt),Ne.every(gt=>gt.length)){const gt=Ne.map(zt=>zt.shift());se.next(z?z(...gt):gt),Ne.some((zt,Yt)=>!zt.length&&He[Yt])&&se.complete()}},()=>{He[rt]=!0,!Ne[rt].length&&se.complete()}));return()=>{Ne=He=null}}):Pe.E}var _n=l(3762),xn=l(2416),oi=l(5615),Gn=l(453);function Mn(re){return(0,m.e)((z,te)=>{let se=[];return z.subscribe((0,c.x)(te,Ne=>se.push(Ne),()=>{te.next(se),te.complete()})),re.subscribe((0,c.x)(te,()=>{const Ne=se;se=[],te.next(Ne)},bt.Z)),()=>{se=null}})}var Ln=l(8737);function Sn(re,z=null){return z=null!=z?z:re,(0,m.e)((te,se)=>{let Ne=[],He=0;te.subscribe((0,c.x)(se,rt=>{let yt=null;He++%z==0&&Ne.push([]);for(const gt of Ne)gt.push(rt),re<=gt.length&&(yt=null!=yt?yt:[],yt.push(gt));if(yt)for(const gt of yt)(0,Ln.P)(Ne,gt),se.next(gt)},()=>{for(const rt of Ne)se.next(rt);se.complete()},void 0,()=>{Ne=null}))})}function H(re,...z){var te,se;const Ne=null!==(te=(0,Rt.yG)(z))&&void 0!==te?te:ke.z,He=null!==(se=z[0])&&void 0!==se?se:null,rt=z[1]||1/0;return(0,m.e)((yt,gt)=>{let zt=[],Yt=!1;const mn=sn=>{const{buffer:fn,subs:vn}=sn;vn.unsubscribe(),(0,Ln.P)(zt,sn),gt.next(fn),Yt&&En()},En=()=>{if(zt){const sn=new u.w0;gt.add(sn);const vn={buffer:[],subs:sn};zt.push(vn),(0,Ge.f)(sn,Ne,()=>mn(vn),re)}};null!==He&&He>=0?(0,Ge.f)(gt,Ne,En,He,!0):Yt=!0,En();const Un=(0,c.x)(gt,sn=>{const fn=zt.slice();for(const vn of fn){const{buffer:pi}=vn;pi.push(sn),rt<=pi.length&&mn(vn)}},()=>{for(;null==zt?void 0:zt.length;)gt.next(zt.shift().buffer);null==Un||Un.unsubscribe(),gt.complete(),gt.unsubscribe()},void 0,()=>zt=null);yt.subscribe(Un)})}function Ie(re,z){return(0,m.e)((te,se)=>{const Ne=[];(0,ut.Xf)(re).subscribe((0,c.x)(se,He=>{const rt=[];Ne.push(rt);const yt=new u.w0;yt.add((0,ut.Xf)(z(He)).subscribe((0,c.x)(se,()=>{(0,Ln.P)(Ne,rt),se.next(rt),yt.unsubscribe()},bt.Z)))},bt.Z)),te.subscribe((0,c.x)(se,He=>{for(const rt of Ne)rt.push(He)},()=>{for(;Ne.length>0;)se.next(Ne.shift());se.complete()}))})}function W(re){return(0,m.e)((z,te)=>{let se=null,Ne=null;const He=()=>{null==Ne||Ne.unsubscribe();const rt=se;se=[],rt&&te.next(rt),(0,ut.Xf)(re()).subscribe(Ne=(0,c.x)(te,He,bt.Z))};He(),z.subscribe((0,c.x)(te,rt=>null==se?void 0:se.push(rt),()=>{se&&te.next(se),te.complete()},void 0,()=>se=Ne=null))})}var Oe=l(262),et=l(6099);function lt(re,z,te,se,Ne){return(He,rt)=>{let yt=te,gt=z,zt=0;He.subscribe((0,c.x)(rt,Yt=>{const mn=zt++;gt=yt?re(gt,Yt,mn):(yt=!0,Yt),se&&rt.next(gt)},Ne&&(()=>{yt&&rt.next(gt),rt.complete()})))}}function wt(re,z){return(0,m.e)(lt(re,z,arguments.length>=2,!1,!0))}const kt=(re,z)=>(re.push(z),re);function Zt(){return(0,m.e)((re,z)=>{wt(kt,[])(re).subscribe(z)})}function un(re,z){return(0,ct.z)(Zt(),(0,et.z)(te=>re(te)),z?(0,oe.Z)(z):Be.y)}function Lt(re){return un(ft.a,re)}const bn=Lt;function rn(...re){const z=(0,Rt.jO)(re);return z?(0,ct.z)(rn(...re),(0,oe.Z)(z)):(0,m.e)((te,se)=>{(0,ft.l)([te,...j(re)])(se)})}function An(...re){return rn(...re)}var Rn=l(7886),yn=l(4351);function Tn(re,z){return(0,_e.m)(z)?(0,yn.b)(()=>re,z):(0,yn.b)(()=>re)}function Cn(...re){return function ii(...re){const z=(0,Rt.yG)(re);return(0,m.e)((te,se)=>{(0,Rn.u)()((0,en.D)([te,...re],z)).subscribe(se)})}(...re)}const Zn={connector:()=>new b.x};function ri(re,z=Zn){const{connector:te}=z;return(0,m.e)((se,Ne)=>{const He=te();(0,en.D)(re(function an(re){return new i.y(z=>re.subscribe(z))}(He))).subscribe(Ne),Ne.add(se.subscribe(He))})}function Bn(re){return wt((z,te,se)=>!re||re(te,se)?z+1:z,0)}function jn(re){return(0,m.e)((z,te)=>{let se=!1,Ne=null,He=null;const rt=()=>{if(null==He||He.unsubscribe(),He=null,se){se=!1;const yt=Ne;Ne=null,te.next(yt)}};z.subscribe((0,c.x)(te,yt=>{null==He||He.unsubscribe(),se=!0,Ne=yt,He=(0,c.x)(te,rt,bt.Z),(0,ut.Xf)(re(yt)).subscribe(He)},()=>{rt(),te.complete()},void 0,()=>{Ne=He=null}))})}var ui=l(8372);function _i(re){return(0,m.e)((z,te)=>{let se=!1;z.subscribe((0,c.x)(te,Ne=>{se=!0,te.next(Ne)},()=>{se||te.next(re),te.complete()}))})}var si=l(4326),Fn=l(1260);function gr(){return(0,m.e)((re,z)=>{re.subscribe((0,c.x)(z,te=>Ue(te,z)))})}function Ki(re,z){return(0,m.e)((te,se)=>{const Ne=new Set;te.subscribe((0,c.x)(se,He=>{const rt=re?re(He):He;Ne.has(rt)||(Ne.add(rt),se.next(He))})),null==z||z.subscribe((0,c.x)(se,()=>Ne.clear(),bt.Z))})}var ir=l(1884);function Vn(re,z){return(0,ir.x)((te,se)=>z?z(te[re],se[re]):te[re]===se[re])}function $n(re=di){return(0,m.e)((z,te)=>{let se=!1;z.subscribe((0,c.x)(te,Ne=>{se=!0,te.next(Ne)},()=>se?te.complete():te.error(re())))})}function di(){return new me}var Fi=l(5698);function wr(re,z){if(re<0)throw new be;const te=arguments.length>=2;return se=>se.pipe((0,je.h)((Ne,He)=>He===re),(0,Fi.q)(1),te?_i(z):$n(()=>new be))}function ki(...re){return z=>(0,Dt.z)(z,(0,ie.of)(...re))}function _r(re,z){return(0,m.e)((te,se)=>{let Ne=0;te.subscribe((0,c.x)(se,He=>{re.call(z,He,Ne++,te)||(se.next(!1),se.complete())},()=>{se.next(!0),se.complete()}))})}function Mi(){return(0,m.e)((re,z)=>{let te=!1,se=null;re.subscribe((0,c.x)(z,Ne=>{se||(se=(0,ut.Xf)(Ne).subscribe((0,c.x)(z,void 0,()=>{se=null,te&&z.complete()})))},()=>{te=!0,!se&&z.complete()}))})}const Ni=Mi;var hi=l(4004);function rr(re,z){return z?te=>te.pipe(rr((se,Ne)=>(0,ut.Xf)(re(se,Ne)).pipe((0,hi.U)((He,rt)=>z(se,He,Ne,rt))))):(0,m.e)((te,se)=>{let Ne=0,He=null,rt=!1;te.subscribe((0,c.x)(se,yt=>{He||(He=(0,c.x)(se,void 0,()=>{He=null,rt&&se.complete()}),(0,ut.Xf)(re(yt,Ne++)).subscribe(He))},()=>{rt=!0,!He&&se.complete()}))})}var fi=l(2733);function yr(re,z=1/0,te){return z=(z||0)<1?1/0:z,(0,m.e)((se,Ne)=>(0,fi.p)(se,Ne,re,z,void 0,!0,te))}var or=l(8746);function Gi(re,z){return(0,m.e)(wi(re,z,"value"))}function wi(re,z,te){const se="index"===te;return(Ne,He)=>{let rt=0;Ne.subscribe((0,c.x)(He,yt=>{const gt=rt++;re.call(z,yt,gt,Ne)&&(He.next(se?gt:yt),He.complete())},()=>{He.next(se?-1:void 0),He.complete()}))}}function Si(re,z){return(0,m.e)(wi(re,z,"index"))}function sr(re,z){const te=arguments.length>=2;return se=>se.pipe(re?(0,je.h)((Ne,He)=>re(Ne,He,se)):Be.y,(0,Fi.q)(1),te?_i(z):$n(()=>new me))}function Li(re,z,te,se){return(0,m.e)((Ne,He)=>{let rt;z&&"function"!=typeof z?({duration:te,element:rt,connector:se}=z):rt=z;const yt=new Map,gt=sn=>{yt.forEach(sn),sn(He)},zt=sn=>gt(fn=>fn.error(sn));let Yt=0,mn=!1;const En=new c.Q(He,sn=>{try{const fn=re(sn);let vn=yt.get(fn);if(!vn){yt.set(fn,vn=se?se():new b.x);const pi=function Un(sn,fn){const vn=new i.y(pi=>{Yt++;const Cr=fn.subscribe(pi);return()=>{Cr.unsubscribe(),0==--Yt&&mn&&En.unsubscribe()}});return vn.key=sn,vn}(fn,vn);if(He.next(pi),te){const Cr=(0,c.x)(vn,()=>{vn.complete(),null==Cr||Cr.unsubscribe()},void 0,void 0,()=>yt.delete(fn));En.add((0,ut.Xf)(te(pi)).subscribe(Cr))}}vn.next(rt?rt(sn):sn)}catch(fn){zt(fn)}},()=>gt(sn=>sn.complete()),zt,()=>yt.clear(),()=>(mn=!0,0===Yt));Ne.subscribe(En)})}var Qi=l(8502);function Yn(){return(0,m.e)((re,z)=>{re.subscribe((0,c.x)(z,()=>{z.next(!1),z.complete()},()=>{z.next(!0),z.complete()}))})}function yi(re){return re<=0?()=>Pe.E:(0,m.e)((z,te)=>{let se=[];z.subscribe((0,c.x)(te,Ne=>{se.push(Ne),re<se.length&&se.shift()},()=>{for(const Ne of se)te.next(Ne);te.complete()},void 0,()=>{se=null}))})}function vi(re,z){const te=arguments.length>=2;return se=>se.pipe(re?(0,je.h)((Ne,He)=>re(Ne,He,se)):Be.y,yi(1),te?_i(z):$n(()=>new me))}var Bi=l(9718);function bi(){return(0,m.e)((re,z)=>{re.subscribe((0,c.x)(z,te=>{z.next(Ee.createNext(te))},()=>{z.next(Ee.createComplete()),z.complete()},te=>{z.next(Ee.createError(te)),z.complete()}))})}function vr(re){return wt((0,_e.m)(re)?(z,te)=>re(z,te)>0?z:te:(z,te)=>z>te?z:te)}var ji=l(8189);const Vi=et.z;function Zi(re,z,te=1/0){return(0,_e.m)(z)?(0,et.z)(()=>re,z,te):("number"==typeof z&&(te=z),(0,et.z)(()=>re,te))}function ti(re,z,te=1/0){return(0,m.e)((se,Ne)=>{let He=z;return(0,fi.p)(se,Ne,(rt,yt)=>re(He,rt,yt),te,rt=>{He=rt},!1,void 0,()=>He=null)})}function kn(...re){return function $i(...re){const z=(0,Rt.yG)(re),te=(0,Rt._6)(re,1/0);return re=j(re),(0,m.e)((se,Ne)=>{(0,ji.J)(te)((0,en.D)([se,...re],z)).subscribe(Ne)})}(...re)}function Hi(re){return wt((0,_e.m)(re)?(z,te)=>re(z,te)<0?z:te:(z,te)=>z<te?z:te)}function Ci(re,z){const te=(0,_e.m)(re)?re:()=>re;return(0,_e.m)(z)?ri(z,{connector:te}):se=>new _(se,te)}function Yi(){return(0,m.e)((re,z)=>{let te,se=!1;re.subscribe((0,c.x)(z,Ne=>{const He=te;te=Ne,se&&z.next([He,Ne]),se=!0}))})}function br(...re){const z=re.length;if(0===z)throw new Error("list of properties cannot be empty.");return(0,hi.U)(te=>{let se=te;for(let Ne=0;Ne<z;Ne++){const He=null==se?void 0:se[re[Ne]];if(void 0===He)return;se=He}return se})}function J(re){return re?z=>ri(re)(z):z=>Ci(new b.x)(z)}function f(re){return z=>{const te=new k.X(re);return new _(z,()=>te)}}function p(){return re=>{const z=new U;return new _(re,()=>z)}}function x(re,z,te,se){te&&!(0,_e.m)(te)&&(se=te);const Ne=(0,_e.m)(te)?te:void 0;return He=>Ci(new pe(re,z,se),Ne)(He)}function Q(...re){return re.length?(0,m.e)((z,te)=>{$e([z,...re])(te)}):Be.y}function fe(re){let te,z=1/0;return null!=re&&("object"==typeof re?({count:z=1/0,delay:te}=re):z=re),z<=0?()=>Pe.E:(0,m.e)((se,Ne)=>{let rt,He=0;const yt=()=>{if(null==rt||rt.unsubscribe(),rt=null,null!=te){const zt="number"==typeof te?(0,ue.H)(te):(0,ut.Xf)(te(He)),Yt=(0,c.x)(Ne,()=>{Yt.unsubscribe(),gt()});zt.subscribe(Yt)}else gt()},gt=()=>{let zt=!1;rt=se.subscribe((0,c.x)(Ne,void 0,()=>{++He<z?rt?yt():zt=!0:Ne.complete()})),zt&&yt()};gt()})}function y(re){return(0,m.e)((z,te)=>{let se,He,Ne=!1,rt=!1,yt=!1;const gt=()=>yt&&rt&&(te.complete(),!0),Yt=()=>{yt=!1,se=z.subscribe((0,c.x)(te,void 0,()=>{yt=!0,!gt()&&(He||(He=new b.x,re(He).subscribe((0,c.x)(te,()=>{se?Yt():Ne=!0},()=>{rt=!0,gt()}))),He).next()})),Ne&&(se.unsubscribe(),se=null,Ne=!1,Yt())};Yt()})}function R(re=1/0){let z;z=re&&"object"==typeof re?re:{count:re};const{count:te=1/0,delay:se,resetOnSuccess:Ne=!1}=z;return te<=0?Be.y:(0,m.e)((He,rt)=>{let gt,yt=0;const zt=()=>{let Yt=!1;gt=He.subscribe((0,c.x)(rt,mn=>{Ne&&(yt=0),rt.next(mn)},void 0,mn=>{if(yt++<te){const En=()=>{gt?(gt.unsubscribe(),gt=null,zt()):Yt=!0};if(null!=se){const Un="number"==typeof se?(0,ue.H)(se):(0,ut.Xf)(se(mn,yt)),sn=(0,c.x)(rt,()=>{sn.unsubscribe(),En()},()=>{rt.complete()});Un.subscribe(sn)}else En()}else rt.error(mn)})),Yt&&(gt.unsubscribe(),gt=null,zt())};zt()})}function C(re){return(0,m.e)((z,te)=>{let se,He,Ne=!1;const rt=()=>{se=z.subscribe((0,c.x)(te,void 0,void 0,yt=>{He||(He=new b.x,re(He).subscribe((0,c.x)(te,()=>se?rt():Ne=!0))),He&&He.next(yt)})),Ne&&(se.unsubscribe(),se=null,Ne=!1,rt())};rt()})}function V(re){return(0,m.e)((z,te)=>{let se=!1,Ne=null;z.subscribe((0,c.x)(te,He=>{se=!0,Ne=He})),re.subscribe((0,c.x)(te,()=>{if(se){se=!1;const He=Ne;Ne=null,te.next(He)}},bt.Z))})}function Te(re,z=ke.z){return V(Z(re,z))}function Ye(re,z){return(0,m.e)(lt(re,z,arguments.length>=2,!0))}function ot(re,z=((te,se)=>te===se)){return(0,m.e)((te,se)=>{const Ne={buffer:[],complete:!1},He={buffer:[],complete:!1},rt=gt=>{se.next(gt),se.complete()},yt=(gt,zt)=>{const Yt=(0,c.x)(se,mn=>{const{buffer:En,complete:Un}=zt;0===En.length?Un?rt(!1):gt.buffer.push(mn):!z(mn,En.shift())&&rt(!1)},()=>{gt.complete=!0;const{complete:mn,buffer:En}=zt;mn&&rt(0===En.length),null==Yt||Yt.unsubscribe()});return Yt};te.subscribe(yt(Ne,He)),re.subscribe(yt(He,Ne))})}var Pt=l(3099);function xt(re,z,te){var se,Ne;let He,rt=!1;return re&&"object"==typeof re?(He=null!==(se=re.bufferSize)&&void 0!==se?se:1/0,z=null!==(Ne=re.windowTime)&&void 0!==Ne?Ne:1/0,rt=!!re.refCount,te=re.scheduler):He=null!=re?re:1/0,(0,Pt.B)({connector:()=>new pe(He,z,te),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:rt})}function Vt(re){return(0,m.e)((z,te)=>{let Ne,se=!1,He=!1,rt=0;z.subscribe((0,c.x)(te,yt=>{He=!0,(!re||re(yt,rt++,z))&&(se&&te.error(new _t("Too many matching values")),se=!0,Ne=yt)},()=>{se?(te.next(Ne),te.complete()):te.error(He?new Xe("No matching values"):new me)}))})}var Gt=l(5684);function ln(re){return re<=0?Be.y:(0,m.e)((z,te)=>{let se=new Array(re),Ne=0;return z.subscribe((0,c.x)(te,He=>{const rt=Ne++;if(rt<re)se[rt]=He;else{const yt=rt%re,gt=se[yt];se[yt]=He,te.next(gt)}})),()=>{se=null}})}function F(re){return(0,m.e)((z,te)=>{let se=!1;const Ne=(0,c.x)(te,()=>{null==Ne||Ne.unsubscribe(),se=!0},bt.Z);(0,ut.Xf)(re).subscribe(Ne),z.subscribe((0,c.x)(te,He=>se&&te.next(He)))})}function A(re){return(0,m.e)((z,te)=>{let se=!1,Ne=0;z.subscribe((0,c.x)(te,He=>(se||(se=!re(He,Ne++)))&&te.next(He)))})}var I=l(8675),G=l(3900);function Ze(){return(0,G.w)(Be.y)}function At(re,z){return(0,_e.m)(z)?(0,G.w)(()=>re,z):(0,G.w)(()=>re)}function dn(re,z){return(0,m.e)((te,se)=>{let Ne=z;return(0,G.w)((He,rt)=>re(Ne,He,rt),(He,rt)=>(Ne=rt,rt))(te).subscribe(se),()=>{Ne=null}})}var wn=l(2722);function Ei(re,z=!1){return(0,m.e)((te,se)=>{let Ne=0;te.subscribe((0,c.x)(se,He=>{const rt=re(He,Ne++);(rt||z)&&se.next(He),!rt&&se.complete()}))})}var Di=l(8505);const Ii={leading:!0,trailing:!1};function Sr(re,z=Ii){return(0,m.e)((te,se)=>{const{leading:Ne,trailing:He}=z;let rt=!1,yt=null,gt=null,zt=!1;const Yt=()=>{null==gt||gt.unsubscribe(),gt=null,He&&(Un(),zt&&se.complete())},mn=()=>{gt=null,zt&&se.complete()},En=sn=>gt=(0,ut.Xf)(re(sn)).subscribe((0,c.x)(se,Yt,mn)),Un=()=>{if(rt){rt=!1;const sn=yt;yt=null,se.next(sn),!zt&&En(sn)}};te.subscribe((0,c.x)(se,sn=>{rt=!0,yt=sn,(!gt||gt.closed)&&(Ne?Un():En(sn))},()=>{zt=!0,(!(He&&rt&&gt)||gt.closed)&&se.complete()}))})}function Ct(re,z=ke.z,te=Ii){const se=(0,ue.H)(re,z);return Sr(()=>se,te)}function Mt(re=ke.z){return(0,m.e)((z,te)=>{let se=re.now();z.subscribe((0,c.x)(te,Ne=>{const He=re.now(),rt=He-se;se=He,te.next(new Qt(Ne,rt))}))})}class Qt{constructor(z,te){this.value=z,this.interval=te}}function jt(re,z,te){let se,Ne,He;if(te=null!=te?te:ke.P,(0,It.q)(re)?se=re:"number"==typeof re&&(Ne=re),!z)throw new TypeError("No observable provided to switch to");if(He=()=>z,null==se&&null==Ne)throw new TypeError("No timeout provided.");return ae({first:se,each:Ne,scheduler:te,with:He})}function hn(re=$.l){return(0,hi.U)(z=>({value:z,timestamp:re.now()}))}function In(re){return(0,m.e)((z,te)=>{let se=new b.x;te.next(se.asObservable());const Ne=He=>{se.error(He),te.error(He)};return z.subscribe((0,c.x)(te,He=>null==se?void 0:se.next(He),()=>{se.complete(),te.complete()},Ne)),re.subscribe((0,c.x)(te,()=>{se.complete(),te.next(se=new b.x)},bt.Z,Ne)),()=>{null==se||se.unsubscribe(),se=null}})}function Nn(re,z=0){const te=z>0?z:re;return(0,m.e)((se,Ne)=>{let He=[new b.x],rt=[],yt=0;Ne.next(He[0].asObservable()),se.subscribe((0,c.x)(Ne,gt=>{for(const Yt of He)Yt.next(gt);const zt=yt-re+1;if(zt>=0&&zt%te==0&&He.shift().complete(),++yt%te==0){const Yt=new b.x;He.push(Yt),Ne.next(Yt.asObservable())}},()=>{for(;He.length>0;)He.shift().complete();Ne.complete()},gt=>{for(;He.length>0;)He.shift().error(gt);Ne.error(gt)},()=>{rt=null,He=null}))})}function Jn(re,...z){var te,se;const Ne=null!==(te=(0,Rt.yG)(z))&&void 0!==te?te:ke.z,He=null!==(se=z[0])&&void 0!==se?se:null,rt=z[1]||1/0;return(0,m.e)((yt,gt)=>{let zt=[],Yt=!1;const mn=fn=>{const{window:vn,subs:pi}=fn;vn.complete(),pi.unsubscribe(),(0,Ln.P)(zt,fn),Yt&&En()},En=()=>{if(zt){const fn=new u.w0;gt.add(fn);const vn=new b.x,pi={window:vn,subs:fn,seen:0};zt.push(pi),gt.next(vn.asObservable()),(0,Ge.f)(fn,Ne,()=>mn(pi),re)}};null!==He&&He>=0?(0,Ge.f)(gt,Ne,En,He,!0):Yt=!0,En();const Un=fn=>zt.slice().forEach(fn),sn=fn=>{Un(({window:vn})=>fn(vn)),fn(gt),gt.unsubscribe()};return yt.subscribe((0,c.x)(gt,fn=>{Un(vn=>{vn.window.next(fn),rt<=++vn.seen&&mn(vn)})},()=>sn(fn=>fn.complete()),fn=>sn(vn=>vn.error(fn)))),()=>{zt=null}})}function Ti(re,z){return(0,m.e)((te,se)=>{const Ne=[],He=rt=>{for(;0<Ne.length;)Ne.shift().error(rt);se.error(rt)};(0,ut.Xf)(re).subscribe((0,c.x)(se,rt=>{const yt=new b.x;Ne.push(yt);const gt=new u.w0;let Yt;try{Yt=(0,ut.Xf)(z(rt))}catch(mn){return void He(mn)}se.next(yt.asObservable()),gt.add(Yt.subscribe((0,c.x)(se,()=>{(0,Ln.P)(Ne,yt),yt.complete(),gt.unsubscribe()},bt.Z,He)))},bt.Z)),te.subscribe((0,c.x)(se,rt=>{const yt=Ne.slice();for(const gt of yt)gt.next(rt)},()=>{for(;0<Ne.length;)Ne.shift().complete();se.complete()},He,()=>{for(;0<Ne.length;)Ne.shift().unsubscribe()}))})}function Pn(re){return(0,m.e)((z,te)=>{let se,Ne;const He=yt=>{se.error(yt),te.error(yt)},rt=()=>{let yt;null==Ne||Ne.unsubscribe(),null==se||se.complete(),se=new b.x,te.next(se.asObservable());try{yt=(0,ut.Xf)(re())}catch(gt){return void He(gt)}yt.subscribe(Ne=(0,c.x)(te,rt,rt,He))};rt(),z.subscribe((0,c.x)(te,yt=>se.next(yt),()=>{se.complete(),te.complete()},He,()=>{null==Ne||Ne.unsubscribe(),se=null}))})}function Ur(...re){const z=(0,Rt.jO)(re);return(0,m.e)((te,se)=>{const Ne=re.length,He=new Array(Ne);let rt=re.map(()=>!1),yt=!1;for(let gt=0;gt<Ne;gt++)(0,ut.Xf)(re[gt]).subscribe((0,c.x)(se,zt=>{He[gt]=zt,!yt&&!rt[gt]&&(rt[gt]=!0,(yt=rt.every(Be.y))&&(rt=null))},bt.Z));te.subscribe((0,c.x)(se,gt=>{if(yt){const zt=[gt,...He];se.next(z?z(...zt):zt)}}))})}function Ir(re){return un(nn,re)}function On(...re){return function Hn(...re){return(0,m.e)((z,te)=>{nn(z,...re).subscribe(te)})}(...re)}},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 P(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:he,source:ke}=this;U.add(he?he.call(U,ke):ke?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 he=new i.Hp({next:ke=>{try{k(ke)}catch(ge){U(ge),he.unsubscribe()}},error:U,complete:pe});this.subscribe(he)})}_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(he=>U=he,he=>pe(he),()=>$(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 P=new D(this,this);return P.operator=d,P}_throwIfClosed(){if(this.closed)throw new m.N}next(d){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const P=this.observers.slice();for(const M of P)M.next(d)}})}error(d){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=d;const{observers:P}=this;for(;P.length;)P.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:P,isStopped:M,observers:b}=this;return P||M?u.Lc:(b.push(d),new u.w0(()=>(0,c.P)(b,d)))}_checkFinalizedStatuses(d){const{hasError:P,thrownError:M,isStopped:b}=this;P?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,P;null===(P=null===(d=this.destination)||void 0===d?void 0:d.next)||void 0===P||P.call(d,S)}error(S){var d,P;null===(P=null===(d=this.destination)||void 0===d?void 0:d.error)||void 0===P||P.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,P;return null!==(P=null===(d=this.source)||void 0===d?void 0:d.subscribe(S))&&void 0!==P?P:u.Lc}}},930:(Ve,g,l)=>{"use strict";l.d(g,{Hp:()=>pe,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(ye,Y,ve){return{kind:ye,value:Y,error:ve}}var d=l(3410),P=l(2806);class M extends u.w0{constructor(Y){super(),this.isStopped=!1,Y?(this.destination=Y,(0,u.Nn)(Y)&&Y.add(this)):this.destination=ge}static create(Y,ve,xe){return new pe(Y,ve,xe)}next(Y){this.isStopped?ke(function T(ye){return S("N",ye,void 0)}(Y),this):this._next(Y)}error(Y){this.isStopped?ke(function D(ye){return S("E",void 0,ye)}(Y),this):(this.isStopped=!0,this._error(Y))}complete(){this.isStopped?ke(_,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Y){this.destination.next(Y)}_error(Y){try{this.destination.error(Y)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const b=Function.prototype.bind;function k(ye,Y){return b.call(ye,Y)}class ${constructor(Y){this.partialObserver=Y}next(Y){const{partialObserver:ve}=this;if(ve.next)try{ve.next(Y)}catch(xe){U(xe)}}error(Y){const{partialObserver:ve}=this;if(ve.error)try{ve.error(Y)}catch(xe){U(xe)}else U(Y)}complete(){const{partialObserver:Y}=this;if(Y.complete)try{Y.complete()}catch(ve){U(ve)}}}class pe extends M{constructor(Y,ve,xe){let Je;if(super(),(0,i.m)(Y)||!Y)Je={next:null!=Y?Y:void 0,error:null!=ve?ve:void 0,complete:null!=xe?xe:void 0};else{let at;this&&m.v.useDeprecatedNextContext?(at=Object.create(Y),at.unsubscribe=()=>this.unsubscribe(),Je={next:Y.next&&k(Y.next,at),error:Y.error&&k(Y.error,at),complete:Y.complete&&k(Y.complete,at)}):Je=Y}this.destination=new $(Je)}}function U(ye){m.v.useDeprecatedSynchronousErrorHandling?(0,P.O)(ye):(0,c.h)(ye)}function ke(ye,Y){const{onStoppedNotification:ve}=m.v;ve&&d.z.setTimeout(()=>ve(ye,Y))}const ge={closed:!0,next:s.Z,error:function he(ye){throw ye},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:P}=this;if((0,i.m)(P))try{P()}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:()=>P});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 he=new i.y(P(pe,k,U?ke=>(0,D.n)(U,ke):c.y));return $?he.pipe((0,s.Z)($)):he}function P(b,k,$=c.y){return pe=>{M(k,()=>{const{length:U}=b,he=new Array(U);let ke=U,ge=U;for(let ye=0;ye<U;ye++)M(k,()=>{const Y=(0,m.D)(b[ye],k);let ve=!1;Y.subscribe((0,T.x)(pe,xe=>{he[ye]=xe,ve||(ve=!0,ge--),ge||pe.next($(he.slice()))},()=>{--ke||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:P,keys:M}=(0,u.D)(S),b=new i.y(k=>{const{length:$}=P;if(!$)return void k.complete();const pe=new Array($);let U=$,he=$;for(let ke=0;ke<$;ke++){let ge=!1;(0,m.Xf)(P[ke]).subscribe((0,s.x)(k,ye=>{ge||(ge=!0,he--),pe[ke]=ye},()=>U--,void 0,()=>{(!U||!ge)&&(he||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,he){if((0,s.m)(U)&&(he=U,U=void 0),he)return d($,pe,U).pipe((0,_.Z)(he));const[ke,ge]=function k($){return(0,s.m)($.addEventListener)&&(0,s.m)($.removeEventListener)}($)?T.map(ye=>Y=>$[ye](pe,Y,U)):function M($){return(0,s.m)($.addListener)&&(0,s.m)($.removeListener)}($)?D.map(P($,pe)):function b($){return(0,s.m)($.on)&&(0,s.m)($.off)}($)?S.map(P($,pe)):[];if(!ke&&(0,c.z)($))return(0,m.z)(ye=>d(ye,pe,U))((0,i.Xf)($));if(!ke)throw new TypeError("Invalid event target");return new u.y(ye=>{const Y=(...ve)=>ye.next(1<ve.length?ve:ve[0]);return ke(Y),()=>ge(Y)})}function P($,pe){return U=>he=>$[U](pe,he)}},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),P=l(7849),M=l(8822);function b(ye){if(ye instanceof c.y)return ye;if(null!=ye){if((0,s.c)(ye))return function k(ye){return new c.y(Y=>{const ve=ye[M.L]();if((0,d.m)(ve.subscribe))return ve.subscribe(Y);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ye);if((0,u.z)(ye))return function $(ye){return new c.y(Y=>{for(let ve=0;ve<ye.length&&!Y.closed;ve++)Y.next(ye[ve]);Y.complete()})}(ye);if((0,m.t)(ye))return function pe(ye){return new c.y(Y=>{ye.then(ve=>{Y.closed||(Y.next(ve),Y.complete())},ve=>Y.error(ve)).then(null,P.h)})}(ye);if((0,_.D)(ye))return he(ye);if((0,T.T)(ye))return function U(ye){return new c.y(Y=>{for(const ve of ye)if(Y.next(ve),Y.closed)return;Y.complete()})}(ye);if((0,S.L)(ye))return function ke(ye){return he((0,S.Q)(ye))}(ye)}throw(0,D.z)(ye)}function he(ye){return new c.y(Y=>{(function ge(ye,Y){var ve,xe,Je,at;return(0,i.__awaiter)(this,void 0,void 0,function*(){try{for(ve=(0,i.__asyncValues)(ye);!(xe=yield ve.next()).done;)if(Y.next(xe.value),Y.closed)return}catch(ne){Je={error:ne}}finally{try{xe&&!xe.done&&(at=ve.return)&&(yield at.call(ve))}finally{if(Je)throw Je.error}}Y.complete()})})(ye,Y).catch(ve=>Y.error(ve))})}},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 P=(0,c.q)(_)?+_-T.now():_;P<0&&(P=0);let M=0;return T.schedule(function(){d.closed||(d.next(M++),0<=S?this.schedule(void 0,S):d.complete())},P)})}},5403:(Ve,g,l)=>{"use strict";l.d(g,{x:()=>u,Q:()=>m});var i=l(930);function u(c,s,_,D,T){return new m(c,s,_,D,T)}class m extends i.Lv{constructor(s,_,D,T,S,d){super(s),this.onFinalize=S,this.shouldUnsubscribe=d,this._next=_?function(P){try{_(P)}catch(M){s.error(M)}}:super._next,this._error=T?function(P){try{T(P)}catch(M){s.error(M)}finally{this.unsubscribe()}}:super._error,this._complete=D?function(){try{D()}catch(P){s.error(P)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var s;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:_}=this;super.unsubscribe(),!_&&(null===(s=this.onFinalize)||void 0===s||s.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,P=!1;const M=()=>{if(null==d||d.unsubscribe(),d=null,T){T=!1;const k=S;S=null,D.next(k)}P&&D.complete()},b=()=>{d=null,P&&D.complete()};_.subscribe((0,m.x)(D,k=>{T=!0,S=k,d||(0,u.Xf)(s(k)).subscribe(d=(0,m.x)(D,M,b))},()=>{P=!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((0,u.x)(D,void 0,void 0,P=>{d=(0,i.Xf)(s(P,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,P=null;const M=()=>{if(S){S.unsubscribe(),S=null;const k=d;d=null,T.next(k)}};function b(){const k=P+s,$=_.now();if($<k)return S=this.schedule(void 0,k-$),void T.add(S);M()}D.subscribe((0,m.x)(T,k=>{d=k,P=_.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,P=!0;T.subscribe((0,m.x)(S,M=>{const b=D(M);(P||!_(d,b))&&(P=!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((0,u.x)(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((0,u.x)(_,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((0,u.x)(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,P,M){const b=[];let k=0,$=0,pe=!1;const U=()=>{pe&&!b.length&&!k&&_.complete()},he=ge=>k<T?ke(ge):b.push(ge),ke=ge=>{d&&_.next(ge),k++;let ye=!1;(0,i.Xf)(D(ge,$++)).subscribe((0,m.x)(_,Y=>{null==S||S(Y),d?he(Y):_.next(Y)},()=>{ye=!0},void 0,()=>{if(ye)try{for(k--;b.length&&k<T;){const Y=b.shift();P?(0,u.f)(_,P,()=>ke(Y)):ke(Y)}U()}catch(Y){_.error(Y)}}))};return s.subscribe((0,m.x)(_,he,()=>{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,P)=>(0,i.U)((M,b)=>T(d,M,P,b))((0,u.Xf)(D(d,P))),S):("number"==typeof T&&(S=T),(0,m.e)((d,P)=>(0,c.p)(d,P,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((0,m.x)(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:P=!0,resetOnRefCountZero:M=!0}=T;return b=>{let k=null,$=null,pe=null,U=0,he=!1,ke=!1;const ge=()=>{null==$||$.unsubscribe(),$=null},ye=()=>{ge(),k=pe=null,he=ke=!1},Y=()=>{const ve=k;ye(),null==ve||ve.unsubscribe()};return(0,s.e)((ve,xe)=>{U++,!ke&&!he&&ge();const Je=pe=null!=pe?pe:S();xe.add(()=>{U--,0===U&&!ke&&!he&&($=D(Y,M))}),Je.subscribe(xe),k||(k=new c.Hp({next:at=>Je.next(at),error:at=>{ke=!0,ge(),$=D(ye,d,at),Je.error(at)},complete:()=>{he=!0,ge(),$=D(ye,P),Je.complete()}}),(0,i.D)(ve).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,P=!1;const M=()=>P&&!S&&T.complete();D.subscribe((0,m.x)(T,b=>{null==S||S.unsubscribe();let k=0;const $=d++;(0,i.Xf)(s(b,$)).subscribe(S=(0,m.x)(T,pe=>T.next(_?_(b,pe,$,k++):pe),()=>{S=null,M()}))},()=>{P=!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((0,m.x)(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((0,u.x)(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,P)=>{var M;null===(M=S.subscribe)||void 0===M||M.call(S);let b=!0;d.subscribe((0,m.x)(P,k=>{var $;null===($=S.next)||void 0===$||$.call(S,k),P.next(k)},()=>{var k;b=!1,null===(k=S.complete)||void 0===k||k.call(S),P.complete()},k=>{var $;b=!1,null===($=S.error)||void 0===$||$.call(S,k),P.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,P;try{({value:d,done:P}=S.next())}catch(M){return void T.error(M)}P?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:()=>ke});var i=l(8421),u=l(5363),m=l(9468),_=l(9751),T=l(6340),S=l(9672);function d(ge,ye){if(!ge)throw new Error("Iterable cannot be null");return new _.y(Y=>{(0,S.f)(Y,ye,()=>{const ve=ge[Symbol.asyncIterator]();(0,S.f)(Y,ye,()=>{ve.next().then(xe=>{xe.done?Y.complete():Y.next(xe.value)})},0,!0)})})}var P=l(3670),M=l(8239),b=l(1144),k=l(6495),$=l(2206),pe=l(4532),U=l(3260);function ke(ge,ye){if(null!=ge){if((0,P.c)(ge))return function c(ge,ye){return(0,i.Xf)(ge).pipe((0,m.R)(ye),(0,u.Q)(ye))}(ge,ye);if((0,b.z)(ge))return function D(ge,ye){return new _.y(Y=>{let ve=0;return ye.schedule(function(){ve===ge.length?Y.complete():(Y.next(ge[ve++]),Y.closed||this.schedule())})})}(ge,ye);if((0,M.t)(ge))return function s(ge,ye){return(0,i.Xf)(ge).pipe((0,m.R)(ye),(0,u.Q)(ye))}(ge,ye);if((0,$.D)(ge))return d(ge,ye);if((0,k.T)(ge))return(0,T.Q)(ge,ye);if((0,U.L)(ge))return function he(ge,ye){return d((0,U.Q)(ge),ye)}(ge,ye)}throw(0,pe.z)(ge)}},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(P){S=!0,d=P||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:P}=this;let M;S=S||P.shift();do{if(M=S.execute(S.state,S.delay))break}while((S=P[0])&&S.id===d&&P.shift());if(this._active=!1,M){for(;(S=P[0])&&S.id===d&&P.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,P=0){return null!==P&&P>0?super.requestAsyncId(S,d,P):(S.actions.push(this),S._scheduled||(S._scheduled=u.l.requestAnimationFrame(()=>S.flush(void 0))))}recycleAsyncId(S,d,P=0){if(null!=P&&P>0||null==P&&this.delay>0)return super.recycleAsyncId(S,d,P);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 he=this._scheduled;this._scheduled=void 0;const{actions:ke}=this;let ge;U=U||ke.shift();do{if(ge=U.execute(U.state,U.delay))break}while((U=ke[0])&&U.id===he&&ke.shift());if(this._active=!1,ge){for(;(U=ke[0])&&U.id===he&&ke.shift();)U.unsubscribe();throw ge}}}(class P extends i.o{constructor(U,he){super(U,he),this.scheduler=U,this.work=he}requestAsyncId(U,he,ke=0){return null!==ke&&ke>0?super.requestAsyncId(U,he,ke):(U.actions.push(this),U._scheduled||(U._scheduled=d.setImmediate(U.flush.bind(U,void 0))))}recycleAsyncId(U,he,ke=0){if(null!=ke&&ke>0||null==ke&&this.delay>0)return super.recycleAsyncId(U,he,ke);U.actions.some(ge=>ge.id===he)||(d.clearImmediate(he),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 P(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(P=>` jsonArgs["${(0,u.mangle)(P.name)}"] = ${(0,u.generateJsonRepresentation)(P.type,(0,u.mangle)(P.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 P=_(`${D}.${d.name}`,d.type);P&&S.push(P)}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:()=>P,__values:()=>M,__read:()=>b,__spread:()=>k,__spreadArrays:()=>$,__spreadArray:()=>pe,__await:()=>U,__asyncGenerator:()=>he,__asyncDelegator:()=>ke,__asyncValues:()=>ge,__makeTemplateObject:()=>ye,__importStar:()=>ve,__importDefault:()=>xe,__classPrivateFieldGet:()=>Je,__classPrivateFieldSet:()=>at});var i=function(ne,Fe){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,le){q.__proto__=le}||function(q,le){for(var Pe in le)Object.prototype.hasOwnProperty.call(le,Pe)&&(q[Pe]=le[Pe])})(ne,Fe)};function u(ne,Fe){if("function"!=typeof Fe&&null!==Fe)throw new TypeError("Class extends value "+String(Fe)+" is not a constructor or null");function q(){this.constructor=ne}i(ne,Fe),ne.prototype=null===Fe?Object.create(Fe):(q.prototype=Fe.prototype,new q)}var m=function(){return m=Object.assign||function(Fe){for(var q,le=1,Pe=arguments.length;le<Pe;le++)for(var ie in q=arguments[le])Object.prototype.hasOwnProperty.call(q,ie)&&(Fe[ie]=q[ie]);return Fe},m.apply(this,arguments)};function c(ne,Fe){var q={};for(var le in ne)Object.prototype.hasOwnProperty.call(ne,le)&&Fe.indexOf(le)<0&&(q[le]=ne[le]);if(null!=ne&&"function"==typeof Object.getOwnPropertySymbols){var Pe=0;for(le=Object.getOwnPropertySymbols(ne);Pe<le.length;Pe++)Fe.indexOf(le[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ne,le[Pe])&&(q[le[Pe]]=ne[le[Pe]])}return q}function s(ne,Fe,q,le){var Ke,Pe=arguments.length,ie=Pe<3?Fe:null===le?le=Object.getOwnPropertyDescriptor(Fe,q):le;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ie=Reflect.decorate(ne,Fe,q,le);else for(var _e=ne.length-1;_e>=0;_e--)(Ke=ne[_e])&&(ie=(Pe<3?Ke(ie):Pe>3?Ke(Fe,q,ie):Ke(Fe,q))||ie);return Pe>3&&ie&&Object.defineProperty(Fe,q,ie),ie}function _(ne,Fe){return function(q,le){Fe(q,le,ne)}}function D(ne,Fe){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(ne,Fe)}function T(ne,Fe,q,le){return new(q||(q=Promise))(function(ie,Ke){function _e(Ue){try{Ee(le.next(Ue))}catch(ct){Ke(ct)}}function tt(Ue){try{Ee(le.throw(Ue))}catch(ct){Ke(ct)}}function Ee(Ue){Ue.done?ie(Ue.value):function Pe(ie){return ie instanceof q?ie:new q(function(Ke){Ke(ie)})}(Ue.value).then(_e,tt)}Ee((le=le.apply(ne,Fe||[])).next())})}function S(ne,Fe){var le,Pe,ie,Ke,q={label:0,sent:function(){if(1&ie[0])throw ie[1];return ie[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(Ee){return function(Ue){return function tt(Ee){if(le)throw new TypeError("Generator is already executing.");for(;q;)try{if(le=1,Pe&&(ie=2&Ee[0]?Pe.return:Ee[0]?Pe.throw||((ie=Pe.return)&&ie.call(Pe),0):Pe.next)&&!(ie=ie.call(Pe,Ee[1])).done)return ie;switch(Pe=0,ie&&(Ee=[2&Ee[0],ie.value]),Ee[0]){case 0:case 1:ie=Ee;break;case 4:return q.label++,{value:Ee[1],done:!1};case 5:q.label++,Pe=Ee[1],Ee=[0];continue;case 7:Ee=q.ops.pop(),q.trys.pop();continue;default:if(!(ie=(ie=q.trys).length>0&&ie[ie.length-1])&&(6===Ee[0]||2===Ee[0])){q=0;continue}if(3===Ee[0]&&(!ie||Ee[1]>ie[0]&&Ee[1]<ie[3])){q.label=Ee[1];break}if(6===Ee[0]&&q.label<ie[1]){q.label=ie[1],ie=Ee;break}if(ie&&q.label<ie[2]){q.label=ie[2],q.ops.push(Ee);break}ie[2]&&q.ops.pop(),q.trys.pop();continue}Ee=Fe.call(ne,q)}catch(Ue){Ee=[6,Ue],Pe=0}finally{le=ie=0}if(5&Ee[0])throw Ee[1];return{value:Ee[0]?Ee[1]:void 0,done:!0}}([Ee,Ue])}}}var d=Object.create?function(ne,Fe,q,le){void 0===le&&(le=q),Object.defineProperty(ne,le,{enumerable:!0,get:function(){return Fe[q]}})}:function(ne,Fe,q,le){void 0===le&&(le=q),ne[le]=Fe[q]};function P(ne,Fe){for(var q in ne)"default"!==q&&!Object.prototype.hasOwnProperty.call(Fe,q)&&d(Fe,ne,q)}function M(ne){var Fe="function"==typeof Symbol&&Symbol.iterator,q=Fe&&ne[Fe],le=0;if(q)return q.call(ne);if(ne&&"number"==typeof ne.length)return{next:function(){return ne&&le>=ne.length&&(ne=void 0),{value:ne&&ne[le++],done:!ne}}};throw new TypeError(Fe?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(ne,Fe){var q="function"==typeof Symbol&&ne[Symbol.iterator];if(!q)return ne;var Pe,Ke,le=q.call(ne),ie=[];try{for(;(void 0===Fe||Fe-- >0)&&!(Pe=le.next()).done;)ie.push(Pe.value)}catch(_e){Ke={error:_e}}finally{try{Pe&&!Pe.done&&(q=le.return)&&q.call(le)}finally{if(Ke)throw Ke.error}}return ie}function k(){for(var ne=[],Fe=0;Fe<arguments.length;Fe++)ne=ne.concat(b(arguments[Fe]));return ne}function $(){for(var ne=0,Fe=0,q=arguments.length;Fe<q;Fe++)ne+=arguments[Fe].length;var le=Array(ne),Pe=0;for(Fe=0;Fe<q;Fe++)for(var ie=arguments[Fe],Ke=0,_e=ie.length;Ke<_e;Ke++,Pe++)le[Pe]=ie[Ke];return le}function pe(ne,Fe,q){if(q||2===arguments.length)for(var ie,le=0,Pe=Fe.length;le<Pe;le++)(ie||!(le in Fe))&&(ie||(ie=Array.prototype.slice.call(Fe,0,le)),ie[le]=Fe[le]);return ne.concat(ie||Array.prototype.slice.call(Fe))}function U(ne){return this instanceof U?(this.v=ne,this):new U(ne)}function he(ne,Fe,q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Pe,le=q.apply(ne,Fe||[]),ie=[];return Pe={},Ke("next"),Ke("throw"),Ke("return"),Pe[Symbol.asyncIterator]=function(){return this},Pe;function Ke(bt){le[bt]&&(Pe[bt]=function(Be){return new Promise(function(qe,X){ie.push([bt,Be,qe,X])>1||_e(bt,Be)})})}function _e(bt,Be){try{!function tt(bt){bt.value instanceof U?Promise.resolve(bt.value.v).then(Ee,Ue):ct(ie[0][2],bt)}(le[bt](Be))}catch(qe){ct(ie[0][3],qe)}}function Ee(bt){_e("next",bt)}function Ue(bt){_e("throw",bt)}function ct(bt,Be){bt(Be),ie.shift(),ie.length&&_e(ie[0][0],ie[0][1])}}function ke(ne){var Fe,q;return Fe={},le("next"),le("throw",function(Pe){throw Pe}),le("return"),Fe[Symbol.iterator]=function(){return this},Fe;function le(Pe,ie){Fe[Pe]=ne[Pe]?function(Ke){return(q=!q)?{value:U(ne[Pe](Ke)),done:"return"===Pe}:ie?ie(Ke):Ke}:ie}}function ge(ne){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var q,Fe=ne[Symbol.asyncIterator];return Fe?Fe.call(ne):(ne=M(ne),q={},le("next"),le("throw"),le("return"),q[Symbol.asyncIterator]=function(){return this},q);function le(ie){q[ie]=ne[ie]&&function(Ke){return new Promise(function(_e,tt){!function Pe(ie,Ke,_e,tt){Promise.resolve(tt).then(function(Ee){ie({value:Ee,done:_e})},Ke)}(_e,tt,(Ke=ne[ie](Ke)).done,Ke.value)})}}}function ye(ne,Fe){return Object.defineProperty?Object.defineProperty(ne,"raw",{value:Fe}):ne.raw=Fe,ne}var Y=Object.create?function(ne,Fe){Object.defineProperty(ne,"default",{enumerable:!0,value:Fe})}:function(ne,Fe){ne.default=Fe};function ve(ne){if(ne&&ne.__esModule)return ne;var Fe={};if(null!=ne)for(var q in ne)"default"!==q&&Object.prototype.hasOwnProperty.call(ne,q)&&d(Fe,ne,q);return Y(Fe,ne),Fe}function xe(ne){return ne&&ne.__esModule?ne:{default:ne}}function Je(ne,Fe,q,le){if("a"===q&&!le)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof Fe?ne!==Fe||!le:!Fe.has(ne))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===q?le:"a"===q?le.call(ne):le?le.value:Fe.get(ne)}function at(ne,Fe,q,le,Pe){if("m"===le)throw new TypeError("Private method is not writable");if("a"===le&&!Pe)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof Fe?ne!==Fe||!Pe:!Fe.has(ne))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===le?Pe.call(ne,q):Pe?Pe.value=q:Fe.set(ne,q),q}},1777:(Ve,g,l)=>{"use strict";l.d(g,{l3:()=>m,_j:()=>i,LC:()=>u,ZN:()=>he,jt:()=>s,F4:()=>d,vP:()=>D,SB:()=>S,oB:()=>T,eR:()=>P,X$:()=>c,ZE:()=>ke,k1:()=>ge});class i{}class u{}const m="*";function c(ye,Y){return{type:7,name:ye,definitions:Y,options:{}}}function s(ye,Y=null){return{type:4,styles:Y,timings:ye}}function D(ye,Y=null){return{type:2,steps:ye,options:Y}}function T(ye){return{type:6,styles:ye,offset:null}}function S(ye,Y,ve){return{type:0,name:ye,styles:Y,options:ve}}function d(ye){return{type:5,steps:ye}}function P(ye,Y,ve=null){return{type:1,expr:ye,animation:Y,options:ve}}function U(ye){Promise.resolve(null).then(ye)}class he{constructor(Y=0,ve=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Y+ve}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Y=>Y()),this._onDoneFns=[])}onStart(Y){this._onStartFns.push(Y)}onDone(Y){this._onDoneFns.push(Y)}onDestroy(Y){this._onDestroyFns.push(Y)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){U(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Y=>Y()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Y=>Y()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(Y){this._position=this.totalTime?Y*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Y){const ve="start"==Y?this._onStartFns:this._onDoneFns;ve.forEach(xe=>xe()),ve.length=0}}class ke{constructor(Y){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Y;let ve=0,xe=0,Je=0;const at=this.players.length;0==at?U(()=>this._onFinish()):this.players.forEach(ne=>{ne.onDone(()=>{++ve==at&&this._onFinish()}),ne.onDestroy(()=>{++xe==at&&this._onDestroy()}),ne.onStart(()=>{++Je==at&&this._onStart()})}),this.totalTime=this.players.reduce((ne,Fe)=>Math.max(ne,Fe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Y=>Y()),this._onDoneFns=[])}init(){this.players.forEach(Y=>Y.init())}onStart(Y){this._onStartFns.push(Y)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Y=>Y()),this._onStartFns=[])}onDone(Y){this._onDoneFns.push(Y)}onDestroy(Y){this._onDestroyFns.push(Y)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Y=>Y.play())}pause(){this.players.forEach(Y=>Y.pause())}restart(){this.players.forEach(Y=>Y.restart())}finish(){this._onFinish(),this.players.forEach(Y=>Y.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Y=>Y.destroy()),this._onDestroyFns.forEach(Y=>Y()),this._onDestroyFns=[])}reset(){this.players.forEach(Y=>Y.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Y){const ve=Y*this.totalTime;this.players.forEach(xe=>{const Je=xe.totalTime?Math.min(1,ve/xe.totalTime):1;xe.setPosition(Je)})}getPosition(){const Y=this.players.reduce((ve,xe)=>null===ve||xe.totalTime>ve.totalTime?xe:ve,null);return null!=Y?Y.getPosition():0}beforeDestroy(){this.players.forEach(Y=>{Y.beforeDestroy&&Y.beforeDestroy()})}triggerCallback(Y){const ve="start"==Y?this._onStartFns:this._onDoneFns;ve.forEach(xe=>xe()),ve.length=0}}const ge="!"},5664:(Ve,g,l)=>{"use strict";l.d(g,{rt:()=>tn,$s:()=>ne,kH:()=>en,Em:()=>ie,tE:()=>pn,qV:()=>mt,qm:()=>Kt,ic:()=>_e,X6:()=>Ae,yG:()=>ce});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),P=l(9300),M=l(4004),b=l(5698),k=l(5684),$=l(1884),pe=l(2722),U=l(3191),he=l(7144);function Y(ue,Z){return(ue.getAttribute(Z)||"").match(/\S+/g)||[]}const xe="cdk-describedby-message",Je="cdk-describedby-host";let at=0,ne=(()=>{class ue{constructor(N,O){this._platform=O,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+at++,this._document=N}describe(N,O,ee){if(!this._canBeDescribed(N,O))return;const E=Fe(O,ee);"string"!=typeof O?(q(O),this._messageRegistry.set(E,{messageElement:O,referenceCount:0})):this._messageRegistry.has(E)||this._createMessageElement(O,ee),this._isElementDescribedByMessage(N,E)||this._addMessageReference(N,E)}removeDescription(N,O,ee){var E;if(!O||!this._isElementNode(N))return;const j=Fe(O,ee);if(this._isElementDescribedByMessage(N,j)&&this._removeMessageReference(N,j),"string"==typeof O){const Le=this._messageRegistry.get(j);Le&&0===Le.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(`[${Je}="${this._id}"]`);for(let ee=0;ee<O.length;ee++)this._removeCdkDescribedByReferenceIds(O[ee]),O[ee].removeAttribute(Je);null===(N=this._messagesContainer)||void 0===N||N.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(N,O){const ee=this._document.createElement("div");q(ee),ee.textContent=N,O&&ee.setAttribute("role",O),this._createMessagesContainer(),this._messagesContainer.appendChild(ee),this._messageRegistry.set(Fe(N,O),{messageElement:ee,referenceCount:0})}_deleteMessageElement(N){var O,ee;null===(ee=null===(O=this._messageRegistry.get(N))||void 0===O?void 0:O.messageElement)||void 0===ee||ee.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 ee=this._document.createElement("div");ee.style.visibility="hidden",ee.classList.add(N),ee.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&ee.setAttribute("platform","server"),this._document.body.appendChild(ee),this._messagesContainer=ee}_removeCdkDescribedByReferenceIds(N){const O=Y(N,"aria-describedby").filter(ee=>0!=ee.indexOf(xe));N.setAttribute("aria-describedby",O.join(" "))}_addMessageReference(N,O){const ee=this._messageRegistry.get(O);(function ge(ue,Z,N){const O=Y(ue,Z);O.some(ee=>ee.trim()==N.trim())||(O.push(N.trim()),ue.setAttribute(Z,O.join(" ")))})(N,"aria-describedby",ee.messageElement.id),N.setAttribute(Je,this._id),ee.referenceCount++}_removeMessageReference(N,O){const ee=this._messageRegistry.get(O);ee.referenceCount--,function ye(ue,Z,N){const ee=Y(ue,Z).filter(E=>E!=N.trim());ee.length?ue.setAttribute(Z,ee.join(" ")):ue.removeAttribute(Z)}(N,"aria-describedby",ee.messageElement.id),N.removeAttribute(Je)}_isElementDescribedByMessage(N,O){const ee=Y(N,"aria-describedby"),E=this._messageRegistry.get(O),j=E&&E.messageElement.id;return!!j&&-1!=ee.indexOf(j)}_canBeDescribed(N,O){if(!this._isElementNode(N))return!1;if(O&&"object"==typeof O)return!0;const ee=null==O?"":`${O}`.trim(),E=N.getAttribute("aria-label");return!(!ee||E&&E.trim()===ee)}_isElementNode(N){return N.nodeType===this._document.ELEMENT_NODE}}return ue.\u0275fac=function(N){return new(N||ue)(u.\u0275\u0275inject(i.DOCUMENT),u.\u0275\u0275inject(m.t4))},ue.\u0275prov=u.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();function Fe(ue,Z){return"string"==typeof ue?`${Z||""}/${ue}`:ue}function q(ue){ue.id||(ue.id=`${xe}-${at++}`)}class ie extends class le{constructor(Z){this._items=Z,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,Z instanceof u.QueryList&&Z.changes.subscribe(N=>{if(this._activeItem){const ee=N.toArray().indexOf(this._activeItem);ee>-1&&ee!==this._activeItemIndex&&(this._activeItemIndex=ee)}})}skipPredicate(Z){return this._skipPredicateFn=Z,this}withWrap(Z=!0){return this._wrap=Z,this}withVerticalOrientation(Z=!0){return this._vertical=Z,this}withHorizontalOrientation(Z){return this._horizontal=Z,this}withAllowedModifierKeys(Z){return this._allowedModifierKeys=Z,this}withTypeAhead(Z=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,S.b)(N=>this._pressedLetters.push(N)),(0,d.b)(Z),(0,P.h)(()=>this._pressedLetters.length>0),(0,M.U)(()=>this._pressedLetters.join(""))).subscribe(N=>{const O=this._getItemsArray();for(let ee=1;ee<O.length+1;ee++){const E=(this._activeItemIndex+ee)%O.length,j=O[E];if(!this._skipPredicateFn(j)&&0===j.getLabel().toUpperCase().trim().indexOf(N)){this.setActiveItem(E);break}}this._pressedLetters=[]}),this}withHomeAndEnd(Z=!0){return this._homeAndEnd=Z,this}setActiveItem(Z){const N=this._activeItem;this.updateActiveItem(Z),this._activeItem!==N&&this.change.next(this._activeItemIndex)}onKeydown(Z){const N=Z.keyCode,ee=["altKey","ctrlKey","metaKey","shiftKey"].every(E=>!Z[E]||this._allowedModifierKeys.indexOf(E)>-1);switch(N){case T.Mf:return void this.tabOut.next();case T.JH:if(this._vertical&&ee){this.setNextItemActive();break}return;case T.LH:if(this._vertical&&ee){this.setPreviousItemActive();break}return;case T.SV:if(this._horizontal&&ee){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case T.oh:if(this._horizontal&&ee){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case T.Sd:if(this._homeAndEnd&&ee){this.setFirstItemActive();break}return;case T.uR:if(this._homeAndEnd&&ee){this.setLastItemActive();break}return;default:return void((ee||(0,T.Vb)(Z,"shiftKey"))&&(Z.key&&1===Z.key.length?this._letterKeyStream.next(Z.key.toLocaleUpperCase()):(N>=T.A&&N<=T.Z||N>=T.xE&&N<=T.aO)&&this._letterKeyStream.next(String.fromCharCode(N))))}this._pressedLetters=[],Z.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(Z){const N=this._getItemsArray(),O="number"==typeof Z?Z:N.indexOf(Z),ee=N[O];this._activeItem=null==ee?null:ee,this._activeItemIndex=O}_setActiveItemByDelta(Z){this._wrap?this._setActiveInWrapMode(Z):this._setActiveInDefaultMode(Z)}_setActiveInWrapMode(Z){const N=this._getItemsArray();for(let O=1;O<=N.length;O++){const ee=(this._activeItemIndex+Z*O+N.length)%N.length;if(!this._skipPredicateFn(N[ee]))return void this.setActiveItem(ee)}}_setActiveInDefaultMode(Z){this._setActiveItemByIndex(this._activeItemIndex+Z,Z)}_setActiveItemByIndex(Z,N){const O=this._getItemsArray();if(O[Z]){for(;this._skipPredicateFn(O[Z]);)if(!O[Z+=N])return;this.setActiveItem(Z)}}_getItemsArray(){return this._items instanceof u.QueryList?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Z){return this._origin=Z,this}setActiveItem(Z){super.setActiveItem(Z),this.activeItem&&this.activeItem.focus(this._origin)}}let _e=(()=>{class ue{constructor(N){this._platform=N}isDisabled(N){return N.hasAttribute("disabled")}isVisible(N){return function Ee(ue){return!!(ue.offsetWidth||ue.offsetHeight||"function"==typeof ue.getClientRects&&ue.getClientRects().length)}(N)&&"visible"===getComputedStyle(N).visibility}isTabbable(N){if(!this._platform.isBrowser)return!1;const O=function tt(ue){try{return ue.frameElement}catch(Z){return null}}(function be(ue){return ue.ownerDocument&&ue.ownerDocument.defaultView||window}(N));if(O&&(-1===me(O)||!this.isVisible(O)))return!1;let ee=N.nodeName.toLowerCase(),E=me(N);return N.hasAttribute("contenteditable")?-1!==E:!("iframe"===ee||"object"===ee||this._platform.WEBKIT&&this._platform.IOS&&!function Se(ue){let Z=ue.nodeName.toLowerCase(),N="input"===Z&&ue.type;return"text"===N||"password"===N||"select"===Z||"textarea"===Z}(N))&&("audio"===ee?!!N.hasAttribute("controls")&&-1!==E:"video"===ee?-1!==E&&(null!==E||this._platform.FIREFOX||N.hasAttribute("controls")):N.tabIndex>=0)}isFocusable(N,O){return function Re(ue){return!function ct(ue){return function Be(ue){return"input"==ue.nodeName.toLowerCase()}(ue)&&"hidden"==ue.type}(ue)&&(function Ue(ue){let Z=ue.nodeName.toLowerCase();return"input"===Z||"select"===Z||"button"===Z||"textarea"===Z}(ue)||function bt(ue){return function qe(ue){return"a"==ue.nodeName.toLowerCase()}(ue)&&ue.hasAttribute("href")}(ue)||ue.hasAttribute("contenteditable")||X(ue))}(N)&&!this.isDisabled(N)&&((null==O?void 0:O.ignoreVisibility)||this.isVisible(N))}}return ue.\u0275fac=function(N){return new(N||ue)(u.\u0275\u0275inject(m.t4))},ue.\u0275prov=u.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();function X(ue){if(!ue.hasAttribute("tabindex")||void 0===ue.tabIndex)return!1;let Z=ue.getAttribute("tabindex");return!(!Z||isNaN(parseInt(Z,10)))}function me(ue){if(!X(ue))return null;const Z=parseInt(ue.getAttribute("tabindex")||"",10);return isNaN(Z)?-1:Z}class Xe{constructor(Z,N,O,ee,E=!1){this._element=Z,this._checker=N,this._ngZone=O,this._document=ee,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,E||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Z){this._enabled=Z,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Z,this._startAnchor),this._toggleAnchorTabIndex(Z,this._endAnchor))}destroy(){const Z=this._startAnchor,N=this._endAnchor;Z&&(Z.removeEventListener("focus",this.startAnchorListener),Z.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(Z){return new Promise(N=>{this._executeOnStable(()=>N(this.focusInitialElement(Z)))})}focusFirstTabbableElementWhenReady(Z){return new Promise(N=>{this._executeOnStable(()=>N(this.focusFirstTabbableElement(Z)))})}focusLastTabbableElementWhenReady(Z){return new Promise(N=>{this._executeOnStable(()=>N(this.focusLastTabbableElement(Z)))})}_getRegionBoundary(Z){const N=this._element.querySelectorAll(`[cdk-focus-region-${Z}], [cdkFocusRegion${Z}], [cdk-focus-${Z}]`);return"start"==Z?N.length?N[0]:this._getFirstTabbableElement(this._element):N.length?N[N.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Z){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(Z),!!O}return N.focus(Z),!0}return this.focusFirstTabbableElement(Z)}focusFirstTabbableElement(Z){const N=this._getRegionBoundary("start");return N&&N.focus(Z),!!N}focusLastTabbableElement(Z){const N=this._getRegionBoundary("end");return N&&N.focus(Z),!!N}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Z){if(this._checker.isFocusable(Z)&&this._checker.isTabbable(Z))return Z;const N=Z.children;for(let O=0;O<N.length;O++){const ee=N[O].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(N[O]):null;if(ee)return ee}return null}_getLastTabbableElement(Z){if(this._checker.isFocusable(Z)&&this._checker.isTabbable(Z))return Z;const N=Z.children;for(let O=N.length-1;O>=0;O--){const ee=N[O].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(N[O]):null;if(ee)return ee}return null}_createAnchor(){const Z=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Z),Z.classList.add("cdk-visually-hidden"),Z.classList.add("cdk-focus-trap-anchor"),Z.setAttribute("aria-hidden","true"),Z}_toggleAnchorTabIndex(Z,N){Z?N.setAttribute("tabindex","0"):N.removeAttribute("tabindex")}toggleAnchors(Z){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Z,this._startAnchor),this._toggleAnchorTabIndex(Z,this._endAnchor))}_executeOnStable(Z){this._ngZone.isStable?Z():this._ngZone.onStable.pipe((0,b.q)(1)).subscribe(Z)}}let mt=(()=>{class ue{constructor(N,O,ee){this._checker=N,this._ngZone=O,this._document=ee}create(N,O=!1){return new Xe(N,this._checker,this._ngZone,this._document,O)}}return ue.\u0275fac=function(N){return new(N||ue)(u.\u0275\u0275inject(_e),u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(i.DOCUMENT))},ue.\u0275prov=u.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();function Ae(ue){return 0===ue.buttons||0===ue.offsetX&&0===ue.offsetY}function ce(ue){const Z=ue.touches&&ue.touches[0]||ue.changedTouches&&ue.changedTouches[0];return!(!Z||-1!==Z.identifier||null!=Z.radiusX&&1!==Z.radiusX||null!=Z.radiusY&&1!==Z.radiusY)}const we=new u.InjectionToken("cdk-input-modality-detector-options"),De={ignoreKeys:[T.zL,T.jx,T.b2,T.MW,T.JU]},Ce=(0,m.i$)({passive:!0,capture:!0});let Qe=(()=>{class ue{constructor(N,O,ee,E){this._platform=N,this._mostRecentTarget=null,this._modality=new _.X(null),this._lastTouchMs=0,this._onKeydown=j=>{var Le,st;(null===(st=null===(Le=this._options)||void 0===Le?void 0:Le.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(Ae(j)?"keyboard":"mouse"),this._mostRecentTarget=(0,m.sA)(j))},this._onTouchstart=j=>{ce(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({},De),E),this.modalityDetected=this._modality.pipe((0,k.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,$.x)()),N.isBrowser&&O.runOutsideAngular(()=>{ee.addEventListener("keydown",this._onKeydown,Ce),ee.addEventListener("mousedown",this._onMousedown,Ce),ee.addEventListener("touchstart",this._onTouchstart,Ce)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ce),document.removeEventListener("mousedown",this._onMousedown,Ce),document.removeEventListener("touchstart",this._onTouchstart,Ce))}}return ue.\u0275fac=function(N){return new(N||ue)(u.\u0275\u0275inject(m.t4),u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(i.DOCUMENT),u.\u0275\u0275inject(we,8))},ue.\u0275prov=u.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();const Jt=new u.InjectionToken("cdk-focus-monitor-default-options"),Ft=(0,m.i$)({passive:!0,capture:!0});let pn=(()=>{class ue{constructor(N,O,ee,E,j){this._ngZone=N,this._platform=O,this._inputModalityDetector=ee,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=Le=>{const st=(0,m.sA)(Le),Wt="focus"===Le.type?this._onFocus:this._onBlur;for(let Ht=st;Ht;Ht=Ht.parentElement)Wt.call(this,Le,Ht)},this._document=E,this._detectionMode=(null==j?void 0:j.detectionMode)||0}monitor(N,O=!1){const ee=(0,U.fI)(N);if(!this._platform.isBrowser||1!==ee.nodeType)return(0,D.of)(null);const E=(0,m.kV)(ee)||this._getDocument(),j=this._elementInfo.get(ee);if(j)return O&&(j.checkChildren=!0),j.subject;const Le={checkChildren:O,subject:new c.x,rootNode:E};return this._elementInfo.set(ee,Le),this._registerGlobalListeners(Le),Le.subject}stopMonitoring(N){const O=(0,U.fI)(N),ee=this._elementInfo.get(O);ee&&(ee.subject.complete(),this._setClasses(O),this._elementInfo.delete(O),this._removeGlobalListeners(ee))}focusVia(N,O,ee){const E=(0,U.fI)(N);E===this._getDocument().activeElement?this._getClosestElementsInfo(E).forEach(([Le,st])=>this._originChanged(Le,O,st)):(this._setOrigin(O),"function"==typeof E.focus&&E.focus(ee))}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 ee=this._elementInfo.get(O),E=(0,m.sA)(N);!ee||!ee.checkChildren&&O!==E||this._originChanged(O,this._getFocusOrigin(E),ee)}_onBlur(N,O){const ee=this._elementInfo.get(O);!ee||ee.checkChildren&&N.relatedTarget instanceof Node&&O.contains(N.relatedTarget)||(this._setClasses(O),this._emitOrigin(ee.subject,null))}_emitOrigin(N,O){this._ngZone.run(()=>N.next(O))}_registerGlobalListeners(N){if(!this._platform.isBrowser)return;const O=N.rootNode,ee=this._rootNodeFocusListenerCount.get(O)||0;ee||this._ngZone.runOutsideAngular(()=>{O.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ft),O.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ft)}),this._rootNodeFocusListenerCount.set(O,ee+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 ee=this._rootNodeFocusListenerCount.get(O);ee>1?this._rootNodeFocusListenerCount.set(O,ee-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,ee){this._setClasses(N,O),this._emitOrigin(ee.subject,O),this._lastFocusOrigin=O}_getClosestElementsInfo(N){const O=[];return this._elementInfo.forEach((ee,E)=>{(E===N||ee.checkChildren&&E.contains(N))&&O.push([E,ee])}),O}}return ue.\u0275fac=function(N){return new(N||ue)(u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(m.t4),u.\u0275\u0275inject(Qe),u.\u0275\u0275inject(i.DOCUMENT,8),u.\u0275\u0275inject(Jt,8))},ue.\u0275prov=u.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),en=(()=>{class ue{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 ue.\u0275fac=function(N){return new(N||ue)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(pn))},ue.\u0275dir=u.\u0275\u0275defineDirective({type:ue,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),ue})();const $t="cdk-high-contrast-black-on-white",Tt="cdk-high-contrast-white-on-black",cn="cdk-high-contrast-active";let Kt=(()=>{class ue{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,ee=O&&O.getComputedStyle?O.getComputedStyle(N):null,E=(ee&&ee.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(cn),N.remove($t),N.remove(Tt),this._hasCheckedHighContrastMode=!0;const O=this.getHighContrastMode();1===O?(N.add(cn),N.add($t)):2===O&&(N.add(cn),N.add(Tt))}}}return ue.\u0275fac=function(N){return new(N||ue)(u.\u0275\u0275inject(m.t4),u.\u0275\u0275inject(i.DOCUMENT))},ue.\u0275prov=u.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),tn=(()=>{class ue{constructor(N){N._applyBodyHighContrastModeCssClasses()}}return ue.\u0275fac=function(N){return new(N||ue)(u.\u0275\u0275inject(Kt))},ue.\u0275mod=u.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=u.\u0275\u0275defineInjector({imports:[[m.ud,he.Q8]]}),ue})()},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 P=(null==d?void 0:d.toLowerCase())||"";return"auto"===P&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?s.test(navigator.language)?"rtl":"ltr":"rtl"===P?"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:()=>P,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((he,ke,ge)=>{let ye,Y;if(null==he.previousIndex){const ve=$(he,ke,ge);ye=k.createEmbeddedView(ve.templateRef,ve.context,ve.index),Y=1}else null==ge?(k.remove(ke),Y=3):(ye=k.get(ke),k.move(ye,ge),Y=2);U&&U({context:null==ye?void 0:ye.context,operation:Y,record:he})})}detach(){}}class D{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(b,k,$,pe,U){b.forEachOperation((he,ke,ge)=>{let ye,Y;null==he.previousIndex?(ye=this._insertView(()=>$(he,ke,ge),ge,k,pe(he)),Y=ye?1:0):null==ge?(this._detachAndCacheView(ke,k),Y=3):(ye=this._moveView(ke,ge,k,pe(he)),Y=2),U&&U({context:null==ye?void 0:ye.context,operation:Y,record:he})})}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 he=b();return $.createEmbeddedView(he.templateRef,he.context,he.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 P=new u.InjectionToken("_ViewRepeater")},1159:(Ve,g,l)=>{"use strict";l.d(g,{A:()=>bt,zL:()=>T,ZH:()=>u,jx:()=>D,yY:()=>xe,JH:()=>ge,uR:()=>$,K5:()=>s,hY:()=>P,Sd:()=>pe,oh:()=>U,b2:()=>ii,MW:()=>Dt,aO:()=>_e,SV:()=>ke,JU:()=>_,L_:()=>M,Mf:()=>m,LH:()=>he,Z:()=>ft,xE:()=>Je,Vb:()=>Cn});const u=8,m=9,s=13,_=16,D=17,T=18,P=27,M=32,$=35,pe=36,U=37,he=38,ke=39,ge=40,xe=46,Je=48,_e=57,bt=65,ft=90,Dt=91,ii=224;function Cn(an,...Zn){return Zn.length?Zn.some(ri=>an[ri]):an.altKey||an.shiftKey||an.ctrlKey||an.metaKey}},5113:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{BreakpointObserver:()=>ge,Breakpoints:()=>Y,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),P=l(8675),M=l(2722),b=l(925);let k=(()=>{class ve{}return ve.\u0275fac=function(Je){return new(Je||ve)},ve.\u0275mod=i.\u0275\u0275defineNgModule({type:ve}),ve.\u0275inj=i.\u0275\u0275defineInjector({}),ve})();const $=new Set;let pe,U=(()=>{class ve{constructor(Je){this._platform=Je,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ke}matchMedia(Je){return(this._platform.WEBKIT||this._platform.BLINK)&&function he(ve){if(!$.has(ve))try{pe||(pe=document.createElement("style"),pe.setAttribute("type","text/css"),document.head.appendChild(pe)),pe.sheet&&(pe.sheet.insertRule(`@media ${ve} {body{ }}`,0),$.add(ve))}catch(xe){console.error(xe)}}(Je),this._matchMedia(Je)}}return ve.\u0275fac=function(Je){return new(Je||ve)(i.\u0275\u0275inject(b.t4))},ve.\u0275prov=i.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();function ke(ve){return{matches:"all"===ve||""===ve,media:ve,addListener:()=>{},removeListener:()=>{}}}let ge=(()=>{class ve{constructor(Je,at){this._mediaMatcher=Je,this._zone=at,this._queries=new Map,this._destroySubject=new m.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Je){return ye((0,u.Eq)(Je)).some(ne=>this._registerQuery(ne).mql.matches)}observe(Je){const ne=ye((0,u.Eq)(Je)).map(q=>this._registerQuery(q).observable);let Fe=(0,c.a)(ne);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)(q=>{const le={matches:!1,breakpoints:{}};return q.forEach(({matches:Pe,query:ie})=>{le.matches=le.matches||Pe,le.breakpoints[ie]=Pe}),le}))}_registerQuery(Je){if(this._queries.has(Je))return this._queries.get(Je);const at=this._mediaMatcher.matchMedia(Je),Fe={observable:new _.y(q=>{const le=Pe=>this._zone.run(()=>q.next(Pe));return at.addListener(le),()=>{at.removeListener(le)}}).pipe((0,P.O)(at),(0,d.U)(({matches:q})=>({query:Je,matches:q})),(0,M.R)(this._destroySubject)),mql:at};return this._queries.set(Je,Fe),Fe}}return ve.\u0275fac=function(Je){return new(Je||ve)(i.\u0275\u0275inject(U),i.\u0275\u0275inject(i.NgZone))},ve.\u0275prov=i.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();function ye(ve){return ve.map(xe=>xe.split(",")).reduce((xe,Je)=>xe.concat(Je)).map(xe=>xe.trim())}const Y={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:()=>me,X_:()=>Y,Xj:()=>q,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),P=l(5698),M=l(2722);const b=(0,s.Mq)();class k{constructor(L,ae){this._viewportRuler=L,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ae}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,Ae=L.style,ce=this._document.body.style,we=Ae.scrollBehavior||"",De=ce.scrollBehavior||"";this._isEnabled=!1,Ae.left=this._previousHTMLStyles.left,Ae.top=this._previousHTMLStyles.top,L.classList.remove("cdk-global-scrollblock"),b&&(Ae.scrollBehavior=ce.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),b&&(Ae.scrollBehavior=we,ce.scrollBehavior=De)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ae=this._document.body,Ae=this._viewportRuler.getViewportSize();return ae.scrollHeight>Ae.height||ae.scrollWidth>Ae.width}}class pe{constructor(L,ae,Ae,ce){this._scrollDispatcher=L,this._ngZone=ae,this._viewportRuler=Ae,this._config=ce,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 ae=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ae-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 he(Ge,L){return L.some(ae=>Ge.bottom<ae.top||Ge.top>ae.bottom||Ge.right<ae.left||Ge.left>ae.right)}function ke(Ge,L){return L.some(ae=>Ge.top<ae.top||Ge.bottom>ae.bottom||Ge.left<ae.left||Ge.right>ae.right)}class ge{constructor(L,ae,Ae,ce){this._scrollDispatcher=L,this._viewportRuler=ae,this._ngZone=Ae,this._config=ce,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 ae=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ae,height:ce}=this._viewportRuler.getViewportSize();he(ae,[{width:Ae,height:ce,bottom:ce,right:Ae,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 ye=(()=>{class Ge{constructor(ae,Ae,ce,we){this._scrollDispatcher=ae,this._viewportRuler=Ae,this._ngZone=ce,this.noop=()=>new U,this.close=De=>new pe(this._scrollDispatcher,this._ngZone,this._viewportRuler,De),this.block=()=>new k(this._viewportRuler,this._document),this.reposition=De=>new ge(this._scrollDispatcher,this._viewportRuler,this._ngZone,De),this._document=we}}return Ge.\u0275fac=function(ae){return new(ae||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 Y{constructor(L){if(this.scrollStrategy=new U,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,L){const ae=Object.keys(L);for(const Ae of ae)void 0!==L[Ae]&&(this[Ae]=L[Ae])}}}class Je{constructor(L,ae){this.connectionPair=L,this.scrollableViewProperties=ae}}class Fe{constructor(L,ae,Ae,ce,we,De,oe,Ce,Qe){this._portalOutlet=L,this._host=ae,this._pane=Ae,this._config=ce,this._ngZone=we,this._keyboardDispatcher=De,this._document=oe,this._location=Ce,this._outsideClickDispatcher=Qe,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,ce.scrollStrategy&&(this._scrollStrategy=ce.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ce.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(L){let ae=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,P.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),ae}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 ae=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,ae&&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 ae;const Ae=()=>{L&&(L.removeEventListener("click",this._backdropClickHandler),L.removeEventListener("transitionend",Ae),this._disposeBackdrop(L)),this._config.backdropClass&&this._toggleClasses(L,this._config.backdropClass,!1),clearTimeout(ae)};L.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{L.addEventListener("transitionend",Ae)}),L.style.pointerEvents="none",ae=this._ngZone.runOutsideAngular(()=>setTimeout(Ae,500))}_toggleClasses(L,ae,Ae){const ce=(0,c.Eq)(ae||[]).filter(we=>!!we);ce.length&&(Ae?L.classList.add(...ce):L.classList.remove(...ce))}_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 q=(()=>{class Ge{constructor(ae,Ae){this._platform=Ae,this._document=ae}ngOnDestroy(){var ae;null===(ae=this._containerElement)||void 0===ae||ae.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ae="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const ce=this._document.querySelectorAll(`.${ae}[platform="server"], .${ae}[platform="test"]`);for(let we=0;we<ce.length;we++)ce[we].remove()}const Ae=this._document.createElement("div");Ae.classList.add(ae),(0,s.Oy)()?Ae.setAttribute("platform","test"):this._platform.isBrowser||Ae.setAttribute("platform","server"),this._document.body.appendChild(Ae),this._containerElement=Ae}}return Ge.\u0275fac=function(ae){return new(ae||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",Pe=/([A-Za-z%]+)$/;class ie{constructor(L,ae,Ae,ce,we){this._viewportRuler=ae,this._document=Ae,this._platform=ce,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,ae=this._overlayRect,Ae=this._viewportRect,ce=this._containerRect,we=[];let De;for(let oe of this._preferredPositions){let Ce=this._getOriginPoint(L,ce,oe),Qe=this._getOverlayPoint(Ce,ae,oe),it=this._getOverlayFit(Qe,ae,Ae,oe);if(it.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(oe,Ce);this._canFitWithFlexibleDimensions(it,Qe,Ae)?we.push({position:oe,origin:Ce,overlayRect:ae,boundingBoxRect:this._calculateBoundingBoxRect(Ce,oe)}):(!De||De.overlayFit.visibleArea<it.visibleArea)&&(De={overlayFit:it,overlayPoint:Qe,originPoint:Ce,position:oe,overlayRect:ae})}if(we.length){let oe=null,Ce=-1;for(const Qe of we){const it=Qe.boundingBoxRect.width*Qe.boundingBoxRect.height*(Qe.position.weight||1);it>Ce&&(Ce=it,oe=Qe)}return this._isPushed=!1,void this._applyPosition(oe.position,oe.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(De.position,De.originPoint);this._applyPosition(De.position,De.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 ae=this._getOriginPoint(this._originRect,this._containerRect,L);this._applyPosition(L,ae)}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,ae,Ae){let ce,we;if("center"==Ae.originX)ce=L.left+L.width/2;else{const De=this._isRtl()?L.right:L.left,oe=this._isRtl()?L.left:L.right;ce="start"==Ae.originX?De:oe}return ae.left<0&&(ce-=ae.left),we="center"==Ae.originY?L.top+L.height/2:"top"==Ae.originY?L.top:L.bottom,ae.top<0&&(we-=ae.top),{x:ce,y:we}}_getOverlayPoint(L,ae,Ae){let ce,we;return ce="center"==Ae.overlayX?-ae.width/2:"start"===Ae.overlayX?this._isRtl()?-ae.width:0:this._isRtl()?0:-ae.width,we="center"==Ae.overlayY?-ae.height/2:"top"==Ae.overlayY?0:-ae.height,{x:L.x+ce,y:L.y+we}}_getOverlayFit(L,ae,Ae,ce){const we=tt(ae);let{x:De,y:oe}=L,Ce=this._getOffset(ce,"x"),Qe=this._getOffset(ce,"y");Ce&&(De+=Ce),Qe&&(oe+=Qe);let ft=0-oe,Dt=oe+we.height-Ae.height,Bt=this._subtractOverflows(we.width,0-De,De+we.width-Ae.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,ae,Ae){if(this._hasFlexibleDimensions){const ce=Ae.bottom-ae.y,we=Ae.right-ae.x,De=_e(this._overlayRef.getConfig().minHeight),oe=_e(this._overlayRef.getConfig().minWidth),Qe=L.fitsInViewportHorizontally||null!=oe&&oe<=we;return(L.fitsInViewportVertically||null!=De&&De<=ce)&&Qe}return!1}_pushOverlayOnScreen(L,ae,Ae){if(this._previousPushAmount&&this._positionLocked)return{x:L.x+this._previousPushAmount.x,y:L.y+this._previousPushAmount.y};const ce=tt(ae),we=this._viewportRect,De=Math.max(L.x+ce.width-we.width,0),oe=Math.max(L.y+ce.height-we.height,0),Ce=Math.max(we.top-Ae.top-L.y,0),Qe=Math.max(we.left-Ae.left-L.x,0);let it=0,ht=0;return it=ce.width<=we.width?Qe||-De:L.x<this._viewportMargin?we.left-Ae.left-L.x:0,ht=ce.height<=we.height?Ce||-oe:L.y<this._viewportMargin?we.top-Ae.top-L.y:0,this._previousPushAmount={x:it,y:ht},{x:L.x+it,y:L.y+ht}}_applyPosition(L,ae){if(this._setTransformOrigin(L),this._setOverlayElementStyles(ae,L),this._setBoundingBoxStyles(ae,L),L.panelClass&&this._addPanelClasses(L.panelClass),this._lastPosition=L,this._positionChanges.observers.length){const Ae=this._getScrollVisibility(),ce=new Je(L,Ae);this._positionChanges.next(ce)}this._isInitialRender=!1}_setTransformOrigin(L){if(!this._transformOriginSelector)return;const ae=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Ae,ce=L.overlayY;Ae="center"===L.overlayX?"center":this._isRtl()?"start"===L.overlayX?"right":"left":"start"===L.overlayX?"left":"right";for(let we=0;we<ae.length;we++)ae[we].style.transformOrigin=`${Ae} ${ce}`}_calculateBoundingBoxRect(L,ae){const Ae=this._viewportRect,ce=this._isRtl();let we,De,oe,it,ht,ft;if("top"===ae.overlayY)De=L.y,we=Ae.height-De+this._viewportMargin;else if("bottom"===ae.overlayY)oe=Ae.height-L.y+2*this._viewportMargin,we=Ae.height-oe+this._viewportMargin;else{const Dt=Math.min(Ae.bottom-L.y+Ae.top,L.y),Bt=this._lastBoundingBoxSize.height;we=2*Dt,De=L.y-Dt,we>Bt&&!this._isInitialRender&&!this._growAfterOpen&&(De=L.y-Bt/2)}if("end"===ae.overlayX&&!ce||"start"===ae.overlayX&&ce)ft=Ae.width-L.x+this._viewportMargin,it=L.x-this._viewportMargin;else if("start"===ae.overlayX&&!ce||"end"===ae.overlayX&&ce)ht=L.x,it=Ae.right-L.x;else{const Dt=Math.min(Ae.right-L.x+Ae.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:De,left:ht,bottom:oe,right:ft,width:it,height:we}}_setBoundingBoxStyles(L,ae){const Ae=this._calculateBoundingBoxRect(L,ae);!this._isInitialRender&&!this._growAfterOpen&&(Ae.height=Math.min(Ae.height,this._lastBoundingBoxSize.height),Ae.width=Math.min(Ae.width,this._lastBoundingBoxSize.width));const ce={};if(this._hasExactPosition())ce.top=ce.left="0",ce.bottom=ce.right=ce.maxHeight=ce.maxWidth="",ce.width=ce.height="100%";else{const we=this._overlayRef.getConfig().maxHeight,De=this._overlayRef.getConfig().maxWidth;ce.height=(0,c.HM)(Ae.height),ce.top=(0,c.HM)(Ae.top),ce.bottom=(0,c.HM)(Ae.bottom),ce.width=(0,c.HM)(Ae.width),ce.left=(0,c.HM)(Ae.left),ce.right=(0,c.HM)(Ae.right),ce.alignItems="center"===ae.overlayX?"center":"end"===ae.overlayX?"flex-end":"flex-start",ce.justifyContent="center"===ae.overlayY?"center":"bottom"===ae.overlayY?"flex-end":"flex-start",we&&(ce.maxHeight=(0,c.HM)(we)),De&&(ce.maxWidth=(0,c.HM)(De))}this._lastBoundingBoxSize=Ae,Ke(this._boundingBox.style,ce)}_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,ae){const Ae={},ce=this._hasExactPosition(),we=this._hasFlexibleDimensions,De=this._overlayRef.getConfig();if(ce){const it=this._viewportRuler.getViewportScrollPosition();Ke(Ae,this._getExactOverlayY(ae,L,it)),Ke(Ae,this._getExactOverlayX(ae,L,it))}else Ae.position="static";let oe="",Ce=this._getOffset(ae,"x"),Qe=this._getOffset(ae,"y");Ce&&(oe+=`translateX(${Ce}px) `),Qe&&(oe+=`translateY(${Qe}px)`),Ae.transform=oe.trim(),De.maxHeight&&(ce?Ae.maxHeight=(0,c.HM)(De.maxHeight):we&&(Ae.maxHeight="")),De.maxWidth&&(ce?Ae.maxWidth=(0,c.HM)(De.maxWidth):we&&(Ae.maxWidth="")),Ke(this._pane.style,Ae)}_getExactOverlayY(L,ae,Ae){let ce={top:"",bottom:""},we=this._getOverlayPoint(ae,this._overlayRect,L);return this._isPushed&&(we=this._pushOverlayOnScreen(we,this._overlayRect,Ae)),"bottom"===L.overlayY?ce.bottom=this._document.documentElement.clientHeight-(we.y+this._overlayRect.height)+"px":ce.top=(0,c.HM)(we.y),ce}_getExactOverlayX(L,ae,Ae){let De,ce={left:"",right:""},we=this._getOverlayPoint(ae,this._overlayRect,L);return this._isPushed&&(we=this._pushOverlayOnScreen(we,this._overlayRect,Ae)),De=this._isRtl()?"end"===L.overlayX?"left":"right":"end"===L.overlayX?"right":"left","right"===De?ce.right=this._document.documentElement.clientWidth-(we.x+this._overlayRect.width)+"px":ce.left=(0,c.HM)(we.x),ce}_getScrollVisibility(){const L=this._getOriginRect(),ae=this._pane.getBoundingClientRect(),Ae=this._scrollables.map(ce=>ce.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ke(L,Ae),isOriginOutsideView:he(L,Ae),isOverlayClipped:ke(ae,Ae),isOverlayOutsideView:he(ae,Ae)}}_subtractOverflows(L,...ae){return ae.reduce((Ae,ce)=>Ae-Math.max(ce,0),L)}_getNarrowedViewportRect(){const L=this._document.documentElement.clientWidth,ae=this._document.documentElement.clientHeight,Ae=this._viewportRuler.getViewportScrollPosition();return{top:Ae.top+this._viewportMargin,left:Ae.left+this._viewportMargin,right:Ae.left+L-this._viewportMargin,bottom:Ae.top+ae-this._viewportMargin,width:L-2*this._viewportMargin,height:ae-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(L,ae){return"x"===ae?null==L.offsetX?this._offsetX:L.offsetX:null==L.offsetY?this._offsetY:L.offsetY}_validatePositions(){}_addPanelClasses(L){this._pane&&(0,c.Eq)(L).forEach(ae=>{""!==ae&&-1===this._appliedPanelClasses.indexOf(ae)&&(this._appliedPanelClasses.push(ae),this._pane.classList.add(ae))})}_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 ae=L.width||0,Ae=L.height||0;return{top:L.y,bottom:L.y+Ae,left:L.x,right:L.x+ae,height:Ae,width:ae}}}function Ke(Ge,L){for(let ae in L)L.hasOwnProperty(ae)&&(Ge[ae]=L[ae]);return Ge}function _e(Ge){if("number"!=typeof Ge&&null!=Ge){const[L,ae]=Ge.split(Pe);return ae&&"px"!==ae?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 Ee="cdk-global-overlay-wrapper";class Ue{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(L){const ae=L.getConfig();this._overlayRef=L,this._width&&!ae.width&&L.updateSize({width:this._width}),this._height&&!ae.height&&L.updateSize({height:this._height}),L.hostElement.classList.add(Ee),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,ae=this._overlayRef.hostElement.style,Ae=this._overlayRef.getConfig(),{width:ce,height:we,maxWidth:De,maxHeight:oe}=Ae,Ce=!("100%"!==ce&&"100vw"!==ce||De&&"100%"!==De&&"100vw"!==De),Qe=!("100%"!==we&&"100vh"!==we||oe&&"100%"!==oe&&"100vh"!==oe);L.position=this._cssPosition,L.marginLeft=Ce?"0":this._leftOffset,L.marginTop=Qe?"0":this._topOffset,L.marginBottom=this._bottomOffset,L.marginRight=this._rightOffset,Ce?ae.justifyContent="flex-start":"center"===this._justifyContent?ae.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?ae.justifyContent="flex-end":"flex-end"===this._justifyContent&&(ae.justifyContent="flex-start"):ae.justifyContent=this._justifyContent,ae.alignItems=Qe?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const L=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement,Ae=ae.style;ae.classList.remove(Ee),Ae.justifyContent=Ae.alignItems=L.marginTop=L.marginBottom=L.marginLeft=L.marginRight=L.position="",this._overlayRef=null,this._isDisposed=!0}}let ct=(()=>{class Ge{constructor(ae,Ae,ce,we){this._viewportRuler=ae,this._document=Ae,this._platform=ce,this._overlayContainer=we}global(){return new Ue}flexibleConnectedTo(ae){return new ie(ae,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Ge.\u0275fac=function(ae){return new(ae||Ge)(m.\u0275\u0275inject(i.rL),m.\u0275\u0275inject(u.DOCUMENT),m.\u0275\u0275inject(s.t4),m.\u0275\u0275inject(q))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})(),bt=(()=>{class Ge{constructor(ae){this._attachedOverlays=[],this._document=ae}ngOnDestroy(){this.detach()}add(ae){this.remove(ae),this._attachedOverlays.push(ae)}remove(ae){const Ae=this._attachedOverlays.indexOf(ae);Ae>-1&&this._attachedOverlays.splice(Ae,1),0===this._attachedOverlays.length&&this.detach()}}return Ge.\u0275fac=function(ae){return new(ae||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(ae){super(ae),this._keydownListener=Ae=>{const ce=this._attachedOverlays;for(let we=ce.length-1;we>-1;we--)if(ce[we]._keydownEvents.observers.length>0){ce[we]._keydownEvents.next(Ae);break}}}add(ae){super.add(ae),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(ae){return new(ae||Ge)(m.\u0275\u0275inject(u.DOCUMENT))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})(),qe=(()=>{class Ge extends bt{constructor(ae,Ae){super(ae),this._platform=Ae,this._cursorStyleIsSet=!1,this._pointerDownListener=ce=>{this._pointerDownEventTarget=(0,s.sA)(ce)},this._clickListener=ce=>{const we=(0,s.sA)(ce),De="click"===ce.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:we;this._pointerDownEventTarget=null;const oe=this._attachedOverlays.slice();for(let Ce=oe.length-1;Ce>-1;Ce--){const Qe=oe[Ce];if(!(Qe._outsidePointerEvents.observers.length<1)&&Qe.hasAttached()){if(Qe.overlayElement.contains(we)||Qe.overlayElement.contains(De))break;Qe._outsidePointerEvents.next(ce)}}}}add(ae){if(super.add(ae),!this._isAttached){const Ae=this._document.body;Ae.addEventListener("pointerdown",this._pointerDownListener,!0),Ae.addEventListener("click",this._clickListener,!0),Ae.addEventListener("auxclick",this._clickListener,!0),Ae.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Ae.style.cursor,Ae.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ae=this._document.body;ae.removeEventListener("pointerdown",this._pointerDownListener,!0),ae.removeEventListener("click",this._clickListener,!0),ae.removeEventListener("auxclick",this._clickListener,!0),ae.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ae.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return Ge.\u0275fac=function(ae){return new(ae||Ge)(m.\u0275\u0275inject(u.DOCUMENT),m.\u0275\u0275inject(s.t4))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})(),X=0,me=(()=>{class Ge{constructor(ae,Ae,ce,we,De,oe,Ce,Qe,it,ht,ft){this.scrollStrategies=ae,this._overlayContainer=Ae,this._componentFactoryResolver=ce,this._positionBuilder=we,this._keyboardDispatcher=De,this._injector=oe,this._ngZone=Ce,this._document=Qe,this._directionality=it,this._location=ht,this._outsideClickDispatcher=ft}create(ae){const Ae=this._createHostElement(),ce=this._createPaneElement(Ae),we=this._createPortalOutlet(ce),De=new Y(ae);return De.direction=De.direction||this._directionality.value,new Fe(we,Ae,ce,De,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(ae){const Ae=this._document.createElement("div");return Ae.id="cdk-overlay-"+X++,Ae.classList.add("cdk-overlay-pane"),ae.appendChild(Ae),Ae}_createHostElement(){const ae=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ae),ae}_createPortalOutlet(ae){return this._appRef||(this._appRef=this._injector.get(m.ApplicationRef)),new D.u0(ae,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Ge.\u0275fac=function(ae){return new(ae||Ge)(m.\u0275\u0275inject(ye),m.\u0275\u0275inject(q),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(qe))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();const _t={provide:new m.InjectionToken("cdk-connected-overlay-scroll-strategy"),deps:[me],useFactory:function mt(Ge){return()=>Ge.scrollStrategies.reposition()}};let It=(()=>{class Ge{}return Ge.\u0275fac=function(ae){return new(ae||Ge)},Ge.\u0275mod=m.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=m.\u0275\u0275defineInjector({providers:[me,_t],imports:[[_.vT,D.eL,i.Cl],i.Cl]}),Ge})()},925:(Ve,g,l)=>{"use strict";l.d(g,{t4:()=>c,ud:()=>s,sA:()=>ge,ht:()=>ke,kV:()=>he,Oy:()=>ye,i$:()=>P,Mq:()=>k});var i=l(5e3),u=l(9808);let m;try{m="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Y){m=!1}let S,b,pe,c=(()=>{class Y{constructor(xe){this._platformId=xe,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 Y.\u0275fac=function(xe){return new(xe||Y)(i.\u0275\u0275inject(i.PLATFORM_ID))},Y.\u0275prov=i.\u0275\u0275defineInjectable({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})(),s=(()=>{class Y{}return Y.\u0275fac=function(xe){return new(xe||Y)},Y.\u0275mod=i.\u0275\u0275defineNgModule({type:Y}),Y.\u0275inj=i.\u0275\u0275defineInjector({}),Y})();function P(Y){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}()?Y:!!Y.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 Y=Element.prototype.scrollTo;b=!!Y&&!/\{\s*\[native code\]\s*\}/.test(Y.toString())}}return b}function he(Y){if(function U(){if(null==pe){const Y="undefined"!=typeof document?document.head:null;pe=!(!Y||!Y.createShadowRoot&&!Y.attachShadow)}return pe}()){const ve=Y.getRootNode?Y.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&ve instanceof ShadowRoot)return ve}return null}function ke(){let Y="undefined"!=typeof document&&document?document.activeElement:null;for(;Y&&Y.shadowRoot;){const ve=Y.shadowRoot.activeElement;if(ve===Y)break;Y=ve}return Y}function ge(Y){return Y.composedPath?Y.composedPath()[0]:Y.target}function ye(){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:()=>ke,C5:()=>d,u0:()=>$,eL:()=>ye,UE:()=>P});var i=l(5e3),u=l(9808);class S{attach(xe){return this._attachedHost=xe,xe.attach(this)}detach(){let xe=this._attachedHost;null!=xe&&(this._attachedHost=null,xe.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(xe){this._attachedHost=xe}}class d extends S{constructor(xe,Je,at,ne){super(),this.component=xe,this.viewContainerRef=Je,this.injector=at,this.componentFactoryResolver=ne}}class P extends S{constructor(xe,Je,at){super(),this.templateRef=xe,this.viewContainerRef=Je,this.context=at}get origin(){return this.templateRef.elementRef}attach(xe,Je=this.context){return this.context=Je,super.attach(xe)}detach(){return this.context=void 0,super.detach()}}class M extends S{constructor(xe){super(),this.element=xe instanceof i.ElementRef?xe.nativeElement:xe}}class b{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(xe){return xe instanceof d?(this._attachedPortal=xe,this.attachComponentPortal(xe)):xe instanceof P?(this._attachedPortal=xe,this.attachTemplatePortal(xe)):this.attachDomPortal&&xe instanceof M?(this._attachedPortal=xe,this.attachDomPortal(xe)):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(xe){this._disposeFn=xe}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class $ extends b{constructor(xe,Je,at,ne,Fe){super(),this.outletElement=xe,this._componentFactoryResolver=Je,this._appRef=at,this._defaultInjector=ne,this.attachDomPortal=q=>{const le=q.element,Pe=this._document.createComment("dom-portal");le.parentNode.insertBefore(Pe,le),this.outletElement.appendChild(le),this._attachedPortal=q,super.setDisposeFn(()=>{Pe.parentNode&&Pe.parentNode.replaceChild(le,Pe)})},this._document=Fe}attachComponentPortal(xe){const at=(xe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(xe.component);let ne;return xe.viewContainerRef?(ne=xe.viewContainerRef.createComponent(at,xe.viewContainerRef.length,xe.injector||xe.viewContainerRef.injector),this.setDisposeFn(()=>ne.destroy())):(ne=at.create(xe.injector||this._defaultInjector),this._appRef.attachView(ne.hostView),this.setDisposeFn(()=>{this._appRef.detachView(ne.hostView),ne.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ne)),this._attachedPortal=xe,ne}attachTemplatePortal(xe){let Je=xe.viewContainerRef,at=Je.createEmbeddedView(xe.templateRef,xe.context);return at.rootNodes.forEach(ne=>this.outletElement.appendChild(ne)),at.detectChanges(),this.setDisposeFn(()=>{let ne=Je.indexOf(at);-1!==ne&&Je.remove(ne)}),this._attachedPortal=xe,at}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(xe){return xe.hostView.rootNodes[0]}}let U=(()=>{class ve extends P{constructor(Je,at){super(Je,at)}}return ve.\u0275fac=function(Je){return new(Je||ve)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef))},ve.\u0275dir=i.\u0275\u0275defineDirective({type:ve,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.\u0275\u0275InheritDefinitionFeature]}),ve})(),ke=(()=>{class ve extends b{constructor(Je,at,ne){super(),this._componentFactoryResolver=Je,this._viewContainerRef=at,this._isInitialized=!1,this.attached=new i.EventEmitter,this.attachDomPortal=Fe=>{const q=Fe.element,le=this._document.createComment("dom-portal");Fe.setAttachedHost(this),q.parentNode.insertBefore(le,q),this._getRootNode().appendChild(q),this._attachedPortal=Fe,super.setDisposeFn(()=>{le.parentNode&&le.parentNode.replaceChild(q,le)})},this._document=ne}get portal(){return this._attachedPortal}set portal(Je){this.hasAttached()&&!Je&&!this._isInitialized||(this.hasAttached()&&super.detach(),Je&&super.attach(Je),this._attachedPortal=Je||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Je){Je.setAttachedHost(this);const at=null!=Je.viewContainerRef?Je.viewContainerRef:this._viewContainerRef,Fe=(Je.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Je.component),q=at.createComponent(Fe,at.length,Je.injector||at.injector);return at!==this._viewContainerRef&&this._getRootNode().appendChild(q.hostView.rootNodes[0]),super.setDisposeFn(()=>q.destroy()),this._attachedPortal=Je,this._attachedRef=q,this.attached.emit(q),q}attachTemplatePortal(Je){Je.setAttachedHost(this);const at=this._viewContainerRef.createEmbeddedView(Je.templateRef,Je.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Je,this._attachedRef=at,this.attached.emit(at),at}_getRootNode(){const Je=this._viewContainerRef.element.nativeElement;return Je.nodeType===Je.ELEMENT_NODE?Je:Je.parentNode}}return ve.\u0275fac=function(Je){return new(Je||ve)(i.\u0275\u0275directiveInject(i.ComponentFactoryResolver),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(u.DOCUMENT))},ve.\u0275dir=i.\u0275\u0275defineDirective({type:ve,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.\u0275\u0275InheritDefinitionFeature]}),ve})(),ye=(()=>{class ve{}return ve.\u0275fac=function(Je){return new(Je||ve)},ve.\u0275mod=i.\u0275\u0275defineNgModule({type:ve}),ve.\u0275inj=i.\u0275\u0275defineInjector({}),ve})()},9071:(Ve,g,l)=>{"use strict";l.d(g,{ZD:()=>le,mF:()=>ye,Cl:()=>Pe,rL:()=>xe});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),P=l(9808),M=l(925),b=l(226);let ye=(()=>{class ie{constructor(_e,tt,Ee){this._ngZone=_e,this._platform=tt,this._scrolled=new m.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ee}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 Ee=_e>0?this._scrolled.pipe((0,S.e)(_e)).subscribe(tt):this._scrolled.subscribe(tt);return this._scrolledCount++,()=>{Ee.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 Ee=this.getAncestorScrollContainers(_e);return this.scrolled(tt).pipe((0,d.h)(Ue=>!Ue||Ee.indexOf(Ue)>-1))}getAncestorScrollContainers(_e){const tt=[];return this.scrollContainers.forEach((Ee,Ue)=>{this._scrollableContainsElement(Ue,_e)&&tt.push(Ue)}),tt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(_e,tt){let Ee=(0,i.fI)(tt),Ue=_e.getElementRef().nativeElement;do{if(Ee==Ue)return!0}while(Ee=Ee.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 ie.\u0275fac=function(_e){return new(_e||ie)(u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(M.t4),u.\u0275\u0275inject(P.DOCUMENT,8))},ie.\u0275prov=u.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),xe=(()=>{class ie{constructor(_e,tt,Ee){this._platform=_e,this._change=new m.x,this._changeListener=Ue=>{this._change.next(Ue)},this._document=Ee,tt.runOutsideAngular(()=>{if(_e.isBrowser){const Ue=this._getWindow();Ue.addEventListener("resize",this._changeListener),Ue.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:Ee}=this.getViewportSize();return{top:_e.top,left:_e.left,bottom:_e.top+Ee,right:_e.left+tt,height:Ee,width:tt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const _e=this._document,tt=this._getWindow(),Ee=_e.documentElement,Ue=Ee.getBoundingClientRect();return{top:-Ue.top||_e.body.scrollTop||tt.scrollY||Ee.scrollTop||0,left:-Ue.left||_e.body.scrollLeft||tt.scrollX||Ee.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 ie.\u0275fac=function(_e){return new(_e||ie)(u.\u0275\u0275inject(M.t4),u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(P.DOCUMENT,8))},ie.\u0275prov=u.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),le=(()=>{class ie{}return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275mod=u.\u0275\u0275defineNgModule({type:ie}),ie.\u0275inj=u.\u0275\u0275defineInjector({}),ie})(),Pe=(()=>{class ie{}return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275mod=u.\u0275\u0275defineNgModule({type:ie}),ie.\u0275inj=u.\u0275\u0275defineInjector({imports:[[b.vT,M.ud,le],b.vT,le]}),ie})()},9808:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{APP_BASE_HREF:()=>ke,AsyncPipe:()=>ki,CommonModule:()=>ji,CurrencyPipe:()=>yi,DATE_PIPE_DEFAULT_TIMEZONE:()=>rr,DOCUMENT:()=>D,DatePipe:()=>fi,DecimalPipe:()=>Qi,FormStyle:()=>q,FormatWidth:()=>Pe,HashLocationStrategy:()=>ye,I18nPluralPipe:()=>or,I18nSelectPipe:()=>Gi,JsonPipe:()=>wi,KeyValuePipe:()=>sr,LOCATION_INITIALIZED:()=>d,Location:()=>Y,LocationStrategy:()=>U,LowerCasePipe:()=>_r,NgClass:()=>rn,NgComponentOutlet:()=>An,NgForOf:()=>yn,NgForOfContext:()=>Rn,NgIf:()=>Cn,NgIfContext:()=>an,NgLocaleLocalization:()=>un,NgLocalization:()=>kt,NgPlural:()=>si,NgPluralCase:()=>Fn,NgStyle:()=>gr,NgSwitch:()=>Bn,NgSwitchCase:()=>jn,NgSwitchDefault:()=>ui,NgTemplateOutlet:()=>Ki,NumberFormatStyle:()=>ne,NumberSymbol:()=>ie,PathLocationStrategy:()=>ge,PercentPipe:()=>Yn,PlatformLocation:()=>T,Plural:()=>Fe,SlicePipe:()=>bi,TitleCasePipe:()=>Ni,TranslationWidth:()=>le,UpperCasePipe:()=>hi,VERSION:()=>br,ViewportScroller:()=>J,WeekDay:()=>Ke,XhrFactory:()=>fe,formatCurrency:()=>Sn,formatDate:()=>Bt,formatNumber:()=>Ie,formatPercent:()=>H,getCurrencySymbol:()=>we,getLocaleCurrencyCode:()=>mt,getLocaleCurrencyName:()=>Xe,getLocaleCurrencySymbol:()=>be,getLocaleDateFormat:()=>qe,getLocaleDateTimeFormat:()=>me,getLocaleDayNames:()=>Ee,getLocaleDayPeriods:()=>tt,getLocaleDirection:()=>ae,getLocaleEraNames:()=>ct,getLocaleExtraDayPeriodRules:()=>Ge,getLocaleExtraDayPeriods:()=>L,getLocaleFirstDayOfWeek:()=>bt,getLocaleId:()=>_e,getLocaleMonthNames:()=>Ue,getLocaleNumberFormat:()=>Re,getLocaleNumberSymbol:()=>Se,getLocalePluralCase:()=>It,getLocaleTimeFormat:()=>X,getLocaleWeekEndRange:()=>Be,getNumberOfCurrencyDigits:()=>oe,isPlatformBrowser:()=>kn,isPlatformServer:()=>Hi,isPlatformWorkerApp:()=>Ci,isPlatformWorkerUi:()=>Yi,registerLocaleData:()=>Lt,\u0275BrowserPlatformLocation:()=>P,\u0275DomAdapter:()=>_,\u0275NullViewportScroller:()=>Q,\u0275PLATFORM_BROWSER_ID:()=>Vi,\u0275PLATFORM_SERVER_ID:()=>Zi,\u0275PLATFORM_WORKER_APP_ID:()=>ti,\u0275PLATFORM_WORKER_UI_ID:()=>$i,\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)(P)}()},providedIn:"platform"}),y})();const d=new i.InjectionToken("Location Initialized");let P=(()=>{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,Te){M()?this._history.pushState(C,V,Te):this.location.hash=Te}replaceState(C,V,Te){M()?this._history.replaceState(C,V,Te):this.location.hash=Te}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 P((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 he(y){const R=(0,i.\u0275\u0275inject)(D).location;return new ge((0,i.\u0275\u0275inject)(T),R&&R.origin||"")}()},providedIn:"root"}),y})();const ke=new i.InjectionToken("appBaseHref");let ge=(()=>{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),Te=this._platformLocation.hash;return Te&&C?`${V}${Te}`:V}pushState(C,V,Te,Ye){const ot=this.prepareExternalUrl(Te+pe(Ye));this._platformLocation.pushState(C,V,ot)}replaceState(C,V,Te,Ye){const ot=this.prepareExternalUrl(Te+pe(Ye));this._platformLocation.replaceState(C,V,ot)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(C=0){var V,Te;null===(Te=(V=this._platformLocation).historyGo)||void 0===Te||Te.call(V,C)}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275inject(T),i.\u0275\u0275inject(ke,8))},y.\u0275prov=i.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac}),y})(),ye=(()=>{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,Te,Ye){let ot=this.prepareExternalUrl(Te+pe(Ye));0==ot.length&&(ot=this._platformLocation.pathname),this._platformLocation.pushState(C,V,ot)}replaceState(C,V,Te,Ye){let ot=this.prepareExternalUrl(Te+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,Te;null===(Te=(V=this._platformLocation).historyGo)||void 0===Te||Te.call(V,C)}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275inject(T),i.\u0275\u0275inject(ke,8))},y.\u0275prov=i.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac}),y})(),Y=(()=>{class y{constructor(C,V){this._subject=new i.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=C;const Te=this._platformStrategy.getBaseHref();this._platformLocation=V,this._baseHref=$(Je(Te)),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 xe(y,R){return y&&R.startsWith(y)?R.substring(y.length):R}(this._baseHref,Je(C)))}prepareExternalUrl(C){return C&&"/"!==C[0]&&(C="/"+C),this._platformStrategy.prepareExternalUrl(C)}go(C,V="",Te=null){this._platformStrategy.pushState(Te,"",C,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(C+pe(V)),Te)}replaceState(C,V="",Te=null){this._platformStrategy.replaceState(Te,"",C,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(C+pe(V)),Te)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(C=0){var V,Te;null===(Te=(V=this._platformStrategy).historyGo)||void 0===Te||Te.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(Te=>Te(C,V))}subscribe(C,V,Te){return this._subject.subscribe({next:C,error:V,complete:Te})}}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 ve(){return new Y((0,i.\u0275\u0275inject)(U),(0,i.\u0275\u0275inject)(T))}()},providedIn:"root"}),y})();function Je(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 ne=(()=>((ne=ne||{})[ne.Decimal=0]="Decimal",ne[ne.Percent=1]="Percent",ne[ne.Currency=2]="Currency",ne[ne.Scientific=3]="Scientific",ne))(),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))(),q=(()=>((q=q||{})[q.Format=0]="Format",q[q.Standalone=1]="Standalone",q))(),le=(()=>((le=le||{})[le.Narrow=0]="Narrow",le[le.Abbreviated=1]="Abbreviated",le[le.Wide=2]="Wide",le[le.Short=3]="Short",le))(),Pe=(()=>((Pe=Pe||{})[Pe.Short=0]="Short",Pe[Pe.Medium=1]="Medium",Pe[Pe.Long=2]="Long",Pe[Pe.Full=3]="Full",Pe))(),ie=(()=>((ie=ie||{})[ie.Decimal=0]="Decimal",ie[ie.Group=1]="Group",ie[ie.List=2]="List",ie[ie.PercentSign=3]="PercentSign",ie[ie.PlusSign=4]="PlusSign",ie[ie.MinusSign=5]="MinusSign",ie[ie.Exponential=6]="Exponential",ie[ie.SuperscriptingExponent=7]="SuperscriptingExponent",ie[ie.PerMille=8]="PerMille",ie[ie.Infinity=9]="Infinity",ie[ie.NaN=10]="NaN",ie[ie.TimeSeparator=11]="TimeSeparator",ie[ie.CurrencyDecimal=12]="CurrencyDecimal",ie[ie.CurrencyGroup=13]="CurrencyGroup",ie))(),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=Ae([V[i.\u0275LocaleDataIndex.DayPeriodsFormat],V[i.\u0275LocaleDataIndex.DayPeriodsStandalone]],R);return Ae(Ye,C)}function Ee(y,R,C){const V=(0,i.\u0275findLocaleData)(y),Ye=Ae([V[i.\u0275LocaleDataIndex.DaysFormat],V[i.\u0275LocaleDataIndex.DaysStandalone]],R);return Ae(Ye,C)}function Ue(y,R,C){const V=(0,i.\u0275findLocaleData)(y),Ye=Ae([V[i.\u0275LocaleDataIndex.MonthsFormat],V[i.\u0275LocaleDataIndex.MonthsStandalone]],R);return Ae(Ye,C)}function ct(y,R){return Ae((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 qe(y,R){return Ae((0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.DateFormat],R)}function X(y,R){return Ae((0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.TimeFormat],R)}function me(y,R){return Ae((0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.DateTimeFormat],R)}function Se(y,R){const C=(0,i.\u0275findLocaleData)(y),V=C[i.\u0275LocaleDataIndex.NumberSymbols][R];if(void 0===V){if(R===ie.CurrencyDecimal)return C[i.\u0275LocaleDataIndex.NumberSymbols][ie.Decimal];if(R===ie.CurrencyGroup)return C[i.\u0275LocaleDataIndex.NumberSymbols][ie.Group]}return V}function Re(y,R){return(0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.NumberFormats][R]}function be(y){return(0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.CurrencySymbol]||null}function Xe(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?ce(V):[ce(V[0]),ce(V[1])])}function L(y,R,C){const V=(0,i.\u0275findLocaleData)(y);ut(V);const Ye=Ae([V[i.\u0275LocaleDataIndex.ExtraData][0],V[i.\u0275LocaleDataIndex.ExtraData][1]],R)||[];return Ae(Ye,C)||[]}function ae(y){return(0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.Directionality]}function Ae(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 ce(y){const[R,C]=y.split(":");return{hours:+R,minutes:+C}}function we(y,R,C="en"){const V=function _t(y){return(0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.Currencies]}(C)[y]||at[y]||[],Te=V[1];return"narrow"===R&&"string"==typeof Te?Te:V[0]||y}function oe(y){let R;const C=at[y];return C&&(R=C[2]),"number"==typeof R?R:2}const Ce=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Qe={},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 Te=function We(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[Te,Ye=1,ot=1]=y.split("-").map(Et=>+Et);return Jt(Te,Ye-1,ot)}const C=parseFloat(y);if(!isNaN(y-C))return new Date(C);let V;if(V=y.match(Ce))return function de(y){const R=new Date(0);let C=0,V=0;const Te=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])),Te.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=Te.getTimezoneOffset();V&&(Pt=Wt(V,Pt),Te=function je(y,R,C){const V=C?-1:1,Te=y.getTimezoneOffset();return function Ht(y,R){return(y=new Date(y.getTime())).setMinutes(y.getMinutes()+R),y}(y,V*(Wt(R,Te)-Te))}(Te,V,!0));let xt="";return ot.forEach(Vt=>{const Gt=function st(y){if(Le[y])return Le[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,q.Standalone);break;case"LLLL":R=Kt(Dt.Months,le.Wide,q.Standalone);break;case"LLLLL":R=Kt(Dt.Months,le.Narrow,q.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,q.Standalone);break;case"cccc":R=Kt(Dt.Days,le.Wide,q.Standalone);break;case"ccccc":R=Kt(Dt.Days,le.Narrow,q.Standalone);break;case"cccccc":R=Kt(Dt.Days,le.Short,q.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,q.Standalone,!0);break;case"bbbb":R=Kt(Dt.DayPeriods,le.Wide,q.Standalone,!0);break;case"bbbbb":R=Kt(Dt.DayPeriods,le.Narrow,q.Standalone,!0);break;case"B":case"BB":case"BBB":R=Kt(Dt.DayPeriods,le.Abbreviated,q.Format,!0);break;case"BBBB":R=Kt(Dt.DayPeriods,le.Wide,q.Format,!0);break;case"BBBBB":R=Kt(Dt.DayPeriods,le.Narrow,q.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=ue(ht.Short);break;case"ZZZZZ":R=ue(ht.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":R=ue(ht.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":R=ue(ht.Long);break;default:return null}return Le[y]=R,R}(Vt);xt+=Gt?Gt(Te,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(Qe[C]=Qe[C]||{},Qe[C][R])return Qe[C][R];let V="";switch(R){case"shortDate":V=qe(y,Pe.Short);break;case"mediumDate":V=qe(y,Pe.Medium);break;case"longDate":V=qe(y,Pe.Long);break;case"fullDate":V=qe(y,Pe.Full);break;case"shortTime":V=X(y,Pe.Short);break;case"mediumTime":V=X(y,Pe.Medium);break;case"longTime":V=X(y,Pe.Long);break;case"fullTime":V=X(y,Pe.Full);break;case"short":const Te=Ft(y,"shortTime"),Ye=Ft(y,"shortDate");V=pn(me(y,Pe.Short),[Te,Ye]);break;case"medium":const ot=Ft(y,"mediumTime"),Et=Ft(y,"mediumDate");V=pn(me(y,Pe.Medium),[ot,Et]);break;case"long":const Pt=Ft(y,"longTime"),xt=Ft(y,"longDate");V=pn(me(y,Pe.Long),[Pt,xt]);break;case"full":const Vt=Ft(y,"fullTime"),Gt=Ft(y,"fullDate");V=pn(me(y,Pe.Full),[Vt,Gt])}return V&&(Qe[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,Te){let Ye="";(y<0||Te&&y<=0)&&(Te?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,Te=!1){return function(Ye,ot){let Et=function cn(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=Se(ot,ie.MinusSign);return en(Et,R,Pt,V,Te)}}function Kt(y,R,C=q.Format,V=!1){return function(Te,Ye){return function tn(y,R,C,V,Te,Ye){switch(C){case Dt.Months:return Ue(R,Te,V)[y.getMonth()];case Dt.Days:return Ee(R,Te,V)[y.getDay()];case Dt.DayPeriods:const ot=y.getHours(),Et=y.getMinutes();if(Ye){const xt=Ge(R),Vt=L(R,Te,V),Gt=xt.findIndex(ln=>{if(Array.isArray(ln)){const[F,A]=ln,I=ot>=F.hours&&Et>=F.minutes,G=ot<A.hours||ot===A.hours&&Et<A.minutes;if(F.hours<A.hours){if(I&&G)return!0}else if(I||G)return!0}else if(ln.hours===ot&&ln.minutes===Et)return!0;return!1});if(-1!==Gt)return Vt[Gt]}return tt(R,Te,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}`)}}(Te,Ye,y,R,C,V)}}function ue(y){return function(R,C,V){const Te=-1*V,Ye=Se(C,ie.MinusSign),ot=Te>0?Math.floor(Te/60):Math.ceil(Te/60);switch(y){case ht.Short:return(Te>=0?"+":"")+en(ot,2,Ye)+en(Math.abs(Te%60),2,Ye);case ht.ShortGMT:return"GMT"+(Te>=0?"+":"")+en(ot,1,Ye);case ht.Long:return"GMT"+(Te>=0?"+":"")+en(ot,2,Ye)+":"+en(Math.abs(Te%60),2,Ye);case ht.Extended:return 0===V?"Z":(Te>=0?"+":"")+en(ot,2,Ye)+":"+en(Math.abs(Te%60),2,Ye);default:throw new Error(`Unknown zone width "${y}"`)}}}function ee(y){return Jt(y.getFullYear(),y.getMonth(),y.getDate()+(4-y.getDay()))}function E(y,R=!1){return function(C,V){let Te;if(R){const Ye=new Date(C.getFullYear(),C.getMonth(),1).getDay()-1,ot=C.getDate();Te=1+Math.floor((ot+Ye)/7)}else{const Ye=ee(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();Te=1+Math.round(Et/6048e5)}return en(Te,y,Se(V,ie.MinusSign))}}function j(y,R=!1){return function(C,V){return en(ee(C).getFullYear(),y,Se(V,ie.MinusSign),R)}}const Le={};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 Ln(y,R,C,V,Te,Ye,ot=!1){let Et="",Pt=!1;if(isFinite(y)){let xt=function et(y){let V,Te,Ye,ot,Et,R=Math.abs(y)+"",C=0;for((Te=R.indexOf("."))>-1&&(R=R.replace(".","")),(Ye=R.search(/e/i))>0?(Te<0&&(Te=Ye),Te+=+R.slice(Ye+1),R=R.substring(0,Ye)):Te<0&&(Te=R.length),Ye=0;"0"===R.charAt(Ye);Ye++);if(Ye===(Et=R.length))V=[0],Te=1;else{for(Et--;"0"===R.charAt(Et);)Et--;for(Te-=Ye,V=[],ot=0;Ye<=Et;Ye++,ot++)V[ot]=Number(R.charAt(Ye))}return Te>22&&(V=V.splice(0,21),C=Te-1,Te=1),{digits:V,exponent:C,integerLen:Te}}(y);ot&&(xt=function Oe(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,Gt=R.minFrac,ln=R.maxFrac;if(Ye){const At=Ye.match(dt);if(null===At)throw new Error(`${Ye} is not a valid digit info`);const dn=At[1],wn=At[3],Ei=At[5];null!=dn&&(Vt=wt(dn)),null!=wn&&(Gt=wt(wn)),null!=Ei?ln=wt(Ei):null!=wn&&Gt>ln&&(ln=Gt)}!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,Te=V.length-y.integerLen;const Ye=Math.min(Math.max(R,Te),C);let ot=Ye+y.integerLen,Et=V[ot];if(ot>0){V.splice(Math.max(y.integerLen,ot));for(let Gt=ot;Gt<V.length;Gt++)V[Gt]=0}else{Te=Math.max(0,Te),y.integerLen=1,V.length=Math.max(1,ot=Ye+1),V[0]=0;for(let Gt=1;Gt<ot;Gt++)V[Gt]=0}if(Et>=5)if(ot-1<0){for(let Gt=0;Gt>ot;Gt--)V.unshift(0),y.integerLen++;V.unshift(1),y.integerLen++}else V[ot-1]++;for(;Te<Math.max(0,Ye);Te++)V.push(0);let Pt=0!==Ye;const xt=R+y.integerLen,Vt=V.reduceRight(function(Gt,ln,F,A){return A[F]=(ln+=Gt)<10?ln:ln-10,Pt&&(0===A[F]&&F>=xt?A.pop():Pt=!1),ln>=10?1:0},0);Vt&&(V.unshift(Vt),y.integerLen++)}(xt,Gt,ln);let F=xt.digits,A=xt.integerLen;const I=xt.exponent;let G=[];for(Pt=F.every(At=>!At);A<Vt;A++)F.unshift(0);for(;A<0;A++)F.unshift(0);A>0?G=F.splice(A,F.length):(G=F,F=[0]);const Ze=[];for(F.length>=R.lgSize&&Ze.unshift(F.splice(-R.lgSize,F.length).join(""));F.length>R.gSize;)Ze.unshift(F.splice(-R.gSize,F.length).join(""));F.length&&Ze.unshift(F.join("")),Et=Ze.join(Se(C,V)),G.length&&(Et+=Se(C,Te)+G.join("")),I&&(Et+=Se(C,ie.Exponential)+"+"+I)}else Et=Se(C,ie.Infinity);return Et=y<0&&!Pt?R.negPre+Et+R.negSuf:R.posPre+Et+R.posSuf,Et}function Sn(y,R,C,V,Te){const ot=W(Re(R,ne.Currency),Se(R,ie.MinusSign));return ot.minFrac=oe(V),ot.maxFrac=ot.minFrac,Ln(y,ot,R,ie.CurrencyGroup,ie.CurrencyDecimal,Te).replace("\xa4",C).replace("\xa4","").trim()}function H(y,R,C){return Ln(y,W(Re(R,ne.Percent),Se(R,ie.MinusSign)),R,ie.Group,ie.Decimal,C,!0).replace(new RegExp("%","g"),Se(R,ie.PercentSign))}function Ie(y,R,C){return Ln(y,W(Re(R,ne.Decimal),Se(R,ie.MinusSign)),R,ie.Group,ie.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(";"),Te=V[0],Ye=V[1],ot=-1!==Te.indexOf(".")?Te.split("."):[Te.substring(0,Te.lastIndexOf("0")+1),Te.substring(Te.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 Gt=Pt.charAt(Vt);"0"===Gt?C.minFrac=C.maxFrac=Vt+1:"#"===Gt?C.maxFrac=Vt+1:C.posSuf+=Gt}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=Te.length-C.posPre.length-C.posSuf.length,Gt=Ye.indexOf("#");C.negPre=Ye.substr(0,Gt).replace(/'/g,""),C.negSuf=Ye.substr(Gt+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 Zt(y,R,C,V){let Te=`=${y}`;if(R.indexOf(Te)>-1||(Te=C.getPluralCategory(y,V),R.indexOf(Te)>-1))return Te;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("="),[Te,Ye]=-1==V?[C,""]:[C.slice(0,V),C.slice(V+1)];if(Te.trim()===R)return decodeURIComponent(Ye)}return null}let rn=(()=>{class y{constructor(C,V,Te,Ye){this._iterableDiffers=C,this._keyValueDiffers=V,this._ngEl=Te,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(Te=>{V?this._renderer.addClass(this._ngEl.nativeElement,Te):this._renderer.removeClass(this._ngEl.nativeElement,Te)})}}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})(),An=(()=>{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 Rn{constructor(R,C,V,Te){this.$implicit=R,this.ngForOf=C,this.index=V,this.count=Te}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,Te){this._viewContainer=C,this._template=V,this._differs=Te,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((Te,Ye,ot)=>{if(null==Te.previousIndex)V.createEmbeddedView(this._template,new Rn(Te.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),Tn(Et,Te)}});for(let Te=0,Ye=V.length;Te<Ye;Te++){const Et=V.get(Te).context;Et.index=Te,Et.count=Ye,Et.ngForOf=this._ngForOf}C.forEachIdentityChange(Te=>{Tn(V.get(Te.currentIndex),Te)})}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 Tn(y,R){y.context.$implicit=R.item}let Cn=(()=>{class y{constructor(C,V){this._viewContainer=C,this._context=new an,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){Zn("ngIfThen",C),this._thenTemplateRef=C,this._thenViewRef=null,this._updateView()}set ngIfElse(C){Zn("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 an{constructor(){this.$implicit=null,this.ngIf=null}}function Zn(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 Bn=(()=>{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})(),jn=(()=>{class y{constructor(C,V,Te){this.ngSwitch=Te,Te._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(Bn,9))},y.\u0275dir=i.\u0275\u0275defineDirective({type:y,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),y})(),ui=(()=>{class y{constructor(C,V,Te){Te._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(Bn,9))},y.\u0275dir=i.\u0275\u0275defineDirective({type:y,selectors:[["","ngSwitchDefault",""]]}),y})(),si=(()=>{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=Zt(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})(),Fn=(()=>{class y{constructor(C,V,Te,Ye){this.value=C;const ot=!isNaN(Number(C));Ye.addCase(ot?`=${C}`:C,new ri(Te,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(si,1))},y.\u0275dir=i.\u0275\u0275defineDirective({type:y,selectors:[["","ngPluralCase",""]]}),y})(),gr=(()=>{class y{constructor(C,V,Te){this._ngEl=C,this._differs=V,this._renderer=Te,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[Te,Ye]=C.split(".");null!=(V=null!=V&&Ye?`${V}${Ye}`:V)?this._renderer.setStyle(this._ngEl.nativeElement,Te,V):this._renderer.removeStyle(this._ngEl.nativeElement,Te)}_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 Vn(y,R){return new i.\u0275RuntimeError(2100,"")}class $n{createSubscription(R,C){return R.subscribe({next:C,error:V=>{throw V}})}dispose(R){R.unsubscribe()}onDestroy(R){R.unsubscribe()}}class di{createSubscription(R,C){return R.then(C,V=>{throw V})}dispose(R){}onDestroy(R){}}const Fi=new di,wr=new $n;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 Vn()}_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})(),_r=(()=>{class y{transform(C){if(null==C)return null;if("string"!=typeof C)throw Vn();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 Mi=/(?:[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 Vn();return C.replace(Mi,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})(),hi=(()=>{class y{transform(C){if(null==C)return null;if("string"!=typeof C)throw Vn();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 fi=(()=>{class y{constructor(C,V){this.locale=C,this.defaultTimezone=V}transform(C,V="mediumDate",Te,Ye){var ot;if(null==C||""===C||C!=C)return null;try{return Bt(C,V,Ye||this.locale,null!==(ot=null!=Te?Te:this.defaultTimezone)&&void 0!==ot?ot:void 0)}catch(Et){throw Vn()}}}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 yr=/#/g;let or=(()=>{class y{constructor(C){this._localization=C}transform(C,V,Te){if(null==C)return"";if("object"!=typeof V||null===V)throw Vn();return V[Zt(C,Object.keys(V),this._localization,Te)].replace(yr,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 Vn();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})(),wi=(()=>{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 Te=this.differ.diff(C),Ye=V!==this.compareFn;return Te&&(this.keyValues=[],Te.forEachItem(ot=>{this.keyValues.push(function Si(y,R){return{key:y,value:R}}(ot.key,ot.currentValue))})),(Te||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 Te=String(C),Ye=String(V);return Te==Ye?0:Te<Ye?-1:1}let Qi=(()=>{class y{constructor(C){this._locale=C}transform(C,V,Te){if(!vi(C))return null;Te=Te||this._locale;try{return Ie(Bi(C),Te,V)}catch(Ye){throw Vn()}}}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})(),Yn=(()=>{class y{constructor(C){this._locale=C}transform(C,V,Te){if(!vi(C))return null;Te=Te||this._locale;try{return H(Bi(C),Te,V)}catch(Ye){throw Vn()}}}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})(),yi=(()=>{class y{constructor(C,V="USD"){this._locale=C,this._defaultCurrencyCode=V}transform(C,V=this._defaultCurrencyCode,Te="symbol",Ye,ot){if(!vi(C))return null;ot=ot||this._locale,"boolean"==typeof Te&&(Te=Te?"symbol":"code");let Et=V||this._defaultCurrencyCode;"code"!==Te&&(Et="symbol"===Te||"symbol-narrow"===Te?we(Et,"symbol"===Te?"wide":"narrow",ot):Te);try{return Sn(Bi(C),ot,Et,V,Ye)}catch(Pt){throw Vn()}}}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 vi(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 bi=(()=>{class y{transform(C,V,Te){if(null==C)return null;if(!this.supports(C))throw Vn();return C.slice(V,Te)}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})(),ji=(()=>{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 Vi="browser",Zi="server",ti="browserWorkerApp",$i="browserWorkerUi";function kn(y){return y===Vi}function Hi(y){return y===Zi}function Ci(y){return y===ti}function Yi(y){return y===$i}const br=new i.Version("13.2.2");let J=(()=>{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 Te=V.currentNode;for(;Te;){const Ye=Te.shadowRoot;if(Ye){const ot=Ye.getElementById(R)||Ye.querySelector(`[name="${R}"]`);if(ot)return ot}Te=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,Te=C.top+this.window.pageYOffset,Ye=this.offset();this.window.scrollTo(V-Ye[0],Te-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 Q{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:()=>ie,HttpClientJsonpModule:()=>ce,HttpClientModule:()=>Ae,HttpClientXsrfModule:()=>ae,HttpContext:()=>ke,HttpContextToken:()=>he,HttpErrorResponse:()=>le,HttpEventType:()=>at,HttpHandler:()=>T,HttpHeaderResponse:()=>Fe,HttpHeaders:()=>d,HttpParams:()=>U,HttpRequest:()=>Je,HttpResponse:()=>q,HttpResponseBase:()=>ne,HttpUrlEncodingCodec:()=>P,HttpXhrBackend:()=>Re,HttpXsrfTokenExtractor:()=>mt,JsonpClientBackend:()=>qe,JsonpInterceptor:()=>X,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(oe){this.normalizedNames=new Map,this.lazyUpdate=null,oe?this.lazyInit="string"==typeof oe?()=>{this.headers=new Map,oe.split("\n").forEach(Ce=>{const Qe=Ce.indexOf(":");if(Qe>0){const it=Ce.slice(0,Qe),ht=it.toLowerCase(),ft=Ce.slice(Qe+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(oe).forEach(Ce=>{let Qe=oe[Ce];const it=Ce.toLowerCase();"string"==typeof Qe&&(Qe=[Qe]),Qe.length>0&&(this.headers.set(it,Qe),this.maybeSetNormalizedName(Ce,it))})}:this.headers=new Map}has(oe){return this.init(),this.headers.has(oe.toLowerCase())}get(oe){this.init();const Ce=this.headers.get(oe.toLowerCase());return Ce&&Ce.length>0?Ce[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(oe){return this.init(),this.headers.get(oe.toLowerCase())||null}append(oe,Ce){return this.clone({name:oe,value:Ce,op:"a"})}set(oe,Ce){return this.clone({name:oe,value:Ce,op:"s"})}delete(oe,Ce){return this.clone({name:oe,value:Ce,op:"d"})}maybeSetNormalizedName(oe,Ce){this.normalizedNames.has(Ce)||this.normalizedNames.set(Ce,oe)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(oe=>this.applyUpdate(oe)),this.lazyUpdate=null))}copyFrom(oe){oe.init(),Array.from(oe.headers.keys()).forEach(Ce=>{this.headers.set(Ce,oe.headers.get(Ce)),this.normalizedNames.set(Ce,oe.normalizedNames.get(Ce))})}clone(oe){const Ce=new d;return Ce.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,Ce.lazyUpdate=(this.lazyUpdate||[]).concat([oe]),Ce}applyUpdate(oe){const Ce=oe.name.toLowerCase();switch(oe.op){case"a":case"s":let Qe=oe.value;if("string"==typeof Qe&&(Qe=[Qe]),0===Qe.length)return;this.maybeSetNormalizedName(oe.name,Ce);const it=("a"===oe.op?this.headers.get(Ce):void 0)||[];it.push(...Qe),this.headers.set(Ce,it);break;case"d":const ht=oe.value;if(ht){let ft=this.headers.get(Ce);if(!ft)return;ft=ft.filter(Dt=>-1===ht.indexOf(Dt)),0===ft.length?(this.headers.delete(Ce),this.normalizedNames.delete(Ce)):this.headers.set(Ce,ft)}else this.headers.delete(Ce),this.normalizedNames.delete(Ce)}}forEach(oe){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ce=>oe(this.normalizedNames.get(Ce),this.headers.get(Ce)))}}class P{encodeKey(oe){return $(oe)}encodeValue(oe){return $(oe)}decodeKey(oe){return decodeURIComponent(oe)}decodeValue(oe){return decodeURIComponent(oe)}}const b=/%(\d[a-f0-9])/gi,k={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function $(De){return encodeURIComponent(De).replace(b,(oe,Ce)=>{var Qe;return null!==(Qe=k[Ce])&&void 0!==Qe?Qe:oe})}function pe(De){return`${De}`}class U{constructor(oe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=oe.encoder||new P,oe.fromString){if(oe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function M(De,oe){const Ce=new Map;return De.length>0&&De.replace(/^\?/,"").split("&").forEach(it=>{const ht=it.indexOf("="),[ft,Dt]=-1==ht?[oe.decodeKey(it),""]:[oe.decodeKey(it.slice(0,ht)),oe.decodeValue(it.slice(ht+1))],Bt=Ce.get(ft)||[];Bt.push(Dt),Ce.set(ft,Bt)}),Ce}(oe.fromString,this.encoder)}else oe.fromObject?(this.map=new Map,Object.keys(oe.fromObject).forEach(Ce=>{const Qe=oe.fromObject[Ce];this.map.set(Ce,Array.isArray(Qe)?Qe:[Qe])})):this.map=null}has(oe){return this.init(),this.map.has(oe)}get(oe){this.init();const Ce=this.map.get(oe);return Ce?Ce[0]:null}getAll(oe){return this.init(),this.map.get(oe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(oe,Ce){return this.clone({param:oe,value:Ce,op:"a"})}appendAll(oe){const Ce=[];return Object.keys(oe).forEach(Qe=>{const it=oe[Qe];Array.isArray(it)?it.forEach(ht=>{Ce.push({param:Qe,value:ht,op:"a"})}):Ce.push({param:Qe,value:it,op:"a"})}),this.clone(Ce)}set(oe,Ce){return this.clone({param:oe,value:Ce,op:"s"})}delete(oe,Ce){return this.clone({param:oe,value:Ce,op:"d"})}toString(){return this.init(),this.keys().map(oe=>{const Ce=this.encoder.encodeKey(oe);return this.map.get(oe).map(Qe=>Ce+"="+this.encoder.encodeValue(Qe)).join("&")}).filter(oe=>""!==oe).join("&")}clone(oe){const Ce=new U({encoder:this.encoder});return Ce.cloneFrom=this.cloneFrom||this,Ce.updates=(this.updates||[]).concat(oe),Ce}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(oe=>this.map.set(oe,this.cloneFrom.map.get(oe))),this.updates.forEach(oe=>{switch(oe.op){case"a":case"s":const Ce=("a"===oe.op?this.map.get(oe.param):void 0)||[];Ce.push(pe(oe.value)),this.map.set(oe.param,Ce);break;case"d":if(void 0===oe.value){this.map.delete(oe.param);break}{let Qe=this.map.get(oe.param)||[];const it=Qe.indexOf(pe(oe.value));-1!==it&&Qe.splice(it,1),Qe.length>0?this.map.set(oe.param,Qe):this.map.delete(oe.param)}}}),this.cloneFrom=this.updates=null)}}class he{constructor(oe){this.defaultValue=oe}}class ke{constructor(){this.map=new Map}set(oe,Ce){return this.map.set(oe,Ce),this}get(oe){return this.map.has(oe)||this.map.set(oe,oe.defaultValue()),this.map.get(oe)}delete(oe){return this.map.delete(oe),this}has(oe){return this.map.has(oe)}keys(){return this.map.keys()}}function ye(De){return"undefined"!=typeof ArrayBuffer&&De instanceof ArrayBuffer}function Y(De){return"undefined"!=typeof Blob&&De instanceof Blob}function ve(De){return"undefined"!=typeof FormData&&De instanceof FormData}class Je{constructor(oe,Ce,Qe,it){let ht;if(this.url=Ce,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=oe.toUpperCase(),function ge(De){switch(De){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||it?(this.body=void 0!==Qe?Qe:null,ht=it):ht=Qe,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 ke),this.params){const ft=this.params.toString();if(0===ft.length)this.urlWithParams=Ce;else{const Dt=Ce.indexOf("?");this.urlWithParams=Ce+(-1===Dt?"?":Dt<Ce.length-1?"&":"")+ft}}else this.params=new U,this.urlWithParams=Ce}serializeBody(){return null===this.body?null:ye(this.body)||Y(this.body)||ve(this.body)||function xe(De){return"undefined"!=typeof URLSearchParams&&De 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||ve(this.body)?null:Y(this.body)?this.body.type||null:ye(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(oe={}){var Ce;const Qe=oe.method||this.method,it=oe.url||this.url,ht=oe.responseType||this.responseType,ft=void 0!==oe.body?oe.body:this.body,Dt=void 0!==oe.withCredentials?oe.withCredentials:this.withCredentials,Bt=void 0!==oe.reportProgress?oe.reportProgress:this.reportProgress;let Jt=oe.headers||this.headers,Ft=oe.params||this.params;const pn=null!==(Ce=oe.context)&&void 0!==Ce?Ce:this.context;return void 0!==oe.setHeaders&&(Jt=Object.keys(oe.setHeaders).reduce((en,$t)=>en.set($t,oe.setHeaders[$t]),Jt)),oe.setParams&&(Ft=Object.keys(oe.setParams).reduce((en,$t)=>en.set($t,oe.setParams[$t]),Ft)),new Je(Qe,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 ne{constructor(oe,Ce=200,Qe="OK"){this.headers=oe.headers||new d,this.status=void 0!==oe.status?oe.status:Ce,this.statusText=oe.statusText||Qe,this.url=oe.url||null,this.ok=this.status>=200&&this.status<300}}class Fe extends ne{constructor(oe={}){super(oe),this.type=at.ResponseHeader}clone(oe={}){return new Fe({headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class q extends ne{constructor(oe={}){super(oe),this.type=at.Response,this.body=void 0!==oe.body?oe.body:null}clone(oe={}){return new q({body:void 0!==oe.body?oe.body:this.body,headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class le extends ne{constructor(oe){super(oe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${oe.url||"(unknown url)"}`:`Http failure response for ${oe.url||"(unknown url)"}: ${oe.status} ${oe.statusText}`,this.error=oe.error||null}}function Pe(De,oe){return{body:oe,headers:De.headers,context:De.context,observe:De.observe,params:De.params,reportProgress:De.reportProgress,responseType:De.responseType,withCredentials:De.withCredentials}}let ie=(()=>{class De{constructor(Ce){this.handler=Ce}request(Ce,Qe,it={}){let ht;if(Ce instanceof Je)ht=Ce;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 Je(Ce,Qe,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(Ce instanceof Je||"events"===it.observe)return ft;const Dt=ft.pipe((0,_.h)(Bt=>Bt instanceof q));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(Ce,Qe={}){return this.request("DELETE",Ce,Qe)}get(Ce,Qe={}){return this.request("GET",Ce,Qe)}head(Ce,Qe={}){return this.request("HEAD",Ce,Qe)}jsonp(Ce,Qe){return this.request("JSONP",Ce,{params:(new U).append(Qe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ce,Qe={}){return this.request("OPTIONS",Ce,Qe)}patch(Ce,Qe,it={}){return this.request("PATCH",Ce,Pe(it,Qe))}post(Ce,Qe,it={}){return this.request("POST",Ce,Pe(it,Qe))}put(Ce,Qe,it={}){return this.request("PUT",Ce,Pe(it,Qe))}}return De.\u0275fac=function(Ce){return new(Ce||De)(u.\u0275\u0275inject(T))},De.\u0275prov=u.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac}),De})();class Ke{constructor(oe,Ce){this.next=oe,this.interceptor=Ce}handle(oe){return this.interceptor.intercept(oe,this.next)}}const _e=new u.InjectionToken("HTTP_INTERCEPTORS");let tt=(()=>{class De{intercept(Ce,Qe){return Qe.handle(Ce)}}return De.\u0275fac=function(Ce){return new(Ce||De)},De.\u0275prov=u.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac}),De})(),Ee=0;class Be{}let qe=(()=>{class De{constructor(Ce,Qe){this.callbackMap=Ce,this.document=Qe,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+Ee++}handle(Ce){if("JSONP"!==Ce.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==Ce.responseType)throw new Error("JSONP requests must use Json response type.");return new c.y(Qe=>{const it=this.nextCallback(),ht=Ce.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?(Qe.next(new q({body:Dt,status:200,statusText:"OK",url:ht})),Qe.complete()):Qe.error(new le({url:ht,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},en=$t=>{Jt||(Ft(),Qe.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),Qe.next({type:at.Sent}),()=>{Jt=!0,ft.removeEventListener("load",pn),ft.removeEventListener("error",en),Ft()}})}}return De.\u0275fac=function(Ce){return new(Ce||De)(u.\u0275\u0275inject(Be),u.\u0275\u0275inject(i.DOCUMENT))},De.\u0275prov=u.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac}),De})(),X=(()=>{class De{constructor(Ce){this.jsonp=Ce}intercept(Ce,Qe){return"JSONP"===Ce.method?this.jsonp.handle(Ce):Qe.handle(Ce)}}return De.\u0275fac=function(Ce){return new(Ce||De)(u.\u0275\u0275inject(qe))},De.\u0275prov=u.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac}),De})();const me=/^\)\]\}',?\n/;let Re=(()=>{class De{constructor(Ce){this.xhrFactory=Ce}handle(Ce){if("JSONP"===Ce.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new c.y(Qe=>{const it=this.xhrFactory.build();if(it.open(Ce.method,Ce.urlWithParams),Ce.withCredentials&&(it.withCredentials=!0),Ce.headers.forEach(($t,Tt)=>it.setRequestHeader($t,Tt.join(","))),Ce.headers.has("Accept")||it.setRequestHeader("Accept","application/json, text/plain, */*"),!Ce.headers.has("Content-Type")){const $t=Ce.detectContentTypeHeader();null!==$t&&it.setRequestHeader("Content-Type",$t)}if(Ce.responseType){const $t=Ce.responseType.toLowerCase();it.responseType="json"!==$t?$t:"text"}const ht=Ce.serializeBody();let ft=null;const Dt=()=>{if(null!==ft)return ft;const $t=it.statusText||"OK",Tt=new d(it.getAllResponseHeaders()),cn=function Se(De){return"responseURL"in De&&De.responseURL?De.responseURL:/^X-Request-URL:/m.test(De.getAllResponseHeaders())?De.getResponseHeader("X-Request-URL"):null}(it)||Ce.url;return ft=new Fe({headers:Tt,status:it.status,statusText:$t,url:cn}),ft},Bt=()=>{let{headers:$t,status:Tt,statusText:cn,url:Kt}=Dt(),tn=null;204!==Tt&&(tn=void 0===it.response?it.responseText:it.response),0===Tt&&(Tt=tn?200:0);let ue=Tt>=200&&Tt<300;if("json"===Ce.responseType&&"string"==typeof tn){const Z=tn;tn=tn.replace(me,"");try{tn=""!==tn?JSON.parse(tn):null}catch(N){tn=Z,ue&&(ue=!1,tn={error:N,text:tn})}}ue?(Qe.next(new q({body:tn,headers:$t,status:Tt,statusText:cn,url:Kt||void 0})),Qe.complete()):Qe.error(new le({error:tn,headers:$t,status:Tt,statusText:cn,url:Kt||void 0}))},Jt=$t=>{const{url:Tt}=Dt(),cn=new le({error:$t,status:it.status||0,statusText:it.statusText||"Unknown Error",url:Tt||void 0});Qe.error(cn)};let Ft=!1;const pn=$t=>{Ft||(Qe.next(Dt()),Ft=!0);let Tt={type:at.DownloadProgress,loaded:$t.loaded};$t.lengthComputable&&(Tt.total=$t.total),"text"===Ce.responseType&&!!it.responseText&&(Tt.partialText=it.responseText),Qe.next(Tt)},en=$t=>{let Tt={type:at.UploadProgress,loaded:$t.loaded};$t.lengthComputable&&(Tt.total=$t.total),Qe.next(Tt)};return it.addEventListener("load",Bt),it.addEventListener("error",Jt),it.addEventListener("timeout",Jt),it.addEventListener("abort",Jt),Ce.reportProgress&&(it.addEventListener("progress",pn),null!==ht&&it.upload&&it.upload.addEventListener("progress",en)),it.send(ht),Qe.next({type:at.Sent}),()=>{it.removeEventListener("error",Jt),it.removeEventListener("abort",Jt),it.removeEventListener("load",Bt),it.removeEventListener("timeout",Jt),Ce.reportProgress&&(it.removeEventListener("progress",pn),null!==ht&&it.upload&&it.upload.removeEventListener("progress",en)),it.readyState!==it.DONE&&it.abort()}})}}return De.\u0275fac=function(Ce){return new(Ce||De)(u.\u0275\u0275inject(i.XhrFactory))},De.\u0275prov=u.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac}),De})();const be=new u.InjectionToken("XSRF_COOKIE_NAME"),Xe=new u.InjectionToken("XSRF_HEADER_NAME");class mt{}let _t=(()=>{class De{constructor(Ce,Qe,it){this.doc=Ce,this.platform=Qe,this.cookieName=it,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ce=this.doc.cookie||"";return Ce!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.\u0275parseCookieValue)(Ce,this.cookieName),this.lastCookieString=Ce),this.lastToken}}return De.\u0275fac=function(Ce){return new(Ce||De)(u.\u0275\u0275inject(i.DOCUMENT),u.\u0275\u0275inject(u.PLATFORM_ID),u.\u0275\u0275inject(be))},De.\u0275prov=u.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac}),De})(),It=(()=>{class De{constructor(Ce,Qe){this.tokenService=Ce,this.headerName=Qe}intercept(Ce,Qe){const it=Ce.url.toLowerCase();if("GET"===Ce.method||"HEAD"===Ce.method||it.startsWith("http://")||it.startsWith("https://"))return Qe.handle(Ce);const ht=this.tokenService.getToken();return null!==ht&&!Ce.headers.has(this.headerName)&&(Ce=Ce.clone({headers:Ce.headers.set(this.headerName,ht)})),Qe.handle(Ce)}}return De.\u0275fac=function(Ce){return new(Ce||De)(u.\u0275\u0275inject(mt),u.\u0275\u0275inject(Xe))},De.\u0275prov=u.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac}),De})(),ut=(()=>{class De{constructor(Ce,Qe){this.backend=Ce,this.injector=Qe,this.chain=null}handle(Ce){if(null===this.chain){const Qe=this.injector.get(_e,[]);this.chain=Qe.reduceRight((it,ht)=>new Ke(it,ht),this.backend)}return this.chain.handle(Ce)}}return De.\u0275fac=function(Ce){return new(Ce||De)(u.\u0275\u0275inject(S),u.\u0275\u0275inject(u.Injector))},De.\u0275prov=u.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac}),De})();function L(){return"object"==typeof window?window:{}}let ae=(()=>{class De{static disable(){return{ngModule:De,providers:[{provide:It,useClass:tt}]}}static withOptions(Ce={}){return{ngModule:De,providers:[Ce.cookieName?{provide:be,useValue:Ce.cookieName}:[],Ce.headerName?{provide:Xe,useValue:Ce.headerName}:[]]}}}return De.\u0275fac=function(Ce){return new(Ce||De)},De.\u0275mod=u.\u0275\u0275defineNgModule({type:De}),De.\u0275inj=u.\u0275\u0275defineInjector({providers:[It,{provide:_e,useExisting:It,multi:!0},{provide:mt,useClass:_t},{provide:be,useValue:"XSRF-TOKEN"},{provide:Xe,useValue:"X-XSRF-TOKEN"}]}),De})(),Ae=(()=>{class De{}return De.\u0275fac=function(Ce){return new(Ce||De)},De.\u0275mod=u.\u0275\u0275defineNgModule({type:De}),De.\u0275inj=u.\u0275\u0275defineInjector({providers:[ie,{provide:T,useClass:ut},Re,{provide:S,useExisting:Re}],imports:[[ae.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),De})(),ce=(()=>{class De{}return De.\u0275fac=function(Ce){return new(Ce||De)},De.\u0275mod=u.\u0275\u0275defineNgModule({type:De}),De.\u0275inj=u.\u0275\u0275defineInjector({providers:[qe,{provide:Be,useFactory:L},{provide:_e,useClass:X,multi:!0}]}),De})();const we=i.XhrFactory},5e3:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>o_,APP_BOOTSTRAP_LISTENER:()=>cg,APP_ID:()=>og,APP_INITIALIZER:()=>ou,ApplicationInitStatus:()=>Po,ApplicationModule:()=>RE,ApplicationRef:()=>ms,Attribute:()=>Gu,COMPILER_OPTIONS:()=>fg,CUSTOM_ELEMENTS_SCHEMA:()=>Pd,ChangeDetectionStrategy:()=>Ce,ChangeDetectorRef:()=>Ig,Compiler:()=>au,CompilerFactory:()=>Q0,Component:()=>L0,ComponentFactory:()=>na,ComponentFactoryResolver:()=>ls,ComponentRef:()=>Wp,ContentChild:()=>a_,ContentChildren:()=>s_,DEFAULT_CURRENCY_CODE:()=>dg,DebugElement:()=>gs,DebugEventListener:()=>fE,DebugNode:()=>_u,DefaultIterableDiffer:()=>Fg,Directive:()=>rg,ElementRef:()=>cs,EmbeddedViewRef:()=>hE,ErrorHandler:()=>Ko,EventEmitter:()=>pr,Host:()=>ed,HostBinding:()=>$0,HostListener:()=>H0,INJECTOR:()=>zs,Inject:()=>Vo,InjectFlags:()=>L,Injectable:()=>lb,InjectionToken:()=>zn,Injector:()=>Oi,Input:()=>j0,IterableDiffers:()=>fa,KeyValueDiffers:()=>pa,LOCALE_ID:()=>ha,MissingTranslationStrategy:()=>mr,ModuleWithComponentFactories:()=>hg,NO_ERRORS_SCHEMA:()=>Ad,NgModule:()=>U0,NgModuleFactory:()=>em,NgModuleRef:()=>wo,NgProbeToken:()=>nE,NgZone:()=>xi,Optional:()=>kr,Output:()=>V0,PACKAGE_ROOT_URL:()=>z0,PLATFORM_ID:()=>lg,PLATFORM_INITIALIZER:()=>ag,Pipe:()=>B0,PlatformRef:()=>mu,Query:()=>ko,QueryList:()=>aa,ReflectiveInjector:()=>bo,ReflectiveKey:()=>Mr,Renderer2:()=>JC,RendererFactory2:()=>Kp,RendererStyleFlags2:()=>ur,ResolvedReflectiveFactory:()=>bf,Sanitizer:()=>Gp,SecurityContext:()=>Qn,Self:()=>Os,SimpleChange:()=>yi,SkipSelf:()=>Nr,TRANSLATIONS:()=>K0,TRANSLATIONS_FORMAT:()=>G0,TemplateRef:()=>hs,Testability:()=>_g,TestabilityRegistry:()=>du,Type:()=>Ss,VERSION:()=>Zp,Version:()=>Qp,ViewChild:()=>c_,ViewChildren:()=>l_,ViewContainerRef:()=>ca,ViewEncapsulation:()=>ht,ViewRef:()=>Ag,asNativeElements:()=>pE,assertPlatform:()=>Eg,createNgModuleRef:()=>s0,createPlatform:()=>bg,createPlatformFactory:()=>Cg,defineInjectable:()=>X,destroyPlatform:()=>iE,enableProdMode:()=>lE,forwardRef:()=>P,getDebugNode:()=>Ao,getModuleFactory:()=>cE,getNgModuleById:()=>uE,getPlatform:()=>pu,inject:()=>D_,isDevMode:()=>aE,platformCore:()=>wE,resolveForwardRef:()=>M,setTestabilityGetter:()=>tE,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>fu,\u0275APP_ID_RANDOM_PROVIDER:()=>sg,\u0275ChangeDetectorStatus:()=>Qe,\u0275ComponentFactory:()=>na,\u0275Console:()=>ug,\u0275DEFAULT_LOCALE_ID:()=>is,\u0275INJECTOR_SCOPE:()=>Dl,\u0275LifecycleHooksFeature:()=>sf,\u0275LocaleDataIndex:()=>qt,\u0275NG_COMP_DEF:()=>cn,\u0275NG_DIR_DEF:()=>Kt,\u0275NG_ELEMENT_ID:()=>N,\u0275NG_INJ_DEF:()=>It,\u0275NG_MOD_DEF:()=>ue,\u0275NG_PIPE_DEF:()=>tn,\u0275NG_PROV_DEF:()=>_t,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>ia,\u0275NO_CHANGE:()=>on,\u0275NgModuleFactory:()=>sa,\u0275NoopNgZone:()=>gg,\u0275ReflectionCapabilities:()=>Ma,\u0275Render3ComponentFactory:()=>oa,\u0275Render3ComponentRef:()=>Xp,\u0275Render3NgModuleRef:()=>Wc,\u0275RuntimeError:()=>$,\u0275ViewRef:()=>Mo,\u0275_sanitizeHtml:()=>_d,\u0275_sanitizeUrl:()=>Ho,\u0275allowSanitizationBypassAndThrow:()=>to,\u0275bypassSanitizationTrustHtml:()=>j_,\u0275bypassSanitizationTrustResourceUrl:()=>U_,\u0275bypassSanitizationTrustScript:()=>$_,\u0275bypassSanitizationTrustStyle:()=>V_,\u0275bypassSanitizationTrustUrl:()=>H_,\u0275clearResolutionOfComponentResourcesQueue:()=>od,\u0275compileComponent:()=>Km,\u0275compileDirective:()=>ru,\u0275compileNgModule:()=>Vm,\u0275compileNgModuleDefs:()=>$m,\u0275compileNgModuleFactory:()=>yg,\u0275compilePipe:()=>ng,\u0275createInjector:()=>Ml,\u0275defaultIterableDiffers:()=>Vg,\u0275defaultKeyValueDiffers:()=>$g,\u0275detectChanges:()=>Vh,\u0275devModeEqual:()=>cf,\u0275findLocaleData:()=>Fc,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>Bm,\u0275getDebugNode:()=>Ao,\u0275getDebugNodeR2:()=>yE,\u0275getDirectives:()=>Jh,\u0275getHostElement:()=>Il,\u0275getInjectableDef:()=>Se,\u0275getLContext:()=>ai,\u0275getLocaleCurrencyCode:()=>Jb,\u0275getLocalePluralCase:()=>pp,\u0275getSanitizationBypassType:()=>cd,\u0275global:()=>Ft,\u0275injectChangeDetectorRef:()=>Pg,\u0275isBoundToModule:()=>vg,\u0275isDefaultChangeDetectionStrategy:()=>it,\u0275isListLikeIterable:()=>Xo,\u0275isObservable:()=>Pf,\u0275isPromise:()=>Xl,\u0275isSubscribable:()=>If,\u0275ivyEnabled:()=>FE,\u0275makeDecorator:()=>Yr,\u0275markDirty:()=>$h,\u0275noSideEffects:()=>oe,\u0275patchComponentDefWithScope:()=>tu,\u0275publishDefaultGlobalUtils:()=>zv,\u0275publishGlobalUtil:()=>Wi,\u0275registerLocaleData:()=>Yb,\u0275registerNgModuleType:()=>nm,\u0275renderComponent:()=>Kv,\u0275resetCompiledComponents:()=>S0,\u0275resetJitOptions:()=>M0,\u0275resolveComponentResources:()=>id,\u0275setClassMetadata:()=>qp,\u0275setCurrentInjector:()=>Ia,\u0275setDocument:()=>p,\u0275setLocaleId:()=>_p,\u0275store:()=>df,\u0275stringify:()=>T,\u0275transitiveScopesFor:()=>ps,\u0275unregisterLocaleData:()=>Xb,\u0275unwrapSafeValue:()=>Er,\u0275whenRendered:()=>Gv,\u0275\u0275CopyDefinitionFeature:()=>lf,\u0275\u0275FactoryTarget:()=>Xn,\u0275\u0275InheritDefinitionFeature:()=>Al,\u0275\u0275NgOnChangesFeature:()=>vi,\u0275\u0275ProvidersFeature:()=>Up,\u0275\u0275advance:()=>ah,\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:()=>Hf,\u0275\u0275classMapInterpolate1:()=>Yf,\u0275\u0275classMapInterpolate2:()=>Jf,\u0275\u0275classMapInterpolate3:()=>Xf,\u0275\u0275classMapInterpolate4:()=>qf,\u0275\u0275classMapInterpolate5:()=>ep,\u0275\u0275classMapInterpolate6:()=>tp,\u0275\u0275classMapInterpolate7:()=>np,\u0275\u0275classMapInterpolate8:()=>ip,\u0275\u0275classMapInterpolateV:()=>rp,\u0275\u0275classProp:()=>hc,\u0275\u0275contentQuery:()=>xm,\u0275\u0275defineComponent:()=>ee,\u0275\u0275defineDirective:()=>We,\u0275\u0275defineInjectable:()=>qe,\u0275\u0275defineInjector:()=>me,\u0275\u0275defineNgModule:()=>Wt,\u0275\u0275definePipe:()=>de,\u0275\u0275directiveInject:()=>ts,\u0275\u0275disableBindings:()=>Sr,\u0275\u0275element:()=>Mf,\u0275\u0275elementContainer:()=>wf,\u0275\u0275elementContainerEnd:()=>Jl,\u0275\u0275elementContainerStart:()=>Yl,\u0275\u0275elementEnd:()=>Zl,\u0275\u0275elementStart:()=>Ql,\u0275\u0275enableBindings:()=>Ii,\u0275\u0275getCurrentView:()=>Sf,\u0275\u0275getInheritedFactory:()=>Ku,\u0275\u0275hostProperty:()=>xc,\u0275\u0275i18n:()=>Bp,\u0275\u0275i18nApply:()=>Vp,\u0275\u0275i18nAttributes:()=>jp,\u0275\u0275i18nEnd:()=>Bc,\u0275\u0275i18nExp:()=>jc,\u0275\u0275i18nPostprocess:()=>$p,\u0275\u0275i18nStart:()=>Lc,\u0275\u0275inject:()=>ni,\u0275\u0275injectAttribute:()=>Ea,\u0275\u0275invalidFactory:()=>Tf,\u0275\u0275invalidFactoryDep:()=>Pa,\u0275\u0275listener:()=>ql,\u0275\u0275loadQuery:()=>Rm,\u0275\u0275namespaceHTML:()=>Ru,\u0275\u0275namespaceMathML:()=>xu,\u0275\u0275namespaceSVG:()=>Ou,\u0275\u0275nextContext:()=>xf,\u0275\u0275ngDeclareClassMetadata:()=>NE,\u0275\u0275ngDeclareComponent:()=>LE,\u0275\u0275ngDeclareDirective:()=>kE,\u0275\u0275ngDeclareFactory:()=>BE,\u0275\u0275ngDeclareInjectable:()=>VE,\u0275\u0275ngDeclareInjector:()=>$E,\u0275\u0275ngDeclareNgModule:()=>HE,\u0275\u0275ngDeclarePipe:()=>UE,\u0275\u0275pipe:()=>vm,\u0275\u0275pipeBind1:()=>bm,\u0275\u0275pipeBind2:()=>Cm,\u0275\u0275pipeBind3:()=>Em,\u0275\u0275pipeBind4:()=>Dm,\u0275\u0275pipeBindV:()=>Tm,\u0275\u0275projection:()=>Ff,\u0275\u0275projectionDef:()=>Rf,\u0275\u0275property:()=>Kl,\u0275\u0275propertyInterpolate:()=>nc,\u0275\u0275propertyInterpolate1:()=>Zs,\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:()=>rm,\u0275\u0275pureFunction1:()=>om,\u0275\u0275pureFunction2:()=>sm,\u0275\u0275pureFunction3:()=>am,\u0275\u0275pureFunction4:()=>lm,\u0275\u0275pureFunction5:()=>cm,\u0275\u0275pureFunction6:()=>um,\u0275\u0275pureFunction7:()=>dm,\u0275\u0275pureFunction8:()=>hm,\u0275\u0275pureFunctionV:()=>fm,\u0275\u0275queryRefresh:()=>Am,\u0275\u0275reference:()=>hf,\u0275\u0275resolveBody:()=>kd,\u0275\u0275resolveDocument:()=>Fd,\u0275\u0275resolveWindow:()=>Rd,\u0275\u0275restoreView:()=>Qt,\u0275\u0275sanitizeHtml:()=>yd,\u0275\u0275sanitizeResourceUrl:()=>ja,\u0275\u0275sanitizeScript:()=>bd,\u0275\u0275sanitizeStyle:()=>vd,\u0275\u0275sanitizeUrl:()=>Ba,\u0275\u0275sanitizeUrlOrResourceUrl:()=>Dd,\u0275\u0275setComponentScope:()=>E,\u0275\u0275setNgModuleScope:()=>Ht,\u0275\u0275styleMap:()=>qi,\u0275\u0275styleMapInterpolate1:()=>op,\u0275\u0275styleMapInterpolate2:()=>sp,\u0275\u0275styleMapInterpolate3:()=>ap,\u0275\u0275styleMapInterpolate4:()=>lp,\u0275\u0275styleMapInterpolate5:()=>cp,\u0275\u0275styleMapInterpolate6:()=>up,\u0275\u0275styleMapInterpolate7:()=>dp,\u0275\u0275styleMapInterpolate8:()=>hp,\u0275\u0275styleMapInterpolateV:()=>fp,\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:()=>uf,\u0275\u0275templateRefExtractor:()=>Lm,\u0275\u0275text:()=>Zf,\u0275\u0275textInterpolate:()=>pc,\u0275\u0275textInterpolate1:()=>Js,\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:()=>Cd,\u0275\u0275trustConstantResourceUrl:()=>Ed,\u0275\u0275viewQuery:()=>Om});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 P(e){return e.__forward_ref__=P,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__===P}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 he(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 Y(e,t){const n=t?` in ${t}`:"";throw new $(-201,`No provider for ${he(e)} found${n}`)}function Ue(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function qe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const X=qe;function me(e){return{providers:e.providers||[],imports:e.imports||[]}}function Se(e){return Re(e,_t)||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 _t=_({\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 ae;function ce(e){const t=ae;return ae=e,t}function we(e,t,n){const r=Se(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 Y(T(e),"Injector")}function oe(e){return{toString:e}.toString()}var Ce=(()=>((Ce=Ce||{})[Ce.OnPush=0]="OnPush",Ce[Ce.Default=1]="Default",Ce))(),Qe=(()=>((Qe=Qe||{})[Qe.CheckOnce=0]="CheckOnce",Qe[Qe.Checked=1]="Checked",Qe[Qe.CheckAlways=2]="CheckAlways",Qe[Qe.Detached=3]="Detached",Qe[Qe.Errored=4]="Errored",Qe[Qe.Destroyed=5]="Destroyed",Qe))();function it(e){return null==e||e===Ce.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=[],cn=_({\u0275cmp:_}),Kt=_({\u0275dir:_}),tn=_({\u0275pipe:_}),ue=_({\u0275mod:_}),Z=_({\u0275fac:_}),N=_({__NG_ELEMENT_ID__:_});let O=0;function ee(e){return oe(()=>{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===Ce.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(Le):null,r})}function E(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>t.map(j),r.pipeDefs=()=>n.map(Le)}function j(e){return $e(e)||dt(e)}function Le(e){return Nt(e)}const st={};function Wt(e){return oe(()=>{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 oe(()=>{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 We=ee;function de(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[cn]||null}function dt(e){return e[Kt]||null}function Nt(e){return e[tn]||null}function Rt(e,t){const n=e[ue]||null;if(!n&&!0===t)throw new Error(`Type ${T(e)} does not have '\u0275mod' property.`);return n}function Bn(e){return Array.isArray(e)&&"object"==typeof e[1]}function jn(e){return Array.isArray(e)&&!0===e[1]}function ui(e){return 0!=(8&e.flags)}function _i(e){return 2==(2&e.flags)}function si(e){return 1==(1&e.flags)}function Fn(e){return null!==e.template}function gr(e){return 0!=(512&e[2])}function Yn(e,t){return e.hasOwnProperty(Z)?e[Z]:null}class yi{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function vi(){return Bi}function Bi(e){return e.type.prototype.ngOnChanges&&(e.setInput=vr),bi}function bi(){const e=Vi(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 vr(e,t,n,r){const o=Vi(e)||function Zi(e,t){return e[ji]=t}(e,{previous:$t,current:null}),a=o.current||(o.current={}),h=o.previous,v=this.declaredInputs[n],w=h[v];a[v]=new yi(w&&w.currentValue,t,h===$t),e[r]=t}vi.ngInherit=!0;const ji="__ngSimpleChanges__";function Vi(e){return e[ji]||null}let ti=null;const $i=e=>{ti=e},kn=function(e,t,n){null!=ti&&ti(e,t,n)},Yi="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 Bn(n)?n:n[0]}function Gt(e){return 4==(4&e[2])}function ln(e){return 128==(128&e[2])}function A(e,t){return null==t?null:e[t]}function I(e){e[18]=0}function G(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 Ze={lFrame:vn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Di(){return Ze.bindingsEnabled}function Ii(){Ze.bindingsEnabled=!0}function Sr(){Ze.bindingsEnabled=!1}function Ct(){return Ze.lFrame.lView}function Mt(){return Ze.lFrame.tView}function Qt(e){return Ze.lFrame.contextLView=e,e[8]}function jt(){let e=hn();for(;null!==e&&64===e.type;)e=e.parent;return e}function hn(){return Ze.lFrame.currentTNode}function In(){const e=Ze.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Nn(e,t){const n=Ze.lFrame;n.currentTNode=e,n.isParent=t}function Jn(){return Ze.lFrame.isParent}function Ti(){Ze.lFrame.isParent=!1}function Ir(){return Ze.isInCheckNoChangesMode}function Hn(e){Ze.isInCheckNoChangesMode=e}function On(){const e=Ze.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function re(){return Ze.lFrame.bindingIndex}function z(e){return Ze.lFrame.bindingIndex=e}function te(){return Ze.lFrame.bindingIndex++}function se(e){const t=Ze.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function He(e){Ze.lFrame.inI18n=e}function rt(e,t){const n=Ze.lFrame;n.bindingIndex=n.bindingRootIndex=e,gt(t)}function gt(e){Ze.lFrame.currentDirectiveIndex=e}function zt(e){const t=Ze.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Yt(){return Ze.lFrame.currentQueryIndex}function mn(e){Ze.lFrame.currentQueryIndex=e}function En(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Un(e,t,n){if(n&L.SkipSelf){let o=t,a=e;for(;!(o=o.parent,null!==o||n&L.Host||(o=En(a),null===o||(a=a[15],10&o.type))););if(null===o)return!1;t=o,e=a}const r=Ze.lFrame=fn();return r.currentTNode=t,r.lView=e,!0}function sn(e){const t=fn(),n=e[1];Ze.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function fn(){const e=Ze.lFrame,t=null===e?null:e.child;return null===t?vn(e):t}function vn(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 pi(){const e=Ze.lFrame;return Ze.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Cr=pi;function _s(){const e=pi();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 mi(){return Ze.lFrame.selectedIndex}function Pr(e){Ze.lFrame.selectedIndex=e}function Wn(){const e=Ze.lFrame;return Pt(e.tView,e.selectedIndex)}function Ou(){Ze.lFrame.currentNamespace="svg"}function xu(){Ze.lFrame.currentNamespace=Yi}function Ru(){!function Wg(){Ze.lFrame.currentNamespace=null}()}function ys(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 vs(e,t,n){Fu(e,t,3,n)}function bs(e,t,n,r){(3&e[2])===n&&Fu(e,t,n,r)}function ma(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Fu(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)&&(Gg(e,n,t,w),e[18]=(4294901760&e[18])+w+2),w++}function Gg(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,kn(4,v,a);try{a.call(v)}finally{kn(5,v,a)}}}else{kn(4,v,a);try{a.call(v)}finally{kn(5,v,a)}}}class Oo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Cs(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 ku(e){return 3===e||4===e||6===e}function _a(e){return 64===e.charCodeAt(0)}function Es(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||Nu(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function Nu(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 Lu(e){return-1!==e}function Wr(e){return 32767&e}function zr(e,t){let n=function Xg(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let ya=!0;function Ds(e){const t=ya;return ya=e,t}let qg=0;function Ro(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=Ts(e,t),a=e.injectorIndex;if(Lu(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 Ts(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 Ms(e,t,n){!function e_(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(N)&&(r=n[N]),null==r&&(r=n[N]=qg++);const o=255&r;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function Vu(e,t,n){if(n&L.Optional)return e;Y(t,"NodeInjector")}function $u(e,t,n,r){if(n&L.Optional&&void 0===r&&(r=null),0==(n&(L.Self|L.Host))){const o=e[9],a=ce(void 0);try{return o?o.get(t,r,n&L.Optional):we(t,r,n&L.Optional)}finally{ce(a)}}return Vu(r,t,n)}function Hu(e,t,n,r=L.Default,o){if(null!==e){const a=function r_(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:n_:t}(n);if("function"==typeof a){if(!Un(t,e,r))return r&L.Host?Vu(o,n,r):$u(t,n,r,o);try{const h=a(r);if(null!=h||r&L.Optional)return h;Y(n)}finally{Cr()}}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?Ts(e,t):t[v+8],-1!==w&&zu(r,!1)?(h=t[1],v=Wr(w),t=zr(w,t)):v=-1);-1!==v;){const K=t[1];if(Wu(a,v,K.data)){const Me=i_(v,t,n,h,r,B);if(Me!==Uu)return Me}w=t[v+8],-1!==w&&zu(r,t[1].data[v+8]===B)&&Wu(a,v,t)?(h=K,v=Wr(w),t=zr(w,t)):v=-1}}}return $u(t,n,r,o)}const Uu={};function n_(){return new Kr(jt(),Ct())}function i_(e,t,n,r,o,a){const h=t[1],v=h.data[e+8],K=ws(v,h,n,null==r?_i(v)&&ya:r!=h&&0!=(3&v.type),o&L.Host&&a===v);return null!==K?Fo(t,h,K,v):Uu}function ws(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&&Fn(nt)&&nt.type===n)return w}return null}function Fo(e,t,n,r){let o=e[n];const a=t.data;if(function Qg(e){return e instanceof Oo}(o)){const h=o;h.resolving&&function ke(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new $(-200,`Circular dependency in DI detected for ${e}${n}`)}(he(a[n]));const v=Ds(h.canSeeViewProviders);h.resolving=!0;const w=h.injectImpl?ce(h.injectImpl):null;Un(e,r,L.Default);try{o=e[n]=h.factory(void 0,a,e,r),t.firstCreatePass&&n>=r.directiveStart&&function Kg(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&&ce(w),Ds(v),h.resolving=!1,Cr()}}return o}function Wu(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function zu(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 Hu(this._tNode,this._lView,t,r,n)}}function Ku(e){return oe(()=>{const t=e.prototype.constructor,n=t[Z]||Ca(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const a=o[Z]||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()}:Yn(e)}function Ea(e){return function t_(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(ku(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 oe(()=>{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 oe(()=>{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 Me=w.hasOwnProperty(Qr)?w[Qr]:Object.defineProperty(w,Qr,{value:[]})[Qr];for(;Me.length<=K;)Me.push(null);return(Me[K]=Me[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 oe(()=>{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 Me=B.constructor,ze=Me.hasOwnProperty(Zr)?Me[Zr]:Object.defineProperty(Me,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 Gu=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=qe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const o_=new zn("AnalyzeForEntryComponents");class ko{}const s_=Or("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),ko),a_=Or("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),ko),l_=Or("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),ko),c_=Or("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),ko);var Xn=(()=>((Xn=Xn||{})[Xn.Directive=0]="Directive",Xn[Xn.Component=1]="Component",Xn[Xn.Injectable=2]="Injectable",Xn[Xn.Pipe=3]="Pipe",Xn[Xn.NgModule=4]="NgModule",Xn))();function qn(e){const t=Ft.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Ss=Function;function No(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 ar(e,t){e.forEach(n=>Array.isArray(n)?ar(n,t):t(n))}function Zu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Is(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Lo(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 h_(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 Xu(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 f_=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,p_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,m_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,g_=/^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=Lo(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 __(e){return f_.test(e)||g_.test(e)||p_.test(e)&&!m_.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):Lo(t.length)}parameters(t){if(!No(t))return[];const n=Ps(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(!No(t))return[];const n=Ps(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(!No(t))return{};const n=Ps(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 No(t)&&this._ownPropMetadata(t,Ps(t))||{}}hasLifecycleHook(t,n){return t instanceof Ss&&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 Ps(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const xr={},Sa="__NG_DI_FLAG__",As="ngTempTokenPath",v_=/\n/gm,qu="__source",C_=_({provide:String,useValue:_});let Bo;function Ia(e){const t=Bo;return Bo=e,t}function E_(e,t=L.Default){if(void 0===Bo)throw new $(203,"");return null===Bo?we(e,void 0,t):Bo.get(e,t&L.Optional?null:void 0,t)}function ni(e,t=L.Default){return(function Ae(){return ae}()||E_)(M(e),t)}function Pa(e){throw new Error("invalid")}const D_=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=T_(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 jo(e,t){return e[Sa]=t,e.prototype[Sa]=t,e}function T_(e){return e[Sa]}const Vo=jo(Jr("Inject",e=>({token:e})),-1),kr=jo(Jr("Optional"),8),Os=jo(Jr("Self"),2),Nr=jo(Jr("SkipSelf"),4),ed=jo(Jr("Host"),1);let td=null;function Oa(){return td=td||new Ma}function xs(e){return nd(Oa().parameters(e))}function nd(e){return e.map(t=>function S_(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 Os||"Self"===o.ngMetadataName)t.self=!0;else if(r instanceof ed||"Host"===o.ngMetadataName)t.host=!0;else if(r instanceof Vo)t.token=r.token;else if(r instanceof Gu){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 id(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(A_))}return a}return qr.forEach((o,a)=>{const h=[];o.templateUrl&&h.push(r(o.templateUrl).then(Me=>{o.template=Me}));const v=o.styleUrls,w=o.styles||(o.styles=[]),B=o.styles.length;v&&v.forEach((Me,ze)=>{w.push(""),h.push(r(Me).then(nt=>{w[B+ze]=nt,v.splice(v.indexOf(Me),1),0==v.length&&(o.styleUrls=void 0)}))});const K=Promise.all(h).then(()=>function O_(e){$o.delete(e)}(a));t.push(K)}),od(),Promise.all(t).then(()=>{})}let qr=new Map;const $o=new Set;function rd(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function od(){const e=qr;return qr=new Map,e}function A_(e){return"string"==typeof e?e:e.text()}let Rs,Fs;function xa(){if(void 0===Rs&&(Rs=null,Ft.trustedTypes))try{Rs=Ft.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Rs}function eo(e){var t;return(null===(t=xa())||void 0===t?void 0:t.createHTML(e))||e}function Ra(){if(void 0===Fs&&(Fs=null,Ft.trustedTypes))try{Fs=Ft.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Fs}function sd(e){var t;return(null===(t=Ra())||void 0===t?void 0:t.createHTML(e))||e}function ad(e){var t;return(null===(t=Ra())||void 0===t?void 0:t.createScript(e))||e}function ld(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 F_ extends Lr{getTypeName(){return"HTML"}}class k_ extends Lr{getTypeName(){return"Style"}}class N_ extends Lr{getTypeName(){return"Script"}}class L_ extends Lr{getTypeName(){return"URL"}}class B_ extends Lr{getTypeName(){return"ResourceURL"}}function Er(e){return e instanceof Lr?e.changingThisBreaksApplicationSecurity:e}function to(e,t){const n=cd(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 cd(e){return e instanceof Lr&&e.getTypeName()||null}function j_(e){return new F_(e)}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 ud(e){const t=new z_(e);return function K_(){try{return!!(new window.DOMParser).parseFromString(eo(""),"text/html")}catch(e){return!1}}()?new W_(t):t}class W_{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 z_{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 G_=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Q_=/^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 Ho(e){return(e=String(e)).match(G_)||e.match(Q_)?e:"unsafe:"+e}function dd(e){return(e=String(e)).split(",").map(t=>Ho(t.trim())).join(", ")}function lr(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Uo(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const hd=lr("area,br,col,hr,img,wbr"),fd=lr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),pd=lr("rp,rt"),Fa=Uo(hd,Uo(fd,lr("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")),Uo(pd,lr("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")),Uo(pd,fd)),ka=lr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Na=lr("srcset"),md=Uo(ka,Na,lr("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"),lr("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")),Z_=lr("script,style,template");class Y_{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,!Z_.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(!md.hasOwnProperty(v)){this.sanitizedSomething=!0;continue}let w=a.value;ka[v]&&(w=Ho(w)),Na[v]&&(w=dd(w)),this.buf.push(" ",h,'="',gd(w),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Fa.hasOwnProperty(n)&&!hd.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(gd(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 J_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,X_=/([^\#-~ |!])/g;function gd(e){return e.replace(/&/g,"&amp;").replace(J_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(X_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ks;function _d(e,t){let n=null;try{ks=ks||ud(e);let r=t?String(t):"";n=ks.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=ks.getInertBodyElement(r)}while(r!==a);return eo((new Y_).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 q_(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 yd(e){const t=Wo();return t?sd(t.sanitize(Qn.HTML,e)||""):to(e,"HTML")?sd(Er(e)):_d(x(),U(e))}function vd(e){const t=Wo();return t?t.sanitize(Qn.STYLE,e)||"":to(e,"Style")?Er(e):U(e)}function Ba(e){const t=Wo();return t?t.sanitize(Qn.URL,e)||"":to(e,"URL")?Er(e):Ho(U(e))}function ja(e){const t=Wo();if(t)return ld(t.sanitize(Qn.RESOURCE_URL,e)||"");if(to(e,"ResourceURL"))return ld(Er(e));throw new $(904,"")}function bd(e){const t=Wo();if(t)return ad(t.sanitize(Qn.SCRIPT,e)||"");if(to(e,"Script"))return ad(Er(e));throw new $(905,"")}function Cd(e){return eo(e[0])}function Ed(e){return function R_(e){var t;return(null===(t=xa())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function Dd(e,t,n){return function ey(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 Wo(){const e=Ct();return e&&e[12]}function ai(e){let t=zo(e);if(t){if(Array.isArray(t)){const n=t;let r,o,a;if(function ty(e){return e&&e.constructor&&e.constructor.\u0275cmp}(e)){if(r=Sd(n,e),-1==r)throw new Error("The provided component was not found in the application");o=e}else if(function ny(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(r=function ry(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=iy(n)}return-1}(n,e),-1==r)throw new Error("The provided directive was not found in the application");a=Id(r,n,!1)}else if(r=wd(n,e),-1==r)return null;const h=C(n[r]),v=zo(h),w=v&&!Array.isArray(v)?v:Va(n,r,h);if(o&&void 0===w.component&&(w.component=o,li(w.component,w)),a&&void 0===w.directives){w.directives=a;for(let B=0;B<a.length;B++)li(a[B],w)}li(w.native,w),t=w}}else{const n=e;let r=n;for(;r=r.parentNode;){const o=zo(r);if(o){let a;if(a=Array.isArray(o)?o:o.lView,!a)return null;const h=wd(a,n);if(h>=0){const v=C(a[h]),w=Va(a,h,v);li(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 Td(e){let n,t=zo(e);if(Array.isArray(t)){const r=Sd(t,e);n=Vt(r,t);const o=Va(t,r,n[0]);o.component=e,li(e,o),li(o.native,o)}else n=Vt(t.nodeIndex,t.lView);return n}const Md="__ngContext__";function li(e,t){e[Md]=t}function zo(e){return e[Md]||null}function $a(e){const t=zo(e);return t?Array.isArray(t)?t:t.lView:null}function wd(e,t){const n=e[1];for(let r=20;r<n.bindingStartIndex;r++)if(C(e[r])===t)return r;return-1}function iy(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 Sd(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 Id(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 uy(e,...t){e.error(...t)}class Ko{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=function cy(e){return e&&e.ngErrorLogger||uy}(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 Pd={name:"custom-elements"},Ad={name:"no-errors-schema"},dy=/^>|^->|<!--|-->|--!>|<!-$/g,hy=/(<|>)/;const xd=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ft))();function Rd(e){return e.ownerDocument.defaultView}function Fd(e){return e.ownerDocument}function kd(e){return e.ownerDocument.body}function cr(e){return e instanceof Function?e():e}var ur=(()=>((ur=ur||{})[ur.Important=1]="Important",ur[ur.DashCase=2]="DashCase",ur))();let Wa;function za(e,t){return Wa(e,t)}function Go(e){const t=e[3];return jn(t)?t[3]:t}function jd(e){return function Bd(e){let t=Bn(e)?e:$a(e);for(;t&&!(512&t[2]);)t=Go(t);return t}(e)[8]}function Ka(e){return Vd(e[13])}function Ga(e){return Vd(e[4])}function Vd(e){for(;null!==e&&!jn(e);)e=e[4];return e}function io(e,t,n,r,o){if(null!=r){let a,h=!1;jn(r)?a=r:Bn(r)&&(h=!0,r=r[0]);const v=C(r);0===e&&null!==n?null==o?Kd(t,n,v):Br(t,n,v,o||null,!0):1===e&&null!==n?Br(t,n,v,o||null,!0):2===e?qd(t,v,h):3===e&&t.destroyNode(v),null!=a&&function Oy(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];Qo(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 $d(e,t,n){fe(e)?e.setValue(t,n):t.textContent=n}function vy(e,t){return e.createComment(function Od(e){return e.replace(dy,t=>t.replace(hy,"\u200b$1\u200b"))}(t))}function Za(e,t,n){if(fe(e))return e.createElement(t,n);{const r=null!==n?function J(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":t===Yi?"http://www.w3.org/1998/MathML/":null}(n):null;return null===r?e.createElement(t):e.createElementNS(r,t)}}function Hd(e,t){const n=e[9],r=n.indexOf(t),o=t[3];1024&t[2]&&(t[2]&=-1025,G(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&&Hd(o,r),t>0&&(e[n-1][4]=r[4]);const a=Is(e,10+t);!function by(e,t){Qo(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 Ud(e,t){if(!(256&t[2])){const n=t[11];fe(n)&&n.destroyNode&&Qo(e,t,n,3,null,null),function Dy(e){let t=e[13];if(!t)return Ja(e[1],e);for(;t;){let n=null;if(Bn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Bn(t)&&Ja(t[1],t),t=t[3];null===t&&(t=e),Bn(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 Sy(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 Oo)){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];kn(4,v,w);try{w.call(v)}finally{kn(5,v,w)}}else{kn(4,o,a);try{a.call(o)}finally{kn(5,o,a)}}}}}(e,t),function wy(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&&jn(t[3])){n!==t[3]&&Hd(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function Wd(e,t,n){return zd(e,t.parent,n)}function zd(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 Kd(e,t,n){fe(e)?e.appendChild(t,n):t.appendChild(n)}function Gd(e,t,n,r,o){null!==r?Br(e,t,n,r,o):Kd(e,t,n)}function Ns(e,t){return fe(e)?e.parentNode(t):t.parentNode}function Qd(e,t,n){return Yd(e,t,n)}function Zd(e,t,n){return 40&e.type?ot(e,n):null}let Xa,Yd=Zd;function Jd(e,t){Yd=e,Xa=t}function Ls(e,t,n,r){const o=Wd(e,r,t),a=t[11],v=Qd(r.parent||t[6],r,t);if(null!=o)if(Array.isArray(n))for(let w=0;w<n.length;w++)Gd(a,o,n[w],v,!1);else Gd(a,o,n,v,!1);void 0!==Xa&&Xa(a,r,t,n,o)}function Bs(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 Bs(e,r);{const o=e[t.index];return jn(o)?qa(-1,o):C(o)}}if(32&n)return za(t,e)()||C(e[t.index]);{const r=Xd(e,t);return null!==r?Array.isArray(r)?r[0]:Bs(Go(e[16]),r):Bs(e,t.next)}}return null}function Xd(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 Bs(r,o)}return t[7]}function qd(e,t,n){const r=Ns(e,t);r&&function Iy(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&&li(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?eh(e,t,r,n,o,a):io(t,e,o,v,a);n=h?n.projectionNext:n.next}}function Qo(e,t,n,r,o,a){el(n,r,e.firstChild,t,o,a,!1)}function eh(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 th(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 nh(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 ih="ng-template";function Ry(e,t,n){let r=0;for(;r<e.length;){let o=e[r++];if(n&&"class"===o){if(o=e[r],-1!==nh(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 rh(e){return 4===e.type&&e.value!==ih}function Fy(e,t,n){return t===(4!==e.type||n?e.value:ih)}function ky(e,t,n){let r=4;const o=e.attrs||[],a=function By(e){for(let t=0;t<e.length;t++)if(ku(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&&!Fy(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(!Ry(e.attrs,B,n)){if(Ji(r))return!1;h=!0}continue}const Me=Ny(8&r?"class":w,o,rh(e),n);if(-1===Me){if(Ji(r))return!1;h=!0;continue}if(""!==B){let ze;ze=Me>a?"":o[Me+1].toLowerCase();const nt=8&r?ze:null;if(nt&&-1!==nh(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 Ny(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 jy(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 oh(e,t,n=!1){for(let r=0;r<t.length;r++)if(ky(e,t[r],n))return!0;return!1}function Vy(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 sh(e,t){return e?":not("+t.trim()+")":t}function $y(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+=sh(a,o),o=""),r=h,a=a||!Ji(r);n++}return""!==o&&(t+=sh(a,o)),t}const on={};function ah(e){lh(Mt(),Ct(),mi()+e,Ir())}function lh(e,t,n,r){if(!r)if(3==(3&t[2])){const a=e.preOrderCheckHooks;null!==a&&vs(t,a,n)}else{const a=e.preOrderHooks;null!==a&&bs(t,a,0,n)}Pr(n)}function js(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 vh(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];mn(o),h.contentQueries(2,t[a],a)}}}function Zo(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 Ne(){return Ze.lFrame.inI18n}()&&(a.flags|=64);else if(64&a.type){a.type=n,a.value=r,a.attrs=o;const h=In();a.injectorIndex=null===h?-1:h.injectorIndex}return Nn(a,!0),a}function fl(e,t,n,r,o){const a=hn(),h=Jn(),w=e.data[t]=function ov(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 Yo(e,t,n){sn(t);try{const r=e.viewQuery;null!==r&&El(1,r,n);const o=e.template;null!==o&&bh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&vh(e,t),e.staticViewQueries&&El(2,e.viewQuery,n);const a=e.components;null!==a&&function nv(e,t){for(let n=0;n<t.length;n++)Dv(e,t[n])}(t,a)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,_s()}}function so(e,t,n,r){const o=t[2];if(256==(256&o))return;sn(t);const a=Ir();try{I(t),z(e.bindingStartIndex),null!==n&&bh(e,t,n,2,r);const h=3==(3&o);if(!a)if(h){const B=e.preOrderCheckHooks;null!==B&&vs(t,B,null)}else{const B=e.preOrderHooks;null!==B&&bs(t,B,0,null),ma(t,0)}if(function Cv(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])&&G(a,1),o[2]|=1024}}}(t),function bv(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];ln(r)&&so(o,r,o.template,r[8])}}(t),null!==e.contentQueries&&vh(e,t),!a)if(h){const B=e.contentCheckHooks;null!==B&&vs(t,B)}else{const B=e.contentHooks;null!==B&&bs(t,B,1),ma(t,1)}!function ev(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];rt(h,a),v(2,t[a])}}}finally{Pr(-1)}}(e,t);const v=e.components;null!==v&&function tv(e,t){for(let n=0;n<t.length;n++)Ev(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&&vs(t,B)}else{const B=e.viewHooks;null!==B&&bs(t,B,2),ma(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,G(t[3],-1))}finally{_s()}}function iv(e,t,n,r){const o=t[10],a=!Ir(),h=Gt(t);try{a&&!h&&o.begin&&o.begin(),h&&Yo(e,t,r),so(e,t,n,r)}finally{a&&!h&&o.end&&o.end()}}function bh(e,t,n,r,o){const a=mi(),h=2&r;try{Pr(-1),h&&t.length>20&&lh(e,t,20,Ir()),kn(h?2:0,o),n(r,o)}finally{Pr(a),kn(h?3:1,o)}}function Ch(e,t,n){if(ui(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){!Di()||(function hv(e,t,n,r){const o=n.directiveStart,a=n.directiveEnd;e.firstCreatePass||Ro(n,t),li(r,t);const h=n.initialInputs;for(let v=o;v<a;v++){const w=e.data[v],B=Fn(w);B&&_v(t,n,w);const K=Fo(t,e,v,n);li(K,t),null!==h&&yv(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 fv(e,t,n){const r=n.directiveStart,o=n.directiveEnd,h=n.index,v=function yt(){return Ze.lFrame.currentDirectiveIndex}();try{Pr(h);for(let w=r;w<o;w++){const B=e.data[w],K=t[w];gt(w),(null!==B.hostBindings||0!==B.hostVars||null!==B.hostAttrs)&&Ph(B,K)}}finally{Pr(-1),gt(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 Eh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Hs(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Hs(e,t,n,r,o,a,h,v,w,B){const K=20+r,Me=K+o,ze=function rv(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:on);return n}(K,Me),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:Me,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 Th(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 Mh(e,t,n,r){const o=kh(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&Nh(e).push(r,o.length-1))}function wh(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])?(jh(e,n,K,r,o),_i(t)&&function lv(e,t){const n=Vt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function av(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(Di()){const a=function pv(e,t,n){const r=e.directiveRegistry;let o=null;if(r)for(let a=0;a<r.length;a++){const h=r[a];oh(n,h.selectors,!1)&&(o||(o=[]),Ms(Ro(n,t),e,h.type),Fn(h)?(Ah(e,n),o.unshift(h)):o.push(h))}return o}(e,t,n),h=null===r?null:{"":-1};if(null!==a){o=!0,Oh(n,e.data.length,a.length);for(let K=0;K<a.length;K++){const Me=a[K];Me.providersResolver&&Me.providersResolver(Me)}let v=!1,w=!1,B=oo(e,t,a.length,null);for(let K=0;K<a.length;K++){const Me=a[K];n.mergedAttrs=Es(n.mergedAttrs,Me.hostAttrs),xh(e,n,t,B,Me),gv(B,Me,h),null!==Me.contentQueries&&(n.flags|=8),(null!==Me.hostBindings||null!==Me.hostAttrs||0!==Me.hostVars)&&(n.flags|=128);const ze=Me.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 sv(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],Me=K.inputs,ze=null===a||rh(t)?null:vv(Me,a);h.push(ze),v=wh(Me,B,v),w=wh(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 mv(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=Es(n.mergedAttrs,n.attrs),o}function Ih(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 dv(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 Ph(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Ah(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function gv(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Fn(t)&&(n[""]=e)}}function Oh(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function xh(e,t,n,r,o){e.data[r]=o;const a=o.factory||(o.factory=Yn(o.type)),h=new Oo(a,Fn(o),null);e.blueprint[r]=h,n[r]=h,Ih(e,t,0,r,oo(e,n,o.hostVars,on),o)}function _v(e,t,n){const r=ot(t,e),o=Eh(n),a=e[10],h=Us(e,Zo(e,o,null,n.onPush?64:16,r,t,a,a.createRenderer(r,n),null,null));e[t.index]=h}function dr(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 yv(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++],Me=h[w++];null!==v?r.setInput(n,Me,B,K):n[K]=Me}}}function vv(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 Rh(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function Ev(e,t){const n=Vt(t,e);if(ln(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);ln(o)&&o[5]>0&&yl(o)}}function Dv(e,t){const n=Vt(t,e),r=n[1];(function Tv(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),Yo(r,n,n[8])}function Us(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=Go(e);if(gr(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];iv(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 Bh(t,o),o}finally{r.end&&r.end()}}function Fh(e){bl(e[8])}function El(e,t,n){mn(0),t(e,n)}const Iv=hl;function kh(e){return e[7]||(e[7]=[])}function Nh(e){return e.cleanup||(e.cleanup=[])}function Lh(e,t,n){return(null===e||Fn(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 Bh(e,t){const n=e[9],r=n?n.get(Ko,null):null;r&&r.handleError(t)}function jh(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);$d(e[11],r,n)}function Ws(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 Vh(e){const t=Td(e);Cl(t[1],t,e)}function $h(e){!function Mv(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(Td(e))[8],1)}const zs=new zn("INJECTOR",-1);class Hh{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."),Jo={},Pv={};let Tl;function Uh(){return void 0===Tl&&(Tl=new Hh),Tl}function Ml(e,t=null,n=null,r){const o=Wh(e,t,n,r);return o._resolveInjectorDefTypes(),o}function Wh(e,t=null,n=null,r){return new Av(e,n,t||Uh(),r)}class Av{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&&ar(n,v=>this.processProvider(v,t,n)),ar([t],v=>this.processInjectorType(v,[],a)),this.records.set(zs,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=ce(void 0);try{if(!(r&L.SkipSelf)){let v=this.records.get(t);if(void 0===v){const w=function Bv(e){return"function"==typeof e||"object"==typeof e&&e instanceof zn}(t)&&Se(t);v=w&&this.injectableDefInScope(w)?ao(wl(t),Jo):null,this.records.set(t,v)}if(null!=v)return this.hydrate(t,v)}return(r&L.Self?Uh():this.parent).get(t,n=r&L.Optional&&n===xr?null:n)}catch(h){if("NullInjectorError"===h.name){if((h[As]=h[As]||[]).unshift(T(t)),o)throw h;return function M_(e,t,n,r){const o=e[As];throw t[qu]&&o.unshift(t[qu]),e.message=function w_(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(v_,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[As]=null,e}(h,t,"R3InjectorError",this.source)}throw h}finally{ce(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{ar(o.imports,Me=>{this.processInjectorType(Me,n,r)&&(void 0===K&&(K=[]),K.push(Me))})}finally{}if(void 0!==K)for(let Me=0;Me<K.length;Me++){const{ngModule:ze,providers:nt}=K[Me];ar(nt,pt=>this.processProvider(pt,ze,nt||Tt))}}this.injectorDefTypes.add(h);const w=Yn(h)||(()=>new h);this.records.set(h,ao(w,Jo));const B=o.providers;if(null!=B&&!v){const K=t;ar(B,Me=>this.processProvider(Me,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 xv(e,t,n){return Kh(e)?ao(void 0,e.useValue):ao(zh(e),Jo)}(t);if(lo(t)||!0!==t.multi)this.records.get(o);else{let h=this.records.get(o);h||(h=ao(void 0,Jo,!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===Jo&&(n.value=Pv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Lv(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=Se(e),n=null!==t?t.factory:Yn(e);if(null!==n)return n;if(e instanceof zn)throw new $(204,!1);if(e instanceof Function)return function Ov(e){const t=e.length;if(t>0)throw Lo(t,"?"),new $(204,!1);const n=function be(e){const t=e&&(e[_t]||e[ut]);if(t){const n=function Xe(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 zh(e,t,n){let r;if(lo(e)){const o=M(e);return Yn(o)||wl(o)}if(Kh(e))r=()=>M(e.useValue);else if(function Fv(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Aa(e.deps||[]));else if(function Rv(e){return!(!e||!e.useExisting)}(e))r=()=>ni(M(e.useExisting));else{const o=M(e&&(e.useClass||e.provide));if(!function Nv(e){return!!e.deps}(e))return Yn(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 Kh(e){return null!==e&&"object"==typeof e&&C_ 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 Hh,e.\u0275prov=qe({token:e,providedIn:"any",factory:()=>ni(zs)}),e.__NG_ELEMENT_ID__=-1,e})();function Sl(e){Pl(e);const t=ai(e);return null===t?null:(void 0===t.component&&(t.component=function oy(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function Gh(e){Pl(e);const t=ai(e);return null===t?null:t.lView[8]}function Qh(e){const t=ai(e);if(null===t)return null;let r,n=t.lView;for(;2===n[1].type&&(r=Go(n));)n=r;return 512&n[2]?null:n[8]}function Zh(e){return[...jd(e).components]}function Yh(e){const t=ai(e);return null===t?Oi.NULL:new Kr(t.lView[1].data[t.nodeIndex],t.lView)}function Jh(e){if(e instanceof Text)return[];const t=ai(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=Id(o,n,!1)),null===t.directives?[]:[...t.directives]):[]}function Vv(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?Ce.OnPush:Ce.Default};const r=dt(t);return r?{inputs:r.inputs,outputs:r.outputs}:null}function Il(e){return ai(e).native}function Xh(e){Pl(e);const t=ai(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,Me=C(n[B]),ze=o[a[v++]],nt=a[v++],pt="boolean"==typeof nt||nt>=0?"dom":"output",St="boolean"==typeof nt&&nt;e==Me&&h.push({element:e,name:K,callback:ze,useCapture:St,type:pt})}}return h.sort(Hv),h}function Hv(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function Uv(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 Wv(e){$h(e),Zh(e).forEach(t=>Vh(t))}let ef=!1;function zv(){ef||(ef=!0,Wi("\u0275setProfiler",$i),Wi("getDirectiveMetadata",Vv),Wi("getComponent",Sl),Wi("getContext",Gh),Wi("getListeners",Xh),Wi("getOwningComponent",Qh),Wi("getHostElement",Il),Wi("getInjector",Yh),Wi("getRootComponents",Zh),Wi("getDirectives",Jh),Wi("applyChanges",Wv))}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 Kv(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=Th(n.createRenderer(null,null),t.host||a,o.encapsulation),w=o.onPush?576:528,B=rf(t.scheduler,t.playerHandler),K=n.createRenderer(v,o),Me=Hs(0,null,null,1,0,null,null,null,null,null),ze=Zo(null,Me,B,w,null,null,n,K,null,t.injector||null);let nt;sn(ze);try{n.begin&&n.begin(),nt=nf(tf(v,o,ze,n,K,r),o,ze,B,t.hostFeatures||null),Yo(Me,ze,null),so(Me,ze,null,null)}finally{_s(),n.end&&n.end()}return nt}function tf(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&&(Ws(w,B,!0),null!==e&&(Cs(o,e,B),null!==w.classes&&tl(o,e,w.classes),null!==w.styles&&th(o,e,w.styles)));const K=r.createRenderer(e,t),Me=Zo(n,Eh(t),null,t.onPush?64:16,n[20],w,r,K,a||null,null);return h.firstCreatePass&&(Ms(Ro(w,n),h,t.type),Ah(h,w),Oh(w,n.length,1)),Us(n,Me),n[20]=Me}function nf(e,t,n,r,o){const a=n[1],h=function uv(e,t,n){const r=jt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),xh(e,r,t,oo(e,t,1,null),n));const o=Fo(t,e,r.directiveStart,r);li(o,t);const a=ot(r,t);return a&&li(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),Ih(n[1],v,0,v.directiveStart,v.directiveEnd,t),Ph(t,h)),h}function rf(e,t){return{components:[],scheduler:e||xd,clean:Iv,playerHandler:t||null,flags:0}}function sf(e,t){ys($a(e)[1],jt())}function Gv(e){return jd(e).clean}function af(e){return Object.getPrototypeOf(e.prototype).constructor}function Al(e){let t=af(e.type),n=!0;const r=[e];for(;t;){let o;if(Fn(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&&Jv(e,v);const w=o.viewQuery,B=o.contentQueries;if(w&&Zv(e,w),B&&Yv(e,B),D(e.inputs,o.inputs),D(e.declaredInputs,o.declaredInputs),D(e.outputs,o.outputs),Fn(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 Qv(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=Es(o.hostAttrs,n=Es(n,o.hostAttrs))}}(r)}function Ol(e){return e===$t?{}:e===Tt?[]:e}function Zv(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function Yv(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,a)=>{t(r,o,a),n(r,o,a)}:t}function Jv(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}const Xv=["providersResolver"],qv=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function lf(e){let n,t=af(e.type);n=Fn(e)?t.\u0275cmp:t.\u0275dir;const r=e;for(const o of Xv)r[o]=n[o];if(Fn(n))for(const o of qv)r[o]=n[o]}let Ks=null;function co(){if(!Ks){const e=Ft.Symbol;if(e&&e.iterator)Ks=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&&(Ks=r)}}}return Ks}function cf(e,t){const n=Xo(e),r=Xo(t);return n&&r?function eb(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,cf):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}function Xo(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 hr(e,t,n){return e[t]=n}function qo(e,t){return e[t]}function ci(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function jr(e,t,n,r){const o=ci(e,t,n);return ci(e,t+1,r)||o}function Gs(e,t,n,r,o){const a=jr(e,t,n,r);return ci(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 ci(o,te(),t)&&(Mt(),dr(Wn(),o,e,t,n,r)),Rl}function uo(e,t){let n=!1,r=re();for(let a=1;a<t.length;a+=2)n=ci(e,r++,t[a])||n;if(z(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 ci(e,te(),n)?t+U(n)+r:on}function fo(e,t,n,r,o,a){const v=jr(e,re(),n,o);return se(2),v?t+U(n)+r+U(o)+a:on}function po(e,t,n,r,o,a,h,v){const B=Gs(e,re(),n,o,h);return se(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 Me=zi(e,re(),n,o,h,w);return se(4),Me?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,Me){const ze=re();let nt=zi(e,ze,n,o,h,w);return nt=ci(e,ze+4,K)||nt,se(5),nt?t+U(n)+r+U(o)+a+U(h)+v+U(w)+B+U(K)+Me:on}function _o(e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt){const pt=re();let St=zi(e,pt,n,o,h,w);return St=jr(e,pt+4,K,ze)||St,se(6),St?t+U(n)+r+U(o)+a+U(h)+v+U(w)+B+U(K)+Me+U(ze)+nt:on}function yo(e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt,St){const Ot=re();let Ut=zi(e,Ot,n,o,h,w);return Ut=Gs(e,Ot+4,K,ze,pt)||Ut,se(7),Ut?t+U(n)+r+U(o)+a+U(h)+v+U(w)+B+U(K)+Me+U(ze)+nt+U(pt)+St:on}function vo(e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt,St,Ot,Ut){const vt=re();let Xt=zi(e,vt,n,o,h,w);return Xt=zi(e,vt+4,K,ze,pt,Ot)||Xt,se(8),Xt?t+U(n)+r+U(o)+a+U(h)+v+U(w)+B+U(K)+Me+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&&dr(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&&dr(Wn(),w,e,B,h,v),kl}function Nl(e,t,n,r,o,a,h,v,w,B){const K=Ct(),Me=po(K,t,n,r,o,a,h,v);return Me!==on&&dr(Wn(),K,e,Me,w,B),Nl}function Ll(e,t,n,r,o,a,h,v,w,B,K,Me){const ze=Ct(),nt=mo(ze,t,n,r,o,a,h,v,w,B);return nt!==on&&dr(Wn(),ze,e,nt,K,Me),Ll}function Bl(e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt){const pt=Ct(),St=go(pt,t,n,r,o,a,h,v,w,B,K,Me);return St!==on&&dr(Wn(),pt,e,St,ze,nt),Bl}function jl(e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt,St){const Ot=Ct(),Ut=_o(Ot,t,n,r,o,a,h,v,w,B,K,Me,ze,nt);return Ut!==on&&dr(Wn(),Ot,e,Ut,pt,St),jl}function Vl(e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt,St,Ot,Ut){const vt=Ct(),Xt=yo(vt,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt,St);return Xt!==on&&dr(Wn(),vt,e,Xt,Ot,Ut),Vl}function $l(e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt,St,Ot,Ut,vt,Xt){const gn=Ct(),Dn=vo(gn,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt,St,Ot,Ut);return Dn!==on&&dr(Wn(),gn,e,Dn,vt,Xt),$l}function Hl(e,t,n,r){const o=Ct(),a=uo(o,t);return a!==on&&dr(Wn(),o,e,a,n,r),Hl}function uf(e,t,n,r,o,a,h,v){const w=Ct(),B=Mt(),K=e+20,Me=B.firstCreatePass?function nb(e,t,n,r,o,a,h,v,w){const B=t.consts,K=ro(t,e,4,h||null,A(B,v));gl(t,n,K,A(B,w)),ys(t,K);const Me=K.tViews=Hs(2,K,r,o,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,B);return null!==t.queries&&(t.queries.template(t,K),Me.queries=t.queries.embeddedTView(K)),K}(K,B,w,t,n,r,o,a,h):B.data[K];Nn(Me,!1);const ze=w[11].createComment("");Ls(B,w,ze,Me),li(ze,w),Us(w,w[K]=Rh(ze,w,ze,Me)),si(Me)&&pl(B,w,Me),null!=h&&ml(w,Me,v)}function df(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function hf(e){return xt(function Ur(){return Ze.lFrame.contextLView}(),20+e)}const ff={\u0275\u0275defineInjectable:qe,\u0275\u0275defineInjector:me,\u0275\u0275inject:ni,\u0275\u0275invalidFactoryDep:Pa,resolveForwardRef:M};const rb=_({provide:String,useValue:_});function pf(e){return void 0!==e.useClass}function mf(e){return void 0!==e.useFactory}const lb=Yr("Injectable",void 0,void 0,void 0,(e,t)=>function ib(e,t){let n=null,r=null;e.hasOwnProperty(_t)||Object.defineProperty(e,_t,{get:()=>(null===n&&(n=qn().compileInjectable(ff,`ng:///${e.name}/\u0275prov.js`,function ab(e,t){const n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(pf(n)||mf(n))&&void 0!==n.deps&&(r.deps=nd(n.deps)),pf(n)?r.useClass=n.useClass:function ob(e){return rb in e}(n)?r.useValue=n.useValue:mf(n)?r.useFactory=n.useFactory:function sb(e){return void 0!==e.useExisting}(n)&&(r.useExisting=n.useExisting),r}(e,t))),n)}),e.hasOwnProperty(Z)||Object.defineProperty(e,Z,{get:()=>{if(null===r){const o=qn();r=o.compileFactory(ff,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:xs(e),target:o.FactoryTarget.Injectable})}return r},configurable:!0})}(e,t));function Ul(e){return e.length>1?" ("+function cb(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 ly(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=ub,h.keys=o,h.injectors=[e],h.constructResolvingMessage=n,h[Ha]=r,h}function ub(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function gf(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 gb(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 _f.get(M(t))}static get numberOfKeys(){return _f.numberOfKeys}}class _b{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 _f=new _b;class yb{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 yf=new yb(new Ma);class Qs{constructor(t,n,r){this.key=t,this.optional=n,this.visibility=r}static fromKey(t){return new Qs(t,!1,null)}}const vb=[];class vf{constructor(t,n,r){this.key=t,this.resolvedFactories=n,this.multiProvider=r,this.resolvedFactory=this.resolvedFactories[0]}}class bf{constructor(t,n){this.factory=t,this.dependencies=n}}function bb(e){let t,n;if(e.useClass){const r=M(e.useClass);t=yf.factory(r),n=Ef(r)}else e.useExisting?(t=r=>r,n=[Qs.fromKey(Mr.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function Tb(e,t){if(t){const n=t.map(r=>[r]);return t.map(r=>Df(e,r,n))}return Ef(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=vb);return new bf(t,n)}function Cb(e){return new vf(Mr.get(e.provide),[bb(e)],e.multi||!1)}function Eb(e){const r=function Db(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 gb(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 vf(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,a)}}return t}(Cf(e,[]).map(Cb),new Map);return Array.from(r.values())}function Cf(e,t){return e.forEach(n=>{if(n instanceof Ss)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 pb(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`)}(n);Cf(n,t)}}),t}function Ef(e){const t=yf.parameters(e);if(!t)return[];if(t.some(n=>null==n))throw gf(e,t);return t.map(n=>Df(e,n,t))}function Df(e,t,n){let r=null,o=!1;if(!Array.isArray(t))return zl(t instanceof Vo?t.token:t,o,null);let a=null;for(let h=0;h<t.length;++h){const v=t[h];v instanceof Ss?r=v:v instanceof Vo?r=v.token:v instanceof kr?o=!0:v instanceof Os||v instanceof Nr?a=v:v instanceof zn&&(r=v)}if(r=M(r),null!=r)return zl(r,o,a);throw gf(e,n)}function zl(e,t,n){return new Qs(Mr.get(e),t,n)}const es={};class bo{static resolve(t){return Eb(t)}static resolveAndCreate(t,n){const r=bo.resolve(t);return bo.fromResolvedProviders(r,n)}static fromResolvedProviders(t,n){return new Mb(t,n)}}let Mb=(()=>{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]=es}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 mb(e){return Error(`Index ${e} is out-of-bounds.`)}(n);return this._providers[n]}_new(n){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function hb(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 fb(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 Os?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]===es&&(this.objs[r]=this._new(this._providers[r])),this.objs[r];return es}_throwOrNull(n,r){if(r!==xr)return r;throw function db(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!==es?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!==es)return v;a=h.parent}return null!==a?a.get(n.token,r):this._throwOrNull(n,r)}get displayName(){return`ReflectiveInjector(providers: [${function wb(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 ts(e,t=L.Default){const n=Ct();return null===n?ni(e,t):Hu(jt(),n,M(e),t)}function Tf(){throw new Error("invalid")}function Kl(e,t,n){const r=Ct();return ci(r,te(),t)&&Ai(Mt(),Wn(),r,e,t,r[11],n,!1),Kl}function Gl(e,t,n,r,o){const h=o?"class":"style";jh(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 zg(){return Ze.lFrame.currentNamespace}()),B=a.firstCreatePass?function Sb(e,t,n,r,o,a,h){const v=t.consts,B=ro(t,e,2,o,A(v,a));return gl(t,n,B,A(v,h)),null!==B.attrs&&Ws(B,B.attrs,!1),null!==B.mergedAttrs&&Ws(B,B.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,B),B}(h,a,o,0,t,n,r):a.data[h];Nn(B,!0);const K=B.mergedAttrs;null!==K&&Cs(v,w,K);const Me=B.classes;null!==Me&&tl(v,w,Me);const ze=B.styles;null!==ze&&th(v,w,ze),64!=(64&B.flags)&&Ls(a,o,w,B),0===function dn(){return Ze.lFrame.elementDepthCount}()&&li(w,o),function wn(){Ze.lFrame.elementDepthCount++}(),si(B)&&(pl(a,o,B),Ch(a,B,o)),null!==r&&ml(o,B)}function Zl(){let e=jt();Jn()?Ti():(e=e.parent,Nn(e,!1));const t=e;!function Ei(){Ze.lFrame.elementDepthCount--}();const n=Mt();n.firstCreatePass&&(ys(n,e),ui(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Yg(e){return 0!=(16&e.flags)}(t)&&Gl(n,t,Ct(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Jg(e){return 0!=(32&e.flags)}(t)&&Gl(n,t,Ct(),t.stylesWithoutHost,!1)}function Mf(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 Ib(e,t,n,r,o){const a=t.consts,h=A(a,r),v=ro(t,e,8,"ng-container",h);return null!==h&&Ws(v,h,!0),gl(t,n,v,A(a,o)),null!==t.queries&&t.queries.elementStart(t,v),v}(a,o,r,t,n):o.data[a];Nn(h,!0);const v=r[a]=r[11].createComment("");Ls(o,r,v,h),li(v,r),si(h)&&(pl(o,r,h),Ch(o,h,r)),null!=n&&ml(r,h)}function Jl(){let e=jt();const t=Mt();Jn()?Ti():(e=e.parent,Nn(e,!1)),t.firstCreatePass&&(ys(t,e),ui(e)&&t.queries.elementEnd(e))}function wf(e,t,n){Yl(e,t,n),Jl()}function Sf(){return Ct()}function Xl(e){return!!e&&"function"==typeof e.then}function If(e){return!!e&&"function"==typeof e.subscribe}const Pf=If;function ql(e,t,n,r){const o=Ct(),a=Mt(),h=jt();return Af(a,o,o[11],h,e,t,!!n,r),ql}function ec(e,t){const n=jt(),r=Ct(),o=Mt();return Af(o,r,Lh(zt(o.data),n,r),n,e,t,!1),ec}function Af(e,t,n,r,o,a,h,v){const w=si(r),K=e.firstCreatePass&&Nh(e),Me=t[8],ze=kh(t);let nt=!0;if(3&r.type||v){const Ot=ot(r,t),Ut=v?v(Ot):Ot,vt=ze.length,Xt=v?gn=>v(C(gn[r.index])):r.index;if(fe(n)){let gn=null;if(!v&&w&&(gn=function Pb(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!==gn)(gn.__ngLastListenerFn__||gn).__ngNextListenerFn__=a,gn.__ngLastListenerFn__=a,nt=!1;else{a=tc(r,t,Me,a,!1);const Dn=n.listen(Ut,o,a);ze.push(a,Dn),K&&K.push(o,Xt,vt,vt+1)}}else a=tc(r,t,Me,a,!0),Ut.addEventListener(o,a,h),ze.push(a),K&&K.push(o,Xt,vt,h)}else a=tc(r,t,Me,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 Of(e,t,n,r){try{return kn(6,t,n),!1!==n(r)}catch(o){return Bh(e,o),!1}finally{kn(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=Of(t,n,r,h),B=a.__ngNextListenerFn__;for(;B;)w=Of(t,n,B,h)&&w,B=B.__ngNextListenerFn__;return o&&!1===w&&(h.preventDefault(),h.returnValue=!1),w}}function xf(e=1){return function Hg(e){return(Ze.lFrame.contextLView=function Ug(e,t){for(;e>0;)t=t[15],e--;return t}(e,Ze.lFrame.contextLView))[8]}(e)}function Ab(e,t){let n=null;const r=function Ly(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?oh(e,a,!0):Vy(r,a))return o}else n=o}return n}function Rf(e){const t=Ct()[16][6];if(!t.projection){const r=t.projection=Lo(e?e.length:1,null),o=r.slice();let a=t.child;for(;null!==a;){const h=e?Ab(a,e):0;null!==h&&(o[h]?o[h].projectionNext=a:r[h]=a,o[h]=a),a=a.next}}}function Ff(e,t=0,n){const r=Ct(),o=Mt(),a=ro(o,20+e,16,null,n||null);null===a.projection&&(a.projection=t),Ti(),64!=(64&a.flags)&&function Ay(e,t,n){eh(t[11],0,t,n,Wd(e,n,t),Qd(n.parent||t[6],n,t))}(o,r,a)}function nc(e,t,n){return Zs(e,"",t,"",n),nc}function Zs(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),Zs}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 Me=Ct(),ze=mo(Me,t,n,r,o,a,h,v,w,B);return ze!==on&&Ai(Mt(),Wn(),Me,e,ze,Me[11],K,!1),oc}function sc(e,t,n,r,o,a,h,v,w,B,K,Me,ze){const nt=Ct(),pt=go(nt,t,n,r,o,a,h,v,w,B,K,Me);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,Me,ze,nt,pt){const St=Ct(),Ot=_o(St,t,n,r,o,a,h,v,w,B,K,Me,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,Me,ze,nt,pt,St,Ot){const Ut=Ct(),vt=yo(Ut,t,n,r,o,a,h,v,w,B,K,Me,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,Me,ze,nt,pt,St,Ot,Ut,vt){const Xt=Ct(),gn=vo(Xt,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt,St,Ot,Ut);return gn!==on&&Ai(Mt(),Wn(),Xt,e,gn,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 kf(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];Rb(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 Rb(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 ei={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Nf(e){return e.substring(ei.key,ei.keyEnd)}function Fb(e){return e.substring(ei.value,ei.valueEnd)}function Lf(e,t){const n=ei.textEnd;return n===t?-1:(t=ei.keyEnd=function Lb(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,ei.key=t,n),Co(e,t,n))}function Bf(e,t){const n=ei.textEnd;let r=ei.key=Co(e,t,n);return n===r?-1:(r=ei.keyEnd=function Bb(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=Vf(e,r,n),r=ei.value=Co(e,r,n),r=ei.valueEnd=function jb(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=$f(e,w,h,n):t===h-4&&85===a&&82===o&&76===r&&40===w?v=h=$f(e,41,h,n):w>32&&(v=h),a=o,o=r,r=-33&w}return v}(e,r,n),Vf(e,r,n))}function jf(e){ei.key=0,ei.keyEnd=0,ei.value=0,ei.valueEnd=0,ei.textEnd=e.length}function Co(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Vf(e,t,n,r){return(t=Co(e,t,n))<n&&t++,t}function $f(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(zf,Vb,e,!1)}function Vb(e,t){for(let n=function Nb(e){return jf(e),Bf(e,Co(e,0,ei.textEnd))}(t);n>=0;n=Bf(t,n))zf(e,Nf(t),Fb(t))}function Hf(e){tr(Pi,fr,e,!0)}function fr(e,t){for(let n=function kb(e){return jf(e),Lf(e,Co(e,0,ei.textEnd))}(t);n>=0;n=Lf(t,n))Pi(e,Nf(t),!0)}function er(e,t,n,r){const o=Ct(),a=Mt(),h=se(2);a.firstUpdatePass&&Wf(a,e,h,r),t!==on&&ci(o,h,t)&&Kf(a,a.data[mi()],o,o[11],e,o[h+1]=function Gb(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=se(2);o.firstUpdatePass&&Wf(o,null,a,r);const h=Ct();if(n!==on&&ci(h,a,n)){const v=o.data[mi()];if(Qf(v,r)&&!Uf(o,a)){let w=r?v.classesWithoutHost:v.stylesWithoutHost;null!==w&&(n=S(w,n||"")),Gl(o,v,h,n,r)}else!function Kb(e,t,n,r,o,a,h,v){o===on&&(o=Tt);let w=0,B=0,K=0<o.length?o[0]:null,Me=0<a.length?a[0]:null;for(;null!==K||null!==Me;){const ze=w<o.length?o[w+1]:void 0,nt=B<a.length?a[B+1]:void 0;let St,pt=null;K===Me?(w+=2,B+=2,ze!==nt&&(pt=Me,St=nt)):null===Me||null!==K&&K<Me?(w+=2,pt=K):(B+=2,pt=Me,St=nt),null!==pt&&Kf(e,t,n,r,pt,St,h,v),K=w<o.length?o[w]:null,Me=B<a.length?a[B]:null}}(o,v,h,h[11],h[a+1],h[a+1]=function zb(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 Uf(e,t){return t>=e.expandoStartIndex}function Wf(e,t,n,r){const o=e.data;if(null===o[n+1]){const a=o[mi()],h=Uf(e,n);Qf(a,r)&&null===t&&!h&&(t=!1),t=function $b(e,t,n,r){const o=zt(e);let a=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=ns(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 Hb(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=ns(w,t.attrs,r),function Ub(e,t,n,r){e[Xi(n?t.classBindings:t.styleBindings)]=r}(e,t,r,w))}else a=function Wb(e,t,n){let r;const o=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<o;a++)r=ns(r,e[a].hostAttrs,n);return ns(r,t.attrs,n)}(e,t,r)}return void 0!==a&&(r?t.residualClasses=a:t.residualStyles=a),n}(o,a,t,r),function Ob(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 Me=n;K=Me[1],(null===K||Xr(Me,K)>0)&&(B=!0)}else K=n;if(o)if(0!==w){const ze=Xi(e[v+1]);e[r+1]=js(ze,v),0!==ze&&(e[ze+1]=il(e[ze+1],r)),e[v+1]=function Wy(e,t){return 131071&e|t<<17}(e[v+1],r)}else e[r+1]=js(v,0),0!==v&&(e[v+1]=il(e[v+1],r)),v=r;else e[r+1]=js(w,0),0===v?v=r:e[w+1]=il(e[w+1],r),w=r;B&&(e[r+1]=nl(e[r+1])),kf(e,K,r,!0),kf(e,K,r,!1),function xb(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=js(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=ns(r,a.hostAttrs,o),a!==e);)v++;return null!==e&&(n.directiveStylingLast=v),r}function ns(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 zf(e,t,n){Pi(e,t,Er(n))}function Kf(e,t,n,r,o,a,h,v){if(!(3&t.type))return;const w=e.data,B=w[v+1];Ys(function dh(e){return 1==(1&e)}(B)?Gf(w,t,n,o,Dr(B),h):void 0)||(Ys(a)||function uh(e){return 2==(2&e)}(B)&&(a=Gf(w,null,n,o,v,h)),function xy(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:ur.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|=ur.Important),a?e.setStyle(n,r,o,h):n.style.setProperty(r,o,v?"important":"")}}}(r,h,Ye(mi(),n),o,a))}function Gf(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,Me=null===K;let ze=n[o+1];ze===on&&(ze=Me?Tt:void 0);let nt=Me?Ta(ze,r):K===r?ze:void 0;if(B&&!Ys(nt)&&(nt=Ta(w,r)),Ys(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 Ys(e){return void 0!==e}function Qf(e,t){return 0!=(e.flags&(t?16:32))}function Zf(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);Ls(r,n,h,a),Nn(a,!1)}function pc(e){return Js("",e,""),pc}function Js(e,t,n){const r=Ct(),o=ho(r,e,t,n);return o!==on&&Tr(r,mi(),o),Js}function mc(e,t,n,r,o){const a=Ct(),h=fo(a,e,t,n,r,o);return h!==on&&Tr(a,mi(),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,mi(),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,mi(),K),_c}function yc(e,t,n,r,o,a,h,v,w,B,K){const Me=Ct(),ze=go(Me,e,t,n,r,o,a,h,v,w,B,K);return ze!==on&&Tr(Me,mi(),ze),yc}function vc(e,t,n,r,o,a,h,v,w,B,K,Me,ze){const nt=Ct(),pt=_o(nt,e,t,n,r,o,a,h,v,w,B,K,Me,ze);return pt!==on&&Tr(nt,mi(),pt),vc}function bc(e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt){const St=Ct(),Ot=yo(St,e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt);return Ot!==on&&Tr(St,mi(),Ot),bc}function Cc(e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt,St,Ot){const Ut=Ct(),vt=vo(Ut,e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt,St,Ot);return vt!==on&&Tr(Ut,mi(),vt),Cc}function Ec(e){const t=Ct(),n=uo(t,e);return n!==on&&Tr(t,mi(),n),Ec}function Yf(e,t,n){tr(Pi,fr,ho(Ct(),e,t,n),!0)}function Jf(e,t,n,r,o){tr(Pi,fr,fo(Ct(),e,t,n,r,o),!0)}function Xf(e,t,n,r,o,a,h){tr(Pi,fr,po(Ct(),e,t,n,r,o,a,h),!0)}function qf(e,t,n,r,o,a,h,v,w){tr(Pi,fr,mo(Ct(),e,t,n,r,o,a,h,v,w),!0)}function ep(e,t,n,r,o,a,h,v,w,B,K){tr(Pi,fr,go(Ct(),e,t,n,r,o,a,h,v,w,B,K),!0)}function tp(e,t,n,r,o,a,h,v,w,B,K,Me,ze){tr(Pi,fr,_o(Ct(),e,t,n,r,o,a,h,v,w,B,K,Me,ze),!0)}function np(e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt){tr(Pi,fr,yo(Ct(),e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt),!0)}function ip(e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt,St,Ot){tr(Pi,fr,vo(Ct(),e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt,St,Ot),!0)}function rp(e){tr(Pi,fr,uo(Ct(),e),!0)}function op(e,t,n){qi(ho(Ct(),e,t,n))}function sp(e,t,n,r,o){qi(fo(Ct(),e,t,n,r,o))}function ap(e,t,n,r,o,a,h){qi(po(Ct(),e,t,n,r,o,a,h))}function lp(e,t,n,r,o,a,h,v,w){qi(mo(Ct(),e,t,n,r,o,a,h,v,w))}function cp(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 up(e,t,n,r,o,a,h,v,w,B,K,Me,ze){qi(_o(Ct(),e,t,n,r,o,a,h,v,w,B,K,Me,ze))}function dp(e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt){qi(yo(Ct(),e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt))}function hp(e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt,St,Ot){qi(vo(Ct(),e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt,St,Ot))}function fp(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,Me,ze){return er(e,go(Ct(),t,n,r,o,a,h,v,w,B,K,Me),ze,!1),Sc}function Ic(e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt){return er(e,_o(Ct(),t,n,r,o,a,h,v,w,B,K,Me,ze,nt),pt,!1),Ic}function Pc(e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt,St,Ot){return er(e,yo(Ct(),t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt,St),Ot,!1),Pc}function Ac(e,t,n,r,o,a,h,v,w,B,K,Me,ze,nt,pt,St,Ot,Ut,vt){return er(e,vo(Ct(),t,n,r,o,a,h,v,w,B,K,Me,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 ci(r,te(),t)&&Ai(Mt(),Wn(),r,e,t,r[11],n,!0),xc}function Rc(e,t,n){const r=Ct();if(ci(r,te(),t)){const a=Mt(),h=Wn();Ai(a,h,r,e,t,Lh(zt(a.data),h,r),n,!0)}return Rc}const Vr=void 0;var Zb=["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 Qb(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Eo={};function Yb(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 qb(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=mp(t);if(n)return n;const r=t.split("-")[0];if(n=mp(r),n)return n;if("en"===r)return Zb;throw new Error(`Missing locale data for the locale "${e}".`)}function Jb(e){return Fc(e)[qt.CurrencyCode]||null}function pp(e){return Fc(e)[qt.PluralCase]}function mp(e){return e in Eo||(Eo[e]=Ft.ng&&Ft.ng.common&&Ft.ng.common.locales&&Ft.ng.common.locales[e]),Eo[e]}function Xb(){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 eC=["zero","one","two","few","many"],is="en-US",Xs={marker:"element"},qs={marker:"ICU"};var Kn=(()=>((Kn=Kn||{})[Kn.SHIFT=2]="SHIFT",Kn[Kn.APPEND_EAGERLY=1]="APPEND_EAGERLY",Kn[Kn.COMMENT=2]="COMMENT",Kn))();let gp=is;function _p(e){(function Ee(e,t){null==e&&Ue(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(gp=e.toLowerCase().replace(/_/g,"-"))}function yp(e,t,n){const r=t.insertBeforeIndex,o=Array.isArray(r)?r[0]:r;return null===o?Zd(e,0,n):C(n[o])}function vp(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 bp(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const r=e[n];Cp(r)||rC(r,t)&&null===oC(r)&&sC(r,t.index)}}function Cp(e){return!(64&e.type)}function rC(e,t){return Cp(t)||e.index>t.index}function oC(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function sC(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(Jd(yp,vp),e.insertBeforeIndex=t)}function rs(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function cC(e,t,n){const r=fl(e,n,64,null,null);return bp(t,r),r}function ea(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Ep(e){return e>>>17}function Dp(e){return(131070&e)>>>1}let os=0,ss=0;function Mp(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=Ep(w);let K,Me;if(null===a&&(a=B,h=Ns(o,r)),B===a?(K=r,Me=h):(K=null,Me=C(n[B])),null!==Me){const St=Dp(w);Br(o,Me,n[St],K,!1);const Ut=rs(e,St);if(null!==Ut&&"object"==typeof Ut){const vt=ea(Ut,n);null!==vt&&Mp(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 qs:const B=t[++v],K=t[++v];null===n[K]&&li(n[K]=vy(o,B),n);break;case Xs:const Me=t[++v],ze=t[++v];null===n[ze]&&li(n[ze]=Za(o,Me,null),n)}}}function wp(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 Me=K>>>2;switch(3&K){case 1:const ze=n[++B],nt=n[++B],pt=e.data[Me];"string"==typeof pt?_l(t[11],t[Me],null,pt,ze,w,nt):Ai(e,pt,t,ze,w,t[11],nt,!1);break;case 0:const St=t[Me];null!==St&&$d(t[11],St,w);break;case 2:pC(e,rs(e,Me),t,w);break;case 3:Sp(e,rs(e,Me),r,t)}}}}else{const w=n[a+1];if(w>0&&3==(3&w)){const K=rs(e,w>>>2);t[K.currentCaseLViewIndex]<0&&Sp(e,K,r,t)}}a+=v}}function Sp(e,t,n,r){let o=r[t.currentCaseLViewIndex];if(null!==o){let a=os;o<0&&(o=r[t.currentCaseLViewIndex]=~o,a=-1),wp(e,r,t.update[o],n,a)}}function pC(e,t,n,r){const o=function mC(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function tC(e,t){const n=pp(t)(parseInt(e,10)),r=eC[n];return void 0!==r?r:"other"}(t,function iC(){return gp}());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(ea(t,n)!==o&&(Ip(e,t,n),n[t.currentCaseLViewIndex]=null===o?null:~o,null!==o)){const h=n[t.anchorIdx];h&&Mp(e,t.create[o],n,h)}}function Ip(e,t,n){let r=ea(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&&qd(n[11],v)}else Ip(e,rs(e,~h),n)}}}function gC(){const e=[];let n,r,t=-1;function a(v,w){t=0;const B=ea(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 ta=/\ufffd(\d+):?\d*\ufffd/gi,_C=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,yC=/\ufffd(\d+)\ufffd/,Ap=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,vC=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,bC=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,CC=/\uE500/g;function Op(e,t,n,r,o,a,h){const v=oo(e,r,1,null);let w=v<<Kn.SHIFT,B=In();t===B&&(B=null),null===B&&(w|=Kn.APPEND_EAGERLY),h&&(w|=Kn.COMMENT,function yy(e){void 0===Wa&&(Wa=e())}(gC)),o.push(w,null===a?"":a);const K=fl(e,v,h?32:1,null===a?"":a,null);bp(n,K);const Me=K.index;return Nn(K,!1),null!==B&&t!==B&&function lC(e,t){let n=e.insertBeforeIndex;null===n?(Jd(yp,vp),n=e.insertBeforeIndex=[null,t]):(function ne(e,t,n){e!=t&&Ue(n,e,t,"==")}(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(B,Me),K}function TC(e,t,n,r,o,a,h){const v=h.match(ta),w=Op(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(ta);let K=0;for(let Me=0;Me<B.length;Me++){const ze=B[Me];if(1&Me){const nt=o+parseInt(ze,10);e.push(-1-nt),K|=xp(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 wC(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 xp(e){return 1<<Math.min(e,31)}function Rp(e){let t,a,n="",r=0,o=!1;for(;null!==(t=vC.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 Fp(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 xC(e,t,n){e.push(xp(t.mainBinding),2,-1-t.mainBinding,n<<2|2)})(n,o,a),function aC(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],Me=[];for(let ze=0;ze<K.length;ze++){const nt=K[ze];if("string"!=typeof nt){const pt=Me.push(nt)-1;K[ze]=`\x3c!--\ufffd${pt}\ufffd--\x3e`}}h=AC(e,v,t,n,r,o.cases[B],K.join(""),Me)|h}h&&function RC(e,t,n){e.push(t,1,n<<2|3)}(n,h,a)}function PC(e){const t=[],n=[];let r=1,o=0;const a=kc(e=e.replace(Ap,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);Ap.test(w)?r.push(PC(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 AC(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=ud(x()).getInertBodyElement(h),nt=La(ze)||ze;return nt?kp(e,t,n,r,w,B,K,nt,o,v,0):0}function kp(e,t,n,r,o,a,h,v,w,B,K){let Me=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,Xs,St,w,nt),e.data[nt]=St;const Xt=pt.attributes;for(let gn=0;gn<Xt.length;gn++){const Dn=Xt.item(gn),Ri=Dn.name.toLowerCase();Dn.value.match(ta)?md.hasOwnProperty(Ri)&&Do(h,Dn.value,nt,Dn.name,0,ka[Ri]?Ho:Na[Ri]?dd:null):FC(o,nt,Dn)}Me=kp(e,t,n,r,o,a,h,ze,nt,B,K+1)|Me,Np(a,nt,K)}break;case Node.TEXT_NODE:const Ot=ze.textContent||"",Ut=Ot.match(ta);Nc(o,null,Ut?"":Ot,w,nt),Np(a,nt,K),Ut&&(Me=Do(h,Ot,nt,null,0,null)|Me);break;case Node.COMMENT_NODE:const vt=yC.exec(ze.textContent||"");if(vt){const gn=B[parseInt(vt[1],10)];Nc(o,qs,"",w,nt),Fp(e,n,r,w,gn,nt),OC(a,nt,K)}}ze=ze.nextSibling}return Me}function Np(e,t,n){0===n&&e.push(t)}function OC(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 uC(e,t,n){return e|t<<17|n<<1}(0,r,o))}function FC(e,t,n){e.push(t<<1|1,n.name,n.value)}const kC=/\[(\ufffd.+?\ufffd?)\]/,NC=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,LC=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,BC=/{([A-Z0-9_]+)}/g,jC=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,VC=/\/\*/,$C=/\d+\:(\d+)/;function Lc(e,t,n=-1){const r=Mt(),o=Ct(),a=20+e,h=A(r.consts,t),v=In();r.firstCreatePass&&function DC(e,t,n,r,o,a){const h=In(),v=[],w=[],B=[[]];o=function IC(e,t){if(function SC(e){return-1===e}(t))return Rp(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return Rp(e.substring(n,r))}}(o,a);const K=function EC(e){return e.replace(CC," ")}(o).split(bC);for(let Me=0;Me<K.length;Me++){let ze=K[Me];if(0==(1&Me)){const nt=kc(ze);for(let pt=0;pt<nt.length;pt++){let St=nt[pt];if(0==(1&pt)){const Ot=St;""!==Ot&&TC(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.`);Fp(e,n,w,t,Ot,Op(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(),Nn(In(),!1);else{const Ot=cC(e,B[0],St);B.unshift([]),Nn(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=zd(r,v===o[6]?null:v,o);(function fC(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 Me=e[K];null===Me&&(Me=e[K]=w?o.createComment(v):Qa(o,v)),B&&null!==n&&Br(o,n,Me,r,!1)}})(o,w.create,K,v&&8&v.type?o[v.index]:null),He(!0)}function Bc(){He(!1)}function Bp(e,t,n){Lc(e,t,n),Bc()}function jp(e,t){const n=Mt();!function MC(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(_C.test(w))throw new Error(`ICU expressions are not supported in attributes. Message: "${w}".`);Do(a,w,o,v,wC(a),null)}}e.data[t]=a}}(n,e+20,A(n.consts,t))}function jc(e){return function dC(e){e&&(os|=1<<Math.min(ss,31)),ss++}(ci(Ct(),te(),e)),jc}function Vp(e){!function hC(e,t,n){if(ss>0){const r=e.data[n];wp(e,t,Array.isArray(r)?r:r.update,re()-ss-1,os)}os=0,ss=0}(Mt(),Ct(),e+20)}function $p(e,t={}){return function HC(e,t={}){let n=e;if(kC.test(e)){const r={},o=[0];n=n.replace(NC,(a,h,v)=>{const w=h||v,B=r[w]||[];if(B.length||(w.split("|").forEach(St=>{const Ot=St.match($C),Ut=Ot?parseInt(Ot[1],10):0,vt=VC.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 Me=0;for(let St=0;St<B.length;St++)if(B[St][0]===K){Me=St;break}const[ze,nt,pt]=B[Me];return nt?o.pop():K!==ze&&o.push(ze),B.splice(Me,1),pt})}return Object.keys(t).length&&(n=n.replace(LC,(r,o,a,h,v,w)=>t.hasOwnProperty(a)?`${o}${t[a]}${w}`:r),n=n.replace(BC,(r,o)=>t.hasOwnProperty(o)?t[o]:r),n=n.replace(jC,(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=zh(e);const B=jt(),K=1048575&B.providerIndexes,Me=B.directiveStart,ze=B.providerIndexes>>20;if(lo(e)||!e.multi){const nt=new Oo(w,o,ts),pt=Hc(v,t,o?K:K+ze,Me);-1===pt?(Ms(Ro(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,Me),pt=Hc(v,t,K,K+ze),St=nt>=0&&n[nt],Ot=pt>=0&&n[pt];if(o&&!Ot||!o&&!St){Ms(Ro(B,h),a,v);const Ut=function KC(e,t,n,r,o){const a=new Oo(e,n,ts);return a.multi=[],a.index=t,a.componentProviders=0,Hp(a,o,r&&!n),a}(o?zC:WC,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,Hp(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 kv(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 Hp(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 WC(e,t,n,r){return Uc(this.multi,[])}function zC(e,t,n,r){const o=this.multi;let a;if(this.providerFactory){const h=this.providerFactory.componentProviders,v=Fo(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 Up(e,t=[]){return n=>{n.providersResolver=(r,o)=>function UC(e,t,n){const r=Mt();if(r.firstCreatePass){const o=Fn(e);Vc(n,r.data,r.blueprint,o,!0),Vc(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class Wp{}class na{}class QC{resolveComponentFactory(t){throw function GC(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 ls=(()=>{class e{}return e.NULL=new QC,e})();function ZC(){return To(jt(),Ct())}function To(e,t){return new cs(ot(e,t))}let cs=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=ZC,e})();function YC(e){return e instanceof cs?e.nativeElement:e}class Kp{}let JC=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function qC(){const e=Ct(),n=Vt(jt().index,e);return function XC(e){return e[11]}(Bn(n)?n:e)}(),e})(),Gp=(()=>{class e{}return e.\u0275prov=qe({token:e,providedIn:"root",factory:()=>null}),e})();class Qp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Zp=new Qp("13.2.2"),ia={};function ra(e,t,n,r,o=!1){for(;null!==n;){const a=t[n.index];if(null!==a&&r.push(C(a)),jn(a))for(let v=10;v<a.length;v++){const w=a[v],B=w[1].firstChild;null!==B&&ra(w[1],w,B,r)}const h=n.type;if(8&h)ra(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=Xd(t,n);if(Array.isArray(v))r.push(...v);else{const w=Go(t[16]);ra(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 ra(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(jn(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(Ya(t,r),Is(n,r))}this._attachedToViewContainer=!1}Ud(this._lView[1],this._lView)}onDestroy(t){Mh(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 wv(e,t,n){Hn(!0);try{Cl(e,t,n)}finally{Hn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new $(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Ey(e,t){Qo(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new $(902,"");this._appRef=t}}class e0 extends Mo{constructor(t){super(t),this._view=t}detectChanges(){Fh(this._view)}checkNoChanges(){!function Sv(e){Hn(!0);try{Fh(e)}finally{Hn(!1)}}(this._view)}get context(){return null}}class Yp extends ls{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=$e(t);return new oa(n,this.ngModule)}}function Jp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const n0=new zn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>xd});class oa extends na{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Hy(e){return e.map($y).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Jp(this.componentDef.inputs)}get outputs(){return Jp(this.componentDef.outputs)}create(t,n,r,o){const a=(o=o||this.ngModule)?function r0(e,t){return{get:(n,r,o)=>{const a=e.get(n,ia,o);return a!==ia||r===ia?a:t.get(n,r,o)}}}(t,o.injector):t,h=a.get(Kp,y),v=a.get(Gp,null),w=h.createRenderer(null,this.componentDef),B=this.componentDef.selectors[0][0]||"div",K=r?Th(w,r,this.componentDef.encapsulation):Za(h.createRenderer(null,this.componentDef),B,function t0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?Yi:null}(B)),Me=this.componentDef.onPush?576:528,ze=rf(),nt=Hs(0,null,null,1,0,null,null,null,null,null),pt=Zo(null,nt,ze,Me,null,null,h,w,v,a);let St,Ot;sn(pt);try{const Ut=tf(K,this.componentDef,pt,h,w);if(K)if(r)Cs(w,K,["ng-version",Zp.full]);else{const{attrs:vt,classes:Xt}=function Uy(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&&Cs(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 gn=n[Xt];vt.push(null!=gn?Array.from(gn):null)}}St=nf(Ut,this.componentDef,pt,ze,[sf]),Yo(nt,pt,null)}finally{_s()}return new Xp(this.componentType,St,To(Ot,pt),pt,Ot)}}class Xp extends Wp{constructor(t,n,r,o,a){super(),this.location=r,this._rootLView=o,this._tNode=a,this.instance=n,this.hostView=this.changeDetectorRef=new e0(o),this.componentType=t}get injector(){return new Kr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function qp(e,t,n,r){return oe(()=>{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 em{}const So=new Map;function nm(e){const t=new Set;!function n(r){const o=Rt(r,!0),a=o.id;if(null!==a){(function tm(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=cr(o.imports);for(const v of h)t.has(v)||(t.add(v),n(v))}(e)}function im(e){return So.get(e)||st[e]}function s0(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 Yp(this);const r=Rt(t);this._bootstrapComponents=cr(r.bootstrap),this._r3Injector=Wh(t,n,[{provide:wo,useValue:this},{provide:ls,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===zs?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 sa extends em{constructor(t){super(),this.moduleType=t,null!==Rt(t)&&nm(t)}create(t){return new Wc(this.moduleType,t)}}function rm(e,t,n){const r=On()+e,o=Ct();return o[r]===on?hr(o,r,n?t.call(n):t()):qo(o,r)}function om(e,t,n,r){return pm(Ct(),On(),e,t,n,r)}function sm(e,t,n,r,o){return mm(Ct(),On(),e,t,n,r,o)}function am(e,t,n,r,o,a){return gm(Ct(),On(),e,t,n,r,o,a)}function lm(e,t,n,r,o,a,h){return _m(Ct(),On(),e,t,n,r,o,a,h)}function cm(e,t,n,r,o,a,h,v){const w=On()+e,B=Ct(),K=zi(B,w,n,r,o,a);return ci(B,w+4,h)||K?hr(B,w+5,v?t.call(v,n,r,o,a,h):t(n,r,o,a,h)):qo(B,w+5)}function um(e,t,n,r,o,a,h,v,w){const B=On()+e,K=Ct(),Me=zi(K,B,n,r,o,a);return jr(K,B+4,h,v)||Me?hr(K,B+6,w?t.call(w,n,r,o,a,h,v):t(n,r,o,a,h,v)):qo(K,B+6)}function dm(e,t,n,r,o,a,h,v,w,B){const K=On()+e,Me=Ct();let ze=zi(Me,K,n,r,o,a);return Gs(Me,K+4,h,v,w)||ze?hr(Me,K+7,B?t.call(B,n,r,o,a,h,v,w):t(n,r,o,a,h,v,w)):qo(Me,K+7)}function hm(e,t,n,r,o,a,h,v,w,B,K){const Me=On()+e,ze=Ct(),nt=zi(ze,Me,n,r,o,a);return zi(ze,Me+4,h,v,w,B)||nt?hr(ze,Me+8,K?t.call(K,n,r,o,a,h,v,w,B):t(n,r,o,a,h,v,w,B)):qo(ze,Me+8)}function fm(e,t,n,r){return ym(Ct(),On(),e,t,n,r)}function us(e,t){const n=e[t];return n===on?void 0:n}function pm(e,t,n,r,o,a){const h=t+n;return ci(e,h,o)?hr(e,h+1,a?r.call(a,o):r(o)):us(e,h+1)}function mm(e,t,n,r,o,a,h){const v=t+n;return jr(e,v,o,a)?hr(e,v+2,h?r.call(h,o,a):r(o,a)):us(e,v+2)}function gm(e,t,n,r,o,a,h,v){const w=t+n;return Gs(e,w,o,a,h)?hr(e,w+3,v?r.call(v,o,a,h):r(o,a,h)):us(e,w+3)}function _m(e,t,n,r,o,a,h,v,w){const B=t+n;return zi(e,B,o,a,h,v)?hr(e,B+4,w?r.call(w,o,a,h,v):r(o,a,h,v)):us(e,B+4)}function ym(e,t,n,r,o,a){let h=t+n,v=!1;for(let w=0;w<o.length;w++)ci(e,h++,o[w])&&(v=!0);return v?hr(e,h,r.apply(a,o)):us(e,h)}function vm(e,t){const n=Mt();let r;const o=e+20;n.firstCreatePass?(r=function a0(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=Yn(r.type)),h=ce(ts);try{const v=Ds(!1),w=a();return Ds(v),df(n,Ct(),o,w),w}finally{ce(h)}}function bm(e,t,n){const r=e+20,o=Ct(),a=xt(o,r);return ds(o,r)?pm(o,On(),t,a.transform,n,a):a.transform(n)}function Cm(e,t,n,r){const o=e+20,a=Ct(),h=xt(a,o);return ds(a,o)?mm(a,On(),t,h.transform,n,r,h):h.transform(n,r)}function Em(e,t,n,r,o){const a=e+20,h=Ct(),v=xt(h,a);return ds(h,a)?gm(h,On(),t,v.transform,n,r,o,v):v.transform(n,r,o)}function Dm(e,t,n,r,o,a){const h=e+20,v=Ct(),w=xt(v,h);return ds(v,h)?_m(v,On(),t,w.transform,n,r,o,a,w):w.transform(n,r,o,a)}function Tm(e,t,n){const r=e+20,o=Ct(),a=xt(o,r);return ds(o,r)?ym(o,On(),t,a.transform,n,a):a.transform.apply(a,n)}function ds(e,t){return e[1].data[t].pure}function zc(e){return t=>{setTimeout(e,void 0,t)}}const pr=class l0 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 Me=t;v=null===(o=Me.next)||void 0===o?void 0:o.bind(Me),w=null===(a=Me.error)||void 0===a?void 0:a.bind(Me),B=null===(h=Me.complete)||void 0===h?void 0:h.bind(Me)}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 c0(){return this._results[co()]()}class aa{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=aa.prototype;r[n]||(r[n]=c0)}get changes(){return this._changes||(this._changes=new pr)}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 u_(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 hs=(()=>{class e{}return e.__NG_ELEMENT_ID__=h0,e})();const u0=hs,d0=class extends u0{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=Zo(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)),Yo(n,r,t),new Mo(r)}};function h0(){return la(jt(),Ct())}function la(e,t){return 4&e.type?new d0(t,e,To(e,t)):null}let ca=(()=>{class e{}return e.__NG_ELEMENT_ID__=f0,e})();function f0(){return Sm(jt(),Ct())}const p0=ca,Mm=class extends p0{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=Ts(this._hostTNode,this._hostLView);if(Lu(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=wm(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&&!No(t);let v;if(h)v=n;else{const Me=n||{};v=Me.index,r=Me.injector,o=Me.projectableNodes,a=Me.ngModuleRef}const w=h?t:new oa($e(t)),B=r||this.parentInjector;if(!a&&null==w.ngModule&&B){const Me=B.get(wo,null);Me&&(a=Me)}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 jn(e[3])}(r)){const K=this.indexOf(t);if(-1!==K)this.detach(K);else{const Me=r[3],ze=new Mm(Me,Me[6],Me[3]);ze.detach(ze.indexOf(t))}}const a=this._adjustIndex(n),h=this._lContainer;!function Ty(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],Zu(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const h=t[17];null!==h&&n!==h&&function My(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=Ns(w,h[7]);return null!==B&&function Cy(e,t,n,r,o,a){r[0]=o,r[6]=t,Qo(e,r,n,1,o,a)}(o,h[6],w,r,B,v),t.attachToViewContainerRef(),Zu(Kc(h),a,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=wm(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Ya(this._lContainer,n);r&&(Is(Kc(this._lContainer),n),Ud(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=Ya(this._lContainer,n);return r&&null!=Is(Kc(this._lContainer),n)?new Mo(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function wm(e){return e[8]}function Kc(e){return e[8]||(e[8]=[])}function Sm(e,t){let n;const r=t[e.index];if(jn(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,Ns(a,h),o,function Py(e,t){return fe(e)?e.nextSibling(t):t.nextSibling}(a,h),!1)}t[e.index]=n=Rh(r,t,o,e),Us(t,n)}return new Mm(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!==Nm(t,n).matches&&this.queries[n].setDirty()}}class Im{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,_0(n,a)),this.matchTNodeWithReadOption(t,n,ws(n,t,a,!1,!1))}else r===hs?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,ws(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===cs||o===ca||o===hs&&4&n.type)this.addMatch(n.index,-2);else{const a=ws(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 _0(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 v0(e,t,n,r){return-1===n?function y0(e,t){return 11&e.type?To(e,t):4&e.type?la(e,t):null}(t,e):-2===n?function b0(e,t,n){return n===cs?To(t,e):n===hs?la(t,e):n===ca?Sm(t,e):void 0}(e,t,r):Fo(e,e[1],n,t)}function Pm(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:v0(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=Pm(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 Me=10;Me<K.length;Me++){const ze=K[Me];ze[17]===ze[3]&&Jc(ze[1],ze,B,r)}if(null!==K[9]){const Me=K[9];for(let ze=0;ze<Me.length;ze++){const nt=Me[ze];Jc(nt[1],nt,B,r)}}}}}return r}function Am(e){const t=Ct(),n=Mt(),r=Yt();mn(r+1);const o=Nm(n,r);if(e.dirty&&Gt(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const a=o.crossesNgTemplate?Jc(n,t,r,[]):Pm(n,t,o,r);e.reset(a,YC),e.notifyOnChanges()}return!0}return!1}function Om(e,t,n){const r=Mt();r.firstCreatePass&&(km(r,new Im(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Fm(r,Ct(),t)}function xm(e,t,n,r){const o=Mt();if(o.firstCreatePass){const a=jt();km(o,new Im(t,n,r),a.index),function E0(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)}Fm(o,Ct(),n)}function Rm(){return function C0(e,t){return e[19].queries[t].queryList}(Ct(),Yt())}function Fm(e,t,n){const r=new aa(4==(4&n));Mh(e,t,r,r.destroy),null===t[19]&&(t[19]=new Qc),t[19].queries.push(new Gc(r))}function km(e,t,n){null===e.queries&&(e.queries=new Zc),e.queries.track(new Yc(t,n))}function Nm(e,t){return e.queries.getByIndex(t)}function Lm(e,t){return la(e,t)}const gi=(()=>({\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:ee,\u0275\u0275defineDirective:We,\u0275\u0275defineInjectable:qe,\u0275\u0275defineInjector:me,\u0275\u0275defineNgModule:Wt,\u0275\u0275definePipe:de,\u0275\u0275directiveInject:ts,\u0275\u0275getInheritedFactory:Ku,\u0275\u0275inject:ni,\u0275\u0275injectAttribute:Ea,\u0275\u0275invalidFactory:Tf,\u0275\u0275invalidFactoryDep:Pa,\u0275\u0275templateRefExtractor:Lm,\u0275\u0275NgOnChangesFeature:vi,\u0275\u0275ProvidersFeature:Up,\u0275\u0275CopyDefinitionFeature:lf,\u0275\u0275InheritDefinitionFeature:Al,\u0275\u0275nextContext:xf,\u0275\u0275namespaceHTML:Ru,\u0275\u0275namespaceMathML:xu,\u0275\u0275namespaceSVG:Ou,\u0275\u0275enableBindings:Ii,\u0275\u0275disableBindings:Sr,\u0275\u0275elementStart:Ql,\u0275\u0275elementEnd:Zl,\u0275\u0275element:Mf,\u0275\u0275elementContainerStart:Yl,\u0275\u0275elementContainerEnd:Jl,\u0275\u0275elementContainer:wf,\u0275\u0275pureFunction0:rm,\u0275\u0275pureFunction1:om,\u0275\u0275pureFunction2:sm,\u0275\u0275pureFunction3:am,\u0275\u0275pureFunction4:lm,\u0275\u0275pureFunction5:cm,\u0275\u0275pureFunction6:um,\u0275\u0275pureFunction7:dm,\u0275\u0275pureFunction8:hm,\u0275\u0275pureFunctionV:fm,\u0275\u0275getCurrentView:Sf,\u0275\u0275restoreView:Qt,\u0275\u0275listener:ql,\u0275\u0275projection:Ff,\u0275\u0275syntheticHostProperty:Rc,\u0275\u0275syntheticHostListener:ec,\u0275\u0275pipeBind1:bm,\u0275\u0275pipeBind2:Cm,\u0275\u0275pipeBind3:Em,\u0275\u0275pipeBind4:Dm,\u0275\u0275pipeBindV:Tm,\u0275\u0275projectionDef:Rf,\u0275\u0275hostProperty:xc,\u0275\u0275property:Kl,\u0275\u0275propertyInterpolate:nc,\u0275\u0275propertyInterpolate1:Zs,\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:vm,\u0275\u0275queryRefresh:Am,\u0275\u0275viewQuery:Om,\u0275\u0275loadQuery:Rm,\u0275\u0275contentQuery:xm,\u0275\u0275reference:hf,\u0275\u0275classMap:Hf,\u0275\u0275classMapInterpolate1:Yf,\u0275\u0275classMapInterpolate2:Jf,\u0275\u0275classMapInterpolate3:Xf,\u0275\u0275classMapInterpolate4:qf,\u0275\u0275classMapInterpolate5:ep,\u0275\u0275classMapInterpolate6:tp,\u0275\u0275classMapInterpolate7:np,\u0275\u0275classMapInterpolate8:ip,\u0275\u0275classMapInterpolateV:rp,\u0275\u0275styleMap:qi,\u0275\u0275styleMapInterpolate1:op,\u0275\u0275styleMapInterpolate2:sp,\u0275\u0275styleMapInterpolate3:ap,\u0275\u0275styleMapInterpolate4:lp,\u0275\u0275styleMapInterpolate5:cp,\u0275\u0275styleMapInterpolate6:up,\u0275\u0275styleMapInterpolate7:dp,\u0275\u0275styleMapInterpolate8:hp,\u0275\u0275styleMapInterpolateV:fp,\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:ah,\u0275\u0275template:uf,\u0275\u0275text:Zf,\u0275\u0275textInterpolate:pc,\u0275\u0275textInterpolate1:Js,\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:Bp,\u0275\u0275i18nAttributes:jp,\u0275\u0275i18nExp:jc,\u0275\u0275i18nStart:Lc,\u0275\u0275i18nEnd:Bc,\u0275\u0275i18nApply:Vp,\u0275\u0275i18nPostprocess:$p,\u0275\u0275resolveWindow:Rd,\u0275\u0275resolveDocument:Fd,\u0275\u0275resolveBody:kd,\u0275\u0275setComponentScope:E,\u0275\u0275setNgModuleScope:Ht,\u0275\u0275sanitizeHtml:yd,\u0275\u0275sanitizeStyle:vd,\u0275\u0275sanitizeResourceUrl:ja,\u0275\u0275sanitizeScript:bd,\u0275\u0275sanitizeUrl:Ba,\u0275\u0275sanitizeUrlOrResourceUrl:Dd,\u0275\u0275trustConstantHtml:Cd,\u0275\u0275trustConstantResourceUrl:Ed,forwardRef:P,resolveForwardRef:M}))();let Io=null;function M0(){Io=null}const fs=[];let Xc=!1;function Bm(){if(!Xc){Xc=!0;try{for(let e=fs.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=fs[e];n.declarations&&n.declarations.every(jm)&&(fs.splice(e,1),I0(t,n))}}finally{Xc=!1}}}function jm(e){return Array.isArray(e)?e.every(jm):!!M(e)}function Vm(e,t={}){$m(e,t),function w0(e,t){fs.push({moduleType:e,ngModule:t})}(e,t)}function $m(e,t,n=!1){const r=Ui(t.declarations||Tt);let o=null;Object.defineProperty(e,ue,{configurable:!0,get:()=>(null===o&&(o=qn().compileNgModule(gi,`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(zm),exports:Ui(t.exports||Tt).map(M).map(zm),schemas:t.schemas?Ui(t.schemas):null,id:t.id||null}),o.schemas||(o.schemas=[])),o)});let a=null;Object.defineProperty(e,Z,{get:()=>{if(null===a){const v=qn();a=v.compileFactory(gi,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:xs(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=qn().compileInjector(gi,`ng:///${e.name}/\u0275inj.js`,v)}return h},configurable:!1})}let ua=new WeakMap,eu=new WeakMap;function S0(){ua=new WeakMap,eu=new WeakMap,fs.length=0}function I0(e,t){const n=Ui(t.declarations||Tt),r=ps(e);n.forEach(o=>{o.hasOwnProperty(cn)?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(cn)?$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 ps(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 cr(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=ps(o);a.exported.directives.forEach(h=>n.compilation.directives.add(h)),a.exported.pipes.forEach(h=>n.compilation.pipes.add(h))}),cr(t.declarations).forEach(r=>{Nt(r)?n.compilation.pipes.add(r):n.compilation.directives.add(r)}),cr(t.exports).forEach(r=>{const o=r;if(nu(o)){const a=ps(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 zm(e){return function P0(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function nu(e){return!!Rt(e)}let iu=0;function Km(e,t){let n=null;(function I_(e,t){rd(t)&&(qr.set(e,t),$o.add(e))})(e,t),Qm(e,t),Object.defineProperty(e,cn,{get:()=>{if(null===n){const r=qn();if(rd(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 T0(){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({},Zm(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&&Ym(e),n=r.compileComponent(gi,v,w)}finally{iu--}if(0===iu&&Bm(),function A0(e){return void 0!==e.ngSelectorScope}(e)){const B=ps(e.ngSelectorScope);tu(n,B)}}return n},configurable:!1})}function ru(e,t){let n=null;Qm(e,t||{}),Object.defineProperty(e,Kt,{get:()=>{if(null===n){const r=Gm(e,t||{});n=qn().compileDirective(gi,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function Gm(e,t){const n=e&&e.name,r=`ng:///${n}/\u0275dir.js`,o=qn(),a=Zm(e,t);return a.typeSourceSpan=o.createParseSourceSpan("Directive",n,r),a.usesInheritance&&Ym(e),{metadata:a,sourceMapUrl:r}}function Qm(e,t){let n=null;Object.defineProperty(e,Z,{get:()=>{if(null===n){const r=Gm(e,t),o=qn();n=o.compileFactory(gi,`ng:///${e.name}/\u0275fac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:xs(e),target:o.FactoryTarget.Directive})}return n},configurable:!1})}function O0(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function Zm(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:Jm(e,r,Xm),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!O0(e),exportAs:F0(t.exportAs),providers:t.providers||null,viewQueries:Jm(e,r,qm)}}function Ym(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)!dt(n)&&!$e(n)&&N0(n)&&ru(n,null),n=Object.getPrototypeOf(n)}function x0(e){return"string"==typeof e?tg(e):M(e)}function R0(e,t){return{propertyName:e,predicate:x0(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly}}function Jm(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 "${he(e)}" since the query selector wasn't defined.`);if(a.some(eg))throw new Error("Cannot combine @Input decorators with query decorators");r.push(R0(o,h))}})}return r}function F0(e){return void 0===e?null:tg(e)}function Xm(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function qm(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function eg(e){return"Input"===e.ngMetadataName}function tg(e){return e.split(",").map(t=>t.trim())}const k0=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function N0(e){const t=Oa();if(k0.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(eg(h)||Xm(h)||qm(h)||"Output"===v||"HostBinding"===v||"HostListener"===v)return!0}}return!1}function ng(e,t){let n=null,r=null;Object.defineProperty(e,Z,{get:()=>{if(null===r){const o=ig(e,t),a=qn();r=a.compileFactory(gi,`ng:///${o.name}/\u0275fac.js`,{name:o.name,type:o.type,typeArgumentCount:0,deps:xs(e),target:a.FactoryTarget.Pipe})}return r},configurable:!1}),Object.defineProperty(e,tn,{get:()=>{if(null===n){const o=ig(e,t);n=qn().compilePipe(gi,`ng:///${o.name}/\u0275pipe.js`,o)}return n},configurable:!1})}function ig(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}const rg=Yr("Directive",(e={})=>e,void 0,void 0,(e,t)=>ru(e,t)),L0=Yr("Component",(e={})=>Object.assign({changeDetection:Ce.Default},e),rg,void 0,(e,t)=>Km(e,t)),B0=Yr("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>ng(e,t)),j0=Or("Input",e=>({bindingPropertyName:e})),V0=Or("Output",e=>({bindingPropertyName:e})),$0=Or("HostBinding",e=>({hostPropertyName:e})),H0=Or("HostListener",(e,t)=>({eventName:e,args:t})),U0=Yr("NgModule",e=>e,void 0,void 0,(e,t)=>Vm(e,t));function da(...e){}const ou=new zn("Application Initializer");let Po=(()=>{class e{constructor(n){this.appInits=n,this.resolve=da,this.reject=da,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(Pf(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=qe({token:e,factory:e.\u0275fac}),e})();const og=new zn("AppId"),sg={provide:og,useFactory:function W0(){return`${su()}${su()}${su()}`},deps:[]};function su(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ag=new zn("Platform Initializer"),lg=new zn("Platform ID"),cg=new zn("appBootstrapListener"),z0=new zn("Application Packages Root URL");let ug=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=qe({token:e,factory:e.\u0275fac}),e})();const ha=new zn("LocaleId"),dg=new zn("DefaultCurrencyCode"),K0=new zn("Translations"),G0=new zn("TranslationsFormat");var mr=(()=>((mr=mr||{})[mr.Error=0]="Error",mr[mr.Warning=1]="Warning",mr[mr.Ignore=2]="Ignore",mr))();class hg{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let au=(()=>{class e{compileModuleSync(n){return new sa(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),a=cr(Rt(n).declarations).reduce((h,v)=>{const w=$e(v);return w&&h.push(new oa(w)),h},[]);return new hg(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=qe({token:e,factory:e.\u0275fac}),e})();const fg=new zn("compilerOptions");class Q0{}const Z0=(()=>Promise.resolve(0))();function lu(e){"undefined"==typeof Zone?Z0.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 pr(!1),this.onMicrotaskEmpty=new pr(!1),this.onStable=new pr(!1),this.onError=new pr(!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 Y0(){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 q0(e){const t=()=>{!function X0(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 pg(e),n.invokeTask(o,a,h,v)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),mg(e)}},onInvoke:(n,r,o,a,h,v,w)=>{try{return pg(e),n.invoke(o,a,h,v,w)}finally{e.shouldCoalesceRunChangeDetection&&t(),mg(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,J0,da,da);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 J0={};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 pg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function mg(e){e._nesting--,cu(e)}class gg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pr,this.onMicrotaskEmpty=new pr,this.onStable=new pr,this.onError=new pr}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 _g=(()=>{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=qe({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=qe({token:e,factory:e.\u0275fac}),e})();class eE{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function tE(e){hu=e}let nr,hu=new eE;function yg(e,t,n){const r=new sa(n);return Promise.resolve(r)}function vg(e){return e.isBoundToModule}const fu=new zn("AllowMultipleToken");class nE{constructor(t,n){this.name=t,this.token=n}}function bg(e){if(nr&&!nr.destroyed&&!nr.injector.get(fu,!1))throw new $(400,"");nr=e.get(mu);const t=e.get(ag,null);return t&&t.forEach(n=>n()),nr}function Cg(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"});bg(Oi.create({providers:v,name:r}))}return Eg()}}function Eg(e){const t=pu();if(!t)throw new $(401,"");return t}function iE(){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 rE(e,t){let n;return n="noop"===e?new gg:("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),Me=K.injector.get(Ko,null);if(!Me)throw new $(402,"");return v.runOutsideAngular(()=>{const ze=v.onError.subscribe({next:nt=>{Me.handleError(nt)}});K.onDestroy(()=>{gu(this._modules,K),ze.unsubscribe()})}),function oE(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}}(Me,v,()=>{const ze=K.injector.get(Po);return ze.runInitializers(),ze.donePromise.then(()=>(_p(K.injector.get(ha,is)||is),this._moduleDoBootstrap(K),K))})})}bootstrapModule(n,r=[]){const o=Dg({},r);return yg(0,0,n).then(a=>this.bootstrapModuleFactory(a,o))}_moduleDoBootstrap(n){const r=n.injector.get(ms);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=qe({token:e,factory:e.\u0275fac}),e})();function Dg(e,t){return Array.isArray(t)?t.reduce(Dg,e):Object.assign(Object.assign({},e),t)}let ms=(()=>{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 Me=this._zone.onUnstable.subscribe(()=>{xi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{B.next(!1)}))});return()=>{K.unsubscribe(),Me.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 na?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const a=vg(o)?void 0:this._injector.get(wo),v=o.create(Oi.NULL,[],r||o.selector,a),w=v.location.nativeElement,B=v.injector.get(_g,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(cg,[]).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(Ko),ni(ls),ni(Po))},e.\u0275prov=qe({token:e,factory:e.\u0275fac}),e})();function gu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Mg=!0,wg=!1;function aE(){return wg=!0,Mg}function lE(){if(wg)throw new Error("Cannot enable prod mode after platform setup.");Mg=!1}function cE(e){const t=im(e);if(!t)throw Sg(e);return new sa(t)}function uE(e){const t=im(e);if(!t)throw Sg(e);return t}function Sg(e){return new Error(`No module with ID ${e} loaded`)}let Ig=(()=>{class e{}return e.__NG_ELEMENT_ID__=Pg,e})();function Pg(e){return function dE(e,t,n){if(_i(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 Ag extends Ig{}class hE extends Ag{}class fE{constructor(t,n){this.name=t,this.callback=n}}function pE(e){return e.map(t=>t.nativeElement)}class _u{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new gs(t):null}get injector(){return Yh(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(Sl(t)||Qh(t))}get context(){return Sl(this.nativeNode)||Gh(this.nativeNode)}get listeners(){return Xh(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function $v(e){const t=ai(e);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function sy(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 jv(e){const t=ai(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];Uv(B)&&(B=B.type),a.push(B)}return a}(this.nativeNode)}}class gs extends _u{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const t=ai(this.nativeNode);return null!==t?t.lView[1].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){const t=ai(this.nativeNode);if(null===t)return{};const n=t.lView,r=n[1].data,o=r[t.nodeIndex],a={};return function mE(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];gE(h)&&(t[a]=h)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,a),function _E(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 Me=1;Me<w.length-1;Me++)K+=U(n[h+Me-1])+w[Me+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=ai(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(Ao(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(Ao(n[o]));return r}query(t){return this.queryAll(t)[0]||null}queryAll(t){const n=[];return Og(this,t,n,!0),n}queryAllNodes(t){const n=[];return Og(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 gE(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function Og(e,t,n,r){const o=ai(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),_i(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];jn(v)&&xg(v,n,r,o,a)}else if(4&e.type){const v=t[e.index];yu(v[7],n,r,o,a),xg(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 xg(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=Ao(e);if(!a)return;(r&&a instanceof gs&&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=Ao(v);w&&((r&&w instanceof gs&&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 Ao(e){return e instanceof Node?(e.hasOwnProperty(Cu)||(e[Cu]=e.nodeType==Node.ELEMENT_NODE?new gs(e):new _u(e)),e[Cu]):null}function yE(e){return null}class Rg{constructor(){}supports(t){return Xo(t)}create(t){return new Fg(t)}}const vE=(e,t)=>t;class Fg{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||vE}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<Ng(r,o,a)?n:r,v=Ng(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=[]),!Xo(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 tb(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 bE(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 kg),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 kg),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 bE{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 CE{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 kg{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new CE,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 Ng(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 Lg{constructor(){}supports(t){return t instanceof Map||xl(t)}create(){return new EE}}class EE{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 DE(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 DE{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 Bg(){return new fa([new Rg])}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||Bg()),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=qe({token:e,providedIn:"root",factory:Bg}),e})();function jg(){return new pa([new Lg])}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||jg()),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=qe({token:e,providedIn:"root",factory:jg}),e})();const TE=[new Lg],Vg=new fa([new Rg]),$g=new pa(TE),wE=Cg(null,"core",[{provide:lg,useValue:"unknown"},{provide:mu,deps:[Oi]},{provide:du,deps:[]},{provide:ug,deps:[]}]),OE=[{provide:ms,useClass:ms,deps:[xi,Oi,Ko,ls,Po]},{provide:n0,deps:[xi],useFactory:function xE(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:[]},sg,{provide:fa,useFactory:function SE(){return Vg},deps:[]},{provide:pa,useFactory:function IE(){return $g},deps:[]},{provide:ha,useFactory:function PE(e){return e||function AE(){return"undefined"!=typeof $localize&&$localize.locale||is}()},deps:[[new Vo(ha),new kr,new Nr]]},{provide:dg,useValue:"USD"}];let RE=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(ni(ms))},e.\u0275mod=Wt({type:e}),e.\u0275inj=me({providers:OE}),e})();const FE=!0;function kE(e){return qn().compileDirectiveDeclaration(gi,`ng:///${e.type.name}/\u0275fac.js`,e)}function NE(e){var t,n;qp(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(n=e.propDecorators)&&void 0!==n?n:null)}function LE(e){return qn().compileComponentDeclaration(gi,`ng:///${e.type.name}/\u0275cmp.js`,e)}function BE(e){return qn(function jE(e){switch(e){case Xn.Directive:return"directive";case Xn.Component:return"component";case Xn.Injectable:return"injectable";case Xn.Pipe:return"pipe";case Xn.NgModule:return"NgModule"}}(e.target)).compileFactoryDeclaration(gi,`ng:///${e.type.name}/\u0275fac.js`,e)}function VE(e){return qn().compileInjectableDeclaration(gi,`ng:///${e.type.name}/\u0275prov.js`,e)}function $E(e){return qn().compileInjectorDeclaration(gi,`ng:///${e.type.name}/\u0275inj.js`,e)}function HE(e){return qn().compileNgModuleDeclaration(gi,`ng:///${e.type.name}/\u0275mod.js`,e)}function UE(e){return qn().compilePipeDeclaration(gi,`ng:///${e.type.name}/\u0275pipe.js`,e)}},3075:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{AbstractControl:()=>kt,AbstractControlDirective:()=>Xe,AbstractFormGroupDirective:()=>Rn,COMPOSITION_BUFFER_MODE:()=>b,CheckboxControlValueAccessor:()=>d,CheckboxRequiredValidator:()=>f,ControlContainer:()=>_t,DefaultValueAccessor:()=>k,EmailValidator:()=>x,FormArray:()=>Lt,FormArrayName:()=>fi,FormBuilder:()=>Gt,FormControl:()=>Zt,FormControlDirective:()=>ki,FormControlName:()=>Gi,FormGroup:()=>un,FormGroupDirective:()=>Mi,FormGroupName:()=>hi,FormsModule:()=>Pt,MaxLengthValidator:()=>R,MaxValidator:()=>kn,MinLengthValidator:()=>fe,MinValidator:()=>Ci,NG_ASYNC_VALIDATORS:()=>he,NG_VALIDATORS:()=>U,NG_VALUE_ACCESSOR:()=>T,NgControl:()=>mt,NgControlStatus:()=>L,NgControlStatusGroup:()=>ae,NgForm:()=>An,NgModel:()=>jn,NgModelGroup:()=>Zn,NgSelectOption:()=>Qi,NumberValueAccessor:()=>si,PatternValidator:()=>V,RadioControlValueAccessor:()=>Vn,RangeValueAccessor:()=>di,ReactiveFormsModule:()=>xt,RequiredValidator:()=>J,SelectControlValueAccessor:()=>Li,SelectMultipleControlValueAccessor:()=>bi,VERSION:()=>ln,Validators:()=>ge,\u0275InternalFormsSharedModule:()=>Et,\u0275NgNoValidate:()=>ui,\u0275NgSelectMultipleOption:()=>vr});var i=l(5e3),u=l(9808),m=l(188),c=l(4128),s=l(4004);let _=(()=>{class F{constructor(I,G){this._renderer=I,this._elementRef=G,this.onChange=Ze=>{},this.onTouched=()=>{}}setProperty(I,G){this._renderer.setProperty(this._elementRef.nativeElement,I,G)}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 A;return function(G){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(G||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 A;return function(G){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(G||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(I,G){1&I&&i.\u0275\u0275listener("change",function(At){return G.onChange(At.target.checked)})("blur",function(){return G.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([S]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const P={provide:T,useExisting:(0,i.forwardRef)(()=>k),multi:!0},b=new i.InjectionToken("CompositionEventMode");let k=(()=>{class F extends _{constructor(I,G,Ze){super(I,G),this._compositionMode=Ze,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,G){1&I&&i.\u0275\u0275listener("input",function(At){return G._handleInput(At.target.value)})("blur",function(){return G.onTouched()})("compositionstart",function(){return G._compositionStart()})("compositionend",function(At){return G._compositionEnd(At.target.value)})},features:[i.\u0275\u0275ProvidersFeature([P]),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"),he=new i.InjectionToken("NgAsyncValidators"),ke=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ge{static min(A){return ye(A)}static max(A){return Y(A)}static required(A){return ve(A)}static requiredTrue(A){return xe(A)}static email(A){return Je(A)}static minLength(A){return at(A)}static maxLength(A){return ne(A)}static pattern(A){return Fe(A)}static nullValidator(A){return null}static compose(A){return Ee(A)}static composeAsync(A){return ct(A)}}function ye(F){return A=>{if($(A.value)||$(F))return null;const I=parseFloat(A.value);return!isNaN(I)&&I<F?{min:{min:F,actual:A.value}}:null}}function Y(F){return A=>{if($(A.value)||$(F))return null;const I=parseFloat(A.value);return!isNaN(I)&&I>F?{max:{max:F,actual:A.value}}:null}}function ve(F){return $(F.value)?{required:!0}:null}function xe(F){return!0===F.value?null:{required:!0}}function Je(F){return $(F.value)||ke.test(F.value)?null:{email:!0}}function at(F){return A=>$(A.value)||!pe(A.value)?null:A.value.length<F?{minlength:{requiredLength:F,actualLength:A.value.length}}:null}function ne(F){return A=>pe(A.value)&&A.value.length>F?{maxlength:{requiredLength:F,actualLength:A.value.length}}:null}function Fe(F){if(!F)return q;let A,I;return"string"==typeof F?(I="","^"!==F.charAt(0)&&(I+="^"),I+=F,"$"!==F.charAt(F.length-1)&&(I+="$"),A=new RegExp(I)):(I=F.toString(),A=F),G=>{if($(G.value))return null;const Ze=G.value;return A.test(Ze)?null:{pattern:{requiredPattern:I,actualValue:Ze}}}}function q(F){return null}function le(F){return null!=F}function Pe(F){const A=(0,i.\u0275isPromise)(F)?(0,m.D)(F):F;return(0,i.\u0275isObservable)(A),A}function ie(F){let A={};return F.forEach(I=>{A=null!=I?Object.assign(Object.assign({},A),I):A}),0===Object.keys(A).length?null:A}function Ke(F,A){return A.map(I=>I(F))}function tt(F){return F.map(A=>function _e(F){return!F.validate}(A)?A:I=>A.validate(I))}function Ee(F){if(!F)return null;const A=F.filter(le);return 0==A.length?null:function(I){return ie(Ke(I,A))}}function Ue(F){return null!=F?Ee(tt(F)):null}function ct(F){if(!F)return null;const A=F.filter(le);return 0==A.length?null:function(I){const G=Ke(I,A).map(Pe);return(0,c.D)(G).pipe((0,s.U)(ie))}}function bt(F){return null!=F?ct(tt(F)):null}function Be(F,A){return null===F?[A]:Array.isArray(F)?[...F,A]:[F,A]}function qe(F){return F._rawValidators}function X(F){return F._rawAsyncValidators}function me(F){return F?Array.isArray(F)?F:[F]:[]}function Se(F,A){return Array.isArray(F)?F.includes(A):F===A}function Re(F,A){const I=me(A);return me(F).forEach(Ze=>{Se(I,Ze)||I.push(Ze)}),I}function be(F,A){return me(A).filter(I=>!Se(F,I))}class Xe{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(A){this._rawValidators=A||[],this._composedValidatorFn=Ue(this._rawValidators)}_setAsyncValidators(A){this._rawAsyncValidators=A||[],this._composedAsyncValidatorFn=bt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(A){this._onDestroyCallbacks.push(A)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(A=>A()),this._onDestroyCallbacks=[]}reset(A){this.control&&this.control.reset(A)}hasError(A,I){return!!this.control&&this.control.hasError(A,I)}getError(A,I){return this.control?this.control.getError(A,I):null}}class mt extends Xe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _t extends Xe{get formDirective(){return null}get path(){return null}}class It{constructor(A){this._cd=A}is(A){var I,G,Ze;return"submitted"===A?!!(null===(I=this._cd)||void 0===I?void 0:I.submitted):!!(null===(Ze=null===(G=this._cd)||void 0===G?void 0:G.control)||void 0===Ze?void 0:Ze[A])}}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,G){2&I&&i.\u0275\u0275classProp("ng-untouched",G.is("untouched"))("ng-touched",G.is("touched"))("ng-pristine",G.is("pristine"))("ng-dirty",G.is("dirty"))("ng-valid",G.is("valid"))("ng-invalid",G.is("invalid"))("ng-pending",G.is("pending"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),F})(),ae=(()=>{class F extends It{constructor(I){super(I)}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(_t,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(I,G){2&I&&i.\u0275\u0275classProp("ng-untouched",G.is("untouched"))("ng-touched",G.is("touched"))("ng-pristine",G.is("pristine"))("ng-dirty",G.is("dirty"))("ng-valid",G.is("valid"))("ng-invalid",G.is("invalid"))("ng-pending",G.is("pending"))("ng-submitted",G.is("submitted"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),F})();function $t(F,A){return[...A.path,F]}function Tt(F,A){ue(F,A),A.valueAccessor.writeValue(F.value),function N(F,A){A.valueAccessor.registerOnChange(I=>{F._pendingValue=I,F._pendingChange=!0,F._pendingDirty=!0,"change"===F.updateOn&&ee(F,A)})}(F,A),function E(F,A){const I=(G,Ze)=>{A.valueAccessor.writeValue(G),Ze&&A.viewToModelUpdate(G)};F.registerOnChange(I),A._registerOnDestroy(()=>{F._unregisterOnChange(I)})}(F,A),function O(F,A){A.valueAccessor.registerOnTouched(()=>{F._pendingTouched=!0,"blur"===F.updateOn&&F._pendingChange&&ee(F,A),"submit"!==F.updateOn&&F.markAsTouched()})}(F,A),function tn(F,A){if(A.valueAccessor.setDisabledState){const I=G=>{A.valueAccessor.setDisabledState(G)};F.registerOnDisabledChange(I),A._registerOnDestroy(()=>{F._unregisterOnDisabledChange(I)})}}(F,A)}function cn(F,A,I=!0){const G=()=>{};A.valueAccessor&&(A.valueAccessor.registerOnChange(G),A.valueAccessor.registerOnTouched(G)),Z(F,A),F&&(A._invokeOnDestroyCallbacks(),F._registerOnCollectionChange(()=>{}))}function Kt(F,A){F.forEach(I=>{I.registerOnValidatorChange&&I.registerOnValidatorChange(A)})}function ue(F,A){const I=qe(F);null!==A.validator?F.setValidators(Be(I,A.validator)):"function"==typeof I&&F.setValidators([I]);const G=X(F);null!==A.asyncValidator?F.setAsyncValidators(Be(G,A.asyncValidator)):"function"==typeof G&&F.setAsyncValidators([G]);const Ze=()=>F.updateValueAndValidity();Kt(A._rawValidators,Ze),Kt(A._rawAsyncValidators,Ze)}function Z(F,A){let I=!1;if(null!==F){if(null!==A.validator){const Ze=qe(F);if(Array.isArray(Ze)&&Ze.length>0){const At=Ze.filter(dn=>dn!==A.validator);At.length!==Ze.length&&(I=!0,F.setValidators(At))}}if(null!==A.asyncValidator){const Ze=X(F);if(Array.isArray(Ze)&&Ze.length>0){const At=Ze.filter(dn=>dn!==A.asyncValidator);At.length!==Ze.length&&(I=!0,F.setAsyncValidators(At))}}}const G=()=>{};return Kt(A._rawValidators,G),Kt(A._rawAsyncValidators,G),I}function ee(F,A){F._pendingDirty&&F.markAsDirty(),F.setValue(F._pendingValue,{emitModelToViewChange:!1}),A.viewToModelUpdate(F._pendingValue),F._pendingChange=!1}function j(F,A){ue(F,A)}function Ht(F,A){if(!F.hasOwnProperty("model"))return!1;const I=F.model;return!!I.isFirstChange()||!Object.is(A,I.currentValue)}function We(F,A){F._syncPendingControls(),A.forEach(I=>{const G=I.control;"submit"===G.updateOn&&G._pendingChange&&(I.viewToModelUpdate(G._pendingValue),G._pendingChange=!1)})}function de(F,A){if(!A)return null;let I,G,Ze;return Array.isArray(A),A.forEach(At=>{At.constructor===k?I=At:function je(F){return Object.getPrototypeOf(F.constructor)===D}(At)?G=At:Ze=At}),Ze||G||I||null}function $e(F,A){const I=F.indexOf(A);I>-1&&F.splice(I,1)}const Rt="VALID",nn="INVALID",_n="PENDING",xn="DISABLED";function Gn(F){return(H(F)?F.validators:F)||null}function Mn(F){return Array.isArray(F)?Ue(F):F||null}function Ln(F,A){return(H(A)?A.asyncValidators:F)||null}function Sn(F){return Array.isArray(F)?bt(F):F||null}function H(F){return null!=F&&!Array.isArray(F)&&"object"==typeof F}const Ie=F=>F instanceof Zt,W=F=>F instanceof un,Oe=F=>F instanceof Lt;function et(F){return Ie(F)?F.value:F.getRawValue()}function lt(F,A){const I=W(F),G=F.controls;if(!(I?Object.keys(G):G).length)throw new i.\u0275RuntimeError(1e3,"");if(!G[A])throw new i.\u0275RuntimeError(1001,"")}function wt(F,A){W(F),F._forEachChild((G,Ze)=>{if(void 0===A[Ze])throw new i.\u0275RuntimeError(1002,"")})}class kt{constructor(A,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=A,this._rawAsyncValidators=I,this._composedValidatorFn=Mn(this._rawValidators),this._composedAsyncValidatorFn=Sn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(A){this._rawValidators=this._composedValidatorFn=A}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(A){this._rawAsyncValidators=this._composedAsyncValidatorFn=A}get parent(){return this._parent}get valid(){return this.status===Rt}get invalid(){return this.status===nn}get pending(){return this.status==_n}get disabled(){return this.status===xn}get enabled(){return this.status!==xn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(A){this._rawValidators=A,this._composedValidatorFn=Mn(A)}setAsyncValidators(A){this._rawAsyncValidators=A,this._composedAsyncValidatorFn=Sn(A)}addValidators(A){this.setValidators(Re(A,this._rawValidators))}addAsyncValidators(A){this.setAsyncValidators(Re(A,this._rawAsyncValidators))}removeValidators(A){this.setValidators(be(A,this._rawValidators))}removeAsyncValidators(A){this.setAsyncValidators(be(A,this._rawAsyncValidators))}hasValidator(A){return Se(this._rawValidators,A)}hasAsyncValidator(A){return Se(this._rawAsyncValidators,A)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(A={}){this.touched=!0,this._parent&&!A.onlySelf&&this._parent.markAsTouched(A)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(A=>A.markAllAsTouched())}markAsUntouched(A={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(I=>{I.markAsUntouched({onlySelf:!0})}),this._parent&&!A.onlySelf&&this._parent._updateTouched(A)}markAsDirty(A={}){this.pristine=!1,this._parent&&!A.onlySelf&&this._parent.markAsDirty(A)}markAsPristine(A={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(I=>{I.markAsPristine({onlySelf:!0})}),this._parent&&!A.onlySelf&&this._parent._updatePristine(A)}markAsPending(A={}){this.status=_n,!1!==A.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!A.onlySelf&&this._parent.markAsPending(A)}disable(A={}){const I=this._parentMarkedDirty(A.onlySelf);this.status=xn,this.errors=null,this._forEachChild(G=>{G.disable(Object.assign(Object.assign({},A),{onlySelf:!0}))}),this._updateValue(),!1!==A.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},A),{skipPristineCheck:I})),this._onDisabledChange.forEach(G=>G(!0))}enable(A={}){const I=this._parentMarkedDirty(A.onlySelf);this.status=Rt,this._forEachChild(G=>{G.enable(Object.assign(Object.assign({},A),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:A.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},A),{skipPristineCheck:I})),this._onDisabledChange.forEach(G=>G(!1))}_updateAncestors(A){this._parent&&!A.onlySelf&&(this._parent.updateValueAndValidity(A),A.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(A){this._parent=A}updateValueAndValidity(A={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Rt||this.status===_n)&&this._runAsyncValidator(A.emitEvent)),!1!==A.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!A.onlySelf&&this._parent.updateValueAndValidity(A)}_updateTreeValidity(A={emitEvent:!0}){this._forEachChild(I=>I._updateTreeValidity(A)),this.updateValueAndValidity({onlySelf:!0,emitEvent:A.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?xn:Rt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(A){if(this.asyncValidator){this.status=_n,this._hasOwnPendingAsyncValidator=!0;const I=Pe(this.asyncValidator(this));this._asyncValidationSubscription=I.subscribe(G=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(G,{emitEvent:A})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(A,I={}){this.errors=A,this._updateControlsErrors(!1!==I.emitEvent)}get(A){return function oi(F,A,I){if(null==A||(Array.isArray(A)||(A=A.split(I)),Array.isArray(A)&&0===A.length))return null;let G=F;return A.forEach(Ze=>{G=W(G)?G.controls.hasOwnProperty(Ze)?G.controls[Ze]:null:Oe(G)&&G.at(Ze)||null}),G}(this,A,".")}getError(A,I){const G=I?this.get(I):this;return G&&G.errors?G.errors[A]:null}hasError(A,I){return!!this.getError(A,I)}get root(){let A=this;for(;A._parent;)A=A._parent;return A}_updateControlsErrors(A){this.status=this._calculateStatus(),A&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(A)}_initObservables(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?xn:this.errors?nn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(_n)?_n:this._anyControlsHaveStatus(nn)?nn:Rt}_anyControlsHaveStatus(A){return this._anyControls(I=>I.status===A)}_anyControlsDirty(){return this._anyControls(A=>A.dirty)}_anyControlsTouched(){return this._anyControls(A=>A.touched)}_updatePristine(A={}){this.pristine=!this._anyControlsDirty(),this._parent&&!A.onlySelf&&this._parent._updatePristine(A)}_updateTouched(A={}){this.touched=this._anyControlsTouched(),this._parent&&!A.onlySelf&&this._parent._updateTouched(A)}_isBoxedValue(A){return"object"==typeof A&&null!==A&&2===Object.keys(A).length&&"value"in A&&"disabled"in A}_registerOnCollectionChange(A){this._onCollectionChange=A}_setUpdateStrategy(A){H(A)&&null!=A.updateOn&&(this._updateOn=A.updateOn)}_parentMarkedDirty(A){return!A&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Zt extends kt{constructor(A=null,I,G){super(Gn(I),Ln(G,I)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(A),this._setUpdateStrategy(I),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),H(I)&&I.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(A)?A.value:A)}setValue(A,I={}){this.value=this._pendingValue=A,this._onChange.length&&!1!==I.emitModelToViewChange&&this._onChange.forEach(G=>G(this.value,!1!==I.emitViewToModelChange)),this.updateValueAndValidity(I)}patchValue(A,I={}){this.setValue(A,I)}reset(A=this.defaultValue,I={}){this._applyFormState(A),this.markAsPristine(I),this.markAsUntouched(I),this.setValue(this.value,I),this._pendingChange=!1}_updateValue(){}_anyControls(A){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(A){this._onChange.push(A)}_unregisterOnChange(A){$e(this._onChange,A)}registerOnDisabledChange(A){this._onDisabledChange.push(A)}_unregisterOnDisabledChange(A){$e(this._onDisabledChange,A)}_forEachChild(A){}_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(A){this._isBoxedValue(A)?(this.value=this._pendingValue=A.value,A.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=A}}class un extends kt{constructor(A,I,G){super(Gn(I),Ln(G,I)),this.controls=A,this._initObservables(),this._setUpdateStrategy(I),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(A,I){return this.controls[A]?this.controls[A]:(this.controls[A]=I,I.setParent(this),I._registerOnCollectionChange(this._onCollectionChange),I)}addControl(A,I,G={}){this.registerControl(A,I),this.updateValueAndValidity({emitEvent:G.emitEvent}),this._onCollectionChange()}removeControl(A,I={}){this.controls[A]&&this.controls[A]._registerOnCollectionChange(()=>{}),delete this.controls[A],this.updateValueAndValidity({emitEvent:I.emitEvent}),this._onCollectionChange()}setControl(A,I,G={}){this.controls[A]&&this.controls[A]._registerOnCollectionChange(()=>{}),delete this.controls[A],I&&this.registerControl(A,I),this.updateValueAndValidity({emitEvent:G.emitEvent}),this._onCollectionChange()}contains(A){return this.controls.hasOwnProperty(A)&&this.controls[A].enabled}setValue(A,I={}){wt(this,A),Object.keys(A).forEach(G=>{lt(this,G),this.controls[G].setValue(A[G],{onlySelf:!0,emitEvent:I.emitEvent})}),this.updateValueAndValidity(I)}patchValue(A,I={}){null!=A&&(Object.keys(A).forEach(G=>{this.controls[G]&&this.controls[G].patchValue(A[G],{onlySelf:!0,emitEvent:I.emitEvent})}),this.updateValueAndValidity(I))}reset(A={},I={}){this._forEachChild((G,Ze)=>{G.reset(A[Ze],{onlySelf:!0,emitEvent:I.emitEvent})}),this._updatePristine(I),this._updateTouched(I),this.updateValueAndValidity(I)}getRawValue(){return this._reduceChildren({},(A,I,G)=>(A[G]=et(I),A))}_syncPendingControls(){let A=this._reduceChildren(!1,(I,G)=>!!G._syncPendingControls()||I);return A&&this.updateValueAndValidity({onlySelf:!0}),A}_forEachChild(A){Object.keys(this.controls).forEach(I=>{const G=this.controls[I];G&&A(G,I)})}_setUpControls(){this._forEachChild(A=>{A.setParent(this),A._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(A){for(const I of Object.keys(this.controls)){const G=this.controls[I];if(this.contains(I)&&A(G))return!0}return!1}_reduceValue(){return this._reduceChildren({},(A,I,G)=>((I.enabled||this.disabled)&&(A[G]=I.value),A))}_reduceChildren(A,I){let G=A;return this._forEachChild((Ze,At)=>{G=I(G,Ze,At)}),G}_allControlsDisabled(){for(const A of Object.keys(this.controls))if(this.controls[A].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Lt extends kt{constructor(A,I,G){super(Gn(I),Ln(G,I)),this.controls=A,this._initObservables(),this._setUpdateStrategy(I),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(A){return this.controls[A]}push(A,I={}){this.controls.push(A),this._registerControl(A),this.updateValueAndValidity({emitEvent:I.emitEvent}),this._onCollectionChange()}insert(A,I,G={}){this.controls.splice(A,0,I),this._registerControl(I),this.updateValueAndValidity({emitEvent:G.emitEvent})}removeAt(A,I={}){this.controls[A]&&this.controls[A]._registerOnCollectionChange(()=>{}),this.controls.splice(A,1),this.updateValueAndValidity({emitEvent:I.emitEvent})}setControl(A,I,G={}){this.controls[A]&&this.controls[A]._registerOnCollectionChange(()=>{}),this.controls.splice(A,1),I&&(this.controls.splice(A,0,I),this._registerControl(I)),this.updateValueAndValidity({emitEvent:G.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(A,I={}){wt(this,A),A.forEach((G,Ze)=>{lt(this,Ze),this.at(Ze).setValue(G,{onlySelf:!0,emitEvent:I.emitEvent})}),this.updateValueAndValidity(I)}patchValue(A,I={}){null!=A&&(A.forEach((G,Ze)=>{this.at(Ze)&&this.at(Ze).patchValue(G,{onlySelf:!0,emitEvent:I.emitEvent})}),this.updateValueAndValidity(I))}reset(A=[],I={}){this._forEachChild((G,Ze)=>{G.reset(A[Ze],{onlySelf:!0,emitEvent:I.emitEvent})}),this._updatePristine(I),this._updateTouched(I),this.updateValueAndValidity(I)}getRawValue(){return this.controls.map(A=>et(A))}clear(A={}){this.controls.length<1||(this._forEachChild(I=>I._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:A.emitEvent}))}_syncPendingControls(){let A=this.controls.reduce((I,G)=>!!G._syncPendingControls()||I,!1);return A&&this.updateValueAndValidity({onlySelf:!0}),A}_forEachChild(A){this.controls.forEach((I,G)=>{A(I,G)})}_updateValue(){this.value=this.controls.filter(A=>A.enabled||this.disabled).map(A=>A.value)}_anyControls(A){return this.controls.some(I=>I.enabled&&A(I))}_setUpControls(){this._forEachChild(A=>this._registerControl(A))}_allControlsDisabled(){for(const A of this.controls)if(A.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(A){A.setParent(this),A._registerOnCollectionChange(this._onCollectionChange)}}const bn={provide:_t,useExisting:(0,i.forwardRef)(()=>An)},rn=(()=>Promise.resolve(null))();let An=(()=>{class F extends _t{constructor(I,G){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.EventEmitter,this.form=new un({},Ue(I),bt(G))}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 G=this._findContainer(I.path);I.control=G.registerControl(I.name,I.control),Tt(I.control,I),I.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(I)})}getControl(I){return this.form.get(I.path)}removeControl(I){rn.then(()=>{const G=this._findContainer(I.path);G&&G.removeControl(I.name),this._directives.delete(I)})}addFormGroup(I){rn.then(()=>{const G=this._findContainer(I.path),Ze=new un({});j(Ze,I),G.registerControl(I.name,Ze),Ze.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(I){rn.then(()=>{const G=this._findContainer(I.path);G&&G.removeControl(I.name)})}getFormGroup(I){return this.form.get(I.path)}updateModel(I,G){rn.then(()=>{this.form.get(I.path).setValue(G)})}setValue(I){this.control.setValue(I)}onSubmit(I){return this.submitted=!0,We(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(he,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(I,G){1&I&&i.\u0275\u0275listener("submit",function(At){return G.onSubmit(At)})("reset",function(){return G.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([bn]),i.\u0275\u0275InheritDefinitionFeature]}),F})(),Rn=(()=>{class F extends _t{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 A;return function(G){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(G||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,features:[i.\u0275\u0275InheritDefinitionFeature]}),F})();const an={provide:_t,useExisting:(0,i.forwardRef)(()=>Zn)};let Zn=(()=>{class F extends Rn{constructor(I,G,Ze){super(),this._parent=I,this._setValidators(G),this._setAsyncValidators(Ze)}_checkParentType(){}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(_t,5),i.\u0275\u0275directiveInject(U,10),i.\u0275\u0275directiveInject(he,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[i.\u0275\u0275ProvidersFeature([an]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const ri={provide:mt,useExisting:(0,i.forwardRef)(()=>jn)},Bn=(()=>Promise.resolve(null))();let jn=(()=>{class F extends mt{constructor(I,G,Ze,At,dn){super(),this._changeDetectorRef=dn,this.control=new Zt,this._registered=!1,this.update=new i.EventEmitter,this._parent=I,this._setValidators(G),this._setAsyncValidators(Ze),this.valueAccessor=de(0,At)}ngOnChanges(I){if(this._checkForErrors(),!this._registered||"name"in I){if(this._registered&&(this._checkName(),this.formDirective)){const G=I.name.previousValue;this.formDirective.removeControl({name:G,path:this._getPath(G)})}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._getPath(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){Bn.then(()=>{var G;this.control.setValue(I,{emitViewToModelChange:!1}),null===(G=this._changeDetectorRef)||void 0===G||G.markForCheck()})}_updateDisabled(I){const G=I.isDisabled.currentValue,Ze=""===G||G&&"false"!==G;Bn.then(()=>{var At;Ze&&!this.control.disabled?this.control.disable():!Ze&&this.control.disabled&&this.control.enable(),null===(At=this._changeDetectorRef)||void 0===At||At.markForCheck()})}_getPath(I){return this._parent?$t(I,this._parent):[I]}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(_t,9),i.\u0275\u0275directiveInject(U,10),i.\u0275\u0275directiveInject(he,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})(),ui=(()=>{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 _i={provide:T,useExisting:(0,i.forwardRef)(()=>si),multi:!0};let si=(()=>{class F extends D{writeValue(I){this.setProperty("value",null==I?"":I)}registerOnChange(I){this.onChange=G=>{I(""==G?null:parseFloat(G))}}}return F.\u0275fac=function(){let A;return function(G){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(G||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(I,G){1&I&&i.\u0275\u0275listener("input",function(At){return G.onChange(At.target.value)})("blur",function(){return G.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([_i]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Fn={provide:T,useExisting:(0,i.forwardRef)(()=>Vn),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,G){this._accessors.push([I,G])}remove(I){for(let G=this._accessors.length-1;G>=0;--G)if(this._accessors[G][1]===I)return void this._accessors.splice(G,1)}select(I){this._accessors.forEach(G=>{this._isSameGroup(G,I)&&G[1]!==I&&G[1].fireUncheck(I.value)})}_isSameGroup(I,G){return!!I[0].control&&I[0]._parent===G._control._parent&&I[1].name===G.name}}return F.\u0275fac=function(I){return new(I||F)},F.\u0275prov=i.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:Ki}),F})(),Vn=(()=>{class F extends D{constructor(I,G,Ze,At){super(I,G),this._registry=Ze,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,G){1&I&&i.\u0275\u0275listener("change",function(){return G.onChange()})("blur",function(){return G.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.\u0275\u0275ProvidersFeature([Fn]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const $n={provide:T,useExisting:(0,i.forwardRef)(()=>di),multi:!0};let di=(()=>{class F extends D{writeValue(I){this.setProperty("value",parseFloat(I))}registerOnChange(I){this.onChange=G=>{I(""==G?null:parseFloat(G))}}}return F.\u0275fac=function(){let A;return function(G){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(G||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(I,G){1&I&&i.\u0275\u0275listener("change",function(At){return G.onChange(At.target.value)})("input",function(At){return G.onChange(At.target.value)})("blur",function(){return G.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([$n]),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,G,Ze,At){super(),this._ngModelWarningConfig=At,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(I),this._setAsyncValidators(G),this.valueAccessor=de(0,Ze)}set isDisabled(I){}ngOnChanges(I){if(this._isControlChanged(I)){const G=I.form.previousValue;G&&cn(G,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&&cn(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(he,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 _r={provide:_t,useExisting:(0,i.forwardRef)(()=>Mi)};let Mi=(()=>{class F extends _t{constructor(I,G){super(),this.validators=I,this.asyncValidators=G,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.EventEmitter,this._setValidators(I),this._setAsyncValidators(G)}ngOnChanges(I){this._checkFormPresent(),I.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Z(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 G=this.form.get(I.path);return Tt(G,I),G.updateValueAndValidity({emitEvent:!1}),this.directives.push(I),G}getControl(I){return this.form.get(I.path)}removeControl(I){cn(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,G){this.form.get(I.path).setValue(G)}onSubmit(I){return this.submitted=!0,We(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 G=I.control,Ze=this.form.get(I.path);G!==Ze&&(cn(G||null,I),Ie(Ze)&&(Tt(Ze,I),I.control=Ze))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(I){const G=this.form.get(I.path);j(G,I),G.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(I){if(this.form){const G=this.form.get(I.path);G&&function Le(F,A){return Z(F,A)}(G,I)&&G.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ue(this.form,this),this._oldForm&&Z(this._oldForm,this)}_checkFormPresent(){}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(U,10),i.\u0275\u0275directiveInject(he,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formGroup",""]],hostBindings:function(I,G){1&I&&i.\u0275\u0275listener("submit",function(At){return G.onSubmit(At)})("reset",function(){return G.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([_r]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),F})();const Ni={provide:_t,useExisting:(0,i.forwardRef)(()=>hi)};let hi=(()=>{class F extends Rn{constructor(I,G,Ze){super(),this._parent=I,this._setValidators(G),this._setAsyncValidators(Ze)}_checkParentType(){yr(this._parent)}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(_t,13),i.\u0275\u0275directiveInject(U,10),i.\u0275\u0275directiveInject(he,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:_t,useExisting:(0,i.forwardRef)(()=>fi)};let fi=(()=>{class F extends _t{constructor(I,G,Ze){super(),this._parent=I,this._setValidators(G),this._setAsyncValidators(Ze)}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(){yr(this._parent)}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(_t,13),i.\u0275\u0275directiveInject(U,10),i.\u0275\u0275directiveInject(he,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.\u0275\u0275ProvidersFeature([rr]),i.\u0275\u0275InheritDefinitionFeature]}),F})();function yr(F){return!(F instanceof hi||F instanceof Mi||F instanceof fi)}const or={provide:mt,useExisting:(0,i.forwardRef)(()=>Gi)};let Gi=(()=>{class F extends mt{constructor(I,G,Ze,At,dn){super(),this._ngModelWarningConfig=dn,this._added=!1,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._parent=I,this._setValidators(G),this._setAsyncValidators(Ze),this.valueAccessor=de(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(_t,13),i.\u0275\u0275directiveInject(U,10),i.\u0275\u0275directiveInject(he,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 wi={provide:T,useExisting:(0,i.forwardRef)(()=>Li),multi:!0};function Si(F,A){return null==F?`${A}`:(A&&"object"==typeof A&&(A="Object"),`${F}: ${A}`.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 Ze=Si(this._getOptionId(I),I);this.setProperty("value",Ze)}registerOnChange(I){this.onChange=G=>{this.value=this._getOptionValue(G),I(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(I){for(const G of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(G),I))return G;return null}_getOptionValue(I){const G=function sr(F){return F.split(":")[0]}(I);return this._optionMap.has(G)?this._optionMap.get(G):I}}return F.\u0275fac=function(){let A;return function(G){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(G||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(I,G){1&I&&i.\u0275\u0275listener("change",function(At){return G.onChange(At.target.value)})("blur",function(){return G.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([wi]),i.\u0275\u0275InheritDefinitionFeature]}),F})(),Qi=(()=>{class F{constructor(I,G,Ze){this._element=I,this._renderer=G,this._select=Ze,this._select&&(this.id=this._select._registerOption())}set ngValue(I){null!=this._select&&(this._select._optionMap.set(this.id,I),this._setElementValue(Si(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 Yn={provide:T,useExisting:(0,i.forwardRef)(()=>bi),multi:!0};function yi(F,A){return null==F?`${A}`:("string"==typeof A&&(A=`'${A}'`),A&&"object"==typeof A&&(A="Object"),`${F}: ${A}`.slice(0,50))}let bi=(()=>{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 G;if(this.value=I,Array.isArray(I)){const Ze=I.map(At=>this._getOptionId(At));G=(At,dn)=>{At._setSelected(Ze.indexOf(dn.toString())>-1)}}else G=(Ze,At)=>{Ze._setSelected(!1)};this._optionMap.forEach(G)}registerOnChange(I){this.onChange=G=>{const Ze=[],At=G.selectedOptions;if(void 0!==At){const dn=At;for(let wn=0;wn<dn.length;wn++){const Di=this._getOptionValue(dn[wn].value);Ze.push(Di)}}else{const dn=G.options;for(let wn=0;wn<dn.length;wn++){const Ei=dn[wn];if(Ei.selected){const Di=this._getOptionValue(Ei.value);Ze.push(Di)}}}this.value=Ze,I(Ze)}}_registerOption(I){const G=(this._idCounter++).toString();return this._optionMap.set(G,I),G}_getOptionId(I){for(const G of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(G)._value,I))return G;return null}_getOptionValue(I){const G=function vi(F){return F.split(":")[0]}(I);return this._optionMap.has(G)?this._optionMap.get(G)._value:I}}return F.\u0275fac=function(){let A;return function(G){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(G||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(I,G){1&I&&i.\u0275\u0275listener("change",function(At){return G.onChange(At.target)})("blur",function(){return G.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([Yn]),i.\u0275\u0275InheritDefinitionFeature]}),F})(),vr=(()=>{class F{constructor(I,G,Ze){this._element=I,this._renderer=G,this._select=Ze,this._select&&(this.id=this._select._registerOption(this))}set ngValue(I){null!=this._select&&(this._value=I,this._setElementValue(yi(this.id,I)),this._select.writeValue(this._select.value))}set value(I){this._select?(this._value=I,this._setElementValue(yi(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(bi,9))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),F})();function ji(F){return"number"==typeof F?F:parseInt(F,10)}function Zi(F){return"number"==typeof F?F:parseFloat(F)}let ti=(()=>{class F{constructor(){this._validator=q}ngOnChanges(I){if(this.inputName in I){const G=this.normalizeInput(I[this.inputName].currentValue);this._enabled=this.enabled(G),this._validator=this._enabled?this.createValidator(G):q,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 $i={provide:U,useExisting:(0,i.forwardRef)(()=>kn),multi:!0};let kn=(()=>{class F extends ti{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=I=>Zi(I),this.createValidator=I=>Y(I)}}return F.\u0275fac=function(){let A;return function(G){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(G||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,G){2&I&&i.\u0275\u0275attribute("max",G._enabled?G.max:null)},inputs:{max:"max"},features:[i.\u0275\u0275ProvidersFeature([$i]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Hi={provide:U,useExisting:(0,i.forwardRef)(()=>Ci),multi:!0};let Ci=(()=>{class F extends ti{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=I=>Zi(I),this.createValidator=I=>ye(I)}}return F.\u0275fac=function(){let A;return function(G){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(G||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,G){2&I&&i.\u0275\u0275attribute("min",G._enabled?G.min:null)},inputs:{min:"min"},features:[i.\u0275\u0275ProvidersFeature([Hi]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Yi={provide:U,useExisting:(0,i.forwardRef)(()=>J),multi:!0},br={provide:U,useExisting:(0,i.forwardRef)(()=>f),multi:!0};let J=(()=>{class F extends ti{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=I=>function Vi(F){return null!=F&&!1!==F&&"false"!=`${F}`}(I),this.createValidator=I=>ve}enabled(I){return I}}return F.\u0275fac=function(){let A;return function(G){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(G||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,G){2&I&&i.\u0275\u0275attribute("required",G._enabled?"":null)},inputs:{required:"required"},features:[i.\u0275\u0275ProvidersFeature([Yi]),i.\u0275\u0275InheritDefinitionFeature]}),F})(),f=(()=>{class F extends J{constructor(){super(...arguments),this.createValidator=I=>xe}}return F.\u0275fac=function(){let A;return function(G){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(G||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,G){2&I&&i.\u0275\u0275attribute("required",G._enabled?"":null)},features:[i.\u0275\u0275ProvidersFeature([br]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const p={provide:U,useExisting:(0,i.forwardRef)(()=>x),multi:!0};let x=(()=>{class F extends ti{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=I=>""===I||!0===I||"true"===I,this.createValidator=I=>Je}enabled(I){return I}}return F.\u0275fac=function(){let A;return function(G){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(G||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 Q={provide:U,useExisting:(0,i.forwardRef)(()=>fe),multi:!0};let fe=(()=>{class F extends ti{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=I=>ji(I),this.createValidator=I=>at(I)}}return F.\u0275fac=function(){let A;return function(G){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(G||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(I,G){2&I&&i.\u0275\u0275attribute("minlength",G._enabled?G.minlength:null)},inputs:{minlength:"minlength"},features:[i.\u0275\u0275ProvidersFeature([Q]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const y={provide:U,useExisting:(0,i.forwardRef)(()=>R),multi:!0};let R=(()=>{class F extends ti{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=I=>ji(I),this.createValidator=I=>ne(I)}}return F.\u0275fac=function(){let A;return function(G){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(G||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(I,G){2&I&&i.\u0275\u0275attribute("maxlength",G._enabled?G.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 extends ti{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=I=>I,this.createValidator=I=>Fe(I)}}return F.\u0275fac=function(){let A;return function(G){return(A||(A=i.\u0275\u0275getInheritedFactory(F)))(G||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(I,G){2&I&&i.\u0275\u0275attribute("pattern",G._enabled?G.pattern:null)},inputs:{pattern:"pattern"},features:[i.\u0275\u0275ProvidersFeature([C]),i.\u0275\u0275InheritDefinitionFeature]}),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})(),Gt=(()=>{class F{group(I,G=null){const Ze=this._reduceControls(I);let wn,At=null,dn=null;return null!=G&&(function Vt(F){return void 0!==F.asyncValidators||void 0!==F.validators||void 0!==F.updateOn}(G)?(At=null!=G.validators?G.validators:null,dn=null!=G.asyncValidators?G.asyncValidators:null,wn=null!=G.updateOn?G.updateOn:void 0):(At=null!=G.validator?G.validator:null,dn=null!=G.asyncValidator?G.asyncValidator:null)),new un(Ze,{asyncValidators:dn,updateOn:wn,validators:At})}control(I,G,Ze){return new Zt(I,G,Ze)}array(I,G,Ze){const At=I.map(dn=>this._createControl(dn));return new Lt(At,G,Ze)}_reduceControls(I){const G={};return Object.keys(I).forEach(Ze=>{G[Ze]=this._createControl(I[Ze])}),G}_createControl(I){return Ie(I)||W(I)||Oe(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 ln=new i.Version("13.2.2")},7423:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{MatAnchor:()=>M,MatButton:()=>P,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 P=(()=>{class k extends d{constructor(pe,U,he){super(pe),this._focusMonitor=U,this._animationMode=he,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ke of S)this._hasHostAttributes(ke)&&this._getHostElement().classList.add(ke);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 he;i.\u0275\u0275queryRefresh(he=i.\u0275\u0275loadQuery())&&(U.ripple=he.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 P{constructor(pe,U,he,ke){super(U,pe,he),this._ngZone=ke,this._haltDisabledEvents=ge=>{this.disabled&&(ge.preventDefault(),ge.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:()=>Qe,MAT_CHIP_TRAILING_ICON:()=>ht,MatChip:()=>Ft,MatChipAvatar:()=>Bt,MatChipInput:()=>Tt,MatChipList:()=>ue,MatChipListChange:()=>tn,MatChipRemove:()=>pn,MatChipSelectionChange:()=>Ce,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),P=l(8675),M=l(925),b=l(5664),k=l(449),$=l(3075);l(1777);let Ue=(()=>{class O{}return O.\u0275fac=function(E){return new(E||O)},O.\u0275dir=u.\u0275\u0275defineDirective({type:O}),O})();var De=l(226);const oe=["*"];class Ce{constructor(ee,E,j=!1){this.source=ee,this.selected=E,this.isUserInput=j}}const Qe=new u.InjectionToken("MatChipRemove"),it=new u.InjectionToken("MatChipAvatar"),ht=new u.InjectionToken("MatChipTrailingIcon");class ft{constructor(ee){this._elementRef=ee}}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,Le,st,Wt,Ht,je,We){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,Le),this._chipRipple.setupTriggerEvents(E),this.rippleConfig=st||{},this._animationsDisabled="NoopAnimations"===je,this.tabIndex=null!=We&&parseInt(We)||-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,Le){if(1&E&&(u.\u0275\u0275contentQuery(Le,it,5),u.\u0275\u0275contentQuery(Le,ht,5),u.\u0275\u0275contentQuery(Le,Qe,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:Qe,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 cn=(0,m.mixinErrorState)(class{constructor(O,ee,E,j){this._defaultErrorStateMatcher=O,this._parentForm=ee,this._parentFormGroup=E,this.ngControl=j}});let Kt=0;class tn{constructor(ee,E){this.source=ee,this.value=E}}let ue=(()=>{class O extends cn{constructor(E,j,Le,st,Wt,Ht,je){super(Ht,st,Wt,je),this._elementRef=E,this._changeDetectorRef=j,this._dir=Le,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=(We,de)=>We===de,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,Le,st;return null!==(st=null!==(E=this._required)&&void 0!==E?E:null===(Le=null===(j=this.ngControl)||void 0===j?void 0:j.control)||void 0===Le?void 0:Le.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,P.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(Le=>Le.deselect()),Array.isArray(E))E.forEach(Le=>this._selectValue(Le,j)),this._sortValues();else{const Le=this._selectValue(E,j);Le&&j&&this._keyManager.setActiveItem(Le)}}_selectValue(E,j=!0){const Le=this.chips.find(st=>null!=st.value&&this._compareWith(st.value,E));return Le&&(j?Le.selectViaInteraction():Le.select(),this._selectionModel.select(Le)),Le}_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(Le=>Le.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,Le=this.chips.toArray().indexOf(E.chip);this._isValidIndex(Le)&&j._hasFocus&&(this._lastDestroyedChipIndex=Le)})}_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(De.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,Le){if(1&E&&u.\u0275\u0275contentQuery(Le,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:Ue,useExisting:O}]),u.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:oe,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:()=>ke,AnimationDurations:()=>ge,DateAdapter:()=>tt,ErrorStateMatcher:()=>Se,MATERIAL_SANITY_CHECKS:()=>Y,MAT_DATE_FORMATS:()=>Ee,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:()=>De,MatCommonModule:()=>ve,MatLine:()=>Re,MatLineModule:()=>mt,MatNativeDateModule:()=>X,MatOptgroup:()=>Ft,MatOption:()=>Tt,MatOptionModule:()=>tn,MatOptionSelectionChange:()=>en,MatPseudoCheckbox:()=>Qe,MatPseudoCheckboxModule:()=>it,MatRipple:()=>oe,MatRippleModule:()=>Ce,NativeDateAdapter:()=>bt,NativeDateModule:()=>qe,RippleRef:()=>_t,RippleRenderer:()=>Ae,ShowOnDirtyErrorStateMatcher:()=>me,VERSION:()=>he,_MatOptgroupBase:()=>Bt,_MatOptionBase:()=>$t,_countGroupLabelsBeforeOption:()=>cn,_getOptionScrollPosition:()=>Kt,defaultRippleAnimationConfig:()=>It,mixinColor:()=>Fe,mixinDisableRipple:()=>q,mixinDisabled:()=>ne,mixinErrorState:()=>Pe,mixinInitialized:()=>ie,mixinTabIndex:()=>le,setLines:()=>be});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),P=l(6360),M=l(1159);const b=["*",[["mat-option"],["ng-container"]]],k=["*","mat-option, ng-container"];function $(ue,Z){if(1&ue&&i.\u0275\u0275element(0,"mat-pseudo-checkbox",4),2&ue){const N=i.\u0275\u0275nextContext();i.\u0275\u0275property("state",N.selected?"checked":"unchecked")("disabled",N.disabled)}}function pe(ue,Z){if(1&ue&&(i.\u0275\u0275elementStart(0,"span",5),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&ue){const N=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("(",N.group.label,")")}}const U=["*"],he=new i.Version("13.2.2");let ke=(()=>{class ue{}return ue.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",ue.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",ue.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",ue.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",ue})(),ge=(()=>{class ue{}return ue.COMPLEX="375ms",ue.ENTERING="225ms",ue.EXITING="195ms",ue})();const Y=new i.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function ye(){return!0}});let ve=(()=>{class ue{constructor(N,O,ee){this._sanityChecks=O,this._document=ee,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 ue.\u0275fac=function(N){return new(N||ue)(i.\u0275\u0275inject(_.qm),i.\u0275\u0275inject(Y,8),i.\u0275\u0275inject(c.DOCUMENT))},ue.\u0275mod=i.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.vT],u.vT]}),ue})();function ne(ue){return class extends ue{constructor(...Z){super(...Z),this._disabled=!1}get disabled(){return this._disabled}set disabled(Z){this._disabled=(0,D.Ig)(Z)}}}function Fe(ue,Z){return class extends ue{constructor(...N){super(...N),this.defaultColor=Z,this.color=Z}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 q(ue){return class extends ue{constructor(...Z){super(...Z),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Z){this._disableRipple=(0,D.Ig)(Z)}}}function le(ue,Z=0){return class extends ue{constructor(...N){super(...N),this._tabIndex=Z,this.defaultTabIndex=Z}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(N){this._tabIndex=null!=N?(0,D.su)(N):this.defaultTabIndex}}}function Pe(ue){return class extends ue{constructor(...Z){super(...Z),this.stateChanges=new T.x,this.errorState=!1}updateErrorState(){const Z=this.errorState,E=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);E!==Z&&(this.errorState=E,this.stateChanges.next())}}}function ie(ue){return class extends ue{constructor(...Z){super(...Z),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(Z){Z.next(),Z.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(Z){return this.isDateInstance(Z)&&this.isValid(Z)?Z:null}deserialize(Z){return null==Z||this.isDateInstance(Z)&&this.isValid(Z)?Z:this.invalid()}setLocale(Z){this.locale=Z,this._localeChanges.next()}compareDate(Z,N){return this.getYear(Z)-this.getYear(N)||this.getMonth(Z)-this.getMonth(N)||this.getDate(Z)-this.getDate(N)}sameDate(Z,N){if(Z&&N){let O=this.isValid(Z),ee=this.isValid(N);return O&&ee?!this.compareDate(Z,N):O==ee}return Z==N}clampDate(Z,N,O){return N&&this.compareDate(Z,N)<0?N:O&&this.compareDate(Z,O)>0?O:Z}}const Ee=new i.InjectionToken("mat-date-formats"),Ue=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function ct(ue,Z){const N=Array(ue);for(let O=0;O<ue;O++)N[O]=Z(O);return N}let bt=(()=>{class ue 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,ee=>this._format(O,new Date(2017,ee,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,ee=>this._format(O,new Date(2017,0,ee+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,ee){let E=this._createDateWithOverflow(N,O,ee);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 ee=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},O),{timeZone:"utc"}));return this._format(ee,N)}addCalendarYears(N,O){return this.addCalendarMonths(N,12*O)}addCalendarMonths(N,O){let ee=this._createDateWithOverflow(this.getYear(N),this.getMonth(N)+O,this.getDate(N));return this.getMonth(ee)!=((this.getMonth(N)+O)%12+12)%12&&(ee=this._createDateWithOverflow(this.getYear(ee),this.getMonth(ee),0)),ee}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(Ue.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,ee){const E=new Date;return E.setFullYear(N,O,ee),E.setHours(0,0,0,0),E}_2digit(N){return("00"+N).slice(-2)}_format(N,O){const ee=new Date;return ee.setUTCFullYear(O.getFullYear(),O.getMonth(),O.getDate()),ee.setUTCHours(O.getHours(),O.getMinutes(),O.getSeconds(),O.getMilliseconds()),N.format(ee)}}return ue.\u0275fac=function(N){return new(N||ue)(i.\u0275\u0275inject(Ke,8),i.\u0275\u0275inject(s.t4))},ue.\u0275prov=i.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})();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 qe=(()=>{class ue{}return ue.\u0275fac=function(N){return new(N||ue)},ue.\u0275mod=i.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:tt,useClass:bt}],imports:[[s.ud]]}),ue})(),X=(()=>{class ue{}return ue.\u0275fac=function(N){return new(N||ue)},ue.\u0275mod=i.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:Ee,useValue:Be}],imports:[[qe]]}),ue})(),me=(()=>{class ue{isErrorState(N,O){return!!(N&&N.invalid&&(N.dirty||O&&O.submitted))}}return ue.\u0275fac=function(N){return new(N||ue)},ue.\u0275prov=i.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),Se=(()=>{class ue{isErrorState(N,O){return!!(N&&N.invalid&&(N.touched||O&&O.submitted))}}return ue.\u0275fac=function(N){return new(N||ue)},ue.\u0275prov=i.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),Re=(()=>{class ue{}return ue.\u0275fac=function(N){return new(N||ue)},ue.\u0275dir=i.\u0275\u0275defineDirective({type:ue,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),ue})();function be(ue,Z,N="mat"){ue.changes.pipe((0,d.O)(ue)).subscribe(({length:O})=>{Xe(Z,`${N}-2-line`,!1),Xe(Z,`${N}-3-line`,!1),Xe(Z,`${N}-multi-line`,!1),2===O||3===O?Xe(Z,`${N}-${O}-line`,!0):O>3&&Xe(Z,`${N}-multi-line`,!0)})}function Xe(ue,Z,N){ue.nativeElement.classList.toggle(Z,N)}let mt=(()=>{class ue{}return ue.\u0275fac=function(N){return new(N||ue)},ue.\u0275mod=i.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=i.\u0275\u0275defineInjector({imports:[[ve],ve]}),ue})();class _t{constructor(Z,N,O){this._renderer=Z,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"],ae=["mouseup","mouseleave","touchend","touchcancel"];class Ae{constructor(Z,N,O,ee){this._target=Z,this._ngZone=N,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,ee.isBrowser&&(this._containerElement=(0,D.fI)(O))}fadeInRipple(Z,N,O={}){const ee=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),E=Object.assign(Object.assign({},It),O.animation);O.centered&&(Z=ee.left+ee.width/2,N=ee.top+ee.height/2);const j=O.radius||function we(ue,Z,N){const O=Math.max(Math.abs(ue-N.left),Math.abs(ue-N.right)),ee=Math.max(Math.abs(Z-N.top),Math.abs(Z-N.bottom));return Math.sqrt(O*O+ee*ee)}(Z,N,ee),Le=Z-ee.left,st=N-ee.top,Wt=E.enterDuration,Ht=document.createElement("div");Ht.classList.add("mat-ripple-element"),Ht.style.left=Le-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 ce(ue){window.getComputedStyle(ue).getPropertyValue("opacity")}(Ht),Ht.style.transform="scale(1)";const je=new _t(this,Ht,O);return je.state=0,this._activeRipples.add(je),O.persistent||(this._mostRecentTransientRipple=je),this._runTimeoutOutsideZone(()=>{const We=je===this._mostRecentTransientRipple;je.state=1,!O.persistent&&(!We||!this._isPointerDown)&&je.fadeOut()},Wt),je}fadeOutRipple(Z){const N=this._activeRipples.delete(Z);if(Z===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!N)return;const O=Z.element,ee=Object.assign(Object.assign({},It),Z.config.animation);O.style.transitionDuration=`${ee.exitDuration}ms`,O.style.opacity="0",Z.state=2,this._runTimeoutOutsideZone(()=>{Z.state=3,O.remove()},ee.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Z=>Z.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Z=>{Z.config.persistent||Z.fadeOut()})}setupTriggerEvents(Z){const N=(0,D.fI)(Z);!N||N===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=N,this._registerEvents(L))}handleEvent(Z){"mousedown"===Z.type?this._onMousedown(Z):"touchstart"===Z.type?this._onTouchStart(Z):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ae),this._pointerUpEventsRegistered=!0)}_onMousedown(Z){const N=(0,_.X6)(Z),O=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!N&&!O&&(this._isPointerDown=!0,this.fadeInRipple(Z.clientX,Z.clientY,this._target.rippleConfig))}_onTouchStart(Z){if(!this._target.rippleDisabled&&!(0,_.yG)(Z)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const N=Z.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(Z=>{!Z.config.persistent&&(1===Z.state||Z.config.terminateOnPointerUp&&0===Z.state)&&Z.fadeOut()}))}_runTimeoutOutsideZone(Z,N=0){this._ngZone.runOutsideAngular(()=>setTimeout(Z,N))}_registerEvents(Z){this._ngZone.runOutsideAngular(()=>{Z.forEach(N=>{this._triggerElement.addEventListener(N,this,Ge)})})}_removeTriggerEvents(){this._triggerElement&&(L.forEach(Z=>{this._triggerElement.removeEventListener(Z,this,Ge)}),this._pointerUpEventsRegistered&&ae.forEach(Z=>{this._triggerElement.removeEventListener(Z,this,Ge)}))}}const De=new i.InjectionToken("mat-ripple-global-options");let oe=(()=>{class ue{constructor(N,O,ee,E,j){this._elementRef=N,this._animationMode=j,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=E||{},this._rippleRenderer=new Ae(this,O,N,ee)}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,ee){return"number"==typeof N?this._rippleRenderer.fadeInRipple(N,O,Object.assign(Object.assign({},this.rippleConfig),ee)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),N))}}return ue.\u0275fac=function(N){return new(N||ue)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(s.t4),i.\u0275\u0275directiveInject(De,8),i.\u0275\u0275directiveInject(P.ANIMATION_MODULE_TYPE,8))},ue.\u0275dir=i.\u0275\u0275defineDirective({type:ue,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"]}),ue})(),Ce=(()=>{class ue{}return ue.\u0275fac=function(N){return new(N||ue)},ue.\u0275mod=i.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=i.\u0275\u0275defineInjector({imports:[[ve,s.ud],ve]}),ue})(),Qe=(()=>{class ue{constructor(N){this._animationMode=N,this.state="unchecked",this.disabled=!1}}return ue.\u0275fac=function(N){return new(N||ue)(i.\u0275\u0275directiveInject(P.ANIMATION_MODULE_TYPE,8))},ue.\u0275cmp=i.\u0275\u0275defineComponent({type:ue,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}),ue})(),it=(()=>{class ue{}return ue.\u0275fac=function(N){return new(N||ue)},ue.\u0275mod=i.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=i.\u0275\u0275defineInjector({imports:[[ve]]}),ue})();const ht=new i.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),ft=ne(class{});let Dt=0,Bt=(()=>{class ue 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 ue.\u0275fac=function(N){return new(N||ue)(i.\u0275\u0275directiveInject(ht,8))},ue.\u0275dir=i.\u0275\u0275defineDirective({type:ue,inputs:{label:"label"},features:[i.\u0275\u0275InheritDefinitionFeature]}),ue})();const Jt=new i.InjectionToken("MatOptgroup");let Ft=(()=>{class ue extends Bt{}return ue.\u0275fac=function(){let Z;return function(O){return(Z||(Z=i.\u0275\u0275getInheritedFactory(ue)))(O||ue)}}(),ue.\u0275cmp=i.\u0275\u0275defineComponent({type:ue,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:ue}]),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}),ue})(),pn=0;class en{constructor(Z,N=!1){this.source=Z,this.isUserInput=N}}let $t=(()=>{class ue{constructor(N,O,ee,E){this._element=N,this._changeDetectorRef=O,this._parent=ee,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 ee=this._getHostElement();"function"==typeof ee.focus&&ee.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 ue.\u0275fac=function(N){i.\u0275\u0275invalidFactory()},ue.\u0275dir=i.\u0275\u0275defineDirective({type:ue,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),ue})(),Tt=(()=>{class ue extends $t{constructor(N,O,ee,E){super(N,O,ee,E)}}return ue.\u0275fac=function(N){return new(N||ue)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(ht,8),i.\u0275\u0275directiveInject(Jt,8))},ue.\u0275cmp=i.\u0275\u0275defineComponent({type:ue,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:[Qe,c.NgIf,oe],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}),ue})();function cn(ue,Z,N){if(N.length){let O=Z.toArray(),ee=N.toArray(),E=0;for(let j=0;j<ue+1;j++)O[j].group&&O[j].group===ee[E]&&E++;return E}return 0}function Kt(ue,Z,N,O){return ue<N?ue:ue+Z>N+O?Math.max(0,ue-O+Z):N}let tn=(()=>{class ue{}return ue.\u0275fac=function(N){return new(N||ue)},ue.\u0275mod=i.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Ce,c.CommonModule,ve,it]]}),ue})()},8966:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{MAT_DIALOG_DATA:()=>Fe,MAT_DIALOG_DEFAULT_OPTIONS:()=>q,MAT_DIALOG_SCROLL_STRATEGY:()=>le,MAT_DIALOG_SCROLL_STRATEGY_FACTORY:()=>Pe,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER:()=>Ke,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>ie,MatDialog:()=>tt,MatDialogActions:()=>qe,MatDialogClose:()=>ct,MatDialogConfig:()=>ge,MatDialogContainer:()=>xe,MatDialogContent:()=>Be,MatDialogModule:()=>me,MatDialogRef:()=>at,MatDialogTitle:()=>bt,_MatDialogBase:()=>_e,_MatDialogContainerBase:()=>ve,_closeDialogVia:()=>ne,matDialogAnimations:()=>ye,throwMatDialogContentAlreadyAttachedError:()=>Y});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),P=l(5698),M=l(8675),b=l(925),k=l(9808),$=l(1777),pe=l(5664),U=l(1159),he=l(6360);function ke(Se,Re){}class ge{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 ye={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 Y(){throw Error("Attempting to attach dialog content after content is already attached")}let ve=(()=>{class Se extends u.en{constructor(be,Xe,mt,_t,It,ut,Ge,L){super(),this._elementRef=be,this._focusTrapFactory=Xe,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=ae=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(ae)),this._ariaLabelledBy=It.ariaLabelledBy||null,this._document=_t}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(be){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(be)}attachTemplatePortal(be){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(be)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(be,Xe){this._interactivityChecker.isFocusable(be)||(be.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{be.addEventListener("blur",()=>be.removeAttribute("tabindex")),be.addEventListener("mousedown",()=>be.removeAttribute("tabindex"))})),be.focus(Xe)}_focusByCssSelector(be,Xe){let mt=this._elementRef.nativeElement.querySelector(be);mt&&this._forceFocus(mt,Xe)}_trapFocus(){const be=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||be.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Xe=>{Xe||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 be=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&be&&"function"==typeof be.focus){const Xe=(0,b.ht)(),mt=this._elementRef.nativeElement;(!Xe||Xe===this._document.body||Xe===mt||mt.contains(Xe))&&(this._focusMonitor?(this._focusMonitor.focusVia(be,this._closeInteractionType),this._closeInteractionType=null):be.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 be=this._elementRef.nativeElement,Xe=(0,b.ht)();return be===Xe||be.contains(Xe)}}return Se.\u0275fac=function(be){return new(be||Se)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(pe.qV),m.\u0275\u0275directiveInject(m.ChangeDetectorRef),m.\u0275\u0275directiveInject(k.DOCUMENT,8),m.\u0275\u0275directiveInject(ge),m.\u0275\u0275directiveInject(pe.ic),m.\u0275\u0275directiveInject(m.NgZone),m.\u0275\u0275directiveInject(pe.tE))},Se.\u0275dir=m.\u0275\u0275defineDirective({type:Se,viewQuery:function(be,Xe){if(1&be&&m.\u0275\u0275viewQuery(u.Pl,7),2&be){let mt;m.\u0275\u0275queryRefresh(mt=m.\u0275\u0275loadQuery())&&(Xe._portalOutlet=mt.first)}},features:[m.\u0275\u0275InheritDefinitionFeature]}),Se})(),xe=(()=>{class Se extends ve{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:be,totalTime:Xe}){"enter"===be?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Xe})):"exit"===be&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Xe}))}_onAnimationStart({toState:be,totalTime:Xe}){"enter"===be?this._animationStateChanged.next({state:"opening",totalTime:Xe}):("exit"===be||"void"===be)&&this._animationStateChanged.next({state:"closing",totalTime:Xe})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return Se.\u0275fac=function(){let Re;return function(Xe){return(Re||(Re=m.\u0275\u0275getInheritedFactory(Se)))(Xe||Se)}}(),Se.\u0275cmp=m.\u0275\u0275defineComponent({type:Se,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(be,Xe){1&be&&m.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(_t){return Xe._onAnimationStart(_t)})("@dialogContainer.done",function(_t){return Xe._onAnimationDone(_t)}),2&be&&(m.\u0275\u0275hostProperty("id",Xe._id),m.\u0275\u0275attribute("role",Xe._config.role)("aria-labelledby",Xe._config.ariaLabel?null:Xe._ariaLabelledBy)("aria-label",Xe._config.ariaLabel)("aria-describedby",Xe._config.ariaDescribedBy||null),m.\u0275\u0275syntheticHostProperty("@dialogContainer",Xe._state))},features:[m.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(be,Xe){1&be&&m.\u0275\u0275template(0,ke,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:[ye.dialogContainer]}}),Se})(),Je=0;class at{constructor(Re,be,Xe="mat-dialog-"+Je++){this._overlayRef=Re,this._containerInstance=be,this.id=Xe,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new _.x,this._afterClosed=new _.x,this._beforeClosed=new _.x,this._state=0,be._id=Xe,be._animationStateChanged.pipe((0,d.h)(mt=>"opened"===mt.state),(0,P.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),be._animationStateChanged.pipe((0,d.h)(mt=>"closed"===mt.state),(0,P.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(),ne(this,"keyboard")}),Re.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():ne(this,"mouse")})}close(Re){this._result=Re,this._containerInstance._animationStateChanged.pipe((0,d.h)(be=>"closing"===be.state),(0,P.q)(1)).subscribe(be=>{this._beforeClosed.next(Re),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),be.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 be=this._getPositionStrategy();return Re&&(Re.left||Re.right)?Re.left?be.left(Re.left):be.right(Re.right):be.centerHorizontally(),Re&&(Re.top||Re.bottom)?Re.top?be.top(Re.top):be.bottom(Re.bottom):be.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Re="",be=""){return this._overlayRef.updateSize({width:Re,height:be}),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 ne(Se,Re,be){return void 0!==Se._containerInstance&&(Se._containerInstance._closeInteractionType=Re),Se.close(be)}const Fe=new m.InjectionToken("MatDialogData"),q=new m.InjectionToken("mat-dialog-default-options"),le=new m.InjectionToken("mat-dialog-scroll-strategy");function Pe(Se){return()=>Se.scrollStrategies.block()}function ie(Se){return()=>Se.scrollStrategies.block()}const Ke={provide:le,deps:[i.aV],useFactory:ie};let _e=(()=>{class Se{constructor(be,Xe,mt,_t,It,ut,Ge,L,ae,Ae){this._overlay=be,this._injector=Xe,this._defaultOptions=mt,this._parentDialog=_t,this._overlayContainer=It,this._dialogRefConstructor=Ge,this._dialogContainerType=L,this._dialogDataToken=ae,this._animationMode=Ae,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 be=this._parentDialog;return be?be._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(be,Xe){if(Xe=function Ee(Se,Re){return Object.assign(Object.assign({},Re),Se)}(Xe,this._defaultOptions||new ge),Xe.id&&this.getDialogById(Xe.id),this._dialogAnimatingOpen)return this._lastDialogRef;const mt=this._createOverlay(Xe),_t=this._attachDialogContainer(mt,Xe);if("NoopAnimations"!==this._animationMode){const ut=_t._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(be,_t,mt,Xe);return this._lastDialogRef=It,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(It),It.afterClosed().subscribe(()=>this._removeOpenDialog(It)),this.afterOpened.next(It),_t._initializeWithAttachedContent(),It}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(be){return this.openDialogs.find(Xe=>Xe.id===be)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(be){const Xe=this._getOverlayConfig(be);return this._overlay.create(Xe)}_getOverlayConfig(be){const Xe=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:be.scrollStrategy||this._scrollStrategy(),panelClass:be.panelClass,hasBackdrop:be.hasBackdrop,direction:be.direction,minWidth:be.minWidth,minHeight:be.minHeight,maxWidth:be.maxWidth,maxHeight:be.maxHeight,disposeOnNavigation:be.closeOnNavigation});return be.backdropClass&&(Xe.backdropClass=be.backdropClass),Xe}_attachDialogContainer(be,Xe){const _t=m.Injector.create({parent:Xe&&Xe.viewContainerRef&&Xe.viewContainerRef.injector||this._injector,providers:[{provide:ge,useValue:Xe}]}),It=new u.C5(this._dialogContainerType,Xe.viewContainerRef,_t,Xe.componentFactoryResolver);return be.attach(It).instance}_attachDialogContent(be,Xe,mt,_t){const It=new this._dialogRefConstructor(mt,Xe,_t.id);if(be instanceof m.TemplateRef)Xe.attachTemplatePortal(new u.UE(be,null,{$implicit:_t.data,dialogRef:It}));else{const ut=this._createInjector(_t,It,Xe),Ge=Xe.attachComponentPortal(new u.C5(be,_t.viewContainerRef,ut));It.componentInstance=Ge.instance}return It.updateSize(_t.width,_t.height).updatePosition(_t.position),It}_createInjector(be,Xe,mt){const _t=be&&be.viewContainerRef&&be.viewContainerRef.injector,It=[{provide:this._dialogContainerType,useValue:mt},{provide:this._dialogDataToken,useValue:be.data},{provide:this._dialogRefConstructor,useValue:Xe}];return be.direction&&(!_t||!_t.get(s.Is,null,m.InjectFlags.Optional))&&It.push({provide:s.Is,useValue:{value:be.direction,change:(0,S.of)()}}),m.Injector.create({parent:_t||this._injector,providers:It})}_removeOpenDialog(be){const Xe=this.openDialogs.indexOf(be);Xe>-1&&(this.openDialogs.splice(Xe,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((mt,_t)=>{mt?_t.setAttribute("aria-hidden",mt):_t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const be=this._overlayContainer.getContainerElement();if(be.parentElement){const Xe=be.parentElement.children;for(let mt=Xe.length-1;mt>-1;mt--){let _t=Xe[mt];_t!==be&&"SCRIPT"!==_t.nodeName&&"STYLE"!==_t.nodeName&&!_t.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(_t,_t.getAttribute("aria-hidden")),_t.setAttribute("aria-hidden","true"))}}}_closeDialogs(be){let Xe=be.length;for(;Xe--;)be[Xe].close()}}return Se.\u0275fac=function(be){m.\u0275\u0275invalidFactory()},Se.\u0275dir=m.\u0275\u0275defineDirective({type:Se}),Se})(),tt=(()=>{class Se extends _e{constructor(be,Xe,mt,_t,It,ut,Ge,L){super(be,Xe,_t,ut,Ge,It,at,xe,Fe,L)}}return Se.\u0275fac=function(be){return new(be||Se)(m.\u0275\u0275inject(i.aV),m.\u0275\u0275inject(m.Injector),m.\u0275\u0275inject(k.Location,8),m.\u0275\u0275inject(q,8),m.\u0275\u0275inject(le),m.\u0275\u0275inject(Se,12),m.\u0275\u0275inject(i.Xj),m.\u0275\u0275inject(he.ANIMATION_MODULE_TYPE,8))},Se.\u0275prov=m.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac}),Se})(),Ue=0,ct=(()=>{class Se{constructor(be,Xe,mt){this.dialogRef=be,this._elementRef=Xe,this._dialog=mt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=X(this._elementRef,this._dialog.openDialogs))}ngOnChanges(be){const Xe=be._matDialogClose||be._matDialogCloseResult;Xe&&(this.dialogResult=Xe.currentValue)}_onButtonClick(be){ne(this.dialogRef,0===be.screenX&&0===be.screenY?"keyboard":"mouse",this.dialogResult)}}return Se.\u0275fac=function(be){return new(be||Se)(m.\u0275\u0275directiveInject(at,8),m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(tt))},Se.\u0275dir=m.\u0275\u0275defineDirective({type:Se,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(be,Xe){1&be&&m.\u0275\u0275listener("click",function(_t){return Xe._onButtonClick(_t)}),2&be&&m.\u0275\u0275attribute("aria-label",Xe.ariaLabel||null)("type",Xe.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[m.\u0275\u0275NgOnChangesFeature]}),Se})(),bt=(()=>{class Se{constructor(be,Xe,mt){this._dialogRef=be,this._elementRef=Xe,this._dialog=mt,this.id="mat-dialog-title-"+Ue++}ngOnInit(){this._dialogRef||(this._dialogRef=X(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const be=this._dialogRef._containerInstance;be&&!be._ariaLabelledBy&&(be._ariaLabelledBy=this.id)})}}return Se.\u0275fac=function(be){return new(be||Se)(m.\u0275\u0275directiveInject(at,8),m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(tt))},Se.\u0275dir=m.\u0275\u0275defineDirective({type:Se,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(be,Xe){2&be&&m.\u0275\u0275hostProperty("id",Xe.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Se})(),Be=(()=>{class Se{}return Se.\u0275fac=function(be){return new(be||Se)},Se.\u0275dir=m.\u0275\u0275defineDirective({type:Se,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Se})(),qe=(()=>{class Se{}return Se.\u0275fac=function(be){return new(be||Se)},Se.\u0275dir=m.\u0275\u0275defineDirective({type:Se,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),Se})();function X(Se,Re){let be=Se.nativeElement.parentElement;for(;be&&!be.classList.contains("mat-dialog-container");)be=be.parentElement;return be?Re.find(Xe=>Xe.id===be.id):null}let me=(()=>{class Se{}return Se.\u0275fac=function(be){return new(be||Se)},Se.\u0275mod=m.\u0275\u0275defineNgModule({type:Se}),Se.\u0275inj=m.\u0275\u0275defineInjector({providers:[tt,Ke],imports:[[i.U8,u.eL,c.MatCommonModule],c.MatCommonModule]}),Se})()},5245:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{ICON_REGISTRY_PROVIDER:()=>Fe,ICON_REGISTRY_PROVIDER_FACTORY:()=>ne,MAT_ICON_LOCATION:()=>Ke,MAT_ICON_LOCATION_FACTORY:()=>_e,MatIcon:()=>ct,MatIconModule:()=>bt,MatIconRegistry:()=>at,getMatIconFailedToSanitizeLiteralError:()=>xe,getMatIconFailedToSanitizeUrlError:()=>ve,getMatIconNameNotFoundError:()=>ye,getMatIconNoHttpProviderError:()=>Y});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),P=l(262),M=l(8746),b=l(3099),k=l(5698),$=l(520),pe=l(2313);const U=["*"];let he;function ge(Be){var qe;return(null===(qe=function ke(){if(void 0===he&&(he=null,"undefined"!=typeof window)){const Be=window;void 0!==Be.trustedTypes&&(he=Be.trustedTypes.createPolicy("angular#components",{createHTML:qe=>qe}))}return he}())||void 0===qe?void 0:qe.createHTML(Be))||Be}function ye(Be){return Error(`Unable to find icon with the name "${Be}"`)}function Y(){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 ve(Be){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Be}".`)}function xe(Be){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Be}".`)}class Je{constructor(qe,X,me){this.url=qe,this.svgText=X,this.options=me}}let at=(()=>{class Be{constructor(X,me,Se,Re){this._httpClient=X,this._sanitizer=me,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=Se}addSvgIcon(X,me,Se){return this.addSvgIconInNamespace("",X,me,Se)}addSvgIconLiteral(X,me,Se){return this.addSvgIconLiteralInNamespace("",X,me,Se)}addSvgIconInNamespace(X,me,Se,Re){return this._addSvgIconConfig(X,me,new Je(Se,null,Re))}addSvgIconResolver(X){return this._resolvers.push(X),this}addSvgIconLiteralInNamespace(X,me,Se,Re){const be=this._sanitizer.sanitize(i.SecurityContext.HTML,Se);if(!be)throw xe(Se);const Xe=ge(be);return this._addSvgIconConfig(X,me,new Je("",Xe,Re))}addSvgIconSet(X,me){return this.addSvgIconSetInNamespace("",X,me)}addSvgIconSetLiteral(X,me){return this.addSvgIconSetLiteralInNamespace("",X,me)}addSvgIconSetInNamespace(X,me,Se){return this._addSvgIconSetConfig(X,new Je(me,null,Se))}addSvgIconSetLiteralInNamespace(X,me,Se){const Re=this._sanitizer.sanitize(i.SecurityContext.HTML,me);if(!Re)throw xe(me);const be=ge(Re);return this._addSvgIconSetConfig(X,new Je("",be,Se))}registerFontClassAlias(X,me=X){return this._fontCssClassesByAlias.set(X,me),this}classNameForFontAlias(X){return this._fontCssClassesByAlias.get(X)||X}setDefaultFontSetClass(X){return this._defaultFontSetClass=X,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(X){const me=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,X);if(!me)throw ve(X);const Se=this._cachedIconsByUrl.get(me);return Se?(0,s.of)(q(Se)):this._loadSvgIconFromConfig(new Je(X,null)).pipe((0,S.b)(Re=>this._cachedIconsByUrl.set(me,Re)),(0,d.U)(Re=>q(Re)))}getNamedSvgIcon(X,me=""){const Se=le(me,X);let Re=this._svgIconConfigs.get(Se);if(Re)return this._getSvgFromConfig(Re);if(Re=this._getIconConfigFromResolvers(me,X),Re)return this._svgIconConfigs.set(Se,Re),this._getSvgFromConfig(Re);const be=this._iconSetConfigs.get(me);return be?this._getSvgFromIconSetConfigs(X,be):(0,_._)(ye(Se))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(X){return X.svgText?(0,s.of)(q(this._svgElementFromConfig(X))):this._loadSvgIconFromConfig(X).pipe((0,d.U)(me=>q(me)))}_getSvgFromIconSetConfigs(X,me){const Se=this._extractIconWithNameFromAnySet(X,me);if(Se)return(0,s.of)(Se);const Re=me.filter(be=>!be.svgText).map(be=>this._loadSvgIconSetFromConfig(be).pipe((0,P.K)(Xe=>{const _t=`Loading icon set URL: ${this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,be.url)} failed: ${Xe.message}`;return this._errorHandler.handleError(new Error(_t)),(0,s.of)(null)})));return(0,D.D)(Re).pipe((0,d.U)(()=>{const be=this._extractIconWithNameFromAnySet(X,me);if(!be)throw ye(X);return be}))}_extractIconWithNameFromAnySet(X,me){for(let Se=me.length-1;Se>=0;Se--){const Re=me[Se];if(Re.svgText&&Re.svgText.toString().indexOf(X)>-1){const be=this._svgElementFromConfig(Re),Xe=this._extractSvgIconFromSet(be,X,Re.options);if(Xe)return Xe}}return null}_loadSvgIconFromConfig(X){return this._fetchIcon(X).pipe((0,S.b)(me=>X.svgText=me),(0,d.U)(()=>this._svgElementFromConfig(X)))}_loadSvgIconSetFromConfig(X){return X.svgText?(0,s.of)(null):this._fetchIcon(X).pipe((0,S.b)(me=>X.svgText=me))}_extractSvgIconFromSet(X,me,Se){const Re=X.querySelector(`[id="${me}"]`);if(!Re)return null;const be=Re.cloneNode(!0);if(be.removeAttribute("id"),"svg"===be.nodeName.toLowerCase())return this._setSvgAttributes(be,Se);if("symbol"===be.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(be),Se);const Xe=this._svgElementFromString(ge("<svg></svg>"));return Xe.appendChild(be),this._setSvgAttributes(Xe,Se)}_svgElementFromString(X){const me=this._document.createElement("DIV");me.innerHTML=X;const Se=me.querySelector("svg");if(!Se)throw Error("<svg> tag not found");return Se}_toSvgElement(X){const me=this._svgElementFromString(ge("<svg></svg>")),Se=X.attributes;for(let Re=0;Re<Se.length;Re++){const{name:be,value:Xe}=Se[Re];"id"!==be&&me.setAttribute(be,Xe)}for(let Re=0;Re<X.childNodes.length;Re++)X.childNodes[Re].nodeType===this._document.ELEMENT_NODE&&me.appendChild(X.childNodes[Re].cloneNode(!0));return me}_setSvgAttributes(X,me){return X.setAttribute("fit",""),X.setAttribute("height","100%"),X.setAttribute("width","100%"),X.setAttribute("preserveAspectRatio","xMidYMid meet"),X.setAttribute("focusable","false"),me&&me.viewBox&&X.setAttribute("viewBox",me.viewBox),X}_fetchIcon(X){var me;const{url:Se,options:Re}=X,be=null!==(me=null==Re?void 0:Re.withCredentials)&&void 0!==me&&me;if(!this._httpClient)throw Y();if(null==Se)throw Error(`Cannot fetch icon from URL "${Se}".`);const Xe=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,Se);if(!Xe)throw ve(Se);const mt=this._inProgressUrlFetches.get(Xe);if(mt)return mt;const _t=this._httpClient.get(Xe,{responseType:"text",withCredentials:be}).pipe((0,d.U)(It=>ge(It)),(0,M.x)(()=>this._inProgressUrlFetches.delete(Xe)),(0,b.B)());return this._inProgressUrlFetches.set(Xe,_t),_t}_addSvgIconConfig(X,me,Se){return this._svgIconConfigs.set(le(X,me),Se),this}_addSvgIconSetConfig(X,me){const Se=this._iconSetConfigs.get(X);return Se?Se.push(me):this._iconSetConfigs.set(X,[me]),this}_svgElementFromConfig(X){if(!X.svgElement){const me=this._svgElementFromString(X.svgText);this._setSvgAttributes(me,X.options),X.svgElement=me}return X.svgElement}_getIconConfigFromResolvers(X,me){for(let Se=0;Se<this._resolvers.length;Se++){const Re=this._resolvers[Se](me,X);if(Re)return Pe(Re)?new Je(Re.url,null,Re.options):new Je(Re,null)}}}return Be.\u0275fac=function(X){return new(X||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 ne(Be,qe,X,me,Se){return Be||new at(qe,X,Se,me)}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:ne};function q(Be){return Be.cloneNode(!0)}function le(Be,qe){return Be+":"+qe}function Pe(Be){return!(!Be.url||!Be.options)}const ie=(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),qe=Be?Be.location:null;return{getPathname:()=>qe?qe.pathname+qe.search:""}}const tt=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Ee=tt.map(Be=>`[${Be}]`).join(", "),Ue=/^url\(['"]?#(.*?)['"]?\)$/;let ct=(()=>{class Be extends ie{constructor(X,me,Se,Re,be){super(X),this._iconRegistry=me,this._location=Re,this._errorHandler=be,this._inline=!1,this._currentIconFetch=T.w0.EMPTY,Se||X.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(X){this._inline=(0,m.Ig)(X)}get svgIcon(){return this._svgIcon}set svgIcon(X){X!==this._svgIcon&&(X?this._updateSvgIcon(X):this._svgIcon&&this._clearSvgElement(),this._svgIcon=X)}get fontSet(){return this._fontSet}set fontSet(X){const me=this._cleanupFontValue(X);me!==this._fontSet&&(this._fontSet=me,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(X){const me=this._cleanupFontValue(X);me!==this._fontIcon&&(this._fontIcon=me,this._updateFontIconClasses())}_splitIconName(X){if(!X)return["",""];const me=X.split(":");switch(me.length){case 1:return["",me[0]];case 2:return me;default:throw Error(`Invalid icon name: "${X}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const X=this._elementsWithExternalReferences;if(X&&X.size){const me=this._location.getPathname();me!==this._previousPath&&(this._previousPath=me,this._prependPathToReferences(me))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(X){this._clearSvgElement();const me=X.querySelectorAll("style");for(let Re=0;Re<me.length;Re++)me[Re].textContent+=" ";const Se=this._location.getPathname();this._previousPath=Se,this._cacheChildrenWithExternalReferences(X),this._prependPathToReferences(Se),this._elementRef.nativeElement.appendChild(X)}_clearSvgElement(){const X=this._elementRef.nativeElement;let me=X.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();me--;){const Se=X.childNodes[me];(1!==Se.nodeType||"svg"===Se.nodeName.toLowerCase())&&Se.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const X=this._elementRef.nativeElement,me=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();me!=this._previousFontSetClass&&(this._previousFontSetClass&&X.classList.remove(this._previousFontSetClass),me&&X.classList.add(me),this._previousFontSetClass=me),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&X.classList.remove(this._previousFontIconClass),this.fontIcon&&X.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(X){return"string"==typeof X?X.trim().split(" ")[0]:X}_prependPathToReferences(X){const me=this._elementsWithExternalReferences;me&&me.forEach((Se,Re)=>{Se.forEach(be=>{Re.setAttribute(be.name,`url('${X}#${be.value}')`)})})}_cacheChildrenWithExternalReferences(X){const me=X.querySelectorAll(Ee),Se=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Re=0;Re<me.length;Re++)tt.forEach(be=>{const Xe=me[Re],mt=Xe.getAttribute(be),_t=mt?mt.match(Ue):null;if(_t){let It=Se.get(Xe);It||(It=[],Se.set(Xe,It)),It.push({name:be,value:_t[1]})}})}_updateSvgIcon(X){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),X){const[me,Se]=this._splitIconName(X);me&&(this._svgNamespace=me),Se&&(this._svgName=Se),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Se,me).pipe((0,k.q)(1)).subscribe(Re=>this._setSvgElement(Re),Re=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${me}:${Se}! ${Re.message}`))})}}}return Be.\u0275fac=function(X){return new(X||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(X,me){2&X&&(i.\u0275\u0275attribute("data-mat-icon-type",me._usingFontIcon()?"font":"svg")("data-mat-icon-name",me._svgName||me.fontIcon)("data-mat-icon-namespace",me._svgNamespace||me.fontSet),i.\u0275\u0275classProp("mat-icon-inline",me.inline)("mat-icon-no-color","primary"!==me.color&&"accent"!==me.color&&"warn"!==me.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(X,me){1&X&&(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(X){return new(X||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:()=>Pe,MAT_MENU_DEFAULT_OPTIONS:()=>qe,MAT_MENU_PANEL:()=>ct,MAT_MENU_SCROLL_STRATEGY:()=>be,MatMenu:()=>Re,MatMenuContent:()=>Ke,MatMenuItem:()=>Be,MatMenuModule:()=>L,MatMenuTrigger:()=>Ge,_MatMenuBase:()=>Se,_MatMenuContentBase:()=>ie,_MatMenuTriggerBase:()=>ut,fadeInItems:()=>q,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),P=l(3900),M=l(5698),b=l(2722),k=l(9300),$=l(4326),pe=l(1777),U=l(7429),he=l(9808),ke=l(508),ge=l(1314),ye=l(925),Y=l(226),ve=l(9071);const xe=["mat-menu-item",""];function Je(ae,Ae){1&ae&&(c.\u0275\u0275namespaceSVG(),c.\u0275\u0275elementStart(0,"svg",2),c.\u0275\u0275element(1,"polygon",3),c.\u0275\u0275elementEnd())}const at=["*"];function ne(ae,Ae){if(1&ae){const ce=c.\u0275\u0275getCurrentView();c.\u0275\u0275elementStart(0,"div",0),c.\u0275\u0275listener("keydown",function(De){return c.\u0275\u0275restoreView(ce),c.\u0275\u0275nextContext()._handleKeydown(De)})("click",function(){return c.\u0275\u0275restoreView(ce),c.\u0275\u0275nextContext().closed.emit("click")})("@transformMenu.start",function(De){return c.\u0275\u0275restoreView(ce),c.\u0275\u0275nextContext()._onAnimationStart(De)})("@transformMenu.done",function(De){return c.\u0275\u0275restoreView(ce),c.\u0275\u0275nextContext()._onAnimationDone(De)}),c.\u0275\u0275elementStart(1,"div",1),c.\u0275\u0275projection(2),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd()}if(2&ae){const ce=c.\u0275\u0275nextContext();c.\u0275\u0275property("id",ce.panelId)("ngClass",ce._classList)("@transformMenu",ce._panelAnimationState),c.\u0275\u0275attribute("aria-label",ce.ariaLabel||null)("aria-labelledby",ce.ariaLabelledby||null)("aria-describedby",ce.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)")])])},q=Fe.fadeInItems,le=Fe.transformMenu,Pe=new c.InjectionToken("MatMenuContent");let ie=(()=>{class ae{constructor(ce,we,De,oe,Ce,Qe,it){this._template=ce,this._componentFactoryResolver=we,this._appRef=De,this._injector=oe,this._viewContainerRef=Ce,this._document=Qe,this._changeDetectorRef=it,this._attached=new s.x}attach(ce={}){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 De=this._template.elementRef.nativeElement;De.parentNode.insertBefore(this._outlet.outletElement,De),null===(we=this._changeDetectorRef)||void 0===we||we.markForCheck(),this._portal.attach(this._outlet,ce),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return ae.\u0275fac=function(ce){return new(ce||ae)(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(he.DOCUMENT),c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},ae.\u0275dir=c.\u0275\u0275defineDirective({type:ae}),ae})(),Ke=(()=>{class ae extends ie{}return ae.\u0275fac=function(){let Ae;return function(we){return(Ae||(Ae=c.\u0275\u0275getInheritedFactory(ae)))(we||ae)}}(),ae.\u0275dir=c.\u0275\u0275defineDirective({type:ae,selectors:[["ng-template","matMenuContent",""]],features:[c.\u0275\u0275ProvidersFeature([{provide:Pe,useExisting:ae}]),c.\u0275\u0275InheritDefinitionFeature]}),ae})();const ct=new c.InjectionToken("MAT_MENU_PANEL"),bt=(0,ke.mixinDisableRipple)((0,ke.mixinDisabled)(class{}));let Be=(()=>{class ae extends bt{constructor(ce,we,De,oe,Ce){var Qe;super(),this._elementRef=ce,this._focusMonitor=De,this._parentMenu=oe,this._changeDetectorRef=Ce,this.role="menuitem",this._hovered=new s.x,this._focused=new s.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(Qe=null==oe?void 0:oe.addItem)||void 0===Qe||Qe.call(oe,this)}focus(ce,we){this._focusMonitor&&ce?this._focusMonitor.focusVia(this._getHostElement(),ce,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(ce){this.disabled&&(ce.preventDefault(),ce.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var ce;const we=this._elementRef.nativeElement.cloneNode(!0),De=we.querySelectorAll("mat-icon, .material-icons");for(let oe=0;oe<De.length;oe++)De[oe].remove();return(null===(ce=we.textContent)||void 0===ce?void 0:ce.trim())||""}_setHighlighted(ce){var we;this._highlighted=ce,null===(we=this._changeDetectorRef)||void 0===we||we.markForCheck()}}return ae.\u0275fac=function(ce){return new(ce||ae)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(he.DOCUMENT),c.\u0275\u0275directiveInject(i.tE),c.\u0275\u0275directiveInject(ct,8),c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},ae.\u0275cmp=c.\u0275\u0275defineComponent({type:ae,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(ce,we){1&ce&&c.\u0275\u0275listener("click",function(oe){return we._checkDisabled(oe)})("mouseenter",function(){return we._handleMouseEnter()}),2&ce&&(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:xe,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(ce,we){1&ce&&(c.\u0275\u0275projectionDef(),c.\u0275\u0275projection(0),c.\u0275\u0275element(1,"div",0),c.\u0275\u0275template(2,Je,2,0,"svg",1)),2&ce&&(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:[ke.MatRipple,he.NgIf],encapsulation:2,changeDetection:0}),ae})();const qe=new c.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:function X(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let me=0,Se=(()=>{class ae{constructor(ce,we,De){this._elementRef=ce,this._ngZone=we,this._defaultOptions=De,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-"+me++}get xPosition(){return this._xPosition}set xPosition(ce){this._xPosition=ce,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ce){this._yPosition=ce,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ce){this._overlapTrigger=(0,u.Ig)(ce)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ce){this._hasBackdrop=(0,u.Ig)(ce)}set panelClass(ce){const we=this._previousPanelClass;we&&we.length&&we.split(" ").forEach(De=>{this._classList[De]=!1}),this._previousPanelClass=ce,ce&&ce.length&&(ce.split(" ").forEach(De=>{this._classList[De]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ce){this.panelClass=ce}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,P.w)(ce=>(0,D.T)(...ce.map(we=>we._focused)))).subscribe(ce=>this._keyManager.updateActiveItem(ce))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,P.w)(we=>(0,D.T)(...we.map(De=>De._hovered))))}addItem(ce){}removeItem(ce){}_handleKeydown(ce){const we=ce.keyCode,De=this._keyManager;switch(we){case m.hY:(0,m.Vb)(ce)||(ce.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)&&De.setFocusOrigin("keyboard"),void De.onKeydown(ce)}ce.stopPropagation()}focusFirstItem(ce="program"){this.lazyContent?this._ngZone.onStable.pipe((0,M.q)(1)).subscribe(()=>this._focusFirstItem(ce)):this._focusFirstItem(ce)}_focusFirstItem(ce){const we=this._keyManager;if(we.setFocusOrigin(ce).setFirstItemActive(),!we.activeItem&&this._directDescendantItems.length){let De=this._directDescendantItems.first._getHostElement().parentElement;for(;De;){if("menu"===De.getAttribute("role")){De.focus();break}De=De.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ce){const we=Math.min(this._baseElevation+ce,24),De=`${this._elevationPrefix}${we}`,oe=Object.keys(this._classList).find(Ce=>Ce.startsWith(this._elevationPrefix));(!oe||oe===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[De]=!0,this._previousElevation=De)}setPositionClasses(ce=this.xPosition,we=this.yPosition){const De=this._classList;De["mat-menu-before"]="before"===ce,De["mat-menu-after"]="after"===ce,De["mat-menu-above"]="above"===we,De["mat-menu-below"]="below"===we}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ce){this._animationDone.next(ce),this._isAnimating=!1}_onAnimationStart(ce){this._isAnimating=!0,"enter"===ce.toState&&0===this._keyManager.activeItemIndex&&(ce.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,d.O)(this._allItems)).subscribe(ce=>{this._directDescendantItems.reset(ce.filter(we=>we._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ae.\u0275fac=function(ce){return new(ce||ae)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(qe))},ae.\u0275dir=c.\u0275\u0275defineDirective({type:ae,contentQueries:function(ce,we,De){if(1&ce&&(c.\u0275\u0275contentQuery(De,Pe,5),c.\u0275\u0275contentQuery(De,Be,5),c.\u0275\u0275contentQuery(De,Be,4)),2&ce){let oe;c.\u0275\u0275queryRefresh(oe=c.\u0275\u0275loadQuery())&&(we.lazyContent=oe.first),c.\u0275\u0275queryRefresh(oe=c.\u0275\u0275loadQuery())&&(we._allItems=oe),c.\u0275\u0275queryRefresh(oe=c.\u0275\u0275loadQuery())&&(we.items=oe)}},viewQuery:function(ce,we){if(1&ce&&c.\u0275\u0275viewQuery(c.TemplateRef,5),2&ce){let De;c.\u0275\u0275queryRefresh(De=c.\u0275\u0275loadQuery())&&(we.templateRef=De.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"}}),ae})(),Re=(()=>{class ae extends Se{constructor(ce,we,De){super(ce,we,De),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ae.\u0275fac=function(ce){return new(ce||ae)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(qe))},ae.\u0275cmp=c.\u0275\u0275defineComponent({type:ae,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ce,we){2&ce&&c.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[c.\u0275\u0275ProvidersFeature([{provide:ct,useExisting:ae}]),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(ce,we){1&ce&&(c.\u0275\u0275projectionDef(),c.\u0275\u0275template(0,ne,3,6,"ng-template"))},directives:[he.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}),ae})();const be=new c.InjectionToken("mat-menu-scroll-strategy"),mt={provide:be,deps:[ge.aV],useFactory:function Xe(ae){return()=>ae.scrollStrategies.reposition()}},It=(0,ye.i$)({passive:!0});let ut=(()=>{class ae{constructor(ce,we,De,oe,Ce,Qe,it,ht){this._overlay=ce,this._element=we,this._viewContainerRef=De,this._menuItemInstance=Qe,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=oe,this._parentMaterialMenu=Ce instanceof Se?Ce:void 0,we.nativeElement.addEventListener("touchstart",this._handleTouchStart,It),Qe&&(Qe._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ce){this.menu=ce}get menu(){return this._menu}set menu(ce){ce!==this._menu&&(this._menu=ce,this._menuCloseSubscription.unsubscribe(),ce&&(this._menuCloseSubscription=ce.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 ce=this._createOverlay(),we=ce.getConfig(),De=we.positionStrategy;this._setPosition(De),we.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,ce.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Se&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,b.R)(this.menu.close)).subscribe(()=>{De.withLockedPosition(!1).reapplyLastPosition(),De.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(ce,we){this._focusMonitor&&ce?this._focusMonitor.focusVia(this._element,ce,we):this._element.nativeElement.focus(we)}updatePosition(){var ce;null===(ce=this._overlayRef)||void 0===ce||ce.updatePosition()}_destroyMenu(ce){if(!this._overlayRef||!this.menuOpen)return;const we=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ce||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,we instanceof Se?(we._resetAnimation(),we.lazyContent?we._animationDone.pipe((0,k.h)(De=>"void"===De.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 ce=0,we=this.menu.parentMenu;for(;we;)ce++,we=we.parentMenu;this.menu.setElevation(ce)}}_setIsMenuOpen(ce){this._menuOpen=ce,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ce)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const ce=this._getOverlayConfig();this._subscribeToPositions(ce.positionStrategy),this._overlayRef=this._overlay.create(ce),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ge.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(ce){this.menu.setPositionClasses&&ce.positionChanges.subscribe(we=>{this.menu.setPositionClasses("start"===we.connectionPair.overlayX?"after":"before","top"===we.connectionPair.overlayY?"below":"above")})}_setPosition(ce){let[we,De]="before"===this.menu.xPosition?["end","start"]:["start","end"],[oe,Ce]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Qe,it]=[oe,Ce],[ht,ft]=[we,De],Dt=0;this.triggersSubmenu()?(ft=we="before"===this.menu.xPosition?"start":"end",De=ht="end"===we?"start":"end",Dt="bottom"===oe?8:-8):this.menu.overlapTrigger||(Qe="top"===oe?"bottom":"top",it="top"===Ce?"bottom":"top"),ce.withPositions([{originX:we,originY:Qe,overlayX:ht,overlayY:oe,offsetY:Dt},{originX:De,originY:Qe,overlayX:ft,overlayY:oe,offsetY:Dt},{originX:we,originY:it,overlayX:ht,overlayY:Ce,offsetY:-Dt},{originX:De,originY:it,overlayX:ft,overlayY:Ce,offsetY:-Dt}])}_menuClosingActions(){const ce=this._overlayRef.backdropClick(),we=this._overlayRef.detachments(),De=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,T.of)(),oe=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,k.h)(Ce=>Ce!==this._menuItemInstance),(0,k.h)(()=>this._menuOpen)):(0,T.of)();return(0,D.T)(ce,De,oe,we)}_handleMousedown(ce){(0,i.X6)(ce)||(this._openedBy=0===ce.button?"mouse":void 0,this.triggersSubmenu()&&ce.preventDefault())}_handleKeydown(ce){const we=ce.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(ce){this.triggersSubmenu()?(ce.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,k.h)(ce=>ce===this._menuItemInstance&&!ce.disabled),(0,$.g)(0,S.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Se&&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 ae.\u0275fac=function(ce){return new(ce||ae)(c.\u0275\u0275directiveInject(ge.aV),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(be),c.\u0275\u0275directiveInject(ct,8),c.\u0275\u0275directiveInject(Be,10),c.\u0275\u0275directiveInject(Y.Is,8),c.\u0275\u0275directiveInject(i.tE))},ae.\u0275dir=c.\u0275\u0275defineDirective({type:ae,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(ce,we){1&ce&&c.\u0275\u0275listener("click",function(oe){return we._handleClick(oe)})("mousedown",function(oe){return we._handleMousedown(oe)})("keydown",function(oe){return we._handleKeydown(oe)}),2&ce&&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"}}),ae})(),Ge=(()=>{class ae extends ut{}return ae.\u0275fac=function(){let Ae;return function(we){return(Ae||(Ae=c.\u0275\u0275getInheritedFactory(ae)))(we||ae)}}(),ae.\u0275dir=c.\u0275\u0275defineDirective({type:ae,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[c.\u0275\u0275InheritDefinitionFeature]}),ae})(),L=(()=>{class ae{}return ae.\u0275fac=function(ce){return new(ce||ae)},ae.\u0275mod=c.\u0275\u0275defineNgModule({type:ae}),ae.\u0275inj=c.\u0275\u0275defineInjector({providers:[mt],imports:[[he.CommonModule,ke.MatCommonModule,ke.MatRippleModule,ge.U8],ve.ZD,ke.MatCommonModule]}),ae})()},2075:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{MatCell:()=>We,MatCellDef:()=>j,MatColumnDef:()=>Wt,MatFooterCell:()=>je,MatFooterCellDef:()=>st,MatFooterRow:()=>Rt,MatFooterRowDef:()=>$e,MatHeaderCell:()=>Ht,MatHeaderCellDef:()=>Le,MatHeaderRow:()=>Nt,MatHeaderRowDef:()=>de,MatNoDataRow:()=>_n,MatRecycleRows:()=>ee,MatRow:()=>nn,MatRowDef:()=>dt,MatTable:()=>E,MatTableDataSource:()=>Sn,MatTableModule:()=>Gn,MatTextColumn:()=>xn,_MatTableDataSource:()=>Ln});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),P=l(5698),M=l(226),b=l(925),k=l(9071);const $=[[["caption"]],[["colgroup"],["col"]]],pe=["caption","colgroup, col"];function U(H,Ie){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 he(H,Ie){if(1&H&&(i.\u0275\u0275elementStart(0,"td",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const W=Ie.$implicit,Oe=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",Oe.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Oe.dataAccessor(W,Oe.name)," ")}}function ke(H){return class extends H{constructor(...Ie){super(...Ie),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Ie){const W=this._sticky;this._sticky=(0,u.Ig)(Ie),this._hasStickyChanged=W!==this._sticky}hasStickyChanged(){const Ie=this._hasStickyChanged;return this._hasStickyChanged=!1,Ie}resetStickyChanged(){this._hasStickyChanged=!1}}}const ge=new i.InjectionToken("CDK_TABLE"),ye=new i.InjectionToken("text-column-options");let Y=(()=>{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})(),ve=(()=>{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})(),xe=(()=>{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 Je{}const at=ke(Je);let ne=(()=>{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 Oe=this._stickyEnd;this._stickyEnd=(0,u.Ig)(W),this._hasStickyChanged=Oe!==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(ge,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkColumnDef",""]],contentQueries:function(W,Oe,et){if(1&W&&(i.\u0275\u0275contentQuery(et,Y,5),i.\u0275\u0275contentQuery(et,ve,5),i.\u0275\u0275contentQuery(et,xe,5)),2&W){let lt;i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(Oe.cell=lt.first),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(Oe.headerCell=lt.first),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(Oe.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(Ie,W){W.nativeElement.classList.add(...Ie._columnCssClassName)}}let q=(()=>{class H extends Fe{constructor(W,Oe){super(W,Oe)}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(ne),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,Oe){var et;if(super(W,Oe),1===(null===(et=W._table)||void 0===et?void 0:et._elementRef.nativeElement.nodeType)){const lt=W._table._elementRef.nativeElement.getAttribute("role");Oe.nativeElement.setAttribute("role","grid"===lt||"treegrid"===lt?"gridcell":"cell")}}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(ne),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})(),Pe=(()=>{class H extends Fe{constructor(W,Oe){var et;if(super(W,Oe),1===(null===(et=W._table)||void 0===et?void 0:et._elementRef.nativeElement.nodeType)){const lt=W._table._elementRef.nativeElement.getAttribute("role");Oe.nativeElement.setAttribute("role","grid"===lt||"treegrid"===lt?"gridcell":"cell")}}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(ne),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 ie{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 ie,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 ie;for(const Oe of W.tasks)Oe();for(const Oe of W.endTasks)Oe()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,_.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,P.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})(),Ee=(()=>{class H{constructor(W,Oe){this.template=W,this._differs=Oe}ngOnChanges(W){if(!this._columnsDiffer){const Oe=W.columns&&W.columns.currentValue||[];this._columnsDiffer=this._differs.find(Oe).create(),this._columnsDiffer.diff(Oe)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(W){return this instanceof bt?W.headerCell.template:this instanceof X?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 Ue extends Ee{}const ct=ke(Ue);let bt=(()=>{class H extends ct{constructor(W,Oe,et){super(W,Oe),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(ge,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 Ee{}const qe=ke(Be);let X=(()=>{class H extends qe{constructor(W,Oe,et){super(W,Oe),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(ge,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})(),me=(()=>{class H extends Ee{constructor(W,Oe,et){super(W,Oe),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(ge,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),Se=(()=>{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,Oe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Se],encapsulation:2}),H})(),be=(()=>{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,Oe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Se],encapsulation:2}),H})(),Xe=(()=>{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,Oe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Se],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 _t=["top","bottom","left","right"];class It{constructor(Ie,W,Oe,et,lt=!0,wt=!0,kt){this._isNativeHtmlTable=Ie,this._stickCellCss=W,this.direction=Oe,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(Ie,W){const Oe=[];for(const et of Ie)if(et.nodeType===et.ELEMENT_NODE){Oe.push(et);for(let lt=0;lt<et.children.length;lt++)Oe.push(et.children[lt])}this._coalescedStyleScheduler.schedule(()=>{for(const et of Oe)this._removeStickyStyle(et,W)})}updateStickyColumns(Ie,W,Oe,et=!0){if(!Ie.length||!this._isBrowser||!W.some(rn=>rn)&&!Oe.some(rn=>rn))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const lt=Ie[0],wt=lt.children.length,kt=this._getCellWidths(lt,et),Zt=this._getStickyStartColumnPositions(kt,W),un=this._getStickyEndColumnPositions(kt,Oe),Lt=W.lastIndexOf(!0),bn=Oe.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const rn="rtl"===this.direction,An=rn?"right":"left",Rn=rn?"left":"right";for(const yn of Ie)for(let Tn=0;Tn<wt;Tn++){const ii=yn.children[Tn];W[Tn]&&this._addStickyStyle(ii,An,Zt[Tn],Tn===Lt),Oe[Tn]&&this._addStickyStyle(ii,Rn,un[Tn],Tn===bn)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Lt?[]:kt.slice(0,Lt+1).map((yn,Tn)=>W[Tn]?yn:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===bn?[]:kt.slice(bn).map((yn,Tn)=>Oe[Tn+bn]?yn:null).reverse()}))})}stickRows(Ie,W,Oe){if(!this._isBrowser)return;const et="bottom"===Oe?Ie.slice().reverse():Ie,lt="bottom"===Oe?W.slice().reverse():W,wt=[],kt=[],Zt=[];for(let Lt=0,bn=0;Lt<et.length;Lt++){if(!lt[Lt])continue;wt[Lt]=bn;const rn=et[Lt];Zt[Lt]=this._isNativeHtmlTable?Array.from(rn.children):[rn];const An=rn.getBoundingClientRect().height;bn+=An,kt[Lt]=An}const un=lt.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var Lt,bn;for(let rn=0;rn<et.length;rn++){if(!lt[rn])continue;const An=wt[rn],Rn=rn===un;for(const yn of Zt[rn])this._addStickyStyle(yn,Oe,An,Rn)}"top"===Oe?null===(Lt=this._positionListener)||void 0===Lt||Lt.stickyHeaderRowsUpdated({sizes:kt,offsets:wt,elements:Zt}):null===(bn=this._positionListener)||void 0===bn||bn.stickyFooterRowsUpdated({sizes:kt,offsets:wt,elements:Zt})})}updateStickyFooterContainer(Ie,W){if(!this._isNativeHtmlTable)return;const Oe=Ie.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{W.some(et=>!et)?this._removeStickyStyle(Oe,["bottom"]):this._addStickyStyle(Oe,"bottom",0,!1)})}_removeStickyStyle(Ie,W){for(const et of W)Ie.style[et]="",Ie.classList.remove(this._borderCellCss[et]);_t.some(et=>-1===W.indexOf(et)&&Ie.style[et])?Ie.style.zIndex=this._getCalculatedZIndex(Ie):(Ie.style.zIndex="",this._needsPositionStickyOnElement&&(Ie.style.position=""),Ie.classList.remove(this._stickCellCss))}_addStickyStyle(Ie,W,Oe,et){Ie.classList.add(this._stickCellCss),et&&Ie.classList.add(this._borderCellCss[W]),Ie.style[W]=`${Oe}px`,Ie.style.zIndex=this._getCalculatedZIndex(Ie),this._needsPositionStickyOnElement&&(Ie.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Ie){const W={top:100,bottom:10,left:1,right:1};let Oe=0;for(const et of _t)Ie.style[et]&&(Oe+=W[et]);return Oe?`${Oe}`:""}_getCellWidths(Ie,W=!0){if(!W&&this._cachedCellWidths.length)return this._cachedCellWidths;const Oe=[],et=Ie.children;for(let lt=0;lt<et.length;lt++)Oe.push(et[lt].getBoundingClientRect().width);return this._cachedCellWidths=Oe,Oe}_getStickyStartColumnPositions(Ie,W){const Oe=[];let et=0;for(let lt=0;lt<Ie.length;lt++)W[lt]&&(Oe[lt]=et,et+=Ie[lt]);return Oe}_getStickyEndColumnPositions(Ie,W){const Oe=[];let et=0;for(let lt=Ie.length;lt>0;lt--)W[lt]&&(Oe[lt]=et,et+=Ie[lt]);return Oe}}const oe=new i.InjectionToken("CDK_SPL");let Qe=(()=>{class H{constructor(W,Oe){this.viewContainer=W,this.elementRef=Oe}}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,Oe){this.viewContainer=W,this.elementRef=Oe}}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,Oe){this.viewContainer=W,this.elementRef=Oe}}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,Oe){this.viewContainer=W,this.elementRef=Oe}}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,Oe,et,lt,wt,kt,Zt,un,Lt,bn,rn,An){this._differs=W,this._changeDetectorRef=Oe,this._elementRef=et,this._dir=wt,this._platform=Zt,this._viewRepeater=un,this._coalescedStyleScheduler=Lt,this._viewportRuler=bn,this._stickyPositioningListener=rn,this._ngZone=An,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,Oe)=>this.trackBy?this.trackBy(Oe.dataIndex,Oe.data):Oe),this._viewportRuler.change().pipe((0,d.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Oe=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Oe,this._forceRecalculateCellWidths=Oe,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 Oe=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(W,Oe,(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=>{Oe.get(et.currentIndex).context.$implicit=et.item.data}),this._updateNoDataRow(),this._ngZone&&i.NgZone.isInAngularZone()?this._ngZone.onStable.pipe((0,P.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),Oe=this._getRenderedRows(this._rowOutlet),et=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...W,...Oe,...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<Oe.length;kt++)this._renderRows[kt].rowDef===lt&&wt.push(Oe[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=[],Oe=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,Oe.get(lt));this._cachedRenderRowsMap.has(lt)||this._cachedRenderRowsMap.set(lt,new WeakMap);for(let kt=0;kt<wt.length;kt++){let Zt=wt[kt];const un=this._cachedRenderRowsMap.get(Zt.data);un.has(Zt.rowDef)?un.get(Zt.rowDef).push(Zt):un.set(Zt.rowDef,[Zt]),W.push(Zt)}}return W}_getRenderRowsForData(W,Oe,et){return this._getRowDefs(W,Oe).map(wt=>{const kt=et&&et.has(wt)?et.get(wt):[];if(kt.length){const Zt=kt.shift();return Zt.dataIndex=Oe,Zt}return{data:W,rowDef:wt,dataIndex:Oe}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Ft(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Oe=>{this._columnDefsByName.has(Oe.name),this._columnDefsByName.set(Oe.name,Oe)})}_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(Oe=>!Oe.when);this._defaultRowDef=W[0]}_renderUpdatedColumns(){const W=(wt,kt)=>wt||!!kt.getColumnsDiff(),Oe=this._rowDefs.reduce(W,!1);Oe&&this._forceRenderDataRows();const et=this._headerRowDefs.reduce(W,!1);et&&this._forceRenderHeaderRows();const lt=this._footerRowDefs.reduce(W,!1);return lt&&this._forceRenderFooterRows(),Oe||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(Oe=>{this._data=Oe||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((W,Oe)=>this._renderRow(this._headerRowOutlet,W,Oe)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((W,Oe)=>this._renderRow(this._footerRowOutlet,W,Oe)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(W,Oe){const et=Array.from(Oe.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 Oe=[];for(let et=0;et<W.viewContainer.length;et++){const lt=W.viewContainer.get(et);Oe.push(lt.rootNodes[0])}return Oe}_getRowDefs(W,Oe){if(1==this._rowDefs.length)return[this._rowDefs[0]];let et=[];if(this.multiTemplateDataRows)et=this._rowDefs.filter(lt=>!lt.when||lt.when(Oe,W));else{let lt=this._rowDefs.find(wt=>wt.when&&wt.when(Oe,W))||this._defaultRowDef;lt&&et.push(lt)}return et}_getEmbeddedViewArgs(W,Oe){return{templateRef:W.rowDef.template,context:{$implicit:W.data},index:Oe}}_renderRow(W,Oe,et,lt={}){const wt=W.viewContainer.createEmbeddedView(Oe.template,lt,et);return this._renderCellTemplateForItem(Oe,lt),wt}_renderCellTemplateForItem(W,Oe){for(let et of this._getCellTemplates(W))Se.mostRecentCellOutlet&&Se.mostRecentCellOutlet._viewContainer.createEmbeddedView(et,Oe);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const W=this._rowOutlet.viewContainer;for(let Oe=0,et=W.length;Oe<et;Oe++){const wt=W.get(Oe).context;wt.count=et,wt.first=0===Oe,wt.last=Oe===et-1,wt.even=Oe%2==0,wt.odd=!wt.even,this.multiTemplateDataRows?(wt.dataIndex=this._renderRows[Oe].dataIndex,wt.renderIndex=Oe):wt.index=this._renderRows[Oe].dataIndex}}_getCellTemplates(W){return W&&W.columns?Array.from(W.columns,Oe=>{const et=this._columnDefsByName.get(Oe);return W.extractCellTemplate(et)}):[]}_applyNativeTableSections(){const W=this._document.createDocumentFragment(),Oe=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const et of Oe){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=(Oe,et)=>Oe||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(Oe=>{this._stickyStyler.direction=Oe,this.updateStickyColumnStyles()})}_getOwnDefs(W){return W.filter(Oe=>!Oe._table||Oe._table===this)}_updateNoDataRow(){const W=this._customNoDataRow||this._noDataRow;if(!W)return;const Oe=0===this._rowOutlet.viewContainer.length;if(Oe===this._isShowingNoDataRow)return;const et=this._noDataRowOutlet.viewContainer;if(Oe){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=Oe}}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(oe,12),i.\u0275\u0275directiveInject(i.NgZone,8))},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(W,Oe,et){if(1&W&&(i.\u0275\u0275contentQuery(et,mt,5),i.\u0275\u0275contentQuery(et,ne,5),i.\u0275\u0275contentQuery(et,me,5),i.\u0275\u0275contentQuery(et,bt,5),i.\u0275\u0275contentQuery(et,X,5)),2&W){let lt;i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(Oe._noDataRow=lt.first),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(Oe._contentColumnDefs=lt),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(Oe._contentRowDefs=lt),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(Oe._contentHeaderRowDefs=lt),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(Oe._contentFooterRowDefs=lt)}},viewQuery:function(W,Oe){if(1&W&&(i.\u0275\u0275viewQuery(Qe,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())&&(Oe._rowOutlet=et.first),i.\u0275\u0275queryRefresh(et=i.\u0275\u0275loadQuery())&&(Oe._headerRowOutlet=et.first),i.\u0275\u0275queryRefresh(et=i.\u0275\u0275loadQuery())&&(Oe._footerRowOutlet=et.first),i.\u0275\u0275queryRefresh(et=i.\u0275\u0275loadQuery())&&(Oe._noDataRowOutlet=et.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(W,Oe){2&W&&i.\u0275\u0275classProp("cdk-table-fixed-layout",Oe.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i.\u0275\u0275ProvidersFeature([{provide:ge,useExisting:H},{provide:m.k,useClass:m.yy},{provide:Ke,useClass:_e},{provide:oe,useValue:null}])],ngContentSelectors:pe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(W,Oe){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,Qe,ft,ht],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),H})();function Ft(H,Ie){return H.concat(Array.from(Ie))}let pn=(()=>{class H{constructor(W,Oe){this._table=W,this._options=Oe,this.justify="start",this._options=Oe||{}}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,Oe)=>W[Oe])),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(ye,8))},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-text-column"]],viewQuery:function(W,Oe){if(1&W&&(i.\u0275\u0275viewQuery(ne,7),i.\u0275\u0275viewQuery(Y,7),i.\u0275\u0275viewQuery(ve,7)),2&W){let et;i.\u0275\u0275queryRefresh(et=i.\u0275\u0275loadQuery())&&(Oe.columnDef=et.first),i.\u0275\u0275queryRefresh(et=i.\u0275\u0275loadQuery())&&(Oe.cell=et.first),i.\u0275\u0275queryRefresh(et=i.\u0275\u0275loadQuery())&&(Oe.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,Oe){1&W&&(i.\u0275\u0275elementContainerStart(0,0),i.\u0275\u0275template(1,U,2,3,"th",1),i.\u0275\u0275template(2,he,2,3,"td",2),i.\u0275\u0275elementContainerEnd())},directives:[ne,ve,q,Y,Pe],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),cn=l(6451),Kt=l(9841),tn=l(4004);const ue=[[["caption"]],[["colgroup"],["col"]]],Z=["caption","colgroup, col"];function N(H,Ie){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,Ie){if(1&H&&(i.\u0275\u0275elementStart(0,"td",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const W=Ie.$implicit,Oe=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",Oe.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Oe.dataAccessor(W,Oe.name)," ")}}let ee=(()=>{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 Ie;return function(Oe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Oe||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(W,Oe){2&W&&i.\u0275\u0275classProp("mat-table-fixed-layout",Oe.fixedLayout)},exportAs:["matTable"],features:[i.\u0275\u0275ProvidersFeature([{provide:m.k,useClass:m.yy},{provide:Jt,useExisting:H},{provide:ge,useExisting:H},{provide:Ke,useClass:_e},{provide:oe,useValue:null}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Z,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(W,Oe){1&W&&(i.\u0275\u0275projectionDef(ue),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,Qe,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 Y{}return H.\u0275fac=function(){let Ie;return function(Oe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Oe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:Y,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Le=(()=>{class H extends ve{}return H.\u0275fac=function(){let Ie;return function(Oe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Oe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matHeaderCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:ve,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),st=(()=>{class H extends xe{}return H.\u0275fac=function(){let Ie;return function(Oe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Oe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matFooterCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:xe,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Wt=(()=>{class H extends ne{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 Ie;return function(Oe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Oe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i.\u0275\u0275ProvidersFeature([{provide:ne,useExisting:H},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Ht=(()=>{class H extends q{}return H.\u0275fac=function(){let Ie;return function(Oe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Oe||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 Ie;return function(Oe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Oe||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})(),We=(()=>{class H extends Pe{}return H.\u0275fac=function(){let Ie;return function(Oe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Oe||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})(),de=(()=>{class H extends bt{}return H.\u0275fac=function(){let Ie;return function(Oe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Oe||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 X{}return H.\u0275fac=function(){let Ie;return function(Oe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Oe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[i.\u0275\u0275ProvidersFeature([{provide:X,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),dt=(()=>{class H extends me{}return H.\u0275fac=function(){let Ie;return function(Oe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Oe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i.\u0275\u0275ProvidersFeature([{provide:me,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Nt=(()=>{class H extends Re{}return H.\u0275fac=function(){let Ie;return function(Oe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Oe||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,Oe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Se],encapsulation:2}),H})(),Rt=(()=>{class H extends be{}return H.\u0275fac=function(){let Ie;return function(Oe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Oe||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:be,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(W,Oe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Se],encapsulation:2}),H})(),nn=(()=>{class H extends Xe{}return H.\u0275fac=function(){let Ie;return function(Oe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Oe||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:Xe,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(W,Oe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Se],encapsulation:2}),H})(),_n=(()=>{class H extends mt{constructor(){super(...arguments),this._contentClassName="mat-no-data-row"}}return H.\u0275fac=function(){let Ie;return function(Oe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Oe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["ng-template","matNoDataRow",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:mt,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),xn=(()=>{class H extends pn{}return H.\u0275fac=function(){let Ie;return function(Oe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(H)))(Oe||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,Oe){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,Le,Ht,j,We],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 Ln extends m.o2{constructor(Ie=[]){super(),this._renderData=new D.X([]),this._filter=new D.X(""),this._internalPageChanges=new s.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(W,Oe)=>{const et=W[Oe];if((0,u.t6)(et)){const lt=Number(et);return lt<9007199254740991?lt:et}return et},this.sortData=(W,Oe)=>{const et=Oe.active,lt=Oe.direction;return et&&""!=lt?W.sort((wt,kt)=>{let Zt=this.sortingDataAccessor(wt,et),un=this.sortingDataAccessor(kt,et);const Lt=typeof Zt,bn=typeof un;Lt!==bn&&("number"===Lt&&(Zt+=""),"number"===bn&&(un+=""));let rn=0;return null!=Zt&&null!=un?Zt>un?rn=1:Zt<un&&(rn=-1):null!=Zt?rn=1:null!=un&&(rn=-1),rn*("asc"==lt?1:-1)}):W},this.filterPredicate=(W,Oe)=>{const et=Object.keys(W).reduce((wt,kt)=>wt+W[kt]+"\u25ec","").toLowerCase(),lt=Oe.trim().toLowerCase();return-1!=et.indexOf(lt)},this._data=new D.X(Ie),this._updateChangeSubscription()}get data(){return this._data.value}set data(Ie){Ie=Array.isArray(Ie)?Ie:[],this._data.next(Ie),this._renderChangesSubscription||this._filterData(Ie)}get filter(){return this._filter.value}set filter(Ie){this._filter.next(Ie),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Ie){this._sort=Ie,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Ie){this._paginator=Ie,this._updateChangeSubscription()}_updateChangeSubscription(){var Ie;const W=this._sort?(0,cn.T)(this._sort.sortChange,this._sort.initialized):(0,S.of)(null),Oe=this._paginator?(0,cn.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)(([Zt])=>this._filterData(Zt))),wt=(0,Kt.a)([lt,W]).pipe((0,tn.U)(([Zt])=>this._orderData(Zt))),kt=(0,Kt.a)([wt,Oe]).pipe((0,tn.U)(([Zt])=>this._pageData(Zt)));null===(Ie=this._renderChangesSubscription)||void 0===Ie||Ie.unsubscribe(),this._renderChangesSubscription=kt.subscribe(Zt=>this._renderData.next(Zt))}_filterData(Ie){return this.filteredData=null==this.filter||""===this.filter?Ie:Ie.filter(W=>this.filterPredicate(W,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Ie){return this.sort?this.sortData(Ie.slice(),this.sort):Ie}_pageData(Ie){if(!this.paginator)return Ie;const W=this.paginator.pageIndex*this.paginator.pageSize;return Ie.slice(W,W+this.paginator.pageSize)}_updatePaginator(Ie){Promise.resolve().then(()=>{const W=this.paginator;if(W&&(W.length=Ie,W.pageIndex>0)){const Oe=Math.ceil(W.length/W.pageSize)-1||0,et=Math.min(W.pageIndex,Oe);et!==W.pageIndex&&(W.pageIndex=et,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Ie;null===(Ie=this._renderChangesSubscription)||void 0===Ie||Ie.unsubscribe(),this._renderChangesSubscription=null}}class Sn extends Ln{}},3251:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{MAT_TAB:()=>Xe,MAT_TABS_CONFIG:()=>ce,MAT_TAB_GROUP:()=>It,MatInkBar:()=>me,MatTab:()=>ut,MatTabBody:()=>Ae,MatTabBodyPortal:()=>L,MatTabChangeEvent:()=>Jt,MatTabContent:()=>Re,MatTabGroup:()=>en,MatTabHeader:()=>Dt,MatTabLabel:()=>mt,MatTabLabelWrapper:()=>De,MatTabLink:()=>ue,MatTabNav:()=>cn,MatTabNavPanel:()=>Z,MatTabsModule:()=>N,_MAT_INK_BAR_POSITIONER:()=>qe,_MatTabBodyBase:()=>ae,_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),P=l(9646),M=l(6451),b=l(2805),k=l(1777),$=l(8675),pe=l(1884),U=l(2722),he=l(226),ke=l(3191),ge=l(1159),ye=l(925),Y=l(9071);function ve(O,ee){1&O&&s.\u0275\u0275projection(0)}const xe=["*"];function Je(O,ee){}const at=function(O){return{animationDuration:O}},ne=function(O,ee){return{value:O,params:ee}},Fe=["tabListContainer"],q=["tabList"],le=["tabListInner"],Pe=["nextPaginator"],ie=["previousPaginator"],Ke=["tabBodyWrapper"],_e=["tabHeader"];function tt(O,ee){}function Ee(O,ee){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 Ue(O,ee){if(1&O&&s.\u0275\u0275text(0),2&O){const E=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275textInterpolate(E.textLabel)}}function ct(O,ee){if(1&O){const E=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",6),s.\u0275\u0275listener("click",function(){const Le=s.\u0275\u0275restoreView(E),st=Le.$implicit,Wt=Le.index,Ht=s.\u0275\u0275nextContext(),je=s.\u0275\u0275reference(1);return Ht._handleClick(st,je,Wt)})("cdkFocusChange",function(Le){const Wt=s.\u0275\u0275restoreView(E).index;return s.\u0275\u0275nextContext()._tabFocusChanged(Le,Wt)}),s.\u0275\u0275elementStart(1,"div",7),s.\u0275\u0275template(2,Ee,1,1,"ng-template",8),s.\u0275\u0275template(3,Ue,1,1,"ng-template",null,9,s.\u0275\u0275templateRefExtractor),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&O){const E=ee.$implicit,j=ee.index,Le=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",Le)}}function bt(O,ee){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(Le){return s.\u0275\u0275restoreView(E),s.\u0275\u0275nextContext()._setTabBodyWrapperHeight(Le)}),s.\u0275\u0275elementEnd()}if(2&O){const E=ee.$implicit,j=ee.index,Le=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-body-active",Le.selectedIndex===j),s.\u0275\u0275property("id",Le._getTabContentId(j))("ngClass",E.bodyClass)("content",E.content)("position",E.position)("origin",E.origin)("animationDuration",Le.animationDuration),s.\u0275\u0275attribute("tabindex",null!=Le.contentTabIndex&&Le.selectedIndex===j?Le.contentTabIndex:null)("aria-labelledby",Le._getTabLabelId(j))}}const Be=["mat-tab-nav-bar",""],qe=new s.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function X(){return ee=>({left:ee?(ee.offsetLeft||0)+"px":"0",width:ee?(ee.offsetWidth||0)+"px":"0"})}});let me=(()=>{class O{constructor(E,j,Le,st){this._elementRef=E,this._ngZone=j,this._inkBarPositioner=Le,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),Le=this._elementRef.nativeElement;Le.style.left=j.left,Le.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(qe),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 Se=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:Se,useExisting:O}])]}),O})();const be=new s.InjectionToken("MatTabLabel"),Xe=new s.InjectionToken("MAT_TAB");let mt=(()=>{class O extends m.ig{constructor(E,j,Le){super(E,j),this._closestTab=Le}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.TemplateRef),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(Xe,8))},O.\u0275dir=s.\u0275\u0275defineDirective({type:O,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:be,useExisting:O}]),s.\u0275\u0275InheritDefinitionFeature]}),O})();const _t=(0,_.mixinDisabled)(class{}),It=new s.InjectionToken("MAT_TAB_GROUP");let ut=(()=>{class O extends _t{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,Le){if(1&E&&(s.\u0275\u0275contentQuery(Le,be,5),s.\u0275\u0275contentQuery(Le,Se,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 Le;s.\u0275\u0275queryRefresh(Le=s.\u0275\u0275loadQuery())&&(j._implicitContent=Le.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:Xe,useExisting:O}]),s.\u0275\u0275InheritDefinitionFeature,s.\u0275\u0275NgOnChangesFeature],ngContentSelectors:xe,decls:1,vars:0,template:function(E,j){1&E&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275template(0,ve,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,Le,st){super(E,j,st),this._host=Le,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)(()=>Ae)),s.\u0275\u0275directiveInject(c.DOCUMENT))},O.\u0275dir=s.\u0275\u0275defineDirective({type:O,selectors:[["","matTabBodyHost",""]],features:[s.\u0275\u0275InheritDefinitionFeature]}),O})(),ae=(()=>{class O{constructor(E,j,Le){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),Le.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(he.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})(),Ae=(()=>{class O extends ae{constructor(E,j,Le){super(E,j,Le)}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(he.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 Le;s.\u0275\u0275queryRefresh(Le=s.\u0275\u0275loadQuery())&&(j._portalHost=Le.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,Je,0,0,"ng-template",2),s.\u0275\u0275elementEnd()),2&E&&s.\u0275\u0275property("@translateTab",s.\u0275\u0275pureFunction2(3,ne,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 ce=new s.InjectionToken("MAT_TABS_CONFIG"),we=(0,_.mixinDisabled)(class{});let De=(()=>{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 oe=(0,ye.i$)({passive:!0});let ht=(()=>{class O{constructor(E,j,Le,st,Wt,Ht,je){this._elementRef=E,this._changeDetectorRef=j,this._viewportRuler=Le,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,ke.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",oe).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,d.R)(this._nextPaginator.nativeElement,"touchstart",oe).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const E=this._dir?this._dir.change:(0,P.of)("ltr"),j=this._viewportRuler.change(150),Le=()=>{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(Le):Le(),(0,M.T)(E,j,this._items.changes).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(Le)),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,ge.Vb)(E))switch(E.keyCode){case ge.K5:case ge.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 Le=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 We=this.scrollDistance,de=this.scrollDistance+Le;Ht<We?this.scrollDistance-=We-Ht+60:je>de&&(this.scrollDistance+=je-de+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:Le,distance:st}=this._scrollHeader(E);(0===st||st>=Le)&&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(Y.rL),s.\u0275\u0275directiveInject(he.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(ye.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,Le,st,Wt,Ht,je){super(E,j,Le,st,Wt,Ht,je),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(E){this._disableRipple=(0,ke.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(Y.rL),s.\u0275\u0275directiveInject(he.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(ye.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,Le,st,Wt,Ht,je){super(E,j,Le,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(Y.rL),s.\u0275\u0275directiveInject(he.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(ye.t4),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},O.\u0275cmp=s.\u0275\u0275defineComponent({type:O,selectors:[["mat-tab-header"]],contentQueries:function(E,j,Le){if(1&E&&s.\u0275\u0275contentQuery(Le,De,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(me,7),s.\u0275\u0275viewQuery(Fe,7),s.\u0275\u0275viewQuery(q,7),s.\u0275\u0275viewQuery(le,7),s.\u0275\u0275viewQuery(Pe,5),s.\u0275\u0275viewQuery(ie,5)),2&E){let Le;s.\u0275\u0275queryRefresh(Le=s.\u0275\u0275loadQuery())&&(j._inkBar=Le.first),s.\u0275\u0275queryRefresh(Le=s.\u0275\u0275loadQuery())&&(j._tabListContainer=Le.first),s.\u0275\u0275queryRefresh(Le=s.\u0275\u0275loadQuery())&&(j._tabList=Le.first),s.\u0275\u0275queryRefresh(Le=s.\u0275\u0275loadQuery())&&(j._tabListInner=Le.first),s.\u0275\u0275queryRefresh(Le=s.\u0275\u0275loadQuery())&&(j._nextPaginator=Le.first),s.\u0275\u0275queryRefresh(Le=s.\u0275\u0275loadQuery())&&(j._previousPaginator=Le.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:xe,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,me],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,Le,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=Le&&Le.animationDuration?Le.animationDuration:"500ms",this.disablePagination=!(!Le||null==Le.disablePagination)&&Le.disablePagination,this.dynamicHeight=!(!Le||null==Le.dynamicHeight)&&Le.dynamicHeight,this.contentTabIndex=null!==(Wt=null==Le?void 0:Le.contentTabIndex)&&void 0!==Wt?Wt:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(E){this._dynamicHeight=(0,ke.Ig)(E)}get selectedIndex(){return this._selectedIndex}set selectedIndex(E){this._indexToSelect=(0,ke.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,ke.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 Le=this._tabBodyWrapper.nativeElement;Le.style.minHeight=Le.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Le,st)=>Le.isActive=st===E),j||(this.selectedIndexChange.emit(E),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((j,Le)=>{j.position=Le-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 Le=0;Le<j.length;Le++)if(j[Le].isActive){this._indexToSelect=this._selectedIndex=Le;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,Le){E.disabled||(this.selectedIndex=j.focusIndex=Le)}_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(ce,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,Le,st){super(E,j,Le,st)}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(ce,8),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},O.\u0275cmp=s.\u0275\u0275defineComponent({type:O,selectors:[["mat-tab-group"]],contentQueries:function(E,j,Le){if(1&E&&s.\u0275\u0275contentQuery(Le,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 Le;s.\u0275\u0275queryRefresh(Le=s.\u0275\u0275loadQuery())&&(j._tabBodyWrapper=Le.first),s.\u0275\u0275queryRefresh(Le=s.\u0275\u0275loadQuery())&&(j._tabHeader=Le.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,Ae,c.NgForOf,De,_.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,Le,st,Wt,Ht,je){super(E,st,Wt,j,Le,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,ke.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(he.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(Y.rL),s.\u0275\u0275directiveInject(ye.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})(),cn=(()=>{class O extends Tt{constructor(E,j,Le,st,Wt,Ht,je){super(E,j,Le,st,Wt,Ht,je)}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(he.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(Y.rL),s.\u0275\u0275directiveInject(ye.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,Le){if(1&E&&s.\u0275\u0275contentQuery(Le,ue,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(me,7),s.\u0275\u0275viewQuery(Fe,7),s.\u0275\u0275viewQuery(q,7),s.\u0275\u0275viewQuery(le,7),s.\u0275\u0275viewQuery(Pe,5),s.\u0275\u0275viewQuery(ie,5)),2&E){let Le;s.\u0275\u0275queryRefresh(Le=s.\u0275\u0275loadQuery())&&(j._inkBar=Le.first),s.\u0275\u0275queryRefresh(Le=s.\u0275\u0275loadQuery())&&(j._tabListContainer=Le.first),s.\u0275\u0275queryRefresh(Le=s.\u0275\u0275loadQuery())&&(j._tabList=Le.first),s.\u0275\u0275queryRefresh(Le=s.\u0275\u0275loadQuery())&&(j._tabListInner=Le.first),s.\u0275\u0275queryRefresh(Le=s.\u0275\u0275loadQuery())&&(j._nextPaginator=Le.first),s.\u0275\u0275queryRefresh(Le=s.\u0275\u0275loadQuery())&&(j._previousPaginator=Le.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:xe,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,me],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,Le,st,Wt,Ht){super(),this._tabNavBar=E,this.elementRef=j,this._focusMonitor=Wt,this._isActive=!1,this.id="mat-tab-link-"+$t++,this.rippleConfig=Le||{},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,ke.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===ge.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})(),ue=(()=>{class O extends tn{constructor(E,j,Le,st,Wt,Ht,je,We){super(E,j,Wt,Ht,je,We),this._tabLinkRipple=new _.RippleRenderer(this,Le,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(cn),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(ye.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})(),Z=(()=>{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:xe,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:()=>ne,MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY:()=>Fe,MAT_TOOLTIP_SCROLL_STRATEGY:()=>xe,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY:()=>Je,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>at,MatTooltip:()=>le,MatTooltipModule:()=>Ke,SCROLL_THROTTLE_MS:()=>he,TOOLTIP_PANEL_CLASS:()=>ke,TooltipComponent:()=>ie,_MatTooltipBase:()=>q,_TooltipComponentBase:()=>Pe,getMatTooltipInvalidPositionError:()=>ve,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),P=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})))])},he=20,ke="mat-tooltip-panel",ge="tooltip-panel",ye=(0,d.i$)({passive:!0});function ve(_e){return Error(`Tooltip position "${_e}" is invalid.`)}const xe=new c.InjectionToken("mat-tooltip-scroll-strategy");function Je(_e){return()=>_e.scrollStrategies.reposition({scrollThrottle:he})}const at={provide:xe,deps:[i.aV],useFactory:Je},ne=new c.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:Fe});function Fe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}let q=(()=>{class _e{constructor(Ee,Ue,ct,bt,Be,qe,X,me,Se,Re,be,Xe){this._overlay=Ee,this._elementRef=Ue,this._scrollDispatcher=ct,this._viewContainerRef=bt,this._ngZone=Be,this._platform=qe,this._ariaDescriber=X,this._focusMonitor=me,this._dir=Re,this._defaultOptions=be,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=Se,this._document=Xe,be&&(be.position&&(this.position=be.position),be.touchGestures&&(this.touchGestures=be.touchGestures)),Re.change.pipe((0,b.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(Ee){var Ue;Ee!==this._position&&(this._position=Ee,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(Ue=this._tooltipInstance)||void 0===Ue||Ue.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(Ee){this._disabled=(0,D.Ig)(Ee),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Ee){this._showDelay=(0,D.su)(Ee)}get hideDelay(){return this._hideDelay}set hideDelay(Ee){this._hideDelay=(0,D.su)(Ee)}get message(){return this._message}set message(Ee){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Ee?String(Ee).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(Ee){this._tooltipClass=Ee,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,b.R)(this._destroyed)).subscribe(Ee=>{Ee?"keyboard"===Ee&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Ee=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Ue,ct])=>{Ee.removeEventListener(Ue,ct,ye)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Ee,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Ee)}show(Ee=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const Ue=this._createOverlay();this._detach(),this._portal=this._portal||new P.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=Ue.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(Ee)}hide(Ee=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(Ee)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const Ee=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Ue=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Ee);return Ue.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:Ue,panelClass:`${this._cssClassPrefix}-${ge}`,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(Ee){const Ue=Ee.getConfig().positionStrategy,ct=this._getOrigin(),bt=this._getOverlayPosition();Ue.withPositions([this._addOffset(Object.assign(Object.assign({},ct.main),bt.main)),this._addOffset(Object.assign(Object.assign({},ct.fallback),bt.fallback))])}_addOffset(Ee){return Ee}_getOrigin(){const Ee=!this._dir||"ltr"==this._dir.value,Ue=this.position;let ct;"above"==Ue||"below"==Ue?ct={originX:"center",originY:"above"==Ue?"top":"bottom"}:"before"==Ue||"left"==Ue&&Ee||"right"==Ue&&!Ee?ct={originX:"start",originY:"center"}:("after"==Ue||"right"==Ue&&Ee||"left"==Ue&&!Ee)&&(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 Ee=!this._dir||"ltr"==this._dir.value,Ue=this.position;let ct;"above"==Ue?ct={overlayX:"center",overlayY:"bottom"}:"below"==Ue?ct={overlayX:"center",overlayY:"top"}:"before"==Ue||"left"==Ue&&Ee||"right"==Ue&&!Ee?ct={overlayX:"end",overlayY:"center"}:("after"==Ue||"right"==Ue&&Ee||"left"==Ue&&!Ee)&&(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(Ee){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Ee,this._tooltipInstance._markForCheck())}_invertPosition(Ee,Ue){return"above"===this.position||"below"===this.position?"top"===Ue?Ue="bottom":"bottom"===Ue&&(Ue="top"):"end"===Ee?Ee="start":"start"===Ee&&(Ee="end"),{x:Ee,y:Ue}}_updateCurrentPositionClass(Ee){const{overlayY:Ue,originX:ct,originY:bt}=Ee;let Be;if(Be="center"===Ue?this._dir&&"rtl"===this._dir.value?"end"===ct?"left":"right":"start"===ct?"left":"right":"bottom"===Ue&&"top"===bt?"above":"below",Be!==this._currentPosition){const qe=this._overlayRef;if(qe){const X=`${this._cssClassPrefix}-${ge}-`;qe.removePanelClass(X+this._currentPosition),qe.addPanelClass(X+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 Ee=[];if(this._platformSupportsMouseEvents())Ee.push(["mouseleave",()=>this.hide()],["wheel",Ue=>this._wheelListener(Ue)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Ue=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Ee.push(["touchend",Ue],["touchcancel",Ue])}this._addListeners(Ee),this._passiveListeners.push(...Ee)}_addListeners(Ee){Ee.forEach(([Ue,ct])=>{this._elementRef.nativeElement.addEventListener(Ue,ct,ye)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Ee){if(this._isTooltipVisible()){const Ue=this._document.elementFromPoint(Ee.clientX,Ee.clientY),ct=this._elementRef.nativeElement;Ue!==ct&&!ct.contains(Ue)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Ee=this.touchGestures;if("off"!==Ee){const Ue=this._elementRef.nativeElement,ct=Ue.style;("on"===Ee||"INPUT"!==Ue.nodeName&&"TEXTAREA"!==Ue.nodeName)&&(ct.userSelect=ct.msUserSelect=ct.webkitUserSelect=ct.MozUserSelect="none"),("on"===Ee||!Ue.draggable)&&(ct.webkitUserDrag="none"),ct.touchAction="none",ct.webkitTapHighlightColor="transparent"}}}return _e.\u0275fac=function(Ee){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 q{constructor(Ee,Ue,ct,bt,Be,qe,X,me,Se,Re,be,Xe){super(Ee,Ue,ct,bt,Be,qe,X,me,Se,Re,be,Xe),this._tooltipComponent=ie}}return _e.\u0275fac=function(Ee){return new(Ee||_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(xe),c.\u0275\u0275directiveInject(pe.Is,8),c.\u0275\u0275directiveInject(ne,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})(),Pe=(()=>{class _e{constructor(Ee){this._changeDetectorRef=Ee,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new M.x}show(Ee){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},Ee)}hide(Ee){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},Ee)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(Ee){const Ue=Ee.toState;"hidden"===Ue&&!this.isVisible()&&this._onHide.next(),("visible"===Ue||"hidden"===Ue)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return _e.\u0275fac=function(Ee){return new(Ee||_e)(c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},_e.\u0275dir=c.\u0275\u0275defineDirective({type:_e}),_e})(),ie=(()=>{class _e extends Pe{constructor(Ee,Ue){super(Ee),this._breakpointObserver=Ue,this._isHandset=this._breakpointObserver.observe(S.Breakpoints.Handset)}}return _e.\u0275fac=function(Ee){return new(Ee||_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(Ee,Ue){2&Ee&&c.\u0275\u0275styleProp("zoom","visible"===Ue._visibility?1:null)},features:[c.\u0275\u0275InheritDefinitionFeature],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(Ee,Ue){if(1&Ee&&(c.\u0275\u0275elementStart(0,"div",0),c.\u0275\u0275listener("@state.start",function(){return Ue._animationStart()})("@state.done",function(bt){return Ue._animationDone(bt)}),c.\u0275\u0275pipe(1,"async"),c.\u0275\u0275text(2),c.\u0275\u0275elementEnd()),2&Ee){let ct;c.\u0275\u0275classProp("mat-tooltip-handset",null==(ct=c.\u0275\u0275pipeBind1(1,5,Ue._isHandset))?null:ct.matches),c.\u0275\u0275property("ngClass",Ue.tooltipClass)("@state",Ue._visibility),c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(Ue.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(Ee){return new(Ee||_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:()=>$i,BrowserAnimationsModule:()=>Yi,NoopAnimationsModule:()=>br,\u0275AnimationRenderer:()=>bi,\u0275AnimationRendererFactory:()=>vi,\u0275BrowserAnimationBuilder:()=>Si,\u0275BrowserAnimationFactory:()=>sr,\u0275InjectableAnimationEngine:()=>Vi});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 _(J){switch(J.length){case 0:return new m.ZN;case 1:return J[0];default:return new m.ZE(J)}}function D(J,f,p,x,Q={},fe={}){const y=[],R=[];let C=-1,V=null;if(x.forEach(Te=>{const Ye=Te.offset,ot=Ye==C,Et=ot&&V||{};Object.keys(Te).forEach(Pt=>{let xt=Pt,Vt=Te[Pt];if("offset"!==Pt)switch(xt=f.normalizePropertyName(xt,y),Vt){case m.k1:Vt=Q[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 Te="\n - ";throw new Error(`Unable to animate due to the following errors:${Te}${y.join(Te)}`)}return R}function T(J,f,p,x){switch(f){case"start":J.onStart(()=>x(p&&S(p,"start",J)));break;case"done":J.onDone(()=>x(p&&S(p,"done",J)));break;case"destroy":J.onDestroy(()=>x(p&&S(p,"destroy",J)))}}function S(J,f,p){const x=p.totalTime,fe=d(J.element,J.triggerName,J.fromState,J.toState,f||J.phaseName,null==x?J.totalTime:x,!!p.disabled),y=J._data;return null!=y&&(fe._data=y),fe}function d(J,f,p,x,Q="",fe=0,y){return{element:J,triggerName:f,fromState:p,toState:x,phaseName:Q,totalTime:fe,disabled:!!y}}function P(J,f,p){let x;return J instanceof Map?(x=J.get(f),x||J.set(f,x=p)):(x=J[f],x||(x=J[f]=p)),x}function M(J){const f=J.indexOf(":");return[J.substring(1,f),J.substr(f+1)]}let b=(J,f)=>!1,k=(J,f,p)=>[];(s()||"undefined"!=typeof Element)&&(b=c()?(J,f)=>{for(;f&&f!==document.documentElement;){if(f===J)return!0;f=f.parentNode||f.host}return!1}:(J,f)=>J.contains(f),k=(J,f,p)=>{if(p)return Array.from(J.querySelectorAll(f));const x=J.querySelector(f);return x?[x]:[]});let U=null,he=!1;function ke(J){U||(U=function ge(){return"undefined"!=typeof document?document.body:null}()||{},he=!!U.style&&"WebkitAppearance"in U.style);let f=!0;return U.style&&!function pe(J){return"ebkit"==J.substring(1,6)}(J)&&(f=J in U.style,!f&&he&&(f="Webkit"+J.charAt(0).toUpperCase()+J.substr(1)in U.style)),f}const ye=b,Y=k;let xe=(()=>{class J{validateStyleProperty(p){return ke(p)}matchesElement(p,x){return!1}containsElement(p,x){return ye(p,x)}query(p,x,Q){return Y(p,x,Q)}computeStyle(p,x,Q){return Q||""}animate(p,x,Q,fe,y,R=[],C){return new m.ZN(Q,fe)}}return J.\u0275fac=function(p){return new(p||J)},J.\u0275prov=i.\u0275\u0275defineInjectable({token:J,factory:J.\u0275fac}),J})(),Je=(()=>{class J{}return J.NOOP=new xe,J})();const q="ng-enter",le="ng-leave",Pe="ng-trigger",ie=".ng-trigger",Ke="ng-animating",_e=".ng-animating";function tt(J){if("number"==typeof J)return J;const f=J.match(/^(-?[\.\d]+)(m?s)/);return!f||f.length<2?0:Ee(parseFloat(f[1]),f[2])}function Ee(J,f){return"s"===f?1e3*J:J}function Ue(J,f,p){return J.hasOwnProperty("duration")?J:function ct(J,f,p){let Q,fe=0,y="";if("string"==typeof J){const R=J.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===R)return f.push(`The provided timing value "${J}" is invalid.`),{duration:0,delay:0,easing:""};Q=Ee(parseFloat(R[1]),R[2]);const C=R[3];null!=C&&(fe=Ee(parseFloat(C),R[4]));const V=R[5];V&&(y=V)}else Q=J;if(!p){let R=!1,C=f.length;Q<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 "${J}" is invalid.`)}return{duration:Q,delay:fe,easing:y}}(J,f,p)}function bt(J,f={}){return Object.keys(J).forEach(p=>{f[p]=J[p]}),f}function qe(J,f,p={}){if(f)for(let x in J)p[x]=J[x];else bt(J,p);return p}function X(J,f,p){return p?f+":"+p+";":""}function me(J){let f="";for(let p=0;p<J.style.length;p++){const x=J.style.item(p);f+=X(0,x,J.style.getPropertyValue(x))}for(const p in J.style)J.style.hasOwnProperty(p)&&!p.startsWith("_")&&(f+=X(0,ae(p),J.style[p]));J.setAttribute("style",f)}function Se(J,f,p){J.style&&(Object.keys(f).forEach(x=>{const Q=L(x);p&&!p.hasOwnProperty(x)&&(p[x]=J.style[Q]),J.style[Q]=f[x]}),s()&&me(J))}function Re(J,f){J.style&&(Object.keys(f).forEach(p=>{const x=L(p);J.style[x]=""}),s()&&me(J))}function be(J){return Array.isArray(J)?1==J.length?J[0]:(0,m.vP)(J):J}const mt=new RegExp("{{\\s*(.+?)\\s*}}","g");function _t(J){let f=[];if("string"==typeof J){let p;for(;p=mt.exec(J);)f.push(p[1]);mt.lastIndex=0}return f}function It(J,f,p){const x=J.toString(),Q=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 Q==x?J:Q}function ut(J){const f=[];let p=J.next();for(;!p.done;)f.push(p.value),p=J.next();return f}const Ge=/-+([a-z0-9])/g;function L(J){return J.replace(Ge,(...f)=>f[1].toUpperCase())}function ae(J){return J.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function we(J,f,p){switch(f.type){case 7:return J.visitTrigger(f,p);case 0:return J.visitState(f,p);case 1:return J.visitTransition(f,p);case 2:return J.visitSequence(f,p);case 3:return J.visitGroup(f,p);case 4:return J.visitAnimate(f,p);case 5:return J.visitKeyframes(f,p);case 6:return J.visitStyle(f,p);case 8:return J.visitReference(f,p);case 9:return J.visitAnimateChild(f,p);case 10:return J.visitAnimateRef(f,p);case 11:return J.visitQuery(f,p);case 12:return J.visitStagger(f,p);default:throw new Error(`Unable to resolve animation metadata node #${f.type}`)}}function De(J,f){return window.getComputedStyle(J)[f]}function Ce(J,f){const p=[];return"string"==typeof J?J.split(/\s*,\s*/).forEach(x=>function Qe(J,f,p){if(":"==J[0]){const C=function it(J,f){switch(J){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 "${J}" is not supported`),"* => *"}}(J,p);if("function"==typeof C)return void f.push(C);J=C}const x=J.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==x||x.length<4)return p.push(`The provided transition expression "${J}" is not supported`),f;const Q=x[1],fe=x[2],y=x[3];f.push(Dt(Q,y));"<"==fe[0]&&!("*"==Q&&"*"==y)&&f.push(Dt(y,Q))}(x,p,f)):p.push(J),p}const ht=new Set(["true","1"]),ft=new Set(["false","0"]);function Dt(J,f){const p=ht.has(J)||ft.has(J),x=ht.has(f)||ft.has(f);return(Q,fe)=>{let y="*"==J||J==Q,R="*"==f||f==fe;return!y&&p&&"boolean"==typeof Q&&(y=Q?ht.has(J):ft.has(J)),!R&&x&&"boolean"==typeof fe&&(R=fe?ht.has(f):ft.has(f)),y&&R}}const Jt=new RegExp("s*:selfs*,?","g");function Ft(J,f,p){return new en(J).build(f,p)}class en{constructor(f){this._driver=f}build(f,p){const x=new cn(p);return this._resetContextStyleTimingState(x),we(this,be(f),x)}_resetContextStyleTimingState(f){f.currentQuerySelector="",f.collectedStyles={},f.collectedStyles[""]={},f.currentTime=0}visitTrigger(f,p){let x=p.queryCount=0,Q=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(Te=>{C.name=Te,fe.push(this.visitState(C,p))}),C.name=V}else if(1==R.type){const C=this.visitTransition(R,p);x+=C.queryCount,Q+=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:Q,options:null}}visitState(f,p){const x=this.visitStyle(f.styles,p),Q=f.options&&f.options.params||null;if(x.containsDynamicStyles){const fe=new Set,y=Q||{};if(x.styles.forEach(R=>{if(tn(R)){const C=R;Object.keys(C).forEach(V=>{_t(C[V]).forEach(Te=>{y.hasOwnProperty(Te)||fe.add(Te)})})}}),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:Q?{params:Q}:null}}visitTransition(f,p){p.queryCount=0,p.depCount=0;const x=we(this,be(f.animation),p);return{type:1,matchers:Ce(f.expr,p.errors),animation:x,queryCount:p.queryCount,depCount:p.depCount,options:Z(f.options)}}visitSequence(f,p){return{type:2,steps:f.steps.map(x=>we(this,x,p)),options:Z(f.options)}}visitGroup(f,p){const x=p.currentTime;let Q=0;const fe=f.steps.map(y=>{p.currentTime=x;const R=we(this,y,p);return Q=Math.max(Q,p.currentTime),R});return p.currentTime=Q,{type:3,steps:fe,options:Z(f.options)}}visitAnimate(f,p){const x=function ue(J,f){let p=null;if(J.hasOwnProperty("duration"))p=J;else if("number"==typeof J)return N(Ue(J,f).duration,0,"");const x=J;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||Ue(x,f),N(p.duration,p.delay,p.easing)}(f.timings,p.errors);p.currentAnimateTimings=x;let Q,fe=f.styles?f.styles:(0,m.oB)({});if(5==fe.type)Q=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,Q=C}return p.currentAnimateTimings=null,{type:4,timings:x,style:Q,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 Q=!1,fe=null;return x.forEach(y=>{if(tn(y)){const R=y,C=R.easing;if(C&&(fe=C,delete R.easing),!Q)for(let V in R)if(R[V].toString().indexOf("{{")>=0){Q=!0;break}}}),{type:6,styles:x,easing:fe,offset:f.offset,containsDynamicStyles:Q,options:null}}_validateStyleAst(f,p){const x=p.currentAnimateTimings;let Q=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 Te=!0;V&&(fe!=Q&&fe>=V.startTime&&Q<=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 "${Q}ms"`),Te=!1),fe=V.startTime),Te&&(C[R]={startTime:fe,endTime:Q}),p.options&&function Xe(J,f,p){const x=f.params||{},Q=_t(J);Q.length&&Q.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 Te=f.steps.map(Gt=>{const ln=this._makeStyleAst(Gt,p);let F=null!=ln.offset?ln.offset:function Kt(J){if("string"==typeof J)return null;let f=null;if(Array.isArray(J))J.forEach(p=>{if(tn(p)&&p.hasOwnProperty("offset")){const x=p;f=parseFloat(x.offset),delete x.offset}});else if(tn(J)&&J.hasOwnProperty("offset")){const p=J;f=parseFloat(p.offset),delete p.offset}return f}(ln.styles),A=0;return null!=F&&(fe++,A=ln.offset=F),C=C||A<0||A>1,R=R||A<V,V=A,y.push(A),ln});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 Te.forEach((Gt,ln)=>{const F=ot>0?ln==Et?1:ot*ln:y[ln],A=F*Vt;p.currentTime=Pt+xt.delay+A,xt.duration=A,this._validateStyleAst(Gt,p),Gt.offset=F,x.styles.push(Gt)}),x}visitReference(f,p){return{type:8,animation:we(this,be(f.animation),p),options:Z(f.options)}}visitAnimateChild(f,p){return p.depCount++,{type:9,options:Z(f.options)}}visitAnimateRef(f,p){return{type:10,animation:this.visitReference(f.animation,p),options:Z(f.options)}}visitQuery(f,p){const x=p.currentQuerySelector,Q=f.options||{};p.queryCount++,p.currentQuery=f;const[fe,y]=function $t(J){const f=!!J.split(/\s*,\s*/).find(p=>":self"==p);return f&&(J=J.replace(Jt,"")),J=J.replace(/@\*/g,ie).replace(/@\w+/g,p=>ie+"-"+p.substr(1)).replace(/:animating/g,_e),[J,f]}(f.selector);p.currentQuerySelector=x.length?x+" "+fe:fe,P(p.collectedStyles,p.currentQuerySelector,{});const R=we(this,be(f.animation),p);return p.currentQuery=null,p.currentQuerySelector=x,{type:11,selector:fe,limit:Q.limit||0,optional:!!Q.optional,includeSelf:y,animation:R,originalSelector:f.selector,options:Z(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"}:Ue(f.timings,p.errors,!0);return{type:12,animation:we(this,be(f.animation),p),timings:x,options:null}}}class cn{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(J){return!Array.isArray(J)&&"object"==typeof J}function Z(J){return J?(J=bt(J)).params&&(J.params=function Tt(J){return J?bt(J):null}(J.params)):J={},J}function N(J,f,p){return{duration:J,delay:f,easing:p}}function O(J,f,p,x,Q,fe,y=null,R=!1){return{type:1,element:J,keyframes:f,preStyleProps:p,postStyleProps:x,duration:Q,delay:fe,totalTime:Q+fe,easing:y,subTimeline:R}}class ee{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 Le=new RegExp(":enter","g"),Wt=new RegExp(":leave","g");function Ht(J,f,p,x,Q,fe={},y={},R,C,V=[]){return(new je).buildKeyframes(J,f,p,x,Q,fe,y,R,C,V)}class je{buildKeyframes(f,p,x,Q,fe,y,R,C,V,Te=[]){V=V||new ee;const Ye=new de(f,p,V,Q,fe,Te,[]);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 Q=p.createSubContext(f.options),fe=p.currentTimeline.currentTime,y=this._visitSubInstructions(x,Q,Q.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 Q=p;const fe=f.options;if(fe&&(fe.params||fe.delay)&&(Q=p.createSubContext(fe),Q.transformIntoNewTimeline(),null!=fe.delay)){6==Q.previousNode.type&&(Q.currentTimeline.snapshotCurrentStyles(),Q.previousNode=We);const y=tt(fe.delay);Q.delayNextStep(y)}f.steps.length&&(f.steps.forEach(y=>we(this,y,Q)),Q.currentTimeline.applyStylesToKeyframe(),Q.subContextCount>x&&Q.transformIntoNewTimeline()),p.previousNode=f}visitGroup(f,p){const x=[];let Q=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),Q=Math.max(Q,R.currentTimeline.currentTime),x.push(R.currentTimeline)}),x.forEach(y=>p.currentTimeline.mergeTimelineCollectedStyles(y)),p.transformIntoNewTimeline(Q),p.previousNode=f}_visitTiming(f,p){if(f.dynamic){const x=f.strValue;return Ue(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),Q=p.currentTimeline;x.delay&&(p.incrementTime(x.delay),Q.snapshotCurrentStyles());const fe=f.style;5==fe.type?this.visitKeyframes(fe,p):(p.incrementTime(x.duration),this.visitStyle(fe,p),Q.applyStylesToKeyframe()),p.currentAnimateTimings=null,p.previousNode=f}visitStyle(f,p){const x=p.currentTimeline,Q=p.currentAnimateTimings;!Q&&x.getCurrentStyleProperties().length&&x.forwardFrame();const fe=Q&&Q.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,Q=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(Q+fe),p.previousNode=f}visitQuery(f,p){const x=p.currentTimeline.currentTime,Q=f.options||{},fe=Q.delay?tt(Q.delay):0;fe&&(6===p.previousNode.type||0==x&&p.currentTimeline.getCurrentStyleProperties().length)&&(p.currentTimeline.snapshotCurrentStyles(),p.previousNode=We);let y=x;const R=p.invokeQuery(f.selector,f.originalSelector,f.limit,f.includeSelf,!!Q.optional,p.errors);p.currentQueryTotal=R.length;let C=null;R.forEach((V,Te)=>{p.currentQueryIndex=Te;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,Q=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 Te=p.currentTimeline;C&&Te.delayNextStep(C);const Ye=Te.currentTime;we(this,f.animation,p),p.previousNode=f,x.currentStaggerTime=Q.currentTime-Ye+(Q.startTime-x.currentTimeline.startTime)}}const We={};class de{constructor(f,p,x,Q,fe,y,R,C){this._driver=f,this.element=p,this.subInstructions=x,this._enterClassName=Q,this._leaveClassName=fe,this.errors=y,this.timelines=R,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=We,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 Q=this.options;null!=x.duration&&(Q.duration=tt(x.duration)),null!=x.delay&&(Q.delay=tt(x.delay));const fe=x.params;if(fe){let y=Q.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(Q=>{x[Q]=p[Q]})}}return f}createSubContext(f=null,p,x){const Q=p||this.element,fe=new de(this._driver,Q,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Q,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=We,this.currentTimeline=this.currentTimeline.fork(this.element,f),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(f,p,x){const Q={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,Q,f.stretchStartingKeyframe);return this.timelines.push(fe),Q}incrementTime(f){this.currentTimeline.forwardTime(this.currentTimeline.duration+f)}delayNextStep(f){f>0&&this.currentTimeline.delayNextStep(f)}invokeQuery(f,p,x,Q,fe,y){let R=[];if(Q&&R.push(this.element),f.length>0){f=(f=f.replace(Le,"."+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,Q){this._driver=f,this.element=p,this.startTime=x,this._elementTimelineStylesLookup=Q,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,Q){p&&(this._previousKeyframe.easing=p);const fe=Q&&Q.params||{},y=function Rt(J,f){const p={};let x;return J.forEach(Q=>{"*"===Q?(x=x||Object.keys(f),x.forEach(fe=>{p[fe]=m.l3})):qe(Q,!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],Q=f._styleSummary[p];(!x||Q.time>x.time)&&this._updateStyle(p,Q.value)})}buildKeyframes(){this.applyStylesToKeyframe();const f=new Set,p=new Set,x=1===this._keyframes.size&&0===this.duration;let Q=[];this._keyframes.forEach((R,C)=>{const V=qe(R,!0);Object.keys(V).forEach(Te=>{const Ye=V[Te];Ye==m.k1?f.add(Te):Ye==m.l3&&p.add(Te)}),x||(V.offset=C/this.duration),Q.push(V)});const fe=f.size?ut(f.values()):[],y=p.size?ut(p.values()):[];if(x){const R=Q[0],C=bt(R);R.offset=0,C.offset=1,Q=[R,C]}return O(this.element,Q,fe,y,this.duration,this.startTime,this.easing,!1)}}class dt extends $e{constructor(f,p,x,Q,fe,y,R=!1){super(f,p,y.delay),this.keyframes=x,this.preStyleProps=Q,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:Q}=this.timings;if(this._stretchStartingKeyframe&&p){const fe=[],y=x+p,R=p/y,C=qe(f[0],!1);C.offset=0,fe.push(C);const V=qe(f[0],!1);V.offset=Nt(R),fe.push(V);const Te=f.length-1;for(let Ye=1;Ye<=Te;Ye++){let ot=qe(f[Ye],!1);ot.offset=Nt((p+ot.offset*x)/y),fe.push(ot)}x=y,p=0,Q="",f=fe}return O(this.element,f,this.preStyleProps,this.postStyleProps,x,p,Q,!0)}}function Nt(J,f=3){const p=Math.pow(10,f-1);return Math.round(J*p)/p}class _n{}class oi extends _n{normalizePropertyName(f,p){return L(f)}normalizeStyleValue(f,p,x,Q){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&&Q.push(`Please provide a CSS unit value for ${f}:${x}`)}return y+fe}}const Gn=(()=>function Mn(J){const f={};return J.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 Ln(J,f,p,x,Q,fe,y,R,C,V,Te,Ye,ot){return{type:0,element:J,triggerName:f,isRemovalTransition:Q,fromState:p,fromStyles:fe,toState:x,toStyles:y,timelines:R,queriedElements:C,preStyleProps:V,postStyleProps:Te,totalTime:Ye,errors:ot}}const Sn={};class H{constructor(f,p,x){this._triggerName=f,this.ast=p,this._stateStyles=x}match(f,p,x,Q){return function Ie(J,f,p,x,Q){return J.some(fe=>fe(f,p,x,Q))}(this.ast.matchers,f,p,x,Q)}buildStyles(f,p,x){const Q=this._stateStyles["*"],fe=this._stateStyles[f],y=Q?Q.buildStyles(p,x):{};return fe?fe.buildStyles(p,x):y}build(f,p,x,Q,fe,y,R,C,V,Te){const Ye=[],ot=this.ast.options&&this.ast.options.params||Sn,Pt=this.buildStyles(x,R&&R.params||Sn,Ye),xt=C&&C.params||Sn,Vt=this.buildStyles(Q,xt,Ye),Gt=new Set,ln=new Map,F=new Map,A="void"===Q,I={params:Object.assign(Object.assign({},ot),xt)},G=Te?[]:Ht(f,p,this.ast.animation,fe,y,Pt,Vt,I,V,Ye);let Ze=0;if(G.forEach(dn=>{Ze=Math.max(dn.duration+dn.delay,Ze)}),Ye.length)return Ln(p,this._triggerName,x,Q,A,Pt,Vt,[],[],ln,F,Ze,Ye);G.forEach(dn=>{const wn=dn.element,Ei=P(ln,wn,{});dn.preStyleProps.forEach(Ii=>Ei[Ii]=!0);const Di=P(F,wn,{});dn.postStyleProps.forEach(Ii=>Di[Ii]=!0),wn!==p&&Gt.add(wn)});const At=ut(Gt.values());return Ln(p,this._triggerName,x,Q,A,Pt,Vt,G,At,ln,F,Ze)}}class W{constructor(f,p,x){this.styles=f,this.defaultParams=p,this.normalizer=x}buildStyles(f,p){const x={},Q=bt(this.defaultParams);return Object.keys(f).forEach(fe=>{const y=f[fe];null!=y&&(Q[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,Q,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(Q=>{this.states[Q.name]=new W(Q.style,Q.options&&Q.options.params||{},x)}),wt(this.states,"true","1"),wt(this.states,"false","0"),p.transitions.forEach(Q=>{this.transitionFactories.push(new H(f,Q,this.states))}),this.fallbackTransition=function lt(J,f,p){return new H(J,{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,Q){return this.transitionFactories.find(y=>y.match(f,p,x,Q))||null}matchStyles(f,p,x){return this.fallbackTransition.buildStyles(f,p,x)}}function wt(J,f,p){J.hasOwnProperty(f)?J.hasOwnProperty(p)||(J[p]=J[f]):J.hasOwnProperty(p)&&(J[f]=J[p])}const kt=new ee;class Zt{constructor(f,p,x){this.bodyNode=f,this._driver=p,this._normalizer=x,this._animations={},this._playersById={},this.players=[]}register(f,p){const x=[],Q=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]=Q}_buildPlayer(f,p,x){const Q=f.element,fe=D(0,this._normalizer,0,f.keyframes,p,x);return this._driver.animate(Q,fe,f.duration,f.delay,f.easing,[],!0)}create(f,p,x={}){const Q=[],fe=this._animations[f];let y;const R=new Map;if(fe?(y=Ht(this._driver,p,fe,q,le,{},{},x,kt,Q),y.forEach(Te=>{const Ye=P(R,Te.element,{});Te.postStyleProps.forEach(ot=>Ye[ot]=null)})):(Q.push("The requested animation doesn't exist or has already been destroyed"),y=[]),Q.length)throw new Error(`Unable to create the animation due to the following errors: ${Q.join("\n")}`);R.forEach((Te,Ye)=>{Object.keys(Te).forEach(ot=>{Te[ot]=this._driver.computeStyle(Ye,ot,m.l3)})});const V=_(y.map(Te=>{const Ye=R.get(Te.element);return this._buildPlayer(Te,{},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,Q){const fe=d(p,"","","");return T(this._getPlayer(f),x,fe,Q),()=>{}}command(f,p,x,Q){if("register"==x)return void this.register(f,Q[0]);if("create"==x)return void this.create(f,p,Q[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(Q[0]));break;case"destroy":this.destroy(f)}}}const un="ng-animate-queued",bn="ng-animate-disabled",yn=[],Tn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ii={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Cn="__ng_removed";class an{constructor(f,p=""){this.namespaceId=p;const x=f&&f.hasOwnProperty("value");if(this.value=function si(J){return null!=J?J: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(Q=>{null==x[Q]&&(x[Q]=p[Q])})}}}const Zn="void",ri=new an(Zn);class Bn{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,$n(p,this._hostClassName)}listen(f,p,x,Q){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 gr(J){return"start"==J||"done"==J}(x))throw new Error(`The provided animation trigger event "${x}" for the animation trigger "${p}" is not supported!`);const fe=P(this._elementListeners,f,[]),y={name:p,phase:x,callback:Q};fe.push(y);const R=P(this._engine.statesByElement,f,{});return R.hasOwnProperty(p)||($n(f,Pe),$n(f,Pe+"-"+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,Q=!0){const fe=this._getTrigger(p),y=new ui(this.id,p,f);let R=this._engine.statesByElement.get(f);R||($n(f,Pe),$n(f,Pe+"-"+p),this._engine.statesByElement.set(f,R={}));let C=R[p];const V=new an(x,this.id);if(!(x&&x.hasOwnProperty("value"))&&C&&V.absorbOptions(C.options),R[p]=V,C||(C=ri),V.value!==Zn&&C.value===V.value){if(!function _r(J,f){const p=Object.keys(J),x=Object.keys(f);if(p.length!=x.length)return!1;for(let Q=0;Q<p.length;Q++){const fe=p[Q];if(!f.hasOwnProperty(fe)||J[fe]!==f[fe])return!1}return!0}(C.params,V.params)){const xt=[],Vt=fe.matchStyles(C.value,C.params,xt),Gt=fe.matchStyles(V.value,V.params,xt);xt.length?this._engine.reportError(xt):this._engine.afterFlush(()=>{Re(f,Vt),Se(f,Gt)})}return}const ot=P(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(!Q)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||($n(f,un),y.onStart(()=>{di(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 Gt=Vt.indexOf(y);Gt>=0&&Vt.splice(Gt,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(Q=>Q.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,ie,!0);x.forEach(Q=>{if(Q[Cn])return;const fe=this._engine.fetchNamespacesByElement(Q);fe.size?fe.forEach(y=>y.triggerLeaveAnimation(Q,p,!1,!0)):this.clearElementCache(Q)}),this._engine.afterFlushAnimationsDone(()=>x.forEach(Q=>this.clearElementCache(Q)))}triggerLeaveAnimation(f,p,x,Q){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,Zn,Q);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 Q=new Set;p.forEach(fe=>{const y=fe.name;if(Q.has(y))return;Q.add(y);const C=this._triggers[y].fallbackTransition,V=x[y]||ri,Te=new an(Zn),Ye=new ui(this.id,y,f);this._engine.totalQueuedPlayers++,this._queue.push({element:f,triggerName:y,transition:C,fromState:V,toState:Te,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 Q=!1;if(x.totalAnimations){const fe=x.players.length?x.playersByQueriedElement.get(f):[];if(fe&&fe.length)Q=!0;else{let y=f;for(;y=y.parentNode;)if(x.statesByElement.get(y)){Q=!0;break}}}if(this.prepareLeaveAnimationListeners(f),Q)x.markElementAsRemoved(this.id,f,!1,p);else{const fe=f[Cn];(!fe||fe===Tn)&&(x.afterFlush(()=>this.clearElementCache(f)),x.destroyInnerAnimations(f),x._onRemovalComplete(f,p))}}insertNode(f,p){$n(f,this._hostClassName)}drainQueuedTransitions(f){const p=[];return this._queue.forEach(x=>{const Q=x.player;if(Q.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)}}),Q.markedForDestroy?this._engine.afterFlush(()=>{Q.destroy()}):p.push(x)}),this._queue=[],p.sort((x,Q)=>{const fe=x.transition.ast.depCount,y=Q.transition.ast.depCount;return 0==fe||0==y?fe-y:this._engine.driver.containsElement(x.element,Q.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 jn{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=(Q,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 Bn(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 Q=!1;for(let fe=x;fe>=0;fe--)if(this.driver.containsElement(this._namespaceList[fe].hostElement,p)){this._namespaceList.splice(fe+1,0,f),Q=!0;break}Q||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 Q=this._namespaceLookup[f];Q&&Q.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 Q=this._namespaceList.indexOf(x);Q>=0&&this._namespaceList.splice(Q,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 Q=Object.keys(x);for(let fe=0;fe<Q.length;fe++){const y=x[Q[fe]].namespaceId;if(y){const R=this._fetchNamespace(y);R&&p.add(R)}}}return p}trigger(f,p,x,Q){if(Fn(p)){const fe=this._fetchNamespace(f);if(fe)return fe.trigger(p,x,Q),!0}return!1}insertNode(f,p,x,Q){if(!Fn(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)}Q&&this.collectEnterElement(p)}collectEnterElement(f){this.collectedEnterElements.push(f)}markElementAsDisabled(f,p){p?this.disabledNodes.has(f)||(this.disabledNodes.add(f),$n(f,bn)):this.disabledNodes.has(f)&&(this.disabledNodes.delete(f),di(f,bn))}removeNode(f,p,x,Q){if(Fn(p)){const fe=f?this._fetchNamespace(f):null;if(fe?fe.removeNode(p,Q):this.markElementAsRemoved(f,p,!1,Q),x){const y=this.namespacesByHostElement.get(p);y&&y.id!==f&&y.removeNode(p,Q)}}else this._onRemovalComplete(p,Q)}markElementAsRemoved(f,p,x,Q,fe){this.collectedLeaveElements.push(p),p[Cn]={namespaceId:f,setForRemoval:Q,hasAnimation:x,removedBeforeQueried:!1,previousTriggersValues:fe}}listen(f,p,x,Q,fe){return Fn(p)?this._fetchNamespace(f).listen(p,x,Q,fe):()=>{}}_buildInstruction(f,p,x,Q,fe){return f.transition.build(this.driver,f.element,f.fromState.value,f.toState.value,x,Q,f.fromState.options,f.toState.options,p,fe)}destroyInnerAnimations(f){let p=this.driver.query(f,ie,!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]=Tn,x.namespaceId){this.destroyInnerAnimations(f);const Q=this._fetchNamespace(x.namespaceId);Q&&Q.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(Q=>{this.markElementAsDisabled(Q,!1)})}flush(f=-1){let p=[];if(this.newHostElements.size&&(this.newHostElements.forEach((x,Q)=>this._balanceNamespaceList(x,Q)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let x=0;x<this.collectedEnterElements.length;x++)$n(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 Q=0;Q<x.length;Q++)x[Q]()}}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(Q=>Q())}):x.forEach(Q=>Q())}}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 ee,Q=[],fe=new Map,y=[],R=new Map,C=new Map,V=new Map,Te=new Set;this.disabledNodes.forEach(Mt=>{Te.add(Mt);const Qt=this.driver.query(Mt,".ng-animate-queued",!0);for(let jt=0;jt<Qt.length;jt++)Te.add(Qt[jt])});const Ye=this.bodyNode,ot=Array.from(this.statesByElement.keys()),Et=Vn(ot,this.collectedEnterElements),Pt=new Map;let xt=0;Et.forEach((Mt,Qt)=>{const jt=q+xt++;Pt.set(Qt,jt),Mt.forEach(hn=>$n(hn,jt))});const Vt=[],Gt=new Set,ln=new Set;for(let Mt=0;Mt<this.collectedLeaveElements.length;Mt++){const Qt=this.collectedLeaveElements[Mt],jt=Qt[Cn];jt&&jt.setForRemoval&&(Vt.push(Qt),Gt.add(Qt),jt.hasAnimation?this.driver.query(Qt,".ng-star-inserted",!0).forEach(hn=>Gt.add(hn)):ln.add(Qt))}const F=new Map,A=Vn(ot,Array.from(Gt));A.forEach((Mt,Qt)=>{const jt=le+xt++;F.set(Qt,jt),Mt.forEach(hn=>$n(hn,jt))}),f.push(()=>{Et.forEach((Mt,Qt)=>{const jt=Pt.get(Qt);Mt.forEach(hn=>di(hn,jt))}),A.forEach((Mt,Qt)=>{const jt=F.get(Qt);Mt.forEach(hn=>di(hn,jt))}),Vt.forEach(Mt=>{this.processLeaveNode(Mt)})});const I=[],G=[];for(let Mt=this._namespaceList.length-1;Mt>=0;Mt--)this._namespaceList[Mt].drainQueuedTransitions(p).forEach(jt=>{const hn=jt.player,In=jt.element;if(I.push(hn),this.collectedEnterElements.length){const Hn=In[Cn];if(Hn&&Hn.setForMove){if(Hn.previousTriggersValues&&Hn.previousTriggersValues.has(jt.triggerName)){const On=Hn.previousTriggersValues.get(jt.triggerName),re=this.statesByElement.get(jt.element);re&&re[jt.triggerName]&&(re[jt.triggerName].value=On)}return void hn.destroy()}}const Nn=!Ye||!this.driver.containsElement(Ye,In),Jn=F.get(In),Ti=Pt.get(In),Pn=this._buildInstruction(jt,x,Ti,Jn,Nn);if(Pn.errors&&Pn.errors.length)return void G.push(Pn);if(Nn)return hn.onStart(()=>Re(In,Pn.fromStyles)),hn.onDestroy(()=>Se(In,Pn.toStyles)),void Q.push(hn);if(jt.isFallbackTransition)return hn.onStart(()=>Re(In,Pn.fromStyles)),hn.onDestroy(()=>Se(In,Pn.toStyles)),void Q.push(hn);const Ur=[];Pn.timelines.forEach(Hn=>{Hn.stretchStartingKeyframe=!0,this.disabledNodes.has(Hn.element)||Ur.push(Hn)}),Pn.timelines=Ur,x.append(In,Pn.timelines),y.push({instruction:Pn,player:hn,element:In}),Pn.queriedElements.forEach(Hn=>P(R,Hn,[]).push(hn)),Pn.preStyleProps.forEach((Hn,On)=>{const re=Object.keys(Hn);if(re.length){let z=C.get(On);z||C.set(On,z=new Set),re.forEach(te=>z.add(te))}}),Pn.postStyleProps.forEach((Hn,On)=>{const re=Object.keys(Hn);let z=V.get(On);z||V.set(On,z=new Set),re.forEach(te=>z.add(te))})});if(G.length){const Mt=[];G.forEach(Qt=>{Mt.push(`@${Qt.triggerName} has failed due to:\n`),Qt.errors.forEach(jt=>Mt.push(`- ${jt}\n`))}),I.forEach(Qt=>Qt.destroy()),this.reportError(Mt)}const Ze=new Map,At=new Map;y.forEach(Mt=>{const Qt=Mt.element;x.has(Qt)&&(At.set(Qt,Qt),this._beforeAnimationBuild(Mt.player.namespaceId,Mt.instruction,Ze))}),Q.forEach(Mt=>{const Qt=Mt.element;this._getPreviousPlayers(Qt,!1,Mt.namespaceId,Mt.triggerName,null).forEach(hn=>{P(Ze,Qt,[]).push(hn),hn.destroy()})});const dn=Vt.filter(Mt=>Mi(Mt,C,V)),wn=new Map;ir(wn,this.driver,ln,V,m.l3).forEach(Mt=>{Mi(Mt,C,V)&&dn.push(Mt)});const Di=new Map;Et.forEach((Mt,Qt)=>{ir(Di,this.driver,new Set(Mt),C,m.k1)}),dn.forEach(Mt=>{const Qt=wn.get(Mt),jt=Di.get(Mt);wn.set(Mt,Object.assign(Object.assign({},Qt),jt))});const Ii=[],Sr=[],Ct={};y.forEach(Mt=>{const{element:Qt,player:jt,instruction:hn}=Mt;if(x.has(Qt)){if(Te.has(Qt))return jt.onDestroy(()=>Se(Qt,hn.toStyles)),jt.disabled=!0,jt.overrideTotalTime(hn.totalTime),void Q.push(jt);let In=Ct;if(At.size>1){let Jn=Qt;const Ti=[];for(;Jn=Jn.parentNode;){const Pn=At.get(Jn);if(Pn){In=Pn;break}Ti.push(Jn)}Ti.forEach(Pn=>At.set(Pn,In))}const Nn=this._buildAnimation(jt.namespaceId,hn,Ze,fe,Di,wn);if(jt.setRealPlayer(Nn),In===Ct)Ii.push(jt);else{const Jn=this.playersByElement.get(In);Jn&&Jn.length&&(jt.parentPlayer=_(Jn)),Q.push(jt)}}else Re(Qt,hn.fromStyles),jt.onDestroy(()=>Se(Qt,hn.toStyles)),Sr.push(jt),Te.has(Qt)&&Q.push(jt)}),Sr.forEach(Mt=>{const Qt=fe.get(Mt.element);if(Qt&&Qt.length){const jt=_(Qt);Mt.setRealPlayer(jt)}}),Q.forEach(Mt=>{Mt.parentPlayer?Mt.syncPlayerEvents(Mt.parentPlayer):Mt.destroy()});for(let Mt=0;Mt<Vt.length;Mt++){const Qt=Vt[Mt],jt=Qt[Cn];if(di(Qt,le),jt&&jt.hasAnimation)continue;let hn=[];if(R.size){let Nn=R.get(Qt);Nn&&Nn.length&&hn.push(...Nn);let Jn=this.driver.query(Qt,_e,!0);for(let Ti=0;Ti<Jn.length;Ti++){let Pn=R.get(Jn[Ti]);Pn&&Pn.length&&hn.push(...Pn)}}const In=hn.filter(Nn=>!Nn.destroyed);In.length?Fi(this,Qt,In):this.processLeaveNode(Qt)}return Vt.length=0,Ii.forEach(Mt=>{this.players.push(Mt),Mt.onDone(()=>{Mt.destroy();const Qt=this.players.indexOf(Mt);this.players.splice(Qt,1)}),Mt.play()}),Ii}elementContainsData(f,p){let x=!1;const Q=p[Cn];return Q&&Q.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,Q,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==Zn;R.forEach(V=>{V.queued||!C&&V.triggerName!=Q||y.push(V)})}}return(x||Q)&&(y=y.filter(R=>!(x&&x!=R.namespaceId||Q&&Q!=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,Te=V!==fe,Ye=P(x,V,[]);this._getPreviousPlayers(V,Te,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,Q,fe,y){const R=p.triggerName,C=p.element,V=[],Te=new Set,Ye=new Set,ot=p.timelines.map(Pt=>{const xt=Pt.element;Te.add(xt);const Vt=xt[Cn];if(Vt&&Vt.removedBeforeQueried)return new m.ZN(Pt.duration,Pt.delay);const Gt=xt!==C,ln=function wr(J){const f=[];return ki(J,f),f}((x.get(xt)||yn).map(Ze=>Ze.getRealPlayer())).filter(Ze=>!!Ze.element&&Ze.element===xt),F=fe.get(xt),A=y.get(xt),I=D(0,this._normalizer,0,Pt.keyframes,F,A),G=this._buildPlayer(Pt,I,ln);if(Pt.subTimeline&&Q&&Ye.add(xt),Gt){const Ze=new ui(f,R,xt);Ze.setRealPlayer(G),V.push(Ze)}return G});V.forEach(Pt=>{P(this.playersByQueriedElement,Pt.element,[]).push(Pt),Pt.onDone(()=>function _i(J,f,p){let x;if(J instanceof Map){if(x=J.get(f),x){if(x.length){const Q=x.indexOf(p);x.splice(Q,1)}0==x.length&&J.delete(f)}}else if(x=J[f],x){if(x.length){const Q=x.indexOf(p);x.splice(Q,1)}0==x.length&&delete J[f]}return x}(this.playersByQueriedElement,Pt.element,Pt))}),Te.forEach(Pt=>$n(Pt,Ke));const Et=_(ot);return Et.onDestroy(()=>{Te.forEach(Pt=>di(Pt,Ke)),Se(C,p.toStyles)}),Ye.forEach(Pt=>{P(Q,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 ui{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){P(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 Fn(J){return J&&1===J.nodeType}function Ki(J,f){const p=J.style.display;return J.style.display=null!=f?f:"none",p}function ir(J,f,p,x,Q){const fe=[];p.forEach(C=>fe.push(Ki(C)));const y=[];x.forEach((C,V)=>{const Te={};C.forEach(Ye=>{const ot=Te[Ye]=f.computeStyle(V,Ye,Q);(!ot||0==ot.length)&&(V[Cn]=ii,y.push(V))}),J.set(V,Te)});let R=0;return p.forEach(C=>Ki(C,fe[R++])),y}function Vn(J,f){const p=new Map;if(J.forEach(R=>p.set(R,[])),0==f.length)return p;const Q=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:Q.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 $n(J,f){var p;null===(p=J.classList)||void 0===p||p.add(f)}function di(J,f){var p;null===(p=J.classList)||void 0===p||p.remove(f)}function Fi(J,f,p){_(p).onDone(()=>J.processLeaveNode(f))}function ki(J,f){for(let p=0;p<J.length;p++){const x=J[p];x instanceof m.ZE?ki(x.players,f):f.push(x)}}function Mi(J,f,p){const x=p.get(J);if(!x)return!1;let Q=f.get(J);return Q?x.forEach(fe=>Q.add(fe)):f.set(J,x),p.delete(J),!0}class Ni{constructor(f,p,x){this.bodyNode=f,this._driver=p,this._normalizer=x,this._triggerCache={},this.onRemovalComplete=(Q,fe)=>{},this._transitionEngine=new jn(f,p,x),this._timelineEngine=new Zt(f,p,x),this._transitionEngine.onRemovalComplete=(Q,fe)=>this.onRemovalComplete(Q,fe)}registerTrigger(f,p,x,Q,fe){const y=f+"-"+Q;let R=this._triggerCache[y];if(!R){const C=[],V=Ft(this._driver,fe,C);if(C.length)throw new Error(`The animation trigger "${Q}" has failed to build due to the following errors:\n - ${C.join("\n - ")}`);R=function Oe(J,f,p){return new et(J,f,p)}(Q,V,this._normalizer),this._triggerCache[y]=R}this._transitionEngine.registerTrigger(p,Q,R)}register(f,p){this._transitionEngine.register(f,p)}destroy(f,p){this._transitionEngine.destroy(f,p)}onInsert(f,p,x,Q){this._transitionEngine.insertNode(f,p,x,Q)}onRemove(f,p,x,Q){this._transitionEngine.removeNode(f,p,Q||!1,x)}disableAnimations(f,p){this._transitionEngine.markElementAsDisabled(f,p)}process(f,p,x,Q){if("@"==x.charAt(0)){const[fe,y]=M(x);this._timelineEngine.command(fe,p,y,Q)}else this._transitionEngine.trigger(f,p,x,Q)}listen(f,p,x,Q,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,Q,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 J{constructor(p,x,Q){this._element=p,this._startStyles=x,this._endStyles=Q,this._state=0;let fe=J.initialStylesByElement.get(p);fe||J.initialStylesByElement.set(p,fe={}),this._initialStyles=fe}start(){this._state<1&&(this._startStyles&&Se(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Se(this._element,this._initialStyles),this._endStyles&&(Se(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(J.initialStylesByElement.delete(this._element),this._startStyles&&(Re(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Re(this._element,this._endStyles),this._endStyles=null),Se(this._element,this._initialStyles),this._state=3)}}return J.initialStylesByElement=new WeakMap,J})();function fi(J){let f=null;const p=Object.keys(J);for(let x=0;x<p.length;x++){const Q=p[x];yr(Q)&&(f=f||{},f[Q]=J[Q])}return f}function yr(J){return"display"===J||"position"===J}class or{constructor(f,p,x,Q){this.element=f,this.keyframes=p,this.options=x,this._specialStyles=Q,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]:De(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 ke(f)}matchesElement(f,p){return!1}containsElement(f,p){return ye(f,p)}query(f,p,x){return Y(f,p,x)}computeStyle(f,p,x){return window.getComputedStyle(f)[p]}animate(f,p,x,Q,fe,y=[]){const C={duration:x,delay:Q,fill:0==Q?"both":"forwards"};fe&&(C.easing=fe);const V={},Te=y.filter(ot=>ot instanceof or);(function Ae(J,f){return 0===J||0===f})(x,Q)&&Te.forEach(ot=>{let Et=ot.currentSnapshot;Object.keys(Et).forEach(Pt=>V[Pt]=Et[Pt])}),p=function ce(J,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 Q=1;Q<f.length;Q++){let R=f[Q];y.forEach(function(C){R[C]=De(J,C)})}}return f}(f,p=p.map(ot=>qe(ot,!1)),V);const Ye=function hi(J,f){let p=null,x=null;return Array.isArray(f)&&f.length?(p=fi(f[0]),f.length>1&&(x=fi(f[f.length-1]))):f&&(p=fi(f)),p||x?new rr(J,p,x):null}(f,p);return new or(f,p,C,Ye)}}var wi=l(9808);let Si=(()=>{class J 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 Q=Array.isArray(p)?(0,m.vP)(p):p;return Qi(this._renderer,null,x,"register",[Q]),new sr(x,this._renderer)}}return J.\u0275fac=function(p){return new(p||J)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(wi.DOCUMENT))},J.\u0275prov=i.\u0275\u0275defineInjectable({token:J,factory:J.\u0275fac}),J})();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,Q){this.id=f,this.element=p,this._renderer=Q,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(J,f,p,x,Q){return J.setProperty(f,`@@${p}:${x}`,Q)}const yi="@.disabled";let vi=(()=>{class J{constructor(p,x,Q){this.delegate=p,this.engine=x,this._zone=Q,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 Te=this._rendererCache.get(fe);return Te||(Te=new Bi("",fe,this.engine),this._rendererCache.set(fe,Te)),Te}const y=x.id,R=x.id+"-"+this._currentId;this._currentId++,this.engine.register(R,p);const C=Te=>{Array.isArray(Te)?Te.forEach(C):this.engine.registerTrigger(y,R,p,Te.name,Te)};return x.data.animation.forEach(C),new bi(this,R,fe,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(p,x,Q){p>=0&&p<this._microtaskId?this._zone.run(()=>x(Q)):(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,Q]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return J.\u0275fac=function(p){return new(p||J)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(Ni),i.\u0275\u0275inject(i.NgZone))},J.\u0275prov=i.\u0275\u0275defineInjectable({token:J,factory:J.\u0275fac}),J})();class Bi{constructor(f,p,x){this.namespaceId=f,this.delegate=p,this.engine=x,this.destroyNode=this.delegate.destroyNode?Q=>p.destroyNode(Q):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,Q=!0){this.delegate.insertBefore(f,p,x),this.engine.onInsert(this.namespaceId,p,f,Q)}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,Q){this.delegate.setAttribute(f,p,x,Q)}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,Q){this.delegate.setStyle(f,p,x,Q)}removeStyle(f,p,x){this.delegate.removeStyle(f,p,x)}setProperty(f,p,x){"@"==p.charAt(0)&&p==yi?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 bi extends Bi{constructor(f,p,x,Q){super(p,x,Q),this.factory=f,this.namespaceId=p}setProperty(f,p,x){"@"==p.charAt(0)?"."==p.charAt(1)&&p==yi?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 Q=function vr(J){switch(J){case"body":return document.body;case"document":return document;case"window":return window;default:return J}}(f);let fe=p.substr(1),y="";return"@"!=fe.charAt(0)&&([fe,y]=function ji(J){const f=J.indexOf(".");return[J.substring(0,f),J.substr(f+1)]}(fe)),this.engine.listen(this.namespaceId,Q,fe,y,R=>{this.factory.scheduleListenerCallback(R._data||-1,x,R)})}return this.delegate.listen(f,p,x)}}let Vi=(()=>{class J extends Ni{constructor(p,x,Q){super(p.body,x,Q)}ngOnDestroy(){this.flush()}}return J.\u0275fac=function(p){return new(p||J)(i.\u0275\u0275inject(wi.DOCUMENT),i.\u0275\u0275inject(Je),i.\u0275\u0275inject(_n))},J.\u0275prov=i.\u0275\u0275defineInjectable({token:J,factory:J.\u0275fac}),J})();const $i=new i.InjectionToken("AnimationModuleType"),kn=[{provide:m._j,useClass:Si},{provide:_n,useFactory:function Zi(){return new oi}},{provide:Ni,useClass:Vi},{provide:i.RendererFactory2,useFactory:function ti(J,f,p){return new vi(J,f,p)},deps:[u.\u0275DomRendererFactory2,Ni,i.NgZone]}],Hi=[{provide:Je,useFactory:()=>new Gi},{provide:$i,useValue:"BrowserAnimations"},...kn],Ci=[{provide:Je,useClass:xe},{provide:$i,useValue:"NoopAnimations"},...kn];let Yi=(()=>{class J{static withConfig(p){return{ngModule:J,providers:p.disableAnimations?Ci:Hi}}}return J.\u0275fac=function(p){return new(p||J)},J.\u0275mod=i.\u0275\u0275defineNgModule({type:J}),J.\u0275inj=i.\u0275\u0275defineInjector({providers:Hi,imports:[u.BrowserModule]}),J})(),br=(()=>{class J{}return J.\u0275fac=function(p){return new(p||J)},J.\u0275mod=i.\u0275\u0275defineNgModule({type:J}),J.\u0275inj=i.\u0275\u0275defineInjector({providers:Ci,imports:[u.BrowserModule]}),J})()},2313:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{\u0275getDOM:()=>i.\u0275getDOM,BrowserModule:()=>ut,BrowserTransferStateModule:()=>Kt,By:()=>tn,DomSanitizer:()=>Le,EVENT_MANAGER_PLUGINS:()=>k,EventManager:()=>$,HAMMER_GESTURE_CONFIG:()=>N,HAMMER_LOADER:()=>O,HammerGestureConfig:()=>ee,HammerModule:()=>j,Meta:()=>L,Title:()=>ce,TransferState:()=>Tt,VERSION:()=>Ht,disableDebugTools:()=>Ft,enableDebugTools:()=>Jt,makeStateKey:()=>$t,platformBrowser:()=>_t,\u0275BrowserDomAdapter:()=>c,\u0275BrowserGetTestability:()=>M,\u0275DomEventsPlugin:()=>Ue,\u0275DomRendererFactory2:()=>Pe,\u0275DomSanitizerImpl:()=>Wt,\u0275DomSharedStylesHost:()=>he,\u0275HammerGesturesPlugin:()=>E,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>mt,\u0275KeyEventsPlugin:()=>me,\u0275NAMESPACE_URIS:()=>ge,\u0275SharedStylesHost:()=>U,\u0275TRANSITION_ID:()=>S,\u0275escapeHtml:()=>pn,\u0275flattenStyles:()=>Fe,\u0275initDomAdapter:()=>Re,\u0275shimContentAttribute:()=>at,\u0275shimHostAttribute:()=>ne});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(We,de,$e){return We.addEventListener(de,$e,!1),()=>{We.removeEventListener(de,$e,!1)}}dispatchEvent(We,de){We.dispatchEvent(de)}remove(We){We.parentNode&&We.parentNode.removeChild(We)}createElement(We,de){return(de=de||this.getDefaultDocument()).createElement(We)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(We){return We.nodeType===Node.ELEMENT_NODE}isShadowRoot(We){return We instanceof DocumentFragment}getGlobalEventTarget(We,de){return"window"===de?window:"document"===de?We:"body"===de?We.body:null}getBaseHref(We){const de=function _(){return s=s||document.querySelector("base"),s?s.getAttribute("href"):null}();return null==de?null:function T(je){D=D||document.createElement("a"),D.setAttribute("href",je);const We=D.pathname;return"/"===We.charAt(0)?We:`/${We}`}(de)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie(We){return(0,i.\u0275parseCookieValue)(document.cookie,We)}}let D,s=null;const S=new u.InjectionToken("TRANSITION_ID"),P=[{provide:u.APP_INITIALIZER,useFactory:function d(je,We,de){return()=>{de.get(u.ApplicationInitStatus).donePromise.then(()=>{const $e=(0,i.\u0275getDOM)(),dt=We.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(We){u.\u0275global.getAngularTestability=($e,dt=!0)=>{const Nt=We.findTestabilityInTree($e,dt);if(null==Nt)throw new Error("Could not find testability for element.");return Nt},u.\u0275global.getAllAngularTestabilities=()=>We.getAllTestabilities(),u.\u0275global.getAllAngularRootElements=()=>We.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(_n){Rt=Rt||_n,Nt--,0==Nt&&$e(Rt)};dt.forEach(function(_n){_n.whenStable(nn)})})}findTestabilityInTree(We,de,$e){if(null==de)return null;const dt=We.getTestability(de);return null!=dt?dt:$e?(0,i.\u0275getDOM)().isShadowRoot(de)?this.findTestabilityInTree(We,de.host,!0):this.findTestabilityInTree(We,de.parentElement,!0):null}}let b=(()=>{class je{build(){return new XMLHttpRequest}}return je.\u0275fac=function(de){return new(de||je)},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();const k=new u.InjectionToken("EventManagerPlugins");let $=(()=>{class je{constructor(de,$e){this._zone=$e,this._eventNameToPlugin=new Map,de.forEach(dt=>dt.manager=this),this._plugins=de.slice().reverse()}addEventListener(de,$e,dt){return this._findPluginFor($e).addEventListener(de,$e,dt)}addGlobalEventListener(de,$e,dt){return this._findPluginFor($e).addGlobalEventListener(de,$e,dt)}getZone(){return this._zone}_findPluginFor(de){const $e=this._eventNameToPlugin.get(de);if($e)return $e;const dt=this._plugins;for(let Nt=0;Nt<dt.length;Nt++){const Rt=dt[Nt];if(Rt.supports(de))return this._eventNameToPlugin.set(de,Rt),Rt}throw new Error(`No event manager plugin found for event ${de}`)}}return je.\u0275fac=function(de){return new(de||je)(u.\u0275\u0275inject(k),u.\u0275\u0275inject(u.NgZone))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();class pe{constructor(We){this._doc=We}addGlobalEventListener(We,de,$e){const dt=(0,i.\u0275getDOM)().getGlobalEventTarget(this._doc,We);if(!dt)throw new Error(`Unsupported event target ${dt} for event ${de}`);return this.addEventListener(dt,de,$e)}}let U=(()=>{class je{constructor(){this._stylesSet=new Set}addStyles(de){const $e=new Set;de.forEach(dt=>{this._stylesSet.has(dt)||(this._stylesSet.add(dt),$e.add(dt))}),this.onStylesAdded($e)}onStylesAdded(de){}getAllStyles(){return Array.from(this._stylesSet)}}return je.\u0275fac=function(de){return new(de||je)},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})(),he=(()=>{class je extends U{constructor(de){super(),this._doc=de,this._hostNodes=new Map,this._hostNodes.set(de.head,[])}_addStylesToHost(de,$e,dt){de.forEach(Nt=>{const Rt=this._doc.createElement("style");Rt.textContent=Nt,dt.push($e.appendChild(Rt))})}addHost(de){const $e=[];this._addStylesToHost(this._stylesSet,de,$e),this._hostNodes.set(de,$e)}removeHost(de){const $e=this._hostNodes.get(de);$e&&$e.forEach(ke),this._hostNodes.delete(de)}onStylesAdded(de){this._hostNodes.forEach(($e,dt)=>{this._addStylesToHost(de,dt,$e)})}ngOnDestroy(){this._hostNodes.forEach(de=>de.forEach(ke))}}return je.\u0275fac=function(de){return new(de||je)(u.\u0275\u0275inject(i.DOCUMENT))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();function ke(je){(0,i.\u0275getDOM)().remove(je)}const ge={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/"},ye=/%COMP%/g;function at(je){return"_ngcontent-%COMP%".replace(ye,je)}function ne(je){return"_nghost-%COMP%".replace(ye,je)}function Fe(je,We,de){for(let $e=0;$e<We.length;$e++){let dt=We[$e];Array.isArray(dt)?Fe(je,dt,de):(dt=dt.replace(ye,je),de.push(dt))}return de}function q(je){return We=>{if("__ngUnwrap__"===We)return je;!1===je(We)&&(We.preventDefault(),We.returnValue=!1)}}let Pe=(()=>{class je{constructor(de,$e,dt){this.eventManager=de,this.sharedStylesHost=$e,this.appId=dt,this.rendererByCompId=new Map,this.defaultRenderer=new ie(de)}createRenderer(de,$e){if(!de||!$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(de),dt}case 1:case u.ViewEncapsulation.ShadowDom:return new Ee(this.eventManager,this.sharedStylesHost,de,$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(de){return new(de||je)(u.\u0275\u0275inject($),u.\u0275\u0275inject(he),u.\u0275\u0275inject(u.APP_ID))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();class ie{constructor(We){this.eventManager=We,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(We,de){return de?document.createElementNS(ge[de]||de,We):document.createElement(We)}createComment(We){return document.createComment(We)}createText(We){return document.createTextNode(We)}appendChild(We,de){We.appendChild(de)}insertBefore(We,de,$e){We&&We.insertBefore(de,$e)}removeChild(We,de){We&&We.removeChild(de)}selectRootElement(We,de){let $e="string"==typeof We?document.querySelector(We):We;if(!$e)throw new Error(`The selector "${We}" did not match any elements`);return de||($e.textContent=""),$e}parentNode(We){return We.parentNode}nextSibling(We){return We.nextSibling}setAttribute(We,de,$e,dt){if(dt){de=dt+":"+de;const Nt=ge[dt];Nt?We.setAttributeNS(Nt,de,$e):We.setAttribute(de,$e)}else We.setAttribute(de,$e)}removeAttribute(We,de,$e){if($e){const dt=ge[$e];dt?We.removeAttributeNS(dt,de):We.removeAttribute(`${$e}:${de}`)}else We.removeAttribute(de)}addClass(We,de){We.classList.add(de)}removeClass(We,de){We.classList.remove(de)}setStyle(We,de,$e,dt){dt&(u.RendererStyleFlags2.DashCase|u.RendererStyleFlags2.Important)?We.style.setProperty(de,$e,dt&u.RendererStyleFlags2.Important?"important":""):We.style[de]=$e}removeStyle(We,de,$e){$e&u.RendererStyleFlags2.DashCase?We.style.removeProperty(de):We.style[de]=""}setProperty(We,de,$e){We[de]=$e}setValue(We,de){We.nodeValue=de}listen(We,de,$e){return"string"==typeof We?this.eventManager.addGlobalEventListener(We,de,q($e)):this.eventManager.addEventListener(We,de,q($e))}}class tt extends ie{constructor(We,de,$e,dt){super(We),this.component=$e;const Nt=Fe(dt+"-"+$e.id,$e.styles,[]);de.addStyles(Nt),this.contentAttr=at(dt+"-"+$e.id),this.hostAttr=ne(dt+"-"+$e.id)}applyToHost(We){super.setAttribute(We,this.hostAttr,"")}createElement(We,de){const $e=super.createElement(We,de);return super.setAttribute($e,this.contentAttr,""),$e}}class Ee extends ie{constructor(We,de,$e,dt){super(We),this.sharedStylesHost=de,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(We){return We===this.hostEl?this.shadowRoot:We}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(We,de){return super.appendChild(this.nodeOrShadowRoot(We),de)}insertBefore(We,de,$e){return super.insertBefore(this.nodeOrShadowRoot(We),de,$e)}removeChild(We,de){return super.removeChild(this.nodeOrShadowRoot(We),de)}parentNode(We){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(We)))}}let Ue=(()=>{class je extends pe{constructor(de){super(de)}supports(de){return!0}addEventListener(de,$e,dt){return de.addEventListener($e,dt,!1),()=>this.removeEventListener(de,$e,dt)}removeEventListener(de,$e,dt){return de.removeEventListener($e,dt)}}return je.\u0275fac=function(de){return new(de||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"},qe={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"},X={alt:je=>je.altKey,control:je=>je.ctrlKey,meta:je=>je.metaKey,shift:je=>je.shiftKey};let me=(()=>{class je extends pe{constructor(de){super(de)}supports(de){return null!=je.parseEventName(de)}addEventListener(de,$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(de,Nt.domEventName,Rt))}static parseEventName(de){const $e=de.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(_n=>{const xn=$e.indexOf(_n);xn>-1&&($e.splice(xn,1),Rt+=_n+".")}),Rt+=Nt,0!=$e.length||0===Nt.length)return null;const nn={};return nn.domEventName=dt,nn.fullKey=Rt,nn}static getEventFullKey(de){let $e="",dt=function Se(je){let We=je.key;if(null==We){if(We=je.keyIdentifier,null==We)return"Unidentified";We.startsWith("U+")&&(We=String.fromCharCode(parseInt(We.substring(2),16)),3===je.location&&qe.hasOwnProperty(We)&&(We=qe[We]))}return Be[We]||We}(de);return dt=dt.toLowerCase()," "===dt?dt="space":"."===dt&&(dt="dot"),ct.forEach(Nt=>{Nt!=dt&&X[Nt](de)&&($e+=Nt+".")}),$e+=dt,$e}static eventCallback(de,$e,dt){return Nt=>{je.getEventFullKey(Nt)===de&&dt.runGuarded(()=>$e(Nt))}}static _normalizeKey(de){return"esc"===de?"escape":de}}return je.\u0275fac=function(de){return new(de||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 Xe(){return(0,u.\u0275setDocument)(document),document},deps:[]}],_t=(0,u.createPlatformFactory)(u.platformCore,"browser",mt),It=[{provide:u.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:u.ErrorHandler,useFactory:function be(){return new u.ErrorHandler},deps:[]},{provide:k,useClass:Ue,multi:!0,deps:[i.DOCUMENT,u.NgZone,u.PLATFORM_ID]},{provide:k,useClass:me,multi:!0,deps:[i.DOCUMENT]},{provide:Pe,useClass:Pe,deps:[$,he,u.APP_ID]},{provide:u.RendererFactory2,useExisting:Pe},{provide:U,useExisting:he},{provide:he,useClass:he,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(de){if(de)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(de){return{ngModule:je,providers:[{provide:u.APP_ID,useValue:de.appId},{provide:S,useExisting:u.APP_ID},P]}}}return je.\u0275fac=function(de){return new(de||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(de){this._doc=de,this._dom=(0,i.\u0275getDOM)()}addTag(de,$e=!1){return de?this._getOrCreateElement(de,$e):null}addTags(de,$e=!1){return de?de.reduce((dt,Nt)=>(Nt&&dt.push(this._getOrCreateElement(Nt,$e)),dt),[]):[]}getTag(de){return de&&this._doc.querySelector(`meta[${de}]`)||null}getTags(de){if(!de)return[];const $e=this._doc.querySelectorAll(`meta[${de}]`);return $e?[].slice.call($e):[]}updateTag(de,$e){if(!de)return null;$e=$e||this._parseSelector(de);const dt=this.getTag($e);return dt?this._setMetaElementAttributes(de,dt):this._getOrCreateElement(de,!0)}removeTag(de){this.removeTagElement(this.getTag(de))}removeTagElement(de){de&&this._dom.remove(de)}_getOrCreateElement(de,$e=!1){if(!$e){const Rt=this._parseSelector(de),nn=this.getTags(Rt).filter(_n=>this._containsAttributes(de,_n))[0];if(void 0!==nn)return nn}const dt=this._dom.createElement("meta");return this._setMetaElementAttributes(de,dt),this._doc.getElementsByTagName("head")[0].appendChild(dt),dt}_setMetaElementAttributes(de,$e){return Object.keys(de).forEach(dt=>$e.setAttribute(this._getMetaKeyMap(dt),de[dt])),$e}_parseSelector(de){const $e=de.name?"name":"property";return`${$e}="${de[$e]}"`}_containsAttributes(de,$e){return Object.keys(de).every(dt=>$e.getAttribute(this._getMetaKeyMap(dt))===de[dt])}_getMetaKeyMap(de){return ae[de]||de}}return je.\u0275fac=function(de){return new(de||je)(u.\u0275\u0275inject(i.DOCUMENT))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:function(de){let $e=null;return $e=de?new de:function Ge(){return new L((0,u.\u0275\u0275inject)(i.DOCUMENT))}(),$e},providedIn:"root"}),je})();const ae={httpEquiv:"http-equiv"};let ce=(()=>{class je{constructor(de){this._doc=de}getTitle(){return this._doc.title}setTitle(de){this._doc.title=de||""}}return je.\u0275fac=function(de){return new(de||je)(u.\u0275\u0275inject(i.DOCUMENT))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:function(de){let $e=null;return $e=de?new de:function Ae(){return new ce((0,u.\u0275\u0275inject)(i.DOCUMENT))}(),$e},providedIn:"root"}),je})();function Qe(je,We){"undefined"!=typeof COMPILED&&COMPILED||((u.\u0275global.ng=u.\u0275global.ng||{})[je]=We)}const it="undefined"!=typeof window&&window||{};class ht{constructor(We,de){this.msPerTick=We,this.numTicks=de}}class ft{constructor(We){this.appRef=We.injector.get(u.ApplicationRef)}timeChangeDetection(We){const de=We&&We.record,$e="Change Detection",dt=null!=it.console.profile;de&&dt&&it.console.profile($e);const Nt=Dt();let Rt=0;for(;Rt<5||Dt()-Nt<500;)this.appRef.tick(),Rt++;const nn=Dt();de&&dt&&it.console.profileEnd($e);const _n=(nn-Nt)/Rt;return it.console.log(`ran ${Rt} change detection cycles`),it.console.log(`${_n.toFixed(2)} ms per check`),new ht(_n,Rt)}}function Dt(){return it.performance&&it.performance.now?it.performance.now():(new Date).getTime()}const Bt="profiler";function Jt(je){return Qe(Bt,new ft(je)),je}function Ft(){Qe(Bt,null)}function pn(je){const We={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return je.replace(/[&"'<>]/g,de=>We[de])}function $t(je){return je}let Tt=(()=>{class je{constructor(){this.store={},this.onSerializeCallbacks={}}static init(de){const $e=new je;return $e.store=de,$e}get(de,$e){return void 0!==this.store[de]?this.store[de]:$e}set(de,$e){this.store[de]=$e}remove(de){delete this.store[de]}hasKey(de){return this.store.hasOwnProperty(de)}onSerialize(de,$e){this.onSerializeCallbacks[de]=$e}toJson(){for(const de in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(de))try{this.store[de]=this.onSerializeCallbacks[de]()}catch($e){console.warn("Exception in onSerialize callback: ",$e)}return JSON.stringify(this.store)}}return je.\u0275fac=function(de){return new(de||je)},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();function cn(je,We){const de=je.getElementById(We+"-state");let $e={};if(de&&de.textContent)try{$e=JSON.parse(function en(je){const We={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return je.replace(/&[^;]+;/g,de=>We[de])}(de.textContent))}catch(dt){console.warn("Exception while restoring TransferState for app "+We,dt)}return Tt.init($e)}let Kt=(()=>{class je{}return je.\u0275fac=function(de){return new(de||je)},je.\u0275mod=u.\u0275\u0275defineNgModule({type:je}),je.\u0275inj=u.\u0275\u0275defineInjector({providers:[{provide:Tt,useFactory:cn,deps:[i.DOCUMENT,u.APP_ID]}]}),je})();class tn{static all(){return()=>!0}static css(We){return de=>null!=de.nativeElement&&function ue(je,We){return!!(0,i.\u0275getDOM)().isElementNode(je)&&(je.matches&&je.matches(We)||je.msMatchesSelector&&je.msMatchesSelector(We)||je.webkitMatchesSelector&&je.webkitMatchesSelector(We))}(de.nativeElement,We)}static directive(We){return de=>-1!==de.providerTokens.indexOf(We)}}const Z={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 ee=(()=>{class je{constructor(){this.events=[],this.overrides={}}buildHammer(de){const $e=new Hammer(de,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(de){return new(de||je)},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})(),E=(()=>{class je extends pe{constructor(de,$e,dt,Nt){super(de),this._config=$e,this.console=dt,this.loader=Nt,this._loaderPromise=null}supports(de){return!(!Z.hasOwnProperty(de.toLowerCase())&&!this.isCustomEvent(de)||!window.Hammer&&!this.loader)}addEventListener(de,$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(de,$e,dt)):nn=()=>{}}).catch(()=>{nn=()=>{}}),()=>{nn()}}return Nt.runOutsideAngular(()=>{const Rt=this._config.buildHammer(de),nn=function(_n){Nt.runGuarded(function(){dt(_n)})};return Rt.on($e,nn),()=>{Rt.off($e,nn),"function"==typeof Rt.destroy&&Rt.destroy()}})}isCustomEvent(de){return this._config.events.indexOf(de)>-1}}return je.\u0275fac=function(de){return new(de||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(de){return new(de||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:ee,deps:[]}]}),je})(),Le=(()=>{class je{}return je.\u0275fac=function(de){return new(de||je)},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:function(de){let $e=null;return $e=de?new(de||je):u.\u0275\u0275inject(Wt),$e},providedIn:"root"}),je})(),Wt=(()=>{class je extends Le{constructor(de){super(),this._doc=de}sanitize(de,$e){if(null==$e)return null;switch(de){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 ${de} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(de){return(0,u.\u0275bypassSanitizationTrustHtml)(de)}bypassSecurityTrustStyle(de){return(0,u.\u0275bypassSanitizationTrustStyle)(de)}bypassSecurityTrustScript(de){return(0,u.\u0275bypassSanitizationTrustScript)(de)}bypassSecurityTrustUrl(de){return(0,u.\u0275bypassSanitizationTrustUrl)(de)}bypassSecurityTrustResourceUrl(de){return(0,u.\u0275bypassSanitizationTrustResourceUrl)(de)}}return je.\u0275fac=function(de){return new(de||je)(u.\u0275\u0275inject(i.DOCUMENT))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:function(de){let $e=null;return $e=de?new de: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.2")},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 he{constructor(ge,ye){this.ngZone=ge,this.monacoPathConfig=ye,this.isMonacoLoaded$=new s.X(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?ge.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(ge){ge&&(this._monacoPath=ge)}loadMonaco(){const ge=()=>{let xe=this._monacoPath;window.amdRequire=window.require;const Je=!!this.nodeRequire,at=xe.includes("http");Je&&(window.require=this.nodeRequire,at||(xe=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:xe}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},ne=>console.error("Error loading monaco-editor: ",ne))};if(window.amdRequire)return ge();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const ve=document.createElement("script");ve.type="text/javascript",ve.src=`${this._monacoPath}/loader.js`,ve.addEventListener("load",ge),document.body.appendChild(ve)}addElectronFixScripts(){const ge=document.createElement("script"),ye=document.createTextNode("self.module = undefined;"),Y=document.createTextNode("self.process.browser = true;");ge.appendChild(ye),ge.appendChild(Y),document.body.appendChild(ge)}}return he.\u0275fac=function(ge){return new(ge||he)(i.\u0275\u0275inject(i.NgZone),i.\u0275\u0275inject(M,8))},he.\u0275prov=i.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac,providedIn:"root"}),he})(),k=(()=>{class he{constructor(ge,ye,Y){this.templateRef=ge,this.viewContainer=ye,this.monacoEditorLoaderService=Y,this.isMonacoLoaded$=this.monacoEditorLoaderService.isMonacoLoaded$.asObservable(),this.destroyed$=new _.x}ngOnInit(){this.isMonacoLoaded$.pipe((0,u.R)(this.destroyed$)).subscribe(ge=>{if(!ge)return this.viewContainer.clear();this.viewContainer.createEmbeddedView(this.templateRef)})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}return he.\u0275fac=function(ge){return new(ge||he)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(b))},he.\u0275dir=i.\u0275\u0275defineDirective({type:he,selectors:[["","ngxLoadMonacoEditor",""]]}),he})(),$=(()=>{class he{constructor(ge){this.monacoLoader=ge,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)(ge=>ge),(0,c.q)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(ge){if(this.editor&&ge.options&&!ge.options.firstChange){const ye=ge.options.currentValue,{language:Y,theme:ve}=ye,xe=(0,D.__rest)(ye,["language","theme"]),{language:Je,theme:at}=ge.options.previousValue;Je!==Y&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),at!==ve&&monaco.editor.setTheme(ve),this.editor.updateOptions(xe)}if(this.editor&&ge.uri){const ye=ge.uri.currentValue,Y=ge.uri.previousValue;if(Y&&!ye||!Y&&ye||ye&&Y&&ye.path!==Y.path){const ve=this.editor.getValue();let xe;this.modelUriInstance&&this.modelUriInstance.dispose(),ye&&(xe=monaco.editor.getModels().find(Je=>Je.uri.path===ye.path)),this.modelUriInstance=xe||monaco.editor.createModel(ve,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(ge){this.value=ge,this.editor&&ge?this.editor.setValue(ge):this.editor&&this.editor.setValue("")}registerOnChange(ge){this.propagateChange=ge}registerOnTouched(ge){this.onTouched=ge}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(ge){this.onErrorStatusChange=ge}initEditor(){const ge={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({},ge),this.options):ge),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const ge=this.modelMarkers.map(({message:Y})=>Y).join("|");this.parsedError!==ge&&(this.parsedError=ge,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return he.\u0275fac=function(ge){return new(ge||he)(i.\u0275\u0275directiveInject(b))},he.\u0275cmp=i.\u0275\u0275defineComponent({type:he,selectors:[["ngx-monaco-editor"]],viewQuery:function(ge,ye){if(1&ge&&i.\u0275\u0275viewQuery(S,7),2&ge){let Y;i.\u0275\u0275queryRefresh(Y=i.\u0275\u0275loadQuery())&&(ye.editorContent=Y.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[i.\u0275\u0275ProvidersFeature([{provide:T.NG_VALUE_ACCESSOR,useExisting:(0,i.forwardRef)(()=>he),multi:!0},{provide:T.NG_VALIDATORS,useExisting:(0,i.forwardRef)(()=>he),multi:!0}]),i.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(ge,ye){1&ge&&(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}),he})(),pe=(()=>{class he{constructor(ge){this.monacoLoader=ge,this.init=new i.EventEmitter}ngOnInit(){this.container=this.editorContent.nativeElement,this.monacoLoader.isMonacoLoaded$.pipe((0,m.h)(ge=>ge),(0,c.q)(1)).subscribe(()=>{this.initMonaco()})}ngOnChanges(ge){if(this.editor&&(ge.code&&!ge.code.firstChange||ge.modified&&!ge.modified.firstChange)){const ye=monaco.editor.createModel(this.modified),Y=monaco.editor.createModel(this.original);this.editor.setModel({original:Y,modified:ye})}this.editor&&ge.options&&!ge.options.firstChange&&(ge.options.previousValue.theme!==ge.options.currentValue.theme&&monaco.editor.setTheme(ge.options.currentValue.theme),this.editor.updateOptions(ge.options.currentValue))}initMonaco(){let ge={readOnly:!0,automaticLayout:!0,theme:"vc"};this.options&&(ge=Object.assign({},ge,this.options)),this.editor=monaco.editor.createDiffEditor(this.container,ge);const ye=monaco.editor.createModel(this.original),Y=monaco.editor.createModel(this.modified);this.editor.setModel({original:ye,modified:Y}),this.editor.layout(),this.init.emit(this.editor)}ngOnDestroy(){this.editor&&this.editor.dispose()}}return he.\u0275fac=function(ge){return new(ge||he)(i.\u0275\u0275directiveInject(b))},he.\u0275cmp=i.\u0275\u0275defineComponent({type:he,selectors:[["ngx-monaco-diff-editor"]],viewQuery:function(ge,ye){if(1&ge&&i.\u0275\u0275viewQuery(d,7),2&ge){let Y;i.\u0275\u0275queryRefresh(Y=i.\u0275\u0275loadQuery())&&(ye.editorContent=Y.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(ge,ye){1&ge&&(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}),he})(),U=(()=>{class he{}return he.\u0275fac=function(ge){return new(ge||he)},he.\u0275mod=i.\u0275\u0275defineNgModule({type:he}),he.\u0275inj=i.\u0275\u0275defineInjector({imports:[[]]}),he})()},1430:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{ANGULAR_SPLIT_DEFAULT_OPTIONS:()=>ve,AngularSplitModule:()=>at,SplitAreaDirective:()=>Je,SplitComponent:()=>xe});var i=l(5e3),u=l(9808),m=l(6758),c=l(9751),s=l(8372);const _=["gutterEls"];function D(ne,Fe){if(1&ne){const q=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",2,3),i.\u0275\u0275listener("mousedown",function(Pe){i.\u0275\u0275restoreView(q);const ie=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startDragging(Pe,2*ie+1,ie+1)})("touchstart",function(Pe){i.\u0275\u0275restoreView(q);const ie=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startDragging(Pe,2*ie+1,ie+1)})("mouseup",function(Pe){i.\u0275\u0275restoreView(q);const ie=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(Pe,ie+1)})("touchend",function(Pe){i.\u0275\u0275restoreView(q);const ie=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(Pe,ie+1)}),i.\u0275\u0275element(2,"div",4),i.\u0275\u0275elementEnd()}if(2&ne){const q=i.\u0275\u0275nextContext().index,le=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("flex-basis",le.gutterSize,"px")("order",2*q+1)}}function T(ne,Fe){1&ne&&i.\u0275\u0275template(0,D,3,4,"div",1),2&ne&&i.\u0275\u0275property("ngIf",!1===Fe.last)}const S=["*"];function d(ne){return void 0!==ne.changedTouches&&ne.changedTouches.length>0?{x:ne.changedTouches[0].clientX,y:ne.changedTouches[0].clientY}:void 0!==ne.clientX&&void 0!==ne.clientY?{x:ne.clientX,y:ne.clientY}:null}function P(ne,Fe,q){return Math.abs(ne.x-Fe.x)<=q&&Math.abs(ne.y-Fe.y)<=q}function M(ne,Fe){const q=ne.nativeElement.getBoundingClientRect();return"horizontal"===Fe?q.width:q.height}function b(ne){return"boolean"==typeof ne?ne:"false"!==ne}function k(ne,Fe){return null==ne?Fe:(ne=Number(ne),!isNaN(ne)&&ne>=0?ne:Fe)}function $(ne,Fe){if("percent"===ne){const q=Fe.reduce((le,Pe)=>null!==Pe?le+Pe:le,0);return Fe.every(le=>null!==le)&&q>99.9&&q<100.1}if("pixel"===ne)return 1===Fe.filter(q=>null===q).length}function pe(ne){return null===ne.size?null:!0===ne.component.lockSize?ne.size:null===ne.component.minSize?null:ne.component.minSize>ne.size?ne.size:ne.component.minSize}function U(ne){return null===ne.size?null:!0===ne.component.lockSize?ne.size:null===ne.component.maxSize?null:ne.component.maxSize<ne.size?ne.size:ne.component.maxSize}function he(ne,Fe,q,le){return Fe.reduce((Pe,ie)=>{const Ke=function ke(ne,Fe,q,le){return 0===q?{areaSnapshot:Fe,pixelAbsorb:0,percentAfterAbsorption:Fe.sizePercentAtStart,pixelRemain:0}:0===Fe.sizePixelAtStart&&q<0?{areaSnapshot:Fe,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:q}:"percent"===ne?function ge(ne,Fe,q){const Pe=(ne.sizePixelAtStart+Fe)/q*100;if(Fe>0){if(null!==ne.area.maxSize&&Pe>ne.area.maxSize){const ie=ne.area.maxSize/100*q;return{areaSnapshot:ne,pixelAbsorb:ie,percentAfterAbsorption:ne.area.maxSize,pixelRemain:ne.sizePixelAtStart+Fe-ie}}return{areaSnapshot:ne,pixelAbsorb:Fe,percentAfterAbsorption:Pe>100?100:Pe,pixelRemain:0}}if(Fe<0){if(null!==ne.area.minSize&&Pe<ne.area.minSize){const ie=ne.area.minSize/100*q;return{areaSnapshot:ne,pixelAbsorb:ie,percentAfterAbsorption:ne.area.minSize,pixelRemain:ne.sizePixelAtStart+Fe-ie}}return Pe<0?{areaSnapshot:ne,pixelAbsorb:-ne.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:Fe+ne.sizePixelAtStart}:{areaSnapshot:ne,pixelAbsorb:Fe,percentAfterAbsorption:Pe,pixelRemain:0}}}(Fe,q,le):"pixel"===ne?function ye(ne,Fe,q){const le=ne.sizePixelAtStart+Fe;return Fe>0?null!==ne.area.maxSize&&le>ne.area.maxSize?{areaSnapshot:ne,pixelAbsorb:ne.area.maxSize-ne.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:le-ne.area.maxSize}:{areaSnapshot:ne,pixelAbsorb:Fe,percentAfterAbsorption:-1,pixelRemain:0}:Fe<0?null!==ne.area.minSize&&le<ne.area.minSize?{areaSnapshot:ne,pixelAbsorb:ne.area.minSize+Fe-le,percentAfterAbsorption:-1,pixelRemain:le-ne.area.minSize}:le<0?{areaSnapshot:ne,pixelAbsorb:-ne.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:Fe+ne.sizePixelAtStart}:{areaSnapshot:ne,pixelAbsorb:Fe,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(Fe,q):void 0}(ne,ie,Pe.remain,le);return Pe.list.push(Ke),Pe.remain=Ke.pixelRemain,Pe},{remain:q,list:[]})}function Y(ne,Fe){"percent"===ne?Fe.areaSnapshot.area.size=Fe.percentAfterAbsorption:"pixel"===ne&&null!==Fe.areaSnapshot.area.size&&(Fe.areaSnapshot.area.size=Fe.areaSnapshot.sizePixelAtStart+Fe.pixelAbsorb)}const ve=new i.InjectionToken("angular-split-global-config");let xe=(()=>{class ne{constructor(q,le,Pe,ie,Ke){this.ngZone=q,this.elRef=le,this.cdRef=Pe,this.renderer=ie,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(q){this._direction="vertical"===q?"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(q){this._unit="pixel"===q?"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(q){this._gutterSize=k(q,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(q){this._gutterStep=k(q,1)}get gutterStep(){return this._gutterStep}set restrictMove(q){this._restrictMove=b(q)}get restrictMove(){return this._restrictMove}set useTransition(q){this._useTransition=b(q),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(q){this._disabled=b(q),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(q){this._dir="rtl"===q?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(q){this._gutterDblClickDuration=k(q,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new c.y(q=>this.transitionEndSubscriber=q).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(q){const le={component:q,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===q.visible?(this.displayedAreas.push(le),this.build(!0,!0)):this.hiddenAreas.push(le)}removeArea(q){if(this.displayedAreas.some(le=>le.component===q)){const le=this.displayedAreas.find(Pe=>Pe.component===q);this.displayedAreas.splice(this.displayedAreas.indexOf(le),1),this.build(!0,!0)}else if(this.hiddenAreas.some(le=>le.component===q)){const le=this.hiddenAreas.find(Pe=>Pe.component===q);this.hiddenAreas.splice(this.hiddenAreas.indexOf(le),1)}}updateArea(q,le,Pe){!0===q.visible&&this.build(le,Pe)}showArea(q){const le=this.hiddenAreas.find(ie=>ie.component===q);if(void 0===le)return;const Pe=this.hiddenAreas.splice(this.hiddenAreas.indexOf(le),1);this.displayedAreas.push(...Pe),this.build(!0,!0)}hideArea(q){const le=this.displayedAreas.find(ie=>ie.component===q);if(void 0===le)return;const Pe=this.displayedAreas.splice(this.displayedAreas.indexOf(le),1);Pe.forEach(ie=>{ie.order=0,ie.size=0}),this.hiddenAreas.push(...Pe),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(q=>null===q.size?"*":q.size)}setVisibleAreaSizes(q){if(q.length!==this.displayedAreas.length)return!1;const le=q.map(ie=>k(ie,null));return!1!==$(this.unit,le)&&(this.displayedAreas.forEach((ie,Ke)=>ie.component._size=le[Ke]),this.build(!1,!0),!0)}build(q,le){if(this.stopDragging(),!0===q&&(this.displayedAreas.every(Pe=>null!==Pe.component.order)&&this.displayedAreas.sort((Pe,ie)=>Pe.component.order-ie.component.order),this.displayedAreas.forEach((Pe,ie)=>{Pe.order=2*ie,Pe.component.setStyleOrder(Pe.order)})),!0===le){const Pe=$(this.unit,this.displayedAreas.map(ie=>ie.component.size));switch(this.unit){case"percent":{const ie=100/this.displayedAreas.length;this.displayedAreas.forEach(Ke=>{Ke.size=Pe?Ke.component.size:ie,Ke.minSize=pe(Ke),Ke.maxSize=U(Ke)});break}case"pixel":if(Pe)this.displayedAreas.forEach(ie=>{ie.size=ie.component.size,ie.minSize=pe(ie),ie.maxSize=U(ie)});else{const ie=this.displayedAreas.filter(Ke=>null===Ke.component.size);if(0===ie.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(ie.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 q=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(le=>{le.component.setStyleFlex(0,0,`calc( ${le.size}% - ${le.size/100*q}px )`,null!==le.minSize&&le.minSize===le.size,null!==le.maxSize&&le.maxSize===le.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(q=>{null===q.size?q.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?q.component.setStyleFlex(0,0,"100%",!1,!1):q.component.setStyleFlex(0,0,`${q.size}px`,null!==q.minSize&&q.minSize===q.size,null!==q.maxSize&&q.maxSize===q.size)})}clickGutter(q,le){const Pe=d(q);this.startPoint&&P(this.startPoint,Pe,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(q,le,Pe){q.preventDefault(),q.stopPropagation(),this.startPoint=d(q),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.snapshot={gutterNum:Pe,lastSteppedOffset:0,allAreasSizePixel:M(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(ie=>{const Ke={area:ie,sizePixelAtStart:M(ie.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?ie.size:-1};ie.order<le?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[Ke]:this.snapshot.areasBeforeGutter.unshift(Ke):ie.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((ie,Ke)=>ie+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(ie=>ie.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0))}dragEvent(q){q.preventDefault(),q.stopPropagation();const le=d(q);if(null!==this._clickTimeout&&!P(this.startPoint,le,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1===this.isDragging||(this.endPoint=d(q),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 Pe="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(Pe=-Pe);const ie=Math.round(Pe/this.gutterStep)*this.gutterStep;if(ie===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=ie;let Ke=he(this.unit,this.snapshot.areasBeforeGutter,-ie,this.snapshot.allAreasSizePixel),_e=he(this.unit,this.snapshot.areasAfterGutter,ie,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=he(this.unit,this.snapshot.areasAfterGutter,ie+Ke.remain,this.snapshot.allAreasSizePixel):Ke=he(this.unit,this.snapshot.areasBeforeGutter,-(ie-_e.remain),this.snapshot.allAreasSizePixel)):0!==Ke.remain?_e=he(this.unit,this.snapshot.areasAfterGutter,ie+Ke.remain,this.snapshot.allAreasSizePixel):0!==_e.remain&&(Ke=he(this.unit,this.snapshot.areasBeforeGutter,-(ie-_e.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const tt=[...Ke.list,..._e.list],Ee=tt.find(Ue=>0!==Ue.percentAfterAbsorption&&Ue.percentAfterAbsorption!==Ue.areaSnapshot.area.minSize&&Ue.percentAfterAbsorption!==Ue.areaSnapshot.area.maxSize);Ee&&(Ee.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-tt.filter(Ue=>Ue!==Ee).reduce((Ue,ct)=>Ue+ct.percentAfterAbsorption,0))}Ke.list.forEach(tt=>Y(this.unit,tt)),_e.list.forEach(tt=>Y(this.unit,tt)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(q){if(q&&(q.preventDefault(),q.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(q,le){const Pe=this.getVisibleAreaSizes();"start"===q?this.dragStart.emit({gutterNum:le,sizes:Pe}):"end"===q?this.dragEnd.emit({gutterNum:le,sizes:Pe}):"click"===q?this.gutterClick.emit({gutterNum:le,sizes:Pe}):"dblclick"===q?this.gutterDblClick.emit({gutterNum:le,sizes:Pe}):"transitionEnd"===q?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(Pe)):"progress"===q&&this.dragProgressSubject.next({gutterNum:le,sizes:Pe})}ngOnDestroy(){this.stopDragging()}collapseArea(q,le,Pe){const ie=this.displayedAreas.find(tt=>tt.component===q);if(void 0===ie)return;const Ke="right"===Pe?1:-1;ie.sizeBeforeCollapse||(ie.sizeBeforeCollapse=ie.size,ie.gutterBeforeCollapse=Ke),ie.size=le;const _e=this.gutterEls.find(tt=>tt.nativeElement.style.order===`${ie.order+Ke}`);_e&&this.renderer.addClass(_e.nativeElement,"as-split-gutter-collapsed"),this.updateArea(q,!1,!1)}expandArea(q){const le=this.displayedAreas.find(ie=>ie.component===q);if(void 0===le||!le.sizeBeforeCollapse)return;le.size=le.sizeBeforeCollapse,le.sizeBeforeCollapse=null;const Pe=this.gutterEls.find(ie=>ie.nativeElement.style.order===`${le.order+le.gutterBeforeCollapse}`);Pe&&this.renderer.removeClass(Pe.nativeElement,"as-split-gutter-collapsed"),this.updateArea(q,!1,!1)}}return ne.\u0275fac=function(q){return new(q||ne)(i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(ve,8))},ne.\u0275cmp=i.\u0275\u0275defineComponent({type:ne,selectors:[["as-split"]],viewQuery:function(q,le){if(1&q&&i.\u0275\u0275viewQuery(_,5),2&q){let Pe;i.\u0275\u0275queryRefresh(Pe=i.\u0275\u0275loadQuery())&&(le.gutterEls=Pe)}},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(q,le){1&q&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275projection(0),i.\u0275\u0275template(1,T,1,1,"ng-template",0)),2&q&&(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}),ne})(),Je=(()=>{class ne{constructor(q,le,Pe,ie){this.ngZone=q,this.elRef=le,this.renderer=Pe,this.split=ie,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(q){this._order=k(q,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(q){this._size=k(q,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(q){this._minSize=k(q,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(q){this._maxSize=k(q,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(q){this._lockSize=b(q),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(q){this._visible=b(q),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",q=>{"flex-basis"===q.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(q){this.renderer.setStyle(this.elRef.nativeElement,"order",q)}setStyleFlex(q,le,Pe,ie,Ke){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",q),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",le),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",Pe),!0===ie?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 q=this.lockListeners.pop();q&&q()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}collapse(q=0,le="right"){this.split.collapseArea(this,q,le)}expand(){this.split.expandArea(this)}}return ne.\u0275fac=function(q){return new(q||ne)(i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(xe))},ne.\u0275dir=i.\u0275\u0275defineDirective({type:ne,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]}),ne})(),at=(()=>{class ne{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:ne,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:ne,providers:[]}}}return ne.\u0275fac=function(q){return new(q||ne)},ne.\u0275mod=i.\u0275\u0275defineNgModule({type:ne}),ne.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),ne})()},2290:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{BasePortalHost:()=>Y,ComponentPortal:()=>ye,DefaultGlobalConfig:()=>_e,DefaultNoAnimationsGlobalConfig:()=>ct,DefaultNoComponentGlobalConfig:()=>xe,Overlay:()=>Pe,OverlayContainer:()=>le,OverlayRef:()=>q,TOAST_CONFIG:()=>Je,Toast:()=>Ke,ToastContainerDirective:()=>ke,ToastContainerModule:()=>ge,ToastInjector:()=>ne,ToastNoAnimation:()=>Ue,ToastNoAnimationModule:()=>bt,ToastPackage:()=>ve,ToastRef:()=>at,ToastrComponentlessModule:()=>Ee,ToastrModule:()=>tt,ToastrService:()=>ie});var i=l(5e3),u=l(1777),m=l(6758),c=l(9808),s=l(2313);const _=["toast-component",""];function D(Be,qe){if(1&Be){const X=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(X),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementEnd()}}function T(Be,qe){if(1&Be&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&Be){const X=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",X.duplicatesCount+1,"]")}}function S(Be,qe){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 X=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(X.options.titleClass),i.\u0275\u0275attribute("aria-label",X.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",X.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",X.duplicatesCount)}}function d(Be,qe){if(1&Be&&i.\u0275\u0275element(0,"div",7),2&Be){const X=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(X.options.messageClass),i.\u0275\u0275property("innerHTML",X.message,i.\u0275\u0275sanitizeHtml)}}function P(Be,qe){if(1&Be&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Be){const X=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(X.options.messageClass),i.\u0275\u0275attribute("aria-label",X.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",X.message," ")}}function M(Be,qe){if(1&Be&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&Be){const X=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",X.width+"%")}}function b(Be,qe){if(1&Be){const X=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(X),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementEnd()}}function k(Be,qe){if(1&Be&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&Be){const X=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",X.duplicatesCount+1,"]")}}function $(Be,qe){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 X=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(X.options.titleClass),i.\u0275\u0275attribute("aria-label",X.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",X.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",X.duplicatesCount)}}function pe(Be,qe){if(1&Be&&i.\u0275\u0275element(0,"div",7),2&Be){const X=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(X.options.messageClass),i.\u0275\u0275property("innerHTML",X.message,i.\u0275\u0275sanitizeHtml)}}function U(Be,qe){if(1&Be&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Be){const X=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(X.options.messageClass),i.\u0275\u0275attribute("aria-label",X.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",X.message," ")}}function he(Be,qe){if(1&Be&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&Be){const X=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",X.width+"%")}}let ke=(()=>{class Be{constructor(X){this.el=X}getContainerElement(){return this.el.nativeElement}}return Be.\u0275fac=function(X){return new(X||Be)(i.\u0275\u0275directiveInject(i.ElementRef))},Be.\u0275dir=i.\u0275\u0275defineDirective({type:Be,selectors:[["","toastContainer",""]],exportAs:["toastContainer"]}),Be})(),ge=(()=>{class Be{}return Be.\u0275fac=function(X){return new(X||Be)},Be.\u0275mod=i.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=i.\u0275\u0275defineInjector({}),Be})();class ye{constructor(qe,X){this.component=qe,this.injector=X}attach(qe,X){return this._attachedHost=qe,qe.attach(this,X)}detach(){const qe=this._attachedHost;if(qe)return this._attachedHost=void 0,qe.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(qe){this._attachedHost=qe}}class Y{attach(qe,X){return this._attachedPortal=qe,this.attachComponentPortal(qe,X)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(qe){this._disposeFn=qe}}class ve{constructor(qe,X,me,Se,Re,be){this.toastId=qe,this.config=X,this.message=me,this.title=Se,this.toastType=Re,this.toastRef=be,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(qe){this._onAction.next(qe)}onAction(){return this._onAction.asObservable()}}const xe={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},Je=new i.InjectionToken("ToastConfig");class at{constructor(qe){this._overlayRef=qe,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(qe,X){qe&&this._resetTimeout.next(),X&&this._countDuplicate.next(++this.duplicatesCount)}}class ne{constructor(qe,X){this._toastPackage=qe,this._parentInjector=X}get(qe,X,me){return qe===ve?this._toastPackage:this._parentInjector.get(qe,X,me)}}class Fe extends Y{constructor(qe,X,me){super(),this._hostDomElement=qe,this._componentFactoryResolver=X,this._appRef=me}attachComponentPortal(qe,X){const me=this._componentFactoryResolver.resolveComponentFactory(qe.component);let Se;return Se=me.create(qe.injector),this._appRef.attachView(Se.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Se.hostView),Se.destroy()}),X?this._hostDomElement.insertBefore(this._getComponentRootNode(Se),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(Se)),Se}_getComponentRootNode(qe){return qe.hostView.rootNodes[0]}}class q{constructor(qe){this._portalHost=qe}attach(qe,X=!0){return this._portalHost.attach(qe,X)}detach(){return this._portalHost.detach()}}let le=(()=>{class Be{constructor(X){this._document=X}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const X=this._document.createElement("div");X.classList.add("overlay-container"),this._document.body.appendChild(X),this._containerElement=X}}return Be.\u0275fac=function(X){return new(X||Be)(i.\u0275\u0275inject(c.DOCUMENT))},Be.\u0275prov=i.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})(),Pe=(()=>{class Be{constructor(X,me,Se,Re){this._overlayContainer=X,this._componentFactoryResolver=me,this._appRef=Se,this._document=Re,this._paneElements=new Map}create(X,me){return this._createOverlayRef(this.getPaneElement(X,me))}getPaneElement(X="",me){return this._paneElements.get(me)||this._paneElements.set(me,{}),this._paneElements.get(me)[X]||(this._paneElements.get(me)[X]=this._createPaneElement(X,me)),this._paneElements.get(me)[X]}_createPaneElement(X,me){const Se=this._document.createElement("div");return Se.id="toast-container",Se.classList.add(X),Se.classList.add("toast-container"),me?me.getContainerElement().appendChild(Se):this._overlayContainer.getContainerElement().appendChild(Se),Se}_createPortalHost(X){return new Fe(X,this._componentFactoryResolver,this._appRef)}_createOverlayRef(X){return new q(this._createPortalHost(X))}}return Be.\u0275fac=function(X){return new(X||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})(),ie=(()=>{class Be{constructor(X,me,Se,Re,be){this.overlay=me,this._injector=Se,this.sanitizer=Re,this.ngZone=be,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},X.default),X.config),X.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},X.default.iconClasses),X.config.iconClasses))}show(X,me,Se={},Re=""){return this._preBuildNotification(Re,X,me,this.applyConfig(Se))}success(X,me,Se={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",X,me,this.applyConfig(Se))}error(X,me,Se={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",X,me,this.applyConfig(Se))}info(X,me,Se={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",X,me,this.applyConfig(Se))}warning(X,me,Se={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",X,me,this.applyConfig(Se))}clear(X){for(const me of this.toasts)if(void 0!==X){if(me.toastId===X)return void me.toastRef.manualClose()}else me.toastRef.manualClose()}remove(X){const me=this._findToast(X);if(!me||(me.activeToast.toastRef.close(),this.toasts.splice(me.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 Se=this.toasts[this.currentlyActive].toastRef;Se.isInactive()||(this.currentlyActive=this.currentlyActive+1,Se.activate())}return!0}findDuplicate(X="",me="",Se,Re){const{includeTitleDuplicates:be}=this.toastrConfig;for(const Xe of this.toasts){const mt=be&&Xe.title===X;if((!be||mt)&&Xe.message===me)return Xe.toastRef.onDuplicate(Se,Re),Xe}return null}applyConfig(X={}){return Object.assign(Object.assign({},this.toastrConfig),X)}_findToast(X){for(let me=0;me<this.toasts.length;me++)if(this.toasts[me].toastId===X)return{index:me,activeToast:this.toasts[me]};return null}_preBuildNotification(X,me,Se,Re){return Re.onActivateTick?this.ngZone.run(()=>this._buildNotification(X,me,Se,Re)):this._buildNotification(X,me,Se,Re)}_buildNotification(X,me,Se,Re){if(!Re.toastComponent)throw new Error("toastComponent required");const be=this.findDuplicate(Se,me,this.toastrConfig.resetTimeoutOnDuplicate&&Re.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&Se||me)&&this.toastrConfig.preventDuplicates&&null!==be)return be;this.previousToastMessage=me;let Xe=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Xe=!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 _t=me;me&&Re.enableHtml&&(_t=this.sanitizer.sanitize(i.SecurityContext.HTML,me));const It=new at(mt),ut=new ve(this.index,Re,_t,Se,X,It),Ge=new ne(ut,this._injector),L=new ye(Re.toastComponent,Ge),ae=mt.attach(L,this.toastrConfig.newestOnTop);It.componentInstance=ae.instance;const Ae={toastId:this.index,title:Se||"",message:me||"",toastRef:It,onShown:It.afterActivate(),onHidden:It.afterClosed(),onTap:ut.onTap(),onAction:ut.onAction(),portal:ae};return Xe||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Ae.toastRef.activate()})),this.toasts.push(Ae),Ae}}return Be.\u0275fac=function(X){return new(X||Be)(i.\u0275\u0275inject(Je),i.\u0275\u0275inject(Pe),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(X,me,Se){this.toastrService=X,this.toastPackage=me,this.ngZone=Se,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=me.message,this.title=me.title,this.options=me.config,this.originalTimeout=me.config.timeOut,this.toastClasses=`${me.toastType} ${me.config.toastClass}`,this.sub=me.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=me.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=me.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=me.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 X=(new Date).getTime();this.width=(this.hideTime-X)/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(X,me){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(X),me)):this.timeout=setTimeout(()=>X(),me)}outsideInterval(X,me){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(X),me)):this.intervalId=setInterval(()=>X(),me)}runInsideAngular(X){this.ngZone?this.ngZone.run(()=>X()):X()}}return Be.\u0275fac=function(X){return new(X||Be)(i.\u0275\u0275directiveInject(ie),i.\u0275\u0275directiveInject(ve),i.\u0275\u0275directiveInject(i.NgZone))},Be.\u0275cmp=i.\u0275\u0275defineComponent({type:Be,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(X,me){1&X&&i.\u0275\u0275listener("click",function(){return me.tapToast()})("mouseenter",function(){return me.stickAround()})("mouseleave",function(){return me.delayedHideToast()}),2&X&&(i.\u0275\u0275syntheticHostProperty("@flyInOut",me.state),i.\u0275\u0275classMap(me.toastClasses),i.\u0275\u0275styleProp("display",me.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(X,me){1&X&&(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,P,2,4,"div",3),i.\u0275\u0275template(4,M,2,2,"div",4)),2&X&&(i.\u0275\u0275property("ngIf",me.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.message&&me.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.message&&!me.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.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({},xe),{toastComponent:Ke});let tt=(()=>{class Be{static forRoot(X={}){return{ngModule:Be,providers:[{provide:Je,useValue:{default:_e,config:X}}]}}}return Be.\u0275fac=function(X){return new(X||Be)},Be.\u0275mod=i.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=i.\u0275\u0275defineInjector({imports:[[c.CommonModule]]}),Be})(),Ee=(()=>{class Be{static forRoot(X={}){return{ngModule:tt,providers:[{provide:Je,useValue:{default:xe,config:X}}]}}}return Be.\u0275fac=function(X){return new(X||Be)},Be.\u0275mod=i.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=i.\u0275\u0275defineInjector({imports:[[c.CommonModule]]}),Be})(),Ue=(()=>{class Be{constructor(X,me,Se){this.toastrService=X,this.toastPackage=me,this.appRef=Se,this.width=-1,this.toastClasses="",this.state="inactive",this.message=me.message,this.title=me.title,this.options=me.config,this.originalTimeout=me.config.timeOut,this.toastClasses=`${me.toastType} ${me.config.toastClass}`,this.sub=me.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=me.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=me.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=me.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 X=(new Date).getTime();this.width=(this.hideTime-X)/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(X){return new(X||Be)(i.\u0275\u0275directiveInject(ie),i.\u0275\u0275directiveInject(ve),i.\u0275\u0275directiveInject(i.ApplicationRef))},Be.\u0275cmp=i.\u0275\u0275defineComponent({type:Be,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(X,me){1&X&&i.\u0275\u0275listener("click",function(){return me.tapToast()})("mouseenter",function(){return me.stickAround()})("mouseleave",function(){return me.delayedHideToast()}),2&X&&(i.\u0275\u0275classMap(me.toastClasses),i.\u0275\u0275styleProp("display",me.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(X,me){1&X&&(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,he,2,2,"div",4)),2&X&&(i.\u0275\u0275property("ngIf",me.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.message&&me.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.message&&!me.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.options.progressBar))},directives:[c.NgIf],encapsulation:2}),Be})();const ct=Object.assign(Object.assign({},xe),{toastComponent:Ue});let bt=(()=>{class Be{static forRoot(X={}){return{ngModule:Be,providers:[{provide:Je,useValue:{default:ct,config:X}}]}}}return Be.\u0275fac=function(X){return new(X||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":"0.0.0-dev.20220209191102","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":"0.0.0-dev.20220209191102","@sdkgen/csharp-generator":"0.0.0-dev.20220209191102","@sdkgen/dart-generator":"0.0.0-dev.20220209191102","@sdkgen/fsharp-generator":"0.0.0-dev.20220209191102","@sdkgen/kotlin-generator":"0.0.0-dev.20220209191102","@sdkgen/parser":"0.0.0-dev.20220209191102","@sdkgen/swift-generator":"0.0.0-dev.20220209191102","@sdkgen/typescript-generator":"0.0.0-dev.20220209191102"},"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)}]);