@sdkgen/playground 0.0.0-dev.20220113193747 → 0.0.0-dev.20220113215121

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(je,_){"use strict";var S,l=this&&this.__extends||(S=function(g,v){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,O){A.__proto__=O}||function(A,O){for(var w in O)Object.prototype.hasOwnProperty.call(O,w)&&(A[w]=O[w])})(g,v)},function(g,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function A(){this.constructor=g}S(g,v),g.prototype=null===v?Object.create(v):(A.prototype=v.prototype,new A)}),i=this&&this.__spreadArray||function(S,g,v){if(v||2===arguments.length)for(var w,A=0,O=g.length;A<O;A++)(w||!(A in g))&&(w||(w=Array.prototype.slice.call(g,0,A)),w[A]=g[A]);return S.concat(w||Array.prototype.slice.call(g))};Object.defineProperty(_,"__esModule",{value:!0}),_.decode=_.encode=void 0;var d=["string","email","phone","html","xml"],m=i(["json","bool","url","int","uint","float","money","hex","uuid","base64","void"],d,!0),u=function(S){function g(v,A,O){var k;try{k=JSON.stringify(O)}catch(U){k=String(O)}return S.call(this,"Invalid type at '".concat(v,"', expected ").concat(A,", got ").concat(k))||this}return l(g,S),g}(Error);function s(S,g,v){if("json"===g)return null==v?null:JSON.parse(JSON.stringify(v));if("bool"===g){if("boolean"!=typeof v)throw new u(S,g,v);return v}if(d.indexOf(g)>=0){if("string"!=typeof v)throw new u(S,g,v);return v}if("hex"===g){if("string"!=typeof v||!/^(?:[A-Fa-f0-9]{2})*$/u.test(v))throw new u(S,g,v);return v.toLowerCase()}if("uuid"===g){if("string"!=typeof v||!/^[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(v))throw new u(S,g,v);return v.toLowerCase()}if("base64"===g){var A=!0;try{atob(v)}catch(w){A=!1}if("string"!=typeof v||!A)throw new u(S,g,v);return v}if("int"===g){if("number"!=typeof v||(0|v)!==v)throw new u(S,g,v);return v}if("uint"===g){if("number"!=typeof v||(0|v)!==v||v<0)throw new u(S,g,v);return v}if("float"===g){if("number"!=typeof v)throw new u(S,g,v);return v}if("money"===g){if("number"!=typeof v||!Number.isInteger(v))throw new u(S,g,v);return v}if("url"===g){var O=void 0;if("string"==typeof v)try{O=new URL(v)}catch(w){}if(!O)throw new u(S,g,v);return O.toString()}if("void"===g)return null;throw new Error("Unknown type '".concat(g,"' at '").concat(S,"'"))}_.encode=function b(S,g,v,A){if("string"==typeof v&&!v.endsWith("?")&&"void"!==v&&null==A)throw new Error("Invalid type at '".concat(g,"', cannot be null"));if(Array.isArray(v)){for(var O=0,w=v;O<w.length;O++){var k=w[O];if(k===A)return A;if(Array.isArray(A)&&2===A.length&&k===A[0])return A[0];if(Array.isArray(k)&&2===k.length){if(k[0]===A)return[A,b(S,"".concat(g,".").concat(k[0]),k[1],{})];if(Array.isArray(A)&&2===A.length&&k[0]===A[0])return[A[0],b(S,"".concat(g,".").concat(k[0]),k[1],A[1])]}}throw new u(g,v,A)}if("object"==typeof v){if("object"!=typeof A)throw new u(g,v,A);for(var U={},me=0,$=Object.keys(v);me<$.length;me++){var re=$[me];U[re]=b(S,"".concat(g,".").concat(re),v[re],A[re])}return U}if(v.endsWith("?"))return null==A?null:b(S,g,v.slice(0,v.length-1),A);if(v.endsWith("[]")){if(!Array.isArray(A))throw new u(g,v,A);return A.map(function(fe,_e){return b(S,"".concat(g,"[").concat(_e,"]"),v.slice(0,v.length-2),fe)})}if(m.indexOf(v)>=0)return s(g,v,A);if("bytes"===v){if(!(A instanceof ArrayBuffer))throw new u(g,v,A);return btoa(String.fromCharCode.apply(String,new Uint8Array(A)))}if("bigint"===v){if("bigint"!=typeof A)throw new u(g,v,A);return A.toString()}if("cpf"===v){if("string"!=typeof A)throw new u(g,v,A);return A}if("cnpj"===v){if("string"!=typeof A)throw new u(g,v,A);return A}if("date"===v){if((!(A instanceof Date)||isNaN(A.getTime()))&&("string"!=typeof A||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(A)))throw new u(g,v,A);return"string"==typeof A?new Date(A).toISOString().split("T")[0]:A.toISOString().split("T")[0]}if("datetime"===v){if((!(A instanceof Date)||isNaN(A.getTime()))&&("string"!=typeof A||!/^[0-9]{4}-[01][0-9]-[0123][0-9]T[012][0-9]:[0123456][0-9]:[0123456][0-9](?:\.[0-9]{1,6})?(?:Z|[+-][012][0-9]:[0123456][0-9])?$/u.test(A)))throw new u(g,v,A);return("string"==typeof A?new Date(A):A).toISOString().replace("Z","")}var Te=S[v];if(Te)return b(S,g,Te,A);throw new Error("Unknown type '".concat(v,"' at '").concat(g,"'"))},_.decode=function T(S,g,v,A){if("string"==typeof v&&!v.endsWith("?")&&"void"!==v&&null==A)throw new Error("Invalid type at '".concat(g,"', cannot be null"));if(Array.isArray(v)){for(var O=0,w=v;O<w.length;O++){var k=w[O];if(k===A)return A;if(Array.isArray(A)&&2===A.length&&k===A[0])return A[0];if(Array.isArray(k)&&2===k.length){if(k[0]===A)return[A,T(S,"".concat(g,".").concat(k[0]),k[1],{})];if(Array.isArray(A)&&2===A.length&&k[0]===A[0])return[A[0],T(S,"".concat(g,".").concat(k[0]),k[1],A[1])]}}throw new u(g,v,A)}if("object"==typeof v){if("object"!=typeof A)throw new u(g,v,A);for(var U={},me=0,$=Object.keys(v);me<$.length;me++){var re=$[me];U[re]=T(S,"".concat(g,".").concat(re),v[re],A[re])}return U}if(v.endsWith("?"))return null==A?null:T(S,g,v.slice(0,v.length-1),A);if(v.endsWith("[]")){if(!Array.isArray(A))throw new u(g,v,A);return A.map(function(Fe,Je){return T(S,"".concat(g,"[").concat(Je,"]"),v.slice(0,v.length-2),Fe)})}if(m.indexOf(v)>=0)return s(g,v,A);if("bytes"!==v){if("bigint"===v){if("number"!=typeof A&&("string"!=typeof A||!/^-?[0-9]+$/u.test(A)))throw new u(g,v,A);return BigInt(A)}if("cpf"===v){if("string"!=typeof A)throw new u(g,v,A);return A}if("cnpj"===v){if("string"!=typeof A)throw new u(g,v,A);return A}if("date"===v){if("string"!=typeof A||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(A))throw new u(g,v,A);var Te=parseInt(A.split("-")[2],10),fe=parseInt(A.split("-")[1],10)-1,_e=parseInt(A.split("-")[0],10),le=new Date(_e,fe,Te);if(le.getFullYear()!==_e||le.getMonth()!==fe||le.getDate()!==Te)throw new u(g,v,A);return le}if("datetime"===v){if("string"!=typeof A||!/^[0-9]{4}-[01][0-9]-[0123][0-9]T[012][0-9]:[0123456][0-9]:[0123456][0-9](?:\.[0-9]{1,6})?Z?$/u.test(A))throw new u(g,v,A);return new Date("".concat(A.endsWith("Z")?A:A.concat("Z")))}var Ee=S[v];if(Ee)return T(S,g,Ee,A);throw new Error("Unknown type '".concat(v,"' at '").concat(g,"'"))}if("string"!=typeof A)throw new u(g,"".concat(v," (base 64)"),A);try{return Uint8Array.from(atob(A),function(Fe){return Fe.charCodeAt(0)})}catch(Fe){throw new u(g,"".concat(v," (base 64)"),A)}}},2837:function(je,_){"use strict";var m,l=this&&this.__extends||(m=function(u,s){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,T){b.__proto__=T}||function(b,T){for(var S in T)Object.prototype.hasOwnProperty.call(T,S)&&(b[S]=T[S])})(u,s)},function(u,s){if("function"!=typeof s&&null!==s)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function b(){this.constructor=u}m(u,s),u.prototype=null===s?Object.create(s):(b.prototype=s.prototype,new b)});Object.defineProperty(_,"__esModule",{value:!0}),_.SdkgenErrorWithData=_.SdkgenError=void 0;var i=function(m){function u(){return null!==m&&m.apply(this,arguments)||this}return l(u,m),Object.defineProperty(u.prototype,"type",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),u.prototype.toJSON=function(){return{message:this.message,type:this.type}},u}(Error);_.SdkgenError=i;var d=function(m){function u(s,b){var T=m.call(this,s)||this;return T.data=b,T}return l(u,m),u.prototype.toJSON=function(){return{data:this.data,message:this.message,type:this.type}},u}(i);_.SdkgenErrorWithData=d},2062:function(je,_,l){"use strict";var i=this&&this.__awaiter||function(g,v,A,O){return new(A||(A=Promise))(function(k,U){function me(Te){try{re(O.next(Te))}catch(fe){U(fe)}}function $(Te){try{re(O.throw(Te))}catch(fe){U(fe)}}function re(Te){Te.done?k(Te.value):function w(k){return k instanceof A?k:new A(function(U){U(k)})}(Te.value).then(me,$)}re((O=O.apply(g,v||[])).next())})},d=this&&this.__generator||function(g,v){var O,w,k,U,A={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return U={next:me(0),throw:me(1),return:me(2)},"function"==typeof Symbol&&(U[Symbol.iterator]=function(){return this}),U;function me(re){return function(Te){return function $(re){if(O)throw new TypeError("Generator is already executing.");for(;A;)try{if(O=1,w&&(k=2&re[0]?w.return:re[0]?w.throw||((k=w.return)&&k.call(w),0):w.next)&&!(k=k.call(w,re[1])).done)return k;switch(w=0,k&&(re=[2&re[0],k.value]),re[0]){case 0:case 1:k=re;break;case 4:return A.label++,{value:re[1],done:!1};case 5:A.label++,w=re[1],re=[0];continue;case 7:re=A.ops.pop(),A.trys.pop();continue;default:if(!(k=(k=A.trys).length>0&&k[k.length-1])&&(6===re[0]||2===re[0])){A=0;continue}if(3===re[0]&&(!k||re[1]>k[0]&&re[1]<k[3])){A.label=re[1];break}if(6===re[0]&&A.label<k[1]){A.label=k[1],k=re;break}if(k&&A.label<k[2]){A.label=k[2],A.ops.push(re);break}k[2]&&A.ops.pop(),A.trys.pop();continue}re=v.call(g,A)}catch(Te){re=[6,Te],w=0}finally{O=k=0}if(5&re[0])throw re[1];return{value:re[0]?re[1]:void 0,done:!0}}([re,Te])}}};Object.defineProperty(_,"__esModule",{value:!0}),_.SdkgenHttpClient=void 0;var m=l(4602);function u(g){for(var v="",A=0;A<2*g;++A)v+="0123456789abcdef"[Math.floor(16*Math.random())];return v}var s=u(20);function b(){try{var g=localStorage.getItem("deviceId");return g||(g=s,localStorage.setItem("deviceId",g)),g}catch(v){}return s}function T(g,v){return v in g}var S=function(){function g(v,A,O){this.astJson=A,this.errClasses=O,this.extra=new Map,this.successHook=function(){},this.errorHook=function(){},this.baseUrl=v}return g.prototype.makeRequest=function(v,A){var O,w;return i(this,void 0,void 0,function(){var k,U,me,$,re,Te=this;return d(this,function(fe){switch(fe.label){case 0:if(!(k=this.astJson.functionTable[v]))throw new Error("Unknown function ".concat(v));return U={},this.extra.forEach(function(_e,le){U[le]=_e}),me={args:(0,m.encode)(this.astJson.typeTable,"".concat(v,".args"),k.args,A),deviceInfo:{id:b(),language:navigator.language,platform:{browserUserAgent:navigator.userAgent},timezone:"object"==typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:null,type:"web",version:null!==(w=null===(O=document.currentScript)||void 0===O?void 0:O.getAttribute("src"))&&void 0!==w?w:""},extra:U,name:v,requestId:u(16),version:3},[4,new Promise(function(_e,le){var Ee=new XMLHttpRequest;Ee.open("POST","".concat(Te.baseUrl,"/").concat(v)),Ee.setRequestHeader("Content-Type","application/sdkgen"),Ee.onreadystatechange=function(){if(4===Ee.readyState)try{var Fe=JSON.parse(Ee.responseText);try{T(Fe,"error")&&Fe.error?(le(Fe.error),Te.errorHook(Fe.error,v,A)):_e(T(Fe,"result")?Fe.result:null)}catch(ot){var Je={message:"".concat(ot),type:"Fatal"};le(Je),Te.errorHook(Je,v,A)}}catch(ot){le(Je={message:"Falha de conex\xe3o com o servidor",type:"Fatal"}),Te.errorHook(Je,v,A)}},Ee.send(JSON.stringify(me))}).catch(function(_e){if(Te.errorHook(_e,v,A),T(_e,"type")&&T(_e,"message")&&"string"==typeof _e.type&&"string"==typeof _e.message){var le=Te.errClasses[_e.type];if(le){var Ee=Te.astJson.errors.find(function(Fe){return Array.isArray(Fe)?Fe[0]===_e.type:Fe===_e.type});if(Ee)throw Array.isArray(Ee)&&T(_e,"data")?new le(_e.message,(0,m.decode)(Te.astJson.typeTable,"".concat(le.name,".data"),Ee[1],_e.data)):new le(_e.message,void 0)}throw new Te.errClasses.Fatal("".concat(_e.type,": ").concat(_e.message))}throw _e})];case 1:return $=fe.sent(),re=(0,m.decode)(this.astJson.typeTable,"".concat(v,".ret"),k.ret,$),this.successHook(re,v,A),[2,re]}})})},g}();_.SdkgenHttpClient=S},4539:function(je,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,u,s,b){void 0===b&&(b=s),Object.defineProperty(m,b,{enumerable:!0,get:function(){return u[s]}})}:function(m,u,s,b){void 0===b&&(b=s),m[b]=u[s]}),d=this&&this.__exportStar||function(m,u){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,m,s)};Object.defineProperty(_,"__esModule",{value:!0}),d(l(2837),_),d(l(2062),_)},3905:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateCSharpServerSource=void 0;const i=l(6676),d=l(4510);_.generateCSharpServerSource=function m(u){let s="using System;\nusing System.Collections.Generic;\nusing System.Globalization;\nusing System.Numerics;\nusing System.Text.Json;\nusing System.Threading.Tasks;\nusing Sdkgen.Runtime;\n\nnamespace SdkgenGenerated\n{\n public abstract class Api : BaseApi\n {";for(const b of u.operations){const T=b.returnType instanceof i.VoidPrimitiveType?"":`<${(0,d.generateTypeName)(b.returnType)}>`;s+=`\n public virtual Task${T} ${(0,d.capitalize)(b.name)}(${["Context ctx",...b.args.map(S=>`${(0,d.generateTypeName)(S.type)} ${(0,d.ident)(S.name)}`)].join(", ")})\n {\n return Task.FromException${T}(new FatalException("Function '${b.name}' not implemented."));\n }\n`}s+="\n public async Task ExecuteFunction(Context context_, Utf8JsonWriter resultWriter_)\n {\n switch (context_.Name)\n {";for(const b of u.operations){s+=`\n case ${JSON.stringify(b.name)}:\n {`;for(const T of b.args)s+=`\n JsonElement ${T.name}Json_;\n if (!context_.Args.TryGetValue(${JSON.stringify(T.name)}, out ${T.name}Json_))\n {\n ${T.type instanceof i.OptionalType?`${T.name}Json_ = new JsonElement()`:`throw new FatalException("'${b.name}().args.${T.name}' must be set to a value of type ${T.type.name}.");`}\n }\n ${(0,d.generateTypeName)(T.type)} ${(0,d.ident)(T.name)};\n ${(0,d.decodeType)(T.type,`${T.name}Json_`,`"${b.name}().args.${T.name}"`,(0,d.ident)(T.name)).replace(/\n/gu,"\n ")}`;s+=b.returnType instanceof i.VoidPrimitiveType?`\n await ${(0,d.capitalize)(b.name)}(${["context_",...b.args.map(T=>(0,d.ident)(T.name))].join(", ")});\n resultWriter_.WriteNullValue();`:`\n var result_ = await ${(0,d.capitalize)(b.name)}(${["context_",...b.args.map(T=>(0,d.ident)(T.name))].join(", ")});\n ${(0,d.encodeType)(b.returnType,"result_",`"${b.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 b of u.structTypes)s+=(0,d.generateStruct)(b);for(const b of u.enumTypes)s+=(0,d.generateEnum)(b);s+=`\n public string GetAstJson() => @"${JSON.stringify((0,i.astToJson)(u),null,4).replace(/"/gu,'""').replace(/\n/gu,"\n ")}";\n }\n`;for(const b of u.errors)s+=`\n public class ${b.name}Exception : SdkgenException\n {\n public ${b.name}Exception(string message, Exception? inner = null) : base("${b.name}", message, inner) { }\n }\n`;return s+="\n}\n",s}},4510:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateEnum=_.generateStruct=_.encodeType=_.decodeType=_.generateTypeName=_.capitalize=_.ident=void 0;const i=l(6676),d=["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],u=[i.BigIntPrimitiveType,i.DatePrimitiveType,i.DateTimePrimitiveType,i.FloatPrimitiveType,i.IntPrimitiveType,i.MoneyPrimitiveType,i.UIntPrimitiveType];function s(O){return d.includes(O)?`@${O}`:O}function b(O){return O[0].toUpperCase()+O.slice(1)}function T(O){switch(O.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`${T(O.base)}?`;case i.ArrayType:return`List<${T(O.base)}>`;case i.StructType:case i.EnumType:return O.name;case i.TypeReference:return T(O.type);default:throw new Error(`BUG: generateTypeName with ${O.constructor.name}`)}}function S(O,w,k,U,me=1,$=!0){switch(O.constructor){case i.IntPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.Number || !${w}.TryGetInt32(out ${U}))\n {\n throw new FatalException($"'{${k}}' must be an integer");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.UIntPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.Number || !${w}.TryGetUInt32(out ${U}))\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 (${w}.ValueKind != JsonValueKind.Number || !${w}.TryGetDecimal(out ${U}) || ${U} % 1 != 0)\n {\n throw new FatalException($"'{${k}}' must be an integer amount of cents.");\n }\n ${U} /= 100;\n `.replace(/\n {16}/gu,"\n").trim();case i.FloatPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.Number || !${w}.TryGetDouble(out ${U}))\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 (${w}.ValueKind != JsonValueKind.String || !BigInteger.TryParse(${w}.GetString(), out ${U}))\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 (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a string.");\n }\n ${U} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.HtmlPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid HTML string.");\n }\n ${U} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.CpfPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid CPF string.");\n }\n ${U} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.CnpjPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid CNPJ string.");\n }\n ${U} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.EmailPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid email.");\n }\n ${U} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.UrlPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid URL string.");\n }\n ${U} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.UuidPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid UUID.");\n }\n ${U} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.HexPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid hex string.");\n }\n ${U} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.Base64PrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a base64 string.");\n }\n ${U} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.XmlPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a XML string.");\n }\n ${U} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.BoolPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.True && ${w}.ValueKind != JsonValueKind.False)\n {\n throw new FatalException($"'{${k}}' must be either true or false.");\n }\n ${U} = ${w}.GetBoolean();\n `.replace(/\n {16}/gu,"\n").trim();case i.BytesPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a string.");\n }\n try\n {\n ${U} = Convert.FromBase64String(${w}.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 S(O.type,w,k,U,me);case i.OptionalType:if(u.includes(O.base.constructor)){const re=`${U.replace(/[^0-9a-zA-Z]/gu,"")}Tmp`;return`\n if (${w}.ValueKind == JsonValueKind.Null || ${w}.ValueKind == JsonValueKind.Undefined)\n {\n ${U} = null;\n }\n else\n {\n ${T(O.base)} ${re};\n ${S(O.base,w,k,re,me,!1).replace(/\n/gu,"\n ")}\n ${U} = ${re};\n }\n `.replace(/\n {20}/gu,"\n").trim()}return`\n if (${w}.ValueKind == JsonValueKind.Null || ${w}.ValueKind == JsonValueKind.Undefined)\n {\n ${U} = null;\n }\n else\n {\n ${S(O.base,w,k,U,me,!1).replace(/\n/gu,"\n ")}\n }\n `.replace(/\n {20}/gu,"\n").trim();case i.EnumType:case i.StructType:return`${U} = Decode${O.name}(${w}, ${k});`;case i.JsonPrimitiveType:return $?`\n if (${w}.ValueKind == JsonValueKind.Null || ${w}.ValueKind == JsonValueKind.Undefined)\n {\n throw new FatalException($"'{${k}}' can't be null.");\n }\n ${U} = ${w};\n `.replace(/\n {16}/gu,"\n").trim():`${U} = ${w};`;case i.DateTimePrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${w}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${U}) || DateTime.TryParseExact(${w}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF'Z'", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${U})))\n {\n throw new FatalException($"'{${k}}' must be a datetime.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.DatePrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${w}.GetString(), "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${U})))\n {\n throw new FatalException($"'{${k}}' must be a date.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.ArrayType:return`\n if (${w}.ValueKind != JsonValueKind.Array)\n {\n throw new FatalException($"'{${k}}' must be a date.");\n }\n ${U} = new ${T(O)}();\n for (var i${me} = 0; i${me} < ${w}.GetArrayLength(); ++i${me})\n {\n ${T(O.base)} element${me};\n ${S(O.base,`${w}[i${me}]`,`$"{${k}}[{i${me}}]"`,`element${me}`,me+1).replace(/\n/gu,"\n ")}\n ${U}.Add(element${me});\n }\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${O.constructor.name}`)}}function g(O,w,k,U=1){switch(O.constructor){case i.StringPrimitiveType:return`resultWriter_.WriteStringValue(${w});`;case i.FloatPrimitiveType:case i.UIntPrimitiveType:case i.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${w});`;case i.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(Math.Round(${w} * 100));`;case i.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${w}.ToString());`;case i.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${w});`;case i.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${w}));`;case i.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${w}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"));`;case i.DatePrimitiveType:return`resultWriter_.WriteStringValue(${w}.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(${w});`;case i.OptionalType:{let me=O.base;for(;me instanceof i.TypeReference;)me=me.type;return`\n if (${w} == null)\n {\n resultWriter_.WriteNullValue();\n }\n else\n {\n ${g(me,m.includes(me.constructor)?w:`${w}.Value`,k,U).replace(/\n/gu,"\n ")}\n }`.replace(/\n {16}/gu,"\n").trim()}case i.TypeReference:return g(O.type,w,k,U);case i.EnumType:case i.StructType:return`Encode${O.name}(${w}, resultWriter_, ${k});`;case i.JsonPrimitiveType:return`${w}.WriteTo(resultWriter_);`;case i.ArrayType:return`\n resultWriter_.WriteStartArray();\n for (var i${U} = 0; i${U} < ${w}.Count; ++i${U})\n {\n ${g(O.base,`${w}[i${U}]`,`$"{${k}}[{i${U}}]"`,U+1).replace(/\n/gu,"\n ")}\n }\n resultWriter_.WriteEndArray();\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${O.constructor.name}`)}}_.ident=s,_.capitalize=b,_.generateTypeName=T,_.decodeType=S,_.encodeType=g,_.generateStruct=function v(O){return`\n public class ${O.name}\n {${O.fields.map(w=>`\n public ${T(w.type)} ${b(w.name)};`).join("")}\n public ${O.name}(${O.fields.map(w=>`${T(w.type)} ${s(w.name)}`).join(", ")})\n {${O.fields.map(w=>`\n ${b(w.name)} = ${s(w.name)};`).join("")}\n }\n }\n\n ${O.name} Decode${O.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.Object)\n {\n throw new FatalException($"'{path_}' must be an object.");\n }\n${O.fields.map(w=>` JsonElement ${w.name}Json_;\n if (!json_.TryGetProperty(${JSON.stringify(w.name)}, out ${w.name}Json_))\n {\n ${w.type instanceof i.OptionalType?`${w.name}Json_ = new JsonElement();`:`throw new FatalException($"'{path_}.${w.name}' must be set to a value of type ${w.type.name}.");`}\n }\n ${T(w.type)} ${s(w.name)};\n ${S(w.type,`${w.name}Json_`,`$"{path_}.${w.name}"`,s(w.name)).replace(/\n/gu,"\n ")}`).join("\n")}\n return new ${O.name}(${O.fields.map(w=>s(w.name)).join(", ")});\n }\n\n void Encode${O.name}(${O.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {\n resultWriter_.WriteStartObject();\n ${O.fields.map(w=>`resultWriter_.WritePropertyName(${JSON.stringify(w.name)});\n ${g(w.type,`obj_.${b(w.name)}`,`$"{path_}.${w.name}"`).replace(/\n/gu,"\n ")}`).join("\n ")}\n resultWriter_.WriteEndObject();\n }\n`},_.generateEnum=function A(O){return`\n public enum ${O.name}\n {${O.values.map(({value:w})=>`\n ${b(w)}`).join(",\n ")}\n }\n\n ${O.name} Decode${O.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{path_}' must be a string.");\n }\n var value = json_.GetString();${O.values.map(({value:w})=>`\n if (value == "${w}")\n {\n return ${O.name}.${b(w)};\n }`).join("")}\n throw new FatalException($"'{path_}' must be one of: (${O.values.map(({value:w})=>`'${w}'`).join(", ")}).");\n }\n\n void Encode${O.name}(${O.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {${O.values.map(({value:w})=>`\n if (obj_ == ${O.name}.${b(w)})\n {\n resultWriter_.WriteStringValue("${w}");\n }`).join("")}\n }\n`}},7179:function(je,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,u,s,b){void 0===b&&(b=s),Object.defineProperty(m,b,{enumerable:!0,get:function(){return u[s]}})}:function(m,u,s,b){void 0===b&&(b=s),m[b]=u[s]}),d=this&&this.__exportStar||function(m,u){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,m,s)};Object.defineProperty(_,"__esModule",{value:!0}),d(l(3905),_)},1911:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateDartClientSource=void 0;const i=l(6676),d=l(5235);_.generateDartClientSource=function m(u){let s="";s+="import 'dart:typed_data';\n\nimport 'package:flutter/widgets.dart';\nimport 'package:sdkgen_runtime/types.dart';\nimport 'package:sdkgen_runtime/http_client.dart';\n\n";for(const b of u.enumTypes)s+=(0,d.generateEnum)(b),s+="\n";for(const b of u.structTypes)s+=(0,d.generateClass)(b),s+="\n";for(const b of u.errors)s+=(0,d.generateErrorClass)(b),s+="\n";s+=`class ApiClient extends SdkgenHttpClient {\n ApiClient(String baseUrl, [BuildContext? context]) : super(baseUrl, context, _typeTable, _fnTable, _errTable);\n${u.operations.filter(b=>b.annotations.every(T=>!(T instanceof i.HiddenAnnotation))).map(b=>`\n ${b.returnType instanceof i.VoidPrimitiveType?"Future<void> ":`Future<${(0,d.generateTypeName)(b.returnType)}> `}${b.name}(${0===b.args.length?"":`{${b.args.map(T=>`${T.type instanceof i.OptionalType?"":"required "}${(0,d.generateTypeName)(T.type)} ${(0,d.mangle)(T.name)}`).join(", ")}}`}) async { ${b.returnType instanceof i.VoidPrimitiveType?"":"return "}${(0,d.cast)(`await makeRequest('${b.name}', {${b.args.map(T=>`'${T.name}': ${(0,d.mangle)(T.name)}`).join(", ")}})`,b.returnType)}; }`).join("")}\n}\n\n`,s+="var _typeTable = {\n";for(const b of u.structTypes){s+=` '${b.name}': StructTypeDescription(\n`,s+=` ${b.name},\n`,s+=" {\n";for(const T of b.fields)s+=` '${T.name}': '${T.type.name}',\n`;s+=" },\n",s+=` (Map fields) => ${b.name}(\n`;for(const T of b.fields)s+=` ${(0,d.mangle)(T.name)}: ${(0,d.cast)(`fields['${T.name}']`,T.type)},\n`;s+=" ),\n",s+=` (${b.name} obj) => ({\n`;for(const T of b.fields)s+=` '${T.name}': obj.${(0,d.mangle)(T.name)},\n`;s+=" }),\n",s+=" ),\n"}for(const b of u.enumTypes)s+=` '${b.name}': EnumTypeDescription(${b.name}, ${b.name}.values, [\n ${b.values.map(T=>`'${T.value}'`).join(",\n ")}\n ]),\n`;s+="};\n\n",s+="var _fnTable = {\n";for(const b of u.operations){s+=` '${b.name}': FunctionDescription('${b.returnType.name}', {\n`;for(const T of b.args)s+=` '${T.name}': '${T.type.name}',\n`;s+=" }),\n"}s+="};\n\n",s+="var _errTable = {\n";for(const b of u.errors)s+=` '${b.name}': SdkgenErrorDescription('${b.dataType.name}', (msg, data) => ${b.name}(msg${b.dataType instanceof i.VoidPrimitiveType?"":", data"})),\n`;return s+="};\n",s}},5235:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateClass=_.cast=_.generateErrorClass=_.generateTypeName=_.generateEnum=_.mangle=void 0;const i=l(6676);function d(O){return["abstract","as","assert","async","await","bool","break","case","catch","class","const","continue","covariant","default","deferred","do","double","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","int","interface","is","library","mixin","new","null","on","operator","part","rethrow","return","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","while","with","yield"].includes(O)?`$${O}`:O}function u(O){switch(O.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`${u(O.base)}?`;case i.ArrayType:return`List<${u(O.base)}>`;case i.StructType:case i.EnumType:return O.name;case i.TypeReference:return u(O.type);default:throw new Error(`BUG: generateTypeName with ${O.constructor.name}`)}}_.mangle=d,_.generateEnum=function m(O){return`enum ${O.name} {\n ${O.values.map(w=>w.value).join(",\n ")}\n}\n`},_.generateTypeName=u,_.generateErrorClass=function s(O){if(O.dataType instanceof i.VoidPrimitiveType)return`class ${O.name} extends SdkgenError {\n ${O.name}(String msg) : super(msg);\n}\n`;const w=u(O.dataType);return`class ${O.name} extends SdkgenErrorWithData<${w}> {\n ${O.name}(String msg, ${w} data) : super(msg, data);\n}\n`},_.cast=function b(O,w){return w instanceof i.OptionalType?`${O} == null ? null : ${b(O,w.base)}`:w instanceof i.ArrayType?`(${O} as List).map((e) => ${b("e",w.base)}).toList()`:w instanceof i.VoidPrimitiveType?O:w instanceof i.FloatPrimitiveType?`(${O} as num).toDouble()`:w instanceof i.MoneyPrimitiveType?`${O} as int`:`${O} as ${u(w)}`},_.generateClass=function A(O){return`class ${O.name} {\n ${O.fields.map(w=>`final ${u(w.type)} ${d(w.name)};`).join("\n ")}\n\n${function T(O){let w=` ${O.name}({\n`;for(const k of O.fields)w+=k.type instanceof i.OptionalType?" ":" required ",w+=`this.${d(k.name)},\n`;return w+=" });\n",w}(O)}\n${function S(O){let w=" bool operator ==(other){\n";return w+=" if (identical(this, other)) return true;\n",w+=` return ${[`other is ${O.name}`,...O.fields.map(k=>`${d(k.name)} == other.${d(k.name)}`)].join(" && ")};\n`,w+=" }\n",w}(O)}\n${function g(O){return` @override\n int get hashCode => hashList([${O.fields.map(w=>d(w.name)).join(", ")}]);\n`}(O)}\n${function v(O){return` String toString() {\n return '${O.name} { ${O.fields.map(w=>`${w.name}: $${d(w.name).startsWith("$")?`{${d(w.name)}}`:d(w.name)}`).join(", ")} }';\n }\n`}(O)}}\n`}},1823:function(je,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,u,s,b){void 0===b&&(b=s),Object.defineProperty(m,b,{enumerable:!0,get:function(){return u[s]}})}:function(m,u,s,b){void 0===b&&(b=s),m[b]=u[s]}),d=this&&this.__exportStar||function(m,u){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,m,s)};Object.defineProperty(_,"__esModule",{value:!0}),d(l(1911),_)},9409:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateAndroidClientSource=void 0;const i=l(6676),d=l(7250);_.generateAndroidClientSource=function m(u,s){let b='@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 g of u.enumTypes)b+=` ${(0,d.generateEnum)(g)}`,b+="\n";b+=" open class Error(val message: String? = null)\n",b+=" data class Response<T>(val error: Error?, val data: T?, val stats: CallStats?)\n\n";for(const g of u.structTypes)b+=` ${(0,d.generateClass)(g)}\n`;const T=[],S=new i.ErrorNode("Connection",new i.VoidPrimitiveType);T.push(S.name),b+=` ${(0,d.generateErrorClass)(S)}`;for(const g of u.errors)b+=` ${(0,d.generateErrorClass)(g)}`,T.push(g.name);return T.length>0&&(b+=`\n enum class ErrorType {\n ${T.join(",\n ")};\n\n fun type(): Class<out ApiClient.Error> {\n return when (this) {\n ${T.map(g=>`${g} -> ApiClient.${g}::class.java`).join("\n ")}\n else -> ApiClient.Error::class.java\n }\n }\n }\n\n`),b+=" private val sdkgenIOScope = CoroutineScope(IO + SupervisorJob())\n\n",b+=u.operations.filter(g=>g.annotations.every(v=>!(v instanceof i.HiddenAnnotation))).map(g=>{let v="";const A=[];A.push("timeoutMillis: Long? = null"),s&&A.push(`callback: ((response: Response<${(0,d.generateKotlinTypeName)(g.returnType)}>) -> Unit)? = null`);const O=g.args.map(w=>`${(0,d.mangle)(w.name)}: ${(0,d.generateKotlinTypeName)(w.type)}`).concat(A);return v+=` fun ${(0,d.mangle)(g.name)}(\n ${O.join(",\n ")}\n ): Deferred<Response<out ${(0,d.generateKotlinTypeName)(g.returnType)}>> = sdkgenIOScope.async {\n`,g.args.length>0?(v+=" val bodyArgs = JsonObject().apply {\n",v+=g.args.map(w=>` ${(0,d.generateJsonAddRepresentation)(w.type,w.name)}`).join("\n"),v+="\n }\n"):v+=" val bodyArgs: JsonObject? = null",v+="\n",v+=` val call = makeRequest("${g.name}", bodyArgs, timeoutMillis)\n`,v+=` val response: Response<${(0,d.generateKotlinTypeName)(g.returnType)}> = handleCallResponse(call)\n`,s&&(v+=" withContext(Dispatchers.Main) { callback?.invoke(response) } \n"),v+=" return@async response\n",v+=" }\n",v}).join("\n"),b+='\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',b+="}\n",b}},7250:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateErrorClass=_.generateClass=_.getAnnotation=_.generateEnum=_.generateJsonAddRepresentation=_.mangle=_.generateKotlinTypeName=void 0;const i=l(6676);function d(g){switch(g.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`${d(g.base)}?`;case i.ArrayType:return`ArrayList<${d(g.base)}>`;case i.StructType:case i.EnumType:return g.name;case i.TypeReference:return d(g.type);default:throw new Error(`BUG: generateKotlinTypeName with ${g.constructor.name}`)}}function m(g){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(g)?`_${g}`:g}function b(g,v){let A="";switch(v&&v!==m(v)&&(A+=` @SerializedName("${v}")\n`),g.constructor){case i.DatePrimitiveType:A+=" @JsonAdapter(DateAdapter::class)\n";break;case i.DateTimePrimitiveType:A+=" @JsonAdapter(DateTimeAdapter::class)\n";break;case i.ArrayType:case i.OptionalType:A+=b(g.base)}return A}_.generateKotlinTypeName=d,_.mangle=m,_.generateJsonAddRepresentation=function u(g,v){switch(g.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("${v}", ${m(v)})`;case i.OptionalType:return u(g.base,v);case i.DatePrimitiveType:return`addProperty("${v}", ${m(v)}?.let { DateAdapter.sdf.format(it.time)}) `;case i.DateTimePrimitiveType:return`addProperty("${v}", ${m(v)}?.let { DateTimeAdapter.sdf.format(it.time)})`;case i.ArrayType:case i.StructType:case i.EnumType:case i.TypeReference:case i.JsonPrimitiveType:return`add("${v}", gson.toJsonTree(${m(v)}))`;case i.VoidPrimitiveType:return"";case i.BytesPrimitiveType:return`addProperty("${v}", Base64.encodeToString(${m(v)}, Base64.NO_WRAP))`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${g.constructor.name}`)}},_.generateEnum=function s(g){let v="@Parcelize \n";return v+=` enum class ${g.name} : Parcelable { ${g.values.map(A=>m(A.value)).join(", ")} }\n`,v},_.getAnnotation=b,_.generateClass=function T(g){let v="@Parcelize\n";return v+=` data class ${g.name}(\n${g.fields.map(A=>{let O=b(A.type,A.name);return O+=` var ${m(A.name)}: ${d(A.type)}${A.type.constructor===i.OptionalType?" = null":""}`,O}).join(",\n")}\n ) : Parcelable\n`,v},_.generateErrorClass=function S(g){return`class ${g.name}(message: String) : Error(message)\n`}},7402:function(je,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,u,s,b){void 0===b&&(b=s),Object.defineProperty(m,b,{enumerable:!0,get:function(){return u[s]}})}:function(m,u,s,b){void 0===b&&(b=s),m[b]=u[s]}),d=this&&this.__exportStar||function(m,u){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,m,s)};Object.defineProperty(_,"__esModule",{value:!0}),d(l(9409),_)},1942:function(je,_,l){"use strict";var i=this&&this.__rest||function(Re,ye){var Xe={};for(var dt in Re)Object.prototype.hasOwnProperty.call(Re,dt)&&ye.indexOf(dt)<0&&(Xe[dt]=Re[dt]);if(null!=Re&&"function"==typeof Object.getOwnPropertySymbols){var bt=0;for(dt=Object.getOwnPropertySymbols(Re);bt<dt.length;bt++)ye.indexOf(dt[bt])<0&&Object.prototype.propertyIsEnumerable.call(Re,dt[bt])&&(Xe[dt[bt]]=Re[dt[bt]])}return Xe};Object.defineProperty(_,"__esModule",{value:!0}),_.AstRoot=_.FunctionOperation=_.TypeDefinition=_.StructType=_.TypeReference=_.Spread=_.Field=_.EnumType=_.EnumValue=_.ArrayType=_.OptionalType=_.JsonPrimitiveType=_.XmlPrimitiveType=_.Base64PrimitiveType=_.HtmlPrimitiveType=_.HexPrimitiveType=_.UuidPrimitiveType=_.UrlPrimitiveType=_.EmailPrimitiveType=_.CnpjPrimitiveType=_.CpfPrimitiveType=_.MoneyPrimitiveType=_.VoidPrimitiveType=_.BytesPrimitiveType=_.BoolPrimitiveType=_.DateTimePrimitiveType=_.DatePrimitiveType=_.BigIntPrimitiveType=_.FloatPrimitiveType=_.UIntPrimitiveType=_.IntPrimitiveType=_.StringPrimitiveType=_.PrimitiveType=_.HiddenAnnotation=_.RestAnnotation=_.ArgDescriptionAnnotation=_.ThrowsAnnotation=_.DescriptionAnnotation=_.Annotation=_.ErrorNode=_.Type=_.AstNode=void 0;const d=l(9037);class m{constructor(){this.location=new d.TokenLocation,Object.defineProperty(this,"location",{enumerable:!1})}at(ye){return this.location=ye.location,this}atLocation(ye){return this.location=ye,this}}_.AstNode=m;class u extends m{toJSON(){const ye=Object.assign({},this);return i(ye,["name"])}}_.Type=u,_.ErrorNode=class s extends m{constructor(ye,Xe){super(),this.name=ye,this.dataType=Xe}};class b extends m{}_.Annotation=b,_.DescriptionAnnotation=class T extends b{constructor(ye){super(),this.text=ye}},_.ThrowsAnnotation=class S extends b{constructor(ye){super(),this.error=ye}},_.ArgDescriptionAnnotation=class g extends b{constructor(ye,Xe){super(),this.argName=ye,this.text=Xe}},_.RestAnnotation=class v extends b{constructor(ye,Xe,dt,bt,Ot,lt){super(),this.method=ye,this.path=Xe,this.pathVariables=dt,this.queryVariables=bt,this.headers=Ot,this.bodyVariable=lt}},_.HiddenAnnotation=class A extends b{};class O extends u{}_.PrimitiveType=O,_.StringPrimitiveType=class w extends O{constructor(){super(...arguments),this.name="string"}},_.IntPrimitiveType=class k extends O{constructor(){super(...arguments),this.name="int"}},_.UIntPrimitiveType=class U extends O{constructor(){super(...arguments),this.name="uint"}},_.FloatPrimitiveType=class me extends O{constructor(){super(...arguments),this.name="float"}},_.BigIntPrimitiveType=class $ extends O{constructor(){super(...arguments),this.name="bigint"}},_.DatePrimitiveType=class re extends O{constructor(){super(...arguments),this.name="date"}},_.DateTimePrimitiveType=class Te extends O{constructor(){super(...arguments),this.name="datetime"}},_.BoolPrimitiveType=class fe extends O{constructor(){super(...arguments),this.name="bool"}},_.BytesPrimitiveType=class _e extends O{constructor(){super(...arguments),this.name="bytes"}},_.VoidPrimitiveType=class le extends O{constructor(){super(...arguments),this.name="void"}},_.MoneyPrimitiveType=class Ee extends O{constructor(){super(...arguments),this.name="money"}},_.CpfPrimitiveType=class Fe extends O{constructor(){super(...arguments),this.name="cpf"}},_.CnpjPrimitiveType=class Je extends O{constructor(){super(...arguments),this.name="cnpj"}},_.EmailPrimitiveType=class ot extends O{constructor(){super(...arguments),this.name="email"}},_.UrlPrimitiveType=class q extends O{constructor(){super(...arguments),this.name="url"}},_.UuidPrimitiveType=class Ae extends O{constructor(){super(...arguments),this.name="uuid"}},_.HexPrimitiveType=class X extends O{constructor(){super(...arguments),this.name="hex"}},_.HtmlPrimitiveType=class ce extends O{constructor(){super(...arguments),this.name="html"}},_.Base64PrimitiveType=class Se extends O{constructor(){super(...arguments),this.name="base64"}},_.XmlPrimitiveType=class ne extends O{constructor(){super(...arguments),this.name="xml"}},_.JsonPrimitiveType=class $e extends O{constructor(){super(...arguments),this.name="json"}},_.OptionalType=class ge extends u{constructor(ye){super(),this.base=ye}get name(){return`${this.base.name}?`}},_.ArrayType=class Ze extends u{constructor(ye){super(),this.base=ye}get name(){return`${this.base.name}[]`}},_.EnumValue=class Me extends m{constructor(ye){super(),this.value=ye,this.annotations=[],this.struct=null}},_.EnumType=class Ke extends u{constructor(ye){super(),this.values=ye}get hasStructValues(){return this.values.some(ye=>null!==ye.struct)}},_.Field=class mt extends m{constructor(ye,Xe,dt=!1){super(),this.name=ye,this.type=Xe,this.secret=dt,this.annotations=[]}},_.Spread=class Dt extends m{constructor(ye){super(),this.typeReference=ye}},_.TypeReference=class ke extends u{constructor(ye){super(),this.name=ye}},_.StructType=class Ye extends u{constructor(ye){super(),this.fieldsAndSpreads=ye,this.fields=[]}},_.TypeDefinition=class Z extends m{constructor(ye,Xe){super(),this.name=ye,this.type=Xe,this.annotations=[]}},_.FunctionOperation=class pe extends m{constructor(ye,Xe,dt){super(),this.name=ye,this.fieldsAndSpreads=Xe,this.returnType=dt,this.annotations=[],this.args=[]}},_.AstRoot=class we{constructor(ye=[],Xe=[],dt=[]){this.typeDefinitions=ye,this.operations=Xe,this.errors=dt,this.structTypes=[],this.enumTypes=[],this.warnings=[]}}},9747:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.compatibilityIssues=void 0;const i=l(1942);function d(s,b,T,S){var g,v;if(T instanceof i.TypeReference)d(s,b,T.type,S);else if(S instanceof i.TypeReference)d(s,b,T,S.type);else if(T instanceof i.OptionalType||!(S instanceof i.OptionalType))if(T instanceof i.OptionalType&&S instanceof i.OptionalType)d(s,b,T.base,S.base);else{if(T instanceof i.OptionalType&&!(S instanceof i.OptionalType))return b.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 d(s,b,T.base,S);if(T instanceof i.ArrayType&&S instanceof i.ArrayType)d(s,b,T.base,S.base);else if(T instanceof i.StructType&&S instanceof i.StructType)for(const A of S.fields){const O=T.fields.find(w=>w.name===A.name);if(O)d(`${s}.${O.name}`,b,O.type,A.type);else{if(A.type instanceof i.OptionalType)continue;b.push(`${s}.${A.name} didn't exist before and isn't optional. Make it optional.`)}}else if(!(T instanceof i.UIntPrimitiveType&&S instanceof i.IntPrimitiveType||T instanceof i.IntPrimitiveType&&S instanceof i.FloatPrimitiveType||T instanceof i.MoneyPrimitiveType&&S instanceof i.IntPrimitiveType||T instanceof i.MoneyPrimitiveType&&S instanceof i.UIntPrimitiveType||T instanceof i.UIntPrimitiveType&&S instanceof i.BigIntPrimitiveType||T instanceof i.IntPrimitiveType&&S instanceof i.BigIntPrimitiveType||T instanceof i.MoneyPrimitiveType&&S instanceof i.BigIntPrimitiveType||T instanceof i.BigIntPrimitiveType&&S instanceof i.StringPrimitiveType||T instanceof i.UuidPrimitiveType&&S instanceof i.StringPrimitiveType||T instanceof i.XmlPrimitiveType&&S instanceof i.StringPrimitiveType||T instanceof i.DatePrimitiveType&&S instanceof i.StringPrimitiveType||T instanceof i.DateTimePrimitiveType&&S instanceof i.StringPrimitiveType||T instanceof i.CpfPrimitiveType&&S instanceof i.StringPrimitiveType||T instanceof i.CnpjPrimitiveType&&S instanceof i.StringPrimitiveType||T instanceof i.HexPrimitiveType&&S instanceof i.StringPrimitiveType||T instanceof i.HtmlPrimitiveType&&S instanceof i.StringPrimitiveType||T instanceof i.Base64PrimitiveType&&S instanceof i.StringPrimitiveType||T instanceof i.BytesPrimitiveType&&S instanceof i.StringPrimitiveType||T instanceof i.BytesPrimitiveType&&S instanceof i.Base64PrimitiveType||T instanceof i.UrlPrimitiveType&&S instanceof i.StringPrimitiveType||T instanceof i.EmailPrimitiveType&&S instanceof i.StringPrimitiveType||T instanceof i.EnumType&&S instanceof i.StringPrimitiveType)){if(T instanceof i.EnumType&&S instanceof i.EnumType){for(const A of T.values){const O=S.values.find(w=>w.value===A.value);O?d(`${s}.${A.value}`,b,null!==(g=A.struct)&&void 0!==g?g:new i.StructType([]),null!==(v=O.struct)&&void 0!==v?v:new i.StructType([])):b.push(`The enum at ${s} used to accept the value "${A.value}" that doesn't exist now. Clients that send it will fail.`)}return}T.constructor.name!==S.constructor.name&&b.push(`${s} was ${T.name} and now it is ${S.name}. They are not compatible.`)}}else d(s,b,T,S.base)}function m(s,b,T,S){var g,v;if(T instanceof i.TypeReference)m(s,b,T.type,S);else if(S instanceof i.TypeReference)m(s,b,T,S.type);else if(!(T instanceof i.OptionalType)||S instanceof i.OptionalType)if(T instanceof i.OptionalType&&S instanceof i.OptionalType)m(s,b,T.base,S.base);else{if(!(T instanceof i.OptionalType)&&S instanceof i.OptionalType)return b.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,b,T,S.base);if(T instanceof i.ArrayType&&S instanceof i.ArrayType)m(s,b,T.base,S.base);else if(T instanceof i.StructType&&S instanceof i.StructType)for(const A of T.fields){const O=S.fields.find(w=>w.name===A.name);if(O)m(`${s}.${A.name}`,b,A.type,O.type);else{if(A.type instanceof i.OptionalType)continue;b.push(`${s}.${A.name} used to exist with type ${A.type.name}, but it's now missing. Add it back.`)}}else if(!(T instanceof i.IntPrimitiveType&&S instanceof i.UIntPrimitiveType||T instanceof i.FloatPrimitiveType&&S instanceof i.IntPrimitiveType||T instanceof i.IntPrimitiveType&&S instanceof i.MoneyPrimitiveType||T instanceof i.UIntPrimitiveType&&S instanceof i.MoneyPrimitiveType||T instanceof i.BigIntPrimitiveType&&S instanceof i.UIntPrimitiveType||T instanceof i.BigIntPrimitiveType&&S instanceof i.IntPrimitiveType||T instanceof i.BigIntPrimitiveType&&S instanceof i.MoneyPrimitiveType||T instanceof i.StringPrimitiveType&&S instanceof i.BigIntPrimitiveType||T instanceof i.StringPrimitiveType&&S instanceof i.UuidPrimitiveType||T instanceof i.StringPrimitiveType&&S instanceof i.XmlPrimitiveType||T instanceof i.StringPrimitiveType&&S instanceof i.DatePrimitiveType||T instanceof i.StringPrimitiveType&&S instanceof i.DateTimePrimitiveType||T instanceof i.StringPrimitiveType&&S instanceof i.CpfPrimitiveType||T instanceof i.StringPrimitiveType&&S instanceof i.CnpjPrimitiveType||T instanceof i.StringPrimitiveType&&S instanceof i.HexPrimitiveType||T instanceof i.StringPrimitiveType&&S instanceof i.HtmlPrimitiveType||T instanceof i.StringPrimitiveType&&S instanceof i.Base64PrimitiveType||T instanceof i.StringPrimitiveType&&S instanceof i.BytesPrimitiveType||T instanceof i.Base64PrimitiveType&&S instanceof i.BytesPrimitiveType||T instanceof i.StringPrimitiveType&&S instanceof i.UrlPrimitiveType||T instanceof i.StringPrimitiveType&&S instanceof i.EmailPrimitiveType||T instanceof i.StringPrimitiveType&&S instanceof i.EnumType)){if(T instanceof i.EnumType&&S instanceof i.EnumType){for(const A of S.values){const O=T.values.find(w=>w.value===A.value);O?m(`${s}.${A.value}`,b,null!==(g=O.struct)&&void 0!==g?g:new i.StructType([]),null!==(v=A.struct)&&void 0!==v?v:new i.StructType([])):b.push(`The enum at ${s} now has the value "${A.value}" that didn't exist before. Client will crash if it receives it`)}return}T.constructor.name!==S.constructor.name&&b.push(`${s} was ${T.name} and now it is ${S.name}. They are not compatible.`)}}else m(s,b,T.base,S)}_.compatibilityIssues=function u(s,b){const T=[];for(const S of s.operations){const g=b.operations.find(v=>v.name===S.name);if(g){m(`${S.name}.ret`,T,S.returnType,g.returnType);for(const v of g.args){const A=S.args.find(O=>O.name===v.name);if(A)d(`${S.name}.args.${A.name}`,T,A.type,v.type);else{if(v.type instanceof i.OptionalType)continue;T.push(`${S.name}.args.${v.name} didn't exist before and isn't optional. Make it optional.`)}}}else T.push(`function ${S.name} used to exist, but it's now missing. Add it back.`)}for(const S of s.errors){const g=b.errors.find(v=>v.name===S.name);!g||m(`${S.name}.data`,T,S.dataType,g.dataType)}return T}},6676:function(je,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(u,s,b,T){void 0===T&&(T=b),Object.defineProperty(u,T,{enumerable:!0,get:function(){return s[b]}})}:function(u,s,b,T){void 0===T&&(T=b),u[T]=s[b]}),d=this&&this.__exportStar||function(u,s){for(var b in u)"default"!==b&&!Object.prototype.hasOwnProperty.call(s,b)&&i(s,u,b)};Object.defineProperty(_,"__esModule",{value:!0}),_.jsonToAst=_.astToJson=void 0,d(l(1942),_),d(l(9747),_);var m=l(1557);Object.defineProperty(_,"astToJson",{enumerable:!0,get:function(){return m.astToJson}}),Object.defineProperty(_,"jsonToAst",{enumerable:!0,get:function(){return m.jsonToAst}}),d(l(8053),_),d(l(2701),_),d(l(9037),_)},1557:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.jsonToAst=_.astToJson=void 0;const i=l(1942),d=l(6088),m=l(6569);function u(S){if(S instanceof i.DescriptionAnnotation)return{type:"description",value:S.text};if(S instanceof i.ThrowsAnnotation)return{type:"throws",value:S.error};if(S instanceof i.RestAnnotation)return{type:"rest",value:{bodyVariable:S.bodyVariable,headers:[...S.headers.entries()].sort(([g],[v])=>g.localeCompare(v)),method:S.method,path:S.path,pathVariables:[...S.pathVariables].sort((g,v)=>g.localeCompare(v)),queryVariables:[...S.queryVariables].sort((g,v)=>g.localeCompare(v))}};if(S instanceof i.HiddenAnnotation)return{type:"hidden",value:null};throw new Error(`BUG: annotationToJson with ${S.constructor.name}`)}function s(S){switch(S.type){case"description":return new i.DescriptionAnnotation(S.value);case"throws":return new i.ThrowsAnnotation(S.value);case"rest":{const{method:g,path:v,pathVariables:A,queryVariables:O,headers:w,bodyVariable:k}=S.value;return new i.RestAnnotation(g,v,A,O,new Map(w),k)}case"hidden":return new i.HiddenAnnotation;default:throw new Error(`BUG: annotationFromJson with ${S.type}`)}}_.astToJson=function b(S){var g,v,A;const O={},w={};function k($){return $ instanceof i.ArrayType?`${k($.base)}[]`:$ instanceof i.OptionalType?`${k($.base)}?`:$.name}for(const{name:$,fields:re}of S.structTypes){w[$]={};const Te=w[$];for(const fe of re){Te[fe.name]=k(fe.type);for(const _e of fe.annotations)if(_e instanceof i.DescriptionAnnotation){const le=`type.${$}.${fe.name}`;null!==(g=O[le])&&void 0!==g||(O[le]=[]),O[le].push(u(_e))}}}for(const{name:$,values:re}of S.enumTypes)w[$]=re.map(Te=>Te.struct?[Te.value,Te.struct.name]:Te.value);for(const{name:$,type:re}of S.typeDefinitions)re instanceof i.StructType||re instanceof i.EnumType||(w[$]=k(re));const U={};for(const $ of S.operations){const re={};for(const Te of $.args){re[Te.name]=k(Te.type);for(const fe of Te.annotations)if(fe instanceof i.DescriptionAnnotation){const _e=`fn.${$.name}.${Te.name}`;null!==(v=O[_e])&&void 0!==v||(O[_e]=[]),O[_e].push(u(fe))}}U[$.name]={args:re,ret:k($.returnType)};for(const Te of $.annotations){const fe=`fn.${$.name}`;null!==(A=O[fe])&&void 0!==A||(O[fe]=[]),O[fe].push(u(Te))}}return{annotations:O,errors:S.errors.map($=>$.dataType instanceof i.VoidPrimitiveType?$.name:[$.name,$.dataType.name]),functionTable:U,typeTable:w}},_.jsonToAst=function T(S){var g,v;const A=[],O=[],w=[];function k($,re){var Te;if("string"==typeof $){const _e=m.primitiveToAstClass.get($);return _e?new _e:$.endsWith("?")?new i.OptionalType(k($.slice(0,$.length-1))):$.endsWith("[]")?new i.ArrayType(k($.slice(0,$.length-2))):new i.TypeReference($)}if(Array.isArray($))return new i.EnumType($.map(_e=>{if(Array.isArray(_e)){const[le,Ee]=_e,Fe=new i.EnumValue(le);return w.push([Fe,Ee]),Fe}return new i.EnumValue(_e)}));const fe=[];for(const _e of Object.keys($)){const le=new i.Field(_e,k($[_e]));if(re){const Ee=`type.${re}.${_e}`;for(const Fe of null!==(Te=S.annotations[Ee])&&void 0!==Te?Te:[])le.annotations.push(s(Fe))}fe.push(le)}return new i.StructType(fe)}for(const[$,re]of Object.entries(S.typeTable)){const Te=k(re,$);O.push(new i.TypeDefinition($,Te))}for(const[$,re]of Object.entries(S.functionTable)){const Te=Object.keys(re.args).map(le=>{var Ee;const Fe=new i.Field(le,k(re.args[le])),Je=`fn.${$}.${le}`;for(const ot of null!==(Ee=S.annotations[Je])&&void 0!==Ee?Ee:[])Fe.annotations.push(s(ot));return Fe}),fe=new i.FunctionOperation($,Te,k(re.ret)),_e=`fn.${$}`;for(const le of null!==(g=S.annotations[_e])&&void 0!==g?g:[])fe.annotations.push(s(le));A.push(fe)}for(const[$,re]of w){const Te=null===(v=O.find(fe=>fe.name===re))||void 0===v?void 0:v.type;Te instanceof i.StructType&&($.struct=Te)}const U=S.errors.map($=>Array.isArray($)?new i.ErrorNode($[0],k($[1])):new i.ErrorNode($,new i.VoidPrimitiveType)),me=new i.AstRoot(O,A,U);return(0,d.analyse)(me),me}},8053:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.Lexer=_.LexerError=void 0;const i=l(9037);class d extends Error{}_.LexerError=d;class m{constructor(s,b="-"){this.source=s,this.filename=b,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 b="\\",T=this.startPos+1;for(;"\\"===b[b.length-1];){for(b=b.slice(0,b.length-1).trim();!["\0","\n"].includes(this.nextChar()););b=`${b} ${this.source.substring(T,this.pos).trim()}`.trim(),T=this.pos+1}s=new i.AnnotationToken(b.trim());break}case'"':{const b=[];e:for(;;)switch(this.nextChar()){case"\0":break e;case"\\":switch(this.nextChar()){case"\0":break e;case"n":b.push("\n");break;case"t":b.push("\t");break;default:b.push(this.currentChar())}break;case'"':this.nextChar(),s=new i.StringLiteralToken(b.join(""));break e;default:b.push(this.currentChar())}break}default:if(/[a-zA-Z_]/u.test(this.currentChar())){for(;/[a-zA-Z0-9_]/u.test(this.nextChar()););const b=this.source.substring(this.startPos,this.pos);switch(b){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(b)?new i.PrimitiveTypeToken(b):new i.IdentifierToken(b)}}}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 d(`Unexpected end of file at ${this.filename}`):new d(`Unexpected character ${JSON.stringify(this.currentChar())} at ${this.filename}:${this.line}:${this.column}`)}}_.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:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.Parser=_.ParserError=void 0;const i=l(1942),d=l(8053),m=l(7145),u=l(6088),s=l(9037),b=l(6569);class T extends Error{}_.ParserError=T,_.Parser=class S{constructor(v){this.token=null,this.annotations=[],this.warnings=[],this.readFileSync=()=>{throw"Not implemented"};try{this.readFileSync=Object(function(){var O=new Error("Cannot find module 'fs'");throw O.code="MODULE_NOT_FOUND",O}())}catch(A){}this.lexers=v instanceof d.Lexer?[v]:[new d.Lexer(this.readFileSync(v).toString(),v)],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(v){if(!this.token)throw new T(`Expected ${Object.keys(v).map(O=>O.replace("Token","")).join(" or ")}, but found end of file`);const A=this.token.constructor.name;if(A in v)return v[A](this.token);if(v.IdentifierToken){const O=this.token.maybeAsIdentifier();if(O instanceof s.IdentifierToken)return v.IdentifierToken(O)}throw new T(`Expected ${Object.keys(v).map(O=>O.replace("Token","")).join(" or ")} at ${this.token.location}, but found ${this.token}`)}expect(v){if(null===this.token)throw new T(`Expected ${v.name.replace("Token","")}, but found end of file`);if(this.token instanceof v)return this.token;if(v===s.IdentifierToken){const A=this.token.maybeAsIdentifier();if(A instanceof s.IdentifierToken)return A}throw new T(`Expected ${v.name.replace("Token","")} at ${this.token.location}, but found ${this.token}`)}parse(){const v=[],A=[],O=[];for(this.warnings=[];this.token;)this.acceptAnnotations(),this.multiExpect({ErrorKeywordToken:()=>{O.push(this.parseError())},FnKeywordToken:()=>{v.push(this.parseOperation())},ImportKeywordToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const k=this.expect(s.StringLiteralToken),U=k.location.filename.replace(/[^/\\]+$/u,`${k.value}.sdkgen`);this.lexers.push(new d.Lexer(this.readFileSync(U).toString(),U)),this.nextToken()},TypeKeywordToken:()=>{A.push(this.parseTypeDefinition())}});const w=new i.AstRoot(A,v,O);return w.warnings=this.warnings,(0,u.analyse)(w),w}acceptAnnotations(){for(;this.token instanceof s.AnnotationToken;){const v=this.token.value.split(" "),A=this.token.value.slice(v[0].length).trim();switch(v[0]){case"description":this.annotations.push(new i.DescriptionAnnotation(A).at(this.token));break;case"arg":this.annotations.push(new i.ArgDescriptionAnnotation(v[1],this.token.value.slice(v[0].length+1+v[1].length).trim()).at(this.token));break;case"throws":this.annotations.push(new i.ThrowsAnnotation(A).at(this.token));break;case"rest":try{this.annotations.push((0,m.parseRestAnnotation)(A).at(this.token))}catch(O){throw new T(`${O instanceof Error?O.message:O} at ${this.token.location}`)}break;case"hidden":if(""!==A)throw new T("@hidden annotation doesn't take any argument");this.annotations.push((new i.HiddenAnnotation).at(this.token));break;default:throw new T(`Unknown annotation '${v[0]}' at ${this.token.location}`)}this.nextToken()}}checkCannotHaveAnnotationsHere(){if(this.annotations.length>0)throw new T(`Cannot have annotations at ${this.annotations[0].location}`)}parseTypeDefinition(){const v=this.expect(s.TypeKeywordToken);this.nextToken();const A=this.expect(s.IdentifierToken),O=A.value;if(!/[A-Z]/u.test(O[0]))throw new T(`The custom type name must start with an uppercase letter, but found ${JSON.stringify(O)} at ${A.location}`);this.nextToken();const{annotations:w}=this;this.annotations=[];const k=this.parseType(),U=new i.TypeDefinition(O,k).at(v);return U.annotations=w,U}parseError(){this.checkCannotHaveAnnotationsHere();const v=this.expect(s.ErrorKeywordToken);this.nextToken();const A=this.expect(s.IdentifierToken),O=A.value;if(!/[A-Z]/u.test(O[0]))throw new T(`Error name must start with an uppercase letter, but found ${JSON.stringify(O)} at ${A.location}`);this.nextToken();let w=new i.VoidPrimitiveType;return(this.token instanceof s.CurlyOpenSymbolToken||this.token instanceof s.EnumKeywordToken||this.token instanceof s.IdentifierToken||this.token instanceof s.PrimitiveTypeToken)&&(w=this.parseType()),new i.ErrorNode(O,w).at(v)}parseOperation(){let{annotations:v}=this;this.annotations=[],this.expect(s.FnKeywordToken),this.nextToken();const A=this.expect(s.IdentifierToken).value;this.nextToken(),this.expect(s.ParensOpenSymbolToken),this.nextToken();const O=new Set,w=[];let U,k=!1;for(;!k;)this.acceptAnnotations(),this.multiExpect({ParensCloseSymbolToken:re=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),k=!0,U=re},IdentifierToken:()=>{const re=this.parseField();if(O.has(re.name))throw new T(`Cannot redeclare argument '${re.name}'`);O.add(re.name),w.push(re),this.multiExpect({ParensCloseSymbolToken:Te=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),k=!0,U=Te},CommaSymbolToken:()=>this.nextToken()})},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const re=this.expect(s.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(re.value[0]))throw new T(`Expected a type but found ${JSON.stringify(re.value)} at ${re.location}`);w.push(new i.Spread(new i.TypeReference(re.value).at(re)).at(re)),this.multiExpect({ParensCloseSymbolToken:Te=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),k=!0,U=Te},CommaSymbolToken:()=>this.nextToken()})}});for(const re of v)if(re instanceof i.ArgDescriptionAnnotation){const Te=w.find(fe=>fe instanceof i.Field&&fe.name===re.argName);if(!Te)throw new T(`Argument '${re.argName}' not found, at ${re.location}`);Te.annotations.push(new i.DescriptionAnnotation(re.text).atLocation(re.location))}v=v.filter(re=>!(re instanceof i.ArgDescriptionAnnotation));let me=(new i.VoidPrimitiveType).at(U);this.token instanceof s.ColonSymbolToken&&(this.nextToken(),me=this.parseType());const $=new i.FunctionOperation(A,w,me);return $.annotations=v,$}parseEnum(){this.checkCannotHaveAnnotationsHere();const v=this.expect(s.EnumKeywordToken);this.nextToken(),this.expect(s.CurlyOpenSymbolToken),this.nextToken();const A=new i.EnumType([]).at(v);let O=!1;for(;!O;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),O=!0},IdentifierToken:w=>{const k=new i.EnumValue(w.value).at(w);if(k.annotations=this.annotations,this.annotations=[],A.values.push(k),this.nextToken(),!(this.token instanceof s.ParensOpenSymbolToken))return;this.nextToken();const U=new Set,me=[];for(;this.token&&this.token.maybeAsIdentifier()instanceof s.IdentifierToken;){const $=this.parseField();if("tag"===$.name&&($.name="_tag"),U.has($.name))throw new T(`Cannot redeclare argument '${$.name}'`);if(U.add($.name),me.push($),!(this.token instanceof s.CommaSymbolToken))break;this.nextToken()}k.struct=new i.StructType(me).atLocation(k.location),this.expect(s.ParensCloseSymbolToken),this.nextToken()}});return A}parseField(){const v=this.expect(s.IdentifierToken);this.nextToken(),this.expect(s.ColonSymbolToken),this.nextToken();const{annotations:A}=this;this.annotations=[];const O=this.parseType(),w=new i.Field(v.value,O).at(v);for(w.annotations=A;this.token instanceof s.ExclamationMarkSymbolToken;){if("secret"!==(this.nextToken(),this.expect(s.IdentifierToken).value))throw new T(`Unknown field mark !${this.token.value} at ${this.token.location}`);w.secret=!0,this.nextToken()}return w}parseStruct(){const v=this.expect(s.CurlyOpenSymbolToken);this.nextToken();const A=[],O=new Set;let w=!1;for(;!w;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),w=!0},IdentifierToken:()=>{const k=this.parseField();if(O.has(k.name))throw new T(`Cannot redeclare field '${k.name}'`);O.add(k.name),A.push(k)},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const k=this.expect(s.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(k.value[0]))throw new T(`Expected a type but found ${JSON.stringify(k.value)} at ${k.location}`);A.push(new i.Spread(new i.TypeReference(k.value).at(k)).at(k))}});return new i.StructType(A).at(v)}parseType(){this.checkCannotHaveAnnotationsHere();let v=this.multiExpect({CurlyOpenSymbolToken:()=>this.parseStruct(),EnumKeywordToken:()=>this.parseEnum(),IdentifierToken:A=>{if(this.nextToken(),!/[A-Z]/u.test(A.value[0]))throw new T(`Expected a type but found ${JSON.stringify(A.value)} at ${A.location}`);return new i.TypeReference(A.value).at(A)},PrimitiveTypeToken:A=>{this.nextToken();const O=b.primitiveToAstClass.get(A.value);if(O)return(new O).at(A);throw new T(`BUG! Should handle primitive ${A.value}`)}});for(;this.token instanceof s.ArraySymbolToken||this.token instanceof s.OptionalSymbolToken;)this.multiExpect({ArraySymbolToken:A=>v=new i.ArrayType(v).at(A),OptionalSymbolToken:A=>v=new i.OptionalType(v).at(A)}),this.nextToken();return v}}},7145:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.parseRestAnnotation=void 0;const i=l(1942);function u(b){var T;const S=/\{(?<name>\w+)\}/gu,g=[];let v;for(;null!==(v=S.exec(b));)(null===(T=v.groups)||void 0===T?void 0:T.name)&&g.push(v.groups.name);return g}_.parseRestAnnotation=function s(b){const T=b.split(" "),S=T[0].toUpperCase();if(!["GET","POST","PUT","DELETE","PATCH"].includes(S))throw new Error(`Unsupported method '${S}'`);let g=T[1];if(!g.startsWith("/"))throw new Error("Invalid path");let v=[];if(g.includes("?")){const[U,...me]=g.split("?");g=U;const $=me.join("?");if(!/^\{\w+\}(?:&\{\w+\})*$/u.test($))throw new Error("Invalid querystring on path");v=u($)}const A=u(g),O=T.slice(2).join(" "),w=function d(b){var T;const S=/\[header (?<header>[^()<>@,;:\\"/[\]?={}\s\t]+): \{(?<name>\w+)\}\]/gu,g=new Map;let v;for(;null!==(v=S.exec(b));)(null===(T=v.groups)||void 0===T?void 0:T.header)&&v.groups.name&&g.set(v.groups.header.toLowerCase(),v.groups.name);return g}(O),k=function m(b){var T;const S=/\[body \{(?<name>\w+)\}\]/u.exec(b);return(null===(T=null==S?void 0:S.groups)||void 0===T?void 0:T.name)?S.groups.name:null}(O);return new i.RestAnnotation(S,g,A,v,w,k)}},7629:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.CheckMultipleDeclarationVisitor=void 0;const i=l(1942),d=l(3154);_.CheckMultipleDeclarationVisitor=class m extends d.Visitor{constructor(){super(...arguments),this.nameToType=new Map}visit(s){if(s instanceof i.TypeDefinition){const b=this.nameToType.get(s.name);if(b&&JSON.stringify(b)!==JSON.stringify(s.type))throw new d.SemanticError(`Type '${s.name}' at ${s.location} is defined multiple times (also at ${b.location})`);this.nameToType.set(s.name,s.type)}super.visit(s)}}},6153:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.GiveStructAndEnumNamesVisitor=void 0;const i=l(1942),d=l(3154);_.GiveStructAndEnumNamesVisitor=class m extends d.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(T=>T[0].toUpperCase()+T.slice(1)).join("");const b=this.names.get(s.name);if(b&&JSON.stringify(b.type)!==JSON.stringify(s))throw new d.SemanticError(`The name of the type '${this.path.join(".")}' at ${s.location} will conflict with '${b.path.join(".")}' at ${b.type.location}`);this.names.set(s.name,{path:[...this.path],type:s}),super.visit(s)}else super.visit(s)}}},9471:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.MatchTypeDefinitionsVisitor=void 0;const i=l(1942),d=l(3154);_.MatchTypeDefinitionsVisitor=class m extends d.Visitor{visit(s){if(s instanceof i.TypeReference){const b=this.root.typeDefinitions.find(T=>T.name===s.name);if(void 0===b)throw new d.SemanticError(`Could not find type '${s.name}' at ${s.location}`);s.type=b.type}super.visit(s)}}},4612:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.CheckDontReturnSecretVisitor=void 0;const i=l(1942),d=l(3154);_.CheckDontReturnSecretVisitor=class m extends d.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 d.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:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ExpandSpreadsVisitor=void 0;const i=l(1942),d=l(3154);_.ExpandSpreadsVisitor=class m extends d.Visitor{constructor(){super(...arguments),this.processed=new Set}expandSpread(s,b){const T=new Map;for(const S of b){let g;if(S instanceof i.Field)g=[S];else{const v=S.typeReference.type;if(!(v instanceof i.StructType))throw new d.SemanticError(`A spread operator can't refer to something that is not a struct, in '${S.typeReference.name}' at ${S.location}.`);this.visit(v),g=v.fields}for(const v of g){const A=T.get(v.name);A?s[A]=v:(T.set(v.name,s.length),s.push(v))}}}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:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.CheckEmptyStructOrEnumVisitor=void 0;const i=l(1942),d=l(3154);_.CheckEmptyStructOrEnumVisitor=class m extends d.Visitor{visit(s){if(super.visit(s),s instanceof i.EnumType&&0===s.values.length)throw new d.SemanticError(`Enum '${s.name}' at ${s.location} is empty`);if(s instanceof i.StructType&&0===s.fields.length)throw new d.SemanticError(`Struct '${s.name}' at ${s.location} is empty`)}}},4647:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ValidateRecursiveTypes=void 0;const i=l(1942),d=l(3154);_.ValidateRecursiveTypes=class m extends d.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 d.SemanticError(`Type '${s.name}' at ${s.location} is recursive but is not an struct`);if(this.isInfinitelyRecursiveType(s,s.type))throw new d.SemanticError(`Type '${s.name}' at ${s.location} is infinitely recursive`)}}isRecursiveType(s,b){return b instanceof i.TypeReference?s.name===b.name:b instanceof i.ArrayType||b instanceof i.OptionalType?this.isRecursiveType(s,b.base):b instanceof i.StructType?b.fields.some(T=>this.isRecursiveType(s,T.type)):b instanceof i.EnumType&&b.values.some(T=>T.struct&&this.isRecursiveType(s,T.struct))}isInfinitelyRecursiveType(s,b){return b instanceof i.TypeReference?b.name===s.name:b instanceof i.StructType?b.fields.some(T=>this.isInfinitelyRecursiveType(s,T.type)):b instanceof i.EnumType&&b.values.every(T=>T.struct&&this.isInfinitelyRecursiveType(s,T.struct))}}},2060:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.CollectStructAndEnumTypesVisitor=void 0;const i=l(1942),d=l(3154);_.CollectStructAndEnumTypesVisitor=class m extends d.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:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ValidateAnnotationsVisitor=void 0;const i=l(1942),d=l(3154);function u(b){return b instanceof i.TypeReference?u(b.type):b}_.ValidateAnnotationsVisitor=class s extends d.Visitor{visit(T){if(T instanceof i.EnumValue){for(const S of T.annotations)if(!(S instanceof i.DescriptionAnnotation))throw new d.SemanticError(`Cannot have @${S.constructor.name.replace("Annotation","").toLowerCase()} at ${S.location}`)}else if(T instanceof i.TypeDefinition){for(const S of T.annotations)if(!(S instanceof i.DescriptionAnnotation))throw new d.SemanticError(`Cannot have @${S.constructor.name.replace("Annotation","").toLowerCase()} at ${S.location}`)}else if(T instanceof i.Field){for(const S of T.annotations)if(!(S instanceof i.DescriptionAnnotation))throw new d.SemanticError(`Cannot have @${S.constructor.name.replace("Annotation","").toLowerCase()} at ${S.location}`)}else if(T instanceof i.FunctionOperation)for(const S of T.annotations)if(!(S instanceof i.DescriptionAnnotation))if(S instanceof i.ThrowsAnnotation){if(!this.root.errors.some(g=>g.name===S.error))throw new d.SemanticError(`Unknown error type '${S.error}' at ${S.location}`)}else if(S instanceof i.RestAnnotation){const g=[...S.pathVariables,...S.queryVariables,...S.headers.values()];if(g.length!==new Set(g).size)throw new d.SemanticError(`Arguments must appear only once for rest annotation at ${S.location}`);for(const v of g){const A=T.args.find(w=>w.name===v);if(!A)throw new d.SemanticError(`Argument '${v}' not found at ${S.location}`);if(S.pathVariables.includes(v)&&A.type instanceof i.OptionalType)throw new d.SemanticError(`The path argument '${v}' can't be nullable at ${S.location}`);if(!((b=u(A.type instanceof i.OptionalType?A.type.base:A.type))instanceof i.BoolPrimitiveType||b instanceof i.IntPrimitiveType||b instanceof i.UIntPrimitiveType||b instanceof i.BigIntPrimitiveType||b instanceof i.FloatPrimitiveType||b instanceof i.StringPrimitiveType||b instanceof i.DatePrimitiveType||b instanceof i.DateTimePrimitiveType||b instanceof i.MoneyPrimitiveType||b instanceof i.CpfPrimitiveType||b instanceof i.CnpjPrimitiveType||b instanceof i.UuidPrimitiveType||b instanceof i.HexPrimitiveType||b instanceof i.Base64PrimitiveType||b instanceof i.EnumType))throw new d.SemanticError(`Argument '${v}' can't have type '${A.type.name}' for rest annotation at ${S.location}`)}for(const v of T.args)if(!g.includes(v.name)&&S.bodyVariable!==v.name)throw new d.SemanticError(`Argument '${v.name}' is missing from the rest annotation at ${S.location}`);if("GET"===S.method&&T.returnType instanceof i.VoidPrimitiveType)throw new d.SemanticError(`A GET rest endpoint must return something at ${S.location}`)}else if(!(S instanceof i.HiddenAnnotation))throw new d.SemanticError(`Cannot have @${S.constructor.name.replace("Annotation","").toLowerCase()} at ${S.location}`);var b}}},6088:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.analyse=void 0;const i=l(1942),d=l(7629),m=l(6153),u=l(9471),s=l(4612),b=l(4978),T=l(9866),S=l(4647),g=l(2060),v=l(4212);_.analyse=function A(O){O.errors.some(w=>"Fatal"===w.name)||O.errors.push(new i.ErrorNode("Fatal",new i.VoidPrimitiveType)),new d.CheckMultipleDeclarationVisitor(O).process(),new m.GiveStructAndEnumNamesVisitor(O).process(),new u.MatchTypeDefinitionsVisitor(O).process(),new s.CheckDontReturnSecretVisitor(O).process(),new b.ExpandSpreadsVisitor(O).process(),new T.CheckEmptyStructOrEnumVisitor(O).process(),new S.ValidateRecursiveTypes(O).process(),new g.CollectStructAndEnumTypesVisitor(O).process(),new v.ValidateAnnotationsVisitor(O).process()}},3154:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.Visitor=_.SemanticError=void 0;const i=l(1942);class d extends Error{}_.SemanticError=d,_.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 b of s.args)this.visit(b);for(const b of s.fieldsAndSpreads)this.visit(b);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 b of s.fields)this.visit(b);for(const b of s.fieldsAndSpreads)this.visit(b)}else if(s instanceof i.EnumType)for(const b of s.values)this.visit(b);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:(je,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.PrimitiveTypeToken=_.FalseKeywordToken=_.TrueKeywordToken=_.ErrorKeywordToken=_.FnKeywordToken=_.EnumKeywordToken=_.TypeKeywordToken=_.ImportKeywordToken=_.AnnotationToken=_.SpreadSymbolToken=_.CommaSymbolToken=_.ArraySymbolToken=_.OptionalSymbolToken=_.ColonSymbolToken=_.ParensCloseSymbolToken=_.ParensOpenSymbolToken=_.CurlyCloseSymbolToken=_.CurlyOpenSymbolToken=_.ExclamationMarkSymbolToken=_.EqualSymbolToken=_.StringLiteralToken=_.IdentifierToken=_.Token=_.TokenLocation=void 0;class l{constructor(){this.filename="?",this.line=0,this.column=0}toString(){return`${this.filename}:${this.line}:${this.column}`}}_.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)})`}}_.Token=i;class d extends i{}_.IdentifierToken=d,_.StringLiteralToken=class m extends i{},_.EqualSymbolToken=class u extends i{},_.ExclamationMarkSymbolToken=class s extends i{},_.CurlyOpenSymbolToken=class b extends i{},_.CurlyCloseSymbolToken=class T extends i{},_.ParensOpenSymbolToken=class S extends i{},_.ParensCloseSymbolToken=class g extends i{},_.ColonSymbolToken=class v extends i{},_.OptionalSymbolToken=class A extends i{},_.ArraySymbolToken=class O extends i{},_.CommaSymbolToken=class w extends i{},_.SpreadSymbolToken=class k extends i{},_.AnnotationToken=class U extends i{},_.ImportKeywordToken=class me extends i{maybeAsIdentifier(){return new d("import")}},_.TypeKeywordToken=class $ extends i{maybeAsIdentifier(){return new d("type")}},_.EnumKeywordToken=class re extends i{maybeAsIdentifier(){return new d("enum")}},_.FnKeywordToken=class Te extends i{maybeAsIdentifier(){return new d("fn")}},_.ErrorKeywordToken=class fe extends i{maybeAsIdentifier(){return new d("error")}},_.TrueKeywordToken=class _e extends i{maybeAsIdentifier(){return new d("true")}},_.FalseKeywordToken=class le extends i{maybeAsIdentifier(){return new d("false")}},_.PrimitiveTypeToken=class Ee extends i{maybeAsIdentifier(){return new d(this.value)}}},6569:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.primitiveToAstClass=void 0;const i=l(1942);_.primitiveToAstClass=new Map,_.primitiveToAstClass.set("string",i.StringPrimitiveType),_.primitiveToAstClass.set("int",i.IntPrimitiveType),_.primitiveToAstClass.set("uint",i.UIntPrimitiveType),_.primitiveToAstClass.set("date",i.DatePrimitiveType),_.primitiveToAstClass.set("datetime",i.DateTimePrimitiveType),_.primitiveToAstClass.set("float",i.FloatPrimitiveType),_.primitiveToAstClass.set("bigint",i.BigIntPrimitiveType),_.primitiveToAstClass.set("bool",i.BoolPrimitiveType),_.primitiveToAstClass.set("bytes",i.BytesPrimitiveType),_.primitiveToAstClass.set("money",i.MoneyPrimitiveType),_.primitiveToAstClass.set("cpf",i.CpfPrimitiveType),_.primitiveToAstClass.set("cnpj",i.CnpjPrimitiveType),_.primitiveToAstClass.set("email",i.EmailPrimitiveType),_.primitiveToAstClass.set("html",i.HtmlPrimitiveType),_.primitiveToAstClass.set("url",i.UrlPrimitiveType),_.primitiveToAstClass.set("uuid",i.UuidPrimitiveType),_.primitiveToAstClass.set("hex",i.HexPrimitiveType),_.primitiveToAstClass.set("base64",i.Base64PrimitiveType),_.primitiveToAstClass.set("xml",i.XmlPrimitiveType),_.primitiveToAstClass.set("json",i.JsonPrimitiveType),_.primitiveToAstClass.set("void",i.VoidPrimitiveType)},5041:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.AppComponent=void 0;const i=l(655),d=l(3075),m=l(7179),u=l(1823),s=l(7402),b=l(7295),T=l(2911),S=l(4327),g=(0,i.__importStar)(l(5e3)),v=(0,i.__importStar)(l(6395)),A=(0,i.__importStar)(l(2313)),O=(0,i.__importStar)(l(5245)),w=(0,i.__importStar)(l(107)),k=(0,i.__importStar)(l(2253)),U=(0,i.__importStar)(l(9808)),me=(0,i.__importStar)(l(2181)),$=(0,i.__importStar)(l(3251)),re=(0,i.__importStar)(l(5585)),Te=(0,i.__importStar)(l(7423)),fe=(0,i.__importStar)(l(7238)),_e=(0,i.__importStar)(l(4264)),le=(0,i.__importStar)(l(7822));function Ee($e,ge){1&$e&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275text(1,"Editor Avan\xe7ado"),g.\u0275\u0275elementContainerEnd())}function Fe($e,ge){if(1&$e&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275elementStart(1,"span",20),g.\u0275\u0275text(2),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementContainerEnd()),2&$e){const Ze=g.\u0275\u0275nextContext(2).$implicit;g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate1("\u25b6\xa0",Ze.function,"")}}function Je($e,ge){if(1&$e){const Ze=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"span",17),g.\u0275\u0275template(1,Ee,2,0,"ng-container",18),g.\u0275\u0275template(2,Fe,3,1,"ng-container",18),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(3,"button",19),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(Ze);const Ke=g.\u0275\u0275nextContext().$implicit;return g.\u0275\u0275nextContext(2).closeTab(Ke)}),g.\u0275\u0275elementStart(4,"mat-icon"),g.\u0275\u0275text(5,"close"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()}if(2&$e){const Ze=g.\u0275\u0275nextContext().$implicit;g.\u0275\u0275property("ngSwitch",Ze.type),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase","advanced"),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase","simple")}}function ot($e,ge){1&$e&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275element(1,"app-tab-editor"),g.\u0275\u0275elementContainerEnd())}function q($e,ge){if(1&$e&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275element(1,"app-simple-call",21),g.\u0275\u0275elementContainerEnd()),2&$e){const Ze=g.\u0275\u0275nextContext().$implicit;g.\u0275\u0275advance(1),g.\u0275\u0275property("fn",Ze.function)}}function Ae($e,ge){if(1&$e&&(g.\u0275\u0275elementStart(0,"mat-tab"),g.\u0275\u0275template(1,Je,6,3,"ng-template",16),g.\u0275\u0275elementContainerStart(2,17),g.\u0275\u0275template(3,ot,2,0,"ng-container",18),g.\u0275\u0275template(4,q,2,1,"ng-container",18),g.\u0275\u0275elementContainerEnd(),g.\u0275\u0275elementEnd()),2&$e){const Ze=ge.$implicit;g.\u0275\u0275advance(2),g.\u0275\u0275property("ngSwitch",Ze.type),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase","advanced"),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase","simple")}}function X($e,ge){if(1&$e){const Ze=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"button",22),g.\u0275\u0275listener("click",function(){return g.\u0275\u0275restoreView(Ze),g.\u0275\u0275nextContext(2).addAdvancedTab()}),g.\u0275\u0275elementStart(1,"mat-icon"),g.\u0275\u0275text(2,"add_circle"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()}}function ce($e,ge){if(1&$e&&(g.\u0275\u0275elementStart(0,"button",23),g.\u0275\u0275elementStart(1,"mat-icon"),g.\u0275\u0275text(2,"download"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()),2&$e){g.\u0275\u0275nextContext(2);const Ze=g.\u0275\u0275reference(5);g.\u0275\u0275property("matMenuTriggerFor",Ze)}}function Se($e,ge){if(1&$e){const Ze=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"mat-tab-group",11),g.\u0275\u0275listener("selectedIndexChange",function(Ke){return g.\u0275\u0275restoreView(Ze),g.\u0275\u0275nextContext().selected.setValue(Ke)}),g.\u0275\u0275elementStart(1,"mat-tab",12),g.\u0275\u0275elementStart(2,"app-tab-home",13),g.\u0275\u0275listener("runFunction",function(Ke){return g.\u0275\u0275restoreView(Ze),g.\u0275\u0275nextContext().addSimpleTab(Ke)}),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd(),g.\u0275\u0275template(3,Ae,5,3,"mat-tab",14),g.\u0275\u0275elementStart(4,"mat-tab",15),g.\u0275\u0275template(5,X,3,0,"ng-template",16),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(6,"mat-tab",15),g.\u0275\u0275template(7,ce,3,1,"ng-template",16),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()}if(2&$e){const Ze=g.\u0275\u0275nextContext();g.\u0275\u0275property("selectedIndex",Ze.selected.value),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngForOf",Ze.tabs)}}class ne{constructor(ge,Ze,Me){this.sdkgen=ge,this.domSanitizer=Ze,this.matIconRegistry=Me,this.selected=new d.FormControl(0),this.tabs=[{id:0,type:"advanced"}],this.tabIndex=1;for(const Ke of["typescript","dot-net","kotlin","swift","dart"])this.matIconRegistry.addSvgIcon(Ke,this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/${Ke}.svg`))}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(ge=>{this.state=null!=ge?ge:void 0})}ngOnDestroy(){var ge;null===(ge=this.state$)||void 0===ge||ge.unsubscribe()}addSimpleTab(ge){this.tabs.push({id:this.tabIndex++,function:ge,type:"simple"}),this.selected.setValue(this.tabs.length)}addAdvancedTab(){this.tabs.push({id:this.tabIndex++,type:"advanced"}),this.selected.setValue(this.tabs.length)}closeTab(ge){this.tabs.splice(this.tabs.indexOf(ge),1),this.selected.setValue(0)}downloadTarget(ge){if(!this.state)return;let Ze,Me;switch(ge){case"typescript_nodeserver":Ze=(0,T.generateNodeServerSource)(this.state.astRoot),Me="node-server.ts";break;case"typescript_nodeclient":Ze=(0,T.generateNodeClientSource)(this.state.astRoot),Me="node-client.ts";break;case"typescript_web":Ze=(0,T.generateBrowserClientSource)(this.state.astRoot),Me="web-client.ts";break;case"typescript_interfaces":Ze=(0,T.generateTypescriptInterfaces)(this.state.astRoot),Me="interfaces.ts";break;case"flutter":Ze=(0,u.generateDartClientSource)(this.state.astRoot),Me="flutter-client.dart";break;case"csharp_server":Ze=(0,m.generateCSharpServerSource)(this.state.astRoot),Me="csharp-server.cs";break;case"kotlin_android":Ze=(0,s.generateAndroidClientSource)(this.state.astRoot,!0),Me="android-client.kt";break;case"kotlin_android_without_callbacks":Ze=(0,s.generateAndroidClientSource)(this.state.astRoot,!1),Me="android-client-no-callbacks.kt";break;case"swift_ios":Ze=(0,b.generateSwiftClientSource)(this.state.astRoot,!1),Me="ios-client.swift";break;case"rxswift_ios":Ze=(0,b.generateSwiftClientSource)(this.state.astRoot,!0),Me="ios-client-rx.swift"}(0,S.saveAs)(new Blob([Ze],{type:"application/octet-stream"}),Me)}}_.AppComponent=ne,ne.\u0275fac=function(ge){return new(ge||ne)(g.\u0275\u0275directiveInject(v.SdkgenService),g.\u0275\u0275directiveInject(A.DomSanitizer),g.\u0275\u0275directiveInject(O.MatIconRegistry))},ne.\u0275cmp=g.\u0275\u0275defineComponent({type:ne,selectors:[["app-root"]],decls:43,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(ge,Ze){1&ge&&(g.\u0275\u0275element(0,"ngx-monaco-editor",0),g.\u0275\u0275element(1,"app-tab-nav"),g.\u0275\u0275template(2,Se,8,2,"mat-tab-group",1),g.\u0275\u0275pipe(3,"async"),g.\u0275\u0275elementStart(4,"mat-menu",null,2),g.\u0275\u0275element(6,"div",3),g.\u0275\u0275elementStart(7,"button",4),g.\u0275\u0275text(8,"Cliente"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(9,"button",5),g.\u0275\u0275listener("click",function(){return Ze.downloadTarget("typescript_nodeclient")}),g.\u0275\u0275element(10,"mat-icon",6),g.\u0275\u0275text(11,"Node.js"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(12,"button",5),g.\u0275\u0275listener("click",function(){return Ze.downloadTarget("typescript_web")}),g.\u0275\u0275element(13,"mat-icon",6),g.\u0275\u0275text(14,"Web"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(15,"button",5),g.\u0275\u0275listener("click",function(){return Ze.downloadTarget("flutter")}),g.\u0275\u0275element(16,"mat-icon",7),g.\u0275\u0275text(17,"Flutter"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(18,"button",5),g.\u0275\u0275listener("click",function(){return Ze.downloadTarget("kotlin_android")}),g.\u0275\u0275element(19,"mat-icon",8),g.\u0275\u0275text(20,"Android"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(21,"button",5),g.\u0275\u0275listener("click",function(){return Ze.downloadTarget("kotlin_android_without_callbacks")}),g.\u0275\u0275element(22,"mat-icon",8),g.\u0275\u0275text(23,"Android (sem callbacks)"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(24,"button",5),g.\u0275\u0275listener("click",function(){return Ze.downloadTarget("swift_ios")}),g.\u0275\u0275element(25,"mat-icon",9),g.\u0275\u0275text(26,"iOS"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(27,"button",5),g.\u0275\u0275listener("click",function(){return Ze.downloadTarget("rxswift_ios")}),g.\u0275\u0275element(28,"mat-icon",9),g.\u0275\u0275text(29,"iOS (Rx)"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(30,"button",4),g.\u0275\u0275text(31,"Servidor"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(32,"button",5),g.\u0275\u0275listener("click",function(){return Ze.downloadTarget("typescript_nodeserver")}),g.\u0275\u0275element(33,"mat-icon",6),g.\u0275\u0275text(34,"Node.js"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(35,"button",5),g.\u0275\u0275listener("click",function(){return Ze.downloadTarget("csharp_server")}),g.\u0275\u0275element(36,"mat-icon",10),g.\u0275\u0275text(37,"C#"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(38,"button",4),g.\u0275\u0275text(39,"Outros"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(40,"button",5),g.\u0275\u0275listener("click",function(){return Ze.downloadTarget("typescript_interfaces")}),g.\u0275\u0275element(41,"mat-icon",6),g.\u0275\u0275text(42,"Interfaces"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()),2&ge&&(g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",g.\u0275\u0275pipeBind1(3,1,Ze.sdkgen.state$)))},directives:[w.MonacoEditorComponent,k.TabNavComponent,U.NgIf,me.MatMenu,me.MatMenuItem,O.MatIcon,$.MatTabGroup,$.MatTab,re.TabHomeComponent,U.NgForOf,$.MatTabLabel,U.NgSwitch,U.NgSwitchCase,Te.MatButton,fe.MatTooltip,_e.TabEditorComponent,le.SimpleCallComponent,me.MatMenuTrigger],pipes:[U.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:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.AppModule=void 0;const i=l(655),d=l(520),m=l(3075),u=l(7423),s=l(9417),b=l(508),T=l(8966),S=l(5245),g=l(2181),v=l(2075),A=l(3251),O=l(7238),w=l(2313),k=l(6360),U=l(107),me=l(1430),$=l(5109),re=l(2290),Te=l(5041),fe=(0,i.__importStar)(l(5e3));(0,i.__importStar)(l(2290));class le{}_.AppModule=le,le.\u0275fac=function(Fe){return new(Fe||le)},le.\u0275mod=fe.\u0275\u0275defineNgModule({type:le,bootstrap:[Te.AppComponent]}),le.\u0275inj=fe.\u0275\u0275defineInjector({providers:[{provide:U.MONACO_PATH,useValue:"assets/vs"}],imports:[[w.BrowserModule,m.FormsModule,m.ReactiveFormsModule,U.MonacoEditorModule,k.BrowserAnimationsModule,$.NgxJsonViewerModule,re.ToastrModule.forRoot(),me.AngularSplitModule,d.HttpClientModule,u.MatButtonModule,s.MatChipsModule,T.MatDialogModule,S.MatIconModule,g.MatMenuModule,b.MatRippleModule,v.MatTableModule,A.MatTabsModule,O.MatTooltipModule]]})},8495:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ConsoleComponent=void 0;const i=l(655),d=l(9972),m=(0,i.__importStar)(l(5e3)),u=(0,i.__importStar)(l(7423)),s=(0,i.__importStar)(l(5245)),b=(0,i.__importStar)(l(9808)),T=(0,i.__importStar)(l(5109));function S(k,U){1&k&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1,"info_outline"),m.\u0275\u0275elementContainerEnd())}function g(k,U){1&k&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1,"error"),m.\u0275\u0275elementContainerEnd())}function v(k,U){1&k&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1,"public"),m.\u0275\u0275elementContainerEnd())}function A(k,U){if(1&k&&m.\u0275\u0275element(0,"ngx-json-viewer",6),2&k){const me=m.\u0275\u0275nextContext().$implicit;m.\u0275\u0275property("json",me.details)("expanded",!1)}}function O(k,U){if(1&k&&(m.\u0275\u0275elementStart(0,"li",2),m.\u0275\u0275elementStart(1,"mat-icon",3),m.\u0275\u0275template(2,S,2,0,"ng-container",4),m.\u0275\u0275template(3,g,2,0,"ng-container",4),m.\u0275\u0275template(4,v,2,0,"ng-container",4),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(5,"span"),m.\u0275\u0275text(6),m.\u0275\u0275elementEnd(),m.\u0275\u0275template(7,A,1,2,"ngx-json-viewer",5),m.\u0275\u0275elementEnd()),2&k){const me=U.$implicit,$=m.\u0275\u0275nextContext();m.\u0275\u0275property("ngClass",me.type),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitch",me.type)("ngClass",me.type),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitchCase",$.itemTypes.INFO),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitchCase",$.itemTypes.ERROR),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitchCase",$.itemTypes.NETWORK),m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate(me.message),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",me.details)}}class w{constructor(){this.itemTypes=d.ConsoleItemType,this.items=[]}}_.ConsoleComponent=w,w.\u0275fac=function(U){return new(U||w)},w.\u0275cmp=m.\u0275\u0275defineComponent({type:w,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(U,me){1&U&&(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 me.items.splice(0,me.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,O,8,8,"li",1),m.\u0275\u0275elementEnd()),2&U&&(m.\u0275\u0275advance(8),m.\u0275\u0275property("ngForOf",me.items))},directives:[u.MatButton,s.MatIcon,b.NgForOf,b.NgClass,b.NgSwitch,b.NgSwitchCase,b.NgIf,T.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:(je,_)=>{"use strict";var i;Object.defineProperty(_,"__esModule",{value:!0}),_.ConsoleItemType=void 0,(i=_.ConsoleItemType||(_.ConsoleItemType={})).INFO="info",i.ERROR="error",i.NETWORK="network"},4814:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.DialogAboutComponent=void 0;const i=l(655),d=l(4147),m=(0,i.__importStar)(l(5e3)),u=(0,i.__importStar)(l(8966)),s=(0,i.__importStar)(l(9417)),b=(0,i.__importStar)(l(7423)),T=(0,i.__importStar)(l(5245)),S=(0,i.__importStar)(l(9808));function g(A,O){if(1&A&&(m.\u0275\u0275elementStart(0,"a",6),m.\u0275\u0275elementStart(1,"mat-chip",2),m.\u0275\u0275elementStart(2,"span",7),m.\u0275\u0275text(3),m.\u0275\u0275elementEnd(),m.\u0275\u0275element(4,"s"),m.\u0275\u0275elementStart(5,"span",8),m.\u0275\u0275text(6),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd()),2&A){const w=O.$implicit;m.\u0275\u0275property("href","https://www.npmjs.com/package/"+w[0]+"/v/"+w[1],m.\u0275\u0275sanitizeUrl),m.\u0275\u0275advance(1),m.\u0275\u0275property("disableRipple",!0),m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate(w[0]),m.\u0275\u0275advance(3),m.\u0275\u0275textInterpolate(w[1])}}class v{constructor(){this.version=d.version,this.dependencies=Object.entries(d.dependencies).filter(([O])=>O.startsWith("@sdkgen"))}}_.DialogAboutComponent=v,v.\u0275fac=function(O){return new(O||v)},v.\u0275cmp=m.\u0275\u0275defineComponent({type:v,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(O,w){1&O&&(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,g,7,4,"a",5),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd()),2&O&&(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(w.version),m.\u0275\u0275advance(10),m.\u0275\u0275property("selectable",!1),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngForOf",w.dependencies))},directives:[u.MatDialogTitle,s.MatChipList,s.MatChip,b.MatButton,u.MatDialogClose,T.MatIcon,S.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:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.FilterPipe=void 0;const d=(0,l(655).__importStar)(l(5e3));class m{transform(s,b){if(!s)return[];if(!b)return s;const T=b.toLocaleLowerCase();return s.filter(S=>JSON.stringify(S).toLocaleLowerCase().includes(T))}}_.FilterPipe=m,m.\u0275fac=function(s){return new(s||m)},m.\u0275pipe=d.\u0275\u0275definePipe({name:"appFilter",type:m,pure:!0})},7120:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ResponsiveService=void 0;const i=l(655),d=(0,i.__importStar)(l(5e3)),m=(0,i.__importStar)(l(5113));class u{constructor(b){this.observer=b}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)"])}}_.ResponsiveService=u,u.\u0275fac=function(b){return new(b||u)(d.\u0275\u0275inject(m.BreakpointObserver))},u.\u0275prov=d.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"})},9435:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.getTypeDoc=_.getTypeLabels=_.getConstructorName=_.primitiveTypesExamples=_.primitiveTypes=void 0;const i=l(6676),d=l(6395);function m(b){switch(b.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 b.constructor.name}}_.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?."},_.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}']},_.getConstructorName=m,_.getTypeLabels=function u(b){const T=[];switch(b.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:T.push("Primitivo");break;case i.OptionalType:T.push("Opcional"),T.push(...u(b.base));break;case i.TypeReference:T.push(...u(b.type));break;case i.ArrayType:T.push("Array"),T.push(...u(b.base));break;case i.EnumType:T.push("Enum");break;default:console.error("No labels for",m(b))}return T},_.getTypeDoc=function s(b){var T,S,g;switch(b.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:_.primitiveTypes[m(b)],shortDescription:_.primitiveTypes[m(b)],examples:_.primitiveTypesExamples[m(b)]};case i.OptionalType:{const w=s(b.base);return Object.assign(Object.assign({},w),{longDescription:w.longDescription,shortDescription:`(opcional) ${w.shortDescription}`,examples:["null",...null!==(T=w.examples)&&void 0!==T?T:[]]})}case i.TypeReference:return s(b.type);case i.ArrayType:{const w=s(b.base);return Object.assign(Object.assign({},w),{longDescription:w.longDescription,shortDescription:`(array) ${w.shortDescription}`,examples:["[]",...null!==(g=null===(S=w.examples)||void 0===S?void 0:S.map(k=>`[${k}]`))&&void 0!==g?g:[]]})}case i.EnumType:const v=b,A=v.values.slice(0,3),O=A.map(w=>w.struct?`${w.value}: ${JSON.stringify((new d.SdkgenService).buildJsonObject(w.struct.fields),null,2)}`:w.value);return{longDescription:"enum representa um conjunto limitado de possibilidades de valores, similar as enumera\xe7\xf5es em outras linguagens.",shortDescription:`(enum) ${A.map(w=>`${w.value}${w.struct?"(\u2026)":""}`).join(", ")}${A.length>3?"\u2026":""}`,examples:O,isEnum:!0,isStruct:!0,structFields:v.values.map(w=>{var k;return{name:w.value,type:w.struct,description:null===(k=w.annotations.find(U=>U instanceof i.DescriptionAnnotation))||void 0===k?void 0:k.text,secret:!1}})};case i.StructType:return{longDescription:"",shortDescription:`(objeto complexo) ${b.fields.slice(0,3).map(w=>w.name).join(", ")}\u2026`,isStruct:!0,structFields:b.fields.map(w=>{var k;return{name:w.name,description:null===(k=w.annotations.find(U=>U instanceof i.DescriptionAnnotation))||void 0===k?void 0:k.text,type:w.type,secret:w.secret}}),examples:[JSON.stringify((new d.SdkgenService).buildJsonObject(b.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(je,_=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 _.has(i.name)?{}:this.buildJsonObject(i.fields,new Set([..._,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 je.reduce((i,d)=>(i[d.name]=l(d.type),i),{})}getTypeScriptCode(je,_){return`await client.${je}(${JSON.stringify(_,null,2)});\n`}buildKotlinString(je,_=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,_+1)}\n${" ".repeat(_+1)})`;case parser_1.OptionalType:return"null";case parser_1.TypeReference:return l(i.type);case parser_1.ArrayType:_++;const d=l(i.base);return _--,`arrayOf(\n${" ".repeat(_+2)}${d},\n${" ".repeat(_+2)}${d}\n${" ".repeat(_+1)})`;case parser_1.EnumType:return`"${i.values[0].value}"`;default:return"<>()"}};return je.map(i=>`${" ".repeat(_+1)}${l(i.type)}`).join(",\n")}getKotlinCode(je,_){return 0===_.length?`client.${je}().await();`:`client.${je}(\n${this.buildKotlinString(_)}\n).await();`}getDartCode(je,_){return'print("todo");'}getSwiftCode(je,_){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:(je,_)=>["baseUrl","extra","successHook","errorHook","makeRequest"].includes(_.toString())?clientInstance[_.toString()]:function(){var l=_asyncToGenerator(function*(i){return clientInstance.makeRequest(_.toString(),i)});return function(i){return l.apply(this,arguments)}}()})}}exports.SdkgenService=SdkgenService,SdkgenService.\u0275fac=function je(_){return new(_||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(je){this.sdkgen=je,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(je=>{!je||(this.generateFunctionCode(je.astRoot,this.fn),this.client=this.sdkgen.getSdkgenClient(je.url,je.astJson))})}ngOnDestroy(){var je;null===(je=this.state$)||void 0===je||je.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(je){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:je.toString()}),delete je.toString,_this.response={error:{type:je.type,message:je.message,data:je.data}}}finally{eval(code_execution_1.unwrap),_this.selected.setValue(1)}})()}generateFunctionCode(je,_){var l;const i=null===(l=je.operations.find(d=>d.name===_))||void 0===l?void 0:l.args;i&&(this.code=JSON.stringify(this.sdkgen.buildJsonObject(i),null,2))}}exports.SimpleCallComponent=SimpleCallComponent,SimpleCallComponent.\u0275fac=function je(_){return new(_||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 je(_,l){1&_&&(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(d){return l.selected.setValue(d)}),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(d){return l.code=d}),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&_&&(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(je){this.sdkgen=je,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(je=>{if(!je)return;const _=`${this.patchBrowserClientSource((0,typescript_generator_1.generateBrowserClientSource)(je.astRoot))}\n\ndeclare const client: sdkgen.ApiClient;\n\n`;this.client=this.sdkgen.getSdkgenClient(je.url,je.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(d=>d.uri.toString().endsWith("client.d.ts"));l?l.setValue(_):monaco.editor.createModel(_,"typescript",monaco.Uri.parse("ts:filename/client.d.ts"));const[i]=je.astRoot.operations;this.code=this.sdkgen.getTypeScriptCode(i.name,this.sdkgen.buildJsonObject(i.args))})}ngOnDestroy(){var je;null===(je=this.state$)||void 0===je||je.unsubscribe()}patchBrowserClientSource(je){return`declare namespace sdkgen {\n${je.substring(95,je.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(je){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:je.toString()})}})()}}exports.TabEditorComponent=TabEditorComponent,TabEditorComponent.\u0275fac=function je(_){return new(_||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 je(_,l){1&_&&(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(d){return l.code=d}),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&_&&(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:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.TabHomeComponent=void 0;const i=l(655),d=l(5e3),m=l(9435),u=l(5281),s=(0,i.__importStar)(l(5e3)),b=(0,i.__importStar)(l(6395)),T=(0,i.__importStar)(l(8966)),S=(0,i.__importStar)(l(7120)),g=(0,i.__importStar)(l(1430)),v=(0,i.__importStar)(l(3075)),A=(0,i.__importStar)(l(9808)),O=(0,i.__importStar)(l(7238)),w=(0,i.__importStar)(l(7423)),k=(0,i.__importStar)(l(5245)),U=(0,i.__importStar)(l(3251)),me=(0,i.__importStar)(l(107)),$=(0,i.__importStar)(l(9417)),re=(0,i.__importStar)(l(2075)),Te=(0,i.__importStar)(l(4211));function fe(lt,Qe){if(1&lt&&(s.\u0275\u0275elementStart(0,"span",8),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&lt){const N=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.description)}}const _e=function(lt){return{active:lt}};function le(lt,Qe){if(1&lt){const N=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"li",5),s.\u0275\u0275listener("click",function(){const ue=s.\u0275\u0275restoreView(N).$implicit;return s.\u0275\u0275nextContext().selectedFunction=ue}),s.\u0275\u0275elementStart(1,"span",6),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(3,fe,2,1,"span",7),s.\u0275\u0275elementEnd()}if(2&lt){const N=Qe.$implicit,ae=s.\u0275\u0275nextContext();s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(3,_e,(null==ae.selectedFunction?null:ae.selectedFunction.name)===N.name)),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate(N.name),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",N.description)}}function Ee(lt,Qe){1&lt&&s.\u0275\u0275element(0,"span")}function Fe(lt,Qe){if(1&lt){const N=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"span"),s.\u0275\u0275element(1,"br"),s.\u0275\u0275text(2,"\xa0\xa0"),s.\u0275\u0275elementStart(3,"span",37),s.\u0275\u0275text(4),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(5,"span",14),s.\u0275\u0275text(6,":"),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(7,"\xa0"),s.\u0275\u0275elementStart(8,"u",15),s.\u0275\u0275listener("click",function(){const ue=s.\u0275\u0275restoreView(N).$implicit;return s.\u0275\u0275nextContext(2).showDocumentation(ue.rawType)}),s.\u0275\u0275text(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(10,Ee,1,0,"span",38),s.\u0275\u0275elementEnd()}if(2&lt){const N=Qe.$implicit,ae=Qe.index;s.\u0275\u0275nextContext();const Oe=s.\u0275\u0275reference(18),ue=s.\u0275\u0275reference(20),De=s.\u0275\u0275nextContext();s.\u0275\u0275advance(4),s.\u0275\u0275textInterpolate(N.name),s.\u0275\u0275advance(4),s.\u0275\u0275property("matTooltip",De.getTooltip(N.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.type),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",ae!=De.selectedFunction.args.length-1)("ngIfThen",Oe)("ngIfElse",ue)}}function Je(lt,Qe){1&lt&&s.\u0275\u0275text(0,",")}function ot(lt,Qe){1&lt&&s.\u0275\u0275element(0,"br")}function q(lt,Qe){if(1&lt){const N=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"u",29),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(N);const Oe=s.\u0275\u0275nextContext().$implicit;return s.\u0275\u0275nextContext(3).showDocumentation(Oe.dataType)}),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()}if(2&lt){const N=s.\u0275\u0275nextContext().$implicit,ae=s.\u0275\u0275nextContext(3);s.\u0275\u0275property("matTooltip",ae.getTooltip(N.dataType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate1("(",N.dataType.name,")")}}function Ae(lt,Qe){if(1&lt&&(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,q,2,2,"u",43),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&lt){const N=Qe.$implicit;s.\u0275\u0275property("disableRipple",!0),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate(N.name),s.\u0275\u0275advance(3),s.\u0275\u0275textInterpolate1("",N.type," "),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",N.dataType&&"void"!==N.dataType.name)}}function X(lt,Qe){if(1&lt&&(s.\u0275\u0275elementStart(0,"section",39),s.\u0275\u0275elementStart(1,"mat-chip-list",40),s.\u0275\u0275template(2,Ae,7,4,"mat-chip",41),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&lt){const N=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275property("selectable",!1),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngForOf",N.selectedFunction.labels)}}function ce(lt,Qe){if(1&lt&&(s.\u0275\u0275elementStart(0,"p"),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&lt){const N=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.selectedFunction.description)}}function Se(lt,Qe){1&lt&&(s.\u0275\u0275elementStart(0,"p",44),s.\u0275\u0275text(1,"N\xe3o h\xe1 descri\xe7\xe3o para esta fun\xe7\xe3o."),s.\u0275\u0275elementEnd())}function ne(lt,Qe){1&lt&&(s.\u0275\u0275elementStart(0,"p",44),s.\u0275\u0275text(1,"Esta fun\xe7\xe3o n\xe3o possui argumentos."),s.\u0275\u0275elementEnd())}function $e(lt,Qe){1&lt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Nome"),s.\u0275\u0275elementEnd())}function ge(lt,Qe){if(1&lt&&(s.\u0275\u0275elementStart(0,"td",55),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&lt){const N=Qe.$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.name)}}function Ze(lt,Qe){1&lt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Tipo"),s.\u0275\u0275elementEnd())}function Me(lt,Qe){if(1&lt){const N=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"td",55),s.\u0275\u0275elementStart(1,"u",29),s.\u0275\u0275listener("click",function(){const ue=s.\u0275\u0275restoreView(N).$implicit;return s.\u0275\u0275nextContext(3).showDocumentation(ue.rawType)}),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&lt){const N=Qe.$implicit,ae=s.\u0275\u0275nextContext(3);s.\u0275\u0275advance(1),s.\u0275\u0275property("matTooltip",ae.getTooltip(N.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.type)}}function Ke(lt,Qe){1&lt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Descri\xe7\xe3o"),s.\u0275\u0275elementEnd())}function mt(lt,Qe){if(1&lt&&(s.\u0275\u0275elementStart(0,"td",56),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&lt){const N=Qe.$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.description||"-")}}function Dt(lt,Qe){1&lt&&s.\u0275\u0275element(0,"tr",57)}function ke(lt,Qe){1&lt&&s.\u0275\u0275element(0,"tr",58)}function Ye(lt,Qe){if(1&lt&&(s.\u0275\u0275elementStart(0,"table",45),s.\u0275\u0275elementContainerStart(1,46),s.\u0275\u0275template(2,$e,2,0,"th",47),s.\u0275\u0275template(3,ge,2,1,"td",48),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275elementContainerStart(4,49),s.\u0275\u0275template(5,Ze,2,0,"th",47),s.\u0275\u0275template(6,Me,3,2,"td",48),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275elementContainerStart(7,50),s.\u0275\u0275template(8,Ke,2,0,"th",47),s.\u0275\u0275template(9,mt,2,1,"td",51),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275template(10,Dt,1,0,"tr",52),s.\u0275\u0275template(11,ke,1,0,"tr",53),s.\u0275\u0275elementEnd()),2&lt){const N=s.\u0275\u0275nextContext(2);s.\u0275\u0275property("dataSource",N.selectedFunction.args),s.\u0275\u0275advance(10),s.\u0275\u0275property("matHeaderRowDef",N.argumentsTableColumns),s.\u0275\u0275advance(1),s.\u0275\u0275property("matRowDefColumns",N.argumentsTableColumns)}}function Z(lt,Qe){1&lt&&(s.\u0275\u0275elementStart(0,"span",59),s.\u0275\u0275text(1,"Dart"),s.\u0275\u0275elementEnd())}function pe(lt,Qe){1&lt&&(s.\u0275\u0275elementStart(0,"span",59),s.\u0275\u0275text(1,"Swift"),s.\u0275\u0275elementEnd())}const we=function(){return{theme:"vs-dark",language:"javascript"}},Re=function(){return{theme:"vs-dark",language:"kotlin"}},ye=function(){return{theme:"vs-dark",language:"dart"}},Xe=function(){return{theme:"vs-dark",language:"swift"}};function dt(lt,Qe){if(1&lt){const N=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,Fe,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(N);const Oe=s.\u0275\u0275nextContext();return Oe.showDocumentation(Oe.selectedFunction.returns.rawType)}),s.\u0275\u0275text(16),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(17,Je,1,0,"ng-template",null,16,s.\u0275\u0275templateRefExtractor),s.\u0275\u0275template(19,ot,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(N),s.\u0275\u0275nextContext().addSimpleCallTab()}),s.\u0275\u0275elementStart(23,"mat-icon"),s.\u0275\u0275text(24,"play_arrow"),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(25,"\xa0EXECUTAR "),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(26,X,3,2,"section",19),s.\u0275\u0275elementStart(27,"section",9),s.\u0275\u0275elementStart(28,"h2",20),s.\u0275\u0275text(29,"Descri\xe7\xe3o"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(30,"div",21),s.\u0275\u0275template(31,ce,2,1,"p",22),s.\u0275\u0275template(32,Se,2,0,"p",23),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(33,"h2",24),s.\u0275\u0275text(34,"Par\xe2metros"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(35,"div",21),s.\u0275\u0275template(36,ne,2,0,"p",23),s.\u0275\u0275elementStart(37,"div",25),s.\u0275\u0275template(38,Ye,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(N);const Oe=s.\u0275\u0275nextContext();return Oe.showDocumentation(Oe.selectedFunction.returns.rawType)}),s.\u0275\u0275text(44),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(45,"h2",30),s.\u0275\u0275text(46,"Exemplo de Requisi\xe7\xe3o"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(47,"mat-tab-group",31),s.\u0275\u0275elementStart(48,"mat-tab",32),s.\u0275\u0275element(49,"ngx-monaco-editor",33),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(50,"mat-tab",34),s.\u0275\u0275element(51,"ngx-monaco-editor",33),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(52,"mat-tab",35),s.\u0275\u0275template(53,Z,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,pe,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&lt){const N=s.\u0275\u0275nextContext();s.\u0275\u0275advance(8),s.\u0275\u0275textInterpolate(N.selectedFunction.name),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",N.selectedFunction.args),s.\u0275\u0275advance(5),s.\u0275\u0275property("matTooltip",N.getTooltip(N.selectedFunction.returns.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.selectedFunction.returns.type),s.\u0275\u0275advance(10),s.\u0275\u0275property("ngIf",N.selectedFunction.labels.length>0),s.\u0275\u0275advance(4),s.\u0275\u0275property("ngSwitch",!!N.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",N.selectedFunction.args.length),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase",0),s.\u0275\u0275advance(7),s.\u0275\u0275property("matTooltip",N.getTooltip(N.selectedFunction.returns.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.selectedFunction.returns.type),s.\u0275\u0275advance(5),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(20,we))("ngModel",N.selectedFunction.examples.typeScript),s.\u0275\u0275advance(2),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(21,Re))("ngModel",N.selectedFunction.examples.kotlin),s.\u0275\u0275advance(3),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(22,ye))("ngModel",N.selectedFunction.examples.dart),s.\u0275\u0275advance(3),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(23,Xe))("ngModel",N.selectedFunction.examples.swift)}}const bt=function(){return{standalone:!0}};class Ot{constructor(Qe,N,ae){this.sdkgen=Qe,this.dialog=N,this.responsive=ae,this.isBelowMd=!1,this.runFunction=new d.EventEmitter,this.searchText="",this.argumentsTableColumns=["name","type","description"],this.editorOptions={theme:"vs-dark",language:"javascript"}}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Qe=>{!Qe||(this.selectedFunction=void 0,this.fnTable=Qe.astRoot.operations.sort((N,ae)=>N.name.localeCompare(ae.name)).map(N=>{var ae,Oe,ue;const De=Qe.astJson.annotations[`fn.${N.name}`],ve=this.sdkgen.buildJsonObject(N.args);return(null==De?void 0:De.find(se=>"hidden"===se.type))?null:{name:N.name,description:null===(ae=null==De?void 0:De.find(se=>"description"===se.type))||void 0===ae?void 0:ae.value,args:N.args.map(({name:se,type:be})=>{var Ge,nt,ht;return{name:se,description:null===(ht=[...null!==(Ge=Qe.astJson.annotations[`type.${be}.${se}`])&&void 0!==Ge?Ge:[],...null!==(nt=Qe.astJson.annotations[`fn.${N.name}.${se}`])&&void 0!==nt?nt:[]].find(wt=>"description"===wt.type))||void 0===ht?void 0:ht.value,type:be.name,rawType:be}}),argsStr:N.args.map(se=>`${se.name}: ${se.type.name}`).join(", "),argsFields:N.args,returns:{type:N.returnType.name,rawType:N.returnType},labels:null!==(Oe=null==De?void 0:De.filter(se=>["rest","throws"].includes(se.type)).map(se=>{var be;return"rest"===se.type?{name:"REST",type:`${se.value.method} ${se.value.path}`}:"throws"===se.type?{name:"THROWS",type:se.value,dataType:null===(be=Qe.astRoot.errors.find(Ge=>Ge.name===se.value))||void 0===be?void 0:be.dataType}:{name:"?",type:"?"}}))&&void 0!==Oe?Oe:[],throws:null===(ue=null==De?void 0:De.find(se=>"throws"===se.type))||void 0===ue?void 0:ue.value,examples:{typeScript:this.sdkgen.getTypeScriptCode(N.name,ve),kotlin:this.sdkgen.getKotlinCode(N.name,N.args),dart:this.sdkgen.getDartCode(N.name,ve),swift:this.sdkgen.getSwiftCode(N.name,ve)}}}).filter(N=>Boolean(N)))})}ngOnDestroy(){var Qe,N;null===(Qe=this.state$)||void 0===Qe||Qe.unsubscribe(),null===(N=this.responsive$)||void 0===N||N.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(Qe=>{this.isBelowMd=Qe.matches})}addSimpleCallTab(){var Qe;this.runFunction.emit(null===(Qe=this.selectedFunction)||void 0===Qe?void 0:Qe.name)}getTooltip(Qe){return(0,m.getTypeDoc)(Qe).shortDescription}showDocumentation(Qe){this.dialog.open(u.TypeDetailsComponent,{position:{right:"0",top:"0",bottom:"0"},data:{type:Qe},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}_.TabHomeComponent=Ot,Ot.\u0275fac=function(Qe){return new(Qe||Ot)(s.\u0275\u0275directiveInject(b.SdkgenService),s.\u0275\u0275directiveInject(T.MatDialog),s.\u0275\u0275directiveInject(S.ResponsiveService))},Ot.\u0275cmp=s.\u0275\u0275defineComponent({type:Ot,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(Qe,N){1&Qe&&(s.\u0275\u0275elementStart(0,"as-split",0),s.\u0275\u0275elementStart(1,"as-split-area",1),s.\u0275\u0275elementStart(2,"aside"),s.\u0275\u0275elementStart(3,"nav"),s.\u0275\u0275elementStart(4,"form"),s.\u0275\u0275elementStart(5,"input",2),s.\u0275\u0275listener("ngModelChange",function(Oe){return N.searchText=Oe}),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(6,"ul"),s.\u0275\u0275template(7,le,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,dt,58,24,"article",4),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&Qe&&(s.\u0275\u0275property("direction",N.isBelowMd?"vertical":"horizontal"),s.\u0275\u0275advance(1),s.\u0275\u0275property("size",N.isBelowMd?130:350),s.\u0275\u0275advance(4),s.\u0275\u0275property("ngModel",N.searchText)("ngModelOptions",s.\u0275\u0275pureFunction0(9,bt)),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",s.\u0275\u0275pipeBind2(8,6,N.fnTable,N.searchText)),s.\u0275\u0275advance(3),s.\u0275\u0275property("ngIf",N.selectedFunction))},directives:[g.SplitComponent,g.SplitAreaDirective,v.\u0275NgNoValidate,v.NgControlStatusGroup,v.NgForm,v.DefaultValueAccessor,v.NgControlStatus,v.NgModel,A.NgForOf,A.NgIf,A.NgClass,O.MatTooltip,w.MatButton,k.MatIcon,A.NgSwitch,A.NgSwitchCase,A.NgSwitchDefault,U.MatTabGroup,U.MatTab,me.MonacoEditorComponent,U.MatTabLabel,$.MatChipList,$.MatChip,re.MatTable,re.MatColumnDef,re.MatHeaderCellDef,re.MatCellDef,re.MatHeaderRowDef,re.MatRowDef,re.MatHeaderCell,re.MatCell,re.MatHeaderRow,re.MatRow],pipes:[Te.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:(je,_,l)=>{"use strict";var i=l(8926).default;Object.defineProperty(_,"__esModule",{value:!0}),_.TabNavComponent=void 0;const d=l(655),m=l(3075),u=l(6676),s=l(4814),b=(0,d.__importStar)(l(5e3)),T=(0,d.__importStar)(l(6395)),S=(0,d.__importStar)(l(2290)),g=(0,d.__importStar)(l(8966)),v=(0,d.__importStar)(l(3075)),A=(0,d.__importStar)(l(508)),O=(0,d.__importStar)(l(9808)),w=(0,d.__importStar)(l(7423)),k=(0,d.__importStar)(l(5245));function U(re,Te){1&re&&(b.\u0275\u0275elementContainerStart(0),b.\u0275\u0275elementStart(1,"mat-icon",6),b.\u0275\u0275text(2,"loop"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementContainerEnd())}function me(re,Te){1&re&&(b.\u0275\u0275elementContainerStart(0),b.\u0275\u0275elementStart(1,"mat-icon"),b.\u0275\u0275text(2,"arrow_forward"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementContainerEnd())}class ${constructor(Te,fe,_e){this.sdkgen=Te,this.toastr=fe,this.dialog=_e,this.loading=!1,this.url=new m.FormControl("")}ngOnInit(){fetch("/ast.json").then(Te=>{Te.ok&&(this.url.setValue(`${window.location.protocol}//${window.location.host}`),this.loadUrl())}).catch(()=>{})}loadUrl(Te){var fe=this;return i(function*(){null==Te||Te.preventDefault();try{fe.loading=!0,/^https?:\/\//.test(fe.url.value)||fe.url.setValue(`https://${fe.url.value}`);const _e=new URL(fe.url.value);_e.pathname+=(/\/$/u.test(_e.pathname)?"":"/")+"ast.json";const le=_e.toString();console.debug("astUrl",le);const Ee=yield fetch(le).then(Fe=>Fe.ok?Fe.json():Fe);if(Ee instanceof Response)throw Ee instanceof Error?Ee:new Error(Ee.statusText);if(!Ee.errors||!Ee.functionTable||!Ee.typeTable)throw new Error("Invalid AST");for(;"undefined"==typeof monaco;)yield new Promise(Fe=>setTimeout(Fe,250));console.debug("astJson",Ee),fe.sdkgen.state$.next({astJson:Ee,astRoot:(0,u.jsonToAst)(Ee),url:fe.url.value})}catch(_e){fe.toastr.error(_e instanceof Error?_e.message:JSON.stringify(_e),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{fe.loading=!1}})()}openAbout(){this.dialog.open(s.DialogAboutComponent)}}_.TabNavComponent=$,$.\u0275fac=function(Te){return new(Te||$)(b.\u0275\u0275directiveInject(T.SdkgenService),b.\u0275\u0275directiveInject(S.ToastrService),b.\u0275\u0275directiveInject(g.MatDialog))},$.\u0275cmp=b.\u0275\u0275defineComponent({type:$,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(Te,fe){1&Te&&(b.\u0275\u0275element(0,"img",0),b.\u0275\u0275elementStart(1,"form",1),b.\u0275\u0275listener("submit",function(le){return fe.loadUrl(le)}),b.\u0275\u0275element(2,"input",2),b.\u0275\u0275elementStart(3,"button",3),b.\u0275\u0275template(4,U,3,0,"ng-container",4),b.\u0275\u0275template(5,me,3,0,"ng-container",4),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(6,"button",5),b.\u0275\u0275listener("click",function(){return fe.openAbout()}),b.\u0275\u0275elementStart(7,"mat-icon"),b.\u0275\u0275text(8,"info"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementEnd()),2&Te&&(b.\u0275\u0275advance(2),b.\u0275\u0275property("formControl",fe.url)("readonly",fe.loading),b.\u0275\u0275advance(1),b.\u0275\u0275property("disabled",fe.loading)("ngSwitch",fe.loading),b.\u0275\u0275advance(1),b.\u0275\u0275property("ngSwitchCase",!0),b.\u0275\u0275advance(1),b.\u0275\u0275property("ngSwitchCase",!1))},directives:[v.\u0275NgNoValidate,v.NgControlStatusGroup,v.NgForm,v.DefaultValueAccessor,v.NgControlStatus,v.FormControlDirective,A.MatRipple,O.NgSwitch,O.NgSwitchCase,w.MatButton,k.MatIcon],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:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.TypeDetailsComponent=void 0;const i=l(655),d=l(8966),m=l(9435),u=(0,i.__importStar)(l(5e3)),s=(0,i.__importStar)(l(8966)),b=(0,i.__importStar)(l(9808)),T=(0,i.__importStar)(l(9417)),S=(0,i.__importStar)(l(7423)),g=(0,i.__importStar)(l(5245)),v=(0,i.__importStar)(l(2075)),A=(0,i.__importStar)(l(7238));function O(ce,Se){1&ce&&(u.\u0275\u0275elementStart(0,"button",6),u.\u0275\u0275elementStart(1,"mat-icon"),u.\u0275\u0275text(2,"arrow_back"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd())}function w(ce,Se){if(1&ce&&(u.\u0275\u0275elementStart(0,"mat-chip",7),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ce){const ne=Se.$implicit;u.\u0275\u0275property("disableRipple",!0),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(ne)}}function k(ce,Se){1&ce&&(u.\u0275\u0275elementStart(0,"button",8),u.\u0275\u0275elementStart(1,"mat-icon"),u.\u0275\u0275text(2,"close"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd())}function U(ce,Se){1&ce&&(u.\u0275\u0275elementStart(0,"th",20),u.\u0275\u0275text(1,"Nome"),u.\u0275\u0275elementEnd())}function me(ce,Se){if(1&ce&&(u.\u0275\u0275elementStart(0,"td",21),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ce){const ne=Se.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(ne.name)}}function $(ce,Se){1&ce&&(u.\u0275\u0275elementStart(0,"th",20),u.\u0275\u0275text(1,"Tipo"),u.\u0275\u0275elementEnd())}function re(ce,Se){1&ce&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1,"-"),u.\u0275\u0275elementEnd())}function Te(ce,Se){if(1&ce){const ne=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"u",25),u.\u0275\u0275listener("click",function(){u.\u0275\u0275restoreView(ne);const ge=u.\u0275\u0275nextContext().$implicit;return u.\u0275\u0275nextContext(2).showDocumentation(ge.type)}),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()}if(2&ce){const ne=u.\u0275\u0275nextContext().$implicit,$e=u.\u0275\u0275nextContext(2);u.\u0275\u0275property("matTooltip",$e.getTooltip(ne.type)),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(ne.type.name)}}function fe(ce,Se){1&ce&&(u.\u0275\u0275elementStart(0,"td",22),u.\u0275\u0275template(1,re,2,0,"span",23),u.\u0275\u0275template(2,Te,2,2,"u",24),u.\u0275\u0275elementEnd()),2&ce&&(u.\u0275\u0275property("ngSwitch",Se.$implicit.type),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngSwitchCase",null))}function _e(ce,Se){1&ce&&(u.\u0275\u0275elementStart(0,"th",20),u.\u0275\u0275text(1,"Descri\xe7\xe3o"),u.\u0275\u0275elementEnd())}function le(ce,Se){if(1&ce&&(u.\u0275\u0275elementStart(0,"td",26),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ce){const ne=Se.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(ne.description||"-")}}function Ee(ce,Se){1&ce&&u.\u0275\u0275element(0,"tr",27)}function Fe(ce,Se){1&ce&&u.\u0275\u0275element(0,"tr",28)}const Je=function(){return[]};function ot(ce,Se){if(1&ce&&(u.\u0275\u0275elementStart(0,"section"),u.\u0275\u0275elementStart(1,"div",9),u.\u0275\u0275elementStart(2,"table",10),u.\u0275\u0275elementContainerStart(3,11),u.\u0275\u0275template(4,U,2,0,"th",12),u.\u0275\u0275template(5,me,2,1,"td",13),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(6,14),u.\u0275\u0275template(7,$,2,0,"th",12),u.\u0275\u0275template(8,fe,3,2,"td",15),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(9,16),u.\u0275\u0275template(10,_e,2,0,"th",12),u.\u0275\u0275template(11,le,2,1,"td",17),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275template(12,Ee,1,0,"tr",18),u.\u0275\u0275template(13,Fe,1,0,"tr",19),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&ce){const ne=u.\u0275\u0275nextContext();let $e;u.\u0275\u0275advance(2),u.\u0275\u0275property("dataSource",null!==($e=null==ne.typeDoc?null:ne.typeDoc.structFields)&&void 0!==$e?$e:u.\u0275\u0275pureFunction0(3,Je)),u.\u0275\u0275advance(10),u.\u0275\u0275property("matHeaderRowDef",ne.argumentsTableColumns),u.\u0275\u0275advance(1),u.\u0275\u0275property("matRowDefColumns",ne.argumentsTableColumns)}}function q(ce,Se){if(1&ce&&(u.\u0275\u0275elementStart(0,"li"),u.\u0275\u0275elementStart(1,"code",1),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&ce){const ne=Se.$implicit;u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(ne)}}function Ae(ce,Se){if(1&ce&&(u.\u0275\u0275elementStart(0,"section"),u.\u0275\u0275elementStart(1,"h3"),u.\u0275\u0275text(2,"Exemplos"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(3,"ul"),u.\u0275\u0275template(4,q,3,1,"li",29),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&ce){const ne=u.\u0275\u0275nextContext();u.\u0275\u0275advance(4),u.\u0275\u0275property("ngForOf",null==ne.typeDoc?null:ne.typeDoc.examples)}}class X{constructor(Se,ne,$e){this.dialogRef=Se,this.data=ne,this.dialog=$e,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(Se){return(0,m.getTypeDoc)(Se).shortDescription}showDocumentation(Se){this.dialog.open(X,{position:{right:"0"},data:{type:Se,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}_.TypeDetailsComponent=X,X.\u0275fac=function(Se){return new(Se||X)(u.\u0275\u0275directiveInject(s.MatDialogRef),u.\u0275\u0275directiveInject(d.MAT_DIALOG_DATA),u.\u0275\u0275directiveInject(s.MatDialog))},X.\u0275cmp=u.\u0275\u0275defineComponent({type:X,selectors:[["app-type-details"]],decls:11,vars:8,consts:[["class","back-button","mat-icon-button","","mat-dialog-close","","tabindex","-1",4,"ngIf"],[1,"mono"],[3,"selectable"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["class","close-button","mat-icon-button","","mat-dialog-close","","tabindex","-1",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","mat-dialog-close","","tabindex","-1",1,"back-button"],["color","primary",3,"disableRipple"],["mat-icon-button","","mat-dialog-close","","tabindex","-1",1,"close-button"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["class","mono","mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],["mat-cell","",1,"mono",3,"ngSwitch"],[4,"ngSwitchCase"],[3,"matTooltip","click",4,"ngSwitchDefault"],[3,"matTooltip","click"],["mat-cell",""],["mat-header-row",""],["mat-row",""],[4,"ngFor","ngForOf"]],template:function(Se,ne){1&Se&&(u.\u0275\u0275elementStart(0,"h1"),u.\u0275\u0275template(1,O,3,0,"button",0),u.\u0275\u0275elementStart(2,"span",1),u.\u0275\u0275text(3),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(4,"mat-chip-list",2),u.\u0275\u0275template(5,w,2,2,"mat-chip",3),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(6,k,3,0,"button",4),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(7,"p"),u.\u0275\u0275text(8),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(9,ot,14,4,"section",5),u.\u0275\u0275template(10,Ae,5,1,"section",5)),2&Se&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",ne.data.subdialog),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(ne.data.type.name),u.\u0275\u0275advance(1),u.\u0275\u0275property("selectable",!1),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngForOf",ne.labels),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",!ne.data.subdialog),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(null==ne.typeDoc?null:ne.typeDoc.longDescription),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",(null==ne.typeDoc?null:ne.typeDoc.isStruct)&&(null==ne.typeDoc?null:ne.typeDoc.structFields)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",null==ne.typeDoc||null==ne.typeDoc.examples?null:ne.typeDoc.examples.length))},directives:[b.NgIf,T.MatChipList,b.NgForOf,S.MatButton,s.MatDialogClose,g.MatIcon,T.MatChip,v.MatTable,v.MatColumnDef,v.MatHeaderCellDef,v.MatCellDef,v.MatHeaderRowDef,v.MatRowDef,v.MatHeaderCell,v.MatCell,b.NgSwitch,b.NgSwitchCase,b.NgSwitchDefault,A.MatTooltip,v.MatHeaderRow,v.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:(je,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.unwrap=_.wrapper=void 0,_.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',_.unwrap="\n XMLHttpRequest.prototype.open = window.___originalXmlHttpRequestOpen;\n console.log = window.___originalConsoleLog;\n console.error = window.___originalConsoleError;\n"},2340:(je,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.environment=void 0,_.environment={production:!0}},4431:(je,_,l)=>{"use strict";const m=(0,l(655).__importStar)(l(2313)),u=l(5e3),s=l(6747);l(2340).environment.production&&(0,u.enableProdMode)(),m.platformBrowser().bootstrapModule(s.AppModule).catch(T=>console.error(T))},4327:function(je,_){var d;void 0!==(d=function(){"use strict";function u(v,A,O){var w=new XMLHttpRequest;w.open("GET",v),w.responseType="blob",w.onload=function(){g(w.response,A,O)},w.onerror=function(){console.error("could not download file")},w.send()}function s(v){var A=new XMLHttpRequest;A.open("HEAD",v,!1);try{A.send()}catch(O){}return 200<=A.status&&299>=A.status}function b(v){try{v.dispatchEvent(new MouseEvent("click"))}catch(O){var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),v.dispatchEvent(A)}}var T="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,S=T.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=T.saveAs||("object"!=typeof window||window!==T?function(){}:"download"in HTMLAnchorElement.prototype&&!S?function(v,A,O){var w=T.URL||T.webkitURL,k=document.createElement("a");k.download=A=A||v.name||"download",k.rel="noopener","string"==typeof v?(k.href=v,k.origin===location.origin?b(k):s(k.href)?u(v,A,O):b(k,k.target="_blank")):(k.href=w.createObjectURL(v),setTimeout(function(){w.revokeObjectURL(k.href)},4e4),setTimeout(function(){b(k)},0))}:"msSaveOrOpenBlob"in navigator?function(v,A,O){if(A=A||v.name||"download","string"!=typeof v)navigator.msSaveOrOpenBlob(function m(v,A){return void 0===A?A={autoBom:!1}:"object"!=typeof A&&(console.warn("Deprecated: Expected third argument to be a object"),A={autoBom:!A}),A.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(v.type)?new Blob(["\ufeff",v],{type:v.type}):v}(v,O),A);else if(s(v))u(v,A,O);else{var w=document.createElement("a");w.href=v,w.target="_blank",setTimeout(function(){b(w)})}}:function(v,A,O,w){if((w=w||open("","_blank"))&&(w.document.title=w.document.body.innerText="downloading..."),"string"==typeof v)return u(v,A,O);var k="application/octet-stream"===v.type,U=/constructor/i.test(T.HTMLElement)||T.safari,me=/CriOS\/[\d]+/.test(navigator.userAgent);if((me||k&&U||S)&&"undefined"!=typeof FileReader){var $=new FileReader;$.onloadend=function(){var fe=$.result;fe=me?fe:fe.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=fe:location=fe,w=null},$.readAsDataURL(v)}else{var re=T.URL||T.webkitURL,Te=re.createObjectURL(v);w?w.location=Te:location.href=Te,w=null,setTimeout(function(){re.revokeObjectURL(Te)},4e4)}});T.saveAs=g.saveAs=g,je.exports=g}.apply(_,[]))&&(je.exports=d)},5109:(je,_,l)=>{"use strict";l.r(_),l.d(_,{NgxJsonViewerComponent:()=>g,NgxJsonViewerModule:()=>v});var i=l(9808),d=l(5e3);function m(A,O){1&A&&d.\u0275\u0275element(0,"div",9)}function u(A,O){if(1&A&&(d.\u0275\u0275elementStart(0,"span",10),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&A){const w=d.\u0275\u0275nextContext().$implicit;d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(w.description)}}function s(A,O){if(1&A&&(d.\u0275\u0275elementStart(0,"section",11),d.\u0275\u0275element(1,"ngx-json-viewer",12),d.\u0275\u0275elementEnd()),2&A){const w=d.\u0275\u0275nextContext().$implicit,k=d.\u0275\u0275nextContext();d.\u0275\u0275advance(1),d.\u0275\u0275property("json",w.value)("expanded",k.expanded)("depth",k.depth)("_currentDepth",k._currentDepth)}}const b=function(A){return["segment",A]},T=function(A,O){return{"segment-main":!0,expandable:A,expanded:O}};function S(A,O){if(1&A){const w=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"section",2),d.\u0275\u0275elementStart(1,"section",3),d.\u0275\u0275listener("click",function(){const me=d.\u0275\u0275restoreView(w).$implicit;return d.\u0275\u0275nextContext().toggle(me)}),d.\u0275\u0275template(2,m,1,0,"div",4),d.\u0275\u0275elementStart(3,"span",5),d.\u0275\u0275text(4),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(5,"span",6),d.\u0275\u0275text(6,": "),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(7,u,2,1,"span",7),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(8,s,2,4,"section",8),d.\u0275\u0275elementEnd()}if(2&A){const w=O.$implicit,k=d.\u0275\u0275nextContext();d.\u0275\u0275property("ngClass",d.\u0275\u0275pureFunction1(6,b,"segment-type-"+w.type)),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngClass",d.\u0275\u0275pureFunction2(8,T,k.isExpandable(w),w.expanded)),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",k.isExpandable(w)),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate(w.key),d.\u0275\u0275advance(3),d.\u0275\u0275property("ngIf",!w.expanded||!k.isExpandable(w)),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",w.expanded&&k.isExpandable(w))}}let g=(()=>{class A{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=-1,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),this._currentDepth++,"object"==typeof this.json?Object.keys(this.json).forEach(w=>{this.segments.push(this.parseKeyValue(w,this.json[w]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(w){return"object"===w.type||"array"===w.type}toggle(w){this.isExpandable(w)&&(w.expanded=!w.expanded)}parseKeyValue(w,k){const U={key:w,value:k,type:void 0,description:""+k,expanded:this.isExpanded()};switch(typeof U.value){case"number":U.type="number";break;case"boolean":U.type="boolean";break;case"function":U.type="function";break;case"string":U.type="string",U.description='"'+U.value+'"';break;case"undefined":U.type="undefined",U.description="undefined";break;case"object":null===U.value?(U.type="null",U.description="null"):Array.isArray(U.value)?(U.type="array",U.description="Array["+U.value.length+"] "+JSON.stringify(U.value)):U.value instanceof Date?U.type="date":(U.type="object",U.description="Object "+JSON.stringify(U.value))}return U}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(w){const k=new WeakMap;return function U(me,$){let re,Te;return"object"!=typeof me||null===me||me instanceof Boolean||me instanceof Date||me instanceof Number||me instanceof RegExp||me instanceof String?me:(re=k.get(me),void 0!==re?{$ref:re}:(k.set(me,$),Array.isArray(me)?(Te=[],me.forEach(function(fe,_e){Te[_e]=U(fe,$+"["+_e+"]")})):(Te={},Object.keys(me).forEach(function(fe){Te[fe]=U(me[fe],$+"["+JSON.stringify(fe)+"]")})),Te))}(w,"$")}}return A.\u0275fac=function(w){return new(w||A)},A.\u0275cmp=d.\u0275\u0275defineComponent({type:A,selectors:[["ngx-json-viewer"]],inputs:{expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth",json:"json"},features:[d.\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(w,k){1&w&&(d.\u0275\u0275elementStart(0,"section",0),d.\u0275\u0275template(1,S,9,11,"section",1),d.\u0275\u0275elementEnd()),2&w&&(d.\u0275\u0275advance(1),d.\u0275\u0275property("ngForOf",k.segments))},directives:[i.NgForOf,i.NgClass,i.NgIf,A],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:monospace;font-size:1em;height:100%;overflow:hidden;position:relative;width:100%}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{margin:1px 1px 1px 12px;padding:2px}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%]{word-wrap:break-word}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]{color:#787878;font-size:.8em;line-height:1.2em;margin-left:-14px;margin-top:3px;position:absolute;vertical-align:middle}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]:after{content:"\u25ba";display:inline-block;transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-key[_ngcontent-%COMP%]{color:#4e187c}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-separator[_ngcontent-%COMP%]{color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-value[_ngcontent-%COMP%]{color:#000}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .children[_ngcontent-%COMP%]{margin-left:12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-string[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#ff6b6b}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#009688}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#b938a4}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#05668d}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#fff}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:red}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%]{white-space:nowrap}.ngx-json-viewer[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]:after{transform:rotate(90deg)}.ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]{cursor:pointer}']}),A})(),v=(()=>{class A{}return A.\u0275fac=function(w){return new(w||A)},A.\u0275mod=d.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=d.\u0275\u0275defineInjector({imports:[[i.CommonModule]]}),A})()},9802:(je,_,l)=>{"use strict";l.r(_),l.d(_,{ArgumentOutOfRangeError:()=>ye,AsyncSubject:()=>$,BehaviorSubject:()=>k.X,ConnectableObservable:()=>b,EMPTY:()=>Se.E,EmptyError:()=>pe,NEVER:()=>p,NotFoundError:()=>Xe,Notification:()=>Me,NotificationKind:()=>Ze,ObjectUnsubscribedError:()=>dt.N,Observable:()=>i.y,ReplaySubject:()=>me,Scheduler:()=>X.b,SequenceError:()=>bt,Subject:()=>w.x,Subscriber:()=>ce.Lv,Subscription:()=>d.w0,TimeoutError:()=>N,UnsubscriptionError:()=>ue.B,VirtualAction:()=>Ae,VirtualTimeScheduler:()=>q,animationFrame:()=>ot.r,animationFrameScheduler:()=>ot.Z,animationFrames:()=>v,asap:()=>re.e,asapScheduler:()=>re.E,async:()=>Te.P,asyncScheduler:()=>Te.z,audit:()=>di.U,auditTime:()=>Jn.e,bindCallback:()=>nt,bindNodeCallback:()=>ht,buffer:()=>Nn,bufferCount:()=>Bn,bufferTime:()=>V,bufferToggle:()=>Ie,bufferWhen:()=>z,catchError:()=>Pe.K,combineAll:()=>On,combineLatest:()=>ft.a,combineLatestAll:()=>jt,combineLatestWith:()=>Hn,concat:()=>wt.z,concatAll:()=>Un.u,concatMap:()=>Sn.b,concatMapTo:()=>kn,concatWith:()=>xn,config:()=>$n.v,connect:()=>li,connectable:()=>Bt,count:()=>Kn,debounce:()=>Gn,debounceTime:()=>Ci.b,defaultIfEmpty:()=>wi,defer:()=>Ht.P,delay:()=>hi.g,delayWhen:()=>zn.j,dematerialize:()=>Sr,distinct:()=>nr,distinctUntilChanged:()=>mr.x,distinctUntilKeyChanged:()=>Qn,elementAt:()=>Lr,empty:()=>Se.c,endWith:()=>zi,every:()=>Ir,exhaust:()=>Wi,exhaustAll:()=>Mi,exhaustMap:()=>gr,expand:()=>Ar,filter:()=>Le.h,finalize:()=>Pr.x,find:()=>Ki,findIndex:()=>Gi,first:()=>Or,firstValueFrom:()=>Re,flatMap:()=>Oi,forkJoin:()=>En.D,from:()=>rn.D,fromEvent:()=>zt.R,fromEventPattern:()=>Mt,generate:()=>Qt,groupBy:()=>Ii,identity:()=>ke.y,ignoreElements:()=>fi.l,iif:()=>on,interval:()=>oe,isEmpty:()=>Ai,isObservable:()=>Ye.b,last:()=>Qi,lastValueFrom:()=>we,map:()=>ci.U,mapTo:()=>mi.h,materialize:()=>ir,max:()=>rr,merge:()=>W.T,mergeAll:()=>Pi.J,mergeMap:()=>qe.z,mergeMapTo:()=>xi,mergeScan:()=>Zi,mergeWith:()=>Ri,min:()=>or,multicast:()=>Fi,never:()=>C,noop:()=>Dt.Z,observable:()=>T.L,observeOn:()=>be.Q,of:()=>ne.of,onErrorResumeNext:()=>Et,pairs:()=>Wt,pairwise:()=>Yi,partition:()=>Ve,pipe:()=>mt.z,pluck:()=>ki,publish:()=>xr,publishBehavior:()=>Rn,publishLast:()=>sr,publishReplay:()=>ar,queue:()=>Je,queueScheduler:()=>Fe,race:()=>he,raceWith:()=>Ln,range:()=>ut,reduce:()=>St,refCount:()=>s,repeat:()=>x,repeatWhen:()=>Q,retry:()=>R,retryWhen:()=>ie,sample:()=>We,sampleTime:()=>ct,scan:()=>vt,scheduled:()=>Dn.x,sequenceEqual:()=>Rt,share:()=>wn.B,shareReplay:()=>In,single:()=>cn,skip:()=>F.T,skipLast:()=>P,skipUntil:()=>E,skipWhile:()=>J,startWith:()=>at.O,subscribeOn:()=>ve.R,switchAll:()=>An,switchMap:()=>Vt.w,switchMapTo:()=>qn,switchScan:()=>gi,take:()=>Ui.q,takeLast:()=>pi,takeUntil:()=>Ni.R,takeWhile:()=>Tt,tap:()=>B.b,throttle:()=>f,throttleTime:()=>I,throwError:()=>$e._,throwIfEmpty:()=>Zn,timeInterval:()=>j,timeout:()=>ae,timeoutWith:()=>Ne,timer:()=>yn.H,timestamp:()=>Ue,toArray:()=>Xt,using:()=>Lt,window:()=>rt,windowCount:()=>pt,windowTime:()=>Pt,windowToggle:()=>Ut,windowWhen:()=>Zt,withLatestFrom:()=>un,zip:()=>hn,zipAll:()=>Jt,zipWith:()=>dn});var i=l(9751),d=l(6921),m=l(4482),u=l(5403);function s(){return(0,m.e)((ee,H)=>{let Y=null;ee._refCount++;const te=new u.Q(H,void 0,void 0,void 0,()=>{if(!ee||ee._refCount<=0||0<--ee._refCount)return void(Y=null);const xe=ee._connection,Be=Y;Y=null,xe&&(!Be||xe===Be)&&xe.unsubscribe(),H.unsubscribe()});ee.subscribe(te),te.closed||(Y=ee.connect())})}class b extends i.y{constructor(H,Y){super(),this.source=H,this.subjectFactory=Y,this._subject=null,this._refCount=0,this._connection=null,(0,m.A)(H)&&(this.lift=H.lift)}_subscribe(H){return this.getSubject().subscribe(H)}getSubject(){const H=this._subject;return(!H||H.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:H}=this;this._subject=this._connection=null,null==H||H.unsubscribe()}connect(){let H=this._connection;if(!H){H=this._connection=new d.w0;const Y=this.getSubject();H.add(this.source.subscribe(new u.Q(Y,void 0,()=>{this._teardown(),Y.complete()},te=>{this._teardown(),Y.error(te)},()=>this._teardown()))),H.closed&&(this._connection=null,H=d.w0.EMPTY)}return H}refCount(){return s()(this)}}var T=l(8822);const S={now:()=>(S.delegate||performance).now(),delegate:void 0};var g=l(3399);function v(ee){return ee?A(ee):O}function A(ee){const{schedule:H}=g.l;return new i.y(Y=>{const te=new d.w0,xe=ee||S,Be=xe.now(),tt=yt=>{const _t=xe.now();Y.next({timestamp:ee?_t:yt,elapsed:_t-Be}),Y.closed||te.add(H(tt))};return te.add(H(tt)),te})}const O=A();var w=l(6758),k=l(1135),U=l(6063);class me extends w.x{constructor(H=1/0,Y=1/0,te=U.l){super(),this._bufferSize=H,this._windowTime=Y,this._timestampProvider=te,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=Y===1/0,this._bufferSize=Math.max(1,H),this._windowTime=Math.max(1,Y)}next(H){const{isStopped:Y,_buffer:te,_infiniteTimeWindow:xe,_timestampProvider:Be,_windowTime:tt}=this;Y||(te.push(H),!xe&&te.push(Be.now()+tt)),this._trimBuffer(),super.next(H)}_subscribe(H){this._throwIfClosed(),this._trimBuffer();const Y=this._innerSubscribe(H),{_infiniteTimeWindow:te,_buffer:xe}=this,Be=xe.slice();for(let tt=0;tt<Be.length&&!H.closed;tt+=te?1:2)H.next(Be[tt]);return this._checkFinalizedStatuses(H),Y}_trimBuffer(){const{_bufferSize:H,_timestampProvider:Y,_buffer:te,_infiniteTimeWindow:xe}=this,Be=(xe?1:2)*H;if(H<1/0&&Be<te.length&&te.splice(0,te.length-Be),!xe){const tt=Y.now();let yt=0;for(let _t=1;_t<te.length&&te[_t]<=tt;_t+=2)yt=_t;yt&&te.splice(0,yt+1)}}}class $ extends w.x{constructor(){super(...arguments),this._value=null,this._hasValue=!1,this._isComplete=!1}_checkFinalizedStatuses(H){const{hasError:Y,_hasValue:te,_value:xe,thrownError:Be,isStopped:tt,_isComplete:yt}=this;Y?H.error(Be):(tt||yt)&&(te&&H.next(xe),H.complete())}next(H){this.isStopped||(this._value=H,this._hasValue=!0)}complete(){const{_hasValue:H,_value:Y,_isComplete:te}=this;te||(this._isComplete=!0,H&&super.next(Y),super.complete())}}var re=l(3101),Te=l(4986),fe=l(4408),le=l(8950);const Fe=new class Ee extends le.v{}(class _e extends fe.o{constructor(H,Y){super(H,Y),this.scheduler=H,this.work=Y}schedule(H,Y=0){return Y>0?super.schedule(H,Y):(this.delay=Y,this.state=H,this.scheduler.flush(this),this)}execute(H,Y){return Y>0||this.closed?super.execute(H,Y):this._execute(H,Y)}requestAsyncId(H,Y,te=0){return null!=te&&te>0||null==te&&this.delay>0?super.requestAsyncId(H,Y,te):H.flush(this)}}),Je=Fe;var ot=l(29);let q=(()=>{class ee extends le.v{constructor(Y=Ae,te=1/0){super(Y,()=>this.frame),this.maxFrames=te,this.frame=0,this.index=-1}flush(){const{actions:Y,maxFrames:te}=this;let xe,Be;for(;(Be=Y[0])&&Be.delay<=te&&(Y.shift(),this.frame=Be.delay,!(xe=Be.execute(Be.state,Be.delay))););if(xe){for(;Be=Y.shift();)Be.unsubscribe();throw xe}}}return ee.frameTimeFactor=10,ee})();class Ae extends fe.o{constructor(H,Y,te=(H.index+=1)){super(H,Y),this.scheduler=H,this.work=Y,this.index=te,this.active=!0,this.index=H.index=te}schedule(H,Y=0){if(Number.isFinite(Y)){if(!this.id)return super.schedule(H,Y);this.active=!1;const te=new Ae(this.scheduler,this.work);return this.add(te),te.schedule(H,Y)}return d.w0.EMPTY}requestAsyncId(H,Y,te=0){this.delay=H.frame+te;const{actions:xe}=H;return xe.push(this),xe.sort(Ae.sortActions),!0}recycleAsyncId(H,Y,te=0){}_execute(H,Y){if(!0===this.active)return super._execute(H,Y)}static sortActions(H,Y){return H.delay===Y.delay?H.index===Y.index?0:H.index>Y.index?1:-1:H.delay>Y.delay?1:-1}}var X=l(6646),ce=l(930),Se=l(515),ne=l(9646),$e=l(2843),ge=l(576),Ze=(()=>{return(ee=Ze||(Ze={})).NEXT="N",ee.ERROR="E",ee.COMPLETE="C",Ze;var ee})();class Me{constructor(H,Y,te){this.kind=H,this.value=Y,this.error=te,this.hasValue="N"===H}observe(H){return Ke(this,H)}do(H,Y,te){const{kind:xe,value:Be,error:tt}=this;return"N"===xe?null==H?void 0:H(Be):"E"===xe?null==Y?void 0:Y(tt):null==te?void 0:te()}accept(H,Y,te){var xe;return(0,ge.m)(null===(xe=H)||void 0===xe?void 0:xe.next)?this.observe(H):this.do(H,Y,te)}toObservable(){const{kind:H,value:Y,error:te}=this,xe="N"===H?(0,ne.of)(Y):"E"===H?(0,$e._)(()=>te):"C"===H?Se.E:0;if(!xe)throw new TypeError(`Unexpected notification kind ${H}`);return xe}static createNext(H){return new Me("N",H)}static createError(H){return new Me("E",void 0,H)}static createComplete(){return Me.completeNotification}}function Ke(ee,H){var Y,te,xe;const{kind:Be,value:tt,error:yt}=ee;if("string"!=typeof Be)throw new TypeError('Invalid notification, missing "kind"');"N"===Be?null===(Y=H.next)||void 0===Y||Y.call(H,tt):"E"===Be?null===(te=H.error)||void 0===te||te.call(H,yt):null===(xe=H.complete)||void 0===xe||xe.call(H)}Me.completeNotification=new Me("C");var mt=l(9635),Dt=l(5032),ke=l(4671),Ye=l(5191),Z=l(3888);const pe=(0,Z.d)(ee=>function(){ee(this),this.name="EmptyError",this.message="no elements in sequence"});function we(ee,H){const Y="object"==typeof H;return new Promise((te,xe)=>{let tt,Be=!1;ee.subscribe({next:yt=>{tt=yt,Be=!0},error:xe,complete:()=>{Be?te(tt):Y?te(H.defaultValue):xe(new pe)}})})}function Re(ee,H){const Y="object"==typeof H;return new Promise((te,xe)=>{const Be=new ce.Hp({next:tt=>{te(tt),Be.unsubscribe()},error:xe,complete:()=>{Y?te(H.defaultValue):xe(new pe)}});ee.subscribe(Be)})}const ye=(0,Z.d)(ee=>function(){ee(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}),Xe=(0,Z.d)(ee=>function(Y){ee(this),this.name="NotFoundError",this.message=Y});var dt=l(7448);const bt=(0,Z.d)(ee=>function(Y){ee(this),this.name="SequenceError",this.message=Y});var Ot=l(1165),lt=l(8421),Qe=l(9672);const N=(0,Z.d)(ee=>function(Y=null){ee(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=Y});function ae(ee,H){const{first:Y,each:te,with:xe=Oe,scheduler:Be=(null!=H?H:Te.z),meta:tt=null}=(0,Ot.q)(ee)?{first:ee}:"number"==typeof ee?{each:ee}:ee;if(null==Y&&null==te)throw new TypeError("No timeout provided.");return(0,m.e)((yt,_t)=>{let $t,Gt,_n=null,an=0;const Mn=gn=>{Gt=(0,Qe.f)(_t,Be,()=>{try{$t.unsubscribe(),(0,lt.Xf)(xe({meta:tt,lastValue:_n,seen:an})).subscribe(_t)}catch(It){_t.error(It)}},gn)};$t=yt.subscribe(new u.Q(_t,gn=>{null==Gt||Gt.unsubscribe(),an++,_t.next(_n=gn),te>0&&Mn(te)},void 0,void 0,()=>{(null==Gt?void 0:Gt.closed)||null==Gt||Gt.unsubscribe(),_n=null})),Mn(null!=Y?"number"==typeof Y?Y:+Y-Be.now():te)})}function Oe(ee){throw new N(ee)}var ue=l(7896),De=l(3532),ve=l(9468),se=l(3268),be=l(5363);function Ge(ee,H,Y,te){if(Y){if(!(0,De.K)(Y))return function(...xe){return Ge(ee,H,te).apply(this,xe).pipe((0,se.Z)(Y))};te=Y}return te?function(...xe){return Ge(ee,H).apply(this,xe).pipe((0,ve.R)(te),(0,be.Q)(te))}:function(...xe){const Be=new $;let tt=!0;return new i.y(yt=>{const _t=Be.subscribe(yt);if(tt){tt=!1;let $t=!1,Gt=!1;H.apply(this,[...xe,(..._n)=>{if(ee){const an=_n.shift();if(null!=an)return void Be.error(an)}Be.next(1<_n.length?_n:_n[0]),Gt=!0,$t&&Be.complete()}]),Gt&&Be.complete(),$t=!0}return _t})}}function nt(ee,H,Y){return Ge(!1,ee,H,Y)}function ht(ee,H,Y){return Ge(!0,ee,H,Y)}var ft=l(9841),wt=l(1350),Ht=l(9770);const en={connector:()=>new w.x,resetOnDisconnect:!0};function Bt(ee,H=en){let Y=null;const{connector:te,resetOnDisconnect:xe=!0}=H;let Be=te();const tt=new i.y(yt=>Be.subscribe(yt));return tt.connect=()=>((!Y||Y.closed)&&(Y=(0,Ht.P)(()=>ee).subscribe(Be),xe&&Y.add(()=>Be=te())),Y),tt}var En=l(4128),rn=l(188),zt=l(4968);function Mt(ee,H,Y){return Y?Mt(ee,H).pipe((0,se.Z)(Y)):new i.y(te=>{const xe=(...tt)=>te.next(1===tt.length?tt[0]:tt),Be=ee(xe);return(0,ge.m)(H)?()=>H(xe,Be):void 0})}var bn=l(6340);function Qt(ee,H,Y,te,xe){let Be,tt;function*yt(){for(let _t=tt;!H||H(_t);_t=Y(_t))yield Be(_t)}return 1===arguments.length?({initialState:tt,condition:H,iterate:Y,resultSelector:Be=ke.y,scheduler:xe}=ee):(tt=ee,!te||(0,De.K)(te)?(Be=ke.y,xe=te):Be=te),(0,Ht.P)(xe?()=>(0,bn.Q)(yt(),xe):yt)}function on(ee,H,Y){return(0,Ht.P)(()=>ee()?H:Y)}var yn=l(2805);function oe(ee=0,H=Te.z){return ee<0&&(ee=0),(0,yn.H)(ee,ee,H)}var W=l(6451);const p=new i.y(Dt.Z);function C(){return p}const{isArray:D}=Array;function K(ee){return 1===ee.length&&D(ee[0])?ee[0]:ee}function Et(...ee){return function et(...ee){const H=K(ee);return(0,m.e)((Y,te)=>{const xe=[Y,...H],Be=()=>{if(!te.closed)if(xe.length>0){let tt;try{tt=(0,lt.Xf)(xe.shift())}catch(_t){return void Be()}const yt=new u.Q(te,void 0,Dt.Z,Dt.Z);te.add(tt.subscribe(yt)),yt.add(Be)}else te.complete()};Be()})}(K(ee))(Se.E)}function Wt(ee,H){return(0,rn.D)(Object.entries(ee),H)}function pn(ee,H){return(Y,te)=>!ee.call(H,Y,te)}var Le=l(9300);function Ve(ee,H,Y){return[(0,Le.h)(H,Y)((0,lt.Xf)(ee)),(0,Le.h)(pn(H,Y))((0,lt.Xf)(ee))]}function he(...ee){return 1===(ee=K(ee)).length?(0,lt.Xf)(ee[0]):new i.y(He(ee))}function He(ee){return H=>{let Y=[];for(let te=0;Y&&!H.closed&&te<ee.length;te++)Y.push((0,lt.Xf)(ee[te]).subscribe(new u.Q(H,xe=>{if(Y){for(let Be=0;Be<Y.length;Be++)Be!==te&&Y[Be].unsubscribe();Y=null}H.next(xe)})))}}function ut(ee,H,Y){if(null==H&&(H=ee,ee=0),H<=0)return Se.E;const te=H+ee;return new i.y(Y?xe=>{let Be=ee;return Y.schedule(function(){Be<te?(xe.next(Be++),this.schedule()):xe.complete()})}:xe=>{let Be=ee;for(;Be<te&&!xe.closed;)xe.next(Be++);xe.complete()})}function Lt(ee,H){return new i.y(Y=>{const te=ee(),xe=H(te);return(xe?(0,lt.Xf)(xe):Se.E).subscribe(Y),()=>{te&&te.unsubscribe()}})}var kt=l(3269);function hn(...ee){const H=(0,kt.jO)(ee),Y=K(ee);return Y.length?new i.y(te=>{let xe=Y.map(()=>[]),Be=Y.map(()=>!1);te.add(()=>{xe=Be=null});for(let tt=0;!te.closed&&tt<Y.length;tt++)(0,lt.Xf)(Y[tt]).subscribe(new u.Q(te,yt=>{if(xe[tt].push(yt),xe.every(_t=>_t.length)){const _t=xe.map($t=>$t.shift());te.next(H?H(..._t):_t),xe.some(($t,Gt)=>!$t.length&&Be[Gt])&&te.complete()}},()=>{Be[tt]=!0,!xe[tt].length&&te.complete()}));return()=>{xe=Be=null}}):Se.E}var Dn=l(3762),$n=l(2416),di=l(5615),Jn=l(453);function Nn(ee){return(0,m.e)((H,Y)=>{let te=[];return H.subscribe(new u.Q(Y,xe=>te.push(xe),()=>{Y.next(te),Y.complete()})),ee.subscribe(new u.Q(Y,()=>{const xe=te;te=[],Y.next(xe)},Dt.Z)),()=>{te=null}})}var Wn=l(8737);function Bn(ee,H=null){return H=null!=H?H:ee,(0,m.e)((Y,te)=>{let xe=[],Be=0;Y.subscribe(new u.Q(te,tt=>{let yt=null;Be++%H==0&&xe.push([]);for(const _t of xe)_t.push(tt),ee<=_t.length&&(yt=null!=yt?yt:[],yt.push(_t));if(yt)for(const _t of yt)(0,Wn.P)(xe,_t),te.next(_t)},()=>{for(const tt of xe)te.next(tt);te.complete()},void 0,()=>{xe=null}))})}function V(ee,...H){var Y,te;const xe=null!==(Y=(0,kt.yG)(H))&&void 0!==Y?Y:Te.z,Be=null!==(te=H[0])&&void 0!==te?te:null,tt=H[1]||1/0;return(0,m.e)((yt,_t)=>{let $t=[],Gt=!1;const _n=gn=>{const{buffer:It,subs:xt}=gn;xt.unsubscribe(),(0,Wn.P)($t,gn),_t.next(It),Gt&&an()},an=()=>{if($t){const gn=new d.w0;_t.add(gn);const xt={buffer:[],subs:gn};$t.push(xt),(0,Qe.f)(gn,xe,()=>_n(xt),ee)}};null!==Be&&Be>=0?(0,Qe.f)(_t,xe,an,Be,!0):Gt=!0,an();const Mn=new u.Q(_t,gn=>{const It=$t.slice();for(const xt of It){const{buffer:Yt}=xt;Yt.push(gn),tt<=Yt.length&&_n(xt)}},()=>{for(;null==$t?void 0:$t.length;)_t.next($t.shift().buffer);null==Mn||Mn.unsubscribe(),_t.complete(),_t.unsubscribe()},void 0,()=>$t=null);yt.subscribe(Mn)})}function Ie(ee,H){return(0,m.e)((Y,te)=>{const xe=[];(0,lt.Xf)(ee).subscribe(new u.Q(te,Be=>{const tt=[];xe.push(tt);const yt=new d.w0;yt.add((0,lt.Xf)(H(Be)).subscribe(new u.Q(te,()=>{(0,Wn.P)(xe,tt),te.next(tt),yt.unsubscribe()},Dt.Z)))},Dt.Z)),Y.subscribe(new u.Q(te,Be=>{for(const tt of xe)tt.push(Be)},()=>{for(;xe.length>0;)te.next(xe.shift());te.complete()}))})}function z(ee){return(0,m.e)((H,Y)=>{let te=null,xe=null;const Be=()=>{null==xe||xe.unsubscribe();const tt=te;te=[],tt&&Y.next(tt),(0,lt.Xf)(ee()).subscribe(xe=new u.Q(Y,Be,Dt.Z))};Be(),H.subscribe(new u.Q(Y,tt=>null==te?void 0:te.push(tt),()=>{te&&Y.next(te),Y.complete()},void 0,()=>te=xe=null))})}var Pe=l(262),qe=l(6099);function st(ee,H,Y,te,xe){return(Be,tt)=>{let yt=Y,_t=H,$t=0;Be.subscribe(new u.Q(tt,Gt=>{const _n=$t++;_t=yt?ee(_t,Gt,_n):(yt=!0,Gt),te&&tt.next(_t)},xe&&(()=>{yt&&tt.next(_t),tt.complete()})))}}function St(ee,H){return(0,m.e)(st(ee,H,arguments.length>=2,!1,!0))}const Nt=(ee,H)=>(ee.push(H),ee);function Xt(){return(0,m.e)((ee,H)=>{St(Nt,[])(ee).subscribe(H)})}function vn(ee,H){return(0,mt.z)(Xt(),(0,qe.z)(Y=>ee(Y)),H?(0,se.Z)(H):ke.y)}function jt(ee){return vn(ft.a,ee)}const On=jt;function ln(...ee){const H=(0,kt.jO)(ee);return H?(0,mt.z)(ln(...ee),(0,se.Z)(H)):(0,m.e)((Y,te)=>{(0,ft.l)([Y,...K(ee)])(te)})}function Hn(...ee){return ln(...ee)}var Un=l(7886),Sn=l(4351);function kn(ee,H){return(0,ge.m)(H)?(0,Sn.b)(()=>ee,H):(0,Sn.b)(()=>ee)}function xn(...ee){return function ai(...ee){const H=(0,kt.yG)(ee);return(0,m.e)((Y,te)=>{(0,Un.u)()((0,rn.D)([Y,...ee],H)).subscribe(te)})}(...ee)}const ni={connector:()=>new w.x};function li(ee,H=ni){const{connector:Y}=H;return(0,m.e)((te,xe)=>{const Be=Y();(0,rn.D)(ee(function mn(ee){return new i.y(H=>ee.subscribe(H))}(Be))).subscribe(xe),xe.add(te.subscribe(Be))})}function Kn(ee){return St((H,Y,te)=>!ee||ee(Y,te)?H+1:H,0)}function Gn(ee){return(0,m.e)((H,Y)=>{let te=!1,xe=null,Be=null;const tt=()=>{if(null==Be||Be.unsubscribe(),Be=null,te){te=!1;const yt=xe;xe=null,Y.next(yt)}};H.subscribe(new u.Q(Y,yt=>{null==Be||Be.unsubscribe(),te=!0,xe=yt,Be=new u.Q(Y,tt,Dt.Z),(0,lt.Xf)(ee(yt)).subscribe(Be)},()=>{tt(),Y.complete()},void 0,()=>{xe=Be=null}))})}var Ci=l(8372);function wi(ee){return(0,m.e)((H,Y)=>{let te=!1;H.subscribe(new u.Q(Y,xe=>{te=!0,Y.next(xe)},()=>{te||Y.next(ee),Y.complete()}))})}var hi=l(4326),zn=l(1260);function Sr(){return(0,m.e)((ee,H)=>{ee.subscribe(new u.Q(H,Y=>Ke(Y,H)))})}function nr(ee,H){return(0,m.e)((Y,te)=>{const xe=new Set;Y.subscribe(new u.Q(te,Be=>{const tt=ee?ee(Be):Be;xe.has(tt)||(xe.add(tt),te.next(Be))})),null==H||H.subscribe(new u.Q(te,()=>xe.clear(),Dt.Z))})}var mr=l(1884);function Qn(ee,H){return(0,mr.x)((Y,te)=>H?H(Y[ee],te[ee]):Y[ee]===te[ee])}function Zn(ee=Ei){return(0,m.e)((H,Y)=>{let te=!1;H.subscribe(new u.Q(Y,xe=>{te=!0,Y.next(xe)},()=>te?Y.complete():Y.error(ee())))})}function Ei(){return new pe}var Ui=l(5698);function Lr(ee,H){if(ee<0)throw new ye;const Y=arguments.length>=2;return te=>te.pipe((0,Le.h)((xe,Be)=>Be===ee),(0,Ui.q)(1),Y?wi(H):Zn(()=>new ye))}function zi(...ee){return H=>(0,wt.z)(H,(0,ne.of)(...ee))}function Ir(ee,H){return(0,m.e)((Y,te)=>{let xe=0;Y.subscribe(new u.Q(te,Be=>{ee.call(H,Be,xe++,Y)||(te.next(!1),te.complete())},()=>{te.next(!0),te.complete()}))})}function Mi(){return(0,m.e)((ee,H)=>{let Y=!1,te=null;ee.subscribe(new u.Q(H,xe=>{te||(te=(0,lt.Xf)(xe).subscribe(new u.Q(H,void 0,()=>{te=null,Y&&H.complete()})))},()=>{Y=!0,!te&&H.complete()}))})}const Wi=Mi;var ci=l(4004);function gr(ee,H){return H?Y=>Y.pipe(gr((te,xe)=>(0,lt.Xf)(ee(te,xe)).pipe((0,ci.U)((Be,tt)=>H(te,Be,xe,tt))))):(0,m.e)((Y,te)=>{let xe=0,Be=null,tt=!1;Y.subscribe(new u.Q(te,yt=>{Be||(Be=new u.Q(te,void 0,()=>{Be=null,tt&&te.complete()}),(0,lt.Xf)(ee(yt,xe++)).subscribe(Be))},()=>{tt=!0,!Be&&te.complete()}))})}var Di=l(2733);function Ar(ee,H=1/0,Y){return H=(H||0)<1?1/0:H,(0,m.e)((te,xe)=>(0,Di.p)(te,xe,ee,H,void 0,!0,Y))}var Pr=l(8746);function Ki(ee,H){return(0,m.e)(Si(ee,H,"value"))}function Si(ee,H,Y){const te="index"===Y;return(xe,Be)=>{let tt=0;xe.subscribe(new u.Q(Be,yt=>{const _t=tt++;ee.call(H,yt,_t,xe)&&(Be.next(te?_t:yt),Be.complete())},()=>{Be.next(te?-1:void 0),Be.complete()}))}}function Gi(ee,H){return(0,m.e)(Si(ee,H,"index"))}function Or(ee,H){const Y=arguments.length>=2;return te=>te.pipe(ee?(0,Le.h)((xe,Be)=>ee(xe,Be,te)):ke.y,(0,Ui.q)(1),Y?wi(H):Zn(()=>new pe))}function Ii(ee,H,Y,te){return(0,m.e)((xe,Be)=>{let tt;H&&"function"!=typeof H?({duration:Y,element:tt,connector:te}=H):tt=H;const yt=new Map,_t=an=>{yt.forEach(an),an(Be)},$t=an=>_t(Mn=>Mn.error(an)),Gt=new _r(Be,an=>{try{const Mn=ee(an);let gn=yt.get(Mn);if(!gn){yt.set(Mn,gn=te?te():new w.x);const It=function _n(an,Mn){const gn=new i.y(It=>{Gt.activeGroups++;const xt=Mn.subscribe(It);return()=>{xt.unsubscribe(),0==--Gt.activeGroups&&Gt.teardownAttempted&&Gt.unsubscribe()}});return gn.key=an,gn}(Mn,gn);if(Be.next(It),Y){const xt=new u.Q(gn,()=>{gn.complete(),null==xt||xt.unsubscribe()},void 0,void 0,()=>yt.delete(Mn));Gt.add((0,lt.Xf)(Y(It)).subscribe(xt))}}gn.next(tt?tt(an):an)}catch(Mn){$t(Mn)}},()=>_t(an=>an.complete()),$t,()=>yt.clear());xe.subscribe(Gt)})}class _r extends u.Q{constructor(){super(...arguments),this.activeGroups=0,this.teardownAttempted=!1}unsubscribe(){this.teardownAttempted=!0,0===this.activeGroups&&super.unsubscribe()}}var fi=l(8502);function Ai(){return(0,m.e)((ee,H)=>{ee.subscribe(new u.Q(H,()=>{H.next(!1),H.complete()},()=>{H.next(!0),H.complete()}))})}function pi(ee){return ee<=0?()=>Se.E:(0,m.e)((H,Y)=>{let te=[];H.subscribe(new u.Q(Y,xe=>{te.push(xe),ee<te.length&&te.shift()},()=>{for(const xe of te)Y.next(xe);Y.complete()},void 0,()=>{te=null}))})}function Qi(ee,H){const Y=arguments.length>=2;return te=>te.pipe(ee?(0,Le.h)((xe,Be)=>ee(xe,Be,te)):ke.y,pi(1),Y?wi(H):Zn(()=>new pe))}var mi=l(9718);function ir(){return(0,m.e)((ee,H)=>{ee.subscribe(new u.Q(H,Y=>{H.next(Me.createNext(Y))},()=>{H.next(Me.createComplete()),H.complete()},Y=>{H.next(Me.createError(Y)),H.complete()}))})}function rr(ee){return St((0,ge.m)(ee)?(H,Y)=>ee(H,Y)>0?H:Y:(H,Y)=>H>Y?H:Y)}var Pi=l(8189);const Oi=qe.z;function xi(ee,H,Y=1/0){return(0,ge.m)(H)?(0,qe.z)(()=>ee,H,Y):("number"==typeof H&&(Y=H),(0,qe.z)(()=>ee,Y))}function Zi(ee,H,Y=1/0){return(0,m.e)((te,xe)=>{let Be=H;return(0,Di.p)(te,xe,(tt,yt)=>ee(Be,tt,yt),Y,tt=>{Be=tt},!1,void 0,()=>Be=null)})}function Ri(...ee){return function ti(...ee){const H=(0,kt.yG)(ee),Y=(0,kt._6)(ee,1/0);return ee=K(ee),(0,m.e)((te,xe)=>{(0,Pi.J)(Y)((0,rn.D)([te,...ee],H)).subscribe(xe)})}(...ee)}function or(ee){return St((0,ge.m)(ee)?(H,Y)=>ee(H,Y)<0?H:Y:(H,Y)=>H<Y?H:Y)}function Fi(ee,H){const Y=(0,ge.m)(ee)?ee:()=>ee;return(0,ge.m)(H)?li(H,{connector:Y}):te=>new b(te,Y)}function Yi(){return(0,m.e)((ee,H)=>{let Y,te=!1;ee.subscribe(new u.Q(H,xe=>{const Be=Y;Y=xe,te&&H.next([Be,xe]),te=!0}))})}function ki(...ee){const H=ee.length;if(0===H)throw new Error("list of properties cannot be empty.");return(0,ci.U)(Y=>{let te=Y;for(let xe=0;xe<H;xe++){const Be=null==te?void 0:te[ee[xe]];if(void 0===Be)return;te=Be}return te})}function xr(ee){return ee?H=>li(ee)(H):H=>Fi(new w.x)(H)}function Rn(ee){return H=>{const Y=new k.X(ee);return new b(H,()=>Y)}}function sr(){return ee=>{const H=new $;return new b(ee,()=>H)}}function ar(ee,H,Y,te){Y&&!(0,ge.m)(Y)&&(te=Y);const xe=(0,ge.m)(Y)?Y:void 0;return Be=>Fi(new me(ee,H,te),xe)(Be)}function Ln(...ee){return ee.length?(0,m.e)((H,Y)=>{He([H,...ee])(Y)}):ke.y}function x(ee){let Y,H=1/0;return null!=ee&&("object"==typeof ee?({count:H=1/0,delay:Y}=ee):H=ee),H<=0?()=>Se.E:(0,m.e)((te,xe)=>{let tt,Be=0;const yt=()=>{if(null==tt||tt.unsubscribe(),tt=null,null!=Y){const $t="number"==typeof Y?(0,yn.H)(Y):(0,lt.Xf)(Y(Be)),Gt=new u.Q(xe,()=>{Gt.unsubscribe(),_t()});$t.subscribe(Gt)}else _t()},_t=()=>{let $t=!1;tt=te.subscribe(new u.Q(xe,void 0,()=>{++Be<H?tt?yt():$t=!0:xe.complete()})),$t&&yt()};_t()})}function Q(ee){return(0,m.e)((H,Y)=>{let te,Be,xe=!1,tt=!1,yt=!1;const _t=()=>yt&&tt&&(Y.complete(),!0),Gt=()=>{yt=!1,te=H.subscribe(new u.Q(Y,void 0,()=>{yt=!0,!_t()&&(Be||(Be=new w.x,ee(Be).subscribe(new u.Q(Y,()=>{te?Gt():xe=!0},()=>{tt=!0,_t()}))),Be).next()})),xe&&(te.unsubscribe(),te=null,xe=!1,Gt())};Gt()})}function R(ee=1/0){let H;H=ee&&"object"==typeof ee?ee:{count:ee};const{count:Y=1/0,delay:te,resetOnSuccess:xe=!1}=H;return Y<=0?ke.y:(0,m.e)((Be,tt)=>{let _t,yt=0;const $t=()=>{let Gt=!1;_t=Be.subscribe(new u.Q(tt,_n=>{xe&&(yt=0),tt.next(_n)},void 0,_n=>{if(yt++<Y){const an=()=>{_t?(_t.unsubscribe(),_t=null,$t()):Gt=!0};if(null!=te){const Mn="number"==typeof te?(0,yn.H)(te):(0,lt.Xf)(te(_n,yt)),gn=new u.Q(tt,()=>{gn.unsubscribe(),an()},()=>{tt.complete()});Mn.subscribe(gn)}else an()}else tt.error(_n)})),Gt&&(_t.unsubscribe(),_t=null,$t())};$t()})}function ie(ee){return(0,m.e)((H,Y)=>{let te,Be,xe=!1;const tt=()=>{te=H.subscribe(new u.Q(Y,void 0,void 0,yt=>{Be||(Be=new w.x,ee(Be).subscribe(new u.Q(Y,()=>te?tt():xe=!0))),Be&&Be.next(yt)})),xe&&(te.unsubscribe(),te=null,xe=!1,tt())};tt()})}function We(ee){return(0,m.e)((H,Y)=>{let te=!1,xe=null;H.subscribe(new u.Q(Y,tt=>{te=!0,xe=tt})),ee.subscribe(new u.Q(Y,()=>{if(te){te=!1;const tt=xe;xe=null,Y.next(tt)}},Dt.Z))})}function ct(ee,H=Te.z){return We(oe(ee,H))}function vt(ee,H){return(0,m.e)(st(ee,H,arguments.length>=2,!0))}function Rt(ee,H=((Y,te)=>Y===te)){return(0,m.e)((Y,te)=>{const xe={buffer:[],complete:!1},Be={buffer:[],complete:!1},tt=_t=>{te.next(_t),te.complete()},yt=(_t,$t)=>{const Gt=new u.Q(te,_n=>{const{buffer:an,complete:Mn}=$t;0===an.length?Mn?tt(!1):_t.buffer.push(_n):!H(_n,an.shift())&&tt(!1)},()=>{_t.complete=!0;const{complete:_n,buffer:an}=$t;_n&&tt(0===an.length),null==Gt||Gt.unsubscribe()});return Gt};Y.subscribe(yt(xe,Be)),ee.subscribe(yt(Be,xe))})}var wn=l(3099);function In(ee,H,Y){var te,xe;let Be,tt=!1;return ee&&"object"==typeof ee?(Be=null!==(te=ee.bufferSize)&&void 0!==te?te:1/0,H=null!==(xe=ee.windowTime)&&void 0!==xe?xe:1/0,tt=!!ee.refCount,Y=ee.scheduler):Be=null!=ee?ee:1/0,(0,wn.B)({connector:()=>new me(Be,H,Y),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:tt})}function cn(ee){return(0,m.e)((H,Y)=>{let xe,te=!1,Be=!1,tt=0;H.subscribe(new u.Q(Y,yt=>{Be=!0,(!ee||ee(yt,tt++,H))&&(te&&Y.error(new bt("Too many matching values")),te=!0,xe=yt)},()=>{te?(Y.next(xe),Y.complete()):Y.error(Be?new Xe("No matching values"):new pe)}))})}var F=l(5684);function P(ee){return ee<=0?ke.y:(0,m.e)((H,Y)=>{let te=new Array(ee),xe=0;return H.subscribe(new u.Q(Y,Be=>{const tt=xe++;if(tt<ee)te[tt]=Be;else{const yt=tt%ee,_t=te[yt];te[yt]=Be,Y.next(_t)}})),()=>{te=null}})}function E(ee){return(0,m.e)((H,Y)=>{let te=!1;const xe=new u.Q(Y,()=>{null==xe||xe.unsubscribe(),te=!0},Dt.Z);(0,lt.Xf)(ee).subscribe(xe),H.subscribe(new u.Q(Y,Be=>te&&Y.next(Be)))})}function J(ee){return(0,m.e)((H,Y)=>{let te=!1,xe=0;H.subscribe(new u.Q(Y,Be=>(te||(te=!ee(Be,xe++)))&&Y.next(Be)))})}var at=l(8675),Vt=l(3900);function An(){return(0,Vt.w)(ke.y)}function qn(ee,H){return(0,ge.m)(H)?(0,Vt.w)(()=>ee,H):(0,Vt.w)(()=>ee)}function gi(ee,H){return(0,m.e)((Y,te)=>{let xe=H;return(0,Vt.w)((Be,tt)=>ee(xe,Be,tt),(Be,tt)=>(xe=tt,tt))(Y).subscribe(te),()=>{xe=null}})}var Ni=l(2722);function Tt(ee,H=!1){return(0,m.e)((Y,te)=>{let xe=0;Y.subscribe(new u.Q(te,Be=>{const tt=ee(Be,xe++);(tt||H)&&te.next(Be),!tt&&te.complete()}))})}var B=l(8505);const c={leading:!0,trailing:!1};function f(ee,H=c){return(0,m.e)((Y,te)=>{const{leading:xe,trailing:Be}=H;let tt=!1,yt=null,_t=null,$t=!1;const Gt=()=>{null==_t||_t.unsubscribe(),_t=null,Be&&(Mn(),$t&&te.complete())},_n=()=>{_t=null,$t&&te.complete()},an=gn=>_t=(0,lt.Xf)(ee(gn)).subscribe(new u.Q(te,Gt,_n)),Mn=()=>{if(tt){tt=!1;const gn=yt;yt=null,te.next(gn),!$t&&an(gn)}};Y.subscribe(new u.Q(te,gn=>{tt=!0,yt=gn,(!_t||_t.closed)&&(xe?Mn():an(gn))},()=>{$t=!0,(!(Be&&tt&&_t)||_t.closed)&&te.complete()}))})}function I(ee,H=Te.z,Y=c){const te=(0,yn.H)(ee,H);return f(()=>te,Y)}function j(ee=Te.z){return H=>(0,Ht.P)(()=>H.pipe(vt(({current:Y},te)=>({value:te,current:ee.now(),last:Y}),{current:ee.now(),value:void 0,last:void 0}),(0,ci.U)(({current:Y,last:te,value:xe})=>new de(xe,Y-te))))}class de{constructor(H,Y){this.value=H,this.interval=Y}}function Ne(ee,H,Y){let te,xe,Be;if(Y=null!=Y?Y:Te.P,(0,Ot.q)(ee)?te=ee:"number"==typeof ee&&(xe=ee),!H)throw new TypeError("No observable provided to switch to");if(Be=()=>H,null==te&&null==xe)throw new TypeError("No timeout provided.");return ae({first:te,each:xe,scheduler:Y,with:Be})}function Ue(ee=U.l){return(0,ci.U)(H=>({value:H,timestamp:ee.now()}))}function rt(ee){return(0,m.e)((H,Y)=>{let te=new w.x;Y.next(te.asObservable());const xe=Be=>{te.error(Be),Y.error(Be)};return H.subscribe(new u.Q(Y,Be=>null==te?void 0:te.next(Be),()=>{te.complete(),Y.complete()},xe)),ee.subscribe(new u.Q(Y,()=>{te.complete(),Y.next(te=new w.x)},Dt.Z,xe)),()=>{null==te||te.unsubscribe(),te=null}})}function pt(ee,H=0){const Y=H>0?H:ee;return(0,m.e)((te,xe)=>{let Be=[new w.x],tt=[],yt=0;xe.next(Be[0].asObservable()),te.subscribe(new u.Q(xe,_t=>{for(const Gt of Be)Gt.next(_t);const $t=yt-ee+1;if($t>=0&&$t%Y==0&&Be.shift().complete(),++yt%Y==0){const Gt=new w.x;Be.push(Gt),xe.next(Gt.asObservable())}},()=>{for(;Be.length>0;)Be.shift().complete();xe.complete()},_t=>{for(;Be.length>0;)Be.shift().error(_t);xe.error(_t)},()=>{tt=null,Be=null}))})}function Pt(ee,...H){var Y,te;const xe=null!==(Y=(0,kt.yG)(H))&&void 0!==Y?Y:Te.z,Be=null!==(te=H[0])&&void 0!==te?te:null,tt=H[1]||1/0;return(0,m.e)((yt,_t)=>{let $t=[],Gt=!1;const _n=It=>{const{window:xt,subs:Yt}=It;xt.complete(),Yt.unsubscribe(),(0,Wn.P)($t,It),Gt&&an()},an=()=>{if($t){const It=new d.w0;_t.add(It);const xt=new w.x,Yt={window:xt,subs:It,seen:0};$t.push(Yt),_t.next(xt.asObservable()),(0,Qe.f)(It,xe,()=>_n(Yt),ee)}};null!==Be&&Be>=0?(0,Qe.f)(_t,xe,an,Be,!0):Gt=!0,an();const Mn=It=>$t.slice().forEach(It),gn=It=>{Mn(({window:xt})=>It(xt)),It(_t),_t.unsubscribe()};return yt.subscribe(new u.Q(_t,It=>{Mn(xt=>{xt.window.next(It),tt<=++xt.seen&&_n(xt)})},()=>gn(It=>It.complete()),It=>gn(xt=>xt.error(It)))),()=>{$t=null}})}function Ut(ee,H){return(0,m.e)((Y,te)=>{const xe=[],Be=tt=>{for(;0<xe.length;)xe.shift().error(tt);te.error(tt)};(0,lt.Xf)(ee).subscribe(new u.Q(te,tt=>{const yt=new w.x;xe.push(yt);const _t=new d.w0;let Gt;try{Gt=(0,lt.Xf)(H(tt))}catch(_n){return void Be(_n)}te.next(yt.asObservable()),_t.add(Gt.subscribe(new u.Q(te,()=>{(0,Wn.P)(xe,yt),yt.complete(),_t.unsubscribe()},Dt.Z,Be)))},Dt.Z)),Y.subscribe(new u.Q(te,tt=>{const yt=xe.slice();for(const _t of yt)_t.next(tt)},()=>{for(;0<xe.length;)xe.shift().complete();te.complete()},Be,()=>{for(;0<xe.length;)xe.shift().unsubscribe()}))})}function Zt(ee){return(0,m.e)((H,Y)=>{let te,xe;const Be=yt=>{te.error(yt),Y.error(yt)},tt=()=>{let yt;null==xe||xe.unsubscribe(),null==te||te.complete(),te=new w.x,Y.next(te.asObservable());try{yt=(0,lt.Xf)(ee())}catch(_t){return void Be(_t)}yt.subscribe(xe=new u.Q(Y,tt,tt,Be))};tt(),H.subscribe(new u.Q(Y,yt=>te.next(yt),()=>{te.complete(),Y.complete()},Be,()=>{null==xe||xe.unsubscribe(),te=null}))})}function un(...ee){const H=(0,kt.jO)(ee);return(0,m.e)((Y,te)=>{const xe=ee.length,Be=new Array(xe);let tt=ee.map(()=>!1),yt=!1;for(let _t=0;_t<xe;_t++)(0,lt.Xf)(ee[_t]).subscribe(new u.Q(te,$t=>{Be[_t]=$t,!yt&&!tt[_t]&&(tt[_t]=!0,(yt=tt.every(ke.y))&&(tt=null))},Dt.Z));Y.subscribe(new u.Q(te,_t=>{if(yt){const $t=[_t,...Be];te.next(H?H(...$t):$t)}}))})}function Jt(ee){return vn(hn,ee)}function dn(...ee){return function tn(...ee){return(0,m.e)((H,Y)=>{hn(H,...ee).subscribe(Y)})}(...ee)}},1135:(je,_,l)=>{"use strict";l.d(_,{X:()=>d});var i=l(6758);class d extends i.x{constructor(u){super(),this._value=u}get value(){return this.getValue()}_subscribe(u){const s=super._subscribe(u);return!s.closed&&u.next(this._value),s}getValue(){const{hasError:u,thrownError:s,_value:b}=this;if(u)throw s;return this._throwIfClosed(),b}next(u){super.next(this._value=u)}}},9751:(je,_,l)=>{"use strict";l.d(_,{y:()=>S});var i=l(930),d=l(6921),m=l(8822),u=l(9635),s=l(2416),b=l(576),T=l(2806);let S=(()=>{class O{constructor(k){k&&(this._subscribe=k)}lift(k){const U=new O;return U.source=this,U.operator=k,U}subscribe(k,U,me){const $=function A(O){return O&&O instanceof i.Lv||function v(O){return O&&(0,b.m)(O.next)&&(0,b.m)(O.error)&&(0,b.m)(O.complete)}(O)&&(0,d.Nn)(O)}(k)?k:new i.Hp(k,U,me);return(0,T.x)(()=>{const{operator:re,source:Te}=this;$.add(re?re.call($,Te):Te?this._subscribe($):this._trySubscribe($))}),$}_trySubscribe(k){try{return this._subscribe(k)}catch(U){k.error(U)}}forEach(k,U){return new(U=g(U))((me,$)=>{const re=new i.Hp({next:Te=>{try{k(Te)}catch(fe){$(fe),re.unsubscribe()}},error:$,complete:me});this.subscribe(re)})}_subscribe(k){var U;return null===(U=this.source)||void 0===U?void 0:U.subscribe(k)}[m.L](){return this}pipe(...k){return(0,u.U)(k)(this)}toPromise(k){return new(k=g(k))((U,me)=>{let $;this.subscribe(re=>$=re,re=>me(re),()=>U($))})}}return O.create=w=>new O(w),O})();function g(O){var w;return null!==(w=null!=O?O:s.v.Promise)&&void 0!==w?w:Promise}},6646:(je,_,l)=>{"use strict";l.d(_,{b:()=>d});var i=l(6063);class d{constructor(u,s=d.now){this.schedulerActionCtor=u,this.now=s}schedule(u,s=0,b){return new this.schedulerActionCtor(this,u).schedule(b,s)}}d.now=i.l.now},6758:(je,_,l)=>{"use strict";l.d(_,{x:()=>b});var i=l(9751),d=l(6921),m=l(7448),u=l(8737),s=l(2806);let b=(()=>{class S extends i.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(v){const A=new T(this,this);return A.operator=v,A}_throwIfClosed(){if(this.closed)throw new m.N}next(v){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const A=this.observers.slice();for(const O of A)O.next(v)}})}error(v){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=v;const{observers:A}=this;for(;A.length;)A.shift().error(v)}})}complete(){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:v}=this;for(;v.length;)v.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var v;return(null===(v=this.observers)||void 0===v?void 0:v.length)>0}_trySubscribe(v){return this._throwIfClosed(),super._trySubscribe(v)}_subscribe(v){return this._throwIfClosed(),this._checkFinalizedStatuses(v),this._innerSubscribe(v)}_innerSubscribe(v){const{hasError:A,isStopped:O,observers:w}=this;return A||O?d.Lc:(w.push(v),new d.w0(()=>(0,u.P)(w,v)))}_checkFinalizedStatuses(v){const{hasError:A,thrownError:O,isStopped:w}=this;A?v.error(O):w&&v.complete()}asObservable(){const v=new i.y;return v.source=this,v}}return S.create=(g,v)=>new T(g,v),S})();class T extends b{constructor(g,v){super(),this.destination=g,this.source=v}next(g){var v,A;null===(A=null===(v=this.destination)||void 0===v?void 0:v.next)||void 0===A||A.call(v,g)}error(g){var v,A;null===(A=null===(v=this.destination)||void 0===v?void 0:v.error)||void 0===A||A.call(v,g)}complete(){var g,v;null===(v=null===(g=this.destination)||void 0===g?void 0:g.complete)||void 0===v||v.call(g)}_subscribe(g){var v,A;return null!==(A=null===(v=this.source)||void 0===v?void 0:v.subscribe(g))&&void 0!==A?A:d.Lc}}},930:(je,_,l)=>{"use strict";l.d(_,{Hp:()=>w,Lv:()=>O});var i=l(576),d=l(6921),m=l(2416),u=l(7849),s=l(5032);const b=g("C",void 0,void 0);function g(re,Te,fe){return{kind:re,value:Te,error:fe}}var v=l(3410),A=l(2806);class O extends d.w0{constructor(Te){super(),this.isStopped=!1,Te?(this.destination=Te,(0,d.Nn)(Te)&&Te.add(this)):this.destination=$}static create(Te,fe,_e){return new w(Te,fe,_e)}next(Te){this.isStopped?me(function S(re){return g("N",re,void 0)}(Te),this):this._next(Te)}error(Te){this.isStopped?me(function T(re){return g("E",void 0,re)}(Te),this):(this.isStopped=!0,this._error(Te))}complete(){this.isStopped?me(b,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Te){this.destination.next(Te)}_error(Te){try{this.destination.error(Te)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class w extends O{constructor(Te,fe,_e){let le;if(super(),(0,i.m)(Te))le=Te;else if(Te){let Ee;({next:le,error:fe,complete:_e}=Te),this&&m.v.useDeprecatedNextContext?(Ee=Object.create(Te),Ee.unsubscribe=()=>this.unsubscribe()):Ee=Te,le=null==le?void 0:le.bind(Ee),fe=null==fe?void 0:fe.bind(Ee),_e=null==_e?void 0:_e.bind(Ee)}this.destination={next:le?k(le):s.Z,error:k(null!=fe?fe:U),complete:_e?k(_e):s.Z}}}function k(re,Te){return(...fe)=>{try{re(...fe)}catch(_e){m.v.useDeprecatedSynchronousErrorHandling?(0,A.O)(_e):(0,u.h)(_e)}}}function U(re){throw re}function me(re,Te){const{onStoppedNotification:fe}=m.v;fe&&v.z.setTimeout(()=>fe(re,Te))}const $={closed:!0,next:s.Z,error:U,complete:s.Z}},6921:(je,_,l)=>{"use strict";l.d(_,{w0:()=>u,Lc:()=>s,Nn:()=>b});var i=l(576),d=l(7896),m=l(8737);class u{constructor(g){this.initialTeardown=g,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let g;if(!this.closed){this.closed=!0;const{_parentage:v}=this;if(v)if(this._parentage=null,Array.isArray(v))for(const w of v)w.remove(this);else v.remove(this);const{initialTeardown:A}=this;if((0,i.m)(A))try{A()}catch(w){g=w instanceof d.B?w.errors:[w]}const{_teardowns:O}=this;if(O){this._teardowns=null;for(const w of O)try{T(w)}catch(k){g=null!=g?g:[],k instanceof d.B?g=[...g,...k.errors]:g.push(k)}}if(g)throw new d.B(g)}}add(g){var v;if(g&&g!==this)if(this.closed)T(g);else{if(g instanceof u){if(g.closed||g._hasParent(this))return;g._addParent(this)}(this._teardowns=null!==(v=this._teardowns)&&void 0!==v?v:[]).push(g)}}_hasParent(g){const{_parentage:v}=this;return v===g||Array.isArray(v)&&v.includes(g)}_addParent(g){const{_parentage:v}=this;this._parentage=Array.isArray(v)?(v.push(g),v):v?[v,g]:g}_removeParent(g){const{_parentage:v}=this;v===g?this._parentage=null:Array.isArray(v)&&(0,m.P)(v,g)}remove(g){const{_teardowns:v}=this;v&&(0,m.P)(v,g),g instanceof u&&g._removeParent(this)}}u.EMPTY=(()=>{const S=new u;return S.closed=!0,S})();const s=u.EMPTY;function b(S){return S instanceof u||S&&"closed"in S&&(0,i.m)(S.remove)&&(0,i.m)(S.add)&&(0,i.m)(S.unsubscribe)}function T(S){(0,i.m)(S)?S():S.unsubscribe()}},2416:(je,_,l)=>{"use strict";l.d(_,{v:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(je,_,l)=>{"use strict";l.d(_,{a:()=>v,l:()=>A});var i=l(9751),d=l(4742),m=l(188),u=l(4671),s=l(3268),b=l(3269),T=l(1810),S=l(5403),g=l(9672);function v(...w){const k=(0,b.yG)(w),U=(0,b.jO)(w),{args:me,keys:$}=(0,d.D)(w);if(0===me.length)return(0,m.D)([],k);const re=new i.y(A(me,k,$?Te=>(0,T.n)($,Te):u.y));return U?re.pipe((0,s.Z)(U)):re}function A(w,k,U=u.y){return me=>{O(k,()=>{const{length:$}=w,re=new Array($);let Te=$,fe=$;for(let _e=0;_e<$;_e++)O(k,()=>{const le=(0,m.D)(w[_e],k);let Ee=!1;le.subscribe(new S.Q(me,Fe=>{re[_e]=Fe,Ee||(Ee=!0,fe--),fe||me.next(U(re.slice()))},()=>{--Te||me.complete()}))},me)},me)}}function O(w,k,U){w?(0,g.f)(U,w,k):k()}},1350:(je,_,l)=>{"use strict";l.d(_,{z:()=>u});var i=l(7886),d=l(3269),m=l(188);function u(...s){return(0,i.u)()((0,m.D)(s,(0,d.yG)(s)))}},9770:(je,_,l)=>{"use strict";l.d(_,{P:()=>m});var i=l(9751),d=l(8421);function m(u){return new i.y(s=>{(0,d.Xf)(u()).subscribe(s)})}},515:(je,_,l)=>{"use strict";l.d(_,{E:()=>d,c:()=>m});var i=l(9751);const d=new i.y(s=>s.complete());function m(s){return s?function u(s){return new i.y(b=>s.schedule(()=>b.complete()))}(s):d}},4128:(je,_,l)=>{"use strict";l.d(_,{D:()=>S});var i=l(9751),d=l(4742),m=l(8421),u=l(3269),s=l(5403),b=l(3268),T=l(1810);function S(...g){const v=(0,u.jO)(g),{args:A,keys:O}=(0,d.D)(g),w=new i.y(k=>{const{length:U}=A;if(!U)return void k.complete();const me=new Array(U);let $=U,re=U;for(let Te=0;Te<U;Te++){let fe=!1;(0,m.Xf)(A[Te]).subscribe(new s.Q(k,_e=>{fe||(fe=!0,re--),me[Te]=_e},()=>$--,void 0,()=>{(!$||!fe)&&(re||k.next(O?(0,T.n)(O,me):me),k.complete())}))}});return v?w.pipe((0,b.Z)(v)):w}},188:(je,_,l)=>{"use strict";l.d(_,{D:()=>m});var i=l(3762),d=l(8421);function m(u,s){return s?(0,i.x)(u,s):(0,d.Xf)(u)}},4968:(je,_,l)=>{"use strict";l.d(_,{R:()=>v});var i=l(8421),d=l(9751),m=l(6099),u=l(1144),s=l(576),b=l(3268);const T=["addListener","removeListener"],S=["addEventListener","removeEventListener"],g=["on","off"];function v(U,me,$,re){if((0,s.m)($)&&(re=$,$=void 0),re)return v(U,me,$).pipe((0,b.Z)(re));const[Te,fe]=function k(U){return(0,s.m)(U.addEventListener)&&(0,s.m)(U.removeEventListener)}(U)?S.map(_e=>le=>U[_e](me,le,$)):function O(U){return(0,s.m)(U.addListener)&&(0,s.m)(U.removeListener)}(U)?T.map(A(U,me)):function w(U){return(0,s.m)(U.on)&&(0,s.m)(U.off)}(U)?g.map(A(U,me)):[];if(!Te&&(0,u.z)(U))return(0,m.z)(_e=>v(_e,me,$))((0,i.Xf)(U));if(!Te)throw new TypeError("Invalid event target");return new d.y(_e=>{const le=(...Ee)=>_e.next(1<Ee.length?Ee:Ee[0]);return Te(le),()=>fe(le)})}function A(U,me){return $=>re=>U[$](me,re)}},8421:(je,_,l)=>{"use strict";l.d(_,{Xf:()=>w});var i=l(655),d=l(1144),m=l(8239),u=l(9751),s=l(3670),b=l(2206),T=l(4532),S=l(6495),g=l(3260),v=l(576),A=l(7849),O=l(8822);function w(_e){if(_e instanceof u.y)return _e;if(null!=_e){if((0,s.c)(_e))return function k(_e){return new u.y(le=>{const Ee=_e[O.L]();if((0,v.m)(Ee.subscribe))return Ee.subscribe(le);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(_e);if((0,d.z)(_e))return function U(_e){return new u.y(le=>{for(let Ee=0;Ee<_e.length&&!le.closed;Ee++)le.next(_e[Ee]);le.complete()})}(_e);if((0,m.t)(_e))return function me(_e){return new u.y(le=>{_e.then(Ee=>{le.closed||(le.next(Ee),le.complete())},Ee=>le.error(Ee)).then(null,A.h)})}(_e);if((0,b.D)(_e))return re(_e);if((0,S.T)(_e))return function $(_e){return new u.y(le=>{for(const Ee of _e)if(le.next(Ee),le.closed)return;le.complete()})}(_e);if((0,g.L)(_e))return function Te(_e){return re((0,g.Q)(_e))}(_e)}throw(0,T.z)(_e)}function re(_e){return new u.y(le=>{(function fe(_e,le){var Ee,Fe,Je,ot;return(0,i.__awaiter)(this,void 0,void 0,function*(){try{for(Ee=(0,i.__asyncValues)(_e);!(Fe=yield Ee.next()).done;)if(le.next(Fe.value),le.closed)return}catch(q){Je={error:q}}finally{try{Fe&&!Fe.done&&(ot=Ee.return)&&(yield ot.call(Ee))}finally{if(Je)throw Je.error}}le.complete()})})(_e,le).catch(Ee=>le.error(Ee))})}},6451:(je,_,l)=>{"use strict";l.d(_,{T:()=>b});var i=l(8189),d=l(8421),m=l(515),u=l(3269),s=l(188);function b(...T){const S=(0,u.yG)(T),g=(0,u._6)(T,1/0),v=T;return v.length?1===v.length?(0,d.Xf)(v[0]):(0,i.J)(g)((0,s.D)(v,S)):m.E}},9646:(je,_,l)=>{"use strict";l.d(_,{of:()=>m});var i=l(3269),d=l(188);function m(...u){const s=(0,i.yG)(u);return(0,d.D)(u,s)}},2843:(je,_,l)=>{"use strict";l.d(_,{_:()=>m});var i=l(9751),d=l(576);function m(u,s){const b=(0,d.m)(u)?u:()=>u,T=S=>S.error(b());return new i.y(s?S=>s.schedule(T,0,S):T)}},2805:(je,_,l)=>{"use strict";l.d(_,{H:()=>s});var i=l(9751),d=l(4986),m=l(3532),u=l(1165);function s(b=0,T,S=d.P){let g=-1;return null!=T&&((0,m.K)(T)?S=T:g=T),new i.y(v=>{let A=(0,u.q)(b)?+b-S.now():b;A<0&&(A=0);let O=0;return S.schedule(function(){v.closed||(v.next(O++),0<=g?this.schedule(void 0,g):v.complete())},A)})}},5403:(je,_,l)=>{"use strict";l.d(_,{Q:()=>d});var i=l(930);class d extends i.Lv{constructor(u,s,b,T,S){super(u),this.onFinalize=S,this._next=s?function(g){try{s(g)}catch(v){u.error(v)}}:super._next,this._error=T?function(g){try{T(g)}catch(v){u.error(v)}finally{this.unsubscribe()}}:super._error,this._complete=b?function(){try{b()}catch(g){u.error(g)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var u;const{closed:s}=this;super.unsubscribe(),!s&&(null===(u=this.onFinalize)||void 0===u||u.call(this))}}},5615:(je,_,l)=>{"use strict";l.d(_,{U:()=>u});var i=l(4482),d=l(8421),m=l(5403);function u(s){return(0,i.e)((b,T)=>{let S=!1,g=null,v=null,A=!1;const O=()=>{if(null==v||v.unsubscribe(),v=null,S){S=!1;const k=g;g=null,T.next(k)}A&&T.complete()},w=()=>{v=null,A&&T.complete()};b.subscribe(new m.Q(T,k=>{S=!0,g=k,v||(0,d.Xf)(s(k)).subscribe(v=new m.Q(T,O,w))},()=>{A=!0,(!S||!v||v.closed)&&T.complete()}))})}},453:(je,_,l)=>{"use strict";l.d(_,{e:()=>u});var i=l(4986),d=l(5615),m=l(2805);function u(s,b=i.z){return(0,d.U)(()=>(0,m.H)(s,b))}},262:(je,_,l)=>{"use strict";l.d(_,{K:()=>u});var i=l(8421),d=l(5403),m=l(4482);function u(s){return(0,m.e)((b,T)=>{let v,S=null,g=!1;S=b.subscribe(new d.Q(T,void 0,void 0,A=>{v=(0,i.Xf)(s(A,u(s)(b))),S?(S.unsubscribe(),S=null,v.subscribe(T)):g=!0})),g&&(S.unsubscribe(),S=null,v.subscribe(T))})}},7886:(je,_,l)=>{"use strict";l.d(_,{u:()=>d});var i=l(8189);function d(){return(0,i.J)(1)}},4351:(je,_,l)=>{"use strict";l.d(_,{b:()=>m});var i=l(6099),d=l(576);function m(u,s){return(0,d.m)(s)?(0,i.z)(u,s,1):(0,i.z)(u,1)}},8372:(je,_,l)=>{"use strict";l.d(_,{b:()=>u});var i=l(4986),d=l(4482),m=l(5403);function u(s,b=i.z){return(0,d.e)((T,S)=>{let g=null,v=null,A=null;const O=()=>{if(g){g.unsubscribe(),g=null;const k=v;v=null,S.next(k)}};function w(){const k=A+s,U=b.now();if(U<k)return g=this.schedule(void 0,k-U),void S.add(g);O()}T.subscribe(new m.Q(S,k=>{v=k,A=b.now(),g||(g=b.schedule(w,s),S.add(g))},()=>{O(),S.complete()},void 0,()=>{v=g=null}))})}},4326:(je,_,l)=>{"use strict";l.d(_,{g:()=>u});var i=l(4986),d=l(1260),m=l(2805);function u(s,b=i.z){const T=(0,m.H)(s,b);return(0,d.j)(()=>T)}},1260:(je,_,l)=>{"use strict";l.d(_,{j:()=>b});var i=l(1350),d=l(5698),m=l(8502),u=l(9718),s=l(6099);function b(T,S){return S?g=>(0,i.z)(S.pipe((0,d.q)(1),(0,m.l)()),g.pipe(b(T))):(0,s.z)((g,v)=>T(g,v).pipe((0,d.q)(1),(0,u.h)(g)))}},1884:(je,_,l)=>{"use strict";l.d(_,{x:()=>u});var i=l(4671),d=l(4482),m=l(5403);function u(b,T=i.y){return b=null!=b?b:s,(0,d.e)((S,g)=>{let v,A=!0;S.subscribe(new m.Q(g,O=>{const w=T(O);(A||!b(v,w))&&(A=!1,v=w,g.next(O))}))})}function s(b,T){return b===T}},9300:(je,_,l)=>{"use strict";l.d(_,{h:()=>m});var i=l(4482),d=l(5403);function m(u,s){return(0,i.e)((b,T)=>{let S=0;b.subscribe(new d.Q(T,g=>u.call(s,g,S++)&&T.next(g)))})}},8746:(je,_,l)=>{"use strict";l.d(_,{x:()=>d});var i=l(4482);function d(m){return(0,i.e)((u,s)=>{try{u.subscribe(s)}finally{s.add(m)}})}},8502:(je,_,l)=>{"use strict";l.d(_,{l:()=>u});var i=l(4482),d=l(5403),m=l(5032);function u(){return(0,i.e)((s,b)=>{s.subscribe(new d.Q(b,m.Z))})}},4004:(je,_,l)=>{"use strict";l.d(_,{U:()=>m});var i=l(4482),d=l(5403);function m(u,s){return(0,i.e)((b,T)=>{let S=0;b.subscribe(new d.Q(T,g=>{T.next(u.call(s,g,S++))}))})}},9718:(je,_,l)=>{"use strict";l.d(_,{h:()=>d});var i=l(4004);function d(m){return(0,i.U)(()=>m)}},8189:(je,_,l)=>{"use strict";l.d(_,{J:()=>m});var i=l(6099),d=l(4671);function m(u=1/0){return(0,i.z)(d.y,u)}},2733:(je,_,l)=>{"use strict";l.d(_,{p:()=>u});var i=l(8421),d=l(9672),m=l(5403);function u(s,b,T,S,g,v,A,O){const w=[];let k=0,U=0,me=!1;const $=()=>{me&&!w.length&&!k&&b.complete()},re=fe=>k<S?Te(fe):w.push(fe),Te=fe=>{v&&b.next(fe),k++;let _e=!1;(0,i.Xf)(T(fe,U++)).subscribe(new m.Q(b,le=>{null==g||g(le),v?re(le):b.next(le)},()=>{_e=!0},void 0,()=>{if(_e)try{for(k--;w.length&&k<S;){const le=w.shift();A?(0,d.f)(b,A,()=>Te(le)):Te(le)}$()}catch(le){b.error(le)}}))};return s.subscribe(new m.Q(b,re,()=>{me=!0,$()})),()=>{null==O||O()}}},6099:(je,_,l)=>{"use strict";l.d(_,{z:()=>b});var i=l(4004),d=l(8421),m=l(4482),u=l(2733),s=l(576);function b(T,S,g=1/0){return(0,s.m)(S)?b((v,A)=>(0,i.U)((O,w)=>S(v,O,A,w))((0,d.Xf)(T(v,A))),g):("number"==typeof S&&(g=S),(0,m.e)((v,A)=>(0,u.p)(v,A,T,g)))}},5363:(je,_,l)=>{"use strict";l.d(_,{Q:()=>u});var i=l(9672),d=l(4482),m=l(5403);function u(s,b=0){return(0,d.e)((T,S)=>{T.subscribe(new m.Q(S,g=>(0,i.f)(S,s,()=>S.next(g),b),()=>(0,i.f)(S,s,()=>S.complete(),b),g=>(0,i.f)(S,s,()=>S.error(g),b)))})}},3099:(je,_,l)=>{"use strict";l.d(_,{B:()=>b});var i=l(188),d=l(5698),m=l(6758),u=l(930),s=l(4482);function b(S={}){const{connector:g=(()=>new m.x),resetOnError:v=!0,resetOnComplete:A=!0,resetOnRefCountZero:O=!0}=S;return w=>{let k=null,U=null,me=null,$=0,re=!1,Te=!1;const fe=()=>{null==U||U.unsubscribe(),U=null},_e=()=>{fe(),k=me=null,re=Te=!1},le=()=>{const Ee=k;_e(),null==Ee||Ee.unsubscribe()};return(0,s.e)((Ee,Fe)=>{$++,!Te&&!re&&fe();const Je=me=null!=me?me:g();Fe.add(()=>{$--,0===$&&!Te&&!re&&(U=T(le,O))}),Je.subscribe(Fe),k||(k=new u.Hp({next:ot=>Je.next(ot),error:ot=>{Te=!0,fe(),U=T(_e,v,ot),Je.error(ot)},complete:()=>{re=!0,fe(),U=T(_e,A),Je.complete()}}),(0,i.D)(Ee).subscribe(k))})(w)}}function T(S,g,...v){return!0===g?(S(),null):!1===g?null:g(...v).pipe((0,d.q)(1)).subscribe(()=>S())}},5684:(je,_,l)=>{"use strict";l.d(_,{T:()=>d});var i=l(9300);function d(m){return(0,i.h)((u,s)=>m<=s)}},8675:(je,_,l)=>{"use strict";l.d(_,{O:()=>u});var i=l(1350),d=l(3269),m=l(4482);function u(...s){const b=(0,d.yG)(s);return(0,m.e)((T,S)=>{(b?(0,i.z)(s,T,b):(0,i.z)(s,T)).subscribe(S)})}},9468:(je,_,l)=>{"use strict";l.d(_,{R:()=>d});var i=l(4482);function d(m,u=0){return(0,i.e)((s,b)=>{b.add(m.schedule(()=>s.subscribe(b),u))})}},3900:(je,_,l)=>{"use strict";l.d(_,{w:()=>u});var i=l(8421),d=l(4482),m=l(5403);function u(s,b){return(0,d.e)((T,S)=>{let g=null,v=0,A=!1;const O=()=>A&&!g&&S.complete();T.subscribe(new m.Q(S,w=>{null==g||g.unsubscribe();let k=0;const U=v++;(0,i.Xf)(s(w,U)).subscribe(g=new m.Q(S,me=>S.next(b?b(w,me,U,k++):me),()=>{g=null,O()}))},()=>{A=!0,O()}))})}},5698:(je,_,l)=>{"use strict";l.d(_,{q:()=>u});var i=l(515),d=l(4482),m=l(5403);function u(s){return s<=0?()=>i.E:(0,d.e)((b,T)=>{let S=0;b.subscribe(new m.Q(T,g=>{++S<=s&&(T.next(g),s<=S&&T.complete())}))})}},2722:(je,_,l)=>{"use strict";l.d(_,{R:()=>s});var i=l(4482),d=l(5403),m=l(8421),u=l(5032);function s(b){return(0,i.e)((T,S)=>{(0,m.Xf)(b).subscribe(new d.Q(S,()=>S.complete(),u.Z)),!S.closed&&T.subscribe(S)})}},8505:(je,_,l)=>{"use strict";l.d(_,{b:()=>s});var i=l(576),d=l(4482),m=l(5403),u=l(4671);function s(b,T,S){const g=(0,i.m)(b)||T||S?{next:b,error:T,complete:S}:b;return g?(0,d.e)((v,A)=>{var O;null===(O=g.subscribe)||void 0===O||O.call(g);let w=!0;v.subscribe(new m.Q(A,k=>{var U;null===(U=g.next)||void 0===U||U.call(g,k),A.next(k)},()=>{var k;w=!1,null===(k=g.complete)||void 0===k||k.call(g),A.complete()},k=>{var U;w=!1,null===(U=g.error)||void 0===U||U.call(g,k),A.error(k)},()=>{var k,U;w&&(null===(k=g.unsubscribe)||void 0===k||k.call(g)),null===(U=g.finalize)||void 0===U||U.call(g)}))}):u.y}},6340:(je,_,l)=>{"use strict";l.d(_,{Q:()=>s});var i=l(9751),d=l(2202),m=l(576),u=l(9672);function s(b,T){return new i.y(S=>{let g;return(0,u.f)(S,T,()=>{g=b[d.h](),(0,u.f)(S,T,()=>{let v,A;try{({value:v,done:A}=g.next())}catch(O){return void S.error(O)}A?S.complete():S.next(v)},0,!0)}),()=>(0,m.m)(null==g?void 0:g.return)&&g.return()})}},3762:(je,_,l)=>{"use strict";l.d(_,{x:()=>Te});var i=l(8421),d=l(5363),m=l(9468),b=l(9751),S=l(6340),g=l(9672);function v(fe,_e){if(!fe)throw new Error("Iterable cannot be null");return new b.y(le=>{(0,g.f)(le,_e,()=>{const Ee=fe[Symbol.asyncIterator]();(0,g.f)(le,_e,()=>{Ee.next().then(Fe=>{Fe.done?le.complete():le.next(Fe.value)})},0,!0)})})}var A=l(3670),O=l(8239),w=l(1144),k=l(6495),U=l(2206),me=l(4532),$=l(3260);function Te(fe,_e){if(null!=fe){if((0,A.c)(fe))return function u(fe,_e){return(0,i.Xf)(fe).pipe((0,m.R)(_e),(0,d.Q)(_e))}(fe,_e);if((0,w.z)(fe))return function T(fe,_e){return new b.y(le=>{let Ee=0;return _e.schedule(function(){Ee===fe.length?le.complete():(le.next(fe[Ee++]),le.closed||this.schedule())})})}(fe,_e);if((0,O.t)(fe))return function s(fe,_e){return(0,i.Xf)(fe).pipe((0,m.R)(_e),(0,d.Q)(_e))}(fe,_e);if((0,U.D)(fe))return v(fe,_e);if((0,k.T)(fe))return(0,S.Q)(fe,_e);if((0,$.L)(fe))return function re(fe,_e){return v((0,$.Q)(fe),_e)}(fe,_e)}throw(0,me.z)(fe)}},4408:(je,_,l)=>{"use strict";l.d(_,{o:()=>s});var i=l(6921);class d extends i.w0{constructor(T,S){super()}schedule(T,S=0){return this}}const m={setInterval(...b){const{delegate:T}=m;return((null==T?void 0:T.setInterval)||setInterval)(...b)},clearInterval(b){const{delegate:T}=m;return((null==T?void 0:T.clearInterval)||clearInterval)(b)},delegate:void 0};var u=l(8737);class s extends d{constructor(T,S){super(T,S),this.scheduler=T,this.work=S,this.pending=!1}schedule(T,S=0){if(this.closed)return this;this.state=T;const g=this.id,v=this.scheduler;return null!=g&&(this.id=this.recycleAsyncId(v,g,S)),this.pending=!0,this.delay=S,this.id=this.id||this.requestAsyncId(v,this.id,S),this}requestAsyncId(T,S,g=0){return m.setInterval(T.flush.bind(T,this),g)}recycleAsyncId(T,S,g=0){if(null!=g&&this.delay===g&&!1===this.pending)return S;m.clearInterval(S)}execute(T,S){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const g=this._execute(T,S);if(g)return g;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(T,S){let v,g=!1;try{this.work(T)}catch(A){g=!0,v=A||new Error("Scheduled action threw falsy error")}if(g)return this.unsubscribe(),v}unsubscribe(){if(!this.closed){const{id:T,scheduler:S}=this,{actions:g}=S;this.work=this.state=this.scheduler=null,this.pending=!1,(0,u.P)(g,this),null!=T&&(this.id=this.recycleAsyncId(S,T,null)),this.delay=null,super.unsubscribe()}}}},8950:(je,_,l)=>{"use strict";l.d(_,{v:()=>d});var i=l(6646);class d extends i.b{constructor(u,s=i.b.now){super(u,s),this.actions=[],this._active=!1,this._scheduled=void 0}flush(u){const{actions:s}=this;if(this._active)return void s.push(u);let b;this._active=!0;do{if(b=u.execute(u.state,u.delay))break}while(u=s.shift());if(this._active=!1,b){for(;u=s.shift();)u.unsubscribe();throw b}}}},29:(je,_,l)=>{"use strict";l.d(_,{r:()=>T,Z:()=>b});var i=l(4408),d=l(3399),u=l(8950);const b=new class s extends u.v{flush(g){this._active=!0;const v=this._scheduled;this._scheduled=void 0;const{actions:A}=this;let O;g=g||A.shift();do{if(O=g.execute(g.state,g.delay))break}while((g=A[0])&&g.id===v&&A.shift());if(this._active=!1,O){for(;(g=A[0])&&g.id===v&&A.shift();)g.unsubscribe();throw O}}}(class m extends i.o{constructor(g,v){super(g,v),this.scheduler=g,this.work=v}requestAsyncId(g,v,A=0){return null!==A&&A>0?super.requestAsyncId(g,v,A):(g.actions.push(this),g._scheduled||(g._scheduled=d.l.requestAnimationFrame(()=>g.flush(void 0))))}recycleAsyncId(g,v,A=0){if(null!=A&&A>0||null==A&&this.delay>0)return super.recycleAsyncId(g,v,A);g.actions.some(O=>O.id===v)||(d.l.cancelAnimationFrame(v),g._scheduled=void 0)}}),T=b},3399:(je,_,l)=>{"use strict";l.d(_,{l:()=>d});var i=l(6921);const d={schedule(m){let u=requestAnimationFrame,s=cancelAnimationFrame;const{delegate:b}=d;b&&(u=b.requestAnimationFrame,s=b.cancelAnimationFrame);const T=u(S=>{s=void 0,m(S)});return new i.w0(()=>null==s?void 0:s(T))},requestAnimationFrame(...m){const{delegate:u}=d;return((null==u?void 0:u.requestAnimationFrame)||requestAnimationFrame)(...m)},cancelAnimationFrame(...m){const{delegate:u}=d;return((null==u?void 0:u.cancelAnimationFrame)||cancelAnimationFrame)(...m)},delegate:void 0}},3101:(je,_,l)=>{"use strict";l.d(_,{e:()=>U,E:()=>k});var i=l(4408);let m,d=1;const u={};function s(me){return me in u&&(delete u[me],!0)}const b={setImmediate(me){const $=d++;return u[$]=!0,m||(m=Promise.resolve()),m.then(()=>s($)&&me()),$},clearImmediate(me){s(me)}},{setImmediate:S,clearImmediate:g}=b,v={setImmediate(...me){const{delegate:$}=v;return((null==$?void 0:$.setImmediate)||S)(...me)},clearImmediate(me){const{delegate:$}=v;return((null==$?void 0:$.clearImmediate)||g)(me)},delegate:void 0};var O=l(8950);const k=new class w extends O.v{flush($){this._active=!0;const re=this._scheduled;this._scheduled=void 0;const{actions:Te}=this;let fe;$=$||Te.shift();do{if(fe=$.execute($.state,$.delay))break}while(($=Te[0])&&$.id===re&&Te.shift());if(this._active=!1,fe){for(;($=Te[0])&&$.id===re&&Te.shift();)$.unsubscribe();throw fe}}}(class A extends i.o{constructor($,re){super($,re),this.scheduler=$,this.work=re}requestAsyncId($,re,Te=0){return null!==Te&&Te>0?super.requestAsyncId($,re,Te):($.actions.push(this),$._scheduled||($._scheduled=v.setImmediate($.flush.bind($,void 0))))}recycleAsyncId($,re,Te=0){if(null!=Te&&Te>0||null==Te&&this.delay>0)return super.recycleAsyncId($,re,Te);$.actions.some(fe=>fe.id===re)||(v.clearImmediate(re),$._scheduled=void 0)}}),U=k},4986:(je,_,l)=>{"use strict";l.d(_,{z:()=>m,P:()=>u});var i=l(4408);const m=new(l(8950).v)(i.o),u=m},6063:(je,_,l)=>{"use strict";l.d(_,{l:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},3410:(je,_,l)=>{"use strict";l.d(_,{z:()=>i});const i={setTimeout(...d){const{delegate:m}=i;return((null==m?void 0:m.setTimeout)||setTimeout)(...d)},clearTimeout(d){const{delegate:m}=i;return((null==m?void 0:m.clearTimeout)||clearTimeout)(d)},delegate:void 0}},2202:(je,_,l)=>{"use strict";l.d(_,{h:()=>d});const d=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(je,_,l)=>{"use strict";l.d(_,{L:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},7448:(je,_,l)=>{"use strict";l.d(_,{N:()=>d});const d=(0,l(3888).d)(m=>function(){m(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"})},7896:(je,_,l)=>{"use strict";l.d(_,{B:()=>d});const d=(0,l(3888).d)(m=>function(s){m(this),this.message=s?`${s.length} errors occurred during unsubscription:\n${s.map((b,T)=>`${T+1}) ${b.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=s})},3269:(je,_,l)=>{"use strict";l.d(_,{jO:()=>u,yG:()=>s,_6:()=>b});var i=l(576),d=l(3532);function m(T){return T[T.length-1]}function u(T){return(0,i.m)(m(T))?T.pop():void 0}function s(T){return(0,d.K)(m(T))?T.pop():void 0}function b(T,S){return"number"==typeof m(T)?T.pop():S}},4742:(je,_,l)=>{"use strict";l.d(_,{D:()=>s});const{isArray:i}=Array,{getPrototypeOf:d,prototype:m,keys:u}=Object;function s(T){if(1===T.length){const S=T[0];if(i(S))return{args:S,keys:null};if(function b(T){return T&&"object"==typeof T&&d(T)===m}(S)){const g=u(S);return{args:g.map(v=>S[v]),keys:g}}}return{args:T,keys:null}}},8737:(je,_,l)=>{"use strict";function i(d,m){if(d){const u=d.indexOf(m);0<=u&&d.splice(u,1)}}l.d(_,{P:()=>i})},3888:(je,_,l)=>{"use strict";function i(d){const u=d(s=>{Error.call(s),s.stack=(new Error).stack});return u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u}l.d(_,{d:()=>i})},1810:(je,_,l)=>{"use strict";function i(d,m){return d.reduce((u,s,b)=>(u[s]=m[b],u),{})}l.d(_,{n:()=>i})},2806:(je,_,l)=>{"use strict";l.d(_,{x:()=>m,O:()=>u});var i=l(2416);let d=null;function m(s){if(i.v.useDeprecatedSynchronousErrorHandling){const b=!d;if(b&&(d={errorThrown:!1,error:null}),s(),b){const{errorThrown:T,error:S}=d;if(d=null,T)throw S}}else s()}function u(s){i.v.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=s)}},9672:(je,_,l)=>{"use strict";function i(d,m,u,s=0,b=!1){const T=m.schedule(function(){u(),b?d.add(this.schedule(null,s)):this.unsubscribe()},s);if(d.add(T),!b)return T}l.d(_,{f:()=>i})},4671:(je,_,l)=>{"use strict";function i(d){return d}l.d(_,{y:()=>i})},1144:(je,_,l)=>{"use strict";l.d(_,{z:()=>i});const i=d=>d&&"number"==typeof d.length&&"function"!=typeof d},2206:(je,_,l)=>{"use strict";l.d(_,{D:()=>d});var i=l(576);function d(m){return Symbol.asyncIterator&&(0,i.m)(null==m?void 0:m[Symbol.asyncIterator])}},1165:(je,_,l)=>{"use strict";function i(d){return d instanceof Date&&!isNaN(d)}l.d(_,{q:()=>i})},576:(je,_,l)=>{"use strict";function i(d){return"function"==typeof d}l.d(_,{m:()=>i})},3670:(je,_,l)=>{"use strict";l.d(_,{c:()=>m});var i=l(8822),d=l(576);function m(u){return(0,d.m)(u[i.L])}},6495:(je,_,l)=>{"use strict";l.d(_,{T:()=>m});var i=l(2202),d=l(576);function m(u){return(0,d.m)(null==u?void 0:u[i.h])}},5191:(je,_,l)=>{"use strict";l.d(_,{b:()=>m});var i=l(9751),d=l(576);function m(u){return!!u&&(u instanceof i.y||(0,d.m)(u.lift)&&(0,d.m)(u.subscribe))}},8239:(je,_,l)=>{"use strict";l.d(_,{t:()=>d});var i=l(576);function d(m){return(0,i.m)(null==m?void 0:m.then)}},3260:(je,_,l)=>{"use strict";l.d(_,{Q:()=>m,L:()=>u});var i=l(655),d=l(576);function m(s){return(0,i.__asyncGenerator)(this,arguments,function*(){const T=s.getReader();try{for(;;){const{value:S,done:g}=yield(0,i.__await)(T.read());if(g)return yield(0,i.__await)(void 0);yield yield(0,i.__await)(S)}}finally{T.releaseLock()}})}function u(s){return(0,d.m)(null==s?void 0:s.getReader)}},3532:(je,_,l)=>{"use strict";l.d(_,{K:()=>d});var i=l(576);function d(m){return m&&(0,i.m)(m.schedule)}},4482:(je,_,l)=>{"use strict";l.d(_,{A:()=>d,e:()=>m});var i=l(576);function d(u){return(0,i.m)(null==u?void 0:u.lift)}function m(u){return s=>{if(d(s))return s.lift(function(b){try{return u(b,this)}catch(T){this.error(T)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(je,_,l)=>{"use strict";l.d(_,{Z:()=>u});var i=l(4004);const{isArray:d}=Array;function u(s){return(0,i.U)(b=>function m(s,b){return d(b)?s(...b):s(b)}(s,b))}},5032:(je,_,l)=>{"use strict";function i(){}l.d(_,{Z:()=>i})},9635:(je,_,l)=>{"use strict";l.d(_,{z:()=>d,U:()=>m});var i=l(4671);function d(...u){return m(u)}function m(u){return 0===u.length?i.y:1===u.length?u[0]:function(b){return u.reduce((T,S)=>S(T),b)}}},7849:(je,_,l)=>{"use strict";l.d(_,{h:()=>m});var i=l(2416),d=l(3410);function m(u){d.z.setTimeout(()=>{const{onUnhandledError:s}=i.v;if(!s)throw u;s(u)})}},4532:(je,_,l)=>{"use strict";function i(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}l.d(_,{z:()=>i})},3642:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateRxMethod=_.generateMethodSignature=_.generateErrorClass=_.generateClass=_.generateErrorType=_.generateEnum=_.generateJsonRepresentation=_.mangle=_.generateSwiftTypeName=void 0;const i=l(6676);function d(w){switch(w.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`${d(w.base)}?`;case i.ArrayType:return`[${d(w.base)}]`;case i.StructType:case i.EnumType:return`API.${w.name}`;case i.TypeReference:return d(w.type);default:throw new Error(`BUG: generateSwiftTypeName with ${w.constructor.name}`)}}function m(w){return["associatedtype","deinit","extension","inout","let","in","as","break","class","continue","protocol","Protocol","rethrows","throws","static","do","else","false","for","guard","func","if","internal","struct","subscript","repeat","is","nil","Any","associativity","convenience","import","return","super","self","Self","throw","true","try","typealias","switch","case","default","defer","fallthrough","optional","var","while","catch","dynamic","didSet","Set","fileprivate","lazy","get","init","required","right","param","property","receiver","set","left","where","final","infix","indirect","open","operator","override","private","postfix","public","mutating","none","nonmutating","precedence","prefix","Type","unowned","weak","willSet"].includes(w)?`_${w}`:w}function u(w,k){switch(w.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 : ${u(w.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`${u(w.type,`${k}`)}`;case i.StructType:return`${k}.toJSON()`;case i.ArrayType:return`${k}.map({ return ${u(w.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 ${w.constructor.name}`)}}_.generateSwiftTypeName=d,_.mangle=m,_.generateJsonRepresentation=u,_.generateEnum=function s(w){let k=` public enum ${w.name}: String, Codable {\n`;return k+=w.values.map(U=>` case ${m(U.value)} = "${U.value}"`).join("\n"),k+="\n }\n",k},_.generateErrorType=function b(w){let k=" public enum ErrorType: String, Codable {\n";return k+=w.map(U=>` case ${m(U)} = "${U}"`).join("\n"),k+="\n }\n",k},_.generateClass=function g(w){return` public struct ${w.name}: Codable {\n${w.fields.map(k=>` var ${m(k.name)}: ${d(k.type)}`).join("\n")}\n\n${function T(w){let k=" init(";return k+=w.fields.map(U=>`${m(U.name)}: ${d(U.type)}`).join(", "),k+=") {\n",k+=w.fields.map(U=>` self.${m(U.name)} = ${m(U.name)}`).join("\n"),k+="\n }\n",k}(w)}\n${function S(w){let k=" func toJSON() -> [String: Any] {\n";return k+=" var json = [String: Any]()\n",k+=w.fields.map(U=>` json["${m(U.name)}"] = ${u(U.type,U.name)}`).join("\n"),k+="\n return json",k+="\n }\n",k}(w)}\n }\n`},_.generateErrorClass=function v(){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"},_.generateMethodSignature=function A(w){const k=w.args.map(U=>`${m(U.name)}: ${d(U.type)}`).concat(["timeoutSeconds: Double?",`callback: ((_ result: ${w.returnType instanceof i.VoidPrimitiveType?"API.Result<API.NoReply>":`API.Result<${d(w.returnType)}>`}) -> Void)?`]);return` func ${m(w.name)}(${k.join(", ")})`},_.generateRxMethod=function O(w){const k=w.args.map(me=>`${m(me.name)}: ${d(me.type)}`).concat(["timeoutSeconds: Double? = nil"]);let U=` static func ${m(w.name)}(${k.join(", ")}) -> ${w.returnType instanceof i.VoidPrimitiveType?"Observable<API.Result<API.NoReply>>":`Observable<API.Result<${d(w.returnType)}>>`} {\n`;return U+=" return Observable.create { observer -> Disposable in\n",U+=` API.calls.${m(w.name)}(${w.args.map(me=>`${m(me.name)}: ${m(me.name)}`).concat(["timeoutSeconds: timeoutSeconds"]).join(", ")}) { result in \n`,U+=" observer.on(.next(result))\n",U+=" observer.on(.completed)\n",U+=" }\n",U+=" return Disposables.create()\n",U+=" }\n",U+=" }\n",U}},7295:function(je,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,u,s,b){void 0===b&&(b=s),Object.defineProperty(m,b,{enumerable:!0,get:function(){return u[s]}})}:function(m,u,s,b){void 0===b&&(b=s),m[b]=u[s]}),d=this&&this.__exportStar||function(m,u){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,m,s)};Object.defineProperty(_,"__esModule",{value:!0}),d(l(7636),_)},7636:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateSwiftClientSource=void 0;const i=l(6676),d=l(3642);_.generateSwiftClientSource=function m(u,s){let b="import Foundation\nimport SdkgenRuntime\n";b+=s?"import RxSwift\nimport RxCocoa\n\n":"\n",b+="protocol APICallsProtocol {\n",b+=u.operations.filter(g=>g.annotations.every(v=>!(v instanceof i.HiddenAnnotation))).map(g=>`${(0,d.generateMethodSignature)(g)}`).join("\n"),b+="\n}\n\n",b+='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 g of u.enumTypes)b+=(0,d.generateEnum)(g),b+="\n";for(const g of u.structTypes)b+=(0,d.generateClass)(g),b+="\n";const T=[],S=new i.ErrorNode("Connection",new i.VoidPrimitiveType);T.push(S.name);for(const g of u.errors)T.push(g.name);return T.length>0&&(b+=(0,d.generateErrorType)(T),b+="\n"),b+=(0,d.generateErrorClass)(),b+="\n",b+=" public enum Result<T> {\n case success(T)\n case failure(Failure)\n }\n\n",b+=" public class Calls: SdkgenHttpClient, APICallsProtocol {\n\n override init(baseUrl: String) {\n super.init(baseUrl: baseUrl)\n }\n\n",b+=u.operations.filter(g=>g.annotations.every(v=>!(v instanceof i.HiddenAnnotation))).map(g=>{let v="";return v+=` ${(0,d.generateMethodSignature)(g)} {\n`,g.args.length>0?(v+=" var jsonArgs = [String: Any]()\n",v+=g.args.map(A=>` jsonArgs["${(0,d.mangle)(A.name)}"] = ${(0,d.generateJsonRepresentation)(A.type,(0,d.mangle)(A.name))}`).join("\n")):v+=" let jsonArgs = [String: Any]()",v+="\n\n",v+=` request("${g.name}", jsonArgs, timeoutSeconds, completion: { (value: ${g.returnType instanceof i.VoidPrimitiveType?"API.NoReply":(0,d.generateSwiftTypeName)(g.returnType)}) in\n`,v+=" callback?(API.Result.success(value))\n",v+=" }, onError: { error in\n",v+=" callback?(API.Result.failure(API.Failure(message: error.message, code: error.code, type: error.type)))\n",v+=" })",v+="\n }\n",v}).join("\n"),b+=" }\n",b+="}\n",s&&(b+="\n",b+="extension API: ReactiveCompatible {}\n\n",b+="extension Reactive where Base: API {\n",b+=u.operations.filter(g=>g.annotations.every(v=>!(v instanceof i.HiddenAnnotation))).map(g=>`${(0,d.generateRxMethod)(g)}`).join("\n"),b+="}\n"),b}},8173:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateBrowserClientSource=void 0;const i=l(6676),d=l(5596);_.generateBrowserClientSource=function m(u){let s="";s+=`/* eslint-disable */\nimport { SdkgenError${u.errors.some(T=>!(T.dataType instanceof i.VoidPrimitiveType))?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/browser-runtime";\n\n`;for(const T of u.enumTypes)s+=(0,d.generateTypescriptEnum)(T),s+="\n";for(const T of u.structTypes)s+=(0,d.generateTypescriptInterface)(T,!0),s+="\n";for(const T of u.errors)s+=(0,d.generateTypescriptErrorClass)(T,!0),s+="\n";return s+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${u.operations.filter(T=>T.annotations.every(S=>!(S instanceof i.HiddenAnnotation))).map(T=>`\n ${T.name}(args${0===T.args.length?"?":""}: {${T.args.map(S=>`${S.name}${S.type.name.endsWith("?")?"?":""}: ${(0,d.generateTypescriptTypeName)(S.type,!0)}`).join(", ")}}): Promise<${(0,d.generateTypescriptTypeName)(T.returnType,!0)}> { return this.makeRequest("${T.name}", args || {}); }`).join("")}\n}\n\n`,s+=`const errClasses = {\n${u.errors.map(T=>` ${T.name}`).join(",\n")}\n};\n\n`,s+=`const astJson = ${JSON.stringify((0,i.astToJson)(u),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,s}},5596:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.clearForLogging=_.generateTypescriptErrorClass=_.generateTypescriptEnum=_.generateTypescriptInterface=_.generateTypescriptTypeName=void 0;const i=l(6676);function d(T,S){switch(T.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 S?"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`${d(T.base,S)} | null`;case i.ArrayType:{const{base:g}=T,v=d(g,S);return g instanceof i.OptionalType?`(${v})[]`:`${v}[]`}case i.StructType:case i.EnumType:return T.name;case i.TypeReference:return d(T.type,S);default:throw new Error(`BUG: generateTypescriptTypeName with ${T.constructor.name}`)}}_.generateTypescriptTypeName=d,_.generateTypescriptInterface=function m(T,S){return`export interface ${T.name} {\n${T.fields.map(g=>` ${g.name}: ${d(g.type,S)}`).join("\n")}\n}\n`},_.generateTypescriptEnum=function u(T){return T.hasStructValues?`export type ${T.name} = ${T.values.map(S=>S.struct?`({tag: "${S.value}"} & ${S.struct.name})`:`{tag: "${S.value}"}`).join(" | ")};\n`:`export type ${T.name} = ${T.values.map(S=>`"${S.value}"`).join(" | ")};\n`},_.generateTypescriptErrorClass=function s(T,S){return`export class ${T.name} extends ${T.dataType instanceof i.VoidPrimitiveType?"SdkgenError":`SdkgenErrorWithData<${d(T.dataType,S)}>`} {}\n`},_.clearForLogging=function b(T,S){switch(S.constructor){case i.TypeReference:return b(T,S.type);case i.OptionalType:{const g=b(T,S.base);return g?`if (${T} !== null && ${T} !== undefined) { ${g} }`:""}case i.ArrayType:{const g=b("el",S.base);return g?`for (const el of ${T}) { ${g} }`:""}case i.StructType:{const g=[];for(const v of S.fields)if(v.secret)g.push(`${T}.${v.name} = "<secret>";`);else{const A=b(`${T}.${v.name}`,v.type);A&&g.push(A)}return g.join(" ")}default:return""}}},2911:function(je,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,u,s,b){void 0===b&&(b=s),Object.defineProperty(m,b,{enumerable:!0,get:function(){return u[s]}})}:function(m,u,s,b){void 0===b&&(b=s),m[b]=u[s]}),d=this&&this.__exportStar||function(m,u){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,m,s)};Object.defineProperty(_,"__esModule",{value:!0}),d(l(8173),_),d(l(7538),_),d(l(1727),_),d(l(615),_)},7538:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateTypescriptInterfaces=void 0;const i=l(5596);_.generateTypescriptInterfaces=function d(m){let u="";for(const s of m.enumTypes)u+=(0,i.generateTypescriptEnum)(s);u+="\n";for(const s of m.structTypes)u+=(0,i.generateTypescriptInterface)(s,!1),u+="\n";return u}},1727:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateNodeClientSource=void 0;const i=l(6676),d=l(5596);_.generateNodeClientSource=function m(u){let s="";const b=u.errors.some(S=>!(S.dataType instanceof i.VoidPrimitiveType));s+=`/* eslint-disable */\nimport { Context, Fatal${u.errors.filter(S=>"Fatal"!==S.name).some(S=>S.dataType instanceof i.VoidPrimitiveType)?", SdkgenError":""}${b?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/node-runtime";\nimport { PartialDeep } from "type-fest";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const S of u.enumTypes)s+=(0,d.generateTypescriptEnum)(S),s+="\n";for(const S of u.structTypes)s+=(0,d.generateTypescriptInterface)(S,!1),s+="\n";for(const S of u.errors)"Fatal"!==S.name&&(s+=(0,d.generateTypescriptErrorClass)(S,!1),s+="\n");return s+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${u.operations.filter(S=>S.annotations.every(g=>!(g instanceof i.HiddenAnnotation))).map(S=>`\n ${S.name}(ctx: PartialDeep<Context> | null, args: {${S.args.map(g=>`${g.name}${g.type.name.endsWith("?")?"?":""}: ${(0,d.generateTypescriptTypeName)(g.type,!1)}`).join(", ")}}): Promise<${(0,d.generateTypescriptTypeName)(S.returnType,!1)}> { return this.makeRequest(ctx, "${S.name}", args); }`).join("")}\n}\n\n`,s+=`const errClasses = {\n${u.errors.map(S=>` ${S.name}`).join(",\n")}\n};\n\n`,s+=`const astJson = ${JSON.stringify((0,i.astToJson)(u),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,s}},615:(je,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateNodeServerSource=void 0;const i=l(6676),d=l(5596);_.generateNodeServerSource=function m(u){let s="";const b=u.errors.some(S=>!(S.dataType instanceof i.VoidPrimitiveType));s+=`/* eslint-disable */\nimport { BaseApiConfig, Context, Fatal${u.errors.filter(S=>"Fatal"!==S.name).some(S=>S.dataType instanceof i.VoidPrimitiveType)?", SdkgenError":""}${b?", SdkgenErrorWithData":""} } from "@sdkgen/node-runtime";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const S of u.enumTypes)s+=(0,d.generateTypescriptEnum)(S),s+="\n";for(const S of u.structTypes)s+=(0,d.generateTypescriptInterface)(S,!1),s+="\n";for(const S of u.errors)"Fatal"!==S.name&&(s+=(0,d.generateTypescriptErrorClass)(S,!1),s+="\n");return s+=`export class ApiConfig<ExtraContextT> extends BaseApiConfig<ExtraContextT> {\n fn!: {${u.operations.map(S=>`\n ${S.name}: (ctx: Context & ExtraContextT, args: {${S.args.map(g=>`${g.name}: ${(0,d.generateTypescriptTypeName)(g.type,!1)}`).join(", ")}}) => Promise<${(0,d.generateTypescriptTypeName)(S.returnType,!1)}>`).join("")}\n }\n\n astJson = ${JSON.stringify((0,i.astToJson)(u),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:").replace(/\n/gu,"\n ")} as const\n}\n\nexport const api = new ApiConfig<{}>();\n`,s}},8926:je=>{function _(i,d,m,u,s,b,T){try{var S=i[b](T),g=S.value}catch(v){return void m(v)}S.done?d(g):Promise.resolve(g).then(u,s)}je.exports=function l(i){return function(){var d=this,m=arguments;return new Promise(function(u,s){var b=i.apply(d,m);function T(g){_(b,u,s,T,S,"next",g)}function S(g){_(b,u,s,T,S,"throw",g)}T(void 0)})}},je.exports.default=je.exports,je.exports.__esModule=!0},655:(je,_,l)=>{"use strict";l.r(_),l.d(_,{__extends:()=>d,__assign:()=>m,__rest:()=>u,__decorate:()=>s,__param:()=>b,__metadata:()=>T,__awaiter:()=>S,__generator:()=>g,__createBinding:()=>v,__exportStar:()=>A,__values:()=>O,__read:()=>w,__spread:()=>k,__spreadArrays:()=>U,__spreadArray:()=>me,__await:()=>$,__asyncGenerator:()=>re,__asyncDelegator:()=>Te,__asyncValues:()=>fe,__makeTemplateObject:()=>_e,__importStar:()=>Ee,__importDefault:()=>Fe,__classPrivateFieldGet:()=>Je,__classPrivateFieldSet:()=>ot});var i=function(q,Ae){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,ce){X.__proto__=ce}||function(X,ce){for(var Se in ce)Object.prototype.hasOwnProperty.call(ce,Se)&&(X[Se]=ce[Se])})(q,Ae)};function d(q,Ae){if("function"!=typeof Ae&&null!==Ae)throw new TypeError("Class extends value "+String(Ae)+" is not a constructor or null");function X(){this.constructor=q}i(q,Ae),q.prototype=null===Ae?Object.create(Ae):(X.prototype=Ae.prototype,new X)}var m=function(){return m=Object.assign||function(Ae){for(var X,ce=1,Se=arguments.length;ce<Se;ce++)for(var ne in X=arguments[ce])Object.prototype.hasOwnProperty.call(X,ne)&&(Ae[ne]=X[ne]);return Ae},m.apply(this,arguments)};function u(q,Ae){var X={};for(var ce in q)Object.prototype.hasOwnProperty.call(q,ce)&&Ae.indexOf(ce)<0&&(X[ce]=q[ce]);if(null!=q&&"function"==typeof Object.getOwnPropertySymbols){var Se=0;for(ce=Object.getOwnPropertySymbols(q);Se<ce.length;Se++)Ae.indexOf(ce[Se])<0&&Object.prototype.propertyIsEnumerable.call(q,ce[Se])&&(X[ce[Se]]=q[ce[Se]])}return X}function s(q,Ae,X,ce){var $e,Se=arguments.length,ne=Se<3?Ae:null===ce?ce=Object.getOwnPropertyDescriptor(Ae,X):ce;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ne=Reflect.decorate(q,Ae,X,ce);else for(var ge=q.length-1;ge>=0;ge--)($e=q[ge])&&(ne=(Se<3?$e(ne):Se>3?$e(Ae,X,ne):$e(Ae,X))||ne);return Se>3&&ne&&Object.defineProperty(Ae,X,ne),ne}function b(q,Ae){return function(X,ce){Ae(X,ce,q)}}function T(q,Ae){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(q,Ae)}function S(q,Ae,X,ce){return new(X||(X=Promise))(function(ne,$e){function ge(Ke){try{Me(ce.next(Ke))}catch(mt){$e(mt)}}function Ze(Ke){try{Me(ce.throw(Ke))}catch(mt){$e(mt)}}function Me(Ke){Ke.done?ne(Ke.value):function Se(ne){return ne instanceof X?ne:new X(function($e){$e(ne)})}(Ke.value).then(ge,Ze)}Me((ce=ce.apply(q,Ae||[])).next())})}function g(q,Ae){var ce,Se,ne,$e,X={label:0,sent:function(){if(1&ne[0])throw ne[1];return ne[1]},trys:[],ops:[]};return $e={next:ge(0),throw:ge(1),return:ge(2)},"function"==typeof Symbol&&($e[Symbol.iterator]=function(){return this}),$e;function ge(Me){return function(Ke){return function Ze(Me){if(ce)throw new TypeError("Generator is already executing.");for(;X;)try{if(ce=1,Se&&(ne=2&Me[0]?Se.return:Me[0]?Se.throw||((ne=Se.return)&&ne.call(Se),0):Se.next)&&!(ne=ne.call(Se,Me[1])).done)return ne;switch(Se=0,ne&&(Me=[2&Me[0],ne.value]),Me[0]){case 0:case 1:ne=Me;break;case 4:return X.label++,{value:Me[1],done:!1};case 5:X.label++,Se=Me[1],Me=[0];continue;case 7:Me=X.ops.pop(),X.trys.pop();continue;default:if(!(ne=(ne=X.trys).length>0&&ne[ne.length-1])&&(6===Me[0]||2===Me[0])){X=0;continue}if(3===Me[0]&&(!ne||Me[1]>ne[0]&&Me[1]<ne[3])){X.label=Me[1];break}if(6===Me[0]&&X.label<ne[1]){X.label=ne[1],ne=Me;break}if(ne&&X.label<ne[2]){X.label=ne[2],X.ops.push(Me);break}ne[2]&&X.ops.pop(),X.trys.pop();continue}Me=Ae.call(q,X)}catch(Ke){Me=[6,Ke],Se=0}finally{ce=ne=0}if(5&Me[0])throw Me[1];return{value:Me[0]?Me[1]:void 0,done:!0}}([Me,Ke])}}}var v=Object.create?function(q,Ae,X,ce){void 0===ce&&(ce=X),Object.defineProperty(q,ce,{enumerable:!0,get:function(){return Ae[X]}})}:function(q,Ae,X,ce){void 0===ce&&(ce=X),q[ce]=Ae[X]};function A(q,Ae){for(var X in q)"default"!==X&&!Object.prototype.hasOwnProperty.call(Ae,X)&&v(Ae,q,X)}function O(q){var Ae="function"==typeof Symbol&&Symbol.iterator,X=Ae&&q[Ae],ce=0;if(X)return X.call(q);if(q&&"number"==typeof q.length)return{next:function(){return q&&ce>=q.length&&(q=void 0),{value:q&&q[ce++],done:!q}}};throw new TypeError(Ae?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(q,Ae){var X="function"==typeof Symbol&&q[Symbol.iterator];if(!X)return q;var Se,$e,ce=X.call(q),ne=[];try{for(;(void 0===Ae||Ae-- >0)&&!(Se=ce.next()).done;)ne.push(Se.value)}catch(ge){$e={error:ge}}finally{try{Se&&!Se.done&&(X=ce.return)&&X.call(ce)}finally{if($e)throw $e.error}}return ne}function k(){for(var q=[],Ae=0;Ae<arguments.length;Ae++)q=q.concat(w(arguments[Ae]));return q}function U(){for(var q=0,Ae=0,X=arguments.length;Ae<X;Ae++)q+=arguments[Ae].length;var ce=Array(q),Se=0;for(Ae=0;Ae<X;Ae++)for(var ne=arguments[Ae],$e=0,ge=ne.length;$e<ge;$e++,Se++)ce[Se]=ne[$e];return ce}function me(q,Ae,X){if(X||2===arguments.length)for(var ne,ce=0,Se=Ae.length;ce<Se;ce++)(ne||!(ce in Ae))&&(ne||(ne=Array.prototype.slice.call(Ae,0,ce)),ne[ce]=Ae[ce]);return q.concat(ne||Array.prototype.slice.call(Ae))}function $(q){return this instanceof $?(this.v=q,this):new $(q)}function re(q,Ae,X){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Se,ce=X.apply(q,Ae||[]),ne=[];return Se={},$e("next"),$e("throw"),$e("return"),Se[Symbol.asyncIterator]=function(){return this},Se;function $e(Dt){ce[Dt]&&(Se[Dt]=function(ke){return new Promise(function(Ye,Z){ne.push([Dt,ke,Ye,Z])>1||ge(Dt,ke)})})}function ge(Dt,ke){try{!function Ze(Dt){Dt.value instanceof $?Promise.resolve(Dt.value.v).then(Me,Ke):mt(ne[0][2],Dt)}(ce[Dt](ke))}catch(Ye){mt(ne[0][3],Ye)}}function Me(Dt){ge("next",Dt)}function Ke(Dt){ge("throw",Dt)}function mt(Dt,ke){Dt(ke),ne.shift(),ne.length&&ge(ne[0][0],ne[0][1])}}function Te(q){var Ae,X;return Ae={},ce("next"),ce("throw",function(Se){throw Se}),ce("return"),Ae[Symbol.iterator]=function(){return this},Ae;function ce(Se,ne){Ae[Se]=q[Se]?function($e){return(X=!X)?{value:$(q[Se]($e)),done:"return"===Se}:ne?ne($e):$e}:ne}}function fe(q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var X,Ae=q[Symbol.asyncIterator];return Ae?Ae.call(q):(q=O(q),X={},ce("next"),ce("throw"),ce("return"),X[Symbol.asyncIterator]=function(){return this},X);function ce(ne){X[ne]=q[ne]&&function($e){return new Promise(function(ge,Ze){!function Se(ne,$e,ge,Ze){Promise.resolve(Ze).then(function(Me){ne({value:Me,done:ge})},$e)}(ge,Ze,($e=q[ne]($e)).done,$e.value)})}}}function _e(q,Ae){return Object.defineProperty?Object.defineProperty(q,"raw",{value:Ae}):q.raw=Ae,q}var le=Object.create?function(q,Ae){Object.defineProperty(q,"default",{enumerable:!0,value:Ae})}:function(q,Ae){q.default=Ae};function Ee(q){if(q&&q.__esModule)return q;var Ae={};if(null!=q)for(var X in q)"default"!==X&&Object.prototype.hasOwnProperty.call(q,X)&&v(Ae,q,X);return le(Ae,q),Ae}function Fe(q){return q&&q.__esModule?q:{default:q}}function Je(q,Ae,X,ce){if("a"===X&&!ce)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof Ae?q!==Ae||!ce:!Ae.has(q))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===X?ce:"a"===X?ce.call(q):ce?ce.value:Ae.get(q)}function ot(q,Ae,X,ce,Se){if("m"===ce)throw new TypeError("Private method is not writable");if("a"===ce&&!Se)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof Ae?q!==Ae||!Se:!Ae.has(q))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===ce?Se.call(q,X):Se?Se.value=X:Ae.set(q,X),X}},1777:(je,_,l)=>{"use strict";l.d(_,{l3:()=>m,_j:()=>i,LC:()=>d,ZN:()=>re,jt:()=>s,F4:()=>v,vP:()=>T,SB:()=>g,oB:()=>S,eR:()=>A,X$:()=>u,ZE:()=>Te,k1:()=>fe});class i{}class d{}const m="*";function u(_e,le){return{type:7,name:_e,definitions:le,options:{}}}function s(_e,le=null){return{type:4,styles:le,timings:_e}}function T(_e,le=null){return{type:2,steps:_e,options:le}}function S(_e){return{type:6,styles:_e,offset:null}}function g(_e,le,Ee){return{type:0,name:_e,styles:le,options:Ee}}function v(_e){return{type:5,steps:_e}}function A(_e,le,Ee=null){return{type:1,expr:_e,animation:le,options:Ee}}function $(_e){Promise.resolve(null).then(_e)}class re{constructor(le=0,Ee=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=le+Ee}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(le=>le()),this._onDoneFns=[])}onStart(le){this._onStartFns.push(le)}onDone(le){this._onDoneFns.push(le)}onDestroy(le){this._onDestroyFns.push(le)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){$(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(le=>le()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(le=>le()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(le){this._position=this.totalTime?le*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(le){const Ee="start"==le?this._onStartFns:this._onDoneFns;Ee.forEach(Fe=>Fe()),Ee.length=0}}class Te{constructor(le){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=le;let Ee=0,Fe=0,Je=0;const ot=this.players.length;0==ot?$(()=>this._onFinish()):this.players.forEach(q=>{q.onDone(()=>{++Ee==ot&&this._onFinish()}),q.onDestroy(()=>{++Fe==ot&&this._onDestroy()}),q.onStart(()=>{++Je==ot&&this._onStart()})}),this.totalTime=this.players.reduce((q,Ae)=>Math.max(q,Ae.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(le=>le()),this._onDoneFns=[])}init(){this.players.forEach(le=>le.init())}onStart(le){this._onStartFns.push(le)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(le=>le()),this._onStartFns=[])}onDone(le){this._onDoneFns.push(le)}onDestroy(le){this._onDestroyFns.push(le)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(le=>le.play())}pause(){this.players.forEach(le=>le.pause())}restart(){this.players.forEach(le=>le.restart())}finish(){this._onFinish(),this.players.forEach(le=>le.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(le=>le.destroy()),this._onDestroyFns.forEach(le=>le()),this._onDestroyFns=[])}reset(){this.players.forEach(le=>le.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(le){const Ee=le*this.totalTime;this.players.forEach(Fe=>{const Je=Fe.totalTime?Math.min(1,Ee/Fe.totalTime):1;Fe.setPosition(Je)})}getPosition(){const le=this.players.reduce((Ee,Fe)=>null===Ee||Fe.totalTime>Ee.totalTime?Fe:Ee,null);return null!=le?le.getPosition():0}beforeDestroy(){this.players.forEach(le=>{le.beforeDestroy&&le.beforeDestroy()})}triggerCallback(le){const Ee="start"==le?this._onStartFns:this._onDoneFns;Ee.forEach(Fe=>Fe()),Ee.length=0}}const fe="!"},5664:(je,_,l)=>{"use strict";l.d(_,{rt:()=>oe,$s:()=>X,kH:()=>Mt,Em:()=>ge,tE:()=>zt,qV:()=>Ot,qm:()=>yn,ic:()=>Me,X6:()=>De,yG:()=>ve});var i=l(9808),d=l(5e3),m=l(6758),u=l(6921),s=l(1135),b=l(9646),T=l(1159),S=l(8505),g=l(8372),v=l(9300),A=l(4004),O=l(5698),w=l(5684),k=l(1884),U=l(2722),me=l(3191),$=l(925),re=l(7144);function le(W,p){return(W.getAttribute(p)||"").match(/\S+/g)||[]}const Ee="cdk-describedby-message-container",Fe="cdk-describedby-message",Je="cdk-describedby-host";let ot=0;const q=new Map;let Ae=null,X=(()=>{class W{constructor(C){this._document=C}describe(C,D,K){if(!this._canBeDescribed(C,D))return;const et=ce(D,K);"string"!=typeof D?(Se(D),q.set(et,{messageElement:D,referenceCount:0})):q.has(et)||this._createMessageElement(D,K),this._isElementDescribedByMessage(C,et)||this._addMessageReference(C,et)}removeDescription(C,D,K){if(!D||!this._isElementNode(C))return;const et=ce(D,K);if(this._isElementDescribedByMessage(C,et)&&this._removeMessageReference(C,et),"string"==typeof D){const Et=q.get(et);Et&&0===Et.referenceCount&&this._deleteMessageElement(et)}Ae&&0===Ae.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const C=this._document.querySelectorAll(`[${Je}]`);for(let D=0;D<C.length;D++)this._removeCdkDescribedByReferenceIds(C[D]),C[D].removeAttribute(Je);Ae&&this._deleteMessagesContainer(),q.clear()}_createMessageElement(C,D){const K=this._document.createElement("div");Se(K),K.textContent=C,D&&K.setAttribute("role",D),this._createMessagesContainer(),Ae.appendChild(K),q.set(ce(C,D),{messageElement:K,referenceCount:0})}_deleteMessageElement(C){var D;const K=q.get(C);null===(D=null==K?void 0:K.messageElement)||void 0===D||D.remove(),q.delete(C)}_createMessagesContainer(){if(!Ae){const C=this._document.getElementById(Ee);null==C||C.remove(),Ae=this._document.createElement("div"),Ae.id=Ee,Ae.style.visibility="hidden",Ae.classList.add("cdk-visually-hidden"),this._document.body.appendChild(Ae)}}_deleteMessagesContainer(){Ae&&(Ae.remove(),Ae=null)}_removeCdkDescribedByReferenceIds(C){const D=le(C,"aria-describedby").filter(K=>0!=K.indexOf(Fe));C.setAttribute("aria-describedby",D.join(" "))}_addMessageReference(C,D){const K=q.get(D);(function fe(W,p,C){const D=le(W,p);D.some(K=>K.trim()==C.trim())||(D.push(C.trim()),W.setAttribute(p,D.join(" ")))})(C,"aria-describedby",K.messageElement.id),C.setAttribute(Je,""),K.referenceCount++}_removeMessageReference(C,D){const K=q.get(D);K.referenceCount--,function _e(W,p,C){const K=le(W,p).filter(et=>et!=C.trim());K.length?W.setAttribute(p,K.join(" ")):W.removeAttribute(p)}(C,"aria-describedby",K.messageElement.id),C.removeAttribute(Je)}_isElementDescribedByMessage(C,D){const K=le(C,"aria-describedby"),et=q.get(D),Et=et&&et.messageElement.id;return!!Et&&-1!=K.indexOf(Et)}_canBeDescribed(C,D){if(!this._isElementNode(C))return!1;if(D&&"object"==typeof D)return!0;const K=null==D?"":`${D}`.trim(),et=C.getAttribute("aria-label");return!(!K||et&&et.trim()===K)}_isElementNode(C){return C.nodeType===this._document.ELEMENT_NODE}}return W.\u0275fac=function(C){return new(C||W)(d.\u0275\u0275inject(i.DOCUMENT))},W.\u0275prov=d.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac,providedIn:"root"}),W})();function ce(W,p){return"string"==typeof W?`${p||""}/${W}`:W}function Se(W){W.id||(W.id=`${Fe}-${ot++}`)}class ge extends class ne{constructor(p){this._items=p,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new m.x,this._typeaheadSubscription=u.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=C=>C.disabled,this._pressedLetters=[],this.tabOut=new m.x,this.change=new m.x,p instanceof d.QueryList&&p.changes.subscribe(C=>{if(this._activeItem){const K=C.toArray().indexOf(this._activeItem);K>-1&&K!==this._activeItemIndex&&(this._activeItemIndex=K)}})}skipPredicate(p){return this._skipPredicateFn=p,this}withWrap(p=!0){return this._wrap=p,this}withVerticalOrientation(p=!0){return this._vertical=p,this}withHorizontalOrientation(p){return this._horizontal=p,this}withAllowedModifierKeys(p){return this._allowedModifierKeys=p,this}withTypeAhead(p=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,S.b)(C=>this._pressedLetters.push(C)),(0,g.b)(p),(0,v.h)(()=>this._pressedLetters.length>0),(0,A.U)(()=>this._pressedLetters.join(""))).subscribe(C=>{const D=this._getItemsArray();for(let K=1;K<D.length+1;K++){const et=(this._activeItemIndex+K)%D.length,Et=D[et];if(!this._skipPredicateFn(Et)&&0===Et.getLabel().toUpperCase().trim().indexOf(C)){this.setActiveItem(et);break}}this._pressedLetters=[]}),this}withHomeAndEnd(p=!0){return this._homeAndEnd=p,this}setActiveItem(p){const C=this._activeItem;this.updateActiveItem(p),this._activeItem!==C&&this.change.next(this._activeItemIndex)}onKeydown(p){const C=p.keyCode,K=["altKey","ctrlKey","metaKey","shiftKey"].every(et=>!p[et]||this._allowedModifierKeys.indexOf(et)>-1);switch(C){case T.Mf:return void this.tabOut.next();case T.JH:if(this._vertical&&K){this.setNextItemActive();break}return;case T.LH:if(this._vertical&&K){this.setPreviousItemActive();break}return;case T.SV:if(this._horizontal&&K){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case T.oh:if(this._horizontal&&K){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case T.Sd:if(this._homeAndEnd&&K){this.setFirstItemActive();break}return;case T.uR:if(this._homeAndEnd&&K){this.setLastItemActive();break}return;default:return void((K||(0,T.Vb)(p,"shiftKey"))&&(p.key&&1===p.key.length?this._letterKeyStream.next(p.key.toLocaleUpperCase()):(C>=T.A&&C<=T.Z||C>=T.xE&&C<=T.aO)&&this._letterKeyStream.next(String.fromCharCode(C))))}this._pressedLetters=[],p.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(p){const C=this._getItemsArray(),D="number"==typeof p?p:C.indexOf(p),K=C[D];this._activeItem=null==K?null:K,this._activeItemIndex=D}_setActiveItemByDelta(p){this._wrap?this._setActiveInWrapMode(p):this._setActiveInDefaultMode(p)}_setActiveInWrapMode(p){const C=this._getItemsArray();for(let D=1;D<=C.length;D++){const K=(this._activeItemIndex+p*D+C.length)%C.length;if(!this._skipPredicateFn(C[K]))return void this.setActiveItem(K)}}_setActiveInDefaultMode(p){this._setActiveItemByIndex(this._activeItemIndex+p,p)}_setActiveItemByIndex(p,C){const D=this._getItemsArray();if(D[p]){for(;this._skipPredicateFn(D[p]);)if(!D[p+=C])return;this.setActiveItem(p)}}_getItemsArray(){return this._items instanceof d.QueryList?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(p){return this._origin=p,this}setActiveItem(p){super.setActiveItem(p),this.activeItem&&this.activeItem.focus(this._origin)}}let Me=(()=>{class W{constructor(C){this._platform=C}isDisabled(C){return C.hasAttribute("disabled")}isVisible(C){return function mt(W){return!!(W.offsetWidth||W.offsetHeight||"function"==typeof W.getClientRects&&W.getClientRects().length)}(C)&&"visible"===getComputedStyle(C).visibility}isTabbable(C){if(!this._platform.isBrowser)return!1;const D=function Ke(W){try{return W.frameElement}catch(p){return null}}(function dt(W){return W.ownerDocument&&W.ownerDocument.defaultView||window}(C));if(D&&(-1===Re(D)||!this.isVisible(D)))return!1;let K=C.nodeName.toLowerCase(),et=Re(C);return C.hasAttribute("contenteditable")?-1!==et:!("iframe"===K||"object"===K||this._platform.WEBKIT&&this._platform.IOS&&!function ye(W){let p=W.nodeName.toLowerCase(),C="input"===p&&W.type;return"text"===C||"password"===C||"select"===p||"textarea"===p}(C))&&("audio"===K?!!C.hasAttribute("controls")&&-1!==et:"video"===K?-1!==et&&(null!==et||this._platform.FIREFOX||C.hasAttribute("controls")):C.tabIndex>=0)}isFocusable(C,D){return function Xe(W){return!function ke(W){return function Z(W){return"input"==W.nodeName.toLowerCase()}(W)&&"hidden"==W.type}(W)&&(function Dt(W){let p=W.nodeName.toLowerCase();return"input"===p||"select"===p||"button"===p||"textarea"===p}(W)||function Ye(W){return function pe(W){return"a"==W.nodeName.toLowerCase()}(W)&&W.hasAttribute("href")}(W)||W.hasAttribute("contenteditable")||we(W))}(C)&&!this.isDisabled(C)&&((null==D?void 0:D.ignoreVisibility)||this.isVisible(C))}}return W.\u0275fac=function(C){return new(C||W)(d.\u0275\u0275inject($.t4))},W.\u0275prov=d.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac,providedIn:"root"}),W})();function we(W){if(!W.hasAttribute("tabindex")||void 0===W.tabIndex)return!1;let p=W.getAttribute("tabindex");return!(!p||isNaN(parseInt(p,10)))}function Re(W){if(!we(W))return null;const p=parseInt(W.getAttribute("tabindex")||"",10);return isNaN(p)?-1:p}class bt{constructor(p,C,D,K,et=!1){this._element=p,this._checker=C,this._ngZone=D,this._document=K,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,et||this.attachAnchors()}get enabled(){return this._enabled}set enabled(p){this._enabled=p,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(p,this._startAnchor),this._toggleAnchorTabIndex(p,this._endAnchor))}destroy(){const p=this._startAnchor,C=this._endAnchor;p&&(p.removeEventListener("focus",this.startAnchorListener),p.remove()),C&&(C.removeEventListener("focus",this.endAnchorListener),C.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(p){return new Promise(C=>{this._executeOnStable(()=>C(this.focusInitialElement(p)))})}focusFirstTabbableElementWhenReady(p){return new Promise(C=>{this._executeOnStable(()=>C(this.focusFirstTabbableElement(p)))})}focusLastTabbableElementWhenReady(p){return new Promise(C=>{this._executeOnStable(()=>C(this.focusLastTabbableElement(p)))})}_getRegionBoundary(p){const C=this._element.querySelectorAll(`[cdk-focus-region-${p}], [cdkFocusRegion${p}], [cdk-focus-${p}]`);return"start"==p?C.length?C[0]:this._getFirstTabbableElement(this._element):C.length?C[C.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(p){const C=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(C){if(!this._checker.isFocusable(C)){const D=this._getFirstTabbableElement(C);return null==D||D.focus(p),!!D}return C.focus(p),!0}return this.focusFirstTabbableElement(p)}focusFirstTabbableElement(p){const C=this._getRegionBoundary("start");return C&&C.focus(p),!!C}focusLastTabbableElement(p){const C=this._getRegionBoundary("end");return C&&C.focus(p),!!C}hasAttached(){return this._hasAttached}_getFirstTabbableElement(p){if(this._checker.isFocusable(p)&&this._checker.isTabbable(p))return p;const C=p.children;for(let D=0;D<C.length;D++){const K=C[D].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(C[D]):null;if(K)return K}return null}_getLastTabbableElement(p){if(this._checker.isFocusable(p)&&this._checker.isTabbable(p))return p;const C=p.children;for(let D=C.length-1;D>=0;D--){const K=C[D].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(C[D]):null;if(K)return K}return null}_createAnchor(){const p=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,p),p.classList.add("cdk-visually-hidden"),p.classList.add("cdk-focus-trap-anchor"),p.setAttribute("aria-hidden","true"),p}_toggleAnchorTabIndex(p,C){p?C.setAttribute("tabindex","0"):C.removeAttribute("tabindex")}toggleAnchors(p){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(p,this._startAnchor),this._toggleAnchorTabIndex(p,this._endAnchor))}_executeOnStable(p){this._ngZone.isStable?p():this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(p)}}let Ot=(()=>{class W{constructor(C,D,K){this._checker=C,this._ngZone=D,this._document=K}create(C,D=!1){return new bt(C,this._checker,this._ngZone,this._document,D)}}return W.\u0275fac=function(C){return new(C||W)(d.\u0275\u0275inject(Me),d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(i.DOCUMENT))},W.\u0275prov=d.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac,providedIn:"root"}),W})();function De(W){return 0===W.offsetX&&0===W.offsetY}function ve(W){const p=W.touches&&W.touches[0]||W.changedTouches&&W.changedTouches[0];return!(!p||-1!==p.identifier||null!=p.radiusX&&1!==p.radiusX||null!=p.radiusY&&1!==p.radiusY)}const se=new d.InjectionToken("cdk-input-modality-detector-options"),be={ignoreKeys:[T.zL,T.jx,T.b2,T.MW,T.JU]},nt=(0,$.i$)({passive:!0,capture:!0});let ht=(()=>{class W{constructor(C,D,K,et){this._platform=C,this._mostRecentTarget=null,this._modality=new s.X(null),this._lastTouchMs=0,this._onKeydown=Et=>{var Wt,pn;(null===(pn=null===(Wt=this._options)||void 0===Wt?void 0:Wt.ignoreKeys)||void 0===pn?void 0:pn.some(Le=>Le===Et.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,$.sA)(Et))},this._onMousedown=Et=>{Date.now()-this._lastTouchMs<650||(this._modality.next(De(Et)?"keyboard":"mouse"),this._mostRecentTarget=(0,$.sA)(Et))},this._onTouchstart=Et=>{ve(Et)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,$.sA)(Et))},this._options=Object.assign(Object.assign({},be),et),this.modalityDetected=this._modality.pipe((0,w.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,k.x)()),C.isBrowser&&D.runOutsideAngular(()=>{K.addEventListener("keydown",this._onKeydown,nt),K.addEventListener("mousedown",this._onMousedown,nt),K.addEventListener("touchstart",this._onTouchstart,nt)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,nt),document.removeEventListener("mousedown",this._onMousedown,nt),document.removeEventListener("touchstart",this._onTouchstart,nt))}}return W.\u0275fac=function(C){return new(C||W)(d.\u0275\u0275inject($.t4),d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(i.DOCUMENT),d.\u0275\u0275inject(se,8))},W.\u0275prov=d.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac,providedIn:"root"}),W})();const En=new d.InjectionToken("cdk-focus-monitor-default-options"),rn=(0,$.i$)({passive:!0,capture:!0});let zt=(()=>{class W{constructor(C,D,K,et,Et){this._ngZone=C,this._platform=D,this._inputModalityDetector=K,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 m.x,this._rootNodeFocusAndBlurListener=Wt=>{const pn=(0,$.sA)(Wt),Le="focus"===Wt.type?this._onFocus:this._onBlur;for(let Ve=pn;Ve;Ve=Ve.parentElement)Le.call(this,Wt,Ve)},this._document=et,this._detectionMode=(null==Et?void 0:Et.detectionMode)||0}monitor(C,D=!1){const K=(0,me.fI)(C);if(!this._platform.isBrowser||1!==K.nodeType)return(0,b.of)(null);const et=(0,$.kV)(K)||this._getDocument(),Et=this._elementInfo.get(K);if(Et)return D&&(Et.checkChildren=!0),Et.subject;const Wt={checkChildren:D,subject:new m.x,rootNode:et};return this._elementInfo.set(K,Wt),this._registerGlobalListeners(Wt),Wt.subject}stopMonitoring(C){const D=(0,me.fI)(C),K=this._elementInfo.get(D);K&&(K.subject.complete(),this._setClasses(D),this._elementInfo.delete(D),this._removeGlobalListeners(K))}focusVia(C,D,K){const et=(0,me.fI)(C);et===this._getDocument().activeElement?this._getClosestElementsInfo(et).forEach(([Wt,pn])=>this._originChanged(Wt,D,pn)):(this._setOrigin(D),"function"==typeof et.focus&&et.focus(K))}ngOnDestroy(){this._elementInfo.forEach((C,D)=>this.stopMonitoring(D))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(C){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(C)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(C){return 1===this._detectionMode||!!(null==C?void 0:C.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(C,D){C.classList.toggle("cdk-focused",!!D),C.classList.toggle("cdk-touch-focused","touch"===D),C.classList.toggle("cdk-keyboard-focused","keyboard"===D),C.classList.toggle("cdk-mouse-focused","mouse"===D),C.classList.toggle("cdk-program-focused","program"===D)}_setOrigin(C,D=!1){this._ngZone.runOutsideAngular(()=>{this._origin=C,this._originFromTouchInteraction="touch"===C&&D,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(C,D){const K=this._elementInfo.get(D),et=(0,$.sA)(C);!K||!K.checkChildren&&D!==et||this._originChanged(D,this._getFocusOrigin(et),K)}_onBlur(C,D){const K=this._elementInfo.get(D);!K||K.checkChildren&&C.relatedTarget instanceof Node&&D.contains(C.relatedTarget)||(this._setClasses(D),this._emitOrigin(K.subject,null))}_emitOrigin(C,D){this._ngZone.run(()=>C.next(D))}_registerGlobalListeners(C){if(!this._platform.isBrowser)return;const D=C.rootNode,K=this._rootNodeFocusListenerCount.get(D)||0;K||this._ngZone.runOutsideAngular(()=>{D.addEventListener("focus",this._rootNodeFocusAndBlurListener,rn),D.addEventListener("blur",this._rootNodeFocusAndBlurListener,rn)}),this._rootNodeFocusListenerCount.set(D,K+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,U.R)(this._stopInputModalityDetector)).subscribe(et=>{this._setOrigin(et,!0)}))}_removeGlobalListeners(C){const D=C.rootNode;if(this._rootNodeFocusListenerCount.has(D)){const K=this._rootNodeFocusListenerCount.get(D);K>1?this._rootNodeFocusListenerCount.set(D,K-1):(D.removeEventListener("focus",this._rootNodeFocusAndBlurListener,rn),D.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rn),this._rootNodeFocusListenerCount.delete(D))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(C,D,K){this._setClasses(C,D),this._emitOrigin(K.subject,D),this._lastFocusOrigin=D}_getClosestElementsInfo(C){const D=[];return this._elementInfo.forEach((K,et)=>{(et===C||K.checkChildren&&et.contains(C))&&D.push([et,K])}),D}}return W.\u0275fac=function(C){return new(C||W)(d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject($.t4),d.\u0275\u0275inject(ht),d.\u0275\u0275inject(i.DOCUMENT,8),d.\u0275\u0275inject(En,8))},W.\u0275prov=d.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac,providedIn:"root"}),W})(),Mt=(()=>{class W{constructor(C,D){this._elementRef=C,this._focusMonitor=D,this.cdkFocusChange=new d.EventEmitter}ngAfterViewInit(){const C=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(C,1===C.nodeType&&C.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(D=>this.cdkFocusChange.emit(D))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return W.\u0275fac=function(C){return new(C||W)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(zt))},W.\u0275dir=d.\u0275\u0275defineDirective({type:W,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),W})();const bn="cdk-high-contrast-black-on-white",Qt="cdk-high-contrast-white-on-black",on="cdk-high-contrast-active";let yn=(()=>{class W{constructor(C,D){this._platform=C,this._document=D}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const C=this._document.createElement("div");C.style.backgroundColor="rgb(1,2,3)",C.style.position="absolute",this._document.body.appendChild(C);const D=this._document.defaultView||window,K=D&&D.getComputedStyle?D.getComputedStyle(C):null,et=(K&&K.backgroundColor||"").replace(/ /g,"");switch(C.remove(),et){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 C=this._document.body.classList;C.remove(on),C.remove(bn),C.remove(Qt),this._hasCheckedHighContrastMode=!0;const D=this.getHighContrastMode();1===D?(C.add(on),C.add(bn)):2===D&&(C.add(on),C.add(Qt))}}}return W.\u0275fac=function(C){return new(C||W)(d.\u0275\u0275inject($.t4),d.\u0275\u0275inject(i.DOCUMENT))},W.\u0275prov=d.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac,providedIn:"root"}),W})(),oe=(()=>{class W{constructor(C){C._applyBodyHighContrastModeCssClasses()}}return W.\u0275fac=function(C){return new(C||W)(d.\u0275\u0275inject(yn))},W.\u0275mod=d.\u0275\u0275defineNgModule({type:W}),W.\u0275inj=d.\u0275\u0275defineInjector({imports:[[$.ud,re.Q8]]}),W})()},226:(je,_,l)=>{"use strict";l.d(_,{vT:()=>g,Is:()=>T});var i=l(5e3),d=l(9808);const m=new i.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function u(){return(0,i.inject)(d.DOCUMENT)}}),s=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let T=(()=>{class v{constructor(O){if(this.value="ltr",this.change=new i.EventEmitter,O){const k=O.documentElement?O.documentElement.dir:null;this.value=function b(v){const A=(null==v?void 0:v.toLowerCase())||"";return"auto"===A&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?s.test(navigator.language)?"rtl":"ltr":"rtl"===A?"rtl":"ltr"}((O.body?O.body.dir:null)||k||"ltr")}}ngOnDestroy(){this.change.complete()}}return v.\u0275fac=function(O){return new(O||v)(i.\u0275\u0275inject(m,8))},v.\u0275prov=i.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"}),v})(),g=(()=>{class v{}return v.\u0275fac=function(O){return new(O||v)},v.\u0275mod=i.\u0275\u0275defineNgModule({type:v}),v.\u0275inj=i.\u0275\u0275defineInjector({}),v})()},3191:(je,_,l)=>{"use strict";l.d(_,{t6:()=>u,Eq:()=>s,Ig:()=>d,HM:()=>b,fI:()=>T,su:()=>m});var i=l(5e3);function d(g){return null!=g&&"false"!=`${g}`}function m(g,v=0){return u(g)?Number(g):v}function u(g){return!isNaN(parseFloat(g))&&!isNaN(Number(g))}function s(g){return Array.isArray(g)?g:[g]}function b(g){return null==g?"":"string"==typeof g?g:`${g}px`}function T(g){return g instanceof i.ElementRef?g.nativeElement:g}},449:(je,_,l)=>{"use strict";l.d(_,{o2:()=>m,Ov:()=>S,yy:()=>b,eX:()=>T,k:()=>A,Z9:()=>u});var i=l(6758),d=l(5e3);class m{}function u(O){return O&&"function"==typeof O.connect}class b{applyChanges(w,k,U,me,$){w.forEachOperation((re,Te,fe)=>{let _e,le;if(null==re.previousIndex){const Ee=U(re,Te,fe);_e=k.createEmbeddedView(Ee.templateRef,Ee.context,Ee.index),le=1}else null==fe?(k.remove(Te),le=3):(_e=k.get(Te),k.move(_e,fe),le=2);$&&$({context:null==_e?void 0:_e.context,operation:le,record:re})})}detach(){}}class T{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(w,k,U,me,$){w.forEachOperation((re,Te,fe)=>{let _e,le;null==re.previousIndex?(_e=this._insertView(()=>U(re,Te,fe),fe,k,me(re)),le=_e?1:0):null==fe?(this._detachAndCacheView(Te,k),le=3):(_e=this._moveView(Te,fe,k,me(re)),le=2),$&&$({context:null==_e?void 0:_e.context,operation:le,record:re})})}detach(){for(const w of this._viewCache)w.destroy();this._viewCache=[]}_insertView(w,k,U,me){const $=this._insertViewFromCache(k,U);if($)return void($.context.$implicit=me);const re=w();return U.createEmbeddedView(re.templateRef,re.context,re.index)}_detachAndCacheView(w,k){const U=k.detach(w);this._maybeCacheView(U,k)}_moveView(w,k,U,me){const $=U.get(w);return U.move($,k),$.context.$implicit=me,$}_maybeCacheView(w,k){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(w);else{const U=k.indexOf(w);-1===U?w.destroy():k.remove(U)}}_insertViewFromCache(w,k){const U=this._viewCache.pop();return U&&k.insert(U,w),U||null}}class S{constructor(w=!1,k,U=!0){this._multiple=w,this._emitChanges=U,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new i.x,k&&k.length&&(w?k.forEach(me=>this._markSelected(me)):this._markSelected(k[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...w){this._verifyValueAssignment(w),w.forEach(k=>this._markSelected(k)),this._emitChangeEvent()}deselect(...w){this._verifyValueAssignment(w),w.forEach(k=>this._unmarkSelected(k)),this._emitChangeEvent()}toggle(w){this.isSelected(w)?this.deselect(w):this.select(w)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(w){return this._selection.has(w)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(w){this._multiple&&this.selected&&this._selected.sort(w)}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(w){this.isSelected(w)||(this._multiple||this._unmarkAll(),this._selection.add(w),this._emitChanges&&this._selectedToEmit.push(w))}_unmarkSelected(w){this.isSelected(w)&&(this._selection.delete(w),this._emitChanges&&this._deselectedToEmit.push(w))}_unmarkAll(){this.isEmpty()||this._selection.forEach(w=>this._unmarkSelected(w))}_verifyValueAssignment(w){}}const A=new d.InjectionToken("_ViewRepeater")},1159:(je,_,l)=>{"use strict";l.d(_,{A:()=>Dt,zL:()=>S,ZH:()=>d,jx:()=>T,yY:()=>Fe,JH:()=>fe,uR:()=>U,K5:()=>s,hY:()=>A,Sd:()=>me,oh:()=>$,b2:()=>ai,MW:()=>wt,aO:()=>ge,SV:()=>Te,JU:()=>b,L_:()=>O,Mf:()=>m,LH:()=>re,Z:()=>ft,xE:()=>Je,Vb:()=>xn});const d=8,m=9,s=13,b=16,T=17,S=18,A=27,O=32,U=35,me=36,$=37,re=38,Te=39,fe=40,Fe=46,Je=48,ge=57,Dt=65,ft=90,wt=91,ai=224;function xn(mn,...ni){return ni.length?ni.some(li=>mn[li]):mn.altKey||mn.shiftKey||mn.ctrlKey||mn.metaKey}},5113:(je,_,l)=>{"use strict";l.r(_),l.d(_,{BreakpointObserver:()=>fe,Breakpoints:()=>le,LayoutModule:()=>k,MediaMatcher:()=>$});var i=l(5e3),d=l(3191),m=l(6758),u=l(9841),s=l(1350),b=l(9751),T=l(5698),S=l(5684),g=l(8372),v=l(4004),A=l(8675),O=l(2722),w=l(925);let k=(()=>{class Ee{}return Ee.\u0275fac=function(Je){return new(Je||Ee)},Ee.\u0275mod=i.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=i.\u0275\u0275defineInjector({}),Ee})();const U=new Set;let me,$=(()=>{class Ee{constructor(Je){this._platform=Je,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Te}matchMedia(Je){return(this._platform.WEBKIT||this._platform.BLINK)&&function re(Ee){if(!U.has(Ee))try{me||(me=document.createElement("style"),me.setAttribute("type","text/css"),document.head.appendChild(me)),me.sheet&&(me.sheet.insertRule(`@media ${Ee} {body{ }}`,0),U.add(Ee))}catch(Fe){console.error(Fe)}}(Je),this._matchMedia(Je)}}return Ee.\u0275fac=function(Je){return new(Je||Ee)(i.\u0275\u0275inject(w.t4))},Ee.\u0275prov=i.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function Te(Ee){return{matches:"all"===Ee||""===Ee,media:Ee,addListener:()=>{},removeListener:()=>{}}}let fe=(()=>{class Ee{constructor(Je,ot){this._mediaMatcher=Je,this._zone=ot,this._queries=new Map,this._destroySubject=new m.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Je){return _e((0,d.Eq)(Je)).some(q=>this._registerQuery(q).mql.matches)}observe(Je){const q=_e((0,d.Eq)(Je)).map(X=>this._registerQuery(X).observable);let Ae=(0,u.a)(q);return Ae=(0,s.z)(Ae.pipe((0,T.q)(1)),Ae.pipe((0,S.T)(1),(0,g.b)(0))),Ae.pipe((0,v.U)(X=>{const ce={matches:!1,breakpoints:{}};return X.forEach(({matches:Se,query:ne})=>{ce.matches=ce.matches||Se,ce.breakpoints[ne]=Se}),ce}))}_registerQuery(Je){if(this._queries.has(Je))return this._queries.get(Je);const ot=this._mediaMatcher.matchMedia(Je),Ae={observable:new b.y(X=>{const ce=Se=>this._zone.run(()=>X.next(Se));return ot.addListener(ce),()=>{ot.removeListener(ce)}}).pipe((0,A.O)(ot),(0,v.U)(({matches:X})=>({query:Je,matches:X})),(0,O.R)(this._destroySubject)),mql:ot};return this._queries.set(Je,Ae),Ae}}return Ee.\u0275fac=function(Je){return new(Je||Ee)(i.\u0275\u0275inject($),i.\u0275\u0275inject(i.NgZone))},Ee.\u0275prov=i.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function _e(Ee){return Ee.map(Fe=>Fe.split(",")).reduce((Fe,Je)=>Fe.concat(Je)).map(Fe=>Fe.trim())}const le={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:(je,_,l)=>{"use strict";l.d(_,{wD:()=>S,Q8:()=>g});var i=l(3191),d=l(5e3),m=l(9751),u=l(6758),s=l(8372);let b=(()=>{class v{create(O){return"undefined"==typeof MutationObserver?null:new MutationObserver(O)}}return v.\u0275fac=function(O){return new(O||v)},v.\u0275prov=d.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"}),v})(),T=(()=>{class v{constructor(O){this._mutationObserverFactory=O,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((O,w)=>this._cleanupObserver(w))}observe(O){const w=(0,i.fI)(O);return new m.y(k=>{const me=this._observeElement(w).subscribe(k);return()=>{me.unsubscribe(),this._unobserveElement(w)}})}_observeElement(O){if(this._observedElements.has(O))this._observedElements.get(O).count++;else{const w=new u.x,k=this._mutationObserverFactory.create(U=>w.next(U));k&&k.observe(O,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(O,{observer:k,stream:w,count:1})}return this._observedElements.get(O).stream}_unobserveElement(O){this._observedElements.has(O)&&(this._observedElements.get(O).count--,this._observedElements.get(O).count||this._cleanupObserver(O))}_cleanupObserver(O){if(this._observedElements.has(O)){const{observer:w,stream:k}=this._observedElements.get(O);w&&w.disconnect(),k.complete(),this._observedElements.delete(O)}}}return v.\u0275fac=function(O){return new(O||v)(d.\u0275\u0275inject(b))},v.\u0275prov=d.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"}),v})(),S=(()=>{class v{constructor(O,w,k){this._contentObserver=O,this._elementRef=w,this._ngZone=k,this.event=new d.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(O){this._disabled=(0,i.Ig)(O),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(O){this._debounce=(0,i.su)(O),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const O=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?O.pipe((0,s.b)(this.debounce)):O).subscribe(this.event)})}_unsubscribe(){var O;null===(O=this._currentSubscription)||void 0===O||O.unsubscribe()}}return v.\u0275fac=function(O){return new(O||v)(d.\u0275\u0275directiveInject(T),d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(d.NgZone))},v.\u0275dir=d.\u0275\u0275defineDirective({type:v,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),v})(),g=(()=>{class v{}return v.\u0275fac=function(O){return new(O||v)},v.\u0275mod=d.\u0275\u0275defineNgModule({type:v}),v.\u0275inj=d.\u0275\u0275defineInjector({providers:[b]}),v})()},1314:(je,_,l)=>{"use strict";l.d(_,{aV:()=>pe,X_:()=>le,Xj:()=>X,U8:()=>Ot});var i=l(9071),d=l(9808),m=l(5e3),u=l(3191),s=l(925),b=l(226),T=l(7429),S=l(6758),g=l(6921),v=l(6451),A=l(5698),O=l(2722);const w=(0,s.Mq)();class k{constructor(N,ae){this._viewportRuler=N,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ae}attach(){}enable(){if(this._canBeEnabled()){const N=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=N.style.left||"",this._previousHTMLStyles.top=N.style.top||"",N.style.left=(0,u.HM)(-this._previousScrollPosition.left),N.style.top=(0,u.HM)(-this._previousScrollPosition.top),N.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const N=this._document.documentElement,Oe=N.style,ue=this._document.body.style,De=Oe.scrollBehavior||"",ve=ue.scrollBehavior||"";this._isEnabled=!1,Oe.left=this._previousHTMLStyles.left,Oe.top=this._previousHTMLStyles.top,N.classList.remove("cdk-global-scrollblock"),w&&(Oe.scrollBehavior=ue.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),w&&(Oe.scrollBehavior=De,ue.scrollBehavior=ve)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ae=this._document.body,Oe=this._viewportRuler.getViewportSize();return ae.scrollHeight>Oe.height||ae.scrollWidth>Oe.width}}class me{constructor(N,ae,Oe,ue){this._scrollDispatcher=N,this._ngZone=ae,this._viewportRuler=Oe,this._config=ue,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(N){this._overlayRef=N}enable(){if(this._scrollSubscription)return;const N=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=N.subscribe(()=>{const ae=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ae-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=N.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ${enable(){}disable(){}attach(){}}function re(Qe,N){return N.some(ae=>Qe.bottom<ae.top||Qe.top>ae.bottom||Qe.right<ae.left||Qe.left>ae.right)}function Te(Qe,N){return N.some(ae=>Qe.top<ae.top||Qe.bottom>ae.bottom||Qe.left<ae.left||Qe.right>ae.right)}class fe{constructor(N,ae,Oe,ue){this._scrollDispatcher=N,this._viewportRuler=ae,this._ngZone=Oe,this._config=ue,this._scrollSubscription=null}attach(N){this._overlayRef=N}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:Oe,height:ue}=this._viewportRuler.getViewportSize();re(ae,[{width:Oe,height:ue,bottom:ue,right:Oe,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let _e=(()=>{class Qe{constructor(ae,Oe,ue,De){this._scrollDispatcher=ae,this._viewportRuler=Oe,this._ngZone=ue,this.noop=()=>new $,this.close=ve=>new me(this._scrollDispatcher,this._ngZone,this._viewportRuler,ve),this.block=()=>new k(this._viewportRuler,this._document),this.reposition=ve=>new fe(this._scrollDispatcher,this._viewportRuler,this._ngZone,ve),this._document=De}}return Qe.\u0275fac=function(ae){return new(ae||Qe)(m.\u0275\u0275inject(i.mF),m.\u0275\u0275inject(i.rL),m.\u0275\u0275inject(m.NgZone),m.\u0275\u0275inject(d.DOCUMENT))},Qe.\u0275prov=m.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();class le{constructor(N){if(this.scrollStrategy=new $,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,N){const ae=Object.keys(N);for(const Oe of ae)void 0!==N[Oe]&&(this[Oe]=N[Oe])}}}class Je{constructor(N,ae){this.connectionPair=N,this.scrollableViewProperties=ae}}class Ae{constructor(N,ae,Oe,ue,De,ve,se,be,Ge){this._portalOutlet=N,this._host=ae,this._pane=Oe,this._config=ue,this._ngZone=De,this._keyboardDispatcher=ve,this._document=se,this._location=be,this._outsideClickDispatcher=Ge,this._backdropElement=null,this._backdropClick=new S.x,this._attachments=new S.x,this._detachments=new S.x,this._locationChanges=g.w0.EMPTY,this._backdropClickHandler=nt=>this._backdropClick.next(nt),this._keydownEvents=new S.x,this._outsidePointerEvents=new S.x,ue.scrollStrategy&&(this._scrollStrategy=ue.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ue.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(N){let ae=this._portalOutlet.attach(N);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),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 N=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),N}dispose(){var N;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===(N=this._host)||void 0===N||N.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(N){N!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=N,this.hasAttached()&&(N.attach(this),this.updatePosition()))}updateSize(N){this._config=Object.assign(Object.assign({},this._config),N),this._updateElementSize()}setDirection(N){this._config=Object.assign(Object.assign({},this._config),{direction:N}),this._updateElementDirection()}addPanelClass(N){this._pane&&this._toggleClasses(this._pane,N,!0)}removePanelClass(N){this._pane&&this._toggleClasses(this._pane,N,!1)}getDirection(){const N=this._config.direction;return N?"string"==typeof N?N:N.value:"ltr"}updateScrollStrategy(N){N!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=N,this.hasAttached()&&(N.attach(this),N.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const N=this._pane.style;N.width=(0,u.HM)(this._config.width),N.height=(0,u.HM)(this._config.height),N.minWidth=(0,u.HM)(this._config.minWidth),N.minHeight=(0,u.HM)(this._config.minHeight),N.maxWidth=(0,u.HM)(this._config.maxWidth),N.maxHeight=(0,u.HM)(this._config.maxHeight)}_togglePointerEvents(N){this._pane.style.pointerEvents=N?"":"none"}_attachBackdrop(){const N="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(N)})}):this._backdropElement.classList.add(N)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const N=this._backdropElement;if(!N)return;let ae;const Oe=()=>{N&&(N.removeEventListener("click",this._backdropClickHandler),N.removeEventListener("transitionend",Oe),this._disposeBackdrop(N)),this._config.backdropClass&&this._toggleClasses(N,this._config.backdropClass,!1),clearTimeout(ae)};N.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{N.addEventListener("transitionend",Oe)}),N.style.pointerEvents="none",ae=this._ngZone.runOutsideAngular(()=>setTimeout(Oe,500))}_toggleClasses(N,ae,Oe){const ue=(0,u.Eq)(ae||[]).filter(De=>!!De);ue.length&&(Oe?N.classList.add(...ue):N.classList.remove(...ue))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const N=this._ngZone.onStable.pipe((0,O.R)((0,v.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()),N.unsubscribe())})})}_disposeScrollStrategy(){const N=this._scrollStrategy;N&&(N.disable(),N.detach&&N.detach())}_disposeBackdrop(N){N&&(N.remove(),this._backdropElement===N&&(this._backdropElement=null))}}let X=(()=>{class Qe{constructor(ae,Oe){this._platform=Oe,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 ue=this._document.querySelectorAll(`.${ae}[platform="server"], .${ae}[platform="test"]`);for(let De=0;De<ue.length;De++)ue[De].remove()}const Oe=this._document.createElement("div");Oe.classList.add(ae),(0,s.Oy)()?Oe.setAttribute("platform","test"):this._platform.isBrowser||Oe.setAttribute("platform","server"),this._document.body.appendChild(Oe),this._containerElement=Oe}}return Qe.\u0275fac=function(ae){return new(ae||Qe)(m.\u0275\u0275inject(d.DOCUMENT),m.\u0275\u0275inject(s.t4))},Qe.\u0275prov=m.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();const ce="cdk-overlay-connected-position-bounding-box",Se=/([A-Za-z%]+)$/;class ne{constructor(N,ae,Oe,ue,De){this._viewportRuler=ae,this._document=Oe,this._platform=ue,this._overlayContainer=De,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 S.x,this._resizeSubscription=g.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(N)}get positions(){return this._preferredPositions}attach(N){this._validatePositions(),N.hostElement.classList.add(ce),this._overlayRef=N,this._boundingBox=N.hostElement,this._pane=N.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 N=this._originRect,ae=this._overlayRect,Oe=this._viewportRect,ue=this._containerRect,De=[];let ve;for(let se of this._preferredPositions){let be=this._getOriginPoint(N,ue,se),Ge=this._getOverlayPoint(be,ae,se),nt=this._getOverlayFit(Ge,ae,Oe,se);if(nt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(se,be);this._canFitWithFlexibleDimensions(nt,Ge,Oe)?De.push({position:se,origin:be,overlayRect:ae,boundingBoxRect:this._calculateBoundingBoxRect(be,se)}):(!ve||ve.overlayFit.visibleArea<nt.visibleArea)&&(ve={overlayFit:nt,overlayPoint:Ge,originPoint:be,position:se,overlayRect:ae})}if(De.length){let se=null,be=-1;for(const Ge of De){const nt=Ge.boundingBoxRect.width*Ge.boundingBoxRect.height*(Ge.position.weight||1);nt>be&&(be=nt,se=Ge)}return this._isPushed=!1,void this._applyPosition(se.position,se.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ve.position,ve.originPoint);this._applyPosition(ve.position,ve.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&$e(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ce),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const N=this._lastPosition||this._preferredPositions[0],ae=this._getOriginPoint(this._originRect,this._containerRect,N);this._applyPosition(N,ae)}}withScrollableContainers(N){return this._scrollables=N,this}withPositions(N){return this._preferredPositions=N,-1===N.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(N){return this._viewportMargin=N,this}withFlexibleDimensions(N=!0){return this._hasFlexibleDimensions=N,this}withGrowAfterOpen(N=!0){return this._growAfterOpen=N,this}withPush(N=!0){return this._canPush=N,this}withLockedPosition(N=!0){return this._positionLocked=N,this}setOrigin(N){return this._origin=N,this}withDefaultOffsetX(N){return this._offsetX=N,this}withDefaultOffsetY(N){return this._offsetY=N,this}withTransformOriginOn(N){return this._transformOriginSelector=N,this}_getOriginPoint(N,ae,Oe){let ue,De;if("center"==Oe.originX)ue=N.left+N.width/2;else{const ve=this._isRtl()?N.right:N.left,se=this._isRtl()?N.left:N.right;ue="start"==Oe.originX?ve:se}return ae.left<0&&(ue-=ae.left),De="center"==Oe.originY?N.top+N.height/2:"top"==Oe.originY?N.top:N.bottom,ae.top<0&&(De-=ae.top),{x:ue,y:De}}_getOverlayPoint(N,ae,Oe){let ue,De;return ue="center"==Oe.overlayX?-ae.width/2:"start"===Oe.overlayX?this._isRtl()?-ae.width:0:this._isRtl()?0:-ae.width,De="center"==Oe.overlayY?-ae.height/2:"top"==Oe.overlayY?0:-ae.height,{x:N.x+ue,y:N.y+De}}_getOverlayFit(N,ae,Oe,ue){const De=Ze(ae);let{x:ve,y:se}=N,be=this._getOffset(ue,"x"),Ge=this._getOffset(ue,"y");be&&(ve+=be),Ge&&(se+=Ge);let ft=0-se,wt=se+De.height-Oe.height,Ht=this._subtractOverflows(De.width,0-ve,ve+De.width-Oe.width),en=this._subtractOverflows(De.height,ft,wt),Bt=Ht*en;return{visibleArea:Bt,isCompletelyWithinViewport:De.width*De.height===Bt,fitsInViewportVertically:en===De.height,fitsInViewportHorizontally:Ht==De.width}}_canFitWithFlexibleDimensions(N,ae,Oe){if(this._hasFlexibleDimensions){const ue=Oe.bottom-ae.y,De=Oe.right-ae.x,ve=ge(this._overlayRef.getConfig().minHeight),se=ge(this._overlayRef.getConfig().minWidth),Ge=N.fitsInViewportHorizontally||null!=se&&se<=De;return(N.fitsInViewportVertically||null!=ve&&ve<=ue)&&Ge}return!1}_pushOverlayOnScreen(N,ae,Oe){if(this._previousPushAmount&&this._positionLocked)return{x:N.x+this._previousPushAmount.x,y:N.y+this._previousPushAmount.y};const ue=Ze(ae),De=this._viewportRect,ve=Math.max(N.x+ue.width-De.width,0),se=Math.max(N.y+ue.height-De.height,0),be=Math.max(De.top-Oe.top-N.y,0),Ge=Math.max(De.left-Oe.left-N.x,0);let nt=0,ht=0;return nt=ue.width<=De.width?Ge||-ve:N.x<this._viewportMargin?De.left-Oe.left-N.x:0,ht=ue.height<=De.height?be||-se:N.y<this._viewportMargin?De.top-Oe.top-N.y:0,this._previousPushAmount={x:nt,y:ht},{x:N.x+nt,y:N.y+ht}}_applyPosition(N,ae){if(this._setTransformOrigin(N),this._setOverlayElementStyles(ae,N),this._setBoundingBoxStyles(ae,N),N.panelClass&&this._addPanelClasses(N.panelClass),this._lastPosition=N,this._positionChanges.observers.length){const Oe=this._getScrollVisibility(),ue=new Je(N,Oe);this._positionChanges.next(ue)}this._isInitialRender=!1}_setTransformOrigin(N){if(!this._transformOriginSelector)return;const ae=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Oe,ue=N.overlayY;Oe="center"===N.overlayX?"center":this._isRtl()?"start"===N.overlayX?"right":"left":"start"===N.overlayX?"left":"right";for(let De=0;De<ae.length;De++)ae[De].style.transformOrigin=`${Oe} ${ue}`}_calculateBoundingBoxRect(N,ae){const Oe=this._viewportRect,ue=this._isRtl();let De,ve,se,nt,ht,ft;if("top"===ae.overlayY)ve=N.y,De=Oe.height-ve+this._viewportMargin;else if("bottom"===ae.overlayY)se=Oe.height-N.y+2*this._viewportMargin,De=Oe.height-se+this._viewportMargin;else{const wt=Math.min(Oe.bottom-N.y+Oe.top,N.y),Ht=this._lastBoundingBoxSize.height;De=2*wt,ve=N.y-wt,De>Ht&&!this._isInitialRender&&!this._growAfterOpen&&(ve=N.y-Ht/2)}if("end"===ae.overlayX&&!ue||"start"===ae.overlayX&&ue)ft=Oe.width-N.x+this._viewportMargin,nt=N.x-this._viewportMargin;else if("start"===ae.overlayX&&!ue||"end"===ae.overlayX&&ue)ht=N.x,nt=Oe.right-N.x;else{const wt=Math.min(Oe.right-N.x+Oe.left,N.x),Ht=this._lastBoundingBoxSize.width;nt=2*wt,ht=N.x-wt,nt>Ht&&!this._isInitialRender&&!this._growAfterOpen&&(ht=N.x-Ht/2)}return{top:ve,left:ht,bottom:se,right:ft,width:nt,height:De}}_setBoundingBoxStyles(N,ae){const Oe=this._calculateBoundingBoxRect(N,ae);!this._isInitialRender&&!this._growAfterOpen&&(Oe.height=Math.min(Oe.height,this._lastBoundingBoxSize.height),Oe.width=Math.min(Oe.width,this._lastBoundingBoxSize.width));const ue={};if(this._hasExactPosition())ue.top=ue.left="0",ue.bottom=ue.right=ue.maxHeight=ue.maxWidth="",ue.width=ue.height="100%";else{const De=this._overlayRef.getConfig().maxHeight,ve=this._overlayRef.getConfig().maxWidth;ue.height=(0,u.HM)(Oe.height),ue.top=(0,u.HM)(Oe.top),ue.bottom=(0,u.HM)(Oe.bottom),ue.width=(0,u.HM)(Oe.width),ue.left=(0,u.HM)(Oe.left),ue.right=(0,u.HM)(Oe.right),ue.alignItems="center"===ae.overlayX?"center":"end"===ae.overlayX?"flex-end":"flex-start",ue.justifyContent="center"===ae.overlayY?"center":"bottom"===ae.overlayY?"flex-end":"flex-start",De&&(ue.maxHeight=(0,u.HM)(De)),ve&&(ue.maxWidth=(0,u.HM)(ve))}this._lastBoundingBoxSize=Oe,$e(this._boundingBox.style,ue)}_resetBoundingBoxStyles(){$e(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){$e(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(N,ae){const Oe={},ue=this._hasExactPosition(),De=this._hasFlexibleDimensions,ve=this._overlayRef.getConfig();if(ue){const nt=this._viewportRuler.getViewportScrollPosition();$e(Oe,this._getExactOverlayY(ae,N,nt)),$e(Oe,this._getExactOverlayX(ae,N,nt))}else Oe.position="static";let se="",be=this._getOffset(ae,"x"),Ge=this._getOffset(ae,"y");be&&(se+=`translateX(${be}px) `),Ge&&(se+=`translateY(${Ge}px)`),Oe.transform=se.trim(),ve.maxHeight&&(ue?Oe.maxHeight=(0,u.HM)(ve.maxHeight):De&&(Oe.maxHeight="")),ve.maxWidth&&(ue?Oe.maxWidth=(0,u.HM)(ve.maxWidth):De&&(Oe.maxWidth="")),$e(this._pane.style,Oe)}_getExactOverlayY(N,ae,Oe){let ue={top:"",bottom:""},De=this._getOverlayPoint(ae,this._overlayRect,N);return this._isPushed&&(De=this._pushOverlayOnScreen(De,this._overlayRect,Oe)),"bottom"===N.overlayY?ue.bottom=this._document.documentElement.clientHeight-(De.y+this._overlayRect.height)+"px":ue.top=(0,u.HM)(De.y),ue}_getExactOverlayX(N,ae,Oe){let ve,ue={left:"",right:""},De=this._getOverlayPoint(ae,this._overlayRect,N);return this._isPushed&&(De=this._pushOverlayOnScreen(De,this._overlayRect,Oe)),ve=this._isRtl()?"end"===N.overlayX?"left":"right":"end"===N.overlayX?"right":"left","right"===ve?ue.right=this._document.documentElement.clientWidth-(De.x+this._overlayRect.width)+"px":ue.left=(0,u.HM)(De.x),ue}_getScrollVisibility(){const N=this._getOriginRect(),ae=this._pane.getBoundingClientRect(),Oe=this._scrollables.map(ue=>ue.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Te(N,Oe),isOriginOutsideView:re(N,Oe),isOverlayClipped:Te(ae,Oe),isOverlayOutsideView:re(ae,Oe)}}_subtractOverflows(N,...ae){return ae.reduce((Oe,ue)=>Oe-Math.max(ue,0),N)}_getNarrowedViewportRect(){const N=this._document.documentElement.clientWidth,ae=this._document.documentElement.clientHeight,Oe=this._viewportRuler.getViewportScrollPosition();return{top:Oe.top+this._viewportMargin,left:Oe.left+this._viewportMargin,right:Oe.left+N-this._viewportMargin,bottom:Oe.top+ae-this._viewportMargin,width:N-2*this._viewportMargin,height:ae-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(N,ae){return"x"===ae?null==N.offsetX?this._offsetX:N.offsetX:null==N.offsetY?this._offsetY:N.offsetY}_validatePositions(){}_addPanelClasses(N){this._pane&&(0,u.Eq)(N).forEach(ae=>{""!==ae&&-1===this._appliedPanelClasses.indexOf(ae)&&(this._appliedPanelClasses.push(ae),this._pane.classList.add(ae))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(N=>{this._pane.classList.remove(N)}),this._appliedPanelClasses=[])}_getOriginRect(){const N=this._origin;if(N instanceof m.ElementRef)return N.nativeElement.getBoundingClientRect();if(N instanceof Element)return N.getBoundingClientRect();const ae=N.width||0,Oe=N.height||0;return{top:N.y,bottom:N.y+Oe,left:N.x,right:N.x+ae,height:Oe,width:ae}}}function $e(Qe,N){for(let ae in N)N.hasOwnProperty(ae)&&(Qe[ae]=N[ae]);return Qe}function ge(Qe){if("number"!=typeof Qe&&null!=Qe){const[N,ae]=Qe.split(Se);return ae&&"px"!==ae?null:parseFloat(N)}return Qe||null}function Ze(Qe){return{top:Math.floor(Qe.top),right:Math.floor(Qe.right),bottom:Math.floor(Qe.bottom),left:Math.floor(Qe.left),width:Math.floor(Qe.width),height:Math.floor(Qe.height)}}const Me="cdk-global-overlay-wrapper";class Ke{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(N){const ae=N.getConfig();this._overlayRef=N,this._width&&!ae.width&&N.updateSize({width:this._width}),this._height&&!ae.height&&N.updateSize({height:this._height}),N.hostElement.classList.add(Me),this._isDisposed=!1}top(N=""){return this._bottomOffset="",this._topOffset=N,this._alignItems="flex-start",this}left(N=""){return this._rightOffset="",this._leftOffset=N,this._justifyContent="flex-start",this}bottom(N=""){return this._topOffset="",this._bottomOffset=N,this._alignItems="flex-end",this}right(N=""){return this._leftOffset="",this._rightOffset=N,this._justifyContent="flex-end",this}width(N=""){return this._overlayRef?this._overlayRef.updateSize({width:N}):this._width=N,this}height(N=""){return this._overlayRef?this._overlayRef.updateSize({height:N}):this._height=N,this}centerHorizontally(N=""){return this.left(N),this._justifyContent="center",this}centerVertically(N=""){return this.top(N),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const N=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement.style,Oe=this._overlayRef.getConfig(),{width:ue,height:De,maxWidth:ve,maxHeight:se}=Oe,be=!("100%"!==ue&&"100vw"!==ue||ve&&"100%"!==ve&&"100vw"!==ve),Ge=!("100%"!==De&&"100vh"!==De||se&&"100%"!==se&&"100vh"!==se);N.position=this._cssPosition,N.marginLeft=be?"0":this._leftOffset,N.marginTop=Ge?"0":this._topOffset,N.marginBottom=this._bottomOffset,N.marginRight=this._rightOffset,be?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=Ge?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const N=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement,Oe=ae.style;ae.classList.remove(Me),Oe.justifyContent=Oe.alignItems=N.marginTop=N.marginBottom=N.marginLeft=N.marginRight=N.position="",this._overlayRef=null,this._isDisposed=!0}}let mt=(()=>{class Qe{constructor(ae,Oe,ue,De){this._viewportRuler=ae,this._document=Oe,this._platform=ue,this._overlayContainer=De}global(){return new Ke}flexibleConnectedTo(ae){return new ne(ae,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Qe.\u0275fac=function(ae){return new(ae||Qe)(m.\u0275\u0275inject(i.rL),m.\u0275\u0275inject(d.DOCUMENT),m.\u0275\u0275inject(s.t4),m.\u0275\u0275inject(X))},Qe.\u0275prov=m.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),Dt=(()=>{class Qe{constructor(ae){this._attachedOverlays=[],this._document=ae}ngOnDestroy(){this.detach()}add(ae){this.remove(ae),this._attachedOverlays.push(ae)}remove(ae){const Oe=this._attachedOverlays.indexOf(ae);Oe>-1&&this._attachedOverlays.splice(Oe,1),0===this._attachedOverlays.length&&this.detach()}}return Qe.\u0275fac=function(ae){return new(ae||Qe)(m.\u0275\u0275inject(d.DOCUMENT))},Qe.\u0275prov=m.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),ke=(()=>{class Qe extends Dt{constructor(ae){super(ae),this._keydownListener=Oe=>{const ue=this._attachedOverlays;for(let De=ue.length-1;De>-1;De--)if(ue[De]._keydownEvents.observers.length>0){ue[De]._keydownEvents.next(Oe);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 Qe.\u0275fac=function(ae){return new(ae||Qe)(m.\u0275\u0275inject(d.DOCUMENT))},Qe.\u0275prov=m.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),Ye=(()=>{class Qe extends Dt{constructor(ae,Oe){super(ae),this._platform=Oe,this._cursorStyleIsSet=!1,this._pointerDownListener=ue=>{this._pointerDownEventTarget=(0,s.sA)(ue)},this._clickListener=ue=>{const De=(0,s.sA)(ue),ve="click"===ue.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:De;this._pointerDownEventTarget=null;const se=this._attachedOverlays.slice();for(let be=se.length-1;be>-1;be--){const Ge=se[be];if(!(Ge._outsidePointerEvents.observers.length<1)&&Ge.hasAttached()){if(Ge.overlayElement.contains(De)||Ge.overlayElement.contains(ve))break;Ge._outsidePointerEvents.next(ue)}}}}add(ae){if(super.add(ae),!this._isAttached){const Oe=this._document.body;Oe.addEventListener("pointerdown",this._pointerDownListener,!0),Oe.addEventListener("click",this._clickListener,!0),Oe.addEventListener("auxclick",this._clickListener,!0),Oe.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Oe.style.cursor,Oe.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const 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 Qe.\u0275fac=function(ae){return new(ae||Qe)(m.\u0275\u0275inject(d.DOCUMENT),m.\u0275\u0275inject(s.t4))},Qe.\u0275prov=m.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),Z=0,pe=(()=>{class Qe{constructor(ae,Oe,ue,De,ve,se,be,Ge,nt,ht,ft){this.scrollStrategies=ae,this._overlayContainer=Oe,this._componentFactoryResolver=ue,this._positionBuilder=De,this._keyboardDispatcher=ve,this._injector=se,this._ngZone=be,this._document=Ge,this._directionality=nt,this._location=ht,this._outsideClickDispatcher=ft}create(ae){const Oe=this._createHostElement(),ue=this._createPaneElement(Oe),De=this._createPortalOutlet(ue),ve=new le(ae);return ve.direction=ve.direction||this._directionality.value,new Ae(De,Oe,ue,ve,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(ae){const Oe=this._document.createElement("div");return Oe.id="cdk-overlay-"+Z++,Oe.classList.add("cdk-overlay-pane"),ae.appendChild(Oe),Oe}_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 T.u0(ae,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Qe.\u0275fac=function(ae){return new(ae||Qe)(m.\u0275\u0275inject(_e),m.\u0275\u0275inject(X),m.\u0275\u0275inject(m.ComponentFactoryResolver),m.\u0275\u0275inject(mt),m.\u0275\u0275inject(ke),m.\u0275\u0275inject(m.Injector),m.\u0275\u0275inject(m.NgZone),m.\u0275\u0275inject(d.DOCUMENT),m.\u0275\u0275inject(b.Is),m.\u0275\u0275inject(d.Location),m.\u0275\u0275inject(Ye))},Qe.\u0275prov=m.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac}),Qe})();const bt={provide:new m.InjectionToken("cdk-connected-overlay-scroll-strategy"),deps:[pe],useFactory:function dt(Qe){return()=>Qe.scrollStrategies.reposition()}};let Ot=(()=>{class Qe{}return Qe.\u0275fac=function(ae){return new(ae||Qe)},Qe.\u0275mod=m.\u0275\u0275defineNgModule({type:Qe}),Qe.\u0275inj=m.\u0275\u0275defineInjector({providers:[pe,bt],imports:[[b.vT,T.eL,i.Cl],i.Cl]}),Qe})()},925:(je,_,l)=>{"use strict";l.d(_,{t4:()=>u,ud:()=>s,sA:()=>fe,ht:()=>Te,kV:()=>re,Oy:()=>_e,i$:()=>A,Mq:()=>k});var i=l(5e3),d=l(9808);let m;try{m="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(le){m=!1}let g,w,me,u=(()=>{class le{constructor(Fe){this._platformId=Fe,this.isBrowser=this._platformId?(0,d.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 le.\u0275fac=function(Fe){return new(Fe||le)(i.\u0275\u0275inject(i.PLATFORM_ID))},le.\u0275prov=i.\u0275\u0275defineInjectable({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),s=(()=>{class le{}return le.\u0275fac=function(Fe){return new(Fe||le)},le.\u0275mod=i.\u0275\u0275defineNgModule({type:le}),le.\u0275inj=i.\u0275\u0275defineInjector({}),le})();function A(le){return function v(){if(null==g&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>g=!0}))}finally{g=g||!1}return g}()?le:!!le.capture}function k(){if(null==w){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return w=!1,w;if("scrollBehavior"in document.documentElement.style)w=!0;else{const le=Element.prototype.scrollTo;w=!!le&&!/\{\s*\[native code\]\s*\}/.test(le.toString())}}return w}function re(le){if(function $(){if(null==me){const le="undefined"!=typeof document?document.head:null;me=!(!le||!le.createShadowRoot&&!le.attachShadow)}return me}()){const Ee=le.getRootNode?le.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Ee instanceof ShadowRoot)return Ee}return null}function Te(){let le="undefined"!=typeof document&&document?document.activeElement:null;for(;le&&le.shadowRoot;){const Ee=le.shadowRoot.activeElement;if(Ee===le)break;le=Ee}return le}function fe(le){return le.composedPath?le.composedPath()[0]:le.target}function _e(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(je,_,l)=>{"use strict";l.d(_,{en:()=>w,ig:()=>$,Pl:()=>Te,C5:()=>v,u0:()=>U,eL:()=>_e,UE:()=>A});var i=l(5e3),d=l(9808);class g{attach(Fe){return this._attachedHost=Fe,Fe.attach(this)}detach(){let Fe=this._attachedHost;null!=Fe&&(this._attachedHost=null,Fe.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Fe){this._attachedHost=Fe}}class v extends g{constructor(Fe,Je,ot,q){super(),this.component=Fe,this.viewContainerRef=Je,this.injector=ot,this.componentFactoryResolver=q}}class A extends g{constructor(Fe,Je,ot){super(),this.templateRef=Fe,this.viewContainerRef=Je,this.context=ot}get origin(){return this.templateRef.elementRef}attach(Fe,Je=this.context){return this.context=Je,super.attach(Fe)}detach(){return this.context=void 0,super.detach()}}class O extends g{constructor(Fe){super(),this.element=Fe instanceof i.ElementRef?Fe.nativeElement:Fe}}class w{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Fe){return Fe instanceof v?(this._attachedPortal=Fe,this.attachComponentPortal(Fe)):Fe instanceof A?(this._attachedPortal=Fe,this.attachTemplatePortal(Fe)):this.attachDomPortal&&Fe instanceof O?(this._attachedPortal=Fe,this.attachDomPortal(Fe)):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(Fe){this._disposeFn=Fe}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class U extends w{constructor(Fe,Je,ot,q,Ae){super(),this.outletElement=Fe,this._componentFactoryResolver=Je,this._appRef=ot,this._defaultInjector=q,this.attachDomPortal=X=>{const ce=X.element,Se=this._document.createComment("dom-portal");ce.parentNode.insertBefore(Se,ce),this.outletElement.appendChild(ce),this._attachedPortal=X,super.setDisposeFn(()=>{Se.parentNode&&Se.parentNode.replaceChild(ce,Se)})},this._document=Ae}attachComponentPortal(Fe){const ot=(Fe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Fe.component);let q;return Fe.viewContainerRef?(q=Fe.viewContainerRef.createComponent(ot,Fe.viewContainerRef.length,Fe.injector||Fe.viewContainerRef.injector),this.setDisposeFn(()=>q.destroy())):(q=ot.create(Fe.injector||this._defaultInjector),this._appRef.attachView(q.hostView),this.setDisposeFn(()=>{this._appRef.detachView(q.hostView),q.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(q)),this._attachedPortal=Fe,q}attachTemplatePortal(Fe){let Je=Fe.viewContainerRef,ot=Je.createEmbeddedView(Fe.templateRef,Fe.context);return ot.rootNodes.forEach(q=>this.outletElement.appendChild(q)),ot.detectChanges(),this.setDisposeFn(()=>{let q=Je.indexOf(ot);-1!==q&&Je.remove(q)}),this._attachedPortal=Fe,ot}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Fe){return Fe.hostView.rootNodes[0]}}let $=(()=>{class Ee extends A{constructor(Je,ot){super(Je,ot)}}return Ee.\u0275fac=function(Je){return new(Je||Ee)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef))},Ee.\u0275dir=i.\u0275\u0275defineDirective({type:Ee,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.\u0275\u0275InheritDefinitionFeature]}),Ee})(),Te=(()=>{class Ee extends w{constructor(Je,ot,q){super(),this._componentFactoryResolver=Je,this._viewContainerRef=ot,this._isInitialized=!1,this.attached=new i.EventEmitter,this.attachDomPortal=Ae=>{const X=Ae.element,ce=this._document.createComment("dom-portal");Ae.setAttachedHost(this),X.parentNode.insertBefore(ce,X),this._getRootNode().appendChild(X),this._attachedPortal=Ae,super.setDisposeFn(()=>{ce.parentNode&&ce.parentNode.replaceChild(X,ce)})},this._document=q}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 ot=null!=Je.viewContainerRef?Je.viewContainerRef:this._viewContainerRef,Ae=(Je.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Je.component),X=ot.createComponent(Ae,ot.length,Je.injector||ot.injector);return ot!==this._viewContainerRef&&this._getRootNode().appendChild(X.hostView.rootNodes[0]),super.setDisposeFn(()=>X.destroy()),this._attachedPortal=Je,this._attachedRef=X,this.attached.emit(X),X}attachTemplatePortal(Je){Je.setAttachedHost(this);const ot=this._viewContainerRef.createEmbeddedView(Je.templateRef,Je.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Je,this._attachedRef=ot,this.attached.emit(ot),ot}_getRootNode(){const Je=this._viewContainerRef.element.nativeElement;return Je.nodeType===Je.ELEMENT_NODE?Je:Je.parentNode}}return Ee.\u0275fac=function(Je){return new(Je||Ee)(i.\u0275\u0275directiveInject(i.ComponentFactoryResolver),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(d.DOCUMENT))},Ee.\u0275dir=i.\u0275\u0275defineDirective({type:Ee,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.\u0275\u0275InheritDefinitionFeature]}),Ee})(),_e=(()=>{class Ee{}return Ee.\u0275fac=function(Je){return new(Je||Ee)},Ee.\u0275mod=i.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=i.\u0275\u0275defineInjector({}),Ee})()},9071:(je,_,l)=>{"use strict";l.d(_,{ZD:()=>ce,mF:()=>_e,Cl:()=>Se,rL:()=>Fe});var i=l(3191),d=l(5e3),m=l(6758),u=l(9646),s=l(9751),b=l(4968),g=(l(29),l(3101),l(453)),v=l(9300),A=l(9808),O=l(925),w=l(226);let _e=(()=>{class ne{constructor(ge,Ze,Me){this._ngZone=ge,this._platform=Ze,this._scrolled=new m.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Me}register(ge){this.scrollContainers.has(ge)||this.scrollContainers.set(ge,ge.elementScrolled().subscribe(()=>this._scrolled.next(ge)))}deregister(ge){const Ze=this.scrollContainers.get(ge);Ze&&(Ze.unsubscribe(),this.scrollContainers.delete(ge))}scrolled(ge=20){return this._platform.isBrowser?new s.y(Ze=>{this._globalSubscription||this._addGlobalListener();const Me=ge>0?this._scrolled.pipe((0,g.e)(ge)).subscribe(Ze):this._scrolled.subscribe(Ze);return this._scrolledCount++,()=>{Me.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,u.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ge,Ze)=>this.deregister(Ze)),this._scrolled.complete()}ancestorScrolled(ge,Ze){const Me=this.getAncestorScrollContainers(ge);return this.scrolled(Ze).pipe((0,v.h)(Ke=>!Ke||Me.indexOf(Ke)>-1))}getAncestorScrollContainers(ge){const Ze=[];return this.scrollContainers.forEach((Me,Ke)=>{this._scrollableContainsElement(Ke,ge)&&Ze.push(Ke)}),Ze}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ge,Ze){let Me=(0,i.fI)(Ze),Ke=ge.getElementRef().nativeElement;do{if(Me==Ke)return!0}while(Me=Me.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ge=this._getWindow();return(0,b.R)(ge.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ne.\u0275fac=function(ge){return new(ge||ne)(d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(O.t4),d.\u0275\u0275inject(A.DOCUMENT,8))},ne.\u0275prov=d.\u0275\u0275defineInjectable({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),Fe=(()=>{class ne{constructor(ge,Ze,Me){this._platform=ge,this._change=new m.x,this._changeListener=Ke=>{this._change.next(Ke)},this._document=Me,Ze.runOutsideAngular(()=>{if(ge.isBrowser){const Ke=this._getWindow();Ke.addEventListener("resize",this._changeListener),Ke.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ge=this._getWindow();ge.removeEventListener("resize",this._changeListener),ge.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ge={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ge}getViewportRect(){const ge=this.getViewportScrollPosition(),{width:Ze,height:Me}=this.getViewportSize();return{top:ge.top,left:ge.left,bottom:ge.top+Me,right:ge.left+Ze,height:Me,width:Ze}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ge=this._document,Ze=this._getWindow(),Me=ge.documentElement,Ke=Me.getBoundingClientRect();return{top:-Ke.top||ge.body.scrollTop||Ze.scrollY||Me.scrollTop||0,left:-Ke.left||ge.body.scrollLeft||Ze.scrollX||Me.scrollLeft||0}}change(ge=20){return ge>0?this._change.pipe((0,g.e)(ge)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ge=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ge.innerWidth,height:ge.innerHeight}:{width:0,height:0}}}return ne.\u0275fac=function(ge){return new(ge||ne)(d.\u0275\u0275inject(O.t4),d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(A.DOCUMENT,8))},ne.\u0275prov=d.\u0275\u0275defineInjectable({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),ce=(()=>{class ne{}return ne.\u0275fac=function(ge){return new(ge||ne)},ne.\u0275mod=d.\u0275\u0275defineNgModule({type:ne}),ne.\u0275inj=d.\u0275\u0275defineInjector({}),ne})(),Se=(()=>{class ne{}return ne.\u0275fac=function(ge){return new(ge||ne)},ne.\u0275mod=d.\u0275\u0275defineNgModule({type:ne}),ne.\u0275inj=d.\u0275\u0275defineInjector({imports:[[w.vT,O.ud,ce],w.vT,ce]}),ne})()},9808:(je,_,l)=>{"use strict";l.r(_),l.d(_,{APP_BASE_HREF:()=>Te,AsyncPipe:()=>zi,CommonModule:()=>rr,CurrencyPipe:()=>Ai,DATE_PIPE_DEFAULT_TIMEZONE:()=>gr,DOCUMENT:()=>T,DatePipe:()=>Di,DecimalPipe:()=>_r,FormStyle:()=>X,FormatWidth:()=>Se,HashLocationStrategy:()=>_e,I18nPluralPipe:()=>Pr,I18nSelectPipe:()=>Ki,JsonPipe:()=>Si,KeyValuePipe:()=>Or,LOCATION_INITIALIZED:()=>v,Location:()=>le,LocationStrategy:()=>$,LowerCasePipe:()=>Ir,NgClass:()=>ln,NgComponentOutlet:()=>Hn,NgForOf:()=>Sn,NgForOfContext:()=>Un,NgIf:()=>xn,NgIfContext:()=>mn,NgLocaleLocalization:()=>vn,NgLocalization:()=>Nt,NgPlural:()=>hi,NgPluralCase:()=>zn,NgStyle:()=>Sr,NgSwitch:()=>Kn,NgSwitchCase:()=>Gn,NgSwitchDefault:()=>Ci,NgTemplateOutlet:()=>nr,NumberFormatStyle:()=>q,NumberSymbol:()=>ne,PathLocationStrategy:()=>fe,PercentPipe:()=>fi,PlatformLocation:()=>S,Plural:()=>Ae,SlicePipe:()=>mi,TitleCasePipe:()=>Wi,TranslationWidth:()=>ce,UpperCasePipe:()=>ci,VERSION:()=>Yi,ViewportScroller:()=>ki,WeekDay:()=>$e,XhrFactory:()=>Ln,formatCurrency:()=>Bn,formatDate:()=>Ht,formatNumber:()=>Ie,formatPercent:()=>V,getCurrencySymbol:()=>De,getLocaleCurrencyCode:()=>dt,getLocaleCurrencyName:()=>Xe,getLocaleCurrencySymbol:()=>ye,getLocaleDateFormat:()=>Ye,getLocaleDateTimeFormat:()=>pe,getLocaleDayNames:()=>Me,getLocaleDayPeriods:()=>Ze,getLocaleDirection:()=>ae,getLocaleEraNames:()=>mt,getLocaleExtraDayPeriodRules:()=>Qe,getLocaleExtraDayPeriods:()=>N,getLocaleFirstDayOfWeek:()=>Dt,getLocaleId:()=>ge,getLocaleMonthNames:()=>Ke,getLocaleNumberFormat:()=>Re,getLocaleNumberSymbol:()=>we,getLocalePluralCase:()=>Ot,getLocaleTimeFormat:()=>Z,getLocaleWeekEndRange:()=>ke,getNumberOfCurrencyDigits:()=>se,isPlatformBrowser:()=>ti,isPlatformServer:()=>Ri,isPlatformWorkerApp:()=>or,isPlatformWorkerUi:()=>Fi,registerLocaleData:()=>jt,\u0275BrowserPlatformLocation:()=>A,\u0275DomAdapter:()=>b,\u0275NullViewportScroller:()=>ar,\u0275PLATFORM_BROWSER_ID:()=>Pi,\u0275PLATFORM_SERVER_ID:()=>Oi,\u0275PLATFORM_WORKER_APP_ID:()=>xi,\u0275PLATFORM_WORKER_UI_ID:()=>Zi,\u0275getDOM:()=>m,\u0275parseCookieValue:()=>On,\u0275setRootDomAdapter:()=>s});var i=l(5e3);let d=null;function m(){return d}function s(x){d||(d=x)}class b{}const T=new i.InjectionToken("DocumentToken");let S=(()=>{class x{historyGo(R){throw new Error("Not implemented")}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:function(){return function g(){return(0,i.\u0275\u0275inject)(A)}()},providedIn:"platform"}),x})();const v=new i.InjectionToken("Location Initialized");let A=(()=>{class x extends S{constructor(R){super(),this._doc=R,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return m().getBaseHref(this._doc)}onPopState(R){const ie=m().getGlobalEventTarget(this._doc,"window");return ie.addEventListener("popstate",R,!1),()=>ie.removeEventListener("popstate",R)}onHashChange(R){const ie=m().getGlobalEventTarget(this._doc,"window");return ie.addEventListener("hashchange",R,!1),()=>ie.removeEventListener("hashchange",R)}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(R){this.location.pathname=R}pushState(R,ie,We){O()?this._history.pushState(R,ie,We):this.location.hash=We}replaceState(R,ie,We){O()?this._history.replaceState(R,ie,We):this.location.hash=We}forward(){this._history.forward()}back(){this._history.back()}historyGo(R=0){this._history.go(R)}getState(){return this._history.state}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275inject(T))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:function(){return function w(){return new A((0,i.\u0275\u0275inject)(T))}()},providedIn:"platform"}),x})();function O(){return!!window.history.pushState}function k(x,Q){if(0==x.length)return Q;if(0==Q.length)return x;let R=0;return x.endsWith("/")&&R++,Q.startsWith("/")&&R++,2==R?x+Q.substring(1):1==R?x+Q:x+"/"+Q}function U(x){const Q=x.match(/#|\?|$/),R=Q&&Q.index||x.length;return x.slice(0,R-("/"===x[R-1]?1:0))+x.slice(R)}function me(x){return x&&"?"!==x[0]?"?"+x:x}let $=(()=>{class x{historyGo(R){throw new Error("Not implemented")}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:function(){return function re(x){const Q=(0,i.\u0275\u0275inject)(T).location;return new fe((0,i.\u0275\u0275inject)(S),Q&&Q.origin||"")}()},providedIn:"root"}),x})();const Te=new i.InjectionToken("appBaseHref");let fe=(()=>{class x extends ${constructor(R,ie){if(super(),this._platformLocation=R,this._removeListenerFns=[],null==ie&&(ie=this._platformLocation.getBaseHrefFromDOM()),null==ie)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=ie}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(R){this._removeListenerFns.push(this._platformLocation.onPopState(R),this._platformLocation.onHashChange(R))}getBaseHref(){return this._baseHref}prepareExternalUrl(R){return k(this._baseHref,R)}path(R=!1){const ie=this._platformLocation.pathname+me(this._platformLocation.search),We=this._platformLocation.hash;return We&&R?`${ie}${We}`:ie}pushState(R,ie,We,ct){const vt=this.prepareExternalUrl(We+me(ct));this._platformLocation.pushState(R,ie,vt)}replaceState(R,ie,We,ct){const vt=this.prepareExternalUrl(We+me(ct));this._platformLocation.replaceState(R,ie,vt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(R=0){var ie,We;null===(We=(ie=this._platformLocation).historyGo)||void 0===We||We.call(ie,R)}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275inject(S),i.\u0275\u0275inject(Te,8))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),_e=(()=>{class x extends ${constructor(R,ie){super(),this._platformLocation=R,this._baseHref="",this._removeListenerFns=[],null!=ie&&(this._baseHref=ie)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(R){this._removeListenerFns.push(this._platformLocation.onPopState(R),this._platformLocation.onHashChange(R))}getBaseHref(){return this._baseHref}path(R=!1){let ie=this._platformLocation.hash;return null==ie&&(ie="#"),ie.length>0?ie.substring(1):ie}prepareExternalUrl(R){const ie=k(this._baseHref,R);return ie.length>0?"#"+ie:ie}pushState(R,ie,We,ct){let vt=this.prepareExternalUrl(We+me(ct));0==vt.length&&(vt=this._platformLocation.pathname),this._platformLocation.pushState(R,ie,vt)}replaceState(R,ie,We,ct){let vt=this.prepareExternalUrl(We+me(ct));0==vt.length&&(vt=this._platformLocation.pathname),this._platformLocation.replaceState(R,ie,vt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(R=0){var ie,We;null===(We=(ie=this._platformLocation).historyGo)||void 0===We||We.call(ie,R)}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275inject(S),i.\u0275\u0275inject(Te,8))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),le=(()=>{class x{constructor(R,ie){this._subject=new i.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=R;const We=this._platformStrategy.getBaseHref();this._platformLocation=ie,this._baseHref=U(Je(We)),this._platformStrategy.onPopState(ct=>{this._subject.emit({url:this.path(!0),pop:!0,state:ct.state,type:ct.type})})}path(R=!1){return this.normalize(this._platformStrategy.path(R))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(R,ie=""){return this.path()==this.normalize(R+me(ie))}normalize(R){return x.stripTrailingSlash(function Fe(x,Q){return x&&Q.startsWith(x)?Q.substring(x.length):Q}(this._baseHref,Je(R)))}prepareExternalUrl(R){return R&&"/"!==R[0]&&(R="/"+R),this._platformStrategy.prepareExternalUrl(R)}go(R,ie="",We=null){this._platformStrategy.pushState(We,"",R,ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(R+me(ie)),We)}replaceState(R,ie="",We=null){this._platformStrategy.replaceState(We,"",R,ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(R+me(ie)),We)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(R=0){var ie,We;null===(We=(ie=this._platformStrategy).historyGo)||void 0===We||We.call(ie,R)}onUrlChange(R){this._urlChangeListeners.push(R),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ie=>{this._notifyUrlChangeListeners(ie.url,ie.state)}))}_notifyUrlChangeListeners(R="",ie){this._urlChangeListeners.forEach(We=>We(R,ie))}subscribe(R,ie,We){return this._subject.subscribe({next:R,error:ie,complete:We})}}return x.normalizeQueryParams=me,x.joinWithSlash=k,x.stripTrailingSlash=U,x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275inject($),i.\u0275\u0275inject(S))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:function(){return function Ee(){return new le((0,i.\u0275\u0275inject)($),(0,i.\u0275\u0275inject)(S))}()},providedIn:"root"}),x})();function Je(x){return x.replace(/\/index.html$/,"")}const ot={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 q=(()=>((q=q||{})[q.Decimal=0]="Decimal",q[q.Percent=1]="Percent",q[q.Currency=2]="Currency",q[q.Scientific=3]="Scientific",q))(),Ae=(()=>((Ae=Ae||{})[Ae.Zero=0]="Zero",Ae[Ae.One=1]="One",Ae[Ae.Two=2]="Two",Ae[Ae.Few=3]="Few",Ae[Ae.Many=4]="Many",Ae[Ae.Other=5]="Other",Ae))(),X=(()=>((X=X||{})[X.Format=0]="Format",X[X.Standalone=1]="Standalone",X))(),ce=(()=>((ce=ce||{})[ce.Narrow=0]="Narrow",ce[ce.Abbreviated=1]="Abbreviated",ce[ce.Wide=2]="Wide",ce[ce.Short=3]="Short",ce))(),Se=(()=>((Se=Se||{})[Se.Short=0]="Short",Se[Se.Medium=1]="Medium",Se[Se.Long=2]="Long",Se[Se.Full=3]="Full",Se))(),ne=(()=>((ne=ne||{})[ne.Decimal=0]="Decimal",ne[ne.Group=1]="Group",ne[ne.List=2]="List",ne[ne.PercentSign=3]="PercentSign",ne[ne.PlusSign=4]="PlusSign",ne[ne.MinusSign=5]="MinusSign",ne[ne.Exponential=6]="Exponential",ne[ne.SuperscriptingExponent=7]="SuperscriptingExponent",ne[ne.PerMille=8]="PerMille",ne[ne.Infinity=9]="Infinity",ne[ne.NaN=10]="NaN",ne[ne.TimeSeparator=11]="TimeSeparator",ne[ne.CurrencyDecimal=12]="CurrencyDecimal",ne[ne.CurrencyGroup=13]="CurrencyGroup",ne))(),$e=(()=>(($e=$e||{})[$e.Sunday=0]="Sunday",$e[$e.Monday=1]="Monday",$e[$e.Tuesday=2]="Tuesday",$e[$e.Wednesday=3]="Wednesday",$e[$e.Thursday=4]="Thursday",$e[$e.Friday=5]="Friday",$e[$e.Saturday=6]="Saturday",$e))();function ge(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.LocaleId]}function Ze(x,Q,R){const ie=(0,i.\u0275findLocaleData)(x),ct=Oe([ie[i.\u0275LocaleDataIndex.DayPeriodsFormat],ie[i.\u0275LocaleDataIndex.DayPeriodsStandalone]],Q);return Oe(ct,R)}function Me(x,Q,R){const ie=(0,i.\u0275findLocaleData)(x),ct=Oe([ie[i.\u0275LocaleDataIndex.DaysFormat],ie[i.\u0275LocaleDataIndex.DaysStandalone]],Q);return Oe(ct,R)}function Ke(x,Q,R){const ie=(0,i.\u0275findLocaleData)(x),ct=Oe([ie[i.\u0275LocaleDataIndex.MonthsFormat],ie[i.\u0275LocaleDataIndex.MonthsStandalone]],Q);return Oe(ct,R)}function mt(x,Q){return Oe((0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.Eras],Q)}function Dt(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.FirstDayOfWeek]}function ke(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.WeekendRange]}function Ye(x,Q){return Oe((0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.DateFormat],Q)}function Z(x,Q){return Oe((0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.TimeFormat],Q)}function pe(x,Q){return Oe((0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.DateTimeFormat],Q)}function we(x,Q){const R=(0,i.\u0275findLocaleData)(x),ie=R[i.\u0275LocaleDataIndex.NumberSymbols][Q];if(void 0===ie){if(Q===ne.CurrencyDecimal)return R[i.\u0275LocaleDataIndex.NumberSymbols][ne.Decimal];if(Q===ne.CurrencyGroup)return R[i.\u0275LocaleDataIndex.NumberSymbols][ne.Group]}return ie}function Re(x,Q){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.NumberFormats][Q]}function ye(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.CurrencySymbol]||null}function Xe(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.CurrencyName]||null}function dt(x){return(0,i.\u0275getLocaleCurrencyCode)(x)}const Ot=i.\u0275getLocalePluralCase;function lt(x){if(!x[i.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${x[i.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Qe(x){const Q=(0,i.\u0275findLocaleData)(x);return lt(Q),(Q[i.\u0275LocaleDataIndex.ExtraData][2]||[]).map(ie=>"string"==typeof ie?ue(ie):[ue(ie[0]),ue(ie[1])])}function N(x,Q,R){const ie=(0,i.\u0275findLocaleData)(x);lt(ie);const ct=Oe([ie[i.\u0275LocaleDataIndex.ExtraData][0],ie[i.\u0275LocaleDataIndex.ExtraData][1]],Q)||[];return Oe(ct,R)||[]}function ae(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.Directionality]}function Oe(x,Q){for(let R=Q;R>-1;R--)if(void 0!==x[R])return x[R];throw new Error("Locale data API: locale data undefined")}function ue(x){const[Q,R]=x.split(":");return{hours:+Q,minutes:+R}}function De(x,Q,R="en"){const ie=function bt(x){return(0,i.\u0275findLocaleData)(x)[i.\u0275LocaleDataIndex.Currencies]}(R)[x]||ot[x]||[],We=ie[1];return"narrow"===Q&&"string"==typeof We?We:ie[0]||x}function se(x){let Q;const R=ot[x];return R&&(Q=R[2]),"number"==typeof Q?Q:2}const be=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ge={},nt=/((?:[^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))(),wt=(()=>((wt=wt||{})[wt.DayPeriods=0]="DayPeriods",wt[wt.Days=1]="Days",wt[wt.Months=2]="Months",wt[wt.Eras=3]="Eras",wt))();function Ht(x,Q,R,ie){let We=function Ve(x){if(He(x))return x;if("number"==typeof x&&!isNaN(x))return new Date(x);if("string"==typeof x){if(x=x.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(x)){const[We,ct=1,vt=1]=x.split("-").map(Rt=>+Rt);return en(We,ct-1,vt)}const R=parseFloat(x);if(!isNaN(x-R))return new Date(R);let ie;if(ie=x.match(be))return function he(x){const Q=new Date(0);let R=0,ie=0;const We=x[8]?Q.setUTCFullYear:Q.setFullYear,ct=x[8]?Q.setUTCHours:Q.setHours;x[9]&&(R=Number(x[9]+x[10]),ie=Number(x[9]+x[11])),We.call(Q,Number(x[1]),Number(x[2])-1,Number(x[3]));const vt=Number(x[4]||0)-R,Rt=Number(x[5]||0)-ie,Tn=Number(x[6]||0),wn=Math.floor(1e3*parseFloat("0."+(x[7]||0)));return ct.call(Q,vt,Rt,Tn,wn),Q}(ie)}const Q=new Date(x);if(!He(Q))throw new Error(`Unable to convert "${x}" into a date`);return Q}(x);Q=Bt(R,Q)||Q;let Rt,vt=[];for(;Q;){if(Rt=nt.exec(Q),!Rt){vt.push(Q);break}{vt=vt.concat(Rt.slice(1));const In=vt.pop();if(!In)break;Q=In}}let Tn=We.getTimezoneOffset();ie&&(Tn=Wt(ie,Tn),We=function Le(x,Q,R){const ie=R?-1:1,We=x.getTimezoneOffset();return function pn(x,Q){return(x=new Date(x.getTime())).setMinutes(x.getMinutes()+Q),x}(x,ie*(Wt(Q,We)-We))}(We,ie,!0));let wn="";return vt.forEach(In=>{const cn=function Et(x){if(et[x])return et[x];let Q;switch(x){case"G":case"GG":case"GGG":Q=Qt(wt.Eras,ce.Abbreviated);break;case"GGGG":Q=Qt(wt.Eras,ce.Wide);break;case"GGGGG":Q=Qt(wt.Eras,ce.Narrow);break;case"y":Q=Mt(ft.FullYear,1,0,!1,!0);break;case"yy":Q=Mt(ft.FullYear,2,0,!0,!0);break;case"yyy":Q=Mt(ft.FullYear,3,0,!1,!0);break;case"yyyy":Q=Mt(ft.FullYear,4,0,!1,!0);break;case"Y":Q=K(1);break;case"YY":Q=K(2,!0);break;case"YYY":Q=K(3);break;case"YYYY":Q=K(4);break;case"M":case"L":Q=Mt(ft.Month,1,1);break;case"MM":case"LL":Q=Mt(ft.Month,2,1);break;case"MMM":Q=Qt(wt.Months,ce.Abbreviated);break;case"MMMM":Q=Qt(wt.Months,ce.Wide);break;case"MMMMM":Q=Qt(wt.Months,ce.Narrow);break;case"LLL":Q=Qt(wt.Months,ce.Abbreviated,X.Standalone);break;case"LLLL":Q=Qt(wt.Months,ce.Wide,X.Standalone);break;case"LLLLL":Q=Qt(wt.Months,ce.Narrow,X.Standalone);break;case"w":Q=D(1);break;case"ww":Q=D(2);break;case"W":Q=D(1,!0);break;case"d":Q=Mt(ft.Date,1);break;case"dd":Q=Mt(ft.Date,2);break;case"c":case"cc":Q=Mt(ft.Day,1);break;case"ccc":Q=Qt(wt.Days,ce.Abbreviated,X.Standalone);break;case"cccc":Q=Qt(wt.Days,ce.Wide,X.Standalone);break;case"ccccc":Q=Qt(wt.Days,ce.Narrow,X.Standalone);break;case"cccccc":Q=Qt(wt.Days,ce.Short,X.Standalone);break;case"E":case"EE":case"EEE":Q=Qt(wt.Days,ce.Abbreviated);break;case"EEEE":Q=Qt(wt.Days,ce.Wide);break;case"EEEEE":Q=Qt(wt.Days,ce.Narrow);break;case"EEEEEE":Q=Qt(wt.Days,ce.Short);break;case"a":case"aa":case"aaa":Q=Qt(wt.DayPeriods,ce.Abbreviated);break;case"aaaa":Q=Qt(wt.DayPeriods,ce.Wide);break;case"aaaaa":Q=Qt(wt.DayPeriods,ce.Narrow);break;case"b":case"bb":case"bbb":Q=Qt(wt.DayPeriods,ce.Abbreviated,X.Standalone,!0);break;case"bbbb":Q=Qt(wt.DayPeriods,ce.Wide,X.Standalone,!0);break;case"bbbbb":Q=Qt(wt.DayPeriods,ce.Narrow,X.Standalone,!0);break;case"B":case"BB":case"BBB":Q=Qt(wt.DayPeriods,ce.Abbreviated,X.Format,!0);break;case"BBBB":Q=Qt(wt.DayPeriods,ce.Wide,X.Format,!0);break;case"BBBBB":Q=Qt(wt.DayPeriods,ce.Narrow,X.Format,!0);break;case"h":Q=Mt(ft.Hours,1,-12);break;case"hh":Q=Mt(ft.Hours,2,-12);break;case"H":Q=Mt(ft.Hours,1);break;case"HH":Q=Mt(ft.Hours,2);break;case"m":Q=Mt(ft.Minutes,1);break;case"mm":Q=Mt(ft.Minutes,2);break;case"s":Q=Mt(ft.Seconds,1);break;case"ss":Q=Mt(ft.Seconds,2);break;case"S":Q=Mt(ft.FractionalSeconds,1);break;case"SS":Q=Mt(ft.FractionalSeconds,2);break;case"SSS":Q=Mt(ft.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Q=yn(ht.Short);break;case"ZZZZZ":Q=yn(ht.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Q=yn(ht.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Q=yn(ht.Long);break;default:return null}return et[x]=Q,Q}(In);wn+=cn?cn(We,R,Tn):"''"===In?"'":In.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),wn}function en(x,Q,R){const ie=new Date(0);return ie.setFullYear(x,Q,R),ie.setHours(0,0,0),ie}function Bt(x,Q){const R=ge(x);if(Ge[R]=Ge[R]||{},Ge[R][Q])return Ge[R][Q];let ie="";switch(Q){case"shortDate":ie=Ye(x,Se.Short);break;case"mediumDate":ie=Ye(x,Se.Medium);break;case"longDate":ie=Ye(x,Se.Long);break;case"fullDate":ie=Ye(x,Se.Full);break;case"shortTime":ie=Z(x,Se.Short);break;case"mediumTime":ie=Z(x,Se.Medium);break;case"longTime":ie=Z(x,Se.Long);break;case"fullTime":ie=Z(x,Se.Full);break;case"short":const We=Bt(x,"shortTime"),ct=Bt(x,"shortDate");ie=En(pe(x,Se.Short),[We,ct]);break;case"medium":const vt=Bt(x,"mediumTime"),Rt=Bt(x,"mediumDate");ie=En(pe(x,Se.Medium),[vt,Rt]);break;case"long":const Tn=Bt(x,"longTime"),wn=Bt(x,"longDate");ie=En(pe(x,Se.Long),[Tn,wn]);break;case"full":const In=Bt(x,"fullTime"),cn=Bt(x,"fullDate");ie=En(pe(x,Se.Full),[In,cn])}return ie&&(Ge[R][Q]=ie),ie}function En(x,Q){return Q&&(x=x.replace(/\{([^}]+)}/g,function(R,ie){return null!=Q&&ie in Q?Q[ie]:R})),x}function rn(x,Q,R="-",ie,We){let ct="";(x<0||We&&x<=0)&&(We?x=1-x:(x=-x,ct=R));let vt=String(x);for(;vt.length<Q;)vt="0"+vt;return ie&&(vt=vt.substr(vt.length-Q)),ct+vt}function Mt(x,Q,R=0,ie=!1,We=!1){return function(ct,vt){let Rt=function bn(x,Q){switch(x){case ft.FullYear:return Q.getFullYear();case ft.Month:return Q.getMonth();case ft.Date:return Q.getDate();case ft.Hours:return Q.getHours();case ft.Minutes:return Q.getMinutes();case ft.Seconds:return Q.getSeconds();case ft.FractionalSeconds:return Q.getMilliseconds();case ft.Day:return Q.getDay();default:throw new Error(`Unknown DateType value "${x}".`)}}(x,ct);if((R>0||Rt>-R)&&(Rt+=R),x===ft.Hours)0===Rt&&-12===R&&(Rt=12);else if(x===ft.FractionalSeconds)return function zt(x,Q){return rn(x,3).substr(0,Q)}(Rt,Q);const Tn=we(vt,ne.MinusSign);return rn(Rt,Q,Tn,ie,We)}}function Qt(x,Q,R=X.Format,ie=!1){return function(We,ct){return function on(x,Q,R,ie,We,ct){switch(R){case wt.Months:return Ke(Q,We,ie)[x.getMonth()];case wt.Days:return Me(Q,We,ie)[x.getDay()];case wt.DayPeriods:const vt=x.getHours(),Rt=x.getMinutes();if(ct){const wn=Qe(Q),In=N(Q,We,ie),cn=wn.findIndex(F=>{if(Array.isArray(F)){const[P,E]=F,J=vt>=P.hours&&Rt>=P.minutes,at=vt<E.hours||vt===E.hours&&Rt<E.minutes;if(P.hours<E.hours){if(J&&at)return!0}else if(J||at)return!0}else if(F.hours===vt&&F.minutes===Rt)return!0;return!1});if(-1!==cn)return In[cn]}return Ze(Q,We,ie)[vt<12?0:1];case wt.Eras:return mt(Q,ie)[x.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${R}`)}}(We,ct,x,Q,R,ie)}}function yn(x){return function(Q,R,ie){const We=-1*ie,ct=we(R,ne.MinusSign),vt=We>0?Math.floor(We/60):Math.ceil(We/60);switch(x){case ht.Short:return(We>=0?"+":"")+rn(vt,2,ct)+rn(Math.abs(We%60),2,ct);case ht.ShortGMT:return"GMT"+(We>=0?"+":"")+rn(vt,1,ct);case ht.Long:return"GMT"+(We>=0?"+":"")+rn(vt,2,ct)+":"+rn(Math.abs(We%60),2,ct);case ht.Extended:return 0===ie?"Z":(We>=0?"+":"")+rn(vt,2,ct)+":"+rn(Math.abs(We%60),2,ct);default:throw new Error(`Unknown zone width "${x}"`)}}}function C(x){return en(x.getFullYear(),x.getMonth(),x.getDate()+(4-x.getDay()))}function D(x,Q=!1){return function(R,ie){let We;if(Q){const ct=new Date(R.getFullYear(),R.getMonth(),1).getDay()-1,vt=R.getDate();We=1+Math.floor((vt+ct)/7)}else{const ct=C(R),vt=function p(x){const Q=en(x,0,1).getDay();return en(x,0,1+(Q<=4?4:11)-Q)}(ct.getFullYear()),Rt=ct.getTime()-vt.getTime();We=1+Math.round(Rt/6048e5)}return rn(We,x,we(ie,ne.MinusSign))}}function K(x,Q=!1){return function(R,ie){return rn(C(R).getFullYear(),x,we(ie,ne.MinusSign),Q)}}const et={};function Wt(x,Q){x=x.replace(/:/g,"");const R=Date.parse("Jan 01, 1970 00:00:00 "+x)/6e4;return isNaN(R)?Q:R}function He(x){return x instanceof Date&&!isNaN(x.valueOf())}const ut=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Wn(x,Q,R,ie,We,ct,vt=!1){let Rt="",Tn=!1;if(isFinite(x)){let wn=function qe(x){let ie,We,ct,vt,Rt,Q=Math.abs(x)+"",R=0;for((We=Q.indexOf("."))>-1&&(Q=Q.replace(".","")),(ct=Q.search(/e/i))>0?(We<0&&(We=ct),We+=+Q.slice(ct+1),Q=Q.substring(0,ct)):We<0&&(We=Q.length),ct=0;"0"===Q.charAt(ct);ct++);if(ct===(Rt=Q.length))ie=[0],We=1;else{for(Rt--;"0"===Q.charAt(Rt);)Rt--;for(We-=ct,ie=[],vt=0;ct<=Rt;ct++,vt++)ie[vt]=Number(Q.charAt(ct))}return We>22&&(ie=ie.splice(0,21),R=We-1,We=1),{digits:ie,exponent:R,integerLen:We}}(x);vt&&(wn=function Pe(x){if(0===x.digits[0])return x;const Q=x.digits.length-x.integerLen;return x.exponent?x.exponent+=2:(0===Q?x.digits.push(0,0):1===Q&&x.digits.push(0),x.integerLen+=2),x}(wn));let In=Q.minInt,cn=Q.minFrac,F=Q.maxFrac;if(ct){const An=ct.match(ut);if(null===An)throw new Error(`${ct} is not a valid digit info`);const qn=An[1],gi=An[3],Ni=An[5];null!=qn&&(In=St(qn)),null!=gi&&(cn=St(gi)),null!=Ni?F=St(Ni):null!=gi&&cn>F&&(F=cn)}!function st(x,Q,R){if(Q>R)throw new Error(`The minimum number of digits after fraction (${Q}) is higher than the maximum (${R}).`);let ie=x.digits,We=ie.length-x.integerLen;const ct=Math.min(Math.max(Q,We),R);let vt=ct+x.integerLen,Rt=ie[vt];if(vt>0){ie.splice(Math.max(x.integerLen,vt));for(let cn=vt;cn<ie.length;cn++)ie[cn]=0}else{We=Math.max(0,We),x.integerLen=1,ie.length=Math.max(1,vt=ct+1),ie[0]=0;for(let cn=1;cn<vt;cn++)ie[cn]=0}if(Rt>=5)if(vt-1<0){for(let cn=0;cn>vt;cn--)ie.unshift(0),x.integerLen++;ie.unshift(1),x.integerLen++}else ie[vt-1]++;for(;We<Math.max(0,ct);We++)ie.push(0);let Tn=0!==ct;const wn=Q+x.integerLen,In=ie.reduceRight(function(cn,F,P,E){return E[P]=(F+=cn)<10?F:F-10,Tn&&(0===E[P]&&P>=wn?E.pop():Tn=!1),F>=10?1:0},0);In&&(ie.unshift(In),x.integerLen++)}(wn,cn,F);let P=wn.digits,E=wn.integerLen;const J=wn.exponent;let at=[];for(Tn=P.every(An=>!An);E<In;E++)P.unshift(0);for(;E<0;E++)P.unshift(0);E>0?at=P.splice(E,P.length):(at=P,P=[0]);const Vt=[];for(P.length>=Q.lgSize&&Vt.unshift(P.splice(-Q.lgSize,P.length).join(""));P.length>Q.gSize;)Vt.unshift(P.splice(-Q.gSize,P.length).join(""));P.length&&Vt.unshift(P.join("")),Rt=Vt.join(we(R,ie)),at.length&&(Rt+=we(R,We)+at.join("")),J&&(Rt+=we(R,ne.Exponential)+"+"+J)}else Rt=we(R,ne.Infinity);return Rt=x<0&&!Tn?Q.negPre+Rt+Q.negSuf:Q.posPre+Rt+Q.posSuf,Rt}function Bn(x,Q,R,ie,We){const vt=z(Re(Q,q.Currency),we(Q,ne.MinusSign));return vt.minFrac=se(ie),vt.maxFrac=vt.minFrac,Wn(x,vt,Q,ne.CurrencyGroup,ne.CurrencyDecimal,We).replace("\xa4",R).replace("\xa4","").trim()}function V(x,Q,R){return Wn(x,z(Re(Q,q.Percent),we(Q,ne.MinusSign)),Q,ne.Group,ne.Decimal,R,!0).replace(new RegExp("%","g"),we(Q,ne.PercentSign))}function Ie(x,Q,R){return Wn(x,z(Re(Q,q.Decimal),we(Q,ne.MinusSign)),Q,ne.Group,ne.Decimal,R)}function z(x,Q="-"){const R={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ie=x.split(";"),We=ie[0],ct=ie[1],vt=-1!==We.indexOf(".")?We.split("."):[We.substring(0,We.lastIndexOf("0")+1),We.substring(We.lastIndexOf("0")+1)],Rt=vt[0],Tn=vt[1]||"";R.posPre=Rt.substr(0,Rt.indexOf("#"));for(let In=0;In<Tn.length;In++){const cn=Tn.charAt(In);"0"===cn?R.minFrac=R.maxFrac=In+1:"#"===cn?R.maxFrac=In+1:R.posSuf+=cn}const wn=Rt.split(",");if(R.gSize=wn[1]?wn[1].length:0,R.lgSize=wn[2]||wn[1]?(wn[2]||wn[1]).length:0,ct){const In=We.length-R.posPre.length-R.posSuf.length,cn=ct.indexOf("#");R.negPre=ct.substr(0,cn).replace(/'/g,""),R.negSuf=ct.substr(cn+In).replace(/'/g,"")}else R.negPre=Q+R.posPre,R.negSuf=R.posSuf;return R}function St(x){const Q=parseInt(x);if(isNaN(Q))throw new Error("Invalid integer literal when parsing "+x);return Q}class Nt{}function Xt(x,Q,R,ie){let We=`=${x}`;if(Q.indexOf(We)>-1||(We=R.getPluralCategory(x,ie),Q.indexOf(We)>-1))return We;if(Q.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${x}"`)}let vn=(()=>{class x extends Nt{constructor(R){super(),this.locale=R}getPluralCategory(R,ie){switch(Ot(ie||this.locale)(R)){case Ae.Zero:return"zero";case Ae.One:return"one";case Ae.Two:return"two";case Ae.Few:return"few";case Ae.Many:return"many";default:return"other"}}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275inject(i.LOCALE_ID))},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();function jt(x,Q,R){return(0,i.\u0275registerLocaleData)(x,Q,R)}function On(x,Q){Q=encodeURIComponent(Q);for(const R of x.split(";")){const ie=R.indexOf("="),[We,ct]=-1==ie?[R,""]:[R.slice(0,ie),R.slice(ie+1)];if(We.trim()===Q)return decodeURIComponent(ct)}return null}let ln=(()=>{class x{constructor(R,ie,We,ct){this._iterableDiffers=R,this._keyValueDiffers=ie,this._ngEl=We,this._renderer=ct,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(R){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof R?R.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(R){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof R?R.split(/\s+/):R,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 R=this._iterableDiffer.diff(this._rawClass);R&&this._applyIterableChanges(R)}else if(this._keyValueDiffer){const R=this._keyValueDiffer.diff(this._rawClass);R&&this._applyKeyValueChanges(R)}}_applyKeyValueChanges(R){R.forEachAddedItem(ie=>this._toggleClass(ie.key,ie.currentValue)),R.forEachChangedItem(ie=>this._toggleClass(ie.key,ie.currentValue)),R.forEachRemovedItem(ie=>{ie.previousValue&&this._toggleClass(ie.key,!1)})}_applyIterableChanges(R){R.forEachAddedItem(ie=>{if("string"!=typeof ie.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.\u0275stringify)(ie.item)}`);this._toggleClass(ie.item,!0)}),R.forEachRemovedItem(ie=>this._toggleClass(ie.item,!1))}_applyClasses(R){R&&(Array.isArray(R)||R instanceof Set?R.forEach(ie=>this._toggleClass(ie,!0)):Object.keys(R).forEach(ie=>this._toggleClass(ie,!!R[ie])))}_removeClasses(R){R&&(Array.isArray(R)||R instanceof Set?R.forEach(ie=>this._toggleClass(ie,!1)):Object.keys(R).forEach(ie=>this._toggleClass(ie,!1)))}_toggleClass(R,ie){(R=R.trim())&&R.split(/\s+/g).forEach(We=>{ie?this._renderer.addClass(this._ngEl.nativeElement,We):this._renderer.removeClass(this._ngEl.nativeElement,We)})}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),x})(),Hn=(()=>{class x{constructor(R){this._viewContainerRef=R,this._componentRef=null,this._moduleRef=null}ngOnChanges(R){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const ie=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(R.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const vt=ie.get(i.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(vt.injector)}else this._moduleRef=null;const ct=(this._moduleRef?this._moduleRef.componentFactoryResolver:ie.get(i.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(ct,this._viewContainerRef.length,ie,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[i.\u0275\u0275NgOnChangesFeature]}),x})();class Un{constructor(Q,R,ie,We){this.$implicit=Q,this.ngForOf=R,this.index=ie,this.count=We}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 Sn=(()=>{class x{constructor(R,ie,We){this._viewContainer=R,this._template=ie,this._differs=We,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(R){this._ngForOf=R,this._ngForOfDirty=!0}set ngForTrackBy(R){this._trackByFn=R}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(R){R&&(this._template=R)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const R=this._ngForOf;!this._differ&&R&&(this._differ=this._differs.find(R).create(this.ngForTrackBy))}if(this._differ){const R=this._differ.diff(this._ngForOf);R&&this._applyChanges(R)}}_applyChanges(R){const ie=this._viewContainer;R.forEachOperation((We,ct,vt)=>{if(null==We.previousIndex)ie.createEmbeddedView(this._template,new Un(We.item,this._ngForOf,-1,-1),null===vt?void 0:vt);else if(null==vt)ie.remove(null===ct?void 0:ct);else if(null!==ct){const Rt=ie.get(ct);ie.move(Rt,vt),kn(Rt,We)}});for(let We=0,ct=ie.length;We<ct;We++){const Rt=ie.get(We).context;Rt.index=We,Rt.count=ct,Rt.ngForOf=this._ngForOf}R.forEachIdentityChange(We=>{kn(ie.get(We.currentIndex),We)})}static ngTemplateContextGuard(R,ie){return!0}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),x})();function kn(x,Q){x.context.$implicit=Q.item}let xn=(()=>{class x{constructor(R,ie){this._viewContainer=R,this._context=new mn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ie}set ngIf(R){this._context.$implicit=this._context.ngIf=R,this._updateView()}set ngIfThen(R){ni("ngIfThen",R),this._thenTemplateRef=R,this._thenViewRef=null,this._updateView()}set ngIfElse(R){ni("ngIfElse",R),this._elseTemplateRef=R,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(R,ie){return!0}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),x})();class mn{constructor(){this.$implicit=null,this.ngIf=null}}function ni(x,Q){if(Q&&!Q.createEmbeddedView)throw new Error(`${x} must be a TemplateRef, but received '${(0,i.\u0275stringify)(Q)}'.`)}class li{constructor(Q,R){this._viewContainerRef=Q,this._templateRef=R,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Q){Q&&!this._created?this.create():!Q&&this._created&&this.destroy()}}let Kn=(()=>{class x{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(R){this._ngSwitch=R,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(R){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(R)}_matchCase(R){const ie=R==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ie,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ie}_updateDefaultCases(R){if(this._defaultViews&&R!==this._defaultUsed){this._defaultUsed=R;for(let ie=0;ie<this._defaultViews.length;ie++)this._defaultViews[ie].enforceState(R)}}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),x})(),Gn=(()=>{class x{constructor(R,ie,We){this.ngSwitch=We,We._addCase(),this._view=new li(R,ie)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(Kn,9))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),x})(),Ci=(()=>{class x{constructor(R,ie,We){We._addDefault(new li(R,ie))}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(Kn,9))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngSwitchDefault",""]]}),x})(),hi=(()=>{class x{constructor(R){this._localization=R,this._caseViews={}}set ngPlural(R){this._switchValue=R,this._updateView()}addCase(R,ie){this._caseViews[R]=ie}_updateView(){this._clearViews();const R=Object.keys(this._caseViews),ie=Xt(this._switchValue,R,this._localization);this._activateView(this._caseViews[ie])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(R){R&&(this._activeView=R,this._activeView.create())}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(Nt))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),x})(),zn=(()=>{class x{constructor(R,ie,We,ct){this.value=R;const vt=!isNaN(Number(R));ct.addCase(vt?`=${R}`:R,new li(We,ie))}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275injectAttribute("ngPluralCase"),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(hi,1))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngPluralCase",""]]}),x})(),Sr=(()=>{class x{constructor(R,ie,We){this._ngEl=R,this._differs=ie,this._renderer=We,this._ngStyle=null,this._differ=null}set ngStyle(R){this._ngStyle=R,!this._differ&&R&&(this._differ=this._differs.find(R).create())}ngDoCheck(){if(this._differ){const R=this._differ.diff(this._ngStyle);R&&this._applyChanges(R)}}_setStyle(R,ie){const[We,ct]=R.split(".");null!=(ie=null!=ie&&ct?`${ie}${ct}`:ie)?this._renderer.setStyle(this._ngEl.nativeElement,We,ie):this._renderer.removeStyle(this._ngEl.nativeElement,We)}_applyChanges(R){R.forEachRemovedItem(ie=>this._setStyle(ie.key,null)),R.forEachAddedItem(ie=>this._setStyle(ie.key,ie.currentValue)),R.forEachChangedItem(ie=>this._setStyle(ie.key,ie.currentValue))}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.Renderer2))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),x})(),nr=(()=>{class x{constructor(R){this._viewContainerRef=R,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(R){if(R.ngTemplateOutlet){const ie=this._viewContainerRef;this._viewRef&&ie.remove(ie.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?ie.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&R.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},x.\u0275dir=i.\u0275\u0275defineDirective({type:x,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.\u0275\u0275NgOnChangesFeature]}),x})();function Qn(x,Q){return Error(`InvalidPipeArgument: '${Q}' for pipe '${(0,i.\u0275stringify)(x)}'`)}class Zn{createSubscription(Q,R){return Q.subscribe({next:R,error:ie=>{throw ie}})}dispose(Q){Q.unsubscribe()}onDestroy(Q){Q.unsubscribe()}}class Ei{createSubscription(Q,R){return Q.then(R,ie=>{throw ie})}dispose(Q){}onDestroy(Q){}}const Ui=new Ei,Lr=new Zn;let zi=(()=>{class x{constructor(R){this._ref=R,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(R){return this._obj?R!==this._obj?(this._dispose(),this.transform(R)):this._latestValue:(R&&this._subscribe(R),this._latestValue)}_subscribe(R){this._obj=R,this._strategy=this._selectStrategy(R),this._subscription=this._strategy.createSubscription(R,ie=>this._updateLatestValue(R,ie))}_selectStrategy(R){if((0,i.\u0275isPromise)(R))return Ui;if((0,i.\u0275isSubscribable)(R))return Lr;throw Qn(x,R)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(R,ie){R===this._obj&&(this._latestValue=ie,this._ref.markForCheck())}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.ChangeDetectorRef,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"async",type:x,pure:!1}),x})(),Ir=(()=>{class x{transform(R){if(null==R)return null;if("string"!=typeof R)throw Qn(x,R);return R.toLowerCase()}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"lowercase",type:x,pure:!0}),x})();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 Wi=(()=>{class x{transform(R){if(null==R)return null;if("string"!=typeof R)throw Qn(x,R);return R.replace(Mi,ie=>ie[0].toUpperCase()+ie.substr(1).toLowerCase())}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"titlecase",type:x,pure:!0}),x})(),ci=(()=>{class x{transform(R){if(null==R)return null;if("string"!=typeof R)throw Qn(x,R);return R.toUpperCase()}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"uppercase",type:x,pure:!0}),x})();const gr=new i.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE");let Di=(()=>{class x{constructor(R,ie){this.locale=R,this.defaultTimezone=ie}transform(R,ie="mediumDate",We,ct){var vt;if(null==R||""===R||R!=R)return null;try{return Ht(R,ie,ct||this.locale,null!==(vt=null!=We?We:this.defaultTimezone)&&void 0!==vt?vt:void 0)}catch(Rt){throw Qn(x,Rt.message)}}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16),i.\u0275\u0275directiveInject(gr,24))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"date",type:x,pure:!0}),x})();const Ar=/#/g;let Pr=(()=>{class x{constructor(R){this._localization=R}transform(R,ie,We){if(null==R)return"";if("object"!=typeof ie||null===ie)throw Qn(x,ie);return ie[Xt(R,Object.keys(ie),this._localization,We)].replace(Ar,R.toString())}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(Nt,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"i18nPlural",type:x,pure:!0}),x})(),Ki=(()=>{class x{transform(R,ie){if(null==R)return"";if("object"!=typeof ie||"string"!=typeof R)throw Qn(x,ie);return ie.hasOwnProperty(R)?ie[R]:ie.hasOwnProperty("other")?ie.other:""}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"i18nSelect",type:x,pure:!0}),x})(),Si=(()=>{class x{transform(R){return JSON.stringify(R,null,2)}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"json",type:x,pure:!1}),x})(),Or=(()=>{class x{constructor(R){this.differs=R,this.keyValues=[],this.compareFn=Ii}transform(R,ie=Ii){if(!R||!(R instanceof Map)&&"object"!=typeof R)return null;this.differ||(this.differ=this.differs.find(R).create());const We=this.differ.diff(R),ct=ie!==this.compareFn;return We&&(this.keyValues=[],We.forEachItem(vt=>{this.keyValues.push(function Gi(x,Q){return{key:x,value:Q}}(vt.key,vt.currentValue))})),(We||ct)&&(this.keyValues.sort(ie),this.compareFn=ie),this.keyValues}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.KeyValueDiffers,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"keyvalue",type:x,pure:!1}),x})();function Ii(x,Q){const R=x.key,ie=Q.key;if(R===ie)return 0;if(void 0===R)return 1;if(void 0===ie)return-1;if(null===R)return 1;if(null===ie)return-1;if("string"==typeof R&&"string"==typeof ie)return R<ie?-1:1;if("number"==typeof R&&"number"==typeof ie)return R-ie;if("boolean"==typeof R&&"boolean"==typeof ie)return R<ie?-1:1;const We=String(R),ct=String(ie);return We==ct?0:We<ct?-1:1}let _r=(()=>{class x{constructor(R){this._locale=R}transform(R,ie,We){if(!pi(R))return null;We=We||this._locale;try{return Ie(Qi(R),We,ie)}catch(ct){throw Qn(x,ct.message)}}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"number",type:x,pure:!0}),x})(),fi=(()=>{class x{constructor(R){this._locale=R}transform(R,ie,We){if(!pi(R))return null;We=We||this._locale;try{return V(Qi(R),We,ie)}catch(ct){throw Qn(x,ct.message)}}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"percent",type:x,pure:!0}),x})(),Ai=(()=>{class x{constructor(R,ie="USD"){this._locale=R,this._defaultCurrencyCode=ie}transform(R,ie=this._defaultCurrencyCode,We="symbol",ct,vt){if(!pi(R))return null;vt=vt||this._locale,"boolean"==typeof We&&(We=We?"symbol":"code");let Rt=ie||this._defaultCurrencyCode;"code"!==We&&(Rt="symbol"===We||"symbol-narrow"===We?De(Rt,"symbol"===We?"wide":"narrow",vt):We);try{return Bn(Qi(R),vt,Rt,ie,ct)}catch(Tn){throw Qn(x,Tn.message)}}}return x.\u0275fac=function(R){return new(R||x)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16),i.\u0275\u0275directiveInject(i.DEFAULT_CURRENCY_CODE,16))},x.\u0275pipe=i.\u0275\u0275definePipe({name:"currency",type:x,pure:!0}),x})();function pi(x){return!(null==x||""===x||x!=x)}function Qi(x){if("string"==typeof x&&!isNaN(Number(x)-parseFloat(x)))return Number(x);if("number"!=typeof x)throw new Error(`${x} is not a number`);return x}let mi=(()=>{class x{transform(R,ie,We){if(null==R)return null;if(!this.supports(R))throw Qn(x,R);return R.slice(ie,We)}supports(R){return"string"==typeof R||Array.isArray(R)}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275pipe=i.\u0275\u0275definePipe({name:"slice",type:x,pure:!1}),x})(),rr=(()=>{class x{}return x.\u0275fac=function(R){return new(R||x)},x.\u0275mod=i.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:Nt,useClass:vn}]}),x})();const Pi="browser",Oi="server",xi="browserWorkerApp",Zi="browserWorkerUi";function ti(x){return x===Pi}function Ri(x){return x===Oi}function or(x){return x===xi}function Fi(x){return x===Zi}const Yi=new i.Version("13.1.2");let ki=(()=>{class x{}return x.\u0275prov=(0,i.\u0275\u0275defineInjectable)({token:x,providedIn:"root",factory:()=>new xr((0,i.\u0275\u0275inject)(T),window)}),x})();class xr{constructor(Q,R){this.document=Q,this.window=R,this.offset=()=>[0,0]}setOffset(Q){this.offset=Array.isArray(Q)?()=>Q:Q}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Q){this.supportsScrolling()&&this.window.scrollTo(Q[0],Q[1])}scrollToAnchor(Q){if(!this.supportsScrolling())return;const R=function sr(x,Q){const R=x.getElementById(Q)||x.getElementsByName(Q)[0];if(R)return R;if("function"==typeof x.createTreeWalker&&x.body&&(x.body.createShadowRoot||x.body.attachShadow)){const ie=x.createTreeWalker(x.body,NodeFilter.SHOW_ELEMENT);let We=ie.currentNode;for(;We;){const ct=We.shadowRoot;if(ct){const vt=ct.getElementById(Q)||ct.querySelector(`[name="${Q}"]`);if(vt)return vt}We=ie.nextNode()}}return null}(this.document,Q);R&&(this.scrollToElement(R),this.attemptFocus(R))}setHistoryScrollRestoration(Q){if(this.supportScrollRestoration()){const R=this.window.history;R&&R.scrollRestoration&&(R.scrollRestoration=Q)}}scrollToElement(Q){const R=Q.getBoundingClientRect(),ie=R.left+this.window.pageXOffset,We=R.top+this.window.pageYOffset,ct=this.offset();this.window.scrollTo(ie-ct[0],We-ct[1])}attemptFocus(Q){return Q.focus(),this.document.activeElement===Q}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Q=Rn(this.window.history)||Rn(Object.getPrototypeOf(this.window.history));return!(!Q||!Q.writable&&!Q.set)}catch(Q){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Q){return!1}}}function Rn(x){return Object.getOwnPropertyDescriptor(x,"scrollRestoration")}class ar{setOffset(Q){}getScrollPosition(){return[0,0]}scrollToPosition(Q){}scrollToAnchor(Q){}setHistoryScrollRestoration(Q){}}class Ln{}},520:(je,_,l)=>{"use strict";l.r(_),l.d(_,{HTTP_INTERCEPTORS:()=>ge,HttpBackend:()=>g,HttpClient:()=>ne,HttpClientJsonpModule:()=>ue,HttpClientModule:()=>Oe,HttpClientXsrfModule:()=>ae,HttpContext:()=>Te,HttpContextToken:()=>re,HttpErrorResponse:()=>ce,HttpEventType:()=>ot,HttpHandler:()=>S,HttpHeaderResponse:()=>Ae,HttpHeaders:()=>v,HttpParams:()=>$,HttpRequest:()=>Je,HttpResponse:()=>X,HttpResponseBase:()=>q,HttpUrlEncodingCodec:()=>A,HttpXhrBackend:()=>Re,HttpXsrfTokenExtractor:()=>dt,JsonpClientBackend:()=>Ye,JsonpInterceptor:()=>Z,XhrFactory:()=>De,\u0275HttpInterceptingHandler:()=>lt});var i=l(9808),d=l(5e3),m=l(9646),u=l(9751),s=l(4351),b=l(9300),T=l(4004);class S{}class g{}class v{constructor(se){this.normalizedNames=new Map,this.lazyUpdate=null,se?this.lazyInit="string"==typeof se?()=>{this.headers=new Map,se.split("\n").forEach(be=>{const Ge=be.indexOf(":");if(Ge>0){const nt=be.slice(0,Ge),ht=nt.toLowerCase(),ft=be.slice(Ge+1).trim();this.maybeSetNormalizedName(nt,ht),this.headers.has(ht)?this.headers.get(ht).push(ft):this.headers.set(ht,[ft])}})}:()=>{this.headers=new Map,Object.keys(se).forEach(be=>{let Ge=se[be];const nt=be.toLowerCase();"string"==typeof Ge&&(Ge=[Ge]),Ge.length>0&&(this.headers.set(nt,Ge),this.maybeSetNormalizedName(be,nt))})}:this.headers=new Map}has(se){return this.init(),this.headers.has(se.toLowerCase())}get(se){this.init();const be=this.headers.get(se.toLowerCase());return be&&be.length>0?be[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(se){return this.init(),this.headers.get(se.toLowerCase())||null}append(se,be){return this.clone({name:se,value:be,op:"a"})}set(se,be){return this.clone({name:se,value:be,op:"s"})}delete(se,be){return this.clone({name:se,value:be,op:"d"})}maybeSetNormalizedName(se,be){this.normalizedNames.has(be)||this.normalizedNames.set(be,se)}init(){this.lazyInit&&(this.lazyInit instanceof v?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(se=>this.applyUpdate(se)),this.lazyUpdate=null))}copyFrom(se){se.init(),Array.from(se.headers.keys()).forEach(be=>{this.headers.set(be,se.headers.get(be)),this.normalizedNames.set(be,se.normalizedNames.get(be))})}clone(se){const be=new v;return be.lazyInit=this.lazyInit&&this.lazyInit instanceof v?this.lazyInit:this,be.lazyUpdate=(this.lazyUpdate||[]).concat([se]),be}applyUpdate(se){const be=se.name.toLowerCase();switch(se.op){case"a":case"s":let Ge=se.value;if("string"==typeof Ge&&(Ge=[Ge]),0===Ge.length)return;this.maybeSetNormalizedName(se.name,be);const nt=("a"===se.op?this.headers.get(be):void 0)||[];nt.push(...Ge),this.headers.set(be,nt);break;case"d":const ht=se.value;if(ht){let ft=this.headers.get(be);if(!ft)return;ft=ft.filter(wt=>-1===ht.indexOf(wt)),0===ft.length?(this.headers.delete(be),this.normalizedNames.delete(be)):this.headers.set(be,ft)}else this.headers.delete(be),this.normalizedNames.delete(be)}}forEach(se){this.init(),Array.from(this.normalizedNames.keys()).forEach(be=>se(this.normalizedNames.get(be),this.headers.get(be)))}}class A{encodeKey(se){return U(se)}encodeValue(se){return U(se)}decodeKey(se){return decodeURIComponent(se)}decodeValue(se){return decodeURIComponent(se)}}const w=/%(\d[a-f0-9])/gi,k={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function U(ve){return encodeURIComponent(ve).replace(w,(se,be)=>{var Ge;return null!==(Ge=k[be])&&void 0!==Ge?Ge:se})}function me(ve){return`${ve}`}class ${constructor(se={}){if(this.updates=null,this.cloneFrom=null,this.encoder=se.encoder||new A,se.fromString){if(se.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function O(ve,se){const be=new Map;return ve.length>0&&ve.replace(/^\?/,"").split("&").forEach(nt=>{const ht=nt.indexOf("="),[ft,wt]=-1==ht?[se.decodeKey(nt),""]:[se.decodeKey(nt.slice(0,ht)),se.decodeValue(nt.slice(ht+1))],Ht=be.get(ft)||[];Ht.push(wt),be.set(ft,Ht)}),be}(se.fromString,this.encoder)}else se.fromObject?(this.map=new Map,Object.keys(se.fromObject).forEach(be=>{const Ge=se.fromObject[be];this.map.set(be,Array.isArray(Ge)?Ge:[Ge])})):this.map=null}has(se){return this.init(),this.map.has(se)}get(se){this.init();const be=this.map.get(se);return be?be[0]:null}getAll(se){return this.init(),this.map.get(se)||null}keys(){return this.init(),Array.from(this.map.keys())}append(se,be){return this.clone({param:se,value:be,op:"a"})}appendAll(se){const be=[];return Object.keys(se).forEach(Ge=>{const nt=se[Ge];Array.isArray(nt)?nt.forEach(ht=>{be.push({param:Ge,value:ht,op:"a"})}):be.push({param:Ge,value:nt,op:"a"})}),this.clone(be)}set(se,be){return this.clone({param:se,value:be,op:"s"})}delete(se,be){return this.clone({param:se,value:be,op:"d"})}toString(){return this.init(),this.keys().map(se=>{const be=this.encoder.encodeKey(se);return this.map.get(se).map(Ge=>be+"="+this.encoder.encodeValue(Ge)).join("&")}).filter(se=>""!==se).join("&")}clone(se){const be=new $({encoder:this.encoder});return be.cloneFrom=this.cloneFrom||this,be.updates=(this.updates||[]).concat(se),be}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(se=>this.map.set(se,this.cloneFrom.map.get(se))),this.updates.forEach(se=>{switch(se.op){case"a":case"s":const be=("a"===se.op?this.map.get(se.param):void 0)||[];be.push(me(se.value)),this.map.set(se.param,be);break;case"d":if(void 0===se.value){this.map.delete(se.param);break}{let Ge=this.map.get(se.param)||[];const nt=Ge.indexOf(me(se.value));-1!==nt&&Ge.splice(nt,1),Ge.length>0?this.map.set(se.param,Ge):this.map.delete(se.param)}}}),this.cloneFrom=this.updates=null)}}class re{constructor(se){this.defaultValue=se}}class Te{constructor(){this.map=new Map}set(se,be){return this.map.set(se,be),this}get(se){return this.map.has(se)||this.map.set(se,se.defaultValue()),this.map.get(se)}delete(se){return this.map.delete(se),this}has(se){return this.map.has(se)}keys(){return this.map.keys()}}function _e(ve){return"undefined"!=typeof ArrayBuffer&&ve instanceof ArrayBuffer}function le(ve){return"undefined"!=typeof Blob&&ve instanceof Blob}function Ee(ve){return"undefined"!=typeof FormData&&ve instanceof FormData}class Je{constructor(se,be,Ge,nt){let ht;if(this.url=be,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=se.toUpperCase(),function fe(ve){switch(ve){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||nt?(this.body=void 0!==Ge?Ge:null,ht=nt):ht=Ge,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 v),this.context||(this.context=new Te),this.params){const ft=this.params.toString();if(0===ft.length)this.urlWithParams=be;else{const wt=be.indexOf("?");this.urlWithParams=be+(-1===wt?"?":wt<be.length-1?"&":"")+ft}}else this.params=new $,this.urlWithParams=be}serializeBody(){return null===this.body?null:_e(this.body)||le(this.body)||Ee(this.body)||function Fe(ve){return"undefined"!=typeof URLSearchParams&&ve instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof $?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||Ee(this.body)?null:le(this.body)?this.body.type||null:_e(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof $?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(se={}){var be;const Ge=se.method||this.method,nt=se.url||this.url,ht=se.responseType||this.responseType,ft=void 0!==se.body?se.body:this.body,wt=void 0!==se.withCredentials?se.withCredentials:this.withCredentials,Ht=void 0!==se.reportProgress?se.reportProgress:this.reportProgress;let en=se.headers||this.headers,Bt=se.params||this.params;const En=null!==(be=se.context)&&void 0!==be?be:this.context;return void 0!==se.setHeaders&&(en=Object.keys(se.setHeaders).reduce((rn,zt)=>rn.set(zt,se.setHeaders[zt]),en)),se.setParams&&(Bt=Object.keys(se.setParams).reduce((rn,zt)=>rn.set(zt,se.setParams[zt]),Bt)),new Je(Ge,nt,ft,{params:Bt,headers:en,context:En,reportProgress:Ht,responseType:ht,withCredentials:wt})}}var ot=(()=>((ot=ot||{})[ot.Sent=0]="Sent",ot[ot.UploadProgress=1]="UploadProgress",ot[ot.ResponseHeader=2]="ResponseHeader",ot[ot.DownloadProgress=3]="DownloadProgress",ot[ot.Response=4]="Response",ot[ot.User=5]="User",ot))();class q{constructor(se,be=200,Ge="OK"){this.headers=se.headers||new v,this.status=void 0!==se.status?se.status:be,this.statusText=se.statusText||Ge,this.url=se.url||null,this.ok=this.status>=200&&this.status<300}}class Ae extends q{constructor(se={}){super(se),this.type=ot.ResponseHeader}clone(se={}){return new Ae({headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class X extends q{constructor(se={}){super(se),this.type=ot.Response,this.body=void 0!==se.body?se.body:null}clone(se={}){return new X({body:void 0!==se.body?se.body:this.body,headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class ce extends q{constructor(se){super(se,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${se.url||"(unknown url)"}`:`Http failure response for ${se.url||"(unknown url)"}: ${se.status} ${se.statusText}`,this.error=se.error||null}}function Se(ve,se){return{body:se,headers:ve.headers,context:ve.context,observe:ve.observe,params:ve.params,reportProgress:ve.reportProgress,responseType:ve.responseType,withCredentials:ve.withCredentials}}let ne=(()=>{class ve{constructor(be){this.handler=be}request(be,Ge,nt={}){let ht;if(be instanceof Je)ht=be;else{let Ht,en;Ht=nt.headers instanceof v?nt.headers:new v(nt.headers),nt.params&&(en=nt.params instanceof $?nt.params:new $({fromObject:nt.params})),ht=new Je(be,Ge,void 0!==nt.body?nt.body:null,{headers:Ht,context:nt.context,params:en,reportProgress:nt.reportProgress,responseType:nt.responseType||"json",withCredentials:nt.withCredentials})}const ft=(0,m.of)(ht).pipe((0,s.b)(Ht=>this.handler.handle(Ht)));if(be instanceof Je||"events"===nt.observe)return ft;const wt=ft.pipe((0,b.h)(Ht=>Ht instanceof X));switch(nt.observe||"body"){case"body":switch(ht.responseType){case"arraybuffer":return wt.pipe((0,T.U)(Ht=>{if(null!==Ht.body&&!(Ht.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Ht.body}));case"blob":return wt.pipe((0,T.U)(Ht=>{if(null!==Ht.body&&!(Ht.body instanceof Blob))throw new Error("Response is not a Blob.");return Ht.body}));case"text":return wt.pipe((0,T.U)(Ht=>{if(null!==Ht.body&&"string"!=typeof Ht.body)throw new Error("Response is not a string.");return Ht.body}));default:return wt.pipe((0,T.U)(Ht=>Ht.body))}case"response":return wt;default:throw new Error(`Unreachable: unhandled observe type ${nt.observe}}`)}}delete(be,Ge={}){return this.request("DELETE",be,Ge)}get(be,Ge={}){return this.request("GET",be,Ge)}head(be,Ge={}){return this.request("HEAD",be,Ge)}jsonp(be,Ge){return this.request("JSONP",be,{params:(new $).append(Ge,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(be,Ge={}){return this.request("OPTIONS",be,Ge)}patch(be,Ge,nt={}){return this.request("PATCH",be,Se(nt,Ge))}post(be,Ge,nt={}){return this.request("POST",be,Se(nt,Ge))}put(be,Ge,nt={}){return this.request("PUT",be,Se(nt,Ge))}}return ve.\u0275fac=function(be){return new(be||ve)(d.\u0275\u0275inject(S))},ve.\u0275prov=d.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac}),ve})();class $e{constructor(se,be){this.next=se,this.interceptor=be}handle(se){return this.interceptor.intercept(se,this.next)}}const ge=new d.InjectionToken("HTTP_INTERCEPTORS");let Ze=(()=>{class ve{intercept(be,Ge){return Ge.handle(be)}}return ve.\u0275fac=function(be){return new(be||ve)},ve.\u0275prov=d.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac}),ve})(),Me=0;class ke{}let Ye=(()=>{class ve{constructor(be,Ge){this.callbackMap=be,this.document=Ge,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+Me++}handle(be){if("JSONP"!==be.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==be.responseType)throw new Error("JSONP requests must use Json response type.");return new u.y(Ge=>{const nt=this.nextCallback(),ht=be.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${nt}$1`),ft=this.document.createElement("script");ft.src=ht;let wt=null,Ht=!1,en=!1;this.callbackMap[nt]=zt=>{delete this.callbackMap[nt],!en&&(wt=zt,Ht=!0)};const Bt=()=>{ft.parentNode&&ft.parentNode.removeChild(ft),delete this.callbackMap[nt]},En=zt=>{en||this.resolvedPromise.then(()=>{Bt(),Ht?(Ge.next(new X({body:wt,status:200,statusText:"OK",url:ht})),Ge.complete()):Ge.error(new ce({url:ht,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},rn=zt=>{en||(Bt(),Ge.error(new ce({error:zt,status:0,statusText:"JSONP Error",url:ht})))};return ft.addEventListener("load",En),ft.addEventListener("error",rn),this.document.body.appendChild(ft),Ge.next({type:ot.Sent}),()=>{en=!0,ft.removeEventListener("load",En),ft.removeEventListener("error",rn),Bt()}})}}return ve.\u0275fac=function(be){return new(be||ve)(d.\u0275\u0275inject(ke),d.\u0275\u0275inject(i.DOCUMENT))},ve.\u0275prov=d.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac}),ve})(),Z=(()=>{class ve{constructor(be){this.jsonp=be}intercept(be,Ge){return"JSONP"===be.method?this.jsonp.handle(be):Ge.handle(be)}}return ve.\u0275fac=function(be){return new(be||ve)(d.\u0275\u0275inject(Ye))},ve.\u0275prov=d.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac}),ve})();const pe=/^\)\]\}',?\n/;let Re=(()=>{class ve{constructor(be){this.xhrFactory=be}handle(be){if("JSONP"===be.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new u.y(Ge=>{const nt=this.xhrFactory.build();if(nt.open(be.method,be.urlWithParams),be.withCredentials&&(nt.withCredentials=!0),be.headers.forEach((zt,Mt)=>nt.setRequestHeader(zt,Mt.join(","))),be.headers.has("Accept")||nt.setRequestHeader("Accept","application/json, text/plain, */*"),!be.headers.has("Content-Type")){const zt=be.detectContentTypeHeader();null!==zt&&nt.setRequestHeader("Content-Type",zt)}if(be.responseType){const zt=be.responseType.toLowerCase();nt.responseType="json"!==zt?zt:"text"}const ht=be.serializeBody();let ft=null;const wt=()=>{if(null!==ft)return ft;const zt=1223===nt.status?204:nt.status,Mt=nt.statusText||"OK",bn=new v(nt.getAllResponseHeaders()),Qt=function we(ve){return"responseURL"in ve&&ve.responseURL?ve.responseURL:/^X-Request-URL:/m.test(ve.getAllResponseHeaders())?ve.getResponseHeader("X-Request-URL"):null}(nt)||be.url;return ft=new Ae({headers:bn,status:zt,statusText:Mt,url:Qt}),ft},Ht=()=>{let{headers:zt,status:Mt,statusText:bn,url:Qt}=wt(),on=null;204!==Mt&&(on=void 0===nt.response?nt.responseText:nt.response),0===Mt&&(Mt=on?200:0);let yn=Mt>=200&&Mt<300;if("json"===be.responseType&&"string"==typeof on){const oe=on;on=on.replace(pe,"");try{on=""!==on?JSON.parse(on):null}catch(W){on=oe,yn&&(yn=!1,on={error:W,text:on})}}yn?(Ge.next(new X({body:on,headers:zt,status:Mt,statusText:bn,url:Qt||void 0})),Ge.complete()):Ge.error(new ce({error:on,headers:zt,status:Mt,statusText:bn,url:Qt||void 0}))},en=zt=>{const{url:Mt}=wt(),bn=new ce({error:zt,status:nt.status||0,statusText:nt.statusText||"Unknown Error",url:Mt||void 0});Ge.error(bn)};let Bt=!1;const En=zt=>{Bt||(Ge.next(wt()),Bt=!0);let Mt={type:ot.DownloadProgress,loaded:zt.loaded};zt.lengthComputable&&(Mt.total=zt.total),"text"===be.responseType&&!!nt.responseText&&(Mt.partialText=nt.responseText),Ge.next(Mt)},rn=zt=>{let Mt={type:ot.UploadProgress,loaded:zt.loaded};zt.lengthComputable&&(Mt.total=zt.total),Ge.next(Mt)};return nt.addEventListener("load",Ht),nt.addEventListener("error",en),nt.addEventListener("timeout",en),nt.addEventListener("abort",en),be.reportProgress&&(nt.addEventListener("progress",En),null!==ht&&nt.upload&&nt.upload.addEventListener("progress",rn)),nt.send(ht),Ge.next({type:ot.Sent}),()=>{nt.removeEventListener("error",en),nt.removeEventListener("abort",en),nt.removeEventListener("load",Ht),nt.removeEventListener("timeout",en),be.reportProgress&&(nt.removeEventListener("progress",En),null!==ht&&nt.upload&&nt.upload.removeEventListener("progress",rn)),nt.readyState!==nt.DONE&&nt.abort()}})}}return ve.\u0275fac=function(be){return new(be||ve)(d.\u0275\u0275inject(i.XhrFactory))},ve.\u0275prov=d.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac}),ve})();const ye=new d.InjectionToken("XSRF_COOKIE_NAME"),Xe=new d.InjectionToken("XSRF_HEADER_NAME");class dt{}let bt=(()=>{class ve{constructor(be,Ge,nt){this.doc=be,this.platform=Ge,this.cookieName=nt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const be=this.doc.cookie||"";return be!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.\u0275parseCookieValue)(be,this.cookieName),this.lastCookieString=be),this.lastToken}}return ve.\u0275fac=function(be){return new(be||ve)(d.\u0275\u0275inject(i.DOCUMENT),d.\u0275\u0275inject(d.PLATFORM_ID),d.\u0275\u0275inject(ye))},ve.\u0275prov=d.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac}),ve})(),Ot=(()=>{class ve{constructor(be,Ge){this.tokenService=be,this.headerName=Ge}intercept(be,Ge){const nt=be.url.toLowerCase();if("GET"===be.method||"HEAD"===be.method||nt.startsWith("http://")||nt.startsWith("https://"))return Ge.handle(be);const ht=this.tokenService.getToken();return null!==ht&&!be.headers.has(this.headerName)&&(be=be.clone({headers:be.headers.set(this.headerName,ht)})),Ge.handle(be)}}return ve.\u0275fac=function(be){return new(be||ve)(d.\u0275\u0275inject(dt),d.\u0275\u0275inject(Xe))},ve.\u0275prov=d.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac}),ve})(),lt=(()=>{class ve{constructor(be,Ge){this.backend=be,this.injector=Ge,this.chain=null}handle(be){if(null===this.chain){const Ge=this.injector.get(ge,[]);this.chain=Ge.reduceRight((nt,ht)=>new $e(nt,ht),this.backend)}return this.chain.handle(be)}}return ve.\u0275fac=function(be){return new(be||ve)(d.\u0275\u0275inject(g),d.\u0275\u0275inject(d.Injector))},ve.\u0275prov=d.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac}),ve})();function N(){return"object"==typeof window?window:{}}let ae=(()=>{class ve{static disable(){return{ngModule:ve,providers:[{provide:Ot,useClass:Ze}]}}static withOptions(be={}){return{ngModule:ve,providers:[be.cookieName?{provide:ye,useValue:be.cookieName}:[],be.headerName?{provide:Xe,useValue:be.headerName}:[]]}}}return ve.\u0275fac=function(be){return new(be||ve)},ve.\u0275mod=d.\u0275\u0275defineNgModule({type:ve}),ve.\u0275inj=d.\u0275\u0275defineInjector({providers:[Ot,{provide:ge,useExisting:Ot,multi:!0},{provide:dt,useClass:bt},{provide:ye,useValue:"XSRF-TOKEN"},{provide:Xe,useValue:"X-XSRF-TOKEN"}]}),ve})(),Oe=(()=>{class ve{}return ve.\u0275fac=function(be){return new(be||ve)},ve.\u0275mod=d.\u0275\u0275defineNgModule({type:ve}),ve.\u0275inj=d.\u0275\u0275defineInjector({providers:[ne,{provide:S,useClass:lt},Re,{provide:g,useExisting:Re}],imports:[[ae.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),ve})(),ue=(()=>{class ve{}return ve.\u0275fac=function(be){return new(be||ve)},ve.\u0275mod=d.\u0275\u0275defineNgModule({type:ve}),ve.\u0275inj=d.\u0275\u0275defineInjector({providers:[Ye,{provide:ke,useFactory:N},{provide:ge,useClass:Z,multi:!0}]}),ve})();const De=i.XhrFactory},5e3:(je,_,l)=>{"use strict";l.r(_),l.d(_,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>i_,APP_BOOTSTRAP_LISTENER:()=>hg,APP_ID:()=>lg,APP_INITIALIZER:()=>uu,ApplicationInitStatus:()=>Lo,ApplicationModule:()=>kE,ApplicationRef:()=>Es,Attribute:()=>Yu,COMPILER_OPTIONS:()=>gg,CUSTOM_ELEMENTS_SCHEMA:()=>xd,ChangeDetectionStrategy:()=>be,ChangeDetectorRef:()=>Og,Compiler:()=>hu,CompilerFactory:()=>K0,Component:()=>k0,ComponentFactory:()=>sa,ComponentFactoryResolver:()=>ms,ComponentRef:()=>Gp,ContentChild:()=>o_,ContentChildren:()=>r_,DEFAULT_CURRENCY_CODE:()=>pg,DebugElement:()=>vE,DebugEventListener:()=>dE,DebugNode:()=>yE,DefaultIterableDiffer:()=>Lg,Directive:()=>ag,ElementRef:()=>gs,EmbeddedViewRef:()=>uE,ErrorHandler:()=>qo,EventEmitter:()=>wr,Host:()=>id,HostBinding:()=>j0,HostListener:()=>V0,INJECTOR:()=>Zs,Inject:()=>Go,InjectFlags:()=>N,Injectable:()=>sb,InjectionToken:()=>Yn,Injector:()=>Vi,Input:()=>L0,IterableDiffers:()=>ya,KeyValueDiffers:()=>va,LOCALE_ID:()=>ga,MissingTranslationStrategy:()=>Mr,ModuleWithComponentFactories:()=>mg,NO_ERRORS_SCHEMA:()=>Rd,NgModule:()=>H0,NgModuleFactory:()=>im,NgModuleRef:()=>Fo,NgProbeToken:()=>eE,NgZone:()=>Hi,Optional:()=>zr,Output:()=>B0,PACKAGE_ROOT_URL:()=>U0,PLATFORM_ID:()=>dg,PLATFORM_INITIALIZER:()=>ug,Pipe:()=>N0,PlatformRef:()=>bu,Query:()=>$o,QueryList:()=>da,ReflectiveInjector:()=>Io,ReflectiveKey:()=>Nr,Renderer2:()=>ZC,RendererFactory2:()=>Zp,RendererStyleFlags2:()=>Cr,ResolvedReflectiveFactory:()=>Df,Sanitizer:()=>Yp,SecurityContext:()=>ei,Self:()=>ks,SimpleChange:()=>Ai,SkipSelf:()=>Wr,TRANSLATIONS:()=>z0,TRANSLATIONS_FORMAT:()=>W0,TemplateRef:()=>vs,Testability:()=>bg,TestabilityRegistry:()=>gu,Type:()=>Os,VERSION:()=>Jp,Version:()=>Xp,ViewChild:()=>a_,ViewChildren:()=>s_,ViewContainerRef:()=>fa,ViewEncapsulation:()=>ht,ViewRef:()=>Rg,asNativeElements:()=>hE,assertPlatform:()=>wg,createNgModuleRef:()=>r0,createPlatform:()=>Dg,createPlatformFactory:()=>Tg,defineInjectable:()=>Z,destroyPlatform:()=>tE,enableProdMode:()=>sE,forwardRef:()=>A,getDebugNode:()=>_a,getModuleFactory:()=>aE,getNgModuleById:()=>lE,getPlatform:()=>vu,inject:()=>C_,isDevMode:()=>oE,platformCore:()=>IE,resolveForwardRef:()=>O,setTestabilityGetter:()=>q0,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>yu,\u0275APP_ID_RANDOM_PROVIDER:()=>cg,\u0275ChangeDetectorStatus:()=>Ge,\u0275ComponentFactory:()=>sa,\u0275Console:()=>fg,\u0275DEFAULT_LOCALE_ID:()=>us,\u0275INJECTOR_SCOPE:()=>Il,\u0275LifecycleHooksFeature:()=>cf,\u0275LocaleDataIndex:()=>nn,\u0275NG_COMP_DEF:()=>bn,\u0275NG_DIR_DEF:()=>Qt,\u0275NG_ELEMENT_ID:()=>W,\u0275NG_INJ_DEF:()=>Ot,\u0275NG_MOD_DEF:()=>yn,\u0275NG_PIPE_DEF:()=>on,\u0275NG_PROV_DEF:()=>bt,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>aa,\u0275NO_CHANGE:()=>fn,\u0275NgModuleFactory:()=>ua,\u0275NoopNgZone:()=>vg,\u0275ReflectionCapabilities:()=>Pa,\u0275Render3ComponentFactory:()=>ca,\u0275Render3ComponentRef:()=>tm,\u0275Render3NgModuleRef:()=>Zc,\u0275RuntimeError:()=>U,\u0275ViewRef:()=>Ro,\u0275_sanitizeHtml:()=>bd,\u0275_sanitizeUrl:()=>Zo,\u0275allowSanitizationBypassAndThrow:()=>co,\u0275bypassSanitizationTrustHtml:()=>L_,\u0275bypassSanitizationTrustResourceUrl:()=>H_,\u0275bypassSanitizationTrustScript:()=>j_,\u0275bypassSanitizationTrustStyle:()=>B_,\u0275bypassSanitizationTrustUrl:()=>V_,\u0275clearResolutionOfComponentResourcesQueue:()=>ld,\u0275compileComponent:()=>Zm,\u0275compileDirective:()=>cu,\u0275compileNgModule:()=>Um,\u0275compileNgModuleDefs:()=>zm,\u0275compileNgModuleFactory:()=>Cg,\u0275compilePipe:()=>og,\u0275createInjector:()=>Pl,\u0275defaultIterableDiffers:()=>Ug,\u0275defaultKeyValueDiffers:()=>zg,\u0275detectChanges:()=>Uh,\u0275devModeEqual:()=>hf,\u0275findLocaleData:()=>jc,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>Hm,\u0275getDebugNode:()=>_a,\u0275getDebugNodeR2:()=>_E,\u0275getDirectives:()=>ef,\u0275getHostElement:()=>Rl,\u0275getInjectableDef:()=>we,\u0275getLContext:()=>yi,\u0275getLocaleCurrencyCode:()=>Zb,\u0275getLocalePluralCase:()=>_p,\u0275getSanitizationBypassType:()=>hd,\u0275global:()=>Bt,\u0275injectChangeDetectorRef:()=>xg,\u0275isBoundToModule:()=>Eg,\u0275isDefaultChangeDetectionStrategy:()=>nt,\u0275isListLikeIterable:()=>os,\u0275isObservable:()=>xf,\u0275isPromise:()=>ic,\u0275isSubscribable:()=>Of,\u0275ivyEnabled:()=>NE,\u0275makeDecorator:()=>ro,\u0275markDirty:()=>zh,\u0275noSideEffects:()=>se,\u0275patchComponentDefWithScope:()=>su,\u0275publishDefaultGlobalUtils:()=>Uv,\u0275publishGlobalUtil:()=>er,\u0275registerLocaleData:()=>Qb,\u0275registerNgModuleType:()=>om,\u0275renderComponent:()=>zv,\u0275resetCompiledComponents:()=>w0,\u0275resetJitOptions:()=>D0,\u0275resolveComponentResources:()=>sd,\u0275setClassMetadata:()=>nm,\u0275setCurrentInjector:()=>Ra,\u0275setDocument:()=>Yi,\u0275setLocaleId:()=>bp,\u0275store:()=>pf,\u0275stringify:()=>S,\u0275transitiveScopesFor:()=>Cs,\u0275unregisterLocaleData:()=>Yb,\u0275unwrapSafeValue:()=>Rr,\u0275whenRendered:()=>Wv,\u0275\u0275CopyDefinitionFeature:()=>df,\u0275\u0275FactoryTarget:()=>ii,\u0275\u0275InheritDefinitionFeature:()=>kl,\u0275\u0275NgOnChangesFeature:()=>pi,\u0275\u0275ProvidersFeature:()=>Kp,\u0275\u0275advance:()=>uh,\u0275\u0275attribute:()=>Bl,\u0275\u0275attributeInterpolate1:()=>jl,\u0275\u0275attributeInterpolate2:()=>Vl,\u0275\u0275attributeInterpolate3:()=>Hl,\u0275\u0275attributeInterpolate4:()=>$l,\u0275\u0275attributeInterpolate5:()=>Ul,\u0275\u0275attributeInterpolate6:()=>zl,\u0275\u0275attributeInterpolate7:()=>Wl,\u0275\u0275attributeInterpolate8:()=>Kl,\u0275\u0275attributeInterpolateV:()=>Gl,\u0275\u0275classMap:()=>Wf,\u0275\u0275classMapInterpolate1:()=>qf,\u0275\u0275classMapInterpolate2:()=>ep,\u0275\u0275classMapInterpolate3:()=>tp,\u0275\u0275classMapInterpolate4:()=>np,\u0275\u0275classMapInterpolate5:()=>ip,\u0275\u0275classMapInterpolate6:()=>rp,\u0275\u0275classMapInterpolate7:()=>op,\u0275\u0275classMapInterpolate8:()=>sp,\u0275\u0275classMapInterpolateV:()=>ap,\u0275\u0275classProp:()=>_c,\u0275\u0275contentQuery:()=>km,\u0275\u0275defineComponent:()=>C,\u0275\u0275defineDirective:()=>Ve,\u0275\u0275defineInjectable:()=>Ye,\u0275\u0275defineInjector:()=>pe,\u0275\u0275defineNgModule:()=>Wt,\u0275\u0275definePipe:()=>he,\u0275\u0275directiveInject:()=>ls,\u0275\u0275disableBindings:()=>Ni,\u0275\u0275element:()=>If,\u0275\u0275elementContainer:()=>Af,\u0275\u0275elementContainerEnd:()=>nc,\u0275\u0275elementContainerStart:()=>tc,\u0275\u0275elementEnd:()=>ec,\u0275\u0275elementStart:()=>ql,\u0275\u0275enableBindings:()=>gi,\u0275\u0275getCurrentView:()=>Pf,\u0275\u0275getInheritedFactory:()=>Zu,\u0275\u0275hostProperty:()=>Lc,\u0275\u0275i18n:()=>Hp,\u0275\u0275i18nApply:()=>Up,\u0275\u0275i18nAttributes:()=>$p,\u0275\u0275i18nEnd:()=>Uc,\u0275\u0275i18nExp:()=>zc,\u0275\u0275i18nPostprocess:()=>zp,\u0275\u0275i18nStart:()=>$c,\u0275\u0275inject:()=>si,\u0275\u0275injectAttribute:()=>Sa,\u0275\u0275invalidFactory:()=>Sf,\u0275\u0275invalidFactoryDep:()=>Fa,\u0275\u0275listener:()=>rc,\u0275\u0275loadQuery:()=>Nm,\u0275\u0275namespaceHTML:()=>Vn,\u0275\u0275namespaceMathML:()=>lr,\u0275\u0275namespaceSVG:()=>_i,\u0275\u0275nextContext:()=>kf,\u0275\u0275ngDeclareClassMetadata:()=>BE,\u0275\u0275ngDeclareComponent:()=>jE,\u0275\u0275ngDeclareDirective:()=>LE,\u0275\u0275ngDeclareFactory:()=>VE,\u0275\u0275ngDeclareInjectable:()=>$E,\u0275\u0275ngDeclareInjector:()=>UE,\u0275\u0275ngDeclareNgModule:()=>zE,\u0275\u0275ngDeclarePipe:()=>WE,\u0275\u0275pipe:()=>Em,\u0275\u0275pipeBind1:()=>Dm,\u0275\u0275pipeBind2:()=>Tm,\u0275\u0275pipeBind3:()=>wm,\u0275\u0275pipeBind4:()=>Mm,\u0275\u0275pipeBindV:()=>Sm,\u0275\u0275projection:()=>Lf,\u0275\u0275projectionDef:()=>Nf,\u0275\u0275property:()=>Xl,\u0275\u0275propertyInterpolate:()=>ac,\u0275\u0275propertyInterpolate1:()=>qs,\u0275\u0275propertyInterpolate2:()=>lc,\u0275\u0275propertyInterpolate3:()=>cc,\u0275\u0275propertyInterpolate4:()=>uc,\u0275\u0275propertyInterpolate5:()=>dc,\u0275\u0275propertyInterpolate6:()=>hc,\u0275\u0275propertyInterpolate7:()=>fc,\u0275\u0275propertyInterpolate8:()=>pc,\u0275\u0275propertyInterpolateV:()=>mc,\u0275\u0275pureFunction0:()=>am,\u0275\u0275pureFunction1:()=>lm,\u0275\u0275pureFunction2:()=>cm,\u0275\u0275pureFunction3:()=>um,\u0275\u0275pureFunction4:()=>dm,\u0275\u0275pureFunction5:()=>hm,\u0275\u0275pureFunction6:()=>fm,\u0275\u0275pureFunction7:()=>pm,\u0275\u0275pureFunction8:()=>mm,\u0275\u0275pureFunctionV:()=>gm,\u0275\u0275queryRefresh:()=>Rm,\u0275\u0275reference:()=>mf,\u0275\u0275resolveBody:()=>Bd,\u0275\u0275resolveDocument:()=>Ld,\u0275\u0275resolveWindow:()=>Nd,\u0275\u0275restoreView:()=>c,\u0275\u0275sanitizeHtml:()=>Cd,\u0275\u0275sanitizeResourceUrl:()=>za,\u0275\u0275sanitizeScript:()=>Dd,\u0275\u0275sanitizeStyle:()=>Ed,\u0275\u0275sanitizeUrl:()=>Ua,\u0275\u0275sanitizeUrlOrResourceUrl:()=>Md,\u0275\u0275setComponentScope:()=>D,\u0275\u0275setNgModuleScope:()=>pn,\u0275\u0275styleMap:()=>dr,\u0275\u0275styleMapInterpolate1:()=>lp,\u0275\u0275styleMapInterpolate2:()=>cp,\u0275\u0275styleMapInterpolate3:()=>up,\u0275\u0275styleMapInterpolate4:()=>dp,\u0275\u0275styleMapInterpolate5:()=>hp,\u0275\u0275styleMapInterpolate6:()=>fp,\u0275\u0275styleMapInterpolate7:()=>pp,\u0275\u0275styleMapInterpolate8:()=>mp,\u0275\u0275styleMapInterpolateV:()=>gp,\u0275\u0275styleProp:()=>gc,\u0275\u0275stylePropInterpolate1:()=>Ic,\u0275\u0275stylePropInterpolate2:()=>Ac,\u0275\u0275stylePropInterpolate3:()=>Pc,\u0275\u0275stylePropInterpolate4:()=>Oc,\u0275\u0275stylePropInterpolate5:()=>xc,\u0275\u0275stylePropInterpolate6:()=>Rc,\u0275\u0275stylePropInterpolate7:()=>Fc,\u0275\u0275stylePropInterpolate8:()=>kc,\u0275\u0275stylePropInterpolateV:()=>Nc,\u0275\u0275syntheticHostListener:()=>oc,\u0275\u0275syntheticHostProperty:()=>Bc,\u0275\u0275template:()=>ff,\u0275\u0275templateRefExtractor:()=>Vm,\u0275\u0275text:()=>Jf,\u0275\u0275textInterpolate:()=>vc,\u0275\u0275textInterpolate1:()=>ta,\u0275\u0275textInterpolate2:()=>bc,\u0275\u0275textInterpolate3:()=>Cc,\u0275\u0275textInterpolate4:()=>Ec,\u0275\u0275textInterpolate5:()=>Dc,\u0275\u0275textInterpolate6:()=>Tc,\u0275\u0275textInterpolate7:()=>wc,\u0275\u0275textInterpolate8:()=>Mc,\u0275\u0275textInterpolateV:()=>Sc,\u0275\u0275trustConstantHtml:()=>Td,\u0275\u0275trustConstantResourceUrl:()=>wd,\u0275\u0275viewQuery:()=>Fm});var i=l(6758),d=l(6921),m=l(9751),u=l(6451),s=l(3099);function b(e){for(let t in e)if(e[t]===b)return t;throw Error("Could not find renamed property on target object.")}function T(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function S(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(S).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 g(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const v=b({__forward_ref__:b});function A(e){return e.__forward_ref__=A,e.toString=function(){return S(this())},e}function O(e){return w(e)?e():e}function w(e){return"function"==typeof e&&e.hasOwnProperty(v)&&e.__forward_ref__===A}class U extends Error{constructor(t,n){super(function me(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function $(e){return"string"==typeof e?e:null==e?"":String(e)}function re(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():$(e)}function le(e,t){const n=t?` in ${t}`:"";throw new U(-201,`No provider for ${re(e)} found${n}`)}function Ke(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function Ye(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const Z=Ye;function pe(e){return{providers:e.providers||[],imports:e.imports||[]}}function we(e){return Re(e,bt)||Re(e,lt)}function Re(e,t){return e.hasOwnProperty(t)?e[t]:null}function dt(e){return e&&(e.hasOwnProperty(Ot)||e.hasOwnProperty(Qe))?e[Ot]:null}const bt=b({\u0275prov:b}),Ot=b({\u0275inj:b}),lt=b({ngInjectableDef:b}),Qe=b({ngInjectorDef:b});var N=(()=>((N=N||{})[N.Default=0]="Default",N[N.Host=1]="Host",N[N.Self=2]="Self",N[N.SkipSelf=4]="SkipSelf",N[N.Optional=8]="Optional",N))();let ae;function ue(e){const t=ae;return ae=e,t}function De(e,t,n){const r=we(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&N.Optional?null:void 0!==t?t:void le(S(e),"Injector")}function se(e){return{toString:e}.toString()}var be=(()=>((be=be||{})[be.OnPush=0]="OnPush",be[be.Default=1]="Default",be))(),Ge=(()=>((Ge=Ge||{})[Ge.CheckOnce=0]="CheckOnce",Ge[Ge.Checked=1]="Checked",Ge[Ge.CheckAlways=2]="CheckAlways",Ge[Ge.Detached=3]="Detached",Ge[Ge.Errored=4]="Errored",Ge[Ge.Destroyed=5]="Destroyed",Ge))();function nt(e){return null==e||e===be.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,wt="undefined"!=typeof window&&window,Ht="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Bt=ft||"undefined"!=typeof global&&global||wt||Ht,zt={},Mt=[],bn=b({\u0275cmp:b}),Qt=b({\u0275dir:b}),on=b({\u0275pipe:b}),yn=b({\u0275mod:b}),oe=b({\u0275fac:b}),W=b({__NG_ELEMENT_ID__:b});let p=0;function C(e){return se(()=>{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===be.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Mt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ht.Emulated,id:"c",styles:e.styles||Mt,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,a=e.features,h=e.pipes;return r.id+=p++,r.inputs=Le(e.inputs,n),r.outputs=Le(e.outputs),a&&a.forEach(y=>y(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(K):null,r.pipeDefs=h?()=>("function"==typeof h?h():h).map(et):null,r})}function D(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>t.map(K),r.pipeDefs=()=>n.map(et)}function K(e){return He(e)||ut(e)}function et(e){return Lt(e)}const Et={};function Wt(e){return se(()=>{const t={type:e.type,bootstrap:e.bootstrap||Mt,declarations:e.declarations||Mt,imports:e.imports||Mt,exports:e.exports||Mt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Et[e.id]=e.type),t})}function pn(e,t){return se(()=>{const n=kt(e,!0);n.declarations=t.declarations||Mt,n.imports=t.imports||Mt,n.exports=t.exports||Mt})}function Le(e,t){if(null==e)return zt;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 Ve=C;function he(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function He(e){return e[bn]||null}function ut(e){return e[Qt]||null}function Lt(e){return e[on]||null}function kt(e,t){const n=e[yn]||null;if(!n&&!0===t)throw new Error(`Type ${S(e)} does not have '\u0275mod' property.`);return n}function Kn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Gn(e){return Array.isArray(e)&&!0===e[1]}function Ci(e){return 0!=(8&e.flags)}function wi(e){return 2==(2&e.flags)}function hi(e){return 1==(1&e.flags)}function zn(e){return null!==e.template}function Sr(e){return 0!=(512&e[2])}function fi(e,t){return e.hasOwnProperty(oe)?e[oe]:null}class Ai{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function pi(){return Qi}function Qi(e){return e.type.prototype.ngOnChanges&&(e.setInput=ir),mi}function mi(){const e=Pi(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===zt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ir(e,t,n,r){const o=Pi(e)||function Oi(e,t){return e[rr]=t}(e,{previous:zt,current:null}),a=o.current||(o.current={}),h=o.previous,y=this.declaredInputs[n],M=h[y];a[y]=new Ai(M&&M.currentValue,t,h===zt),e[r]=t}pi.ngInherit=!0;const rr="__ngSimpleChanges__";function Pi(e){return e[rr]||null}let xi=null;const Zi=e=>{xi=e},ti=function(e,t,n){null!=xi&&xi(e,t,n)},Ri="http://www.w3.org/2000/svg",or="http://www.w3.org/1998/MathML/";let Fi;function Yi(e){Fi=e}function ki(){return void 0!==Fi?Fi:"undefined"!=typeof document?document:void 0}function Rn(e){return!!e.listen}const sr={createRenderer:(e,t)=>ki()};function Ln(e){for(;Array.isArray(e);)e=e[0];return e}function R(e,t){return Ln(t[e])}function ie(e,t){return Ln(t[e.index])}function ct(e,t){return e.data[t]}function vt(e,t){return e[t]}function Rt(e,t){const n=t[e];return Kn(n)?n:n[0]}function Tn(e){return 4==(4&e[2])}function wn(e){return 128==(128&e[2])}function cn(e,t){return null==t?null:e[t]}function F(e){e[18]=0}function P(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 E={lFrame:an(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function qn(){return E.bindingsEnabled}function gi(){E.bindingsEnabled=!0}function Ni(){E.bindingsEnabled=!1}function Tt(){return E.lFrame.lView}function B(){return E.lFrame.tView}function c(e){return E.lFrame.contextLView=e,e[8]}function f(){let e=I();for(;null!==e&&64===e.type;)e=e.parent;return e}function I(){return E.lFrame.currentTNode}function j(){const e=E.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function de(e,t){const n=E.lFrame;n.currentTNode=e,n.isParent=t}function Ne(){return E.lFrame.isParent}function Ue(){E.lFrame.isParent=!1}function Pt(){return E.isInCheckNoChangesMode}function Ut(e){E.isInCheckNoChangesMode=e}function Zt(){const e=E.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function un(){return E.lFrame.bindingIndex}function Jt(e){return E.lFrame.bindingIndex=e}function tn(){return E.lFrame.bindingIndex++}function dn(e){const t=E.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function H(e){E.lFrame.inI18n=e}function Y(e,t){const n=E.lFrame;n.bindingIndex=n.bindingRootIndex=e,xe(t)}function xe(e){E.lFrame.currentDirectiveIndex=e}function Be(e){const t=E.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function tt(){return E.lFrame.currentQueryIndex}function yt(e){E.lFrame.currentQueryIndex=e}function _t(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function $t(e,t,n){if(n&N.SkipSelf){let o=t,a=e;for(;!(o=o.parent,null!==o||n&N.Host||(o=_t(a),null===o||(a=a[15],10&o.type))););if(null===o)return!1;t=o,e=a}const r=E.lFrame=_n();return r.currentTNode=t,r.lView=e,!0}function Gt(e){const t=_n(),n=e[1];E.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function _n(){const e=E.lFrame,t=null===e?null:e.child;return null===t?an(e):t}function an(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 Mn(){const e=E.lFrame;return E.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const gn=Mn;function It(){const e=Mn();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 sn(){return E.lFrame.selectedIndex}function jn(e){E.lFrame.selectedIndex=e}function Pn(){const e=E.lFrame;return ct(e.tView,e.selectedIndex)}function _i(){E.lFrame.currentNamespace=Ri}function lr(){E.lFrame.currentNamespace=or}function Vn(){!function Ts(){E.lFrame.currentNamespace=null}()}function Xi(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const a=e.data[n].type.prototype,{ngAfterContentInit:h,ngAfterContentChecked:y,ngAfterViewInit:M,ngAfterViewChecked:L,ngOnDestroy:G}=a;h&&(e.contentHooks||(e.contentHooks=[])).push(-n,h),y&&((e.contentHooks||(e.contentHooks=[])).push(n,y),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,y)),M&&(e.viewHooks||(e.viewHooks=[])).push(-n,M),L&&((e.viewHooks||(e.viewHooks=[])).push(n,L),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,L)),null!=G&&(e.destroyHooks||(e.destroyHooks=[])).push(n,G)}}function Li(e,t,n){Lu(e,t,3,n)}function Ji(e,t,n,r){(3&e[2])===n&&Lu(e,t,n,r)}function Ur(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Lu(e,t,n,r){const a=null!=r?r:-1,h=t.length-1;let y=0;for(let M=void 0!==r?65535&e[18]:0;M<h;M++)if("number"==typeof t[M+1]){if(y=t[M],null!=r&&y>=r)break}else t[M]<0&&(e[18]+=65536),(y<a||-1==a)&&(Wg(e,n,t,M),e[18]=(4294901760&e[18])+M+2),M++}function Wg(e,t,n,r){const o=n[r]<0,a=n[r+1],y=e[o?-n[r]:n[r]];if(o){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048,ti(4,y,a);try{a.call(y)}finally{ti(5,y,a)}}}else{ti(4,y,a);try{a.call(y)}finally{ti(5,y,a)}}}class Bo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function ws(e,t,n){const r=Rn(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++],y=n[o++],M=n[o++];r?e.setAttribute(t,y,M,h):t.setAttributeNS(h,y,M)}else{const h=a,y=n[++o];Ea(h)?r&&e.setProperty(t,h,y):r?e.setAttribute(t,h,y):t.setAttribute(h,y),o++}}return o}function Bu(e){return 3===e||4===e||6===e}function Ea(e){return 64===e.charCodeAt(0)}function Ms(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||ju(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function ju(e,t,n,r,o){let a=0,h=e.length;if(-1===t)h=-1;else for(;a<e.length;){const y=e[a++];if("number"==typeof y){if(y===t){h=-1;break}if(y>t){h=a-1;break}}}for(;a<e.length;){const y=e[a];if("number"==typeof y)break;if(y===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 Vu(e){return-1!==e}function Jr(e){return 32767&e}function qr(e,t){let n=function Yg(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Da=!0;function Ss(e){const t=Da;return Da=e,t}let Xg=0;function Vo(e,t){const n=wa(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Ta(r.data,e),Ta(t,null),Ta(r.blueprint,null));const o=Is(e,t),a=e.injectorIndex;if(Vu(o)){const h=Jr(o),y=qr(o,t),M=y[1].data;for(let L=0;L<8;L++)t[a+L]=y[h+L]|M[h+L]}return t[a+8]=o,a}function Ta(e,t){e.push(0,0,0,0,0,0,0,0,t)}function wa(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Is(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 As(e,t,n){!function Jg(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(W)&&(r=n[W]),null==r&&(r=n[W]=Xg++);const o=255&r;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function Uu(e,t,n){if(n&N.Optional)return e;le(t,"NodeInjector")}function zu(e,t,n,r){if(n&N.Optional&&void 0===r&&(r=null),0==(n&(N.Self|N.Host))){const o=e[9],a=ue(void 0);try{return o?o.get(t,r,n&N.Optional):De(t,r,n&N.Optional)}finally{ue(a)}}return Uu(r,t,n)}function Wu(e,t,n,r=N.Default,o){if(null!==e){const a=function n_(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(W)?e[W]:void 0;return"number"==typeof t?t>=0?255&t:e_:t}(n);if("function"==typeof a){if(!$t(t,e,r))return r&N.Host?Uu(o,n,r):zu(t,n,r,o);try{const h=a(r);if(null!=h||r&N.Optional)return h;le(n)}finally{gn()}}else if("number"==typeof a){let h=null,y=wa(e,t),M=-1,L=r&N.Host?t[16][6]:null;for((-1===y||r&N.SkipSelf)&&(M=-1===y?Is(e,t):t[y+8],-1!==M&&Qu(r,!1)?(h=t[1],y=Jr(M),t=qr(M,t)):y=-1);-1!==y;){const G=t[1];if(Gu(a,y,G.data)){const Ce=t_(y,t,n,h,r,L);if(Ce!==Ku)return Ce}M=t[y+8],-1!==M&&Qu(r,t[1].data[y+8]===L)&&Gu(a,y,t)?(h=G,y=Jr(M),t=qr(M,t)):y=-1}}}return zu(t,n,r,o)}const Ku={};function e_(){return new eo(f(),Tt())}function t_(e,t,n,r,o,a){const h=t[1],y=h.data[e+8],G=Ps(y,h,n,null==r?wi(y)&&Da:r!=h&&0!=(3&y.type),o&N.Host&&a===y);return null!==G?Ho(t,h,G,y):Ku}function Ps(e,t,n,r,o){const a=e.providerIndexes,h=t.data,y=1048575&a,M=e.directiveStart,G=a>>20,ze=o?y+G:e.directiveEnd;for(let it=r?y:y+G;it<ze;it++){const gt=h[it];if(it<M&&n===gt||it>=M&&gt.type===n)return it}if(o){const it=h[M];if(it&&zn(it)&&it.type===n)return M}return null}function Ho(e,t,n,r){let o=e[n];const a=t.data;if(function Kg(e){return e instanceof Bo}(o)){const h=o;h.resolving&&function Te(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new U(-200,`Circular dependency in DI detected for ${e}${n}`)}(re(a[n]));const y=Ss(h.canSeeViewProviders);h.resolving=!0;const M=h.injectImpl?ue(h.injectImpl):null;$t(e,r,N.Default);try{o=e[n]=h.factory(void 0,a,e,r),t.firstCreatePass&&n>=r.directiveStart&&function ui(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:a}=t.type.prototype;if(r){const h=Qi(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!==M&&ue(M),Ss(y),h.resolving=!1,gn()}}return o}function Gu(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Qu(e,t){return!(e&N.Self||e&N.Host&&t)}class eo{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Wu(this._tNode,this._lView,t,r,n)}}function Zu(e){return se(()=>{const t=e.prototype.constructor,n=t[oe]||Ma(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const a=o[oe]||Ma(o);if(a&&a!==n)return a;o=Object.getPrototypeOf(o)}return a=>new a})}function Ma(e){return w(e)?()=>{const t=Ma(O(e));return t&&t()}:fi(e)}function Sa(e){return function qg(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(Bu(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}(f(),e)}const to="__annotations__",no="__parameters__",io="__prop__metadata__";function ro(e,t,n,r,o){return se(()=>{const a=Ia(t);function h(...y){if(this instanceof h)return a.call(this,...y),this;const M=new h(...y);return function(G){return o&&o(G,...y),(G.hasOwnProperty(to)?G[to]:Object.defineProperty(G,to,{value:[]})[to]).push(M),r&&r(G),G}}return n&&(h.prototype=Object.create(n.prototype)),h.prototype.ngMetadataName=e,h.annotationCls=h,h})}function Ia(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}function oo(e,t,n){return se(()=>{const r=Ia(t);function o(...a){if(this instanceof o)return r.apply(this,a),this;const h=new o(...a);return y.annotation=h,y;function y(M,L,G){const Ce=M.hasOwnProperty(no)?M[no]:Object.defineProperty(M,no,{value:[]})[no];for(;Ce.length<=G;)Ce.push(null);return(Ce[G]=Ce[G]||[]).push(h),M}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function jr(e,t,n,r){return se(()=>{const o=Ia(t);function a(...h){if(this instanceof a)return o.apply(this,h),this;const y=new a(...h);return function M(L,G){const Ce=L.constructor,ze=Ce.hasOwnProperty(io)?Ce[io]:Object.defineProperty(Ce,io,{value:{}})[io];ze[G]=ze.hasOwnProperty(G)&&ze[G]||[],ze[G].unshift(y),r&&r(L,G,...h)}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const Yu=oo("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Sa(e)}));class Yn{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=Ye({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const i_=new Yn("AnalyzeForEntryComponents");class $o{}const r_=jr("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),$o),o_=jr("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),$o),s_=jr("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),$o),a_=jr("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),$o);var ii=(()=>((ii=ii||{})[ii.Directive=0]="Directive",ii[ii.Component=1]="Component",ii[ii.Injectable=2]="Injectable",ii[ii.Pipe=3]="Pipe",ii[ii.NgModule=4]="NgModule",ii))();function ri(e){const t=Bt.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Os=Function;function Uo(e){return"function"==typeof e}function qi(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)),qi(r,t)):t!==e&&t.push(r)}return t}function yr(e,t){e.forEach(n=>Array.isArray(n)?yr(n,t):t(n))}function Ju(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function zo(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function Bi(e,t,n){let r=so(e,t);return r>=0?e[1|r]=n:(r=~r,function u_(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 Aa(e,t){const n=so(e,t);if(n>=0)return e[1|n]}function so(e,t){return function td(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 d_=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,h_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,f_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,p_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class Pa{constructor(t){this._reflect=t||Bt.Reflect}isReflectionEnabled(){return!0}factory(t){return(...n)=>new t(...n)}_zipTypesAndAnnotations(t,n){let r;r=zo(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 m_(e){return d_.test(e)||p_.test(e)||h_.test(e)&&!f_.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 y="function"==typeof o?o():o,M=y.map(G=>G&&G.type),L=y.map(G=>G&&Oa(G.decorators));return this._zipTypesAndAnnotations(M,L)}const a=t.hasOwnProperty(no)&&t[no],h=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return h||a?this._zipTypesAndAnnotations(h,a):zo(t.length)}parameters(t){if(!Uo(t))return[];const n=Rs(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?Oa(t.decorators):t.hasOwnProperty(to)?t[to]:null}annotations(t){if(!Uo(t))return[];const n=Rs(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]=Oa(r[a])}),o}return t.hasOwnProperty(io)?t[io]:null}propMetadata(t){if(!Uo(t))return{};const n=Rs(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 Uo(t)&&this._ownPropMetadata(t,Rs(t))||{}}hasLifecycleHook(t,n){return t instanceof Os&&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:`./${S(t)}`}resourceUri(t){return`./${S(t)}`}resolveIdentifier(t,n,r,o){return o}resolveEnum(t,n){return t[n]}}function Oa(e){return e?e.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function Rs(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const Vr={},xa="__NG_DI_FLAG__",Fs="ngTempTokenPath",__=/\n/gm,nd="__source",v_=b({provide:String,useValue:b});let Wo;function Ra(e){const t=Wo;return Wo=e,t}function b_(e,t=N.Default){if(void 0===Wo)throw new Error("inject() must be called from an injection context");return null===Wo?De(e,void 0,t):Wo.get(e,t&N.Optional?null:void 0,t)}function si(e,t=N.Default){return(function Oe(){return ae}()||b_)(O(e),t)}function Fa(e){throw new Error("invalid")}const C_=si;function ka(e){const t=[];for(let n=0;n<e.length;n++){const r=O(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let o,a=N.Default;for(let h=0;h<r.length;h++){const y=r[h],M=E_(y);"number"==typeof M?-1===M?o=y.token:a|=M:o=y}t.push(si(o,a))}else t.push(si(r))}return t}function Ko(e,t){return e[xa]=t,e.prototype[xa]=t,e}function E_(e){return e[xa]}const Go=Ko(oo("Inject",e=>({token:e})),-1),zr=Ko(oo("Optional"),8),ks=Ko(oo("Self"),2),Wr=Ko(oo("SkipSelf"),4),id=Ko(oo("Host"),1);let rd=null;function Na(){return rd=rd||new Pa}function Ns(e){return od(Na().parameters(e))}function od(e){return e.map(t=>function w_(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 zr||"Optional"===o.ngMetadataName)t.optional=!0;else if(r instanceof Wr||"SkipSelf"===o.ngMetadataName)t.skipSelf=!0;else if(r instanceof ks||"Self"===o.ngMetadataName)t.self=!0;else if(r instanceof id||"Host"===o.ngMetadataName)t.host=!0;else if(r instanceof Go)t.token=r.token;else if(r instanceof Yu){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 sd(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(I_))}return a}return ao.forEach((o,a)=>{const h=[];o.templateUrl&&h.push(r(o.templateUrl).then(Ce=>{o.template=Ce}));const y=o.styleUrls,M=o.styles||(o.styles=[]),L=o.styles.length;y&&y.forEach((Ce,ze)=>{M.push(""),h.push(r(Ce).then(it=>{M[L+ze]=it,y.splice(y.indexOf(Ce),1),0==y.length&&(o.styleUrls=void 0)}))});const G=Promise.all(h).then(()=>function A_(e){Qo.delete(e)}(a));t.push(G)}),ld(),Promise.all(t).then(()=>{})}let ao=new Map;const Qo=new Set;function ad(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function ld(){const e=ao;return ao=new Map,e}function I_(e){return"string"==typeof e?e:e.text()}let Ls,Bs;function La(){if(void 0===Ls&&(Ls=null,Bt.trustedTypes))try{Ls=Bt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Ls}function lo(e){var t;return(null===(t=La())||void 0===t?void 0:t.createHTML(e))||e}function Ba(){if(void 0===Bs&&(Bs=null,Bt.trustedTypes))try{Bs=Bt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Bs}function cd(e){var t;return(null===(t=Ba())||void 0===t?void 0:t.createHTML(e))||e}function ud(e){var t;return(null===(t=Ba())||void 0===t?void 0:t.createScript(e))||e}function dd(e){var t;return(null===(t=Ba())||void 0===t?void 0:t.createScriptURL(e))||e}class Kr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class x_ extends Kr{getTypeName(){return"HTML"}}class R_ extends Kr{getTypeName(){return"Style"}}class F_ extends Kr{getTypeName(){return"Script"}}class k_ extends Kr{getTypeName(){return"URL"}}class N_ extends Kr{getTypeName(){return"ResourceURL"}}function Rr(e){return e instanceof Kr?e.changingThisBreaksApplicationSecurity:e}function co(e,t){const n=hd(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 hd(e){return e instanceof Kr&&e.getTypeName()||null}function L_(e){return new x_(e)}function B_(e){return new R_(e)}function j_(e){return new F_(e)}function V_(e){return new k_(e)}function H_(e){return new N_(e)}function fd(e){const t=new U_(e);return function z_(){try{return!!(new window.DOMParser).parseFromString(lo(""),"text/html")}catch(e){return!1}}()?new $_(t):t}class $_{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(lo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class U_{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=lo(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=lo(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 W_=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,K_=/^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 Zo(e){return(e=String(e)).match(W_)||e.match(K_)?e:"unsafe:"+e}function pd(e){return(e=String(e)).split(",").map(t=>Zo(t.trim())).join(", ")}function vr(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Yo(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const md=vr("area,br,col,hr,img,wbr"),gd=vr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_d=vr("rp,rt"),ja=Yo(md,Yo(gd,vr("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")),Yo(_d,vr("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")),Yo(_d,gd)),Va=vr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ha=vr("srcset"),yd=Yo(Va,Ha,vr("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"),vr("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")),G_=vr("script,style,template");class Q_{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(!ja.hasOwnProperty(n))return this.sanitizedSomething=!0,!G_.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,y=h.toLowerCase();if(!yd.hasOwnProperty(y)){this.sanitizedSomething=!0;continue}let M=a.value;Va[y]&&(M=Zo(M)),Ha[y]&&(M=pd(M)),this.buf.push(" ",h,'="',vd(M),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();ja.hasOwnProperty(n)&&!md.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(vd(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 Z_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Y_=/([^\#-~ |!])/g;function vd(e){return e.replace(/&/g,"&amp;").replace(Z_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Y_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let js;function bd(e,t){let n=null;try{js=js||fd(e);let r=t?String(t):"";n=js.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=js.getInertBodyElement(r)}while(r!==a);return lo((new Q_).sanitizeChildren($a(n)||n))}finally{if(n){const r=$a(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function $a(e){return"content"in e&&function X_(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ei=(()=>((ei=ei||{})[ei.NONE=0]="NONE",ei[ei.HTML=1]="HTML",ei[ei.STYLE=2]="STYLE",ei[ei.SCRIPT=3]="SCRIPT",ei[ei.URL=4]="URL",ei[ei.RESOURCE_URL=5]="RESOURCE_URL",ei))();function Cd(e){const t=Xo();return t?cd(t.sanitize(ei.HTML,e)||""):co(e,"HTML")?cd(Rr(e)):bd(ki(),$(e))}function Ed(e){const t=Xo();return t?t.sanitize(ei.STYLE,e)||"":co(e,"Style")?Rr(e):$(e)}function Ua(e){const t=Xo();return t?t.sanitize(ei.URL,e)||"":co(e,"URL")?Rr(e):Zo($(e))}function za(e){const t=Xo();if(t)return dd(t.sanitize(ei.RESOURCE_URL,e)||"");if(co(e,"ResourceURL"))return dd(Rr(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Dd(e){const t=Xo();if(t)return ud(t.sanitize(ei.SCRIPT,e)||"");if(co(e,"Script"))return ud(Rr(e));throw new Error("unsafe value used in a script context")}function Td(e){return lo(e[0])}function wd(e){return function O_(e){var t;return(null===(t=La())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function Md(e,t,n){return function J_(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?za:Ua}(t,n)(e)}function Xo(){const e=Tt();return e&&e[12]}function yi(e){let t=Jo(e);if(t){if(Array.isArray(t)){const n=t;let r,o,a;if(function q_(e){return e&&e.constructor&&e.constructor.\u0275cmp}(e)){if(r=Pd(n,e),-1==r)throw new Error("The provided component was not found in the application");o=e}else if(function ey(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(r=function ny(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=ty(n)}return-1}(n,e),-1==r)throw new Error("The provided directive was not found in the application");a=Od(r,n,!1)}else if(r=Ad(n,e),-1==r)return null;const h=Ln(n[r]),y=Jo(h),M=y&&!Array.isArray(y)?y:Wa(n,r,h);if(o&&void 0===M.component&&(M.component=o,vi(M.component,M)),a&&void 0===M.directives){M.directives=a;for(let L=0;L<a.length;L++)vi(a[L],M)}vi(M.native,M),t=M}}else{const n=e;let r=n;for(;r=r.parentNode;){const o=Jo(r);if(o){let a;if(a=Array.isArray(o)?o:o.lView,!a)return null;const h=Ad(a,n);if(h>=0){const y=Ln(a[h]),M=Wa(a,h,y);vi(y,M),t=M;break}}}}return t||null}function Wa(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Sd(e){let n,t=Jo(e);if(Array.isArray(t)){const r=Pd(t,e);n=Rt(r,t);const o=Wa(t,r,n[0]);o.component=e,vi(e,o),vi(o.native,o)}else n=Rt(t.nodeIndex,t.lView);return n}const Id="__ngContext__";function vi(e,t){e[Id]=t}function Jo(e){return e[Id]||null}function Ka(e){const t=Jo(e);return t?Array.isArray(t)?t:t.lView:null}function Ad(e,t){const n=e[1];for(let r=20;r<n.bindingStartIndex;r++)if(Ln(e[r])===t)return r;return-1}function ty(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 Pd(e,t){const n=e[1].components;if(n)for(let r=0;r<n.length;r++){const o=n[r];if(Rt(o,e)[8]===t)return o}else if(Rt(20,e)[8]===t)return 20;return-1}function Od(e,t,n){const r=t[1].data[e];let o=r.directiveStart;return 0==o?Mt:(!n&&2&r.flags&&o++,t.slice(o,r.directiveEnd))}const Ga="ngOriginalError";function Qa(e){return e[Ga]}function ly(e,...t){e.error(...t)}class qo{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=function ay(e){return e&&e.ngErrorLogger||ly}(t);r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Qa(t);for(;n&&Qa(n);)n=Qa(n);return n||null}}const xd={name:"custom-elements"},Rd={name:"no-errors-schema"},cy=/^>|^->|<!--|-->|--!>|<!-$/g,uy=/(<|>)/;const kd=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Bt))();function Nd(e){return e.ownerDocument.defaultView}function Ld(e){return e.ownerDocument}function Bd(e){return e.ownerDocument.body}function br(e){return e instanceof Function?e():e}var Cr=(()=>((Cr=Cr||{})[Cr.Important=1]="Important",Cr[Cr.DashCase=2]="DashCase",Cr))();let Za;function Ya(e,t){return Za(e,t)}function es(e){const t=e[3];return Gn(t)?t[3]:t}function $d(e){return function Hd(e){let t=Kn(e)?e:Ka(e);for(;t&&!(512&t[2]);)t=es(t);return t}(e)[8]}function Xa(e){return Ud(e[13])}function Ja(e){return Ud(e[4])}function Ud(e){for(;null!==e&&!Gn(e);)e=e[4];return e}function ho(e,t,n,r,o){if(null!=r){let a,h=!1;Gn(r)?a=r:Kn(r)&&(h=!0,r=r[0]);const y=Ln(r);0===e&&null!==n?null==o?Zd(t,n,y):Gr(t,n,y,o||null,!0):1===e&&null!==n?Gr(t,n,y,o||null,!0):2===e?nh(t,y,h):3===e&&t.destroyNode(y),null!=a&&function Ay(e,t,n,r,o){const a=n[7];a!==Ln(n)&&ho(t,e,r,a,o);for(let y=10;y<n.length;y++){const M=n[y];ts(M[1],M,e,t,r,a)}}(t,e,a,n,o)}}function qa(e,t){return Rn(e)?e.createText(t):e.createTextNode(t)}function zd(e,t,n){Rn(e)?e.setValue(t,n):t.textContent=n}function _y(e,t){return e.createComment(function Fd(e){return e.replace(cy,t=>t.replace(uy,"\u200b$1\u200b"))}(t))}function el(e,t,n){return Rn(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Wd(e,t){const n=e[9],r=n.indexOf(t),o=t[3];1024&t[2]&&(t[2]&=-1025,P(o,-1)),n.splice(r,1)}function tl(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const o=r[17];null!==o&&o!==e&&Wd(o,r),t>0&&(e[n-1][4]=r[4]);const a=xs(e,10+t);!function yy(e,t){ts(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 Kd(e,t){if(!(256&t[2])){const n=t[11];Rn(n)&&n.destroyNode&&ts(e,t,n,3,null,null),function Cy(e){let t=e[13];if(!t)return nl(e[1],e);for(;t;){let n=null;if(Kn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Kn(t)&&nl(t[1],t),t=t[3];null===t&&(t=e),Kn(t)&&nl(t[1],t),n=t&&t[4]}t=n}}(t)}}function nl(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function wy(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 Bo)){const a=n[r+1];if(Array.isArray(a))for(let h=0;h<a.length;h+=2){const y=o[a[h]],M=a[h+1];ti(4,y,M);try{M.call(y)}finally{ti(5,y,M)}}else{ti(4,o,a);try{a.call(o)}finally{ti(5,o,a)}}}}}(e,t),function Ty(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],y="function"==typeof h?h(t):Ln(t[h]),M=r[o=n[a+2]],L=n[a+3];"boolean"==typeof L?y.removeEventListener(n[a],M,L):L>=0?r[o=L]():r[o=-L].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&&Rn(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&Gn(t[3])){n!==t[3]&&Wd(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function Gd(e,t,n){return Qd(e,t.parent,n)}function Qd(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 ie(r,n)}function Gr(e,t,n,r,o){Rn(e)?e.insertBefore(t,n,r,o):t.insertBefore(n,r,o)}function Zd(e,t,n){Rn(e)?e.appendChild(t,n):t.appendChild(n)}function Yd(e,t,n,r,o){null!==r?Gr(e,t,n,r,o):Zd(e,t,n)}function Vs(e,t){return Rn(e)?e.parentNode(t):t.parentNode}function Xd(e,t,n){return qd(e,t,n)}function Jd(e,t,n){return 40&e.type?ie(e,n):null}let il,qd=Jd;function eh(e,t){qd=e,il=t}function Hs(e,t,n,r){const o=Gd(e,r,t),a=t[11],y=Xd(r.parent||t[6],r,t);if(null!=o)if(Array.isArray(n))for(let M=0;M<n.length;M++)Yd(a,o,n[M],y,!1);else Yd(a,o,n,y,!1);void 0!==il&&il(a,r,t,n,o)}function $s(e,t){if(null!==t){const n=t.type;if(3&n)return ie(t,e);if(4&n)return rl(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return $s(e,r);{const o=e[t.index];return Gn(o)?rl(-1,o):Ln(o)}}if(32&n)return Ya(t,e)()||Ln(e[t.index]);{const r=th(e,t);return null!==r?Array.isArray(r)?r[0]:$s(es(e[16]),r):$s(e,t.next)}}return null}function th(e,t){return null!==t?e[16][6].projection[t.projection]:null}function rl(e,t){const n=10+e+1;if(n<t.length){const r=t[n],o=r[1].firstChild;if(null!==o)return $s(r,o)}return t[7]}function nh(e,t,n){const r=Vs(e,t);r&&function My(e,t,n,r){Rn(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}function ol(e,t,n,r,o,a,h){for(;null!=n;){const y=r[n.index],M=n.type;if(h&&0===t&&(y&&vi(Ln(y),r),n.flags|=4),64!=(64&n.flags))if(8&M)ol(e,t,n.child,r,o,a,!1),ho(t,e,o,y,a);else if(32&M){const L=Ya(n,r);let G;for(;G=L();)ho(t,e,o,G,a);ho(t,e,o,y,a)}else 16&M?ih(e,t,r,n,o,a):ho(t,e,o,y,a);n=h?n.projectionNext:n.next}}function ts(e,t,n,r,o,a){ol(n,r,e.firstChild,t,o,a,!1)}function ih(e,t,n,r,o,a){const h=n[16],M=h[6].projection[r.projection];if(Array.isArray(M))for(let L=0;L<M.length;L++)ho(t,e,o,M[L],a);else ol(e,t,M,h[3],o,a,!0)}function rh(e,t,n){Rn(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function sl(e,t,n){Rn(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function oh(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 sh="ng-template";function Oy(e,t,n){let r=0;for(;r<e.length;){let o=e[r++];if(n&&"class"===o){if(o=e[r],-1!==oh(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 ah(e){return 4===e.type&&e.value!==sh}function xy(e,t,n){return t===(4!==e.type||n?e.value:sh)}function Ry(e,t,n){let r=4;const o=e.attrs||[],a=function Ny(e){for(let t=0;t<e.length;t++)if(Bu(e[t]))return t;return e.length}(o);let h=!1;for(let y=0;y<t.length;y++){const M=t[y];if("number"!=typeof M){if(!h)if(4&r){if(r=2|1&r,""!==M&&!xy(e,M,n)||""===M&&1===t.length){if(cr(r))return!1;h=!0}}else{const L=8&r?M:t[++y];if(8&r&&null!==e.attrs){if(!Oy(e.attrs,L,n)){if(cr(r))return!1;h=!0}continue}const Ce=Fy(8&r?"class":M,o,ah(e),n);if(-1===Ce){if(cr(r))return!1;h=!0;continue}if(""!==L){let ze;ze=Ce>a?"":o[Ce+1].toLowerCase();const it=8&r?ze:null;if(it&&-1!==oh(it,L,0)||2&r&&L!==ze){if(cr(r))return!1;h=!0}}}}else{if(!h&&!cr(r)&&!cr(M))return!1;if(h&&cr(M))continue;h=!1,r=M|1&r}}return cr(r)||h}function cr(e){return 0==(1&e)}function Fy(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 y=t[++o];for(;"string"==typeof y;)y=t[++o];continue}if(4===h)break;if(0===h){o+=4;continue}}o+=a?1:2}return-1}return function Ly(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 lh(e,t,n=!1){for(let r=0;r<t.length;r++)if(Ry(e,t[r],n))return!0;return!1}function By(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 ch(e,t){return e?":not("+t.trim()+")":t}function jy(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 y=e[++n];o+="["+h+(y.length>0?'="'+y+'"':"")+"]"}else 8&r?o+="."+h:4&r&&(o+=" "+h);else""!==o&&!cr(h)&&(t+=ch(a,o),o=""),r=h,a=a||!cr(r);n++}return""!==o&&(t+=ch(a,o)),t}const fn={};function uh(e){dh(B(),Tt(),sn()+e,Pt())}function dh(e,t,n,r){if(!r)if(3==(3&t[2])){const a=e.preOrderCheckHooks;null!==a&&Li(t,a,n)}else{const a=e.preOrderHooks;null!==a&&Ji(t,a,0,n)}jn(n)}function Us(e,t){return e<<17|t<<2}function ur(e){return e>>17&32767}function al(e){return 2|e}function Fr(e){return(131068&e)>>2}function ll(e,t){return-131069&e|t<<2}function cl(e){return 1|e}const _l=(()=>Promise.resolve(null))();function Eh(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];yt(o),h.contentQueries(2,t[a],a)}}}function ns(e,t,n,r,o,a,h,y,M,L){const G=t.blueprint.slice();return G[0]=o,G[2]=140|r,F(G),G[3]=G[15]=e,G[8]=n,G[10]=h||e&&e[10],G[11]=y||e&&e[11],G[12]=M||e&&e[12]||null,G[9]=L||e&&e[9]||null,G[6]=a,G[16]=2==t.type?e[16]:G,G}function fo(e,t,n,r,o){let a=e.data[t];if(null===a)a=yl(e,t,n,r,o),function ee(){return E.lFrame.inI18n}()&&(a.flags|=64);else if(64&a.type){a.type=n,a.value=r,a.attrs=o;const h=j();a.injectorIndex=null===h?-1:h.injectorIndex}return de(a,!0),a}function yl(e,t,n,r,o){const a=I(),h=Ne(),M=e.data[t]=function iv(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=M),null!==a&&(h?null==a.child&&null!==M.parent&&(a.child=M):null===a.next&&(a.next=M)),M}function po(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 is(e,t,n){Gt(t);try{const r=e.viewQuery;null!==r&&Sl(1,r,n);const o=e.template;null!==o&&Dh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Eh(e,t),e.staticViewQueries&&Sl(2,e.viewQuery,n);const a=e.components;null!==a&&function ev(e,t){for(let n=0;n<t.length;n++)Cv(e,t[n])}(t,a)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,It()}}function mo(e,t,n,r){const o=t[2];if(256==(256&o))return;Gt(t);const a=Pt();try{F(t),Jt(e.bindingStartIndex),null!==n&&Dh(e,t,n,2,r);const h=3==(3&o);if(!a)if(h){const L=e.preOrderCheckHooks;null!==L&&Li(t,L,null)}else{const L=e.preOrderHooks;null!==L&&Ji(t,L,0,null),Ur(t,0)}if(function vv(e){for(let t=Xa(e);null!==t;t=Ja(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])&&P(a,1),o[2]|=1024}}}(t),function yv(e){for(let t=Xa(e);null!==t;t=Ja(t))for(let n=10;n<t.length;n++){const r=t[n],o=r[1];wn(r)&&mo(o,r,o.template,r[8])}}(t),null!==e.contentQueries&&Eh(e,t),!a)if(h){const L=e.contentCheckHooks;null!==L&&Li(t,L)}else{const L=e.contentHooks;null!==L&&Ji(t,L,1),Ur(t,1)}!function Jy(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)jn(~o);else{const a=o,h=n[++r],y=n[++r];Y(h,a),y(2,t[a])}}}finally{jn(-1)}}(e,t);const y=e.components;null!==y&&function qy(e,t){for(let n=0;n<t.length;n++)bv(e,t[n])}(t,y);const M=e.viewQuery;if(null!==M&&Sl(2,M,r),!a)if(h){const L=e.viewCheckHooks;null!==L&&Li(t,L)}else{const L=e.viewHooks;null!==L&&Ji(t,L,2),Ur(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,P(t[3],-1))}finally{It()}}function tv(e,t,n,r){const o=t[10],a=!Pt(),h=Tn(t);try{a&&!h&&o.begin&&o.begin(),h&&is(e,t,r),mo(e,t,n,r)}finally{a&&!h&&o.end&&o.end()}}function Dh(e,t,n,r,o){const a=sn(),h=2&r;try{jn(-1),h&&t.length>20&&dh(e,t,20,Pt()),ti(h?2:0,o),n(r,o)}finally{jn(a),ti(h?3:1,o)}}function Th(e,t,n){if(Ci(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 vl(e,t,n){!qn()||(function uv(e,t,n,r){const o=n.directiveStart,a=n.directiveEnd;e.firstCreatePass||Vo(n,t),vi(r,t);const h=n.initialInputs;for(let y=o;y<a;y++){const M=e.data[y],L=zn(M);L&&mv(t,n,M);const G=Ho(t,e,y,n);vi(G,t),null!==h&&gv(0,y-o,G,M,0,h),L&&(Rt(n.index,t)[8]=G)}}(e,t,n,ie(n,t)),128==(128&n.flags)&&function dv(e,t,n){const r=n.directiveStart,o=n.directiveEnd,h=n.index,y=function te(){return E.lFrame.currentDirectiveIndex}();try{jn(h);for(let M=r;M<o;M++){const L=e.data[M],G=t[M];xe(M),(null!==L.hostBindings||0!==L.hostVars||null!==L.hostAttrs)&&xh(L,G)}}finally{jn(-1),xe(y)}}(e,t,n))}function bl(e,t,n=ie){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],y=-1===h?n(t,e):e[h];e[o++]=y}}}function wh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ks(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Ks(e,t,n,r,o,a,h,y,M,L){const G=20+r,Ce=G+o,ze=function nv(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:fn);return n}(G,Ce),it="function"==typeof L?L():L;return ze[1]={type:e,blueprint:ze,template:n,queries:null,viewQuery:y,declTNode:t,data:ze.slice().fill(null,G),bindingStartIndex:G,expandoStartIndex:Ce,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:M,consts:it,incompleteFirstPass:!1}}function Sh(e,t,n){if(Rn(e))return e.selectRootElement(t,n===ht.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}function Ih(e,t,n,r){const o=Bh(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&jh(e).push(r,o.length-1))}function Ah(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 ji(e,t,n,r,o,a,h,y){const M=ie(t,n);let G,L=t.inputs;!y&&null!=L&&(G=L[r])?($h(e,n,G,r,o),wi(t)&&function sv(e,t){const n=Rt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function ov(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,Rn(a)?a.setProperty(M,r,o):Ea(r)||(M.setProperty?M.setProperty(r,o):M[r]=o))}function Cl(e,t,n,r){let o=!1;if(qn()){const a=function hv(e,t,n){const r=e.directiveRegistry;let o=null;if(r)for(let a=0;a<r.length;a++){const h=r[a];lh(n,h.selectors,!1)&&(o||(o=[]),As(Vo(n,t),e,h.type),zn(h)?(Rh(e,n),o.unshift(h)):o.push(h))}return o}(e,t,n),h=null===r?null:{"":-1};if(null!==a){o=!0,Fh(n,e.data.length,a.length);for(let G=0;G<a.length;G++){const Ce=a[G];Ce.providersResolver&&Ce.providersResolver(Ce)}let y=!1,M=!1,L=po(e,t,a.length,null);for(let G=0;G<a.length;G++){const Ce=a[G];n.mergedAttrs=Ms(n.mergedAttrs,Ce.hostAttrs),kh(e,n,t,L,Ce),pv(L,Ce,h),null!==Ce.contentQueries&&(n.flags|=8),(null!==Ce.hostBindings||null!==Ce.hostAttrs||0!==Ce.hostVars)&&(n.flags|=128);const ze=Ce.type.prototype;!y&&(ze.ngOnChanges||ze.ngOnInit||ze.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),y=!0),!M&&(ze.ngOnChanges||ze.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),M=!0),L++}!function rv(e,t){const r=t.directiveEnd,o=e.data,a=t.attrs,h=[];let y=null,M=null;for(let L=t.directiveStart;L<r;L++){const G=o[L],Ce=G.inputs,ze=null===a||ah(t)?null:_v(Ce,a);h.push(ze),y=Ah(Ce,L,y),M=Ah(G.outputs,L,M)}null!==y&&(y.hasOwnProperty("class")&&(t.flags|=16),y.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=h,t.inputs=y,t.outputs=M}(e,n)}h&&function fv(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 U(-301,`Export of name '${t[o+1]}' not found!`);r.push(t[o],a)}}}(n,r,h)}return n.mergedAttrs=Ms(n.mergedAttrs,n.attrs),o}function Oh(e,t,n,r,o,a){const h=a.hostBindings;if(h){let y=e.hostBindingOpCodes;null===y&&(y=e.hostBindingOpCodes=[]);const M=~t.index;(function cv(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(y)!=M&&y.push(M),y.push(r,o,h)}}function xh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Rh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function pv(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;zn(t)&&(n[""]=e)}}function Fh(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function kh(e,t,n,r,o){e.data[r]=o;const a=o.factory||(o.factory=fi(o.type)),h=new Bo(a,zn(o),null);e.blueprint[r]=h,n[r]=h,Oh(e,t,0,r,po(e,n,o.hostVars,fn),o)}function mv(e,t,n){const r=ie(t,e),o=wh(n),a=e[10],h=Gs(e,ns(e,o,null,n.onPush?64:16,r,t,a,a.createRenderer(r,n),null,null));e[t.index]=h}function Er(e,t,n,r,o,a){const h=ie(e,t);El(t[11],h,a,e.value,n,r,o)}function El(e,t,n,r,o,a,h){if(null==a)Rn(e)?e.removeAttribute(t,o,n):t.removeAttribute(o);else{const y=null==h?$(a):h(a,r||"",o);Rn(e)?e.setAttribute(t,o,y,n):n?t.setAttributeNS(n,o,y):t.setAttribute(o,y)}}function gv(e,t,n,r,o,a){const h=a[t];if(null!==h){const y=r.setInput;for(let M=0;M<h.length;){const L=h[M++],G=h[M++],Ce=h[M++];null!==y?r.setInput(n,Ce,L,G):n[G]=Ce}}}function _v(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 Nh(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function bv(e,t){const n=Rt(t,e);if(wn(n)){const r=n[1];80&n[2]?mo(r,n,r.template,n[8]):n[5]>0&&Dl(n)}}function Dl(e){for(let r=Xa(e);null!==r;r=Ja(r))for(let o=10;o<r.length;o++){const a=r[o];if(1024&a[2]){const h=a[1];mo(h,a,h.template,a[8])}else a[5]>0&&Dl(a)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const o=Rt(n[r],e);wn(o)&&o[5]>0&&Dl(o)}}function Cv(e,t){const n=Rt(t,e),r=n[1];(function Ev(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),is(r,n,n[8])}function Gs(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Tl(e){for(;e;){e[2]|=64;const t=es(e);if(Sr(e)&&!t)return e;e=t}return null}function wl(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=Ka(n),o=r[1];tv(o,r,o.template,n)}}function Ml(e,t,n){const r=t[10];r.begin&&r.begin();try{mo(e,t,e.template,n)}catch(o){throw Hh(t,o),o}finally{r.end&&r.end()}}function Lh(e){wl(e[8])}function Sl(e,t,n){yt(0),t(e,n)}const Mv=_l;function Bh(e){return e[7]||(e[7]=[])}function jh(e){return e.cleanup||(e.cleanup=[])}function Vh(e,t,n){return(null===e||zn(e))&&(n=function x(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Hh(e,t){const n=e[9],r=n?n.get(qo,null):null;r&&r.handleError(t)}function $h(e,t,n,r,o){for(let a=0;a<n.length;){const h=n[a++],y=n[a++],M=t[h],L=e.data[h];null!==L.setInput?L.setInput(M,o,r,y):M[y]=o}}function kr(e,t,n){const r=R(t,e);zd(e[11],r,n)}function Qs(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 y=t[h];"number"==typeof y?a=y:1==a?o=g(o,y):2==a&&(r=g(r,y+": "+t[++h]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Uh(e){const t=Sd(e);Ml(t[1],t,e)}function zh(e){!function Dv(e,t){if(0===e.flags&&e.clean==_l){let r;e.flags|=t,e.clean=new Promise(o=>r=o),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,wl(e)),2&e.flags){e.flags&=-3;const o=e.playerHandler;o&&o.flushPlayers()}e.clean=_l,r(null)})}}(Tl(Sd(e))[8],1)}const Zs=new Yn("INJECTOR",-1);class Wh{get(t,n=Vr){if(n===Vr){const r=new Error(`NullInjectorError: No provider for ${S(t)}!`);throw r.name="NullInjectorError",r}return n}}const Il=new Yn("Set Injector scope."),rs={},Sv={};let Al;function Kh(){return void 0===Al&&(Al=new Wh),Al}function Pl(e,t=null,n=null,r){const o=Gh(e,t,n,r);return o._resolveInjectorDefTypes(),o}function Gh(e,t=null,n=null,r){return new Iv(e,n,t||Kh(),r)}class Iv{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&&yr(n,y=>this.processProvider(y,t,n)),yr([t],y=>this.processInjectorType(y,[],a)),this.records.set(Zs,go(void 0,this));const h=this.records.get(Il);this.scope=null!=h?h.value:null,this.source=o||("object"==typeof t?null:S(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=Vr,r=N.Default){this.assertNotDestroyed();const o=Ra(this),a=ue(void 0);try{if(!(r&N.SkipSelf)){let y=this.records.get(t);if(void 0===y){const M=function Nv(e){return"function"==typeof e||"object"==typeof e&&e instanceof Yn}(t)&&we(t);y=M&&this.injectableDefInScope(M)?go(Ol(t),rs):null,this.records.set(t,y)}if(null!=y)return this.hydrate(t,y)}return(r&N.Self?Kh():this.parent).get(t,n=r&N.Optional&&n===Vr?null:n)}catch(h){if("NullInjectorError"===h.name){if((h[Fs]=h[Fs]||[]).unshift(S(t)),o)throw h;return function D_(e,t,n,r){const o=e[Fs];throw t[nd]&&o.unshift(t[nd]),e.message=function T_(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=S(t);if(Array.isArray(t))o=t.map(S).join(" -> ");else if("object"==typeof t){let a=[];for(let h in t)if(t.hasOwnProperty(h)){let y=t[h];a.push(h+":"+("string"==typeof y?JSON.stringify(y):S(y)))}o=`{${a.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(__,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Fs]=null,e}(h,t,"R3InjectorError",this.source)}throw h}finally{ue(a),Ra(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,o)=>t.push(S(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=O(t)))return!1;let o=dt(t);const a=null==o&&t.ngModule||void 0,h=void 0===a?t:a,y=-1!==r.indexOf(h);if(void 0!==a&&(o=dt(a)),null==o)return!1;if(null!=o.imports&&!y){let G;r.push(h);try{yr(o.imports,Ce=>{this.processInjectorType(Ce,n,r)&&(void 0===G&&(G=[]),G.push(Ce))})}finally{}if(void 0!==G)for(let Ce=0;Ce<G.length;Ce++){const{ngModule:ze,providers:it}=G[Ce];yr(it,gt=>this.processProvider(gt,ze,it||Mt))}}this.injectorDefTypes.add(h);const M=fi(h)||(()=>new h);this.records.set(h,go(M,rs));const L=o.providers;if(null!=L&&!y){const G=t;yr(L,Ce=>this.processProvider(Ce,G,L))}return void 0!==a&&void 0!==t.providers}processProvider(t,n,r){let o=_o(t=O(t))?t:O(t&&t.provide);const a=function Pv(e,t,n){return Zh(e)?go(void 0,e.useValue):go(Qh(e),rs)}(t);if(_o(t)||!0!==t.multi)this.records.get(o);else{let h=this.records.get(o);h||(h=go(void 0,rs,!0),h.factory=()=>ka(h.multi),this.records.set(o,h)),o=t,h.multi.push(t)}this.records.set(o,a)}hydrate(t,n){return n.value===rs&&(n.value=Sv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function kv(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=O(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Ol(e){const t=we(e),n=null!==t?t.factory:fi(e);if(null!==n)return n;if(e instanceof Yn)throw new Error(`Token ${S(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function Av(e){const t=e.length;if(t>0){const r=zo(t,"?");throw new Error(`Can't resolve all parameters for ${S(e)}: (${r.join(", ")}).`)}const n=function ye(e){const t=e&&(e[bt]||e[lt]);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 Error("unreachable")}function Qh(e,t,n){let r;if(_o(e)){const o=O(e);return fi(o)||Ol(o)}if(Zh(e))r=()=>O(e.useValue);else if(function xv(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...ka(e.deps||[]));else if(function Ov(e){return!(!e||!e.useExisting)}(e))r=()=>si(O(e.useExisting));else{const o=O(e&&(e.useClass||e.provide));if(!function Fv(e){return!!e.deps}(e))return fi(o)||Ol(o);r=()=>new o(...ka(e.deps))}return r}function go(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zh(e){return null!==e&&"object"==typeof e&&v_ in e}function _o(e){return"function"==typeof e}let Vi=(()=>{class e{static create(n,r){var o;if(Array.isArray(n))return Pl({name:""},r,n,"");{const a=null!==(o=n.name)&&void 0!==o?o:"";return Pl({name:a},n.parent,n.providers,a)}}}return e.THROW_IF_NOT_FOUND=Vr,e.NULL=new Wh,e.\u0275prov=Ye({token:e,providedIn:"any",factory:()=>si(Zs)}),e.__NG_ELEMENT_ID__=-1,e})();function xl(e){Fl(e);const t=yi(e);return null===t?null:(void 0===t.component&&(t.component=function iy(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function Yh(e){Fl(e);const t=yi(e);return null===t?null:t.lView[8]}function Xh(e){const t=yi(e);if(null===t)return null;let r,n=t.lView;for(;2===n[1].type&&(r=es(n));)n=r;return 512&n[2]?null:n[8]}function Jh(e){return[...$d(e).components]}function qh(e){const t=yi(e);return null===t?Vi.NULL:new eo(t.lView[1].data[t.nodeIndex],t.lView)}function ef(e){if(e instanceof Text)return[];const t=yi(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=Od(o,n,!1)),null===t.directives?[]:[...t.directives]):[]}function Bv(e){const{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");const n=He(t);if(n)return{inputs:n.inputs,outputs:n.outputs,encapsulation:n.encapsulation,changeDetection:n.onPush?be.OnPush:be.Default};const r=ut(t);return r?{inputs:r.inputs,outputs:r.outputs}:null}function Rl(e){return yi(e).native}function tf(e){Fl(e);const t=yi(e);if(null===t)return[];const n=t.lView,o=n[7],a=n[1].cleanup,h=[];if(a&&o)for(let y=0;y<a.length;){const M=a[y++],L=a[y++];if("string"==typeof M){const G=M,Ce=Ln(n[L]),ze=o[a[y++]],it=a[y++],gt="boolean"==typeof it||it>=0?"dom":"output",At="boolean"==typeof it&&it;e==Ce&&h.push({element:e,name:G,callback:ze,useCapture:At,type:gt})}}return h.sort(Vv),h}function Vv(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function Hv(e){return void 0!==e.type&&void 0!==e.template&&void 0!==e.declaredInputs}function Fl(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}function $v(e){zh(e),Jh(e).forEach(t=>Uh(t))}let rf=!1;function Uv(){rf||(rf=!0,er("\u0275setProfiler",Zi),er("getDirectiveMetadata",Bv),er("getComponent",xl),er("getContext",Yh),er("getListeners",tf),er("getOwningComponent",Xh),er("getHostElement",Rl),er("getInjector",qh),er("getRootComponents",Jh),er("getDirectives",ef),er("applyChanges",$v))}function er(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=Bt;if(n){let r=n.ng;r||(r=n.ng={}),r[e]=t}}}function zv(e,t={}){const n=t.rendererFactory||sr,r=t.sanitizer||null,o=He(e);o.type!=e&&(o.type=e);const a=o.selectors[0][0],y=Sh(n.createRenderer(null,null),t.host||a,o.encapsulation),M=o.onPush?576:528,L=lf(t.scheduler,t.playerHandler),G=n.createRenderer(y,o),Ce=Ks(0,null,null,1,0,null,null,null,null,null),ze=ns(null,Ce,L,M,null,null,n,G,null,t.injector||null);let it;Gt(ze);try{n.begin&&n.begin(),it=af(sf(y,o,ze,n,G,r),o,ze,L,t.hostFeatures||null),is(Ce,ze,null),mo(Ce,ze,null,null)}finally{It(),n.end&&n.end()}return it}function sf(e,t,n,r,o,a){const h=n[1];n[20]=e;const M=fo(h,20,2,"#host",null),L=M.mergedAttrs=t.hostAttrs;null!==L&&(Qs(M,L,!0),null!==e&&(ws(o,e,L),null!==M.classes&&sl(o,e,M.classes),null!==M.styles&&rh(o,e,M.styles)));const G=r.createRenderer(e,t),Ce=ns(n,wh(t),null,t.onPush?64:16,n[20],M,r,G,a||null,null);return h.firstCreatePass&&(As(Vo(M,n),h,t.type),Rh(h,M),Fh(M,n.length,1)),Gs(n,Ce),n[20]=Ce}function af(e,t,n,r,o){const a=n[1],h=function lv(e,t,n){const r=f();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),kh(e,r,t,po(e,t,1,null),n));const o=Ho(t,e,r.directiveStart,r);vi(o,t);const a=ie(r,t);return a&&vi(a,t),o}(a,n,t);if(r.components.push(h),e[8]=h,o&&o.forEach(M=>M(h,t)),t.contentQueries){const M=f();t.contentQueries(1,h,M.directiveStart)}const y=f();return!a.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(jn(y.index),Oh(n[1],y,0,y.directiveStart,y.directiveEnd,t),xh(t,h)),h}function lf(e,t){return{components:[],scheduler:e||kd,clean:Mv,playerHandler:t||null,flags:0}}function cf(e,t){Xi(Ka(e)[1],f())}function Wv(e){return $d(e).clean}function uf(e){return Object.getPrototypeOf(e.prototype).constructor}function kl(e){let t=uf(e.type),n=!0;const r=[e];for(;t;){let o;if(zn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");o=t.\u0275dir}if(o){if(n){r.push(o);const h=e;h.inputs=Nl(e.inputs),h.declaredInputs=Nl(e.declaredInputs),h.outputs=Nl(e.outputs);const y=o.hostBindings;y&&Zv(e,y);const M=o.viewQuery,L=o.contentQueries;if(M&&Gv(e,M),L&&Qv(e,L),T(e.inputs,o.inputs),T(e.declaredInputs,o.declaredInputs),T(e.outputs,o.outputs),zn(o)&&o.data.animation){const G=e.data;G.animation=(G.animation||[]).concat(o.data.animation)}}const a=o.features;if(a)for(let h=0;h<a.length;h++){const y=a[h];y&&y.ngInherit&&y(e),y===kl&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Kv(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=Ms(o.hostAttrs,n=Ms(n,o.hostAttrs))}}(r)}function Nl(e){return e===zt?{}:e===Mt?[]:e}function Gv(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function Qv(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,a)=>{t(r,o,a),n(r,o,a)}:t}function Zv(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}const Yv=["providersResolver"],Xv=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function df(e){let n,t=uf(e.type);n=zn(e)?t.\u0275cmp:t.\u0275dir;const r=e;for(const o of Yv)r[o]=n[o];if(zn(n))for(const o of Xv)r[o]=n[o]}let Ys=null;function yo(){if(!Ys){const e=Bt.Symbol;if(e&&e.iterator)Ys=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&&(Ys=r)}}}return Ys}function hf(e,t){const n=os(e),r=os(t);return n&&r?function Jv(e,t,n){const r=e[yo()](),o=t[yo()]();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,hf):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}function os(e){return!!Ll(e)&&(Array.isArray(e)||!(e instanceof Map)&&yo()in e)}function Ll(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Dr(e,t,n){return e[t]=n}function ss(e,t){return e[t]}function bi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Qr(e,t,n,r){const o=bi(e,t,n);return bi(e,t+1,r)||o}function Xs(e,t,n,r,o){const a=Qr(e,t,n,r);return bi(e,t+2,o)||a}function tr(e,t,n,r,o,a){const h=Qr(e,t,n,r);return Qr(e,t+2,o,a)||h}function Bl(e,t,n,r){const o=Tt();return bi(o,tn(),t)&&(B(),Er(Pn(),o,e,t,n,r)),Bl}function vo(e,t){let n=!1,r=un();for(let a=1;a<t.length;a+=2)n=bi(e,r++,t[a])||n;if(Jt(r),!n)return fn;let o=t[0];for(let a=1;a<t.length;a+=2)o+=$(t[a])+t[a+1];return o}function bo(e,t,n,r){return bi(e,tn(),n)?t+$(n)+r:fn}function Co(e,t,n,r,o,a){const y=Qr(e,un(),n,o);return dn(2),y?t+$(n)+r+$(o)+a:fn}function Eo(e,t,n,r,o,a,h,y){const L=Xs(e,un(),n,o,h);return dn(3),L?t+$(n)+r+$(o)+a+$(h)+y:fn}function Do(e,t,n,r,o,a,h,y,M,L){const Ce=tr(e,un(),n,o,h,M);return dn(4),Ce?t+$(n)+r+$(o)+a+$(h)+y+$(M)+L:fn}function To(e,t,n,r,o,a,h,y,M,L,G,Ce){const ze=un();let it=tr(e,ze,n,o,h,M);return it=bi(e,ze+4,G)||it,dn(5),it?t+$(n)+r+$(o)+a+$(h)+y+$(M)+L+$(G)+Ce:fn}function wo(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it){const gt=un();let At=tr(e,gt,n,o,h,M);return At=Qr(e,gt+4,G,ze)||At,dn(6),At?t+$(n)+r+$(o)+a+$(h)+y+$(M)+L+$(G)+Ce+$(ze)+it:fn}function Mo(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At){const Ft=un();let Kt=tr(e,Ft,n,o,h,M);return Kt=Xs(e,Ft+4,G,ze,gt)||Kt,dn(7),Kt?t+$(n)+r+$(o)+a+$(h)+y+$(M)+L+$(G)+Ce+$(ze)+it+$(gt)+At:fn}function So(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At,Ft,Kt){const Ct=un();let qt=tr(e,Ct,n,o,h,M);return qt=tr(e,Ct+4,G,ze,gt,Ft)||qt,dn(8),qt?t+$(n)+r+$(o)+a+$(h)+y+$(M)+L+$(G)+Ce+$(ze)+it+$(gt)+At+$(Ft)+Kt:fn}function jl(e,t,n,r,o,a){const h=Tt(),y=bo(h,t,n,r);return y!==fn&&Er(Pn(),h,e,y,o,a),jl}function Vl(e,t,n,r,o,a,h,y){const M=Tt(),L=Co(M,t,n,r,o,a);return L!==fn&&Er(Pn(),M,e,L,h,y),Vl}function Hl(e,t,n,r,o,a,h,y,M,L){const G=Tt(),Ce=Eo(G,t,n,r,o,a,h,y);return Ce!==fn&&Er(Pn(),G,e,Ce,M,L),Hl}function $l(e,t,n,r,o,a,h,y,M,L,G,Ce){const ze=Tt(),it=Do(ze,t,n,r,o,a,h,y,M,L);return it!==fn&&Er(Pn(),ze,e,it,G,Ce),$l}function Ul(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it){const gt=Tt(),At=To(gt,t,n,r,o,a,h,y,M,L,G,Ce);return At!==fn&&Er(Pn(),gt,e,At,ze,it),Ul}function zl(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At){const Ft=Tt(),Kt=wo(Ft,t,n,r,o,a,h,y,M,L,G,Ce,ze,it);return Kt!==fn&&Er(Pn(),Ft,e,Kt,gt,At),zl}function Wl(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At,Ft,Kt){const Ct=Tt(),qt=Mo(Ct,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At);return qt!==fn&&Er(Pn(),Ct,e,qt,Ft,Kt),Wl}function Kl(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At,Ft,Kt,Ct,qt){const Cn=Tt(),Fn=So(Cn,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At,Ft,Kt);return Fn!==fn&&Er(Pn(),Cn,e,Fn,Ct,qt),Kl}function Gl(e,t,n,r){const o=Tt(),a=vo(o,t);return a!==fn&&Er(Pn(),o,e,a,n,r),Gl}function ff(e,t,n,r,o,a,h,y){const M=Tt(),L=B(),G=e+20,Ce=L.firstCreatePass?function eb(e,t,n,r,o,a,h,y,M){const L=t.consts,G=fo(t,e,4,h||null,cn(L,y));Cl(t,n,G,cn(L,M)),Xi(t,G);const Ce=G.tViews=Ks(2,G,r,o,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,L);return null!==t.queries&&(t.queries.template(t,G),Ce.queries=t.queries.embeddedTView(G)),G}(G,L,M,t,n,r,o,a,h):L.data[G];de(Ce,!1);const ze=M[11].createComment("");Hs(L,M,ze,Ce),vi(ze,M),Gs(M,M[G]=Nh(ze,M,ze,Ce)),hi(Ce)&&vl(L,M,Ce),null!=h&&bl(M,Ce,y)}function pf(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function mf(e){return vt(function pt(){return E.lFrame.contextLView}(),20+e)}const gf={\u0275\u0275defineInjectable:Ye,\u0275\u0275defineInjector:pe,\u0275\u0275inject:si,\u0275\u0275invalidFactoryDep:Fa,resolveForwardRef:O};const nb=b({provide:String,useValue:b});function _f(e){return void 0!==e.useClass}function yf(e){return void 0!==e.useFactory}const sb=ro("Injectable",void 0,void 0,void 0,(e,t)=>function tb(e,t){let n=null,r=null;e.hasOwnProperty(bt)||Object.defineProperty(e,bt,{get:()=>(null===n&&(n=ri().compileInjectable(gf,`ng:///${e.name}/\u0275prov.js`,function ob(e,t){const n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(_f(n)||yf(n))&&void 0!==n.deps&&(r.deps=od(n.deps)),_f(n)?r.useClass=n.useClass:function ib(e){return nb in e}(n)?r.useValue=n.useValue:yf(n)?r.useFactory=n.useFactory:function rb(e){return void 0!==e.useExisting}(n)&&(r.useExisting=n.useExisting),r}(e,t))),n)}),e.hasOwnProperty(oe)||Object.defineProperty(e,oe,{get:()=>{if(null===r){const o=ri();r=o.compileFactory(gf,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Ns(e),target:o.FactoryTarget.Injectable})}return r},configurable:!0})}(e,t));function Ql(e){return e.length>1?" ("+function ab(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=>S(r.token)).join(" -> ")+")":""}function Zl(e,t,n,r){const o=[t],a=n(o),h=r?function sy(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,r=Error(n);return r[Ga]=t,r}(a,r):Error(a);return h.addKey=lb,h.keys=o,h.injectors=[e],h.constructResolvingMessage=n,h[Ga]=r,h}function lb(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function vf(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(S).join(" "):"?")}return Error("Cannot resolve all parameters for '"+S(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+S(e)+"' is decorated with Injectable.")}function pb(e,t){return Error(`Cannot mix multi providers and regular providers, got: ${e} ${t}`)}class Nr{constructor(t,n){if(this.token=t,this.id=n,!t)throw new Error("Token must be defined!");this.displayName=S(this.token)}static get(t){return bf.get(O(t))}static get numberOfKeys(){return bf.numberOfKeys}}class mb{constructor(){this._allKeys=new Map}get(t){if(t instanceof Nr)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const n=new Nr(t,Nr.numberOfKeys);return this._allKeys.set(t,n),n}get numberOfKeys(){return this._allKeys.size}}const bf=new mb;class gb{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 Cf=new gb(new Pa);class Js{constructor(t,n,r){this.key=t,this.optional=n,this.visibility=r}static fromKey(t){return new Js(t,!1,null)}}const _b=[];class Ef{constructor(t,n,r){this.key=t,this.resolvedFactories=n,this.multiProvider=r,this.resolvedFactory=this.resolvedFactories[0]}}class Df{constructor(t,n){this.factory=t,this.dependencies=n}}function yb(e){let t,n;if(e.useClass){const r=O(e.useClass);t=Cf.factory(r),n=wf(r)}else e.useExisting?(t=r=>r,n=[Js.fromKey(Nr.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function Eb(e,t){if(t){const n=t.map(r=>[r]);return t.map(r=>Mf(e,r,n))}return wf(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=_b);return new Df(t,n)}function vb(e){return new Ef(Nr.get(e.provide),[yb(e)],e.multi||!1)}function bb(e){const r=function Cb(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 pb(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 Ef(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,a)}}return t}(Tf(e,[]).map(vb),new Map);return Array.from(r.values())}function Tf(e,t){return e.forEach(n=>{if(n instanceof Os)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 hb(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`)}(n);Tf(n,t)}}),t}function wf(e){const t=Cf.parameters(e);if(!t)return[];if(t.some(n=>null==n))throw vf(e,t);return t.map(n=>Mf(e,n,t))}function Mf(e,t,n){let r=null,o=!1;if(!Array.isArray(t))return Yl(t instanceof Go?t.token:t,o,null);let a=null;for(let h=0;h<t.length;++h){const y=t[h];y instanceof Os?r=y:y instanceof Go?r=y.token:y instanceof zr?o=!0:y instanceof ks||y instanceof Wr?a=y:y instanceof Yn&&(r=y)}if(r=O(r),null!=r)return Yl(r,o,a);throw vf(e,n)}function Yl(e,t,n){return new Js(Nr.get(e),t,n)}const as={};class Io{static resolve(t){return bb(t)}static resolveAndCreate(t,n){const r=Io.resolve(t);return Io.fromResolvedProviders(r,n)}static fromResolvedProviders(t,n){return new Db(t,n)}}let Db=(()=>{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]=as}get(n,r=Vr){return this._getByKey(Nr.get(n),null,r)}resolveAndCreateChild(n){const r=Io.resolve(n);return this.createChildFromResolved(r)}createChildFromResolved(n){const r=new e(n);return r.parent=this,r}resolveAndInstantiate(n){return this.instantiateResolved(Io.resolve([n])[0])}instantiateResolved(n){return this._instantiateProvider(n)}getProviderAtIndex(n){if(n<0||n>=this._providers.length)throw function fb(e){return Error(`Index ${e} is out-of-bounds.`)}(n);return this._providers[n]}_new(n){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function ub(e,t){return Zl(e,t,function(n){return`Cannot instantiate cyclic dependency!${Ql(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(y=>this._getByReflectiveDependency(y))}catch(y){throw y.addKey&&y.addKey(this,n.key),y}try{h=o(...a)}catch(y){throw function db(e,t,n,r){return Zl(e,r,function(o){const a=S(o[0].token);return`${t.message}: Error during instantiation of ${a}!${Ql(o)}.`},t)}(this,y,0,n.key)}return h}_getByReflectiveDependency(n){return this._getByKey(n.key,n.visibility,n.optional?null:Vr)}_getByKey(n,r,o){return n===e.INJECTOR_KEY?this:r instanceof ks?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]===as&&(this.objs[r]=this._new(this._providers[r])),this.objs[r];return as}_throwOrNull(n,r){if(r!==Vr)return r;throw function cb(e,t){return Zl(e,t,function(n){return`No provider for ${S(n[0].token)}!${Ql(n)}`})}(this,n)}_getByKeySelf(n,r){const o=this._getObjByKeyId(n.id);return o!==as?o:this._throwOrNull(n,r)}_getByKeyDefault(n,r,o){let a;for(a=o instanceof Wr?this.parent:this;a instanceof e;){const h=a,y=h._getObjByKeyId(n.id);if(y!==as)return y;a=h.parent}return null!==a?a.get(n.token,r):this._throwOrNull(n,r)}get displayName(){return`ReflectiveInjector(providers: [${function Tb(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=Nr.get(Vi),e})();function ls(e,t=N.Default){const n=Tt();return null===n?si(e,t):Wu(f(),n,O(e),t)}function Sf(){throw new Error("invalid")}function Xl(e,t,n){const r=Tt();return bi(r,tn(),t)&&ji(B(),Pn(),r,e,t,r[11],n,!1),Xl}function Jl(e,t,n,r,o){const h=o?"class":"style";$h(e,n,t.inputs[h],h,r)}function ql(e,t,n,r){const o=Tt(),a=B(),h=20+e,y=o[11],M=o[h]=el(y,t,function ba(){return E.lFrame.currentNamespace}()),L=a.firstCreatePass?function wb(e,t,n,r,o,a,h){const y=t.consts,L=fo(t,e,2,o,cn(y,a));return Cl(t,n,L,cn(y,h)),null!==L.attrs&&Qs(L,L.attrs,!1),null!==L.mergedAttrs&&Qs(L,L.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,L),L}(h,a,o,0,t,n,r):a.data[h];de(L,!0);const G=L.mergedAttrs;null!==G&&ws(y,M,G);const Ce=L.classes;null!==Ce&&sl(y,M,Ce);const ze=L.styles;null!==ze&&rh(y,M,ze),64!=(64&L.flags)&&Hs(a,o,M,L),0===function at(){return E.lFrame.elementDepthCount}()&&vi(M,o),function Vt(){E.lFrame.elementDepthCount++}(),hi(L)&&(vl(a,o,L),Th(a,L,o)),null!==r&&bl(o,L)}function ec(){let e=f();Ne()?Ue():(e=e.parent,de(e,!1));const t=e;!function An(){E.lFrame.elementDepthCount--}();const n=B();n.firstCreatePass&&(Xi(n,e),Ci(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Qg(e){return 0!=(16&e.flags)}(t)&&Jl(n,t,Tt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Zg(e){return 0!=(32&e.flags)}(t)&&Jl(n,t,Tt(),t.stylesWithoutHost,!1)}function If(e,t,n,r){ql(e,t,n,r),ec()}function tc(e,t,n){const r=Tt(),o=B(),a=e+20,h=o.firstCreatePass?function Mb(e,t,n,r,o){const a=t.consts,h=cn(a,r),y=fo(t,e,8,"ng-container",h);return null!==h&&Qs(y,h,!0),Cl(t,n,y,cn(a,o)),null!==t.queries&&t.queries.elementStart(t,y),y}(a,o,r,t,n):o.data[a];de(h,!0);const y=r[a]=r[11].createComment("");Hs(o,r,y,h),vi(y,r),hi(h)&&(vl(o,r,h),Th(o,h,r)),null!=n&&bl(r,h)}function nc(){let e=f();const t=B();Ne()?Ue():(e=e.parent,de(e,!1)),t.firstCreatePass&&(Xi(t,e),Ci(e)&&t.queries.elementEnd(e))}function Af(e,t,n){tc(e,t,n),nc()}function Pf(){return Tt()}function ic(e){return!!e&&"function"==typeof e.then}function Of(e){return!!e&&"function"==typeof e.subscribe}const xf=Of;function rc(e,t,n,r){const o=Tt(),a=B(),h=f();return Rf(a,o,o[11],h,e,t,!!n,r),rc}function oc(e,t){const n=f(),r=Tt(),o=B();return Rf(o,r,Vh(Be(o.data),n,r),n,e,t,!1),oc}function Rf(e,t,n,r,o,a,h,y){const M=hi(r),G=e.firstCreatePass&&jh(e),Ce=t[8],ze=Bh(t);let it=!0;if(3&r.type||y){const Ft=ie(r,t),Kt=y?y(Ft):Ft,Ct=ze.length,qt=y?Cn=>y(Ln(Cn[r.index])):r.index;if(Rn(n)){let Cn=null;if(!y&&M&&(Cn=function Sb(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 y=t[7],M=o[a+2];return y.length>M?y[M]:null}"string"==typeof h&&(a+=2)}return null}(e,t,o,r.index)),null!==Cn)(Cn.__ngLastListenerFn__||Cn).__ngNextListenerFn__=a,Cn.__ngLastListenerFn__=a,it=!1;else{a=sc(r,t,Ce,a,!1);const Fn=n.listen(Kt,o,a);ze.push(a,Fn),G&&G.push(o,qt,Ct,Ct+1)}}else a=sc(r,t,Ce,a,!0),Kt.addEventListener(o,a,h),ze.push(a),G&&G.push(o,qt,Ct,h)}else a=sc(r,t,Ce,a,!1);const gt=r.outputs;let At;if(it&&null!==gt&&(At=gt[o])){const Ft=At.length;if(Ft)for(let Kt=0;Kt<Ft;Kt+=2){const $i=t[At[Kt]][At[Kt+1]].subscribe(a),Xr=ze.length;ze.push(a,$i),G&&G.push(o,r.index,Xr,-(Xr+1))}}}function Ff(e,t,n,r){try{return ti(6,t,n),!1!==n(r)}catch(o){return Hh(e,o),!1}finally{ti(7,t,n)}}function sc(e,t,n,r,o){return function a(h){if(h===Function)return r;const y=2&e.flags?Rt(e.index,t):t;0==(32&t[2])&&Tl(y);let M=Ff(t,n,r,h),L=a.__ngNextListenerFn__;for(;L;)M=Ff(t,n,L,h)&&M,L=L.__ngNextListenerFn__;return o&&!1===M&&(h.preventDefault(),h.returnValue=!1),M}}function kf(e=1){return function xt(e){return(E.lFrame.contextLView=function Yt(e,t){for(;e>0;)t=t[15],e--;return t}(e,E.lFrame.contextLView))[8]}(e)}function Ib(e,t){let n=null;const r=function ky(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?lh(e,a,!0):By(r,a))return o}else n=o}return n}function Nf(e){const t=Tt()[16][6];if(!t.projection){const r=t.projection=zo(e?e.length:1,null),o=r.slice();let a=t.child;for(;null!==a;){const h=e?Ib(a,e):0;null!==h&&(o[h]?o[h].projectionNext=a:r[h]=a,o[h]=a),a=a.next}}}function Lf(e,t=0,n){const r=Tt(),o=B(),a=fo(o,20+e,16,null,n||null);null===a.projection&&(a.projection=t),Ue(),64!=(64&a.flags)&&function Iy(e,t,n){ih(t[11],0,t,n,Gd(e,n,t),Xd(n.parent||t[6],n,t))}(o,r,a)}function ac(e,t,n){return qs(e,"",t,"",n),ac}function qs(e,t,n,r,o){const a=Tt(),h=bo(a,t,n,r);return h!==fn&&ji(B(),Pn(),a,e,h,a[11],o,!1),qs}function lc(e,t,n,r,o,a,h){const y=Tt(),M=Co(y,t,n,r,o,a);return M!==fn&&ji(B(),Pn(),y,e,M,y[11],h,!1),lc}function cc(e,t,n,r,o,a,h,y,M){const L=Tt(),G=Eo(L,t,n,r,o,a,h,y);return G!==fn&&ji(B(),Pn(),L,e,G,L[11],M,!1),cc}function uc(e,t,n,r,o,a,h,y,M,L,G){const Ce=Tt(),ze=Do(Ce,t,n,r,o,a,h,y,M,L);return ze!==fn&&ji(B(),Pn(),Ce,e,ze,Ce[11],G,!1),uc}function dc(e,t,n,r,o,a,h,y,M,L,G,Ce,ze){const it=Tt(),gt=To(it,t,n,r,o,a,h,y,M,L,G,Ce);return gt!==fn&&ji(B(),Pn(),it,e,gt,it[11],ze,!1),dc}function hc(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt){const At=Tt(),Ft=wo(At,t,n,r,o,a,h,y,M,L,G,Ce,ze,it);return Ft!==fn&&ji(B(),Pn(),At,e,Ft,At[11],gt,!1),hc}function fc(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At,Ft){const Kt=Tt(),Ct=Mo(Kt,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At);return Ct!==fn&&ji(B(),Pn(),Kt,e,Ct,Kt[11],Ft,!1),fc}function pc(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At,Ft,Kt,Ct){const qt=Tt(),Cn=So(qt,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At,Ft,Kt);return Cn!==fn&&ji(B(),Pn(),qt,e,Cn,qt[11],Ct,!1),pc}function mc(e,t,n){const r=Tt(),o=vo(r,t);return o!==fn&&ji(B(),Pn(),r,e,o,r[11],n,!1),mc}function Bf(e,t,n,r,o){const a=e[n+1],h=null===t;let y=r?ur(a):Fr(a),M=!1;for(;0!==y&&(!1===M||h);){const G=e[y+1];Ob(e[y],t)&&(M=!0,e[y+1]=r?cl(G):al(G)),y=r?ur(G):Fr(G)}M&&(e[n+1]=r?al(a):cl(a))}function Ob(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&so(e,t)>=0}const oi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jf(e){return e.substring(oi.key,oi.keyEnd)}function xb(e){return e.substring(oi.value,oi.valueEnd)}function Vf(e,t){const n=oi.textEnd;return n===t?-1:(t=oi.keyEnd=function kb(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,oi.key=t,n),Ao(e,t,n))}function Hf(e,t){const n=oi.textEnd;let r=oi.key=Ao(e,t,n);return n===r?-1:(r=oi.keyEnd=function Nb(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=Uf(e,r,n),r=oi.value=Ao(e,r,n),r=oi.valueEnd=function Lb(e,t,n){let r=-1,o=-1,a=-1,h=t,y=h;for(;h<n;){const M=e.charCodeAt(h++);if(59===M)return y;34===M||39===M?y=h=zf(e,M,h,n):t===h-4&&85===a&&82===o&&76===r&&40===M?y=h=zf(e,41,h,n):M>32&&(y=h),a=o,o=r,r=-33&M}return y}(e,r,n),Uf(e,r,n))}function $f(e){oi.key=0,oi.keyEnd=0,oi.value=0,oi.valueEnd=0,oi.textEnd=e.length}function Ao(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Uf(e,t,n,r){return(t=Ao(e,t,n))<n&&t++,t}function zf(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 gc(e,t,n){return hr(e,t,n,!1),gc}function _c(e,t){return hr(e,t,null,!0),_c}function dr(e){fr(Qf,Bb,e,!1)}function Bb(e,t){for(let n=function Fb(e){return $f(e),Hf(e,Ao(e,0,oi.textEnd))}(t);n>=0;n=Hf(t,n))Qf(e,jf(t),xb(t))}function Wf(e){fr(Bi,Tr,e,!0)}function Tr(e,t){for(let n=function Rb(e){return $f(e),Vf(e,Ao(e,0,oi.textEnd))}(t);n>=0;n=Vf(t,n))Bi(e,jf(t),!0)}function hr(e,t,n,r){const o=Tt(),a=B(),h=dn(2);a.firstUpdatePass&&Gf(a,e,h,r),t!==fn&&bi(o,h,t)&&Zf(a,a.data[sn()],o,o[11],e,o[h+1]=function Wb(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=S(Rr(e)))),e}(t,n),r,h)}function fr(e,t,n,r){const o=B(),a=dn(2);o.firstUpdatePass&&Gf(o,null,a,r);const h=Tt();if(n!==fn&&bi(h,a,n)){const y=o.data[sn()];if(Xf(y,r)&&!Kf(o,a)){let M=r?y.classesWithoutHost:y.stylesWithoutHost;null!==M&&(n=g(M,n||"")),Jl(o,y,h,n,r)}else!function zb(e,t,n,r,o,a,h,y){o===fn&&(o=Mt);let M=0,L=0,G=0<o.length?o[0]:null,Ce=0<a.length?a[0]:null;for(;null!==G||null!==Ce;){const ze=M<o.length?o[M+1]:void 0,it=L<a.length?a[L+1]:void 0;let At,gt=null;G===Ce?(M+=2,L+=2,ze!==it&&(gt=Ce,At=it)):null===Ce||null!==G&&G<Ce?(M+=2,gt=G):(L+=2,gt=Ce,At=it),null!==gt&&Zf(e,t,n,r,gt,At,h,y),G=M<o.length?o[M]:null,Ce=L<a.length?a[L]:null}}(o,y,h,h[11],h[a+1],h[a+1]=function Ub(e,t,n){if(null==n||""===n)return Mt;const r=[],o=Rr(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 Kf(e,t){return t>=e.expandoStartIndex}function Gf(e,t,n,r){const o=e.data;if(null===o[n+1]){const a=o[sn()],h=Kf(e,n);Xf(a,r)&&null===t&&!h&&(t=!1),t=function jb(e,t,n,r){const o=Be(e);let a=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=cs(n=yc(null,e,t,n,r),t.attrs,r),a=null);else{const h=t.directiveStylingLast;if(-1===h||e[h]!==o)if(n=yc(o,e,t,n,r),null===a){let M=function Vb(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Fr(r))return e[ur(r)]}(e,t,r);void 0!==M&&Array.isArray(M)&&(M=yc(null,e,t,M[1],r),M=cs(M,t.attrs,r),function Hb(e,t,n,r){e[ur(n?t.classBindings:t.styleBindings)]=r}(e,t,r,M))}else a=function $b(e,t,n){let r;const o=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<o;a++)r=cs(r,e[a].hostAttrs,n);return cs(r,t.attrs,n)}(e,t,r)}return void 0!==a&&(r?t.residualClasses=a:t.residualStyles=a),n}(o,a,t,r),function Ab(e,t,n,r,o,a){let h=a?t.classBindings:t.styleBindings,y=ur(h),M=Fr(h);e[r]=n;let G,L=!1;if(Array.isArray(n)){const Ce=n;G=Ce[1],(null===G||so(Ce,G)>0)&&(L=!0)}else G=n;if(o)if(0!==M){const ze=ur(e[y+1]);e[r+1]=Us(ze,y),0!==ze&&(e[ze+1]=ll(e[ze+1],r)),e[y+1]=function $y(e,t){return 131071&e|t<<17}(e[y+1],r)}else e[r+1]=Us(y,0),0!==y&&(e[y+1]=ll(e[y+1],r)),y=r;else e[r+1]=Us(M,0),0===y?y=r:e[M+1]=ll(e[M+1],r),M=r;L&&(e[r+1]=al(e[r+1])),Bf(e,G,r,!0),Bf(e,G,r,!1),function Pb(e,t,n,r,o){const a=o?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&so(a,t)>=0&&(n[r+1]=cl(n[r+1]))}(t,G,e,r,a),h=Us(y,M),a?t.classBindings=h:t.styleBindings=h}(o,a,t,n,h,r)}}function yc(e,t,n,r,o){let a=null;const h=n.directiveEnd;let y=n.directiveStylingLast;for(-1===y?y=n.directiveStart:y++;y<h&&(a=t[y],r=cs(r,a.hostAttrs,o),a!==e);)y++;return null!==e&&(n.directiveStylingLast=y),r}function cs(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]),Bi(e,h,!!n||t[++a]))}return void 0===e?null:e}function Qf(e,t,n){Bi(e,t,Rr(n))}function Zf(e,t,n,r,o,a,h,y){if(!(3&t.type))return;const M=e.data,L=M[y+1];ea(function ph(e){return 1==(1&e)}(L)?Yf(M,t,n,o,Fr(L),h):void 0)||(ea(a)||function fh(e){return 2==(2&e)}(L)&&(a=Yf(M,null,n,o,y,h)),function Py(e,t,n,r,o){const a=Rn(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:Cr.DashCase;if(null==o)a?e.removeStyle(n,r,h):n.style.removeProperty(r);else{const y="string"==typeof o&&o.endsWith("!important");y&&(o=o.slice(0,-10),h|=Cr.Important),a?e.setStyle(n,r,o,h):n.style.setProperty(r,o,y?"important":"")}}}(r,h,R(sn(),n),o,a))}function Yf(e,t,n,r,o,a){const h=null===t;let y;for(;o>0;){const M=e[o],L=Array.isArray(M),G=L?M[1]:M,Ce=null===G;let ze=n[o+1];ze===fn&&(ze=Ce?Mt:void 0);let it=Ce?Aa(ze,r):G===r?ze:void 0;if(L&&!ea(it)&&(it=Aa(M,r)),ea(it)&&(y=it,h))return y;const gt=e[o+1];o=h?ur(gt):Fr(gt)}if(null!==t){let M=a?t.residualClasses:t.residualStyles;null!=M&&(y=Aa(M,r))}return y}function ea(e){return void 0!==e}function Xf(e,t){return 0!=(e.flags&(t?16:32))}function Jf(e,t=""){const n=Tt(),r=B(),o=e+20,a=r.firstCreatePass?fo(r,o,1,t,null):r.data[o],h=n[o]=qa(n[11],t);Hs(r,n,h,a),de(a,!1)}function vc(e){return ta("",e,""),vc}function ta(e,t,n){const r=Tt(),o=bo(r,e,t,n);return o!==fn&&kr(r,sn(),o),ta}function bc(e,t,n,r,o){const a=Tt(),h=Co(a,e,t,n,r,o);return h!==fn&&kr(a,sn(),h),bc}function Cc(e,t,n,r,o,a,h){const y=Tt(),M=Eo(y,e,t,n,r,o,a,h);return M!==fn&&kr(y,sn(),M),Cc}function Ec(e,t,n,r,o,a,h,y,M){const L=Tt(),G=Do(L,e,t,n,r,o,a,h,y,M);return G!==fn&&kr(L,sn(),G),Ec}function Dc(e,t,n,r,o,a,h,y,M,L,G){const Ce=Tt(),ze=To(Ce,e,t,n,r,o,a,h,y,M,L,G);return ze!==fn&&kr(Ce,sn(),ze),Dc}function Tc(e,t,n,r,o,a,h,y,M,L,G,Ce,ze){const it=Tt(),gt=wo(it,e,t,n,r,o,a,h,y,M,L,G,Ce,ze);return gt!==fn&&kr(it,sn(),gt),Tc}function wc(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt){const At=Tt(),Ft=Mo(At,e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt);return Ft!==fn&&kr(At,sn(),Ft),wc}function Mc(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At,Ft){const Kt=Tt(),Ct=So(Kt,e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At,Ft);return Ct!==fn&&kr(Kt,sn(),Ct),Mc}function Sc(e){const t=Tt(),n=vo(t,e);return n!==fn&&kr(t,sn(),n),Sc}function qf(e,t,n){fr(Bi,Tr,bo(Tt(),e,t,n),!0)}function ep(e,t,n,r,o){fr(Bi,Tr,Co(Tt(),e,t,n,r,o),!0)}function tp(e,t,n,r,o,a,h){fr(Bi,Tr,Eo(Tt(),e,t,n,r,o,a,h),!0)}function np(e,t,n,r,o,a,h,y,M){fr(Bi,Tr,Do(Tt(),e,t,n,r,o,a,h,y,M),!0)}function ip(e,t,n,r,o,a,h,y,M,L,G){fr(Bi,Tr,To(Tt(),e,t,n,r,o,a,h,y,M,L,G),!0)}function rp(e,t,n,r,o,a,h,y,M,L,G,Ce,ze){fr(Bi,Tr,wo(Tt(),e,t,n,r,o,a,h,y,M,L,G,Ce,ze),!0)}function op(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt){fr(Bi,Tr,Mo(Tt(),e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt),!0)}function sp(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At,Ft){fr(Bi,Tr,So(Tt(),e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At,Ft),!0)}function ap(e){fr(Bi,Tr,vo(Tt(),e),!0)}function lp(e,t,n){dr(bo(Tt(),e,t,n))}function cp(e,t,n,r,o){dr(Co(Tt(),e,t,n,r,o))}function up(e,t,n,r,o,a,h){dr(Eo(Tt(),e,t,n,r,o,a,h))}function dp(e,t,n,r,o,a,h,y,M){dr(Do(Tt(),e,t,n,r,o,a,h,y,M))}function hp(e,t,n,r,o,a,h,y,M,L,G){dr(To(Tt(),e,t,n,r,o,a,h,y,M,L,G))}function fp(e,t,n,r,o,a,h,y,M,L,G,Ce,ze){dr(wo(Tt(),e,t,n,r,o,a,h,y,M,L,G,Ce,ze))}function pp(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt){dr(Mo(Tt(),e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt))}function mp(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At,Ft){dr(So(Tt(),e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At,Ft))}function gp(e){dr(vo(Tt(),e))}function Ic(e,t,n,r,o){return hr(e,bo(Tt(),t,n,r),o,!1),Ic}function Ac(e,t,n,r,o,a,h){return hr(e,Co(Tt(),t,n,r,o,a),h,!1),Ac}function Pc(e,t,n,r,o,a,h,y,M){return hr(e,Eo(Tt(),t,n,r,o,a,h,y),M,!1),Pc}function Oc(e,t,n,r,o,a,h,y,M,L,G){return hr(e,Do(Tt(),t,n,r,o,a,h,y,M,L),G,!1),Oc}function xc(e,t,n,r,o,a,h,y,M,L,G,Ce,ze){return hr(e,To(Tt(),t,n,r,o,a,h,y,M,L,G,Ce),ze,!1),xc}function Rc(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt){return hr(e,wo(Tt(),t,n,r,o,a,h,y,M,L,G,Ce,ze,it),gt,!1),Rc}function Fc(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At,Ft){return hr(e,Mo(Tt(),t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At),Ft,!1),Fc}function kc(e,t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At,Ft,Kt,Ct){return hr(e,So(Tt(),t,n,r,o,a,h,y,M,L,G,Ce,ze,it,gt,At,Ft,Kt),Ct,!1),kc}function Nc(e,t,n){return hr(e,vo(Tt(),t),n,!1),Nc}function Lc(e,t,n){const r=Tt();return bi(r,tn(),t)&&ji(B(),Pn(),r,e,t,r[11],n,!0),Lc}function Bc(e,t,n){const r=Tt();if(bi(r,tn(),t)){const a=B(),h=Pn();ji(a,h,r,e,t,Vh(Be(a.data),h,r),n,!0)}return Bc}const Zr=void 0;var Gb=["en",[["a","p"],["AM","PM"],Zr],[["AM","PM"],Zr,Zr],[["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"]],Zr,[["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"]],Zr,[["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}",Zr,"{1} 'at' {0}",Zr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Kb(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Po={};function Qb(e,t,n){"string"!=typeof t&&(n=t,t=e[nn.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Po[t]=e,n&&(Po[t][nn.ExtraData]=n)}function jc(e){const t=function Xb(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=yp(t);if(n)return n;const r=t.split("-")[0];if(n=yp(r),n)return n;if("en"===r)return Gb;throw new Error(`Missing locale data for the locale "${e}".`)}function Zb(e){return jc(e)[nn.CurrencyCode]||null}function _p(e){return jc(e)[nn.PluralCase]}function yp(e){return e in Po||(Po[e]=Bt.ng&&Bt.ng.common&&Bt.ng.common.locales&&Bt.ng.common.locales[e]),Po[e]}function Yb(){Po={}}var nn=(()=>((nn=nn||{})[nn.LocaleId=0]="LocaleId",nn[nn.DayPeriodsFormat=1]="DayPeriodsFormat",nn[nn.DayPeriodsStandalone=2]="DayPeriodsStandalone",nn[nn.DaysFormat=3]="DaysFormat",nn[nn.DaysStandalone=4]="DaysStandalone",nn[nn.MonthsFormat=5]="MonthsFormat",nn[nn.MonthsStandalone=6]="MonthsStandalone",nn[nn.Eras=7]="Eras",nn[nn.FirstDayOfWeek=8]="FirstDayOfWeek",nn[nn.WeekendRange=9]="WeekendRange",nn[nn.DateFormat=10]="DateFormat",nn[nn.TimeFormat=11]="TimeFormat",nn[nn.DateTimeFormat=12]="DateTimeFormat",nn[nn.NumberSymbols=13]="NumberSymbols",nn[nn.NumberFormats=14]="NumberFormats",nn[nn.CurrencyCode=15]="CurrencyCode",nn[nn.CurrencySymbol=16]="CurrencySymbol",nn[nn.CurrencyName=17]="CurrencyName",nn[nn.Currencies=18]="Currencies",nn[nn.Directionality=19]="Directionality",nn[nn.PluralCase=20]="PluralCase",nn[nn.ExtraData=21]="ExtraData",nn))();const Jb=["zero","one","two","few","many"],us="en-US",na={marker:"element"},ia={marker:"ICU"};var Xn=(()=>((Xn=Xn||{})[Xn.SHIFT=2]="SHIFT",Xn[Xn.APPEND_EAGERLY=1]="APPEND_EAGERLY",Xn[Xn.COMMENT=2]="COMMENT",Xn))();let vp=us;function bp(e){(function Me(e,t){null==e&&Ke(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(vp=e.toLowerCase().replace(/_/g,"-"))}function Cp(e,t,n){const r=t.insertBeforeIndex,o=Array.isArray(r)?r[0]:r;return null===o?Jd(e,0,n):Ln(n[o])}function Ep(e,t,n,r,o){const a=t.insertBeforeIndex;if(Array.isArray(a)){let h=r,y=null;if(3&t.type||(y=h,h=o),null!==h&&0==(2&t.flags))for(let M=1;M<a.length;M++)Gr(e,h,n[a[M]],y,!1)}}function Dp(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const r=e[n];Tp(r)||nC(r,t)&&null===iC(r)&&rC(r,t.index)}}function Tp(e){return!(64&e.type)}function nC(e,t){return Tp(t)||e.index>t.index}function iC(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function rC(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(eh(Cp,Ep),e.insertBeforeIndex=t)}function ds(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function aC(e,t,n){const r=yl(e,n,64,null,null);return Dp(t,r),r}function ra(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function wp(e){return e>>>17}function Mp(e){return(131070&e)>>>1}let hs=0,fs=0;function Ip(e,t,n,r){const o=n[11];let h,a=null;for(let y=0;y<t.length;y++){const M=t[y];if("string"==typeof M){const L=t[++y];null===n[L]&&(n[L]=qa(o,M))}else if("number"==typeof M)switch(1&M){case 0:const L=wp(M);let G,Ce;if(null===a&&(a=L,h=Vs(o,r)),L===a?(G=r,Ce=h):(G=null,Ce=Ln(n[L])),null!==Ce){const At=Mp(M);Gr(o,Ce,n[At],G,!1);const Kt=ds(e,At);if(null!==Kt&&"object"==typeof Kt){const Ct=ra(Kt,n);null!==Ct&&Ip(e,Kt.create[Ct],n,n[Kt.anchorIdx])}}break;case 1:const it=t[++y],gt=t[++y];El(o,R(M>>>1,n),null,null,it,gt,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${M}"`)}else switch(M){case ia:const L=t[++y],G=t[++y];null===n[G]&&vi(n[G]=_y(o,L),n);break;case na:const Ce=t[++y],ze=t[++y];null===n[ze]&&vi(n[ze]=el(o,Ce,null),n)}}}function Ap(e,t,n,r,o){for(let a=0;a<n.length;a++){const h=n[a],y=n[++a];if(h&o){let M="";for(let L=a+1;L<=a+y;L++){const G=n[L];if("string"==typeof G)M+=G;else if("number"==typeof G)if(G<0)M+=$(t[r-G]);else{const Ce=G>>>2;switch(3&G){case 1:const ze=n[++L],it=n[++L],gt=e.data[Ce];"string"==typeof gt?El(t[11],t[Ce],null,gt,ze,M,it):ji(e,gt,t,ze,M,t[11],it,!1);break;case 0:const At=t[Ce];null!==At&&zd(t[11],At,M);break;case 2:hC(e,ds(e,Ce),t,M);break;case 3:Pp(e,ds(e,Ce),r,t)}}}}else{const M=n[a+1];if(M>0&&3==(3&M)){const G=ds(e,M>>>2);t[G.currentCaseLViewIndex]<0&&Pp(e,G,r,t)}}a+=y}}function Pp(e,t,n,r){let o=r[t.currentCaseLViewIndex];if(null!==o){let a=hs;o<0&&(o=r[t.currentCaseLViewIndex]=~o,a=-1),Ap(e,r,t.update[o],n,a)}}function hC(e,t,n,r){const o=function fC(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function qb(e,t){const n=_p(t)(parseInt(e,10)),r=Jb[n];return void 0!==r?r:"other"}(t,function tC(){return vp}());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(ra(t,n)!==o&&(Op(e,t,n),n[t.currentCaseLViewIndex]=null===o?null:~o,null!==o)){const h=n[t.anchorIdx];h&&Ip(e,t.create[o],n,h)}}function Op(e,t,n){let r=ra(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 y=R(h,n);null!==y&&nh(n[11],y)}else Op(e,ds(e,~h),n)}}}function pC(){const e=[];let n,r,t=-1;function a(y,M){t=0;const L=ra(y,M);r=null!==L?y.remove[L]:Mt}function h(){if(t<r.length){const y=r[t++];return y>0?n[y]:(e.push(t,r),a(n[1].data[~y],n),h())}return 0===e.length?null:(r=e.pop(),t=e.pop(),h())}return function o(y,M){for(n=M;e.length;)e.pop();return a(y.value,M),h}}const oa=/\ufffd(\d+):?\d*\ufffd/gi,mC=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,gC=/\ufffd(\d+)\ufffd/,Rp=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,_C=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,yC=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,vC=/\uE500/g;function Fp(e,t,n,r,o,a,h){const y=po(e,r,1,null);let M=y<<Xn.SHIFT,L=j();t===L&&(L=null),null===L&&(M|=Xn.APPEND_EAGERLY),h&&(M|=Xn.COMMENT,function gy(e){void 0===Za&&(Za=e())}(pC)),o.push(M,null===a?"":a);const G=yl(e,y,h?32:1,null===a?"":a,null);Dp(n,G);const Ce=G.index;return de(G,!1),null!==L&&t!==L&&function sC(e,t){let n=e.insertBeforeIndex;null===n?(eh(Cp,Ep),n=e.insertBeforeIndex=[null,t]):(function q(e,t,n){e!=t&&Ke(n,e,t,"==")}(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(L,Ce),G}function EC(e,t,n,r,o,a,h){const y=h.match(oa),M=Fp(e,t,n,a,r,y?null:h,!1);y&&Oo(o,h,M.index,null,0,null)}function Oo(e,t,n,r,o,a){const h=e.length,y=h+1;e.push(null,null);const M=h+2,L=t.split(oa);let G=0;for(let Ce=0;Ce<L.length;Ce++){const ze=L[Ce];if(1&Ce){const it=o+parseInt(ze,10);e.push(-1-it),G|=kp(it)}else""!==ze&&e.push(ze)}return e.push(n<<2|(r?1:0)),r&&e.push(r,a),e[h]=G,e[y]=e.length-M,G}function TC(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 kp(e){return 1<<Math.min(e,31)}function Np(e){let t,a,n="",r=0,o=!1;for(;null!==(t=_C.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 Lp(e,t,n,r,o,a){let h=0;const y={type:o.type,currentCaseLViewIndex:po(e,t,1,null),anchorIdx:a,cases:[],create:[],remove:[],update:[]};(function PC(e,t,n){e.push(kp(t.mainBinding),2,-1-t.mainBinding,n<<2|2)})(n,o,a),function oC(e,t,n){const r=e.data[t];null===r?e.data[t]=n:r.value=n}(e,a,y);const M=o.values;for(let L=0;L<M.length;L++){const G=M[L],Ce=[];for(let ze=0;ze<G.length;ze++){const it=G[ze];if("string"!=typeof it){const gt=Ce.push(it)-1;G[ze]=`\x3c!--\ufffd${gt}\ufffd--\x3e`}}h=IC(e,y,t,n,r,o.cases[L],G.join(""),Ce)|h}h&&function OC(e,t,n){e.push(t,1,n<<2|3)}(n,h,a)}function SC(e){const t=[],n=[];let r=1,o=0;const a=Vc(e=e.replace(Rp,function(h,y,M){return r="select"===M?0:1,o=parseInt(y.substr(1),10),""}));for(let h=0;h<a.length;){let y=a[h++].trim();1===r&&(y=y.replace(/\s*(?:=)?(\w+)\s*/,"$1")),y.length&&t.push(y);const M=Vc(a[h++]);t.length>n.length&&n.push(M)}return{type:r,mainBinding:o,cases:t,values:n}}function Vc(e){if(!e)return[];let t=0;const n=[],r=[],o=/[{}]/g;let a;for(o.lastIndex=0;a=o.exec(e);){const y=a.index;if("}"==a[0]){if(n.pop(),0==n.length){const M=e.substring(t,y);Rp.test(M)?r.push(SC(M)):r.push(M),t=y+1}}else{if(0==n.length){const M=e.substring(t,y);r.push(M),t=y+1}n.push("{")}}const h=e.substring(t);return r.push(h),r}function IC(e,t,n,r,o,a,h,y){const M=[],L=[],G=[];t.cases.push(a),t.create.push(M),t.remove.push(L),t.update.push(G);const ze=fd(ki()).getInertBodyElement(h),it=$a(ze)||ze;return it?Bp(e,t,n,r,M,L,G,it,o,y,0):0}function Bp(e,t,n,r,o,a,h,y,M,L,G){let Ce=0,ze=y.firstChild;for(;ze;){const it=po(e,n,1,null);switch(ze.nodeType){case Node.ELEMENT_NODE:const gt=ze,At=gt.tagName.toLowerCase();if(ja.hasOwnProperty(At)){Hc(o,na,At,M,it),e.data[it]=At;const qt=gt.attributes;for(let Cn=0;Cn<qt.length;Cn++){const Fn=qt.item(Cn),$i=Fn.name.toLowerCase();Fn.value.match(oa)?yd.hasOwnProperty($i)&&Oo(h,Fn.value,it,Fn.name,0,Va[$i]?Zo:Ha[$i]?pd:null):xC(o,it,Fn)}Ce=Bp(e,t,n,r,o,a,h,ze,it,L,G+1)|Ce,jp(a,it,G)}break;case Node.TEXT_NODE:const Ft=ze.textContent||"",Kt=Ft.match(oa);Hc(o,null,Kt?"":Ft,M,it),jp(a,it,G),Kt&&(Ce=Oo(h,Ft,it,null,0,null)|Ce);break;case Node.COMMENT_NODE:const Ct=gC.exec(ze.textContent||"");if(Ct){const Cn=L[parseInt(Ct[1],10)];Hc(o,ia,"",M,it),Lp(e,n,r,M,Cn,it),AC(a,it,G)}}ze=ze.nextSibling}return Ce}function jp(e,t,n){0===n&&e.push(t)}function AC(e,t,n){0===n&&(e.push(~t),e.push(t))}function Hc(e,t,n,r,o){null!==t&&e.push(t),e.push(n,o,function lC(e,t,n){return e|t<<17|n<<1}(0,r,o))}function xC(e,t,n){e.push(t<<1|1,n.name,n.value)}const RC=/\[(\ufffd.+?\ufffd?)\]/,FC=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,kC=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,NC=/{([A-Z0-9_]+)}/g,LC=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,BC=/\/\*/,jC=/\d+\:(\d+)/;function $c(e,t,n=-1){const r=B(),o=Tt(),a=20+e,h=cn(r.consts,t),y=j();r.firstCreatePass&&function CC(e,t,n,r,o,a){const h=j(),y=[],M=[],L=[[]];o=function MC(e,t){if(function wC(e){return-1===e}(t))return Np(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return Np(e.substring(n,r))}}(o,a);const G=function bC(e){return e.replace(vC," ")}(o).split(yC);for(let Ce=0;Ce<G.length;Ce++){let ze=G[Ce];if(0==(1&Ce)){const it=Vc(ze);for(let gt=0;gt<it.length;gt++){let At=it[gt];if(0==(1&gt)){const Ft=At;""!==Ft&&EC(e,h,L[0],y,M,n,Ft)}else{const Ft=At;if("object"!=typeof Ft)throw new Error(`Unable to parse ICU expression in "${o}" message.`);Lp(e,n,M,t,Ft,Fp(e,h,L[0],n,y,"",!0).index)}}}else{const it=47===ze.charCodeAt(0),At=(ze.charCodeAt(it?1:0),20+Number.parseInt(ze.substring(it?2:1)));if(it)L.shift(),de(j(),!1);else{const Ft=aC(e,L[0],At);L.unshift([]),de(Ft,!0)}}}e.data[r]={create:y,update:M}}(r,null===y?0:y.index,o,a,h,n);const M=r.data[a],G=Qd(r,y===o[6]?null:y,o);(function dC(e,t,n,r){const o=e[11];for(let a=0;a<t.length;a++){const h=t[a++],y=t[a],M=(h&Xn.COMMENT)===Xn.COMMENT,L=(h&Xn.APPEND_EAGERLY)===Xn.APPEND_EAGERLY,G=h>>>Xn.SHIFT;let Ce=e[G];null===Ce&&(Ce=e[G]=M?o.createComment(y):qa(o,y)),L&&null!==n&&Gr(o,n,Ce,r,!1)}})(o,M.create,G,y&&8&y.type?o[y.index]:null),H(!0)}function Uc(){H(!1)}function Hp(e,t,n){$c(e,t,n),Uc()}function $p(e,t){const n=B();!function DC(e,t,n){const o=f().index,a=[];if(e.firstCreatePass&&null===e.data[t]){for(let h=0;h<n.length;h+=2){const y=n[h],M=n[h+1];if(""!==M){if(mC.test(M))throw new Error(`ICU expressions are not supported in attributes. Message: "${M}".`);Oo(a,M,o,y,TC(a),null)}}e.data[t]=a}}(n,e+20,cn(n.consts,t))}function zc(e){return function cC(e){e&&(hs|=1<<Math.min(fs,31)),fs++}(bi(Tt(),tn(),e)),zc}function Up(e){!function uC(e,t,n){if(fs>0){const r=e.data[n];Ap(e,t,Array.isArray(r)?r:r.update,un()-fs-1,hs)}hs=0,fs=0}(B(),Tt(),e+20)}function zp(e,t={}){return function VC(e,t={}){let n=e;if(RC.test(e)){const r={},o=[0];n=n.replace(FC,(a,h,y)=>{const M=h||y,L=r[M]||[];if(L.length||(M.split("|").forEach(At=>{const Ft=At.match(jC),Kt=Ft?parseInt(Ft[1],10):0,Ct=BC.test(At);L.push([Kt,Ct,At])}),r[M]=L),!L.length)throw new Error(`i18n postprocess: unmatched placeholder - ${M}`);const G=o[o.length-1];let Ce=0;for(let At=0;At<L.length;At++)if(L[At][0]===G){Ce=At;break}const[ze,it,gt]=L[Ce];return it?o.pop():G!==ze&&o.push(ze),L.splice(Ce,1),gt})}return Object.keys(t).length&&(n=n.replace(kC,(r,o,a,h,y,M)=>t.hasOwnProperty(a)?`${o}${t[a]}${M}`:r),n=n.replace(NC,(r,o)=>t.hasOwnProperty(o)?t[o]:r),n=n.replace(LC,(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 Wc(e,t,n,r,o){if(e=O(e),Array.isArray(e))for(let a=0;a<e.length;a++)Wc(e[a],t,n,r,o);else{const a=B(),h=Tt();let y=_o(e)?e:O(e.provide),M=Qh(e);const L=f(),G=1048575&L.providerIndexes,Ce=L.directiveStart,ze=L.providerIndexes>>20;if(_o(e)||!e.multi){const it=new Bo(M,o,ls),gt=Gc(y,t,o?G:G+ze,Ce);-1===gt?(As(Vo(L,h),a,y),Kc(a,e,t.length),t.push(y),L.directiveStart++,L.directiveEnd++,o&&(L.providerIndexes+=1048576),n.push(it),h.push(it)):(n[gt]=it,h[gt]=it)}else{const it=Gc(y,t,G+ze,Ce),gt=Gc(y,t,G,G+ze),At=it>=0&&n[it],Ft=gt>=0&&n[gt];if(o&&!Ft||!o&&!At){As(Vo(L,h),a,y);const Kt=function zC(e,t,n,r,o){const a=new Bo(e,n,ls);return a.multi=[],a.index=t,a.componentProviders=0,Wp(a,o,r&&!n),a}(o?UC:$C,n.length,o,r,M);!o&&Ft&&(n[gt].providerFactory=Kt),Kc(a,e,t.length,0),t.push(y),L.directiveStart++,L.directiveEnd++,o&&(L.providerIndexes+=1048576),n.push(Kt),h.push(Kt)}else Kc(a,e,it>-1?it:gt,Wp(n[o?gt:it],M,!o&&r));!o&&r&&Ft&&n[gt].componentProviders++}}}function Kc(e,t,n,r){const o=_o(t),a=function Rv(e){return!!e.useClass}(t);if(o||a){const M=(a?O(t.useClass):t).prototype.ngOnDestroy;if(M){const L=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const G=L.indexOf(n);-1===G?L.push(n,[r,M]):L[G+1].push(r,M)}else L.push(n,M)}}}function Wp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Gc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function $C(e,t,n,r){return Qc(this.multi,[])}function UC(e,t,n,r){const o=this.multi;let a;if(this.providerFactory){const h=this.providerFactory.componentProviders,y=Ho(n,n[1],this.providerFactory.index,r);a=y.slice(0,h),Qc(o,a);for(let M=h;M<y.length;M++)a.push(y[M])}else a=[],Qc(o,a);return a}function Qc(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Kp(e,t=[]){return n=>{n.providersResolver=(r,o)=>function HC(e,t,n){const r=B();if(r.firstCreatePass){const o=zn(e);Wc(n,r.data,r.blueprint,o,!0),Wc(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class Gp{}class sa{}class KC{resolveComponentFactory(t){throw function WC(e){const t=Error(`No component factory found for ${S(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let ms=(()=>{class e{}return e.NULL=new KC,e})();function GC(){return xo(f(),Tt())}function xo(e,t){return new gs(ie(e,t))}let gs=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=GC,e})();function QC(e){return e instanceof gs?e.nativeElement:e}class Zp{}let ZC=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function XC(){const e=Tt(),n=Rt(f().index,e);return function YC(e){return e[11]}(Kn(n)?n:e)}(),e})(),Yp=(()=>{class e{}return e.\u0275prov=Ye({token:e,providedIn:"root",factory:()=>null}),e})();class Xp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Jp=new Xp("13.1.2"),aa={};function la(e,t,n,r,o=!1){for(;null!==n;){const a=t[n.index];if(null!==a&&r.push(Ln(a)),Gn(a))for(let y=10;y<a.length;y++){const M=a[y],L=M[1].firstChild;null!==L&&la(M[1],M,L,r)}const h=n.type;if(8&h)la(e,t,n.child,r);else if(32&h){const y=Ya(n,t);let M;for(;M=y();)r.push(M)}else if(16&h){const y=th(t,n);if(Array.isArray(y))r.push(...y);else{const M=es(t[16]);la(M[1],M,y,r,!0)}}n=o?n.projectionNext:n.next}return r}class Ro{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 la(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(Gn(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(tl(t,r),xs(n,r))}this._attachedToViewContainer=!1}Kd(this._lView[1],this._lView)}onDestroy(t){Ih(this._lView[1],this._lView,null,t)}markForCheck(){Tl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Ml(this._lView[1],this._lView,this.context)}checkNoChanges(){!function Tv(e,t,n){Ut(!0);try{Ml(e,t,n)}finally{Ut(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function by(e,t){ts(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class JC extends Ro{constructor(t){super(t),this._view=t}detectChanges(){Lh(this._view)}checkNoChanges(){!function wv(e){Ut(!0);try{Lh(e)}finally{Ut(!1)}}(this._view)}get context(){return null}}class qp extends ms{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=He(t);return new ca(n,this.ngModule)}}function em(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const e0=new Yn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>kd});class ca extends sa{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Vy(e){return e.map(jy).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return em(this.componentDef.inputs)}get outputs(){return em(this.componentDef.outputs)}create(t,n,r,o){const a=(o=o||this.ngModule)?function t0(e,t){return{get:(n,r,o)=>{const a=e.get(n,aa,o);return a!==aa||r===aa?a:t.get(n,r,o)}}}(t,o.injector):t,h=a.get(Zp,sr),y=a.get(Yp,null),M=h.createRenderer(null,this.componentDef),L=this.componentDef.selectors[0][0]||"div",G=r?Sh(M,r,this.componentDef.encapsulation):el(h.createRenderer(null,this.componentDef),L,function qC(e){const t=e.toLowerCase();return"svg"===t?Ri:"math"===t?or:null}(L)),Ce=this.componentDef.onPush?576:528,ze=lf(),it=Ks(0,null,null,1,0,null,null,null,null,null),gt=ns(null,it,ze,Ce,null,null,h,M,y,a);let At,Ft;Gt(gt);try{const Kt=sf(G,this.componentDef,gt,h,M);if(G)if(r)ws(M,G,["ng-version",Jp.full]);else{const{attrs:Ct,classes:qt}=function Hy(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(!cr(o))break;o=a}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);Ct&&ws(M,G,Ct),qt&&qt.length>0&&sl(M,G,qt.join(" "))}if(Ft=ct(it,20),void 0!==n){const Ct=Ft.projection=[];for(let qt=0;qt<this.ngContentSelectors.length;qt++){const Cn=n[qt];Ct.push(null!=Cn?Array.from(Cn):null)}}At=af(Kt,this.componentDef,gt,ze,[cf]),is(it,gt,null)}finally{It()}return new tm(this.componentType,At,xo(Ft,gt),gt,Ft)}}class tm extends Gp{constructor(t,n,r,o,a){super(),this.location=r,this._rootLView=o,this._tNode=a,this.instance=n,this.hostView=this.changeDetectorRef=new JC(o),this.componentType=t}get injector(){return new eo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function nm(e,t,n,r){return se(()=>{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 Fo{}class im{}const ko=new Map;function om(e){const t=new Set;!function n(r){const o=kt(r,!0),a=o.id;if(null!==a){(function rm(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${S(t)} vs ${S(t.name)}`)})(a,ko.get(a),r),ko.set(a,r)}const h=br(o.imports);for(const y of h)t.has(y)||(t.add(y),n(y))}(e)}function sm(e){return ko.get(e)||Et[e]}function r0(e,t){return new Zc(e,null!=t?t:null)}class Zc extends Fo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new qp(this);const r=kt(t);this._bootstrapComponents=br(r.bootstrap),this._r3Injector=Gh(t,n,[{provide:Fo,useValue:this},{provide:ms,useValue:this.componentFactoryResolver}],S(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Vi.THROW_IF_NOT_FOUND,r=N.Default){return t===Vi||t===Fo||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 ua extends im{constructor(t){super(),this.moduleType=t,null!==kt(t)&&om(t)}create(t){return new Zc(this.moduleType,t)}}function am(e,t,n){const r=Zt()+e,o=Tt();return o[r]===fn?Dr(o,r,n?t.call(n):t()):ss(o,r)}function lm(e,t,n,r){return _m(Tt(),Zt(),e,t,n,r)}function cm(e,t,n,r,o){return ym(Tt(),Zt(),e,t,n,r,o)}function um(e,t,n,r,o,a){return vm(Tt(),Zt(),e,t,n,r,o,a)}function dm(e,t,n,r,o,a,h){return bm(Tt(),Zt(),e,t,n,r,o,a,h)}function hm(e,t,n,r,o,a,h,y){const M=Zt()+e,L=Tt(),G=tr(L,M,n,r,o,a);return bi(L,M+4,h)||G?Dr(L,M+5,y?t.call(y,n,r,o,a,h):t(n,r,o,a,h)):ss(L,M+5)}function fm(e,t,n,r,o,a,h,y,M){const L=Zt()+e,G=Tt(),Ce=tr(G,L,n,r,o,a);return Qr(G,L+4,h,y)||Ce?Dr(G,L+6,M?t.call(M,n,r,o,a,h,y):t(n,r,o,a,h,y)):ss(G,L+6)}function pm(e,t,n,r,o,a,h,y,M,L){const G=Zt()+e,Ce=Tt();let ze=tr(Ce,G,n,r,o,a);return Xs(Ce,G+4,h,y,M)||ze?Dr(Ce,G+7,L?t.call(L,n,r,o,a,h,y,M):t(n,r,o,a,h,y,M)):ss(Ce,G+7)}function mm(e,t,n,r,o,a,h,y,M,L,G){const Ce=Zt()+e,ze=Tt(),it=tr(ze,Ce,n,r,o,a);return tr(ze,Ce+4,h,y,M,L)||it?Dr(ze,Ce+8,G?t.call(G,n,r,o,a,h,y,M,L):t(n,r,o,a,h,y,M,L)):ss(ze,Ce+8)}function gm(e,t,n,r){return Cm(Tt(),Zt(),e,t,n,r)}function _s(e,t){const n=e[t];return n===fn?void 0:n}function _m(e,t,n,r,o,a){const h=t+n;return bi(e,h,o)?Dr(e,h+1,a?r.call(a,o):r(o)):_s(e,h+1)}function ym(e,t,n,r,o,a,h){const y=t+n;return Qr(e,y,o,a)?Dr(e,y+2,h?r.call(h,o,a):r(o,a)):_s(e,y+2)}function vm(e,t,n,r,o,a,h,y){const M=t+n;return Xs(e,M,o,a,h)?Dr(e,M+3,y?r.call(y,o,a,h):r(o,a,h)):_s(e,M+3)}function bm(e,t,n,r,o,a,h,y,M){const L=t+n;return tr(e,L,o,a,h,y)?Dr(e,L+4,M?r.call(M,o,a,h,y):r(o,a,h,y)):_s(e,L+4)}function Cm(e,t,n,r,o,a){let h=t+n,y=!1;for(let M=0;M<o.length;M++)bi(e,h++,o[M])&&(y=!0);return y?Dr(e,h,r.apply(a,o)):_s(e,h)}function Em(e,t){const n=B();let r;const o=e+20;n.firstCreatePass?(r=function o0(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=fi(r.type)),h=ue(ls);try{const y=Ss(!1),M=a();return Ss(y),pf(n,Tt(),o,M),M}finally{ue(h)}}function Dm(e,t,n){const r=e+20,o=Tt(),a=vt(o,r);return ys(o,r)?_m(o,Zt(),t,a.transform,n,a):a.transform(n)}function Tm(e,t,n,r){const o=e+20,a=Tt(),h=vt(a,o);return ys(a,o)?ym(a,Zt(),t,h.transform,n,r,h):h.transform(n,r)}function wm(e,t,n,r,o){const a=e+20,h=Tt(),y=vt(h,a);return ys(h,a)?vm(h,Zt(),t,y.transform,n,r,o,y):y.transform(n,r,o)}function Mm(e,t,n,r,o,a){const h=e+20,y=Tt(),M=vt(y,h);return ys(y,h)?bm(y,Zt(),t,M.transform,n,r,o,a,M):M.transform(n,r,o,a)}function Sm(e,t,n){const r=e+20,o=Tt(),a=vt(o,r);return ys(o,r)?Cm(o,Zt(),t,a.transform,n,a):a.transform.apply(a,n)}function ys(e,t){return e[1].data[t].pure}function Yc(e){return t=>{setTimeout(e,void 0,t)}}const wr=class s0 extends i.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var o,a,h;let y=t,M=n||(()=>null),L=r;if(t&&"object"==typeof t){const Ce=t;y=null===(o=Ce.next)||void 0===o?void 0:o.bind(Ce),M=null===(a=Ce.error)||void 0===a?void 0:a.bind(Ce),L=null===(h=Ce.complete)||void 0===h?void 0:h.bind(Ce)}this.__isAsync&&(M=Yc(M),y&&(y=Yc(y)),L&&(L=Yc(L)));const G=super.subscribe({next:y,error:M,complete:L});return t instanceof d.w0&&t.add(G),G}};function a0(){return this._results[yo()]()}class da{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=yo(),r=da.prototype;r[n]||(r[n]=a0)}get changes(){return this._changes||(this._changes=new wr)}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=qi(t);(this._changesDetected=!function l_(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 vs=(()=>{class e{}return e.__NG_ELEMENT_ID__=u0,e})();const l0=vs,c0=class extends l0{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=ns(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)),is(n,r,t),new Ro(r)}};function u0(){return ha(f(),Tt())}function ha(e,t){return 4&e.type?new c0(t,e,xo(e,t)):null}let fa=(()=>{class e{}return e.__NG_ELEMENT_ID__=d0,e})();function d0(){return Pm(f(),Tt())}const h0=fa,Im=class extends h0{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return xo(this._hostTNode,this._hostLView)}get injector(){return new eo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Is(this._hostTNode,this._hostLView);if(Vu(t)){const n=qr(t,this._hostLView),r=Jr(t);return new eo(n[1].data[r+8],n)}return new eo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Am(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&&!Uo(t);let y;if(h)y=n;else{const Ce=n||{};y=Ce.index,r=Ce.injector,o=Ce.projectableNodes,a=Ce.ngModuleRef}const M=h?t:new ca(He(t)),L=r||this.parentInjector;if(!a&&null==M.ngModule&&L){const Ce=L.get(Fo,null);Ce&&(a=Ce)}const G=M.create(L,o,void 0,a);return this.insert(G.hostView,y),G}insert(t,n){const r=t._lView,o=r[1];if(function In(e){return Gn(e[3])}(r)){const G=this.indexOf(t);if(-1!==G)this.detach(G);else{const Ce=r[3],ze=new Im(Ce,Ce[6],Ce[3]);ze.detach(ze.indexOf(t))}}const a=this._adjustIndex(n),h=this._lContainer;!function Ey(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],Ju(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const h=t[17];null!==h&&n!==h&&function Dy(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 y=t[19];null!==y&&y.insertView(e),t[2]|=128}(o,r,h,a);const y=rl(a,h),M=r[11],L=Vs(M,h[7]);return null!==L&&function vy(e,t,n,r,o,a){r[0]=o,r[6]=t,ts(e,r,n,1,o,a)}(o,h[6],M,r,L,y),t.attachToViewContainerRef(),Ju(Xc(h),a,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Am(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=tl(this._lContainer,n);r&&(xs(Xc(this._lContainer),n),Kd(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=tl(this._lContainer,n);return r&&null!=xs(Xc(this._lContainer),n)?new Ro(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function Am(e){return e[8]}function Xc(e){return e[8]||(e[8]=[])}function Pm(e,t){let n;const r=t[e.index];if(Gn(r))n=r;else{let o;if(8&e.type)o=Ln(r);else{const a=t[11];o=a.createComment("");const h=ie(e,t);Gr(a,Vs(a,h),o,function Sy(e,t){return Rn(e)?e.nextSibling(t):t.nextSibling}(a,h),!1)}t[e.index]=n=Nh(r,t,o,e),Gs(t,n)}return new Im(n,e,t)}class Jc{constructor(t){this.queryList=t,this.matches=null}clone(){return new Jc(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!==jm(t,n).matches&&this.queries[n].setDirty()}}class Om{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class eu{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 eu(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 tu{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 tu(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,m0(n,a)),this.matchTNodeWithReadOption(t,n,Ps(n,t,a,!1,!1))}else r===vs?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ps(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===gs||o===fa||o===vs&&4&n.type)this.addMatch(n.index,-2);else{const a=Ps(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 m0(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 _0(e,t,n,r){return-1===n?function g0(e,t){return 11&e.type?xo(e,t):4&e.type?ha(e,t):null}(t,e):-2===n?function y0(e,t,n){return n===gs?xo(t,e):n===vs?ha(t,e):n===fa?Pm(t,e):void 0}(e,t,r):Ho(e,e[1],n,t)}function xm(e,t,n,r){const o=t[19].queries[r];if(null===o.matches){const a=e.data,h=n.matches,y=[];for(let M=0;M<h.length;M+=2){const L=h[M];y.push(L<0?null:_0(t,a[L],h[M+1],n.metadata.read))}o.matches=y}return o.matches}function nu(e,t,n,r){const o=e.queries.getByIndex(n),a=o.matches;if(null!==a){const h=xm(e,t,o,n);for(let y=0;y<a.length;y+=2){const M=a[y];if(M>0)r.push(h[y/2]);else{const L=a[y+1],G=t[-M];for(let Ce=10;Ce<G.length;Ce++){const ze=G[Ce];ze[17]===ze[3]&&nu(ze[1],ze,L,r)}if(null!==G[9]){const Ce=G[9];for(let ze=0;ze<Ce.length;ze++){const it=Ce[ze];nu(it[1],it,L,r)}}}}}return r}function Rm(e){const t=Tt(),n=B(),r=tt();yt(r+1);const o=jm(n,r);if(e.dirty&&Tn(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const a=o.crossesNgTemplate?nu(n,t,r,[]):xm(n,t,o,r);e.reset(a,QC),e.notifyOnChanges()}return!0}return!1}function Fm(e,t,n){const r=B();r.firstCreatePass&&(Bm(r,new Om(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Lm(r,Tt(),t)}function km(e,t,n,r){const o=B();if(o.firstCreatePass){const a=f();Bm(o,new Om(t,n,r),a.index),function b0(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)}Lm(o,Tt(),n)}function Nm(){return function v0(e,t){return e[19].queries[t].queryList}(Tt(),tt())}function Lm(e,t,n){const r=new da(4==(4&n));Ih(e,t,r,r.destroy),null===t[19]&&(t[19]=new qc),t[19].queries.push(new Jc(r))}function Bm(e,t,n){null===e.queries&&(e.queries=new eu),e.queries.track(new tu(t,n))}function jm(e,t){return e.queries.getByIndex(t)}function Vm(e,t){return ha(e,t)}const Ti=(()=>({\u0275\u0275attribute:Bl,\u0275\u0275attributeInterpolate1:jl,\u0275\u0275attributeInterpolate2:Vl,\u0275\u0275attributeInterpolate3:Hl,\u0275\u0275attributeInterpolate4:$l,\u0275\u0275attributeInterpolate5:Ul,\u0275\u0275attributeInterpolate6:zl,\u0275\u0275attributeInterpolate7:Wl,\u0275\u0275attributeInterpolate8:Kl,\u0275\u0275attributeInterpolateV:Gl,\u0275\u0275defineComponent:C,\u0275\u0275defineDirective:Ve,\u0275\u0275defineInjectable:Ye,\u0275\u0275defineInjector:pe,\u0275\u0275defineNgModule:Wt,\u0275\u0275definePipe:he,\u0275\u0275directiveInject:ls,\u0275\u0275getInheritedFactory:Zu,\u0275\u0275inject:si,\u0275\u0275injectAttribute:Sa,\u0275\u0275invalidFactory:Sf,\u0275\u0275invalidFactoryDep:Fa,\u0275\u0275templateRefExtractor:Vm,\u0275\u0275NgOnChangesFeature:pi,\u0275\u0275ProvidersFeature:Kp,\u0275\u0275CopyDefinitionFeature:df,\u0275\u0275InheritDefinitionFeature:kl,\u0275\u0275nextContext:kf,\u0275\u0275namespaceHTML:Vn,\u0275\u0275namespaceMathML:lr,\u0275\u0275namespaceSVG:_i,\u0275\u0275enableBindings:gi,\u0275\u0275disableBindings:Ni,\u0275\u0275elementStart:ql,\u0275\u0275elementEnd:ec,\u0275\u0275element:If,\u0275\u0275elementContainerStart:tc,\u0275\u0275elementContainerEnd:nc,\u0275\u0275elementContainer:Af,\u0275\u0275pureFunction0:am,\u0275\u0275pureFunction1:lm,\u0275\u0275pureFunction2:cm,\u0275\u0275pureFunction3:um,\u0275\u0275pureFunction4:dm,\u0275\u0275pureFunction5:hm,\u0275\u0275pureFunction6:fm,\u0275\u0275pureFunction7:pm,\u0275\u0275pureFunction8:mm,\u0275\u0275pureFunctionV:gm,\u0275\u0275getCurrentView:Pf,\u0275\u0275restoreView:c,\u0275\u0275listener:rc,\u0275\u0275projection:Lf,\u0275\u0275syntheticHostProperty:Bc,\u0275\u0275syntheticHostListener:oc,\u0275\u0275pipeBind1:Dm,\u0275\u0275pipeBind2:Tm,\u0275\u0275pipeBind3:wm,\u0275\u0275pipeBind4:Mm,\u0275\u0275pipeBindV:Sm,\u0275\u0275projectionDef:Nf,\u0275\u0275hostProperty:Lc,\u0275\u0275property:Xl,\u0275\u0275propertyInterpolate:ac,\u0275\u0275propertyInterpolate1:qs,\u0275\u0275propertyInterpolate2:lc,\u0275\u0275propertyInterpolate3:cc,\u0275\u0275propertyInterpolate4:uc,\u0275\u0275propertyInterpolate5:dc,\u0275\u0275propertyInterpolate6:hc,\u0275\u0275propertyInterpolate7:fc,\u0275\u0275propertyInterpolate8:pc,\u0275\u0275propertyInterpolateV:mc,\u0275\u0275pipe:Em,\u0275\u0275queryRefresh:Rm,\u0275\u0275viewQuery:Fm,\u0275\u0275loadQuery:Nm,\u0275\u0275contentQuery:km,\u0275\u0275reference:mf,\u0275\u0275classMap:Wf,\u0275\u0275classMapInterpolate1:qf,\u0275\u0275classMapInterpolate2:ep,\u0275\u0275classMapInterpolate3:tp,\u0275\u0275classMapInterpolate4:np,\u0275\u0275classMapInterpolate5:ip,\u0275\u0275classMapInterpolate6:rp,\u0275\u0275classMapInterpolate7:op,\u0275\u0275classMapInterpolate8:sp,\u0275\u0275classMapInterpolateV:ap,\u0275\u0275styleMap:dr,\u0275\u0275styleMapInterpolate1:lp,\u0275\u0275styleMapInterpolate2:cp,\u0275\u0275styleMapInterpolate3:up,\u0275\u0275styleMapInterpolate4:dp,\u0275\u0275styleMapInterpolate5:hp,\u0275\u0275styleMapInterpolate6:fp,\u0275\u0275styleMapInterpolate7:pp,\u0275\u0275styleMapInterpolate8:mp,\u0275\u0275styleMapInterpolateV:gp,\u0275\u0275styleProp:gc,\u0275\u0275stylePropInterpolate1:Ic,\u0275\u0275stylePropInterpolate2:Ac,\u0275\u0275stylePropInterpolate3:Pc,\u0275\u0275stylePropInterpolate4:Oc,\u0275\u0275stylePropInterpolate5:xc,\u0275\u0275stylePropInterpolate6:Rc,\u0275\u0275stylePropInterpolate7:Fc,\u0275\u0275stylePropInterpolate8:kc,\u0275\u0275stylePropInterpolateV:Nc,\u0275\u0275classProp:_c,\u0275\u0275advance:uh,\u0275\u0275template:ff,\u0275\u0275text:Jf,\u0275\u0275textInterpolate:vc,\u0275\u0275textInterpolate1:ta,\u0275\u0275textInterpolate2:bc,\u0275\u0275textInterpolate3:Cc,\u0275\u0275textInterpolate4:Ec,\u0275\u0275textInterpolate5:Dc,\u0275\u0275textInterpolate6:Tc,\u0275\u0275textInterpolate7:wc,\u0275\u0275textInterpolate8:Mc,\u0275\u0275textInterpolateV:Sc,\u0275\u0275i18n:Hp,\u0275\u0275i18nAttributes:$p,\u0275\u0275i18nExp:zc,\u0275\u0275i18nStart:$c,\u0275\u0275i18nEnd:Uc,\u0275\u0275i18nApply:Up,\u0275\u0275i18nPostprocess:zp,\u0275\u0275resolveWindow:Nd,\u0275\u0275resolveDocument:Ld,\u0275\u0275resolveBody:Bd,\u0275\u0275setComponentScope:D,\u0275\u0275setNgModuleScope:pn,\u0275\u0275sanitizeHtml:Cd,\u0275\u0275sanitizeStyle:Ed,\u0275\u0275sanitizeResourceUrl:za,\u0275\u0275sanitizeScript:Dd,\u0275\u0275sanitizeUrl:Ua,\u0275\u0275sanitizeUrlOrResourceUrl:Md,\u0275\u0275trustConstantHtml:Td,\u0275\u0275trustConstantResourceUrl:wd,forwardRef:A,resolveForwardRef:O}))();let No=null;function D0(){No=null}const bs=[];let iu=!1;function Hm(){if(!iu){iu=!0;try{for(let e=bs.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=bs[e];n.declarations&&n.declarations.every($m)&&(bs.splice(e,1),M0(t,n))}}finally{iu=!1}}}function $m(e){return Array.isArray(e)?e.every($m):!!O(e)}function Um(e,t={}){zm(e,t),function T0(e,t){bs.push({moduleType:e,ngModule:t})}(e,t)}function zm(e,t,n=!1){const r=qi(t.declarations||Mt);let o=null;Object.defineProperty(e,yn,{configurable:!0,get:()=>(null===o&&(o=ri().compileNgModule(Ti,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:qi(t.bootstrap||Mt).map(O),declarations:r.map(O),imports:qi(t.imports||Mt).map(O).map(Qm),exports:qi(t.exports||Mt).map(O).map(Qm),schemas:t.schemas?qi(t.schemas):null,id:t.id||null}),o.schemas||(o.schemas=[])),o)});let a=null;Object.defineProperty(e,oe,{get:()=>{if(null===a){const y=ri();a=y.compileFactory(Ti,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Ns(e),target:y.FactoryTarget.NgModule,typeArgumentCount:0})}return a},configurable:!1});let h=null;Object.defineProperty(e,Ot,{get:()=>{if(null===h){const y={name:e.name,type:e,providers:t.providers||Mt,imports:[(t.imports||Mt).map(O),(t.exports||Mt).map(O)]};h=ri().compileInjector(Ti,`ng:///${e.name}/\u0275inj.js`,y)}return h},configurable:!1})}let pa=new WeakMap,ou=new WeakMap;function w0(){pa=new WeakMap,ou=new WeakMap,bs.length=0}function M0(e,t){const n=qi(t.declarations||Mt),r=Cs(e);n.forEach(o=>{o.hasOwnProperty(bn)?su(He(o),r):!o.hasOwnProperty(Qt)&&!o.hasOwnProperty(on)&&(o.ngSelectorScope=e)})}function su(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(n=>n.hasOwnProperty(bn)?He(n):ut(n)).filter(n=>!!n),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(n=>Lt(n)),e.schemas=t.schemas,e.tView=null}function Cs(e){if(!au(e))throw new Error(`${e.name} does not have a module def (\u0275mod property)`);const t=kt(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 br(t.imports).forEach(r=>{const o=r;if(!au(o))throw new Error(`Importing ${o.name} which does not have a \u0275mod property`);const a=Cs(o);a.exported.directives.forEach(h=>n.compilation.directives.add(h)),a.exported.pipes.forEach(h=>n.compilation.pipes.add(h))}),br(t.declarations).forEach(r=>{Lt(r)?n.compilation.pipes.add(r):n.compilation.directives.add(r)}),br(t.exports).forEach(r=>{const o=r;if(au(o)){const a=Cs(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 Lt(o)?n.exported.pipes.add(o):n.exported.directives.add(o)}),t.transitiveCompileScopes=n,n}function Qm(e){return function S0(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function au(e){return!!kt(e)}let lu=0;function Zm(e,t){let n=null;(function M_(e,t){ad(t)&&(ao.set(e,t),Qo.add(e))})(e,t),Xm(e,t),Object.defineProperty(e,bn,{get:()=>{if(null===n){const r=ri();if(ad(t)){const L=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&L.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&L.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),L.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(L.join("\n"))}const o=function E0(){return No}();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 y=t.templateUrl||`ng:///${e.name}/template.html`,M=Object.assign(Object.assign({},Jm(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,y),template:t.template||"",preserveWhitespaces:a,styles:t.styles||Mt,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:h,interpolation:t.interpolation,viewProviders:t.viewProviders||null});lu++;try{M.usesInheritance&&qm(e),n=r.compileComponent(Ti,y,M)}finally{lu--}if(0===lu&&Hm(),function I0(e){return void 0!==e.ngSelectorScope}(e)){const L=Cs(e.ngSelectorScope);su(n,L)}}return n},configurable:!1})}function cu(e,t){let n=null;Xm(e,t||{}),Object.defineProperty(e,Qt,{get:()=>{if(null===n){const r=Ym(e,t||{});n=ri().compileDirective(Ti,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function Ym(e,t){const n=e&&e.name,r=`ng:///${n}/\u0275dir.js`,o=ri(),a=Jm(e,t);return a.typeSourceSpan=o.createParseSourceSpan("Directive",n,r),a.usesInheritance&&qm(e),{metadata:a,sourceMapUrl:r}}function Xm(e,t){let n=null;Object.defineProperty(e,oe,{get:()=>{if(null===n){const r=Ym(e,t),o=ri();n=o.compileFactory(Ti,`ng:///${e.name}/\u0275fac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:Ns(e),target:o.FactoryTarget.Directive})}return n},configurable:!1})}function A0(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function Jm(e,t){const n=Na(),r=n.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||zt,propMetadata:r,inputs:t.inputs||Mt,outputs:t.outputs||Mt,queries:eg(e,r,tg),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!A0(e),exportAs:x0(t.exportAs),providers:t.providers||null,viewQueries:eg(e,r,ng)}}function qm(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)!ut(n)&&!He(n)&&F0(n)&&cu(n,null),n=Object.getPrototypeOf(n)}function P0(e){return"string"==typeof e?rg(e):O(e)}function O0(e,t){return{propertyName:e,predicate:P0(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly}}function eg(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 "${re(e)}" since the query selector wasn't defined.`);if(a.some(ig))throw new Error("Cannot combine @Input decorators with query decorators");r.push(O0(o,h))}})}return r}function x0(e){return void 0===e?null:rg(e)}function tg(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function ng(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function ig(e){return"Input"===e.ngMetadataName}function rg(e){return e.split(",").map(t=>t.trim())}const R0=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function F0(e){const t=Na();if(R0.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],y=h.ngMetadataName;if(ig(h)||tg(h)||ng(h)||"Output"===y||"HostBinding"===y||"HostListener"===y)return!0}}return!1}function og(e,t){let n=null,r=null;Object.defineProperty(e,oe,{get:()=>{if(null===r){const o=sg(e,t),a=ri();r=a.compileFactory(Ti,`ng:///${o.name}/\u0275fac.js`,{name:o.name,type:o.type,typeArgumentCount:0,deps:Ns(e),target:a.FactoryTarget.Pipe})}return r},configurable:!1}),Object.defineProperty(e,on,{get:()=>{if(null===n){const o=sg(e,t);n=ri().compilePipe(Ti,`ng:///${o.name}/\u0275pipe.js`,o)}return n},configurable:!1})}function sg(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}const ag=ro("Directive",(e={})=>e,void 0,void 0,(e,t)=>cu(e,t)),k0=ro("Component",(e={})=>Object.assign({changeDetection:be.Default},e),ag,void 0,(e,t)=>Zm(e,t)),N0=ro("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>og(e,t)),L0=jr("Input",e=>({bindingPropertyName:e})),B0=jr("Output",e=>({bindingPropertyName:e})),j0=jr("HostBinding",e=>({hostPropertyName:e})),V0=jr("HostListener",(e,t)=>({eventName:e,args:t})),H0=ro("NgModule",e=>e,void 0,void 0,(e,t)=>Um(e,t));function ma(...e){}const uu=new Yn("Application Initializer");let Lo=(()=>{class e{constructor(n){this.appInits=n,this.resolve=ma,this.reject=ma,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(ic(a))n.push(a);else if(xf(a)){const h=new Promise((y,M)=>{a.subscribe({complete:y,error:M})});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)(si(uu,8))},e.\u0275prov=Ye({token:e,factory:e.\u0275fac}),e})();const lg=new Yn("AppId"),cg={provide:lg,useFactory:function $0(){return`${du()}${du()}${du()}`},deps:[]};function du(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ug=new Yn("Platform Initializer"),dg=new Yn("Platform ID"),hg=new Yn("appBootstrapListener"),U0=new Yn("Application Packages Root URL");let fg=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Ye({token:e,factory:e.\u0275fac}),e})();const ga=new Yn("LocaleId"),pg=new Yn("DefaultCurrencyCode"),z0=new Yn("Translations"),W0=new Yn("TranslationsFormat");var Mr=(()=>((Mr=Mr||{})[Mr.Error=0]="Error",Mr[Mr.Warning=1]="Warning",Mr[Mr.Ignore=2]="Ignore",Mr))();class mg{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let hu=(()=>{class e{compileModuleSync(n){return new ua(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),a=br(kt(n).declarations).reduce((h,y)=>{const M=He(y);return M&&h.push(new ca(M)),h},[]);return new mg(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=Ye({token:e,factory:e.\u0275fac}),e})();const gg=new Yn("compilerOptions");class K0{}const G0=(()=>Promise.resolve(0))();function fu(e){"undefined"==typeof Zone?G0.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Hi{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new wr(!1),this.onMicrotaskEmpty=new wr(!1),this.onStable=new wr(!1),this.onError=new wr(!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 Q0(){let e=Bt.requestAnimationFrame,t=Bt.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 X0(e){const t=()=>{!function Y0(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Bt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,mu(e),e.isCheckStableRunning=!0,pu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),mu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,a,h,y)=>{try{return _g(e),n.invokeTask(o,a,h,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),yg(e)}},onInvoke:(n,r,o,a,h,y,M)=>{try{return _g(e),n.invoke(o,a,h,y,M)}finally{e.shouldCoalesceRunChangeDetection&&t(),yg(e)}},onHasTask:(n,r,o,a)=>{n.hasTask(o,a),r===o&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,mu(e),pu(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!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Hi.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Hi.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,Z0,ma,ma);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 Z0={};function pu(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 mu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function _g(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function yg(e){e._nesting--,pu(e)}class vg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new wr,this.onMicrotaskEmpty=new wr,this.onStable=new wr,this.onError=new wr}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 bg=(()=>{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:()=>{Hi.assertNotInAngularZone(),fu(()=>{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())fu(()=>{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)(si(Hi))},e.\u0275prov=Ye({token:e,factory:e.\u0275fac}),e})(),gu=(()=>{class e{constructor(){this._applications=new Map,_u.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 _u.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Ye({token:e,factory:e.\u0275fac}),e})();class J0{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function q0(e){_u=e}let pr,_u=new J0;function Cg(e,t,n){const r=new ua(n);return Promise.resolve(r)}function Eg(e){return e.isBoundToModule}const yu=new Yn("AllowMultipleToken");class eE{constructor(t,n){this.name=t,this.token=n}}function Dg(e){if(pr&&!pr.destroyed&&!pr.injector.get(yu,!1))throw new U(400,"");pr=e.get(bu);const t=e.get(ug,null);return t&&t.forEach(n=>n()),pr}function Tg(e,t,n=[]){const r=`Platform: ${t}`,o=new Yn(r);return(a=[])=>{let h=vu();if(!h||h.injector.get(yu,!1))if(e)e(n.concat(a).concat({provide:o,useValue:!0}));else{const y=n.concat(a).concat({provide:o,useValue:!0},{provide:Il,useValue:"platform"});Dg(Vi.create({providers:y,name:r}))}return wg()}}function wg(e){const t=vu();if(!t)throw new U(401,"");return t}function tE(){pr&&!pr.destroyed&&pr.destroy()}function vu(){return pr&&!pr.destroyed?pr:null}let bu=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const y=function nE(e,t){let n;return n="noop"===e?new vg:("zone.js"===e?void 0:e)||new Hi({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}),M=[{provide:Hi,useValue:y}];return y.run(()=>{const L=Vi.create({providers:M,parent:this.injector,name:n.moduleType.name}),G=n.create(L),Ce=G.injector.get(qo,null);if(!Ce)throw new U(402,"");return y.runOutsideAngular(()=>{const ze=y.onError.subscribe({next:it=>{Ce.handleError(it)}});G.onDestroy(()=>{Cu(this._modules,G),ze.unsubscribe()})}),function iE(e,t,n){try{const r=n();return ic(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(Ce,y,()=>{const ze=G.injector.get(Lo);return ze.runInitializers(),ze.donePromise.then(()=>(bp(G.injector.get(ga,us)||us),this._moduleDoBootstrap(G),G))})})}bootstrapModule(n,r=[]){const o=Mg({},r);return Cg(0,0,n).then(a=>this.bootstrapModuleFactory(a,o))}_moduleDoBootstrap(n){const r=n.injector.get(Es);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new U(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 U(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)(si(Vi))},e.\u0275prov=Ye({token:e,factory:e.\u0275fac}),e})();function Mg(e,t){return Array.isArray(t)?t.reduce(Mg,e):Object.assign(Object.assign({},e),t)}let Es=(()=>{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 y=new m.y(L=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{L.next(this._stable),L.complete()})}),M=new m.y(L=>{let G;this._zone.runOutsideAngular(()=>{G=this._zone.onStable.subscribe(()=>{Hi.assertNotInAngularZone(),fu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,L.next(!0))})})});const Ce=this._zone.onUnstable.subscribe(()=>{Hi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{L.next(!1)}))});return()=>{G.unsubscribe(),Ce.unsubscribe()}});this.isStable=(0,u.T)(y,M.pipe((0,s.B)()))}bootstrap(n,r){if(!this._initStatus.done)throw new U(405,"");let o;o=n instanceof sa?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const a=Eg(o)?void 0:this._injector.get(Fo),y=o.create(Vi.NULL,[],r||o.selector,a),M=y.location.nativeElement,L=y.injector.get(bg,null),G=L&&y.injector.get(gu);return L&&G&&G.registerApplication(M,L),y.onDestroy(()=>{this.detachView(y.hostView),Cu(this.components,y),G&&G.unregisterApplication(M)}),this._loadComponent(y),y}tick(){if(this._runningTick)throw new U(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;Cu(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(hg,[]).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)(si(Hi),si(Vi),si(qo),si(ms),si(Lo))},e.\u0275prov=Ye({token:e,factory:e.\u0275fac}),e})();function Cu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Ig=!0,Ag=!1;function oE(){return Ag=!0,Ig}function sE(){if(Ag)throw new Error("Cannot enable prod mode after platform setup.");Ig=!1}function aE(e){const t=sm(e);if(!t)throw Pg(e);return new ua(t)}function lE(e){const t=sm(e);if(!t)throw Pg(e);return t}function Pg(e){return new Error(`No module with ID ${e} loaded`)}let Og=(()=>{class e{}return e.__NG_ELEMENT_ID__=xg,e})();function xg(e){return function cE(e,t,n){if(wi(e)&&!n){const r=Rt(e.index,t);return new Ro(r,r)}return 47&e.type?new Ro(t[16],t):null}(f(),Tt(),16==(16&e))}class Rg extends Og{}class uE extends Rg{}class dE{constructor(t,n){this.name=t,this.callback=n}}function hE(e){return e.map(t=>t.nativeElement)}class Eu{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new Ds(t):null}get injector(){return qh(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(xl(t)||Xh(t))}get context(){return xl(this.nativeNode)||Yh(this.nativeNode)}get listeners(){return tf(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function jv(e){const t=yi(e);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function ry(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 Lv(e){const t=yi(e);if(null===t)return[];const r=t.lView[1],o=r.data[t.nodeIndex],a=[],y=o.directiveEnd;for(let M=1048575&o.providerIndexes;M<y;M++){let L=r.data[M];Hv(L)&&(L=L.type),a.push(L)}return a}(this.nativeNode)}}class Ds extends Eu{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const t=yi(this.nativeNode);return null!==t?t.lView[1].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){const t=yi(this.nativeNode);if(null===t)return{};const n=t.lView,r=n[1].data,o=r[t.nodeIndex],a={};return function fE(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];pE(h)&&(t[a]=h)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,a),function mE(e,t,n,r){let o=t.propertyBindings;if(null!==o)for(let a=0;a<o.length;a++){const h=o[a],M=r[h].split("\ufffd"),L=M[0];if(M.length>1){let G=M[1];for(let Ce=1;Ce<M.length-1;Ce++)G+=$(n[h+Ce-1])+M[Ce+1];e[L]=G}else e[L]=n[h]}}(a,o,n,r),a}get attributes(){const t={},n=this.nativeElement;if(!n)return t;const r=yi(n);if(null===r)return{};const a=r.lView[1].data[r.nodeIndex].attrs,h=[];if(a){let M=0;for(;M<a.length;){const L=a[M];if("string"!=typeof L)break;t[L]=a[M+1],h.push(L.toLowerCase()),M+=2}}const y=n.attributes;for(let M=0;M<y.length;M++){const L=y[M],G=L.name.toLowerCase();-1===h.indexOf(G)&&(t[G]=L.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(Su(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(Su(n[o]));return r}query(t){return this.queryAll(t)[0]||null}queryAll(t){const n=[];return Fg(this,t,n,!0),n}queryAllNodes(t){const n=[];return Fg(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 pE(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function Fg(e,t,n,r){const o=yi(e.nativeNode);null!==o?Yr(o.lView[1].data[o.nodeIndex],o.lView,t,n,r,e.nativeNode):Tu(e.nativeNode,t,n,r)}function Yr(e,t,n,r,o,a){const h=function We(e,t){const n=null===e?-1:e.index;return-1!==n?Ln(t[n]):null}(e,t);if(11&e.type){if(Du(h,n,r,o,a),wi(e)){const M=Rt(e.index,t);M&&M[1].firstChild&&Yr(M[1].firstChild,M,n,r,o,a)}else e.child&&Yr(e.child,t,n,r,o,a),h&&Tu(h,n,r,o);const y=t[e.index];Gn(y)&&kg(y,n,r,o,a)}else if(4&e.type){const y=t[e.index];Du(y[7],n,r,o,a),kg(y,n,r,o,a)}else if(16&e.type){const y=t[16],L=y[6].projection[e.projection];if(Array.isArray(L))for(let G of L)Du(G,n,r,o,a);else if(L){const G=y[3];Yr(G[1].data[L.index],G,n,r,o,a)}}else e.child&&Yr(e.child,t,n,r,o,a);if(a!==h){const y=4&e.flags?e.projectionNext:e.next;y&&Yr(y,t,n,r,o,a)}}function kg(e,t,n,r,o){for(let a=10;a<e.length;a++){const h=e[a],y=h[1].firstChild;y&&Yr(y,h,t,n,r,o)}}function Du(e,t,n,r,o){if(o!==e){const a=_a(e);if(!a)return;(r&&a instanceof Ds&&t(a)&&-1===n.indexOf(a)||!r&&t(a)&&-1===n.indexOf(a))&&n.push(a)}}function Tu(e,t,n,r){const o=e.childNodes,a=o.length;for(let h=0;h<a;h++){const y=o[h],M=_a(y);M&&((r&&M instanceof Ds&&t(M)&&-1===n.indexOf(M)||!r&&t(M)&&-1===n.indexOf(M))&&n.push(M),Tu(y,t,n,r))}}const Mu="__ng_debug__";function Su(e){return e instanceof Node?(e.hasOwnProperty(Mu)||(e[Mu]=e.nodeType==Node.ELEMENT_NODE?new Ds(e):new Eu(e)),e[Mu]):null}const _a=Su,_E=function gE(e){return null},yE=Eu,vE=Ds;class Ng{constructor(){}supports(t){return os(t)}create(t){return new Lg(t)}}const bE=(e,t)=>t;class Lg{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||bE}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<jg(r,o,a)?n:r,y=jg(h,o,a),M=h.currentIndex;if(h===r)o--,r=r._nextRemoved;else if(n=n._next,null==h.previousIndex)o++;else{a||(a=[]);const L=y-o,G=M-o;if(L!=G){for(let ze=0;ze<L;ze++){const it=ze<a.length?a[ze]:a[ze]=0,gt=it+ze;G<=gt&&gt<L&&(a[ze]=it+1)}a[h.previousIndex]=G-L}}y!==M&&t(h,y,M)}}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=[]),!os(t))throw new Error(`Error trying to diff '${S(t)}'. Only arrays and iterables are allowed`);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 y=0;y<this.length;y++)a=t[y],h=this._trackByFn(y,a),null!==n&&Object.is(n.trackById,h)?(r&&(n=this._verifyReinsertion(n,a,h,y)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,h,y),r=!0),n=n._next}else o=0,function qv(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[yo()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,y=>{h=this._trackByFn(o,y),null!==n&&Object.is(n.trackById,h)?(r&&(n=this._verifyReinsertion(n,y,h,o)),Object.is(n.item,y)||this._addIdentityChange(n,y)):(n=this._mismatch(n,y,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 CE(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 Bg),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 Bg),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 CE{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 EE{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 Bg{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new EE,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 jg(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 Vg{constructor(){}supports(t){return t instanceof Map||Ll(t)}create(){return new DE}}class DE{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||Ll(t)))throw new Error(`Error trying to diff '${S(t)}'. Only maps and objects are allowed`)}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 TE(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 TE{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 Hg(){return new ya([new Ng])}let ya=(()=>{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||Hg()),deps:[[e,new Wr,new zr]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function wE(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=Ye({token:e,providedIn:"root",factory:Hg}),e})();function $g(){return new va([new Vg])}let va=(()=>{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||$g()),deps:[[e,new Wr,new zr]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=Ye({token:e,providedIn:"root",factory:$g}),e})();const ME=[new Vg],Ug=new ya([new Ng]),zg=new va(ME),IE=Tg(null,"core",[{provide:dg,useValue:"unknown"},{provide:bu,deps:[Vi]},{provide:gu,deps:[]},{provide:fg,deps:[]}]),RE=[{provide:Es,useClass:Es,deps:[Hi,Vi,qo,ms,Lo]},{provide:e0,deps:[Hi],useFactory:function FE(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Lo,useClass:Lo,deps:[[new zr,uu]]},{provide:hu,useClass:hu,deps:[]},cg,{provide:ya,useFactory:function AE(){return Ug},deps:[]},{provide:va,useFactory:function PE(){return zg},deps:[]},{provide:ga,useFactory:function OE(e){return e||function xE(){return"undefined"!=typeof $localize&&$localize.locale||us}()},deps:[[new Go(ga),new zr,new Wr]]},{provide:pg,useValue:"USD"}];let kE=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(si(Es))},e.\u0275mod=Wt({type:e}),e.\u0275inj=pe({providers:RE}),e})();const NE=!0;function LE(e){return ri().compileDirectiveDeclaration(Ti,`ng:///${e.type.name}/\u0275fac.js`,e)}function BE(e){var t,n;nm(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(n=e.propDecorators)&&void 0!==n?n:null)}function jE(e){return ri().compileComponentDeclaration(Ti,`ng:///${e.type.name}/\u0275cmp.js`,e)}function VE(e){return ri(function HE(e){switch(e){case ii.Directive:return"directive";case ii.Component:return"component";case ii.Injectable:return"injectable";case ii.Pipe:return"pipe";case ii.NgModule:return"NgModule"}}(e.target)).compileFactoryDeclaration(Ti,`ng:///${e.type.name}/\u0275fac.js`,e)}function $E(e){return ri().compileInjectableDeclaration(Ti,`ng:///${e.type.name}/\u0275prov.js`,e)}function UE(e){return ri().compileInjectorDeclaration(Ti,`ng:///${e.type.name}/\u0275inj.js`,e)}function zE(e){return ri().compileNgModuleDeclaration(Ti,`ng:///${e.type.name}/\u0275mod.js`,e)}function WE(e){return ri().compilePipeDeclaration(Ti,`ng:///${e.type.name}/\u0275pipe.js`,e)}},3075:(je,_,l)=>{"use strict";l.r(_),l.d(_,{AbstractControl:()=>Nt,AbstractControlDirective:()=>Xe,AbstractFormGroupDirective:()=>Un,COMPOSITION_BUFFER_MODE:()=>w,CheckboxControlValueAccessor:()=>v,CheckboxRequiredValidator:()=>ki,ControlContainer:()=>bt,DefaultValueAccessor:()=>k,EmailValidator:()=>Rn,FormArray:()=>jt,FormArrayName:()=>Di,FormBuilder:()=>In,FormControl:()=>Xt,FormControlDirective:()=>zi,FormControlName:()=>Ki,FormGroup:()=>vn,FormGroupDirective:()=>Mi,FormGroupName:()=>ci,FormsModule:()=>Rt,MaxLengthValidator:()=>x,MaxValidator:()=>Zi,MinLengthValidator:()=>ar,MinValidator:()=>Ri,NG_ASYNC_VALIDATORS:()=>re,NG_VALIDATORS:()=>$,NG_VALUE_ACCESSOR:()=>S,NgControl:()=>dt,NgControlStatus:()=>N,NgControlStatusGroup:()=>ae,NgForm:()=>Hn,NgModel:()=>Gn,NgModelGroup:()=>ni,NgSelectOption:()=>_r,NumberValueAccessor:()=>hi,PatternValidator:()=>R,RadioControlValueAccessor:()=>Qn,RangeValueAccessor:()=>Ei,ReactiveFormsModule:()=>Tn,RequiredValidator:()=>Yi,SelectControlValueAccessor:()=>Ii,SelectMultipleControlValueAccessor:()=>mi,VERSION:()=>cn,Validators:()=>fe,\u0275InternalFormsSharedModule:()=>vt,\u0275NgNoValidate:()=>Ci,\u0275NgSelectMultipleOption:()=>ir});var i=l(5e3),d=l(9808),m=l(188),u=l(4128),s=l(4004);let b=(()=>{class F{constructor(E,J){this._renderer=E,this._elementRef=J,this.onChange=at=>{},this.onTouched=()=>{}}setProperty(E,J){this._renderer.setProperty(this._elementRef.nativeElement,E,J)}registerOnTouched(E){this.onTouched=E}registerOnChange(E){this.onChange=E}setDisabledState(E){this.setProperty("disabled",E)}}return F.\u0275fac=function(E){return new(E||F)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F}),F})(),T=(()=>{class F extends b{}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,features:[i.\u0275\u0275InheritDefinitionFeature]}),F})();const S=new i.InjectionToken("NgValueAccessor"),g={provide:S,useExisting:(0,i.forwardRef)(()=>v),multi:!0};let v=(()=>{class F extends T{writeValue(E){this.setProperty("checked",E)}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(E,J){1&E&&i.\u0275\u0275listener("change",function(Vt){return J.onChange(Vt.target.checked)})("blur",function(){return J.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([g]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const A={provide:S,useExisting:(0,i.forwardRef)(()=>k),multi:!0},w=new i.InjectionToken("CompositionEventMode");let k=(()=>{class F extends b{constructor(E,J,at){super(E,J),this._compositionMode=at,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function O(){const F=(0,d.\u0275getDOM)()?(0,d.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(F.toLowerCase())}())}writeValue(E){this.setProperty("value",null==E?"":E)}_handleInput(E){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(E)}_compositionStart(){this._composing=!0}_compositionEnd(E){this._composing=!1,this._compositionMode&&this.onChange(E)}}return F.\u0275fac=function(E){return new(E||F)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(w,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(E,J){1&E&&i.\u0275\u0275listener("input",function(Vt){return J._handleInput(Vt.target.value)})("blur",function(){return J.onTouched()})("compositionstart",function(){return J._compositionStart()})("compositionend",function(Vt){return J._compositionEnd(Vt.target.value)})},features:[i.\u0275\u0275ProvidersFeature([A]),i.\u0275\u0275InheritDefinitionFeature]}),F})();function U(F){return null==F||0===F.length}function me(F){return null!=F&&"number"==typeof F.length}const $=new i.InjectionToken("NgValidators"),re=new i.InjectionToken("NgAsyncValidators"),Te=/^(?=.{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 fe{static min(P){return _e(P)}static max(P){return le(P)}static required(P){return Ee(P)}static requiredTrue(P){return Fe(P)}static email(P){return Je(P)}static minLength(P){return ot(P)}static maxLength(P){return q(P)}static pattern(P){return Ae(P)}static nullValidator(P){return null}static compose(P){return Me(P)}static composeAsync(P){return mt(P)}}function _e(F){return P=>{if(U(P.value)||U(F))return null;const E=parseFloat(P.value);return!isNaN(E)&&E<F?{min:{min:F,actual:P.value}}:null}}function le(F){return P=>{if(U(P.value)||U(F))return null;const E=parseFloat(P.value);return!isNaN(E)&&E>F?{max:{max:F,actual:P.value}}:null}}function Ee(F){return U(F.value)?{required:!0}:null}function Fe(F){return!0===F.value?null:{required:!0}}function Je(F){return U(F.value)||Te.test(F.value)?null:{email:!0}}function ot(F){return P=>U(P.value)||!me(P.value)?null:P.value.length<F?{minlength:{requiredLength:F,actualLength:P.value.length}}:null}function q(F){return P=>me(P.value)&&P.value.length>F?{maxlength:{requiredLength:F,actualLength:P.value.length}}:null}function Ae(F){if(!F)return X;let P,E;return"string"==typeof F?(E="","^"!==F.charAt(0)&&(E+="^"),E+=F,"$"!==F.charAt(F.length-1)&&(E+="$"),P=new RegExp(E)):(E=F.toString(),P=F),J=>{if(U(J.value))return null;const at=J.value;return P.test(at)?null:{pattern:{requiredPattern:E,actualValue:at}}}}function X(F){return null}function ce(F){return null!=F}function Se(F){const P=(0,i.\u0275isPromise)(F)?(0,m.D)(F):F;return(0,i.\u0275isObservable)(P),P}function ne(F){let P={};return F.forEach(E=>{P=null!=E?Object.assign(Object.assign({},P),E):P}),0===Object.keys(P).length?null:P}function $e(F,P){return P.map(E=>E(F))}function Ze(F){return F.map(P=>function ge(F){return!F.validate}(P)?P:E=>P.validate(E))}function Me(F){if(!F)return null;const P=F.filter(ce);return 0==P.length?null:function(E){return ne($e(E,P))}}function Ke(F){return null!=F?Me(Ze(F)):null}function mt(F){if(!F)return null;const P=F.filter(ce);return 0==P.length?null:function(E){const J=$e(E,P).map(Se);return(0,u.D)(J).pipe((0,s.U)(ne))}}function Dt(F){return null!=F?mt(Ze(F)):null}function ke(F,P){return null===F?[P]:Array.isArray(F)?[...F,P]:[F,P]}function Ye(F){return F._rawValidators}function Z(F){return F._rawAsyncValidators}function pe(F){return F?Array.isArray(F)?F:[F]:[]}function we(F,P){return Array.isArray(F)?F.includes(P):F===P}function Re(F,P){const E=pe(P);return pe(F).forEach(at=>{we(E,at)||E.push(at)}),E}function ye(F,P){return pe(P).filter(E=>!we(F,E))}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(P){this._rawValidators=P||[],this._composedValidatorFn=Ke(this._rawValidators)}_setAsyncValidators(P){this._rawAsyncValidators=P||[],this._composedAsyncValidatorFn=Dt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(P){this._onDestroyCallbacks.push(P)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(P=>P()),this._onDestroyCallbacks=[]}reset(P){this.control&&this.control.reset(P)}hasError(P,E){return!!this.control&&this.control.hasError(P,E)}getError(P,E){return this.control?this.control.getError(P,E):null}}class dt extends Xe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class bt extends Xe{get formDirective(){return null}get path(){return null}}class Ot{constructor(P){this._cd=P}is(P){var E,J,at;return"submitted"===P?!!(null===(E=this._cd)||void 0===E?void 0:E.submitted):!!(null===(at=null===(J=this._cd)||void 0===J?void 0:J.control)||void 0===at?void 0:at[P])}}let N=(()=>{class F extends Ot{constructor(E){super(E)}}return F.\u0275fac=function(E){return new(E||F)(i.\u0275\u0275directiveInject(dt,2))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(E,J){2&E&&i.\u0275\u0275classProp("ng-untouched",J.is("untouched"))("ng-touched",J.is("touched"))("ng-pristine",J.is("pristine"))("ng-dirty",J.is("dirty"))("ng-valid",J.is("valid"))("ng-invalid",J.is("invalid"))("ng-pending",J.is("pending"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),F})(),ae=(()=>{class F extends Ot{constructor(E){super(E)}}return F.\u0275fac=function(E){return new(E||F)(i.\u0275\u0275directiveInject(bt,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(E,J){2&E&&i.\u0275\u0275classProp("ng-untouched",J.is("untouched"))("ng-touched",J.is("touched"))("ng-pristine",J.is("pristine"))("ng-dirty",J.is("dirty"))("ng-valid",J.is("valid"))("ng-invalid",J.is("invalid"))("ng-pending",J.is("pending"))("ng-submitted",J.is("submitted"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),F})();function zt(F,P){return[...P.path,F]}function Mt(F,P){yn(F,P),P.valueAccessor.writeValue(F.value),function W(F,P){P.valueAccessor.registerOnChange(E=>{F._pendingValue=E,F._pendingChange=!0,F._pendingDirty=!0,"change"===F.updateOn&&C(F,P)})}(F,P),function D(F,P){const E=(J,at)=>{P.valueAccessor.writeValue(J),at&&P.viewToModelUpdate(J)};F.registerOnChange(E),P._registerOnDestroy(()=>{F._unregisterOnChange(E)})}(F,P),function p(F,P){P.valueAccessor.registerOnTouched(()=>{F._pendingTouched=!0,"blur"===F.updateOn&&F._pendingChange&&C(F,P),"submit"!==F.updateOn&&F.markAsTouched()})}(F,P),function on(F,P){if(P.valueAccessor.setDisabledState){const E=J=>{P.valueAccessor.setDisabledState(J)};F.registerOnDisabledChange(E),P._registerOnDestroy(()=>{F._unregisterOnDisabledChange(E)})}}(F,P)}function bn(F,P,E=!0){const J=()=>{};P.valueAccessor&&(P.valueAccessor.registerOnChange(J),P.valueAccessor.registerOnTouched(J)),oe(F,P),F&&(P._invokeOnDestroyCallbacks(),F._registerOnCollectionChange(()=>{}))}function Qt(F,P){F.forEach(E=>{E.registerOnValidatorChange&&E.registerOnValidatorChange(P)})}function yn(F,P){const E=Ye(F);null!==P.validator?F.setValidators(ke(E,P.validator)):"function"==typeof E&&F.setValidators([E]);const J=Z(F);null!==P.asyncValidator?F.setAsyncValidators(ke(J,P.asyncValidator)):"function"==typeof J&&F.setAsyncValidators([J]);const at=()=>F.updateValueAndValidity();Qt(P._rawValidators,at),Qt(P._rawAsyncValidators,at)}function oe(F,P){let E=!1;if(null!==F){if(null!==P.validator){const at=Ye(F);if(Array.isArray(at)&&at.length>0){const Vt=at.filter(An=>An!==P.validator);Vt.length!==at.length&&(E=!0,F.setValidators(Vt))}}if(null!==P.asyncValidator){const at=Z(F);if(Array.isArray(at)&&at.length>0){const Vt=at.filter(An=>An!==P.asyncValidator);Vt.length!==at.length&&(E=!0,F.setAsyncValidators(Vt))}}}const J=()=>{};return Qt(P._rawValidators,J),Qt(P._rawAsyncValidators,J),E}function C(F,P){F._pendingDirty&&F.markAsDirty(),F.setValue(F._pendingValue,{emitModelToViewChange:!1}),P.viewToModelUpdate(F._pendingValue),F._pendingChange=!1}function K(F,P){yn(F,P)}function pn(F,P){if(!F.hasOwnProperty("model"))return!1;const E=F.model;return!!E.isFirstChange()||!Object.is(P,E.currentValue)}function Ve(F,P){F._syncPendingControls(),P.forEach(E=>{const J=E.control;"submit"===J.updateOn&&J._pendingChange&&(E.viewToModelUpdate(J._pendingValue),J._pendingChange=!1)})}function he(F,P){if(!P)return null;let E,J,at;return Array.isArray(P),P.forEach(Vt=>{Vt.constructor===k?E=Vt:function Le(F){return Object.getPrototypeOf(F.constructor)===T}(Vt)?J=Vt:at=Vt}),at||J||E||null}function He(F,P){const E=F.indexOf(P);E>-1&&F.splice(E,1)}const kt="VALID",hn="INVALID",Dn="PENDING",$n="DISABLED";function Jn(F){return(V(F)?F.validators:F)||null}function Nn(F){return Array.isArray(F)?Ke(F):F||null}function Wn(F,P){return(V(P)?P.asyncValidators:F)||null}function Bn(F){return Array.isArray(F)?Dt(F):F||null}function V(F){return null!=F&&!Array.isArray(F)&&"object"==typeof F}const Ie=F=>F instanceof Xt,z=F=>F instanceof vn,Pe=F=>F instanceof jt;function qe(F){return Ie(F)?F.value:F.getRawValue()}function st(F,P){const E=z(F),J=F.controls;if(!(E?Object.keys(J):J).length)throw new i.\u0275RuntimeError(1e3,"");if(!J[P])throw new i.\u0275RuntimeError(1001,"")}function St(F,P){z(F),F._forEachChild((J,at)=>{if(void 0===P[at])throw new i.\u0275RuntimeError(1002,"")})}class Nt{constructor(P,E){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=P,this._rawAsyncValidators=E,this._composedValidatorFn=Nn(this._rawValidators),this._composedAsyncValidatorFn=Bn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(P){this._rawValidators=this._composedValidatorFn=P}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(P){this._rawAsyncValidators=this._composedAsyncValidatorFn=P}get parent(){return this._parent}get valid(){return this.status===kt}get invalid(){return this.status===hn}get pending(){return this.status==Dn}get disabled(){return this.status===$n}get enabled(){return this.status!==$n}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(P){this._rawValidators=P,this._composedValidatorFn=Nn(P)}setAsyncValidators(P){this._rawAsyncValidators=P,this._composedAsyncValidatorFn=Bn(P)}addValidators(P){this.setValidators(Re(P,this._rawValidators))}addAsyncValidators(P){this.setAsyncValidators(Re(P,this._rawAsyncValidators))}removeValidators(P){this.setValidators(ye(P,this._rawValidators))}removeAsyncValidators(P){this.setAsyncValidators(ye(P,this._rawAsyncValidators))}hasValidator(P){return we(this._rawValidators,P)}hasAsyncValidator(P){return we(this._rawAsyncValidators,P)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(P={}){this.touched=!0,this._parent&&!P.onlySelf&&this._parent.markAsTouched(P)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(P=>P.markAllAsTouched())}markAsUntouched(P={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(E=>{E.markAsUntouched({onlySelf:!0})}),this._parent&&!P.onlySelf&&this._parent._updateTouched(P)}markAsDirty(P={}){this.pristine=!1,this._parent&&!P.onlySelf&&this._parent.markAsDirty(P)}markAsPristine(P={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(E=>{E.markAsPristine({onlySelf:!0})}),this._parent&&!P.onlySelf&&this._parent._updatePristine(P)}markAsPending(P={}){this.status=Dn,!1!==P.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!P.onlySelf&&this._parent.markAsPending(P)}disable(P={}){const E=this._parentMarkedDirty(P.onlySelf);this.status=$n,this.errors=null,this._forEachChild(J=>{J.disable(Object.assign(Object.assign({},P),{onlySelf:!0}))}),this._updateValue(),!1!==P.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},P),{skipPristineCheck:E})),this._onDisabledChange.forEach(J=>J(!0))}enable(P={}){const E=this._parentMarkedDirty(P.onlySelf);this.status=kt,this._forEachChild(J=>{J.enable(Object.assign(Object.assign({},P),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:P.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},P),{skipPristineCheck:E})),this._onDisabledChange.forEach(J=>J(!1))}_updateAncestors(P){this._parent&&!P.onlySelf&&(this._parent.updateValueAndValidity(P),P.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(P){this._parent=P}updateValueAndValidity(P={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kt||this.status===Dn)&&this._runAsyncValidator(P.emitEvent)),!1!==P.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!P.onlySelf&&this._parent.updateValueAndValidity(P)}_updateTreeValidity(P={emitEvent:!0}){this._forEachChild(E=>E._updateTreeValidity(P)),this.updateValueAndValidity({onlySelf:!0,emitEvent:P.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?$n:kt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(P){if(this.asyncValidator){this.status=Dn,this._hasOwnPendingAsyncValidator=!0;const E=Se(this.asyncValidator(this));this._asyncValidationSubscription=E.subscribe(J=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(J,{emitEvent:P})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(P,E={}){this.errors=P,this._updateControlsErrors(!1!==E.emitEvent)}get(P){return function di(F,P,E){if(null==P||(Array.isArray(P)||(P=P.split(E)),Array.isArray(P)&&0===P.length))return null;let J=F;return P.forEach(at=>{J=z(J)?J.controls.hasOwnProperty(at)?J.controls[at]:null:Pe(J)&&J.at(at)||null}),J}(this,P,".")}getError(P,E){const J=E?this.get(E):this;return J&&J.errors?J.errors[P]:null}hasError(P,E){return!!this.getError(P,E)}get root(){let P=this;for(;P._parent;)P=P._parent;return P}_updateControlsErrors(P){this.status=this._calculateStatus(),P&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(P)}_initObservables(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?$n:this.errors?hn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Dn)?Dn:this._anyControlsHaveStatus(hn)?hn:kt}_anyControlsHaveStatus(P){return this._anyControls(E=>E.status===P)}_anyControlsDirty(){return this._anyControls(P=>P.dirty)}_anyControlsTouched(){return this._anyControls(P=>P.touched)}_updatePristine(P={}){this.pristine=!this._anyControlsDirty(),this._parent&&!P.onlySelf&&this._parent._updatePristine(P)}_updateTouched(P={}){this.touched=this._anyControlsTouched(),this._parent&&!P.onlySelf&&this._parent._updateTouched(P)}_isBoxedValue(P){return"object"==typeof P&&null!==P&&2===Object.keys(P).length&&"value"in P&&"disabled"in P}_registerOnCollectionChange(P){this._onCollectionChange=P}_setUpdateStrategy(P){V(P)&&null!=P.updateOn&&(this._updateOn=P.updateOn)}_parentMarkedDirty(P){return!P&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Xt extends Nt{constructor(P=null,E,J){super(Jn(E),Wn(J,E)),this._onChange=[],this._pendingChange=!1,this._applyFormState(P),this._setUpdateStrategy(E),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(P,E={}){this.value=this._pendingValue=P,this._onChange.length&&!1!==E.emitModelToViewChange&&this._onChange.forEach(J=>J(this.value,!1!==E.emitViewToModelChange)),this.updateValueAndValidity(E)}patchValue(P,E={}){this.setValue(P,E)}reset(P=null,E={}){this._applyFormState(P),this.markAsPristine(E),this.markAsUntouched(E),this.setValue(this.value,E),this._pendingChange=!1}_updateValue(){}_anyControls(P){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(P){this._onChange.push(P)}_unregisterOnChange(P){He(this._onChange,P)}registerOnDisabledChange(P){this._onDisabledChange.push(P)}_unregisterOnDisabledChange(P){He(this._onDisabledChange,P)}_forEachChild(P){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(P){this._isBoxedValue(P)?(this.value=this._pendingValue=P.value,P.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=P}}class vn extends Nt{constructor(P,E,J){super(Jn(E),Wn(J,E)),this.controls=P,this._initObservables(),this._setUpdateStrategy(E),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(P,E){return this.controls[P]?this.controls[P]:(this.controls[P]=E,E.setParent(this),E._registerOnCollectionChange(this._onCollectionChange),E)}addControl(P,E,J={}){this.registerControl(P,E),this.updateValueAndValidity({emitEvent:J.emitEvent}),this._onCollectionChange()}removeControl(P,E={}){this.controls[P]&&this.controls[P]._registerOnCollectionChange(()=>{}),delete this.controls[P],this.updateValueAndValidity({emitEvent:E.emitEvent}),this._onCollectionChange()}setControl(P,E,J={}){this.controls[P]&&this.controls[P]._registerOnCollectionChange(()=>{}),delete this.controls[P],E&&this.registerControl(P,E),this.updateValueAndValidity({emitEvent:J.emitEvent}),this._onCollectionChange()}contains(P){return this.controls.hasOwnProperty(P)&&this.controls[P].enabled}setValue(P,E={}){St(this,P),Object.keys(P).forEach(J=>{st(this,J),this.controls[J].setValue(P[J],{onlySelf:!0,emitEvent:E.emitEvent})}),this.updateValueAndValidity(E)}patchValue(P,E={}){null!=P&&(Object.keys(P).forEach(J=>{this.controls[J]&&this.controls[J].patchValue(P[J],{onlySelf:!0,emitEvent:E.emitEvent})}),this.updateValueAndValidity(E))}reset(P={},E={}){this._forEachChild((J,at)=>{J.reset(P[at],{onlySelf:!0,emitEvent:E.emitEvent})}),this._updatePristine(E),this._updateTouched(E),this.updateValueAndValidity(E)}getRawValue(){return this._reduceChildren({},(P,E,J)=>(P[J]=qe(E),P))}_syncPendingControls(){let P=this._reduceChildren(!1,(E,J)=>!!J._syncPendingControls()||E);return P&&this.updateValueAndValidity({onlySelf:!0}),P}_forEachChild(P){Object.keys(this.controls).forEach(E=>{const J=this.controls[E];J&&P(J,E)})}_setUpControls(){this._forEachChild(P=>{P.setParent(this),P._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(P){for(const E of Object.keys(this.controls)){const J=this.controls[E];if(this.contains(E)&&P(J))return!0}return!1}_reduceValue(){return this._reduceChildren({},(P,E,J)=>((E.enabled||this.disabled)&&(P[J]=E.value),P))}_reduceChildren(P,E){let J=P;return this._forEachChild((at,Vt)=>{J=E(J,at,Vt)}),J}_allControlsDisabled(){for(const P of Object.keys(this.controls))if(this.controls[P].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class jt extends Nt{constructor(P,E,J){super(Jn(E),Wn(J,E)),this.controls=P,this._initObservables(),this._setUpdateStrategy(E),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(P){return this.controls[P]}push(P,E={}){this.controls.push(P),this._registerControl(P),this.updateValueAndValidity({emitEvent:E.emitEvent}),this._onCollectionChange()}insert(P,E,J={}){this.controls.splice(P,0,E),this._registerControl(E),this.updateValueAndValidity({emitEvent:J.emitEvent})}removeAt(P,E={}){this.controls[P]&&this.controls[P]._registerOnCollectionChange(()=>{}),this.controls.splice(P,1),this.updateValueAndValidity({emitEvent:E.emitEvent})}setControl(P,E,J={}){this.controls[P]&&this.controls[P]._registerOnCollectionChange(()=>{}),this.controls.splice(P,1),E&&(this.controls.splice(P,0,E),this._registerControl(E)),this.updateValueAndValidity({emitEvent:J.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(P,E={}){St(this,P),P.forEach((J,at)=>{st(this,at),this.at(at).setValue(J,{onlySelf:!0,emitEvent:E.emitEvent})}),this.updateValueAndValidity(E)}patchValue(P,E={}){null!=P&&(P.forEach((J,at)=>{this.at(at)&&this.at(at).patchValue(J,{onlySelf:!0,emitEvent:E.emitEvent})}),this.updateValueAndValidity(E))}reset(P=[],E={}){this._forEachChild((J,at)=>{J.reset(P[at],{onlySelf:!0,emitEvent:E.emitEvent})}),this._updatePristine(E),this._updateTouched(E),this.updateValueAndValidity(E)}getRawValue(){return this.controls.map(P=>qe(P))}clear(P={}){this.controls.length<1||(this._forEachChild(E=>E._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:P.emitEvent}))}_syncPendingControls(){let P=this.controls.reduce((E,J)=>!!J._syncPendingControls()||E,!1);return P&&this.updateValueAndValidity({onlySelf:!0}),P}_forEachChild(P){this.controls.forEach((E,J)=>{P(E,J)})}_updateValue(){this.value=this.controls.filter(P=>P.enabled||this.disabled).map(P=>P.value)}_anyControls(P){return this.controls.some(E=>E.enabled&&P(E))}_setUpControls(){this._forEachChild(P=>this._registerControl(P))}_allControlsDisabled(){for(const P of this.controls)if(P.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(P){P.setParent(this),P._registerOnCollectionChange(this._onCollectionChange)}}const On={provide:bt,useExisting:(0,i.forwardRef)(()=>Hn)},ln=(()=>Promise.resolve(null))();let Hn=(()=>{class F extends bt{constructor(E,J){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.EventEmitter,this.form=new vn({},Ke(E),Dt(J))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(E){ln.then(()=>{const J=this._findContainer(E.path);E.control=J.registerControl(E.name,E.control),Mt(E.control,E),E.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(E)})}getControl(E){return this.form.get(E.path)}removeControl(E){ln.then(()=>{const J=this._findContainer(E.path);J&&J.removeControl(E.name),He(this._directives,E)})}addFormGroup(E){ln.then(()=>{const J=this._findContainer(E.path),at=new vn({});K(at,E),J.registerControl(E.name,at),at.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(E){ln.then(()=>{const J=this._findContainer(E.path);J&&J.removeControl(E.name)})}getFormGroup(E){return this.form.get(E.path)}updateModel(E,J){ln.then(()=>{this.form.get(E.path).setValue(J)})}setValue(E){this.control.setValue(E)}onSubmit(E){return this.submitted=!0,Ve(this.form,this._directives),this.ngSubmit.emit(E),!1}onReset(){this.resetForm()}resetForm(E){this.form.reset(E),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(E){return E.pop(),E.length?this.form.get(E):this.form}}return F.\u0275fac=function(E){return new(E||F)(i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(re,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(E,J){1&E&&i.\u0275\u0275listener("submit",function(Vt){return J.onSubmit(Vt)})("reset",function(){return J.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([On]),i.\u0275\u0275InheritDefinitionFeature]}),F})(),Un=(()=>{class F extends bt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return zt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,features:[i.\u0275\u0275InheritDefinitionFeature]}),F})();const mn={provide:bt,useExisting:(0,i.forwardRef)(()=>ni)};let ni=(()=>{class F extends Un{constructor(E,J,at){super(),this._parent=E,this._setValidators(J),this._setAsyncValidators(at)}_checkParentType(){}}return F.\u0275fac=function(E){return new(E||F)(i.\u0275\u0275directiveInject(bt,5),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(re,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[i.\u0275\u0275ProvidersFeature([mn]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const li={provide:dt,useExisting:(0,i.forwardRef)(()=>Gn)},Kn=(()=>Promise.resolve(null))();let Gn=(()=>{class F extends dt{constructor(E,J,at,Vt){super(),this.control=new Xt,this._registered=!1,this.update=new i.EventEmitter,this._parent=E,this._setValidators(J),this._setAsyncValidators(at),this.valueAccessor=he(0,Vt)}ngOnChanges(E){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in E&&this._updateDisabled(E),pn(E,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?zt(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(E){this.viewModel=E,this.update.emit(E)}_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(){Mt(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(E){Kn.then(()=>{this.control.setValue(E,{emitViewToModelChange:!1})})}_updateDisabled(E){const J=E.isDisabled.currentValue,at=""===J||J&&"false"!==J;Kn.then(()=>{at&&!this.control.disabled?this.control.disable():!at&&this.control.disabled&&this.control.enable()})}}return F.\u0275fac=function(E){return new(E||F)(i.\u0275\u0275directiveInject(bt,9),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(re,10),i.\u0275\u0275directiveInject(S,10))},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([li]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),F})(),Ci=(()=>{class F{}return F.\u0275fac=function(E){return new(E||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),F})();const wi={provide:S,useExisting:(0,i.forwardRef)(()=>hi),multi:!0};let hi=(()=>{class F extends T{writeValue(E){this.setProperty("value",null==E?"":E)}registerOnChange(E){this.onChange=J=>{E(""==J?null:parseFloat(J))}}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(E,J){1&E&&i.\u0275\u0275listener("input",function(Vt){return J.onChange(Vt.target.value)})("blur",function(){return J.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([wi]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const zn={provide:S,useExisting:(0,i.forwardRef)(()=>Qn),multi:!0};let nr=(()=>{class F{}return F.\u0275fac=function(E){return new(E||F)},F.\u0275mod=i.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=i.\u0275\u0275defineInjector({}),F})(),mr=(()=>{class F{constructor(){this._accessors=[]}add(E,J){this._accessors.push([E,J])}remove(E){for(let J=this._accessors.length-1;J>=0;--J)if(this._accessors[J][1]===E)return void this._accessors.splice(J,1)}select(E){this._accessors.forEach(J=>{this._isSameGroup(J,E)&&J[1]!==E&&J[1].fireUncheck(E.value)})}_isSameGroup(E,J){return!!E[0].control&&E[0]._parent===J._control._parent&&E[1].name===J.name}}return F.\u0275fac=function(E){return new(E||F)},F.\u0275prov=i.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:nr}),F})(),Qn=(()=>{class F extends T{constructor(E,J,at,Vt){super(E,J),this._registry=at,this._injector=Vt,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(dt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(E){this._state=E===this.value,this.setProperty("checked",this._state)}registerOnChange(E){this._fn=E,this.onChange=()=>{E(this.value),this._registry.select(this)}}fireUncheck(E){this.writeValue(E)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return F.\u0275fac=function(E){return new(E||F)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(mr),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(E,J){1&E&&i.\u0275\u0275listener("change",function(){return J.onChange()})("blur",function(){return J.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.\u0275\u0275ProvidersFeature([zn]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Zn={provide:S,useExisting:(0,i.forwardRef)(()=>Ei),multi:!0};let Ei=(()=>{class F extends T{writeValue(E){this.setProperty("value",parseFloat(E))}registerOnChange(E){this.onChange=J=>{E(""==J?null:parseFloat(J))}}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(E,J){1&E&&i.\u0275\u0275listener("change",function(Vt){return J.onChange(Vt.target.value)})("input",function(Vt){return J.onChange(Vt.target.value)})("blur",function(){return J.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([Zn]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Ui=new i.InjectionToken("NgModelWithFormControlWarning"),Lr={provide:dt,useExisting:(0,i.forwardRef)(()=>zi)};let zi=(()=>{class F extends dt{constructor(E,J,at,Vt){super(),this._ngModelWarningConfig=Vt,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(E),this._setAsyncValidators(J),this.valueAccessor=he(0,at)}set isDisabled(E){}ngOnChanges(E){if(this._isControlChanged(E)){const J=E.form.previousValue;J&&bn(J,this,!1),Mt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}pn(E,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&bn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(E){this.viewModel=E,this.update.emit(E)}_isControlChanged(E){return E.hasOwnProperty("form")}}return F._ngModelWarningSentOnce=!1,F.\u0275fac=function(E){return new(E||F)(i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(re,10),i.\u0275\u0275directiveInject(S,10),i.\u0275\u0275directiveInject(Ui,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([Lr]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),F})();const Ir={provide:bt,useExisting:(0,i.forwardRef)(()=>Mi)};let Mi=(()=>{class F extends bt{constructor(E,J){super(),this.validators=E,this.asyncValidators=J,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.EventEmitter,this._setValidators(E),this._setAsyncValidators(J)}ngOnChanges(E){this._checkFormPresent(),E.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(oe(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(E){const J=this.form.get(E.path);return Mt(J,E),J.updateValueAndValidity({emitEvent:!1}),this.directives.push(E),J}getControl(E){return this.form.get(E.path)}removeControl(E){bn(E.control||null,E,!1),He(this.directives,E)}addFormGroup(E){this._setUpFormContainer(E)}removeFormGroup(E){this._cleanUpFormContainer(E)}getFormGroup(E){return this.form.get(E.path)}addFormArray(E){this._setUpFormContainer(E)}removeFormArray(E){this._cleanUpFormContainer(E)}getFormArray(E){return this.form.get(E.path)}updateModel(E,J){this.form.get(E.path).setValue(J)}onSubmit(E){return this.submitted=!0,Ve(this.form,this.directives),this.ngSubmit.emit(E),!1}onReset(){this.resetForm()}resetForm(E){this.form.reset(E),this.submitted=!1}_updateDomValue(){this.directives.forEach(E=>{const J=E.control,at=this.form.get(E.path);J!==at&&(bn(J||null,E),Ie(at)&&(Mt(at,E),E.control=at))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(E){const J=this.form.get(E.path);K(J,E),J.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(E){if(this.form){const J=this.form.get(E.path);J&&function et(F,P){return oe(F,P)}(J,E)&&J.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){yn(this.form,this),this._oldForm&&oe(this._oldForm,this)}_checkFormPresent(){}}return F.\u0275fac=function(E){return new(E||F)(i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(re,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formGroup",""]],hostBindings:function(E,J){1&E&&i.\u0275\u0275listener("submit",function(Vt){return J.onSubmit(Vt)})("reset",function(){return J.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([Ir]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),F})();const Wi={provide:bt,useExisting:(0,i.forwardRef)(()=>ci)};let ci=(()=>{class F extends Un{constructor(E,J,at){super(),this._parent=E,this._setValidators(J),this._setAsyncValidators(at)}_checkParentType(){Ar(this._parent)}}return F.\u0275fac=function(E){return new(E||F)(i.\u0275\u0275directiveInject(bt,13),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(re,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i.\u0275\u0275ProvidersFeature([Wi]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const gr={provide:bt,useExisting:(0,i.forwardRef)(()=>Di)};let Di=(()=>{class F extends bt{constructor(E,J,at){super(),this._parent=E,this._setValidators(J),this._setAsyncValidators(at)}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 zt(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Ar(this._parent)}}return F.\u0275fac=function(E){return new(E||F)(i.\u0275\u0275directiveInject(bt,13),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(re,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.\u0275\u0275ProvidersFeature([gr]),i.\u0275\u0275InheritDefinitionFeature]}),F})();function Ar(F){return!(F instanceof ci||F instanceof Mi||F instanceof Di)}const Pr={provide:dt,useExisting:(0,i.forwardRef)(()=>Ki)};let Ki=(()=>{class F extends dt{constructor(E,J,at,Vt,An){super(),this._ngModelWarningConfig=An,this._added=!1,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._parent=E,this._setValidators(J),this._setAsyncValidators(at),this.valueAccessor=he(0,Vt)}set isDisabled(E){}ngOnChanges(E){this._added||this._setUpControl(),pn(E,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(E){this.viewModel=E,this.update.emit(E)}get path(){return zt(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(E){return new(E||F)(i.\u0275\u0275directiveInject(bt,13),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(re,10),i.\u0275\u0275directiveInject(S,10),i.\u0275\u0275directiveInject(Ui,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([Pr]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),F})();const Si={provide:S,useExisting:(0,i.forwardRef)(()=>Ii),multi:!0};function Gi(F,P){return null==F?`${P}`:(P&&"object"==typeof P&&(P="Object"),`${F}: ${P}`.slice(0,50))}let Ii=(()=>{class F extends T{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(E){this._compareWith=E}writeValue(E){this.value=E;const J=this._getOptionId(E);null==J&&this.setProperty("selectedIndex",-1);const at=Gi(J,E);this.setProperty("value",at)}registerOnChange(E){this.onChange=J=>{this.value=this._getOptionValue(J),E(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(E){for(const J of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(J),E))return J;return null}_getOptionValue(E){const J=function Or(F){return F.split(":")[0]}(E);return this._optionMap.has(J)?this._optionMap.get(J):E}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(E,J){1&E&&i.\u0275\u0275listener("change",function(Vt){return J.onChange(Vt.target.value)})("blur",function(){return J.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([Si]),i.\u0275\u0275InheritDefinitionFeature]}),F})(),_r=(()=>{class F{constructor(E,J,at){this._element=E,this._renderer=J,this._select=at,this._select&&(this.id=this._select._registerOption())}set ngValue(E){null!=this._select&&(this._select._optionMap.set(this.id,E),this._setElementValue(Gi(this.id,E)),this._select.writeValue(this._select.value))}set value(E){this._setElementValue(E),this._select&&this._select.writeValue(this._select.value)}_setElementValue(E){this._renderer.setProperty(this._element.nativeElement,"value",E)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return F.\u0275fac=function(E){return new(E||F)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Ii,9))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),F})();const fi={provide:S,useExisting:(0,i.forwardRef)(()=>mi),multi:!0};function Ai(F,P){return null==F?`${P}`:("string"==typeof P&&(P=`'${P}'`),P&&"object"==typeof P&&(P="Object"),`${F}: ${P}`.slice(0,50))}let mi=(()=>{class F extends T{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(E){this._compareWith=E}writeValue(E){let J;if(this.value=E,Array.isArray(E)){const at=E.map(Vt=>this._getOptionId(Vt));J=(Vt,An)=>{Vt._setSelected(at.indexOf(An.toString())>-1)}}else J=(at,Vt)=>{at._setSelected(!1)};this._optionMap.forEach(J)}registerOnChange(E){this.onChange=J=>{const at=[],Vt=J.selectedOptions;if(void 0!==Vt){const An=Vt;for(let qn=0;qn<An.length;qn++){const Ni=this._getOptionValue(An[qn].value);at.push(Ni)}}else{const An=J.options;for(let qn=0;qn<An.length;qn++){const gi=An[qn];if(gi.selected){const Ni=this._getOptionValue(gi.value);at.push(Ni)}}}this.value=at,E(at)}}_registerOption(E){const J=(this._idCounter++).toString();return this._optionMap.set(J,E),J}_getOptionId(E){for(const J of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(J)._value,E))return J;return null}_getOptionValue(E){const J=function pi(F){return F.split(":")[0]}(E);return this._optionMap.has(J)?this._optionMap.get(J)._value:E}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(E,J){1&E&&i.\u0275\u0275listener("change",function(Vt){return J.onChange(Vt.target)})("blur",function(){return J.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([fi]),i.\u0275\u0275InheritDefinitionFeature]}),F})(),ir=(()=>{class F{constructor(E,J,at){this._element=E,this._renderer=J,this._select=at,this._select&&(this.id=this._select._registerOption(this))}set ngValue(E){null!=this._select&&(this._value=E,this._setElementValue(Ai(this.id,E)),this._select.writeValue(this._select.value))}set value(E){this._select?(this._value=E,this._setElementValue(Ai(this.id,E)),this._select.writeValue(this._select.value)):this._setElementValue(E)}_setElementValue(E){this._renderer.setProperty(this._element.nativeElement,"value",E)}_setSelected(E){this._renderer.setProperty(this._element.nativeElement,"selected",E)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return F.\u0275fac=function(E){return new(E||F)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(mi,9))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),F})();function rr(F){return"number"==typeof F?F:parseInt(F,10)}function Pi(F){return"number"==typeof F?F:parseFloat(F)}let Oi=(()=>{class F{constructor(){this._validator=X}ngOnChanges(E){if(this.inputName in E){const J=this.normalizeInput(E[this.inputName].currentValue);this._enabled=this.enabled(J),this._validator=this._enabled?this.createValidator(J):X,this._onChange&&this._onChange()}}validate(E){return this._validator(E)}registerOnValidatorChange(E){this._onChange=E}enabled(E){return null!=E}}return F.\u0275fac=function(E){return new(E||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,features:[i.\u0275\u0275NgOnChangesFeature]}),F})();const xi={provide:$,useExisting:(0,i.forwardRef)(()=>Zi),multi:!0};let Zi=(()=>{class F extends Oi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=E=>Pi(E),this.createValidator=E=>le(E)}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||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(E,J){2&E&&i.\u0275\u0275attribute("max",J._enabled?J.max:null)},inputs:{max:"max"},features:[i.\u0275\u0275ProvidersFeature([xi]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const ti={provide:$,useExisting:(0,i.forwardRef)(()=>Ri),multi:!0};let Ri=(()=>{class F extends Oi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=E=>Pi(E),this.createValidator=E=>_e(E)}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||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(E,J){2&E&&i.\u0275\u0275attribute("min",J._enabled?J.min:null)},inputs:{min:"min"},features:[i.\u0275\u0275ProvidersFeature([ti]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const or={provide:$,useExisting:(0,i.forwardRef)(()=>Yi),multi:!0},Fi={provide:$,useExisting:(0,i.forwardRef)(()=>ki),multi:!0};let Yi=(()=>{class F{constructor(){this._required=!1}get required(){return this._required}set required(E){this._required=null!=E&&!1!==E&&"false"!=`${E}`,this._onChange&&this._onChange()}validate(E){return this.required?Ee(E):null}registerOnValidatorChange(E){this._onChange=E}}return F.\u0275fac=function(E){return new(E||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(E,J){2&E&&i.\u0275\u0275attribute("required",J.required?"":null)},inputs:{required:"required"},features:[i.\u0275\u0275ProvidersFeature([or])]}),F})(),ki=(()=>{class F extends Yi{validate(E){return this.required?Fe(E):null}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||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(E,J){2&E&&i.\u0275\u0275attribute("required",J.required?"":null)},features:[i.\u0275\u0275ProvidersFeature([Fi]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const xr={provide:$,useExisting:(0,i.forwardRef)(()=>Rn),multi:!0};let Rn=(()=>{class F{constructor(){this._enabled=!1}set email(E){this._enabled=""===E||!0===E||"true"===E,this._onChange&&this._onChange()}validate(E){return this._enabled?Je(E):null}registerOnValidatorChange(E){this._onChange=E}}return F.\u0275fac=function(E){return new(E||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[i.\u0275\u0275ProvidersFeature([xr])]}),F})();const sr={provide:$,useExisting:(0,i.forwardRef)(()=>ar),multi:!0};let ar=(()=>{class F extends Oi{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=E=>rr(E),this.createValidator=E=>ot(E)}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(E,J){2&E&&i.\u0275\u0275attribute("minlength",J._enabled?J.minlength:null)},inputs:{minlength:"minlength"},features:[i.\u0275\u0275ProvidersFeature([sr]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Ln={provide:$,useExisting:(0,i.forwardRef)(()=>x),multi:!0};let x=(()=>{class F extends Oi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=E=>rr(E),this.createValidator=E=>q(E)}}return F.\u0275fac=function(){let P;return function(J){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(J||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(E,J){2&E&&i.\u0275\u0275attribute("maxlength",J._enabled?J.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i.\u0275\u0275ProvidersFeature([Ln]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Q={provide:$,useExisting:(0,i.forwardRef)(()=>R),multi:!0};let R=(()=>{class F{constructor(){this._validator=X}ngOnChanges(E){"pattern"in E&&(this._createValidator(),this._onChange&&this._onChange())}validate(E){return this._validator(E)}registerOnValidatorChange(E){this._onChange=E}_createValidator(){this._validator=Ae(this.pattern)}}return F.\u0275fac=function(E){return new(E||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(E,J){2&E&&i.\u0275\u0275attribute("pattern",J.pattern?J.pattern:null)},inputs:{pattern:"pattern"},features:[i.\u0275\u0275ProvidersFeature([Q]),i.\u0275\u0275NgOnChangesFeature]}),F})(),vt=(()=>{class F{}return F.\u0275fac=function(E){return new(E||F)},F.\u0275mod=i.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=i.\u0275\u0275defineInjector({imports:[[nr]]}),F})(),Rt=(()=>{class F{}return F.\u0275fac=function(E){return new(E||F)},F.\u0275mod=i.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=i.\u0275\u0275defineInjector({imports:[vt]}),F})(),Tn=(()=>{class F{static withConfig(E){return{ngModule:F,providers:[{provide:Ui,useValue:E.warnOnNgModelWithFormControl}]}}}return F.\u0275fac=function(E){return new(E||F)},F.\u0275mod=i.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=i.\u0275\u0275defineInjector({imports:[vt]}),F})(),In=(()=>{class F{group(E,J=null){const at=this._reduceControls(E);let qn,Vt=null,An=null;return null!=J&&(function wn(F){return void 0!==F.asyncValidators||void 0!==F.validators||void 0!==F.updateOn}(J)?(Vt=null!=J.validators?J.validators:null,An=null!=J.asyncValidators?J.asyncValidators:null,qn=null!=J.updateOn?J.updateOn:void 0):(Vt=null!=J.validator?J.validator:null,An=null!=J.asyncValidator?J.asyncValidator:null)),new vn(at,{asyncValidators:An,updateOn:qn,validators:Vt})}control(E,J,at){return new Xt(E,J,at)}array(E,J,at){const Vt=E.map(An=>this._createControl(An));return new jt(Vt,J,at)}_reduceControls(E){const J={};return Object.keys(E).forEach(at=>{J[at]=this._createControl(E[at])}),J}_createControl(E){return Ie(E)||z(E)||Pe(E)?E:Array.isArray(E)?this.control(E[0],E.length>1?E[1]:null,E.length>2?E[2]:null):this.control(E)}}return F.\u0275fac=function(E){return new(E||F)},F.\u0275prov=i.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:Tn}),F})();const cn=new i.Version("13.1.2")},7423:(je,_,l)=>{"use strict";l.r(_),l.d(_,{MatAnchor:()=>O,MatButton:()=>A,MatButtonModule:()=>w});var i=l(5e3),d=l(508),m=l(6360),u=l(5664);const s=["mat-button",""],b=["*"],g=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],v=(0,d.mixinColor)((0,d.mixinDisabled)((0,d.mixinDisableRipple)(class{constructor(k){this._elementRef=k}})));let A=(()=>{class k extends v{constructor(me,$,re){super(me),this._focusMonitor=$,this._animationMode=re,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Te of g)this._hasHostAttributes(Te)&&this._getHostElement().classList.add(Te);me.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(me,$){me?this._focusMonitor.focusVia(this._getHostElement(),me,$):this._getHostElement().focus($)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...me){return me.some($=>this._getHostElement().hasAttribute($))}}return k.\u0275fac=function(me){return new(me||k)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(u.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(me,$){if(1&me&&i.\u0275\u0275viewQuery(d.MatRipple,5),2&me){let re;i.\u0275\u0275queryRefresh(re=i.\u0275\u0275loadQuery())&&($.ripple=re.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(me,$){2&me&&(i.\u0275\u0275attribute("disabled",$.disabled||null),i.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===$._animationMode)("mat-button-disabled",$.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.\u0275\u0275InheritDefinitionFeature],attrs:s,ngContentSelectors:b,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(me,$){1&me&&(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&me&&(i.\u0275\u0275advance(2),i.\u0275\u0275classProp("mat-button-ripple-round",$.isRoundButton||$.isIconButton),i.\u0275\u0275property("matRippleDisabled",$._isRippleDisabled())("matRippleCentered",$.isIconButton)("matRippleTrigger",$._getHostElement()))},directives:[d.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})(),O=(()=>{class k extends A{constructor(me,$,re){super($,me,re)}_haltDisabledEvents(me){this.disabled&&(me.preventDefault(),me.stopImmediatePropagation())}}return k.\u0275fac=function(me){return new(me||k)(i.\u0275\u0275directiveInject(u.tE),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(m.ANIMATION_MODULE_TYPE,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(me,$){1&me&&i.\u0275\u0275listener("click",function(Te){return $._haltDisabledEvents(Te)}),2&me&&(i.\u0275\u0275attribute("tabindex",$.disabled?-1:$.tabIndex||0)("disabled",$.disabled||null)("aria-disabled",$.disabled.toString()),i.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===$._animationMode)("mat-button-disabled",$.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[i.\u0275\u0275InheritDefinitionFeature],attrs:s,ngContentSelectors:b,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(me,$){1&me&&(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&me&&(i.\u0275\u0275advance(2),i.\u0275\u0275classProp("mat-button-ripple-round",$.isRoundButton||$.isIconButton),i.\u0275\u0275property("matRippleDisabled",$._isRippleDisabled())("matRippleCentered",$.isIconButton)("matRippleTrigger",$._getHostElement()))},directives:[d.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})(),w=(()=>{class k{}return k.\u0275fac=function(me){return new(me||k)},k.\u0275mod=i.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=i.\u0275\u0275defineInjector({imports:[[d.MatRippleModule,d.MatCommonModule],d.MatCommonModule]}),k})()},9417:(je,_,l)=>{"use strict";l.r(_),l.d(_,{MAT_CHIPS_DEFAULT_OPTIONS:()=>rn,MAT_CHIP_AVATAR:()=>nt,MAT_CHIP_REMOVE:()=>Ge,MAT_CHIP_TRAILING_ICON:()=>ht,MatChip:()=>Bt,MatChipAvatar:()=>Ht,MatChipInput:()=>Mt,MatChipList:()=>yn,MatChipListChange:()=>on,MatChipRemove:()=>En,MatChipSelectionChange:()=>be,MatChipTrailingIcon:()=>en,MatChipsModule:()=>W});var i=l(1159),d=l(5e3),m=l(508),u=l(3191),s=l(9808),b=l(6360),T=l(6758),S=l(6451),g=l(5698),v=l(2722),A=l(8675),O=l(925),w=l(5664),k=l(449),U=l(3075);l(1777);let Ke=(()=>{class p{}return p.\u0275fac=function(D){return new(D||p)},p.\u0275dir=d.\u0275\u0275defineDirective({type:p}),p})();var ve=l(226);const se=["*"];class be{constructor(C,D,K=!1){this.source=C,this.selected=D,this.isUserInput=K}}const Ge=new d.InjectionToken("MatChipRemove"),nt=new d.InjectionToken("MatChipAvatar"),ht=new d.InjectionToken("MatChipTrailingIcon");class ft{constructor(C){this._elementRef=C}}const wt=(0,m.mixinTabIndex)((0,m.mixinColor)((0,m.mixinDisableRipple)(ft),"primary"),-1);let Ht=(()=>{class p{}return p.\u0275fac=function(D){return new(D||p)},p.\u0275dir=d.\u0275\u0275defineDirective({type:p,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[d.\u0275\u0275ProvidersFeature([{provide:nt,useExisting:p}])]}),p})(),en=(()=>{class p{}return p.\u0275fac=function(D){return new(D||p)},p.\u0275dir=d.\u0275\u0275defineDirective({type:p,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[d.\u0275\u0275ProvidersFeature([{provide:ht,useExisting:p}])]}),p})(),Bt=(()=>{class p extends wt{constructor(D,K,et,Et,Wt,pn,Le,Ve){super(D),this._ngZone=K,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 T.x,this._onBlur=new T.x,this.selectionChange=new d.EventEmitter,this.destroyed=new d.EventEmitter,this.removed=new d.EventEmitter,this._addHostClassName(),this._chipRippleTarget=pn.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new m.RippleRenderer(this,K,this._chipRippleTarget,et),this._chipRipple.setupTriggerEvents(D),this.rippleConfig=Et||{},this._animationsDisabled="NoopAnimations"===Le,this.tabIndex=null!=Ve&&parseInt(Ve)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(D){const K=(0,u.Ig)(D);K!==this._selected&&(this._selected=K,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(D){this._value=D}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(D){this._selectable=(0,u.Ig)(D)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(D){this._disabled=(0,u.Ig)(D)}get removable(){return this._removable}set removable(D){this._removable=(0,u.Ig)(D)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const D="mat-basic-chip",K=this._elementRef.nativeElement;K.hasAttribute(D)||K.tagName.toLowerCase()===D?K.classList.add(D):K.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(D=!1){return this._selected=!this.selected,this._dispatchSelectionChange(D),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(D){this.disabled?D.preventDefault():D.stopPropagation()}_handleKeydown(D){if(!this.disabled)switch(D.keyCode){case i.yY:case i.ZH:this.remove(),D.preventDefault();break;case i.L_:this.selectable&&this.toggleSelected(!0),D.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(D=!1){this.selectionChange.emit({source:this,isUserInput:D,selected:this._selected})}}return p.\u0275fac=function(D){return new(D||p)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(d.NgZone),d.\u0275\u0275directiveInject(O.t4),d.\u0275\u0275directiveInject(m.MAT_RIPPLE_GLOBAL_OPTIONS,8),d.\u0275\u0275directiveInject(d.ChangeDetectorRef),d.\u0275\u0275directiveInject(s.DOCUMENT),d.\u0275\u0275directiveInject(b.ANIMATION_MODULE_TYPE,8),d.\u0275\u0275injectAttribute("tabindex"))},p.\u0275dir=d.\u0275\u0275defineDirective({type:p,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(D,K,et){if(1&D&&(d.\u0275\u0275contentQuery(et,nt,5),d.\u0275\u0275contentQuery(et,ht,5),d.\u0275\u0275contentQuery(et,Ge,5)),2&D){let Et;d.\u0275\u0275queryRefresh(Et=d.\u0275\u0275loadQuery())&&(K.avatar=Et.first),d.\u0275\u0275queryRefresh(Et=d.\u0275\u0275loadQuery())&&(K.trailingIcon=Et.first),d.\u0275\u0275queryRefresh(Et=d.\u0275\u0275loadQuery())&&(K.removeIcon=Et.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(D,K){1&D&&d.\u0275\u0275listener("click",function(Et){return K._handleClick(Et)})("keydown",function(Et){return K._handleKeydown(Et)})("focus",function(){return K.focus()})("blur",function(){return K._blur()}),2&D&&(d.\u0275\u0275attribute("tabindex",K.disabled?null:K.tabIndex)("disabled",K.disabled||null)("aria-disabled",K.disabled.toString())("aria-selected",K.ariaSelected),d.\u0275\u0275classProp("mat-chip-selected",K.selected)("mat-chip-with-avatar",K.avatar)("mat-chip-with-trailing-icon",K.trailingIcon||K.removeIcon)("mat-chip-disabled",K.disabled)("_mat-animation-noopable",K._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:[d.\u0275\u0275InheritDefinitionFeature]}),p})(),En=(()=>{class p{constructor(D,K){this._parentChip=D,"BUTTON"===K.nativeElement.nodeName&&K.nativeElement.setAttribute("type","button")}_handleClick(D){const K=this._parentChip;K.removable&&!K.disabled&&K.remove(),D.stopPropagation()}}return p.\u0275fac=function(D){return new(D||p)(d.\u0275\u0275directiveInject(Bt),d.\u0275\u0275directiveInject(d.ElementRef))},p.\u0275dir=d.\u0275\u0275defineDirective({type:p,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(D,K){1&D&&d.\u0275\u0275listener("click",function(Et){return K._handleClick(Et)})},features:[d.\u0275\u0275ProvidersFeature([{provide:Ge,useExisting:p}])]}),p})();const rn=new d.InjectionToken("mat-chips-default-options");let zt=0,Mt=(()=>{class p{constructor(D,K){this._elementRef=D,this._defaultOptions=K,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new d.EventEmitter,this.placeholder="",this.id="mat-chip-list-input-"+zt++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(D){D&&(this._chipList=D,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(D){this._addOnBlur=(0,u.Ig)(D)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(D){this._disabled=(0,u.Ig)(D)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(D){if(D){if(D.keyCode===i.Mf&&!(0,i.Vb)(D,"shiftKey")&&this._chipList._allowFocusEscape(),D.keyCode===i.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void D.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(D)}_keyup(D){!this._focusLastChipOnBackspace&&D.keyCode===i.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,D.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(D){!this.inputElement.value&&!!D&&this._chipList._keydown(D),(!D||this._isSeparatorKey(D))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==D||D.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(D){this.inputElement.focus(D)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(D){return!(0,i.Vb)(D)&&new Set(this.separatorKeyCodes).has(D.keyCode)}}return p.\u0275fac=function(D){return new(D||p)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(rn))},p.\u0275dir=d.\u0275\u0275defineDirective({type:p,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(D,K){1&D&&d.\u0275\u0275listener("keydown",function(Et){return K._keydown(Et)})("keyup",function(Et){return K._keyup(Et)})("blur",function(){return K._blur()})("focus",function(){return K._focus()})("input",function(){return K._onInput()}),2&D&&(d.\u0275\u0275hostProperty("id",K.id),d.\u0275\u0275attribute("disabled",K.disabled||null)("placeholder",K.placeholder||null)("aria-invalid",K._chipList&&K._chipList.ngControl?K._chipList.ngControl.invalid:null)("aria-required",K._chipList&&K._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:[d.\u0275\u0275NgOnChangesFeature]}),p})();const bn=(0,m.mixinErrorState)(class{constructor(p,C,D,K){this._defaultErrorStateMatcher=p,this._parentForm=C,this._parentFormGroup=D,this.ngControl=K}});let Qt=0;class on{constructor(C,D){this.source=C,this.value=D}}let yn=(()=>{class p extends bn{constructor(D,K,et,Et,Wt,pn,Le){super(pn,Et,Wt,Le),this._elementRef=D,this._changeDetectorRef=K,this._dir=et,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new T.x,this._uid="mat-chip-list-"+Qt++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(Ve,he)=>Ve===he,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new d.EventEmitter,this.valueChange=new d.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var D,K;return this.multiple?(null===(D=this._selectionModel)||void 0===D?void 0:D.selected)||[]:null===(K=this._selectionModel)||void 0===K?void 0:K.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(D){this._multiple=(0,u.Ig)(D),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(D){this._compareWith=D,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(D){this.writeValue(D),this._value=D}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var D,K,et,Et;return null!==(Et=null!==(D=this._required)&&void 0!==D?D:null===(et=null===(K=this.ngControl)||void 0===K?void 0:K.control)||void 0===et?void 0:et.hasValidator(U.Validators.required))&&void 0!==Et&&Et}set required(D){this._required=(0,u.Ig)(D),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(D){this._placeholder=D,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(D){this._disabled=(0,u.Ig)(D),this._syncChipsState()}get selectable(){return this._selectable}set selectable(D){this._selectable=(0,u.Ig)(D),this.chips&&this.chips.forEach(K=>K.chipListSelectable=this._selectable)}set tabIndex(D){this._userTabIndex=D,this._tabIndex=D}get chipSelectionChanges(){return(0,S.T)(...this.chips.map(D=>D.selectionChange))}get chipFocusChanges(){return(0,S.T)(...this.chips.map(D=>D._onFocus))}get chipBlurChanges(){return(0,S.T)(...this.chips.map(D=>D._onBlur))}get chipRemoveChanges(){return(0,S.T)(...this.chips.map(D=>D.destroyed))}ngAfterContentInit(){this._keyManager=new w.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,v.R)(this._destroyed)).subscribe(D=>this._keyManager.withHorizontalOrientation(D)),this._keyManager.tabOut.pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,A.O)(null),(0,v.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(D){this._chipInput=D,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",D.id)}setDescribedByIds(D){this._ariaDescribedby=D.join(" ")}writeValue(D){this.chips&&this._setSelectionByValue(D,!1)}registerOnChange(D){this._onChange=D}registerOnTouched(D){this._onTouched=D}setDisabledState(D){this.disabled=D,this.stateChanges.next()}onContainerClick(D){this._originatesFromChip(D)||this.focus()}focus(D){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(D),this.stateChanges.next()))}_focusInput(D){this._chipInput&&this._chipInput.focus(D)}_keydown(D){const K=D.target;K&&K.classList.contains("mat-chip")&&(this._keyManager.onKeydown(D),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const D=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(D)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(D){return D>=0&&D<this.chips.length}_setSelectionByValue(D,K=!0){if(this._clearSelection(),this.chips.forEach(et=>et.deselect()),Array.isArray(D))D.forEach(et=>this._selectValue(et,K)),this._sortValues();else{const et=this._selectValue(D,K);et&&K&&this._keyManager.setActiveItem(et)}}_selectValue(D,K=!0){const et=this.chips.find(Et=>null!=Et.value&&this._compareWith(Et.value,D));return et&&(K?et.selectViaInteraction():et.select(),this._selectionModel.select(et)),et}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(D){this._selectionModel.clear(),this.chips.forEach(K=>{K!==D&&K.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(D=>{D.selected&&this._selectionModel.select(D)}),this.stateChanges.next())}_propagateChanges(D){let K=null;K=Array.isArray(this.selected)?this.selected.map(et=>et.value):this.selected?this.selected.value:D,this._value=K,this.change.emit(new on(this,K)),this.valueChange.emit(K),this._onChange(K),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(D=>{D.source.selected?this._selectionModel.select(D.source):this._selectionModel.deselect(D.source),this.multiple||this.chips.forEach(K=>{!this._selectionModel.isSelected(K)&&K.selected&&K.deselect()}),D.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(D=>{let K=this.chips.toArray().indexOf(D.chip);this._isValidIndex(K)&&this._keyManager.updateActiveItem(K),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(D=>{const K=D.chip,et=this.chips.toArray().indexOf(D.chip);this._isValidIndex(et)&&K._hasFocus&&(this._lastDestroyedChipIndex=et)})}_originatesFromChip(D){let K=D.target;for(;K&&K!==this._elementRef.nativeElement;){if(K.classList.contains("mat-chip"))return!0;K=K.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(D=>D._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(D=>{D._chipListDisabled=this._disabled,D._chipListMultiple=this.multiple})}}return p.\u0275fac=function(D){return new(D||p)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(d.ChangeDetectorRef),d.\u0275\u0275directiveInject(ve.Is,8),d.\u0275\u0275directiveInject(U.NgForm,8),d.\u0275\u0275directiveInject(U.FormGroupDirective,8),d.\u0275\u0275directiveInject(m.ErrorStateMatcher),d.\u0275\u0275directiveInject(U.NgControl,10))},p.\u0275cmp=d.\u0275\u0275defineComponent({type:p,selectors:[["mat-chip-list"]],contentQueries:function(D,K,et){if(1&D&&d.\u0275\u0275contentQuery(et,Bt,5),2&D){let Et;d.\u0275\u0275queryRefresh(Et=d.\u0275\u0275loadQuery())&&(K.chips=Et)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(D,K){1&D&&d.\u0275\u0275listener("focus",function(){return K.focus()})("blur",function(){return K._blur()})("keydown",function(Et){return K._keydown(Et)}),2&D&&(d.\u0275\u0275hostProperty("id",K._uid),d.\u0275\u0275attribute("tabindex",K.disabled?null:K._tabIndex)("aria-describedby",K._ariaDescribedby||null)("aria-required",K.role?K.required:null)("aria-disabled",K.disabled.toString())("aria-invalid",K.errorState)("aria-multiselectable",K.multiple)("role",K.role)("aria-orientation",K.ariaOrientation),d.\u0275\u0275classProp("mat-chip-list-disabled",K.disabled)("mat-chip-list-invalid",K.errorState)("mat-chip-list-required",K.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:[d.\u0275\u0275ProvidersFeature([{provide:Ke,useExisting:p}]),d.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:se,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(D,K){1&D&&(d.\u0275\u0275projectionDef(),d.\u0275\u0275elementStart(0,"div",0),d.\u0275\u0275projection(1),d.\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}),p})(),W=(()=>{class p{}return p.\u0275fac=function(D){return new(D||p)},p.\u0275mod=d.\u0275\u0275defineNgModule({type:p}),p.\u0275inj=d.\u0275\u0275defineInjector({providers:[m.ErrorStateMatcher,{provide:rn,useValue:{separatorKeyCodes:[i.K5]}}],imports:[[m.MatCommonModule]]}),p})()},508:(je,_,l)=>{"use strict";l.r(_),l.d(_,{AnimationCurves:()=>Te,AnimationDurations:()=>fe,DateAdapter:()=>Me,ErrorStateMatcher:()=>Re,MATERIAL_SANITY_CHECKS:()=>Ee,MAT_DATE_FORMATS:()=>Ke,MAT_DATE_LOCALE:()=>ge,MAT_DATE_LOCALE_FACTORY:()=>Ze,MAT_NATIVE_DATE_FORMATS:()=>Ye,MAT_OPTGROUP:()=>Bt,MAT_OPTION_PARENT_COMPONENT:()=>ft,MAT_RIPPLE_GLOBAL_OPTIONS:()=>se,MatCommonModule:()=>Fe,MatLine:()=>ye,MatLineModule:()=>bt,MatNativeDateModule:()=>pe,MatOptgroup:()=>En,MatOption:()=>bn,MatOptionModule:()=>yn,MatOptionSelectionChange:()=>zt,MatPseudoCheckbox:()=>nt,MatPseudoCheckboxModule:()=>ht,MatRipple:()=>be,MatRippleModule:()=>Ge,NativeDateAdapter:()=>ke,NativeDateModule:()=>Z,RippleRef:()=>Ot,RippleRenderer:()=>ue,ShowOnDirtyErrorStateMatcher:()=>we,VERSION:()=>re,_MatOptgroupBase:()=>en,_MatOptionBase:()=>Mt,_countGroupLabelsBeforeOption:()=>Qt,_getOptionScrollPosition:()=>on,defaultRippleAnimationConfig:()=>lt,mixinColor:()=>X,mixinDisableRipple:()=>ce,mixinDisabled:()=>Ae,mixinErrorState:()=>ne,mixinInitialized:()=>$e,mixinTabIndex:()=>Se,setLines:()=>Xe});var i=l(5e3),d=l(226),u=l(9808),s=l(925),b=l(5664),T=l(3191),S=l(6758),g=l(9751),v=l(8675),A=l(6360),O=l(1159);const w=["*",[["mat-option"],["ng-container"]]],k=["*","mat-option, ng-container"];function U(oe,W){if(1&oe&&i.\u0275\u0275element(0,"mat-pseudo-checkbox",4),2&oe){const p=i.\u0275\u0275nextContext();i.\u0275\u0275property("state",p.selected?"checked":"unchecked")("disabled",p.disabled)}}function me(oe,W){if(1&oe&&(i.\u0275\u0275elementStart(0,"span",5),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&oe){const p=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("(",p.group.label,")")}}const $=["*"],re=new i.Version("13.1.2");let Te=(()=>{class oe{}return oe.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",oe.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",oe.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",oe.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",oe})(),fe=(()=>{class oe{}return oe.COMPLEX="375ms",oe.ENTERING="225ms",oe.EXITING="195ms",oe})();const Ee=new i.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function le(){return!0}});let Fe=(()=>{class oe{constructor(p,C,D){this._sanityChecks=C,this._document=D,this._hasDoneGlobalChecks=!1,p._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(p){return!(0,s.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[p])}}return oe.\u0275fac=function(p){return new(p||oe)(i.\u0275\u0275inject(b.qm),i.\u0275\u0275inject(Ee,8),i.\u0275\u0275inject(u.DOCUMENT))},oe.\u0275mod=i.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=i.\u0275\u0275defineInjector({imports:[[d.vT],d.vT]}),oe})();function Ae(oe){return class extends oe{constructor(...W){super(...W),this._disabled=!1}get disabled(){return this._disabled}set disabled(W){this._disabled=(0,T.Ig)(W)}}}function X(oe,W){return class extends oe{constructor(...p){super(...p),this.defaultColor=W,this.color=W}get color(){return this._color}set color(p){const C=p||this.defaultColor;C!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),C&&this._elementRef.nativeElement.classList.add(`mat-${C}`),this._color=C)}}}function ce(oe){return class extends oe{constructor(...W){super(...W),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(W){this._disableRipple=(0,T.Ig)(W)}}}function Se(oe,W=0){return class extends oe{constructor(...p){super(...p),this._tabIndex=W,this.defaultTabIndex=W}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(p){this._tabIndex=null!=p?(0,T.su)(p):this.defaultTabIndex}}}function ne(oe){return class extends oe{constructor(...W){super(...W),this.stateChanges=new S.x,this.errorState=!1}updateErrorState(){const W=this.errorState,K=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);K!==W&&(this.errorState=K,this.stateChanges.next())}}}function $e(oe){return class extends oe{constructor(...W){super(...W),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new g.y(p=>{this._isInitialized?this._notifySubscriber(p):this._pendingSubscribers.push(p)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(W){W.next(),W.complete()}}}const ge=new i.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:Ze});function Ze(){return(0,i.inject)(i.LOCALE_ID)}class Me{constructor(){this._localeChanges=new S.x,this.localeChanges=this._localeChanges}getValidDateOrNull(W){return this.isDateInstance(W)&&this.isValid(W)?W:null}deserialize(W){return null==W||this.isDateInstance(W)&&this.isValid(W)?W:this.invalid()}setLocale(W){this.locale=W,this._localeChanges.next()}compareDate(W,p){return this.getYear(W)-this.getYear(p)||this.getMonth(W)-this.getMonth(p)||this.getDate(W)-this.getDate(p)}sameDate(W,p){if(W&&p){let C=this.isValid(W),D=this.isValid(p);return C&&D?!this.compareDate(W,p):C==D}return W==p}clampDate(W,p,C){return p&&this.compareDate(W,p)<0?p:C&&this.compareDate(W,C)>0?C:W}}const Ke=new i.InjectionToken("mat-date-formats"),mt=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Dt(oe,W){const p=Array(oe);for(let C=0;C<oe;C++)p[C]=W(C);return p}let ke=(()=>{class oe extends Me{constructor(p,C){super(),this.useUtcForDisplay=!1,super.setLocale(p)}getYear(p){return p.getFullYear()}getMonth(p){return p.getMonth()}getDate(p){return p.getDate()}getDayOfWeek(p){return p.getDay()}getMonthNames(p){const C=new Intl.DateTimeFormat(this.locale,{month:p,timeZone:"utc"});return Dt(12,D=>this._format(C,new Date(2017,D,1)))}getDateNames(){const p=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Dt(31,C=>this._format(p,new Date(2017,0,C+1)))}getDayOfWeekNames(p){const C=new Intl.DateTimeFormat(this.locale,{weekday:p,timeZone:"utc"});return Dt(7,D=>this._format(C,new Date(2017,0,D+1)))}getYearName(p){const C=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(C,p)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(p){return this.getDate(this._createDateWithOverflow(this.getYear(p),this.getMonth(p)+1,0))}clone(p){return new Date(p.getTime())}createDate(p,C,D){let K=this._createDateWithOverflow(p,C,D);return K.getMonth(),K}today(){return new Date}parse(p){return"number"==typeof p?new Date(p):p?new Date(Date.parse(p)):null}format(p,C){if(!this.isValid(p))throw Error("NativeDateAdapter: Cannot format invalid date.");const D=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},C),{timeZone:"utc"}));return this._format(D,p)}addCalendarYears(p,C){return this.addCalendarMonths(p,12*C)}addCalendarMonths(p,C){let D=this._createDateWithOverflow(this.getYear(p),this.getMonth(p)+C,this.getDate(p));return this.getMonth(D)!=((this.getMonth(p)+C)%12+12)%12&&(D=this._createDateWithOverflow(this.getYear(D),this.getMonth(D),0)),D}addCalendarDays(p,C){return this._createDateWithOverflow(this.getYear(p),this.getMonth(p),this.getDate(p)+C)}toIso8601(p){return[p.getUTCFullYear(),this._2digit(p.getUTCMonth()+1),this._2digit(p.getUTCDate())].join("-")}deserialize(p){if("string"==typeof p){if(!p)return null;if(mt.test(p)){let C=new Date(p);if(this.isValid(C))return C}}return super.deserialize(p)}isDateInstance(p){return p instanceof Date}isValid(p){return!isNaN(p.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(p,C,D){const K=new Date;return K.setFullYear(p,C,D),K.setHours(0,0,0,0),K}_2digit(p){return("00"+p).slice(-2)}_format(p,C){const D=new Date;return D.setUTCFullYear(C.getFullYear(),C.getMonth(),C.getDate()),D.setUTCHours(C.getHours(),C.getMinutes(),C.getSeconds(),C.getMilliseconds()),p.format(D)}}return oe.\u0275fac=function(p){return new(p||oe)(i.\u0275\u0275inject(ge,8),i.\u0275\u0275inject(s.t4))},oe.\u0275prov=i.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac}),oe})();const Ye={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 Z=(()=>{class oe{}return oe.\u0275fac=function(p){return new(p||oe)},oe.\u0275mod=i.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:Me,useClass:ke}],imports:[[s.ud]]}),oe})(),pe=(()=>{class oe{}return oe.\u0275fac=function(p){return new(p||oe)},oe.\u0275mod=i.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:Ke,useValue:Ye}],imports:[[Z]]}),oe})(),we=(()=>{class oe{isErrorState(p,C){return!!(p&&p.invalid&&(p.dirty||C&&C.submitted))}}return oe.\u0275fac=function(p){return new(p||oe)},oe.\u0275prov=i.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac}),oe})(),Re=(()=>{class oe{isErrorState(p,C){return!!(p&&p.invalid&&(p.touched||C&&C.submitted))}}return oe.\u0275fac=function(p){return new(p||oe)},oe.\u0275prov=i.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),ye=(()=>{class oe{}return oe.\u0275fac=function(p){return new(p||oe)},oe.\u0275dir=i.\u0275\u0275defineDirective({type:oe,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),oe})();function Xe(oe,W,p="mat"){oe.changes.pipe((0,v.O)(oe)).subscribe(({length:C})=>{dt(W,`${p}-2-line`,!1),dt(W,`${p}-3-line`,!1),dt(W,`${p}-multi-line`,!1),2===C||3===C?dt(W,`${p}-${C}-line`,!0):C>3&&dt(W,`${p}-multi-line`,!0)})}function dt(oe,W,p){oe.nativeElement.classList.toggle(W,p)}let bt=(()=>{class oe{}return oe.\u0275fac=function(p){return new(p||oe)},oe.\u0275mod=i.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Fe],Fe]}),oe})();class Ot{constructor(W,p,C){this._renderer=W,this.element=p,this.config=C,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const lt={enterDuration:225,exitDuration:150},N=(0,s.i$)({passive:!0}),ae=["mousedown","touchstart"],Oe=["mouseup","mouseleave","touchend","touchcancel"];class ue{constructor(W,p,C,D){this._target=W,this._ngZone=p,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,D.isBrowser&&(this._containerElement=(0,T.fI)(C))}fadeInRipple(W,p,C={}){const D=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),K=Object.assign(Object.assign({},lt),C.animation);C.centered&&(W=D.left+D.width/2,p=D.top+D.height/2);const et=C.radius||function ve(oe,W,p){const C=Math.max(Math.abs(oe-p.left),Math.abs(oe-p.right)),D=Math.max(Math.abs(W-p.top),Math.abs(W-p.bottom));return Math.sqrt(C*C+D*D)}(W,p,D),Et=W-D.left,Wt=p-D.top,pn=K.enterDuration,Le=document.createElement("div");Le.classList.add("mat-ripple-element"),Le.style.left=Et-et+"px",Le.style.top=Wt-et+"px",Le.style.height=2*et+"px",Le.style.width=2*et+"px",null!=C.color&&(Le.style.backgroundColor=C.color),Le.style.transitionDuration=`${pn}ms`,this._containerElement.appendChild(Le),function De(oe){window.getComputedStyle(oe).getPropertyValue("opacity")}(Le),Le.style.transform="scale(1)";const Ve=new Ot(this,Le,C);return Ve.state=0,this._activeRipples.add(Ve),C.persistent||(this._mostRecentTransientRipple=Ve),this._runTimeoutOutsideZone(()=>{const he=Ve===this._mostRecentTransientRipple;Ve.state=1,!C.persistent&&(!he||!this._isPointerDown)&&Ve.fadeOut()},pn),Ve}fadeOutRipple(W){const p=this._activeRipples.delete(W);if(W===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!p)return;const C=W.element,D=Object.assign(Object.assign({},lt),W.config.animation);C.style.transitionDuration=`${D.exitDuration}ms`,C.style.opacity="0",W.state=2,this._runTimeoutOutsideZone(()=>{W.state=3,C.remove()},D.exitDuration)}fadeOutAll(){this._activeRipples.forEach(W=>W.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(W=>{W.config.persistent||W.fadeOut()})}setupTriggerEvents(W){const p=(0,T.fI)(W);!p||p===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=p,this._registerEvents(ae))}handleEvent(W){"mousedown"===W.type?this._onMousedown(W):"touchstart"===W.type?this._onTouchStart(W):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Oe),this._pointerUpEventsRegistered=!0)}_onMousedown(W){const p=(0,b.X6)(W),C=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!p&&!C&&(this._isPointerDown=!0,this.fadeInRipple(W.clientX,W.clientY,this._target.rippleConfig))}_onTouchStart(W){if(!this._target.rippleDisabled&&!(0,b.yG)(W)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const p=W.changedTouches;for(let C=0;C<p.length;C++)this.fadeInRipple(p[C].clientX,p[C].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(W=>{!W.config.persistent&&(1===W.state||W.config.terminateOnPointerUp&&0===W.state)&&W.fadeOut()}))}_runTimeoutOutsideZone(W,p=0){this._ngZone.runOutsideAngular(()=>setTimeout(W,p))}_registerEvents(W){this._ngZone.runOutsideAngular(()=>{W.forEach(p=>{this._triggerElement.addEventListener(p,this,N)})})}_removeTriggerEvents(){this._triggerElement&&(ae.forEach(W=>{this._triggerElement.removeEventListener(W,this,N)}),this._pointerUpEventsRegistered&&Oe.forEach(W=>{this._triggerElement.removeEventListener(W,this,N)}))}}const se=new i.InjectionToken("mat-ripple-global-options");let be=(()=>{class oe{constructor(p,C,D,K,et){this._elementRef=p,this._animationMode=et,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=K||{},this._rippleRenderer=new ue(this,C,p,D)}get disabled(){return this._disabled}set disabled(p){p&&this.fadeOutAllNonPersistent(),this._disabled=p,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(p){this._trigger=p,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(p,C=0,D){return"number"==typeof p?this._rippleRenderer.fadeInRipple(p,C,Object.assign(Object.assign({},this.rippleConfig),D)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),p))}}return oe.\u0275fac=function(p){return new(p||oe)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(s.t4),i.\u0275\u0275directiveInject(se,8),i.\u0275\u0275directiveInject(A.ANIMATION_MODULE_TYPE,8))},oe.\u0275dir=i.\u0275\u0275defineDirective({type:oe,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(p,C){2&p&&i.\u0275\u0275classProp("mat-ripple-unbounded",C.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"]}),oe})(),Ge=(()=>{class oe{}return oe.\u0275fac=function(p){return new(p||oe)},oe.\u0275mod=i.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Fe,s.ud],Fe]}),oe})(),nt=(()=>{class oe{constructor(p){this._animationMode=p,this.state="unchecked",this.disabled=!1}}return oe.\u0275fac=function(p){return new(p||oe)(i.\u0275\u0275directiveInject(A.ANIMATION_MODULE_TYPE,8))},oe.\u0275cmp=i.\u0275\u0275defineComponent({type:oe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(p,C){2&p&&i.\u0275\u0275classProp("mat-pseudo-checkbox-indeterminate","indeterminate"===C.state)("mat-pseudo-checkbox-checked","checked"===C.state)("mat-pseudo-checkbox-disabled",C.disabled)("_mat-animation-noopable","NoopAnimations"===C._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(p,C){},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}),oe})(),ht=(()=>{class oe{}return oe.\u0275fac=function(p){return new(p||oe)},oe.\u0275mod=i.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Fe]]}),oe})();const ft=new i.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),wt=Ae(class{});let Ht=0,en=(()=>{class oe extends wt{constructor(p){var C;super(),this._labelId="mat-optgroup-label-"+Ht++,this._inert=null!==(C=null==p?void 0:p.inertGroups)&&void 0!==C&&C}}return oe.\u0275fac=function(p){return new(p||oe)(i.\u0275\u0275directiveInject(ft,8))},oe.\u0275dir=i.\u0275\u0275defineDirective({type:oe,inputs:{label:"label"},features:[i.\u0275\u0275InheritDefinitionFeature]}),oe})();const Bt=new i.InjectionToken("MatOptgroup");let En=(()=>{class oe extends en{}return oe.\u0275fac=function(){let W;return function(C){return(W||(W=i.\u0275\u0275getInheritedFactory(oe)))(C||oe)}}(),oe.\u0275cmp=i.\u0275\u0275defineComponent({type:oe,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(p,C){2&p&&(i.\u0275\u0275attribute("role",C._inert?null:"group")("aria-disabled",C._inert?null:C.disabled.toString())("aria-labelledby",C._inert?null:C._labelId),i.\u0275\u0275classProp("mat-optgroup-disabled",C.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[i.\u0275\u0275ProvidersFeature([{provide:Bt,useExisting:oe}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:k,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(p,C){1&p&&(i.\u0275\u0275projectionDef(w),i.\u0275\u0275elementStart(0,"span",0),i.\u0275\u0275text(1),i.\u0275\u0275projection(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275projection(3,1)),2&p&&(i.\u0275\u0275property("id",C._labelId),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("",C.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}),oe})(),rn=0;class zt{constructor(W,p=!1){this.source=W,this.isUserInput=p}}let Mt=(()=>{class oe{constructor(p,C,D,K){this._element=p,this._changeDetectorRef=C,this._parent=D,this.group=K,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+rn++,this.onSelectionChange=new i.EventEmitter,this._stateChanges=new S.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(p){this._disabled=(0,T.Ig)(p)}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(p,C){const D=this._getHostElement();"function"==typeof D.focus&&D.focus(C)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(p){(p.keyCode===O.K5||p.keyCode===O.L_)&&!(0,O.Vb)(p)&&(this._selectViaInteraction(),p.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 p=this.viewValue;p!==this._mostRecentViewValue&&(this._mostRecentViewValue=p,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(p=!1){this.onSelectionChange.emit(new zt(this,p))}}return oe.\u0275fac=function(p){i.\u0275\u0275invalidFactory()},oe.\u0275dir=i.\u0275\u0275defineDirective({type:oe,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),oe})(),bn=(()=>{class oe extends Mt{constructor(p,C,D,K){super(p,C,D,K)}}return oe.\u0275fac=function(p){return new(p||oe)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(ft,8),i.\u0275\u0275directiveInject(Bt,8))},oe.\u0275cmp=i.\u0275\u0275defineComponent({type:oe,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(p,C){1&p&&i.\u0275\u0275listener("click",function(){return C._selectViaInteraction()})("keydown",function(K){return C._handleKeydown(K)}),2&p&&(i.\u0275\u0275hostProperty("id",C.id),i.\u0275\u0275attribute("tabindex",C._getTabIndex())("aria-selected",C._getAriaSelected())("aria-disabled",C.disabled.toString()),i.\u0275\u0275classProp("mat-selected",C.selected)("mat-option-multiple",C.multiple)("mat-active",C.active)("mat-option-disabled",C.disabled))},exportAs:["matOption"],features:[i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:$,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(p,C){1&p&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275template(0,U,1,2,"mat-pseudo-checkbox",0),i.\u0275\u0275elementStart(1,"span",1),i.\u0275\u0275projection(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(3,me,2,1,"span",2),i.\u0275\u0275element(4,"div",3)),2&p&&(i.\u0275\u0275property("ngIf",C.multiple),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf",C.group&&C.group._inert),i.\u0275\u0275advance(1),i.\u0275\u0275property("matRippleTrigger",C._getHostElement())("matRippleDisabled",C.disabled||C.disableRipple))},directives:[u.NgIf,be,nt],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}),oe})();function Qt(oe,W,p){if(p.length){let C=W.toArray(),D=p.toArray(),K=0;for(let et=0;et<oe+1;et++)C[et].group&&C[et].group===D[K]&&K++;return K}return 0}function on(oe,W,p,C){return oe<p?oe:oe+W>p+C?Math.max(0,oe-C+W):p}let yn=(()=>{class oe{}return oe.\u0275fac=function(p){return new(p||oe)},oe.\u0275mod=i.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Ge,u.CommonModule,Fe,ht]]}),oe})()},8966:(je,_,l)=>{"use strict";l.r(_),l.d(_,{MAT_DIALOG_DATA:()=>Ae,MAT_DIALOG_DEFAULT_OPTIONS:()=>X,MAT_DIALOG_SCROLL_STRATEGY:()=>ce,MAT_DIALOG_SCROLL_STRATEGY_FACTORY:()=>Se,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER:()=>$e,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>ne,MatDialog:()=>Ze,MatDialogActions:()=>Ye,MatDialogClose:()=>mt,MatDialogConfig:()=>fe,MatDialogContainer:()=>Fe,MatDialogContent:()=>ke,MatDialogModule:()=>pe,MatDialogRef:()=>ot,MatDialogTitle:()=>Dt,_MatDialogBase:()=>ge,_MatDialogContainerBase:()=>Ee,_closeDialogVia:()=>q,matDialogAnimations:()=>_e,throwMatDialogContentAlreadyAttachedError:()=>le});var i=l(1314),d=l(7429),m=l(5e3),u=l(508),s=l(226),b=l(6758),T=l(9770),S=l(6921),g=l(9646),v=l(9300),A=l(5698),O=l(8675),w=l(925),k=l(9808),U=l(1777),me=l(5664),$=l(1159),re=l(6360);function Te(we,Re){}class fe{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 _e={dialogContainer:(0,U.X$)("dialogContainer",[(0,U.SB)("void, exit",(0,U.oB)({opacity:0,transform:"scale(0.7)"})),(0,U.SB)("enter",(0,U.oB)({transform:"none"})),(0,U.eR)("* => enter",(0,U.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,U.oB)({transform:"none",opacity:1}))),(0,U.eR)("* => void, * => exit",(0,U.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,U.oB)({opacity:0})))])};function le(){throw Error("Attempting to attach dialog content after content is already attached")}let Ee=(()=>{class we extends d.en{constructor(ye,Xe,dt,bt,Ot,lt,Qe,N){super(),this._elementRef=ye,this._focusTrapFactory=Xe,this._changeDetectorRef=dt,this._config=Ot,this._interactivityChecker=lt,this._ngZone=Qe,this._focusMonitor=N,this._animationStateChanged=new m.EventEmitter,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=ae=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(ae)),this._ariaLabelledBy=Ot.ariaLabelledBy||null,this._document=bt}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(ye){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(ye)}attachTemplatePortal(ye){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(ye)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(ye,Xe){this._interactivityChecker.isFocusable(ye)||(ye.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{ye.addEventListener("blur",()=>ye.removeAttribute("tabindex")),ye.addEventListener("mousedown",()=>ye.removeAttribute("tabindex"))})),ye.focus(Xe)}_focusByCssSelector(ye,Xe){let dt=this._elementRef.nativeElement.querySelector(ye);dt&&this._forceFocus(dt,Xe)}_trapFocus(){const ye=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||ye.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(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 ye=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&ye&&"function"==typeof ye.focus){const Xe=(0,w.ht)(),dt=this._elementRef.nativeElement;(!Xe||Xe===this._document.body||Xe===dt||dt.contains(Xe))&&(this._focusMonitor?(this._focusMonitor.focusVia(ye,this._closeInteractionType),this._closeInteractionType=null):ye.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,w.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const ye=this._elementRef.nativeElement,Xe=(0,w.ht)();return ye===Xe||ye.contains(Xe)}}return we.\u0275fac=function(ye){return new(ye||we)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(me.qV),m.\u0275\u0275directiveInject(m.ChangeDetectorRef),m.\u0275\u0275directiveInject(k.DOCUMENT,8),m.\u0275\u0275directiveInject(fe),m.\u0275\u0275directiveInject(me.ic),m.\u0275\u0275directiveInject(m.NgZone),m.\u0275\u0275directiveInject(me.tE))},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,viewQuery:function(ye,Xe){if(1&ye&&m.\u0275\u0275viewQuery(d.Pl,7),2&ye){let dt;m.\u0275\u0275queryRefresh(dt=m.\u0275\u0275loadQuery())&&(Xe._portalOutlet=dt.first)}},features:[m.\u0275\u0275InheritDefinitionFeature]}),we})(),Fe=(()=>{class we extends Ee{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:ye,totalTime:Xe}){"enter"===ye?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Xe})):"exit"===ye&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Xe}))}_onAnimationStart({toState:ye,totalTime:Xe}){"enter"===ye?this._animationStateChanged.next({state:"opening",totalTime:Xe}):("exit"===ye||"void"===ye)&&this._animationStateChanged.next({state:"closing",totalTime:Xe})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return we.\u0275fac=function(){let Re;return function(Xe){return(Re||(Re=m.\u0275\u0275getInheritedFactory(we)))(Xe||we)}}(),we.\u0275cmp=m.\u0275\u0275defineComponent({type:we,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(ye,Xe){1&ye&&m.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(bt){return Xe._onAnimationStart(bt)})("@dialogContainer.done",function(bt){return Xe._onAnimationDone(bt)}),2&ye&&(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(ye,Xe){1&ye&&m.\u0275\u0275template(0,Te,0,0,"ng-template",0)},directives:[d.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:[_e.dialogContainer]}}),we})(),Je=0;class ot{constructor(Re,ye,Xe="mat-dialog-"+Je++){this._overlayRef=Re,this._containerInstance=ye,this.id=Xe,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new b.x,this._afterClosed=new b.x,this._beforeClosed=new b.x,this._state=0,ye._id=Xe,ye._animationStateChanged.pipe((0,v.h)(dt=>"opened"===dt.state),(0,A.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),ye._animationStateChanged.pipe((0,v.h)(dt=>"closed"===dt.state),(0,A.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Re.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Re.keydownEvents().pipe((0,v.h)(dt=>dt.keyCode===$.hY&&!this.disableClose&&!(0,$.Vb)(dt))).subscribe(dt=>{dt.preventDefault(),q(this,"keyboard")}),Re.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():q(this,"mouse")})}close(Re){this._result=Re,this._containerInstance._animationStateChanged.pipe((0,v.h)(ye=>"closing"===ye.state),(0,A.q)(1)).subscribe(ye=>{this._beforeClosed.next(Re),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),ye.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(Re){let ye=this._getPositionStrategy();return Re&&(Re.left||Re.right)?Re.left?ye.left(Re.left):ye.right(Re.right):ye.centerHorizontally(),Re&&(Re.top||Re.bottom)?Re.top?ye.top(Re.top):ye.bottom(Re.bottom):ye.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Re="",ye=""){return this._overlayRef.updateSize({width:Re,height:ye}),this._overlayRef.updatePosition(),this}addPanelClass(Re){return this._overlayRef.addPanelClass(Re),this}removePanelClass(Re){return this._overlayRef.removePanelClass(Re),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function q(we,Re,ye){return void 0!==we._containerInstance&&(we._containerInstance._closeInteractionType=Re),we.close(ye)}const Ae=new m.InjectionToken("MatDialogData"),X=new m.InjectionToken("mat-dialog-default-options"),ce=new m.InjectionToken("mat-dialog-scroll-strategy");function Se(we){return()=>we.scrollStrategies.block()}function ne(we){return()=>we.scrollStrategies.block()}const $e={provide:ce,deps:[i.aV],useFactory:ne};let ge=(()=>{class we{constructor(ye,Xe,dt,bt,Ot,lt,Qe,N,ae,Oe){this._overlay=ye,this._injector=Xe,this._defaultOptions=dt,this._parentDialog=bt,this._overlayContainer=Ot,this._dialogRefConstructor=Qe,this._dialogContainerType=N,this._dialogDataToken=ae,this._animationMode=Oe,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new b.x,this._afterOpenedAtThisLevel=new b.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,T.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,O.O)(void 0))),this._scrollStrategy=lt}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const ye=this._parentDialog;return ye?ye._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(ye,Xe){if(Xe=function Me(we,Re){return Object.assign(Object.assign({},Re),we)}(Xe,this._defaultOptions||new fe),Xe.id&&this.getDialogById(Xe.id),this._dialogAnimatingOpen)return this._lastDialogRef;const dt=this._createOverlay(Xe),bt=this._attachDialogContainer(dt,Xe);if("NoopAnimations"!==this._animationMode){const lt=bt._animationStateChanged.subscribe(Qe=>{"opening"===Qe.state&&(this._dialogAnimatingOpen=!0),"opened"===Qe.state&&(this._dialogAnimatingOpen=!1,lt.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new S.w0),this._animationStateSubscriptions.add(lt)}const Ot=this._attachDialogContent(ye,bt,dt,Xe);return this._lastDialogRef=Ot,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Ot),Ot.afterClosed().subscribe(()=>this._removeOpenDialog(Ot)),this.afterOpened.next(Ot),bt._initializeWithAttachedContent(),Ot}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(ye){return this.openDialogs.find(Xe=>Xe.id===ye)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(ye){const Xe=this._getOverlayConfig(ye);return this._overlay.create(Xe)}_getOverlayConfig(ye){const Xe=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:ye.scrollStrategy||this._scrollStrategy(),panelClass:ye.panelClass,hasBackdrop:ye.hasBackdrop,direction:ye.direction,minWidth:ye.minWidth,minHeight:ye.minHeight,maxWidth:ye.maxWidth,maxHeight:ye.maxHeight,disposeOnNavigation:ye.closeOnNavigation});return ye.backdropClass&&(Xe.backdropClass=ye.backdropClass),Xe}_attachDialogContainer(ye,Xe){const bt=m.Injector.create({parent:Xe&&Xe.viewContainerRef&&Xe.viewContainerRef.injector||this._injector,providers:[{provide:fe,useValue:Xe}]}),Ot=new d.C5(this._dialogContainerType,Xe.viewContainerRef,bt,Xe.componentFactoryResolver);return ye.attach(Ot).instance}_attachDialogContent(ye,Xe,dt,bt){const Ot=new this._dialogRefConstructor(dt,Xe,bt.id);if(ye instanceof m.TemplateRef)Xe.attachTemplatePortal(new d.UE(ye,null,{$implicit:bt.data,dialogRef:Ot}));else{const lt=this._createInjector(bt,Ot,Xe),Qe=Xe.attachComponentPortal(new d.C5(ye,bt.viewContainerRef,lt));Ot.componentInstance=Qe.instance}return Ot.updateSize(bt.width,bt.height).updatePosition(bt.position),Ot}_createInjector(ye,Xe,dt){const bt=ye&&ye.viewContainerRef&&ye.viewContainerRef.injector,Ot=[{provide:this._dialogContainerType,useValue:dt},{provide:this._dialogDataToken,useValue:ye.data},{provide:this._dialogRefConstructor,useValue:Xe}];return ye.direction&&(!bt||!bt.get(s.Is,null,m.InjectFlags.Optional))&&Ot.push({provide:s.Is,useValue:{value:ye.direction,change:(0,g.of)()}}),m.Injector.create({parent:bt||this._injector,providers:Ot})}_removeOpenDialog(ye){const Xe=this.openDialogs.indexOf(ye);Xe>-1&&(this.openDialogs.splice(Xe,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((dt,bt)=>{dt?bt.setAttribute("aria-hidden",dt):bt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const ye=this._overlayContainer.getContainerElement();if(ye.parentElement){const Xe=ye.parentElement.children;for(let dt=Xe.length-1;dt>-1;dt--){let bt=Xe[dt];bt!==ye&&"SCRIPT"!==bt.nodeName&&"STYLE"!==bt.nodeName&&!bt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(bt,bt.getAttribute("aria-hidden")),bt.setAttribute("aria-hidden","true"))}}}_closeDialogs(ye){let Xe=ye.length;for(;Xe--;)ye[Xe].close()}}return we.\u0275fac=function(ye){m.\u0275\u0275invalidFactory()},we.\u0275dir=m.\u0275\u0275defineDirective({type:we}),we})(),Ze=(()=>{class we extends ge{constructor(ye,Xe,dt,bt,Ot,lt,Qe,N){super(ye,Xe,bt,lt,Qe,Ot,ot,Fe,Ae,N)}}return we.\u0275fac=function(ye){return new(ye||we)(m.\u0275\u0275inject(i.aV),m.\u0275\u0275inject(m.Injector),m.\u0275\u0275inject(k.Location,8),m.\u0275\u0275inject(X,8),m.\u0275\u0275inject(ce),m.\u0275\u0275inject(we,12),m.\u0275\u0275inject(i.Xj),m.\u0275\u0275inject(re.ANIMATION_MODULE_TYPE,8))},we.\u0275prov=m.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})(),Ke=0,mt=(()=>{class we{constructor(ye,Xe,dt){this.dialogRef=ye,this._elementRef=Xe,this._dialog=dt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Z(this._elementRef,this._dialog.openDialogs))}ngOnChanges(ye){const Xe=ye._matDialogClose||ye._matDialogCloseResult;Xe&&(this.dialogResult=Xe.currentValue)}_onButtonClick(ye){q(this.dialogRef,0===ye.screenX&&0===ye.screenY?"keyboard":"mouse",this.dialogResult)}}return we.\u0275fac=function(ye){return new(ye||we)(m.\u0275\u0275directiveInject(ot,8),m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(Ze))},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(ye,Xe){1&ye&&m.\u0275\u0275listener("click",function(bt){return Xe._onButtonClick(bt)}),2&ye&&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]}),we})(),Dt=(()=>{class we{constructor(ye,Xe,dt){this._dialogRef=ye,this._elementRef=Xe,this._dialog=dt,this.id="mat-dialog-title-"+Ke++}ngOnInit(){this._dialogRef||(this._dialogRef=Z(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const ye=this._dialogRef._containerInstance;ye&&!ye._ariaLabelledBy&&(ye._ariaLabelledBy=this.id)})}}return we.\u0275fac=function(ye){return new(ye||we)(m.\u0275\u0275directiveInject(ot,8),m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(Ze))},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(ye,Xe){2&ye&&m.\u0275\u0275hostProperty("id",Xe.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),we})(),ke=(()=>{class we{}return we.\u0275fac=function(ye){return new(ye||we)},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),we})(),Ye=(()=>{class we{}return we.\u0275fac=function(ye){return new(ye||we)},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),we})();function Z(we,Re){let ye=we.nativeElement.parentElement;for(;ye&&!ye.classList.contains("mat-dialog-container");)ye=ye.parentElement;return ye?Re.find(Xe=>Xe.id===ye.id):null}let pe=(()=>{class we{}return we.\u0275fac=function(ye){return new(ye||we)},we.\u0275mod=m.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=m.\u0275\u0275defineInjector({providers:[Ze,$e],imports:[[i.U8,d.eL,u.MatCommonModule],u.MatCommonModule]}),we})()},5245:(je,_,l)=>{"use strict";l.r(_),l.d(_,{ICON_REGISTRY_PROVIDER:()=>Ae,ICON_REGISTRY_PROVIDER_FACTORY:()=>q,MAT_ICON_LOCATION:()=>$e,MAT_ICON_LOCATION_FACTORY:()=>ge,MatIcon:()=>mt,MatIconModule:()=>Dt,MatIconRegistry:()=>ot,getMatIconFailedToSanitizeLiteralError:()=>Fe,getMatIconFailedToSanitizeUrlError:()=>Ee,getMatIconNameNotFoundError:()=>_e,getMatIconNoHttpProviderError:()=>le});var i=l(5e3),d=l(508),m=l(3191),u=l(9808),s=l(9646),b=l(2843),T=l(4128),S=l(6921),g=l(8505),v=l(4004),A=l(262),O=l(8746),w=l(3099),k=l(5698),U=l(520),me=l(2313);const $=["*"];let re;function fe(ke){var Ye;return(null===(Ye=function Te(){if(void 0===re&&(re=null,"undefined"!=typeof window)){const ke=window;void 0!==ke.trustedTypes&&(re=ke.trustedTypes.createPolicy("angular#components",{createHTML:Ye=>Ye}))}return re}())||void 0===Ye?void 0:Ye.createHTML(ke))||ke}function _e(ke){return Error(`Unable to find icon with the name "${ke}"`)}function le(){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 Ee(ke){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${ke}".`)}function Fe(ke){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${ke}".`)}class Je{constructor(Ye,Z,pe){this.url=Ye,this.svgText=Z,this.options=pe}}let ot=(()=>{class ke{constructor(Z,pe,we,Re){this._httpClient=Z,this._sanitizer=pe,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=we}addSvgIcon(Z,pe,we){return this.addSvgIconInNamespace("",Z,pe,we)}addSvgIconLiteral(Z,pe,we){return this.addSvgIconLiteralInNamespace("",Z,pe,we)}addSvgIconInNamespace(Z,pe,we,Re){return this._addSvgIconConfig(Z,pe,new Je(we,null,Re))}addSvgIconResolver(Z){return this._resolvers.push(Z),this}addSvgIconLiteralInNamespace(Z,pe,we,Re){const ye=this._sanitizer.sanitize(i.SecurityContext.HTML,we);if(!ye)throw Fe(we);const Xe=fe(ye);return this._addSvgIconConfig(Z,pe,new Je("",Xe,Re))}addSvgIconSet(Z,pe){return this.addSvgIconSetInNamespace("",Z,pe)}addSvgIconSetLiteral(Z,pe){return this.addSvgIconSetLiteralInNamespace("",Z,pe)}addSvgIconSetInNamespace(Z,pe,we){return this._addSvgIconSetConfig(Z,new Je(pe,null,we))}addSvgIconSetLiteralInNamespace(Z,pe,we){const Re=this._sanitizer.sanitize(i.SecurityContext.HTML,pe);if(!Re)throw Fe(pe);const ye=fe(Re);return this._addSvgIconSetConfig(Z,new Je("",ye,we))}registerFontClassAlias(Z,pe=Z){return this._fontCssClassesByAlias.set(Z,pe),this}classNameForFontAlias(Z){return this._fontCssClassesByAlias.get(Z)||Z}setDefaultFontSetClass(Z){return this._defaultFontSetClass=Z,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Z){const pe=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,Z);if(!pe)throw Ee(Z);const we=this._cachedIconsByUrl.get(pe);return we?(0,s.of)(X(we)):this._loadSvgIconFromConfig(new Je(Z,null)).pipe((0,g.b)(Re=>this._cachedIconsByUrl.set(pe,Re)),(0,v.U)(Re=>X(Re)))}getNamedSvgIcon(Z,pe=""){const we=ce(pe,Z);let Re=this._svgIconConfigs.get(we);if(Re)return this._getSvgFromConfig(Re);if(Re=this._getIconConfigFromResolvers(pe,Z),Re)return this._svgIconConfigs.set(we,Re),this._getSvgFromConfig(Re);const ye=this._iconSetConfigs.get(pe);return ye?this._getSvgFromIconSetConfigs(Z,ye):(0,b._)(_e(we))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Z){return Z.svgText?(0,s.of)(X(this._svgElementFromConfig(Z))):this._loadSvgIconFromConfig(Z).pipe((0,v.U)(pe=>X(pe)))}_getSvgFromIconSetConfigs(Z,pe){const we=this._extractIconWithNameFromAnySet(Z,pe);if(we)return(0,s.of)(we);const Re=pe.filter(ye=>!ye.svgText).map(ye=>this._loadSvgIconSetFromConfig(ye).pipe((0,A.K)(Xe=>{const bt=`Loading icon set URL: ${this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,ye.url)} failed: ${Xe.message}`;return this._errorHandler.handleError(new Error(bt)),(0,s.of)(null)})));return(0,T.D)(Re).pipe((0,v.U)(()=>{const ye=this._extractIconWithNameFromAnySet(Z,pe);if(!ye)throw _e(Z);return ye}))}_extractIconWithNameFromAnySet(Z,pe){for(let we=pe.length-1;we>=0;we--){const Re=pe[we];if(Re.svgText&&Re.svgText.toString().indexOf(Z)>-1){const ye=this._svgElementFromConfig(Re),Xe=this._extractSvgIconFromSet(ye,Z,Re.options);if(Xe)return Xe}}return null}_loadSvgIconFromConfig(Z){return this._fetchIcon(Z).pipe((0,g.b)(pe=>Z.svgText=pe),(0,v.U)(()=>this._svgElementFromConfig(Z)))}_loadSvgIconSetFromConfig(Z){return Z.svgText?(0,s.of)(null):this._fetchIcon(Z).pipe((0,g.b)(pe=>Z.svgText=pe))}_extractSvgIconFromSet(Z,pe,we){const Re=Z.querySelector(`[id="${pe}"]`);if(!Re)return null;const ye=Re.cloneNode(!0);if(ye.removeAttribute("id"),"svg"===ye.nodeName.toLowerCase())return this._setSvgAttributes(ye,we);if("symbol"===ye.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ye),we);const Xe=this._svgElementFromString(fe("<svg></svg>"));return Xe.appendChild(ye),this._setSvgAttributes(Xe,we)}_svgElementFromString(Z){const pe=this._document.createElement("DIV");pe.innerHTML=Z;const we=pe.querySelector("svg");if(!we)throw Error("<svg> tag not found");return we}_toSvgElement(Z){const pe=this._svgElementFromString(fe("<svg></svg>")),we=Z.attributes;for(let Re=0;Re<we.length;Re++){const{name:ye,value:Xe}=we[Re];"id"!==ye&&pe.setAttribute(ye,Xe)}for(let Re=0;Re<Z.childNodes.length;Re++)Z.childNodes[Re].nodeType===this._document.ELEMENT_NODE&&pe.appendChild(Z.childNodes[Re].cloneNode(!0));return pe}_setSvgAttributes(Z,pe){return Z.setAttribute("fit",""),Z.setAttribute("height","100%"),Z.setAttribute("width","100%"),Z.setAttribute("preserveAspectRatio","xMidYMid meet"),Z.setAttribute("focusable","false"),pe&&pe.viewBox&&Z.setAttribute("viewBox",pe.viewBox),Z}_fetchIcon(Z){var pe;const{url:we,options:Re}=Z,ye=null!==(pe=null==Re?void 0:Re.withCredentials)&&void 0!==pe&&pe;if(!this._httpClient)throw le();if(null==we)throw Error(`Cannot fetch icon from URL "${we}".`);const Xe=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,we);if(!Xe)throw Ee(we);const dt=this._inProgressUrlFetches.get(Xe);if(dt)return dt;const bt=this._httpClient.get(Xe,{responseType:"text",withCredentials:ye}).pipe((0,v.U)(Ot=>fe(Ot)),(0,O.x)(()=>this._inProgressUrlFetches.delete(Xe)),(0,w.B)());return this._inProgressUrlFetches.set(Xe,bt),bt}_addSvgIconConfig(Z,pe,we){return this._svgIconConfigs.set(ce(Z,pe),we),this}_addSvgIconSetConfig(Z,pe){const we=this._iconSetConfigs.get(Z);return we?we.push(pe):this._iconSetConfigs.set(Z,[pe]),this}_svgElementFromConfig(Z){if(!Z.svgElement){const pe=this._svgElementFromString(Z.svgText);this._setSvgAttributes(pe,Z.options),Z.svgElement=pe}return Z.svgElement}_getIconConfigFromResolvers(Z,pe){for(let we=0;we<this._resolvers.length;we++){const Re=this._resolvers[we](pe,Z);if(Re)return Se(Re)?new Je(Re.url,null,Re.options):new Je(Re,null)}}}return ke.\u0275fac=function(Z){return new(Z||ke)(i.\u0275\u0275inject(U.HttpClient,8),i.\u0275\u0275inject(me.DomSanitizer),i.\u0275\u0275inject(u.DOCUMENT,8),i.\u0275\u0275inject(i.ErrorHandler))},ke.\u0275prov=i.\u0275\u0275defineInjectable({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();function q(ke,Ye,Z,pe,we){return ke||new ot(Ye,Z,we,pe)}const Ae={provide:ot,deps:[[new i.Optional,new i.SkipSelf,ot],[new i.Optional,U.HttpClient],me.DomSanitizer,i.ErrorHandler,[new i.Optional,u.DOCUMENT]],useFactory:q};function X(ke){return ke.cloneNode(!0)}function ce(ke,Ye){return ke+":"+Ye}function Se(ke){return!(!ke.url||!ke.options)}const ne=(0,d.mixinColor)(class{constructor(ke){this._elementRef=ke}}),$e=new i.InjectionToken("mat-icon-location",{providedIn:"root",factory:ge});function ge(){const ke=(0,i.inject)(u.DOCUMENT),Ye=ke?ke.location:null;return{getPathname:()=>Ye?Ye.pathname+Ye.search:""}}const Ze=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Me=Ze.map(ke=>`[${ke}]`).join(", "),Ke=/^url\(['"]?#(.*?)['"]?\)$/;let mt=(()=>{class ke extends ne{constructor(Z,pe,we,Re,ye){super(Z),this._iconRegistry=pe,this._location=Re,this._errorHandler=ye,this._inline=!1,this._currentIconFetch=S.w0.EMPTY,we||Z.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Z){this._inline=(0,m.Ig)(Z)}get svgIcon(){return this._svgIcon}set svgIcon(Z){Z!==this._svgIcon&&(Z?this._updateSvgIcon(Z):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Z)}get fontSet(){return this._fontSet}set fontSet(Z){const pe=this._cleanupFontValue(Z);pe!==this._fontSet&&(this._fontSet=pe,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Z){const pe=this._cleanupFontValue(Z);pe!==this._fontIcon&&(this._fontIcon=pe,this._updateFontIconClasses())}_splitIconName(Z){if(!Z)return["",""];const pe=Z.split(":");switch(pe.length){case 1:return["",pe[0]];case 2:return pe;default:throw Error(`Invalid icon name: "${Z}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Z=this._elementsWithExternalReferences;if(Z&&Z.size){const pe=this._location.getPathname();pe!==this._previousPath&&(this._previousPath=pe,this._prependPathToReferences(pe))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Z){this._clearSvgElement();const pe=Z.querySelectorAll("style");for(let Re=0;Re<pe.length;Re++)pe[Re].textContent+=" ";const we=this._location.getPathname();this._previousPath=we,this._cacheChildrenWithExternalReferences(Z),this._prependPathToReferences(we),this._elementRef.nativeElement.appendChild(Z)}_clearSvgElement(){const Z=this._elementRef.nativeElement;let pe=Z.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();pe--;){const we=Z.childNodes[pe];(1!==we.nodeType||"svg"===we.nodeName.toLowerCase())&&we.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Z=this._elementRef.nativeElement,pe=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();pe!=this._previousFontSetClass&&(this._previousFontSetClass&&Z.classList.remove(this._previousFontSetClass),pe&&Z.classList.add(pe),this._previousFontSetClass=pe),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&Z.classList.remove(this._previousFontIconClass),this.fontIcon&&Z.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Z){return"string"==typeof Z?Z.trim().split(" ")[0]:Z}_prependPathToReferences(Z){const pe=this._elementsWithExternalReferences;pe&&pe.forEach((we,Re)=>{we.forEach(ye=>{Re.setAttribute(ye.name,`url('${Z}#${ye.value}')`)})})}_cacheChildrenWithExternalReferences(Z){const pe=Z.querySelectorAll(Me),we=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Re=0;Re<pe.length;Re++)Ze.forEach(ye=>{const Xe=pe[Re],dt=Xe.getAttribute(ye),bt=dt?dt.match(Ke):null;if(bt){let Ot=we.get(Xe);Ot||(Ot=[],we.set(Xe,Ot)),Ot.push({name:ye,value:bt[1]})}})}_updateSvgIcon(Z){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Z){const[pe,we]=this._splitIconName(Z);pe&&(this._svgNamespace=pe),we&&(this._svgName=we),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(we,pe).pipe((0,k.q)(1)).subscribe(Re=>this._setSvgElement(Re),Re=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${pe}:${we}! ${Re.message}`))})}}}return ke.\u0275fac=function(Z){return new(Z||ke)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(ot),i.\u0275\u0275injectAttribute("aria-hidden"),i.\u0275\u0275directiveInject($e),i.\u0275\u0275directiveInject(i.ErrorHandler))},ke.\u0275cmp=i.\u0275\u0275defineComponent({type:ke,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Z,pe){2&Z&&(i.\u0275\u0275attribute("data-mat-icon-type",pe._usingFontIcon()?"font":"svg")("data-mat-icon-name",pe._svgName||pe.fontIcon)("data-mat-icon-namespace",pe._svgNamespace||pe.fontSet),i.\u0275\u0275classProp("mat-icon-inline",pe.inline)("mat-icon-no-color","primary"!==pe.color&&"accent"!==pe.color&&"warn"!==pe.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:$,decls:1,vars:0,template:function(Z,pe){1&Z&&(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}),ke})(),Dt=(()=>{class ke{}return ke.\u0275fac=function(Z){return new(Z||ke)},ke.\u0275mod=i.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=i.\u0275\u0275defineInjector({imports:[[d.MatCommonModule],d.MatCommonModule]}),ke})()},2181:(je,_,l)=>{"use strict";l.r(_),l.d(_,{MAT_MENU_CONTENT:()=>Se,MAT_MENU_DEFAULT_OPTIONS:()=>Ye,MAT_MENU_PANEL:()=>mt,MAT_MENU_SCROLL_STRATEGY:()=>ye,MatMenu:()=>Re,MatMenuContent:()=>$e,MatMenuItem:()=>ke,MatMenuModule:()=>N,MatMenuTrigger:()=>Qe,_MatMenuBase:()=>we,_MatMenuContentBase:()=>ne,_MatMenuTriggerBase:()=>lt,fadeInItems:()=>X,matMenuAnimations:()=>Ae,transformMenu:()=>ce});var i=l(5664),d=l(3191),m=l(1159),u=l(5e3),s=l(6758),b=l(6921),T=l(6451),S=l(9646),g=l(3101),v=l(8675),A=l(3900),O=l(5698),w=l(9300),k=l(2722),U=l(4326),me=l(1777),$=l(7429),re=l(9808),Te=l(508),fe=l(1314),_e=l(925),le=l(226),Ee=l(9071);const Fe=["mat-menu-item",""];function Je(ae,Oe){1&ae&&(u.\u0275\u0275namespaceSVG(),u.\u0275\u0275elementStart(0,"svg",2),u.\u0275\u0275element(1,"polygon",3),u.\u0275\u0275elementEnd())}const ot=["*"];function q(ae,Oe){if(1&ae){const ue=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"div",0),u.\u0275\u0275listener("keydown",function(ve){return u.\u0275\u0275restoreView(ue),u.\u0275\u0275nextContext()._handleKeydown(ve)})("click",function(){return u.\u0275\u0275restoreView(ue),u.\u0275\u0275nextContext().closed.emit("click")})("@transformMenu.start",function(ve){return u.\u0275\u0275restoreView(ue),u.\u0275\u0275nextContext()._onAnimationStart(ve)})("@transformMenu.done",function(ve){return u.\u0275\u0275restoreView(ue),u.\u0275\u0275nextContext()._onAnimationDone(ve)}),u.\u0275\u0275elementStart(1,"div",1),u.\u0275\u0275projection(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()}if(2&ae){const ue=u.\u0275\u0275nextContext();u.\u0275\u0275property("id",ue.panelId)("ngClass",ue._classList)("@transformMenu",ue._panelAnimationState),u.\u0275\u0275attribute("aria-label",ue.ariaLabel||null)("aria-labelledby",ue.ariaLabelledby||null)("aria-describedby",ue.ariaDescribedby||null)}}const Ae={transformMenu:(0,me.X$)("transformMenu",[(0,me.SB)("void",(0,me.oB)({opacity:0,transform:"scale(0.8)"})),(0,me.eR)("void => enter",(0,me.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,me.oB)({opacity:1,transform:"scale(1)"}))),(0,me.eR)("* => void",(0,me.jt)("100ms 25ms linear",(0,me.oB)({opacity:0})))]),fadeInItems:(0,me.X$)("fadeInItems",[(0,me.SB)("showing",(0,me.oB)({opacity:1})),(0,me.eR)("void => *",[(0,me.oB)({opacity:0}),(0,me.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},X=Ae.fadeInItems,ce=Ae.transformMenu,Se=new u.InjectionToken("MatMenuContent");let ne=(()=>{class ae{constructor(ue,De,ve,se,be,Ge,nt){this._template=ue,this._componentFactoryResolver=De,this._appRef=ve,this._injector=se,this._viewContainerRef=be,this._document=Ge,this._changeDetectorRef=nt,this._attached=new s.x}attach(ue={}){var De;this._portal||(this._portal=new $.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new $.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const ve=this._template.elementRef.nativeElement;ve.parentNode.insertBefore(this._outlet.outletElement,ve),null===(De=this._changeDetectorRef)||void 0===De||De.markForCheck(),this._portal.attach(this._outlet,ue),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return ae.\u0275fac=function(ue){return new(ue||ae)(u.\u0275\u0275directiveInject(u.TemplateRef),u.\u0275\u0275directiveInject(u.ComponentFactoryResolver),u.\u0275\u0275directiveInject(u.ApplicationRef),u.\u0275\u0275directiveInject(u.Injector),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(re.DOCUMENT),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},ae.\u0275dir=u.\u0275\u0275defineDirective({type:ae}),ae})(),$e=(()=>{class ae extends ne{}return ae.\u0275fac=function(){let Oe;return function(De){return(Oe||(Oe=u.\u0275\u0275getInheritedFactory(ae)))(De||ae)}}(),ae.\u0275dir=u.\u0275\u0275defineDirective({type:ae,selectors:[["ng-template","matMenuContent",""]],features:[u.\u0275\u0275ProvidersFeature([{provide:Se,useExisting:ae}]),u.\u0275\u0275InheritDefinitionFeature]}),ae})();const mt=new u.InjectionToken("MAT_MENU_PANEL"),Dt=(0,Te.mixinDisableRipple)((0,Te.mixinDisabled)(class{}));let ke=(()=>{class ae extends Dt{constructor(ue,De,ve,se,be){var Ge;super(),this._elementRef=ue,this._focusMonitor=ve,this._parentMenu=se,this._changeDetectorRef=be,this.role="menuitem",this._hovered=new s.x,this._focused=new s.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(Ge=null==se?void 0:se.addItem)||void 0===Ge||Ge.call(se,this)}focus(ue,De){this._focusMonitor&&ue?this._focusMonitor.focusVia(this._getHostElement(),ue,De):this._getHostElement().focus(De),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(ue){this.disabled&&(ue.preventDefault(),ue.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var ue;const De=this._elementRef.nativeElement.cloneNode(!0),ve=De.querySelectorAll("mat-icon, .material-icons");for(let se=0;se<ve.length;se++)ve[se].remove();return(null===(ue=De.textContent)||void 0===ue?void 0:ue.trim())||""}_setHighlighted(ue){var De;this._highlighted=ue,null===(De=this._changeDetectorRef)||void 0===De||De.markForCheck()}}return ae.\u0275fac=function(ue){return new(ue||ae)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(re.DOCUMENT),u.\u0275\u0275directiveInject(i.tE),u.\u0275\u0275directiveInject(mt,8),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},ae.\u0275cmp=u.\u0275\u0275defineComponent({type:ae,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(ue,De){1&ue&&u.\u0275\u0275listener("click",function(se){return De._checkDisabled(se)})("mouseenter",function(){return De._handleMouseEnter()}),2&ue&&(u.\u0275\u0275attribute("role",De.role)("tabindex",De._getTabIndex())("aria-disabled",De.disabled.toString())("disabled",De.disabled||null),u.\u0275\u0275classProp("mat-menu-item",!0)("mat-menu-item-highlighted",De._highlighted)("mat-menu-item-submenu-trigger",De._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[u.\u0275\u0275InheritDefinitionFeature],attrs:Fe,ngContentSelectors:ot,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(ue,De){1&ue&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275projection(0),u.\u0275\u0275element(1,"div",0),u.\u0275\u0275template(2,Je,2,0,"svg",1)),2&ue&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("matRippleDisabled",De.disableRipple||De.disabled)("matRippleTrigger",De._getHostElement()),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",De._triggersSubmenu))},directives:[Te.MatRipple,re.NgIf],encapsulation:2,changeDetection:0}),ae})();const Ye=new u.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:function Z(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let pe=0,we=(()=>{class ae{constructor(ue,De,ve){this._elementRef=ue,this._ngZone=De,this._defaultOptions=ve,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new u.QueryList,this._tabSubscription=b.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 u.EventEmitter,this.close=this.closed,this.panelId="mat-menu-panel-"+pe++}get xPosition(){return this._xPosition}set xPosition(ue){this._xPosition=ue,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ue){this._yPosition=ue,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ue){this._overlapTrigger=(0,d.Ig)(ue)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ue){this._hasBackdrop=(0,d.Ig)(ue)}set panelClass(ue){const De=this._previousPanelClass;De&&De.length&&De.split(" ").forEach(ve=>{this._classList[ve]=!1}),this._previousPanelClass=ue,ue&&ue.length&&(ue.split(" ").forEach(ve=>{this._classList[ve]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ue){this.panelClass=ue}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new i.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,v.O)(this._directDescendantItems),(0,A.w)(ue=>(0,T.T)(...ue.map(De=>De._focused)))).subscribe(ue=>this._keyManager.updateActiveItem(ue))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,v.O)(this._directDescendantItems),(0,A.w)(De=>(0,T.T)(...De.map(ve=>ve._hovered))))}addItem(ue){}removeItem(ue){}_handleKeydown(ue){const De=ue.keyCode,ve=this._keyManager;switch(De){case m.hY:(0,m.Vb)(ue)||(ue.preventDefault(),this.closed.emit("keydown"));break;case m.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case m.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(De===m.LH||De===m.JH)&&ve.setFocusOrigin("keyboard"),ve.onKeydown(ue)}}focusFirstItem(ue="program"){this.lazyContent?this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(()=>this._focusFirstItem(ue)):this._focusFirstItem(ue)}_focusFirstItem(ue){const De=this._keyManager;if(De.setFocusOrigin(ue).setFirstItemActive(),!De.activeItem&&this._directDescendantItems.length){let ve=this._directDescendantItems.first._getHostElement().parentElement;for(;ve;){if("menu"===ve.getAttribute("role")){ve.focus();break}ve=ve.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ue){const De=Math.min(this._baseElevation+ue,24),ve=`${this._elevationPrefix}${De}`,se=Object.keys(this._classList).find(be=>be.startsWith(this._elevationPrefix));(!se||se===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[ve]=!0,this._previousElevation=ve)}setPositionClasses(ue=this.xPosition,De=this.yPosition){const ve=this._classList;ve["mat-menu-before"]="before"===ue,ve["mat-menu-after"]="after"===ue,ve["mat-menu-above"]="above"===De,ve["mat-menu-below"]="below"===De}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ue){this._animationDone.next(ue),this._isAnimating=!1}_onAnimationStart(ue){this._isAnimating=!0,"enter"===ue.toState&&0===this._keyManager.activeItemIndex&&(ue.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,v.O)(this._allItems)).subscribe(ue=>{this._directDescendantItems.reset(ue.filter(De=>De._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ae.\u0275fac=function(ue){return new(ue||ae)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(Ye))},ae.\u0275dir=u.\u0275\u0275defineDirective({type:ae,contentQueries:function(ue,De,ve){if(1&ue&&(u.\u0275\u0275contentQuery(ve,Se,5),u.\u0275\u0275contentQuery(ve,ke,5),u.\u0275\u0275contentQuery(ve,ke,4)),2&ue){let se;u.\u0275\u0275queryRefresh(se=u.\u0275\u0275loadQuery())&&(De.lazyContent=se.first),u.\u0275\u0275queryRefresh(se=u.\u0275\u0275loadQuery())&&(De._allItems=se),u.\u0275\u0275queryRefresh(se=u.\u0275\u0275loadQuery())&&(De.items=se)}},viewQuery:function(ue,De){if(1&ue&&u.\u0275\u0275viewQuery(u.TemplateRef,5),2&ue){let ve;u.\u0275\u0275queryRefresh(ve=u.\u0275\u0275loadQuery())&&(De.templateRef=ve.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 we{constructor(ue,De,ve){super(ue,De,ve),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ae.\u0275fac=function(ue){return new(ue||ae)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(Ye))},ae.\u0275cmp=u.\u0275\u0275defineComponent({type:ae,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ue,De){2&ue&&u.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[u.\u0275\u0275ProvidersFeature([{provide:mt,useExisting:ae}]),u.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:ot,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(ue,De){1&ue&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275template(0,q,3,6,"ng-template"))},directives:[re.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:[Ae.transformMenu,Ae.fadeInItems]},changeDetection:0}),ae})();const ye=new u.InjectionToken("mat-menu-scroll-strategy"),dt={provide:ye,deps:[fe.aV],useFactory:function Xe(ae){return()=>ae.scrollStrategies.reposition()}},Ot=(0,_e.i$)({passive:!0});let lt=(()=>{class ae{constructor(ue,De,ve,se,be,Ge,nt,ht){this._overlay=ue,this._element=De,this._viewContainerRef=ve,this._menuItemInstance=Ge,this._dir=nt,this._focusMonitor=ht,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=b.w0.EMPTY,this._hoverSubscription=b.w0.EMPTY,this._menuCloseSubscription=b.w0.EMPTY,this._handleTouchStart=ft=>{(0,i.yG)(ft)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new u.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new u.EventEmitter,this.onMenuClose=this.menuClosed,this._scrollStrategy=se,this._parentMaterialMenu=be instanceof we?be:void 0,De.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ot),Ge&&(Ge._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ue){this.menu=ue}get menu(){return this._menu}set menu(ue){ue!==this._menu&&(this._menu=ue,this._menuCloseSubscription.unsubscribe(),ue&&(this._menuCloseSubscription=ue.close.subscribe(De=>{this._destroyMenu(De),("click"===De||"tab"===De)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(De)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ot),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const ue=this._createOverlay(),De=ue.getConfig();this._setPosition(De.positionStrategy),De.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,ue.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof we&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(ue,De){this._focusMonitor&&ue?this._focusMonitor.focusVia(this._element,ue,De):this._element.nativeElement.focus(De)}updatePosition(){var ue;null===(ue=this._overlayRef)||void 0===ue||ue.updatePosition()}_destroyMenu(ue){if(!this._overlayRef||!this.menuOpen)return;const De=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ue||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,De instanceof we?(De._resetAnimation(),De.lazyContent?De._animationDone.pipe((0,w.h)(ve=>"void"===ve.toState),(0,O.q)(1),(0,k.R)(De.lazyContent._attached)).subscribe({next:()=>De.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),De.lazyContent&&De.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let ue=0,De=this.menu.parentMenu;for(;De;)ue++,De=De.parentMenu;this.menu.setElevation(ue)}}_setIsMenuOpen(ue){this._menuOpen=ue,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ue)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const ue=this._getOverlayConfig();this._subscribeToPositions(ue.positionStrategy),this._overlayRef=this._overlay.create(ue),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new fe.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(ue){this.menu.setPositionClasses&&ue.positionChanges.subscribe(De=>{this.menu.setPositionClasses("start"===De.connectionPair.overlayX?"after":"before","top"===De.connectionPair.overlayY?"below":"above")})}_setPosition(ue){let[De,ve]="before"===this.menu.xPosition?["end","start"]:["start","end"],[se,be]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Ge,nt]=[se,be],[ht,ft]=[De,ve],wt=0;this.triggersSubmenu()?(ft=De="before"===this.menu.xPosition?"start":"end",ve=ht="end"===De?"start":"end",wt="bottom"===se?8:-8):this.menu.overlapTrigger||(Ge="top"===se?"bottom":"top",nt="top"===be?"bottom":"top"),ue.withPositions([{originX:De,originY:Ge,overlayX:ht,overlayY:se,offsetY:wt},{originX:ve,originY:Ge,overlayX:ft,overlayY:se,offsetY:wt},{originX:De,originY:nt,overlayX:ht,overlayY:be,offsetY:-wt},{originX:ve,originY:nt,overlayX:ft,overlayY:be,offsetY:-wt}])}_menuClosingActions(){const ue=this._overlayRef.backdropClick(),De=this._overlayRef.detachments(),ve=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,S.of)(),se=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,w.h)(be=>be!==this._menuItemInstance),(0,w.h)(()=>this._menuOpen)):(0,S.of)();return(0,T.T)(ue,ve,se,De)}_handleMousedown(ue){(0,i.X6)(ue)||(this._openedBy=0===ue.button?"mouse":void 0,this.triggersSubmenu()&&ue.preventDefault())}_handleKeydown(ue){const De=ue.keyCode;(De===m.K5||De===m.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(De===m.SV&&"ltr"===this.dir||De===m.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(ue){this.triggersSubmenu()?(ue.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,w.h)(ue=>ue===this._menuItemInstance&&!ue.disabled),(0,U.g)(0,g.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof we&&this.menu._isAnimating?this.menu._animationDone.pipe((0,O.q)(1),(0,U.g)(0,g.E),(0,k.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new $.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return ae.\u0275fac=function(ue){return new(ue||ae)(u.\u0275\u0275directiveInject(fe.aV),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(ye),u.\u0275\u0275directiveInject(mt,8),u.\u0275\u0275directiveInject(ke,10),u.\u0275\u0275directiveInject(le.Is,8),u.\u0275\u0275directiveInject(i.tE))},ae.\u0275dir=u.\u0275\u0275defineDirective({type:ae,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(ue,De){1&ue&&u.\u0275\u0275listener("click",function(se){return De._handleClick(se)})("mousedown",function(se){return De._handleMousedown(se)})("keydown",function(se){return De._handleKeydown(se)}),2&ue&&u.\u0275\u0275attribute("aria-expanded",De.menuOpen||null)("aria-controls",De.menuOpen?De.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})(),Qe=(()=>{class ae extends lt{}return ae.\u0275fac=function(){let Oe;return function(De){return(Oe||(Oe=u.\u0275\u0275getInheritedFactory(ae)))(De||ae)}}(),ae.\u0275dir=u.\u0275\u0275defineDirective({type:ae,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[u.\u0275\u0275InheritDefinitionFeature]}),ae})(),N=(()=>{class ae{}return ae.\u0275fac=function(ue){return new(ue||ae)},ae.\u0275mod=u.\u0275\u0275defineNgModule({type:ae}),ae.\u0275inj=u.\u0275\u0275defineInjector({providers:[dt],imports:[[re.CommonModule,Te.MatCommonModule,Te.MatRippleModule,fe.U8],Ee.ZD,Te.MatCommonModule]}),ae})()},2075:(je,_,l)=>{"use strict";l.r(_),l.d(_,{MatCell:()=>Ve,MatCellDef:()=>K,MatColumnDef:()=>Wt,MatFooterCell:()=>Le,MatFooterCellDef:()=>Et,MatFooterRow:()=>kt,MatFooterRowDef:()=>He,MatHeaderCell:()=>pn,MatHeaderCellDef:()=>et,MatHeaderRow:()=>Lt,MatHeaderRowDef:()=>he,MatNoDataRow:()=>Dn,MatRecycleRows:()=>C,MatRow:()=>hn,MatRowDef:()=>ut,MatTable:()=>D,MatTableDataSource:()=>Bn,MatTableModule:()=>Jn,MatTextColumn:()=>$n,_MatTableDataSource:()=>Wn});var i=l(5e3),d=l(3191),m=l(449),u=l(9808),s=l(6758),b=l(188),T=l(1135),S=l(5191),g=l(9646),v=l(2722),A=l(5698),O=l(226),w=l(925),k=l(9071);const U=[[["caption"]],[["colgroup"],["col"]]],me=["caption","colgroup, col"];function $(V,Ie){if(1&V&&(i.\u0275\u0275elementStart(0,"th",3),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&V){const z=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",z.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",z.headerText," ")}}function re(V,Ie){if(1&V&&(i.\u0275\u0275elementStart(0,"td",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&V){const z=Ie.$implicit,Pe=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",Pe.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Pe.dataAccessor(z,Pe.name)," ")}}function Te(V){return class extends V{constructor(...Ie){super(...Ie),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Ie){const z=this._sticky;this._sticky=(0,d.Ig)(Ie),this._hasStickyChanged=z!==this._sticky}hasStickyChanged(){const Ie=this._hasStickyChanged;return this._hasStickyChanged=!1,Ie}resetStickyChanged(){this._hasStickyChanged=!1}}}const fe=new i.InjectionToken("CDK_TABLE"),_e=new i.InjectionToken("text-column-options");let le=(()=>{class V{constructor(z){this.template=z}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(i.TemplateRef))},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","cdkCellDef",""]]}),V})(),Ee=(()=>{class V{constructor(z){this.template=z}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(i.TemplateRef))},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","cdkHeaderCellDef",""]]}),V})(),Fe=(()=>{class V{constructor(z){this.template=z}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(i.TemplateRef))},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","cdkFooterCellDef",""]]}),V})();class Je{}const ot=Te(Je);let q=(()=>{class V extends ot{constructor(z){super(),this._table=z,this._stickyEnd=!1}get name(){return this._name}set name(z){this._setNameInput(z)}get stickyEnd(){return this._stickyEnd}set stickyEnd(z){const Pe=this._stickyEnd;this._stickyEnd=(0,d.Ig)(z),this._hasStickyChanged=Pe!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(z){z&&(this._name=z,this.cssClassFriendlyName=z.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(fe,8))},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","cdkColumnDef",""]],contentQueries:function(z,Pe,qe){if(1&z&&(i.\u0275\u0275contentQuery(qe,le,5),i.\u0275\u0275contentQuery(qe,Ee,5),i.\u0275\u0275contentQuery(qe,Fe,5)),2&z){let st;i.\u0275\u0275queryRefresh(st=i.\u0275\u0275loadQuery())&&(Pe.cell=st.first),i.\u0275\u0275queryRefresh(st=i.\u0275\u0275loadQuery())&&(Pe.headerCell=st.first),i.\u0275\u0275queryRefresh(st=i.\u0275\u0275loadQuery())&&(Pe.footerCell=st.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i.\u0275\u0275ProvidersFeature([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:V}]),i.\u0275\u0275InheritDefinitionFeature]}),V})();class Ae{constructor(Ie,z){z.nativeElement.classList.add(...Ie._columnCssClassName)}}let X=(()=>{class V extends Ae{constructor(z,Pe){super(z,Pe)}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(q),i.\u0275\u0275directiveInject(i.ElementRef))},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),V})(),ce=(()=>{class V extends Ae{constructor(z,Pe){var qe;if(super(z,Pe),1===(null===(qe=z._table)||void 0===qe?void 0:qe._elementRef.nativeElement.nodeType)){const st=z._table._elementRef.nativeElement.getAttribute("role");Pe.nativeElement.setAttribute("role","grid"===st||"treegrid"===st?"gridcell":"cell")}}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(q),i.\u0275\u0275directiveInject(i.ElementRef))},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),V})(),Se=(()=>{class V extends Ae{constructor(z,Pe){var qe;if(super(z,Pe),1===(null===(qe=z._table)||void 0===qe?void 0:qe._elementRef.nativeElement.nodeType)){const st=z._table._elementRef.nativeElement.getAttribute("role");Pe.nativeElement.setAttribute("role","grid"===st||"treegrid"===st?"gridcell":"cell")}}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(q),i.\u0275\u0275directiveInject(i.ElementRef))},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),V})();class ne{constructor(){this.tasks=[],this.endTasks=[]}}const $e=new i.InjectionToken("_COALESCED_STYLE_SCHEDULER");let ge=(()=>{class V{constructor(z){this._ngZone=z,this._currentSchedule=null,this._destroyed=new s.x}schedule(z){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(z)}scheduleEnd(z){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(z)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ne,this._getScheduleObservable().pipe((0,v.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const z=this._currentSchedule;this._currentSchedule=new ne;for(const Pe of z.tasks)Pe();for(const Pe of z.endTasks)Pe()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,b.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,A.q)(1))}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275inject(i.NgZone))},V.\u0275prov=i.\u0275\u0275defineInjectable({token:V,factory:V.\u0275fac}),V})(),Me=(()=>{class V{constructor(z,Pe){this.template=z,this._differs=Pe}ngOnChanges(z){if(!this._columnsDiffer){const Pe=z.columns&&z.columns.currentValue||[];this._columnsDiffer=this._differs.find(Pe).create(),this._columnsDiffer.diff(Pe)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(z){return this instanceof Dt?z.headerCell.template:this instanceof Z?z.footerCell.template:z.cell.template}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers))},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,features:[i.\u0275\u0275NgOnChangesFeature]}),V})();class Ke extends Me{}const mt=Te(Ke);let Dt=(()=>{class V extends mt{constructor(z,Pe,qe){super(z,Pe),this._table=qe}ngOnChanges(z){super.ngOnChanges(z)}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(fe,8))},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),V})();class ke extends Me{}const Ye=Te(ke);let Z=(()=>{class V extends Ye{constructor(z,Pe,qe){super(z,Pe),this._table=qe}ngOnChanges(z){super.ngOnChanges(z)}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(fe,8))},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),V})(),pe=(()=>{class V extends Me{constructor(z,Pe,qe){super(z,Pe),this._table=qe}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(fe,8))},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.\u0275\u0275InheritDefinitionFeature]}),V})(),we=(()=>{class V{constructor(z){this._viewContainer=z,V.mostRecentCellOutlet=this}ngOnDestroy(){V.mostRecentCellOutlet===this&&(V.mostRecentCellOutlet=null)}}return V.mostRecentCellOutlet=null,V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","cdkCellOutlet",""]]}),V})(),Re=(()=>{class V{}return V.\u0275fac=function(z){return new(z||V)},V.\u0275cmp=i.\u0275\u0275defineComponent({type:V,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(z,Pe){1&z&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),V})(),ye=(()=>{class V{}return V.\u0275fac=function(z){return new(z||V)},V.\u0275cmp=i.\u0275\u0275defineComponent({type:V,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(z,Pe){1&z&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),V})(),Xe=(()=>{class V{}return V.\u0275fac=function(z){return new(z||V)},V.\u0275cmp=i.\u0275\u0275defineComponent({type:V,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(z,Pe){1&z&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),V})(),dt=(()=>{class V{constructor(z){this.templateRef=z,this._contentClassName="cdk-no-data-row"}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(i.TemplateRef))},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["ng-template","cdkNoDataRow",""]]}),V})();const bt=["top","bottom","left","right"];class Ot{constructor(Ie,z,Pe,qe,st=!0,St=!0,Nt){this._isNativeHtmlTable=Ie,this._stickCellCss=z,this.direction=Pe,this._coalescedStyleScheduler=qe,this._isBrowser=st,this._needsPositionStickyOnElement=St,this._positionListener=Nt,this._cachedCellWidths=[],this._borderCellCss={top:`${z}-border-elem-top`,bottom:`${z}-border-elem-bottom`,left:`${z}-border-elem-left`,right:`${z}-border-elem-right`}}clearStickyPositioning(Ie,z){const Pe=[];for(const qe of Ie)if(qe.nodeType===qe.ELEMENT_NODE){Pe.push(qe);for(let st=0;st<qe.children.length;st++)Pe.push(qe.children[st])}this._coalescedStyleScheduler.schedule(()=>{for(const qe of Pe)this._removeStickyStyle(qe,z)})}updateStickyColumns(Ie,z,Pe,qe=!0){if(!Ie.length||!this._isBrowser||!z.some(ln=>ln)&&!Pe.some(ln=>ln))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const st=Ie[0],St=st.children.length,Nt=this._getCellWidths(st,qe),Xt=this._getStickyStartColumnPositions(Nt,z),vn=this._getStickyEndColumnPositions(Nt,Pe),jt=z.lastIndexOf(!0),On=Pe.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const ln="rtl"===this.direction,Hn=ln?"right":"left",Un=ln?"left":"right";for(const Sn of Ie)for(let kn=0;kn<St;kn++){const ai=Sn.children[kn];z[kn]&&this._addStickyStyle(ai,Hn,Xt[kn],kn===jt),Pe[kn]&&this._addStickyStyle(ai,Un,vn[kn],kn===On)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===jt?[]:Nt.slice(0,jt+1).map((Sn,kn)=>z[kn]?Sn:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===On?[]:Nt.slice(On).map((Sn,kn)=>Pe[kn+On]?Sn:null).reverse()}))})}stickRows(Ie,z,Pe){if(!this._isBrowser)return;const qe="bottom"===Pe?Ie.slice().reverse():Ie,st="bottom"===Pe?z.slice().reverse():z,St=[],Nt=[],Xt=[];for(let jt=0,On=0;jt<qe.length;jt++){if(!st[jt])continue;St[jt]=On;const ln=qe[jt];Xt[jt]=this._isNativeHtmlTable?Array.from(ln.children):[ln];const Hn=ln.getBoundingClientRect().height;On+=Hn,Nt[jt]=Hn}const vn=st.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var jt,On;for(let ln=0;ln<qe.length;ln++){if(!st[ln])continue;const Hn=St[ln],Un=ln===vn;for(const Sn of Xt[ln])this._addStickyStyle(Sn,Pe,Hn,Un)}"top"===Pe?null===(jt=this._positionListener)||void 0===jt||jt.stickyHeaderRowsUpdated({sizes:Nt,offsets:St,elements:Xt}):null===(On=this._positionListener)||void 0===On||On.stickyFooterRowsUpdated({sizes:Nt,offsets:St,elements:Xt})})}updateStickyFooterContainer(Ie,z){if(!this._isNativeHtmlTable)return;const Pe=Ie.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{z.some(qe=>!qe)?this._removeStickyStyle(Pe,["bottom"]):this._addStickyStyle(Pe,"bottom",0,!1)})}_removeStickyStyle(Ie,z){for(const qe of z)Ie.style[qe]="",Ie.classList.remove(this._borderCellCss[qe]);bt.some(qe=>-1===z.indexOf(qe)&&Ie.style[qe])?Ie.style.zIndex=this._getCalculatedZIndex(Ie):(Ie.style.zIndex="",this._needsPositionStickyOnElement&&(Ie.style.position=""),Ie.classList.remove(this._stickCellCss))}_addStickyStyle(Ie,z,Pe,qe){Ie.classList.add(this._stickCellCss),qe&&Ie.classList.add(this._borderCellCss[z]),Ie.style[z]=`${Pe}px`,Ie.style.zIndex=this._getCalculatedZIndex(Ie),this._needsPositionStickyOnElement&&(Ie.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Ie){const z={top:100,bottom:10,left:1,right:1};let Pe=0;for(const qe of bt)Ie.style[qe]&&(Pe+=z[qe]);return Pe?`${Pe}`:""}_getCellWidths(Ie,z=!0){if(!z&&this._cachedCellWidths.length)return this._cachedCellWidths;const Pe=[],qe=Ie.children;for(let st=0;st<qe.length;st++)Pe.push(qe[st].getBoundingClientRect().width);return this._cachedCellWidths=Pe,Pe}_getStickyStartColumnPositions(Ie,z){const Pe=[];let qe=0;for(let st=0;st<Ie.length;st++)z[st]&&(Pe[st]=qe,qe+=Ie[st]);return Pe}_getStickyEndColumnPositions(Ie,z){const Pe=[];let qe=0;for(let st=Ie.length;st>0;st--)z[st]&&(Pe[st]=qe,qe+=Ie[st]);return Pe}}const se=new i.InjectionToken("CDK_SPL");let Ge=(()=>{class V{constructor(z,Pe){this.viewContainer=z,this.elementRef=Pe}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","rowOutlet",""]]}),V})(),nt=(()=>{class V{constructor(z,Pe){this.viewContainer=z,this.elementRef=Pe}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","headerRowOutlet",""]]}),V})(),ht=(()=>{class V{constructor(z,Pe){this.viewContainer=z,this.elementRef=Pe}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","footerRowOutlet",""]]}),V})(),ft=(()=>{class V{constructor(z,Pe){this.viewContainer=z,this.elementRef=Pe}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","noDataRowOutlet",""]]}),V})(),en=(()=>{class V{constructor(z,Pe,qe,st,St,Nt,Xt,vn,jt,On,ln,Hn){this._differs=z,this._changeDetectorRef=Pe,this._elementRef=qe,this._dir=St,this._platform=Xt,this._viewRepeater=vn,this._coalescedStyleScheduler=jt,this._viewportRuler=On,this._stickyPositioningListener=ln,this._ngZone=Hn,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 T.X({start:0,end:Number.MAX_VALUE}),st||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Nt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(z){this._trackByFn=z}get dataSource(){return this._dataSource}set dataSource(z){this._dataSource!==z&&this._switchDataSource(z)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(z){this._multiTemplateDataRows=(0,d.Ig)(z),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(z){this._fixedLayout=(0,d.Ig)(z),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((z,Pe)=>this.trackBy?this.trackBy(Pe.dataIndex,Pe.data):Pe),this._viewportRuler.change().pipe((0,v.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Pe=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Pe,this._forceRecalculateCellWidths=Pe,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.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,m.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const z=this._dataDiffer.diff(this._renderRows);if(!z)return this._updateNoDataRow(),void this.contentChanged.next();const Pe=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(z,Pe,(qe,st,St)=>this._getEmbeddedViewArgs(qe.item,St),qe=>qe.item.data,qe=>{1===qe.operation&&qe.context&&this._renderCellTemplateForItem(qe.record.item.rowDef,qe.context)}),this._updateRowIndexContext(),z.forEachIdentityChange(qe=>{Pe.get(qe.currentIndex).context.$implicit=qe.item.data}),this._updateNoDataRow(),this._ngZone&&i.NgZone.isInAngularZone()?this._ngZone.onStable.pipe((0,A.q)(1),(0,v.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(z){this._customColumnDefs.add(z)}removeColumnDef(z){this._customColumnDefs.delete(z)}addRowDef(z){this._customRowDefs.add(z)}removeRowDef(z){this._customRowDefs.delete(z)}addHeaderRowDef(z){this._customHeaderRowDefs.add(z),this._headerRowDefChanged=!0}removeHeaderRowDef(z){this._customHeaderRowDefs.delete(z),this._headerRowDefChanged=!0}addFooterRowDef(z){this._customFooterRowDefs.add(z),this._footerRowDefChanged=!0}removeFooterRowDef(z){this._customFooterRowDefs.delete(z),this._footerRowDefChanged=!0}setNoDataRow(z){this._customNoDataRow=z}updateStickyHeaderRowStyles(){const z=this._getRenderedRows(this._headerRowOutlet),qe=this._elementRef.nativeElement.querySelector("thead");qe&&(qe.style.display=z.length?"":"none");const st=this._headerRowDefs.map(St=>St.sticky);this._stickyStyler.clearStickyPositioning(z,["top"]),this._stickyStyler.stickRows(z,st,"top"),this._headerRowDefs.forEach(St=>St.resetStickyChanged())}updateStickyFooterRowStyles(){const z=this._getRenderedRows(this._footerRowOutlet),qe=this._elementRef.nativeElement.querySelector("tfoot");qe&&(qe.style.display=z.length?"":"none");const st=this._footerRowDefs.map(St=>St.sticky);this._stickyStyler.clearStickyPositioning(z,["bottom"]),this._stickyStyler.stickRows(z,st,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,st),this._footerRowDefs.forEach(St=>St.resetStickyChanged())}updateStickyColumnStyles(){const z=this._getRenderedRows(this._headerRowOutlet),Pe=this._getRenderedRows(this._rowOutlet),qe=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...z,...Pe,...qe],["left","right"]),this._stickyColumnStylesNeedReset=!1),z.forEach((st,St)=>{this._addStickyColumnStyles([st],this._headerRowDefs[St])}),this._rowDefs.forEach(st=>{const St=[];for(let Nt=0;Nt<Pe.length;Nt++)this._renderRows[Nt].rowDef===st&&St.push(Pe[Nt]);this._addStickyColumnStyles(St,st)}),qe.forEach((st,St)=>{this._addStickyColumnStyles([st],this._footerRowDefs[St])}),Array.from(this._columnDefsByName.values()).forEach(st=>st.resetStickyChanged())}_getAllRenderRows(){const z=[],Pe=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let qe=0;qe<this._data.length;qe++){let st=this._data[qe];const St=this._getRenderRowsForData(st,qe,Pe.get(st));this._cachedRenderRowsMap.has(st)||this._cachedRenderRowsMap.set(st,new WeakMap);for(let Nt=0;Nt<St.length;Nt++){let Xt=St[Nt];const vn=this._cachedRenderRowsMap.get(Xt.data);vn.has(Xt.rowDef)?vn.get(Xt.rowDef).push(Xt):vn.set(Xt.rowDef,[Xt]),z.push(Xt)}}return z}_getRenderRowsForData(z,Pe,qe){return this._getRowDefs(z,Pe).map(St=>{const Nt=qe&&qe.has(St)?qe.get(St):[];if(Nt.length){const Xt=Nt.shift();return Xt.dataIndex=Pe,Xt}return{data:z,rowDef:St,dataIndex:Pe}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Bt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Pe=>{this._columnDefsByName.has(Pe.name),this._columnDefsByName.set(Pe.name,Pe)})}_cacheRowDefs(){this._headerRowDefs=Bt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Bt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Bt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const z=this._rowDefs.filter(Pe=>!Pe.when);this._defaultRowDef=z[0]}_renderUpdatedColumns(){const z=(St,Nt)=>St||!!Nt.getColumnsDiff(),Pe=this._rowDefs.reduce(z,!1);Pe&&this._forceRenderDataRows();const qe=this._headerRowDefs.reduce(z,!1);qe&&this._forceRenderHeaderRows();const st=this._footerRowDefs.reduce(z,!1);return st&&this._forceRenderFooterRows(),Pe||qe||st}_switchDataSource(z){this._data=[],(0,m.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),z||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=z}_observeRenderChanges(){if(!this.dataSource)return;let z;(0,m.Z9)(this.dataSource)?z=this.dataSource.connect(this):(0,S.b)(this.dataSource)?z=this.dataSource:Array.isArray(this.dataSource)&&(z=(0,g.of)(this.dataSource)),this._renderChangeSubscription=z.pipe((0,v.R)(this._onDestroy)).subscribe(Pe=>{this._data=Pe||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((z,Pe)=>this._renderRow(this._headerRowOutlet,z,Pe)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((z,Pe)=>this._renderRow(this._footerRowOutlet,z,Pe)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(z,Pe){const qe=Array.from(Pe.columns||[]).map(Nt=>this._columnDefsByName.get(Nt)),st=qe.map(Nt=>Nt.sticky),St=qe.map(Nt=>Nt.stickyEnd);this._stickyStyler.updateStickyColumns(z,st,St,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(z){const Pe=[];for(let qe=0;qe<z.viewContainer.length;qe++){const st=z.viewContainer.get(qe);Pe.push(st.rootNodes[0])}return Pe}_getRowDefs(z,Pe){if(1==this._rowDefs.length)return[this._rowDefs[0]];let qe=[];if(this.multiTemplateDataRows)qe=this._rowDefs.filter(st=>!st.when||st.when(Pe,z));else{let st=this._rowDefs.find(St=>St.when&&St.when(Pe,z))||this._defaultRowDef;st&&qe.push(st)}return qe}_getEmbeddedViewArgs(z,Pe){return{templateRef:z.rowDef.template,context:{$implicit:z.data},index:Pe}}_renderRow(z,Pe,qe,st={}){const St=z.viewContainer.createEmbeddedView(Pe.template,st,qe);return this._renderCellTemplateForItem(Pe,st),St}_renderCellTemplateForItem(z,Pe){for(let qe of this._getCellTemplates(z))we.mostRecentCellOutlet&&we.mostRecentCellOutlet._viewContainer.createEmbeddedView(qe,Pe);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const z=this._rowOutlet.viewContainer;for(let Pe=0,qe=z.length;Pe<qe;Pe++){const St=z.get(Pe).context;St.count=qe,St.first=0===Pe,St.last=Pe===qe-1,St.even=Pe%2==0,St.odd=!St.even,this.multiTemplateDataRows?(St.dataIndex=this._renderRows[Pe].dataIndex,St.renderIndex=Pe):St.index=this._renderRows[Pe].dataIndex}}_getCellTemplates(z){return z&&z.columns?Array.from(z.columns,Pe=>{const qe=this._columnDefsByName.get(Pe);return z.extractCellTemplate(qe)}):[]}_applyNativeTableSections(){const z=this._document.createDocumentFragment(),Pe=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const qe of Pe){const st=this._document.createElement(qe.tag);st.setAttribute("role","rowgroup");for(const St of qe.outlets)st.appendChild(St.elementRef.nativeElement);z.appendChild(st)}this._elementRef.nativeElement.appendChild(z)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const z=(Pe,qe)=>Pe||qe.hasStickyChanged();this._headerRowDefs.reduce(z,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(z,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(z,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ot(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,g.of)()).pipe((0,v.R)(this._onDestroy)).subscribe(Pe=>{this._stickyStyler.direction=Pe,this.updateStickyColumnStyles()})}_getOwnDefs(z){return z.filter(Pe=>!Pe._table||Pe._table===this)}_updateNoDataRow(){const z=this._customNoDataRow||this._noDataRow;if(!z)return;const Pe=0===this._rowOutlet.viewContainer.length;if(Pe===this._isShowingNoDataRow)return;const qe=this._noDataRowOutlet.viewContainer;if(Pe){const st=qe.createEmbeddedView(z.templateRef),St=st.rootNodes[0];1===st.rootNodes.length&&(null==St?void 0:St.nodeType)===this._document.ELEMENT_NODE&&(St.setAttribute("role","row"),St.classList.add(z._contentClassName))}else qe.clear();this._isShowingNoDataRow=Pe}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275injectAttribute("role"),i.\u0275\u0275directiveInject(O.Is,8),i.\u0275\u0275directiveInject(u.DOCUMENT),i.\u0275\u0275directiveInject(w.t4),i.\u0275\u0275directiveInject(m.k),i.\u0275\u0275directiveInject($e),i.\u0275\u0275directiveInject(k.rL),i.\u0275\u0275directiveInject(se,12),i.\u0275\u0275directiveInject(i.NgZone,8))},V.\u0275cmp=i.\u0275\u0275defineComponent({type:V,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(z,Pe,qe){if(1&z&&(i.\u0275\u0275contentQuery(qe,dt,5),i.\u0275\u0275contentQuery(qe,q,5),i.\u0275\u0275contentQuery(qe,pe,5),i.\u0275\u0275contentQuery(qe,Dt,5),i.\u0275\u0275contentQuery(qe,Z,5)),2&z){let st;i.\u0275\u0275queryRefresh(st=i.\u0275\u0275loadQuery())&&(Pe._noDataRow=st.first),i.\u0275\u0275queryRefresh(st=i.\u0275\u0275loadQuery())&&(Pe._contentColumnDefs=st),i.\u0275\u0275queryRefresh(st=i.\u0275\u0275loadQuery())&&(Pe._contentRowDefs=st),i.\u0275\u0275queryRefresh(st=i.\u0275\u0275loadQuery())&&(Pe._contentHeaderRowDefs=st),i.\u0275\u0275queryRefresh(st=i.\u0275\u0275loadQuery())&&(Pe._contentFooterRowDefs=st)}},viewQuery:function(z,Pe){if(1&z&&(i.\u0275\u0275viewQuery(Ge,7),i.\u0275\u0275viewQuery(nt,7),i.\u0275\u0275viewQuery(ht,7),i.\u0275\u0275viewQuery(ft,7)),2&z){let qe;i.\u0275\u0275queryRefresh(qe=i.\u0275\u0275loadQuery())&&(Pe._rowOutlet=qe.first),i.\u0275\u0275queryRefresh(qe=i.\u0275\u0275loadQuery())&&(Pe._headerRowOutlet=qe.first),i.\u0275\u0275queryRefresh(qe=i.\u0275\u0275loadQuery())&&(Pe._footerRowOutlet=qe.first),i.\u0275\u0275queryRefresh(qe=i.\u0275\u0275loadQuery())&&(Pe._noDataRowOutlet=qe.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(z,Pe){2&z&&i.\u0275\u0275classProp("cdk-table-fixed-layout",Pe.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i.\u0275\u0275ProvidersFeature([{provide:fe,useExisting:V},{provide:m.k,useClass:m.yy},{provide:$e,useClass:ge},{provide:se,useValue:null}])],ngContentSelectors:me,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(z,Pe){1&z&&(i.\u0275\u0275projectionDef(U),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:[nt,Ge,ft,ht],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),V})();function Bt(V,Ie){return V.concat(Array.from(Ie))}let En=(()=>{class V{constructor(z,Pe){this._table=z,this._options=Pe,this.justify="start",this._options=Pe||{}}get name(){return this._name}set name(z){this._name=z,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((z,Pe)=>z[Pe])),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 z=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(z):z[0].toUpperCase()+z.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return V.\u0275fac=function(z){return new(z||V)(i.\u0275\u0275directiveInject(en,8),i.\u0275\u0275directiveInject(_e,8))},V.\u0275cmp=i.\u0275\u0275defineComponent({type:V,selectors:[["cdk-text-column"]],viewQuery:function(z,Pe){if(1&z&&(i.\u0275\u0275viewQuery(q,7),i.\u0275\u0275viewQuery(le,7),i.\u0275\u0275viewQuery(Ee,7)),2&z){let qe;i.\u0275\u0275queryRefresh(qe=i.\u0275\u0275loadQuery())&&(Pe.columnDef=qe.first),i.\u0275\u0275queryRefresh(qe=i.\u0275\u0275loadQuery())&&(Pe.cell=qe.first),i.\u0275\u0275queryRefresh(qe=i.\u0275\u0275loadQuery())&&(Pe.headerCell=qe.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(z,Pe){1&z&&(i.\u0275\u0275elementContainerStart(0,0),i.\u0275\u0275template(1,$,2,3,"th",1),i.\u0275\u0275template(2,re,2,3,"td",2),i.\u0275\u0275elementContainerEnd())},directives:[q,Ee,le,X,Se],encapsulation:2}),V})(),zt=(()=>{class V{}return V.\u0275fac=function(z){return new(z||V)},V.\u0275mod=i.\u0275\u0275defineNgModule({type:V}),V.\u0275inj=i.\u0275\u0275defineInjector({imports:[[k.Cl]]}),V})();var Mt=l(508),bn=l(6451),Qt=l(9841),on=l(4004);const yn=[[["caption"]],[["colgroup"],["col"]]],oe=["caption","colgroup, col"];function W(V,Ie){if(1&V&&(i.\u0275\u0275elementStart(0,"th",3),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&V){const z=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",z.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",z.headerText," ")}}function p(V,Ie){if(1&V&&(i.\u0275\u0275elementStart(0,"td",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&V){const z=Ie.$implicit,Pe=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",Pe.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Pe.dataAccessor(z,Pe.name)," ")}}let C=(()=>{class V{}return V.\u0275fac=function(z){return new(z||V)},V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:m.k,useClass:m.eX}])]}),V})(),D=(()=>{class V extends en{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return V.\u0275fac=function(){let Ie;return function(Pe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(V)))(Pe||V)}}(),V.\u0275cmp=i.\u0275\u0275defineComponent({type:V,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(z,Pe){2&z&&i.\u0275\u0275classProp("mat-table-fixed-layout",Pe.fixedLayout)},exportAs:["matTable"],features:[i.\u0275\u0275ProvidersFeature([{provide:m.k,useClass:m.yy},{provide:en,useExisting:V},{provide:fe,useExisting:V},{provide:$e,useClass:ge},{provide:se,useValue:null}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:oe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(z,Pe){1&z&&(i.\u0275\u0275projectionDef(yn),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:[nt,Ge,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}),V})(),K=(()=>{class V extends le{}return V.\u0275fac=function(){let Ie;return function(Pe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(V)))(Pe||V)}}(),V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","matCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:le,useExisting:V}]),i.\u0275\u0275InheritDefinitionFeature]}),V})(),et=(()=>{class V extends Ee{}return V.\u0275fac=function(){let Ie;return function(Pe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(V)))(Pe||V)}}(),V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","matHeaderCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:Ee,useExisting:V}]),i.\u0275\u0275InheritDefinitionFeature]}),V})(),Et=(()=>{class V extends Fe{}return V.\u0275fac=function(){let Ie;return function(Pe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(V)))(Pe||V)}}(),V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","matFooterCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:Fe,useExisting:V}]),i.\u0275\u0275InheritDefinitionFeature]}),V})(),Wt=(()=>{class V extends q{get name(){return this._name}set name(z){this._setNameInput(z)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return V.\u0275fac=function(){let Ie;return function(Pe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(V)))(Pe||V)}}(),V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i.\u0275\u0275ProvidersFeature([{provide:q,useExisting:V},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:V}]),i.\u0275\u0275InheritDefinitionFeature]}),V})(),pn=(()=>{class V extends X{}return V.\u0275fac=function(){let Ie;return function(Pe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(V)))(Pe||V)}}(),V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),V})(),Le=(()=>{class V extends ce{}return V.\u0275fac=function(){let Ie;return function(Pe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(V)))(Pe||V)}}(),V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),V})(),Ve=(()=>{class V extends Se{}return V.\u0275fac=function(){let Ie;return function(Pe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(V)))(Pe||V)}}(),V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),V})(),he=(()=>{class V extends Dt{}return V.\u0275fac=function(){let Ie;return function(Pe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(V)))(Pe||V)}}(),V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i.\u0275\u0275ProvidersFeature([{provide:Dt,useExisting:V}]),i.\u0275\u0275InheritDefinitionFeature]}),V})(),He=(()=>{class V extends Z{}return V.\u0275fac=function(){let Ie;return function(Pe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(V)))(Pe||V)}}(),V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[i.\u0275\u0275ProvidersFeature([{provide:Z,useExisting:V}]),i.\u0275\u0275InheritDefinitionFeature]}),V})(),ut=(()=>{class V extends pe{}return V.\u0275fac=function(){let Ie;return function(Pe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(V)))(Pe||V)}}(),V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i.\u0275\u0275ProvidersFeature([{provide:pe,useExisting:V}]),i.\u0275\u0275InheritDefinitionFeature]}),V})(),Lt=(()=>{class V extends Re{}return V.\u0275fac=function(){let Ie;return function(Pe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(V)))(Pe||V)}}(),V.\u0275cmp=i.\u0275\u0275defineComponent({type:V,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i.\u0275\u0275ProvidersFeature([{provide:Re,useExisting:V}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(z,Pe){1&z&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),V})(),kt=(()=>{class V extends ye{}return V.\u0275fac=function(){let Ie;return function(Pe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(V)))(Pe||V)}}(),V.\u0275cmp=i.\u0275\u0275defineComponent({type:V,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[i.\u0275\u0275ProvidersFeature([{provide:ye,useExisting:V}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(z,Pe){1&z&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),V})(),hn=(()=>{class V extends Xe{}return V.\u0275fac=function(){let Ie;return function(Pe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(V)))(Pe||V)}}(),V.\u0275cmp=i.\u0275\u0275defineComponent({type:V,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i.\u0275\u0275ProvidersFeature([{provide:Xe,useExisting:V}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(z,Pe){1&z&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),V})(),Dn=(()=>{class V extends dt{constructor(){super(...arguments),this._contentClassName="mat-no-data-row"}}return V.\u0275fac=function(){let Ie;return function(Pe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(V)))(Pe||V)}}(),V.\u0275dir=i.\u0275\u0275defineDirective({type:V,selectors:[["ng-template","matNoDataRow",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:dt,useExisting:V}]),i.\u0275\u0275InheritDefinitionFeature]}),V})(),$n=(()=>{class V extends En{}return V.\u0275fac=function(){let Ie;return function(Pe){return(Ie||(Ie=i.\u0275\u0275getInheritedFactory(V)))(Pe||V)}}(),V.\u0275cmp=i.\u0275\u0275defineComponent({type:V,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(z,Pe){1&z&&(i.\u0275\u0275elementContainerStart(0,0),i.\u0275\u0275template(1,W,2,3,"th",1),i.\u0275\u0275template(2,p,2,3,"td",2),i.\u0275\u0275elementContainerEnd())},directives:[Wt,et,K,pn,Ve],encapsulation:2}),V})(),Jn=(()=>{class V{}return V.\u0275fac=function(z){return new(z||V)},V.\u0275mod=i.\u0275\u0275defineNgModule({type:V}),V.\u0275inj=i.\u0275\u0275defineInjector({imports:[[zt,Mt.MatCommonModule],Mt.MatCommonModule]}),V})();class Wn extends m.o2{constructor(Ie=[]){super(),this._renderData=new T.X([]),this._filter=new T.X(""),this._internalPageChanges=new s.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(z,Pe)=>{const qe=z[Pe];if((0,d.t6)(qe)){const st=Number(qe);return st<9007199254740991?st:qe}return qe},this.sortData=(z,Pe)=>{const qe=Pe.active,st=Pe.direction;return qe&&""!=st?z.sort((St,Nt)=>{let Xt=this.sortingDataAccessor(St,qe),vn=this.sortingDataAccessor(Nt,qe);const jt=typeof Xt,On=typeof vn;jt!==On&&("number"===jt&&(Xt+=""),"number"===On&&(vn+=""));let ln=0;return null!=Xt&&null!=vn?Xt>vn?ln=1:Xt<vn&&(ln=-1):null!=Xt?ln=1:null!=vn&&(ln=-1),ln*("asc"==st?1:-1)}):z},this.filterPredicate=(z,Pe)=>{const qe=Object.keys(z).reduce((St,Nt)=>St+z[Nt]+"\u25ec","").toLowerCase(),st=Pe.trim().toLowerCase();return-1!=qe.indexOf(st)},this._data=new T.X(Ie),this._updateChangeSubscription()}get data(){return this._data.value}set data(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 z=this._sort?(0,bn.T)(this._sort.sortChange,this._sort.initialized):(0,g.of)(null),Pe=this._paginator?(0,bn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,g.of)(null),st=(0,Qt.a)([this._data,this._filter]).pipe((0,on.U)(([Xt])=>this._filterData(Xt))),St=(0,Qt.a)([st,z]).pipe((0,on.U)(([Xt])=>this._orderData(Xt))),Nt=(0,Qt.a)([St,Pe]).pipe((0,on.U)(([Xt])=>this._pageData(Xt)));null===(Ie=this._renderChangesSubscription)||void 0===Ie||Ie.unsubscribe(),this._renderChangesSubscription=Nt.subscribe(Xt=>this._renderData.next(Xt))}_filterData(Ie){return this.filteredData=null==this.filter||""===this.filter?Ie:Ie.filter(z=>this.filterPredicate(z,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 z=this.paginator.pageIndex*this.paginator.pageSize;return Ie.slice(z,z+this.paginator.pageSize)}_updatePaginator(Ie){Promise.resolve().then(()=>{const z=this.paginator;if(z&&(z.length=Ie,z.pageIndex>0)){const Pe=Math.ceil(z.length/z.pageSize)-1||0,qe=Math.min(z.pageIndex,Pe);qe!==z.pageIndex&&(z.pageIndex=qe,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 Bn extends Wn{}},3251:(je,_,l)=>{"use strict";l.r(_),l.d(_,{MAT_TAB:()=>Xe,MAT_TABS_CONFIG:()=>ue,MAT_TAB_GROUP:()=>Ot,MatInkBar:()=>pe,MatTab:()=>lt,MatTabBody:()=>Oe,MatTabBodyPortal:()=>N,MatTabChangeEvent:()=>en,MatTabContent:()=>Re,MatTabGroup:()=>rn,MatTabHeader:()=>wt,MatTabLabel:()=>dt,MatTabLabelWrapper:()=>ve,MatTabLink:()=>on,MatTabNav:()=>Mt,MatTabsModule:()=>yn,_MAT_INK_BAR_POSITIONER:()=>Ye,_MatTabBodyBase:()=>ae,_MatTabGroupBase:()=>En,_MatTabHeaderBase:()=>ft,_MatTabLinkBase:()=>Qt,_MatTabNavBase:()=>zt,matTabsAnimations:()=>Qe});var i=l(5664),d=l(7144),m=l(7429),u=l(9808),s=l(5e3),b=l(508),T=l(6360),S=l(6758),g=l(6921),v=l(4968),A=l(9646),O=l(6451),w=l(2805),k=l(1777),U=l(8675),me=l(1884),$=l(2722),re=l(226),Te=l(3191),fe=l(1159),_e=l(925),le=l(9071);function Ee(oe,W){1&oe&&s.\u0275\u0275projection(0)}const Fe=["*"];function Je(oe,W){}const ot=function(oe){return{animationDuration:oe}},q=function(oe,W){return{value:oe,params:W}},Ae=["tabListContainer"],X=["tabList"],ce=["tabListInner"],Se=["nextPaginator"],ne=["previousPaginator"],$e=["tabBodyWrapper"],ge=["tabHeader"];function Ze(oe,W){}function Me(oe,W){if(1&oe&&s.\u0275\u0275template(0,Ze,0,0,"ng-template",9),2&oe){const p=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275property("cdkPortalOutlet",p.templateLabel)}}function Ke(oe,W){if(1&oe&&s.\u0275\u0275text(0),2&oe){const p=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275textInterpolate(p.textLabel)}}function mt(oe,W){if(1&oe){const p=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",6),s.\u0275\u0275listener("click",function(){const D=s.\u0275\u0275restoreView(p),K=D.$implicit,et=D.index,Et=s.\u0275\u0275nextContext(),Wt=s.\u0275\u0275reference(1);return Et._handleClick(K,Wt,et)})("cdkFocusChange",function(D){const et=s.\u0275\u0275restoreView(p).index;return s.\u0275\u0275nextContext()._tabFocusChanged(D,et)}),s.\u0275\u0275elementStart(1,"div",7),s.\u0275\u0275template(2,Me,1,1,"ng-template",8),s.\u0275\u0275template(3,Ke,1,1,"ng-template",8),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&oe){const p=W.$implicit,C=W.index,D=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-label-active",D.selectedIndex==C),s.\u0275\u0275property("id",D._getTabLabelId(C))("disabled",p.disabled)("matRippleDisabled",p.disabled||D.disableRipple),s.\u0275\u0275attribute("tabIndex",D._getTabIndex(p,C))("aria-posinset",C+1)("aria-setsize",D._tabs.length)("aria-controls",D._getTabContentId(C))("aria-selected",D.selectedIndex==C)("aria-label",p.ariaLabel||null)("aria-labelledby",!p.ariaLabel&&p.ariaLabelledby?p.ariaLabelledby:null),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngIf",p.templateLabel),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",!p.templateLabel)}}function Dt(oe,W){if(1&oe){const p=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"mat-tab-body",10),s.\u0275\u0275listener("_onCentered",function(){return s.\u0275\u0275restoreView(p),s.\u0275\u0275nextContext()._removeTabBodyWrapperHeight()})("_onCentering",function(D){return s.\u0275\u0275restoreView(p),s.\u0275\u0275nextContext()._setTabBodyWrapperHeight(D)}),s.\u0275\u0275elementEnd()}if(2&oe){const p=W.$implicit,C=W.index,D=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-body-active",D.selectedIndex===C),s.\u0275\u0275property("id",D._getTabContentId(C))("content",p.content)("position",p.position)("origin",p.origin)("animationDuration",D.animationDuration),s.\u0275\u0275attribute("tabindex",null!=D.contentTabIndex&&D.selectedIndex===C?D.contentTabIndex:null)("aria-labelledby",D._getTabLabelId(C))}}const ke=["mat-tab-nav-bar",""],Ye=new s.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function Z(){return W=>({left:W?(W.offsetLeft||0)+"px":"0",width:W?(W.offsetWidth||0)+"px":"0"})}});let pe=(()=>{class oe{constructor(p,C,D,K){this._elementRef=p,this._ngZone=C,this._inkBarPositioner=D,this._animationMode=K}alignToElement(p){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(p))}):this._setStyles(p)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(p){const C=this._inkBarPositioner(p),D=this._elementRef.nativeElement;D.style.left=C.left,D.style.width=C.width}}return oe.\u0275fac=function(p){return new(p||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(Ye),s.\u0275\u0275directiveInject(T.ANIMATION_MODULE_TYPE,8))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(p,C){2&p&&s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===C._animationMode)}}),oe})();const we=new s.InjectionToken("MatTabContent");let Re=(()=>{class oe{constructor(p){this.template=p}}return oe.\u0275fac=function(p){return new(p||oe)(s.\u0275\u0275directiveInject(s.TemplateRef))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,selectors:[["","matTabContent",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:we,useExisting:oe}])]}),oe})();const ye=new s.InjectionToken("MatTabLabel"),Xe=new s.InjectionToken("MAT_TAB");let dt=(()=>{class oe extends m.ig{constructor(p,C,D){super(p,C),this._closestTab=D}}return oe.\u0275fac=function(p){return new(p||oe)(s.\u0275\u0275directiveInject(s.TemplateRef),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(Xe,8))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:ye,useExisting:oe}]),s.\u0275\u0275InheritDefinitionFeature]}),oe})();const bt=(0,b.mixinDisabled)(class{}),Ot=new s.InjectionToken("MAT_TAB_GROUP");let lt=(()=>{class oe extends bt{constructor(p,C){super(),this._viewContainerRef=p,this._closestTabGroup=C,this.textLabel="",this._contentPortal=null,this._stateChanges=new S.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(p){this._setTemplateLabelInput(p)}get content(){return this._contentPortal}ngOnChanges(p){(p.hasOwnProperty("textLabel")||p.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new m.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(p){p&&p._closestTab===this&&(this._templateLabel=p)}}return oe.\u0275fac=function(p){return new(p||oe)(s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(Ot,8))},oe.\u0275cmp=s.\u0275\u0275defineComponent({type:oe,selectors:[["mat-tab"]],contentQueries:function(p,C,D){if(1&p&&(s.\u0275\u0275contentQuery(D,ye,5),s.\u0275\u0275contentQuery(D,we,7,s.TemplateRef)),2&p){let K;s.\u0275\u0275queryRefresh(K=s.\u0275\u0275loadQuery())&&(C.templateLabel=K.first),s.\u0275\u0275queryRefresh(K=s.\u0275\u0275loadQuery())&&(C._explicitContent=K.first)}},viewQuery:function(p,C){if(1&p&&s.\u0275\u0275viewQuery(s.TemplateRef,7),2&p){let D;s.\u0275\u0275queryRefresh(D=s.\u0275\u0275loadQuery())&&(C._implicitContent=D.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s.\u0275\u0275ProvidersFeature([{provide:Xe,useExisting:oe}]),s.\u0275\u0275InheritDefinitionFeature,s.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Fe,decls:1,vars:0,template:function(p,C){1&p&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275template(0,Ee,1,0,"ng-template"))},encapsulation:2}),oe})();const Qe={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 N=(()=>{class oe extends m.Pl{constructor(p,C,D,K){super(p,C,K),this._host=D,this._centeringSub=g.w0.EMPTY,this._leavingSub=g.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,U.O)(this._host._isCenterPosition(this._host._position))).subscribe(p=>{p&&!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 oe.\u0275fac=function(p){return new(p||oe)(s.\u0275\u0275directiveInject(s.ComponentFactoryResolver),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject((0,s.forwardRef)(()=>Oe)),s.\u0275\u0275directiveInject(u.DOCUMENT))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,selectors:[["","matTabBodyHost",""]],features:[s.\u0275\u0275InheritDefinitionFeature]}),oe})(),ae=(()=>{class oe{constructor(p,C,D){this._elementRef=p,this._dir=C,this._dirChangeSubscription=g.w0.EMPTY,this._translateTabComplete=new S.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",C&&(this._dirChangeSubscription=C.change.subscribe(K=>{this._computePositionAnimationState(K),D.markForCheck()})),this._translateTabComplete.pipe((0,me.x)((K,et)=>K.fromState===et.fromState&&K.toState===et.toState)).subscribe(K=>{this._isCenterPosition(K.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(K.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(p){this._positionIndex=p,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(p){const C=this._isCenterPosition(p.toState);this._beforeCentering.emit(C),C&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(p){return"center"==p||"left-origin-center"==p||"right-origin-center"==p}_computePositionAnimationState(p=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==p?"left":"right":this._positionIndex>0?"ltr"==p?"right":"left":"center"}_computePositionFromOrigin(p){const C=this._getLayoutDirection();return"ltr"==C&&p<=0||"rtl"==C&&p>0?"left-origin-center":"right-origin-center"}}return oe.\u0275fac=function(p){return new(p||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(re.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),oe})(),Oe=(()=>{class oe extends ae{constructor(p,C,D){super(p,C,D)}}return oe.\u0275fac=function(p){return new(p||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(re.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},oe.\u0275cmp=s.\u0275\u0275defineComponent({type:oe,selectors:[["mat-tab-body"]],viewQuery:function(p,C){if(1&p&&s.\u0275\u0275viewQuery(m.Pl,5),2&p){let D;s.\u0275\u0275queryRefresh(D=s.\u0275\u0275loadQuery())&&(C._portalHost=D.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(p,C){1&p&&(s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("@translateTab.start",function(K){return C._onTranslateTabStarted(K)})("@translateTab.done",function(K){return C._translateTabComplete.next(K)}),s.\u0275\u0275template(2,Je,0,0,"ng-template",2),s.\u0275\u0275elementEnd()),2&p&&s.\u0275\u0275property("@translateTab",s.\u0275\u0275pureFunction2(3,q,C._position,s.\u0275\u0275pureFunction1(1,ot,C.animationDuration)))},directives:[N],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:[Qe.translateTab]}}),oe})();const ue=new s.InjectionToken("MAT_TABS_CONFIG"),De=(0,b.mixinDisabled)(class{});let ve=(()=>{class oe extends De{constructor(p){super(),this.elementRef=p}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return oe.\u0275fac=function(p){return new(p||oe)(s.\u0275\u0275directiveInject(s.ElementRef))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(p,C){2&p&&(s.\u0275\u0275attribute("aria-disabled",!!C.disabled),s.\u0275\u0275classProp("mat-tab-disabled",C.disabled))},inputs:{disabled:"disabled"},features:[s.\u0275\u0275InheritDefinitionFeature]}),oe})();const se=(0,_e.i$)({passive:!0});let ht=(()=>{class oe{constructor(p,C,D,K,et,Et,Wt){this._elementRef=p,this._changeDetectorRef=C,this._viewportRuler=D,this._dir=K,this._ngZone=et,this._platform=Et,this._animationMode=Wt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new S.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new S.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.EventEmitter,this.indexFocused=new s.EventEmitter,et.runOutsideAngular(()=>{(0,v.R)(p.nativeElement,"mouseleave").pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(p){p=(0,Te.su)(p),this._selectedIndex!=p&&(this._selectedIndexChanged=!0,this._selectedIndex=p,this._keyManager&&this._keyManager.updateActiveItem(p))}ngAfterViewInit(){(0,v.R)(this._previousPaginator.nativeElement,"touchstart",se).pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,v.R)(this._nextPaginator.nativeElement,"touchstart",se).pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const p=this._dir?this._dir.change:(0,A.of)("ltr"),C=this._viewportRuler.change(150),D=()=>{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(D):D(),(0,O.T)(p,C,this._items.changes).pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(D)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,$.R)(this._destroyed)).subscribe(K=>{this.indexFocused.emit(K),this._setTabFocus(K)})}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(p){if(!(0,fe.Vb)(p))switch(p.keyCode){case fe.K5:case fe.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(p));break;default:this._keyManager.onKeydown(p)}}_onContentChanges(){const p=this._elementRef.nativeElement.textContent;p!==this._currentTextContent&&(this._currentTextContent=p||"",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(p){!this._isValidIndex(p)||this.focusIndex===p||!this._keyManager||this._keyManager.setActiveItem(p)}_isValidIndex(p){if(!this._items)return!0;const C=this._items?this._items.toArray()[p]:null;return!!C&&!C.disabled}_setTabFocus(p){if(this._showPaginationControls&&this._scrollToLabel(p),this._items&&this._items.length){this._items.toArray()[p].focus();const C=this._tabListContainer.nativeElement;C.scrollLeft="ltr"==this._getLayoutDirection()?0:C.scrollWidth-C.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const p=this.scrollDistance,C="ltr"===this._getLayoutDirection()?-p:p;this._tabList.nativeElement.style.transform=`translateX(${Math.round(C)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(p){this._scrollTo(p)}_scrollHeader(p){return this._scrollTo(this._scrollDistance+("before"==p?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(p){this._stopInterval(),this._scrollHeader(p)}_scrollToLabel(p){if(this.disablePagination)return;const C=this._items?this._items.toArray()[p]:null;if(!C)return;const D=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:K,offsetWidth:et}=C.elementRef.nativeElement;let Et,Wt;"ltr"==this._getLayoutDirection()?(Et=K,Wt=Et+et):(Wt=this._tabListInner.nativeElement.offsetWidth-K,Et=Wt-et);const pn=this.scrollDistance,Le=this.scrollDistance+D;Et<pn?this.scrollDistance-=pn-Et+60:Wt>Le&&(this.scrollDistance+=Wt-Le+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const p=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;p||(this.scrollDistance=0),p!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=p}}_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 p=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,C=p?p.elementRef.nativeElement:null;C?this._inkBar.alignToElement(C):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(p,C){C&&null!=C.button&&0!==C.button||(this._stopInterval(),(0,w.H)(650,100).pipe((0,$.R)((0,O.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:D,distance:K}=this._scrollHeader(p);(0===K||K>=D)&&this._stopInterval()}))}_scrollTo(p){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const C=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(C,p)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:C,distance:this._scrollDistance}}}return oe.\u0275fac=function(p){return new(p||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(le.rL),s.\u0275\u0275directiveInject(re.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(_e.t4),s.\u0275\u0275directiveInject(T.ANIMATION_MODULE_TYPE,8))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,inputs:{disablePagination:"disablePagination"}}),oe})(),ft=(()=>{class oe extends ht{constructor(p,C,D,K,et,Et,Wt){super(p,C,D,K,et,Et,Wt),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(p){this._disableRipple=(0,Te.Ig)(p)}_itemSelected(p){p.preventDefault()}}return oe.\u0275fac=function(p){return new(p||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(le.rL),s.\u0275\u0275directiveInject(re.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(_e.t4),s.\u0275\u0275directiveInject(T.ANIMATION_MODULE_TYPE,8))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,inputs:{disableRipple:"disableRipple"},features:[s.\u0275\u0275InheritDefinitionFeature]}),oe})(),wt=(()=>{class oe extends ft{constructor(p,C,D,K,et,Et,Wt){super(p,C,D,K,et,Et,Wt)}}return oe.\u0275fac=function(p){return new(p||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(le.rL),s.\u0275\u0275directiveInject(re.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(_e.t4),s.\u0275\u0275directiveInject(T.ANIMATION_MODULE_TYPE,8))},oe.\u0275cmp=s.\u0275\u0275defineComponent({type:oe,selectors:[["mat-tab-header"]],contentQueries:function(p,C,D){if(1&p&&s.\u0275\u0275contentQuery(D,ve,4),2&p){let K;s.\u0275\u0275queryRefresh(K=s.\u0275\u0275loadQuery())&&(C._items=K)}},viewQuery:function(p,C){if(1&p&&(s.\u0275\u0275viewQuery(pe,7),s.\u0275\u0275viewQuery(Ae,7),s.\u0275\u0275viewQuery(X,7),s.\u0275\u0275viewQuery(ce,7),s.\u0275\u0275viewQuery(Se,5),s.\u0275\u0275viewQuery(ne,5)),2&p){let D;s.\u0275\u0275queryRefresh(D=s.\u0275\u0275loadQuery())&&(C._inkBar=D.first),s.\u0275\u0275queryRefresh(D=s.\u0275\u0275loadQuery())&&(C._tabListContainer=D.first),s.\u0275\u0275queryRefresh(D=s.\u0275\u0275loadQuery())&&(C._tabList=D.first),s.\u0275\u0275queryRefresh(D=s.\u0275\u0275loadQuery())&&(C._tabListInner=D.first),s.\u0275\u0275queryRefresh(D=s.\u0275\u0275loadQuery())&&(C._nextPaginator=D.first),s.\u0275\u0275queryRefresh(D=s.\u0275\u0275loadQuery())&&(C._previousPaginator=D.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(p,C){2&p&&s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",C._showPaginationControls)("mat-tab-header-rtl","rtl"==C._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Fe,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(p,C){1&p&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("click",function(){return C._handlePaginatorClick("before")})("mousedown",function(K){return C._handlePaginatorPress("before",K)})("touchend",function(){return C._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(K){return C._handleKeydown(K)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return C._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(K){return C._handlePaginatorPress("after",K)})("click",function(){return C._handlePaginatorClick("after")})("touchend",function(){return C._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&p&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",C._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",C._disableScrollBefore||C.disableRipple),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===C._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",C._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",C._disableScrollAfter||C.disableRipple))},directives:[b.MatRipple,d.wD,pe],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}.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}),oe})(),Ht=0;class en{}const Bt=(0,b.mixinColor)((0,b.mixinDisableRipple)(class{constructor(oe){this._elementRef=oe}}),"primary");let En=(()=>{class oe extends Bt{constructor(p,C,D,K){var et;super(p),this._changeDetectorRef=C,this._animationMode=K,this._tabs=new s.QueryList,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=g.w0.EMPTY,this._tabLabelSubscription=g.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=Ht++,this.animationDuration=D&&D.animationDuration?D.animationDuration:"500ms",this.disablePagination=!(!D||null==D.disablePagination)&&D.disablePagination,this.dynamicHeight=!(!D||null==D.dynamicHeight)&&D.dynamicHeight,this.contentTabIndex=null!==(et=null==D?void 0:D.contentTabIndex)&&void 0!==et?et:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(p){this._dynamicHeight=(0,Te.Ig)(p)}get selectedIndex(){return this._selectedIndex}set selectedIndex(p){this._indexToSelect=(0,Te.su)(p,null)}get animationDuration(){return this._animationDuration}set animationDuration(p){this._animationDuration=/^\d+$/.test(p+"")?p+"ms":p}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(p){this._contentTabIndex=(0,Te.su)(p,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(p){const C=this._elementRef.nativeElement;C.classList.remove(`mat-background-${this.backgroundColor}`),p&&C.classList.add(`mat-background-${p}`),this._backgroundColor=p}ngAfterContentChecked(){const p=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=p){const C=null==this._selectedIndex;if(!C){this.selectedTabChange.emit(this._createChangeEvent(p));const D=this._tabBodyWrapper.nativeElement;D.style.minHeight=D.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((D,K)=>D.isActive=K===p),C||(this.selectedIndexChange.emit(p),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((C,D)=>{C.position=D-p,null!=this._selectedIndex&&0==C.position&&!C.origin&&(C.origin=p-this._selectedIndex)}),this._selectedIndex!==p&&(this._selectedIndex=p,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const C=this._tabs.toArray();for(let D=0;D<C.length;D++)if(C[D].isActive){this._indexToSelect=this._selectedIndex=D;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,U.O)(this._allTabs)).subscribe(p=>{this._tabs.reset(p.filter(C=>C._closestTabGroup===this||!C._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(p){const C=this._tabHeader;C&&(C.focusIndex=p)}_focusChanged(p){this.focusChange.emit(this._createChangeEvent(p))}_createChangeEvent(p){const C=new en;return C.index=p,this._tabs&&this._tabs.length&&(C.tab=this._tabs.toArray()[p]),C}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,O.T)(...this._tabs.map(p=>p._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(p){return Math.min(this._tabs.length-1,Math.max(p||0,0))}_getTabLabelId(p){return`mat-tab-label-${this._groupId}-${p}`}_getTabContentId(p){return`mat-tab-content-${this._groupId}-${p}`}_setTabBodyWrapperHeight(p){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const C=this._tabBodyWrapper.nativeElement;C.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(C.style.height=p+"px")}_removeTabBodyWrapperHeight(){const p=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=p.clientHeight,p.style.height="",this.animationDone.emit()}_handleClick(p,C,D){p.disabled||(this.selectedIndex=C.focusIndex=D)}_getTabIndex(p,C){return p.disabled?null:this.selectedIndex===C?0:-1}_tabFocusChanged(p,C){p&&"mouse"!==p&&"touch"!==p&&(this._tabHeader.focusIndex=C)}}return oe.\u0275fac=function(p){return new(p||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(ue,8),s.\u0275\u0275directiveInject(T.ANIMATION_MODULE_TYPE,8))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,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]}),oe})(),rn=(()=>{class oe extends En{constructor(p,C,D,K){super(p,C,D,K)}}return oe.\u0275fac=function(p){return new(p||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(ue,8),s.\u0275\u0275directiveInject(T.ANIMATION_MODULE_TYPE,8))},oe.\u0275cmp=s.\u0275\u0275defineComponent({type:oe,selectors:[["mat-tab-group"]],contentQueries:function(p,C,D){if(1&p&&s.\u0275\u0275contentQuery(D,lt,5),2&p){let K;s.\u0275\u0275queryRefresh(K=s.\u0275\u0275loadQuery())&&(C._allTabs=K)}},viewQuery:function(p,C){if(1&p&&(s.\u0275\u0275viewQuery($e,5),s.\u0275\u0275viewQuery(ge,5)),2&p){let D;s.\u0275\u0275queryRefresh(D=s.\u0275\u0275loadQuery())&&(C._tabBodyWrapper=D.first),s.\u0275\u0275queryRefresh(D=s.\u0275\u0275loadQuery())&&(C._tabHeader=D.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(p,C){2&p&&s.\u0275\u0275classProp("mat-tab-group-dynamic-height",C.dynamicHeight)("mat-tab-group-inverted-header","below"===C.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s.\u0275\u0275ProvidersFeature([{provide:Ot,useExisting:oe}]),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","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(p,C){1&p&&(s.\u0275\u0275elementStart(0,"mat-tab-header",0,1),s.\u0275\u0275listener("indexFocused",function(K){return C._focusChanged(K)})("selectFocusedIndex",function(K){return C.selectedIndex=K}),s.\u0275\u0275template(2,mt,4,14,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275template(5,Dt,1,9,"mat-tab-body",5),s.\u0275\u0275elementEnd()),2&p&&(s.\u0275\u0275property("selectedIndex",C.selectedIndex||0)("disableRipple",C.disableRipple)("disablePagination",C.disablePagination),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",C._tabs),s.\u0275\u0275advance(1),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===C._animationMode),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",C._tabs))},directives:[wt,u.NgForOf,ve,b.MatRipple,i.kH,u.NgIf,m.Pl,Oe],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}),oe})(),zt=(()=>{class oe extends ht{constructor(p,C,D,K,et,Et,Wt){super(p,K,et,C,D,Et,Wt),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(p){const C=this._elementRef.nativeElement.classList;C.remove(`mat-background-${this.backgroundColor}`),p&&C.add(`mat-background-${p}`),this._backgroundColor=p}get disableRipple(){return this._disableRipple}set disableRipple(p){this._disableRipple=(0,Te.Ig)(p)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,U.O)(null),(0,$.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const p=this._items.toArray();for(let C=0;C<p.length;C++)if(p[C].active)return this.selectedIndex=C,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}return oe.\u0275fac=function(p){return new(p||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(re.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(le.rL),s.\u0275\u0275directiveInject(_e.t4),s.\u0275\u0275directiveInject(T.ANIMATION_MODULE_TYPE,8))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color"},features:[s.\u0275\u0275InheritDefinitionFeature]}),oe})(),Mt=(()=>{class oe extends zt{constructor(p,C,D,K,et,Et,Wt){super(p,C,D,K,et,Et,Wt)}}return oe.\u0275fac=function(p){return new(p||oe)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(re.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(le.rL),s.\u0275\u0275directiveInject(_e.t4),s.\u0275\u0275directiveInject(T.ANIMATION_MODULE_TYPE,8))},oe.\u0275cmp=s.\u0275\u0275defineComponent({type:oe,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(p,C,D){if(1&p&&s.\u0275\u0275contentQuery(D,on,5),2&p){let K;s.\u0275\u0275queryRefresh(K=s.\u0275\u0275loadQuery())&&(C._items=K)}},viewQuery:function(p,C){if(1&p&&(s.\u0275\u0275viewQuery(pe,7),s.\u0275\u0275viewQuery(Ae,7),s.\u0275\u0275viewQuery(X,7),s.\u0275\u0275viewQuery(ce,7),s.\u0275\u0275viewQuery(Se,5),s.\u0275\u0275viewQuery(ne,5)),2&p){let D;s.\u0275\u0275queryRefresh(D=s.\u0275\u0275loadQuery())&&(C._inkBar=D.first),s.\u0275\u0275queryRefresh(D=s.\u0275\u0275loadQuery())&&(C._tabListContainer=D.first),s.\u0275\u0275queryRefresh(D=s.\u0275\u0275loadQuery())&&(C._tabList=D.first),s.\u0275\u0275queryRefresh(D=s.\u0275\u0275loadQuery())&&(C._tabListInner=D.first),s.\u0275\u0275queryRefresh(D=s.\u0275\u0275loadQuery())&&(C._nextPaginator=D.first),s.\u0275\u0275queryRefresh(D=s.\u0275\u0275loadQuery())&&(C._previousPaginator=D.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(p,C){2&p&&s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",C._showPaginationControls)("mat-tab-header-rtl","rtl"==C._getLayoutDirection())("mat-primary","warn"!==C.color&&"accent"!==C.color)("mat-accent","accent"===C.color)("mat-warn","warn"===C.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[s.\u0275\u0275InheritDefinitionFeature],attrs:ke,ngContentSelectors:Fe,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-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["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(p,C){1&p&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("click",function(){return C._handlePaginatorClick("before")})("mousedown",function(K){return C._handlePaginatorPress("before",K)})("touchend",function(){return C._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(K){return C._handleKeydown(K)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return C._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(K){return C._handlePaginatorPress("after",K)})("click",function(){return C._handlePaginatorClick("after")})("touchend",function(){return C._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&p&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",C._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",C._disableScrollBefore||C.disableRipple),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===C._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",C._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",C._disableScrollAfter||C.disableRipple))},directives:[b.MatRipple,d.wD,pe],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}.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}),oe})();const bn=(0,b.mixinTabIndex)((0,b.mixinDisableRipple)((0,b.mixinDisabled)(class{})));let Qt=(()=>{class oe extends bn{constructor(p,C,D,K,et,Et){super(),this._tabNavBar=p,this.elementRef=C,this._focusMonitor=et,this._isActive=!1,this.rippleConfig=D||{},this.tabIndex=parseInt(K)||0,"NoopAnimations"===Et&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(p){const C=(0,Te.Ig)(p);C!==this._isActive&&(this._isActive=C,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)}}return oe.\u0275fac=function(p){return new(p||oe)(s.\u0275\u0275directiveInject(zt),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(b.MAT_RIPPLE_GLOBAL_OPTIONS,8),s.\u0275\u0275injectAttribute("tabindex"),s.\u0275\u0275directiveInject(i.tE),s.\u0275\u0275directiveInject(T.ANIMATION_MODULE_TYPE,8))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,inputs:{active:"active"},features:[s.\u0275\u0275InheritDefinitionFeature]}),oe})(),on=(()=>{class oe extends Qt{constructor(p,C,D,K,et,Et,Wt,pn){super(p,C,et,Et,Wt,pn),this._tabLinkRipple=new b.RippleRenderer(this,D,C,K),this._tabLinkRipple.setupTriggerEvents(C.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return oe.\u0275fac=function(p){return new(p||oe)(s.\u0275\u0275directiveInject(Mt),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(_e.t4),s.\u0275\u0275directiveInject(b.MAT_RIPPLE_GLOBAL_OPTIONS,8),s.\u0275\u0275injectAttribute("tabindex"),s.\u0275\u0275directiveInject(i.tE),s.\u0275\u0275directiveInject(T.ANIMATION_MODULE_TYPE,8))},oe.\u0275dir=s.\u0275\u0275defineDirective({type:oe,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(p,C){1&p&&s.\u0275\u0275listener("focus",function(){return C._handleFocus()}),2&p&&(s.\u0275\u0275attribute("aria-current",C.active?"page":null)("aria-disabled",C.disabled)("tabIndex",C.tabIndex),s.\u0275\u0275classProp("mat-tab-disabled",C.disabled)("mat-tab-label-active",C.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[s.\u0275\u0275InheritDefinitionFeature]}),oe})(),yn=(()=>{class oe{}return oe.\u0275fac=function(p){return new(p||oe)},oe.\u0275mod=s.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=s.\u0275\u0275defineInjector({imports:[[u.CommonModule,b.MatCommonModule,m.eL,b.MatRippleModule,d.Q8,i.rt],b.MatCommonModule]}),oe})()},7238:(je,_,l)=>{"use strict";l.r(_),l.d(_,{MAT_TOOLTIP_DEFAULT_OPTIONS:()=>q,MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY:()=>Ae,MAT_TOOLTIP_SCROLL_STRATEGY:()=>Fe,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY:()=>Je,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>ot,MatTooltip:()=>ce,MatTooltipModule:()=>$e,SCROLL_THROTTLE_MS:()=>re,TOOLTIP_PANEL_CLASS:()=>Te,TooltipComponent:()=>ne,_MatTooltipBase:()=>X,_TooltipComponentBase:()=>Se,getMatTooltipInvalidPositionError:()=>Ee,matTooltipAnimations:()=>$});var i=l(1314),d=l(5664),m=l(9808),u=l(5e3),s=l(508),b=l(9071),T=l(3191),S=l(1159),g=l(5113),v=l(925),A=l(7429),O=l(6758),w=l(2722),k=l(5698),U=l(1777),me=l(226);const $={tooltipState:(0,U.X$)("state",[(0,U.SB)("initial, void, hidden",(0,U.oB)({opacity:0,transform:"scale(0)"})),(0,U.SB)("visible",(0,U.oB)({transform:"scale(1)"})),(0,U.eR)("* => visible",(0,U.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,U.F4)([(0,U.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,U.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,U.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,U.eR)("* => hidden",(0,U.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,U.oB)({opacity:0})))])},re=20,Te="mat-tooltip-panel",fe="tooltip-panel",_e=(0,v.i$)({passive:!0});function Ee(ge){return Error(`Tooltip position "${ge}" is invalid.`)}const Fe=new u.InjectionToken("mat-tooltip-scroll-strategy");function Je(ge){return()=>ge.scrollStrategies.reposition({scrollThrottle:re})}const ot={provide:Fe,deps:[i.aV],useFactory:Je},q=new u.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:Ae});function Ae(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}let X=(()=>{class ge{constructor(Me,Ke,mt,Dt,ke,Ye,Z,pe,we,Re,ye,Xe){this._overlay=Me,this._elementRef=Ke,this._scrollDispatcher=mt,this._viewContainerRef=Dt,this._ngZone=ke,this._platform=Ye,this._ariaDescriber=Z,this._focusMonitor=pe,this._dir=Re,this._defaultOptions=ye,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new O.x,this._handleKeydown=dt=>{this._isTooltipVisible()&&dt.keyCode===S.hY&&!(0,S.Vb)(dt)&&(dt.preventDefault(),dt.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=we,this._document=Xe,ye&&(ye.position&&(this.position=ye.position),ye.touchGestures&&(this.touchGestures=ye.touchGestures)),Re.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),ke.runOutsideAngular(()=>{Ke.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(Me){var Ke;Me!==this._position&&(this._position=Me,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(Ke=this._tooltipInstance)||void 0===Ke||Ke.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(Me){this._disabled=(0,T.Ig)(Me),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Me){this._showDelay=(0,T.su)(Me)}get hideDelay(){return this._hideDelay}set hideDelay(Me){this._hideDelay=(0,T.su)(Me)}get message(){return this._message}set message(Me){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Me?String(Me).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(Me){this._tooltipClass=Me,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,w.R)(this._destroyed)).subscribe(Me=>{Me?"keyboard"===Me&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Me=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),Me.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([Ke,mt])=>{Me.removeEventListener(Ke,mt,_e)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Me,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Me)}show(Me=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const Ke=this._createOverlay();this._detach(),this._portal=this._portal||new A.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=Ke.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(Me)}hide(Me=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(Me)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const Me=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Ke=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Me);return Ke.positionChanges.pipe((0,w.R)(this._destroyed)).subscribe(mt=>{this._updateCurrentPositionClass(mt.connectionPair),this._tooltipInstance&&mt.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Ke,panelClass:`${this._cssClassPrefix}-${fe}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,w.R)(this._destroyed)).subscribe(()=>{var mt;return null===(mt=this._tooltipInstance)||void 0===mt?void 0:mt._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(Me){const Ke=Me.getConfig().positionStrategy,mt=this._getOrigin(),Dt=this._getOverlayPosition();Ke.withPositions([this._addOffset(Object.assign(Object.assign({},mt.main),Dt.main)),this._addOffset(Object.assign(Object.assign({},mt.fallback),Dt.fallback))])}_addOffset(Me){return Me}_getOrigin(){const Me=!this._dir||"ltr"==this._dir.value,Ke=this.position;let mt;"above"==Ke||"below"==Ke?mt={originX:"center",originY:"above"==Ke?"top":"bottom"}:"before"==Ke||"left"==Ke&&Me||"right"==Ke&&!Me?mt={originX:"start",originY:"center"}:("after"==Ke||"right"==Ke&&Me||"left"==Ke&&!Me)&&(mt={originX:"end",originY:"center"});const{x:Dt,y:ke}=this._invertPosition(mt.originX,mt.originY);return{main:mt,fallback:{originX:Dt,originY:ke}}}_getOverlayPosition(){const Me=!this._dir||"ltr"==this._dir.value,Ke=this.position;let mt;"above"==Ke?mt={overlayX:"center",overlayY:"bottom"}:"below"==Ke?mt={overlayX:"center",overlayY:"top"}:"before"==Ke||"left"==Ke&&Me||"right"==Ke&&!Me?mt={overlayX:"end",overlayY:"center"}:("after"==Ke||"right"==Ke&&Me||"left"==Ke&&!Me)&&(mt={overlayX:"start",overlayY:"center"});const{x:Dt,y:ke}=this._invertPosition(mt.overlayX,mt.overlayY);return{main:mt,fallback:{overlayX:Dt,overlayY:ke}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,k.q)(1),(0,w.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Me){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Me,this._tooltipInstance._markForCheck())}_invertPosition(Me,Ke){return"above"===this.position||"below"===this.position?"top"===Ke?Ke="bottom":"bottom"===Ke&&(Ke="top"):"end"===Me?Me="start":"start"===Me&&(Me="end"),{x:Me,y:Ke}}_updateCurrentPositionClass(Me){const{overlayY:Ke,originX:mt,originY:Dt}=Me;let ke;if(ke="center"===Ke?this._dir&&"rtl"===this._dir.value?"end"===mt?"left":"right":"start"===mt?"left":"right":"bottom"===Ke&&"top"===Dt?"above":"below",ke!==this._currentPosition){const Ye=this._overlayRef;if(Ye){const Z=`${this._cssClassPrefix}-${fe}-`;Ye.removePanelClass(Z+this._currentPosition),Ye.addPanelClass(Z+ke)}this._currentPosition=ke}}_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 Me=[];if(this._platformSupportsMouseEvents())Me.push(["mouseleave",()=>this.hide()],["wheel",Ke=>this._wheelListener(Ke)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Ke=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Me.push(["touchend",Ke],["touchcancel",Ke])}this._addListeners(Me),this._passiveListeners.push(...Me)}_addListeners(Me){Me.forEach(([Ke,mt])=>{this._elementRef.nativeElement.addEventListener(Ke,mt,_e)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Me){if(this._isTooltipVisible()){const Ke=this._document.elementFromPoint(Me.clientX,Me.clientY),mt=this._elementRef.nativeElement;Ke!==mt&&!mt.contains(Ke)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Me=this.touchGestures;if("off"!==Me){const Ke=this._elementRef.nativeElement,mt=Ke.style;("on"===Me||"INPUT"!==Ke.nodeName&&"TEXTAREA"!==Ke.nodeName)&&(mt.userSelect=mt.msUserSelect=mt.webkitUserSelect=mt.MozUserSelect="none"),("on"===Me||!Ke.draggable)&&(mt.webkitUserDrag="none"),mt.touchAction="none",mt.webkitTapHighlightColor="transparent"}}}return ge.\u0275fac=function(Me){u.\u0275\u0275invalidFactory()},ge.\u0275dir=u.\u0275\u0275defineDirective({type:ge,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),ge})(),ce=(()=>{class ge extends X{constructor(Me,Ke,mt,Dt,ke,Ye,Z,pe,we,Re,ye,Xe){super(Me,Ke,mt,Dt,ke,Ye,Z,pe,we,Re,ye,Xe),this._tooltipComponent=ne}}return ge.\u0275fac=function(Me){return new(Me||ge)(u.\u0275\u0275directiveInject(i.aV),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(b.mF),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(v.t4),u.\u0275\u0275directiveInject(d.$s),u.\u0275\u0275directiveInject(d.tE),u.\u0275\u0275directiveInject(Fe),u.\u0275\u0275directiveInject(me.Is,8),u.\u0275\u0275directiveInject(q,8),u.\u0275\u0275directiveInject(m.DOCUMENT))},ge.\u0275dir=u.\u0275\u0275defineDirective({type:ge,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[u.\u0275\u0275InheritDefinitionFeature]}),ge})(),Se=(()=>{class ge{constructor(Me){this._changeDetectorRef=Me,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new O.x}show(Me){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},Me)}hide(Me){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},Me)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(Me){const Ke=Me.toState;"hidden"===Ke&&!this.isVisible()&&this._onHide.next(),("visible"===Ke||"hidden"===Ke)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return ge.\u0275fac=function(Me){return new(Me||ge)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},ge.\u0275dir=u.\u0275\u0275defineDirective({type:ge}),ge})(),ne=(()=>{class ge extends Se{constructor(Me,Ke){super(Me),this._breakpointObserver=Ke,this._isHandset=this._breakpointObserver.observe(g.Breakpoints.Handset)}}return ge.\u0275fac=function(Me){return new(Me||ge)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(g.BreakpointObserver))},ge.\u0275cmp=u.\u0275\u0275defineComponent({type:ge,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(Me,Ke){2&Me&&u.\u0275\u0275styleProp("zoom","visible"===Ke._visibility?1:null)},features:[u.\u0275\u0275InheritDefinitionFeature],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(Me,Ke){if(1&Me&&(u.\u0275\u0275elementStart(0,"div",0),u.\u0275\u0275listener("@state.start",function(){return Ke._animationStart()})("@state.done",function(Dt){return Ke._animationDone(Dt)}),u.\u0275\u0275pipe(1,"async"),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd()),2&Me){let mt;u.\u0275\u0275classProp("mat-tooltip-handset",null==(mt=u.\u0275\u0275pipeBind1(1,5,Ke._isHandset))?null:mt.matches),u.\u0275\u0275property("ngClass",Ke.tooltipClass)("@state",Ke._visibility),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(Ke.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:[$.tooltipState]},changeDetection:0}),ge})(),$e=(()=>{class ge{}return ge.\u0275fac=function(Me){return new(Me||ge)},ge.\u0275mod=u.\u0275\u0275defineNgModule({type:ge}),ge.\u0275inj=u.\u0275\u0275defineInjector({providers:[ot],imports:[[d.rt,m.CommonModule,i.U8,s.MatCommonModule],s.MatCommonModule,b.ZD]}),ge})()},6360:(je,_,l)=>{"use strict";l.r(_),l.d(_,{ANIMATION_MODULE_TYPE:()=>Vt,BrowserAnimationsModule:()=>Ni,NoopAnimationsModule:()=>Tt,\u0275AnimationRenderer:()=>In,\u0275AnimationRendererFactory:()=>Tn,\u0275BrowserAnimationBuilder:()=>R,\u0275BrowserAnimationFactory:()=>ie,\u0275InjectableAnimationEngine:()=>P});var i=l(5e3),d=l(2313),m=l(1777);function u(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function b(B){switch(B.length){case 0:return new m.ZN;case 1:return B[0];default:return new m.ZE(B)}}function T(B,c,f,I,j={},de={}){const Ne=[],Ue=[];let rt=-1,pt=null;if(I.forEach(Pt=>{const Ut=Pt.offset,Zt=Ut==rt,un=Zt&&pt||{};Object.keys(Pt).forEach(Jt=>{let tn=Jt,dn=Pt[Jt];if("offset"!==Jt)switch(tn=c.normalizePropertyName(tn,Ne),dn){case m.k1:dn=j[Jt];break;case m.l3:dn=de[Jt];break;default:dn=c.normalizeStyleValue(Jt,tn,dn,Ne)}un[tn]=dn}),Zt||Ue.push(un),pt=un,rt=Ut}),Ne.length){const Pt="\n - ";throw new Error(`Unable to animate due to the following errors:${Pt}${Ne.join(Pt)}`)}return Ue}function S(B,c,f,I){switch(c){case"start":B.onStart(()=>I(f&&g(f,"start",B)));break;case"done":B.onDone(()=>I(f&&g(f,"done",B)));break;case"destroy":B.onDestroy(()=>I(f&&g(f,"destroy",B)))}}function g(B,c,f){const I=f.totalTime,de=v(B.element,B.triggerName,B.fromState,B.toState,c||B.phaseName,null==I?B.totalTime:I,!!f.disabled),Ne=B._data;return null!=Ne&&(de._data=Ne),de}function v(B,c,f,I,j="",de=0,Ne){return{element:B,triggerName:c,fromState:f,toState:I,phaseName:j,totalTime:de,disabled:!!Ne}}function A(B,c,f){let I;return B instanceof Map?(I=B.get(c),I||B.set(c,I=f)):(I=B[c],I||(I=B[c]=f)),I}function O(B){const c=B.indexOf(":");return[B.substring(1,c),B.substr(c+1)]}let w=(B,c)=>!1,k=(B,c,f)=>[];(s()||"undefined"!=typeof Element)&&(w=u()?(B,c)=>{for(;c&&c!==document.documentElement;){if(c===B)return!0;c=c.parentNode||c.host}return!1}:(B,c)=>B.contains(c),k=(B,c,f)=>{let I=[];if(f){const j=B.querySelectorAll(c);for(let de=0;de<j.length;de++)I.push(j[de])}else{const j=B.querySelector(c);j&&I.push(j)}return I});let $=null,re=!1;function Te(B){$||($=function fe(){return"undefined"!=typeof document?document.body:null}()||{},re=!!$.style&&"WebkitAppearance"in $.style);let c=!0;return $.style&&!function me(B){return"ebkit"==B.substring(1,6)}(B)&&(c=B in $.style,!c&&re&&(c="Webkit"+B.charAt(0).toUpperCase()+B.substr(1)in $.style)),c}const _e=w,le=k;function Ee(B){const c={};return Object.keys(B).forEach(f=>{const I=f.replace(/([a-z])([A-Z])/g,"$1-$2");c[I]=B[f]}),c}let Fe=(()=>{class B{validateStyleProperty(f){return Te(f)}matchesElement(f,I){return!1}containsElement(f,I){return _e(f,I)}query(f,I,j){return le(f,I,j)}computeStyle(f,I,j){return j||""}animate(f,I,j,de,Ne,Ue=[],rt){return new m.ZN(j,de)}}return B.\u0275fac=function(f){return new(f||B)},B.\u0275prov=i.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac}),B})(),Je=(()=>{class B{}return B.NOOP=new Fe,B})();const X="ng-enter",ce="ng-leave",Se="ng-trigger",ne=".ng-trigger",$e="ng-animating",ge=".ng-animating";function Ze(B){if("number"==typeof B)return B;const c=B.match(/^(-?[\.\d]+)(m?s)/);return!c||c.length<2?0:Me(parseFloat(c[1]),c[2])}function Me(B,c){return"s"===c?1e3*B:B}function Ke(B,c,f){return B.hasOwnProperty("duration")?B:function mt(B,c,f){let j,de=0,Ne="";if("string"==typeof B){const Ue=B.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ue)return c.push(`The provided timing value "${B}" is invalid.`),{duration:0,delay:0,easing:""};j=Me(parseFloat(Ue[1]),Ue[2]);const rt=Ue[3];null!=rt&&(de=Me(parseFloat(rt),Ue[4]));const pt=Ue[5];pt&&(Ne=pt)}else j=B;if(!f){let Ue=!1,rt=c.length;j<0&&(c.push("Duration values below 0 are not allowed for this animation step."),Ue=!0),de<0&&(c.push("Delay values below 0 are not allowed for this animation step."),Ue=!0),Ue&&c.splice(rt,0,`The provided timing value "${B}" is invalid.`)}return{duration:j,delay:de,easing:Ne}}(B,c,f)}function Dt(B,c={}){return Object.keys(B).forEach(f=>{c[f]=B[f]}),c}function Ye(B,c,f={}){if(c)for(let I in B)f[I]=B[I];else Dt(B,f);return f}function Z(B,c,f){return f?c+":"+f+";":""}function pe(B){let c="";for(let f=0;f<B.style.length;f++){const I=B.style.item(f);c+=Z(0,I,B.style.getPropertyValue(I))}for(const f in B.style)B.style.hasOwnProperty(f)&&!f.startsWith("_")&&(c+=Z(0,ae(f),B.style[f]));B.setAttribute("style",c)}function we(B,c,f){B.style&&(Object.keys(c).forEach(I=>{const j=N(I);f&&!f.hasOwnProperty(I)&&(f[I]=B.style[j]),B.style[j]=c[I]}),s()&&pe(B))}function Re(B,c){B.style&&(Object.keys(c).forEach(f=>{const I=N(f);B.style[I]=""}),s()&&pe(B))}function ye(B){return Array.isArray(B)?1==B.length?B[0]:(0,m.vP)(B):B}const dt=new RegExp("{{\\s*(.+?)\\s*}}","g");function bt(B){let c=[];if("string"==typeof B){let f;for(;f=dt.exec(B);)c.push(f[1]);dt.lastIndex=0}return c}function Ot(B,c,f){const I=B.toString(),j=I.replace(dt,(de,Ne)=>{let Ue=c[Ne];return c.hasOwnProperty(Ne)||(f.push(`Please provide a value for the animation param ${Ne}`),Ue=""),Ue.toString()});return j==I?B:j}function lt(B){const c=[];let f=B.next();for(;!f.done;)c.push(f.value),f=B.next();return c}const Qe=/-+([a-z0-9])/g;function N(B){return B.replace(Qe,(...c)=>c[1].toUpperCase())}function ae(B){return B.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Oe(B,c){return 0===B||0===c}function ue(B,c,f){const I=Object.keys(f);if(I.length&&c.length){let de=c[0],Ne=[];if(I.forEach(Ue=>{de.hasOwnProperty(Ue)||Ne.push(Ue),de[Ue]=f[Ue]}),Ne.length)for(var j=1;j<c.length;j++){let Ue=c[j];Ne.forEach(function(rt){Ue[rt]=ve(B,rt)})}}return c}function De(B,c,f){switch(c.type){case 7:return B.visitTrigger(c,f);case 0:return B.visitState(c,f);case 1:return B.visitTransition(c,f);case 2:return B.visitSequence(c,f);case 3:return B.visitGroup(c,f);case 4:return B.visitAnimate(c,f);case 5:return B.visitKeyframes(c,f);case 6:return B.visitStyle(c,f);case 8:return B.visitReference(c,f);case 9:return B.visitAnimateChild(c,f);case 10:return B.visitAnimateRef(c,f);case 11:return B.visitQuery(c,f);case 12:return B.visitStagger(c,f);default:throw new Error(`Unable to resolve animation metadata node #${c.type}`)}}function ve(B,c){return window.getComputedStyle(B)[c]}function be(B,c){const f=[];return"string"==typeof B?B.split(/\s*,\s*/).forEach(I=>function Ge(B,c,f){if(":"==B[0]){const rt=function nt(B,c){switch(B){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(f,I)=>parseFloat(I)>parseFloat(f);case":decrement":return(f,I)=>parseFloat(I)<parseFloat(f);default:return c.push(`The transition alias value "${B}" is not supported`),"* => *"}}(B,f);if("function"==typeof rt)return void c.push(rt);B=rt}const I=B.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==I||I.length<4)return f.push(`The provided transition expression "${B}" is not supported`),c;const j=I[1],de=I[2],Ne=I[3];c.push(wt(j,Ne));"<"==de[0]&&!("*"==j&&"*"==Ne)&&c.push(wt(Ne,j))}(I,f,c)):f.push(B),f}const ht=new Set(["true","1"]),ft=new Set(["false","0"]);function wt(B,c){const f=ht.has(B)||ft.has(B),I=ht.has(c)||ft.has(c);return(j,de)=>{let Ne="*"==B||B==j,Ue="*"==c||c==de;return!Ne&&f&&"boolean"==typeof j&&(Ne=j?ht.has(B):ft.has(B)),!Ue&&I&&"boolean"==typeof de&&(Ue=de?ht.has(c):ft.has(c)),Ne&&Ue}}const en=new RegExp("s*:selfs*,?","g");function Bt(B,c,f){return new rn(B).build(c,f)}class rn{constructor(c){this._driver=c}build(c,f){const I=new bn(f);return this._resetContextStyleTimingState(I),De(this,ye(c),I)}_resetContextStyleTimingState(c){c.currentQuerySelector="",c.collectedStyles={},c.collectedStyles[""]={},c.currentTime=0}visitTrigger(c,f){let I=f.queryCount=0,j=f.depCount=0;const de=[],Ne=[];return"@"==c.name.charAt(0)&&f.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),c.definitions.forEach(Ue=>{if(this._resetContextStyleTimingState(f),0==Ue.type){const rt=Ue,pt=rt.name;pt.toString().split(/\s*,\s*/).forEach(Pt=>{rt.name=Pt,de.push(this.visitState(rt,f))}),rt.name=pt}else if(1==Ue.type){const rt=this.visitTransition(Ue,f);I+=rt.queryCount,j+=rt.depCount,Ne.push(rt)}else f.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:c.name,states:de,transitions:Ne,queryCount:I,depCount:j,options:null}}visitState(c,f){const I=this.visitStyle(c.styles,f),j=c.options&&c.options.params||null;if(I.containsDynamicStyles){const de=new Set,Ne=j||{};if(I.styles.forEach(Ue=>{if(on(Ue)){const rt=Ue;Object.keys(rt).forEach(pt=>{bt(rt[pt]).forEach(Pt=>{Ne.hasOwnProperty(Pt)||de.add(Pt)})})}}),de.size){const Ue=lt(de.values());f.errors.push(`state("${c.name}", ...) must define default values for all the following style substitutions: ${Ue.join(", ")}`)}}return{type:0,name:c.name,style:I,options:j?{params:j}:null}}visitTransition(c,f){f.queryCount=0,f.depCount=0;const I=De(this,ye(c.animation),f);return{type:1,matchers:be(c.expr,f.errors),animation:I,queryCount:f.queryCount,depCount:f.depCount,options:oe(c.options)}}visitSequence(c,f){return{type:2,steps:c.steps.map(I=>De(this,I,f)),options:oe(c.options)}}visitGroup(c,f){const I=f.currentTime;let j=0;const de=c.steps.map(Ne=>{f.currentTime=I;const Ue=De(this,Ne,f);return j=Math.max(j,f.currentTime),Ue});return f.currentTime=j,{type:3,steps:de,options:oe(c.options)}}visitAnimate(c,f){const I=function yn(B,c){let f=null;if(B.hasOwnProperty("duration"))f=B;else if("number"==typeof B)return W(Ke(B,c).duration,0,"");const I=B;if(I.split(/\s+/).some(de=>"{"==de.charAt(0)&&"{"==de.charAt(1))){const de=W(0,0,"");return de.dynamic=!0,de.strValue=I,de}return f=f||Ke(I,c),W(f.duration,f.delay,f.easing)}(c.timings,f.errors);f.currentAnimateTimings=I;let j,de=c.styles?c.styles:(0,m.oB)({});if(5==de.type)j=this.visitKeyframes(de,f);else{let Ne=c.styles,Ue=!1;if(!Ne){Ue=!0;const pt={};I.easing&&(pt.easing=I.easing),Ne=(0,m.oB)(pt)}f.currentTime+=I.duration+I.delay;const rt=this.visitStyle(Ne,f);rt.isEmptyStep=Ue,j=rt}return f.currentAnimateTimings=null,{type:4,timings:I,style:j,options:null}}visitStyle(c,f){const I=this._makeStyleAst(c,f);return this._validateStyleAst(I,f),I}_makeStyleAst(c,f){const I=[];Array.isArray(c.styles)?c.styles.forEach(Ne=>{"string"==typeof Ne?Ne==m.l3?I.push(Ne):f.errors.push(`The provided style string value ${Ne} is not allowed.`):I.push(Ne)}):I.push(c.styles);let j=!1,de=null;return I.forEach(Ne=>{if(on(Ne)){const Ue=Ne,rt=Ue.easing;if(rt&&(de=rt,delete Ue.easing),!j)for(let pt in Ue)if(Ue[pt].toString().indexOf("{{")>=0){j=!0;break}}}),{type:6,styles:I,easing:de,offset:c.offset,containsDynamicStyles:j,options:null}}_validateStyleAst(c,f){const I=f.currentAnimateTimings;let j=f.currentTime,de=f.currentTime;I&&de>0&&(de-=I.duration+I.delay),c.styles.forEach(Ne=>{"string"!=typeof Ne&&Object.keys(Ne).forEach(Ue=>{if(!this._driver.validateStyleProperty(Ue))return void f.errors.push(`The provided animation property "${Ue}" is not a supported CSS property for animations`);const rt=f.collectedStyles[f.currentQuerySelector],pt=rt[Ue];let Pt=!0;pt&&(de!=j&&de>=pt.startTime&&j<=pt.endTime&&(f.errors.push(`The CSS property "${Ue}" that exists between the times of "${pt.startTime}ms" and "${pt.endTime}ms" is also being animated in a parallel animation between the times of "${de}ms" and "${j}ms"`),Pt=!1),de=pt.startTime),Pt&&(rt[Ue]={startTime:de,endTime:j}),f.options&&function Xe(B,c,f){const I=c.params||{},j=bt(B);j.length&&j.forEach(de=>{I.hasOwnProperty(de)||f.push(`Unable to resolve the local animation param ${de} in the given list of values`)})}(Ne[Ue],f.options,f.errors)})})}visitKeyframes(c,f){const I={type:5,styles:[],options:null};if(!f.currentAnimateTimings)return f.errors.push("keyframes() must be placed inside of a call to animate()"),I;let de=0;const Ne=[];let Ue=!1,rt=!1,pt=0;const Pt=c.steps.map(ee=>{const H=this._makeStyleAst(ee,f);let Y=null!=H.offset?H.offset:function Qt(B){if("string"==typeof B)return null;let c=null;if(Array.isArray(B))B.forEach(f=>{if(on(f)&&f.hasOwnProperty("offset")){const I=f;c=parseFloat(I.offset),delete I.offset}});else if(on(B)&&B.hasOwnProperty("offset")){const f=B;c=parseFloat(f.offset),delete f.offset}return c}(H.styles),te=0;return null!=Y&&(de++,te=H.offset=Y),rt=rt||te<0||te>1,Ue=Ue||te<pt,pt=te,Ne.push(te),H});rt&&f.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),Ue&&f.errors.push("Please ensure that all keyframe offsets are in order");const Ut=c.steps.length;let Zt=0;de>0&&de<Ut?f.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==de&&(Zt=1/(Ut-1));const un=Ut-1,Jt=f.currentTime,tn=f.currentAnimateTimings,dn=tn.duration;return Pt.forEach((ee,H)=>{const Y=Zt>0?H==un?1:Zt*H:Ne[H],te=Y*dn;f.currentTime=Jt+tn.delay+te,tn.duration=te,this._validateStyleAst(ee,f),ee.offset=Y,I.styles.push(ee)}),I}visitReference(c,f){return{type:8,animation:De(this,ye(c.animation),f),options:oe(c.options)}}visitAnimateChild(c,f){return f.depCount++,{type:9,options:oe(c.options)}}visitAnimateRef(c,f){return{type:10,animation:this.visitReference(c.animation,f),options:oe(c.options)}}visitQuery(c,f){const I=f.currentQuerySelector,j=c.options||{};f.queryCount++,f.currentQuery=c;const[de,Ne]=function zt(B){const c=!!B.split(/\s*,\s*/).find(f=>":self"==f);return c&&(B=B.replace(en,"")),B=B.replace(/@\*/g,ne).replace(/@\w+/g,f=>ne+"-"+f.substr(1)).replace(/:animating/g,ge),[B,c]}(c.selector);f.currentQuerySelector=I.length?I+" "+de:de,A(f.collectedStyles,f.currentQuerySelector,{});const Ue=De(this,ye(c.animation),f);return f.currentQuery=null,f.currentQuerySelector=I,{type:11,selector:de,limit:j.limit||0,optional:!!j.optional,includeSelf:Ne,animation:Ue,originalSelector:c.selector,options:oe(c.options)}}visitStagger(c,f){f.currentQuery||f.errors.push("stagger() can only be used inside of query()");const I="full"===c.timings?{duration:0,delay:0,easing:"full"}:Ke(c.timings,f.errors,!0);return{type:12,animation:De(this,ye(c.animation),f),timings:I,options:null}}}class bn{constructor(c){this.errors=c,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 on(B){return!Array.isArray(B)&&"object"==typeof B}function oe(B){return B?(B=Dt(B)).params&&(B.params=function Mt(B){return B?Dt(B):null}(B.params)):B={},B}function W(B,c,f){return{duration:B,delay:c,easing:f}}function p(B,c,f,I,j,de,Ne=null,Ue=!1){return{type:1,element:B,keyframes:c,preStyleProps:f,postStyleProps:I,duration:j,delay:de,totalTime:j+de,easing:Ne,subTimeline:Ue}}class C{constructor(){this._map=new Map}get(c){return this._map.get(c)||[]}append(c,f){let I=this._map.get(c);I||this._map.set(c,I=[]),I.push(...f)}has(c){return this._map.has(c)}clear(){this._map.clear()}}const et=new RegExp(":enter","g"),Wt=new RegExp(":leave","g");function pn(B,c,f,I,j,de={},Ne={},Ue,rt,pt=[]){return(new Le).buildKeyframes(B,c,f,I,j,de,Ne,Ue,rt,pt)}class Le{buildKeyframes(c,f,I,j,de,Ne,Ue,rt,pt,Pt=[]){pt=pt||new C;const Ut=new he(c,f,pt,j,de,Pt,[]);Ut.options=rt,Ut.currentTimeline.setStyles([Ne],null,Ut.errors,rt),De(this,I,Ut);const Zt=Ut.timelines.filter(un=>un.containsAnimation());if(Zt.length&&Object.keys(Ue).length){const un=Zt[Zt.length-1];un.allowOnlyTimelineStyles()||un.setStyles([Ue],null,Ut.errors,rt)}return Zt.length?Zt.map(un=>un.buildKeyframes()):[p(f,[],[],[],0,0,"",!1)]}visitTrigger(c,f){}visitState(c,f){}visitTransition(c,f){}visitAnimateChild(c,f){const I=f.subInstructions.get(f.element);if(I){const j=f.createSubContext(c.options),de=f.currentTimeline.currentTime,Ne=this._visitSubInstructions(I,j,j.options);de!=Ne&&f.transformIntoNewTimeline(Ne)}f.previousNode=c}visitAnimateRef(c,f){const I=f.createSubContext(c.options);I.transformIntoNewTimeline(),this.visitReference(c.animation,I),f.transformIntoNewTimeline(I.currentTimeline.currentTime),f.previousNode=c}_visitSubInstructions(c,f,I){let de=f.currentTimeline.currentTime;const Ne=null!=I.duration?Ze(I.duration):null,Ue=null!=I.delay?Ze(I.delay):null;return 0!==Ne&&c.forEach(rt=>{const pt=f.appendInstructionToTimeline(rt,Ne,Ue);de=Math.max(de,pt.duration+pt.delay)}),de}visitReference(c,f){f.updateOptions(c.options,!0),De(this,c.animation,f),f.previousNode=c}visitSequence(c,f){const I=f.subContextCount;let j=f;const de=c.options;if(de&&(de.params||de.delay)&&(j=f.createSubContext(de),j.transformIntoNewTimeline(),null!=de.delay)){6==j.previousNode.type&&(j.currentTimeline.snapshotCurrentStyles(),j.previousNode=Ve);const Ne=Ze(de.delay);j.delayNextStep(Ne)}c.steps.length&&(c.steps.forEach(Ne=>De(this,Ne,j)),j.currentTimeline.applyStylesToKeyframe(),j.subContextCount>I&&j.transformIntoNewTimeline()),f.previousNode=c}visitGroup(c,f){const I=[];let j=f.currentTimeline.currentTime;const de=c.options&&c.options.delay?Ze(c.options.delay):0;c.steps.forEach(Ne=>{const Ue=f.createSubContext(c.options);de&&Ue.delayNextStep(de),De(this,Ne,Ue),j=Math.max(j,Ue.currentTimeline.currentTime),I.push(Ue.currentTimeline)}),I.forEach(Ne=>f.currentTimeline.mergeTimelineCollectedStyles(Ne)),f.transformIntoNewTimeline(j),f.previousNode=c}_visitTiming(c,f){if(c.dynamic){const I=c.strValue;return Ke(f.params?Ot(I,f.params,f.errors):I,f.errors)}return{duration:c.duration,delay:c.delay,easing:c.easing}}visitAnimate(c,f){const I=f.currentAnimateTimings=this._visitTiming(c.timings,f),j=f.currentTimeline;I.delay&&(f.incrementTime(I.delay),j.snapshotCurrentStyles());const de=c.style;5==de.type?this.visitKeyframes(de,f):(f.incrementTime(I.duration),this.visitStyle(de,f),j.applyStylesToKeyframe()),f.currentAnimateTimings=null,f.previousNode=c}visitStyle(c,f){const I=f.currentTimeline,j=f.currentAnimateTimings;!j&&I.getCurrentStyleProperties().length&&I.forwardFrame();const de=j&&j.easing||c.easing;c.isEmptyStep?I.applyEmptyStep(de):I.setStyles(c.styles,de,f.errors,f.options),f.previousNode=c}visitKeyframes(c,f){const I=f.currentAnimateTimings,j=f.currentTimeline.duration,de=I.duration,Ue=f.createSubContext().currentTimeline;Ue.easing=I.easing,c.styles.forEach(rt=>{Ue.forwardTime((rt.offset||0)*de),Ue.setStyles(rt.styles,rt.easing,f.errors,f.options),Ue.applyStylesToKeyframe()}),f.currentTimeline.mergeTimelineCollectedStyles(Ue),f.transformIntoNewTimeline(j+de),f.previousNode=c}visitQuery(c,f){const I=f.currentTimeline.currentTime,j=c.options||{},de=j.delay?Ze(j.delay):0;de&&(6===f.previousNode.type||0==I&&f.currentTimeline.getCurrentStyleProperties().length)&&(f.currentTimeline.snapshotCurrentStyles(),f.previousNode=Ve);let Ne=I;const Ue=f.invokeQuery(c.selector,c.originalSelector,c.limit,c.includeSelf,!!j.optional,f.errors);f.currentQueryTotal=Ue.length;let rt=null;Ue.forEach((pt,Pt)=>{f.currentQueryIndex=Pt;const Ut=f.createSubContext(c.options,pt);de&&Ut.delayNextStep(de),pt===f.element&&(rt=Ut.currentTimeline),De(this,c.animation,Ut),Ut.currentTimeline.applyStylesToKeyframe(),Ne=Math.max(Ne,Ut.currentTimeline.currentTime)}),f.currentQueryIndex=0,f.currentQueryTotal=0,f.transformIntoNewTimeline(Ne),rt&&(f.currentTimeline.mergeTimelineCollectedStyles(rt),f.currentTimeline.snapshotCurrentStyles()),f.previousNode=c}visitStagger(c,f){const I=f.parentContext,j=f.currentTimeline,de=c.timings,Ne=Math.abs(de.duration),Ue=Ne*(f.currentQueryTotal-1);let rt=Ne*f.currentQueryIndex;switch(de.duration<0?"reverse":de.easing){case"reverse":rt=Ue-rt;break;case"full":rt=I.currentStaggerTime}const Pt=f.currentTimeline;rt&&Pt.delayNextStep(rt);const Ut=Pt.currentTime;De(this,c.animation,f),f.previousNode=c,I.currentStaggerTime=j.currentTime-Ut+(j.startTime-I.currentTimeline.startTime)}}const Ve={};class he{constructor(c,f,I,j,de,Ne,Ue,rt){this._driver=c,this.element=f,this.subInstructions=I,this._enterClassName=j,this._leaveClassName=de,this.errors=Ne,this.timelines=Ue,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ve,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=rt||new He(this._driver,f,0),Ue.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(c,f){if(!c)return;const I=c;let j=this.options;null!=I.duration&&(j.duration=Ze(I.duration)),null!=I.delay&&(j.delay=Ze(I.delay));const de=I.params;if(de){let Ne=j.params;Ne||(Ne=this.options.params={}),Object.keys(de).forEach(Ue=>{(!f||!Ne.hasOwnProperty(Ue))&&(Ne[Ue]=Ot(de[Ue],Ne,this.errors))})}}_copyOptions(){const c={};if(this.options){const f=this.options.params;if(f){const I=c.params={};Object.keys(f).forEach(j=>{I[j]=f[j]})}}return c}createSubContext(c=null,f,I){const j=f||this.element,de=new he(this._driver,j,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(j,I||0));return de.previousNode=this.previousNode,de.currentAnimateTimings=this.currentAnimateTimings,de.options=this._copyOptions(),de.updateOptions(c),de.currentQueryIndex=this.currentQueryIndex,de.currentQueryTotal=this.currentQueryTotal,de.parentContext=this,this.subContextCount++,de}transformIntoNewTimeline(c){return this.previousNode=Ve,this.currentTimeline=this.currentTimeline.fork(this.element,c),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(c,f,I){const j={duration:null!=f?f:c.duration,delay:this.currentTimeline.currentTime+(null!=I?I:0)+c.delay,easing:""},de=new ut(this._driver,c.element,c.keyframes,c.preStyleProps,c.postStyleProps,j,c.stretchStartingKeyframe);return this.timelines.push(de),j}incrementTime(c){this.currentTimeline.forwardTime(this.currentTimeline.duration+c)}delayNextStep(c){c>0&&this.currentTimeline.delayNextStep(c)}invokeQuery(c,f,I,j,de,Ne){let Ue=[];if(j&&Ue.push(this.element),c.length>0){c=(c=c.replace(et,"."+this._enterClassName)).replace(Wt,"."+this._leaveClassName);let pt=this._driver.query(this.element,c,1!=I);0!==I&&(pt=I<0?pt.slice(pt.length+I,pt.length):pt.slice(0,I)),Ue.push(...pt)}return!de&&0==Ue.length&&Ne.push(`\`query("${f}")\` returned zero elements. (Use \`query("${f}", { optional: true })\` if you wish to allow this.)`),Ue}}class He{constructor(c,f,I,j){this._driver=c,this.element=f,this.startTime=I,this._elementTimelineStylesLookup=j,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(f),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(f,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(c){const f=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||f?(this.forwardTime(this.currentTime+c),f&&this.snapshotCurrentStyles()):this.startTime+=c}fork(c,f){return this.applyStylesToKeyframe(),new He(this._driver,c,f||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(c){this.applyStylesToKeyframe(),this.duration=c,this._loadKeyframe()}_updateStyle(c,f){this._localTimelineStyles[c]=f,this._globalTimelineStyles[c]=f,this._styleSummary[c]={time:this.currentTime,value:f}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(c){c&&(this._previousKeyframe.easing=c),Object.keys(this._globalTimelineStyles).forEach(f=>{this._backFill[f]=this._globalTimelineStyles[f]||m.l3,this._currentKeyframe[f]=m.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(c,f,I,j){f&&(this._previousKeyframe.easing=f);const de=j&&j.params||{},Ne=function kt(B,c){const f={};let I;return B.forEach(j=>{"*"===j?(I=I||Object.keys(c),I.forEach(de=>{f[de]=m.l3})):Ye(j,!1,f)}),f}(c,this._globalTimelineStyles);Object.keys(Ne).forEach(Ue=>{const rt=Ot(Ne[Ue],de,I);this._pendingStyles[Ue]=rt,this._localTimelineStyles.hasOwnProperty(Ue)||(this._backFill[Ue]=this._globalTimelineStyles.hasOwnProperty(Ue)?this._globalTimelineStyles[Ue]:m.l3),this._updateStyle(Ue,rt)})}applyStylesToKeyframe(){const c=this._pendingStyles,f=Object.keys(c);0!=f.length&&(this._pendingStyles={},f.forEach(I=>{this._currentKeyframe[I]=c[I]}),Object.keys(this._localTimelineStyles).forEach(I=>{this._currentKeyframe.hasOwnProperty(I)||(this._currentKeyframe[I]=this._localTimelineStyles[I])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(c=>{const f=this._localTimelineStyles[c];this._pendingStyles[c]=f,this._updateStyle(c,f)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const c=[];for(let f in this._currentKeyframe)c.push(f);return c}mergeTimelineCollectedStyles(c){Object.keys(c._styleSummary).forEach(f=>{const I=this._styleSummary[f],j=c._styleSummary[f];(!I||j.time>I.time)&&this._updateStyle(f,j.value)})}buildKeyframes(){this.applyStylesToKeyframe();const c=new Set,f=new Set,I=1===this._keyframes.size&&0===this.duration;let j=[];this._keyframes.forEach((Ue,rt)=>{const pt=Ye(Ue,!0);Object.keys(pt).forEach(Pt=>{const Ut=pt[Pt];Ut==m.k1?c.add(Pt):Ut==m.l3&&f.add(Pt)}),I||(pt.offset=rt/this.duration),j.push(pt)});const de=c.size?lt(c.values()):[],Ne=f.size?lt(f.values()):[];if(I){const Ue=j[0],rt=Dt(Ue);Ue.offset=0,rt.offset=1,j=[Ue,rt]}return p(this.element,j,de,Ne,this.duration,this.startTime,this.easing,!1)}}class ut extends He{constructor(c,f,I,j,de,Ne,Ue=!1){super(c,f,Ne.delay),this.keyframes=I,this.preStyleProps=j,this.postStyleProps=de,this._stretchStartingKeyframe=Ue,this.timings={duration:Ne.duration,delay:Ne.delay,easing:Ne.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let c=this.keyframes,{delay:f,duration:I,easing:j}=this.timings;if(this._stretchStartingKeyframe&&f){const de=[],Ne=I+f,Ue=f/Ne,rt=Ye(c[0],!1);rt.offset=0,de.push(rt);const pt=Ye(c[0],!1);pt.offset=Lt(Ue),de.push(pt);const Pt=c.length-1;for(let Ut=1;Ut<=Pt;Ut++){let Zt=Ye(c[Ut],!1);Zt.offset=Lt((f+Zt.offset*I)/Ne),de.push(Zt)}I=Ne,f=0,j="",c=de}return p(this.element,c,this.preStyleProps,this.postStyleProps,I,f,j,!0)}}function Lt(B,c=3){const f=Math.pow(10,c-1);return Math.round(B*f)/f}class Dn{}class di extends Dn{normalizePropertyName(c,f){return N(c)}normalizeStyleValue(c,f,I,j){let de="";const Ne=I.toString().trim();if(Jn[f]&&0!==I&&"0"!==I)if("number"==typeof I)de="px";else{const Ue=I.match(/^[+-]?[\d\.]+([a-z]*)$/);Ue&&0==Ue[1].length&&j.push(`Please provide a CSS unit value for ${c}:${I}`)}return Ne+de}}const Jn=(()=>function Nn(B){const c={};return B.forEach(f=>c[f]=!0),c}("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 Wn(B,c,f,I,j,de,Ne,Ue,rt,pt,Pt,Ut,Zt){return{type:0,element:B,triggerName:c,isRemovalTransition:j,fromState:f,fromStyles:de,toState:I,toStyles:Ne,timelines:Ue,queriedElements:rt,preStyleProps:pt,postStyleProps:Pt,totalTime:Ut,errors:Zt}}const Bn={};class V{constructor(c,f,I){this._triggerName=c,this.ast=f,this._stateStyles=I}match(c,f,I,j){return function Ie(B,c,f,I,j){return B.some(de=>de(c,f,I,j))}(this.ast.matchers,c,f,I,j)}buildStyles(c,f,I){const j=this._stateStyles["*"],de=this._stateStyles[c],Ne=j?j.buildStyles(f,I):{};return de?de.buildStyles(f,I):Ne}build(c,f,I,j,de,Ne,Ue,rt,pt,Pt){const Ut=[],Zt=this.ast.options&&this.ast.options.params||Bn,Jt=this.buildStyles(I,Ue&&Ue.params||Bn,Ut),tn=rt&&rt.params||Bn,dn=this.buildStyles(j,tn,Ut),ee=new Set,H=new Map,Y=new Map,te="void"===j,xe={params:Object.assign(Object.assign({},Zt),tn)},Be=Pt?[]:pn(c,f,this.ast.animation,de,Ne,Jt,dn,xe,pt,Ut);let tt=0;if(Be.forEach(_t=>{tt=Math.max(_t.duration+_t.delay,tt)}),Ut.length)return Wn(f,this._triggerName,I,j,te,Jt,dn,[],[],H,Y,tt,Ut);Be.forEach(_t=>{const $t=_t.element,Gt=A(H,$t,{});_t.preStyleProps.forEach(an=>Gt[an]=!0);const _n=A(Y,$t,{});_t.postStyleProps.forEach(an=>_n[an]=!0),$t!==f&&ee.add($t)});const yt=lt(ee.values());return Wn(f,this._triggerName,I,j,te,Jt,dn,Be,yt,H,Y,tt)}}class z{constructor(c,f,I){this.styles=c,this.defaultParams=f,this.normalizer=I}buildStyles(c,f){const I={},j=Dt(this.defaultParams);return Object.keys(c).forEach(de=>{const Ne=c[de];null!=Ne&&(j[de]=Ne)}),this.styles.styles.forEach(de=>{if("string"!=typeof de){const Ne=de;Object.keys(Ne).forEach(Ue=>{let rt=Ne[Ue];rt.length>1&&(rt=Ot(rt,j,f));const pt=this.normalizer.normalizePropertyName(Ue,f);rt=this.normalizer.normalizeStyleValue(Ue,pt,rt,f),I[pt]=rt})}}),I}}class qe{constructor(c,f,I){this.name=c,this.ast=f,this._normalizer=I,this.transitionFactories=[],this.states={},f.states.forEach(j=>{this.states[j.name]=new z(j.style,j.options&&j.options.params||{},I)}),St(this.states,"true","1"),St(this.states,"false","0"),f.transitions.forEach(j=>{this.transitionFactories.push(new V(c,j,this.states))}),this.fallbackTransition=function st(B,c,f){return new V(B,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ne,Ue)=>!0],options:null,queryCount:0,depCount:0},c)}(c,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(c,f,I,j){return this.transitionFactories.find(Ne=>Ne.match(c,f,I,j))||null}matchStyles(c,f,I){return this.fallbackTransition.buildStyles(c,f,I)}}function St(B,c,f){B.hasOwnProperty(c)?B.hasOwnProperty(f)||(B[f]=B[c]):B.hasOwnProperty(f)&&(B[c]=B[f])}const Nt=new C;class Xt{constructor(c,f,I){this.bodyNode=c,this._driver=f,this._normalizer=I,this._animations={},this._playersById={},this.players=[]}register(c,f){const I=[],j=Bt(this._driver,f,I);if(I.length)throw new Error(`Unable to build the animation due to the following errors: ${I.join("\n")}`);this._animations[c]=j}_buildPlayer(c,f,I){const j=c.element,de=T(0,this._normalizer,0,c.keyframes,f,I);return this._driver.animate(j,de,c.duration,c.delay,c.easing,[],!0)}create(c,f,I={}){const j=[],de=this._animations[c];let Ne;const Ue=new Map;if(de?(Ne=pn(this._driver,f,de,X,ce,{},{},I,Nt,j),Ne.forEach(Pt=>{const Ut=A(Ue,Pt.element,{});Pt.postStyleProps.forEach(Zt=>Ut[Zt]=null)})):(j.push("The requested animation doesn't exist or has already been destroyed"),Ne=[]),j.length)throw new Error(`Unable to create the animation due to the following errors: ${j.join("\n")}`);Ue.forEach((Pt,Ut)=>{Object.keys(Pt).forEach(Zt=>{Pt[Zt]=this._driver.computeStyle(Ut,Zt,m.l3)})});const pt=b(Ne.map(Pt=>{const Ut=Ue.get(Pt.element);return this._buildPlayer(Pt,{},Ut)}));return this._playersById[c]=pt,pt.onDestroy(()=>this.destroy(c)),this.players.push(pt),pt}destroy(c){const f=this._getPlayer(c);f.destroy(),delete this._playersById[c];const I=this.players.indexOf(f);I>=0&&this.players.splice(I,1)}_getPlayer(c){const f=this._playersById[c];if(!f)throw new Error(`Unable to find the timeline player referenced by ${c}`);return f}listen(c,f,I,j){const de=v(f,"","","");return S(this._getPlayer(c),I,de,j),()=>{}}command(c,f,I,j){if("register"==I)return void this.register(c,j[0]);if("create"==I)return void this.create(c,f,j[0]||{});const de=this._getPlayer(c);switch(I){case"play":de.play();break;case"pause":de.pause();break;case"reset":de.reset();break;case"restart":de.restart();break;case"finish":de.finish();break;case"init":de.init();break;case"setPosition":de.setPosition(parseFloat(j[0]));break;case"destroy":this.destroy(c)}}}const vn="ng-animate-queued",On="ng-animate-disabled",Sn=[],kn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ai={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},xn="__ng_removed";class mn{constructor(c,f=""){this.namespaceId=f;const I=c&&c.hasOwnProperty("value");if(this.value=function hi(B){return null!=B?B:null}(I?c.value:c),I){const de=Dt(c);delete de.value,this.options=de}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(c){const f=c.params;if(f){const I=this.options.params;Object.keys(f).forEach(j=>{null==I[j]&&(I[j]=f[j])})}}}const ni="void",li=new mn(ni);class Kn{constructor(c,f,I){this.id=c,this.hostElement=f,this._engine=I,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+c,Zn(f,this._hostClassName)}listen(c,f,I,j){if(!this._triggers.hasOwnProperty(f))throw new Error(`Unable to listen on the animation trigger event "${I}" because the animation trigger "${f}" doesn't exist!`);if(null==I||0==I.length)throw new Error(`Unable to listen on the animation trigger "${f}" because the provided event is undefined!`);if(!function Sr(B){return"start"==B||"done"==B}(I))throw new Error(`The provided animation trigger event "${I}" for the animation trigger "${f}" is not supported!`);const de=A(this._elementListeners,c,[]),Ne={name:f,phase:I,callback:j};de.push(Ne);const Ue=A(this._engine.statesByElement,c,{});return Ue.hasOwnProperty(f)||(Zn(c,Se),Zn(c,Se+"-"+f),Ue[f]=li),()=>{this._engine.afterFlush(()=>{const rt=de.indexOf(Ne);rt>=0&&de.splice(rt,1),this._triggers[f]||delete Ue[f]})}}register(c,f){return!this._triggers[c]&&(this._triggers[c]=f,!0)}_getTrigger(c){const f=this._triggers[c];if(!f)throw new Error(`The provided animation trigger "${c}" has not been registered!`);return f}trigger(c,f,I,j=!0){const de=this._getTrigger(f),Ne=new Ci(this.id,f,c);let Ue=this._engine.statesByElement.get(c);Ue||(Zn(c,Se),Zn(c,Se+"-"+f),this._engine.statesByElement.set(c,Ue={}));let rt=Ue[f];const pt=new mn(I,this.id);if(!(I&&I.hasOwnProperty("value"))&&rt&&pt.absorbOptions(rt.options),Ue[f]=pt,rt||(rt=li),pt.value!==ni&&rt.value===pt.value){if(!function Ir(B,c){const f=Object.keys(B),I=Object.keys(c);if(f.length!=I.length)return!1;for(let j=0;j<f.length;j++){const de=f[j];if(!c.hasOwnProperty(de)||B[de]!==c[de])return!1}return!0}(rt.params,pt.params)){const tn=[],dn=de.matchStyles(rt.value,rt.params,tn),ee=de.matchStyles(pt.value,pt.params,tn);tn.length?this._engine.reportError(tn):this._engine.afterFlush(()=>{Re(c,dn),we(c,ee)})}return}const Zt=A(this._engine.playersByElement,c,[]);Zt.forEach(tn=>{tn.namespaceId==this.id&&tn.triggerName==f&&tn.queued&&tn.destroy()});let un=de.matchTransition(rt.value,pt.value,c,pt.params),Jt=!1;if(!un){if(!j)return;un=de.fallbackTransition,Jt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:f,transition:un,fromState:rt,toState:pt,player:Ne,isFallbackTransition:Jt}),Jt||(Zn(c,vn),Ne.onStart(()=>{Ei(c,vn)})),Ne.onDone(()=>{let tn=this.players.indexOf(Ne);tn>=0&&this.players.splice(tn,1);const dn=this._engine.playersByElement.get(c);if(dn){let ee=dn.indexOf(Ne);ee>=0&&dn.splice(ee,1)}}),this.players.push(Ne),Zt.push(Ne),Ne}deregister(c){delete this._triggers[c],this._engine.statesByElement.forEach((f,I)=>{delete f[c]}),this._elementListeners.forEach((f,I)=>{this._elementListeners.set(I,f.filter(j=>j.name!=c))})}clearElementCache(c){this._engine.statesByElement.delete(c),this._elementListeners.delete(c);const f=this._engine.playersByElement.get(c);f&&(f.forEach(I=>I.destroy()),this._engine.playersByElement.delete(c))}_signalRemovalForInnerTriggers(c,f){const I=this._engine.driver.query(c,ne,!0);I.forEach(j=>{if(j[xn])return;const de=this._engine.fetchNamespacesByElement(j);de.size?de.forEach(Ne=>Ne.triggerLeaveAnimation(j,f,!1,!0)):this.clearElementCache(j)}),this._engine.afterFlushAnimationsDone(()=>I.forEach(j=>this.clearElementCache(j)))}triggerLeaveAnimation(c,f,I,j){const de=this._engine.statesByElement.get(c),Ne=new Map;if(de){const Ue=[];if(Object.keys(de).forEach(rt=>{if(Ne.set(rt,de[rt].value),this._triggers[rt]){const pt=this.trigger(c,rt,ni,j);pt&&Ue.push(pt)}}),Ue.length)return this._engine.markElementAsRemoved(this.id,c,!0,f,Ne),I&&b(Ue).onDone(()=>this._engine.processLeaveNode(c)),!0}return!1}prepareLeaveAnimationListeners(c){const f=this._elementListeners.get(c),I=this._engine.statesByElement.get(c);if(f&&I){const j=new Set;f.forEach(de=>{const Ne=de.name;if(j.has(Ne))return;j.add(Ne);const rt=this._triggers[Ne].fallbackTransition,pt=I[Ne]||li,Pt=new mn(ni),Ut=new Ci(this.id,Ne,c);this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:Ne,transition:rt,fromState:pt,toState:Pt,player:Ut,isFallbackTransition:!0})})}}removeNode(c,f){const I=this._engine;if(c.childElementCount&&this._signalRemovalForInnerTriggers(c,f),this.triggerLeaveAnimation(c,f,!0))return;let j=!1;if(I.totalAnimations){const de=I.players.length?I.playersByQueriedElement.get(c):[];if(de&&de.length)j=!0;else{let Ne=c;for(;Ne=Ne.parentNode;)if(I.statesByElement.get(Ne)){j=!0;break}}}if(this.prepareLeaveAnimationListeners(c),j)I.markElementAsRemoved(this.id,c,!1,f);else{const de=c[xn];(!de||de===kn)&&(I.afterFlush(()=>this.clearElementCache(c)),I.destroyInnerAnimations(c),I._onRemovalComplete(c,f))}}insertNode(c,f){Zn(c,this._hostClassName)}drainQueuedTransitions(c){const f=[];return this._queue.forEach(I=>{const j=I.player;if(j.destroyed)return;const de=I.element,Ne=this._elementListeners.get(de);Ne&&Ne.forEach(Ue=>{if(Ue.name==I.triggerName){const rt=v(de,I.triggerName,I.fromState.value,I.toState.value);rt._data=c,S(I.player,Ue.phase,rt,Ue.callback)}}),j.markedForDestroy?this._engine.afterFlush(()=>{j.destroy()}):f.push(I)}),this._queue=[],f.sort((I,j)=>{const de=I.transition.ast.depCount,Ne=j.transition.ast.depCount;return 0==de||0==Ne?de-Ne:this._engine.driver.containsElement(I.element,j.element)?1:-1})}destroy(c){this.players.forEach(f=>f.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,c)}elementContainsData(c){let f=!1;return this._elementListeners.has(c)&&(f=!0),f=!!this._queue.find(I=>I.element===c)||f,f}}class Gn{constructor(c,f,I){this.bodyNode=c,this.driver=f,this._normalizer=I,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=(j,de)=>{}}_onRemovalComplete(c,f){this.onRemovalComplete(c,f)}get queuedPlayers(){const c=[];return this._namespaceList.forEach(f=>{f.players.forEach(I=>{I.queued&&c.push(I)})}),c}createNamespace(c,f){const I=new Kn(c,f,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,f)?this._balanceNamespaceList(I,f):(this.newHostElements.set(f,I),this.collectEnterElement(f)),this._namespaceLookup[c]=I}_balanceNamespaceList(c,f){const I=this._namespaceList.length-1;if(I>=0){let j=!1;for(let de=I;de>=0;de--)if(this.driver.containsElement(this._namespaceList[de].hostElement,f)){this._namespaceList.splice(de+1,0,c),j=!0;break}j||this._namespaceList.splice(0,0,c)}else this._namespaceList.push(c);return this.namespacesByHostElement.set(f,c),c}register(c,f){let I=this._namespaceLookup[c];return I||(I=this.createNamespace(c,f)),I}registerTrigger(c,f,I){let j=this._namespaceLookup[c];j&&j.register(f,I)&&this.totalAnimations++}destroy(c,f){if(!c)return;const I=this._fetchNamespace(c);this.afterFlush(()=>{this.namespacesByHostElement.delete(I.hostElement),delete this._namespaceLookup[c];const j=this._namespaceList.indexOf(I);j>=0&&this._namespaceList.splice(j,1)}),this.afterFlushAnimationsDone(()=>I.destroy(f))}_fetchNamespace(c){return this._namespaceLookup[c]}fetchNamespacesByElement(c){const f=new Set,I=this.statesByElement.get(c);if(I){const j=Object.keys(I);for(let de=0;de<j.length;de++){const Ne=I[j[de]].namespaceId;if(Ne){const Ue=this._fetchNamespace(Ne);Ue&&f.add(Ue)}}}return f}trigger(c,f,I,j){if(zn(f)){const de=this._fetchNamespace(c);if(de)return de.trigger(f,I,j),!0}return!1}insertNode(c,f,I,j){if(!zn(f))return;const de=f[xn];if(de&&de.setForRemoval){de.setForRemoval=!1,de.setForMove=!0;const Ne=this.collectedLeaveElements.indexOf(f);Ne>=0&&this.collectedLeaveElements.splice(Ne,1)}if(c){const Ne=this._fetchNamespace(c);Ne&&Ne.insertNode(f,I)}j&&this.collectEnterElement(f)}collectEnterElement(c){this.collectedEnterElements.push(c)}markElementAsDisabled(c,f){f?this.disabledNodes.has(c)||(this.disabledNodes.add(c),Zn(c,On)):this.disabledNodes.has(c)&&(this.disabledNodes.delete(c),Ei(c,On))}removeNode(c,f,I,j){if(zn(f)){const de=c?this._fetchNamespace(c):null;if(de?de.removeNode(f,j):this.markElementAsRemoved(c,f,!1,j),I){const Ne=this.namespacesByHostElement.get(f);Ne&&Ne.id!==c&&Ne.removeNode(f,j)}}else this._onRemovalComplete(f,j)}markElementAsRemoved(c,f,I,j,de){this.collectedLeaveElements.push(f),f[xn]={namespaceId:c,setForRemoval:j,hasAnimation:I,removedBeforeQueried:!1,previousTriggersValues:de}}listen(c,f,I,j,de){return zn(f)?this._fetchNamespace(c).listen(f,I,j,de):()=>{}}_buildInstruction(c,f,I,j,de){return c.transition.build(this.driver,c.element,c.fromState.value,c.toState.value,I,j,c.fromState.options,c.toState.options,f,de)}destroyInnerAnimations(c){let f=this.driver.query(c,ne,!0);f.forEach(I=>this.destroyActiveAnimationsForElement(I)),0!=this.playersByQueriedElement.size&&(f=this.driver.query(c,ge,!0),f.forEach(I=>this.finishActiveQueriedAnimationOnElement(I)))}destroyActiveAnimationsForElement(c){const f=this.playersByElement.get(c);f&&f.forEach(I=>{I.queued?I.markedForDestroy=!0:I.destroy()})}finishActiveQueriedAnimationOnElement(c){const f=this.playersByQueriedElement.get(c);f&&f.forEach(I=>I.finish())}whenRenderingDone(){return new Promise(c=>{if(this.players.length)return b(this.players).onDone(()=>c());c()})}processLeaveNode(c){var f;const I=c[xn];if(I&&I.setForRemoval){if(c[xn]=kn,I.namespaceId){this.destroyInnerAnimations(c);const j=this._fetchNamespace(I.namespaceId);j&&j.clearElementCache(c)}this._onRemovalComplete(c,I.setForRemoval)}(null===(f=c.classList)||void 0===f?void 0:f.contains(On))&&this.markElementAsDisabled(c,!1),this.driver.query(c,".ng-animate-disabled",!0).forEach(j=>{this.markElementAsDisabled(j,!1)})}flush(c=-1){let f=[];if(this.newHostElements.size&&(this.newHostElements.forEach((I,j)=>this._balanceNamespaceList(I,j)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let I=0;I<this.collectedEnterElements.length;I++)Zn(this.collectedEnterElements[I],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const I=[];try{f=this._flushAnimations(I,c)}finally{for(let j=0;j<I.length;j++)I[j]()}}else for(let I=0;I<this.collectedLeaveElements.length;I++)this.processLeaveNode(this.collectedLeaveElements[I]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(I=>I()),this._flushFns=[],this._whenQuietFns.length){const I=this._whenQuietFns;this._whenQuietFns=[],f.length?b(f).onDone(()=>{I.forEach(j=>j())}):I.forEach(j=>j())}}reportError(c){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${c.join("\n")}`)}_flushAnimations(c,f){const I=new C,j=[],de=new Map,Ne=[],Ue=new Map,rt=new Map,pt=new Map,Pt=new Set;this.disabledNodes.forEach(It=>{Pt.add(It);const xt=this.driver.query(It,".ng-animate-queued",!0);for(let Yt=0;Yt<xt.length;Yt++)Pt.add(xt[Yt])});const Ut=this.bodyNode,Zt=Array.from(this.statesByElement.keys()),un=Qn(Zt,this.collectedEnterElements),Jt=new Map;let tn=0;un.forEach((It,xt)=>{const Yt=X+tn++;Jt.set(xt,Yt),It.forEach(sn=>Zn(sn,Yt))});const dn=[],ee=new Set,H=new Set;for(let It=0;It<this.collectedLeaveElements.length;It++){const xt=this.collectedLeaveElements[It],Yt=xt[xn];Yt&&Yt.setForRemoval&&(dn.push(xt),ee.add(xt),Yt.hasAnimation?this.driver.query(xt,".ng-star-inserted",!0).forEach(sn=>ee.add(sn)):H.add(xt))}const Y=new Map,te=Qn(Zt,Array.from(ee));te.forEach((It,xt)=>{const Yt=ce+tn++;Y.set(xt,Yt),It.forEach(sn=>Zn(sn,Yt))}),c.push(()=>{un.forEach((It,xt)=>{const Yt=Jt.get(xt);It.forEach(sn=>Ei(sn,Yt))}),te.forEach((It,xt)=>{const Yt=Y.get(xt);It.forEach(sn=>Ei(sn,Yt))}),dn.forEach(It=>{this.processLeaveNode(It)})});const xe=[],Be=[];for(let It=this._namespaceList.length-1;It>=0;It--)this._namespaceList[It].drainQueuedTransitions(f).forEach(Yt=>{const sn=Yt.player,jn=Yt.element;if(xe.push(sn),this.collectedEnterElements.length){const ui=jn[xn];if(ui&&ui.setForMove){if(ui.previousTriggersValues&&ui.previousTriggersValues.has(Yt.triggerName)){const Xi=ui.previousTriggersValues.get(Yt.triggerName),Li=this.statesByElement.get(Yt.element);Li&&Li[Yt.triggerName]&&(Li[Yt.triggerName].value=Xi)}return void sn.destroy()}}const Pn=!Ut||!this.driver.containsElement(Ut,jn),_i=Y.get(jn),lr=Jt.get(jn),Vn=this._buildInstruction(Yt,I,lr,_i,Pn);if(Vn.errors&&Vn.errors.length)return void Be.push(Vn);if(Pn)return sn.onStart(()=>Re(jn,Vn.fromStyles)),sn.onDestroy(()=>we(jn,Vn.toStyles)),void j.push(sn);if(Yt.isFallbackTransition)return sn.onStart(()=>Re(jn,Vn.fromStyles)),sn.onDestroy(()=>we(jn,Vn.toStyles)),void j.push(sn);const Ts=[];Vn.timelines.forEach(ui=>{ui.stretchStartingKeyframe=!0,this.disabledNodes.has(ui.element)||Ts.push(ui)}),Vn.timelines=Ts,I.append(jn,Vn.timelines),Ne.push({instruction:Vn,player:sn,element:jn}),Vn.queriedElements.forEach(ui=>A(Ue,ui,[]).push(sn)),Vn.preStyleProps.forEach((ui,Xi)=>{const Li=Object.keys(ui);if(Li.length){let Ji=rt.get(Xi);Ji||rt.set(Xi,Ji=new Set),Li.forEach(Ur=>Ji.add(Ur))}}),Vn.postStyleProps.forEach((ui,Xi)=>{const Li=Object.keys(ui);let Ji=pt.get(Xi);Ji||pt.set(Xi,Ji=new Set),Li.forEach(Ur=>Ji.add(Ur))})});if(Be.length){const It=[];Be.forEach(xt=>{It.push(`@${xt.triggerName} has failed due to:\n`),xt.errors.forEach(Yt=>It.push(`- ${Yt}\n`))}),xe.forEach(xt=>xt.destroy()),this.reportError(It)}const tt=new Map,yt=new Map;Ne.forEach(It=>{const xt=It.element;I.has(xt)&&(yt.set(xt,xt),this._beforeAnimationBuild(It.player.namespaceId,It.instruction,tt))}),j.forEach(It=>{const xt=It.element;this._getPreviousPlayers(xt,!1,It.namespaceId,It.triggerName,null).forEach(sn=>{A(tt,xt,[]).push(sn),sn.destroy()})});const _t=dn.filter(It=>Mi(It,rt,pt)),$t=new Map;mr($t,this.driver,H,pt,m.l3).forEach(It=>{Mi(It,rt,pt)&&_t.push(It)});const _n=new Map;un.forEach((It,xt)=>{mr(_n,this.driver,new Set(It),rt,m.k1)}),_t.forEach(It=>{const xt=$t.get(It),Yt=_n.get(It);$t.set(It,Object.assign(Object.assign({},xt),Yt))});const an=[],Mn=[],gn={};Ne.forEach(It=>{const{element:xt,player:Yt,instruction:sn}=It;if(I.has(xt)){if(Pt.has(xt))return Yt.onDestroy(()=>we(xt,sn.toStyles)),Yt.disabled=!0,Yt.overrideTotalTime(sn.totalTime),void j.push(Yt);let jn=gn;if(yt.size>1){let _i=xt;const lr=[];for(;_i=_i.parentNode;){const Vn=yt.get(_i);if(Vn){jn=Vn;break}lr.push(_i)}lr.forEach(Vn=>yt.set(Vn,jn))}const Pn=this._buildAnimation(Yt.namespaceId,sn,tt,de,_n,$t);if(Yt.setRealPlayer(Pn),jn===gn)an.push(Yt);else{const _i=this.playersByElement.get(jn);_i&&_i.length&&(Yt.parentPlayer=b(_i)),j.push(Yt)}}else Re(xt,sn.fromStyles),Yt.onDestroy(()=>we(xt,sn.toStyles)),Mn.push(Yt),Pt.has(xt)&&j.push(Yt)}),Mn.forEach(It=>{const xt=de.get(It.element);if(xt&&xt.length){const Yt=b(xt);It.setRealPlayer(Yt)}}),j.forEach(It=>{It.parentPlayer?It.syncPlayerEvents(It.parentPlayer):It.destroy()});for(let It=0;It<dn.length;It++){const xt=dn[It],Yt=xt[xn];if(Ei(xt,ce),Yt&&Yt.hasAnimation)continue;let sn=[];if(Ue.size){let Pn=Ue.get(xt);Pn&&Pn.length&&sn.push(...Pn);let _i=this.driver.query(xt,ge,!0);for(let lr=0;lr<_i.length;lr++){let Vn=Ue.get(_i[lr]);Vn&&Vn.length&&sn.push(...Vn)}}const jn=sn.filter(Pn=>!Pn.destroyed);jn.length?Ui(this,xt,jn):this.processLeaveNode(xt)}return dn.length=0,an.forEach(It=>{this.players.push(It),It.onDone(()=>{It.destroy();const xt=this.players.indexOf(It);this.players.splice(xt,1)}),It.play()}),an}elementContainsData(c,f){let I=!1;const j=f[xn];return j&&j.setForRemoval&&(I=!0),this.playersByElement.has(f)&&(I=!0),this.playersByQueriedElement.has(f)&&(I=!0),this.statesByElement.has(f)&&(I=!0),this._fetchNamespace(c).elementContainsData(f)||I}afterFlush(c){this._flushFns.push(c)}afterFlushAnimationsDone(c){this._whenQuietFns.push(c)}_getPreviousPlayers(c,f,I,j,de){let Ne=[];if(f){const Ue=this.playersByQueriedElement.get(c);Ue&&(Ne=Ue)}else{const Ue=this.playersByElement.get(c);if(Ue){const rt=!de||de==ni;Ue.forEach(pt=>{pt.queued||!rt&&pt.triggerName!=j||Ne.push(pt)})}}return(I||j)&&(Ne=Ne.filter(Ue=>!(I&&I!=Ue.namespaceId||j&&j!=Ue.triggerName))),Ne}_beforeAnimationBuild(c,f,I){const de=f.element,Ne=f.isRemovalTransition?void 0:c,Ue=f.isRemovalTransition?void 0:f.triggerName;for(const rt of f.timelines){const pt=rt.element,Pt=pt!==de,Ut=A(I,pt,[]);this._getPreviousPlayers(pt,Pt,Ne,Ue,f.toState).forEach(un=>{const Jt=un.getRealPlayer();Jt.beforeDestroy&&Jt.beforeDestroy(),un.destroy(),Ut.push(un)})}Re(de,f.fromStyles)}_buildAnimation(c,f,I,j,de,Ne){const Ue=f.triggerName,rt=f.element,pt=[],Pt=new Set,Ut=new Set,Zt=f.timelines.map(Jt=>{const tn=Jt.element;Pt.add(tn);const dn=tn[xn];if(dn&&dn.removedBeforeQueried)return new m.ZN(Jt.duration,Jt.delay);const ee=tn!==rt,H=function Lr(B){const c=[];return zi(B,c),c}((I.get(tn)||Sn).map(tt=>tt.getRealPlayer())).filter(tt=>!!tt.element&&tt.element===tn),Y=de.get(tn),te=Ne.get(tn),xe=T(0,this._normalizer,0,Jt.keyframes,Y,te),Be=this._buildPlayer(Jt,xe,H);if(Jt.subTimeline&&j&&Ut.add(tn),ee){const tt=new Ci(c,Ue,tn);tt.setRealPlayer(Be),pt.push(tt)}return Be});pt.forEach(Jt=>{A(this.playersByQueriedElement,Jt.element,[]).push(Jt),Jt.onDone(()=>function wi(B,c,f){let I;if(B instanceof Map){if(I=B.get(c),I){if(I.length){const j=I.indexOf(f);I.splice(j,1)}0==I.length&&B.delete(c)}}else if(I=B[c],I){if(I.length){const j=I.indexOf(f);I.splice(j,1)}0==I.length&&delete B[c]}return I}(this.playersByQueriedElement,Jt.element,Jt))}),Pt.forEach(Jt=>Zn(Jt,$e));const un=b(Zt);return un.onDestroy(()=>{Pt.forEach(Jt=>Ei(Jt,$e)),we(rt,f.toStyles)}),Ut.forEach(Jt=>{A(j,Jt,[]).push(un)}),un}_buildPlayer(c,f,I){return f.length>0?this.driver.animate(c.element,f,c.duration,c.delay,c.easing,I):new m.ZN(c.duration,c.delay)}}class Ci{constructor(c,f,I){this.namespaceId=c,this.triggerName=f,this.element=I,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(c){this._containsRealPlayer||(this._player=c,Object.keys(this._queuedCallbacks).forEach(f=>{this._queuedCallbacks[f].forEach(I=>S(c,f,void 0,I))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(c.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(c){this.totalTime=c}syncPlayerEvents(c){const f=this._player;f.triggerCallback&&c.onStart(()=>f.triggerCallback("start")),c.onDone(()=>this.finish()),c.onDestroy(()=>this.destroy())}_queueEvent(c,f){A(this._queuedCallbacks,c,[]).push(f)}onDone(c){this.queued&&this._queueEvent("done",c),this._player.onDone(c)}onStart(c){this.queued&&this._queueEvent("start",c),this._player.onStart(c)}onDestroy(c){this.queued&&this._queueEvent("destroy",c),this._player.onDestroy(c)}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(c){this.queued||this._player.setPosition(c)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(c){const f=this._player;f.triggerCallback&&f.triggerCallback(c)}}function zn(B){return B&&1===B.nodeType}function nr(B,c){const f=B.style.display;return B.style.display=null!=c?c:"none",f}function mr(B,c,f,I,j){const de=[];f.forEach(rt=>de.push(nr(rt)));const Ne=[];I.forEach((rt,pt)=>{const Pt={};rt.forEach(Ut=>{const Zt=Pt[Ut]=c.computeStyle(pt,Ut,j);(!Zt||0==Zt.length)&&(pt[xn]=ai,Ne.push(pt))}),B.set(pt,Pt)});let Ue=0;return f.forEach(rt=>nr(rt,de[Ue++])),Ne}function Qn(B,c){const f=new Map;if(B.forEach(Ue=>f.set(Ue,[])),0==c.length)return f;const j=new Set(c),de=new Map;function Ne(Ue){if(!Ue)return 1;let rt=de.get(Ue);if(rt)return rt;const pt=Ue.parentNode;return rt=f.has(pt)?pt:j.has(pt)?1:Ne(pt),de.set(Ue,rt),rt}return c.forEach(Ue=>{const rt=Ne(Ue);1!==rt&&f.get(rt).push(Ue)}),f}function Zn(B,c){var f;null===(f=B.classList)||void 0===f||f.add(c)}function Ei(B,c){var f;null===(f=B.classList)||void 0===f||f.remove(c)}function Ui(B,c,f){b(f).onDone(()=>B.processLeaveNode(c))}function zi(B,c){for(let f=0;f<B.length;f++){const I=B[f];I instanceof m.ZE?zi(I.players,c):c.push(I)}}function Mi(B,c,f){const I=f.get(B);if(!I)return!1;let j=c.get(B);return j?I.forEach(de=>j.add(de)):c.set(B,I),f.delete(B),!0}class Wi{constructor(c,f,I){this.bodyNode=c,this._driver=f,this._normalizer=I,this._triggerCache={},this.onRemovalComplete=(j,de)=>{},this._transitionEngine=new Gn(c,f,I),this._timelineEngine=new Xt(c,f,I),this._transitionEngine.onRemovalComplete=(j,de)=>this.onRemovalComplete(j,de)}registerTrigger(c,f,I,j,de){const Ne=c+"-"+j;let Ue=this._triggerCache[Ne];if(!Ue){const rt=[],pt=Bt(this._driver,de,rt);if(rt.length)throw new Error(`The animation trigger "${j}" has failed to build due to the following errors:\n - ${rt.join("\n - ")}`);Ue=function Pe(B,c,f){return new qe(B,c,f)}(j,pt,this._normalizer),this._triggerCache[Ne]=Ue}this._transitionEngine.registerTrigger(f,j,Ue)}register(c,f){this._transitionEngine.register(c,f)}destroy(c,f){this._transitionEngine.destroy(c,f)}onInsert(c,f,I,j){this._transitionEngine.insertNode(c,f,I,j)}onRemove(c,f,I,j){this._transitionEngine.removeNode(c,f,j||!1,I)}disableAnimations(c,f){this._transitionEngine.markElementAsDisabled(c,f)}process(c,f,I,j){if("@"==I.charAt(0)){const[de,Ne]=O(I);this._timelineEngine.command(de,f,Ne,j)}else this._transitionEngine.trigger(c,f,I,j)}listen(c,f,I,j,de){if("@"==I.charAt(0)){const[Ne,Ue]=O(I);return this._timelineEngine.listen(Ne,f,Ue,de)}return this._transitionEngine.listen(c,f,I,j,de)}flush(c=-1){this._transitionEngine.flush(c)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ci(B,c){let f=null,I=null;return Array.isArray(c)&&c.length?(f=Di(c[0]),c.length>1&&(I=Di(c[c.length-1]))):c&&(f=Di(c)),f||I?new gr(B,f,I):null}let gr=(()=>{class B{constructor(f,I,j){this._element=f,this._startStyles=I,this._endStyles=j,this._state=0;let de=B.initialStylesByElement.get(f);de||B.initialStylesByElement.set(f,de={}),this._initialStyles=de}start(){this._state<1&&(this._startStyles&&we(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(we(this._element,this._initialStyles),this._endStyles&&(we(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(B.initialStylesByElement.delete(this._element),this._startStyles&&(Re(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Re(this._element,this._endStyles),this._endStyles=null),we(this._element,this._initialStyles),this._state=3)}}return B.initialStylesByElement=new WeakMap,B})();function Di(B){let c=null;const f=Object.keys(B);for(let I=0;I<f.length;I++){const j=f[I];Ar(j)&&(c=c||{},c[j]=B[j])}return c}function Ar(B){return"display"===B||"position"===B}const Ki="animation",Si="animationend";class Or{constructor(c,f,I,j,de,Ne,Ue){this._element=c,this._name=f,this._duration=I,this._delay=j,this._easing=de,this._fillMode=Ne,this._onDoneFn=Ue,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=rt=>this._handleCallback(rt)}apply(){(function _r(B,c){const f=ir(B,"").trim();let I=0;f.length&&(I=function rr(B,c){let f=0;for(let I=0;I<B.length;I++)B.charAt(I)===c&&f++;return f}(f,",")+1,c=`${f}, ${c}`),mi(B,"",c)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Qi(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Ii(this._element,this._name,"paused")}resume(){Ii(this._element,this._name,"running")}setPosition(c){const f=Ai(this._element,this._name);this._position=c*this._duration,mi(this._element,"Delay",`-${this._position}ms`,f)}getPosition(){return this._position}_handleCallback(c){const f=c._ngTestManualTimestamp||Date.now(),I=1e3*parseFloat(c.elapsedTime.toFixed(3));c.animationName==this._name&&Math.max(f-this._startTime,0)>=this._delay&&I>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Qi(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function fi(B,c){const I=ir(B,"").split(","),j=pi(I,c);j>=0&&(I.splice(j,1),mi(B,"",I.join(",")))}(this._element,this._name))}}function Ii(B,c,f){mi(B,"PlayState",f,Ai(B,c))}function Ai(B,c){const f=ir(B,"");return f.indexOf(",")>0?pi(f.split(","),c):pi([f],c)}function pi(B,c){for(let f=0;f<B.length;f++)if(B[f].indexOf(c)>=0)return f;return-1}function Qi(B,c,f){f?B.removeEventListener(Si,c):B.addEventListener(Si,c)}function mi(B,c,f,I){const j=Ki+c;if(null!=I){const de=B.style[j];if(de.length){const Ne=de.split(",");Ne[I]=f,f=Ne.join(",")}}B.style[j]=f}function ir(B,c){return B.style[Ki+c]||""}class xi{constructor(c,f,I,j,de,Ne,Ue,rt){this.element=c,this.keyframes=f,this.animationName=I,this._duration=j,this._delay=de,this._finalStyles=Ue,this._specialStyles=rt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=Ne||"linear",this.totalTime=j+de,this._buildStyler()}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(c=>c()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(c=>c()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(c=>c()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(c){this._styler.setPosition(c)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Or(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(c){const f="start"==c?this._onStartFns:this._onDoneFns;f.forEach(I=>I()),f.length=0}beforeDestroy(){this.init();const c={};if(this.hasStarted()){const f=this._state>=3;Object.keys(this._finalStyles).forEach(I=>{"offset"!=I&&(c[I]=f?this._finalStyles[I]:ve(this.element,I))})}this.currentSnapshot=c}}class Zi extends m.ZN{constructor(c,f){super(),this.element=c,this._startingStyles={},this.__initialized=!1,this._styles=Ee(f)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(c=>{this._startingStyles[c]=this.element.style[c]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(c=>this.element.style.setProperty(c,this._styles[c])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(c=>{const f=this._startingStyles[c];f?this.element.style.setProperty(c,f):this.element.style.removeProperty(c)}),this._startingStyles=null,super.destroy())}}class or{constructor(){this._count=0}validateStyleProperty(c){return Te(c)}matchesElement(c,f){return!1}containsElement(c,f){return _e(c,f)}query(c,f,I){return le(c,f,I)}computeStyle(c,f,I){return window.getComputedStyle(c)[f]}buildKeyframeElement(c,f,I){I=I.map(Ue=>Ee(Ue));let j=`@keyframes ${f} {\n`,de="";I.forEach(Ue=>{de=" ";const rt=parseFloat(Ue.offset);j+=`${de}${100*rt}% {\n`,de+=" ",Object.keys(Ue).forEach(pt=>{const Pt=Ue[pt];switch(pt){case"offset":return;case"easing":return void(Pt&&(j+=`${de}animation-timing-function: ${Pt};\n`));default:return void(j+=`${de}${pt}: ${Pt};\n`)}}),j+=`${de}}\n`}),j+="}\n";const Ne=document.createElement("style");return Ne.textContent=j,Ne}animate(c,f,I,j,de,Ne=[],Ue){const rt=Ne.filter(dn=>dn instanceof xi),pt={};Oe(I,j)&&rt.forEach(dn=>{let ee=dn.currentSnapshot;Object.keys(ee).forEach(H=>pt[H]=ee[H])});const Pt=function Yi(B){let c={};return B&&(Array.isArray(B)?B:[B]).forEach(I=>{Object.keys(I).forEach(j=>{"offset"==j||"easing"==j||(c[j]=I[j])})}),c}(f=ue(c,f,pt));if(0==I)return new Zi(c,Pt);const Ut="gen_css_kf_"+this._count++,Zt=this.buildKeyframeElement(c,Ut,f);(function Fi(B){var c;const f=null===(c=B.getRootNode)||void 0===c?void 0:c.call(B);return"undefined"!=typeof ShadowRoot&&f instanceof ShadowRoot?f:document.head})(c).appendChild(Zt);const Jt=ci(c,f),tn=new xi(c,f,Ut,I,j,de,Pt,Jt);return tn.onDestroy(()=>function ki(B){B.parentNode.removeChild(B)}(Zt)),tn}}class sr{constructor(c,f,I,j){this.element=c,this.keyframes=f,this.options=I,this._specialStyles=j,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=I.duration,this._delay=I.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(c=>c()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const c=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,c,this.options),this._finalKeyframe=c.length?c[c.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(c,f,I){return c.animate(f,I)}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(c=>c()),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(c=>c()),this._onDestroyFns=[])}setPosition(c){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=c*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const c={};if(this.hasStarted()){const f=this._finalKeyframe;Object.keys(f).forEach(I=>{"offset"!=I&&(c[I]=this._finished?f[I]:ve(this.element,I))})}this.currentSnapshot=c}triggerCallback(c){const f="start"==c?this._onStartFns:this._onDoneFns;f.forEach(I=>I()),f.length=0}}class ar{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(x().toString()),this._cssKeyframesDriver=new or}validateStyleProperty(c){return Te(c)}matchesElement(c,f){return!1}containsElement(c,f){return _e(c,f)}query(c,f,I){return le(c,f,I)}computeStyle(c,f,I){return window.getComputedStyle(c)[f]}overrideWebAnimationsSupport(c){this._isNativeImpl=c}animate(c,f,I,j,de,Ne=[],Ue){if(!Ue&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(c,f,I,j,de,Ne);const Pt={duration:I,delay:j,fill:0==j?"both":"forwards"};de&&(Pt.easing=de);const Ut={},Zt=Ne.filter(Jt=>Jt instanceof sr);Oe(I,j)&&Zt.forEach(Jt=>{let tn=Jt.currentSnapshot;Object.keys(tn).forEach(dn=>Ut[dn]=tn[dn])});const un=ci(c,f=ue(c,f=f.map(Jt=>Ye(Jt,!1)),Ut));return new sr(c,f,Pt,un)}}function x(){return u()&&Element.prototype.animate||{}}var Q=l(9808);let R=(()=>{class B extends m._j{constructor(f,I){super(),this._nextAnimationId=0,this._renderer=f.createRenderer(I.body,{id:"0",encapsulation:i.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(f){const I=this._nextAnimationId.toString();this._nextAnimationId++;const j=Array.isArray(f)?(0,m.vP)(f):f;return ct(this._renderer,null,I,"register",[j]),new ie(I,this._renderer)}}return B.\u0275fac=function(f){return new(f||B)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(Q.DOCUMENT))},B.\u0275prov=i.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac}),B})();class ie extends m.LC{constructor(c,f){super(),this._id=c,this._renderer=f}create(c,f){return new We(this._id,c,f||{},this._renderer)}}class We{constructor(c,f,I,j){this.id=c,this.element=f,this._renderer=j,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",I)}_listen(c,f){return this._renderer.listen(this.element,`@@${this.id}:${c}`,f)}_command(c,...f){return ct(this._renderer,this.element,this.id,c,f)}onDone(c){this._listen("done",c)}onStart(c){this._listen("start",c)}onDestroy(c){this._listen("destroy",c)}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(c){this._command("setPosition",c)}getPosition(){var c,f;return null!==(f=null===(c=this._renderer.engine.players[+this.id])||void 0===c?void 0:c.getPosition())&&void 0!==f?f:0}}function ct(B,c,f,I,j){return B.setProperty(c,`@@${f}:${I}`,j)}const Rt="@.disabled";let Tn=(()=>{class B{constructor(f,I,j){this.delegate=f,this.engine=I,this._zone=j,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),I.onRemovalComplete=(de,Ne)=>{const Ue=null==Ne?void 0:Ne.parentNode(de);Ue&&Ne.removeChild(Ue,de)}}createRenderer(f,I){const de=this.delegate.createRenderer(f,I);if(!(f&&I&&I.data&&I.data.animation)){let Pt=this._rendererCache.get(de);return Pt||(Pt=new wn("",de,this.engine),this._rendererCache.set(de,Pt)),Pt}const Ne=I.id,Ue=I.id+"-"+this._currentId;this._currentId++,this.engine.register(Ue,f);const rt=Pt=>{Array.isArray(Pt)?Pt.forEach(rt):this.engine.registerTrigger(Ne,Ue,f,Pt.name,Pt)};return I.data.animation.forEach(rt),new In(this,Ue,de,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(f,I,j){f>=0&&f<this._microtaskId?this._zone.run(()=>I(j)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(de=>{const[Ne,Ue]=de;Ne(Ue)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([I,j]))}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 B.\u0275fac=function(f){return new(f||B)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(Wi),i.\u0275\u0275inject(i.NgZone))},B.\u0275prov=i.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac}),B})();class wn{constructor(c,f,I){this.namespaceId=c,this.delegate=f,this.engine=I,this.destroyNode=this.delegate.destroyNode?j=>f.destroyNode(j):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(c,f){return this.delegate.createElement(c,f)}createComment(c){return this.delegate.createComment(c)}createText(c){return this.delegate.createText(c)}appendChild(c,f){this.delegate.appendChild(c,f),this.engine.onInsert(this.namespaceId,f,c,!1)}insertBefore(c,f,I,j=!0){this.delegate.insertBefore(c,f,I),this.engine.onInsert(this.namespaceId,f,c,j)}removeChild(c,f,I){this.engine.onRemove(this.namespaceId,f,this.delegate,I)}selectRootElement(c,f){return this.delegate.selectRootElement(c,f)}parentNode(c){return this.delegate.parentNode(c)}nextSibling(c){return this.delegate.nextSibling(c)}setAttribute(c,f,I,j){this.delegate.setAttribute(c,f,I,j)}removeAttribute(c,f,I){this.delegate.removeAttribute(c,f,I)}addClass(c,f){this.delegate.addClass(c,f)}removeClass(c,f){this.delegate.removeClass(c,f)}setStyle(c,f,I,j){this.delegate.setStyle(c,f,I,j)}removeStyle(c,f,I){this.delegate.removeStyle(c,f,I)}setProperty(c,f,I){"@"==f.charAt(0)&&f==Rt?this.disableAnimations(c,!!I):this.delegate.setProperty(c,f,I)}setValue(c,f){this.delegate.setValue(c,f)}listen(c,f,I){return this.delegate.listen(c,f,I)}disableAnimations(c,f){this.engine.disableAnimations(c,f)}}class In extends wn{constructor(c,f,I,j){super(f,I,j),this.factory=c,this.namespaceId=f}setProperty(c,f,I){"@"==f.charAt(0)?"."==f.charAt(1)&&f==Rt?this.disableAnimations(c,I=void 0===I||!!I):this.engine.process(this.namespaceId,c,f.substr(1),I):this.delegate.setProperty(c,f,I)}listen(c,f,I){if("@"==f.charAt(0)){const j=function cn(B){switch(B){case"body":return document.body;case"document":return document;case"window":return window;default:return B}}(c);let de=f.substr(1),Ne="";return"@"!=de.charAt(0)&&([de,Ne]=function F(B){const c=B.indexOf(".");return[B.substring(0,c),B.substr(c+1)]}(de)),this.engine.listen(this.namespaceId,j,de,Ne,Ue=>{this.factory.scheduleListenerCallback(Ue._data||-1,I,Ue)})}return this.delegate.listen(c,f,I)}}let P=(()=>{class B extends Wi{constructor(f,I,j){super(f.body,I,j)}ngOnDestroy(){this.flush()}}return B.\u0275fac=function(f){return new(f||B)(i.\u0275\u0275inject(Q.DOCUMENT),i.\u0275\u0275inject(Je),i.\u0275\u0275inject(Dn))},B.\u0275prov=i.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac}),B})();const Vt=new i.InjectionToken("AnimationModuleType"),An=[{provide:m._j,useClass:R},{provide:Dn,useFactory:function J(){return new di}},{provide:Wi,useClass:P},{provide:i.RendererFactory2,useFactory:function at(B,c,f){return new Tn(B,c,f)},deps:[d.\u0275DomRendererFactory2,Wi,i.NgZone]}],qn=[{provide:Je,useFactory:function E(){return function Ln(){return"function"==typeof x()}()?new ar:new or}},{provide:Vt,useValue:"BrowserAnimations"},...An],gi=[{provide:Je,useClass:Fe},{provide:Vt,useValue:"NoopAnimations"},...An];let Ni=(()=>{class B{static withConfig(f){return{ngModule:B,providers:f.disableAnimations?gi:qn}}}return B.\u0275fac=function(f){return new(f||B)},B.\u0275mod=i.\u0275\u0275defineNgModule({type:B}),B.\u0275inj=i.\u0275\u0275defineInjector({providers:qn,imports:[d.BrowserModule]}),B})(),Tt=(()=>{class B{}return B.\u0275fac=function(f){return new(f||B)},B.\u0275mod=i.\u0275\u0275defineNgModule({type:B}),B.\u0275inj=i.\u0275\u0275defineInjector({providers:gi,imports:[d.BrowserModule]}),B})()},2313:(je,_,l)=>{"use strict";l.r(_),l.d(_,{\u0275getDOM:()=>i.\u0275getDOM,BrowserModule:()=>lt,BrowserTransferStateModule:()=>Qt,By:()=>on,DomSanitizer:()=>et,EVENT_MANAGER_PLUGINS:()=>k,EventManager:()=>U,HAMMER_GESTURE_CONFIG:()=>W,HAMMER_LOADER:()=>p,HammerGestureConfig:()=>C,HammerModule:()=>K,Meta:()=>N,Title:()=>ue,TransferState:()=>Mt,VERSION:()=>pn,disableDebugTools:()=>Bt,enableDebugTools:()=>en,makeStateKey:()=>zt,platformBrowser:()=>bt,\u0275BrowserDomAdapter:()=>u,\u0275BrowserGetTestability:()=>O,\u0275DomEventsPlugin:()=>Ke,\u0275DomRendererFactory2:()=>Se,\u0275DomSanitizerImpl:()=>Wt,\u0275DomSharedStylesHost:()=>re,\u0275HammerGesturesPlugin:()=>D,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>dt,\u0275KeyEventsPlugin:()=>pe,\u0275NAMESPACE_URIS:()=>fe,\u0275SharedStylesHost:()=>$,\u0275TRANSITION_ID:()=>g,\u0275escapeHtml:()=>En,\u0275flattenStyles:()=>Ae,\u0275initDomAdapter:()=>Re,\u0275shimContentAttribute:()=>ot,\u0275shimHostAttribute:()=>q});var i=l(9808),d=l(5e3);class m extends i.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class u extends m{static makeCurrent(){(0,i.\u0275setRootDomAdapter)(new u)}onAndCancel(Ve,he,He){return Ve.addEventListener(he,He,!1),()=>{Ve.removeEventListener(he,He,!1)}}dispatchEvent(Ve,he){Ve.dispatchEvent(he)}remove(Ve){Ve.parentNode&&Ve.parentNode.removeChild(Ve)}createElement(Ve,he){return(he=he||this.getDefaultDocument()).createElement(Ve)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ve){return Ve.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ve){return Ve instanceof DocumentFragment}getGlobalEventTarget(Ve,he){return"window"===he?window:"document"===he?Ve:"body"===he?Ve.body:null}getBaseHref(Ve){const he=function b(){return s=s||document.querySelector("base"),s?s.getAttribute("href"):null}();return null==he?null:function S(Le){T=T||document.createElement("a"),T.setAttribute("href",Le);const Ve=T.pathname;return"/"===Ve.charAt(0)?Ve:`/${Ve}`}(he)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ve){return(0,i.\u0275parseCookieValue)(document.cookie,Ve)}}let T,s=null;const g=new d.InjectionToken("TRANSITION_ID"),A=[{provide:d.APP_INITIALIZER,useFactory:function v(Le,Ve,he){return()=>{he.get(d.ApplicationInitStatus).donePromise.then(()=>{const He=(0,i.\u0275getDOM)(),ut=Ve.querySelectorAll(`style[ng-transition="${Le}"]`);for(let Lt=0;Lt<ut.length;Lt++)He.remove(ut[Lt])})}},deps:[g,i.DOCUMENT,d.Injector],multi:!0}];class O{static init(){(0,d.setTestabilityGetter)(new O)}addToWindow(Ve){d.\u0275global.getAngularTestability=(He,ut=!0)=>{const Lt=Ve.findTestabilityInTree(He,ut);if(null==Lt)throw new Error("Could not find testability for element.");return Lt},d.\u0275global.getAllAngularTestabilities=()=>Ve.getAllTestabilities(),d.\u0275global.getAllAngularRootElements=()=>Ve.getAllRootElements(),d.\u0275global.frameworkStabilizers||(d.\u0275global.frameworkStabilizers=[]),d.\u0275global.frameworkStabilizers.push(He=>{const ut=d.\u0275global.getAllAngularTestabilities();let Lt=ut.length,kt=!1;const hn=function(Dn){kt=kt||Dn,Lt--,0==Lt&&He(kt)};ut.forEach(function(Dn){Dn.whenStable(hn)})})}findTestabilityInTree(Ve,he,He){if(null==he)return null;const ut=Ve.getTestability(he);return null!=ut?ut:He?(0,i.\u0275getDOM)().isShadowRoot(he)?this.findTestabilityInTree(Ve,he.host,!0):this.findTestabilityInTree(Ve,he.parentElement,!0):null}}let w=(()=>{class Le{build(){return new XMLHttpRequest}}return Le.\u0275fac=function(he){return new(he||Le)},Le.\u0275prov=d.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})();const k=new d.InjectionToken("EventManagerPlugins");let U=(()=>{class Le{constructor(he,He){this._zone=He,this._eventNameToPlugin=new Map,he.forEach(ut=>ut.manager=this),this._plugins=he.slice().reverse()}addEventListener(he,He,ut){return this._findPluginFor(He).addEventListener(he,He,ut)}addGlobalEventListener(he,He,ut){return this._findPluginFor(He).addGlobalEventListener(he,He,ut)}getZone(){return this._zone}_findPluginFor(he){const He=this._eventNameToPlugin.get(he);if(He)return He;const ut=this._plugins;for(let Lt=0;Lt<ut.length;Lt++){const kt=ut[Lt];if(kt.supports(he))return this._eventNameToPlugin.set(he,kt),kt}throw new Error(`No event manager plugin found for event ${he}`)}}return Le.\u0275fac=function(he){return new(he||Le)(d.\u0275\u0275inject(k),d.\u0275\u0275inject(d.NgZone))},Le.\u0275prov=d.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})();class me{constructor(Ve){this._doc=Ve}addGlobalEventListener(Ve,he,He){const ut=(0,i.\u0275getDOM)().getGlobalEventTarget(this._doc,Ve);if(!ut)throw new Error(`Unsupported event target ${ut} for event ${he}`);return this.addEventListener(ut,he,He)}}let $=(()=>{class Le{constructor(){this._stylesSet=new Set}addStyles(he){const He=new Set;he.forEach(ut=>{this._stylesSet.has(ut)||(this._stylesSet.add(ut),He.add(ut))}),this.onStylesAdded(He)}onStylesAdded(he){}getAllStyles(){return Array.from(this._stylesSet)}}return Le.\u0275fac=function(he){return new(he||Le)},Le.\u0275prov=d.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})(),re=(()=>{class Le extends ${constructor(he){super(),this._doc=he,this._hostNodes=new Map,this._hostNodes.set(he.head,[])}_addStylesToHost(he,He,ut){he.forEach(Lt=>{const kt=this._doc.createElement("style");kt.textContent=Lt,ut.push(He.appendChild(kt))})}addHost(he){const He=[];this._addStylesToHost(this._stylesSet,he,He),this._hostNodes.set(he,He)}removeHost(he){const He=this._hostNodes.get(he);He&&He.forEach(Te),this._hostNodes.delete(he)}onStylesAdded(he){this._hostNodes.forEach((He,ut)=>{this._addStylesToHost(he,ut,He)})}ngOnDestroy(){this._hostNodes.forEach(he=>he.forEach(Te))}}return Le.\u0275fac=function(he){return new(he||Le)(d.\u0275\u0275inject(i.DOCUMENT))},Le.\u0275prov=d.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})();function Te(Le){(0,i.\u0275getDOM)().remove(Le)}const fe={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/"},_e=/%COMP%/g;function ot(Le){return"_ngcontent-%COMP%".replace(_e,Le)}function q(Le){return"_nghost-%COMP%".replace(_e,Le)}function Ae(Le,Ve,he){for(let He=0;He<Ve.length;He++){let ut=Ve[He];Array.isArray(ut)?Ae(Le,ut,he):(ut=ut.replace(_e,Le),he.push(ut))}return he}function X(Le){return Ve=>{if("__ngUnwrap__"===Ve)return Le;!1===Le(Ve)&&(Ve.preventDefault(),Ve.returnValue=!1)}}let Se=(()=>{class Le{constructor(he,He,ut){this.eventManager=he,this.sharedStylesHost=He,this.appId=ut,this.rendererByCompId=new Map,this.defaultRenderer=new ne(he)}createRenderer(he,He){if(!he||!He)return this.defaultRenderer;switch(He.encapsulation){case d.ViewEncapsulation.Emulated:{let ut=this.rendererByCompId.get(He.id);return ut||(ut=new Ze(this.eventManager,this.sharedStylesHost,He,this.appId),this.rendererByCompId.set(He.id,ut)),ut.applyToHost(he),ut}case 1:case d.ViewEncapsulation.ShadowDom:return new Me(this.eventManager,this.sharedStylesHost,he,He);default:if(!this.rendererByCompId.has(He.id)){const ut=Ae(He.id,He.styles,[]);this.sharedStylesHost.addStyles(ut),this.rendererByCompId.set(He.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Le.\u0275fac=function(he){return new(he||Le)(d.\u0275\u0275inject(U),d.\u0275\u0275inject(re),d.\u0275\u0275inject(d.APP_ID))},Le.\u0275prov=d.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})();class ne{constructor(Ve){this.eventManager=Ve,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ve,he){return he?document.createElementNS(fe[he]||he,Ve):document.createElement(Ve)}createComment(Ve){return document.createComment(Ve)}createText(Ve){return document.createTextNode(Ve)}appendChild(Ve,he){Ve.appendChild(he)}insertBefore(Ve,he,He){Ve&&Ve.insertBefore(he,He)}removeChild(Ve,he){Ve&&Ve.removeChild(he)}selectRootElement(Ve,he){let He="string"==typeof Ve?document.querySelector(Ve):Ve;if(!He)throw new Error(`The selector "${Ve}" did not match any elements`);return he||(He.textContent=""),He}parentNode(Ve){return Ve.parentNode}nextSibling(Ve){return Ve.nextSibling}setAttribute(Ve,he,He,ut){if(ut){he=ut+":"+he;const Lt=fe[ut];Lt?Ve.setAttributeNS(Lt,he,He):Ve.setAttribute(he,He)}else Ve.setAttribute(he,He)}removeAttribute(Ve,he,He){if(He){const ut=fe[He];ut?Ve.removeAttributeNS(ut,he):Ve.removeAttribute(`${He}:${he}`)}else Ve.removeAttribute(he)}addClass(Ve,he){Ve.classList.add(he)}removeClass(Ve,he){Ve.classList.remove(he)}setStyle(Ve,he,He,ut){ut&(d.RendererStyleFlags2.DashCase|d.RendererStyleFlags2.Important)?Ve.style.setProperty(he,He,ut&d.RendererStyleFlags2.Important?"important":""):Ve.style[he]=He}removeStyle(Ve,he,He){He&d.RendererStyleFlags2.DashCase?Ve.style.removeProperty(he):Ve.style[he]=""}setProperty(Ve,he,He){Ve[he]=He}setValue(Ve,he){Ve.nodeValue=he}listen(Ve,he,He){return"string"==typeof Ve?this.eventManager.addGlobalEventListener(Ve,he,X(He)):this.eventManager.addEventListener(Ve,he,X(He))}}class Ze extends ne{constructor(Ve,he,He,ut){super(Ve),this.component=He;const Lt=Ae(ut+"-"+He.id,He.styles,[]);he.addStyles(Lt),this.contentAttr=ot(ut+"-"+He.id),this.hostAttr=q(ut+"-"+He.id)}applyToHost(Ve){super.setAttribute(Ve,this.hostAttr,"")}createElement(Ve,he){const He=super.createElement(Ve,he);return super.setAttribute(He,this.contentAttr,""),He}}class Me extends ne{constructor(Ve,he,He,ut){super(Ve),this.sharedStylesHost=he,this.hostEl=He,this.shadowRoot=He.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Lt=Ae(ut.id,ut.styles,[]);for(let kt=0;kt<Lt.length;kt++){const hn=document.createElement("style");hn.textContent=Lt[kt],this.shadowRoot.appendChild(hn)}}nodeOrShadowRoot(Ve){return Ve===this.hostEl?this.shadowRoot:Ve}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Ve,he){return super.appendChild(this.nodeOrShadowRoot(Ve),he)}insertBefore(Ve,he,He){return super.insertBefore(this.nodeOrShadowRoot(Ve),he,He)}removeChild(Ve,he){return super.removeChild(this.nodeOrShadowRoot(Ve),he)}parentNode(Ve){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ve)))}}let Ke=(()=>{class Le extends me{constructor(he){super(he)}supports(he){return!0}addEventListener(he,He,ut){return he.addEventListener(He,ut,!1),()=>this.removeEventListener(he,He,ut)}removeEventListener(he,He,ut){return he.removeEventListener(He,ut)}}return Le.\u0275fac=function(he){return new(he||Le)(d.\u0275\u0275inject(i.DOCUMENT))},Le.\u0275prov=d.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})();const mt=["alt","control","meta","shift"],ke={"\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"},Ye={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"},Z={alt:Le=>Le.altKey,control:Le=>Le.ctrlKey,meta:Le=>Le.metaKey,shift:Le=>Le.shiftKey};let pe=(()=>{class Le extends me{constructor(he){super(he)}supports(he){return null!=Le.parseEventName(he)}addEventListener(he,He,ut){const Lt=Le.parseEventName(He),kt=Le.eventCallback(Lt.fullKey,ut,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.\u0275getDOM)().onAndCancel(he,Lt.domEventName,kt))}static parseEventName(he){const He=he.toLowerCase().split("."),ut=He.shift();if(0===He.length||"keydown"!==ut&&"keyup"!==ut)return null;const Lt=Le._normalizeKey(He.pop());let kt="";if(mt.forEach(Dn=>{const $n=He.indexOf(Dn);$n>-1&&(He.splice($n,1),kt+=Dn+".")}),kt+=Lt,0!=He.length||0===Lt.length)return null;const hn={};return hn.domEventName=ut,hn.fullKey=kt,hn}static getEventFullKey(he){let He="",ut=function we(Le){let Ve=Le.key;if(null==Ve){if(Ve=Le.keyIdentifier,null==Ve)return"Unidentified";Ve.startsWith("U+")&&(Ve=String.fromCharCode(parseInt(Ve.substring(2),16)),3===Le.location&&Ye.hasOwnProperty(Ve)&&(Ve=Ye[Ve]))}return ke[Ve]||Ve}(he);return ut=ut.toLowerCase()," "===ut?ut="space":"."===ut&&(ut="dot"),mt.forEach(Lt=>{Lt!=ut&&Z[Lt](he)&&(He+=Lt+".")}),He+=ut,He}static eventCallback(he,He,ut){return Lt=>{Le.getEventFullKey(Lt)===he&&ut.runGuarded(()=>He(Lt))}}static _normalizeKey(he){return"esc"===he?"escape":he}}return Le.\u0275fac=function(he){return new(he||Le)(d.\u0275\u0275inject(i.DOCUMENT))},Le.\u0275prov=d.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})();function Re(){u.makeCurrent(),O.init()}const dt=[{provide:d.PLATFORM_ID,useValue:i.\u0275PLATFORM_BROWSER_ID},{provide:d.PLATFORM_INITIALIZER,useValue:Re,multi:!0},{provide:i.DOCUMENT,useFactory:function Xe(){return(0,d.\u0275setDocument)(document),document},deps:[]}],bt=(0,d.createPlatformFactory)(d.platformCore,"browser",dt),Ot=[{provide:d.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:d.ErrorHandler,useFactory:function ye(){return new d.ErrorHandler},deps:[]},{provide:k,useClass:Ke,multi:!0,deps:[i.DOCUMENT,d.NgZone,d.PLATFORM_ID]},{provide:k,useClass:pe,multi:!0,deps:[i.DOCUMENT]},{provide:Se,useClass:Se,deps:[U,re,d.APP_ID]},{provide:d.RendererFactory2,useExisting:Se},{provide:$,useExisting:re},{provide:re,useClass:re,deps:[i.DOCUMENT]},{provide:d.Testability,useClass:d.Testability,deps:[d.NgZone]},{provide:U,useClass:U,deps:[k,d.NgZone]},{provide:i.XhrFactory,useClass:w,deps:[]}];let lt=(()=>{class Le{constructor(he){if(he)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(he){return{ngModule:Le,providers:[{provide:d.APP_ID,useValue:he.appId},{provide:g,useExisting:d.APP_ID},A]}}}return Le.\u0275fac=function(he){return new(he||Le)(d.\u0275\u0275inject(Le,12))},Le.\u0275mod=d.\u0275\u0275defineNgModule({type:Le}),Le.\u0275inj=d.\u0275\u0275defineInjector({providers:Ot,imports:[i.CommonModule,d.ApplicationModule]}),Le})(),N=(()=>{class Le{constructor(he){this._doc=he,this._dom=(0,i.\u0275getDOM)()}addTag(he,He=!1){return he?this._getOrCreateElement(he,He):null}addTags(he,He=!1){return he?he.reduce((ut,Lt)=>(Lt&&ut.push(this._getOrCreateElement(Lt,He)),ut),[]):[]}getTag(he){return he&&this._doc.querySelector(`meta[${he}]`)||null}getTags(he){if(!he)return[];const He=this._doc.querySelectorAll(`meta[${he}]`);return He?[].slice.call(He):[]}updateTag(he,He){if(!he)return null;He=He||this._parseSelector(he);const ut=this.getTag(He);return ut?this._setMetaElementAttributes(he,ut):this._getOrCreateElement(he,!0)}removeTag(he){this.removeTagElement(this.getTag(he))}removeTagElement(he){he&&this._dom.remove(he)}_getOrCreateElement(he,He=!1){if(!He){const kt=this._parseSelector(he),hn=this.getTags(kt).filter(Dn=>this._containsAttributes(he,Dn))[0];if(void 0!==hn)return hn}const ut=this._dom.createElement("meta");return this._setMetaElementAttributes(he,ut),this._doc.getElementsByTagName("head")[0].appendChild(ut),ut}_setMetaElementAttributes(he,He){return Object.keys(he).forEach(ut=>He.setAttribute(this._getMetaKeyMap(ut),he[ut])),He}_parseSelector(he){const He=he.name?"name":"property";return`${He}="${he[He]}"`}_containsAttributes(he,He){return Object.keys(he).every(ut=>He.getAttribute(this._getMetaKeyMap(ut))===he[ut])}_getMetaKeyMap(he){return ae[he]||he}}return Le.\u0275fac=function(he){return new(he||Le)(d.\u0275\u0275inject(i.DOCUMENT))},Le.\u0275prov=d.\u0275\u0275defineInjectable({token:Le,factory:function(he){let He=null;return He=he?new he:function Qe(){return new N((0,d.\u0275\u0275inject)(i.DOCUMENT))}(),He},providedIn:"root"}),Le})();const ae={httpEquiv:"http-equiv"};let ue=(()=>{class Le{constructor(he){this._doc=he}getTitle(){return this._doc.title}setTitle(he){this._doc.title=he||""}}return Le.\u0275fac=function(he){return new(he||Le)(d.\u0275\u0275inject(i.DOCUMENT))},Le.\u0275prov=d.\u0275\u0275defineInjectable({token:Le,factory:function(he){let He=null;return He=he?new he:function Oe(){return new ue((0,d.\u0275\u0275inject)(i.DOCUMENT))}(),He},providedIn:"root"}),Le})();function Ge(Le,Ve){"undefined"!=typeof COMPILED&&COMPILED||((d.\u0275global.ng=d.\u0275global.ng||{})[Le]=Ve)}const nt="undefined"!=typeof window&&window||{};class ht{constructor(Ve,he){this.msPerTick=Ve,this.numTicks=he}}class ft{constructor(Ve){this.appRef=Ve.injector.get(d.ApplicationRef)}timeChangeDetection(Ve){const he=Ve&&Ve.record,He="Change Detection",ut=null!=nt.console.profile;he&&ut&&nt.console.profile(He);const Lt=wt();let kt=0;for(;kt<5||wt()-Lt<500;)this.appRef.tick(),kt++;const hn=wt();he&&ut&&nt.console.profileEnd(He);const Dn=(hn-Lt)/kt;return nt.console.log(`ran ${kt} change detection cycles`),nt.console.log(`${Dn.toFixed(2)} ms per check`),new ht(Dn,kt)}}function wt(){return nt.performance&&nt.performance.now?nt.performance.now():(new Date).getTime()}const Ht="profiler";function en(Le){return Ge(Ht,new ft(Le)),Le}function Bt(){Ge(Ht,null)}function En(Le){const Ve={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return Le.replace(/[&"'<>]/g,he=>Ve[he])}function zt(Le){return Le}let Mt=(()=>{class Le{constructor(){this.store={},this.onSerializeCallbacks={}}static init(he){const He=new Le;return He.store=he,He}get(he,He){return void 0!==this.store[he]?this.store[he]:He}set(he,He){this.store[he]=He}remove(he){delete this.store[he]}hasKey(he){return this.store.hasOwnProperty(he)}onSerialize(he,He){this.onSerializeCallbacks[he]=He}toJson(){for(const he in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(he))try{this.store[he]=this.onSerializeCallbacks[he]()}catch(He){console.warn("Exception in onSerialize callback: ",He)}return JSON.stringify(this.store)}}return Le.\u0275fac=function(he){return new(he||Le)},Le.\u0275prov=d.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})();function bn(Le,Ve){const he=Le.getElementById(Ve+"-state");let He={};if(he&&he.textContent)try{He=JSON.parse(function rn(Le){const Ve={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return Le.replace(/&[^;]+;/g,he=>Ve[he])}(he.textContent))}catch(ut){console.warn("Exception while restoring TransferState for app "+Ve,ut)}return Mt.init(He)}let Qt=(()=>{class Le{}return Le.\u0275fac=function(he){return new(he||Le)},Le.\u0275mod=d.\u0275\u0275defineNgModule({type:Le}),Le.\u0275inj=d.\u0275\u0275defineInjector({providers:[{provide:Mt,useFactory:bn,deps:[i.DOCUMENT,d.APP_ID]}]}),Le})();class on{static all(){return()=>!0}static css(Ve){return he=>null!=he.nativeElement&&function yn(Le,Ve){return!!(0,i.\u0275getDOM)().isElementNode(Le)&&(Le.matches&&Le.matches(Ve)||Le.msMatchesSelector&&Le.msMatchesSelector(Ve)||Le.webkitMatchesSelector&&Le.webkitMatchesSelector(Ve))}(he.nativeElement,Ve)}static directive(Ve){return he=>-1!==he.providerTokens.indexOf(Ve)}}const oe={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},W=new d.InjectionToken("HammerGestureConfig"),p=new d.InjectionToken("HammerLoader");let C=(()=>{class Le{constructor(){this.events=[],this.overrides={}}buildHammer(he){const He=new Hammer(he,this.options);He.get("pinch").set({enable:!0}),He.get("rotate").set({enable:!0});for(const ut in this.overrides)He.get(ut).set(this.overrides[ut]);return He}}return Le.\u0275fac=function(he){return new(he||Le)},Le.\u0275prov=d.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})(),D=(()=>{class Le extends me{constructor(he,He,ut,Lt){super(he),this._config=He,this.console=ut,this.loader=Lt,this._loaderPromise=null}supports(he){return!(!oe.hasOwnProperty(he.toLowerCase())&&!this.isCustomEvent(he)||!window.Hammer&&!this.loader)}addEventListener(he,He,ut){const Lt=this.manager.getZone();if(He=He.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let kt=!1,hn=()=>{kt=!0};return this._loaderPromise.then(()=>{window.Hammer?kt||(hn=this.addEventListener(he,He,ut)):hn=()=>{}}).catch(()=>{hn=()=>{}}),()=>{hn()}}return Lt.runOutsideAngular(()=>{const kt=this._config.buildHammer(he),hn=function(Dn){Lt.runGuarded(function(){ut(Dn)})};return kt.on(He,hn),()=>{kt.off(He,hn),"function"==typeof kt.destroy&&kt.destroy()}})}isCustomEvent(he){return this._config.events.indexOf(he)>-1}}return Le.\u0275fac=function(he){return new(he||Le)(d.\u0275\u0275inject(i.DOCUMENT),d.\u0275\u0275inject(W),d.\u0275\u0275inject(d.\u0275Console),d.\u0275\u0275inject(p,8))},Le.\u0275prov=d.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})(),K=(()=>{class Le{}return Le.\u0275fac=function(he){return new(he||Le)},Le.\u0275mod=d.\u0275\u0275defineNgModule({type:Le}),Le.\u0275inj=d.\u0275\u0275defineInjector({providers:[{provide:k,useClass:D,multi:!0,deps:[i.DOCUMENT,W,d.\u0275Console,[new d.Optional,p]]},{provide:W,useClass:C,deps:[]}]}),Le})(),et=(()=>{class Le{}return Le.\u0275fac=function(he){return new(he||Le)},Le.\u0275prov=d.\u0275\u0275defineInjectable({token:Le,factory:function(he){let He=null;return He=he?new(he||Le):d.\u0275\u0275inject(Wt),He},providedIn:"root"}),Le})(),Wt=(()=>{class Le extends et{constructor(he){super(),this._doc=he}sanitize(he,He){if(null==He)return null;switch(he){case d.SecurityContext.NONE:return He;case d.SecurityContext.HTML:return(0,d.\u0275allowSanitizationBypassAndThrow)(He,"HTML")?(0,d.\u0275unwrapSafeValue)(He):(0,d.\u0275_sanitizeHtml)(this._doc,String(He)).toString();case d.SecurityContext.STYLE:return(0,d.\u0275allowSanitizationBypassAndThrow)(He,"Style")?(0,d.\u0275unwrapSafeValue)(He):He;case d.SecurityContext.SCRIPT:if((0,d.\u0275allowSanitizationBypassAndThrow)(He,"Script"))return(0,d.\u0275unwrapSafeValue)(He);throw new Error("unsafe value used in a script context");case d.SecurityContext.URL:return(0,d.\u0275getSanitizationBypassType)(He),(0,d.\u0275allowSanitizationBypassAndThrow)(He,"URL")?(0,d.\u0275unwrapSafeValue)(He):(0,d.\u0275_sanitizeUrl)(String(He));case d.SecurityContext.RESOURCE_URL:if((0,d.\u0275allowSanitizationBypassAndThrow)(He,"ResourceURL"))return(0,d.\u0275unwrapSafeValue)(He);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${he} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(he){return(0,d.\u0275bypassSanitizationTrustHtml)(he)}bypassSecurityTrustStyle(he){return(0,d.\u0275bypassSanitizationTrustStyle)(he)}bypassSecurityTrustScript(he){return(0,d.\u0275bypassSanitizationTrustScript)(he)}bypassSecurityTrustUrl(he){return(0,d.\u0275bypassSanitizationTrustUrl)(he)}bypassSecurityTrustResourceUrl(he){return(0,d.\u0275bypassSanitizationTrustResourceUrl)(he)}}return Le.\u0275fac=function(he){return new(he||Le)(d.\u0275\u0275inject(i.DOCUMENT))},Le.\u0275prov=d.\u0275\u0275defineInjectable({token:Le,factory:function(he){let He=null;return He=he?new he:function Et(Le){return new Wt(Le.get(i.DOCUMENT))}(d.\u0275\u0275inject(d.Injector)),He},providedIn:"root"}),Le})();const pn=new d.Version("13.1.2")},107:(je,_,l)=>{"use strict";l.r(_),l.d(_,{MONACO_PATH:()=>O,MonacoDiffEditorComponent:()=>me,MonacoEditorComponent:()=>U,MonacoEditorLoaderDirective:()=>k,MonacoEditorLoaderService:()=>w,MonacoEditorModule:()=>$});var i=l(5e3),d=l(2722),m=l(9300),u=l(5698),s=l(1135),b=l(6758),T=l(655),S=l(3075);const g=["editor"],v=["diffEditor"],O="MONACO_PATH";let w=(()=>{class re{constructor(fe,_e){this.ngZone=fe,this.monacoPathConfig=_e,this.isMonacoLoaded$=new s.X(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?fe.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(fe){fe&&(this._monacoPath=fe)}loadMonaco(){const fe=()=>{let Fe=this._monacoPath;window.amdRequire=window.require;const Je=!!this.nodeRequire,ot=Fe.includes("http");Je&&(window.require=this.nodeRequire,ot||(Fe=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:Fe}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},q=>console.error("Error loading monaco-editor: ",q))};if(window.amdRequire)return fe();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const Ee=document.createElement("script");Ee.type="text/javascript",Ee.src=`${this._monacoPath}/loader.js`,Ee.addEventListener("load",fe),document.body.appendChild(Ee)}addElectronFixScripts(){const fe=document.createElement("script"),_e=document.createTextNode("self.module = undefined;"),le=document.createTextNode("self.process.browser = true;");fe.appendChild(_e),fe.appendChild(le),document.body.appendChild(fe)}}return re.\u0275fac=function(fe){return new(fe||re)(i.\u0275\u0275inject(i.NgZone),i.\u0275\u0275inject(O,8))},re.\u0275prov=i.\u0275\u0275defineInjectable({token:re,factory:re.\u0275fac,providedIn:"root"}),re})(),k=(()=>{class re{constructor(fe,_e,le){this.templateRef=fe,this.viewContainer=_e,this.monacoEditorLoaderService=le,this.isMonacoLoaded$=this.monacoEditorLoaderService.isMonacoLoaded$.asObservable(),this.destroyed$=new b.x}ngOnInit(){this.isMonacoLoaded$.pipe((0,d.R)(this.destroyed$)).subscribe(fe=>{if(!fe)return this.viewContainer.clear();this.viewContainer.createEmbeddedView(this.templateRef)})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}return re.\u0275fac=function(fe){return new(fe||re)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(w))},re.\u0275dir=i.\u0275\u0275defineDirective({type:re,selectors:[["","ngxLoadMonacoEditor",""]]}),re})(),U=(()=>{class re{constructor(fe){this.monacoLoader=fe,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)(fe=>fe),(0,u.q)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(fe){if(this.editor&&fe.options&&!fe.options.firstChange){const _e=fe.options.currentValue,{language:le,theme:Ee}=_e,Fe=(0,T.__rest)(_e,["language","theme"]),{language:Je,theme:ot}=fe.options.previousValue;Je!==le&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),ot!==Ee&&monaco.editor.setTheme(Ee),this.editor.updateOptions(Fe)}if(this.editor&&fe.uri){const _e=fe.uri.currentValue,le=fe.uri.previousValue;if(le&&!_e||!le&&_e||_e&&le&&_e.path!==le.path){const Ee=this.editor.getValue();let Fe;this.modelUriInstance&&this.modelUriInstance.dispose(),_e&&(Fe=monaco.editor.getModels().find(Je=>Je.uri.path===_e.path)),this.modelUriInstance=Fe||monaco.editor.createModel(Ee,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(fe){this.value=fe,this.editor&&fe?this.editor.setValue(fe):this.editor&&this.editor.setValue("")}registerOnChange(fe){this.propagateChange=fe}registerOnTouched(fe){this.onTouched=fe}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(fe){this.onErrorStatusChange=fe}initEditor(){const fe={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({},fe),this.options):fe),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const fe=this.modelMarkers.map(({message:le})=>le).join("|");this.parsedError!==fe&&(this.parsedError=fe,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return re.\u0275fac=function(fe){return new(fe||re)(i.\u0275\u0275directiveInject(w))},re.\u0275cmp=i.\u0275\u0275defineComponent({type:re,selectors:[["ngx-monaco-editor"]],viewQuery:function(fe,_e){if(1&fe&&i.\u0275\u0275viewQuery(g,7),2&fe){let le;i.\u0275\u0275queryRefresh(le=i.\u0275\u0275loadQuery())&&(_e.editorContent=le.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[i.\u0275\u0275ProvidersFeature([{provide:S.NG_VALUE_ACCESSOR,useExisting:(0,i.forwardRef)(()=>re),multi:!0},{provide:S.NG_VALIDATORS,useExisting:(0,i.forwardRef)(()=>re),multi:!0}]),i.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(fe,_e){1&fe&&(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}),re})(),me=(()=>{class re{constructor(fe){this.monacoLoader=fe,this.init=new i.EventEmitter}ngOnInit(){this.container=this.editorContent.nativeElement,this.monacoLoader.isMonacoLoaded$.pipe((0,m.h)(fe=>fe),(0,u.q)(1)).subscribe(()=>{this.initMonaco()})}ngOnChanges(fe){if(this.editor&&(fe.code&&!fe.code.firstChange||fe.modified&&!fe.modified.firstChange)){const _e=monaco.editor.createModel(this.modified),le=monaco.editor.createModel(this.original);this.editor.setModel({original:le,modified:_e})}this.editor&&fe.options&&!fe.options.firstChange&&(fe.options.previousValue.theme!==fe.options.currentValue.theme&&monaco.editor.setTheme(fe.options.currentValue.theme),this.editor.updateOptions(fe.options.currentValue))}initMonaco(){let fe={readOnly:!0,automaticLayout:!0,theme:"vc"};this.options&&(fe=Object.assign({},fe,this.options)),this.editor=monaco.editor.createDiffEditor(this.container,fe);const _e=monaco.editor.createModel(this.original),le=monaco.editor.createModel(this.modified);this.editor.setModel({original:_e,modified:le}),this.editor.layout(),this.init.emit(this.editor)}ngOnDestroy(){this.editor&&this.editor.dispose()}}return re.\u0275fac=function(fe){return new(fe||re)(i.\u0275\u0275directiveInject(w))},re.\u0275cmp=i.\u0275\u0275defineComponent({type:re,selectors:[["ngx-monaco-diff-editor"]],viewQuery:function(fe,_e){if(1&fe&&i.\u0275\u0275viewQuery(v,7),2&fe){let le;i.\u0275\u0275queryRefresh(le=i.\u0275\u0275loadQuery())&&(_e.editorContent=le.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(fe,_e){1&fe&&(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}),re})(),$=(()=>{class re{}return re.\u0275fac=function(fe){return new(fe||re)},re.\u0275mod=i.\u0275\u0275defineNgModule({type:re}),re.\u0275inj=i.\u0275\u0275defineInjector({imports:[[]]}),re})()},1430:(je,_,l)=>{"use strict";l.r(_),l.d(_,{ANGULAR_SPLIT_DEFAULT_OPTIONS:()=>Ee,AngularSplitModule:()=>ot,SplitAreaDirective:()=>Je,SplitComponent:()=>Fe});var i=l(5e3),d=l(9808),m=l(6758),u=l(9751),s=l(8372);const b=["gutterEls"];function T(q,Ae){if(1&q){const X=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",2,3),i.\u0275\u0275listener("mousedown",function(Se){i.\u0275\u0275restoreView(X);const ne=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startDragging(Se,2*ne+1,ne+1)})("touchstart",function(Se){i.\u0275\u0275restoreView(X);const ne=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startDragging(Se,2*ne+1,ne+1)})("mouseup",function(Se){i.\u0275\u0275restoreView(X);const ne=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(Se,ne+1)})("touchend",function(Se){i.\u0275\u0275restoreView(X);const ne=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(Se,ne+1)}),i.\u0275\u0275element(2,"div",4),i.\u0275\u0275elementEnd()}if(2&q){const X=i.\u0275\u0275nextContext().index,ce=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("flex-basis",ce.gutterSize,"px")("order",2*X+1)}}function S(q,Ae){1&q&&i.\u0275\u0275template(0,T,3,4,"div",1),2&q&&i.\u0275\u0275property("ngIf",!1===Ae.last)}const g=["*"];function v(q){return void 0!==q.changedTouches&&q.changedTouches.length>0?{x:q.changedTouches[0].clientX,y:q.changedTouches[0].clientY}:void 0!==q.clientX&&void 0!==q.clientY?{x:q.clientX,y:q.clientY}:null}function A(q,Ae,X){return Math.abs(q.x-Ae.x)<=X&&Math.abs(q.y-Ae.y)<=X}function O(q,Ae){const X=q.nativeElement.getBoundingClientRect();return"horizontal"===Ae?X.width:X.height}function w(q){return"boolean"==typeof q?q:"false"!==q}function k(q,Ae){return null==q?Ae:(q=Number(q),!isNaN(q)&&q>=0?q:Ae)}function U(q,Ae){if("percent"===q){const X=Ae.reduce((ce,Se)=>null!==Se?ce+Se:ce,0);return Ae.every(ce=>null!==ce)&&X>99.9&&X<100.1}if("pixel"===q)return 1===Ae.filter(X=>null===X).length}function me(q){return null===q.size?null:!0===q.component.lockSize?q.size:null===q.component.minSize?null:q.component.minSize>q.size?q.size:q.component.minSize}function $(q){return null===q.size?null:!0===q.component.lockSize?q.size:null===q.component.maxSize?null:q.component.maxSize<q.size?q.size:q.component.maxSize}function re(q,Ae,X,ce){return Ae.reduce((Se,ne)=>{const $e=function Te(q,Ae,X,ce){return 0===X?{areaSnapshot:Ae,pixelAbsorb:0,percentAfterAbsorption:Ae.sizePercentAtStart,pixelRemain:0}:0===Ae.sizePixelAtStart&&X<0?{areaSnapshot:Ae,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:X}:"percent"===q?function fe(q,Ae,X){const Se=(q.sizePixelAtStart+Ae)/X*100;if(Ae>0){if(null!==q.area.maxSize&&Se>q.area.maxSize){const ne=q.area.maxSize/100*X;return{areaSnapshot:q,pixelAbsorb:ne,percentAfterAbsorption:q.area.maxSize,pixelRemain:q.sizePixelAtStart+Ae-ne}}return{areaSnapshot:q,pixelAbsorb:Ae,percentAfterAbsorption:Se>100?100:Se,pixelRemain:0}}if(Ae<0){if(null!==q.area.minSize&&Se<q.area.minSize){const ne=q.area.minSize/100*X;return{areaSnapshot:q,pixelAbsorb:ne,percentAfterAbsorption:q.area.minSize,pixelRemain:q.sizePixelAtStart+Ae-ne}}return Se<0?{areaSnapshot:q,pixelAbsorb:-q.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:Ae+q.sizePixelAtStart}:{areaSnapshot:q,pixelAbsorb:Ae,percentAfterAbsorption:Se,pixelRemain:0}}}(Ae,X,ce):"pixel"===q?function _e(q,Ae,X){const ce=q.sizePixelAtStart+Ae;return Ae>0?null!==q.area.maxSize&&ce>q.area.maxSize?{areaSnapshot:q,pixelAbsorb:q.area.maxSize-q.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:ce-q.area.maxSize}:{areaSnapshot:q,pixelAbsorb:Ae,percentAfterAbsorption:-1,pixelRemain:0}:Ae<0?null!==q.area.minSize&&ce<q.area.minSize?{areaSnapshot:q,pixelAbsorb:q.area.minSize+Ae-ce,percentAfterAbsorption:-1,pixelRemain:ce-q.area.minSize}:ce<0?{areaSnapshot:q,pixelAbsorb:-q.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:Ae+q.sizePixelAtStart}:{areaSnapshot:q,pixelAbsorb:Ae,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(Ae,X):void 0}(q,ne,Se.remain,ce);return Se.list.push($e),Se.remain=$e.pixelRemain,Se},{remain:X,list:[]})}function le(q,Ae){"percent"===q?Ae.areaSnapshot.area.size=Ae.percentAfterAbsorption:"pixel"===q&&null!==Ae.areaSnapshot.area.size&&(Ae.areaSnapshot.area.size=Ae.areaSnapshot.sizePixelAtStart+Ae.pixelAbsorb)}const Ee=new i.InjectionToken("angular-split-global-config");let Fe=(()=>{class q{constructor(X,ce,Se,ne,$e){this.ngZone=X,this.elRef=ce,this.cdRef=Se,this.renderer=ne,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new i.EventEmitter(!1),this.dragEnd=new i.EventEmitter(!1),this.gutterClick=new i.EventEmitter(!1),this.gutterDblClick=new i.EventEmitter(!1),this.dragProgressSubject=new m.x,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.direction=this._direction,this._config=$e?Object.assign(this._config,$e):this._config,Object.keys(this._config).forEach(ge=>{this[ge]=this._config[ge]})}set direction(X){this._direction="vertical"===X?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("vertical"===this._direction?"horizontal":"vertical")),this.build(!1,!1)}get direction(){return this._direction}set unit(X){this._unit="pixel"===X?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("pixel"===this._unit?"percent":"pixel")),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(X){this._gutterSize=k(X,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(X){this._gutterStep=k(X,1)}get gutterStep(){return this._gutterStep}set restrictMove(X){this._restrictMove=w(X)}get restrictMove(){return this._restrictMove}set useTransition(X){this._useTransition=w(X),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(X){this._disabled=w(X),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(X){this._dir="rtl"===X?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(X){this._gutterDblClickDuration=k(X,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new u.y(X=>this.transitionEndSubscriber=X).pipe((0,s.b)(20))}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea(X){const ce={component:X,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===X.visible?(this.displayedAreas.push(ce),this.build(!0,!0)):this.hiddenAreas.push(ce)}removeArea(X){if(this.displayedAreas.some(ce=>ce.component===X)){const ce=this.displayedAreas.find(Se=>Se.component===X);this.displayedAreas.splice(this.displayedAreas.indexOf(ce),1),this.build(!0,!0)}else if(this.hiddenAreas.some(ce=>ce.component===X)){const ce=this.hiddenAreas.find(Se=>Se.component===X);this.hiddenAreas.splice(this.hiddenAreas.indexOf(ce),1)}}updateArea(X,ce,Se){!0===X.visible&&this.build(ce,Se)}showArea(X){const ce=this.hiddenAreas.find(ne=>ne.component===X);if(void 0===ce)return;const Se=this.hiddenAreas.splice(this.hiddenAreas.indexOf(ce),1);this.displayedAreas.push(...Se),this.build(!0,!0)}hideArea(X){const ce=this.displayedAreas.find(ne=>ne.component===X);if(void 0===ce)return;const Se=this.displayedAreas.splice(this.displayedAreas.indexOf(ce),1);Se.forEach(ne=>{ne.order=0,ne.size=0}),this.hiddenAreas.push(...Se),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(X=>null===X.size?"*":X.size)}setVisibleAreaSizes(X){if(X.length!==this.displayedAreas.length)return!1;const ce=X.map(ne=>k(ne,null));return!1!==U(this.unit,ce)&&(this.displayedAreas.forEach((ne,$e)=>ne.component._size=ce[$e]),this.build(!1,!0),!0)}build(X,ce){if(this.stopDragging(),!0===X&&(this.displayedAreas.every(Se=>null!==Se.component.order)&&this.displayedAreas.sort((Se,ne)=>Se.component.order-ne.component.order),this.displayedAreas.forEach((Se,ne)=>{Se.order=2*ne,Se.component.setStyleOrder(Se.order)})),!0===ce){const Se=U(this.unit,this.displayedAreas.map(ne=>ne.component.size));switch(this.unit){case"percent":{const ne=100/this.displayedAreas.length;this.displayedAreas.forEach($e=>{$e.size=Se?$e.component.size:ne,$e.minSize=me($e),$e.maxSize=$($e)});break}case"pixel":if(Se)this.displayedAreas.forEach(ne=>{ne.size=ne.component.size,ne.minSize=me(ne),ne.maxSize=$(ne)});else{const ne=this.displayedAreas.filter($e=>null===$e.component.size);if(0===ne.length&&this.displayedAreas.length>0)this.displayedAreas.forEach(($e,ge)=>{$e.size=0===ge?null:$e.component.size,$e.minSize=0===ge?null:me($e),$e.maxSize=0===ge?null:$($e)});else if(ne.length>1){let $e=!1;this.displayedAreas.forEach(ge=>{null===ge.component.size?!1===$e?(ge.size=null,ge.minSize=null,ge.maxSize=null,$e=!0):(ge.size=100,ge.minSize=null,ge.maxSize=null):(ge.size=ge.component.size,ge.minSize=me(ge),ge.maxSize=$(ge))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const X=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(ce=>{ce.component.setStyleFlex(0,0,`calc( ${ce.size}% - ${ce.size/100*X}px )`,null!==ce.minSize&&ce.minSize===ce.size,null!==ce.maxSize&&ce.maxSize===ce.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(X=>{null===X.size?X.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?X.component.setStyleFlex(0,0,"100%",!1,!1):X.component.setStyleFlex(0,0,`${X.size}px`,null!==X.minSize&&X.minSize===X.size,null!==X.maxSize&&X.maxSize===X.size)})}clickGutter(X,ce){const Se=v(X);this.startPoint&&A(this.startPoint,Se,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",ce),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",ce),this.stopDragging()},this.gutterDblClickDuration))}startDragging(X,ce,Se){X.preventDefault(),X.stopPropagation(),this.startPoint=v(X),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.snapshot={gutterNum:Se,lastSteppedOffset:0,allAreasSizePixel:O(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(ne=>{const $e={area:ne,sizePixelAtStart:O(ne.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?ne.size:-1};ne.order<ce?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[$e]:this.snapshot.areasBeforeGutter.unshift($e):ne.order>ce&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[$e]):this.snapshot.areasAfterGutter.push($e))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((ne,$e)=>ne+$e.sizePercentAtStart,0),0!==this.snapshot.areasBeforeGutter.length&&0!==this.snapshot.areasAfterGutter.length&&(this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.dragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.dragEvent.bind(this)))}),this.displayedAreas.forEach(ne=>ne.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0))}dragEvent(X){X.preventDefault(),X.stopPropagation();const ce=v(X);if(null!==this._clickTimeout&&!A(this.startPoint,ce,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1===this.isDragging||(this.endPoint=v(X),null===this.endPoint))return;if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)})}let Se="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(Se=-Se);const ne=Math.round(Se/this.gutterStep)*this.gutterStep;if(ne===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=ne;let $e=re(this.unit,this.snapshot.areasBeforeGutter,-ne,this.snapshot.allAreasSizePixel),ge=re(this.unit,this.snapshot.areasAfterGutter,ne,this.snapshot.allAreasSizePixel);if(0!==$e.remain&&0!==ge.remain?Math.abs($e.remain)===Math.abs(ge.remain)||(Math.abs($e.remain)>Math.abs(ge.remain)?ge=re(this.unit,this.snapshot.areasAfterGutter,ne+$e.remain,this.snapshot.allAreasSizePixel):$e=re(this.unit,this.snapshot.areasBeforeGutter,-(ne-ge.remain),this.snapshot.allAreasSizePixel)):0!==$e.remain?ge=re(this.unit,this.snapshot.areasAfterGutter,ne+$e.remain,this.snapshot.allAreasSizePixel):0!==ge.remain&&($e=re(this.unit,this.snapshot.areasBeforeGutter,-(ne-ge.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const Ze=[...$e.list,...ge.list],Me=Ze.find(Ke=>0!==Ke.percentAfterAbsorption&&Ke.percentAfterAbsorption!==Ke.areaSnapshot.area.minSize&&Ke.percentAfterAbsorption!==Ke.areaSnapshot.area.maxSize);Me&&(Me.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-Ze.filter(Ke=>Ke!==Me).reduce((Ke,mt)=>Ke+mt.percentAfterAbsorption,0))}$e.list.forEach(Ze=>le(this.unit,Ze)),ge.list.forEach(Ze=>le(this.unit,Ze)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(X){if(X&&(X.preventDefault(),X.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(ce=>ce.component.unlockEvents());this.dragListeners.length>0;){const ce=this.dragListeners.pop();ce&&ce()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(X,ce){const Se=this.getVisibleAreaSizes();"start"===X?this.dragStart.emit({gutterNum:ce,sizes:Se}):"end"===X?this.dragEnd.emit({gutterNum:ce,sizes:Se}):"click"===X?this.gutterClick.emit({gutterNum:ce,sizes:Se}):"dblclick"===X?this.gutterDblClick.emit({gutterNum:ce,sizes:Se}):"transitionEnd"===X?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(Se)):"progress"===X&&this.dragProgressSubject.next({gutterNum:ce,sizes:Se})}ngOnDestroy(){this.stopDragging()}collapseArea(X,ce,Se){const ne=this.displayedAreas.find(Ze=>Ze.component===X);if(void 0===ne)return;const $e="right"===Se?1:-1;ne.sizeBeforeCollapse||(ne.sizeBeforeCollapse=ne.size,ne.gutterBeforeCollapse=$e),ne.size=ce;const ge=this.gutterEls.find(Ze=>Ze.nativeElement.style.order===`${ne.order+$e}`);ge&&this.renderer.addClass(ge.nativeElement,"as-split-gutter-collapsed"),this.updateArea(X,!1,!1)}expandArea(X){const ce=this.displayedAreas.find(ne=>ne.component===X);if(void 0===ce||!ce.sizeBeforeCollapse)return;ce.size=ce.sizeBeforeCollapse,ce.sizeBeforeCollapse=null;const Se=this.gutterEls.find(ne=>ne.nativeElement.style.order===`${ce.order+ce.gutterBeforeCollapse}`);Se&&this.renderer.removeClass(Se.nativeElement,"as-split-gutter-collapsed"),this.updateArea(X,!1,!1)}}return q.\u0275fac=function(X){return new(X||q)(i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Ee,8))},q.\u0275cmp=i.\u0275\u0275defineComponent({type:q,selectors:[["as-split"]],viewQuery:function(X,ce){if(1&X&&i.\u0275\u0275viewQuery(b,5),2&X){let Se;i.\u0275\u0275queryRefresh(Se=i.\u0275\u0275loadQuery())&&(ce.gutterEls=Se)}},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:g,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["class","as-split-gutter",3,"flex-basis","order","mousedown","touchstart","mouseup","touchend",4,"ngIf"],[1,"as-split-gutter",3,"mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(X,ce){1&X&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275projection(0),i.\u0275\u0275template(1,S,1,1,"ng-template",0)),2&X&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",ce.displayedAreas))},directives:[d.NgForOf,d.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}),q})(),Je=(()=>{class q{constructor(X,ce,Se,ne){this.ngZone=X,this.elRef=ce,this.renderer=Se,this.split=ne,this._order=null,this._size=null,this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}set order(X){this._order=k(X,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(X){this._size=k(X,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(X){this._minSize=k(X,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(X){this._maxSize=k(X,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(X){this._lockSize=w(X),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(X){this._visible=w(X),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",X=>{"flex-basis"===X.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(X){this.renderer.setStyle(this.elRef.nativeElement,"order",X)}setStyleFlex(X,ce,Se,ne,$e){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",X),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",ce),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",Se),!0===ne?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===$e?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const X=this.lockListeners.pop();X&&X()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}collapse(X=0,ce="right"){this.split.collapseArea(this,X,ce)}expand(){this.split.expandArea(this)}}return q.\u0275fac=function(X){return new(X||q)(i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Fe))},q.\u0275dir=i.\u0275\u0275defineDirective({type:q,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]}),q})(),ot=(()=>{class q{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:q,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:q,providers:[]}}}return q.\u0275fac=function(X){return new(X||q)},q.\u0275mod=i.\u0275\u0275defineNgModule({type:q}),q.\u0275inj=i.\u0275\u0275defineInjector({imports:[[d.CommonModule]]}),q})()},2290:(je,_,l)=>{"use strict";l.r(_),l.d(_,{BasePortalHost:()=>le,ComponentPortal:()=>_e,DefaultGlobalConfig:()=>ge,DefaultNoAnimationsGlobalConfig:()=>mt,DefaultNoComponentGlobalConfig:()=>Fe,Overlay:()=>Se,OverlayContainer:()=>ce,OverlayRef:()=>X,TOAST_CONFIG:()=>Je,Toast:()=>$e,ToastContainerDirective:()=>Te,ToastContainerModule:()=>fe,ToastInjector:()=>q,ToastNoAnimation:()=>Ke,ToastNoAnimationModule:()=>Dt,ToastPackage:()=>Ee,ToastRef:()=>ot,ToastrComponentlessModule:()=>Me,ToastrModule:()=>Ze,ToastrService:()=>ne});var i=l(5e3),d=l(1777),m=l(6758),u=l(9808),s=l(2313);const b=["toast-component",""];function T(ke,Ye){if(1&ke){const Z=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(Z),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementEnd()}}function S(ke,Ye){if(1&ke&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&ke){const Z=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",Z.duplicatesCount+1,"]")}}function g(ke,Ye){if(1&ke&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,S,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&ke){const Z=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Z.options.titleClass),i.\u0275\u0275attribute("aria-label",Z.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Z.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",Z.duplicatesCount)}}function v(ke,Ye){if(1&ke&&i.\u0275\u0275element(0,"div",7),2&ke){const Z=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Z.options.messageClass),i.\u0275\u0275property("innerHTML",Z.message,i.\u0275\u0275sanitizeHtml)}}function A(ke,Ye){if(1&ke&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&ke){const Z=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Z.options.messageClass),i.\u0275\u0275attribute("aria-label",Z.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Z.message," ")}}function O(ke,Ye){if(1&ke&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&ke){const Z=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",Z.width+"%")}}function w(ke,Ye){if(1&ke){const Z=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(Z),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementEnd()}}function k(ke,Ye){if(1&ke&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&ke){const Z=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",Z.duplicatesCount+1,"]")}}function U(ke,Ye){if(1&ke&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,k,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&ke){const Z=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Z.options.titleClass),i.\u0275\u0275attribute("aria-label",Z.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Z.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",Z.duplicatesCount)}}function me(ke,Ye){if(1&ke&&i.\u0275\u0275element(0,"div",7),2&ke){const Z=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Z.options.messageClass),i.\u0275\u0275property("innerHTML",Z.message,i.\u0275\u0275sanitizeHtml)}}function $(ke,Ye){if(1&ke&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&ke){const Z=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Z.options.messageClass),i.\u0275\u0275attribute("aria-label",Z.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Z.message," ")}}function re(ke,Ye){if(1&ke&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&ke){const Z=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",Z.width+"%")}}let Te=(()=>{class ke{constructor(Z){this.el=Z}getContainerElement(){return this.el.nativeElement}}return ke.\u0275fac=function(Z){return new(Z||ke)(i.\u0275\u0275directiveInject(i.ElementRef))},ke.\u0275dir=i.\u0275\u0275defineDirective({type:ke,selectors:[["","toastContainer",""]],exportAs:["toastContainer"]}),ke})(),fe=(()=>{class ke{}return ke.\u0275fac=function(Z){return new(Z||ke)},ke.\u0275mod=i.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=i.\u0275\u0275defineInjector({}),ke})();class _e{constructor(Ye,Z){this.component=Ye,this.injector=Z}attach(Ye,Z){return this._attachedHost=Ye,Ye.attach(this,Z)}detach(){const Ye=this._attachedHost;if(Ye)return this._attachedHost=void 0,Ye.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(Ye){this._attachedHost=Ye}}class le{attach(Ye,Z){return this._attachedPortal=Ye,this.attachComponentPortal(Ye,Z)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(Ye){this._disposeFn=Ye}}class Ee{constructor(Ye,Z,pe,we,Re,ye){this.toastId=Ye,this.config=Z,this.message=pe,this.title=we,this.toastType=Re,this.toastRef=ye,this._onTap=new m.x,this._onAction=new m.x,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(Ye){this._onAction.next(Ye)}onAction(){return this._onAction.asObservable()}}const Fe={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 ot{constructor(Ye){this._overlayRef=Ye,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(Ye,Z){Ye&&this._resetTimeout.next(),Z&&this._countDuplicate.next(++this.duplicatesCount)}}class q{constructor(Ye,Z){this._toastPackage=Ye,this._parentInjector=Z}get(Ye,Z,pe){return Ye===Ee?this._toastPackage:this._parentInjector.get(Ye,Z,pe)}}class Ae extends le{constructor(Ye,Z,pe){super(),this._hostDomElement=Ye,this._componentFactoryResolver=Z,this._appRef=pe}attachComponentPortal(Ye,Z){const pe=this._componentFactoryResolver.resolveComponentFactory(Ye.component);let we;return we=pe.create(Ye.injector),this._appRef.attachView(we.hostView),this.setDisposeFn(()=>{this._appRef.detachView(we.hostView),we.destroy()}),Z?this._hostDomElement.insertBefore(this._getComponentRootNode(we),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(we)),we}_getComponentRootNode(Ye){return Ye.hostView.rootNodes[0]}}class X{constructor(Ye){this._portalHost=Ye}attach(Ye,Z=!0){return this._portalHost.attach(Ye,Z)}detach(){return this._portalHost.detach()}}let ce=(()=>{class ke{constructor(Z){this._document=Z}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Z=this._document.createElement("div");Z.classList.add("overlay-container"),this._document.body.appendChild(Z),this._containerElement=Z}}return ke.\u0275fac=function(Z){return new(Z||ke)(i.\u0275\u0275inject(u.DOCUMENT))},ke.\u0275prov=i.\u0275\u0275defineInjectable({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),Se=(()=>{class ke{constructor(Z,pe,we,Re){this._overlayContainer=Z,this._componentFactoryResolver=pe,this._appRef=we,this._document=Re,this._paneElements=new Map}create(Z,pe){return this._createOverlayRef(this.getPaneElement(Z,pe))}getPaneElement(Z="",pe){return this._paneElements.get(pe)||this._paneElements.set(pe,{}),this._paneElements.get(pe)[Z]||(this._paneElements.get(pe)[Z]=this._createPaneElement(Z,pe)),this._paneElements.get(pe)[Z]}_createPaneElement(Z,pe){const we=this._document.createElement("div");return we.id="toast-container",we.classList.add(Z),we.classList.add("toast-container"),pe?pe.getContainerElement().appendChild(we):this._overlayContainer.getContainerElement().appendChild(we),we}_createPortalHost(Z){return new Ae(Z,this._componentFactoryResolver,this._appRef)}_createOverlayRef(Z){return new X(this._createPortalHost(Z))}}return ke.\u0275fac=function(Z){return new(Z||ke)(i.\u0275\u0275inject(ce),i.\u0275\u0275inject(i.ComponentFactoryResolver),i.\u0275\u0275inject(i.ApplicationRef),i.\u0275\u0275inject(u.DOCUMENT))},ke.\u0275prov=i.\u0275\u0275defineInjectable({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),ne=(()=>{class ke{constructor(Z,pe,we,Re,ye){this.overlay=pe,this._injector=we,this.sanitizer=Re,this.ngZone=ye,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},Z.default),Z.config),Z.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},Z.default.iconClasses),Z.config.iconClasses))}show(Z,pe,we={},Re=""){return this._preBuildNotification(Re,Z,pe,this.applyConfig(we))}success(Z,pe,we={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",Z,pe,this.applyConfig(we))}error(Z,pe,we={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",Z,pe,this.applyConfig(we))}info(Z,pe,we={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",Z,pe,this.applyConfig(we))}warning(Z,pe,we={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",Z,pe,this.applyConfig(we))}clear(Z){for(const pe of this.toasts)if(void 0!==Z){if(pe.toastId===Z)return void pe.toastRef.manualClose()}else pe.toastRef.manualClose()}remove(Z){const pe=this._findToast(Z);if(!pe||(pe.activeToast.toastRef.close(),this.toasts.splice(pe.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 we=this.toasts[this.currentlyActive].toastRef;we.isInactive()||(this.currentlyActive=this.currentlyActive+1,we.activate())}return!0}findDuplicate(Z="",pe="",we,Re){const{includeTitleDuplicates:ye}=this.toastrConfig;for(const Xe of this.toasts){const dt=ye&&Xe.title===Z;if((!ye||dt)&&Xe.message===pe)return Xe.toastRef.onDuplicate(we,Re),Xe}return null}applyConfig(Z={}){return Object.assign(Object.assign({},this.toastrConfig),Z)}_findToast(Z){for(let pe=0;pe<this.toasts.length;pe++)if(this.toasts[pe].toastId===Z)return{index:pe,activeToast:this.toasts[pe]};return null}_preBuildNotification(Z,pe,we,Re){return Re.onActivateTick?this.ngZone.run(()=>this._buildNotification(Z,pe,we,Re)):this._buildNotification(Z,pe,we,Re)}_buildNotification(Z,pe,we,Re){if(!Re.toastComponent)throw new Error("toastComponent required");const ye=this.findDuplicate(we,pe,this.toastrConfig.resetTimeoutOnDuplicate&&Re.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&we||pe)&&this.toastrConfig.preventDuplicates&&null!==ye)return ye;this.previousToastMessage=pe;let Xe=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Xe=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const dt=this.overlay.create(Re.positionClass,this.overlayContainer);this.index=this.index+1;let bt=pe;pe&&Re.enableHtml&&(bt=this.sanitizer.sanitize(i.SecurityContext.HTML,pe));const Ot=new ot(dt),lt=new Ee(this.index,Re,bt,we,Z,Ot),Qe=new q(lt,this._injector),N=new _e(Re.toastComponent,Qe),ae=dt.attach(N,this.toastrConfig.newestOnTop);Ot.componentInstance=ae.instance;const Oe={toastId:this.index,title:we||"",message:pe||"",toastRef:Ot,onShown:Ot.afterActivate(),onHidden:Ot.afterClosed(),onTap:lt.onTap(),onAction:lt.onAction(),portal:ae};return Xe||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Oe.toastRef.activate()})),this.toasts.push(Oe),Oe}}return ke.\u0275fac=function(Z){return new(Z||ke)(i.\u0275\u0275inject(Je),i.\u0275\u0275inject(Se),i.\u0275\u0275inject(i.Injector),i.\u0275\u0275inject(s.DomSanitizer),i.\u0275\u0275inject(i.NgZone))},ke.\u0275prov=i.\u0275\u0275defineInjectable({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),$e=(()=>{class ke{constructor(Z,pe,we){this.toastrService=Z,this.toastPackage=pe,this.ngZone=we,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=pe.message,this.title=pe.title,this.options=pe.config,this.originalTimeout=pe.config.timeOut,this.toastClasses=`${pe.toastType} ${pe.config.toastClass}`,this.sub=pe.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=pe.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=pe.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=pe.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 Z=(new Date).getTime();this.width=(this.hideTime-Z)/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(Z,pe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(Z),pe)):this.timeout=setTimeout(()=>Z(),pe)}outsideInterval(Z,pe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(Z),pe)):this.intervalId=setInterval(()=>Z(),pe)}runInsideAngular(Z){this.ngZone?this.ngZone.run(()=>Z()):Z()}}return ke.\u0275fac=function(Z){return new(Z||ke)(i.\u0275\u0275directiveInject(ne),i.\u0275\u0275directiveInject(Ee),i.\u0275\u0275directiveInject(i.NgZone))},ke.\u0275cmp=i.\u0275\u0275defineComponent({type:ke,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(Z,pe){1&Z&&i.\u0275\u0275listener("click",function(){return pe.tapToast()})("mouseenter",function(){return pe.stickAround()})("mouseleave",function(){return pe.delayedHideToast()}),2&Z&&(i.\u0275\u0275syntheticHostProperty("@flyInOut",pe.state),i.\u0275\u0275classMap(pe.toastClasses),i.\u0275\u0275styleProp("display",pe.displayStyle))},attrs:b,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(Z,pe){1&Z&&(i.\u0275\u0275template(0,T,3,0,"button",0),i.\u0275\u0275template(1,g,3,5,"div",1),i.\u0275\u0275template(2,v,1,3,"div",2),i.\u0275\u0275template(3,A,2,4,"div",3),i.\u0275\u0275template(4,O,2,2,"div",4)),2&Z&&(i.\u0275\u0275property("ngIf",pe.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.message&&pe.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.message&&!pe.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.options.progressBar))},directives:[u.NgIf],encapsulation:2,data:{animation:[(0,d.X$)("flyInOut",[(0,d.SB)("inactive",(0,d.oB)({opacity:0})),(0,d.SB)("active",(0,d.oB)({opacity:1})),(0,d.SB)("removed",(0,d.oB)({opacity:0})),(0,d.eR)("inactive => active",(0,d.jt)("{{ easeTime }}ms {{ easing }}")),(0,d.eR)("active => removed",(0,d.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),ke})();const ge=Object.assign(Object.assign({},Fe),{toastComponent:$e});let Ze=(()=>{class ke{static forRoot(Z={}){return{ngModule:ke,providers:[{provide:Je,useValue:{default:ge,config:Z}}]}}}return ke.\u0275fac=function(Z){return new(Z||ke)},ke.\u0275mod=i.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),ke})(),Me=(()=>{class ke{static forRoot(Z={}){return{ngModule:Ze,providers:[{provide:Je,useValue:{default:Fe,config:Z}}]}}}return ke.\u0275fac=function(Z){return new(Z||ke)},ke.\u0275mod=i.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),ke})(),Ke=(()=>{class ke{constructor(Z,pe,we){this.toastrService=Z,this.toastPackage=pe,this.appRef=we,this.width=-1,this.toastClasses="",this.state="inactive",this.message=pe.message,this.title=pe.title,this.options=pe.config,this.originalTimeout=pe.config.timeOut,this.toastClasses=`${pe.toastType} ${pe.config.toastClass}`,this.sub=pe.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=pe.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=pe.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=pe.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 Z=(new Date).getTime();this.width=(this.hideTime-Z)/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 ke.\u0275fac=function(Z){return new(Z||ke)(i.\u0275\u0275directiveInject(ne),i.\u0275\u0275directiveInject(Ee),i.\u0275\u0275directiveInject(i.ApplicationRef))},ke.\u0275cmp=i.\u0275\u0275defineComponent({type:ke,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(Z,pe){1&Z&&i.\u0275\u0275listener("click",function(){return pe.tapToast()})("mouseenter",function(){return pe.stickAround()})("mouseleave",function(){return pe.delayedHideToast()}),2&Z&&(i.\u0275\u0275classMap(pe.toastClasses),i.\u0275\u0275styleProp("display",pe.displayStyle))},attrs:b,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(Z,pe){1&Z&&(i.\u0275\u0275template(0,w,3,0,"button",0),i.\u0275\u0275template(1,U,3,5,"div",1),i.\u0275\u0275template(2,me,1,3,"div",2),i.\u0275\u0275template(3,$,2,4,"div",3),i.\u0275\u0275template(4,re,2,2,"div",4)),2&Z&&(i.\u0275\u0275property("ngIf",pe.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.message&&pe.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.message&&!pe.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.options.progressBar))},directives:[u.NgIf],encapsulation:2}),ke})();const mt=Object.assign(Object.assign({},Fe),{toastComponent:Ke});let Dt=(()=>{class ke{static forRoot(Z={}){return{ngModule:ke,providers:[{provide:Je,useValue:{default:mt,config:Z}}]}}}return ke.\u0275fac=function(Z){return new(Z||ke)},ke.\u0275mod=i.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),ke})()},4147:je=>{"use strict";je.exports=JSON.parse('{"name":"@sdkgen/playground","version":"0.0.0-dev.20220113215121","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.20220113215121","@sdkgen/csharp-generator":"0.0.0-dev.20220113215121","@sdkgen/dart-generator":"0.0.0-dev.20220113215121","@sdkgen/kotlin-generator":"0.0.0-dev.20220113215121","@sdkgen/parser":"0.0.0-dev.20220113215121","@sdkgen/swift-generator":"0.0.0-dev.20220113215121","@sdkgen/typescript-generator":"0.0.0-dev.20220113215121"},"devDependencies":{"@angular-devkit/build-angular":"~13.1.2","@angular/animations":"~13.1.2","@angular/cdk":"~13.1.2","@angular/cli":"~13.1.2","@angular/common":"~13.1.2","@angular/compiler":"~13.1.2","@angular/compiler-cli":"~13.1.2","@angular/core":"~13.1.2","@angular/forms":"~13.1.2","@angular/material":"~13.1.2","@angular/platform-browser":"~13.1.2","@angular/platform-browser-dynamic":"~13.1.2","@angular/router":"~13.1.2","@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.31.1","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"}}')}},je=>{je(je.s=4431)}]);