@sdkgen/playground 0.0.0-dev.20211129132842 → 0.0.0-dev.20220113115941

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.
Files changed (110) hide show
  1. package/dist/3rdpartylicenses.txt +2 -2
  2. package/dist/assets/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  3. package/dist/assets/vs/base/worker/workerMain.js +14 -10
  4. package/dist/assets/vs/basic-languages/abap/abap.js +6 -3
  5. package/dist/assets/vs/basic-languages/apex/apex.js +6 -3
  6. package/dist/assets/vs/basic-languages/azcli/azcli.js +6 -3
  7. package/dist/assets/vs/basic-languages/bat/bat.js +6 -3
  8. package/dist/assets/vs/basic-languages/bicep/bicep.js +7 -3
  9. package/dist/assets/vs/basic-languages/cameligo/cameligo.js +6 -3
  10. package/dist/assets/vs/basic-languages/clojure/clojure.js +6 -3
  11. package/dist/assets/vs/basic-languages/coffee/coffee.js +6 -3
  12. package/dist/assets/vs/basic-languages/cpp/cpp.js +6 -3
  13. package/dist/assets/vs/basic-languages/csharp/csharp.js +6 -3
  14. package/dist/assets/vs/basic-languages/csp/csp.js +6 -3
  15. package/dist/assets/vs/basic-languages/css/css.js +8 -3
  16. package/dist/assets/vs/basic-languages/dart/dart.js +6 -3
  17. package/dist/assets/vs/basic-languages/dockerfile/dockerfile.js +6 -3
  18. package/dist/assets/vs/basic-languages/ecl/ecl.js +6 -3
  19. package/dist/assets/vs/basic-languages/elixir/elixir.js +6 -3
  20. package/dist/assets/vs/basic-languages/flow9/flow9.js +6 -3
  21. package/dist/assets/vs/basic-languages/fsharp/fsharp.js +6 -3
  22. package/dist/assets/vs/basic-languages/go/go.js +6 -3
  23. package/dist/assets/vs/basic-languages/graphql/graphql.js +6 -3
  24. package/dist/assets/vs/basic-languages/handlebars/handlebars.js +6 -3
  25. package/dist/assets/vs/basic-languages/hcl/hcl.js +6 -3
  26. package/dist/assets/vs/basic-languages/html/html.js +6 -3
  27. package/dist/assets/vs/basic-languages/ini/ini.js +6 -3
  28. package/dist/assets/vs/basic-languages/java/java.js +6 -3
  29. package/dist/assets/vs/basic-languages/javascript/javascript.js +6 -3
  30. package/dist/assets/vs/basic-languages/julia/julia.js +6 -3
  31. package/dist/assets/vs/basic-languages/kotlin/kotlin.js +6 -3
  32. package/dist/assets/vs/basic-languages/less/less.js +7 -3
  33. package/dist/assets/vs/basic-languages/lexon/lexon.js +6 -3
  34. package/dist/assets/vs/basic-languages/liquid/liquid.js +6 -3
  35. package/dist/assets/vs/basic-languages/lua/lua.js +6 -3
  36. package/dist/assets/vs/basic-languages/m3/m3.js +6 -3
  37. package/dist/assets/vs/basic-languages/markdown/markdown.js +6 -3
  38. package/dist/assets/vs/basic-languages/mips/mips.js +6 -3
  39. package/dist/assets/vs/basic-languages/msdax/msdax.js +6 -3
  40. package/dist/assets/vs/basic-languages/mysql/mysql.js +6 -3
  41. package/dist/assets/vs/basic-languages/objective-c/objective-c.js +6 -3
  42. package/dist/assets/vs/basic-languages/pascal/pascal.js +6 -3
  43. package/dist/assets/vs/basic-languages/pascaligo/pascaligo.js +6 -3
  44. package/dist/assets/vs/basic-languages/perl/perl.js +6 -3
  45. package/dist/assets/vs/basic-languages/pgsql/pgsql.js +6 -3
  46. package/dist/assets/vs/basic-languages/php/php.js +6 -3
  47. package/dist/assets/vs/basic-languages/pla/pla.js +10 -0
  48. package/dist/assets/vs/basic-languages/postiats/postiats.js +6 -3
  49. package/dist/assets/vs/basic-languages/powerquery/powerquery.js +6 -3
  50. package/dist/assets/vs/basic-languages/powershell/powershell.js +6 -3
  51. package/dist/assets/vs/basic-languages/protobuf/protobuf.js +7 -3
  52. package/dist/assets/vs/basic-languages/pug/pug.js +6 -3
  53. package/dist/assets/vs/basic-languages/python/python.js +6 -3
  54. package/dist/assets/vs/basic-languages/qsharp/qsharp.js +6 -3
  55. package/dist/assets/vs/basic-languages/r/r.js +6 -3
  56. package/dist/assets/vs/basic-languages/razor/razor.js +6 -3
  57. package/dist/assets/vs/basic-languages/redis/redis.js +6 -3
  58. package/dist/assets/vs/basic-languages/redshift/redshift.js +6 -3
  59. package/dist/assets/vs/basic-languages/restructuredtext/restructuredtext.js +6 -3
  60. package/dist/assets/vs/basic-languages/ruby/ruby.js +6 -3
  61. package/dist/assets/vs/basic-languages/rust/rust.js +6 -3
  62. package/dist/assets/vs/basic-languages/sb/sb.js +6 -3
  63. package/dist/assets/vs/basic-languages/scala/scala.js +6 -3
  64. package/dist/assets/vs/basic-languages/scheme/scheme.js +6 -3
  65. package/dist/assets/vs/basic-languages/scss/scss.js +8 -3
  66. package/dist/assets/vs/basic-languages/shell/shell.js +6 -3
  67. package/dist/assets/vs/basic-languages/solidity/solidity.js +6 -3
  68. package/dist/assets/vs/basic-languages/sophia/sophia.js +6 -3
  69. package/dist/assets/vs/basic-languages/sparql/sparql.js +6 -3
  70. package/dist/assets/vs/basic-languages/sql/sql.js +6 -3
  71. package/dist/assets/vs/basic-languages/st/st.js +6 -3
  72. package/dist/assets/vs/basic-languages/swift/swift.js +6 -3
  73. package/dist/assets/vs/basic-languages/systemverilog/systemverilog.js +6 -3
  74. package/dist/assets/vs/basic-languages/tcl/tcl.js +6 -3
  75. package/dist/assets/vs/basic-languages/twig/twig.js +6 -3
  76. package/dist/assets/vs/basic-languages/typescript/typescript.js +6 -3
  77. package/dist/assets/vs/basic-languages/vb/vb.js +6 -3
  78. package/dist/assets/vs/basic-languages/xml/xml.js +6 -3
  79. package/dist/assets/vs/basic-languages/yaml/yaml.js +6 -3
  80. package/dist/assets/vs/editor/editor.main.css +2 -2
  81. package/dist/assets/vs/editor/editor.main.js +334 -310
  82. package/dist/assets/vs/editor/editor.main.nls.de.js +20 -4
  83. package/dist/assets/vs/editor/editor.main.nls.es.js +20 -4
  84. package/dist/assets/vs/editor/editor.main.nls.fr.js +19 -3
  85. package/dist/assets/vs/editor/editor.main.nls.it.js +19 -3
  86. package/dist/assets/vs/editor/editor.main.nls.ja.js +20 -4
  87. package/dist/assets/vs/editor/editor.main.nls.js +19 -3
  88. package/dist/assets/vs/editor/editor.main.nls.ko.js +19 -3
  89. package/dist/assets/vs/editor/editor.main.nls.ru.js +20 -4
  90. package/dist/assets/vs/editor/editor.main.nls.zh-cn.js +20 -4
  91. package/dist/assets/vs/editor/editor.main.nls.zh-tw.js +19 -3
  92. package/dist/assets/vs/language/css/cssMode.js +9 -3
  93. package/dist/assets/vs/language/css/cssWorker.js +59 -3
  94. package/dist/assets/vs/language/html/htmlMode.js +9 -3
  95. package/dist/assets/vs/language/html/htmlWorker.js +449 -3
  96. package/dist/assets/vs/language/json/jsonMode.js +11 -3
  97. package/dist/assets/vs/language/json/jsonWorker.js +32 -3
  98. package/dist/assets/vs/language/typescript/tsMode.js +16 -3
  99. package/dist/assets/vs/language/typescript/tsWorker.js +35304 -3
  100. package/dist/assets/vs/loader.js +5 -5
  101. package/dist/index.html +3 -3
  102. package/dist/main.40ee67c2a5bb17e7.js +1 -0
  103. package/dist/polyfills.84a4d90b09829a9b.js +1 -0
  104. package/dist/runtime.f21339e4fa7c52e0.js +1 -0
  105. package/dist/styles.a1262385bb5d178f.css +1 -0
  106. package/package.json +26 -26
  107. package/dist/main.e27634e826c10a29641a.js +0 -1
  108. package/dist/polyfills.cafddf8c4735e41988ea.js +0 -1
  109. package/dist/runtime.8aa026ad8f7a602ca6ec.js +0 -1
  110. package/dist/styles.1cde4da533b5b820c978.css +0 -5
@@ -1 +0,0 @@
1
- (self.webpackChunk_sdkgen_playground=self.webpackChunk_sdkgen_playground||[]).push([[179],{8255:Le=>{function T(d){return Promise.resolve().then(()=>{var o=new Error("Cannot find module '"+d+"'");throw o.code="MODULE_NOT_FOUND",o})}T.keys=()=>[],T.resolve=T,T.id=8255,Le.exports=T},4704:function(Le,T){"use strict";var D,d=this&&this.__extends||(D=function(g,E){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,S){M.__proto__=S}||function(M,S){for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&(M[P]=S[P])})(g,E)},function(g,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function M(){this.constructor=g}D(g,E),g.prototype=null===E?Object.create(E):(M.prototype=E.prototype,new M)}),o=this&&this.__spreadArray||function(D,g,E){if(E||2===arguments.length)for(var P,M=0,S=g.length;M<S;M++)(P||!(M in g))&&(P||(P=Array.prototype.slice.call(g,0,M)),P[M]=g[M]);return D.concat(P||Array.prototype.slice.call(g))};Object.defineProperty(T,"__esModule",{value:!0}),T.decode=T.encode=void 0;var l=["string","email","phone","html","xml"],f=o(["json","bool","url","int","uint","float","money","hex","uuid","base64","void"],l,!0),_=function(D){function g(E,M,S){var B;try{B=JSON.stringify(S)}catch(j){B=String(S)}return D.call(this,"Invalid type at '".concat(E,"', expected ").concat(M,", got ").concat(B))||this}return d(g,D),g}(Error);function a(D,g,E){if("json"===g)return null==E?null:JSON.parse(JSON.stringify(E));if("bool"===g){if("boolean"!=typeof E)throw new _(D,g,E);return E}if(l.indexOf(g)>=0){if("string"!=typeof E)throw new _(D,g,E);return E}if("hex"===g){if("string"!=typeof E||!/^(?:[A-Fa-f0-9]{2})*$/u.test(E))throw new _(D,g,E);return E.toLowerCase()}if("uuid"===g){if("string"!=typeof E||!/^[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(E))throw new _(D,g,E);return E.toLowerCase()}if("base64"===g){var M=!0;try{atob(E)}catch(P){M=!1}if("string"!=typeof E||!M)throw new _(D,g,E);return E}if("int"===g){if("number"!=typeof E||(0|E)!==E)throw new _(D,g,E);return E}if("uint"===g){if("number"!=typeof E||(0|E)!==E||E<0)throw new _(D,g,E);return E}if("float"===g){if("number"!=typeof E)throw new _(D,g,E);return E}if("money"===g){if("number"!=typeof E||!Number.isInteger(E))throw new _(D,g,E);return E}if("url"===g){var S=void 0;if("string"==typeof E)try{S=new URL(E)}catch(P){}if(!S)throw new _(D,g,E);return S.toString()}if("void"===g)return null;throw new Error("Unknown type '".concat(g,"' at '").concat(D,"'"))}T.encode=function C(D,g,E,M){if("string"==typeof E&&!E.endsWith("?")&&"void"!==E&&null==M)throw new Error("Invalid type at '".concat(g,"', cannot be null"));if(Array.isArray(E)){if("string"!=typeof M||E.indexOf(M)<0)throw new _(g,E,M);return M}if("object"==typeof E){if("object"!=typeof M)throw new _(g,E,M);for(var S={},P=0,B=Object.keys(E);P<B.length;P++){var j=B[P];S[j]=C(D,"".concat(g,".").concat(j),E[j],M[j])}return S}if(E.endsWith("?"))return null==M?null:C(D,g,E.slice(0,E.length-1),M);if(E.endsWith("[]")){if(!Array.isArray(M))throw new _(g,E,M);return M.map(function(ce,be){return C(D,"".concat(g,"[").concat(be,"]"),E.slice(0,E.length-2),ce)})}if(f.indexOf(E)>=0)return a(g,E,M);if("bytes"===E){if(!(M instanceof ArrayBuffer))throw new _(g,E,M);return btoa(String.fromCharCode.apply(String,new Uint8Array(M)))}if("bigint"===E){if("bigint"!=typeof M)throw new _(g,E,M);return M.toString()}if("cpf"===E){if("string"!=typeof M)throw new _(g,E,M);return M}if("cnpj"===E){if("string"!=typeof M)throw new _(g,E,M);return M}if("date"===E){if((!(M instanceof Date)||isNaN(M.getTime()))&&("string"!=typeof M||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(M)))throw new _(g,E,M);return"string"==typeof M?new Date(M).toISOString().split("T")[0]:M.toISOString().split("T")[0]}if("datetime"===E){if((!(M instanceof Date)||isNaN(M.getTime()))&&("string"!=typeof M||!/^[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(M)))throw new _(g,E,M);return("string"==typeof M?new Date(M):M).toISOString().replace("Z","")}var se=D[E];if(se)return C(D,g,se,M);throw new Error("Unknown type '".concat(E,"' at '").concat(g,"'"))},T.decode=function w(D,g,E,M){if("string"==typeof E&&!E.endsWith("?")&&"void"!==E&&null==M)throw new Error("Invalid type at '".concat(g,"', cannot be null"));if(Array.isArray(E)){if("string"!=typeof M||E.indexOf(M)<0)throw new _(g,E,M);return M}if("object"==typeof E){if("object"!=typeof M)throw new _(g,E,M);for(var S={},P=0,B=Object.keys(E);P<B.length;P++){var j=B[P];S[j]=w(D,"".concat(g,".").concat(j),E[j],M[j])}return S}if(E.endsWith("?"))return null==M?null:w(D,g,E.slice(0,E.length-1),M);if(E.endsWith("[]")){if(!Array.isArray(M))throw new _(g,E,M);return M.map(function(Je,Me){return w(D,"".concat(g,"[").concat(Me,"]"),E.slice(0,E.length-2),Je)})}if(f.indexOf(E)>=0)return a(g,E,M);if("bytes"!==E){if("bigint"===E){if("number"!=typeof M&&("string"!=typeof M||!/^-?[0-9]+$/u.test(M)))throw new _(g,E,M);return BigInt(M)}if("cpf"===E){if("string"!=typeof M)throw new _(g,E,M);return M}if("cnpj"===E){if("string"!=typeof M)throw new _(g,E,M);return M}if("date"===E){if("string"!=typeof M||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(M))throw new _(g,E,M);var se=parseInt(M.split("-")[2],10),ce=parseInt(M.split("-")[1],10)-1,be=parseInt(M.split("-")[0],10),Ue=new Date(be,ce,se);if(Ue.getFullYear()!==be||Ue.getMonth()!==ce||Ue.getDate()!==se)throw new _(g,E,M);return Ue}if("datetime"===E){if("string"!=typeof M||!/^[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(M))throw new _(g,E,M);return new Date("".concat(M.endsWith("Z")?M:M.concat("Z")))}var lt=D[E];if(lt)return w(D,g,lt,M);throw new Error("Unknown type '".concat(E,"' at '").concat(g,"'"))}if("string"!=typeof M)throw new _(g,"".concat(E," (base 64)"),M);try{return Uint8Array.from(atob(M),function(Je){return Je.charCodeAt(0)})}catch(Je){throw new _(g,"".concat(E," (base 64)"),M)}}},3249:function(Le,T){"use strict";var f,d=this&&this.__extends||(f=function(_,a){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,w){C.__proto__=w}||function(C,w){for(var D in w)Object.prototype.hasOwnProperty.call(w,D)&&(C[D]=w[D])})(_,a)},function(_,a){if("function"!=typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function C(){this.constructor=_}f(_,a),_.prototype=null===a?Object.create(a):(C.prototype=a.prototype,new C)});Object.defineProperty(T,"__esModule",{value:!0}),T.SdkgenErrorWithData=T.SdkgenError=void 0;var o=function(f){function _(){return null!==f&&f.apply(this,arguments)||this}return d(_,f),Object.defineProperty(_.prototype,"type",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),_.prototype.toJSON=function(){return{message:this.message,type:this.type}},_}(Error);T.SdkgenError=o;var l=function(f){function _(a,C){var w=f.call(this,a)||this;return w.data=C,w}return d(_,f),_.prototype.toJSON=function(){return{data:this.data,message:this.message,type:this.type}},_}(o);T.SdkgenErrorWithData=l},1364:function(Le,T,d){"use strict";var o=this&&this.__awaiter||function(g,E,M,S){return new(M||(M=Promise))(function(B,j){function se(Ue){try{be(S.next(Ue))}catch(lt){j(lt)}}function ce(Ue){try{be(S.throw(Ue))}catch(lt){j(lt)}}function be(Ue){Ue.done?B(Ue.value):function(B){return B instanceof M?B:new M(function(j){j(B)})}(Ue.value).then(se,ce)}be((S=S.apply(g,E||[])).next())})},l=this&&this.__generator||function(g,E){var S,P,B,j,M={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return j={next:se(0),throw:se(1),return:se(2)},"function"==typeof Symbol&&(j[Symbol.iterator]=function(){return this}),j;function se(be){return function(Ue){return function(be){if(S)throw new TypeError("Generator is already executing.");for(;M;)try{if(S=1,P&&(B=2&be[0]?P.return:be[0]?P.throw||((B=P.return)&&B.call(P),0):P.next)&&!(B=B.call(P,be[1])).done)return B;switch(P=0,B&&(be=[2&be[0],B.value]),be[0]){case 0:case 1:B=be;break;case 4:return M.label++,{value:be[1],done:!1};case 5:M.label++,P=be[1],be=[0];continue;case 7:be=M.ops.pop(),M.trys.pop();continue;default:if(!(B=(B=M.trys).length>0&&B[B.length-1])&&(6===be[0]||2===be[0])){M=0;continue}if(3===be[0]&&(!B||be[1]>B[0]&&be[1]<B[3])){M.label=be[1];break}if(6===be[0]&&M.label<B[1]){M.label=B[1],B=be;break}if(B&&M.label<B[2]){M.label=B[2],M.ops.push(be);break}B[2]&&M.ops.pop(),M.trys.pop();continue}be=E.call(g,M)}catch(Ue){be=[6,Ue],P=0}finally{S=B=0}if(5&be[0])throw be[1];return{value:be[0]?be[1]:void 0,done:!0}}([be,Ue])}}};Object.defineProperty(T,"__esModule",{value:!0}),T.SdkgenHttpClient=void 0;var f=d(4704);function _(g){for(var E="",M=0;M<2*g;++M)E+="0123456789abcdef"[Math.floor(16*Math.random())];return E}var a=_(20);function C(){try{var g=localStorage.getItem("deviceId");return g||(g=a,localStorage.setItem("deviceId",g)),g}catch(E){}return a}function w(g,E){return E in g}var D=function(){function g(E,M,S){this.astJson=M,this.errClasses=S,this.extra=new Map,this.successHook=function(){},this.errorHook=function(){},this.baseUrl=E}return g.prototype.makeRequest=function(E,M){var S,P;return o(this,void 0,void 0,function(){var B,j,se,ce,be,Ue=this;return l(this,function(lt){switch(lt.label){case 0:if(!(B=this.astJson.functionTable[E]))throw new Error("Unknown function ".concat(E));return j={},this.extra.forEach(function(Je,Me){j[Me]=Je}),se={args:(0,f.encode)(this.astJson.typeTable,"".concat(E,".args"),B.args,M),deviceInfo:{id:C(),language:navigator.language,platform:{browserUserAgent:navigator.userAgent},timezone:"object"==typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:null,type:"web",version:null!==(P=null===(S=document.currentScript)||void 0===S?void 0:S.getAttribute("src"))&&void 0!==P?P:""},extra:j,name:E,requestId:_(16),version:3},[4,new Promise(function(Je,Me){var xe=new XMLHttpRequest;xe.open("POST","".concat(Ue.baseUrl,"/").concat(E)),xe.setRequestHeader("Content-Type","application/sdkgen"),xe.onreadystatechange=function(){if(4===xe.readyState)try{var Pe=JSON.parse(xe.responseText);try{w(Pe,"error")&&Pe.error?(Me(Pe.error),Ue.errorHook(Pe.error,E,M)):Je(w(Pe,"result")?Pe.result:null)}catch(Ct){var Ne={message:"".concat(Ct),type:"Fatal"};Me(Ne),Ue.errorHook(Ne,E,M)}}catch(Ct){Me(Ne={message:"Falha de conex\xe3o com o servidor",type:"Fatal"}),Ue.errorHook(Ne,E,M)}},xe.send(JSON.stringify(se))}).catch(function(Je){if(Ue.errorHook(Je,E,M),w(Je,"type")&&w(Je,"message")&&"string"==typeof Je.type&&"string"==typeof Je.message){var Me=Ue.errClasses[Je.type];if(Me){var xe=Ue.astJson.errors.find(function(Pe){return Array.isArray(Pe)?Pe[0]===Je.type:Pe===Je.type});if(xe)throw Array.isArray(xe)&&w(Je,"data")?new Me(Je.message,(0,f.decode)(Ue.astJson.typeTable,"".concat(Me.name,".data"),xe[1],Je.data)):new Me(Je.message,void 0)}throw new Ue.errClasses.Fatal("".concat(Je.type,": ").concat(Je.message))}throw Je})];case 1:return ce=lt.sent(),be=(0,f.decode)(this.astJson.typeTable,"".concat(E,".ret"),B.ret,ce),this.successHook(be,E,M),[2,be]}})})},g}();T.SdkgenHttpClient=D},2184:function(Le,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(f,_,a,C){void 0===C&&(C=a),Object.defineProperty(f,C,{enumerable:!0,get:function(){return _[a]}})}:function(f,_,a,C){void 0===C&&(C=a),f[C]=_[a]}),l=this&&this.__exportStar||function(f,_){for(var a in f)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,f,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(3249),T),l(d(1364),T)},1704:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateCSharpServerSource=void 0;const o=d(3979),l=d(9032);T.generateCSharpServerSource=function(_){let a="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 C of _.operations){const w=C.returnType instanceof o.VoidPrimitiveType?"":`<${(0,l.generateTypeName)(C.returnType)}>`;a+=`\n public virtual Task${w} ${(0,l.capitalize)(C.name)}(${["Context ctx",...C.args.map(D=>`${(0,l.generateTypeName)(D.type)} ${(0,l.ident)(D.name)}`)].join(", ")})\n {\n return Task.FromException${w}(new FatalException("Function '${C.name}' not implemented."));\n }\n`}a+="\n public async Task ExecuteFunction(Context context_, Utf8JsonWriter resultWriter_)\n {\n switch (context_.Name)\n {";for(const C of _.operations){a+=`\n case ${JSON.stringify(C.name)}:\n {`;for(const w of C.args)a+=`\n JsonElement ${w.name}Json_;\n if (!context_.Args.TryGetValue(${JSON.stringify(w.name)}, out ${w.name}Json_))\n {\n ${w.type instanceof o.OptionalType?`${w.name}Json_ = new JsonElement()`:`throw new FatalException("'${C.name}().args.${w.name}' must be set to a value of type ${w.type.name}.");`}\n }\n ${(0,l.generateTypeName)(w.type)} ${(0,l.ident)(w.name)};\n ${(0,l.decodeType)(w.type,`${w.name}Json_`,`"${C.name}().args.${w.name}"`,(0,l.ident)(w.name)).replace(/\n/gu,"\n ")}`;a+=C.returnType instanceof o.VoidPrimitiveType?`\n await ${(0,l.capitalize)(C.name)}(${["context_",...C.args.map(w=>(0,l.ident)(w.name))].join(", ")});\n resultWriter_.WriteNullValue();`:`\n var result_ = await ${(0,l.capitalize)(C.name)}(${["context_",...C.args.map(w=>(0,l.ident)(w.name))].join(", ")});\n ${(0,l.encodeType)(C.returnType,"result_",`"${C.name}().ret"`).replace(/\n/gu,"\n ")}`,a+="\n return;\n }"}a+="\n default:\n {\n throw new FatalException($\"Unknown function '{context_.Name}'.\");\n }\n }\n }\n";for(const C of _.structTypes)a+=(0,l.generateStruct)(C);for(const C of _.enumTypes)a+=(0,l.generateEnum)(C);a+=`\n public string GetAstJson() => @"${JSON.stringify((0,o.astToJson)(_),null,4).replace(/"/gu,'""').replace(/\n/gu,"\n ")}";\n }\n`;for(const C of _.errors)a+=`\n public class ${C.name}Exception : SdkgenException\n {\n public ${C.name}Exception(string message, Exception? inner = null) : base("${C.name}", message, inner) { }\n }\n`;return a+="\n}\n",a}},9032:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateEnum=T.generateStruct=T.encodeType=T.decodeType=T.generateTypeName=T.capitalize=T.ident=void 0;const o=d(3979),l=["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"],f=[o.StringPrimitiveType,o.HtmlPrimitiveType,o.CpfPrimitiveType,o.CnpjPrimitiveType,o.BytesPrimitiveType,o.EmailPrimitiveType,o.UrlPrimitiveType,o.UuidPrimitiveType,o.HexPrimitiveType,o.Base64PrimitiveType,o.XmlPrimitiveType,o.StructType,o.ArrayType],_=[o.BigIntPrimitiveType,o.DatePrimitiveType,o.DateTimePrimitiveType,o.FloatPrimitiveType,o.IntPrimitiveType,o.MoneyPrimitiveType,o.UIntPrimitiveType];function a(S){return l.includes(S)?`@${S}`:S}function C(S){return S[0].toUpperCase()+S.slice(1)}function w(S){switch(S.constructor){case o.StringPrimitiveType:return"string";case o.IntPrimitiveType:return"int";case o.UIntPrimitiveType:return"uint";case o.FloatPrimitiveType:return"double";case o.BigIntPrimitiveType:return"BigInteger";case o.DatePrimitiveType:case o.DateTimePrimitiveType:return"DateTime";case o.BoolPrimitiveType:return"bool";case o.BytesPrimitiveType:return"byte[]";case o.MoneyPrimitiveType:return"decimal";case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:return"string";case o.VoidPrimitiveType:return"void";case o.JsonPrimitiveType:return"JsonElement";case o.OptionalType:return`${w(S.base)}?`;case o.ArrayType:return`List<${w(S.base)}>`;case o.StructType:case o.EnumType:return S.name;case o.TypeReference:return w(S.type);default:throw new Error(`BUG: generateTypeName with ${S.constructor.name}`)}}function D(S,P,B,j,se=1,ce=!0){switch(S.constructor){case o.IntPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.Number || !${P}.TryGetInt32(out ${j}))\n {\n throw new FatalException($"'{${B}}' must be an integer");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.UIntPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.Number || !${P}.TryGetUInt32(out ${j}))\n {\n throw new FatalException($"'{${B}}' must be an unsigned integer.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.MoneyPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.Number || !${P}.TryGetDecimal(out ${j}) || ${j} % 1 != 0)\n {\n throw new FatalException($"'{${B}}' must be an integer amount of cents.");\n }\n ${j} /= 100;\n `.replace(/\n {16}/gu,"\n").trim();case o.FloatPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.Number || !${P}.TryGetDouble(out ${j}))\n {\n throw new FatalException($"'{${B}}' must be a floating-point number.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.BigIntPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String || !BigInteger.TryParse(${P}.GetString(), out ${j}))\n {\n throw new FatalException($"'{${B}}' must be an arbitrarily large integer in a string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.StringPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.HtmlPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a valid HTML string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.CpfPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a valid CPF string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.CnpjPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a valid CNPJ string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.EmailPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a valid email.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.UrlPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a valid URL string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.UuidPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a valid UUID.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.HexPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a valid hex string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.Base64PrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a base64 string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.XmlPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a XML string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.BoolPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.True && ${P}.ValueKind != JsonValueKind.False)\n {\n throw new FatalException($"'{${B}}' must be either true or false.");\n }\n ${j} = ${P}.GetBoolean();\n `.replace(/\n {16}/gu,"\n").trim();case o.BytesPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a string.");\n }\n try\n {\n ${j} = Convert.FromBase64String(${P}.GetString());\n }\n catch (FormatException)\n {\n throw new FatalException($"'{${B}}' must be a base64 string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.TypeReference:return D(S.type,P,B,j,se);case o.OptionalType:if(_.includes(S.base.constructor)){const be=`${j.replace(/[^0-9a-zA-Z]/gu,"")}Tmp`;return`\n if (${P}.ValueKind == JsonValueKind.Null || ${P}.ValueKind == JsonValueKind.Undefined)\n {\n ${j} = null;\n }\n else\n {\n ${w(S.base)} ${be};\n ${D(S.base,P,B,be,se,!1).replace(/\n/gu,"\n ")}\n ${j} = ${be};\n }\n `.replace(/\n {20}/gu,"\n").trim()}return`\n if (${P}.ValueKind == JsonValueKind.Null || ${P}.ValueKind == JsonValueKind.Undefined)\n {\n ${j} = null;\n }\n else\n {\n ${D(S.base,P,B,j,se,!1).replace(/\n/gu,"\n ")}\n }\n `.replace(/\n {20}/gu,"\n").trim();case o.EnumType:case o.StructType:return`${j} = Decode${S.name}(${P}, ${B});`;case o.JsonPrimitiveType:return ce?`\n if (${P}.ValueKind == JsonValueKind.Null || ${P}.ValueKind == JsonValueKind.Undefined)\n {\n throw new FatalException($"'{${B}}' can't be null.");\n }\n ${j} = ${P};\n `.replace(/\n {16}/gu,"\n").trim():`${j} = ${P};`;case o.DateTimePrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${P}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${j}) || DateTime.TryParseExact(${P}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF'Z'", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${j})))\n {\n throw new FatalException($"'{${B}}' must be a datetime.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.DatePrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${P}.GetString(), "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${j})))\n {\n throw new FatalException($"'{${B}}' must be a date.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.ArrayType:return`\n if (${P}.ValueKind != JsonValueKind.Array)\n {\n throw new FatalException($"'{${B}}' must be a date.");\n }\n ${j} = new ${w(S)}();\n for (var i${se} = 0; i${se} < ${P}.GetArrayLength(); ++i${se})\n {\n ${w(S.base)} element${se};\n ${D(S.base,`${P}[i${se}]`,`$"{${B}}[{i${se}}]"`,`element${se}`,se+1).replace(/\n/gu,"\n ")}\n ${j}.Add(element${se});\n }\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${S.constructor.name}`)}}function g(S,P,B,j=1){switch(S.constructor){case o.StringPrimitiveType:return`resultWriter_.WriteStringValue(${P});`;case o.FloatPrimitiveType:case o.UIntPrimitiveType:case o.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${P});`;case o.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(Math.Round(${P} * 100));`;case o.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${P}.ToString());`;case o.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${P});`;case o.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${P}));`;case o.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${P}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"));`;case o.DatePrimitiveType:return`resultWriter_.WriteStringValue(${P}.ToString("yyyy-MM-dd"));`;case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.Base64PrimitiveType:case o.HexPrimitiveType:case o.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${P});`;case o.OptionalType:{let se=S.base;for(;se instanceof o.TypeReference;)se=se.type;return`\n if (${P} == null)\n {\n resultWriter_.WriteNullValue();\n }\n else\n {\n ${g(se,f.includes(se.constructor)?P:`${P}.Value`,B,j).replace(/\n/gu,"\n ")}\n }`.replace(/\n {16}/gu,"\n").trim()}case o.TypeReference:return g(S.type,P,B,j);case o.EnumType:case o.StructType:return`Encode${S.name}(${P}, resultWriter_, ${B});`;case o.JsonPrimitiveType:return`${P}.WriteTo(resultWriter_);`;case o.ArrayType:return`\n resultWriter_.WriteStartArray();\n for (var i${j} = 0; i${j} < ${P}.Count; ++i${j})\n {\n ${g(S.base,`${P}[i${j}]`,`$"{${B}}[{i${j}}]"`,j+1).replace(/\n/gu,"\n ")}\n }\n resultWriter_.WriteEndArray();\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${S.constructor.name}`)}}T.ident=a,T.capitalize=C,T.generateTypeName=w,T.decodeType=D,T.encodeType=g,T.generateStruct=function(S){return`\n public class ${S.name}\n {${S.fields.map(P=>`\n public ${w(P.type)} ${C(P.name)};`).join("")}\n public ${S.name}(${S.fields.map(P=>`${w(P.type)} ${a(P.name)}`).join(", ")})\n {${S.fields.map(P=>`\n ${C(P.name)} = ${a(P.name)};`).join("")}\n }\n }\n\n ${S.name} Decode${S.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.Object)\n {\n throw new FatalException($"'{path_}' must be an object.");\n }\n${S.fields.map(P=>` JsonElement ${P.name}Json_;\n if (!json_.TryGetProperty(${JSON.stringify(P.name)}, out ${P.name}Json_))\n {\n ${P.type instanceof o.OptionalType?`${P.name}Json_ = new JsonElement();`:`throw new FatalException($"'{path_}.${P.name}' must be set to a value of type ${P.type.name}.");`}\n }\n ${w(P.type)} ${a(P.name)};\n ${D(P.type,`${P.name}Json_`,`$"{path_}.${P.name}"`,a(P.name)).replace(/\n/gu,"\n ")}`).join("\n")}\n return new ${S.name}(${S.fields.map(P=>a(P.name)).join(", ")});\n }\n\n void Encode${S.name}(${S.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {\n resultWriter_.WriteStartObject();\n ${S.fields.map(P=>`resultWriter_.WritePropertyName(${JSON.stringify(P.name)});\n ${g(P.type,`obj_.${C(P.name)}`,`$"{path_}.${P.name}"`).replace(/\n/gu,"\n ")}`).join("\n ")}\n resultWriter_.WriteEndObject();\n }\n`},T.generateEnum=function(S){return`\n public enum ${S.name}\n {${S.values.map(({value:P})=>`\n ${C(P)}`).join(",\n ")}\n }\n\n ${S.name} Decode${S.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();${S.values.map(({value:P})=>`\n if (value == "${P}")\n {\n return ${S.name}.${C(P)};\n }`).join("")}\n throw new FatalException($"'{path_}' must be one of: (${S.values.map(({value:P})=>`'${P}'`).join(", ")}).");\n }\n\n void Encode${S.name}(${S.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {${S.values.map(({value:P})=>`\n if (obj_ == ${S.name}.${C(P)})\n {\n resultWriter_.WriteStringValue("${P}");\n }`).join("")}\n }\n`}},4906:function(Le,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(f,_,a,C){void 0===C&&(C=a),Object.defineProperty(f,C,{enumerable:!0,get:function(){return _[a]}})}:function(f,_,a,C){void 0===C&&(C=a),f[C]=_[a]}),l=this&&this.__exportStar||function(f,_){for(var a in f)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,f,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(1704),T)},8720:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateDartClientSource=void 0;const o=d(3979),l=d(1526);T.generateDartClientSource=function(_){let a="";a+="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 C of _.enumTypes)a+=(0,l.generateEnum)(C),a+="\n";for(const C of _.structTypes)a+=(0,l.generateClass)(C),a+="\n";for(const C of _.errors)a+=(0,l.generateErrorClass)(C),a+="\n";a+=`class ApiClient extends SdkgenHttpClient {\n ApiClient(String baseUrl, [BuildContext? context]) : super(baseUrl, context, _typeTable, _fnTable, _errTable);\n${_.operations.filter(C=>C.annotations.every(w=>!(w instanceof o.HiddenAnnotation))).map(C=>`\n ${C.returnType instanceof o.VoidPrimitiveType?"Future<void> ":`Future<${(0,l.generateTypeName)(C.returnType)}> `}${C.name}(${0===C.args.length?"":`{${C.args.map(w=>`${w.type instanceof o.OptionalType?"":"required "}${(0,l.generateTypeName)(w.type)} ${(0,l.mangle)(w.name)}`).join(", ")}}`}) async { ${C.returnType instanceof o.VoidPrimitiveType?"":"return "}${(0,l.cast)(`await makeRequest('${C.name}', {${C.args.map(w=>`'${w.name}': ${(0,l.mangle)(w.name)}`).join(", ")}})`,C.returnType)}; }`).join("")}\n}\n\n`,a+="var _typeTable = {\n";for(const C of _.structTypes){a+=` '${C.name}': StructTypeDescription(\n`,a+=` ${C.name},\n`,a+=" {\n";for(const w of C.fields)a+=` '${w.name}': '${w.type.name}',\n`;a+=" },\n",a+=` (Map fields) => ${C.name}(\n`;for(const w of C.fields)a+=` ${(0,l.mangle)(w.name)}: ${(0,l.cast)(`fields['${w.name}']`,w.type)},\n`;a+=" ),\n",a+=` (${C.name} obj) => ({\n`;for(const w of C.fields)a+=` '${w.name}': obj.${(0,l.mangle)(w.name)},\n`;a+=" }),\n",a+=" ),\n"}for(const C of _.enumTypes)a+=` '${C.name}': EnumTypeDescription(${C.name}, ${C.name}.values, [\n ${C.values.map(w=>`'${w.value}'`).join(",\n ")}\n ]),\n`;a+="};\n\n",a+="var _fnTable = {\n";for(const C of _.operations){a+=` '${C.name}': FunctionDescription('${C.returnType.name}', {\n`;for(const w of C.args)a+=` '${w.name}': '${w.type.name}',\n`;a+=" }),\n"}a+="};\n\n",a+="var _errTable = {\n";for(const C of _.errors)a+=` '${C.name}': SdkgenErrorDescription('${C.dataType.name}', (msg, data) => ${C.name}(msg${C.dataType instanceof o.VoidPrimitiveType?"":", data"})),\n`;return a+="};\n",a}},1526:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateClass=T.cast=T.generateErrorClass=T.generateTypeName=T.generateEnum=T.mangle=void 0;const o=d(3979);function l(S){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(S)?`$${S}`:S}function _(S){switch(S.constructor){case o.StringPrimitiveType:return"String";case o.IntPrimitiveType:case o.UIntPrimitiveType:return"int";case o.FloatPrimitiveType:return"double";case o.BigIntPrimitiveType:return"BigInt";case o.DatePrimitiveType:case o.DateTimePrimitiveType:return"DateTime";case o.BoolPrimitiveType:return"bool";case o.BytesPrimitiveType:return"Uint8List";case o.MoneyPrimitiveType:return"int";case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:return"String";case o.VoidPrimitiveType:return"void";case o.JsonPrimitiveType:return"dynamic";case o.OptionalType:return`${_(S.base)}?`;case o.ArrayType:return`List<${_(S.base)}>`;case o.StructType:case o.EnumType:return S.name;case o.TypeReference:return _(S.type);default:throw new Error(`BUG: generateTypeName with ${S.constructor.name}`)}}T.mangle=l,T.generateEnum=function(S){return`enum ${S.name} {\n ${S.values.map(P=>P.value).join(",\n ")}\n}\n`},T.generateTypeName=_,T.generateErrorClass=function(S){if(S.dataType instanceof o.VoidPrimitiveType)return`class ${S.name} extends SdkgenError {\n ${S.name}(String msg) : super(msg);\n}\n`;const P=_(S.dataType);return`class ${S.name} extends SdkgenErrorWithData<${P}> {\n ${S.name}(String msg, ${P} data) : super(msg, data);\n}\n`},T.cast=function C(S,P){return P instanceof o.OptionalType?`${S} == null ? null : ${C(S,P.base)}`:P instanceof o.ArrayType?`(${S} as List).map((e) => ${C("e",P.base)}).toList()`:P instanceof o.VoidPrimitiveType?S:P instanceof o.FloatPrimitiveType?`(${S} as num).toDouble()`:P instanceof o.MoneyPrimitiveType?`${S} as int`:`${S} as ${_(P)}`},T.generateClass=function(S){return`class ${S.name} {\n ${S.fields.map(P=>`final ${_(P.type)} ${l(P.name)};`).join("\n ")}\n\n${function(S){let P=` ${S.name}({\n`;for(const B of S.fields)P+=B.type instanceof o.OptionalType?" ":" required ",P+=`this.${l(B.name)},\n`;return P+=" });\n",P}(S)}\n${function(S){let P=" bool operator ==(other){\n";return P+=" if (identical(this, other)) return true;\n",P+=` return ${[`other is ${S.name}`,...S.fields.map(B=>`${l(B.name)} == other.${l(B.name)}`)].join(" && ")};\n`,P+=" }\n",P}(S)}\n${function(S){return` @override\n int get hashCode => hashList([${S.fields.map(P=>l(P.name)).join(", ")}]);\n`}(S)}\n${function(S){return` String toString() {\n return '${S.name} { ${S.fields.map(P=>`${P.name}: $${l(P.name).startsWith("$")?`{${l(P.name)}}`:l(P.name)}`).join(", ")} }';\n }\n`}(S)}}\n`}},6988:function(Le,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(f,_,a,C){void 0===C&&(C=a),Object.defineProperty(f,C,{enumerable:!0,get:function(){return _[a]}})}:function(f,_,a,C){void 0===C&&(C=a),f[C]=_[a]}),l=this&&this.__exportStar||function(f,_){for(var a in f)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,f,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(8720),T)},5672:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateAndroidClientSource=void 0;const o=d(3979),l=d(5057);T.generateAndroidClientSource=function(_,a){let C='@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 _.enumTypes)C+=` ${(0,l.generateEnum)(g)}`,C+="\n";C+=" open class Error(val message: String? = null)\n",C+=" data class Response<T>(val error: Error?, val data: T?, val stats: CallStats?)\n\n";for(const g of _.structTypes)C+=` ${(0,l.generateClass)(g)}\n`;const w=[],D=new o.ErrorNode("Connection",new o.VoidPrimitiveType);w.push(D.name),C+=` ${(0,l.generateErrorClass)(D)}`;for(const g of _.errors)C+=` ${(0,l.generateErrorClass)(g)}`,w.push(g.name);return w.length>0&&(C+=`\n enum class ErrorType {\n ${w.join(",\n ")};\n\n fun type(): Class<out ApiClient.Error> {\n return when (this) {\n ${w.map(g=>`${g} -> ApiClient.${g}::class.java`).join("\n ")}\n else -> ApiClient.Error::class.java\n }\n }\n }\n\n`),C+=" private val sdkgenIOScope = CoroutineScope(IO + SupervisorJob())\n\n",C+=_.operations.filter(g=>g.annotations.every(E=>!(E instanceof o.HiddenAnnotation))).map(g=>{let E="";const M=[];M.push("timeoutMillis: Long? = null"),a&&M.push(`callback: ((response: Response<${(0,l.generateKotlinTypeName)(g.returnType)}>) -> Unit)? = null`);const S=g.args.map(P=>`${(0,l.mangle)(P.name)}: ${(0,l.generateKotlinTypeName)(P.type)}`).concat(M);return E+=` fun ${(0,l.mangle)(g.name)}(\n ${S.join(",\n ")}\n ): Deferred<Response<out ${(0,l.generateKotlinTypeName)(g.returnType)}>> = sdkgenIOScope.async {\n`,g.args.length>0?(E+=" val bodyArgs = JsonObject().apply {\n",E+=g.args.map(P=>` ${(0,l.generateJsonAddRepresentation)(P.type,P.name)}`).join("\n"),E+="\n }\n"):E+=" val bodyArgs: JsonObject? = null",E+="\n",E+=` val call = makeRequest("${g.name}", bodyArgs, timeoutMillis)\n`,E+=` val response: Response<${(0,l.generateKotlinTypeName)(g.returnType)}> = handleCallResponse(call)\n`,a&&(E+=" withContext(Dispatchers.Main) { callback?.invoke(response) } \n"),E+=" return@async response\n",E+=" }\n",E}).join("\n"),C+='\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',C+="}\n",C}},5057:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateErrorClass=T.generateClass=T.getAnnotation=T.generateEnum=T.generateJsonAddRepresentation=T.mangle=T.generateKotlinTypeName=void 0;const o=d(3979);function l(g){switch(g.constructor){case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.MoneyPrimitiveType:return"Int";case o.FloatPrimitiveType:return"Double";case o.BigIntPrimitiveType:return"BigInt";case o.DatePrimitiveType:case o.DateTimePrimitiveType:return"Calendar";case o.BoolPrimitiveType:return"Boolean";case o.BytesPrimitiveType:return"ByteArray";case o.StringPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:return"String";case o.VoidPrimitiveType:return"Unit";case o.JsonPrimitiveType:return"JsonElement";case o.OptionalType:return`${l(g.base)}?`;case o.ArrayType:return`ArrayList<${l(g.base)}>`;case o.StructType:case o.EnumType:return g.name;case o.TypeReference:return l(g.type);default:throw new Error(`BUG: generateKotlinTypeName with ${g.constructor.name}`)}}function f(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 C(g,E){let M="";switch(E&&E!==f(E)&&(M+=` @SerializedName("${E}")\n`),g.constructor){case o.DatePrimitiveType:M+=" @JsonAdapter(DateAdapter::class)\n";break;case o.DateTimePrimitiveType:M+=" @JsonAdapter(DateTimeAdapter::class)\n";break;case o.ArrayType:case o.OptionalType:M+=C(g.base)}return M}T.generateKotlinTypeName=l,T.mangle=f,T.generateJsonAddRepresentation=function _(g,E){switch(g.constructor){case o.StringPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.MoneyPrimitiveType:case o.FloatPrimitiveType:case o.BoolPrimitiveType:return`addProperty("${E}", ${f(E)})`;case o.OptionalType:return _(g.base,E);case o.DatePrimitiveType:return`addProperty("${E}", ${f(E)}?.let { DateAdapter.sdf.format(it.time)}) `;case o.DateTimePrimitiveType:return`addProperty("${E}", ${f(E)}?.let { DateTimeAdapter.sdf.format(it.time)})`;case o.ArrayType:case o.StructType:case o.EnumType:case o.TypeReference:case o.JsonPrimitiveType:return`add("${E}", gson.toJsonTree(${f(E)}))`;case o.VoidPrimitiveType:return"";case o.BytesPrimitiveType:return`addProperty("${E}", Base64.encodeToString(${f(E)}, Base64.NO_WRAP))`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${g.constructor.name}`)}},T.generateEnum=function(g){let E="@Parcelize \n";return E+=` enum class ${g.name} : Parcelable { ${g.values.map(M=>f(M.value)).join(", ")} }\n`,E},T.getAnnotation=C,T.generateClass=function(g){let E="@Parcelize\n";return E+=` data class ${g.name}(\n${g.fields.map(M=>{let S=C(M.type,M.name);return S+=` var ${f(M.name)}: ${l(M.type)}${M.type.constructor===o.OptionalType?" = null":""}`,S}).join(",\n")}\n ) : Parcelable\n`,E},T.generateErrorClass=function(g){return`class ${g.name}(message: String) : Error(message)\n`}},2768:function(Le,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(f,_,a,C){void 0===C&&(C=a),Object.defineProperty(f,C,{enumerable:!0,get:function(){return _[a]}})}:function(f,_,a,C){void 0===C&&(C=a),f[C]=_[a]}),l=this&&this.__exportStar||function(f,_){for(var a in f)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,f,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(5672),T)},2253:function(Le,T,d){"use strict";var o=this&&this.__rest||function(L,ue){var ae={};for(var fe in L)Object.prototype.hasOwnProperty.call(L,fe)&&ue.indexOf(fe)<0&&(ae[fe]=L[fe]);if(null!=L&&"function"==typeof Object.getOwnPropertySymbols){var Fe=0;for(fe=Object.getOwnPropertySymbols(L);Fe<fe.length;Fe++)ue.indexOf(fe[Fe])<0&&Object.prototype.propertyIsEnumerable.call(L,fe[Fe])&&(ae[fe[Fe]]=L[fe[Fe]])}return ae};Object.defineProperty(T,"__esModule",{value:!0}),T.AstRoot=T.FunctionOperation=T.TypeDefinition=T.StructType=T.TypeReference=T.Field=T.EnumType=T.EnumValue=T.ArrayType=T.OptionalType=T.JsonPrimitiveType=T.XmlPrimitiveType=T.Base64PrimitiveType=T.HtmlPrimitiveType=T.HexPrimitiveType=T.UuidPrimitiveType=T.UrlPrimitiveType=T.EmailPrimitiveType=T.CnpjPrimitiveType=T.CpfPrimitiveType=T.MoneyPrimitiveType=T.VoidPrimitiveType=T.BytesPrimitiveType=T.BoolPrimitiveType=T.DateTimePrimitiveType=T.DatePrimitiveType=T.BigIntPrimitiveType=T.FloatPrimitiveType=T.UIntPrimitiveType=T.IntPrimitiveType=T.StringPrimitiveType=T.PrimitiveType=T.HiddenAnnotation=T.RestAnnotation=T.ArgDescriptionAnnotation=T.ThrowsAnnotation=T.DescriptionAnnotation=T.Annotation=T.ErrorNode=T.Type=T.AstNode=void 0;const l=d(7279);class f{constructor(){this.location=new l.TokenLocation,Object.defineProperty(this,"location",{enumerable:!1})}at(ue){return this.location=ue.location,this}atLocation(ue){return this.location=ue,this}}T.AstNode=f;class _ extends f{toJSON(){const ue=Object.assign({},this);return o(ue,["name"])}}T.Type=_,T.ErrorNode=class extends f{constructor(ue,ae){super(),this.name=ue,this.dataType=ae}};class C extends f{}T.Annotation=C,T.DescriptionAnnotation=class extends C{constructor(ue){super(),this.text=ue}},T.ThrowsAnnotation=class extends C{constructor(ue){super(),this.error=ue}},T.ArgDescriptionAnnotation=class extends C{constructor(ue,ae){super(),this.argName=ue,this.text=ae}},T.RestAnnotation=class extends C{constructor(ue,ae,fe,Fe,st,wt){super(),this.method=ue,this.path=ae,this.pathVariables=fe,this.queryVariables=Fe,this.headers=st,this.bodyVariable=wt}},T.HiddenAnnotation=class extends C{};class S extends _{}T.PrimitiveType=S,T.StringPrimitiveType=class extends S{constructor(){super(...arguments),this.name="string"}},T.IntPrimitiveType=class extends S{constructor(){super(...arguments),this.name="int"}},T.UIntPrimitiveType=class extends S{constructor(){super(...arguments),this.name="uint"}},T.FloatPrimitiveType=class extends S{constructor(){super(...arguments),this.name="float"}},T.BigIntPrimitiveType=class extends S{constructor(){super(...arguments),this.name="bigint"}},T.DatePrimitiveType=class extends S{constructor(){super(...arguments),this.name="date"}},T.DateTimePrimitiveType=class extends S{constructor(){super(...arguments),this.name="datetime"}},T.BoolPrimitiveType=class extends S{constructor(){super(...arguments),this.name="bool"}},T.BytesPrimitiveType=class extends S{constructor(){super(...arguments),this.name="bytes"}},T.VoidPrimitiveType=class extends S{constructor(){super(...arguments),this.name="void"}},T.MoneyPrimitiveType=class extends S{constructor(){super(...arguments),this.name="money"}},T.CpfPrimitiveType=class extends S{constructor(){super(...arguments),this.name="cpf"}},T.CnpjPrimitiveType=class extends S{constructor(){super(...arguments),this.name="cnpj"}},T.EmailPrimitiveType=class extends S{constructor(){super(...arguments),this.name="email"}},T.UrlPrimitiveType=class extends S{constructor(){super(...arguments),this.name="url"}},T.UuidPrimitiveType=class extends S{constructor(){super(...arguments),this.name="uuid"}},T.HexPrimitiveType=class extends S{constructor(){super(...arguments),this.name="hex"}},T.HtmlPrimitiveType=class extends S{constructor(){super(...arguments),this.name="html"}},T.Base64PrimitiveType=class extends S{constructor(){super(...arguments),this.name="base64"}},T.XmlPrimitiveType=class extends S{constructor(){super(...arguments),this.name="xml"}},T.JsonPrimitiveType=class extends S{constructor(){super(...arguments),this.name="json"}},T.OptionalType=class extends _{constructor(ue){super(),this.base=ue}get name(){return`${this.base.name}?`}},T.ArrayType=class extends _{constructor(ue){super(),this.base=ue}get name(){return`${this.base.name}[]`}},T.EnumValue=class extends f{constructor(ue){super(),this.value=ue,this.annotations=[]}},T.EnumType=class extends _{constructor(ue){super(),this.values=ue}},T.Field=class extends f{constructor(ue,ae,fe=!1){super(),this.name=ue,this.type=ae,this.secret=fe,this.annotations=[]}},T.TypeReference=class extends _{constructor(ue){super(),this.name=ue}},T.StructType=class extends _{constructor(ue,ae){super(),this.fields=ue,this.spreads=ae}},T.TypeDefinition=class extends f{constructor(ue,ae){super(),this.name=ue,this.type=ae,this.annotations=[]}},T.FunctionOperation=class extends f{constructor(ue,ae,fe){super(),this.name=ue,this.args=ae,this.returnType=fe,this.annotations=[]}},T.AstRoot=class{constructor(ue=[],ae=[],fe=[]){this.typeDefinitions=ue,this.operations=ae,this.errors=fe,this.structTypes=[],this.enumTypes=[],this.warnings=[]}}},806:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.compatibilityIssues=void 0;const o=d(2253);function l(a,C,w,D){if(w instanceof o.TypeReference)l(a,C,w.type,D);else if(D instanceof o.TypeReference)l(a,C,w,D.type);else if(w instanceof o.OptionalType||!(D instanceof o.OptionalType))if(w instanceof o.OptionalType&&D instanceof o.OptionalType)l(a,C,w.base,D.base);else{if(w instanceof o.OptionalType&&!(D instanceof o.OptionalType))return C.push(`${a} was optional, but now it isn't. If the client sends a null, it will be invalid. Add the optional annotation back.`),void l(a,C,w.base,D);if(w instanceof o.ArrayType&&D instanceof o.ArrayType)l(a,C,w.base,D.base);else if(w instanceof o.StructType&&D instanceof o.StructType)for(const g of D.fields){const E=w.fields.find(M=>M.name===g.name);if(E)l(`${a}.${E.name}`,C,E.type,g.type);else{if(g.type instanceof o.OptionalType)continue;C.push(`${a}.${g.name} didn't exist before and isn't optional. Make it optional.`)}}else if(!(w instanceof o.UIntPrimitiveType&&D instanceof o.IntPrimitiveType||w instanceof o.IntPrimitiveType&&D instanceof o.FloatPrimitiveType||w instanceof o.MoneyPrimitiveType&&D instanceof o.IntPrimitiveType||w instanceof o.MoneyPrimitiveType&&D instanceof o.UIntPrimitiveType||w instanceof o.UIntPrimitiveType&&D instanceof o.BigIntPrimitiveType||w instanceof o.IntPrimitiveType&&D instanceof o.BigIntPrimitiveType||w instanceof o.MoneyPrimitiveType&&D instanceof o.BigIntPrimitiveType||w instanceof o.BigIntPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.UuidPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.XmlPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.DatePrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.DateTimePrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.CpfPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.CnpjPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.HexPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.HtmlPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.Base64PrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.BytesPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.BytesPrimitiveType&&D instanceof o.Base64PrimitiveType||w instanceof o.UrlPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.EmailPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.EnumType&&D instanceof o.StringPrimitiveType)){if(w instanceof o.EnumType&&D instanceof o.EnumType){for(const g of w.values)D.values.map(E=>E.value).includes(g.value)||C.push(`The enum at ${a} used to accept the value "${g.value}" that doesn't exist now. Clients that send it will fail.`);return}w.constructor.name!==D.constructor.name&&C.push(`${a} was ${w.name} and now it is ${D.name}. They are not compatible.`)}}else l(a,C,w,D.base)}function f(a,C,w,D){if(w instanceof o.TypeReference)f(a,C,w.type,D);else if(D instanceof o.TypeReference)f(a,C,w,D.type);else if(!(w instanceof o.OptionalType)||D instanceof o.OptionalType)if(w instanceof o.OptionalType&&D instanceof o.OptionalType)f(a,C,w.base,D.base);else{if(!(w instanceof o.OptionalType)&&D instanceof o.OptionalType)return C.push(`${a} wasn't optional, but now it is. If the client receives a null, it will crash. Remove the optional annotation.`),void f(a,C,w,D.base);if(w instanceof o.ArrayType&&D instanceof o.ArrayType)f(a,C,w.base,D.base);else if(w instanceof o.StructType&&D instanceof o.StructType)for(const g of w.fields){const E=D.fields.find(M=>M.name===g.name);if(E)f(`${a}.${g.name}`,C,g.type,E.type);else{if(g.type instanceof o.OptionalType)continue;C.push(`${a}.${g.name} used to exist with type ${g.type.name}, but it's now missing. Add it back.`)}}else if(!(w instanceof o.IntPrimitiveType&&D instanceof o.UIntPrimitiveType||w instanceof o.FloatPrimitiveType&&D instanceof o.IntPrimitiveType||w instanceof o.IntPrimitiveType&&D instanceof o.MoneyPrimitiveType||w instanceof o.UIntPrimitiveType&&D instanceof o.MoneyPrimitiveType||w instanceof o.BigIntPrimitiveType&&D instanceof o.UIntPrimitiveType||w instanceof o.BigIntPrimitiveType&&D instanceof o.IntPrimitiveType||w instanceof o.BigIntPrimitiveType&&D instanceof o.MoneyPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.BigIntPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.UuidPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.XmlPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.DatePrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.DateTimePrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.CpfPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.CnpjPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.HexPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.HtmlPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.Base64PrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.BytesPrimitiveType||w instanceof o.Base64PrimitiveType&&D instanceof o.BytesPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.UrlPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.EmailPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.EnumType)){if(w instanceof o.EnumType&&D instanceof o.EnumType){for(const g of D.values)w.values.map(E=>E.value).includes(g.value)||C.push(`The enum at ${a} now has the value "${g.value}" that didn't exist before. Client will crash if it receives it`);return}w.constructor.name!==D.constructor.name&&C.push(`${a} was ${w.name} and now it is ${D.name}. They are not compatible.`)}}else f(a,C,w.base,D)}T.compatibilityIssues=function(a,C){const w=[];for(const D of a.operations){const g=C.operations.find(E=>E.name===D.name);if(g){f(`${D.name}.ret`,w,D.returnType,g.returnType);for(const E of g.args){const M=D.args.find(S=>S.name===E.name);if(M)l(`${D.name}.args.${M.name}`,w,M.type,E.type);else{if(E.type instanceof o.OptionalType)continue;w.push(`${D.name}.args.${E.name} didn't exist before and isn't optional. Make it optional.`)}}}else w.push(`function ${D.name} used to exist, but it's now missing. Add it back.`)}for(const D of a.errors){const g=C.errors.find(E=>E.name===D.name);!g||f(`${D.name}.data`,w,D.dataType,g.dataType)}return w}},3979:function(Le,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(_,a,C,w){void 0===w&&(w=C),Object.defineProperty(_,w,{enumerable:!0,get:function(){return a[C]}})}:function(_,a,C,w){void 0===w&&(w=C),_[w]=a[C]}),l=this&&this.__exportStar||function(_,a){for(var C in _)"default"!==C&&!Object.prototype.hasOwnProperty.call(a,C)&&o(a,_,C)};Object.defineProperty(T,"__esModule",{value:!0}),T.jsonToAst=T.astToJson=void 0,l(d(2253),T),l(d(806),T);var f=d(3536);Object.defineProperty(T,"astToJson",{enumerable:!0,get:function(){return f.astToJson}}),Object.defineProperty(T,"jsonToAst",{enumerable:!0,get:function(){return f.jsonToAst}}),l(d(2814),T),l(d(6790),T),l(d(7279),T)},3536:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.jsonToAst=T.astToJson=void 0;const o=d(2253),l=d(5140),f=d(1321);function _(D){if(D instanceof o.DescriptionAnnotation)return{type:"description",value:D.text};if(D instanceof o.ThrowsAnnotation)return{type:"throws",value:D.error};if(D instanceof o.RestAnnotation)return{type:"rest",value:{bodyVariable:D.bodyVariable,headers:[...D.headers.entries()].sort(([g],[E])=>g.localeCompare(E)),method:D.method,path:D.path,pathVariables:[...D.pathVariables].sort((g,E)=>g.localeCompare(E)),queryVariables:[...D.queryVariables].sort((g,E)=>g.localeCompare(E))}};if(D instanceof o.HiddenAnnotation)return{type:"hidden",value:null};throw new Error(`BUG: annotationToJson with ${D.constructor.name}`)}function a(D){switch(D.type){case"description":return new o.DescriptionAnnotation(D.value);case"throws":return new o.ThrowsAnnotation(D.value);case"rest":{const{method:g,path:E,pathVariables:M,queryVariables:S,headers:P,bodyVariable:B}=D.value;return new o.RestAnnotation(g,E,M,S,new Map(P),B)}case"hidden":return new o.HiddenAnnotation;default:throw new Error(`BUG: annotationFromJson with ${D.type}`)}}T.astToJson=function(D){var g,E,M;const S={},P={};function B(ce){return ce instanceof o.ArrayType?`${B(ce.base)}[]`:ce instanceof o.OptionalType?`${B(ce.base)}?`:ce.name}for(const{name:ce,fields:be}of D.structTypes){P[ce]={};const Ue=P[ce];for(const lt of be){Ue[lt.name]=B(lt.type);for(const Je of lt.annotations)if(Je instanceof o.DescriptionAnnotation){const Me=`type.${ce}.${lt.name}`;null!==(g=S[Me])&&void 0!==g||(S[Me]=[]),S[Me].push(_(Je))}}}for(const{name:ce,values:be}of D.enumTypes)P[ce]=be.map(Ue=>Ue.value);for(const{name:ce,type:be}of D.typeDefinitions)be instanceof o.StructType||be instanceof o.EnumType||(P[ce]=B(be));const j={};for(const ce of D.operations){const be={};for(const Ue of ce.args){be[Ue.name]=B(Ue.type);for(const lt of Ue.annotations)if(lt instanceof o.DescriptionAnnotation){const Je=`fn.${ce.name}.${Ue.name}`;null!==(E=S[Je])&&void 0!==E||(S[Je]=[]),S[Je].push(_(lt))}}j[ce.name]={args:be,ret:B(ce.returnType)};for(const Ue of ce.annotations){const lt=`fn.${ce.name}`;null!==(M=S[lt])&&void 0!==M||(S[lt]=[]),S[lt].push(_(Ue))}}return{annotations:S,errors:D.errors.map(ce=>ce.dataType instanceof o.VoidPrimitiveType?ce.name:[ce.name,ce.dataType.name]),functionTable:j,typeTable:P}},T.jsonToAst=function(D){var g;const E=[],M=[];function S(j,se){var ce;if("string"==typeof j){const Ue=f.primitiveToAstClass.get(j);return Ue?new Ue:j.endsWith("?")?new o.OptionalType(S(j.slice(0,j.length-1))):j.endsWith("[]")?new o.ArrayType(S(j.slice(0,j.length-2))):new o.TypeReference(j)}if(Array.isArray(j))return new o.EnumType(j.map(Ue=>new o.EnumValue(Ue)));const be=[];for(const Ue of Object.keys(j)){const lt=new o.Field(Ue,S(j[Ue]));if(se){const Je=`type.${se}.${Ue}`;for(const Me of null!==(ce=D.annotations[Je])&&void 0!==ce?ce:[])lt.annotations.push(a(Me))}be.push(lt)}return new o.StructType(be,[])}for(const[j,se]of Object.entries(D.typeTable)){const ce=S(se,j);M.push(new o.TypeDefinition(j,ce))}for(const[j,se]of Object.entries(D.functionTable)){const ce=Object.keys(se.args).map(lt=>{var Je;const Me=new o.Field(lt,S(se.args[lt])),xe=`fn.${j}.${lt}`;for(const Pe of null!==(Je=D.annotations[xe])&&void 0!==Je?Je:[])Me.annotations.push(a(Pe));return Me}),be=new o.FunctionOperation(j,ce,S(se.ret)),Ue=`fn.${j}`;for(const lt of null!==(g=D.annotations[Ue])&&void 0!==g?g:[])be.annotations.push(a(lt));E.push(be)}const P=D.errors.map(j=>Array.isArray(j)?new o.ErrorNode(j[0],S(j[1])):new o.ErrorNode(j,new o.VoidPrimitiveType)),B=new o.AstRoot(M,E,P);return(0,l.analyse)(B),B}},2814:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.Lexer=T.LexerError=void 0;const o=d(7279);class l extends Error{}T.LexerError=l;class f{constructor(a,C="-"){this.source=a,this.filename=C,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 a=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(),a=new o.CurlyOpenSymbolToken;break;case"}":this.nextChar(),a=new o.CurlyCloseSymbolToken;break;case"(":this.nextChar(),a=new o.ParensOpenSymbolToken;break;case")":this.nextChar(),a=new o.ParensCloseSymbolToken;break;case"?":this.nextChar(),a=new o.OptionalSymbolToken;break;case":":this.nextChar(),a=new o.ColonSymbolToken;break;case"=":this.nextChar(),a=new o.EqualSymbolToken;break;case"!":this.nextChar(),a=new o.ExclamationMarkSymbolToken;break;case",":this.nextChar(),a=new o.CommaSymbolToken;break;case"[":switch(this.nextChar()){case"]":this.nextChar(),a=new o.ArraySymbolToken}break;case".":switch(this.nextChar()){case".":switch(this.nextChar()){case".":this.nextChar(),a=new o.SpreadSymbolToken}}break;case"@":{let C="\\",w=this.startPos+1;for(;"\\"===C[C.length-1];){for(C=C.slice(0,C.length-1).trim();!["\0","\n"].includes(this.nextChar()););C=`${C} ${this.source.substring(w,this.pos).trim()}`.trim(),w=this.pos+1}a=new o.AnnotationToken(C.trim());break}case'"':{const C=[];e:for(;;)switch(this.nextChar()){case"\0":break e;case"\\":switch(this.nextChar()){case"\0":break e;case"n":C.push("\n");break;case"t":C.push("\t");break;default:C.push(this.currentChar())}break;case'"':this.nextChar(),a=new o.StringLiteralToken(C.join(""));break e;default:C.push(this.currentChar())}break}default:if(/[a-zA-Z_]/u.test(this.currentChar())){for(;/[a-zA-Z0-9_]/u.test(this.nextChar()););const C=this.source.substring(this.startPos,this.pos);switch(C){case"error":a=new o.ErrorKeywordToken;break;case"enum":a=new o.EnumKeywordToken;break;case"type":a=new o.TypeKeywordToken;break;case"import":a=new o.ImportKeywordToken;break;case"fn":a=new o.FnKeywordToken;break;case"true":a=new o.TrueKeywordToken;break;case"false":a=new o.FalseKeywordToken;break;default:a=f.PRIMITIVES.has(C)?new o.PrimitiveTypeToken(C):new o.IdentifierToken(C)}}}if(null!==a)return a.location.filename=this.filename,a.location.line=this.startLine,a.location.column=this.startColumn,a;throw"\0"===this.currentChar()?new l(`Unexpected end of file at ${this.filename}`):new l(`Unexpected character ${JSON.stringify(this.currentChar())} at ${this.filename}:${this.line}:${this.column}`)}}T.Lexer=f,f.PRIMITIVES=new Set(["bool","int","uint","float","bigint","string","date","datetime","bytes","money","cpf","cnpj","email","html","url","uuid","hex","base64","xml","void","json"]),f.KEYWORDS=new Set([...f.PRIMITIVES,"error","enum","type","import","get","function","fn","true","false"])},6790:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.Parser=T.ParserError=void 0;const o=d(2253),l=d(2814),f=d(8215),_=d(5140),a=d(7279),C=d(1321);class w extends Error{}T.ParserError=w,T.Parser=class{constructor(E){this.token=null,this.annotations=[],this.warnings=[],this.readFileSync=()=>{throw"Not implemented"};try{this.readFileSync=Object(function(){var S=new Error("Cannot find module 'fs'");throw S.code="MODULE_NOT_FOUND",S}()).readFileSync}catch(M){}this.lexers=E instanceof l.Lexer?[E]:[new l.Lexer(this.readFileSync(E).toString(),E)],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(E){if(!this.token)throw new w(`Expected ${Object.keys(E).map(S=>S.replace("Token","")).join(" or ")}, but found end of file`);const M=this.token.constructor.name;if(M in E)return E[M](this.token);if(E.IdentifierToken){const S=this.token.maybeAsIdentifier();if(S instanceof a.IdentifierToken)return E.IdentifierToken(S)}throw new w(`Expected ${Object.keys(E).map(S=>S.replace("Token","")).join(" or ")} at ${this.token.location}, but found ${this.token}`)}expect(E){if(null===this.token)throw new w(`Expected ${E.name.replace("Token","")}, but found end of file`);if(this.token instanceof E)return this.token;if(E===a.IdentifierToken){const M=this.token.maybeAsIdentifier();if(M instanceof a.IdentifierToken)return M}throw new w(`Expected ${E.name.replace("Token","")} at ${this.token.location}, but found ${this.token}`)}parse(){const E=[],M=[],S=[];for(this.warnings=[];this.token;)this.acceptAnnotations(),this.multiExpect({ErrorKeywordToken:()=>{S.push(this.parseError())},FnKeywordToken:()=>{E.push(this.parseOperation())},ImportKeywordToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const B=this.expect(a.StringLiteralToken),j=B.location.filename.replace(/[^/\\]+$/u,`${B.value}.sdkgen`);this.lexers.push(new l.Lexer(this.readFileSync(j).toString(),j)),this.nextToken()},TypeKeywordToken:()=>{M.push(this.parseTypeDefinition())}});const P=new o.AstRoot(M,E,S);return P.warnings=this.warnings,(0,_.analyse)(P),P}acceptAnnotations(){for(;this.token instanceof a.AnnotationToken;){const E=this.token.value.split(" "),M=this.token.value.slice(E[0].length).trim();switch(E[0]){case"description":this.annotations.push(new o.DescriptionAnnotation(M).at(this.token));break;case"arg":this.annotations.push(new o.ArgDescriptionAnnotation(E[1],this.token.value.slice(E[0].length+1+E[1].length).trim()).at(this.token));break;case"throws":this.annotations.push(new o.ThrowsAnnotation(M).at(this.token));break;case"rest":try{this.annotations.push((0,f.parseRestAnnotation)(M).at(this.token))}catch(S){throw new w(`${S instanceof Error?S.message:S} at ${this.token.location}`)}break;case"hidden":if(""!==M)throw new w("@hidden annotation doesn't take any argument");this.annotations.push((new o.HiddenAnnotation).at(this.token));break;default:throw new w(`Unknown annotation '${E[0]}' at ${this.token.location}`)}this.nextToken()}}checkCannotHaveAnnotationsHere(){if(this.annotations.length>0)throw new w(`Cannot have annotations at ${this.annotations[0].location}`)}parseTypeDefinition(){const E=this.expect(a.TypeKeywordToken);this.nextToken();const M=this.expect(a.IdentifierToken),S=M.value;if(!/[A-Z]/u.test(S[0]))throw new w(`The custom type name must start with an uppercase letter, but found '${JSON.stringify(S)}' at ${M.location}`);this.nextToken();const{annotations:P}=this;this.annotations=[];const B=this.parseType(),j=new o.TypeDefinition(S,B).at(E);return j.annotations=P,j}parseError(){this.checkCannotHaveAnnotationsHere();const E=this.expect(a.ErrorKeywordToken);this.nextToken();const M=this.expect(a.IdentifierToken),S=M.value;if(!/[A-Z]/u.test(S[0]))throw new w(`Error name must start with an uppercase letter, but found '${JSON.stringify(S)}' at ${M.location}`);this.nextToken();let P=new o.VoidPrimitiveType;return(this.token instanceof a.CurlyOpenSymbolToken||this.token instanceof a.EnumKeywordToken||this.token instanceof a.IdentifierToken||this.token instanceof a.PrimitiveTypeToken)&&(P=this.parseType()),new o.ErrorNode(S,P).at(E)}parseOperation(){let{annotations:E}=this;this.annotations=[],this.expect(a.FnKeywordToken),this.nextToken();const M=this.expect(a.IdentifierToken).value;this.nextToken(),this.expect(a.ParensOpenSymbolToken),this.nextToken();const S=new Set,P=[];for(;this.token&&this.token.maybeAsIdentifier()instanceof a.IdentifierToken;){const ce=this.parseField();if(S.has(ce.name))throw new w(`Cannot redeclare argument '${ce.name}'`);if(S.add(ce.name),P.push(ce),!(this.token instanceof a.CommaSymbolToken))break;this.nextToken()}for(const ce of E)if(ce instanceof o.ArgDescriptionAnnotation){const be=P.find(Ue=>Ue.name===ce.argName);if(!be)throw new w(`Argument '${ce.argName}' not found, at ${ce.location}`);be.annotations.push(new o.DescriptionAnnotation(ce.text).atLocation(ce.location))}E=E.filter(ce=>!(ce instanceof o.ArgDescriptionAnnotation));const B=this.expect(a.ParensCloseSymbolToken);this.nextToken();let j=(new o.VoidPrimitiveType).at(B);this.token instanceof a.ColonSymbolToken&&(this.nextToken(),j=this.parseType());const se=new o.FunctionOperation(M,P,j);return se.annotations=E,se}parseEnum(){this.checkCannotHaveAnnotationsHere();const E=this.expect(a.EnumKeywordToken);this.nextToken(),this.expect(a.CurlyOpenSymbolToken),this.nextToken();const M=new o.EnumType([]).at(E);let S=!1;for(;!S;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),S=!0},IdentifierToken:P=>{const B=new o.EnumValue(P.value).at(P);B.annotations=this.annotations,this.annotations=[],M.values.push(B),this.nextToken()}});return M}parseField(){const E=this.expect(a.IdentifierToken);this.nextToken(),this.expect(a.ColonSymbolToken),this.nextToken();const{annotations:M}=this;this.annotations=[];const S=this.parseType(),P=new o.Field(E.value,S).at(E);for(P.annotations=M;this.token instanceof a.ExclamationMarkSymbolToken;){switch(this.nextToken(),this.expect(a.IdentifierToken).value){case"secret":P.secret=!0;break;default:throw new w(`Unknown field mark !${this.token.value} at ${this.token.location}`)}this.nextToken()}return P}parseStruct(){const E=this.expect(a.CurlyOpenSymbolToken);this.nextToken();const M=[],S=[],P=new Set;let B=!1;for(;!B;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),B=!0},IdentifierToken:()=>{const j=this.parseField();if(P.has(j.name))throw new w(`Cannot redeclare field '${j.name}'`);P.add(j.name),M.push(j)},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const j=this.expect(a.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(j.value[0]))throw new w(`Expected a type but found '${JSON.stringify(j.value)}' at ${j.location}`);S.push(new o.TypeReference(j.value).at(j))}});return new o.StructType(M,S).at(E)}parseType(){this.checkCannotHaveAnnotationsHere();let E=this.multiExpect({CurlyOpenSymbolToken:()=>this.parseStruct(),EnumKeywordToken:()=>this.parseEnum(),IdentifierToken:M=>{if(this.nextToken(),!/[A-Z]/u.test(M.value[0]))throw new w(`Expected a type but found '${JSON.stringify(M.value)}' at ${M.location}`);return new o.TypeReference(M.value).at(M)},PrimitiveTypeToken:M=>{this.nextToken();const S=C.primitiveToAstClass.get(M.value);if(S)return(new S).at(M);throw new w(`BUG! Should handle primitive ${M.value}`)}});for(;this.token instanceof a.ArraySymbolToken||this.token instanceof a.OptionalSymbolToken;)this.multiExpect({ArraySymbolToken:M=>E=new o.ArrayType(E).at(M),OptionalSymbolToken:M=>E=new o.OptionalType(E).at(M)}),this.nextToken();return E}}},8215:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.parseRestAnnotation=void 0;const o=d(2253);function _(C){var w;const D=/\{(?<name>\w+)\}/gu,g=[];let E;for(;null!==(E=D.exec(C));)(null===(w=E.groups)||void 0===w?void 0:w.name)&&g.push(E.groups.name);return g}T.parseRestAnnotation=function(C){const w=C.split(" "),D=w[0].toUpperCase();if(!["GET","POST","PUT","DELETE","PATCH"].includes(D))throw new Error(`Unsupported method '${D}'`);let g=w[1];if(!g.startsWith("/"))throw new Error("Invalid path");let E=[];if(g.includes("?")){const[j,...se]=g.split("?");g=j;const ce=se.join("?");if(!/^\{\w+\}(?:&\{\w+\})*$/u.test(ce))throw new Error("Invalid querystring on path");E=_(ce)}const M=_(g),S=w.slice(2).join(" "),P=function(C){var w;const D=/\[header (?<header>[^()<>@,;:\\"/[\]?={}\s\t]+): \{(?<name>\w+)\}\]/gu,g=new Map;let E;for(;null!==(E=D.exec(C));)(null===(w=E.groups)||void 0===w?void 0:w.header)&&E.groups.name&&g.set(E.groups.header.toLowerCase(),E.groups.name);return g}(S),B=function(C){var w;const D=/\[body \{(?<name>\w+)\}\]/u.exec(C);return(null===(w=null==D?void 0:D.groups)||void 0===w?void 0:w.name)?D.groups.name:null}(S);return new o.RestAnnotation(D,g,M,E,P,B)}},2652:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.CheckMultipleDeclarationVisitor=void 0;const o=d(2253),l=d(6572);T.CheckMultipleDeclarationVisitor=class extends l.Visitor{constructor(){super(...arguments),this.nameToType=new Map}visit(a){if(a instanceof o.TypeDefinition){const C=this.nameToType.get(a.name);if(C&&JSON.stringify(C)!==JSON.stringify(a.type))throw new l.SemanticError(`Type '${a.name}' at ${a.location} is defined multiple times (also at ${C.location})`);this.nameToType.set(a.name,a.type)}super.visit(a)}}},2417:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.MatchTypeDefinitionsVisitor=void 0;const o=d(2253),l=d(6572);T.MatchTypeDefinitionsVisitor=class extends l.Visitor{visit(a){if(a instanceof o.TypeReference){const C=this.root.typeDefinitions.find(w=>w.name===a.name);if(void 0===C)throw new l.SemanticError(`Could not find type '${a.name}' at ${a.location}`);a.type=C.type}super.visit(a)}}},8237:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.CheckDontReturnSecretVisitor=void 0;const o=d(2253),l=d(6572);T.CheckDontReturnSecretVisitor=class extends l.Visitor{constructor(){super(...arguments),this.isInReturn=!1,this.path=[],this.visited=new Set}visit(a){if(!this.visited.has(a))if(this.visited.add(a),a instanceof o.FunctionOperation)this.isInReturn=!0,this.path.push(`${a.name}(...)`),this.visit(a.returnType),this.path.pop(),this.isInReturn=!1;else if(a instanceof o.TypeReference)this.visit(a.type);else if(a instanceof o.Field){if(this.path.push(a.name),this.isInReturn&&a.secret)throw new l.SemanticError(`Can't return a secret value at ${this.path.join(".")} at ${a.location}`);super.visit(a),this.path.pop()}else super.visit(a)}}},6672:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.GiveStructAndEnumNamesVisitor=void 0;const o=d(2253),l=d(6572);T.GiveStructAndEnumNamesVisitor=class extends l.Visitor{constructor(){super(...arguments),this.path=[],this.names=new Map}visit(a){if(a instanceof o.TypeDefinition)this.path=[a.name],super.visit(a);else if(a instanceof o.ErrorNode)this.path=[`${a.name}Data`],super.visit(a);else if(a instanceof o.FunctionOperation)this.path=[a.name],super.visit(a);else if(a instanceof o.Field)this.path.push(a.name),super.visit(a),this.path.pop();else if(a instanceof o.StructType||a instanceof o.EnumType){a.name=this.path.map(w=>w[0].toUpperCase()+w.slice(1)).join("");const C=this.names.get(a.name);if(C&&JSON.stringify(C.type)!==JSON.stringify(a))throw new l.SemanticError(`The name of the type '${this.path.join(".")}' at ${a.location} will conflict with '${C.path.join(".")}' at ${C.type.location}`);this.names.set(a.name,{path:[...this.path],type:a}),super.visit(a)}else super.visit(a)}}},5193:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.CheckEmptyStructOrEnumVisitor=void 0;const o=d(2253),l=d(6572);T.CheckEmptyStructOrEnumVisitor=class extends l.Visitor{visit(a){if(super.visit(a),a instanceof o.EnumType&&0===a.values.length)throw new l.SemanticError(`Enum '${a.name}' at ${a.location} is empty`);if(a instanceof o.StructType&&0===a.fields.length&&0===a.spreads.length)throw new l.SemanticError(`Struct '${a.name}' at ${a.location} is empty`)}}},574:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.CollectStructAndEnumTypesVisitor=void 0;const o=d(2253),l=d(6572);T.CollectStructAndEnumTypesVisitor=class extends l.Visitor{visit(a){super.visit(a),a instanceof o.StructType?this.root.structTypes.push(a):a instanceof o.EnumType&&this.root.enumTypes.push(a)}}},7255:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ApplyStructSpreadsVisitor=void 0;const o=d(2253),l=d(6572);T.ApplyStructSpreadsVisitor=class extends l.Visitor{constructor(){super(...arguments),this.processed=new Set}visit(a){if(a instanceof o.StructType){if(this.processed.has(a))return;this.processed.add(a)}if(super.visit(a),a instanceof o.StructType)for(const C of a.spreads.map(w=>w.type)){if(!(C instanceof o.StructType))throw new l.SemanticError(`A spread operator in a struct can't refer to something that is not a struct, in '${a.name}' at ${a.location}.`);this.visit(C);for(const w of C.fields){const D=a.fields.findIndex(g=>g.name===w.name);D>=0?a.fields[D]=w:a.fields.push(w)}}}}},7181:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ValidateAnnotationsVisitor=void 0;const o=d(2253),l=d(6572);function _(C){return C instanceof o.TypeReference?_(C.type):C}T.ValidateAnnotationsVisitor=class extends l.Visitor{visit(w){if(w instanceof o.EnumValue){for(const D of w.annotations)if(!(D instanceof o.DescriptionAnnotation))throw new l.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`)}else if(w instanceof o.TypeDefinition){for(const D of w.annotations)if(!(D instanceof o.DescriptionAnnotation))throw new l.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`)}else if(w instanceof o.Field){for(const D of w.annotations)if(!(D instanceof o.DescriptionAnnotation))throw new l.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`)}else if(w instanceof o.FunctionOperation)for(const D of w.annotations)if(!(D instanceof o.DescriptionAnnotation))if(D instanceof o.ThrowsAnnotation){if(!this.root.errors.some(g=>g.name===D.error))throw new l.SemanticError(`Unknown error type '${D.error}' at ${D.location}`)}else if(D instanceof o.RestAnnotation){const g=[...D.pathVariables,...D.queryVariables,...D.headers.values()];if(g.length!==new Set(g).size)throw new l.SemanticError(`Arguments must appear only once for rest annotation at ${D.location}`);for(const E of g){const M=w.args.find(P=>P.name===E);if(!M)throw new l.SemanticError(`Argument '${E}' not found at ${D.location}`);if(D.pathVariables.includes(E)&&M.type instanceof o.OptionalType)throw new l.SemanticError(`The path argument '${E}' can't be nullable at ${D.location}`);if(!((C=_(M.type instanceof o.OptionalType?M.type.base:M.type))instanceof o.BoolPrimitiveType||C instanceof o.IntPrimitiveType||C instanceof o.UIntPrimitiveType||C instanceof o.BigIntPrimitiveType||C instanceof o.FloatPrimitiveType||C instanceof o.StringPrimitiveType||C instanceof o.DatePrimitiveType||C instanceof o.DateTimePrimitiveType||C instanceof o.MoneyPrimitiveType||C instanceof o.CpfPrimitiveType||C instanceof o.CnpjPrimitiveType||C instanceof o.UuidPrimitiveType||C instanceof o.HexPrimitiveType||C instanceof o.Base64PrimitiveType||C instanceof o.EnumType))throw new l.SemanticError(`Argument '${E}' can't have type '${M.type.name}' for rest annotation at ${D.location}`)}for(const E of w.args)if(!g.includes(E.name)&&D.bodyVariable!==E.name)throw new l.SemanticError(`Argument '${E.name}' is missing from the rest annotation at ${D.location}`);if("GET"===D.method&&w.returnType instanceof o.VoidPrimitiveType)throw new l.SemanticError(`A GET rest endpoint must return something at ${D.location}`)}else if(!(D instanceof o.HiddenAnnotation))throw new l.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`);var C}}},3158:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ValidateRecursiveTypes=void 0;const o=d(2253),l=d(6572);T.ValidateRecursiveTypes=class extends l.Visitor{visit(a){if(super.visit(a),a instanceof o.TypeDefinition&&(a.type instanceof o.TypeReference&&a.type.name===a.name||a.type instanceof o.ArrayType&&a.type.base.name===a.name||a.type instanceof o.OptionalType&&a.type.base.name===a.name))throw new l.SemanticError(`Type '${a.name}' at ${a.location} is recursive but is not an struct`)}}},5140:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.analyse=void 0;const o=d(2253),l=d(2652),f=d(2417),_=d(8237),a=d(6672),C=d(5193),w=d(574),D=d(7255),g=d(7181),E=d(3158);T.analyse=function(S){S.errors.some(P=>"Fatal"===P.name)||S.errors.push(new o.ErrorNode("Fatal",new o.VoidPrimitiveType)),new l.CheckMultipleDeclarationVisitor(S).process(),new f.MatchTypeDefinitionsVisitor(S).process(),new _.CheckDontReturnSecretVisitor(S).process(),new a.GiveStructAndEnumNamesVisitor(S).process(),new C.CheckEmptyStructOrEnumVisitor(S).process(),new w.CollectStructAndEnumTypesVisitor(S).process(),new D.ApplyStructSpreadsVisitor(S).process(),new g.ValidateAnnotationsVisitor(S).process(),new E.ValidateRecursiveTypes(S).process()}},6572:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.Visitor=T.SemanticError=void 0;const o=d(2253);class l extends Error{}T.SemanticError=l,T.Visitor=class{constructor(a){this.root=a}process(){for(const a of this.root.errors)this.visit(a);for(const a of this.root.typeDefinitions)this.visit(a);for(const a of this.root.operations)this.visit(a)}visit(a){if(a instanceof o.FunctionOperation){for(const C of a.args)this.visit(C);this.visit(a.returnType)}else if(a instanceof o.Field||a instanceof o.TypeDefinition)this.visit(a.type);else if(a instanceof o.StructType){for(const C of a.fields)this.visit(C);for(const C of a.spreads)this.visit(C)}else a instanceof o.ArrayType||a instanceof o.OptionalType?this.visit(a.base):a instanceof o.ErrorNode&&this.visit(a.dataType)}}},7279:(Le,T)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.PrimitiveTypeToken=T.FalseKeywordToken=T.TrueKeywordToken=T.ErrorKeywordToken=T.FnKeywordToken=T.EnumKeywordToken=T.TypeKeywordToken=T.ImportKeywordToken=T.AnnotationToken=T.SpreadSymbolToken=T.CommaSymbolToken=T.ArraySymbolToken=T.OptionalSymbolToken=T.ColonSymbolToken=T.ParensCloseSymbolToken=T.ParensOpenSymbolToken=T.CurlyCloseSymbolToken=T.CurlyOpenSymbolToken=T.ExclamationMarkSymbolToken=T.EqualSymbolToken=T.StringLiteralToken=T.IdentifierToken=T.Token=T.TokenLocation=void 0;class d{constructor(){this.filename="?",this.line=0,this.column=0}toString(){return`${this.filename}:${this.line}:${this.column}`}}T.TokenLocation=d;class o{constructor(Ne=""){this.value=Ne,this.location=new d,Object.defineProperty(this,"location",{enumerable:!1})}maybeAsIdentifier(){return this}toString(){const Ne=this.constructor.name.replace("Token","");return""===this.value?Ne:`${Ne}(${JSON.stringify(this.value)})`}}T.Token=o;class l extends o{}T.IdentifierToken=l,T.StringLiteralToken=class extends o{},T.EqualSymbolToken=class extends o{},T.ExclamationMarkSymbolToken=class extends o{},T.CurlyOpenSymbolToken=class extends o{},T.CurlyCloseSymbolToken=class extends o{},T.ParensOpenSymbolToken=class extends o{},T.ParensCloseSymbolToken=class extends o{},T.ColonSymbolToken=class extends o{},T.OptionalSymbolToken=class extends o{},T.ArraySymbolToken=class extends o{},T.CommaSymbolToken=class extends o{},T.SpreadSymbolToken=class extends o{},T.AnnotationToken=class extends o{},T.ImportKeywordToken=class extends o{maybeAsIdentifier(){return new l("import")}},T.TypeKeywordToken=class extends o{maybeAsIdentifier(){return new l("type")}},T.EnumKeywordToken=class extends o{maybeAsIdentifier(){return new l("enum")}},T.FnKeywordToken=class extends o{maybeAsIdentifier(){return new l("fn")}},T.ErrorKeywordToken=class extends o{maybeAsIdentifier(){return new l("error")}},T.TrueKeywordToken=class extends o{maybeAsIdentifier(){return new l("true")}},T.FalseKeywordToken=class extends o{maybeAsIdentifier(){return new l("false")}},T.PrimitiveTypeToken=class extends o{maybeAsIdentifier(){return new l(this.value)}}},1321:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.primitiveToAstClass=void 0;const o=d(2253);T.primitiveToAstClass=new Map,T.primitiveToAstClass.set("string",o.StringPrimitiveType),T.primitiveToAstClass.set("int",o.IntPrimitiveType),T.primitiveToAstClass.set("uint",o.UIntPrimitiveType),T.primitiveToAstClass.set("date",o.DatePrimitiveType),T.primitiveToAstClass.set("datetime",o.DateTimePrimitiveType),T.primitiveToAstClass.set("float",o.FloatPrimitiveType),T.primitiveToAstClass.set("bigint",o.BigIntPrimitiveType),T.primitiveToAstClass.set("bool",o.BoolPrimitiveType),T.primitiveToAstClass.set("bytes",o.BytesPrimitiveType),T.primitiveToAstClass.set("money",o.MoneyPrimitiveType),T.primitiveToAstClass.set("cpf",o.CpfPrimitiveType),T.primitiveToAstClass.set("cnpj",o.CnpjPrimitiveType),T.primitiveToAstClass.set("email",o.EmailPrimitiveType),T.primitiveToAstClass.set("html",o.HtmlPrimitiveType),T.primitiveToAstClass.set("url",o.UrlPrimitiveType),T.primitiveToAstClass.set("uuid",o.UuidPrimitiveType),T.primitiveToAstClass.set("hex",o.HexPrimitiveType),T.primitiveToAstClass.set("base64",o.Base64PrimitiveType),T.primitiveToAstClass.set("xml",o.XmlPrimitiveType),T.primitiveToAstClass.set("json",o.JsonPrimitiveType),T.primitiveToAstClass.set("void",o.VoidPrimitiveType)},7238:(Le,T,d)=>{"use strict";d.d(T,{l3:()=>f,_j:()=>o,LC:()=>l,ZN:()=>be,jt:()=>a,F4:()=>E,vP:()=>w,SB:()=>g,oB:()=>D,eR:()=>M,X$:()=>_,ZE:()=>Ue,k1:()=>lt});class o{}class l{}const f="*";function _(Je,Me){return{type:7,name:Je,definitions:Me,options:{}}}function a(Je,Me=null){return{type:4,styles:Me,timings:Je}}function w(Je,Me=null){return{type:2,steps:Je,options:Me}}function D(Je){return{type:6,styles:Je,offset:null}}function g(Je,Me,xe){return{type:0,name:Je,styles:Me,options:xe}}function E(Je){return{type:5,steps:Je}}function M(Je,Me,xe=null){return{type:1,expr:Je,animation:Me,options:xe}}function ce(Je){Promise.resolve(null).then(Je)}class be{constructor(Me=0,xe=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Me+xe}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Me=>Me()),this._onDoneFns=[])}onStart(Me){this._onStartFns.push(Me)}onDone(Me){this._onDoneFns.push(Me)}onDestroy(Me){this._onDestroyFns.push(Me)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ce(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Me=>Me()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Me=>Me()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(Me){this._position=this.totalTime?Me*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Me){const xe="start"==Me?this._onStartFns:this._onDoneFns;xe.forEach(Pe=>Pe()),xe.length=0}}class Ue{constructor(Me){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Me;let xe=0,Pe=0,Ne=0;const Ct=this.players.length;0==Ct?ce(()=>this._onFinish()):this.players.forEach(te=>{te.onDone(()=>{++xe==Ct&&this._onFinish()}),te.onDestroy(()=>{++Pe==Ct&&this._onDestroy()}),te.onStart(()=>{++Ne==Ct&&this._onStart()})}),this.totalTime=this.players.reduce((te,ge)=>Math.max(te,ge.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Me=>Me()),this._onDoneFns=[])}init(){this.players.forEach(Me=>Me.init())}onStart(Me){this._onStartFns.push(Me)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Me=>Me()),this._onStartFns=[])}onDone(Me){this._onDoneFns.push(Me)}onDestroy(Me){this._onDestroyFns.push(Me)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Me=>Me.play())}pause(){this.players.forEach(Me=>Me.pause())}restart(){this.players.forEach(Me=>Me.restart())}finish(){this._onFinish(),this.players.forEach(Me=>Me.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Me=>Me.destroy()),this._onDestroyFns.forEach(Me=>Me()),this._onDestroyFns=[])}reset(){this.players.forEach(Me=>Me.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Me){const xe=Me*this.totalTime;this.players.forEach(Pe=>{const Ne=Pe.totalTime?Math.min(1,xe/Pe.totalTime):1;Pe.setPosition(Ne)})}getPosition(){const Me=this.players.reduce((xe,Pe)=>null===xe||Pe.totalTime>xe.totalTime?Pe:xe,null);return null!=Me?Me.getPosition():0}beforeDestroy(){this.players.forEach(Me=>{Me.beforeDestroy&&Me.beforeDestroy()})}triggerCallback(Me){const xe="start"==Me?this._onStartFns:this._onDoneFns;xe.forEach(Pe=>Pe()),xe.length=0}}const lt="!"},9238:(Le,T,d)=>{"use strict";d.d(T,{rt:()=>De,$s:()=>X,kH:()=>qe,Em:()=>et,tE:()=>_n,qV:()=>wt,qm:()=>W,X6:()=>R,yG:()=>he});var o=d(8583),l=d(7716),f=d(9765),_=d(826),a=d(6215),C=d(5917),w=d(6461),D=d(8307),g=d(4395),E=d(5435),M=d(8002),S=d(5257),P=d(3653),B=d(7519),j=d(6782),se=d(9490),ce=d(521),be=d(8553);function Me(Ee,Q){return(Ee.getAttribute(Q)||"").match(/\S+/g)||[]}const xe="cdk-describedby-message-container",Pe="cdk-describedby-message",Ne="cdk-describedby-host";let Ct=0;const te=new Map;let ge=null,X=(()=>{class Ee{constructor(J){this._document=J}describe(J,N,re){if(!this._canBeDescribed(J,N))return;const ot=le(N,re);"string"!=typeof N?(Ae(N),te.set(ot,{messageElement:N,referenceCount:0})):te.has(ot)||this._createMessageElement(N,re),this._isElementDescribedByMessage(J,ot)||this._addMessageReference(J,ot)}removeDescription(J,N,re){if(!N||!this._isElementNode(J))return;const ot=le(N,re);if(this._isElementDescribedByMessage(J,ot)&&this._removeMessageReference(J,ot),"string"==typeof N){const _t=te.get(ot);_t&&0===_t.referenceCount&&this._deleteMessageElement(ot)}ge&&0===ge.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const J=this._document.querySelectorAll(`[${Ne}]`);for(let N=0;N<J.length;N++)this._removeCdkDescribedByReferenceIds(J[N]),J[N].removeAttribute(Ne);ge&&this._deleteMessagesContainer(),te.clear()}_createMessageElement(J,N){const re=this._document.createElement("div");Ae(re),re.textContent=J,N&&re.setAttribute("role",N),this._createMessagesContainer(),ge.appendChild(re),te.set(le(J,N),{messageElement:re,referenceCount:0})}_deleteMessageElement(J){const N=te.get(J),re=N&&N.messageElement;ge&&re&&ge.removeChild(re),te.delete(J)}_createMessagesContainer(){if(!ge){const J=this._document.getElementById(xe);J&&J.parentNode&&J.parentNode.removeChild(J),ge=this._document.createElement("div"),ge.id=xe,ge.style.visibility="hidden",ge.classList.add("cdk-visually-hidden"),this._document.body.appendChild(ge)}}_deleteMessagesContainer(){ge&&ge.parentNode&&(ge.parentNode.removeChild(ge),ge=null)}_removeCdkDescribedByReferenceIds(J){const N=Me(J,"aria-describedby").filter(re=>0!=re.indexOf(Pe));J.setAttribute("aria-describedby",N.join(" "))}_addMessageReference(J,N){const re=te.get(N);(function(Ee,Q,J){const N=Me(Ee,Q);N.some(re=>re.trim()==J.trim())||(N.push(J.trim()),Ee.setAttribute(Q,N.join(" ")))})(J,"aria-describedby",re.messageElement.id),J.setAttribute(Ne,""),re.referenceCount++}_removeMessageReference(J,N){const re=te.get(N);re.referenceCount--,function(Ee,Q,J){const re=Me(Ee,Q).filter(ot=>ot!=J.trim());re.length?Ee.setAttribute(Q,re.join(" ")):Ee.removeAttribute(Q)}(J,"aria-describedby",re.messageElement.id),J.removeAttribute(Ne)}_isElementDescribedByMessage(J,N){const re=Me(J,"aria-describedby"),ot=te.get(N),_t=ot&&ot.messageElement.id;return!!_t&&-1!=re.indexOf(_t)}_canBeDescribed(J,N){if(!this._isElementNode(J))return!1;if(N&&"object"==typeof N)return!0;const re=null==N?"":`${N}`.trim(),ot=J.getAttribute("aria-label");return!(!re||ot&&ot.trim()===re)}_isElementNode(J){return J.nodeType===this._document.ELEMENT_NODE}}return Ee.\u0275fac=function(J){return new(J||Ee)(l.\u0275\u0275inject(o.DOCUMENT))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(o.DOCUMENT))},token:Ee,providedIn:"root"}),Ee})();function le(Ee,Q){return"string"==typeof Ee?`${Q||""}/${Ee}`:Ee}function Ae(Ee){Ee.id||(Ee.id=`${Pe}-${Ct++}`)}class et extends class{constructor(Q){this._items=Q,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new f.xQ,this._typeaheadSubscription=_.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=J=>J.disabled,this._pressedLetters=[],this.tabOut=new f.xQ,this.change=new f.xQ,Q instanceof l.QueryList&&Q.changes.subscribe(J=>{if(this._activeItem){const re=J.toArray().indexOf(this._activeItem);re>-1&&re!==this._activeItemIndex&&(this._activeItemIndex=re)}})}skipPredicate(Q){return this._skipPredicateFn=Q,this}withWrap(Q=!0){return this._wrap=Q,this}withVerticalOrientation(Q=!0){return this._vertical=Q,this}withHorizontalOrientation(Q){return this._horizontal=Q,this}withAllowedModifierKeys(Q){return this._allowedModifierKeys=Q,this}withTypeAhead(Q=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,D.b)(J=>this._pressedLetters.push(J)),(0,g.b)(Q),(0,E.h)(()=>this._pressedLetters.length>0),(0,M.U)(()=>this._pressedLetters.join(""))).subscribe(J=>{const N=this._getItemsArray();for(let re=1;re<N.length+1;re++){const ot=(this._activeItemIndex+re)%N.length,_t=N[ot];if(!this._skipPredicateFn(_t)&&0===_t.getLabel().toUpperCase().trim().indexOf(J)){this.setActiveItem(ot);break}}this._pressedLetters=[]}),this}withHomeAndEnd(Q=!0){return this._homeAndEnd=Q,this}setActiveItem(Q){const J=this._activeItem;this.updateActiveItem(Q),this._activeItem!==J&&this.change.next(this._activeItemIndex)}onKeydown(Q){const J=Q.keyCode,re=["altKey","ctrlKey","metaKey","shiftKey"].every(ot=>!Q[ot]||this._allowedModifierKeys.indexOf(ot)>-1);switch(J){case w.Mf:return void this.tabOut.next();case w.JH:if(this._vertical&&re){this.setNextItemActive();break}return;case w.LH:if(this._vertical&&re){this.setPreviousItemActive();break}return;case w.SV:if(this._horizontal&&re){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.oh:if(this._horizontal&&re){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.Sd:if(this._homeAndEnd&&re){this.setFirstItemActive();break}return;case w.uR:if(this._homeAndEnd&&re){this.setLastItemActive();break}return;default:return void((re||(0,w.Vb)(Q,"shiftKey"))&&(Q.key&&1===Q.key.length?this._letterKeyStream.next(Q.key.toLocaleUpperCase()):(J>=w.A&&J<=w.Z||J>=w.xE&&J<=w.aO)&&this._letterKeyStream.next(String.fromCharCode(J))))}this._pressedLetters=[],Q.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Q){const J=this._getItemsArray(),N="number"==typeof Q?Q:J.indexOf(Q),re=J[N];this._activeItem=null==re?null:re,this._activeItemIndex=N}_setActiveItemByDelta(Q){this._wrap?this._setActiveInWrapMode(Q):this._setActiveInDefaultMode(Q)}_setActiveInWrapMode(Q){const J=this._getItemsArray();for(let N=1;N<=J.length;N++){const re=(this._activeItemIndex+Q*N+J.length)%J.length;if(!this._skipPredicateFn(J[re]))return void this.setActiveItem(re)}}_setActiveInDefaultMode(Q){this._setActiveItemByIndex(this._activeItemIndex+Q,Q)}_setActiveItemByIndex(Q,J){const N=this._getItemsArray();if(N[Q]){for(;this._skipPredicateFn(N[Q]);)if(!N[Q+=J])return;this.setActiveItem(Q)}}_getItemsArray(){return this._items instanceof l.QueryList?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Q){return this._origin=Q,this}setActiveItem(Q){super.setActiveItem(Q),this.activeItem&&this.activeItem.focus(this._origin)}}let je=(()=>{class Ee{constructor(J){this._platform=J}isDisabled(J){return J.hasAttribute("disabled")}isVisible(J){return function(Ee){return!!(Ee.offsetWidth||Ee.offsetHeight||"function"==typeof Ee.getClientRects&&Ee.getClientRects().length)}(J)&&"visible"===getComputedStyle(J).visibility}isTabbable(J){if(!this._platform.isBrowser)return!1;const N=function(Ee){try{return Ee.frameElement}catch(Q){return null}}(function(Ee){return Ee.ownerDocument&&Ee.ownerDocument.defaultView||window}(J));if(N&&(-1===ue(N)||!this.isVisible(N)))return!1;let re=J.nodeName.toLowerCase(),ot=ue(J);return J.hasAttribute("contenteditable")?-1!==ot:!("iframe"===re||"object"===re||this._platform.WEBKIT&&this._platform.IOS&&!function(Ee){let Q=Ee.nodeName.toLowerCase(),J="input"===Q&&Ee.type;return"text"===J||"password"===J||"select"===Q||"textarea"===Q}(J))&&("audio"===re?!!J.hasAttribute("controls")&&-1!==ot:"video"===re?-1!==ot&&(null!==ot||this._platform.FIREFOX||J.hasAttribute("controls")):J.tabIndex>=0)}isFocusable(J,N){return function(Ee){return!function(Ee){return function(Ee){return"input"==Ee.nodeName.toLowerCase()}(Ee)&&"hidden"==Ee.type}(Ee)&&(function(Ee){let Q=Ee.nodeName.toLowerCase();return"input"===Q||"select"===Q||"button"===Q||"textarea"===Q}(Ee)||function(Ee){return function(Ee){return"a"==Ee.nodeName.toLowerCase()}(Ee)&&Ee.hasAttribute("href")}(Ee)||Ee.hasAttribute("contenteditable")||L(Ee))}(J)&&!this.isDisabled(J)&&((null==N?void 0:N.ignoreVisibility)||this.isVisible(J))}}return Ee.\u0275fac=function(J){return new(J||Ee)(l.\u0275\u0275inject(ce.t4))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(ce.t4))},token:Ee,providedIn:"root"}),Ee})();function L(Ee){if(!Ee.hasAttribute("tabindex")||void 0===Ee.tabIndex)return!1;let Q=Ee.getAttribute("tabindex");return"-32768"!=Q&&!(!Q||isNaN(parseInt(Q,10)))}function ue(Ee){if(!L(Ee))return null;const Q=parseInt(Ee.getAttribute("tabindex")||"",10);return isNaN(Q)?-1:Q}class st{constructor(Q,J,N,re,ot=!1){this._element=Q,this._checker=J,this._ngZone=N,this._document=re,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ot||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Q){this._enabled=Q,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Q,this._startAnchor),this._toggleAnchorTabIndex(Q,this._endAnchor))}destroy(){const Q=this._startAnchor,J=this._endAnchor;Q&&(Q.removeEventListener("focus",this.startAnchorListener),Q.parentNode&&Q.parentNode.removeChild(Q)),J&&(J.removeEventListener("focus",this.endAnchorListener),J.parentNode&&J.parentNode.removeChild(J)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Q){return new Promise(J=>{this._executeOnStable(()=>J(this.focusInitialElement(Q)))})}focusFirstTabbableElementWhenReady(Q){return new Promise(J=>{this._executeOnStable(()=>J(this.focusFirstTabbableElement(Q)))})}focusLastTabbableElementWhenReady(Q){return new Promise(J=>{this._executeOnStable(()=>J(this.focusLastTabbableElement(Q)))})}_getRegionBoundary(Q){let J=this._element.querySelectorAll(`[cdk-focus-region-${Q}], [cdkFocusRegion${Q}], [cdk-focus-${Q}]`);for(let N=0;N<J.length;N++)J[N].hasAttribute(`cdk-focus-${Q}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${Q}', use 'cdkFocusRegion${Q}' instead. The deprecated attribute will be removed in 8.0.0.`,J[N]):J[N].hasAttribute(`cdk-focus-region-${Q}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${Q}', use 'cdkFocusRegion${Q}' instead. The deprecated attribute will be removed in 8.0.0.`,J[N]);return"start"==Q?J.length?J[0]:this._getFirstTabbableElement(this._element):J.length?J[J.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Q){const J=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(J){if(J.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",J),!this._checker.isFocusable(J)){const N=this._getFirstTabbableElement(J);return null==N||N.focus(Q),!!N}return J.focus(Q),!0}return this.focusFirstTabbableElement(Q)}focusFirstTabbableElement(Q){const J=this._getRegionBoundary("start");return J&&J.focus(Q),!!J}focusLastTabbableElement(Q){const J=this._getRegionBoundary("end");return J&&J.focus(Q),!!J}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Q){if(this._checker.isFocusable(Q)&&this._checker.isTabbable(Q))return Q;let J=Q.children||Q.childNodes;for(let N=0;N<J.length;N++){let re=J[N].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(J[N]):null;if(re)return re}return null}_getLastTabbableElement(Q){if(this._checker.isFocusable(Q)&&this._checker.isTabbable(Q))return Q;let J=Q.children||Q.childNodes;for(let N=J.length-1;N>=0;N--){let re=J[N].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(J[N]):null;if(re)return re}return null}_createAnchor(){const Q=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Q),Q.classList.add("cdk-visually-hidden"),Q.classList.add("cdk-focus-trap-anchor"),Q.setAttribute("aria-hidden","true"),Q}_toggleAnchorTabIndex(Q,J){Q?J.setAttribute("tabindex","0"):J.removeAttribute("tabindex")}toggleAnchors(Q){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Q,this._startAnchor),this._toggleAnchorTabIndex(Q,this._endAnchor))}_executeOnStable(Q){this._ngZone.isStable?Q():this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(Q)}}let wt=(()=>{class Ee{constructor(J,N,re){this._checker=J,this._ngZone=N,this._document=re}create(J,N=!1){return new st(J,this._checker,this._ngZone,this._document,N)}}return Ee.\u0275fac=function(J){return new(J||Ee)(l.\u0275\u0275inject(je),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(o.DOCUMENT))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(je),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(o.DOCUMENT))},token:Ee,providedIn:"root"}),Ee})();function R(Ee){return 0===Ee.offsetX&&0===Ee.offsetY}function he(Ee){const Q=Ee.touches&&Ee.touches[0]||Ee.changedTouches&&Ee.changedTouches[0];return!(!Q||-1!==Q.identifier||null!=Q.radiusX&&1!==Q.radiusX||null!=Q.radiusY&&1!==Q.radiusY)}"undefined"!=typeof Element&&Element;const z=new l.InjectionToken("cdk-input-modality-detector-options"),ie={ignoreKeys:[w.zL,w.jx,w.b2,w.MW,w.JU]},gt=(0,ce.i$)({passive:!0,capture:!0});let Et=(()=>{class Ee{constructor(J,N,re,ot){this._platform=J,this._mostRecentTarget=null,this._modality=new a.X(null),this._lastTouchMs=0,this._onKeydown=_t=>{var Ht,dn;(null===(dn=null===(Ht=this._options)||void 0===Ht?void 0:Ht.ignoreKeys)||void 0===dn?void 0:dn.some(cn=>cn===_t.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,ce.sA)(_t))},this._onMousedown=_t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(R(_t)?"keyboard":"mouse"),this._mostRecentTarget=(0,ce.sA)(_t))},this._onTouchstart=_t=>{he(_t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,ce.sA)(_t))},this._options=Object.assign(Object.assign({},ie),ot),this.modalityDetected=this._modality.pipe((0,P.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,B.x)()),J.isBrowser&&N.runOutsideAngular(()=>{re.addEventListener("keydown",this._onKeydown,gt),re.addEventListener("mousedown",this._onMousedown,gt),re.addEventListener("touchstart",this._onTouchstart,gt)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,gt),document.removeEventListener("mousedown",this._onMousedown,gt),document.removeEventListener("touchstart",this._onTouchstart,gt))}}return Ee.\u0275fac=function(J){return new(J||Ee)(l.\u0275\u0275inject(ce.t4),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(o.DOCUMENT),l.\u0275\u0275inject(z,8))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(ce.t4),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(o.DOCUMENT),l.\u0275\u0275inject(z,8))},token:Ee,providedIn:"root"}),Ee})();const Lt=new l.InjectionToken("cdk-focus-monitor-default-options"),jt=(0,ce.i$)({passive:!0,capture:!0});let _n=(()=>{class Ee{constructor(J,N,re,ot,_t){this._ngZone=J,this._platform=N,this._inputModalityDetector=re,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=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new f.xQ,this._rootNodeFocusAndBlurListener=Ht=>{const dn=(0,ce.sA)(Ht),cn="focus"===Ht.type?this._onFocus:this._onBlur;for(let an=dn;an;an=an.parentElement)cn.call(this,Ht,an)},this._document=ot,this._detectionMode=(null==_t?void 0:_t.detectionMode)||0}monitor(J,N=!1){const re=(0,se.fI)(J);if(!this._platform.isBrowser||1!==re.nodeType)return(0,C.of)(null);const ot=(0,ce.kV)(re)||this._getDocument(),_t=this._elementInfo.get(re);if(_t)return N&&(_t.checkChildren=!0),_t.subject;const Ht={checkChildren:N,subject:new f.xQ,rootNode:ot};return this._elementInfo.set(re,Ht),this._registerGlobalListeners(Ht),Ht.subject}stopMonitoring(J){const N=(0,se.fI)(J),re=this._elementInfo.get(N);re&&(re.subject.complete(),this._setClasses(N),this._elementInfo.delete(N),this._removeGlobalListeners(re))}focusVia(J,N,re){const ot=(0,se.fI)(J);ot===this._getDocument().activeElement?this._getClosestElementsInfo(ot).forEach(([Ht,dn])=>this._originChanged(Ht,N,dn)):(this._setOrigin(N),"function"==typeof ot.focus&&ot.focus(re))}ngOnDestroy(){this._elementInfo.forEach((J,N)=>this.stopMonitoring(N))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(J,N,re){re?J.classList.add(N):J.classList.remove(N)}_getFocusOrigin(J){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(J)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(J){return 1===this._detectionMode||!!(null==J?void 0:J.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(J,N){this._toggleClass(J,"cdk-focused",!!N),this._toggleClass(J,"cdk-touch-focused","touch"===N),this._toggleClass(J,"cdk-keyboard-focused","keyboard"===N),this._toggleClass(J,"cdk-mouse-focused","mouse"===N),this._toggleClass(J,"cdk-program-focused","program"===N)}_setOrigin(J,N=!1){this._ngZone.runOutsideAngular(()=>{this._origin=J,this._originFromTouchInteraction="touch"===J&&N,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(J,N){const re=this._elementInfo.get(N),ot=(0,ce.sA)(J);!re||!re.checkChildren&&N!==ot||this._originChanged(N,this._getFocusOrigin(ot),re)}_onBlur(J,N){const re=this._elementInfo.get(N);!re||re.checkChildren&&J.relatedTarget instanceof Node&&N.contains(J.relatedTarget)||(this._setClasses(N),this._emitOrigin(re.subject,null))}_emitOrigin(J,N){this._ngZone.run(()=>J.next(N))}_registerGlobalListeners(J){if(!this._platform.isBrowser)return;const N=J.rootNode,re=this._rootNodeFocusListenerCount.get(N)||0;re||this._ngZone.runOutsideAngular(()=>{N.addEventListener("focus",this._rootNodeFocusAndBlurListener,jt),N.addEventListener("blur",this._rootNodeFocusAndBlurListener,jt)}),this._rootNodeFocusListenerCount.set(N,re+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,j.R)(this._stopInputModalityDetector)).subscribe(ot=>{this._setOrigin(ot,!0)}))}_removeGlobalListeners(J){const N=J.rootNode;if(this._rootNodeFocusListenerCount.has(N)){const re=this._rootNodeFocusListenerCount.get(N);re>1?this._rootNodeFocusListenerCount.set(N,re-1):(N.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jt),N.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jt),this._rootNodeFocusListenerCount.delete(N))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(J,N,re){this._setClasses(J,N),this._emitOrigin(re.subject,N),this._lastFocusOrigin=N}_getClosestElementsInfo(J){const N=[];return this._elementInfo.forEach((re,ot)=>{(ot===J||re.checkChildren&&ot.contains(J))&&N.push([ot,re])}),N}}return Ee.\u0275fac=function(J){return new(J||Ee)(l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(ce.t4),l.\u0275\u0275inject(Et),l.\u0275\u0275inject(o.DOCUMENT,8),l.\u0275\u0275inject(Lt,8))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(ce.t4),l.\u0275\u0275inject(Et),l.\u0275\u0275inject(o.DOCUMENT,8),l.\u0275\u0275inject(Lt,8))},token:Ee,providedIn:"root"}),Ee})(),qe=(()=>{class Ee{constructor(J,N){this._elementRef=J,this._focusMonitor=N,this.cdkFocusChange=new l.EventEmitter}ngAfterViewInit(){const J=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(J,1===J.nodeType&&J.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(N=>this.cdkFocusChange.emit(N))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Ee.\u0275fac=function(J){return new(J||Ee)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(_n))},Ee.\u0275dir=l.\u0275\u0275defineDirective({type:Ee,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Ee})();const Pt="cdk-high-contrast-black-on-white",V="cdk-high-contrast-white-on-black",K="cdk-high-contrast-active";let W=(()=>{class Ee{constructor(J,N){this._platform=J,this._document=N}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const J=this._document.createElement("div");J.style.backgroundColor="rgb(1,2,3)",J.style.position="absolute",this._document.body.appendChild(J);const N=this._document.defaultView||window,re=N&&N.getComputedStyle?N.getComputedStyle(J):null,ot=(re&&re.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(J),ot){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 J=this._document.body.classList;J.remove(K),J.remove(Pt),J.remove(V),this._hasCheckedHighContrastMode=!0;const N=this.getHighContrastMode();1===N?(J.add(K),J.add(Pt)):2===N&&(J.add(K),J.add(V))}}}return Ee.\u0275fac=function(J){return new(J||Ee)(l.\u0275\u0275inject(ce.t4),l.\u0275\u0275inject(o.DOCUMENT))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(ce.t4),l.\u0275\u0275inject(o.DOCUMENT))},token:Ee,providedIn:"root"}),Ee})(),De=(()=>{class Ee{constructor(J){J._applyBodyHighContrastModeCssClasses()}}return Ee.\u0275fac=function(J){return new(J||Ee)(l.\u0275\u0275inject(W))},Ee.\u0275mod=l.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=l.\u0275\u0275defineInjector({imports:[[ce.ud,be.Q8]]}),Ee})()},946:(Le,T,d)=>{"use strict";d.d(T,{vT:()=>w,Is:()=>a});var o=d(7716),l=d(8583);const f=new o.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,o.inject)(l.DOCUMENT)}});let a=(()=>{class D{constructor(E){if(this.value="ltr",this.change=new o.EventEmitter,E){const S=E.documentElement?E.documentElement.dir:null,P=(E.body?E.body.dir:null)||S;this.value="ltr"===P||"rtl"===P?P:"ltr"}}ngOnDestroy(){this.change.complete()}}return D.\u0275fac=function(E){return new(E||D)(o.\u0275\u0275inject(f,8))},D.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new D(o.\u0275\u0275inject(f,8))},token:D,providedIn:"root"}),D})(),w=(()=>{class D{}return D.\u0275fac=function(E){return new(E||D)},D.\u0275mod=o.\u0275\u0275defineNgModule({type:D}),D.\u0275inj=o.\u0275\u0275defineInjector({}),D})()},8345:(Le,T,d)=>{"use strict";d.d(T,{P3:()=>w,o2:()=>a,Ov:()=>E,yy:()=>D,eX:()=>g,k:()=>P,Z9:()=>C});var o=d(5639),l=d(5917),f=d(9765),_=d(7716);class a{}function C(B){return B&&"function"==typeof B.connect}class w extends a{constructor(j){super(),this._data=j}connect(){return(0,o.b)(this._data)?this._data:(0,l.of)(this._data)}disconnect(){}}class D{applyChanges(j,se,ce,be,Ue){j.forEachOperation((lt,Je,Me)=>{let xe,Pe;if(null==lt.previousIndex){const Ne=ce(lt,Je,Me);xe=se.createEmbeddedView(Ne.templateRef,Ne.context,Ne.index),Pe=1}else null==Me?(se.remove(Je),Pe=3):(xe=se.get(Je),se.move(xe,Me),Pe=2);Ue&&Ue({context:null==xe?void 0:xe.context,operation:Pe,record:lt})})}detach(){}}class g{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(j,se,ce,be,Ue){j.forEachOperation((lt,Je,Me)=>{let xe,Pe;null==lt.previousIndex?(xe=this._insertView(()=>ce(lt,Je,Me),Me,se,be(lt)),Pe=xe?1:0):null==Me?(this._detachAndCacheView(Je,se),Pe=3):(xe=this._moveView(Je,Me,se,be(lt)),Pe=2),Ue&&Ue({context:null==xe?void 0:xe.context,operation:Pe,record:lt})})}detach(){for(const j of this._viewCache)j.destroy();this._viewCache=[]}_insertView(j,se,ce,be){const Ue=this._insertViewFromCache(se,ce);if(Ue)return void(Ue.context.$implicit=be);const lt=j();return ce.createEmbeddedView(lt.templateRef,lt.context,lt.index)}_detachAndCacheView(j,se){const ce=se.detach(j);this._maybeCacheView(ce,se)}_moveView(j,se,ce,be){const Ue=ce.get(j);return ce.move(Ue,se),Ue.context.$implicit=be,Ue}_maybeCacheView(j,se){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(j);else{const ce=se.indexOf(j);-1===ce?j.destroy():se.remove(ce)}}_insertViewFromCache(j,se){const ce=this._viewCache.pop();return ce&&se.insert(ce,j),ce||null}}class E{constructor(j=!1,se,ce=!0){this._multiple=j,this._emitChanges=ce,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new f.xQ,se&&se.length&&(j?se.forEach(be=>this._markSelected(be)):this._markSelected(se[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...j){this._verifyValueAssignment(j),j.forEach(se=>this._markSelected(se)),this._emitChangeEvent()}deselect(...j){this._verifyValueAssignment(j),j.forEach(se=>this._unmarkSelected(se)),this._emitChangeEvent()}toggle(j){this.isSelected(j)?this.deselect(j):this.select(j)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(j){return this._selection.has(j)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(j){this._multiple&&this.selected&&this._selected.sort(j)}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(j){this.isSelected(j)||(this._multiple||this._unmarkAll(),this._selection.add(j),this._emitChanges&&this._selectedToEmit.push(j))}_unmarkSelected(j){this.isSelected(j)&&(this._selection.delete(j),this._emitChanges&&this._deselectedToEmit.push(j))}_unmarkAll(){this.isEmpty()||this._selection.forEach(j=>this._unmarkSelected(j))}_verifyValueAssignment(j){}}const P=new _.InjectionToken("_ViewRepeater")},6461:(Le,T,d)=>{"use strict";d.d(T,{A:()=>It,zL:()=>D,ZH:()=>l,jx:()=>w,yY:()=>Pe,JH:()=>lt,uR:()=>j,K5:()=>a,hY:()=>M,Sd:()=>se,oh:()=>ce,b2:()=>gi,MW:()=>Be,aO:()=>et,SV:()=>Ue,JU:()=>C,L_:()=>S,Mf:()=>f,LH:()=>be,Z:()=>ie,xE:()=>Ne,Vb:()=>bi});const l=8,f=9,a=13,C=16,w=17,D=18,M=27,S=32,j=35,se=36,ce=37,be=38,Ue=39,lt=40,Pe=46,Ne=48,et=57,It=65,ie=90,Be=91,gi=224;function bi(li,...qn){return qn.length?qn.some(_i=>li[_i]):li.altKey||li.shiftKey||li.ctrlKey||li.metaKey}},5072:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{BreakpointObserver:()=>lt,Breakpoints:()=>Me,LayoutModule:()=>B,MediaMatcher:()=>ce});var o=d(7716),l=d(9490),f=d(9765),_=d(9112),a=d(8071),C=d(9897),w=d(5257),D=d(3653),g=d(4395),E=d(8002),M=d(9761),S=d(6782),P=d(521);let B=(()=>{class xe{}return xe.\u0275fac=function(Ne){return new(Ne||xe)},xe.\u0275mod=o.\u0275\u0275defineNgModule({type:xe}),xe.\u0275inj=o.\u0275\u0275defineInjector({}),xe})();const j=new Set;let se,ce=(()=>{class xe{constructor(Ne){this._platform=Ne,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ue}matchMedia(Ne){return(this._platform.WEBKIT||this._platform.BLINK)&&function(xe){if(!j.has(xe))try{se||(se=document.createElement("style"),se.setAttribute("type","text/css"),document.head.appendChild(se)),se.sheet&&(se.sheet.insertRule(`@media ${xe} {body{ }}`,0),j.add(xe))}catch(Pe){console.error(Pe)}}(Ne),this._matchMedia(Ne)}}return xe.\u0275fac=function(Ne){return new(Ne||xe)(o.\u0275\u0275inject(P.t4))},xe.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new xe(o.\u0275\u0275inject(P.t4))},token:xe,providedIn:"root"}),xe})();function Ue(xe){return{matches:"all"===xe||""===xe,media:xe,addListener:()=>{},removeListener:()=>{}}}let lt=(()=>{class xe{constructor(Ne,Ct){this._mediaMatcher=Ne,this._zone=Ct,this._queries=new Map,this._destroySubject=new f.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Ne){return Je((0,l.Eq)(Ne)).some(te=>this._registerQuery(te).mql.matches)}observe(Ne){const te=Je((0,l.Eq)(Ne)).map(X=>this._registerQuery(X).observable);let ge=(0,_.aj)(te);return ge=(0,a.z)(ge.pipe((0,w.q)(1)),ge.pipe((0,D.T)(1),(0,g.b)(0))),ge.pipe((0,E.U)(X=>{const le={matches:!1,breakpoints:{}};return X.forEach(({matches:Ae,query:Ce})=>{le.matches=le.matches||Ae,le.breakpoints[Ce]=Ae}),le}))}_registerQuery(Ne){if(this._queries.has(Ne))return this._queries.get(Ne);const Ct=this._mediaMatcher.matchMedia(Ne),ge={observable:new C.y(X=>{const le=Ae=>this._zone.run(()=>X.next(Ae));return Ct.addListener(le),()=>{Ct.removeListener(le)}}).pipe((0,M.O)(Ct),(0,E.U)(({matches:X})=>({query:Ne,matches:X})),(0,S.R)(this._destroySubject)),mql:Ct};return this._queries.set(Ne,ge),ge}}return xe.\u0275fac=function(Ne){return new(Ne||xe)(o.\u0275\u0275inject(ce),o.\u0275\u0275inject(o.NgZone))},xe.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new xe(o.\u0275\u0275inject(ce),o.\u0275\u0275inject(o.NgZone))},token:xe,providedIn:"root"}),xe})();function Je(xe){return xe.map(Pe=>Pe.split(",")).reduce((Pe,Ne)=>Pe.concat(Ne)).map(Pe=>Pe.trim())}const Me={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)"}},8553:(Le,T,d)=>{"use strict";d.d(T,{wD:()=>D,yq:()=>w,Q8:()=>g});var o=d(9490),l=d(7716),f=d(9897),_=d(9765),a=d(4395);let C=(()=>{class E{create(S){return"undefined"==typeof MutationObserver?null:new MutationObserver(S)}}return E.\u0275fac=function(S){return new(S||E)},E.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new E},token:E,providedIn:"root"}),E})(),w=(()=>{class E{constructor(S){this._mutationObserverFactory=S,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((S,P)=>this._cleanupObserver(P))}observe(S){const P=(0,o.fI)(S);return new f.y(B=>{const se=this._observeElement(P).subscribe(B);return()=>{se.unsubscribe(),this._unobserveElement(P)}})}_observeElement(S){if(this._observedElements.has(S))this._observedElements.get(S).count++;else{const P=new _.xQ,B=this._mutationObserverFactory.create(j=>P.next(j));B&&B.observe(S,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(S,{observer:B,stream:P,count:1})}return this._observedElements.get(S).stream}_unobserveElement(S){this._observedElements.has(S)&&(this._observedElements.get(S).count--,this._observedElements.get(S).count||this._cleanupObserver(S))}_cleanupObserver(S){if(this._observedElements.has(S)){const{observer:P,stream:B}=this._observedElements.get(S);P&&P.disconnect(),B.complete(),this._observedElements.delete(S)}}}return E.\u0275fac=function(S){return new(S||E)(l.\u0275\u0275inject(C))},E.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new E(l.\u0275\u0275inject(C))},token:E,providedIn:"root"}),E})(),D=(()=>{class E{constructor(S,P,B){this._contentObserver=S,this._elementRef=P,this._ngZone=B,this.event=new l.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(S){this._disabled=(0,o.Ig)(S),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(S){this._debounce=(0,o.su)(S),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const S=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?S.pipe((0,a.b)(this.debounce)):S).subscribe(this.event)})}_unsubscribe(){var S;null===(S=this._currentSubscription)||void 0===S||S.unsubscribe()}}return E.\u0275fac=function(S){return new(S||E)(l.\u0275\u0275directiveInject(w),l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.NgZone))},E.\u0275dir=l.\u0275\u0275defineDirective({type:E,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),E})(),g=(()=>{class E{}return E.\u0275fac=function(S){return new(S||E)},E.\u0275mod=l.\u0275\u0275defineNgModule({type:E}),E.\u0275inj=l.\u0275\u0275defineInjector({providers:[C]}),E})()},625:(Le,T,d)=>{"use strict";d.d(T,{aV:()=>st,X_:()=>te,Xj:()=>je,U8:()=>ft});var o=d(5197),l=d(7716),f=d(521),_=d(946),a=d(8583),C=d(9490),w=d(7636),D=d(9765),g=d(826),E=d(6682);d(7393);var j=d(5257),se=d(6782);d(6461);const be=(0,f.Mq)();class Ue{constructor(x,F){this._viewportRuler=x,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=F}attach(){}enable(){if(this._canBeEnabled()){const x=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=x.style.left||"",this._previousHTMLStyles.top=x.style.top||"",x.style.left=(0,C.HM)(-this._previousScrollPosition.left),x.style.top=(0,C.HM)(-this._previousScrollPosition.top),x.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const x=this._document.documentElement,R=x.style,he=this._document.body.style,z=R.scrollBehavior||"",ie=he.scrollBehavior||"";this._isEnabled=!1,R.left=this._previousHTMLStyles.left,R.top=this._previousHTMLStyles.top,x.classList.remove("cdk-global-scrollblock"),be&&(R.scrollBehavior=he.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),be&&(R.scrollBehavior=z,he.scrollBehavior=ie)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const F=this._document.body,R=this._viewportRuler.getViewportSize();return F.scrollHeight>R.height||F.scrollWidth>R.width}}class Je{constructor(x,F,R,he){this._scrollDispatcher=x,this._ngZone=F,this._viewportRuler=R,this._config=he,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(x){this._overlayRef=x}enable(){if(this._scrollSubscription)return;const x=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=x.subscribe(()=>{const F=this._viewportRuler.getViewportScrollPosition().top;Math.abs(F-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=x.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Me{enable(){}disable(){}attach(){}}function xe(Ye,x){return x.some(F=>Ye.bottom<F.top||Ye.top>F.bottom||Ye.right<F.left||Ye.left>F.right)}function Pe(Ye,x){return x.some(F=>Ye.top<F.top||Ye.bottom>F.bottom||Ye.left<F.left||Ye.right>F.right)}class Ne{constructor(x,F,R,he){this._scrollDispatcher=x,this._viewportRuler=F,this._ngZone=R,this._config=he,this._scrollSubscription=null}attach(x){this._overlayRef=x}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 F=this._overlayRef.overlayElement.getBoundingClientRect(),{width:R,height:he}=this._viewportRuler.getViewportSize();xe(F,[{width:R,height:he,bottom:he,right:R,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 Ct=(()=>{class Ye{constructor(F,R,he,z){this._scrollDispatcher=F,this._viewportRuler=R,this._ngZone=he,this.noop=()=>new Me,this.close=ie=>new Je(this._scrollDispatcher,this._ngZone,this._viewportRuler,ie),this.block=()=>new Ue(this._viewportRuler,this._document),this.reposition=ie=>new Ne(this._scrollDispatcher,this._viewportRuler,this._ngZone,ie),this._document=z}}return Ye.\u0275fac=function(F){return new(F||Ye)(l.\u0275\u0275inject(o.mF),l.\u0275\u0275inject(o.rL),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(a.DOCUMENT))},Ye.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ye(l.\u0275\u0275inject(o.mF),l.\u0275\u0275inject(o.rL),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(a.DOCUMENT))},token:Ye,providedIn:"root"}),Ye})();class te{constructor(x){if(this.scrollStrategy=new Me,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,x){const F=Object.keys(x);for(const R of F)void 0!==x[R]&&(this[R]=x[R])}}}class ge{constructor(x,F,R,he,z){this.offsetX=R,this.offsetY=he,this.panelClass=z,this.originX=x.originX,this.originY=x.originY,this.overlayX=F.overlayX,this.overlayY=F.overlayY}}class le{constructor(x,F){this.connectionPair=x,this.scrollableViewProperties=F}}let $e=(()=>{class Ye{constructor(F){this._attachedOverlays=[],this._document=F}ngOnDestroy(){this.detach()}add(F){this.remove(F),this._attachedOverlays.push(F)}remove(F){const R=this._attachedOverlays.indexOf(F);R>-1&&this._attachedOverlays.splice(R,1),0===this._attachedOverlays.length&&this.detach()}}return Ye.\u0275fac=function(F){return new(F||Ye)(l.\u0275\u0275inject(a.DOCUMENT))},Ye.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ye(l.\u0275\u0275inject(a.DOCUMENT))},token:Ye,providedIn:"root"}),Ye})(),et=(()=>{class Ye extends $e{constructor(F){super(F),this._keydownListener=R=>{const he=this._attachedOverlays;for(let z=he.length-1;z>-1;z--)if(he[z]._keydownEvents.observers.length>0){he[z]._keydownEvents.next(R);break}}}add(F){super.add(F),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 Ye.\u0275fac=function(F){return new(F||Ye)(l.\u0275\u0275inject(a.DOCUMENT))},Ye.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ye(l.\u0275\u0275inject(a.DOCUMENT))},token:Ye,providedIn:"root"}),Ye})(),pt=(()=>{class Ye extends $e{constructor(F,R){super(F),this._platform=R,this._cursorStyleIsSet=!1,this._pointerDownListener=he=>{this._pointerDownEventTarget=(0,f.sA)(he)},this._clickListener=he=>{const z=(0,f.sA)(he),ie="click"===he.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:z;this._pointerDownEventTarget=null;const Be=this._attachedOverlays.slice();for(let gt=Be.length-1;gt>-1;gt--){const Et=Be[gt];if(!(Et._outsidePointerEvents.observers.length<1)&&Et.hasAttached()){if(Et.overlayElement.contains(z)||Et.overlayElement.contains(ie))break;Et._outsidePointerEvents.next(he)}}}}add(F){if(super.add(F),!this._isAttached){const R=this._document.body;R.addEventListener("pointerdown",this._pointerDownListener,!0),R.addEventListener("click",this._clickListener,!0),R.addEventListener("auxclick",this._clickListener,!0),R.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=R.style.cursor,R.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const F=this._document.body;F.removeEventListener("pointerdown",this._pointerDownListener,!0),F.removeEventListener("click",this._clickListener,!0),F.removeEventListener("auxclick",this._clickListener,!0),F.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(F.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return Ye.\u0275fac=function(F){return new(F||Ye)(l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(f.t4))},Ye.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ye(l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(f.t4))},token:Ye,providedIn:"root"}),Ye})(),je=(()=>{class Ye{constructor(F,R){this._platform=R,this._document=F}ngOnDestroy(){const F=this._containerElement;F&&F.parentNode&&F.parentNode.removeChild(F)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const F="cdk-overlay-container";if(this._platform.isBrowser||(0,f.Oy)()){const he=this._document.querySelectorAll(`.${F}[platform="server"], .${F}[platform="test"]`);for(let z=0;z<he.length;z++)he[z].parentNode.removeChild(he[z])}const R=this._document.createElement("div");R.classList.add(F),(0,f.Oy)()?R.setAttribute("platform","test"):this._platform.isBrowser||R.setAttribute("platform","server"),this._document.body.appendChild(R),this._containerElement=R}}return Ye.\u0275fac=function(F){return new(F||Ye)(l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(f.t4))},Ye.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ye(l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(f.t4))},token:Ye,providedIn:"root"}),Ye})();class tt{constructor(x,F,R,he,z,ie,Be,gt,Et){this._portalOutlet=x,this._host=F,this._pane=R,this._config=he,this._ngZone=z,this._keyboardDispatcher=ie,this._document=Be,this._location=gt,this._outsideClickDispatcher=Et,this._backdropElement=null,this._backdropClick=new D.xQ,this._attachments=new D.xQ,this._detachments=new D.xQ,this._locationChanges=g.w.EMPTY,this._backdropClickHandler=xt=>this._backdropClick.next(xt),this._keydownEvents=new D.xQ,this._outsidePointerEvents=new D.xQ,he.scrollStrategy&&(this._scrollStrategy=he.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=he.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(x){let F=this._portalOutlet.attach(x);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,j.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),F}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const x=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),x}dispose(){const x=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,x&&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(x){x!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=x,this.hasAttached()&&(x.attach(this),this.updatePosition()))}updateSize(x){this._config=Object.assign(Object.assign({},this._config),x),this._updateElementSize()}setDirection(x){this._config=Object.assign(Object.assign({},this._config),{direction:x}),this._updateElementDirection()}addPanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!0)}removePanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!1)}getDirection(){const x=this._config.direction;return x?"string"==typeof x?x:x.value:"ltr"}updateScrollStrategy(x){x!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=x,this.hasAttached()&&(x.attach(this),x.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const x=this._pane.style;x.width=(0,C.HM)(this._config.width),x.height=(0,C.HM)(this._config.height),x.minWidth=(0,C.HM)(this._config.minWidth),x.minHeight=(0,C.HM)(this._config.minHeight),x.maxWidth=(0,C.HM)(this._config.maxWidth),x.maxHeight=(0,C.HM)(this._config.maxHeight)}_togglePointerEvents(x){this._pane.style.pointerEvents=x?"":"none"}_attachBackdrop(){const x="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(x)})}):this._backdropElement.classList.add(x)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const x=this._backdropElement;if(!x)return;let F;const R=()=>{x&&(x.removeEventListener("click",this._backdropClickHandler),x.removeEventListener("transitionend",R),this._disposeBackdrop(x)),this._config.backdropClass&&this._toggleClasses(x,this._config.backdropClass,!1),clearTimeout(F)};x.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{x.addEventListener("transitionend",R)}),x.style.pointerEvents="none",F=this._ngZone.runOutsideAngular(()=>setTimeout(R,500))}_toggleClasses(x,F,R){const he=x.classList;(0,C.Eq)(F).forEach(z=>{z&&(R?he.add(z):he.remove(z))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const x=this._ngZone.onStable.pipe((0,se.R)((0,E.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._previousHostParent.removeChild(this._host)),x.unsubscribe())})})}_disposeScrollStrategy(){const x=this._scrollStrategy;x&&(x.disable(),x.detach&&x.detach())}_disposeBackdrop(x){x&&(x.parentNode&&x.parentNode.removeChild(x),this._backdropElement===x&&(this._backdropElement=null))}}const ut="cdk-overlay-connected-position-bounding-box",It=/([A-Za-z%]+)$/;class Xe{constructor(x,F,R,he,z){this._viewportRuler=F,this._document=R,this._platform=he,this._overlayContainer=z,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 D.xQ,this._resizeSubscription=g.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(x)}get positions(){return this._preferredPositions}attach(x){this._validatePositions(),x.hostElement.classList.add(ut),this._overlayRef=x,this._boundingBox=x.hostElement,this._pane=x.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();const x=this._originRect,F=this._overlayRect,R=this._viewportRect,he=[];let z;for(let ie of this._preferredPositions){let Be=this._getOriginPoint(x,ie),gt=this._getOverlayPoint(Be,F,ie),Et=this._getOverlayFit(gt,F,R,ie);if(Et.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ie,Be);this._canFitWithFlexibleDimensions(Et,gt,R)?he.push({position:ie,origin:Be,overlayRect:F,boundingBoxRect:this._calculateBoundingBoxRect(Be,ie)}):(!z||z.overlayFit.visibleArea<Et.visibleArea)&&(z={overlayFit:Et,overlayPoint:gt,originPoint:Be,position:ie,overlayRect:F})}if(he.length){let ie=null,Be=-1;for(const gt of he){const Et=gt.boundingBoxRect.width*gt.boundingBoxRect.height*(gt.position.weight||1);Et>Be&&(Be=Et,ie=gt)}return this._isPushed=!1,void this._applyPosition(ie.position,ie.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(z.position,z.originPoint);this._applyPosition(z.position,z.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&dt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ut),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();const x=this._lastPosition||this._preferredPositions[0],F=this._getOriginPoint(this._originRect,x);this._applyPosition(x,F)}}withScrollableContainers(x){return this._scrollables=x,this}withPositions(x){return this._preferredPositions=x,-1===x.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(x){return this._viewportMargin=x,this}withFlexibleDimensions(x=!0){return this._hasFlexibleDimensions=x,this}withGrowAfterOpen(x=!0){return this._growAfterOpen=x,this}withPush(x=!0){return this._canPush=x,this}withLockedPosition(x=!0){return this._positionLocked=x,this}setOrigin(x){return this._origin=x,this}withDefaultOffsetX(x){return this._offsetX=x,this}withDefaultOffsetY(x){return this._offsetY=x,this}withTransformOriginOn(x){return this._transformOriginSelector=x,this}_getOriginPoint(x,F){let R,he;if("center"==F.originX)R=x.left+x.width/2;else{const z=this._isRtl()?x.right:x.left,ie=this._isRtl()?x.left:x.right;R="start"==F.originX?z:ie}return he="center"==F.originY?x.top+x.height/2:"top"==F.originY?x.top:x.bottom,{x:R,y:he}}_getOverlayPoint(x,F,R){let he,z;return he="center"==R.overlayX?-F.width/2:"start"===R.overlayX?this._isRtl()?-F.width:0:this._isRtl()?0:-F.width,z="center"==R.overlayY?-F.height/2:"top"==R.overlayY?0:-F.height,{x:x.x+he,y:x.y+z}}_getOverlayFit(x,F,R,he){const z=oe(F);let{x:ie,y:Be}=x,gt=this._getOffset(he,"x"),Et=this._getOffset(he,"y");gt&&(ie+=gt),Et&&(Be+=Et);let Ut=0-Be,Qt=Be+z.height-R.height,At=this._subtractOverflows(z.width,0-ie,ie+z.width-R.width),Lt=this._subtractOverflows(z.height,Ut,Qt),jt=At*Lt;return{visibleArea:jt,isCompletelyWithinViewport:z.width*z.height===jt,fitsInViewportVertically:Lt===z.height,fitsInViewportHorizontally:At==z.width}}_canFitWithFlexibleDimensions(x,F,R){if(this._hasFlexibleDimensions){const he=R.bottom-F.y,z=R.right-F.x,ie=$(this._overlayRef.getConfig().minHeight),Be=$(this._overlayRef.getConfig().minWidth),Et=x.fitsInViewportHorizontally||null!=Be&&Be<=z;return(x.fitsInViewportVertically||null!=ie&&ie<=he)&&Et}return!1}_pushOverlayOnScreen(x,F,R){if(this._previousPushAmount&&this._positionLocked)return{x:x.x+this._previousPushAmount.x,y:x.y+this._previousPushAmount.y};const he=oe(F),z=this._viewportRect,ie=Math.max(x.x+he.width-z.width,0),Be=Math.max(x.y+he.height-z.height,0),gt=Math.max(z.top-R.top-x.y,0),Et=Math.max(z.left-R.left-x.x,0);let xt=0,Nt=0;return xt=he.width<=z.width?Et||-ie:x.x<this._viewportMargin?z.left-R.left-x.x:0,Nt=he.height<=z.height?gt||-Be:x.y<this._viewportMargin?z.top-R.top-x.y:0,this._previousPushAmount={x:xt,y:Nt},{x:x.x+xt,y:x.y+Nt}}_applyPosition(x,F){if(this._setTransformOrigin(x),this._setOverlayElementStyles(F,x),this._setBoundingBoxStyles(F,x),x.panelClass&&this._addPanelClasses(x.panelClass),this._lastPosition=x,this._positionChanges.observers.length){const R=this._getScrollVisibility(),he=new le(x,R);this._positionChanges.next(he)}this._isInitialRender=!1}_setTransformOrigin(x){if(!this._transformOriginSelector)return;const F=this._boundingBox.querySelectorAll(this._transformOriginSelector);let R,he=x.overlayY;R="center"===x.overlayX?"center":this._isRtl()?"start"===x.overlayX?"right":"left":"start"===x.overlayX?"left":"right";for(let z=0;z<F.length;z++)F[z].style.transformOrigin=`${R} ${he}`}_calculateBoundingBoxRect(x,F){const R=this._viewportRect,he=this._isRtl();let z,ie,Be,xt,Nt,Ut;if("top"===F.overlayY)ie=x.y,z=R.height-ie+this._viewportMargin;else if("bottom"===F.overlayY)Be=R.height-x.y+2*this._viewportMargin,z=R.height-Be+this._viewportMargin;else{const Qt=Math.min(R.bottom-x.y+R.top,x.y),At=this._lastBoundingBoxSize.height;z=2*Qt,ie=x.y-Qt,z>At&&!this._isInitialRender&&!this._growAfterOpen&&(ie=x.y-At/2)}if("end"===F.overlayX&&!he||"start"===F.overlayX&&he)Ut=R.width-x.x+this._viewportMargin,xt=x.x-this._viewportMargin;else if("start"===F.overlayX&&!he||"end"===F.overlayX&&he)Nt=x.x,xt=R.right-x.x;else{const Qt=Math.min(R.right-x.x+R.left,x.x),At=this._lastBoundingBoxSize.width;xt=2*Qt,Nt=x.x-Qt,xt>At&&!this._isInitialRender&&!this._growAfterOpen&&(Nt=x.x-At/2)}return{top:ie,left:Nt,bottom:Be,right:Ut,width:xt,height:z}}_setBoundingBoxStyles(x,F){const R=this._calculateBoundingBoxRect(x,F);!this._isInitialRender&&!this._growAfterOpen&&(R.height=Math.min(R.height,this._lastBoundingBoxSize.height),R.width=Math.min(R.width,this._lastBoundingBoxSize.width));const he={};if(this._hasExactPosition())he.top=he.left="0",he.bottom=he.right=he.maxHeight=he.maxWidth="",he.width=he.height="100%";else{const z=this._overlayRef.getConfig().maxHeight,ie=this._overlayRef.getConfig().maxWidth;he.height=(0,C.HM)(R.height),he.top=(0,C.HM)(R.top),he.bottom=(0,C.HM)(R.bottom),he.width=(0,C.HM)(R.width),he.left=(0,C.HM)(R.left),he.right=(0,C.HM)(R.right),he.alignItems="center"===F.overlayX?"center":"end"===F.overlayX?"flex-end":"flex-start",he.justifyContent="center"===F.overlayY?"center":"bottom"===F.overlayY?"flex-end":"flex-start",z&&(he.maxHeight=(0,C.HM)(z)),ie&&(he.maxWidth=(0,C.HM)(ie))}this._lastBoundingBoxSize=R,dt(this._boundingBox.style,he)}_resetBoundingBoxStyles(){dt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){dt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(x,F){const R={},he=this._hasExactPosition(),z=this._hasFlexibleDimensions,ie=this._overlayRef.getConfig();if(he){const xt=this._viewportRuler.getViewportScrollPosition();dt(R,this._getExactOverlayY(F,x,xt)),dt(R,this._getExactOverlayX(F,x,xt))}else R.position="static";let Be="",gt=this._getOffset(F,"x"),Et=this._getOffset(F,"y");gt&&(Be+=`translateX(${gt}px) `),Et&&(Be+=`translateY(${Et}px)`),R.transform=Be.trim(),ie.maxHeight&&(he?R.maxHeight=(0,C.HM)(ie.maxHeight):z&&(R.maxHeight="")),ie.maxWidth&&(he?R.maxWidth=(0,C.HM)(ie.maxWidth):z&&(R.maxWidth="")),dt(this._pane.style,R)}_getExactOverlayY(x,F,R){let he={top:"",bottom:""},z=this._getOverlayPoint(F,this._overlayRect,x);this._isPushed&&(z=this._pushOverlayOnScreen(z,this._overlayRect,R));let ie=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return z.y-=ie,"bottom"===x.overlayY?he.bottom=this._document.documentElement.clientHeight-(z.y+this._overlayRect.height)+"px":he.top=(0,C.HM)(z.y),he}_getExactOverlayX(x,F,R){let ie,he={left:"",right:""},z=this._getOverlayPoint(F,this._overlayRect,x);return this._isPushed&&(z=this._pushOverlayOnScreen(z,this._overlayRect,R)),ie=this._isRtl()?"end"===x.overlayX?"left":"right":"end"===x.overlayX?"right":"left","right"===ie?he.right=this._document.documentElement.clientWidth-(z.x+this._overlayRect.width)+"px":he.left=(0,C.HM)(z.x),he}_getScrollVisibility(){const x=this._getOriginRect(),F=this._pane.getBoundingClientRect(),R=this._scrollables.map(he=>he.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Pe(x,R),isOriginOutsideView:xe(x,R),isOverlayClipped:Pe(F,R),isOverlayOutsideView:xe(F,R)}}_subtractOverflows(x,...F){return F.reduce((R,he)=>R-Math.max(he,0),x)}_getNarrowedViewportRect(){const x=this._document.documentElement.clientWidth,F=this._document.documentElement.clientHeight,R=this._viewportRuler.getViewportScrollPosition();return{top:R.top+this._viewportMargin,left:R.left+this._viewportMargin,right:R.left+x-this._viewportMargin,bottom:R.top+F-this._viewportMargin,width:x-2*this._viewportMargin,height:F-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(x,F){return"x"===F?null==x.offsetX?this._offsetX:x.offsetX:null==x.offsetY?this._offsetY:x.offsetY}_validatePositions(){}_addPanelClasses(x){this._pane&&(0,C.Eq)(x).forEach(F=>{""!==F&&-1===this._appliedPanelClasses.indexOf(F)&&(this._appliedPanelClasses.push(F),this._pane.classList.add(F))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(x=>{this._pane.classList.remove(x)}),this._appliedPanelClasses=[])}_getOriginRect(){const x=this._origin;if(x instanceof l.ElementRef)return x.nativeElement.getBoundingClientRect();if(x instanceof Element)return x.getBoundingClientRect();const F=x.width||0,R=x.height||0;return{top:x.y,bottom:x.y+R,left:x.x,right:x.x+F,height:R,width:F}}}function dt(Ye,x){for(let F in x)x.hasOwnProperty(F)&&(Ye[F]=x[F]);return Ye}function $(Ye){if("number"!=typeof Ye&&null!=Ye){const[x,F]=Ye.split(It);return F&&"px"!==F?null:parseFloat(x)}return Ye||null}function oe(Ye){return{top:Math.floor(Ye.top),right:Math.floor(Ye.right),bottom:Math.floor(Ye.bottom),left:Math.floor(Ye.left),width:Math.floor(Ye.width),height:Math.floor(Ye.height)}}class L{constructor(x,F,R,he,z,ie,Be){this._preferredPositions=[],this._positionStrategy=new Xe(R,he,z,ie,Be).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(x,F),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(x){this._overlayRef=x,this._positionStrategy.attach(x),this._direction&&(x.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(x){this._positionStrategy.withScrollableContainers(x)}withFallbackPosition(x,F,R,he){const z=new ge(x,F,R,he);return this._preferredPositions.push(z),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(x){return this._overlayRef?this._overlayRef.setDirection(x):this._direction=x,this}withOffsetX(x){return this._positionStrategy.withDefaultOffsetX(x),this}withOffsetY(x){return this._positionStrategy.withDefaultOffsetY(x),this}withLockedPosition(x){return this._positionStrategy.withLockedPosition(x),this}withPositions(x){return this._preferredPositions=x.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(x){return this._positionStrategy.setOrigin(x),this}}const ue="cdk-global-overlay-wrapper";class ae{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(x){const F=x.getConfig();this._overlayRef=x,this._width&&!F.width&&x.updateSize({width:this._width}),this._height&&!F.height&&x.updateSize({height:this._height}),x.hostElement.classList.add(ue),this._isDisposed=!1}top(x=""){return this._bottomOffset="",this._topOffset=x,this._alignItems="flex-start",this}left(x=""){return this._rightOffset="",this._leftOffset=x,this._justifyContent="flex-start",this}bottom(x=""){return this._topOffset="",this._bottomOffset=x,this._alignItems="flex-end",this}right(x=""){return this._leftOffset="",this._rightOffset=x,this._justifyContent="flex-end",this}width(x=""){return this._overlayRef?this._overlayRef.updateSize({width:x}):this._width=x,this}height(x=""){return this._overlayRef?this._overlayRef.updateSize({height:x}):this._height=x,this}centerHorizontally(x=""){return this.left(x),this._justifyContent="center",this}centerVertically(x=""){return this.top(x),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const x=this._overlayRef.overlayElement.style,F=this._overlayRef.hostElement.style,R=this._overlayRef.getConfig(),{width:he,height:z,maxWidth:ie,maxHeight:Be}=R,gt=!("100%"!==he&&"100vw"!==he||ie&&"100%"!==ie&&"100vw"!==ie),Et=!("100%"!==z&&"100vh"!==z||Be&&"100%"!==Be&&"100vh"!==Be);x.position=this._cssPosition,x.marginLeft=gt?"0":this._leftOffset,x.marginTop=Et?"0":this._topOffset,x.marginBottom=this._bottomOffset,x.marginRight=this._rightOffset,gt?F.justifyContent="flex-start":"center"===this._justifyContent?F.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?F.justifyContent="flex-end":"flex-end"===this._justifyContent&&(F.justifyContent="flex-start"):F.justifyContent=this._justifyContent,F.alignItems=Et?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const x=this._overlayRef.overlayElement.style,F=this._overlayRef.hostElement,R=F.style;F.classList.remove(ue),R.justifyContent=R.alignItems=x.marginTop=x.marginBottom=x.marginLeft=x.marginRight=x.position="",this._overlayRef=null,this._isDisposed=!0}}let fe=(()=>{class Ye{constructor(F,R,he,z){this._viewportRuler=F,this._document=R,this._platform=he,this._overlayContainer=z}global(){return new ae}connectedTo(F,R,he){return new L(R,he,F,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(F){return new Xe(F,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Ye.\u0275fac=function(F){return new(F||Ye)(l.\u0275\u0275inject(o.rL),l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(f.t4),l.\u0275\u0275inject(je))},Ye.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ye(l.\u0275\u0275inject(o.rL),l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(f.t4),l.\u0275\u0275inject(je))},token:Ye,providedIn:"root"}),Ye})(),Fe=0,st=(()=>{class Ye{constructor(F,R,he,z,ie,Be,gt,Et,xt,Nt,Ut){this.scrollStrategies=F,this._overlayContainer=R,this._componentFactoryResolver=he,this._positionBuilder=z,this._keyboardDispatcher=ie,this._injector=Be,this._ngZone=gt,this._document=Et,this._directionality=xt,this._location=Nt,this._outsideClickDispatcher=Ut}create(F){const R=this._createHostElement(),he=this._createPaneElement(R),z=this._createPortalOutlet(he),ie=new te(F);return ie.direction=ie.direction||this._directionality.value,new tt(z,R,he,ie,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(F){const R=this._document.createElement("div");return R.id="cdk-overlay-"+Fe++,R.classList.add("cdk-overlay-pane"),F.appendChild(R),R}_createHostElement(){const F=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(F),F}_createPortalOutlet(F){return this._appRef||(this._appRef=this._injector.get(l.ApplicationRef)),new w.u0(F,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Ye.\u0275fac=function(F){return new(F||Ye)(l.\u0275\u0275inject(Ct),l.\u0275\u0275inject(je),l.\u0275\u0275inject(l.ComponentFactoryResolver),l.\u0275\u0275inject(fe),l.\u0275\u0275inject(et),l.\u0275\u0275inject(l.Injector),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(_.Is),l.\u0275\u0275inject(a.Location),l.\u0275\u0275inject(pt))},Ye.\u0275prov=l.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac}),Ye})();const Ge={provide:new l.InjectionToken("cdk-connected-overlay-scroll-strategy"),deps:[st],useFactory:function(Ye){return()=>Ye.scrollStrategies.reposition()}};let ft=(()=>{class Ye{}return Ye.\u0275fac=function(F){return new(F||Ye)},Ye.\u0275mod=l.\u0275\u0275defineNgModule({type:Ye}),Ye.\u0275inj=l.\u0275\u0275defineInjector({providers:[st,Ge],imports:[[_.vT,w.eL,o.Cl],o.Cl]}),Ye})()},521:(Le,T,d)=>{"use strict";d.d(T,{t4:()=>_,ud:()=>a,sA:()=>lt,ht:()=>Ue,kV:()=>be,Oy:()=>Je,_i:()=>j,i$:()=>M,Mq:()=>B});var o=d(7716),l=d(8583);let f;try{f="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Me){f=!1}let g,S,P,se,_=(()=>{class Me{constructor(Pe){this._platformId=Pe,this.isBrowser=this._platformId?(0,l.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&&!f)&&"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 Me.\u0275fac=function(Pe){return new(Pe||Me)(o.\u0275\u0275inject(o.PLATFORM_ID))},Me.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new Me(o.\u0275\u0275inject(o.PLATFORM_ID))},token:Me,providedIn:"root"}),Me})(),a=(()=>{class Me{}return Me.\u0275fac=function(Pe){return new(Pe||Me)},Me.\u0275mod=o.\u0275\u0275defineNgModule({type:Me}),Me.\u0275inj=o.\u0275\u0275defineInjector({}),Me})();function M(Me){return function(){if(null==g&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>g=!0}))}finally{g=g||!1}return g}()?Me:!!Me.capture}function B(){if(null==P){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return P=!1,P;if("scrollBehavior"in document.documentElement.style)P=!0;else{const Me=Element.prototype.scrollTo;P=!!Me&&!/\{\s*\[native code\]\s*\}/.test(Me.toString())}}return P}function j(){if("object"!=typeof document||!document)return 0;if(null==S){const Me=document.createElement("div"),xe=Me.style;Me.dir="rtl",xe.width="1px",xe.overflow="auto",xe.visibility="hidden",xe.pointerEvents="none",xe.position="absolute";const Pe=document.createElement("div"),Ne=Pe.style;Ne.width="2px",Ne.height="1px",Me.appendChild(Pe),document.body.appendChild(Me),S=0,0===Me.scrollLeft&&(Me.scrollLeft=1,S=0===Me.scrollLeft?1:2),Me.parentNode.removeChild(Me)}return S}function be(Me){if(function(){if(null==se){const Me="undefined"!=typeof document?document.head:null;se=!(!Me||!Me.createShadowRoot&&!Me.attachShadow)}return se}()){const xe=Me.getRootNode?Me.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&xe instanceof ShadowRoot)return xe}return null}function Ue(){let Me="undefined"!=typeof document&&document?document.activeElement:null;for(;Me&&Me.shadowRoot;){const xe=Me.shadowRoot.activeElement;if(xe===Me)break;Me=xe}return Me}function lt(Me){return Me.composedPath?Me.composedPath()[0]:Me.target}function Je(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7636:(Le,T,d)=>{"use strict";d.d(T,{en:()=>P,ig:()=>ce,Pl:()=>Ue,C5:()=>E,u0:()=>j,eL:()=>Je,UE:()=>M});var o=d(7716),l=d(8583);class g{attach(Pe){return this._attachedHost=Pe,Pe.attach(this)}detach(){let Pe=this._attachedHost;null!=Pe&&(this._attachedHost=null,Pe.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Pe){this._attachedHost=Pe}}class E extends g{constructor(Pe,Ne,Ct,te){super(),this.component=Pe,this.viewContainerRef=Ne,this.injector=Ct,this.componentFactoryResolver=te}}class M extends g{constructor(Pe,Ne,Ct){super(),this.templateRef=Pe,this.viewContainerRef=Ne,this.context=Ct}get origin(){return this.templateRef.elementRef}attach(Pe,Ne=this.context){return this.context=Ne,super.attach(Pe)}detach(){return this.context=void 0,super.detach()}}class S extends g{constructor(Pe){super(),this.element=Pe instanceof o.ElementRef?Pe.nativeElement:Pe}}class P{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Pe){return Pe instanceof E?(this._attachedPortal=Pe,this.attachComponentPortal(Pe)):Pe instanceof M?(this._attachedPortal=Pe,this.attachTemplatePortal(Pe)):this.attachDomPortal&&Pe instanceof S?(this._attachedPortal=Pe,this.attachDomPortal(Pe)):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(Pe){this._disposeFn=Pe}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class j extends P{constructor(Pe,Ne,Ct,te,ge){super(),this.outletElement=Pe,this._componentFactoryResolver=Ne,this._appRef=Ct,this._defaultInjector=te,this.attachDomPortal=X=>{const le=X.element,Ae=this._document.createComment("dom-portal");le.parentNode.insertBefore(Ae,le),this.outletElement.appendChild(le),this._attachedPortal=X,super.setDisposeFn(()=>{Ae.parentNode&&Ae.parentNode.replaceChild(le,Ae)})},this._document=ge}attachComponentPortal(Pe){const Ct=(Pe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Pe.component);let te;return Pe.viewContainerRef?(te=Pe.viewContainerRef.createComponent(Ct,Pe.viewContainerRef.length,Pe.injector||Pe.viewContainerRef.injector),this.setDisposeFn(()=>te.destroy())):(te=Ct.create(Pe.injector||this._defaultInjector),this._appRef.attachView(te.hostView),this.setDisposeFn(()=>{this._appRef.detachView(te.hostView),te.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(te)),this._attachedPortal=Pe,te}attachTemplatePortal(Pe){let Ne=Pe.viewContainerRef,Ct=Ne.createEmbeddedView(Pe.templateRef,Pe.context);return Ct.rootNodes.forEach(te=>this.outletElement.appendChild(te)),Ct.detectChanges(),this.setDisposeFn(()=>{let te=Ne.indexOf(Ct);-1!==te&&Ne.remove(te)}),this._attachedPortal=Pe,Ct}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(Pe){return Pe.hostView.rootNodes[0]}}let ce=(()=>{class xe extends M{constructor(Ne,Ct){super(Ne,Ct)}}return xe.\u0275fac=function(Ne){return new(Ne||xe)(o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(o.ViewContainerRef))},xe.\u0275dir=o.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[o.\u0275\u0275InheritDefinitionFeature]}),xe})(),Ue=(()=>{class xe extends P{constructor(Ne,Ct,te){super(),this._componentFactoryResolver=Ne,this._viewContainerRef=Ct,this._isInitialized=!1,this.attached=new o.EventEmitter,this.attachDomPortal=ge=>{const X=ge.element,le=this._document.createComment("dom-portal");ge.setAttachedHost(this),X.parentNode.insertBefore(le,X),this._getRootNode().appendChild(X),this._attachedPortal=ge,super.setDisposeFn(()=>{le.parentNode&&le.parentNode.replaceChild(X,le)})},this._document=te}get portal(){return this._attachedPortal}set portal(Ne){this.hasAttached()&&!Ne&&!this._isInitialized||(this.hasAttached()&&super.detach(),Ne&&super.attach(Ne),this._attachedPortal=Ne)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Ne){Ne.setAttachedHost(this);const Ct=null!=Ne.viewContainerRef?Ne.viewContainerRef:this._viewContainerRef,ge=(Ne.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Ne.component),X=Ct.createComponent(ge,Ct.length,Ne.injector||Ct.injector);return Ct!==this._viewContainerRef&&this._getRootNode().appendChild(X.hostView.rootNodes[0]),super.setDisposeFn(()=>X.destroy()),this._attachedPortal=Ne,this._attachedRef=X,this.attached.emit(X),X}attachTemplatePortal(Ne){Ne.setAttachedHost(this);const Ct=this._viewContainerRef.createEmbeddedView(Ne.templateRef,Ne.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Ne,this._attachedRef=Ct,this.attached.emit(Ct),Ct}_getRootNode(){const Ne=this._viewContainerRef.element.nativeElement;return Ne.nodeType===Ne.ELEMENT_NODE?Ne:Ne.parentNode}}return xe.\u0275fac=function(Ne){return new(Ne||xe)(o.\u0275\u0275directiveInject(o.ComponentFactoryResolver),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(l.DOCUMENT))},xe.\u0275dir=o.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[o.\u0275\u0275InheritDefinitionFeature]}),xe})(),Je=(()=>{class xe{}return xe.\u0275fac=function(Ne){return new(Ne||xe)},xe.\u0275mod=o.\u0275\u0275defineNgModule({type:xe}),xe.\u0275inj=o.\u0275\u0275defineInjector({}),xe})()},5197:(Le,T,d)=>{"use strict";d.d(T,{ZD:()=>wt,mF:()=>dt,Cl:()=>Ze,rL:()=>L});var o=d(9490),l=d(7716),f=d(9765),_=d(5917),a=d(9897),C=d(2759),M=(d(1927),d(4581),d(826),d(5639),d(3637)),S=d(5345);class B{constructor(He){this.durationSelector=He}call(He,q){return q.subscribe(new j(He,this.durationSelector))}}class j extends S.Ds{constructor(He,q){super(He),this.durationSelector=q,this.hasValue=!1}_next(He){if(this.value=He,this.hasValue=!0,!this.throttled){let q;try{const{durationSelector:ft}=this;q=ft(He)}catch(ft){return this.destination.error(ft)}const Ge=(0,S.ft)(q,new S.IY(this));!Ge||Ge.closed?this.clearThrottle():this.add(this.throttled=Ge)}}clearThrottle(){const{value:He,hasValue:q,throttled:Ge}=this;Ge&&(this.remove(Ge),this.throttled=void 0,Ge.unsubscribe()),q&&(this.value=void 0,this.hasValue=!1,this.destination.next(He))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var se=d(6797);function ce(ze,He=M.P){return function(ze){return function(q){return q.lift(new B(ze))}}(()=>(0,se.H)(ze,He))}d(7393),d(4448),d(7519);var Ct=d(5435),le=(d(6782),d(9761),d(3190),d(521)),Ae=d(8583),Ce=d(946);d(8345);let dt=(()=>{class ze{constructor(q,Ge,ft){this._ngZone=q,this._platform=Ge,this._scrolled=new f.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ft}register(q){this.scrollContainers.has(q)||this.scrollContainers.set(q,q.elementScrolled().subscribe(()=>this._scrolled.next(q)))}deregister(q){const Ge=this.scrollContainers.get(q);Ge&&(Ge.unsubscribe(),this.scrollContainers.delete(q))}scrolled(q=20){return this._platform.isBrowser?new a.y(Ge=>{this._globalSubscription||this._addGlobalListener();const ft=q>0?this._scrolled.pipe(ce(q)).subscribe(Ge):this._scrolled.subscribe(Ge);return this._scrolledCount++,()=>{ft.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,_.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((q,Ge)=>this.deregister(Ge)),this._scrolled.complete()}ancestorScrolled(q,Ge){const ft=this.getAncestorScrollContainers(q);return this.scrolled(Ge).pipe((0,Ct.h)(vt=>!vt||ft.indexOf(vt)>-1))}getAncestorScrollContainers(q){const Ge=[];return this.scrollContainers.forEach((ft,vt)=>{this._scrollableContainsElement(vt,q)&&Ge.push(vt)}),Ge}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(q,Ge){let ft=(0,o.fI)(Ge),vt=q.getElementRef().nativeElement;do{if(ft==vt)return!0}while(ft=ft.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const q=this._getWindow();return(0,C.R)(q.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ze.\u0275fac=function(q){return new(q||ze)(l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(le.t4),l.\u0275\u0275inject(Ae.DOCUMENT,8))},ze.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new ze(l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(le.t4),l.\u0275\u0275inject(Ae.DOCUMENT,8))},token:ze,providedIn:"root"}),ze})(),L=(()=>{class ze{constructor(q,Ge,ft){this._platform=q,this._change=new f.xQ,this._changeListener=vt=>{this._change.next(vt)},this._document=ft,Ge.runOutsideAngular(()=>{if(q.isBrowser){const vt=this._getWindow();vt.addEventListener("resize",this._changeListener),vt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const q=this._getWindow();q.removeEventListener("resize",this._changeListener),q.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const q={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),q}getViewportRect(){const q=this.getViewportScrollPosition(),{width:Ge,height:ft}=this.getViewportSize();return{top:q.top,left:q.left,bottom:q.top+ft,right:q.left+Ge,height:ft,width:Ge}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const q=this._document,Ge=this._getWindow(),ft=q.documentElement,vt=ft.getBoundingClientRect();return{top:-vt.top||q.body.scrollTop||Ge.scrollY||ft.scrollTop||0,left:-vt.left||q.body.scrollLeft||Ge.scrollX||ft.scrollLeft||0}}change(q=20){return q>0?this._change.pipe(ce(q)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const q=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:q.innerWidth,height:q.innerHeight}:{width:0,height:0}}}return ze.\u0275fac=function(q){return new(q||ze)(l.\u0275\u0275inject(le.t4),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(Ae.DOCUMENT,8))},ze.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new ze(l.\u0275\u0275inject(le.t4),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(Ae.DOCUMENT,8))},token:ze,providedIn:"root"}),ze})(),wt=(()=>{class ze{}return ze.\u0275fac=function(q){return new(q||ze)},ze.\u0275mod=l.\u0275\u0275defineNgModule({type:ze}),ze.\u0275inj=l.\u0275\u0275defineInjector({}),ze})(),Ze=(()=>{class ze{}return ze.\u0275fac=function(q){return new(q||ze)},ze.\u0275mod=l.\u0275\u0275defineNgModule({type:ze}),ze.\u0275inj=l.\u0275\u0275defineInjector({imports:[[Ce.vT,le.ud,wt],Ce.vT,wt]}),ze})()},9490:(Le,T,d)=>{"use strict";d.d(T,{t6:()=>_,Eq:()=>a,Ig:()=>l,HM:()=>C,fI:()=>w,su:()=>f});var o=d(7716);function l(g){return null!=g&&"false"!=`${g}`}function f(g,E=0){return _(g)?Number(g):E}function _(g){return!isNaN(parseFloat(g))&&!isNaN(Number(g))}function a(g){return Array.isArray(g)?g:[g]}function C(g){return null==g?"":"string"==typeof g?g:`${g}px`}function w(g){return g instanceof o.ElementRef?g.nativeElement:g}},8583:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{APP_BASE_HREF:()=>Ue,AsyncPipe:()=>Fr,CommonModule:()=>Mi,CurrencyPipe:()=>Br,DOCUMENT:()=>w,DatePipe:()=>po,DecimalPipe:()=>wi,FormStyle:()=>X,FormatWidth:()=>Ae,HashLocationStrategy:()=>Je,I18nPluralPipe:()=>Ti,I18nSelectPipe:()=>mo,JsonPipe:()=>ko,KeyValuePipe:()=>Lr,LOCATION_INITIALIZED:()=>E,Location:()=>Me,LocationStrategy:()=>ce,LowerCasePipe:()=>Nr,NgClass:()=>Ft,NgComponentOutlet:()=>$t,NgForOf:()=>Wt,NgForOfContext:()=>qt,NgIf:()=>bi,NgIfContext:()=>li,NgLocaleLocalization:()=>pe,NgLocalization:()=>we,NgPlural:()=>Cn,NgPluralCase:()=>Ci,NgStyle:()=>ci,NgSwitch:()=>ei,NgSwitchCase:()=>xn,NgSwitchDefault:()=>Xi,NgTemplateOutlet:()=>ui,NumberFormatStyle:()=>te,NumberSymbol:()=>Ce,PathLocationStrategy:()=>lt,PercentPipe:()=>Li,PlatformLocation:()=>D,Plural:()=>ge,SlicePipe:()=>yi,TitleCasePipe:()=>to,TranslationWidth:()=>le,UpperCasePipe:()=>Di,VERSION:()=>Rn,ViewportScroller:()=>Cr,WeekDay:()=>$e,XhrFactory:()=>go,formatCurrency:()=>Rt,formatDate:()=>gt,formatNumber:()=>ve,formatPercent:()=>ee,getCurrencySymbol:()=>vt,getLocaleCurrencyCode:()=>Fe,getLocaleCurrencyName:()=>fe,getLocaleCurrencySymbol:()=>ae,getLocaleDateFormat:()=>dt,getLocaleDateTimeFormat:()=>oe,getLocaleDayNames:()=>je,getLocaleDayPeriods:()=>pt,getLocaleDirection:()=>q,getLocaleEraNames:()=>ut,getLocaleExtraDayPeriodRules:()=>ze,getLocaleExtraDayPeriods:()=>He,getLocaleFirstDayOfWeek:()=>It,getLocaleId:()=>et,getLocaleMonthNames:()=>tt,getLocaleNumberFormat:()=>ue,getLocaleNumberSymbol:()=>L,getLocalePluralCase:()=>wt,getLocaleTimeFormat:()=>$,getLocaleWeekEndRange:()=>Xe,getNumberOfCurrencyDigits:()=>x,isPlatformBrowser:()=>br,isPlatformServer:()=>Hr,isPlatformWorkerApp:()=>Si,isPlatformWorkerUi:()=>$r,registerLocaleData:()=>Ve,\u0275BrowserPlatformLocation:()=>M,\u0275DomAdapter:()=>C,\u0275NullViewportScroller:()=>Tr,\u0275PLATFORM_BROWSER_ID:()=>ji,\u0275PLATFORM_SERVER_ID:()=>Vr,\u0275PLATFORM_WORKER_APP_ID:()=>tr,\u0275PLATFORM_WORKER_UI_ID:()=>vr,\u0275angular_packages_common_common_a:()=>g,\u0275angular_packages_common_common_b:()=>P,\u0275angular_packages_common_common_c:()=>xe,\u0275angular_packages_common_common_d:()=>be,\u0275angular_packages_common_common_e:()=>ni,\u0275angular_packages_common_common_f:()=>er,\u0275getDOM:()=>f,\u0275parseCookieValue:()=>at,\u0275setRootDomAdapter:()=>a});var o=d(7716);let l=null;function f(){return l}function a(O){l||(l=O)}class C{}const w=new o.InjectionToken("DocumentToken");let D=(()=>{class O{historyGo(k){throw new Error("Not implemented")}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:g,token:O,providedIn:"platform"}),O})();function g(){return(0,o.\u0275\u0275inject)(M)}const E=new o.InjectionToken("Location Initialized");let M=(()=>{class O extends D{constructor(k){super(),this._doc=k,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return f().getBaseHref(this._doc)}onPopState(k){const m=f().getGlobalEventTarget(this._doc,"window");return m.addEventListener("popstate",k,!1),()=>m.removeEventListener("popstate",k)}onHashChange(k){const m=f().getGlobalEventTarget(this._doc,"window");return m.addEventListener("hashchange",k,!1),()=>m.removeEventListener("hashchange",k)}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(k){this.location.pathname=k}pushState(k,m,v){S()?this._history.pushState(k,m,v):this.location.hash=v}replaceState(k,m,v){S()?this._history.replaceState(k,m,v):this.location.hash=v}forward(){this._history.forward()}back(){this._history.back()}historyGo(k=0){this._history.go(k)}getState(){return this._history.state}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275inject(w))},O.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:P,token:O,providedIn:"platform"}),O})();function S(){return!!window.history.pushState}function P(){return new M((0,o.\u0275\u0275inject)(w))}function B(O,ne){if(0==O.length)return ne;if(0==ne.length)return O;let k=0;return O.endsWith("/")&&k++,ne.startsWith("/")&&k++,2==k?O+ne.substring(1):1==k?O+ne:O+"/"+ne}function j(O){const ne=O.match(/#|\?|$/),k=ne&&ne.index||O.length;return O.slice(0,k-("/"===O[k-1]?1:0))+O.slice(k)}function se(O){return O&&"?"!==O[0]?"?"+O:O}let ce=(()=>{class O{historyGo(k){throw new Error("Not implemented")}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:be,token:O,providedIn:"root"}),O})();function be(O){const ne=(0,o.\u0275\u0275inject)(w).location;return new lt((0,o.\u0275\u0275inject)(D),ne&&ne.origin||"")}const Ue=new o.InjectionToken("appBaseHref");let lt=(()=>{class O extends ce{constructor(k,m){if(super(),this._platformLocation=k,this._removeListenerFns=[],null==m&&(m=this._platformLocation.getBaseHrefFromDOM()),null==m)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=m}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(k){this._removeListenerFns.push(this._platformLocation.onPopState(k),this._platformLocation.onHashChange(k))}getBaseHref(){return this._baseHref}prepareExternalUrl(k){return B(this._baseHref,k)}path(k=!1){const m=this._platformLocation.pathname+se(this._platformLocation.search),v=this._platformLocation.hash;return v&&k?`${m}${v}`:m}pushState(k,m,v,b){const U=this.prepareExternalUrl(v+se(b));this._platformLocation.pushState(k,m,U)}replaceState(k,m,v,b){const U=this.prepareExternalUrl(v+se(b));this._platformLocation.replaceState(k,m,U)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(k=0){var m,v;null===(v=(m=this._platformLocation).historyGo)||void 0===v||v.call(m,k)}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275inject(D),o.\u0275\u0275inject(Ue,8))},O.\u0275prov=o.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O})(),Je=(()=>{class O extends ce{constructor(k,m){super(),this._platformLocation=k,this._baseHref="",this._removeListenerFns=[],null!=m&&(this._baseHref=m)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(k){this._removeListenerFns.push(this._platformLocation.onPopState(k),this._platformLocation.onHashChange(k))}getBaseHref(){return this._baseHref}path(k=!1){let m=this._platformLocation.hash;return null==m&&(m="#"),m.length>0?m.substring(1):m}prepareExternalUrl(k){const m=B(this._baseHref,k);return m.length>0?"#"+m:m}pushState(k,m,v,b){let U=this.prepareExternalUrl(v+se(b));0==U.length&&(U=this._platformLocation.pathname),this._platformLocation.pushState(k,m,U)}replaceState(k,m,v,b){let U=this.prepareExternalUrl(v+se(b));0==U.length&&(U=this._platformLocation.pathname),this._platformLocation.replaceState(k,m,U)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(k=0){var m,v;null===(v=(m=this._platformLocation).historyGo)||void 0===v||v.call(m,k)}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275inject(D),o.\u0275\u0275inject(Ue,8))},O.\u0275prov=o.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O})(),Me=(()=>{class O{constructor(k,m){this._subject=new o.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=k;const v=this._platformStrategy.getBaseHref();this._platformLocation=m,this._baseHref=j(Ne(v)),this._platformStrategy.onPopState(b=>{this._subject.emit({url:this.path(!0),pop:!0,state:b.state,type:b.type})})}path(k=!1){return this.normalize(this._platformStrategy.path(k))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(k,m=""){return this.path()==this.normalize(k+se(m))}normalize(k){return O.stripTrailingSlash(function(O,ne){return O&&ne.startsWith(O)?ne.substring(O.length):ne}(this._baseHref,Ne(k)))}prepareExternalUrl(k){return k&&"/"!==k[0]&&(k="/"+k),this._platformStrategy.prepareExternalUrl(k)}go(k,m="",v=null){this._platformStrategy.pushState(v,"",k,m),this._notifyUrlChangeListeners(this.prepareExternalUrl(k+se(m)),v)}replaceState(k,m="",v=null){this._platformStrategy.replaceState(v,"",k,m),this._notifyUrlChangeListeners(this.prepareExternalUrl(k+se(m)),v)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(k=0){var m,v;null===(v=(m=this._platformStrategy).historyGo)||void 0===v||v.call(m,k)}onUrlChange(k){this._urlChangeListeners.push(k),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(m=>{this._notifyUrlChangeListeners(m.url,m.state)}))}_notifyUrlChangeListeners(k="",m){this._urlChangeListeners.forEach(v=>v(k,m))}subscribe(k,m,v){return this._subject.subscribe({next:k,error:m,complete:v})}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275inject(ce),o.\u0275\u0275inject(D))},O.normalizeQueryParams=se,O.joinWithSlash=B,O.stripTrailingSlash=j,O.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:xe,token:O,providedIn:"root"}),O})();function xe(){return new Me((0,o.\u0275\u0275inject)(ce),(0,o.\u0275\u0275inject)(D))}function Ne(O){return O.replace(/\/index.html$/,"")}const Ct={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],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"],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:[void 0,"\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:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var te=(()=>((te=te||{})[te.Decimal=0]="Decimal",te[te.Percent=1]="Percent",te[te.Currency=2]="Currency",te[te.Scientific=3]="Scientific",te))(),ge=(()=>((ge=ge||{})[ge.Zero=0]="Zero",ge[ge.One=1]="One",ge[ge.Two=2]="Two",ge[ge.Few=3]="Few",ge[ge.Many=4]="Many",ge[ge.Other=5]="Other",ge))(),X=(()=>((X=X||{})[X.Format=0]="Format",X[X.Standalone=1]="Standalone",X))(),le=(()=>((le=le||{})[le.Narrow=0]="Narrow",le[le.Abbreviated=1]="Abbreviated",le[le.Wide=2]="Wide",le[le.Short=3]="Short",le))(),Ae=(()=>((Ae=Ae||{})[Ae.Short=0]="Short",Ae[Ae.Medium=1]="Medium",Ae[Ae.Long=2]="Long",Ae[Ae.Full=3]="Full",Ae))(),Ce=(()=>((Ce=Ce||{})[Ce.Decimal=0]="Decimal",Ce[Ce.Group=1]="Group",Ce[Ce.List=2]="List",Ce[Ce.PercentSign=3]="PercentSign",Ce[Ce.PlusSign=4]="PlusSign",Ce[Ce.MinusSign=5]="MinusSign",Ce[Ce.Exponential=6]="Exponential",Ce[Ce.SuperscriptingExponent=7]="SuperscriptingExponent",Ce[Ce.PerMille=8]="PerMille",Ce[Ce.Infinity=9]="Infinity",Ce[Ce.NaN=10]="NaN",Ce[Ce.TimeSeparator=11]="TimeSeparator",Ce[Ce.CurrencyDecimal=12]="CurrencyDecimal",Ce[Ce.CurrencyGroup=13]="CurrencyGroup",Ce))(),$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 et(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.LocaleId]}function pt(O,ne,k){const m=(0,o.\u0275findLocaleData)(O),b=Ge([m[o.\u0275LocaleDataIndex.DayPeriodsFormat],m[o.\u0275LocaleDataIndex.DayPeriodsStandalone]],ne);return Ge(b,k)}function je(O,ne,k){const m=(0,o.\u0275findLocaleData)(O),b=Ge([m[o.\u0275LocaleDataIndex.DaysFormat],m[o.\u0275LocaleDataIndex.DaysStandalone]],ne);return Ge(b,k)}function tt(O,ne,k){const m=(0,o.\u0275findLocaleData)(O),b=Ge([m[o.\u0275LocaleDataIndex.MonthsFormat],m[o.\u0275LocaleDataIndex.MonthsStandalone]],ne);return Ge(b,k)}function ut(O,ne){return Ge((0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.Eras],ne)}function It(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.FirstDayOfWeek]}function Xe(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.WeekendRange]}function dt(O,ne){return Ge((0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.DateFormat],ne)}function $(O,ne){return Ge((0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.TimeFormat],ne)}function oe(O,ne){return Ge((0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.DateTimeFormat],ne)}function L(O,ne){const k=(0,o.\u0275findLocaleData)(O),m=k[o.\u0275LocaleDataIndex.NumberSymbols][ne];if(void 0===m){if(ne===Ce.CurrencyDecimal)return k[o.\u0275LocaleDataIndex.NumberSymbols][Ce.Decimal];if(ne===Ce.CurrencyGroup)return k[o.\u0275LocaleDataIndex.NumberSymbols][Ce.Group]}return m}function ue(O,ne){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.NumberFormats][ne]}function ae(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.CurrencySymbol]||null}function fe(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.CurrencyName]||null}function Fe(O){return(0,o.\u0275getLocaleCurrencyCode)(O)}const wt=o.\u0275getLocalePluralCase;function Ze(O){if(!O[o.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${O[o.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ze(O){const ne=(0,o.\u0275findLocaleData)(O);return Ze(ne),(ne[o.\u0275LocaleDataIndex.ExtraData][2]||[]).map(m=>"string"==typeof m?ft(m):[ft(m[0]),ft(m[1])])}function He(O,ne,k){const m=(0,o.\u0275findLocaleData)(O);Ze(m);const b=Ge([m[o.\u0275LocaleDataIndex.ExtraData][0],m[o.\u0275LocaleDataIndex.ExtraData][1]],ne)||[];return Ge(b,k)||[]}function q(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.Directionality]}function Ge(O,ne){for(let k=ne;k>-1;k--)if(void 0!==O[k])return O[k];throw new Error("Locale data API: locale data undefined")}function ft(O){const[ne,k]=O.split(":");return{hours:+ne,minutes:+k}}function vt(O,ne,k="en"){const m=function(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.Currencies]}(k)[O]||Ct[O]||[],v=m[1];return"narrow"===ne&&"string"==typeof v?v:m[0]||O}function x(O){let ne;const k=Ct[O];return k&&(ne=k[2]),"number"==typeof ne?ne:2}const F=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,R={},he=/((?:[^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 z=(()=>((z=z||{})[z.Short=0]="Short",z[z.ShortGMT=1]="ShortGMT",z[z.Long=2]="Long",z[z.Extended=3]="Extended",z))(),ie=(()=>((ie=ie||{})[ie.FullYear=0]="FullYear",ie[ie.Month=1]="Month",ie[ie.Date=2]="Date",ie[ie.Hours=3]="Hours",ie[ie.Minutes=4]="Minutes",ie[ie.Seconds=5]="Seconds",ie[ie.FractionalSeconds=6]="FractionalSeconds",ie[ie.Day=7]="Day",ie))(),Be=(()=>((Be=Be||{})[Be.DayPeriods=0]="DayPeriods",Be[Be.Days=1]="Days",Be[Be.Months=2]="Months",Be[Be.Eras=3]="Eras",Be))();function gt(O,ne,k,m){let v=function(O){if(dn(O))return O;if("number"==typeof O&&!isNaN(O))return new Date(O);if("string"==typeof O){if(O=O.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(O)){const[v,b=1,U=1]=O.split("-").map(Qe=>+Qe);return Et(v,b-1,U)}const k=parseFloat(O);if(!isNaN(O-k))return new Date(k);let m;if(m=O.match(F))return function(O){const ne=new Date(0);let k=0,m=0;const v=O[8]?ne.setUTCFullYear:ne.setFullYear,b=O[8]?ne.setUTCHours:ne.setHours;O[9]&&(k=Number(O[9]+O[10]),m=Number(O[9]+O[11])),v.call(ne,Number(O[1]),Number(O[2])-1,Number(O[3]));const U=Number(O[4]||0)-k,Qe=Number(O[5]||0)-m,St=Number(O[6]||0),Zt=Math.floor(1e3*parseFloat("0."+(O[7]||0)));return b.call(ne,U,Qe,St,Zt),ne}(m)}const ne=new Date(O);if(!dn(ne))throw new Error(`Unable to convert "${O}" into a date`);return ne}(O);ne=xt(k,ne)||ne;let Qe,U=[];for(;ne;){if(Qe=he.exec(ne),!Qe){U.push(ne);break}{U=U.concat(Qe.slice(1));const fn=U.pop();if(!fn)break;ne=fn}}let St=v.getTimezoneOffset();m&&(St=N(m,St),v=function(O,ne,k){const v=O.getTimezoneOffset();return function(O,ne){return(O=new Date(O.getTime())).setMinutes(O.getMinutes()+ne),O}(O,-1*(N(ne,v)-v))}(v,m));let Zt="";return U.forEach(fn=>{const rn=function(O){if(Q[O])return Q[O];let ne;switch(O){case"G":case"GG":case"GGG":ne=jt(Be.Eras,le.Abbreviated);break;case"GGGG":ne=jt(Be.Eras,le.Wide);break;case"GGGGG":ne=jt(Be.Eras,le.Narrow);break;case"y":ne=At(ie.FullYear,1,0,!1,!0);break;case"yy":ne=At(ie.FullYear,2,0,!0,!0);break;case"yyy":ne=At(ie.FullYear,3,0,!1,!0);break;case"yyyy":ne=At(ie.FullYear,4,0,!1,!0);break;case"Y":ne=Ee(1);break;case"YY":ne=Ee(2,!0);break;case"YYY":ne=Ee(3);break;case"YYYY":ne=Ee(4);break;case"M":case"L":ne=At(ie.Month,1,1);break;case"MM":case"LL":ne=At(ie.Month,2,1);break;case"MMM":ne=jt(Be.Months,le.Abbreviated);break;case"MMMM":ne=jt(Be.Months,le.Wide);break;case"MMMMM":ne=jt(Be.Months,le.Narrow);break;case"LLL":ne=jt(Be.Months,le.Abbreviated,X.Standalone);break;case"LLLL":ne=jt(Be.Months,le.Wide,X.Standalone);break;case"LLLLL":ne=jt(Be.Months,le.Narrow,X.Standalone);break;case"w":ne=De(1);break;case"ww":ne=De(2);break;case"W":ne=De(1,!0);break;case"d":ne=At(ie.Date,1);break;case"dd":ne=At(ie.Date,2);break;case"c":case"cc":ne=At(ie.Day,1);break;case"ccc":ne=jt(Be.Days,le.Abbreviated,X.Standalone);break;case"cccc":ne=jt(Be.Days,le.Wide,X.Standalone);break;case"ccccc":ne=jt(Be.Days,le.Narrow,X.Standalone);break;case"cccccc":ne=jt(Be.Days,le.Short,X.Standalone);break;case"E":case"EE":case"EEE":ne=jt(Be.Days,le.Abbreviated);break;case"EEEE":ne=jt(Be.Days,le.Wide);break;case"EEEEE":ne=jt(Be.Days,le.Narrow);break;case"EEEEEE":ne=jt(Be.Days,le.Short);break;case"a":case"aa":case"aaa":ne=jt(Be.DayPeriods,le.Abbreviated);break;case"aaaa":ne=jt(Be.DayPeriods,le.Wide);break;case"aaaaa":ne=jt(Be.DayPeriods,le.Narrow);break;case"b":case"bb":case"bbb":ne=jt(Be.DayPeriods,le.Abbreviated,X.Standalone,!0);break;case"bbbb":ne=jt(Be.DayPeriods,le.Wide,X.Standalone,!0);break;case"bbbbb":ne=jt(Be.DayPeriods,le.Narrow,X.Standalone,!0);break;case"B":case"BB":case"BBB":ne=jt(Be.DayPeriods,le.Abbreviated,X.Format,!0);break;case"BBBB":ne=jt(Be.DayPeriods,le.Wide,X.Format,!0);break;case"BBBBB":ne=jt(Be.DayPeriods,le.Narrow,X.Format,!0);break;case"h":ne=At(ie.Hours,1,-12);break;case"hh":ne=At(ie.Hours,2,-12);break;case"H":ne=At(ie.Hours,1);break;case"HH":ne=At(ie.Hours,2);break;case"m":ne=At(ie.Minutes,1);break;case"mm":ne=At(ie.Minutes,2);break;case"s":ne=At(ie.Seconds,1);break;case"ss":ne=At(ie.Seconds,2);break;case"S":ne=At(ie.FractionalSeconds,1);break;case"SS":ne=At(ie.FractionalSeconds,2);break;case"SSS":ne=At(ie.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ne=qe(z.Short);break;case"ZZZZZ":ne=qe(z.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ne=qe(z.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ne=qe(z.Long);break;default:return null}return Q[O]=ne,ne}(fn);Zt+=rn?rn(v,k,St):"''"===fn?"'":fn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Zt}function Et(O,ne,k){const m=new Date(0);return m.setFullYear(O,ne,k),m.setHours(0,0,0),m}function xt(O,ne){const k=et(O);if(R[k]=R[k]||{},R[k][ne])return R[k][ne];let m="";switch(ne){case"shortDate":m=dt(O,Ae.Short);break;case"mediumDate":m=dt(O,Ae.Medium);break;case"longDate":m=dt(O,Ae.Long);break;case"fullDate":m=dt(O,Ae.Full);break;case"shortTime":m=$(O,Ae.Short);break;case"mediumTime":m=$(O,Ae.Medium);break;case"longTime":m=$(O,Ae.Long);break;case"fullTime":m=$(O,Ae.Full);break;case"short":const v=xt(O,"shortTime"),b=xt(O,"shortDate");m=Nt(oe(O,Ae.Short),[v,b]);break;case"medium":const U=xt(O,"mediumTime"),Qe=xt(O,"mediumDate");m=Nt(oe(O,Ae.Medium),[U,Qe]);break;case"long":const St=xt(O,"longTime"),Zt=xt(O,"longDate");m=Nt(oe(O,Ae.Long),[St,Zt]);break;case"full":const fn=xt(O,"fullTime"),rn=xt(O,"fullDate");m=Nt(oe(O,Ae.Full),[fn,rn])}return m&&(R[k][ne]=m),m}function Nt(O,ne){return ne&&(O=O.replace(/\{([^}]+)}/g,function(k,m){return null!=ne&&m in ne?ne[m]:k})),O}function Ut(O,ne,k="-",m,v){let b="";(O<0||v&&O<=0)&&(v?O=1-O:(O=-O,b=k));let U=String(O);for(;U.length<ne;)U="0"+U;return m&&(U=U.substr(U.length-ne)),b+U}function At(O,ne,k=0,m=!1,v=!1){return function(b,U){let Qe=function(O,ne){switch(O){case ie.FullYear:return ne.getFullYear();case ie.Month:return ne.getMonth();case ie.Date:return ne.getDate();case ie.Hours:return ne.getHours();case ie.Minutes:return ne.getMinutes();case ie.Seconds:return ne.getSeconds();case ie.FractionalSeconds:return ne.getMilliseconds();case ie.Day:return ne.getDay();default:throw new Error(`Unknown DateType value "${O}".`)}}(O,b);if((k>0||Qe>-k)&&(Qe+=k),O===ie.Hours)0===Qe&&-12===k&&(Qe=12);else if(O===ie.FractionalSeconds)return function(O,ne){return Ut(O,3).substr(0,ne)}(Qe,ne);const St=L(U,Ce.MinusSign);return Ut(Qe,ne,St,m,v)}}function jt(O,ne,k=X.Format,m=!1){return function(v,b){return function(O,ne,k,m,v,b){switch(k){case Be.Months:return tt(ne,v,m)[O.getMonth()];case Be.Days:return je(ne,v,m)[O.getDay()];case Be.DayPeriods:const U=O.getHours(),Qe=O.getMinutes();if(b){const Zt=ze(ne),fn=He(ne,v,m),rn=Zt.findIndex(bn=>{if(Array.isArray(bn)){const[Tn,Ln]=bn,Ur=U>=Tn.hours&&Qe>=Tn.minutes,Kn=U<Ln.hours||U===Ln.hours&&Qe<Ln.minutes;if(Tn.hours<Ln.hours){if(Ur&&Kn)return!0}else if(Ur||Kn)return!0}else if(bn.hours===U&&bn.minutes===Qe)return!0;return!1});if(-1!==rn)return fn[rn]}return pt(ne,v,m)[U<12?0:1];case Be.Eras:return ut(ne,m)[O.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${k}`)}}(v,b,O,ne,k,m)}}function qe(O){return function(ne,k,m){const v=-1*m,b=L(k,Ce.MinusSign),U=v>0?Math.floor(v/60):Math.ceil(v/60);switch(O){case z.Short:return(v>=0?"+":"")+Ut(U,2,b)+Ut(Math.abs(v%60),2,b);case z.ShortGMT:return"GMT"+(v>=0?"+":"")+Ut(U,1,b);case z.Long:return"GMT"+(v>=0?"+":"")+Ut(U,2,b)+":"+Ut(Math.abs(v%60),2,b);case z.Extended:return 0===m?"Z":(v>=0?"+":"")+Ut(U,2,b)+":"+Ut(Math.abs(v%60),2,b);default:throw new Error(`Unknown zone width "${O}"`)}}}function W(O){return Et(O.getFullYear(),O.getMonth(),O.getDate()+(4-O.getDay()))}function De(O,ne=!1){return function(k,m){let v;if(ne){const b=new Date(k.getFullYear(),k.getMonth(),1).getDay()-1,U=k.getDate();v=1+Math.floor((U+b)/7)}else{const b=W(k),U=function(O){const ne=Et(O,0,1).getDay();return Et(O,0,1+(ne<=4?4:11)-ne)}(b.getFullYear()),Qe=b.getTime()-U.getTime();v=1+Math.round(Qe/6048e5)}return Ut(v,O,L(m,Ce.MinusSign))}}function Ee(O,ne=!1){return function(k,m){return Ut(W(k).getFullYear(),O,L(m,Ce.MinusSign),ne)}}const Q={};function N(O,ne){O=O.replace(/:/g,"");const k=Date.parse("Jan 01, 1970 00:00:00 "+O)/6e4;return isNaN(k)?ne:k}function dn(O){return O instanceof Date&&!isNaN(O.valueOf())}const cn=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ht(O,ne,k,m,v,b,U=!1){let Qe="",St=!1;if(isFinite(O)){let Zt=function(O){let m,v,b,U,Qe,ne=Math.abs(O)+"",k=0;for((v=ne.indexOf("."))>-1&&(ne=ne.replace(".","")),(b=ne.search(/e/i))>0?(v<0&&(v=b),v+=+ne.slice(b+1),ne=ne.substring(0,b)):v<0&&(v=ne.length),b=0;"0"===ne.charAt(b);b++);if(b===(Qe=ne.length))m=[0],v=1;else{for(Qe--;"0"===ne.charAt(Qe);)Qe--;for(v-=b,m=[],U=0;b<=Qe;b++,U++)m[U]=Number(ne.charAt(b))}return v>22&&(m=m.splice(0,21),k=v-1,v=1),{digits:m,exponent:k,integerLen:v}}(O);U&&(Zt=function(O){if(0===O.digits[0])return O;const ne=O.digits.length-O.integerLen;return O.exponent?O.exponent+=2:(0===ne?O.digits.push(0,0):1===ne&&O.digits.push(0),O.integerLen+=2),O}(Zt));let fn=ne.minInt,rn=ne.minFrac,bn=ne.maxFrac;if(b){const Ii=b.match(cn);if(null===Ii)throw new Error(`${b} is not a valid digit info`);const Yt=Ii[1],io=Ii[3],_o=Ii[5];null!=Yt&&(fn=Tt(Yt)),null!=io&&(rn=Tt(io)),null!=_o?bn=Tt(_o):null!=io&&rn>bn&&(bn=rn)}!function(O,ne,k){if(ne>k)throw new Error(`The minimum number of digits after fraction (${ne}) is higher than the maximum (${k}).`);let m=O.digits,v=m.length-O.integerLen;const b=Math.min(Math.max(ne,v),k);let U=b+O.integerLen,Qe=m[U];if(U>0){m.splice(Math.max(O.integerLen,U));for(let rn=U;rn<m.length;rn++)m[rn]=0}else{v=Math.max(0,v),O.integerLen=1,m.length=Math.max(1,U=b+1),m[0]=0;for(let rn=1;rn<U;rn++)m[rn]=0}if(Qe>=5)if(U-1<0){for(let rn=0;rn>U;rn--)m.unshift(0),O.integerLen++;m.unshift(1),O.integerLen++}else m[U-1]++;for(;v<Math.max(0,b);v++)m.push(0);let St=0!==b;const Zt=ne+O.integerLen,fn=m.reduceRight(function(rn,bn,Tn,Ln){return Ln[Tn]=(bn+=rn)<10?bn:bn-10,St&&(0===Ln[Tn]&&Tn>=Zt?Ln.pop():St=!1),bn>=10?1:0},0);fn&&(m.unshift(fn),O.integerLen++)}(Zt,rn,bn);let Tn=Zt.digits,Ln=Zt.integerLen;const Ur=Zt.exponent;let Kn=[];for(St=Tn.every(Ii=>!Ii);Ln<fn;Ln++)Tn.unshift(0);for(;Ln<0;Ln++)Tn.unshift(0);Ln>0?Kn=Tn.splice(Ln,Tn.length):(Kn=Tn,Tn=[0]);const Bi=[];for(Tn.length>=ne.lgSize&&Bi.unshift(Tn.splice(-ne.lgSize,Tn.length).join(""));Tn.length>ne.gSize;)Bi.unshift(Tn.splice(-ne.gSize,Tn.length).join(""));Tn.length&&Bi.unshift(Tn.join("")),Qe=Bi.join(L(k,m)),Kn.length&&(Qe+=L(k,v)+Kn.join("")),Ur&&(Qe+=L(k,Ce.Exponential)+"+"+Ur)}else Qe=L(k,Ce.Infinity);return Qe=O<0&&!St?ne.negPre+Qe+ne.negSuf:ne.posPre+Qe+ne.posSuf,Qe}function Rt(O,ne,k,m,v){const U=Y(ue(ne,te.Currency),L(ne,Ce.MinusSign));return U.minFrac=x(m),U.maxFrac=U.minFrac,ht(O,U,ne,Ce.CurrencyGroup,Ce.CurrencyDecimal,v).replace("\xa4",k).replace("\xa4","").trim()}function ee(O,ne,k){return ht(O,Y(ue(ne,te.Percent),L(ne,Ce.MinusSign)),ne,Ce.Group,Ce.Decimal,k,!0).replace(new RegExp("%","g"),L(ne,Ce.PercentSign))}function ve(O,ne,k){return ht(O,Y(ue(ne,te.Decimal),L(ne,Ce.MinusSign)),ne,Ce.Group,Ce.Decimal,k)}function Y(O,ne="-"){const k={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},m=O.split(";"),v=m[0],b=m[1],U=-1!==v.indexOf(".")?v.split("."):[v.substring(0,v.lastIndexOf("0")+1),v.substring(v.lastIndexOf("0")+1)],Qe=U[0],St=U[1]||"";k.posPre=Qe.substr(0,Qe.indexOf("#"));for(let fn=0;fn<St.length;fn++){const rn=St.charAt(fn);"0"===rn?k.minFrac=k.maxFrac=fn+1:"#"===rn?k.maxFrac=fn+1:k.posSuf+=rn}const Zt=Qe.split(",");if(k.gSize=Zt[1]?Zt[1].length:0,k.lgSize=Zt[2]||Zt[1]?(Zt[2]||Zt[1]).length:0,b){const fn=v.length-k.posPre.length-k.posSuf.length,rn=b.indexOf("#");k.negPre=b.substr(0,rn).replace(/'/g,""),k.negSuf=b.substr(rn+fn).replace(/'/g,"")}else k.negPre=ne+k.posPre,k.negSuf=k.posSuf;return k}function Tt(O){const ne=parseInt(O);if(isNaN(ne))throw new Error("Invalid integer literal when parsing "+O);return ne}class we{}function Ie(O,ne,k,m){let v=`=${O}`;if(ne.indexOf(v)>-1||(v=k.getPluralCategory(O,m),ne.indexOf(v)>-1))return v;if(ne.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${O}"`)}let pe=(()=>{class O extends we{constructor(k){super(),this.locale=k}getPluralCategory(k,m){switch(wt(m||this.locale)(k)){case ge.Zero:return"zero";case ge.One:return"one";case ge.Two:return"two";case ge.Few:return"few";case ge.Many:return"many";default:return"other"}}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275inject(o.LOCALE_ID))},O.\u0275prov=o.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O})();function Ve(O,ne,k){return(0,o.\u0275registerLocaleData)(O,ne,k)}function at(O,ne){ne=encodeURIComponent(ne);for(const k of O.split(";")){const m=k.indexOf("="),[v,b]=-1==m?[k,""]:[k.slice(0,m),k.slice(m+1)];if(v.trim()===ne)return decodeURIComponent(b)}return null}let Ft=(()=>{class O{constructor(k,m,v,b){this._iterableDiffers=k,this._keyValueDiffers=m,this._ngEl=v,this._renderer=b,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(k){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof k?k.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(k){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof k?k.split(/\s+/):k,this._rawClass&&((0,o.\u0275isListLikeIterable)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const k=this._iterableDiffer.diff(this._rawClass);k&&this._applyIterableChanges(k)}else if(this._keyValueDiffer){const k=this._keyValueDiffer.diff(this._rawClass);k&&this._applyKeyValueChanges(k)}}_applyKeyValueChanges(k){k.forEachAddedItem(m=>this._toggleClass(m.key,m.currentValue)),k.forEachChangedItem(m=>this._toggleClass(m.key,m.currentValue)),k.forEachRemovedItem(m=>{m.previousValue&&this._toggleClass(m.key,!1)})}_applyIterableChanges(k){k.forEachAddedItem(m=>{if("string"!=typeof m.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,o.\u0275stringify)(m.item)}`);this._toggleClass(m.item,!0)}),k.forEachRemovedItem(m=>this._toggleClass(m.item,!1))}_applyClasses(k){k&&(Array.isArray(k)||k instanceof Set?k.forEach(m=>this._toggleClass(m,!0)):Object.keys(k).forEach(m=>this._toggleClass(m,!!k[m])))}_removeClasses(k){k&&(Array.isArray(k)||k instanceof Set?k.forEach(m=>this._toggleClass(m,!1)):Object.keys(k).forEach(m=>this._toggleClass(m,!1)))}_toggleClass(k,m){(k=k.trim())&&k.split(/\s+/g).forEach(v=>{m?this._renderer.addClass(this._ngEl.nativeElement,v):this._renderer.removeClass(this._ngEl.nativeElement,v)})}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.IterableDiffers),o.\u0275\u0275directiveInject(o.KeyValueDiffers),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.Renderer2))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),O})(),$t=(()=>{class O{constructor(k){this._viewContainerRef=k,this._componentRef=null,this._moduleRef=null}ngOnChanges(k){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const m=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(k.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const U=m.get(o.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(U.injector)}else this._moduleRef=null;const b=(this._moduleRef?this._moduleRef.componentFactoryResolver:m.get(o.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(b,this._viewContainerRef.length,m,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[o.\u0275\u0275NgOnChangesFeature]}),O})();class qt{constructor(ne,k,m,v){this.$implicit=ne,this.ngForOf=k,this.index=m,this.count=v}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 Wt=(()=>{class O{constructor(k,m,v){this._viewContainer=k,this._template=m,this._differs=v,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(k){this._ngForOf=k,this._ngForOfDirty=!0}set ngForTrackBy(k){this._trackByFn=k}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(k){k&&(this._template=k)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const k=this._ngForOf;if(!this._differ&&k)try{this._differ=this._differs.find(k).create(this.ngForTrackBy)}catch(m){throw new Error(`Cannot find a differ supporting object '${k}' of type '${function(O){return O.name||typeof O}(k)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const k=this._differ.diff(this._ngForOf);k&&this._applyChanges(k)}}_applyChanges(k){const m=[];k.forEachOperation((v,b,U)=>{if(null==v.previousIndex){const Qe=this._viewContainer.createEmbeddedView(this._template,new qt(null,this._ngForOf,-1,-1),null===U?void 0:U),St=new Mn(v,Qe);m.push(St)}else if(null==U)this._viewContainer.remove(null===b?void 0:b);else if(null!==b){const Qe=this._viewContainer.get(b);this._viewContainer.move(Qe,U);const St=new Mn(v,Qe);m.push(St)}});for(let v=0;v<m.length;v++)this._perViewChange(m[v].view,m[v].record);for(let v=0,b=this._viewContainer.length;v<b;v++){const U=this._viewContainer.get(v);U.context.index=v,U.context.count=b,U.context.ngForOf=this._ngForOf}k.forEachIdentityChange(v=>{this._viewContainer.get(v.currentIndex).context.$implicit=v.item})}_perViewChange(k,m){k.context.$implicit=m.item}static ngTemplateContextGuard(k,m){return!0}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(o.IterableDiffers))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),O})();class Mn{constructor(ne,k){this.record=ne,this.view=k}}let bi=(()=>{class O{constructor(k,m){this._viewContainer=k,this._context=new li,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=m}set ngIf(k){this._context.$implicit=this._context.ngIf=k,this._updateView()}set ngIfThen(k){qn("ngIfThen",k),this._thenTemplateRef=k,this._thenViewRef=null,this._updateView()}set ngIfElse(k){qn("ngIfElse",k),this._elseTemplateRef=k,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(k,m){return!0}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(o.TemplateRef))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),O})();class li{constructor(){this.$implicit=null,this.ngIf=null}}function qn(O,ne){if(ne&&!ne.createEmbeddedView)throw new Error(`${O} must be a TemplateRef, but received '${(0,o.\u0275stringify)(ne)}'.`)}class _i{constructor(ne,k){this._viewContainerRef=ne,this._templateRef=k,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ne){ne&&!this._created?this.create():!ne&&this._created&&this.destroy()}}let ei=(()=>{class O{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(k){this._ngSwitch=k,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(k){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(k)}_matchCase(k){const m=k==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||m,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),m}_updateDefaultCases(k){if(this._defaultViews&&k!==this._defaultUsed){this._defaultUsed=k;for(let m=0;m<this._defaultViews.length;m++)this._defaultViews[m].enforceState(k)}}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),O})(),xn=(()=>{class O{constructor(k,m,v){this.ngSwitch=v,v._addCase(),this._view=new _i(k,m)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(ei,9))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),O})(),Xi=(()=>{class O{constructor(k,m,v){v._addDefault(new _i(k,m))}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(ei,9))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngSwitchDefault",""]]}),O})(),Cn=(()=>{class O{constructor(k){this._localization=k,this._caseViews={}}set ngPlural(k){this._switchValue=k,this._updateView()}addCase(k,m){this._caseViews[k]=m}_updateView(){this._clearViews();const k=Object.keys(this._caseViews),m=Ie(this._switchValue,k,this._localization);this._activateView(this._caseViews[m])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(k){k&&(this._activeView=k,this._activeView.create())}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(we))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),O})(),Ci=(()=>{class O{constructor(k,m,v,b){this.value=k;const U=!isNaN(Number(k));b.addCase(U?`=${k}`:k,new _i(v,m))}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275injectAttribute("ngPluralCase"),o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(Cn,1))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngPluralCase",""]]}),O})(),ci=(()=>{class O{constructor(k,m,v){this._ngEl=k,this._differs=m,this._renderer=v,this._ngStyle=null,this._differ=null}set ngStyle(k){this._ngStyle=k,!this._differ&&k&&(this._differ=this._differs.find(k).create())}ngDoCheck(){if(this._differ){const k=this._differ.diff(this._ngStyle);k&&this._applyChanges(k)}}_setStyle(k,m){const[v,b]=k.split(".");null!=(m=null!=m&&b?`${m}${b}`:m)?this._renderer.setStyle(this._ngEl.nativeElement,v,m):this._renderer.removeStyle(this._ngEl.nativeElement,v)}_applyChanges(k){k.forEachRemovedItem(m=>this._setStyle(m.key,null)),k.forEachAddedItem(m=>this._setStyle(m.key,m.currentValue)),k.forEachChangedItem(m=>this._setStyle(m.key,m.currentValue))}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.KeyValueDiffers),o.\u0275\u0275directiveInject(o.Renderer2))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),O})(),ui=(()=>{class O{constructor(k){this._viewContainerRef=k,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(k){if(k.ngTemplateOutlet){const m=this._viewContainerRef;this._viewRef&&m.remove(m.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?m.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&k.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[o.\u0275\u0275NgOnChangesFeature]}),O})();const ni=[Ft,$t,Wt,bi,ui,ci,ei,xn,Xi,Cn,Ci];function Un(O,ne){return Error(`InvalidPipeArgument: '${ne}' for pipe '${(0,o.\u0275stringify)(O)}'`)}class kr{createSubscription(ne,k){return ne.subscribe({next:k,error:m=>{throw m}})}dispose(ne){ne.unsubscribe()}onDestroy(ne){ne.unsubscribe()}}class mr{createSubscription(ne,k){return ne.then(k,m=>{throw m})}dispose(ne){}onDestroy(ne){}}const qr=new mr,gr=new kr;let Fr=(()=>{class O{constructor(k){this._ref=k,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(k){return this._obj?k!==this._obj?(this._dispose(),this.transform(k)):this._latestValue:(k&&this._subscribe(k),this._latestValue)}_subscribe(k){this._obj=k,this._strategy=this._selectStrategy(k),this._subscription=this._strategy.createSubscription(k,m=>this._updateLatestValue(k,m))}_selectStrategy(k){if((0,o.\u0275isPromise)(k))return qr;if((0,o.\u0275isSubscribable)(k))return gr;throw Un(O,k)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(k,m){k===this._obj&&(this._latestValue=m,this._ref.markForCheck())}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"async",type:O,pure:!1}),O})(),Nr=(()=>{class O{transform(k){if(null==k)return null;if("string"!=typeof k)throw Un(O,k);return k.toLowerCase()}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"lowercase",type:O,pure:!0}),O})();const eo=/(?:[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 to=(()=>{class O{transform(k){if(null==k)return null;if("string"!=typeof k)throw Un(O,k);return k.replace(eo,m=>m[0].toUpperCase()+m.substr(1).toLowerCase())}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"titlecase",type:O,pure:!0}),O})(),Di=(()=>{class O{transform(k){if(null==k)return null;if("string"!=typeof k)throw Un(O,k);return k.toUpperCase()}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"uppercase",type:O,pure:!0}),O})(),po=(()=>{class O{constructor(k){this.locale=k}transform(k,m="mediumDate",v,b){if(null==k||""===k||k!=k)return null;try{return gt(k,m,b||this.locale,v)}catch(U){throw Un(O,U.message)}}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.LOCALE_ID,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"date",type:O,pure:!0}),O})();const ii=/#/g;let Ti=(()=>{class O{constructor(k){this._localization=k}transform(k,m,v){if(null==k)return"";if("object"!=typeof m||null===m)throw Un(O,m);return m[Ie(k,Object.keys(m),this._localization,v)].replace(ii,k.toString())}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(we,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"i18nPlural",type:O,pure:!0}),O})(),mo=(()=>{class O{transform(k,m){if(null==k)return"";if("object"!=typeof m||"string"!=typeof k)throw Un(O,m);return m.hasOwnProperty(k)?m[k]:m.hasOwnProperty("other")?m.other:""}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"i18nSelect",type:O,pure:!0}),O})(),ko=(()=>{class O{transform(k){return JSON.stringify(k,null,2)}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"json",type:O,pure:!1}),O})(),Lr=(()=>{class O{constructor(k){this.differs=k,this.keyValues=[],this.compareFn=jr}transform(k,m=jr){if(!k||!(k instanceof Map)&&"object"!=typeof k)return null;this.differ||(this.differ=this.differs.find(k).create());const v=this.differ.diff(k),b=m!==this.compareFn;return v&&(this.keyValues=[],v.forEachItem(U=>{this.keyValues.push(function(O,ne){return{key:O,value:ne}}(U.key,U.currentValue))})),(v||b)&&(this.keyValues.sort(m),this.compareFn=m),this.keyValues}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.KeyValueDiffers,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"keyvalue",type:O,pure:!1}),O})();function jr(O,ne){const k=O.key,m=ne.key;if(k===m)return 0;if(void 0===k)return 1;if(void 0===m)return-1;if(null===k)return 1;if(null===m)return-1;if("string"==typeof k&&"string"==typeof m)return k<m?-1:1;if("number"==typeof k&&"number"==typeof m)return k-m;if("boolean"==typeof k&&"boolean"==typeof m)return k<m?-1:1;const v=String(k),b=String(m);return v==b?0:v<b?-1:1}let wi=(()=>{class O{constructor(k){this._locale=k}transform(k,m,v){if(!qi(k))return null;v=v||this._locale;try{return ve(yr(k),v,m)}catch(b){throw Un(O,b.message)}}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.LOCALE_ID,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"number",type:O,pure:!0}),O})(),Li=(()=>{class O{constructor(k){this._locale=k}transform(k,m,v){if(!qi(k))return null;v=v||this._locale;try{return ee(yr(k),v,m)}catch(b){throw Un(O,b.message)}}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.LOCALE_ID,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"percent",type:O,pure:!0}),O})(),Br=(()=>{class O{constructor(k,m="USD"){this._locale=k,this._defaultCurrencyCode=m}transform(k,m=this._defaultCurrencyCode,v="symbol",b,U){if(!qi(k))return null;U=U||this._locale,"boolean"==typeof v&&(v=v?"symbol":"code");let Qe=m||this._defaultCurrencyCode;"code"!==v&&(Qe="symbol"===v||"symbol-narrow"===v?vt(Qe,"symbol"===v?"wide":"narrow",U):v);try{return Rt(yr(k),U,Qe,m,b)}catch(St){throw Un(O,St.message)}}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.LOCALE_ID,16),o.\u0275\u0275directiveInject(o.DEFAULT_CURRENCY_CODE,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"currency",type:O,pure:!0}),O})();function qi(O){return!(null==O||""===O||O!=O)}function yr(O){if("string"==typeof O&&!isNaN(Number(O)-parseFloat(O)))return Number(O);if("number"!=typeof O)throw new Error(`${O} is not a number`);return O}let yi=(()=>{class O{transform(k,m,v){if(null==k)return null;if(!this.supports(k))throw Un(O,k);return k.slice(m,v)}supports(k){return"string"==typeof k||Array.isArray(k)}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"slice",type:O,pure:!1}),O})();const er=[Fr,Di,Nr,ko,yi,wi,Li,to,Br,po,Ti,mo,Lr];let Mi=(()=>{class O{}return O.\u0275fac=function(k){return new(k||O)},O.\u0275mod=o.\u0275\u0275defineNgModule({type:O}),O.\u0275inj=o.\u0275\u0275defineInjector({providers:[{provide:we,useClass:pe}]}),O})();const ji="browser",Vr="server",tr="browserWorkerApp",vr="browserWorkerUi";function br(O){return O===ji}function Hr(O){return O===Vr}function Si(O){return O===tr}function $r(O){return O===vr}const Rn=new o.Version("12.2.13");let Cr=(()=>{class O{}return O.\u0275prov=(0,o.\u0275\u0275defineInjectable)({token:O,providedIn:"root",factory:()=>new no((0,o.\u0275\u0275inject)(w),window)}),O})();class no{constructor(ne,k){this.document=ne,this.window=k,this.offset=()=>[0,0]}setOffset(ne){this.offset=Array.isArray(ne)?()=>ne:ne}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ne){this.supportsScrolling()&&this.window.scrollTo(ne[0],ne[1])}scrollToAnchor(ne){if(!this.supportsScrolling())return;const k=function(O,ne){const k=O.getElementById(ne)||O.getElementsByName(ne)[0];if(k)return k;if("function"==typeof O.createTreeWalker&&O.body&&(O.body.createShadowRoot||O.body.attachShadow)){const m=O.createTreeWalker(O.body,NodeFilter.SHOW_ELEMENT);let v=m.currentNode;for(;v;){const b=v.shadowRoot;if(b){const U=b.getElementById(ne)||b.querySelector(`[name="${ne}"]`);if(U)return U}v=m.nextNode()}}return null}(this.document,ne);k&&(this.scrollToElement(k),this.attemptFocus(k))}setHistoryScrollRestoration(ne){if(this.supportScrollRestoration()){const k=this.window.history;k&&k.scrollRestoration&&(k.scrollRestoration=ne)}}scrollToElement(ne){const k=ne.getBoundingClientRect(),m=k.left+this.window.pageXOffset,v=k.top+this.window.pageYOffset,b=this.offset();this.window.scrollTo(m-b[0],v-b[1])}attemptFocus(ne){return ne.focus(),this.document.activeElement===ne}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ne=Er(this.window.history)||Er(Object.getPrototypeOf(this.window.history));return!(!ne||!ne.writable&&!ne.set)}catch(ne){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(ne){return!1}}}function Er(O){return Object.getOwnPropertyDescriptor(O,"scrollRestoration")}class Tr{setOffset(ne){}getScrollPosition(){return[0,0]}scrollToPosition(ne){}scrollToAnchor(ne){}setHistoryScrollRestoration(ne){}}class go{}},6820:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{HTTP_INTERCEPTORS:()=>pt,HttpBackend:()=>E,HttpClient:()=>$e,HttpClientJsonpModule:()=>vt,HttpClientModule:()=>ft,HttpClientXsrfModule:()=>Ge,HttpContext:()=>lt,HttpContextToken:()=>Ue,HttpErrorResponse:()=>Ae,HttpEventType:()=>te,HttpHandler:()=>g,HttpHeaderResponse:()=>X,HttpHeaders:()=>M,HttpParams:()=>be,HttpRequest:()=>Ct,HttpResponse:()=>le,HttpResponseBase:()=>ge,HttpUrlEncodingCodec:()=>S,HttpXhrBackend:()=>ae,HttpXsrfTokenExtractor:()=>st,JsonpClientBackend:()=>$,JsonpInterceptor:()=>oe,XhrFactory:()=>Ye,\u0275HttpInterceptingHandler:()=>ze,\u0275angular_packages_common_http_http_a:()=>je,\u0275angular_packages_common_http_http_b:()=>dt,\u0275angular_packages_common_http_http_c:()=>q,\u0275angular_packages_common_http_http_d:()=>fe,\u0275angular_packages_common_http_http_e:()=>Fe,\u0275angular_packages_common_http_http_f:()=>wt,\u0275angular_packages_common_http_http_g:()=>Ze});var o=d(8583),l=d(7716),f=d(5917),_=d(9897),a=d(9773),w=d(5435),D=d(8002);class g{}class E{}class M{constructor(F){this.normalizedNames=new Map,this.lazyUpdate=null,F?this.lazyInit="string"==typeof F?()=>{this.headers=new Map,F.split("\n").forEach(R=>{const he=R.indexOf(":");if(he>0){const z=R.slice(0,he),ie=z.toLowerCase(),Be=R.slice(he+1).trim();this.maybeSetNormalizedName(z,ie),this.headers.has(ie)?this.headers.get(ie).push(Be):this.headers.set(ie,[Be])}})}:()=>{this.headers=new Map,Object.keys(F).forEach(R=>{let he=F[R];const z=R.toLowerCase();"string"==typeof he&&(he=[he]),he.length>0&&(this.headers.set(z,he),this.maybeSetNormalizedName(R,z))})}:this.headers=new Map}has(F){return this.init(),this.headers.has(F.toLowerCase())}get(F){this.init();const R=this.headers.get(F.toLowerCase());return R&&R.length>0?R[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(F){return this.init(),this.headers.get(F.toLowerCase())||null}append(F,R){return this.clone({name:F,value:R,op:"a"})}set(F,R){return this.clone({name:F,value:R,op:"s"})}delete(F,R){return this.clone({name:F,value:R,op:"d"})}maybeSetNormalizedName(F,R){this.normalizedNames.has(R)||this.normalizedNames.set(R,F)}init(){this.lazyInit&&(this.lazyInit instanceof M?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(F=>this.applyUpdate(F)),this.lazyUpdate=null))}copyFrom(F){F.init(),Array.from(F.headers.keys()).forEach(R=>{this.headers.set(R,F.headers.get(R)),this.normalizedNames.set(R,F.normalizedNames.get(R))})}clone(F){const R=new M;return R.lazyInit=this.lazyInit&&this.lazyInit instanceof M?this.lazyInit:this,R.lazyUpdate=(this.lazyUpdate||[]).concat([F]),R}applyUpdate(F){const R=F.name.toLowerCase();switch(F.op){case"a":case"s":let he=F.value;if("string"==typeof he&&(he=[he]),0===he.length)return;this.maybeSetNormalizedName(F.name,R);const z=("a"===F.op?this.headers.get(R):void 0)||[];z.push(...he),this.headers.set(R,z);break;case"d":const ie=F.value;if(ie){let Be=this.headers.get(R);if(!Be)return;Be=Be.filter(gt=>-1===ie.indexOf(gt)),0===Be.length?(this.headers.delete(R),this.normalizedNames.delete(R)):this.headers.set(R,Be)}else this.headers.delete(R),this.normalizedNames.delete(R)}}forEach(F){this.init(),Array.from(this.normalizedNames.keys()).forEach(R=>F(this.normalizedNames.get(R),this.headers.get(R)))}}class S{encodeKey(F){return se(F)}encodeValue(F){return se(F)}decodeKey(F){return decodeURIComponent(F)}decodeValue(F){return decodeURIComponent(F)}}const B=/%(\d[a-f0-9])/gi,j={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function se(x){return encodeURIComponent(x).replace(B,(F,R)=>{var he;return null!==(he=j[R])&&void 0!==he?he:F})}function ce(x){return`${x}`}class be{constructor(F={}){if(this.updates=null,this.cloneFrom=null,this.encoder=F.encoder||new S,F.fromString){if(F.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(x,F){const R=new Map;return x.length>0&&x.replace(/^\?/,"").split("&").forEach(z=>{const ie=z.indexOf("="),[Be,gt]=-1==ie?[F.decodeKey(z),""]:[F.decodeKey(z.slice(0,ie)),F.decodeValue(z.slice(ie+1))],Et=R.get(Be)||[];Et.push(gt),R.set(Be,Et)}),R}(F.fromString,this.encoder)}else F.fromObject?(this.map=new Map,Object.keys(F.fromObject).forEach(R=>{const he=F.fromObject[R];this.map.set(R,Array.isArray(he)?he:[he])})):this.map=null}has(F){return this.init(),this.map.has(F)}get(F){this.init();const R=this.map.get(F);return R?R[0]:null}getAll(F){return this.init(),this.map.get(F)||null}keys(){return this.init(),Array.from(this.map.keys())}append(F,R){return this.clone({param:F,value:R,op:"a"})}appendAll(F){const R=[];return Object.keys(F).forEach(he=>{const z=F[he];Array.isArray(z)?z.forEach(ie=>{R.push({param:he,value:ie,op:"a"})}):R.push({param:he,value:z,op:"a"})}),this.clone(R)}set(F,R){return this.clone({param:F,value:R,op:"s"})}delete(F,R){return this.clone({param:F,value:R,op:"d"})}toString(){return this.init(),this.keys().map(F=>{const R=this.encoder.encodeKey(F);return this.map.get(F).map(he=>R+"="+this.encoder.encodeValue(he)).join("&")}).filter(F=>""!==F).join("&")}clone(F){const R=new be({encoder:this.encoder});return R.cloneFrom=this.cloneFrom||this,R.updates=(this.updates||[]).concat(F),R}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(F=>this.map.set(F,this.cloneFrom.map.get(F))),this.updates.forEach(F=>{switch(F.op){case"a":case"s":const R=("a"===F.op?this.map.get(F.param):void 0)||[];R.push(ce(F.value)),this.map.set(F.param,R);break;case"d":if(void 0===F.value){this.map.delete(F.param);break}{let he=this.map.get(F.param)||[];const z=he.indexOf(ce(F.value));-1!==z&&he.splice(z,1),he.length>0?this.map.set(F.param,he):this.map.delete(F.param)}}}),this.cloneFrom=this.updates=null)}}class Ue{constructor(F){this.defaultValue=F}}class lt{constructor(){this.map=new Map}set(F,R){return this.map.set(F,R),this}get(F){return this.map.has(F)||this.map.set(F,F.defaultValue()),this.map.get(F)}delete(F){return this.map.delete(F),this}keys(){return this.map.keys()}}function Me(x){return"undefined"!=typeof ArrayBuffer&&x instanceof ArrayBuffer}function xe(x){return"undefined"!=typeof Blob&&x instanceof Blob}function Pe(x){return"undefined"!=typeof FormData&&x instanceof FormData}class Ct{constructor(F,R,he,z){let ie;if(this.url=R,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=F.toUpperCase(),function(x){switch(x){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||z?(this.body=void 0!==he?he:null,ie=z):ie=he,ie&&(this.reportProgress=!!ie.reportProgress,this.withCredentials=!!ie.withCredentials,ie.responseType&&(this.responseType=ie.responseType),ie.headers&&(this.headers=ie.headers),ie.context&&(this.context=ie.context),ie.params&&(this.params=ie.params)),this.headers||(this.headers=new M),this.context||(this.context=new lt),this.params){const Be=this.params.toString();if(0===Be.length)this.urlWithParams=R;else{const gt=R.indexOf("?");this.urlWithParams=R+(-1===gt?"?":gt<R.length-1?"&":"")+Be}}else this.params=new be,this.urlWithParams=R}serializeBody(){return null===this.body?null:Me(this.body)||xe(this.body)||Pe(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof be?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||Pe(this.body)?null:xe(this.body)?this.body.type||null:Me(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof be?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(F={}){var R;const he=F.method||this.method,z=F.url||this.url,ie=F.responseType||this.responseType,Be=void 0!==F.body?F.body:this.body,gt=void 0!==F.withCredentials?F.withCredentials:this.withCredentials,Et=void 0!==F.reportProgress?F.reportProgress:this.reportProgress;let xt=F.headers||this.headers,Nt=F.params||this.params;const Ut=null!==(R=F.context)&&void 0!==R?R:this.context;return void 0!==F.setHeaders&&(xt=Object.keys(F.setHeaders).reduce((Qt,At)=>Qt.set(At,F.setHeaders[At]),xt)),F.setParams&&(Nt=Object.keys(F.setParams).reduce((Qt,At)=>Qt.set(At,F.setParams[At]),Nt)),new Ct(he,z,Be,{params:Nt,headers:xt,context:Ut,reportProgress:Et,responseType:ie,withCredentials:gt})}}var te=(()=>((te=te||{})[te.Sent=0]="Sent",te[te.UploadProgress=1]="UploadProgress",te[te.ResponseHeader=2]="ResponseHeader",te[te.DownloadProgress=3]="DownloadProgress",te[te.Response=4]="Response",te[te.User=5]="User",te))();class ge{constructor(F,R=200,he="OK"){this.headers=F.headers||new M,this.status=void 0!==F.status?F.status:R,this.statusText=F.statusText||he,this.url=F.url||null,this.ok=this.status>=200&&this.status<300}}class X extends ge{constructor(F={}){super(F),this.type=te.ResponseHeader}clone(F={}){return new X({headers:F.headers||this.headers,status:void 0!==F.status?F.status:this.status,statusText:F.statusText||this.statusText,url:F.url||this.url||void 0})}}class le extends ge{constructor(F={}){super(F),this.type=te.Response,this.body=void 0!==F.body?F.body:null}clone(F={}){return new le({body:void 0!==F.body?F.body:this.body,headers:F.headers||this.headers,status:void 0!==F.status?F.status:this.status,statusText:F.statusText||this.statusText,url:F.url||this.url||void 0})}}class Ae extends ge{constructor(F){super(F,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${F.url||"(unknown url)"}`:`Http failure response for ${F.url||"(unknown url)"}: ${F.status} ${F.statusText}`,this.error=F.error||null}}function Ce(x,F){return{body:F,headers:x.headers,context:x.context,observe:x.observe,params:x.params,reportProgress:x.reportProgress,responseType:x.responseType,withCredentials:x.withCredentials}}let $e=(()=>{class x{constructor(R){this.handler=R}request(R,he,z={}){let ie;if(R instanceof Ct)ie=R;else{let Et,xt;Et=z.headers instanceof M?z.headers:new M(z.headers),z.params&&(xt=z.params instanceof be?z.params:new be({fromObject:z.params})),ie=new Ct(R,he,void 0!==z.body?z.body:null,{headers:Et,context:z.context,params:xt,reportProgress:z.reportProgress,responseType:z.responseType||"json",withCredentials:z.withCredentials})}const Be=(0,f.of)(ie).pipe(function(x,F){return(0,a.zg)(x,void 0,1)}(Et=>this.handler.handle(Et)));if(R instanceof Ct||"events"===z.observe)return Be;const gt=Be.pipe((0,w.h)(Et=>Et instanceof le));switch(z.observe||"body"){case"body":switch(ie.responseType){case"arraybuffer":return gt.pipe((0,D.U)(Et=>{if(null!==Et.body&&!(Et.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Et.body}));case"blob":return gt.pipe((0,D.U)(Et=>{if(null!==Et.body&&!(Et.body instanceof Blob))throw new Error("Response is not a Blob.");return Et.body}));case"text":return gt.pipe((0,D.U)(Et=>{if(null!==Et.body&&"string"!=typeof Et.body)throw new Error("Response is not a string.");return Et.body}));case"json":default:return gt.pipe((0,D.U)(Et=>Et.body))}case"response":return gt;default:throw new Error(`Unreachable: unhandled observe type ${z.observe}}`)}}delete(R,he={}){return this.request("DELETE",R,he)}get(R,he={}){return this.request("GET",R,he)}head(R,he={}){return this.request("HEAD",R,he)}jsonp(R,he){return this.request("JSONP",R,{params:(new be).append(he,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(R,he={}){return this.request("OPTIONS",R,he)}patch(R,he,z={}){return this.request("PATCH",R,Ce(z,he))}post(R,he,z={}){return this.request("POST",R,Ce(z,he))}put(R,he,z={}){return this.request("PUT",R,Ce(z,he))}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(g))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();class et{constructor(F,R){this.next=F,this.interceptor=R}handle(F){return this.interceptor.intercept(F,this.next)}}const pt=new l.InjectionToken("HTTP_INTERCEPTORS");let je=(()=>{class x{intercept(R,he){return he.handle(R)}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),tt=0;class dt{}let $=(()=>{class x{constructor(R,he){this.callbackMap=R,this.document=he,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+tt++}handle(R){if("JSONP"!==R.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==R.responseType)throw new Error("JSONP requests must use Json response type.");return new _.y(he=>{const z=this.nextCallback(),ie=R.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${z}$1`),Be=this.document.createElement("script");Be.src=ie;let gt=null,Et=!1,xt=!1;this.callbackMap[z]=At=>{delete this.callbackMap[z],!xt&&(gt=At,Et=!0)};const Nt=()=>{Be.parentNode&&Be.parentNode.removeChild(Be),delete this.callbackMap[z]},Ut=At=>{xt||this.resolvedPromise.then(()=>{Nt(),Et?(he.next(new le({body:gt,status:200,statusText:"OK",url:ie})),he.complete()):he.error(new Ae({url:ie,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},Qt=At=>{xt||(Nt(),he.error(new Ae({error:At,status:0,statusText:"JSONP Error",url:ie})))};return Be.addEventListener("load",Ut),Be.addEventListener("error",Qt),this.document.body.appendChild(Be),he.next({type:te.Sent}),()=>{xt=!0,Be.removeEventListener("load",Ut),Be.removeEventListener("error",Qt),Nt()}})}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(dt),l.\u0275\u0275inject(o.DOCUMENT))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),oe=(()=>{class x{constructor(R){this.jsonp=R}intercept(R,he){return"JSONP"===R.method?this.jsonp.handle(R):he.handle(R)}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject($))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();const L=/^\)\]\}',?\n/;let ae=(()=>{class x{constructor(R){this.xhrFactory=R}handle(R){if("JSONP"===R.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new _.y(he=>{const z=this.xhrFactory.build();if(z.open(R.method,R.urlWithParams),R.withCredentials&&(z.withCredentials=!0),R.headers.forEach((At,Lt)=>z.setRequestHeader(At,Lt.join(","))),R.headers.has("Accept")||z.setRequestHeader("Accept","application/json, text/plain, */*"),!R.headers.has("Content-Type")){const At=R.detectContentTypeHeader();null!==At&&z.setRequestHeader("Content-Type",At)}if(R.responseType){const At=R.responseType.toLowerCase();z.responseType="json"!==At?At:"text"}const ie=R.serializeBody();let Be=null;const gt=()=>{if(null!==Be)return Be;const At=1223===z.status?204:z.status,Lt=z.statusText||"OK",jt=new M(z.getAllResponseHeaders()),_n=function(x){return"responseURL"in x&&x.responseURL?x.responseURL:/^X-Request-URL:/m.test(x.getAllResponseHeaders())?x.getResponseHeader("X-Request-URL"):null}(z)||R.url;return Be=new X({headers:jt,status:At,statusText:Lt,url:_n}),Be},Et=()=>{let{headers:At,status:Lt,statusText:jt,url:_n}=gt(),qe=null;204!==Lt&&(qe=void 0===z.response?z.responseText:z.response),0===Lt&&(Lt=qe?200:0);let Pt=Lt>=200&&Lt<300;if("json"===R.responseType&&"string"==typeof qe){const V=qe;qe=qe.replace(L,"");try{qe=""!==qe?JSON.parse(qe):null}catch(K){qe=V,Pt&&(Pt=!1,qe={error:K,text:qe})}}Pt?(he.next(new le({body:qe,headers:At,status:Lt,statusText:jt,url:_n||void 0})),he.complete()):he.error(new Ae({error:qe,headers:At,status:Lt,statusText:jt,url:_n||void 0}))},xt=At=>{const{url:Lt}=gt(),jt=new Ae({error:At,status:z.status||0,statusText:z.statusText||"Unknown Error",url:Lt||void 0});he.error(jt)};let Nt=!1;const Ut=At=>{Nt||(he.next(gt()),Nt=!0);let Lt={type:te.DownloadProgress,loaded:At.loaded};At.lengthComputable&&(Lt.total=At.total),"text"===R.responseType&&!!z.responseText&&(Lt.partialText=z.responseText),he.next(Lt)},Qt=At=>{let Lt={type:te.UploadProgress,loaded:At.loaded};At.lengthComputable&&(Lt.total=At.total),he.next(Lt)};return z.addEventListener("load",Et),z.addEventListener("error",xt),z.addEventListener("timeout",xt),z.addEventListener("abort",xt),R.reportProgress&&(z.addEventListener("progress",Ut),null!==ie&&z.upload&&z.upload.addEventListener("progress",Qt)),z.send(ie),he.next({type:te.Sent}),()=>{z.removeEventListener("error",xt),z.removeEventListener("abort",xt),z.removeEventListener("load",Et),z.removeEventListener("timeout",xt),R.reportProgress&&(z.removeEventListener("progress",Ut),null!==ie&&z.upload&&z.upload.removeEventListener("progress",Qt)),z.readyState!==z.DONE&&z.abort()}})}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(o.XhrFactory))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();const fe=new l.InjectionToken("XSRF_COOKIE_NAME"),Fe=new l.InjectionToken("XSRF_HEADER_NAME");class st{}let wt=(()=>{class x{constructor(R,he,z){this.doc=R,this.platform=he,this.cookieName=z,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const R=this.doc.cookie||"";return R!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,o.\u0275parseCookieValue)(R,this.cookieName),this.lastCookieString=R),this.lastToken}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(o.DOCUMENT),l.\u0275\u0275inject(l.PLATFORM_ID),l.\u0275\u0275inject(fe))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),Ze=(()=>{class x{constructor(R,he){this.tokenService=R,this.headerName=he}intercept(R,he){const z=R.url.toLowerCase();if("GET"===R.method||"HEAD"===R.method||z.startsWith("http://")||z.startsWith("https://"))return he.handle(R);const ie=this.tokenService.getToken();return null!==ie&&!R.headers.has(this.headerName)&&(R=R.clone({headers:R.headers.set(this.headerName,ie)})),he.handle(R)}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(st),l.\u0275\u0275inject(Fe))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),ze=(()=>{class x{constructor(R,he){this.backend=R,this.injector=he,this.chain=null}handle(R){if(null===this.chain){const he=this.injector.get(pt,[]);this.chain=he.reduceRight((z,ie)=>new et(z,ie),this.backend)}return this.chain.handle(R)}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(E),l.\u0275\u0275inject(l.Injector))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();function q(){return"object"==typeof window?window:{}}let Ge=(()=>{class x{static disable(){return{ngModule:x,providers:[{provide:Ze,useClass:je}]}}static withOptions(R={}){return{ngModule:x,providers:[R.cookieName?{provide:fe,useValue:R.cookieName}:[],R.headerName?{provide:Fe,useValue:R.headerName}:[]]}}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275mod=l.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=l.\u0275\u0275defineInjector({providers:[Ze,{provide:pt,useExisting:Ze,multi:!0},{provide:st,useClass:wt},{provide:fe,useValue:"XSRF-TOKEN"},{provide:Fe,useValue:"X-XSRF-TOKEN"}]}),x})(),ft=(()=>{class x{}return x.\u0275fac=function(R){return new(R||x)},x.\u0275mod=l.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=l.\u0275\u0275defineInjector({providers:[$e,{provide:g,useClass:ze},ae,{provide:E,useExisting:ae}],imports:[[Ge.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),x})(),vt=(()=>{class x{}return x.\u0275fac=function(R){return new(R||x)},x.\u0275mod=l.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=l.\u0275\u0275defineInjector({providers:[$,{provide:dt,useFactory:q},{provide:pt,useClass:oe,multi:!0}]}),x})();const Ye=o.XhrFactory},7716:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>Cb,APP_BOOTSTRAP_LISTENER:()=>uv,APP_ID:()=>ov,APP_INITIALIZER:()=>lh,ApplicationInitStatus:()=>Ss,ApplicationModule:()=>oS,ApplicationRef:()=>xa,Attribute:()=>ef,COMPILER_OPTIONS:()=>_v,CUSTOM_ELEMENTS_SCHEMA:()=>Uf,ChangeDetectionStrategy:()=>R,ChangeDetectorRef:()=>Pd,Compiler:()=>Oa,CompilerFactory:()=>yv,Component:()=>rM,ComponentFactory:()=>bs,ComponentFactoryResolver:()=>Cs,ComponentRef:()=>Cd,ContentChild:()=>Db,ContentChildren:()=>Eb,DEFAULT_CURRENCY_CODE:()=>hv,DebugElement:()=>nS,DebugEventListener:()=>jv,DebugNode:()=>tS,DefaultIterableDiffer:()=>v_,Directive:()=>ev,ElementRef:()=>cr,EmbeddedViewRef:()=>WM,ErrorHandler:()=>Xo,EventEmitter:()=>xr,Host:()=>uf,HostBinding:()=>lM,HostListener:()=>cM,INJECTOR:()=>co,Inject:()=>Go,InjectFlags:()=>q,Injectable:()=>vD,InjectionToken:()=>jn,Injector:()=>In,Input:()=>sM,IterableDiffers:()=>Tl,KeyValueDiffers:()=>wl,LOCALE_ID:()=>kl,MissingTranslationStrategy:()=>Rr,ModuleWithComponentFactories:()=>pv,NO_ERRORS_SCHEMA:()=>zf,NgModule:()=>fM,NgModuleFactory:()=>Ad,NgModuleFactoryLoader:()=>BM,NgModuleRef:()=>uo,NgProbeToken:()=>kM,NgZone:()=>Ni,Optional:()=>Wr,Output:()=>aM,PACKAGE_ROOT_URL:()=>mM,PLATFORM_ID:()=>cv,PLATFORM_INITIALIZER:()=>lv,Pipe:()=>oM,PlatformRef:()=>vh,Query:()=>Us,QueryList:()=>Sa,ReflectiveInjector:()=>gs,ReflectiveKey:()=>Xr,Renderer2:()=>m_,RendererFactory2:()=>Dl,RendererStyleFlags2:()=>Ir,ResolvedReflectiveFactory:()=>jm,Sanitizer:()=>Dd,SecurityContext:()=>Bn,Self:()=>Qo,SimpleChange:()=>er,SkipSelf:()=>Kr,SystemJsNgModuleLoader:()=>zM,SystemJsNgModuleLoaderConfig:()=>Fv,TRANSLATIONS:()=>gM,TRANSLATIONS_FORMAT:()=>_M,TemplateRef:()=>Po,Testability:()=>Ev,TestabilityRegistry:()=>ph,Type:()=>Ga,VERSION:()=>Td,Version:()=>y_,ViewChild:()=>wb,ViewChildren:()=>Tb,ViewContainerRef:()=>ga,ViewEncapsulation:()=>ie,ViewRef:()=>Lv,WrappedValue:()=>Gi,asNativeElements:()=>KM,assertPlatform:()=>Pv,createPlatform:()=>Sv,createPlatformFactory:()=>Iv,defineInjectable:()=>oe,destroyPlatform:()=>FM,enableProdMode:()=>PM,forwardRef:()=>M,getDebugNode:()=>Zn,getModuleFactory:()=>HM,getPlatform:()=>yh,inject:()=>Lb,isDevMode:()=>gh,platformCore:()=>iS,resolveForwardRef:()=>S,setTestabilityGetter:()=>IM,\u02750:()=>cf,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>_h,\u0275APP_ID_RANDOM_PROVIDER:()=>av,\u0275CREATE_ATTRIBUTE_DECORATOR__POST_R3__:()=>qh,\u0275ChangeDetectorStatus:()=>he,\u0275CodegenComponentFactoryResolver:()=>n0,\u0275Compiler_compileModuleAndAllComponentsAsync__POST_R3__:()=>gv,\u0275Compiler_compileModuleAndAllComponentsSync__POST_R3__:()=>uh,\u0275Compiler_compileModuleAsync__POST_R3__:()=>mv,\u0275Compiler_compileModuleSync__POST_R3__:()=>Fl,\u0275ComponentFactory:()=>bs,\u0275Console:()=>dv,\u0275DEFAULT_LOCALE_ID:()=>ca,\u0275EMPTY_ARRAY:()=>Lt,\u0275EMPTY_MAP:()=>j0,\u0275INJECTOR_IMPL__POST_R3__:()=>sm,\u0275INJECTOR_SCOPE:()=>ea,\u0275LifecycleHooksFeature:()=>Dm,\u0275LocaleDataIndex:()=>Jt,\u0275NG_COMP_DEF:()=>jt,\u0275NG_DIR_DEF:()=>_n,\u0275NG_ELEMENT_ID:()=>W,\u0275NG_INJ_DEF:()=>Ze,\u0275NG_MOD_DEF:()=>Pt,\u0275NG_PIPE_DEF:()=>qe,\u0275NG_PROV_DEF:()=>wt,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>Oo,\u0275NO_CHANGE:()=>on,\u0275NgModuleFactory:()=>xl,\u0275NoopNgZone:()=>Cv,\u0275ReflectionCapabilities:()=>zo,\u0275Render3ComponentFactory:()=>Ud,\u0275Render3ComponentRef:()=>ny,\u0275Render3NgModuleRef:()=>ay,\u0275RuntimeError:()=>j,\u0275SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__:()=>E_,\u0275SWITCH_COMPILE_COMPONENT__POST_R3__:()=>tv,\u0275SWITCH_COMPILE_DIRECTIVE__POST_R3__:()=>nv,\u0275SWITCH_COMPILE_INJECTABLE__POST_R3__:()=>Rm,\u0275SWITCH_COMPILE_NGMODULE__POST_R3__:()=>rv,\u0275SWITCH_COMPILE_PIPE__POST_R3__:()=>iv,\u0275SWITCH_ELEMENT_REF_FACTORY__POST_R3__:()=>f_,\u0275SWITCH_IVY_ENABLED__POST_R3__:()=>fv,\u0275SWITCH_RENDERER2_FACTORY__POST_R3__:()=>g_,\u0275SWITCH_TEMPLATE_REF_FACTORY__POST_R3__:()=>M_,\u0275SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__:()=>I_,\u0275_sanitizeHtml:()=>Sf,\u0275_sanitizeUrl:()=>Ks,\u0275allowSanitizationBypassAndThrow:()=>Zo,\u0275and:()=>sS,\u0275angular_packages_core_core_a:()=>P,\u0275angular_packages_core_core_b:()=>sf,\u0275angular_packages_core_core_ba:()=>Gv,\u0275angular_packages_core_core_bb:()=>Fg,\u0275angular_packages_core_core_bc:()=>Ol,\u0275angular_packages_core_core_bd:()=>M0,\u0275angular_packages_core_core_be:()=>ji,\u0275angular_packages_core_core_bf:()=>ty,\u0275angular_packages_core_core_bg:()=>Wh,\u0275angular_packages_core_core_bh:()=>Mt,\u0275angular_packages_core_core_bi:()=>Te,\u0275angular_packages_core_core_bj:()=>Ls,\u0275angular_packages_core_core_bl:()=>zd,\u0275angular_packages_core_core_bm:()=>Wd,\u0275angular_packages_core_core_bn:()=>Kd,\u0275angular_packages_core_core_bo:()=>Gd,\u0275angular_packages_core_core_bp:()=>Qd,\u0275angular_packages_core_core_bq:()=>Rf,\u0275angular_packages_core_core_br:()=>zr,\u0275angular_packages_core_core_bs:()=>ro,\u0275angular_packages_core_core_bv:()=>C,\u0275angular_packages_core_core_bw:()=>Jc,\u0275angular_packages_core_core_bx:()=>ft,\u0275angular_packages_core_core_bz:()=>St,\u0275angular_packages_core_core_c:()=>Ko,\u0275angular_packages_core_core_cb:()=>bc,\u0275angular_packages_core_core_cc:()=>i_,\u0275angular_packages_core_core_d:()=>Um,\u0275angular_packages_core_core_e:()=>oa,\u0275angular_packages_core_core_f:()=>Bm,\u0275angular_packages_core_core_g:()=>sv,\u0275angular_packages_core_core_h:()=>__,\u0275angular_packages_core_core_i:()=>h_,\u0275angular_packages_core_core_j:()=>Io,\u0275angular_packages_core_core_k:()=>VM,\u0275angular_packages_core_core_l:()=>S_,\u0275angular_packages_core_core_m:()=>ma,\u0275angular_packages_core_core_n:()=>P_,\u0275angular_packages_core_core_o:()=>Ra,\u0275angular_packages_core_core_p:()=>Jn,\u0275angular_packages_core_core_q:()=>ZM,\u0275angular_packages_core_core_r:()=>D_,\u0275angular_packages_core_core_s:()=>wd,\u0275angular_packages_core_core_t:()=>Md,\u0275angular_packages_core_core_u:()=>Sd,\u0275angular_packages_core_core_v:()=>Id,\u0275angular_packages_core_core_w:()=>Uv,\u0275angular_packages_core_core_x:()=>zv,\u0275angular_packages_core_core_y:()=>Wv,\u0275angular_packages_core_core_z:()=>Kv,\u0275bypassSanitizationTrustHtml:()=>Zb,\u0275bypassSanitizationTrustResourceUrl:()=>tC,\u0275bypassSanitizationTrustScript:()=>qb,\u0275bypassSanitizationTrustStyle:()=>Xb,\u0275bypassSanitizationTrustUrl:()=>eC,\u0275ccf:()=>nw,\u0275clearOverrides:()=>uI,\u0275clearResolutionOfComponentResourcesQueue:()=>mf,\u0275cmf:()=>dI,\u0275compileComponent:()=>$y,\u0275compileDirective:()=>ah,\u0275compileNgModule:()=>Ny,\u0275compileNgModuleDefs:()=>Ly,\u0275compileNgModuleFactory__POST_R3__:()=>wv,\u0275compilePipe:()=>Xy,\u0275createInjector:()=>nm,\u0275crt:()=>I0,\u0275defaultIterableDiffers:()=>T_,\u0275defaultKeyValueDiffers:()=>w_,\u0275detectChanges:()=>qp,\u0275devModeEqual:()=>au,\u0275did:()=>yw,\u0275eld:()=>aS,\u0275findLocaleData:()=>dd,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>ky,\u0275getComponentViewDefinitionFactory:()=>K_,\u0275getDebugNodeR2:()=>qM,\u0275getDebugNode__POST_R3__:()=>Ll,\u0275getDirectives:()=>gm,\u0275getHostElement:()=>iu,\u0275getInjectableDef:()=>ue,\u0275getLContext:()=>di,\u0275getLocaleCurrencyCode:()=>aT,\u0275getLocalePluralCase:()=>Rg,\u0275getModuleFactory__POST_R3__:()=>xv,\u0275getSanitizationBypassType:()=>vf,\u0275global:()=>Nt,\u0275initServicesIfNeeded:()=>La,\u0275inlineInterpolate:()=>L0,\u0275interpolate:()=>N0,\u0275isBoundToModule__POST_R3__:()=>Mv,\u0275isDefaultChangeDetectionStrategy:()=>z,\u0275isListLikeIterable:()=>ia,\u0275isObservable:()=>Pu,\u0275isPromise:()=>Iu,\u0275isSubscribable:()=>Qm,\u0275ivyEnabled:()=>Aa,\u0275makeDecorator:()=>$o,\u0275markDirty:()=>em,\u0275mod:()=>U0,\u0275mpd:()=>$0,\u0275ncd:()=>CS,\u0275noSideEffects:()=>F,\u0275nov:()=>uw,\u0275overrideComponentView:()=>cI,\u0275overrideProvider:()=>lI,\u0275pad:()=>TS,\u0275patchComponentDefWithScope:()=>rh,\u0275pid:()=>vw,\u0275pod:()=>wS,\u0275ppd:()=>DS,\u0275prd:()=>bw,\u0275publishDefaultGlobalUtils:()=>tD,\u0275publishGlobalUtil:()=>Ki,\u0275qud:()=>_S,\u0275registerLocaleData:()=>sT,\u0275registerModuleFactory:()=>xw,\u0275registerNgModuleType:()=>oy,\u0275renderComponent:()=>nD,\u0275resetCompiledComponents:()=>Qw,\u0275resetJitOptions:()=>Kw,\u0275resolveComponentResources:()=>ff,\u0275setClassMetadata:()=>iy,\u0275setCurrentInjector:()=>Eo,\u0275setDocument:()=>Dr,\u0275setLocaleId:()=>vl,\u0275store:()=>Sm,\u0275stringify:()=>D,\u0275ted:()=>PS,\u0275transitiveScopesFor:()=>Pa,\u0275unregisterLocaleData:()=>lT,\u0275unv:()=>S0,\u0275unwrapSafeValue:()=>Gr,\u0275vid:()=>RS,\u0275whenRendered:()=>iD,\u0275\u0275CopyDefinitionFeature:()=>wm,\u0275\u0275FactoryTarget:()=>Gn,\u0275\u0275InheritDefinitionFeature:()=>ou,\u0275\u0275NgOnChangesFeature:()=>Mi,\u0275\u0275ProvidersFeature:()=>c_,\u0275\u0275advance:()=>Cp,\u0275\u0275attribute:()=>cu,\u0275\u0275attributeInterpolate1:()=>uu,\u0275\u0275attributeInterpolate2:()=>du,\u0275\u0275attributeInterpolate3:()=>hu,\u0275\u0275attributeInterpolate4:()=>fu,\u0275\u0275attributeInterpolate5:()=>pu,\u0275\u0275attributeInterpolate6:()=>mu,\u0275\u0275attributeInterpolate7:()=>gu,\u0275\u0275attributeInterpolate8:()=>_u,\u0275\u0275attributeInterpolateV:()=>yu,\u0275\u0275classMap:()=>ag,\u0275\u0275classMapInterpolate1:()=>mg,\u0275\u0275classMapInterpolate2:()=>gg,\u0275\u0275classMapInterpolate3:()=>_g,\u0275\u0275classMapInterpolate4:()=>yg,\u0275\u0275classMapInterpolate5:()=>vg,\u0275\u0275classMapInterpolate6:()=>bg,\u0275\u0275classMapInterpolate7:()=>Cg,\u0275\u0275classMapInterpolate8:()=>Eg,\u0275\u0275classMapInterpolateV:()=>Dg,\u0275\u0275classProp:()=>Uu,\u0275\u0275contentQuery:()=>Iy,\u0275\u0275defineComponent:()=>Ee,\u0275\u0275defineDirective:()=>dn,\u0275\u0275defineInjectable:()=>$,\u0275\u0275defineInjector:()=>L,\u0275\u0275defineNgModule:()=>ot,\u0275\u0275definePipe:()=>cn,\u0275\u0275directiveInject:()=>aa,\u0275\u0275disableBindings:()=>Fs,\u0275\u0275element:()=>Wm,\u0275\u0275elementContainer:()=>Km,\u0275\u0275elementContainerEnd:()=>Su,\u0275\u0275elementContainerStart:()=>Mu,\u0275\u0275elementEnd:()=>wu,\u0275\u0275elementStart:()=>Tu,\u0275\u0275enableBindings:()=>ks,\u0275\u0275getCurrentView:()=>Gm,\u0275\u0275getInheritedFactory:()=>Xh,\u0275\u0275hostProperty:()=>cd,\u0275\u0275i18n:()=>r_,\u0275\u0275i18nApply:()=>s_,\u0275\u0275i18nAttributes:()=>o_,\u0275\u0275i18nEnd:()=>md,\u0275\u0275i18nExp:()=>gd,\u0275\u0275i18nPostprocess:()=>a_,\u0275\u0275i18nStart:()=>pd,\u0275\u0275inject:()=>$n,\u0275\u0275injectAttribute:()=>Xl,\u0275\u0275invalidFactory:()=>zm,\u0275\u0275invalidFactoryDep:()=>oc,\u0275\u0275listener:()=>Au,\u0275\u0275loadQuery:()=>Py,\u0275\u0275namespaceHTML:()=>tn,\u0275\u0275namespaceMathML:()=>Kt,\u0275\u0275namespaceSVG:()=>Bt,\u0275\u0275nextContext:()=>Zm,\u0275\u0275ngDeclareClassMetadata:()=>mI,\u0275\u0275ngDeclareComponent:()=>gI,\u0275\u0275ngDeclareDirective:()=>pI,\u0275\u0275ngDeclareFactory:()=>_I,\u0275\u0275ngDeclareInjectable:()=>vI,\u0275\u0275ngDeclareInjector:()=>bI,\u0275\u0275ngDeclareNgModule:()=>CI,\u0275\u0275ngDeclarePipe:()=>EI,\u0275\u0275pipe:()=>yy,\u0275\u0275pipeBind1:()=>vy,\u0275\u0275pipeBind2:()=>by,\u0275\u0275pipeBind3:()=>Cy,\u0275\u0275pipeBind4:()=>Ey,\u0275\u0275pipeBindV:()=>Dy,\u0275\u0275projection:()=>qm,\u0275\u0275projectionDef:()=>Xm,\u0275\u0275property:()=>Eu,\u0275\u0275propertyInterpolate:()=>Ru,\u0275\u0275propertyInterpolate1:()=>pl,\u0275\u0275propertyInterpolate2:()=>ku,\u0275\u0275propertyInterpolate3:()=>Fu,\u0275\u0275propertyInterpolate4:()=>Nu,\u0275\u0275propertyInterpolate5:()=>Lu,\u0275\u0275propertyInterpolate6:()=>ju,\u0275\u0275propertyInterpolate7:()=>Bu,\u0275\u0275propertyInterpolate8:()=>Vu,\u0275\u0275propertyInterpolateV:()=>Hu,\u0275\u0275pureFunction0:()=>ly,\u0275\u0275pureFunction1:()=>cy,\u0275\u0275pureFunction2:()=>uy,\u0275\u0275pureFunction3:()=>dy,\u0275\u0275pureFunction4:()=>hy,\u0275\u0275pureFunction5:()=>fy,\u0275\u0275pureFunction6:()=>py,\u0275\u0275pureFunction7:()=>my,\u0275\u0275pureFunction8:()=>gy,\u0275\u0275pureFunctionV:()=>_y,\u0275\u0275queryRefresh:()=>My,\u0275\u0275reference:()=>Im,\u0275\u0275resolveBody:()=>Jf,\u0275\u0275resolveDocument:()=>Yf,\u0275\u0275resolveWindow:()=>Qf,\u0275\u0275restoreView:()=>Ns,\u0275\u0275sanitizeHtml:()=>If,\u0275\u0275sanitizeResourceUrl:()=>pc,\u0275\u0275sanitizeScript:()=>Af,\u0275\u0275sanitizeStyle:()=>Pf,\u0275\u0275sanitizeUrl:()=>fc,\u0275\u0275sanitizeUrlOrResourceUrl:()=>kf,\u0275\u0275setComponentScope:()=>Q,\u0275\u0275setNgModuleScope:()=>_t,\u0275\u0275styleMap:()=>sr,\u0275\u0275styleMapInterpolate1:()=>Tg,\u0275\u0275styleMapInterpolate2:()=>wg,\u0275\u0275styleMapInterpolate3:()=>Mg,\u0275\u0275styleMapInterpolate4:()=>Sg,\u0275\u0275styleMapInterpolate5:()=>Ig,\u0275\u0275styleMapInterpolate6:()=>Pg,\u0275\u0275styleMapInterpolate7:()=>Ag,\u0275\u0275styleMapInterpolate8:()=>Og,\u0275\u0275styleMapInterpolateV:()=>xg,\u0275\u0275styleProp:()=>$u,\u0275\u0275stylePropInterpolate1:()=>ed,\u0275\u0275stylePropInterpolate2:()=>td,\u0275\u0275stylePropInterpolate3:()=>nd,\u0275\u0275stylePropInterpolate4:()=>id,\u0275\u0275stylePropInterpolate5:()=>rd,\u0275\u0275stylePropInterpolate6:()=>od,\u0275\u0275stylePropInterpolate7:()=>sd,\u0275\u0275stylePropInterpolate8:()=>ad,\u0275\u0275stylePropInterpolateV:()=>ld,\u0275\u0275syntheticHostListener:()=>Ou,\u0275\u0275syntheticHostProperty:()=>ud,\u0275\u0275template:()=>Mm,\u0275\u0275templateRefExtractor:()=>Ry,\u0275\u0275text:()=>pg,\u0275\u0275textInterpolate:()=>Wu,\u0275\u0275textInterpolate1:()=>gl,\u0275\u0275textInterpolate2:()=>Ku,\u0275\u0275textInterpolate3:()=>Gu,\u0275\u0275textInterpolate4:()=>Qu,\u0275\u0275textInterpolate5:()=>Yu,\u0275\u0275textInterpolate6:()=>Ju,\u0275\u0275textInterpolate7:()=>Zu,\u0275\u0275textInterpolate8:()=>Xu,\u0275\u0275textInterpolateV:()=>qu,\u0275\u0275trustConstantHtml:()=>Of,\u0275\u0275trustConstantResourceUrl:()=>xf,\u0275\u0275viewQuery:()=>Sy});var o=d(9765),l=d(826),f=d(9897),_=d(6682),a=d(8819);function C(e){for(let t in e)if(e[t]===C)return t;throw Error("Could not find renamed property on target object.")}function w(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function D(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(D).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 E=C({__forward_ref__:C});function M(e){return e.__forward_ref__=M,e.toString=function(){return D(this())},e}function S(e){return P(e)?e():e}function P(e){return"function"==typeof e&&e.hasOwnProperty(E)&&e.__forward_ref__===M}class j extends Error{constructor(t,n){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(t,n)),this.code=t}}function be(e){return"string"==typeof e?e:null==e?"":String(e)}function Ue(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():be(e)}function xe(e,t){const n=t?` in ${t}`:"";throw new j("201",`No provider for ${Ue(e)} found${n}`)}function ut(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}function $(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const oe=$;function L(e){return{providers:e.providers||[],imports:e.imports||[]}}function ue(e){return ae(e,wt)||ae(e,ze)}function ae(e,t){return e.hasOwnProperty(t)?e[t]:null}function st(e){return e&&(e.hasOwnProperty(Ze)||e.hasOwnProperty(He))?e[Ze]:null}const wt=C({\u0275prov:C}),Ze=C({\u0275inj:C}),ze=C({ngInjectableDef:C}),He=C({ngInjectorDef:C});var q=(()=>((q=q||{})[q.Default=0]="Default",q[q.Host=1]="Host",q[q.Self=2]="Self",q[q.SkipSelf=4]="SkipSelf",q[q.Optional=8]="Optional",q))();let Ge;function ft(){return Ge}function vt(e){const t=Ge;return Ge=e,t}function Ye(e,t,n){const i=ue(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&q.Optional?null:void 0!==t?t:void xe(D(e),"Injector")}function F(e){return{toString:e}.toString()}var R=(()=>((R=R||{})[R.OnPush=0]="OnPush",R[R.Default=1]="Default",R))(),he=(()=>((he=he||{})[he.CheckOnce=0]="CheckOnce",he[he.Checked=1]="Checked",he[he.CheckAlways=2]="CheckAlways",he[he.Detached=3]="Detached",he[he.Errored=4]="Errored",he[he.Destroyed=5]="Destroyed",he))();function z(e){return null==e||e===R.Default}var ie=(()=>((ie=ie||{})[ie.Emulated=0]="Emulated",ie[ie.None=2]="None",ie[ie.ShadowDom=3]="ShadowDom",ie))();const Be="undefined"!=typeof globalThis&&globalThis,gt="undefined"!=typeof window&&window,Et="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Nt=Be||"undefined"!=typeof global&&global||gt||Et,At={},Lt=[],jt=C({\u0275cmp:C}),_n=C({\u0275dir:C}),qe=C({\u0275pipe:C}),Pt=C({\u0275mod:C}),V=C({\u0275loc:C}),K=C({\u0275fac:C}),W=C({__NG_ELEMENT_ID__:C});let De=0;function Ee(e){return F(()=>{const n={},i={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===R.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Lt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ie.Emulated,id:"c",styles:e.styles||Lt,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,s=e.features,c=e.pipes;return i.id+=De++,i.inputs=Ht(e.inputs,n),i.outputs=Ht(e.outputs),s&&s.forEach(u=>u(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(J):null,i.pipeDefs=c?()=>("function"==typeof c?c():c).map(N):null,i})}function Q(e,t,n){const i=e.\u0275cmp;i.directiveDefs=()=>t.map(J),i.pipeDefs=()=>n.map(N)}function J(e){return an(e)||un(e)}function N(e){return wn(e)}const re={};function ot(e){return F(()=>{const t={type:e.type,bootstrap:e.bootstrap||Lt,declarations:e.declarations||Lt,imports:e.imports||Lt,exports:e.exports||Lt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(re[e.id]=e.type),t})}function _t(e,t){return F(()=>{const n=yn(e,!0);n.declarations=t.declarations||Lt,n.imports=t.imports||Lt,n.exports=t.exports||Lt})}function Ht(e,t){if(null==e)return At;const n={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,t&&(t[r]=s)}return n}const dn=Ee;function cn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function an(e){return e[jt]||null}function un(e){return e[_n]||null}function wn(e){return e[qe]||null}function yn(e,t){const n=e[Pt]||null;if(!n&&!0===t)throw new Error(`Type ${D(e)} does not have '\u0275mod' property.`);return n}function ti(e){return Array.isArray(e)&&"object"==typeof e[1]}function Cn(e){return Array.isArray(e)&&!0===e[1]}function Ci(e){return 0!=(8&e.flags)}function ci(e){return 2==(2&e.flags)}function ui(e){return 1==(1&e.flags)}function ni(e){return null!==e.template}function Un(e){return 0!=(512&e[2])}function yi(e,t){return e.hasOwnProperty(K)?e[K]:null}class er{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function Mi(){return ji}function ji(e){return e.type.prototype.ngOnChanges&&(e.setInput=tr),Vr}function Vr(){const e=br(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===At)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function tr(e,t,n,i){const r=br(e)||function(e,t){return e[vr]=t}(e,{previous:At,current:null}),s=r.current||(r.current={}),c=r.previous,u=this.declaredInputs[n],y=c[u];s[u]=new er(y&&y.currentValue,t,c===At),e[i]=t}Mi.ngInherit=!0;const vr="__ngSimpleChanges__";function br(e){return e[vr]||null}let Si=null;const $r=e=>{Si=e},Rn=function(e,t,n){null!=Si&&Si(e,t,n)},Cr="http://www.w3.org/2000/svg",no="http://www.w3.org/1998/MathML/";let Er;function Dr(e){Er=e}function Tr(){return void 0!==Er?Er:"undefined"!=typeof document?document:void 0}function O(e){return!!e.listen}const k={createRenderer:(e,t)=>Tr()};function v(e){for(;Array.isArray(e);)e=e[0];return e}function Qe(e,t){return v(t[e])}function St(e,t){return v(t[e.index])}function fn(e,t){return e.data[t]}function rn(e,t){return e[t]}function bn(e,t){const n=t[e];return ti(n)?n:n[0]}function Tn(e){return 4==(4&e[2])}function Ln(e){return 128==(128&e[2])}function Kn(e,t){return null==t?null:e[t]}function Bi(e){e[18]=0}function Ii(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Yt={lFrame:ri(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Rs(){return Yt.bindingsEnabled}function ks(){Yt.bindingsEnabled=!0}function Fs(){Yt.bindingsEnabled=!1}function Mt(){return Yt.lFrame.lView}function pn(){return Yt.lFrame.tView}function Ns(e){return Yt.lFrame.contextLView=e,e[8]}function kn(){let e=Fo();for(;null!==e&&64===e.type;)e=e.parent;return e}function Fo(){return Yt.lFrame.currentTNode}function yo(){const e=Yt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Vi(e,t){const n=Yt.lFrame;n.currentTNode=e,n.isParent=t}function G(){return Yt.lFrame.isParent}function h(){Yt.lFrame.isParent=!1}function Z(){return Yt.isInCheckNoChangesMode}function me(e){Yt.isInCheckNoChangesMode=e}function Te(){const e=Yt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ke(){return Yt.lFrame.bindingIndex}function rt(e){return Yt.lFrame.bindingIndex=e}function bt(){return Yt.lFrame.bindingIndex++}function kt(e){const t=Yt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function nn(e){Yt.lFrame.inI18n=e}function mn(e,t){const n=Yt.lFrame;n.bindingIndex=n.bindingRootIndex=e,en(t)}function en(e){Yt.lFrame.currentDirectiveIndex=e}function hn(e){const t=Yt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Pn(){return Yt.lFrame.currentQueryIndex}function An(e){Yt.lFrame.currentQueryIndex=e}function si(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function zn(e,t,n){if(n&q.SkipSelf){let r=t,s=e;for(;!(r=r.parent,null!==r||n&q.Host||(r=si(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,e=s}const i=Yt.lFrame=Pi();return i.currentTNode=t,i.lView=e,!0}function nr(e){const t=Pi(),n=e[1];Yt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Pi(){const e=Yt.lFrame,t=null===e?null:e.child;return null===t?ri(e):t}function ri(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 Hi(){const e=Yt.lFrame;return Yt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const $i=Hi;function Ei(){const e=Hi();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 Ls(e){return(Yt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Yt.lFrame.contextLView))[8]}function Fn(){return Yt.lFrame.selectedIndex}function ir(e){Yt.lFrame.selectedIndex=e}function On(){const e=Yt.lFrame;return fn(e.tView,e.selectedIndex)}function Bt(){Yt.lFrame.currentNamespace=Cr}function Kt(){Yt.lFrame.currentNamespace=no}function tn(){Yt.lFrame.currentNamespace=null}function oi(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const s=e.data[n].type.prototype,{ngAfterContentInit:c,ngAfterContentChecked:u,ngAfterViewInit:y,ngAfterViewChecked:A,ngOnDestroy:H}=s;c&&(e.contentHooks||(e.contentHooks=[])).push(-n,c),u&&((e.contentHooks||(e.contentHooks=[])).push(n,u),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,u)),y&&(e.viewHooks||(e.viewHooks=[])).push(-n,y),A&&((e.viewHooks||(e.viewHooks=[])).push(n,A),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,A)),null!=H&&(e.destroyHooks||(e.destroyHooks=[])).push(n,H)}}function Ai(e,t,n){Oi(e,t,3,n)}function Sn(e,t,n,i){(3&e[2])===n&&Oi(e,t,n,i)}function js(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Oi(e,t,n,i){const s=null!=i?i:-1,c=t.length-1;let u=0;for(let y=void 0!==i?65535&e[18]:0;y<c;y++)if("number"==typeof t[y+1]){if(u=t[y],null!=i&&u>=i)break}else t[y]<0&&(e[18]+=65536),(u<s||-1==s)&&(bo(e,n,t,y),e[18]=(4294901760&e[18])+y+2),y++}function bo(e,t,n,i){const r=n[i]<0,s=n[i+1],u=e[r?-n[i]:n[i]];if(r){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048,Rn(4,u,s);try{s.call(u)}finally{Rn(5,u,s)}}}else{Rn(4,u,s);try{s.call(u)}finally{Rn(5,u,s)}}}class Ri{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function Ha(e,t,n){const i=O(e);let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const c=n[r++],u=n[r++],y=n[r++];i?e.setAttribute(t,u,y,c):t.setAttributeNS(c,u,y)}else{const c=s,u=n[++r];Gl(c)?i&&e.setProperty(t,c,u):i?e.setAttribute(t,c,u):t.setAttribute(c,u),r++}}return r}function Vh(e){return 3===e||4===e||6===e}function Gl(e){return 64===e.charCodeAt(0)}function $a(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?n=r:0===n||Hh(e,n,r,null,-1===n||2===n?t[++i]:null)}}return e}function Hh(e,t,n,i,r){let s=0,c=e.length;if(-1===t)c=-1;else for(;s<e.length;){const u=e[s++];if("number"==typeof u){if(u===t){c=-1;break}if(u>t){c=s-1;break}}}for(;s<e.length;){const u=e[s];if("number"==typeof u)break;if(u===n){if(null===i)return void(null!==r&&(e[s+1]=r));if(i===e[s+1])return void(e[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==c&&(e.splice(c,0,t),s=c+1),e.splice(s++,0,n),null!==i&&e.splice(s++,0,i),null!==r&&e.splice(s++,0,r)}function $h(e){return-1!==e}function No(e){return 32767&e}function Lo(e,t){let n=function(e){return e>>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let Ql=!0;function Ua(e){const t=Ql;return Ql=e,t}let gb=0;function Hs(e,t){const n=Jl(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Yl(i.data,e),Yl(t,null),Yl(i.blueprint,null));const r=za(e,t),s=e.injectorIndex;if($h(r)){const c=No(r),u=Lo(r,t),y=u[1].data;for(let A=0;A<8;A++)t[s+A]=u[c+A]|y[c+A]}return t[s+8]=r,s}function Yl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Jl(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function za(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;null!==r;){const s=r[1],c=s.type;if(i=2===c?s.declTNode:1===c?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Wa(e,t,n){!function(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(W)&&(i=n[W]),null==i&&(i=n[W]=gb++);const r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function Wh(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let r=0;for(;r<i;){const s=n[r];if(Vh(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(s===t)return n[r+1];r+=2}}}return null}function Kh(e,t,n){if(n&q.Optional)return e;xe(t,"NodeInjector")}function Gh(e,t,n,i){if(n&q.Optional&&void 0===i&&(i=null),0==(n&(q.Self|q.Host))){const r=e[9],s=vt(void 0);try{return r?r.get(t,i,n&q.Optional):Ye(t,i,n&q.Optional)}finally{vt(s)}}return Kh(i,t,n)}function Qh(e,t,n,i=q.Default,r){if(null!==e){const s=function(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:yb:t}(n);if("function"==typeof s){if(!zn(t,e,i))return i&q.Host?Kh(r,n,i):Gh(t,n,i,r);try{const c=s(i);if(null!=c||i&q.Optional)return c;xe(n)}finally{$i()}}else if("number"==typeof s){let c=null,u=Jl(e,t),y=-1,A=i&q.Host?t[16][6]:null;for((-1===u||i&q.SkipSelf)&&(y=-1===u?za(e,t):t[u+8],-1!==y&&Zh(i,!1)?(c=t[1],u=No(y),t=Lo(y,t)):u=-1);-1!==u;){const H=t[1];if(Jh(s,u,H.data)){const de=vb(u,t,n,c,i,A);if(de!==Yh)return de}y=t[u+8],-1!==y&&Zh(i,t[1].data[u+8]===A)&&Jh(s,u,t)?(c=H,u=No(y),t=Lo(y,t)):u=-1}}}return Gh(t,n,i,r)}const Yh={};function yb(){return new jo(kn(),Mt())}function vb(e,t,n,i,r,s){const c=t[1],u=c.data[e+8],H=Ka(u,c,n,null==i?ci(u)&&Ql:i!=c&&0!=(3&u.type),r&q.Host&&s===u);return null!==H?$s(t,c,H,u):Yh}function Ka(e,t,n,i,r){const s=e.providerIndexes,c=t.data,u=1048575&s,y=e.directiveStart,H=s>>20,_e=r?u+H:e.directiveEnd;for(let Oe=i?u:u+H;Oe<_e;Oe++){const We=c[Oe];if(Oe<y&&n===We||Oe>=y&&We.type===n)return Oe}if(r){const Oe=c[y];if(Oe&&ni(Oe)&&Oe.type===n)return y}return null}function $s(e,t,n,i){let r=e[n];const s=t.data;if(function(e){return e instanceof Ri}(r)){const c=r;c.resolving&&function(e,t){throw new j("200",`Circular dependency in DI detected for ${e}`)}(Ue(s[n]));const u=Ua(c.canSeeViewProviders);c.resolving=!0;const y=c.injectImpl?vt(c.injectImpl):null;zn(e,i,q.Default);try{r=e[n]=c.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const c=ji(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,c),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,c)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==y&&vt(y),Ua(u),c.resolving=!1,$i()}}return r}function Jh(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Zh(e,t){return!(e&q.Self||e&q.Host&&t)}class jo{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,i){return Qh(this._tNode,this._lView,t,i,n)}}function Xh(e){return F(()=>{const t=e.prototype.constructor,n=t[K]||Zl(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const s=r[K]||Zl(r);if(s&&s!==n)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Zl(e){return P(e)?()=>{const t=Zl(S(e));return t&&t()}:yi(e)}function Xl(e){return Wh(kn(),e)}const Bo="__annotations__",Vo="__parameters__",Ho="__prop__metadata__";function $o(e,t,n,i,r){return F(()=>{const s=ql(t);function c(...u){if(this instanceof c)return s.call(this,...u),this;const y=new c(...u);return function(H){return r&&r(H,...u),(H.hasOwnProperty(Bo)?H[Bo]:Object.defineProperty(H,Bo,{value:[]})[Bo]).push(y),i&&i(H),H}}return n&&(c.prototype=Object.create(n.prototype)),c.prototype.ngMetadataName=e,c.annotationCls=c,c})}function ql(e){return function(...n){if(e){const i=e(...n);for(const r in i)this[r]=i[r]}}}function ro(e,t,n){return F(()=>{const i=ql(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const c=new r(...s);return u.annotation=c,u;function u(y,A,H){const de=y.hasOwnProperty(Vo)?y[Vo]:Object.defineProperty(y,Vo,{value:[]})[Vo];for(;de.length<=H;)de.push(null);return(de[H]=de[H]||[]).push(c),y}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}function zr(e,t,n,i){return F(()=>{const r=ql(t);function s(...c){if(this instanceof s)return r.apply(this,c),this;const u=new s(...c);return function(A,H){const de=A.constructor,_e=de.hasOwnProperty(Ho)?de[Ho]:Object.defineProperty(de,Ho,{value:{}})[Ho];_e[H]=_e.hasOwnProperty(H)&&_e[H]||[],_e[H].unshift(u),i&&i(A,H,...c)}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function qh(){return ro("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Xl(e)}))}const ef=qh();class jn{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=$({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Cb=new jn("AnalyzeForEntryComponents");class Us{}const Eb=zr("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),Us),Db=zr("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),Us),Tb=zr("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),Us),wb=zr("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),Us);var Gn=(()=>((Gn=Gn||{})[Gn.Directive=0]="Directive",Gn[Gn.Component=1]="Component",Gn[Gn.Injectable=2]="Injectable",Gn[Gn.Pipe=3]="Pipe",Gn[Gn.NgModule=4]="NgModule",Gn))();function Qn(e){const t=Nt.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Ga=Function;function Qa(e){return"function"==typeof e}function zi(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),zi(i,t)):t!==e&&t.push(i)}return t}function wr(e,t){e.forEach(n=>Array.isArray(n)?wr(n,t):t(n))}function Ya(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Co(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function oo(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function ki(e,t,n){let i=Uo(e,t);return i>=0?e[1|i]=n:(i=~i,function(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function ec(e,t){const n=Uo(e,t);if(n>=0)return e[1|n]}function Uo(e,t){return function(e,t,n){let i=0,r=e.length>>n;for(;r!==i;){const s=i+(r-i>>1),c=e[s<<n];if(t===c)return s<<n;c>t?r=s:i=s+1}return~(r<<n)}(e,t,1)}const Pb=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\))\)/,Ab=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Ob=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,xb=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class zo{constructor(t){this._reflect=t||Nt.Reflect}isReflectionEnabled(){return!0}factory(t){return(...n)=>new t(...n)}_zipTypesAndAnnotations(t,n){let i;i=oo(void 0===t?n.length:t.length);for(let r=0;r<i.length;r++)i[r]=void 0===t?[]:t[r]&&t[r]!=Object?[t[r]]:[],n&&null!=n[r]&&(i[r]=i[r].concat(n[r]));return i}_ownParameters(t,n){const i=t.toString();if(Pb.test(e=i)||xb.test(e)||Ab.test(e)&&!Ob.test(e))return null;var e;if(t.parameters&&t.parameters!==n.parameters)return t.parameters;const r=t.ctorParameters;if(r&&r!==n.ctorParameters){const u="function"==typeof r?r():r,y=u.map(H=>H&&H.type),A=u.map(H=>H&&tc(H.decorators));return this._zipTypesAndAnnotations(y,A)}const s=t.hasOwnProperty(Vo)&&t[Vo],c=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return c||s?this._zipTypesAndAnnotations(c,s):oo(t.length)}parameters(t){if(!Qa(t))return[];const n=Ja(t);let i=this._ownParameters(t,n);return!i&&n!==Object&&(i=this.parameters(n)),i||[]}_ownAnnotations(t,n){if(t.annotations&&t.annotations!==n.annotations){let i=t.annotations;return"function"==typeof i&&i.annotations&&(i=i.annotations),i}return t.decorators&&t.decorators!==n.decorators?tc(t.decorators):t.hasOwnProperty(Bo)?t[Bo]:null}annotations(t){if(!Qa(t))return[];const n=Ja(t),i=this._ownAnnotations(t,n)||[];return(n!==Object?this.annotations(n):[]).concat(i)}_ownPropMetadata(t,n){if(t.propMetadata&&t.propMetadata!==n.propMetadata){let i=t.propMetadata;return"function"==typeof i&&i.propMetadata&&(i=i.propMetadata),i}if(t.propDecorators&&t.propDecorators!==n.propDecorators){const i=t.propDecorators,r={};return Object.keys(i).forEach(s=>{r[s]=tc(i[s])}),r}return t.hasOwnProperty(Ho)?t[Ho]:null}propMetadata(t){if(!Qa(t))return{};const n=Ja(t),i={};if(n!==Object){const s=this.propMetadata(n);Object.keys(s).forEach(c=>{i[c]=s[c]})}const r=this._ownPropMetadata(t,n);return r&&Object.keys(r).forEach(s=>{const c=[];i.hasOwnProperty(s)&&c.push(...i[s]),c.push(...r[s]),i[s]=c}),i}ownPropMetadata(t){return Qa(t)&&this._ownPropMetadata(t,Ja(t))||{}}hasLifecycleHook(t,n){return t instanceof Ga&&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:`./${D(t)}`}resourceUri(t){return`./${D(t)}`}resolveIdentifier(t,n,i,r){return r}resolveEnum(t,n){return t[n]}}function tc(e){return e?e.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function Ja(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const so={},nc="__NG_DI_FLAG__",Wo="ngTempTokenPath",Fb=/\n/gm,ic="__source",rc=C({provide:String,useValue:C});let zs;function Eo(e){const t=zs;return zs=e,t}function sf(e,t=q.Default){if(void 0===zs)throw new Error("inject() must be called from an injection context");return null===zs?Ye(e,void 0,t):zs.get(e,t&q.Optional?null:void 0,t)}function $n(e,t=q.Default){return(ft()||sf)(S(e),t)}function oc(e){throw new Error("invalid")}const Lb=$n;function Do(e){const t=[];for(let n=0;n<e.length;n++){const i=S(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let r,s=q.Default;for(let c=0;c<i.length;c++){const u=i[c],y=jb(u);"number"==typeof y?-1===y?r=u.token:s|=y:r=u}t.push($n(r,s))}else t.push($n(i))}return t}function Ko(e,t){return e[nc]=t,e.prototype[nc]=t,e}function jb(e){return e[nc]}function af(e,t,n,i){const r=e[Wo];throw t[ic]&&r.unshift(t[ic]),e.message=function(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=D(t);if(Array.isArray(t))r=t.map(D).join(" -> ");else if("object"==typeof t){let s=[];for(let c in t)if(t.hasOwnProperty(c)){let u=t[c];s.push(c+":"+("string"==typeof u?JSON.stringify(u):D(u)))}r=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(Fb,"\n ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[Wo]=null,e}const cf=e=>({token:e}),Go=Ko(ro("Inject",cf),-1),Wr=Ko(ro("Optional"),8),Qo=Ko(ro("Self"),2),Kr=Ko(ro("SkipSelf"),4),uf=Ko(ro("Host"),1);let df=null;function sc(){return df=df||new zo}function Za(e){return hf(sc().parameters(e))}function hf(e){return e.map(t=>function(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 i=e[n];if(void 0===i)continue;const r=Object.getPrototypeOf(i);if(i instanceof Wr||"Optional"===r.ngMetadataName)t.optional=!0;else if(i instanceof Kr||"SkipSelf"===r.ngMetadataName)t.skipSelf=!0;else if(i instanceof Qo||"Self"===r.ngMetadataName)t.self=!0;else if(i instanceof uf||"Host"===r.ngMetadataName)t.host=!0;else if(i instanceof Go)t.token=i.token;else if(i instanceof ef){if(void 0===i.attributeName)throw new Error("Attribute name must be defined.");t.attribute=i.attributeName}else t.token=i}else t.token=void 0===e||Array.isArray(e)&&0===e.length?null:e;return t}(t))}function ff(e){const t=[],n=new Map;function i(r){let s=n.get(r);if(!s){const c=e(r);n.set(r,s=c.then($b))}return s}return Yo.forEach((r,s)=>{const c=[];r.templateUrl&&c.push(i(r.templateUrl).then(de=>{r.template=de}));const u=r.styleUrls,y=r.styles||(r.styles=[]),A=r.styles.length;u&&u.forEach((de,_e)=>{y.push(""),c.push(i(de).then(Oe=>{y[A+_e]=Oe,u.splice(u.indexOf(de),1),0==u.length&&(r.styleUrls=void 0)}))});const H=Promise.all(c).then(()=>function(e){Ws.delete(e)}(s));t.push(H)}),mf(),Promise.all(t).then(()=>{})}let Yo=new Map;const Ws=new Set;function pf(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function mf(){const e=Yo;return Yo=new Map,e}function $b(e){return"string"==typeof e?e:e.text()}let Xa,qa;function ac(){if(void 0===Xa&&(Xa=null,Nt.trustedTypes))try{Xa=Nt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Xa}function Jo(e){var t;return(null===(t=ac())||void 0===t?void 0:t.createHTML(e))||e}function lc(){if(void 0===qa&&(qa=null,Nt.trustedTypes))try{qa=Nt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return qa}function gf(e){var t;return(null===(t=lc())||void 0===t?void 0:t.createHTML(e))||e}function _f(e){var t;return(null===(t=lc())||void 0===t?void 0:t.createScript(e))||e}function yf(e){var t;return(null===(t=lc())||void 0===t?void 0:t.createScriptURL(e))||e}class To{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Kb extends To{getTypeName(){return"HTML"}}class Gb extends To{getTypeName(){return"Style"}}class Qb extends To{getTypeName(){return"Script"}}class Yb extends To{getTypeName(){return"URL"}}class Jb extends To{getTypeName(){return"ResourceURL"}}function Gr(e){return e instanceof To?e.changingThisBreaksApplicationSecurity:e}function Zo(e,t){const n=vf(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 vf(e){return e instanceof To&&e.getTypeName()||null}function Zb(e){return new Kb(e)}function Xb(e){return new Gb(e)}function qb(e){return new Qb(e)}function eC(e){return new Yb(e)}function tC(e){return new Jb(e)}function bf(e){const t=new iC(e);return function(){try{return!!(new window.DOMParser).parseFromString(Jo(""),"text/html")}catch(e){return!1}}()?new nC(t):t}class nC{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Jo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class iC{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 i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Jo(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=Jo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let r=n.length-1;0<r;r--){const c=n.item(r).name;("xmlns:ns1"===c||0===c.indexOf("ns1:"))&&t.removeAttribute(c)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const oC=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,sC=/^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 Ks(e){return(e=String(e)).match(oC)||e.match(sC)?e:"unsafe:"+e}function Cf(e){return(e=String(e)).split(",").map(t=>Ks(t.trim())).join(", ")}function Mr(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Gs(...e){const t={};for(const n of e)for(const i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}const Ef=Mr("area,br,col,hr,img,wbr"),Df=Mr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Tf=Mr("rp,rt"),cc=Gs(Ef,Gs(Df,Mr("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")),Gs(Tf,Mr("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")),Gs(Tf,Df)),uc=Mr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),dc=Mr("srcset"),wf=Gs(uc,dc,Mr("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"),Mr("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")),aC=Mr("script,style,template");class lC{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,i=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let r=this.checkClobberedElement(n,n.nextSibling);if(r){n=r;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!cc.hasOwnProperty(n))return this.sanitizedSomething=!0,!aC.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const i=t.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),c=s.name,u=c.toLowerCase();if(!wf.hasOwnProperty(u)){this.sanitizedSomething=!0;continue}let y=s.value;uc[u]&&(y=Ks(y)),dc[u]&&(y=Cf(y)),this.buf.push(" ",c,'="',Mf(y),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();cc.hasOwnProperty(n)&&!Ef.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Mf(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 cC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,uC=/([^\#-~ |!])/g;function Mf(e){return e.replace(/&/g,"&amp;").replace(cC,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(uC,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let el;function Sf(e,t){let n=null;try{el=el||bf(e);let i=t?String(t):"";n=el.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=el.getInertBodyElement(i)}while(i!==s);return Jo((new lC).sanitizeChildren(hc(n)||n))}finally{if(n){const i=hc(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function hc(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Bn=(()=>((Bn=Bn||{})[Bn.NONE=0]="NONE",Bn[Bn.HTML=1]="HTML",Bn[Bn.STYLE=2]="STYLE",Bn[Bn.SCRIPT=3]="SCRIPT",Bn[Bn.URL=4]="URL",Bn[Bn.RESOURCE_URL=5]="RESOURCE_URL",Bn))();function If(e){const t=Qs();return t?gf(t.sanitize(Bn.HTML,e)||""):Zo(e,"HTML")?gf(Gr(e)):Sf(Tr(),be(e))}function Pf(e){const t=Qs();return t?t.sanitize(Bn.STYLE,e)||"":Zo(e,"Style")?Gr(e):be(e)}function fc(e){const t=Qs();return t?t.sanitize(Bn.URL,e)||"":Zo(e,"URL")?Gr(e):Ks(be(e))}function pc(e){const t=Qs();if(t)return yf(t.sanitize(Bn.RESOURCE_URL,e)||"");if(Zo(e,"ResourceURL"))return yf(Gr(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Af(e){const t=Qs();if(t)return _f(t.sanitize(Bn.SCRIPT,e)||"");if(Zo(e,"Script"))return _f(Gr(e));throw new Error("unsafe value used in a script context")}function Of(e){return Jo(e[0])}function xf(e){return function(e){var t;return(null===(t=ac())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function Rf(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?pc:fc}function kf(e,t,n){return Rf(t,n)(e)}function Qs(){const e=Mt();return e&&e[12]}function di(e){let t=Ys(e);if(t){if(Array.isArray(t)){const n=t;let i,r,s;if(function(e){return e&&e.constructor&&e.constructor.\u0275cmp}(e)){if(i=jf(n,e),-1==i)throw new Error("The provided component was not found in the application");r=e}else if(function(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(i=function(e,t){let n=e[1].firstChild;for(;n;){const r=n.directiveEnd;for(let s=n.directiveStart;s<r;s++)if(e[s]===t)return n.index;n=pC(n)}return-1}(n,e),-1==i)throw new Error("The provided directive was not found in the application");s=Bf(i,n,!1)}else if(i=Lf(n,e),-1==i)return null;const c=v(n[i]),u=Ys(c),y=u&&!Array.isArray(u)?u:mc(n,i,c);if(r&&void 0===y.component&&(y.component=r,hi(y.component,y)),s&&void 0===y.directives){y.directives=s;for(let A=0;A<s.length;A++)hi(s[A],y)}hi(y.native,y),t=y}}else{const n=e;let i=n;for(;i=i.parentNode;){const r=Ys(i);if(r){let s;if(s=Array.isArray(r)?r:r.lView,!s)return null;const c=Lf(s,n);if(c>=0){const u=v(s[c]),y=mc(s,c,u);hi(u,y),t=y;break}}}}return t||null}function mc(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Ff(e){let n,t=Ys(e);if(Array.isArray(t)){const i=jf(t,e);n=bn(i,t);const r=mc(t,i,n[0]);r.component=e,hi(e,r),hi(r.native,r)}else n=bn(t.nodeIndex,t.lView);return n}const Nf="__ngContext__";function hi(e,t){e[Nf]=t}function Ys(e){return e[Nf]||null}function gc(e){const t=Ys(e);return t?Array.isArray(t)?t:t.lView:null}function Lf(e,t){const n=e[1];for(let i=20;i<n.bindingStartIndex;i++)if(v(e[i])===t)return i;return-1}function pC(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 jf(e,t){const n=e[1].components;if(n)for(let i=0;i<n.length;i++){const r=n[i];if(bn(r,e)[8]===t)return r}else if(bn(20,e)[8]===t)return 20;return-1}function Bf(e,t,n){const i=t[1].data[e];let r=i.directiveStart;return 0==r?Lt:(!n&&2&i.flags&&r++,t.slice(r,i.directiveEnd))}const Vf="ngDebugContext",_c="ngOriginalError",Hf="ngErrorLogger";function $f(e){return e[Vf]}function tl(e){return e[_c]}function CC(e,...t){e.error(...t)}class Xo{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=this._findContext(t),r=(e=t)&&e[Hf]||CC;var e;r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n),i&&r(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?$f(t)||this._findContext(tl(t)):null}_findOriginalError(t){let n=t&&tl(t);for(;n&&tl(n);)n=tl(n);return n||null}}const Uf={name:"custom-elements"},zf={name:"no-errors-schema"},EC=/^>|^->|<!--|-->|--!>|<!-$/g,DC=/(<|>)/;function nl(e){return e.replace(EC,t=>t.replace(DC,"\u200b$1\u200b"))}function Wf(e){return`ng-reflect-${e=function(e){return e.replace(wC,(...t)=>"-"+t[1].toLowerCase())}(e.replace(/[$@]/g,"_"))}`}const wC=/([A-Z])/g;function Kf(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}const Gf=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Nt))();function Qf(e){return e.ownerDocument.defaultView}function Yf(e){return e.ownerDocument}function Jf(e){return e.ownerDocument.body}function Sr(e){return e instanceof Function?e():e}var Ir=(()=>((Ir=Ir||{})[Ir.Important=1]="Important",Ir[Ir.DashCase=2]="DashCase",Ir))();let yc;function vc(e,t){return yc(e,t)}function Js(e){const t=e[3];return Cn(t)?t[3]:t}function bc(e){return function(e){let t=ti(e)?e:gc(e);for(;t&&!(512&t[2]);)t=Js(t);return t}(e)[8]}function Cc(e){return ep(e[13])}function Ec(e){return ep(e[4])}function ep(e){for(;null!==e&&!Cn(e);)e=e[4];return e}function es(e,t,n,i,r){if(null!=i){let s,c=!1;Cn(i)?s=i:ti(i)&&(c=!0,i=i[0]);const u=v(i);0===e&&null!==n?null==r?sp(t,n,u):wo(t,n,u,r||null,!0):1===e&&null!==n?wo(t,n,u,r||null,!0):2===e?fp(t,u,c):3===e&&t.destroyNode(u),null!=s&&function(e,t,n,i,r){const s=n[7];s!==v(n)&&es(t,e,i,s,r);for(let u=10;u<n.length;u++){const y=n[u];Zs(y[1],y,e,t,i,s)}}(t,e,s,n,r)}}function Dc(e,t){return O(e)?e.createText(t):e.createTextNode(t)}function tp(e,t,n){O(e)?e.setValue(t,n):t.textContent=n}function IC(e,t){return e.createComment(nl(t))}function Tc(e,t,n){return O(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function np(e,t){const n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,Ii(r,-1)),n.splice(i,1)}function wc(e,t){if(e.length<=10)return;const n=10+t,i=e[n];if(i){const r=i[17];null!==r&&r!==e&&np(r,i),t>0&&(e[n-1][4]=i[4]);const s=Co(e,10+t);!function(e,t){Zs(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const c=s[19];null!==c&&c.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function ip(e,t){if(!(256&t[2])){const n=t[11];O(n)&&n.destroyNode&&Zs(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Mc(e[1],e);for(;t;){let n=null;if(ti(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)ti(t)&&Mc(t[1],t),t=t[3];null===t&&(t=e),ti(t)&&Mc(t[1],t),n=t&&t[4]}t=n}}(t)}}function Mc(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const r=t[n[i]];if(!(r instanceof Ri)){const s=n[i+1];if(Array.isArray(s))for(let c=0;c<s.length;c+=2){const u=r[s[c]],y=s[c+1];Rn(4,u,y);try{y.call(u)}finally{Rn(5,u,y)}}else{Rn(4,r,s);try{s.call(r)}finally{Rn(5,r,s)}}}}}(e,t),function(e,t){const n=e.cleanup,i=t[7];let r=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const c=n[s+1],u="function"==typeof c?c(t):v(t[c]),y=i[r=n[s+2]],A=n[s+3];"boolean"==typeof A?u.removeEventListener(n[s],y,A):A>=0?i[r=A]():i[r=-A].unsubscribe(),s+=2}else{const c=i[r=n[s+1]];n[s].call(c)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();t[7]=null}}(e,t),1===t[1].type&&O(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&Cn(t[3])){n!==t[3]&&np(n,t);const i=t[19];null!==i&&i.detachView(e)}}}function rp(e,t,n){return op(e,t.parent,n)}function op(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){const r=e.data[i.directiveStart].encapsulation;if(r===ie.None||r===ie.Emulated)return null}return St(i,n)}function wo(e,t,n,i,r){O(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function sp(e,t,n){O(e)?e.appendChild(t,n):t.appendChild(n)}function ap(e,t,n,i,r){null!==i?wo(e,t,n,i,r):sp(e,t,n)}function il(e,t){return O(e)?e.parentNode(t):t.parentNode}function lp(e,t,n){return up(e,t,n)}function cp(e,t,n){return 40&e.type?St(e,n):null}let Sc,up=cp;function dp(e,t){up=e,Sc=t}function rl(e,t,n,i){const r=rp(e,i,t),s=t[11],u=lp(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(let y=0;y<n.length;y++)ap(s,r,n[y],u,!1);else ap(s,r,n,u,!1);void 0!==Sc&&Sc(s,i,t,n,r)}function ol(e,t){if(null!==t){const n=t.type;if(3&n)return St(t,e);if(4&n)return Ic(-1,e[t.index]);if(8&n){const i=t.child;if(null!==i)return ol(e,i);{const r=e[t.index];return Cn(r)?Ic(-1,r):v(r)}}if(32&n)return vc(t,e)()||v(e[t.index]);{const i=hp(e,t);return null!==i?Array.isArray(i)?i[0]:ol(Js(e[16]),i):ol(e,t.next)}}return null}function hp(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Ic(e,t){const n=10+e+1;if(n<t.length){const i=t[n],r=i[1].firstChild;if(null!==r)return ol(i,r)}return t[7]}function fp(e,t,n){const i=il(e,t);i&&function(e,t,n,i){O(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}function Pc(e,t,n,i,r,s,c){for(;null!=n;){const u=i[n.index],y=n.type;if(c&&0===t&&(u&&hi(v(u),i),n.flags|=4),64!=(64&n.flags))if(8&y)Pc(e,t,n.child,i,r,s,!1),es(t,e,r,u,s);else if(32&y){const A=vc(n,i);let H;for(;H=A();)es(t,e,r,H,s);es(t,e,r,u,s)}else 16&y?pp(e,t,i,n,r,s):es(t,e,r,u,s);n=c?n.projectionNext:n.next}}function Zs(e,t,n,i,r,s){Pc(n,i,e.firstChild,t,r,s,!1)}function pp(e,t,n,i,r,s){const c=n[16],y=c[6].projection[i.projection];if(Array.isArray(y))for(let A=0;A<y.length;A++)es(t,e,r,y[A],s);else Pc(e,t,y,c[3],r,s,!0)}function mp(e,t,n){O(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Ac(e,t,n){O(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function gp(e,t,n){let i=e.length;for(;;){const r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||e.charCodeAt(r+s)<=32)return r}n=r+1}}const _p="ng-template";function $C(e,t,n){let i=0;for(;i<e.length;){let r=e[i++];if(n&&"class"===r){if(r=e[i],-1!==gp(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function yp(e){return 4===e.type&&e.value!==_p}function UC(e,t,n){return t===(4!==e.type||n?e.value:_p)}function zC(e,t,n){let i=4;const r=e.attrs||[],s=function(e){for(let t=0;t<e.length;t++)if(Vh(e[t]))return t;return e.length}(r);let c=!1;for(let u=0;u<t.length;u++){const y=t[u];if("number"!=typeof y){if(!c)if(4&i){if(i=2|1&i,""!==y&&!UC(e,y,n)||""===y&&1===t.length){if(rr(i))return!1;c=!0}}else{const A=8&i?y:t[++u];if(8&i&&null!==e.attrs){if(!$C(e.attrs,A,n)){if(rr(i))return!1;c=!0}continue}const de=WC(8&i?"class":y,r,yp(e),n);if(-1===de){if(rr(i))return!1;c=!0;continue}if(""!==A){let _e;_e=de>s?"":r[de+1].toLowerCase();const Oe=8&i?_e:null;if(Oe&&-1!==gp(Oe,A,0)||2&i&&A!==_e){if(rr(i))return!1;c=!0}}}}else{if(!c&&!rr(i)&&!rr(y))return!1;if(c&&rr(y))continue;c=!1,i=y|1&i}}return rr(i)||c}function rr(e){return 0==(1&e)}function WC(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let s=!1;for(;r<t.length;){const c=t[r];if(c===e)return r;if(3===c||6===c)s=!0;else{if(1===c||2===c){let u=t[++r];for(;"string"==typeof u;)u=t[++r];continue}if(4===c)break;if(0===c){r+=4;continue}}r+=s?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function vp(e,t,n=!1){for(let i=0;i<t.length;i++)if(zC(e,t[i],n))return!0;return!1}function YC(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function bp(e,t){return e?":not("+t.trim()+")":t}function JC(e){let t=e[0],n=1,i=2,r="",s=!1;for(;n<e.length;){let c=e[n];if("string"==typeof c)if(2&i){const u=e[++n];r+="["+c+(u.length>0?'="'+u+'"':"")+"]"}else 8&i?r+="."+c:4&i&&(r+=" "+c);else""!==r&&!rr(c)&&(t+=bp(s,r),r=""),i=c,s=s||!rr(i);n++}return""!==r&&(t+=bp(s,r)),t}const on={};function Cp(e){Ep(pn(),Mt(),Fn()+e,Z())}function Ep(e,t,n,i){if(!i)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&Ai(t,s,n)}else{const s=e.preOrderHooks;null!==s&&Sn(t,s,0,n)}ir(n)}function sl(e,t){return e<<17|t<<2}function or(e){return e>>17&32767}function Oc(e){return 2|e}function Qr(e){return(131068&e)>>2}function xc(e,t){return-131069&e|t<<2}function Rc(e){return 1|e}const Bc=(()=>Promise.resolve(null))();function xp(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],s=n[i+1];if(-1!==s){const c=e.data[s];An(r),c.contentQueries(2,t[s],s)}}}function Xs(e,t,n,i,r,s,c,u,y,A){const H=t.blueprint.slice();return H[0]=r,H[2]=140|i,Bi(H),H[3]=H[15]=e,H[8]=n,H[10]=c||e&&e[10],H[11]=u||e&&e[11],H[12]=y||e&&e[12]||null,H[9]=A||e&&e[9]||null,H[6]=s,H[16]=2==t.type?e[16]:H,H}function ts(e,t,n,i,r){let s=e.data[t];if(null===s)s=Vc(e,t,n,i,r),Yt.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;const c=yo();s.injectorIndex=null===c?-1:c.injectorIndex}return Vi(s,!0),s}function Vc(e,t,n,i,r){const s=Fo(),c=G(),y=e.data[t]=function(e,t,n,i,r,s){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,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,c?s:s&&s.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=y),null!==s&&(c?null==s.child&&null!==y.parent&&(s.child=y):null===s.next&&(s.next=y)),y}function ns(e,t,n,i){if(0===n)return-1;const r=t.length;for(let s=0;s<n;s++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function qs(e,t,n){nr(t);try{const i=e.viewQuery;null!==i&&Yc(1,i,n);const r=e.template;null!==r&&Rp(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&xp(e,t),e.staticViewQueries&&Yc(2,e.viewQuery,n);const s=e.components;null!==s&&function(e,t){for(let n=0;n<t.length;n++)PE(e,t[n])}(t,s)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{t[2]&=-5,Ei()}}function is(e,t,n,i){const r=t[2];if(256==(256&r))return;nr(t);const s=Z();try{Bi(t),rt(e.bindingStartIndex),null!==n&&Rp(e,t,n,2,i);const c=3==(3&r);if(!s)if(c){const A=e.preOrderCheckHooks;null!==A&&Ai(t,A,null)}else{const A=e.preOrderHooks;null!==A&&Sn(t,A,0,null),js(t,0)}if(function(e){for(let t=Cc(e);null!==t;t=Ec(t)){if(!t[2])continue;const n=t[9];for(let i=0;i<n.length;i++){const r=n[i],s=r[3];0==(1024&r[2])&&Ii(s,1),r[2]|=1024}}}(t),function(e){for(let t=Cc(e);null!==t;t=Ec(t))for(let n=10;n<t.length;n++){const i=t[n],r=i[1];Ln(i)&&is(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&xp(e,t),!s)if(c){const A=e.contentCheckHooks;null!==A&&Ai(t,A)}else{const A=e.contentHooks;null!==A&&Sn(t,A,1),js(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let i=0;i<n.length;i++){const r=n[i];if(r<0)ir(~r);else{const s=r,c=n[++i],u=n[++i];mn(c,s),u(2,t[s])}}}finally{ir(-1)}}(e,t);const u=e.components;null!==u&&function(e,t){for(let n=0;n<t.length;n++)IE(e,t[n])}(t,u);const y=e.viewQuery;if(null!==y&&Yc(2,y,i),!s)if(c){const A=e.viewCheckHooks;null!==A&&Ai(t,A)}else{const A=e.viewHooks;null!==A&&Sn(t,A,2),js(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),s||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Ii(t[3],-1))}finally{Ei()}}function cE(e,t,n,i){const r=t[10],s=!Z(),c=Tn(t);try{s&&!c&&r.begin&&r.begin(),c&&qs(e,t,i),is(e,t,n,i)}finally{s&&!c&&r.end&&r.end()}}function Rp(e,t,n,i,r){const s=Fn(),c=2&i;try{ir(-1),c&&t.length>20&&Ep(e,t,20,Z()),Rn(c?2:0,r),n(i,r)}finally{ir(s),Rn(c?3:1,r)}}function kp(e,t,n){if(Ci(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s<r;s++){const c=e.data[s];c.contentQueries&&c.contentQueries(1,n[s],s)}}}function Hc(e,t,n){!Rs()||(function(e,t,n,i){const r=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||Hs(n,t),hi(i,t);const c=n.initialInputs;for(let u=r;u<s;u++){const y=e.data[u],A=ni(y);A&&DE(t,n,y);const H=$s(t,e,u,n);hi(H,t),null!==c&&TE(0,u-r,H,y,0,c),A&&(bn(n.index,t)[8]=H)}}(e,t,n,St(n,t)),128==(128&n.flags)&&function(e,t,n){const i=n.directiveStart,r=n.directiveEnd,c=n.index,u=Yt.lFrame.currentDirectiveIndex;try{ir(c);for(let y=i;y<r;y++){const A=e.data[y],H=t[y];en(y),(null!==A.hostBindings||0!==A.hostVars||null!==A.hostAttrs)&&$p(A,H)}}finally{ir(-1),en(u)}}(e,t,n))}function $c(e,t,n=St){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const c=i[s+1],u=-1===c?n(t,e):e[c];e[r++]=u}}}function Fp(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=cl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function cl(e,t,n,i,r,s,c,u,y,A){const H=20+i,de=H+r,_e=function(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:on);return n}(H,de),Oe="function"==typeof A?A():A;return _e[1]={type:e,blueprint:_e,template:n,queries:null,viewQuery:u,declTNode:t,data:_e.slice().fill(null,H),bindingStartIndex:H,expandoStartIndex:de,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 s?s():s,pipeRegistry:"function"==typeof c?c():c,firstChild:null,schemas:y,consts:Oe,incompleteFirstPass:!1}}function Lp(e,t,n){if(O(e))return e.selectRootElement(t,n===ie.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}function jp(e,t,n,i){const r=Qp(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&Yp(e).push(i,r.length-1))}function Bp(e,t,n){for(let i in e)if(e.hasOwnProperty(i)){const r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function Fi(e,t,n,i,r,s,c,u){const y=St(t,n);let H,A=t.inputs;!u&&null!=A&&(H=A[i])?(Xp(e,n,H,i,r),ci(t)&&function(e,t){const n=bn(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i=function(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=c?c(r,t.value||"",i):r,O(s)?s.setProperty(y,i,r):Gl(i)||(y.setProperty?y.setProperty(i,r):y[i]=r))}function Uc(e,t,n,i){let r=!1;if(Rs()){const s=function(e,t,n){const i=e.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const c=i[s];vp(n,c.selectors,!1)&&(r||(r=[]),Wa(Hs(n,t),e,c.type),ni(c)?(Up(e,n),r.unshift(c)):r.push(c))}return r}(e,t,n),c=null===i?null:{"":-1};if(null!==s){r=!0,zp(n,e.data.length,s.length);for(let H=0;H<s.length;H++){const de=s[H];de.providersResolver&&de.providersResolver(de)}let u=!1,y=!1,A=ns(e,t,s.length,null);for(let H=0;H<s.length;H++){const de=s[H];n.mergedAttrs=$a(n.mergedAttrs,de.hostAttrs),Wp(e,n,t,A,de),EE(A,de,c),null!==de.contentQueries&&(n.flags|=8),(null!==de.hostBindings||null!==de.hostAttrs||0!==de.hostVars)&&(n.flags|=128);const _e=de.type.prototype;!u&&(_e.ngOnChanges||_e.ngOnInit||_e.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),u=!0),!y&&(_e.ngOnChanges||_e.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),y=!0),A++}!function(e,t){const i=t.directiveEnd,r=e.data,s=t.attrs,c=[];let u=null,y=null;for(let A=t.directiveStart;A<i;A++){const H=r[A],de=H.inputs,_e=null===s||yp(t)?null:wE(de,s);c.push(_e),u=Bp(de,A,u),y=Bp(H.outputs,A,y)}null!==u&&(u.hasOwnProperty("class")&&(t.flags|=16),u.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=c,t.inputs=u,t.outputs=y}(e,n)}c&&function(e,t,n){if(t){const i=e.localNames=[];for(let r=0;r<t.length;r+=2){const s=n[t[r+1]];if(null==s)throw new j("301",`Export of name '${t[r+1]}' not found!`);i.push(t[r],s)}}}(n,i,c)}return n.mergedAttrs=$a(n.mergedAttrs,n.attrs),r}function Hp(e,t,n,i,r,s){const c=s.hostBindings;if(c){let u=e.hostBindingOpCodes;null===u&&(u=e.hostBindingOpCodes=[]);const y=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(u)!=y&&u.push(y),u.push(i,r,c)}}function $p(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Up(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function EE(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;ni(t)&&(n[""]=e)}}function zp(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Wp(e,t,n,i,r){e.data[i]=r;const s=r.factory||(r.factory=yi(r.type)),c=new Ri(s,ni(r),null);e.blueprint[i]=c,n[i]=c,Hp(e,t,0,i,ns(e,n,r.hostVars,on),r)}function DE(e,t,n){const i=St(t,e),r=Fp(n),s=e[10],c=ul(e,Xs(e,r,null,n.onPush?64:16,i,t,s,s.createRenderer(i,n),null,null));e[t.index]=c}function Pr(e,t,n,i,r,s){const c=St(e,t);zc(t[11],c,s,e.value,n,i,r)}function zc(e,t,n,i,r,s,c){if(null==s)O(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{const u=null==c?be(s):c(s,i||"",r);O(e)?e.setAttribute(t,r,u,n):n?t.setAttributeNS(n,r,u):t.setAttribute(r,u)}}function TE(e,t,n,i,r,s){const c=s[t];if(null!==c){const u=i.setInput;for(let y=0;y<c.length;){const A=c[y++],H=c[y++],de=c[y++];null!==u?i.setInput(n,de,A,H):n[H]=de}}}function wE(e,t){let n=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Kp(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function IE(e,t){const n=bn(t,e);if(Ln(n)){const i=n[1];80&n[2]?is(i,n,i.template,n[8]):n[5]>0&&Wc(n)}}function Wc(e){for(let i=Cc(e);null!==i;i=Ec(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const c=s[1];is(c,s,c.template,s[8])}else s[5]>0&&Wc(s)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const r=bn(n[i],e);Ln(r)&&r[5]>0&&Wc(r)}}function PE(e,t){const n=bn(t,e),i=n[1];(function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(i,n),qs(i,n,n[8])}function ul(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Kc(e){for(;e;){e[2]|=64;const t=Js(e);if(Un(e)&&!t)return e;e=t}return null}function Gc(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=gc(n),r=i[1];cE(r,i,r.template,n)}}function Qc(e,t,n){const i=t[10];i.begin&&i.begin();try{is(e,t,e.template,n)}catch(r){throw Zp(t,r),r}finally{i.end&&i.end()}}function Gp(e){Gc(e[8])}function Yc(e,t,n){An(0),t(e,n)}const kE=Bc;function Qp(e){return e[7]||(e[7]=[])}function Yp(e){return e.cleanup||(e.cleanup=[])}function Jp(e,t,n){return(null===e||ni(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Zp(e,t){const n=e[9],i=n?n.get(Xo,null):null;i&&i.handleError(t)}function Xp(e,t,n,i,r){for(let s=0;s<n.length;){const c=n[s++],u=n[s++],y=t[c],A=e.data[c];null!==A.setInput?A.setInput(y,r,i,u):y[u]=r}}function Jr(e,t,n){const i=Qe(t,e);tp(e[11],i,n)}function dl(e,t,n){let i=n?e.styles:null,r=n?e.classes:null,s=0;if(null!==t)for(let c=0;c<t.length;c++){const u=t[c];"number"==typeof u?s=u:1==s?r=g(r,u):2==s&&(i=g(i,u+": "+t[++c]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}function qp(e){const t=Ff(e);Qc(t[1],t,e)}function em(e){!function(e,t){if(0===e.flags&&e.clean==Bc){let i;e.flags|=1,e.clean=new Promise(r=>i=r),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Gc(e)),2&e.flags){e.flags&=-3;const r=e.playerHandler;r&&r.flushPlayers()}e.clean=Bc,i(null)})}}(Kc(Ff(e))[8])}const co=new jn("INJECTOR",-1);class Jc{get(t,n=so){if(n===so){const i=new Error(`NullInjectorError: No provider for ${D(t)}!`);throw i.name="NullInjectorError",i}return n}}const ea=new jn("Set Injector scope."),ta={},FE={};let Zc;function tm(){return void 0===Zc&&(Zc=new Jc),Zc}function nm(e,t=null,n=null,i){const r=im(e,t,n,i);return r._resolveInjectorDefTypes(),r}function im(e,t=null,n=null,i){return new NE(e,n,t||tm(),i)}class NE{constructor(t,n,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];n&&wr(n,u=>this.processProvider(u,t,n)),wr([t],u=>this.processInjectorType(u,[],s)),this.records.set(co,rs(void 0,this));const c=this.records.get(ea);this.scope=null!=c?c.value:null,this.source=r||("object"==typeof t?null:D(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=so,i=q.Default){this.assertNotDestroyed();const r=Eo(this),s=vt(void 0);try{if(!(i&q.SkipSelf)){let u=this.records.get(t);if(void 0===u){const y=("function"==typeof(e=t)||"object"==typeof e&&e instanceof jn)&&ue(t);u=y&&this.injectableDefInScope(y)?rs(Xc(t),ta):null,this.records.set(t,u)}if(null!=u)return this.hydrate(t,u)}return(i&q.Self?tm():this.parent).get(t,n=i&q.Optional&&n===so?null:n)}catch(c){if("NullInjectorError"===c.name){if((c[Wo]=c[Wo]||[]).unshift(D(t)),r)throw c;return af(c,t,"R3InjectorError",this.source)}throw c}finally{vt(s),Eo(r)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(D(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,i){if(!(t=S(t)))return!1;let r=st(t);const s=null==r&&t.ngModule||void 0,c=void 0===s?t:s,u=-1!==i.indexOf(c);if(void 0!==s&&(r=st(s)),null==r)return!1;if(null!=r.imports&&!u){let H;i.push(c);try{wr(r.imports,de=>{this.processInjectorType(de,n,i)&&(void 0===H&&(H=[]),H.push(de))})}finally{}if(void 0!==H)for(let de=0;de<H.length;de++){const{ngModule:_e,providers:Oe}=H[de];wr(Oe,We=>this.processProvider(We,_e,Oe||Lt))}}this.injectorDefTypes.add(c);const y=yi(c)||(()=>new c);this.records.set(c,rs(y,ta));const A=r.providers;if(null!=A&&!u){const H=t;wr(A,de=>this.processProvider(de,H,A))}return void 0!==s&&void 0!==t.providers}processProvider(t,n,i){let r=os(t=S(t))?t:S(t&&t.provide);const s=om(e=t)?rs(void 0,e.useValue):rs(rm(e),ta);var e;if(os(t)||!0!==t.multi)this.records.get(r);else{let c=this.records.get(r);c||(c=rs(void 0,ta,!0),c.factory=()=>Do(c.multi),this.records.set(r,c)),r=t,c.multi.push(t)}this.records.set(r,s)}hydrate(t,n){return n.value===ta&&(n.value=FE,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(e=n.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const n=S(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Xc(e){const t=ue(e),n=null!==t?t.factory:yi(e);if(null!==n)return n;if(e instanceof jn)throw new Error(`Token ${D(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const i=oo(t,"?");throw new Error(`Can't resolve all parameters for ${D(e)}: (${i.join(", ")}).`)}const n=function(e){const t=e&&(e[wt]||e[ze]);if(t){const n=function(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 rm(e,t,n){let i;if(os(e)){const r=S(e);return yi(r)||Xc(r)}if(om(e))i=()=>S(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Do(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))i=()=>$n(S(e.useExisting));else{const r=S(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return yi(r)||Xc(r);i=()=>new r(...Do(e.deps))}return i}function rs(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function om(e){return null!==e&&"object"==typeof e&&rc in e}function os(e){return"function"==typeof e}function sm(e,t,n){return nm({name:n},t,e,n)}const am=sm;let In=(()=>{class e{static create(n,i){return Array.isArray(n)?am(n,i,""):am(n.providers,n.parent,n.name||"")}}return e.THROW_IF_NOT_FOUND=so,e.NULL=new Jc,e.\u0275prov=$({token:e,providedIn:"any",factory:()=>$n(co)}),e.__NG_ELEMENT_ID__=-1,e})();function nu(e){ru(e);const t=di(e);return null===t?null:(void 0===t.component&&(t.component=function(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function hm(e){ru(e);const t=di(e);return null===t?null:t.lView[8]}function fm(e){const t=di(e);if(null===t)return null;let i,n=t.lView;for(;2===n[1].type&&(i=Js(n));)n=i;return 512&n[2]?null:n[8]}function pm(e){return[...bc(e).components]}function mm(e){const t=di(e);return null===t?In.NULL:new jo(t.lView[1].data[t.nodeIndex],t.lView)}function gm(e){if(e instanceof Text)return[];const t=di(e);if(null===t)return[];const n=t.lView,i=n[1],r=t.nodeIndex;return(null==i?void 0:i.data[r])?(void 0===t.directives&&(t.directives=Bf(r,n,!1)),null===t.directives?[]:[...t.directives]):[]}function JE(e){const{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");const n=an(t);if(n)return{inputs:n.inputs,outputs:n.outputs,encapsulation:n.encapsulation,changeDetection:n.onPush?R.OnPush:R.Default};const i=un(t);return i?{inputs:i.inputs,outputs:i.outputs}:null}function iu(e){return di(e).native}function _m(e){ru(e);const t=di(e);if(null===t)return[];const n=t.lView,r=n[7],s=n[1].cleanup,c=[];if(s&&r)for(let u=0;u<s.length;){const y=s[u++],A=s[u++];if("string"==typeof y){const H=y,de=v(n[A]),_e=r[s[u++]],Oe=s[u++],We="boolean"==typeof Oe||Oe>=0?"dom":"output",ct="boolean"==typeof Oe&&Oe;e==de&&c.push({element:e,name:H,callback:_e,useCapture:ct,type:We})}}return c.sort(XE),c}function XE(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function qE(e){return void 0!==e.type&&void 0!==e.template&&void 0!==e.declaredInputs}function ru(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}function eD(e){em(e),pm(e).forEach(t=>qp(t))}let vm=!1;function tD(){vm||(vm=!0,Ki("\u0275setProfiler",$r),Ki("getDirectiveMetadata",JE),Ki("getComponent",nu),Ki("getContext",hm),Ki("getListeners",_m),Ki("getOwningComponent",fm),Ki("getHostElement",iu),Ki("getInjector",mm),Ki("getRootComponents",pm),Ki("getDirectives",gm),Ki("applyChanges",eD))}function Ki(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=Nt;if(n){let i=n.ng;i||(i=n.ng={}),i[e]=t}}}function nD(e,t={}){const n=t.rendererFactory||k,i=t.sanitizer||null,r=an(e);r.type!=e&&(r.type=e);const s=r.selectors[0][0],u=Lp(n.createRenderer(null,null),t.host||s,r.encapsulation),y=r.onPush?576:528,A=Em(t.scheduler,t.playerHandler),H=n.createRenderer(u,r),de=cl(0,null,null,1,0,null,null,null,null,null),_e=Xs(null,de,A,y,null,null,n,H,null,t.injector||null);let Oe;nr(_e);try{n.begin&&n.begin(),Oe=Cm(bm(u,r,_e,n,H,i),r,_e,A,t.hostFeatures||null),qs(de,_e,null),is(de,_e,null,null)}finally{Ei(),n.end&&n.end()}return Oe}function bm(e,t,n,i,r,s){const c=n[1];n[20]=e;const y=ts(c,20,2,"#host",null),A=y.mergedAttrs=t.hostAttrs;null!==A&&(dl(y,A,!0),null!==e&&(Ha(r,e,A),null!==y.classes&&Ac(r,e,y.classes),null!==y.styles&&mp(r,e,y.styles)));const H=i.createRenderer(e,t),de=Xs(n,Fp(t),null,t.onPush?64:16,n[20],y,i,H,s||null,null);return c.firstCreatePass&&(Wa(Hs(y,n),c,t.type),Up(c,y),zp(y,n.length,1)),ul(n,de),n[20]=de}function Cm(e,t,n,i,r){const s=n[1],c=function(e,t,n){const i=kn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Wp(e,i,t,ns(e,t,1,null),n));const r=$s(t,e,i.directiveStart,i);hi(r,t);const s=St(i,t);return s&&hi(s,t),r}(s,n,t);if(i.components.push(c),e[8]=c,r&&r.forEach(y=>y(c,t)),t.contentQueries){const y=kn();t.contentQueries(1,c,y.directiveStart)}const u=kn();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(ir(u.index),Hp(n[1],u,0,u.directiveStart,u.directiveEnd,t),$p(t,c)),c}function Em(e,t){return{components:[],scheduler:e||Gf,clean:kE,playerHandler:t||null,flags:0}}function Dm(e,t){oi(gc(e)[1],kn())}function iD(e){return bc(e).clean}function Tm(e){return Object.getPrototypeOf(e.prototype).constructor}function ou(e){let t=Tm(e.type),n=!0;const i=[e];for(;t;){let r;if(ni(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);const c=e;c.inputs=su(e.inputs),c.declaredInputs=su(e.declaredInputs),c.outputs=su(e.outputs);const u=r.hostBindings;u&&aD(e,u);const y=r.viewQuery,A=r.contentQueries;if(y&&oD(e,y),A&&sD(e,A),w(e.inputs,r.inputs),w(e.declaredInputs,r.declaredInputs),w(e.outputs,r.outputs),ni(r)&&r.data.animation){const H=e.data;H.animation=(H.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let c=0;c<s.length;c++){const u=s[c];u&&u.ngInherit&&u(e),u===ou&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=$a(r.hostAttrs,n=$a(n,r.hostAttrs))}}(i)}function su(e){return e===At?{}:e===Lt?[]:e}function oD(e,t){const n=e.viewQuery;e.viewQuery=n?(i,r)=>{t(i,r),n(i,r)}:t}function sD(e,t){const n=e.contentQueries;e.contentQueries=n?(i,r,s)=>{t(i,r,s),n(i,r,s)}:t}function aD(e,t){const n=e.hostBindings;e.hostBindings=n?(i,r)=>{t(i,r),n(i,r)}:t}const lD=["providersResolver"],cD=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function wm(e){let n,t=Tm(e.type);n=ni(e)?t.\u0275cmp:t.\u0275dir;const i=e;for(const r of lD)i[r]=n[r];if(ni(n))for(const r of cD)i[r]=n[r]}let hl=null;function ss(){if(!hl){const e=Nt.Symbol;if(e&&e.iterator)hl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(hl=i)}}}return hl}function au(e,t){const n=ia(e),i=ia(t);return n&&i?function(e,t,n){const i=e[ss()](),r=t[ss()]();for(;;){const s=i.next(),c=r.next();if(s.done&&c.done)return!0;if(s.done||c.done||!n(s.value,c.value))return!1}}(e,t,au):!(n||!e||"object"!=typeof e&&"function"!=typeof e||i||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}class Gi{constructor(t){this.wrapped=t}static wrap(t){return new Gi(t)}static unwrap(t){return Gi.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Gi}}function ia(e){return!!lu(e)&&(Array.isArray(e)||!(e instanceof Map)&&ss()in e)}function lu(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ar(e,t,n){return e[t]=n}function ra(e,t){return e[t]}function fi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Mo(e,t,n,i){const r=fi(e,t,n);return fi(e,t+1,i)||r}function fl(e,t,n,i,r){const s=Mo(e,t,n,i);return fi(e,t+2,r)||s}function Qi(e,t,n,i,r,s){const c=Mo(e,t,n,i);return Mo(e,t+2,r,s)||c}function cu(e,t,n,i){const r=Mt();return fi(r,bt(),t)&&(pn(),Pr(On(),r,e,t,n,i)),cu}function as(e,t){let n=!1,i=ke();for(let s=1;s<t.length;s+=2)n=fi(e,i++,t[s])||n;if(rt(i),!n)return on;let r=t[0];for(let s=1;s<t.length;s+=2)r+=be(t[s])+t[s+1];return r}function ls(e,t,n,i){return fi(e,bt(),n)?t+be(n)+i:on}function cs(e,t,n,i,r,s){const u=Mo(e,ke(),n,r);return kt(2),u?t+be(n)+i+be(r)+s:on}function us(e,t,n,i,r,s,c,u){const A=fl(e,ke(),n,r,c);return kt(3),A?t+be(n)+i+be(r)+s+be(c)+u:on}function ds(e,t,n,i,r,s,c,u,y,A){const de=Qi(e,ke(),n,r,c,y);return kt(4),de?t+be(n)+i+be(r)+s+be(c)+u+be(y)+A:on}function hs(e,t,n,i,r,s,c,u,y,A,H,de){const _e=ke();let Oe=Qi(e,_e,n,r,c,y);return Oe=fi(e,_e+4,H)||Oe,kt(5),Oe?t+be(n)+i+be(r)+s+be(c)+u+be(y)+A+be(H)+de:on}function fs(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe){const We=ke();let ct=Qi(e,We,n,r,c,y);return ct=Mo(e,We+4,H,_e)||ct,kt(6),ct?t+be(n)+i+be(r)+s+be(c)+u+be(y)+A+be(H)+de+be(_e)+Oe:on}function ps(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct){const it=ke();let Ot=Qi(e,it,n,r,c,y);return Ot=fl(e,it+4,H,_e,We)||Ot,kt(7),Ot?t+be(n)+i+be(r)+s+be(c)+u+be(y)+A+be(H)+de+be(_e)+Oe+be(We)+ct:on}function ms(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct,it,Ot){const Dt=ke();let zt=Qi(e,Dt,n,r,c,y);return zt=Qi(e,Dt+4,H,_e,We,it)||zt,kt(8),zt?t+be(n)+i+be(r)+s+be(c)+u+be(y)+A+be(H)+de+be(_e)+Oe+be(We)+ct+be(it)+Ot:on}function uu(e,t,n,i,r,s){const c=Mt(),u=ls(c,t,n,i);return u!==on&&Pr(On(),c,e,u,r,s),uu}function du(e,t,n,i,r,s,c,u){const y=Mt(),A=cs(y,t,n,i,r,s);return A!==on&&Pr(On(),y,e,A,c,u),du}function hu(e,t,n,i,r,s,c,u,y,A){const H=Mt(),de=us(H,t,n,i,r,s,c,u);return de!==on&&Pr(On(),H,e,de,y,A),hu}function fu(e,t,n,i,r,s,c,u,y,A,H,de){const _e=Mt(),Oe=ds(_e,t,n,i,r,s,c,u,y,A);return Oe!==on&&Pr(On(),_e,e,Oe,H,de),fu}function pu(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe){const We=Mt(),ct=hs(We,t,n,i,r,s,c,u,y,A,H,de);return ct!==on&&Pr(On(),We,e,ct,_e,Oe),pu}function mu(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct){const it=Mt(),Ot=fs(it,t,n,i,r,s,c,u,y,A,H,de,_e,Oe);return Ot!==on&&Pr(On(),it,e,Ot,We,ct),mu}function gu(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct,it,Ot){const Dt=Mt(),zt=ps(Dt,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct);return zt!==on&&Pr(On(),Dt,e,zt,it,Ot),gu}function _u(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct,it,Ot,Dt,zt){const Xt=Mt(),gn=ms(Xt,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct,it,Ot);return gn!==on&&Pr(On(),Xt,e,gn,Dt,zt),_u}function yu(e,t,n,i){const r=Mt(),s=as(r,t);return s!==on&&Pr(On(),r,e,s,n,i),yu}function Mm(e,t,n,i,r,s,c,u){const y=Mt(),A=pn(),H=e+20,de=A.firstCreatePass?function(e,t,n,i,r,s,c,u,y){const A=t.consts,H=ts(t,e,4,c||null,Kn(A,u));Uc(t,n,H,Kn(A,y)),oi(t,H);const de=H.tViews=cl(2,H,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,A);return null!==t.queries&&(t.queries.template(t,H),de.queries=t.queries.embeddedTView(H)),H}(H,A,y,t,n,i,r,s,c):A.data[H];Vi(de,!1);const _e=y[11].createComment("");rl(A,y,_e,de),hi(_e,y),ul(y,y[H]=Kp(_e,y,_e,de)),ui(de)&&Hc(A,y,de),null!=c&&$c(y,de,u)}function Sm(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}function Im(e){return rn(Yt.lFrame.contextLView,20+e)}const Pm={\u0275\u0275defineInjectable:$,\u0275\u0275defineInjector:L,\u0275\u0275inject:$n,\u0275\u0275invalidFactoryDep:oc,resolveForwardRef:S},pD=C({provide:String,useValue:C});function Am(e){return void 0!==e.useClass}function Om(e){return void 0!==e.useFactory}const vD=$o("Injectable",void 0,void 0,void 0,(e,t)=>bD(e,t)),Rm=function(e,t){let n=null,i=null;e.hasOwnProperty(wt)||Object.defineProperty(e,wt,{get:()=>(null===n&&(n=Qn().compileInjectable(Pm,`ng:///${e.name}/\u0275prov.js`,function(e,t){const n=t||{providedIn:null},i={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(Am(n)||Om(n))&&void 0!==n.deps&&(i.deps=hf(n.deps)),Am(n)?i.useClass=n.useClass:function(e){return pD in e}(n)?i.useValue=n.useValue:Om(n)?i.useFactory=n.useFactory:function(e){return void 0!==e.useExisting}(n)&&(i.useExisting=n.useExisting),i}(e,t))),n)}),e.hasOwnProperty(K)||Object.defineProperty(e,K,{get:()=>{if(null===i){const r=Qn();i=r.compileFactory(Pm,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Za(e),target:r.FactoryTarget.Injectable})}return i},configurable:!0})},bD=Rm;function vu(e){return e.length>1?" ("+function(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(i=>D(i.token)).join(" -> ")+")":""}function bu(e,t,n,i){const r=[t],s=n(r),c=i?function(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,i=Error(n);return i[_c]=t,i}(s,i):Error(s);return c.addKey=ED,c.keys=r,c.injectors=[e],c.constructResolvingMessage=n,c[_c]=i,c}function ED(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function km(e,t){const n=[];for(let i=0,r=t.length;i<r;i++){const s=t[i];n.push(s&&0!=s.length?s.map(D).join(" "):"?")}return Error("Cannot resolve all parameters for '"+D(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+D(e)+"' is decorated with Injectable.")}function ID(e,t){return Error(`Cannot mix multi providers and regular providers, got: ${e} ${t}`)}class Xr{constructor(t,n){if(this.token=t,this.id=n,!t)throw new Error("Token must be defined!");this.displayName=D(this.token)}static get(t){return Fm.get(S(t))}static get numberOfKeys(){return Fm.numberOfKeys}}class PD{constructor(){this._allKeys=new Map}get(t){if(t instanceof Xr)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const n=new Xr(t,Xr.numberOfKeys);return this._allKeys.set(t,n),n}get numberOfKeys(){return this._allKeys.size}}const Fm=new PD;class AD{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,i,r){return this.reflectionCapabilities.resolveIdentifier(t,n,i,r)}resolveEnum(t,n){return this.reflectionCapabilities.resolveEnum(t,n)}}const Nm=new AD(new zo);class oa{constructor(t,n,i){this.key=t,this.optional=n,this.visibility=i}static fromKey(t){return new oa(t,!1,null)}}const OD=[];class Lm{constructor(t,n,i){this.key=t,this.resolvedFactories=n,this.multiProvider=i,this.resolvedFactory=this.resolvedFactories[0]}}class jm{constructor(t,n){this.factory=t,this.dependencies=n}}function xD(e){let t,n;if(e.useClass){const i=S(e.useClass);t=Nm.factory(i),n=Hm(i)}else e.useExisting?(t=i=>i,n=[oa.fromKey(Xr.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function(e,t){if(t){const n=t.map(i=>[i]);return t.map(i=>$m(e,i,n))}return Hm(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=OD);return new jm(t,n)}function RD(e){return new Lm(Xr.get(e.provide),[xD(e)],e.multi||!1)}function Bm(e){const i=function(e,t){for(let n=0;n<e.length;n++){const i=e[n],r=t.get(i.key.id);if(r){if(i.multiProvider!==r.multiProvider)throw ID(r,i);if(i.multiProvider)for(let s=0;s<i.resolvedFactories.length;s++)r.resolvedFactories.push(i.resolvedFactories[s]);else t.set(i.key.id,i)}else{let s;s=i.multiProvider?new Lm(i.key,i.resolvedFactories.slice(),i.multiProvider):i,t.set(i.key.id,s)}}return t}(Vm(e,[]).map(RD),new Map);return Array.from(i.values())}function Vm(e,t){return e.forEach(n=>{if(n instanceof Ga)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(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`)}(n);Vm(n,t)}}),t}function Hm(e){const t=Nm.parameters(e);if(!t)return[];if(t.some(n=>null==n))throw km(e,t);return t.map(n=>$m(e,n,t))}function $m(e,t,n){let i=null,r=!1;if(!Array.isArray(t))return Cu(t instanceof Go?t.token:t,r,null);let s=null;for(let c=0;c<t.length;++c){const u=t[c];u instanceof Ga?i=u:u instanceof Go?i=u.token:u instanceof Wr?r=!0:u instanceof Qo||u instanceof Kr?s=u:u instanceof jn&&(i=u)}if(i=S(i),null!=i)return Cu(i,r,s);throw km(e,n)}function Cu(e,t,n){return new oa(Xr.get(e),t,n)}const sa={};class gs{static resolve(t){return Bm(t)}static resolveAndCreate(t,n){const i=gs.resolve(t);return gs.fromResolvedProviders(i,n)}static fromResolvedProviders(t,n){return new Um(t,n)}}let Um=(()=>{class e{constructor(n,i){this._constructionCounter=0,this._providers=n,this.parent=i||null;const r=n.length;this.keyIds=[],this.objs=[];for(let s=0;s<r;s++)this.keyIds[s]=n[s].key.id,this.objs[s]=sa}get(n,i=so){return this._getByKey(Xr.get(n),null,i)}resolveAndCreateChild(n){const i=gs.resolve(n);return this.createChildFromResolved(i)}createChildFromResolved(n){const i=new e(n);return i.parent=this,i}resolveAndInstantiate(n){return this.instantiateResolved(gs.resolve([n])[0])}instantiateResolved(n){return this._instantiateProvider(n)}getProviderAtIndex(n){if(n<0||n>=this._providers.length)throw function(e){return Error(`Index ${e} is out-of-bounds.`)}(n);return this._providers[n]}_new(n){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function(e,t){return bu(e,t,function(n){return`Cannot instantiate cyclic dependency!${vu(n)}`})}(this,n.key);return this._instantiateProvider(n)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(n){if(n.multiProvider){const i=[];for(let r=0;r<n.resolvedFactories.length;++r)i[r]=this._instantiate(n,n.resolvedFactories[r]);return i}return this._instantiate(n,n.resolvedFactories[0])}_instantiate(n,i){const r=i.factory;let s,c;try{s=i.dependencies.map(u=>this._getByReflectiveDependency(u))}catch(u){throw u.addKey&&u.addKey(this,n.key),u}try{c=r(...s)}catch(u){throw function(e,t,n,i){return bu(e,i,function(r){const s=D(r[0].token);return`${t.message}: Error during instantiation of ${s}!${vu(r)}.`},t)}(this,u,0,n.key)}return c}_getByReflectiveDependency(n){return this._getByKey(n.key,n.visibility,n.optional?null:so)}_getByKey(n,i,r){return n===e.INJECTOR_KEY?this:i instanceof Qo?this._getByKeySelf(n,r):this._getByKeyDefault(n,r,i)}_getObjByKeyId(n){for(let i=0;i<this.keyIds.length;i++)if(this.keyIds[i]===n)return this.objs[i]===sa&&(this.objs[i]=this._new(this._providers[i])),this.objs[i];return sa}_throwOrNull(n,i){if(i!==so)return i;throw function(e,t){return bu(e,t,function(n){return`No provider for ${D(n[0].token)}!${vu(n)}`})}(this,n)}_getByKeySelf(n,i){const r=this._getObjByKeyId(n.id);return r!==sa?r:this._throwOrNull(n,i)}_getByKeyDefault(n,i,r){let s;for(s=r instanceof Kr?this.parent:this;s instanceof e;){const c=s,u=c._getObjByKeyId(n.id);if(u!==sa)return u;s=c.parent}return null!==s?s.get(n.token,i):this._throwOrNull(n,i)}get displayName(){return`ReflectiveInjector(providers: [${function(e,t){const n=[];for(let i=0;i<e._providers.length;++i)n[i]=t(e.getProviderAtIndex(i));return n}(this,i=>' "'+i.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return e.INJECTOR_KEY=Xr.get(In),e})();function aa(e,t=q.Default){const n=Mt();return null===n?$n(e,t):Qh(kn(),n,S(e),t)}function zm(){throw new Error("invalid")}function Eu(e,t,n){const i=Mt();return fi(i,bt(),t)&&Fi(pn(),On(),i,e,t,i[11],n,!1),Eu}function Du(e,t,n,i,r){const c=r?"class":"style";Xp(e,n,t.inputs[c],c,i)}function Tu(e,t,n,i){const r=Mt(),s=pn(),c=20+e,u=r[11],y=r[c]=Tc(u,t,Yt.lFrame.currentNamespace),A=s.firstCreatePass?function(e,t,n,i,r,s,c){const u=t.consts,A=ts(t,e,2,r,Kn(u,s));return Uc(t,n,A,Kn(u,c)),null!==A.attrs&&dl(A,A.attrs,!1),null!==A.mergedAttrs&&dl(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(c,s,r,0,t,n,i):s.data[c];Vi(A,!0);const H=A.mergedAttrs;null!==H&&Ha(u,y,H);const de=A.classes;null!==de&&Ac(u,y,de);const _e=A.styles;null!==_e&&mp(u,y,_e),64!=(64&A.flags)&&rl(s,r,y,A),0===Yt.lFrame.elementDepthCount&&hi(y,r),Yt.lFrame.elementDepthCount++,ui(A)&&(Hc(s,r,A),kp(s,A,r)),null!==i&&$c(r,A)}function wu(){let e=kn();G()?h():(e=e.parent,Vi(e,!1));const t=e;Yt.lFrame.elementDepthCount--;const n=pn();n.firstCreatePass&&(oi(n,e),Ci(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Du(n,t,Mt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Du(n,t,Mt(),t.stylesWithoutHost,!1)}function Wm(e,t,n,i){Tu(e,t,n,i),wu()}function Mu(e,t,n){const i=Mt(),r=pn(),s=e+20,c=r.firstCreatePass?function(e,t,n,i,r){const s=t.consts,c=Kn(s,i),u=ts(t,e,8,"ng-container",c);return null!==c&&dl(u,c,!0),Uc(t,n,u,Kn(s,r)),null!==t.queries&&t.queries.elementStart(t,u),u}(s,r,i,t,n):r.data[s];Vi(c,!0);const u=i[s]=i[11].createComment("");rl(r,i,u,c),hi(u,i),ui(c)&&(Hc(r,i,c),kp(r,c,i)),null!=n&&$c(i,c)}function Su(){let e=kn();const t=pn();G()?h():(e=e.parent,Vi(e,!1)),t.firstCreatePass&&(oi(t,e),Ci(e)&&t.queries.elementEnd(e))}function Km(e,t,n){Mu(e,t,n),Su()}function Gm(){return Mt()}function Iu(e){return!!e&&"function"==typeof e.then}function Qm(e){return!!e&&"function"==typeof e.subscribe}const Pu=Qm;function Au(e,t,n,i){const r=Mt(),s=pn(),c=kn();return Ym(s,r,r[11],c,e,t,!!n,i),Au}function Ou(e,t){const n=kn(),i=Mt(),r=pn();return Ym(r,i,Jp(hn(r.data),n,i),n,e,t,!1),Ou}function Ym(e,t,n,i,r,s,c,u){const y=ui(i),H=e.firstCreatePass&&Yp(e),de=t[8],_e=Qp(t);let Oe=!0;if(3&i.type||u){const it=St(i,t),Ot=u?u(it):it,Dt=_e.length,zt=u?Xt=>u(v(Xt[i.index])):i.index;if(O(n)){let Xt=null;if(!u&&y&&(Xt=function(e,t,n,i){const r=e.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const c=r[s];if(c===n&&r[s+1]===i){const u=t[7],y=r[s+2];return u.length>y?u[y]:null}"string"==typeof c&&(s+=2)}return null}(e,t,r,i.index)),null!==Xt)(Xt.__ngLastListenerFn__||Xt).__ngNextListenerFn__=s,Xt.__ngLastListenerFn__=s,Oe=!1;else{s=xu(i,t,de,s,!1);const gn=n.listen(Ot,r,s);_e.push(s,gn),H&&H.push(r,zt,Dt,Dt+1)}}else s=xu(i,t,de,s,!0),Ot.addEventListener(r,s,c),_e.push(s),H&&H.push(r,zt,Dt,c)}else s=xu(i,t,de,s,!1);const We=i.outputs;let ct;if(Oe&&null!==We&&(ct=We[r])){const it=ct.length;if(it)for(let Ot=0;Ot<it;Ot+=2){const Xn=t[ct[Ot]][ct[Ot+1]].subscribe(s),Zi=_e.length;_e.push(s,Xn),H&&H.push(r,i.index,Zi,-(Zi+1))}}}function Jm(e,t,n,i){try{return Rn(6,t,n),!1!==n(i)}catch(r){return Zp(e,r),!1}finally{Rn(7,t,n)}}function xu(e,t,n,i,r){return function s(c){if(c===Function)return i;const u=2&e.flags?bn(e.index,t):t;0==(32&t[2])&&Kc(u);let y=Jm(t,n,i,c),A=s.__ngNextListenerFn__;for(;A;)y=Jm(t,n,A,c)&&y,A=A.__ngNextListenerFn__;return r&&!1===y&&(c.preventDefault(),c.returnValue=!1),y}}function Zm(e=1){return Ls(e)}function VD(e,t){let n=null;const i=function(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 r=0;r<t.length;r++){const s=t[r];if("*"!==s){if(null===i?vp(e,s,!0):YC(i,s))return r}else n=r}return n}function Xm(e){const t=Mt()[16][6];if(!t.projection){const i=t.projection=oo(e?e.length:1,null),r=i.slice();let s=t.child;for(;null!==s;){const c=e?VD(s,e):0;null!==c&&(r[c]?r[c].projectionNext=s:i[c]=s,r[c]=s),s=s.next}}}function qm(e,t=0,n){const i=Mt(),r=pn(),s=ts(r,20+e,16,null,n||null);null===s.projection&&(s.projection=t),h(),64!=(64&s.flags)&&function(e,t,n){pp(t[11],0,t,n,rp(e,n,t),lp(n.parent||t[6],n,t))}(r,i,s)}function Ru(e,t,n){return pl(e,"",t,"",n),Ru}function pl(e,t,n,i,r){const s=Mt(),c=ls(s,t,n,i);return c!==on&&Fi(pn(),On(),s,e,c,s[11],r,!1),pl}function ku(e,t,n,i,r,s,c){const u=Mt(),y=cs(u,t,n,i,r,s);return y!==on&&Fi(pn(),On(),u,e,y,u[11],c,!1),ku}function Fu(e,t,n,i,r,s,c,u,y){const A=Mt(),H=us(A,t,n,i,r,s,c,u);return H!==on&&Fi(pn(),On(),A,e,H,A[11],y,!1),Fu}function Nu(e,t,n,i,r,s,c,u,y,A,H){const de=Mt(),_e=ds(de,t,n,i,r,s,c,u,y,A);return _e!==on&&Fi(pn(),On(),de,e,_e,de[11],H,!1),Nu}function Lu(e,t,n,i,r,s,c,u,y,A,H,de,_e){const Oe=Mt(),We=hs(Oe,t,n,i,r,s,c,u,y,A,H,de);return We!==on&&Fi(pn(),On(),Oe,e,We,Oe[11],_e,!1),Lu}function ju(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We){const ct=Mt(),it=fs(ct,t,n,i,r,s,c,u,y,A,H,de,_e,Oe);return it!==on&&Fi(pn(),On(),ct,e,it,ct[11],We,!1),ju}function Bu(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct,it){const Ot=Mt(),Dt=ps(Ot,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct);return Dt!==on&&Fi(pn(),On(),Ot,e,Dt,Ot[11],it,!1),Bu}function Vu(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct,it,Ot,Dt){const zt=Mt(),Xt=ms(zt,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct,it,Ot);return Xt!==on&&Fi(pn(),On(),zt,e,Xt,zt[11],Dt,!1),Vu}function Hu(e,t,n){const i=Mt(),r=as(i,t);return r!==on&&Fi(pn(),On(),i,e,r,i[11],n,!1),Hu}function eg(e,t,n,i,r){const s=e[n+1],c=null===t;let u=i?or(s):Qr(s),y=!1;for(;0!==u&&(!1===y||c);){const H=e[u+1];UD(e[u],t)&&(y=!0,e[u+1]=i?Rc(H):Oc(H)),u=i?or(H):Qr(H)}y&&(e[n+1]=i?Oc(s):Rc(s))}function UD(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Uo(e,t)>=0}const Yn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function tg(e){return e.substring(Yn.key,Yn.keyEnd)}function zD(e){return e.substring(Yn.value,Yn.valueEnd)}function ng(e,t){const n=Yn.textEnd;return n===t?-1:(t=Yn.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Yn.key=t,n),_s(e,t,n))}function ig(e,t){const n=Yn.textEnd;let i=Yn.key=_s(e,t,n);return n===i?-1:(i=Yn.keyEnd=function(e,t,n){let i;for(;t<n&&(45===(i=e.charCodeAt(t))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(e,i,n),i=og(e,i,n),i=Yn.value=_s(e,i,n),i=Yn.valueEnd=function(e,t,n){let i=-1,r=-1,s=-1,c=t,u=c;for(;c<n;){const y=e.charCodeAt(c++);if(59===y)return u;34===y||39===y?u=c=sg(e,y,c,n):t===c-4&&85===s&&82===r&&76===i&&40===y?u=c=sg(e,41,c,n):y>32&&(u=c),s=r,r=i,i=-33&y}return u}(e,i,n),og(e,i,n))}function rg(e){Yn.key=0,Yn.keyEnd=0,Yn.value=0,Yn.valueEnd=0,Yn.textEnd=e.length}function _s(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function og(e,t,n,i){return(t=_s(e,t,n))<n&&t++,t}function sg(e,t,n,i){let r=-1,s=n;for(;s<i;){const c=e.charCodeAt(s++);if(c==t&&92!==r)return s;r=92==c&&92===r?0:c}throw new Error}function $u(e,t,n){return ar(e,t,n,!1),$u}function Uu(e,t){return ar(e,t,null,!0),Uu}function sr(e){lr(ug,JD,e,!1)}function JD(e,t){for(let n=function(e){return rg(e),ig(e,_s(e,0,Yn.textEnd))}(t);n>=0;n=ig(t,n))ug(e,tg(t),zD(t))}function ag(e){lr(ki,Or,e,!0)}function Or(e,t){for(let n=function(e){return rg(e),ng(e,_s(e,0,Yn.textEnd))}(t);n>=0;n=ng(t,n))ki(e,tg(t),!0)}function ar(e,t,n,i){const r=Mt(),s=pn(),c=kt(2);s.firstUpdatePass&&cg(s,e,c,i),t!==on&&fi(r,c,t)&&dg(s,s.data[Fn()],r,r[11],e,r[c+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=D(Gr(e)))),e}(t,n),i,c)}function lr(e,t,n,i){const r=pn(),s=kt(2);r.firstUpdatePass&&cg(r,null,s,i);const c=Mt();if(n!==on&&fi(c,s,n)){const u=r.data[Fn()];if(fg(u,i)&&!lg(r,s)){let y=i?u.classesWithoutHost:u.stylesWithoutHost;null!==y&&(n=g(y,n||"")),Du(r,u,c,n,i)}else!function(e,t,n,i,r,s,c,u){r===on&&(r=Lt);let y=0,A=0,H=0<r.length?r[0]:null,de=0<s.length?s[0]:null;for(;null!==H||null!==de;){const _e=y<r.length?r[y+1]:void 0,Oe=A<s.length?s[A+1]:void 0;let ct,We=null;H===de?(y+=2,A+=2,_e!==Oe&&(We=de,ct=Oe)):null===de||null!==H&&H<de?(y+=2,We=H):(A+=2,We=de,ct=Oe),null!==We&&dg(e,t,n,i,We,ct,c,u),H=y<r.length?r[y]:null,de=A<s.length?s[A]:null}}(r,u,c,c[11],c[s+1],c[s+1]=function(e,t,n){if(null==n||""===n)return Lt;const i=[],r=Gr(n);if(Array.isArray(r))for(let s=0;s<r.length;s++)e(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&e(i,s,r[s]);else"string"==typeof r&&t(i,r);return i}(e,t,n),i,s)}}function lg(e,t){return t>=e.expandoStartIndex}function cg(e,t,n,i){const r=e.data;if(null===r[n+1]){const s=r[Fn()],c=lg(e,n);fg(s,i)&&null===t&&!c&&(t=!1),t=function(e,t,n,i){const r=hn(e);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=la(n=zu(null,e,t,n,i),t.attrs,i),s=null);else{const c=t.directiveStylingLast;if(-1===c||e[c]!==r)if(n=zu(r,e,t,n,i),null===s){let y=function(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==Qr(i))return e[or(i)]}(e,t,i);void 0!==y&&Array.isArray(y)&&(y=zu(null,e,t,y[1],i),y=la(y,t.attrs,i),function(e,t,n,i){e[or(n?t.classBindings:t.styleBindings)]=i}(e,t,i,y))}else s=function(e,t,n){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=la(i,e[s].hostAttrs,n);return la(i,t.attrs,n)}(e,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),n}(r,s,t,i),function(e,t,n,i,r,s){let c=s?t.classBindings:t.styleBindings,u=or(c),y=Qr(c);e[i]=n;let H,A=!1;if(Array.isArray(n)){const de=n;H=de[1],(null===H||Uo(de,H)>0)&&(A=!0)}else H=n;if(r)if(0!==y){const _e=or(e[u+1]);e[i+1]=sl(_e,u),0!==_e&&(e[_e+1]=xc(e[_e+1],i)),e[u+1]=function(e,t){return 131071&e|t<<17}(e[u+1],i)}else e[i+1]=sl(u,0),0!==u&&(e[u+1]=xc(e[u+1],i)),u=i;else e[i+1]=sl(y,0),0===u?u=i:e[y+1]=xc(e[y+1],i),y=i;A&&(e[i+1]=Oc(e[i+1])),eg(e,H,i,!0),eg(e,H,i,!1),function(e,t,n,i,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&Uo(s,t)>=0&&(n[i+1]=Rc(n[i+1]))}(t,H,e,i,s),c=sl(u,y),s?t.classBindings=c:t.styleBindings=c}(r,s,t,n,c,i)}}function zu(e,t,n,i,r){let s=null;const c=n.directiveEnd;let u=n.directiveStylingLast;for(-1===u?u=n.directiveStart:u++;u<c&&(s=t[u],i=la(i,s.hostAttrs,r),s!==e);)u++;return null!==e&&(n.directiveStylingLast=u),i}function la(e,t,n){const i=n?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const c=t[s];"number"==typeof c?r=c:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),ki(e,c,!!n||t[++s]))}return void 0===e?null:e}function ug(e,t,n){ki(e,t,Gr(n))}function dg(e,t,n,i,r,s,c,u){if(!(3&t.type))return;const y=e.data,A=y[u+1];ml(function(e){return 1==(1&e)}(A)?hg(y,t,n,r,Qr(A),c):void 0)||(ml(s)||function(e){return 2==(2&e)}(A)&&(s=hg(y,null,n,r,u,c)),function(e,t,n,i,r){const s=O(e);if(t)r?s?e.addClass(n,i):n.classList.add(i):s?e.removeClass(n,i):n.classList.remove(i);else{let c=-1===i.indexOf("-")?void 0:Ir.DashCase;if(null==r)s?e.removeStyle(n,i,c):n.style.removeProperty(i);else{const u="string"==typeof r&&r.endsWith("!important");u&&(r=r.slice(0,-10),c|=Ir.Important),s?e.setStyle(n,i,r,c):n.style.setProperty(i,r,u?"important":"")}}}(i,c,Qe(Fn(),n),r,s))}function hg(e,t,n,i,r,s){const c=null===t;let u;for(;r>0;){const y=e[r],A=Array.isArray(y),H=A?y[1]:y,de=null===H;let _e=n[r+1];_e===on&&(_e=de?Lt:void 0);let Oe=de?ec(_e,i):H===i?_e:void 0;if(A&&!ml(Oe)&&(Oe=ec(y,i)),ml(Oe)&&(u=Oe,c))return u;const We=e[r+1];r=c?or(We):Qr(We)}if(null!==t){let y=s?t.residualClasses:t.residualStyles;null!=y&&(u=ec(y,i))}return u}function ml(e){return void 0!==e}function fg(e,t){return 0!=(e.flags&(t?16:32))}function pg(e,t=""){const n=Mt(),i=pn(),r=e+20,s=i.firstCreatePass?ts(i,r,1,t,null):i.data[r],c=n[r]=Dc(n[11],t);rl(i,n,c,s),Vi(s,!1)}function Wu(e){return gl("",e,""),Wu}function gl(e,t,n){const i=Mt(),r=ls(i,e,t,n);return r!==on&&Jr(i,Fn(),r),gl}function Ku(e,t,n,i,r){const s=Mt(),c=cs(s,e,t,n,i,r);return c!==on&&Jr(s,Fn(),c),Ku}function Gu(e,t,n,i,r,s,c){const u=Mt(),y=us(u,e,t,n,i,r,s,c);return y!==on&&Jr(u,Fn(),y),Gu}function Qu(e,t,n,i,r,s,c,u,y){const A=Mt(),H=ds(A,e,t,n,i,r,s,c,u,y);return H!==on&&Jr(A,Fn(),H),Qu}function Yu(e,t,n,i,r,s,c,u,y,A,H){const de=Mt(),_e=hs(de,e,t,n,i,r,s,c,u,y,A,H);return _e!==on&&Jr(de,Fn(),_e),Yu}function Ju(e,t,n,i,r,s,c,u,y,A,H,de,_e){const Oe=Mt(),We=fs(Oe,e,t,n,i,r,s,c,u,y,A,H,de,_e);return We!==on&&Jr(Oe,Fn(),We),Ju}function Zu(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We){const ct=Mt(),it=ps(ct,e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We);return it!==on&&Jr(ct,Fn(),it),Zu}function Xu(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct,it){const Ot=Mt(),Dt=ms(Ot,e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct,it);return Dt!==on&&Jr(Ot,Fn(),Dt),Xu}function qu(e){const t=Mt(),n=as(t,e);return n!==on&&Jr(t,Fn(),n),qu}function mg(e,t,n){lr(ki,Or,ls(Mt(),e,t,n),!0)}function gg(e,t,n,i,r){lr(ki,Or,cs(Mt(),e,t,n,i,r),!0)}function _g(e,t,n,i,r,s,c){lr(ki,Or,us(Mt(),e,t,n,i,r,s,c),!0)}function yg(e,t,n,i,r,s,c,u,y){lr(ki,Or,ds(Mt(),e,t,n,i,r,s,c,u,y),!0)}function vg(e,t,n,i,r,s,c,u,y,A,H){lr(ki,Or,hs(Mt(),e,t,n,i,r,s,c,u,y,A,H),!0)}function bg(e,t,n,i,r,s,c,u,y,A,H,de,_e){lr(ki,Or,fs(Mt(),e,t,n,i,r,s,c,u,y,A,H,de,_e),!0)}function Cg(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We){lr(ki,Or,ps(Mt(),e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We),!0)}function Eg(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct,it){lr(ki,Or,ms(Mt(),e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct,it),!0)}function Dg(e){lr(ki,Or,as(Mt(),e),!0)}function Tg(e,t,n){sr(ls(Mt(),e,t,n))}function wg(e,t,n,i,r){sr(cs(Mt(),e,t,n,i,r))}function Mg(e,t,n,i,r,s,c){sr(us(Mt(),e,t,n,i,r,s,c))}function Sg(e,t,n,i,r,s,c,u,y){sr(ds(Mt(),e,t,n,i,r,s,c,u,y))}function Ig(e,t,n,i,r,s,c,u,y,A,H){sr(hs(Mt(),e,t,n,i,r,s,c,u,y,A,H))}function Pg(e,t,n,i,r,s,c,u,y,A,H,de,_e){sr(fs(Mt(),e,t,n,i,r,s,c,u,y,A,H,de,_e))}function Ag(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We){sr(ps(Mt(),e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We))}function Og(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct,it){sr(ms(Mt(),e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct,it))}function xg(e){sr(as(Mt(),e))}function ed(e,t,n,i,r){return ar(e,ls(Mt(),t,n,i),r,!1),ed}function td(e,t,n,i,r,s,c){return ar(e,cs(Mt(),t,n,i,r,s),c,!1),td}function nd(e,t,n,i,r,s,c,u,y){return ar(e,us(Mt(),t,n,i,r,s,c,u),y,!1),nd}function id(e,t,n,i,r,s,c,u,y,A,H){return ar(e,ds(Mt(),t,n,i,r,s,c,u,y,A),H,!1),id}function rd(e,t,n,i,r,s,c,u,y,A,H,de,_e){return ar(e,hs(Mt(),t,n,i,r,s,c,u,y,A,H,de),_e,!1),rd}function od(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We){return ar(e,fs(Mt(),t,n,i,r,s,c,u,y,A,H,de,_e,Oe),We,!1),od}function sd(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct,it){return ar(e,ps(Mt(),t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct),it,!1),sd}function ad(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct,it,Ot,Dt){return ar(e,ms(Mt(),t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct,it,Ot),Dt,!1),ad}function ld(e,t,n){return ar(e,as(Mt(),t),n,!1),ld}function cd(e,t,n){const i=Mt();return fi(i,bt(),t)&&Fi(pn(),On(),i,e,t,i[11],n,!0),cd}function ud(e,t,n){const i=Mt();if(fi(i,bt(),t)){const s=pn(),c=On();Fi(s,c,i,e,t,Jp(hn(s.data),c,i),n,!0)}return ud}const So=void 0;var oT=["en",[["a","p"],["AM","PM"],So],[["AM","PM"],So,So],[["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"]],So,[["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"]],So,[["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}",So,"{1} 'at' {0}",So],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let ys={};function sT(e,t,n){"string"!=typeof t&&(n=t,t=e[Jt.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),ys[t]=e,n&&(ys[t][Jt.ExtraData]=n)}function dd(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=kg(t);if(n)return n;const i=t.split("-")[0];if(n=kg(i),n)return n;if("en"===i)return oT;throw new Error(`Missing locale data for the locale "${e}".`)}function aT(e){return dd(e)[Jt.CurrencyCode]||null}function Rg(e){return dd(e)[Jt.PluralCase]}function kg(e){return e in ys||(ys[e]=Nt.ng&&Nt.ng.common&&Nt.ng.common.locales&&Nt.ng.common.locales[e]),ys[e]}function lT(){ys={}}var Jt=(()=>((Jt=Jt||{})[Jt.LocaleId=0]="LocaleId",Jt[Jt.DayPeriodsFormat=1]="DayPeriodsFormat",Jt[Jt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Jt[Jt.DaysFormat=3]="DaysFormat",Jt[Jt.DaysStandalone=4]="DaysStandalone",Jt[Jt.MonthsFormat=5]="MonthsFormat",Jt[Jt.MonthsStandalone=6]="MonthsStandalone",Jt[Jt.Eras=7]="Eras",Jt[Jt.FirstDayOfWeek=8]="FirstDayOfWeek",Jt[Jt.WeekendRange=9]="WeekendRange",Jt[Jt.DateFormat=10]="DateFormat",Jt[Jt.TimeFormat=11]="TimeFormat",Jt[Jt.DateTimeFormat=12]="DateTimeFormat",Jt[Jt.NumberSymbols=13]="NumberSymbols",Jt[Jt.NumberFormats=14]="NumberFormats",Jt[Jt.CurrencyCode=15]="CurrencyCode",Jt[Jt.CurrencySymbol=16]="CurrencySymbol",Jt[Jt.CurrencyName=17]="CurrencyName",Jt[Jt.Currencies=18]="Currencies",Jt[Jt.Directionality=19]="Directionality",Jt[Jt.PluralCase=20]="PluralCase",Jt[Jt.ExtraData=21]="ExtraData",Jt))();const uT=["zero","one","two","few","many"],ca="en-US",Fg="USD",_l={marker:"element"},yl={marker:"ICU"};var Vn=(()=>((Vn=Vn||{})[Vn.SHIFT=2]="SHIFT",Vn[Vn.APPEND_EAGERLY=1]="APPEND_EAGERLY",Vn[Vn.COMMENT=2]="COMMENT",Vn))();let Ng=ca;function vl(e){(function(e,t){null==e&&ut(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(Ng=e.toLowerCase().replace(/_/g,"-"))}function Lg(e,t,n){const i=t.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?cp(e,0,n):v(n[r])}function jg(e,t,n,i,r){const s=t.insertBeforeIndex;if(Array.isArray(s)){let c=i,u=null;if(3&t.type||(u=c,c=r),null!==c&&0==(2&t.flags))for(let y=1;y<s.length;y++)wo(e,c,n[s[y]],u,!1)}}function Bg(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const i=e[n];Vg(i)||fT(i,t)&&null===pT(i)&&mT(i,t.index)}}function Vg(e){return!(64&e.type)}function fT(e,t){return Vg(t)||e.index>t.index}function pT(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function mT(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(dp(Lg,jg),e.insertBeforeIndex=t)}function ua(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function yT(e,t,n){const i=Vc(e,n,64,null,null);return Bg(t,i),i}function bl(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Hg(e){return e>>>17}function $g(e){return(131070&e)>>>1}let da=0,ha=0;function zg(e,t,n,i){const r=n[11];let c,s=null;for(let u=0;u<t.length;u++){const y=t[u];if("string"==typeof y){const A=t[++u];null===n[A]&&(n[A]=Dc(r,y))}else if("number"==typeof y)switch(1&y){case 0:const A=Hg(y);let H,de;if(null===s&&(s=A,c=il(r,i)),A===s?(H=i,de=c):(H=null,de=v(n[A])),null!==de){const ct=$g(y);wo(r,de,n[ct],H,!1);const Ot=ua(e,ct);if(null!==Ot&&"object"==typeof Ot){const Dt=bl(Ot,n);null!==Dt&&zg(e,Ot.create[Dt],n,n[Ot.anchorIdx])}}break;case 1:const Oe=t[++u],We=t[++u];zc(r,Qe(y>>>1,n),null,null,Oe,We,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${y}"`)}else switch(y){case yl:const A=t[++u],H=t[++u];null===n[H]&&hi(n[H]=IC(r,A),n);break;case _l:const de=t[++u],_e=t[++u];null===n[_e]&&hi(n[_e]=Tc(r,de,null),n)}}}function Wg(e,t,n,i,r){for(let s=0;s<n.length;s++){const c=n[s],u=n[++s];if(c&r){let y="";for(let A=s+1;A<=s+u;A++){const H=n[A];if("string"==typeof H)y+=H;else if("number"==typeof H)if(H<0)y+=be(t[i-H]);else{const de=H>>>2;switch(3&H){case 1:const _e=n[++A],Oe=n[++A],We=e.data[de];"string"==typeof We?zc(t[11],t[de],null,We,_e,y,Oe):Fi(e,We,t,_e,y,t[11],Oe,!1);break;case 0:const ct=t[de];null!==ct&&tp(t[11],ct,y);break;case 2:DT(e,ua(e,de),t,y);break;case 3:Kg(e,ua(e,de),i,t)}}}}else{const y=n[s+1];if(y>0&&3==(3&y)){const H=ua(e,y>>>2);t[H.currentCaseLViewIndex]<0&&Kg(e,H,i,t)}}s+=u}}function Kg(e,t,n,i){let r=i[t.currentCaseLViewIndex];if(null!==r){let s=da;r<0&&(r=i[t.currentCaseLViewIndex]=~r,s=-1),Wg(e,i,t.update[r],n,s)}}function DT(e,t,n,i){const r=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const i=function(e,t){const n=Rg(t)(parseInt(e,10)),i=uT[n];return void 0!==i?i:"other"}(t,Ng);n=e.cases.indexOf(i),-1===n&&"other"!==i&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,i);if(bl(t,n)!==r&&(Gg(e,t,n),n[t.currentCaseLViewIndex]=null===r?null:~r,null!==r)){const c=n[t.anchorIdx];c&&zg(e,t.create[r],n,c)}}function Gg(e,t,n){let i=bl(t,n);if(null!==i){const r=t.remove[i];for(let s=0;s<r.length;s++){const c=r[s];if(c>0){const u=Qe(c,n);null!==u&&fp(n[11],u)}else Gg(e,ua(e,~c),n)}}}function wT(){const e=[];let n,i,t=-1;function s(u,y){t=0;const A=bl(u,y);i=null!==A?u.remove[A]:Lt}function c(){if(t<i.length){const u=i[t++];return u>0?n[u]:(e.push(t,i),s(n[1].data[~u],n),c())}return 0===e.length?null:(i=e.pop(),t=e.pop(),c())}return function(u,y){for(n=y;e.length;)e.pop();return s(u.value,y),c}}const Cl=/\ufffd(\d+):?\d*\ufffd/gi,MT=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,ST=/\ufffd(\d+)\ufffd/,Yg=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,IT=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,PT=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,AT=/\uE500/g;function Jg(e,t,n,i,r,s,c){const u=ns(e,i,1,null);let y=u<<Vn.SHIFT,A=yo();t===A&&(A=null),null===A&&(y|=Vn.APPEND_EAGERLY),c&&(y|=Vn.COMMENT,function(e){void 0===yc&&(yc=e())}(wT)),r.push(y,null===s?"":s);const H=Vc(e,u,c?32:1,null===s?"":s,null);Bg(n,H);const de=H.index;return Vi(H,!1),null!==A&&t!==A&&function(e,t){let n=e.insertBeforeIndex;null===n?(dp(Lg,jg),n=e.insertBeforeIndex=[null,t]):(function(e,t,n){e!=t&&ut(n,e,t,"==")}(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(A,de),H}function RT(e,t,n,i,r,s,c){const u=c.match(Cl),y=Jg(e,t,n,s,i,u?null:c,!1);u&&vs(r,c,y.index,null,0,null)}function vs(e,t,n,i,r,s){const c=e.length,u=c+1;e.push(null,null);const y=c+2,A=t.split(Cl);let H=0;for(let de=0;de<A.length;de++){const _e=A[de];if(1&de){const Oe=r+parseInt(_e,10);e.push(-1-Oe),H|=Zg(Oe)}else""!==_e&&e.push(_e)}return e.push(n<<2|(i?1:0)),i&&e.push(i,s),e[c]=H,e[u]=e.length-y,H}function FT(e){let t=0;for(let n=0;n<e.length;n++){const i=e[n];"number"==typeof i&&i<0&&t++}return t}function Zg(e){return 1<<Math.min(e,31)}function Xg(e){let t,s,n="",i=0,r=!1;for(;null!==(t=IT.exec(e));)r?t[0]===`\ufffd/*${s}\ufffd`&&(i=t.index,r=!1):(n+=e.substring(i,t.index+t[0].length),s=t[1],r=!0);return n+=e.substr(i),n}function qg(e,t,n,i,r,s){let c=0;const u={type:r.type,currentCaseLViewIndex:ns(e,t,1,null),anchorIdx:s,cases:[],create:[],remove:[],update:[]};(function(e,t,n){e.push(Zg(t.mainBinding),2,-1-t.mainBinding,n<<2|2)})(n,r,s),function(e,t,n){const i=e.data[t];null===i?e.data[t]=n:i.value=n}(e,s,u);const y=r.values;for(let A=0;A<y.length;A++){const H=y[A],de=[];for(let _e=0;_e<H.length;_e++){const Oe=H[_e];if("string"!=typeof Oe){const We=de.push(Oe)-1;H[_e]=`\x3c!--\ufffd${We}\ufffd--\x3e`}}c=BT(e,u,t,n,i,r.cases[A],H.join(""),de)|c}c&&function(e,t,n){e.push(t,1,n<<2|3)}(n,c,s)}function jT(e){const t=[],n=[];let i=1,r=0;const s=hd(e=e.replace(Yg,function(c,u,y){return i="select"===y?0:1,r=parseInt(u.substr(1),10),""}));for(let c=0;c<s.length;){let u=s[c++].trim();1===i&&(u=u.replace(/\s*(?:=)?(\w+)\s*/,"$1")),u.length&&t.push(u);const y=hd(s[c++]);t.length>n.length&&n.push(y)}return{type:i,mainBinding:r,cases:t,values:n}}function hd(e){if(!e)return[];let t=0;const n=[],i=[],r=/[{}]/g;let s;for(r.lastIndex=0;s=r.exec(e);){const u=s.index;if("}"==s[0]){if(n.pop(),0==n.length){const y=e.substring(t,u);Yg.test(y)?i.push(jT(y)):i.push(y),t=u+1}}else{if(0==n.length){const y=e.substring(t,u);i.push(y),t=u+1}n.push("{")}}const c=e.substring(t);return i.push(c),i}function BT(e,t,n,i,r,s,c,u){const y=[],A=[],H=[];t.cases.push(s),t.create.push(y),t.remove.push(A),t.update.push(H);const _e=bf(Tr()).getInertBodyElement(c),Oe=hc(_e)||_e;return Oe?e_(e,t,n,i,y,A,H,Oe,r,u,0):0}function e_(e,t,n,i,r,s,c,u,y,A,H){let de=0,_e=u.firstChild;for(;_e;){const Oe=ns(e,n,1,null);switch(_e.nodeType){case Node.ELEMENT_NODE:const We=_e,ct=We.tagName.toLowerCase();if(cc.hasOwnProperty(ct)){fd(r,_l,ct,y,Oe),e.data[Oe]=ct;const zt=We.attributes;for(let Xt=0;Xt<zt.length;Xt++){const gn=zt.item(Xt),Xn=gn.name.toLowerCase();gn.value.match(Cl)?wf.hasOwnProperty(Xn)&&vs(c,gn.value,Oe,gn.name,0,uc[Xn]?Ks:dc[Xn]?Cf:null):UT(r,Oe,gn)}de=e_(e,t,n,i,r,s,c,_e,Oe,A,H+1)|de,t_(s,Oe,H)}break;case Node.TEXT_NODE:const it=_e.textContent||"",Ot=it.match(Cl);fd(r,null,Ot?"":it,y,Oe),t_(s,Oe,H),Ot&&(de=vs(c,it,Oe,null,0,null)|de);break;case Node.COMMENT_NODE:const Dt=ST.exec(_e.textContent||"");if(Dt){const Xt=A[parseInt(Dt[1],10)];fd(r,yl,"",y,Oe),qg(e,n,i,y,Xt,Oe),VT(s,Oe,H)}}_e=_e.nextSibling}return de}function t_(e,t,n){0===n&&e.push(t)}function VT(e,t,n){0===n&&(e.push(~t),e.push(t))}function fd(e,t,n,i,r){null!==t&&e.push(t),e.push(n,r,function(e,t,n){return 0|t<<17|n<<1}(0,i,r))}function UT(e,t,n){e.push(t<<1|1,n.name,n.value)}const zT=/\[(\ufffd.+?\ufffd?)\]/,WT=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,KT=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,GT=/{([A-Z0-9_]+)}/g,QT=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,YT=/\/\*/,JT=/\d+\:(\d+)/;function i_(e,t={}){let n=e;if(zT.test(e)){const i={},r=[0];n=n.replace(WT,(s,c,u)=>{const y=c||u,A=i[y]||[];if(A.length||(y.split("|").forEach(ct=>{const it=ct.match(JT),Ot=it?parseInt(it[1],10):0,Dt=YT.test(ct);A.push([Ot,Dt,ct])}),i[y]=A),!A.length)throw new Error(`i18n postprocess: unmatched placeholder - ${y}`);const H=r[r.length-1];let de=0;for(let ct=0;ct<A.length;ct++)if(A[ct][0]===H){de=ct;break}const[_e,Oe,We]=A[de];return Oe?r.pop():H!==_e&&r.push(_e),A.splice(de,1),We})}return Object.keys(t).length&&(n=n.replace(KT,(i,r,s,c,u,y)=>t.hasOwnProperty(s)?`${r}${t[s]}${y}`:i),n=n.replace(GT,(i,r)=>t.hasOwnProperty(r)?t[r]:i),n=n.replace(QT,(i,r)=>{if(t.hasOwnProperty(r)){const s=t[r];if(!s.length)throw new Error(`i18n postprocess: unmatched ICU - ${i} with key: ${r}`);return s.shift()}return i})),n}function pd(e,t,n=-1){const i=pn(),r=Mt(),s=20+e,c=Kn(i.consts,t),u=yo();i.firstCreatePass&&function(e,t,n,i,r,s){const c=yo(),u=[],y=[],A=[[]],H=function(e){return e.replace(AT," ")}(r=function(e,t){if(function(e){return-1===e}(t))return Xg(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,i=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return Xg(e.substring(n,i))}}(r,s)).split(PT);for(let de=0;de<H.length;de++){let _e=H[de];if(0==(1&de)){const Oe=hd(_e);for(let We=0;We<Oe.length;We++){let ct=Oe[We];if(0==(1&We)){const it=ct;""!==it&&RT(e,c,A[0],u,y,n,it)}else{const it=ct;if("object"!=typeof it)throw new Error(`Unable to parse ICU expression in "${r}" message.`);qg(e,n,y,t,it,Jg(e,c,A[0],n,u,"",!0).index)}}}else{const Oe=47===_e.charCodeAt(0),ct=(_e.charCodeAt(Oe?1:0),20+Number.parseInt(_e.substring(Oe?2:1)));if(Oe)A.shift(),Vi(yo(),!1);else{const it=yT(e,A[0],ct);A.unshift([]),Vi(it,!0)}}}e.data[i]={create:u,update:y}}(i,null===u?0:u.index,r,s,c,n);const y=i.data[s],H=op(i,u===r[6]?null:u,r);(function(e,t,n,i){const r=e[11];for(let s=0;s<t.length;s++){const c=t[s++],u=t[s],y=(c&Vn.COMMENT)===Vn.COMMENT,A=(c&Vn.APPEND_EAGERLY)===Vn.APPEND_EAGERLY,H=c>>>Vn.SHIFT;let de=e[H];null===de&&(de=e[H]=y?r.createComment(u):Dc(r,u)),A&&null!==n&&wo(r,n,de,i,!1)}})(r,y.create,H,u&&8&u.type?r[u.index]:null),nn(!0)}function md(){nn(!1)}function r_(e,t,n){pd(e,t,n),md()}function o_(e,t){const n=pn();!function(e,t,n){const r=kn().index,s=[];if(e.firstCreatePass&&null===e.data[t]){for(let c=0;c<n.length;c+=2){const u=n[c],y=n[c+1];if(""!==y){if(MT.test(y))throw new Error(`ICU expressions are not supported in attributes. Message: "${y}".`);vs(s,y,r,u,FT(s),null)}}e.data[t]=s}}(n,e+20,Kn(n.consts,t))}function gd(e){return function(e){e&&(da|=1<<Math.min(ha,31)),ha++}(fi(Mt(),bt(),e)),gd}function s_(e){!function(e,t,n){if(ha>0){const i=e.data[n];Wg(e,t,Array.isArray(i)?i:i.update,ke()-ha-1,da)}da=0,ha=0}(pn(),Mt(),e+20)}function a_(e,t={}){return i_(e,t)}function _d(e,t,n,i,r){if(e=S(e),Array.isArray(e))for(let s=0;s<e.length;s++)_d(e[s],t,n,i,r);else{const s=pn(),c=Mt();let u=os(e)?e:S(e.provide),y=rm(e);const A=kn(),H=1048575&A.providerIndexes,de=A.directiveStart,_e=A.providerIndexes>>20;if(os(e)||!e.multi){const Oe=new Ri(y,r,aa),We=vd(u,t,r?H:H+_e,de);-1===We?(Wa(Hs(A,c),s,u),yd(s,e,t.length),t.push(u),A.directiveStart++,A.directiveEnd++,r&&(A.providerIndexes+=1048576),n.push(Oe),c.push(Oe)):(n[We]=Oe,c[We]=Oe)}else{const Oe=vd(u,t,H+_e,de),We=vd(u,t,H,H+_e),ct=Oe>=0&&n[Oe],it=We>=0&&n[We];if(r&&!it||!r&&!ct){Wa(Hs(A,c),s,u);const Ot=function(e,t,n,i,r){const s=new Ri(e,n,aa);return s.multi=[],s.index=t,s.componentProviders=0,l_(s,r,i&&!n),s}(r?qT:XT,n.length,r,i,y);!r&&it&&(n[We].providerFactory=Ot),yd(s,e,t.length,0),t.push(u),A.directiveStart++,A.directiveEnd++,r&&(A.providerIndexes+=1048576),n.push(Ot),c.push(Ot)}else yd(s,e,Oe>-1?Oe:We,l_(n[r?We:Oe],y,!r&&i));!r&&i&&it&&n[We].componentProviders++}}}function yd(e,t,n,i){const r=os(t);if(r||function(e){return!!e.useClass}(t)){const c=(t.useClass||t).prototype.ngOnDestroy;if(c){const u=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const y=u.indexOf(n);-1===y?u.push(n,[i,c]):u[y+1].push(i,c)}else u.push(n,c)}}}function l_(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function vd(e,t,n,i){for(let r=n;r<i;r++)if(t[r]===e)return r;return-1}function XT(e,t,n,i){return bd(this.multi,[])}function qT(e,t,n,i){const r=this.multi;let s;if(this.providerFactory){const c=this.providerFactory.componentProviders,u=$s(n,n[1],this.providerFactory.index,i);s=u.slice(0,c),bd(r,s);for(let y=c;y<u.length;y++)s.push(u[y])}else s=[],bd(r,s);return s}function bd(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function c_(e,t=[]){return n=>{n.providersResolver=(i,r)=>function(e,t,n){const i=pn();if(i.firstCreatePass){const r=ni(e);_d(n,i.data,i.blueprint,r,!0),_d(t,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,t)}}class Cd{}class bs{}function u_(e){const t=Error(`No component factory found for ${D(e)}. Did you add it to @NgModule.entryComponents?`);return t[d_]=e,t}const d_="ngComponent";class t0{resolveComponentFactory(t){throw u_(t)}}let Cs=(()=>{class e{}return e.NULL=new t0,e})();class n0{constructor(t,n,i){this._parent=n,this._ngModule=i,this._factories=new Map;for(let r=0;r<t.length;r++){const s=t[r];this._factories.set(s.componentType,s)}}resolveComponentFactory(t){let n=this._factories.get(t);if(!n&&this._parent&&(n=this._parent.resolveComponentFactory(t)),!n)throw u_(t);return new Ed(n,this._ngModule)}}class Ed extends bs{constructor(t,n){super(),this.factory=t,this.ngModule=n,this.selector=t.selector,this.componentType=t.componentType,this.ngContentSelectors=t.ngContentSelectors,this.inputs=t.inputs,this.outputs=t.outputs}create(t,n,i,r){return this.factory.create(t,n,i,r||this.ngModule)}}function El(...e){}function h_(){return Io(kn(),Mt())}function Io(e,t){return new cr(St(e,t))}const f_=h_,r0=f_;let cr=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=r0,e})();function p_(e){return e instanceof cr?e.nativeElement:e}class Dl{}let m_=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>o0(),e})();const g_=__,o0=g_;function __(){const e=Mt(),n=bn(kn().index,e);return function(e){return e[11]}(ti(n)?n:e)}let Dd=(()=>{class e{}return e.\u0275prov=$({token:e,providedIn:"root",factory:()=>null}),e})();class y_{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Td=new y_("12.2.13");class wd{constructor(){}supports(t){return ia(t)}create(t){return new v_(t)}}const a0=(e,t)=>t;class v_{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||a0}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,r=0,s=null;for(;n||i;){const c=!i||n&&n.currentIndex<C_(i,r,s)?n:i,u=C_(c,r,s),y=c.currentIndex;if(c===i)r--,i=i._nextRemoved;else if(n=n._next,null==c.previousIndex)r++;else{s||(s=[]);const A=u-r,H=y-r;if(A!=H){for(let _e=0;_e<A;_e++){const Oe=_e<s.length?s[_e]:s[_e]=0,We=Oe+_e;H<=We&&We<A&&(s[_e]=Oe+1)}s[c.previousIndex]=H-A}}u!==y&&t(c,u,y)}}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=[]),!ia(t))throw new Error(`Error trying to diff '${D(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,s,c,n=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let u=0;u<this.length;u++)s=t[u],c=this._trackByFn(u,s),null!==n&&Object.is(n.trackById,c)?(i&&(n=this._verifyReinsertion(n,s,c,u)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,c,u),i=!0),n=n._next}else r=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[ss()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(t,u=>{c=this._trackByFn(r,u),null!==n&&Object.is(n.trackById,c)?(i&&(n=this._verifyReinsertion(n,u,c,r)),Object.is(n.item,u)||this._addIdentityChange(n,u)):(n=this._mismatch(n,u,c,r),i=!0),n=n._next,r++}),this.length=r;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,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,r)):t=this._addAfter(new l0(n,i),s,r),t}_verifyReinsertion(t,n,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),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,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const r=null===n?this._itHead:n._next;return t._next=r,t._prev=n,null===r?this._itTail=t:r._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new b_),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._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 b_),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 l0{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 c0{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 i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class b_{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new c0,this.map.set(n,i)),i.add(t)}get(t,n){const r=this.map.get(t);return r?r.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 C_(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+t+r}class Md{constructor(){}supports(t){return t instanceof Map||lu(t)}create(){return new u0}}class u0{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||lu(t)))throw new Error(`Error trying to diff '${D(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,(i,r)=>{if(n&&n.key===r)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(r,i);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._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 r=this._records.get(t);this._maybeAddToChanges(r,n);const s=r._prev,c=r._next;return s&&(s._next=c),c&&(c._prev=s),r._next=null,r._prev=null,r}const i=new d0(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_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(i=>n(t[i],i))}}class d0{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 Sd(){return new Tl([new wd])}let Tl=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Sd()),deps:[[e,new Kr,new Wr]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(null!=i)return i;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=$({token:e,providedIn:"root",factory:Sd}),e})();function Id(){return new wl([new Md])}let wl=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Id()),deps:[[e,new Kr,new Wr]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(i)return i;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=$({token:e,providedIn:"root",factory:Id}),e})();function Ml(e,t,n,i,r=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&i.push(v(s)),Cn(s))for(let u=10;u<s.length;u++){const y=s[u],A=y[1].firstChild;null!==A&&Ml(y[1],y,A,i)}const c=n.type;if(8&c)Ml(e,t,n.child,i);else if(32&c){const u=vc(n,t);let y;for(;y=u();)i.push(y)}else if(16&c){const u=hp(t,n);if(Array.isArray(u))i.push(...u);else{const y=Js(t[16]);Ml(y[1],y,u,i,!0)}}n=r?n.projectionNext:n.next}return i}class pa{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 Ml(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(Cn(t)){const n=t[8],i=n?n.indexOf(this):-1;i>-1&&(wc(t,i),Co(n,i))}this._attachedToViewContainer=!1}ip(this._lView[1],this._lView)}onDestroy(t){jp(this._lView[1],this._lView,null,t)}markForCheck(){Kc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Qc(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){me(!0);try{Qc(e,t,n)}finally{me(!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(){var t;this._appRef=null,Zs(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class f0 extends pa{constructor(t){super(t),this._view=t}detectChanges(){Gp(this._view)}checkNoChanges(){!function(e){me(!0);try{Gp(e)}finally{me(!1)}}(this._view)}get context(){return null}}const E_=D_,p0=E_;let Pd=(()=>{class e{}return e.__NG_ELEMENT_ID__=p0,e})();function D_(e){return function(e,t,n){if(ci(e)&&!n){const i=bn(e.index,t);return new pa(i,i)}return 47&e.type?new pa(t[16],t):null}(kn(),Mt(),16==(16&e))}const g0=[new Md],T_=new Tl([new wd]),w_=new wl(g0),M_=S_,y0=M_;let Po=(()=>{class e{}return e.__NG_ELEMENT_ID__=y0,e})();const v0=Po,b0=class extends v0{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Xs(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(n)),qs(n,i,t),new pa(i)}};function S_(){return ma(kn(),Mt())}function ma(e,t){return 4&e.type?new b0(t,e,Io(e,t)):null}class uo{}class Ad{}const I_=P_,C0=I_;let ga=(()=>{class e{}return e.__NG_ELEMENT_ID__=C0,e})();function P_(){return x_(kn(),Mt())}const E0=ga,A_=class extends E0{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return Io(this._hostTNode,this._hostLView)}get injector(){return new jo(this._hostTNode,this._hostLView)}get parentInjector(){const t=za(this._hostTNode,this._hostLView);if($h(t)){const n=Lo(t,this._hostLView),i=No(t);return new jo(n[1].data[i+8],n)}return new jo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=O_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const r=t.createEmbeddedView(n||{});return this.insert(r,i),r}createComponent(t,n,i,r,s){const c=i||this.parentInjector;if(!s&&null==t.ngModule&&c){const y=c.get(uo,null);y&&(s=y)}const u=t.create(c,r,void 0,s);return this.insert(u.hostView,n),u}insert(t,n){const i=t._lView,r=i[1];if(Cn(i[3])){const H=this.indexOf(t);if(-1!==H)this.detach(H);else{const de=i[3],_e=new A_(de,de[6],de[3]);_e.detach(_e.indexOf(t))}}const s=this._adjustIndex(n),c=this._lContainer;!function(e,t,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=t),i<s-10?(t[4]=n[r],Ya(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;const c=t[17];null!==c&&n!==c&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(c,t);const u=t[19];null!==u&&u.insertView(e),t[2]|=128}(r,i,c,s);const u=Ic(s,c),y=i[11],A=il(y,c[7]);return null!==A&&function(e,t,n,i,r,s){i[0]=r,i[6]=t,Zs(e,i,n,1,r,s)}(r,c[6],y,i,A,u),t.attachToViewContainerRef(),Ya(Od(c),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=O_(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),i=wc(this._lContainer,n);i&&(Co(Od(this._lContainer),n),ip(i[1],i))}detach(t){const n=this._adjustIndex(t,-1),i=wc(this._lContainer,n);return i&&null!=Co(Od(this._lContainer),n)?new pa(i):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function O_(e){return e[8]}function Od(e){return e[8]||(e[8]=[])}function x_(e,t){let n;const i=t[e.index];if(Cn(i))n=i;else{let r;if(8&e.type)r=v(i);else{const s=t[11];r=s.createComment("");const c=St(e,t);wo(s,il(s,c),r,function(e,t){return O(e)?e.nextSibling(t):t.nextSibling}(s,c),!1)}t[e.index]=n=Kp(i,t,r,e),ul(t,n)}return new A_(n,e,t)}function R_(e,t,n,i){let r=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return i&&(r+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return k_(n,t),n}(r,e)}function k_(e,t){e[Vf]=t,e[Hf]=t.logError.bind(t)}function F_(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Sl(e,t,n){const i=e.state,r=1792&i;return r===t?(e.state=-1793&i|n,e.initIndex=-1,!0):r===n}function Il(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function _a(e,t){return e.nodes[t]}function En(e,t){return e.nodes[t]}function ho(e,t){return e.nodes[t]}function Es(e,t){return e.nodes[t]}function ya(e,t){return e.nodes[t]}class M0{}const ln={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Yi=()=>{},xd=new Map;function ai(e){let t=xd.get(e);return t||(t=D(e)+"_"+xd.size,xd.set(e,t)),t}function S0(e,t,n,i){if(Gi.isWrapped(i)){i=Gi.unwrap(i);const r=e.def.nodes[t].bindingIndex+n,s=Gi.unwrap(e.oldValues[r]);e.oldValues[r]=new Gi(s)}return i}const N_="$$undefined",L_="$$empty";function I0(e){return{id:N_,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let P0=0;function Ji(e,t,n,i){return!(!(2&e.state)&&Object.is(e.oldValues[t.bindingIndex+n],i))}function Nn(e,t,n,i){return!!Ji(e,t,n,i)&&(e.oldValues[t.bindingIndex+n]=i,!0)}function ur(e,t,n,i){const r=e.oldValues[t.bindingIndex+n];if(1&e.state||!au(r,i)){const s=t.bindings[n].name;throw R_(ln.createDebugContext(e,t.nodeIndex),`${s}: ${r}`,`${s}: ${i}`,0!=(1&e.state))}}function j_(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function O0(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function B_(e,t,n,i){try{return j_(33554432&e.def.nodes[t].flags?En(e,t).componentView:e),ln.handleEvent(e,t,n,i)}catch(r){e.root.errorHandler.handleError(r)}}function Rd(e){return e.parent?En(e.parent,e.parentNodeDef.nodeIndex):null}function Ds(e){return e.parent?e.parentNodeDef.parent:null}function va(e,t){switch(201347067&t.flags){case 1:return En(e,t.nodeIndex).renderElement;case 2:return _a(e,t.nodeIndex).renderText}}function x0(e,t){return e?`${e}:${t}`:t}function Ao(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function R0(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function V_(e){return 1<<e%32}function kd(e){const t={};let n=0;const i={};return e&&e.forEach(([r,s])=>{"number"==typeof r?(t[r]=s,n|=V_(r)):i[r]=s}),{matchedQueries:t,references:i,matchedQueryIds:n}}function ba(e,t){return e.map(n=>{let i,r;return Array.isArray(n)?[r,i]=n:(r=0,i=n),i&&("function"==typeof i||"object"==typeof i)&&t&&Object.defineProperty(i,ic,{value:t,configurable:!0}),{flags:r,token:i,tokenKey:ai(i)}})}function Fd(e,t,n){let i=n.renderParent;return i?0==(1&i.flags)||0==(33554432&i.flags)||i.element.componentRendererType&&(i.element.componentRendererType.encapsulation===ie.ShadowDom||1===i.element.componentRendererType.encapsulation)?En(e,n.renderParent.nodeIndex).renderElement:void 0:t}const H_=new WeakMap;function Ts(e){let t=H_.get(e);return t||(t=e(()=>Yi),t.factory=e,H_.set(e,t)),t}function Pl(e,t,n,i,r){3===t&&(n=e.renderer.parentNode(va(e,e.def.lastRenderRootNode))),$_(e,t,0,e.def.nodes.length-1,n,i,r)}function $_(e,t,n,i,r,s,c){for(let u=n;u<=i;u++){const y=e.def.nodes[u];11&y.flags&&z_(e,y,t,r,s,c),u+=y.childCount}}function U_(e,t,n,i,r,s){let c=e;for(;c&&!Ao(c);)c=c.parent;const u=c.parent,y=Ds(c),H=y.nodeIndex+y.childCount;for(let de=y.nodeIndex+1;de<=H;de++){const _e=u.def.nodes[de];_e.ngContentIndex===t&&z_(u,_e,n,i,r,s),de+=_e.childCount}if(!u.parent){const de=e.root.projectableNodes[t];if(de)for(let _e=0;_e<de.length;_e++)Al(e,de[_e],n,i,r,s)}}function z_(e,t,n,i,r,s){if(8&t.flags)U_(e,t.ngContent.index,n,i,r,s);else{const c=va(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&Al(e,c,n,i,r,s),32&t.bindingFlags&&Al(En(e,t.nodeIndex).componentView,c,n,i,r,s)):Al(e,c,n,i,r,s),16777216&t.flags){const u=En(e,t.nodeIndex).viewContainer._embeddedViews;for(let y=0;y<u.length;y++)Pl(u[y],n,i,r,s)}1&t.flags&&!t.element.name&&$_(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,i,r,s)}}function Al(e,t,n,i,r,s){const c=e.renderer;switch(n){case 1:c.appendChild(i,t);break;case 2:c.insertBefore(i,t,r);break;case 3:c.removeChild(i,t);break;case 0:s.push(t)}}const F0=/^:([^:]+):(.+)$/;function Nd(e){if(":"===e[0]){const t=e.match(F0);return[t[1],t[2]]}return["",e]}function Ld(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}function N0(e,t){let n="";for(let i=0;i<2*e;i+=2)n=n+t[i]+sn(t[i+1]);return n+t[2*e]}function L0(e,t,n,i,r,s,c,u,y,A,H,de,_e,Oe,We,ct,it,Ot,Dt,zt){switch(e){case 1:return t+sn(n)+i;case 2:return t+sn(n)+i+sn(r)+s;case 3:return t+sn(n)+i+sn(r)+s+sn(c)+u;case 4:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A;case 5:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A+sn(H)+de;case 6:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A+sn(H)+de+sn(_e)+Oe;case 7:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A+sn(H)+de+sn(_e)+Oe+sn(We)+ct;case 8:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A+sn(H)+de+sn(_e)+Oe+sn(We)+ct+sn(it)+Ot;case 9:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A+sn(H)+de+sn(_e)+Oe+sn(We)+ct+sn(it)+Ot+sn(Dt)+zt;default:throw new Error("Does not support more than 9 expressions")}}function sn(e){return null!=e?e.toString():""}const j0={},Ca={},B0=ai(In),V0=ai(co),H0=ai(uo);function $0(e,t,n,i){return n=S(n),{index:-1,deps:ba(i,D(t)),flags:e,token:t,value:n}}function U0(e){const t={},n=[];let i=null;for(let r=0;r<e.length;r++){const s=e[r];s.token===ea&&(i=s.value),1073741824&s.flags&&n.push(s.token),s.index=r,t[ai(s.token)]=s}return{factory:null,providersByKey:t,providers:e,modules:n,scope:i}}function pi(e,t,n=In.THROW_IF_NOT_FOUND){const i=Eo(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);const r=t.tokenKey;switch(r){case B0:case V0:case H0:return e}const s=e._def.providersByKey[r];let c;if(s){let u=e._providers[s.index];return void 0===u&&(u=e._providers[s.index]=jd(e,s)),u===Ca?void 0:u}if((c=ue(t.token))&&function(e,t){const n=S(t.providedIn);return null!=n&&("any"===n||n===e._def.scope||function(e,t){return e._def.modules.indexOf(t)>-1}(e,n))}(e,c)){const u=e._providers.length;return e._def.providers[u]=e._def.providersByKey[t.tokenKey]={flags:5120,value:c.factory,deps:[],index:u,token:t.token},e._providers[u]=Ca,e._providers[u]=jd(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Eo(i)}}function jd(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const i=n.length;switch(i){case 0:return new t;case 1:return new t(pi(e,n[0]));case 2:return new t(pi(e,n[0]),pi(e,n[1]));case 3:return new t(pi(e,n[0]),pi(e,n[1]),pi(e,n[2]));default:const r=[];for(let s=0;s<i;s++)r[s]=pi(e,n[s]);return new t(...r)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const i=n.length;switch(i){case 0:return t();case 1:return t(pi(e,n[0]));case 2:return t(pi(e,n[0]),pi(e,n[1]));case 3:return t(pi(e,n[0]),pi(e,n[1]),pi(e,n[2]));default:const r=[];for(let s=0;s<i;s++)r[s]=pi(e,n[s]);return t(...r)}}(e,t.value,t.deps);break;case 2048:n=pi(e,t.deps[0]);break;case 256:n=t.value}return n!==Ca&&null!==n&&"object"==typeof n&&!(131072&t.flags)&&"function"==typeof n.ngOnDestroy&&(t.flags|=131072),void 0===n?Ca:n}function Bd(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const i=n[t];return i.viewContainerParent=null,Co(n,t),ln.dirtyParentQueries(i),Vd(i),i}function W_(e,t,n){const i=t?va(t,t.def.lastRenderRootNode):e.renderElement,r=n.renderer.parentNode(i),s=n.renderer.nextSibling(i);Pl(n,2,r,s,void 0)}function Vd(e){Pl(e,3,null,null,void 0)}const tw={};function nw(e,t,n,i,r,s){return new iw(e,t,n,i,r,s)}function K_(e){return e.viewDefFactory}class iw extends bs{constructor(t,n,i,r,s,c){super(),this.selector=t,this.componentType=n,this._inputs=r,this._outputs=s,this.ngContentSelectors=c,this.viewDefFactory=i}get inputs(){const t=[],n=this._inputs;for(let i in n)t.push({propName:i,templateName:n[i]});return t}get outputs(){const t=[];for(let n in this._outputs)t.push({propName:n,templateName:this._outputs[n]});return t}create(t,n,i,r){if(!r)throw new Error("ngModule should be provided");const s=Ts(this.viewDefFactory),c=s.nodes[0].element.componentProvider.nodeIndex,u=ln.createRootView(t,n||[],i,s,r,tw),y=ho(u,c).instance;return i&&u.renderer.setAttribute(En(u,0).renderElement,"ng-version",Td.full),new rw(u,new Ea(u),y)}}class rw extends Cd{constructor(t,n,i){super(),this._view=t,this._viewRef=n,this._component=i,this._elDef=this._view.def.nodes[0],this.hostView=n,this.changeDetectorRef=n,this.instance=i}get location(){return new cr(En(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Da(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(t){this._viewRef.onDestroy(t)}}function ow(e,t,n){return new sw(e,t,n)}class sw{constructor(t,n,i){this._view=t,this._elDef=n,this._data=i,this._embeddedViews=[]}get element(){return new cr(this._data.renderElement)}get injector(){return new Da(this._view,this._elDef)}get parentInjector(){let t=this._view,n=this._elDef.parent;for(;!n&&t;)n=Ds(t),t=t.parent;return t?new Da(t,n):new Da(this._view,null)}clear(){for(let n=this._embeddedViews.length-1;n>=0;n--){const i=Bd(this._data,n);ln.destroyView(i)}}get(t){const n=this._embeddedViews[t];if(n){const i=new Ea(n);return i.attachToViewContainerRef(this),i}return null}get length(){return this._embeddedViews.length}createEmbeddedView(t,n,i){const r=t.createEmbeddedView(n||{});return this.insert(r,i),r}createComponent(t,n,i,r,s){const c=i||this.parentInjector;!s&&!(t instanceof Ed)&&(s=c.get(uo));const u=t.create(c,r,void 0,s);return this.insert(u.hostView,n),u}insert(t,n){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const i=t;return function(e,t,n,i){let r=t.viewContainer._embeddedViews;null==n&&(n=r.length),i.viewContainerParent=e,Ya(r,n,i),function(e,t){const n=Rd(t);if(!n||n===e||16&t.state)return;t.state|=16;let i=n.template._projectedViews;i||(i=n.template._projectedViews=[]),i.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,i),ln.dirtyParentQueries(i),W_(t,n>0?r[n-1]:null,i)}(this._view,this._data,n,i._view),i.attachToViewContainerRef(this),t}move(t,n){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const i=this._embeddedViews.indexOf(t._view);return function(e,t,n){const i=e.viewContainer._embeddedViews,r=i[t];Co(i,t),null==n&&(n=i.length),Ya(i,n,r),ln.dirtyParentQueries(r),Vd(r),W_(e,n>0?i[n-1]:null,r)}(this._data,i,n),t}indexOf(t){return this._embeddedViews.indexOf(t._view)}remove(t){const n=Bd(this._data,t);n&&ln.destroyView(n)}detach(t){const n=Bd(this._data,t);return n?new Ea(n):null}}function aw(e){return new Ea(e)}class Ea{constructor(t){this._view=t,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return Pl(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}set context(t){this._view.context=t}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){j_(this._view)}detach(){this._view.state&=-5}detectChanges(){const t=this._view.root.rendererFactory;t.begin&&t.begin();try{ln.checkAndUpdateView(this._view)}finally{t.end&&t.end()}}checkNoChanges(){ln.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),ln.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Vd(this._view),ln.dirtyParentQueries(this._view)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}}function lw(e,t){return new cw(e,t)}class cw extends Po{constructor(t,n){super(),this._parentView=t,this._def=n}createEmbeddedView(t){return new Ea(ln.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))}get elementRef(){return new cr(En(this._parentView,this._def.nodeIndex).renderElement)}}function G_(e,t){return new Da(e,t)}class Da{constructor(t,n){this.view=t,this.elDef=n}get(t,n=In.THROW_IF_NOT_FOUND){return ln.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:ai(t)},n)}}function uw(e,t){const n=e.def.nodes[t];if(1&n.flags){const i=En(e,n.nodeIndex);return n.element.template?i.template:i.renderElement}if(2&n.flags)return _a(e,n.nodeIndex).renderText;if(20240&n.flags)return ho(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function Q_(e,t,n,i){return new dw(e,t,n,i)}class dw{constructor(t,n,i,r){this._moduleType=t,this._parent=n,this._bootstrapComponents=i,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=oo(t.providers.length);for(let i=0;i<t.providers.length;i++){const r=t.providers[i];4096&r.flags||void 0===n[i]&&(n[i]=jd(e,r))}}(this)}get(t,n=In.THROW_IF_NOT_FOUND,i=q.Default){let r=0;return i&q.SkipSelf?r|=1:i&q.Self&&(r|=4),pi(this,{token:t,tokenKey:ai(t),flags:r},n)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(Cs)}destroy(){if(this._destroyed)throw new Error(`The ng module ${D(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,i=new Set;for(let r=0;r<n.providers.length;r++)if(131072&n.providers[r].flags){const c=e._providers[r];if(c&&c!==Ca){const u=c.ngOnDestroy;"function"==typeof u&&!i.has(c)&&(u.apply(c),i.add(c))}}}(this),this._destroyListeners.forEach(t=>t())}onDestroy(t){this._destroyListeners.push(t)}}const hw=ai(m_),fw=ai(cr),pw=ai(ga),mw=ai(Po),Y_=ai(Pd),gw=ai(In),_w=ai(co);function yw(e,t,n,i,r,s,c,u){const y=[];if(c)for(let H in c){const[de,_e]=c[H];y[de]={flags:8,name:H,nonMinifiedName:_e,ns:null,securityContext:null,suffix:null}}const A=[];if(u)for(let H in u)A.push({type:1,propName:H,target:null,eventName:u[H]});return Ol(e,t|=16384,n,i,r,r,s,y,A)}function vw(e,t,n){return Ol(-1,e|=16,null,0,t,t,n)}function bw(e,t,n,i,r){return Ol(-1,e,t,0,n,i,r)}function Ol(e,t,n,i,r,s,c,u,y){const{matchedQueries:A,references:H,matchedQueryIds:de}=kd(n);y||(y=[]),u||(u=[]),s=S(s);const _e=ba(c,D(r));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:A,matchedQueryIds:de,references:H,ngContentIndex:-1,childCount:i,bindings:u,bindingFlags:Ld(u),outputs:y,element:null,provider:{token:r,value:s,deps:_e},text:null,query:null,ngContent:null}}function Cw(e,t){return J_(e,t)}function Ew(e,t){let n=e;for(;n.parent&&!Ao(n);)n=n.parent;return Hd(n.parent,Ds(n),!0,t.provider.value,t.provider.deps)}function Dw(e,t){const i=Hd(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;r<t.outputs.length;r++){const s=t.outputs[r],c=i[s.propName];if(!Pu(c))throw new Error(`@Output ${s.propName} not initialized in '${i.constructor.name}'.`);{const u=c.subscribe(Tw(e,t.parent.nodeIndex,s.eventName));e.disposables[t.outputIndex+r]=u.unsubscribe.bind(u)}}return i}function Tw(e,t,n){return i=>B_(e,t,n,i)}function J_(e,t){const n=(8192&t.flags)>0,i=t.provider;switch(201347067&t.flags){case 512:return Hd(e,t.parent,n,i.value,i.deps);case 1024:return function(e,t,n,i,r){const s=r.length;switch(s){case 0:return i();case 1:return i(mi(e,t,n,r[0]));case 2:return i(mi(e,t,n,r[0]),mi(e,t,n,r[1]));case 3:return i(mi(e,t,n,r[0]),mi(e,t,n,r[1]),mi(e,t,n,r[2]));default:const c=[];for(let u=0;u<s;u++)c.push(mi(e,t,n,r[u]));return i(...c)}}(e,t.parent,n,i.value,i.deps);case 2048:return mi(e,t.parent,n,i.deps[0]);case 256:return i.value}}function Hd(e,t,n,i,r){const s=r.length;switch(s){case 0:return new i;case 1:return new i(mi(e,t,n,r[0]));case 2:return new i(mi(e,t,n,r[0]),mi(e,t,n,r[1]));case 3:return new i(mi(e,t,n,r[0]),mi(e,t,n,r[1]),mi(e,t,n,r[2]));default:const c=[];for(let u=0;u<s;u++)c.push(mi(e,t,n,r[u]));return new i(...c)}}const Oo={};function mi(e,t,n,i,r=In.THROW_IF_NOT_FOUND){if(8&i.flags)return i.token;const s=e;2&i.flags&&(r=null);const c=i.tokenKey;c===Y_&&(n=!(!t||!t.element.componentView)),t&&1&i.flags&&(n=!1,t=t.parent);let u=e;for(;u;){if(t)switch(c){case hw:return Z_(u,t,n).renderer;case fw:return new cr(En(u,t.nodeIndex).renderElement);case pw:return En(u,t.nodeIndex).viewContainer;case mw:if(t.element.template)return En(u,t.nodeIndex).template;break;case Y_:return aw(Z_(u,t,n));case gw:case _w:return G_(u,t);default:const A=(n?t.element.allProviders:t.element.publicProviders)[c];if(A){let H=ho(u,A.nodeIndex);return H||(H={instance:J_(u,A)},u.nodes[A.nodeIndex]=H),H.instance}}n=Ao(u),t=Ds(u),u=u.parent,4&i.flags&&(u=null)}const y=s.root.injector.get(i.token,Oo);return y!==Oo||r===Oo?y:s.root.ngModule.injector.get(i.token,r)}function Z_(e,t,n){let i;if(n)i=En(e,t.nodeIndex).componentView;else for(i=e;i.parent&&!Ao(i);)i=i.parent;return i}function dr(e,t,n,i,r,s){if(32768&n.flags){const y=En(e,n.parent.nodeIndex).componentView;2&y.def.flags&&(y.state|=8)}if(t.instance[n.bindings[i].name]=r,524288&n.flags){s=s||{};const y=Gi.unwrap(e.oldValues[n.bindingIndex+i]);s[n.bindings[i].nonMinifiedName]=new er(y,r,0!=(2&e.state))}return e.oldValues[n.bindingIndex+i]=r,s}function $d(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let i=0;for(let r=0;r<n.length;r++){const s=n[r];let c=s.parent;for(!c&&s.flags&t&&X_(e,r,s.flags&t,i++),0==(s.childFlags&t)&&(r+=s.childCount);c&&1&c.flags&&r===c.nodeIndex+c.childCount;)c.directChildFlags&t&&(i=Iw(e,c,t,i)),c=c.parent}}function Iw(e,t,n,i){for(let r=t.nodeIndex+1;r<=t.nodeIndex+t.childCount;r++){const s=e.def.nodes[r];s.flags&n&&X_(e,r,s.flags&n,i++),r+=s.childCount}return i}function X_(e,t,n,i){const r=ho(e,t);if(!r)return;const s=r.instance;!s||(ln.setCurrentNode(e,t),1048576&n&&Il(e,512,i)&&s.ngAfterContentInit(),2097152&n&&s.ngAfterContentChecked(),4194304&n&&Il(e,768,i)&&s.ngAfterViewInit(),8388608&n&&s.ngAfterViewChecked(),131072&n&&s.ngOnDestroy())}class q_ extends Cs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=an(t);return new Ud(n,this.ngModule)}}function ey(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const ty=new jn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Gf});class Ud extends bs{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=t.selectors.map(JC).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return ey(this.componentDef.inputs)}get outputs(){return ey(this.componentDef.outputs)}create(t,n,i,r){const s=(r=r||this.ngModule)?function(e,t){return{get:(n,i,r)=>{const s=e.get(n,Oo,r);return s!==Oo||i===Oo?s:t.get(n,i,r)}}}(t,r.injector):t,c=s.get(Dl,k),u=s.get(Dd,null),y=c.createRenderer(null,this.componentDef),A=this.componentDef.selectors[0][0]||"div",H=i?Lp(y,i,this.componentDef.encapsulation):Tc(c.createRenderer(null,this.componentDef),A,function(e){const t=e.toLowerCase();return"svg"===t?Cr:"math"===t?no:null}(A)),de=this.componentDef.onPush?576:528,_e=Em(),Oe=cl(0,null,null,1,0,null,null,null,null,null),We=Xs(null,Oe,_e,de,null,null,c,y,u,s);let ct,it;nr(We);try{const Ot=bm(H,this.componentDef,We,c,y);if(H)if(i)Ha(y,H,["ng-version",Td.full]);else{const{attrs:Dt,classes:zt}=function(e){const t=[],n=[];let i=1,r=2;for(;i<e.length;){let s=e[i];if("string"==typeof s)2===r?""!==s&&t.push(s,e[++i]):8===r&&n.push(s);else{if(!rr(r))break;r=s}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);Dt&&Ha(y,H,Dt),zt&&zt.length>0&&Ac(y,H,zt.join(" "))}if(it=fn(Oe,20),void 0!==n){const Dt=it.projection=[];for(let zt=0;zt<this.ngContentSelectors.length;zt++){const Xt=n[zt];Dt.push(null!=Xt?Array.from(Xt):null)}}ct=Cm(Ot,this.componentDef,We,_e,[Dm]),qs(Oe,We,null)}finally{Ei()}return new ny(this.componentType,ct,Io(it,We),We,it)}}class ny extends Cd{constructor(t,n,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new f0(r),this.componentType=t}get injector(){return new jo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function iy(e,t,n,i){return F(()=>{const r=e;null!==t&&(r.hasOwnProperty("decorators")&&void 0!==r.decorators?r.decorators.push(...t):r.decorators=t),null!==n&&(r.ctorParameters=n),null!==i&&(r.propDecorators=r.hasOwnProperty("propDecorators")&&void 0!==r.propDecorators?Object.assign(Object.assign({},r.propDecorators),i):i)})}const ws=new Map;function xw(e,t){const n=ws.get(e);ry(e,n&&n.moduleType,t.moduleType),ws.set(e,t)}function ry(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${D(t)} vs ${D(t.name)}`)}function oy(e){const t=new Set;!function n(i){const r=yn(i,!0),s=r.id;if(null!==s){ry(s,ws.get(s),i),ws.set(s,i)}const c=Sr(r.imports);for(const u of c)t.has(u)||(t.add(u),n(u))}(e)}function sy(e){return ws.get(e)||re[e]}class ay extends uo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new q_(this);const i=yn(t),r=t[V]||null;r&&vl(r),this._bootstrapComponents=Sr(i.bootstrap),this._r3Injector=im(t,n,[{provide:uo,useValue:this},{provide:Cs,useValue:this.componentFactoryResolver}],D(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=In.THROW_IF_NOT_FOUND,i=q.Default){return t===In||t===uo||t===co?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class xl extends Ad{constructor(t){super(),this.moduleType=t,null!==yn(t)&&oy(t)}create(t){return new ay(this.moduleType,t)}}function ly(e,t,n){const i=Te()+e,r=Mt();return r[i]===on?Ar(r,i,n?t.call(n):t()):ra(r,i)}function cy(e,t,n,i){return zd(Mt(),Te(),e,t,n,i)}function uy(e,t,n,i,r){return Wd(Mt(),Te(),e,t,n,i,r)}function dy(e,t,n,i,r,s){return Kd(Mt(),Te(),e,t,n,i,r,s)}function hy(e,t,n,i,r,s,c){return Gd(Mt(),Te(),e,t,n,i,r,s,c)}function fy(e,t,n,i,r,s,c,u){const y=Te()+e,A=Mt(),H=Qi(A,y,n,i,r,s);return fi(A,y+4,c)||H?Ar(A,y+5,u?t.call(u,n,i,r,s,c):t(n,i,r,s,c)):ra(A,y+5)}function py(e,t,n,i,r,s,c,u,y){const A=Te()+e,H=Mt(),de=Qi(H,A,n,i,r,s);return Mo(H,A+4,c,u)||de?Ar(H,A+6,y?t.call(y,n,i,r,s,c,u):t(n,i,r,s,c,u)):ra(H,A+6)}function my(e,t,n,i,r,s,c,u,y,A){const H=Te()+e,de=Mt();let _e=Qi(de,H,n,i,r,s);return fl(de,H+4,c,u,y)||_e?Ar(de,H+7,A?t.call(A,n,i,r,s,c,u,y):t(n,i,r,s,c,u,y)):ra(de,H+7)}function gy(e,t,n,i,r,s,c,u,y,A,H){const de=Te()+e,_e=Mt(),Oe=Qi(_e,de,n,i,r,s);return Qi(_e,de+4,c,u,y,A)||Oe?Ar(_e,de+8,H?t.call(H,n,i,r,s,c,u,y,A):t(n,i,r,s,c,u,y,A)):ra(_e,de+8)}function _y(e,t,n,i){return Qd(Mt(),Te(),e,t,n,i)}function Ta(e,t){const n=e[t];return n===on?void 0:n}function zd(e,t,n,i,r,s){const c=t+n;return fi(e,c,r)?Ar(e,c+1,s?i.call(s,r):i(r)):Ta(e,c+1)}function Wd(e,t,n,i,r,s,c){const u=t+n;return Mo(e,u,r,s)?Ar(e,u+2,c?i.call(c,r,s):i(r,s)):Ta(e,u+2)}function Kd(e,t,n,i,r,s,c,u){const y=t+n;return fl(e,y,r,s,c)?Ar(e,y+3,u?i.call(u,r,s,c):i(r,s,c)):Ta(e,y+3)}function Gd(e,t,n,i,r,s,c,u,y){const A=t+n;return Qi(e,A,r,s,c,u)?Ar(e,A+4,y?i.call(y,r,s,c,u):i(r,s,c,u)):Ta(e,A+4)}function Qd(e,t,n,i,r,s){let c=t+n,u=!1;for(let y=0;y<r.length;y++)fi(e,c++,r[y])&&(u=!0);return u?Ar(e,c,i.apply(s,r)):Ta(e,c)}function yy(e,t){const n=pn();let i;const r=e+20;n.firstCreatePass?(i=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}throw new j("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=yi(i.type)),c=vt(aa);try{const u=Ua(!1),y=s();return Ua(u),Sm(n,Mt(),r,y),y}finally{vt(c)}}function vy(e,t,n){const i=e+20,r=Mt(),s=rn(r,i);return Ma(r,wa(r,i)?zd(r,Te(),t,s.transform,n,s):s.transform(n))}function by(e,t,n,i){const r=e+20,s=Mt(),c=rn(s,r);return Ma(s,wa(s,r)?Wd(s,Te(),t,c.transform,n,i,c):c.transform(n,i))}function Cy(e,t,n,i,r){const s=e+20,c=Mt(),u=rn(c,s);return Ma(c,wa(c,s)?Kd(c,Te(),t,u.transform,n,i,r,u):u.transform(n,i,r))}function Ey(e,t,n,i,r,s){const c=e+20,u=Mt(),y=rn(u,c);return Ma(u,wa(u,c)?Gd(u,Te(),t,y.transform,n,i,r,s,y):y.transform(n,i,r,s))}function Dy(e,t,n){const i=e+20,r=Mt(),s=rn(r,i);return Ma(r,wa(r,i)?Qd(r,Te(),t,s.transform,n,s):s.transform.apply(s,n))}function wa(e,t){return e[1].data[t].pure}function Ma(e,t){return Gi.isWrapped(t)&&(t=Gi.unwrap(t),e[ke()]=on),t}function Yd(e){return t=>{setTimeout(e,void 0,t)}}const xr=class extends o.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var r,s,c;let u=t,y=n||(()=>null),A=i;if(t&&"object"==typeof t){const de=t;u=null===(r=de.next)||void 0===r?void 0:r.bind(de),y=null===(s=de.error)||void 0===s?void 0:s.bind(de),A=null===(c=de.complete)||void 0===c?void 0:c.bind(de)}this.__isAsync&&(y=Yd(y),u&&(u=Yd(u)),A&&(A=Yd(A)));const H=super.subscribe({next:u,error:y,complete:A});return t instanceof l.w&&t.add(H),H}};function Fw(){return this._results[ss()]()}class Sa{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=ss(),i=Sa.prototype;i[n]||(i[n]=Fw)}get changes(){return this._changes||(this._changes=new xr)}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 i=this;i.dirty=!1;const r=zi(t);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],s=t[i];if(n&&(r=n(r),s=n(s)),s!==r)return!1}return!0}(i._results,r,n))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;class Jd{constructor(t){this.queryList=t,this.matches=null}clone(){return new Jd(this.queryList)}setDirty(){this.queryList.setDirty()}}class Zd{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[];for(let s=0;s<i;s++){const c=n.getByIndex(s);r.push(this.queries[c.indexInDeclarationView].clone())}return new Zd(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==xy(t,n).matches&&this.queries[n].setDirty()}}class Ty{constructor(t,n,i=null){this.predicate=t,this.flags=n,this.read=i}}class Xd{constructor(t=[]){this.queries=t}elementStart(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].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 i=0;i<this.length;i++){const r=null!==n?n.length:0,s=this.getByIndex(i).embeddedTView(t,r);s&&(s.indexInDeclarationView=i,null!==n?n.push(s):n=[s])}return null!==n?new Xd(n):null}template(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class qd{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 qd(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(t,n,jw(n,s)),this.matchTNodeWithReadOption(t,n,Ka(n,t,s,!1,!1))}else i===Po?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ka(n,t,i,!1,!1))}matchTNodeWithReadOption(t,n,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===cr||r===ga||r===Po&&4&n.type)this.addMatch(n.index,-2);else{const s=Ka(n,t,r,!1,!1);null!==s&&this.addMatch(n.index,s)}else this.addMatch(n.index,i)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function jw(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Vw(e,t,n,i){return-1===n?function(e,t){return 11&e.type?Io(e,t):4&e.type?ma(e,t):null}(t,e):-2===n?function(e,t,n){return n===cr?Io(t,e):n===Po?ma(t,e):n===ga?x_(t,e):void 0}(e,t,i):$s(e,e[1],n,t)}function wy(e,t,n,i){const r=t[19].queries[i];if(null===r.matches){const s=e.data,c=n.matches,u=[];for(let y=0;y<c.length;y+=2){const A=c[y];u.push(A<0?null:Vw(t,s[A],c[y+1],n.metadata.read))}r.matches=u}return r.matches}function eh(e,t,n,i){const r=e.queries.getByIndex(n),s=r.matches;if(null!==s){const c=wy(e,t,r,n);for(let u=0;u<s.length;u+=2){const y=s[u];if(y>0)i.push(c[u/2]);else{const A=s[u+1],H=t[-y];for(let de=10;de<H.length;de++){const _e=H[de];_e[17]===_e[3]&&eh(_e[1],_e,A,i)}if(null!==H[9]){const de=H[9];for(let _e=0;_e<de.length;_e++){const Oe=de[_e];eh(Oe[1],Oe,A,i)}}}}}return i}function My(e){const t=Mt(),n=pn(),i=Pn();An(i+1);const r=xy(n,i);if(e.dirty&&Tn(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const s=r.crossesNgTemplate?eh(n,t,i,[]):wy(n,t,r,i);e.reset(s,p_),e.notifyOnChanges()}return!0}return!1}function Sy(e,t,n){const i=pn();i.firstCreatePass&&(Oy(i,new Ty(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Ay(i,Mt(),t)}function Iy(e,t,n,i){const r=pn();if(r.firstCreatePass){const s=kn();Oy(r,new Ty(t,n,i),s.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}Ay(r,Mt(),n)}function Py(){return e=Mt(),t=Pn(),e[19].queries[t].queryList;var e,t}function Ay(e,t,n){const i=new Sa(4==(4&n));jp(e,t,i,i.destroy),null===t[19]&&(t[19]=new Zd),t[19].queries.push(new Jd(i))}function Oy(e,t,n){null===e.queries&&(e.queries=new Xd),e.queries.track(new qd(t,n))}function xy(e,t){return e.queries.getByIndex(t)}function Ry(e,t){return ma(e,t)}const vi=(()=>({\u0275\u0275attribute:cu,\u0275\u0275attributeInterpolate1:uu,\u0275\u0275attributeInterpolate2:du,\u0275\u0275attributeInterpolate3:hu,\u0275\u0275attributeInterpolate4:fu,\u0275\u0275attributeInterpolate5:pu,\u0275\u0275attributeInterpolate6:mu,\u0275\u0275attributeInterpolate7:gu,\u0275\u0275attributeInterpolate8:_u,\u0275\u0275attributeInterpolateV:yu,\u0275\u0275defineComponent:Ee,\u0275\u0275defineDirective:dn,\u0275\u0275defineInjectable:$,\u0275\u0275defineInjector:L,\u0275\u0275defineNgModule:ot,\u0275\u0275definePipe:cn,\u0275\u0275directiveInject:aa,\u0275\u0275getInheritedFactory:Xh,\u0275\u0275inject:$n,\u0275\u0275injectAttribute:Xl,\u0275\u0275invalidFactory:zm,\u0275\u0275invalidFactoryDep:oc,\u0275\u0275templateRefExtractor:Ry,\u0275\u0275NgOnChangesFeature:Mi,\u0275\u0275ProvidersFeature:c_,\u0275\u0275CopyDefinitionFeature:wm,\u0275\u0275InheritDefinitionFeature:ou,\u0275\u0275nextContext:Zm,\u0275\u0275namespaceHTML:tn,\u0275\u0275namespaceMathML:Kt,\u0275\u0275namespaceSVG:Bt,\u0275\u0275enableBindings:ks,\u0275\u0275disableBindings:Fs,\u0275\u0275elementStart:Tu,\u0275\u0275elementEnd:wu,\u0275\u0275element:Wm,\u0275\u0275elementContainerStart:Mu,\u0275\u0275elementContainerEnd:Su,\u0275\u0275elementContainer:Km,\u0275\u0275pureFunction0:ly,\u0275\u0275pureFunction1:cy,\u0275\u0275pureFunction2:uy,\u0275\u0275pureFunction3:dy,\u0275\u0275pureFunction4:hy,\u0275\u0275pureFunction5:fy,\u0275\u0275pureFunction6:py,\u0275\u0275pureFunction7:my,\u0275\u0275pureFunction8:gy,\u0275\u0275pureFunctionV:_y,\u0275\u0275getCurrentView:Gm,\u0275\u0275restoreView:Ns,\u0275\u0275listener:Au,\u0275\u0275projection:qm,\u0275\u0275syntheticHostProperty:ud,\u0275\u0275syntheticHostListener:Ou,\u0275\u0275pipeBind1:vy,\u0275\u0275pipeBind2:by,\u0275\u0275pipeBind3:Cy,\u0275\u0275pipeBind4:Ey,\u0275\u0275pipeBindV:Dy,\u0275\u0275projectionDef:Xm,\u0275\u0275hostProperty:cd,\u0275\u0275property:Eu,\u0275\u0275propertyInterpolate:Ru,\u0275\u0275propertyInterpolate1:pl,\u0275\u0275propertyInterpolate2:ku,\u0275\u0275propertyInterpolate3:Fu,\u0275\u0275propertyInterpolate4:Nu,\u0275\u0275propertyInterpolate5:Lu,\u0275\u0275propertyInterpolate6:ju,\u0275\u0275propertyInterpolate7:Bu,\u0275\u0275propertyInterpolate8:Vu,\u0275\u0275propertyInterpolateV:Hu,\u0275\u0275pipe:yy,\u0275\u0275queryRefresh:My,\u0275\u0275viewQuery:Sy,\u0275\u0275loadQuery:Py,\u0275\u0275contentQuery:Iy,\u0275\u0275reference:Im,\u0275\u0275classMap:ag,\u0275\u0275classMapInterpolate1:mg,\u0275\u0275classMapInterpolate2:gg,\u0275\u0275classMapInterpolate3:_g,\u0275\u0275classMapInterpolate4:yg,\u0275\u0275classMapInterpolate5:vg,\u0275\u0275classMapInterpolate6:bg,\u0275\u0275classMapInterpolate7:Cg,\u0275\u0275classMapInterpolate8:Eg,\u0275\u0275classMapInterpolateV:Dg,\u0275\u0275styleMap:sr,\u0275\u0275styleMapInterpolate1:Tg,\u0275\u0275styleMapInterpolate2:wg,\u0275\u0275styleMapInterpolate3:Mg,\u0275\u0275styleMapInterpolate4:Sg,\u0275\u0275styleMapInterpolate5:Ig,\u0275\u0275styleMapInterpolate6:Pg,\u0275\u0275styleMapInterpolate7:Ag,\u0275\u0275styleMapInterpolate8:Og,\u0275\u0275styleMapInterpolateV:xg,\u0275\u0275styleProp:$u,\u0275\u0275stylePropInterpolate1:ed,\u0275\u0275stylePropInterpolate2:td,\u0275\u0275stylePropInterpolate3:nd,\u0275\u0275stylePropInterpolate4:id,\u0275\u0275stylePropInterpolate5:rd,\u0275\u0275stylePropInterpolate6:od,\u0275\u0275stylePropInterpolate7:sd,\u0275\u0275stylePropInterpolate8:ad,\u0275\u0275stylePropInterpolateV:ld,\u0275\u0275classProp:Uu,\u0275\u0275advance:Cp,\u0275\u0275template:Mm,\u0275\u0275text:pg,\u0275\u0275textInterpolate:Wu,\u0275\u0275textInterpolate1:gl,\u0275\u0275textInterpolate2:Ku,\u0275\u0275textInterpolate3:Gu,\u0275\u0275textInterpolate4:Qu,\u0275\u0275textInterpolate5:Yu,\u0275\u0275textInterpolate6:Ju,\u0275\u0275textInterpolate7:Zu,\u0275\u0275textInterpolate8:Xu,\u0275\u0275textInterpolateV:qu,\u0275\u0275i18n:r_,\u0275\u0275i18nAttributes:o_,\u0275\u0275i18nExp:gd,\u0275\u0275i18nStart:pd,\u0275\u0275i18nEnd:md,\u0275\u0275i18nApply:s_,\u0275\u0275i18nPostprocess:a_,\u0275\u0275resolveWindow:Qf,\u0275\u0275resolveDocument:Yf,\u0275\u0275resolveBody:Jf,\u0275\u0275setComponentScope:Q,\u0275\u0275setNgModuleScope:_t,\u0275\u0275sanitizeHtml:If,\u0275\u0275sanitizeStyle:Pf,\u0275\u0275sanitizeResourceUrl:pc,\u0275\u0275sanitizeScript:Af,\u0275\u0275sanitizeUrl:fc,\u0275\u0275sanitizeUrlOrResourceUrl:kf,\u0275\u0275trustConstantHtml:Of,\u0275\u0275trustConstantResourceUrl:xf,forwardRef:M,resolveForwardRef:S}))();let Ms=null;function Kw(){Ms=null}const Ia=[];let th=!1;function ky(){if(!th){th=!0;try{for(let e=Ia.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=Ia[e];n.declarations&&n.declarations.every(Fy)&&(Ia.splice(e,1),Yw(t,n))}}finally{th=!1}}}function Fy(e){return Array.isArray(e)?e.every(Fy):!!S(e)}function Ny(e,t={}){Ly(e,t),function(e,t){Ia.push({moduleType:e,ngModule:t})}(e,t)}function Ly(e,t,n=!1){const i=zi(t.declarations||Lt);let r=null;Object.defineProperty(e,Pt,{configurable:!0,get:()=>(null===r&&(r=Qn().compileNgModule(vi,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:zi(t.bootstrap||Lt).map(S),declarations:i.map(S),imports:zi(t.imports||Lt).map(S).map(Hy),exports:zi(t.exports||Lt).map(S).map(Hy),schemas:t.schemas?zi(t.schemas):null,id:t.id||null}),r.schemas||(r.schemas=[])),r)});let s=null;Object.defineProperty(e,K,{get:()=>{if(null===s){const u=Qn();s=u.compileFactory(vi,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Za(e),target:u.FactoryTarget.NgModule,typeArgumentCount:0})}return s},configurable:!1});let c=null;Object.defineProperty(e,Ze,{get:()=>{if(null===c){const u={name:e.name,type:e,providers:t.providers||Lt,imports:[(t.imports||Lt).map(S),(t.exports||Lt).map(S)]};c=Qn().compileInjector(vi,`ng:///${e.name}/\u0275inj.js`,u)}return c},configurable:!1})}let Rl=new WeakMap,ih=new WeakMap;function Qw(){Rl=new WeakMap,ih=new WeakMap,Ia.length=0}function Yw(e,t){const n=zi(t.declarations||Lt),i=Pa(e);n.forEach(r=>{r.hasOwnProperty(jt)?rh(an(r),i):!r.hasOwnProperty(_n)&&!r.hasOwnProperty(qe)&&(r.ngSelectorScope=e)})}function rh(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(n=>n.hasOwnProperty(jt)?an(n):un(n)).filter(n=>!!n),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(n=>wn(n)),e.schemas=t.schemas,e.tView=null}function Pa(e){if(!oh(e))throw new Error(`${e.name} does not have a module def (\u0275mod property)`);const t=yn(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 Sr(t.imports).forEach(i=>{const r=i;if(!oh(r))throw new Error(`Importing ${r.name} which does not have a \u0275mod property`);const s=Pa(r);s.exported.directives.forEach(c=>n.compilation.directives.add(c)),s.exported.pipes.forEach(c=>n.compilation.pipes.add(c))}),Sr(t.declarations).forEach(i=>{wn(i)?n.compilation.pipes.add(i):n.compilation.directives.add(i)}),Sr(t.exports).forEach(i=>{const r=i;if(oh(r)){const s=Pa(r);s.exported.directives.forEach(c=>{n.compilation.directives.add(c),n.exported.directives.add(c)}),s.exported.pipes.forEach(c=>{n.compilation.pipes.add(c),n.exported.pipes.add(c)})}else wn(r)?n.exported.pipes.add(r):n.exported.directives.add(r)}),t.transitiveCompileScopes=n,n}function Hy(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function oh(e){return!!yn(e)}let sh=0;function $y(e,t){let n=null;(function(e,t){pf(t)&&(Yo.set(e,t),Ws.add(e))})(e,t),zy(e,t),Object.defineProperty(e,jt,{get:()=>{if(null===n){const i=Qn();if(pf(t)){const A=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&A.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&A.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),A.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(A.join("\n"))}const r=Ms;let s=t.preserveWhitespaces;void 0===s&&(s=null!==r&&void 0!==r.preserveWhitespaces&&r.preserveWhitespaces);let c=t.encapsulation;void 0===c&&(c=null!==r&&void 0!==r.defaultEncapsulation?r.defaultEncapsulation:ie.Emulated);const u=t.templateUrl||`ng:///${e.name}/template.html`,y=Object.assign(Object.assign({},Wy(e,t)),{typeSourceSpan:i.createParseSourceSpan("Component",e.name,u),template:t.template||"",preserveWhitespaces:s,styles:t.styles||Lt,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:c,interpolation:t.interpolation,viewProviders:t.viewProviders||null});sh++;try{y.usesInheritance&&Ky(e),n=i.compileComponent(vi,u,y)}finally{sh--}if(0===sh&&ky(),function(e){return void 0!==e.ngSelectorScope}(e)){const A=Pa(e.ngSelectorScope);rh(n,A)}}return n},configurable:!1})}function ah(e,t){let n=null;zy(e,t||{}),Object.defineProperty(e,_n,{get:()=>{if(null===n){const i=Uy(e,t||{});n=Qn().compileDirective(vi,i.sourceMapUrl,i.metadata)}return n},configurable:!1})}function Uy(e,t){const n=e&&e.name,i=`ng:///${n}/\u0275dir.js`,r=Qn(),s=Wy(e,t);return s.typeSourceSpan=r.createParseSourceSpan("Directive",n,i),s.usesInheritance&&Ky(e),{metadata:s,sourceMapUrl:i}}function zy(e,t){let n=null;Object.defineProperty(e,K,{get:()=>{if(null===n){const i=Uy(e,t),r=Qn();n=r.compileFactory(vi,`ng:///${e.name}/\u0275fac.js`,{name:i.metadata.name,type:i.metadata.type,typeArgumentCount:0,deps:Za(e),target:r.FactoryTarget.Directive})}return n},configurable:!1})}function Xw(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function Wy(e,t){const n=sc(),i=n.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||At,propMetadata:i,inputs:t.inputs||Lt,outputs:t.outputs||Lt,queries:Gy(e,i,Qy),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!Xw(e),exportAs:tM(t.exportAs),providers:t.providers||null,viewQueries:Gy(e,i,Yy)}}function Ky(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)!un(n)&&!an(n)&&iM(n)&&ah(n,null),n=Object.getPrototypeOf(n)}function qw(e){return"string"==typeof e?Zy(e):S(e)}function eM(e,t){return{propertyName:e,predicate:qw(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly}}function Gy(e,t,n){const i=[];for(const r in t)if(t.hasOwnProperty(r)){const s=t[r];s.forEach(c=>{if(n(c)){if(!c.selector)throw new Error(`Can't construct a query for the property "${r}" of "${Ue(e)}" since the query selector wasn't defined.`);if(s.some(Jy))throw new Error("Cannot combine @Input decorators with query decorators");i.push(eM(r,c))}})}return i}function tM(e){return void 0===e?null:Zy(e)}function Qy(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function Yy(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function Jy(e){return"Input"===e.ngMetadataName}function Zy(e){return e.split(",").map(t=>t.trim())}const nM=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function iM(e){const t=sc();if(nM.some(i=>t.hasLifecycleHook(e,i)))return!0;const n=t.propMetadata(e);for(const i in n){const r=n[i];for(let s=0;s<r.length;s++){const c=r[s],u=c.ngMetadataName;if(Jy(c)||Qy(c)||Yy(c)||"Output"===u||"HostBinding"===u||"HostListener"===u)return!0}}return!1}function Xy(e,t){let n=null,i=null;Object.defineProperty(e,K,{get:()=>{if(null===i){const r=qy(e,t),s=Qn();i=s.compileFactory(vi,`ng:///${r.name}/\u0275fac.js`,{name:r.name,type:r.type,typeArgumentCount:0,deps:Za(e),target:s.FactoryTarget.Pipe})}return i},configurable:!1}),Object.defineProperty(e,qe,{get:()=>{if(null===n){const r=qy(e,t);n=Qn().compilePipe(vi,`ng:///${r.name}/\u0275pipe.js`,r)}return n},configurable:!1})}function qy(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}const ev=$o("Directive",(e={})=>e,void 0,void 0,(e,t)=>dM(e,t)),rM=$o("Component",(e={})=>Object.assign({changeDetection:R.Default},e),ev,void 0,(e,t)=>uM(e,t)),oM=$o("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>hM(e,t)),sM=zr("Input",e=>({bindingPropertyName:e})),aM=zr("Output",e=>({bindingPropertyName:e})),lM=zr("HostBinding",e=>({hostPropertyName:e})),cM=zr("HostListener",(e,t)=>({eventName:e,args:t})),tv=$y,nv=ah,iv=Xy,uM=tv,dM=nv,hM=iv,fM=$o("NgModule",e=>e,void 0,void 0,(e,t)=>pM(e,t)),rv=Ny,pM=rv,lh=new jn("Application Initializer");let Ss=(()=>{class e{constructor(n){this.appInits=n,this.resolve=El,this.reject=El,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Iu(s))n.push(s);else if(Pu(s)){const c=new Promise((u,y)=>{s.subscribe({complete:u,error:y})});n.push(c)}}Promise.all(n).then(()=>{i()}).catch(r=>{this.reject(r)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)($n(lh,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const ov=new jn("AppId");function sv(){return`${ch()}${ch()}${ch()}`}const av={provide:ov,useFactory:sv,deps:[]};function ch(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const lv=new jn("Platform Initializer"),cv=new jn("Platform ID"),uv=new jn("appBootstrapListener"),mM=new jn("Application Packages Root URL");let dv=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const kl=new jn("LocaleId"),hv=new jn("DefaultCurrencyCode"),gM=new jn("Translations"),_M=new jn("TranslationsFormat");var Rr=(()=>((Rr=Rr||{})[Rr.Error=0]="Error",Rr[Rr.Warning=1]="Warning",Rr[Rr.Ignore=2]="Ignore",Rr))();const fv=!0,Aa=fv;class pv{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}const Fl=function(e){return new xl(e)},yM=Fl,mv=function(e){return Promise.resolve(Fl(e))},vM=mv,uh=function(e){const t=Fl(e),i=Sr(yn(e).declarations).reduce((r,s)=>{const c=an(s);return c&&r.push(new Ud(c)),r},[]);return new pv(t,i)},bM=uh,gv=function(e){return Promise.resolve(uh(e))},CM=gv;let Oa=(()=>{class e{constructor(){this.compileModuleSync=yM,this.compileModuleAsync=vM,this.compileModuleAndAllComponentsSync=bM,this.compileModuleAndAllComponentsAsync=CM}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const _v=new jn("compilerOptions");class yv{}const EM=(()=>Promise.resolve(0))();function dh(e){"undefined"==typeof Zone?EM.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ni{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xr(!1),this.onMicrotaskEmpty=new xr(!1),this.onStable=new xr(!1),this.onError=new xr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&n,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let e=Nt.requestAnimationFrame,t=Nt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Nt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,fh(e),e.isCheckStableRunning=!0,hh(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),fh(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,c,u)=>{try{return vv(e),n.invokeTask(r,s,c,u)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),bv(e)}},onInvoke:(n,i,r,s,c,u,y)=>{try{return vv(e),n.invoke(r,s,c,u,y)}finally{e.shouldCoalesceRunChangeDetection&&t(),bv(e)}},onHasTask:(n,i,r,s)=>{n.hasTask(r,s),i===r&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,fh(e),hh(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,r,s)=>(n.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ni.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ni.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,r){const s=this._inner,c=s.scheduleEventTask("NgZoneEvent: "+r,t,TM,El,El);try{return s.runTask(c,n,i)}finally{s.cancelTask(c)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const TM={};function hh(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 fh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function vv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function bv(e){e._nesting--,hh(e)}class Cv{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xr,this.onMicrotaskEmpty=new xr,this.onStable=new xr,this.onError=new xr}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,r){return t.apply(n,i)}}let Ev=(()=>{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:()=>{Ni.assertNotInAngularZone(),dh(()=>{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())dh(()=>{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(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.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,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(c=>c.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:r})}whenStable(n,i,r){if(r&&!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,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,r){return[]}}return e.\u0275fac=function(n){return new(n||e)($n(Ni))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),ph=(()=>{class e{constructor(){this._applications=new Map,mh.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}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,i=!0){return mh.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();class SM{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function IM(e){mh=e}let mh=new SM,Dv=!0,Tv=!1;function gh(){return Tv=!0,Dv}function PM(){if(Tv)throw new Error("Cannot enable prod mode after platform setup.");Dv=!1}let hr,AM=wv;function wv(e,t,n){const i=new xl(n);return Promise.resolve(i)}let RM=Mv;function Mv(e){return e.isBoundToModule}const _h=new jn("AllowMultipleToken");class kM{constructor(t,n){this.name=t,this.token=n}}function Sv(e){if(hr&&!hr.destroyed&&!hr.injector.get(_h,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");hr=e.get(vh);const t=e.get(lv,null);return t&&t.forEach(n=>n()),hr}function Iv(e,t,n=[]){const i=`Platform: ${t}`,r=new jn(i);return(s=[])=>{let c=yh();if(!c||c.injector.get(_h,!1))if(e)e(n.concat(s).concat({provide:r,useValue:!0}));else{const u=n.concat(s).concat({provide:r,useValue:!0},{provide:ea,useValue:"platform"});Sv(In.create({providers:u,name:i}))}return Pv(r)}}function Pv(e){const t=yh();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function FM(){hr&&!hr.destroyed&&hr.destroy()}function yh(){return hr&&!hr.destroyed?hr:null}let vh=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const u=function(e,t){let n;return n="noop"===e?new Cv:("zone.js"===e?void 0:e)||new Ni({enableLongStackTrace:gh(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),y=[{provide:Ni,useValue:u}];return u.run(()=>{const A=In.create({providers:y,parent:this.injector,name:n.moduleType.name}),H=n.create(A),de=H.injector.get(Xo,null);if(!de)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return u.runOutsideAngular(()=>{const _e=u.onError.subscribe({next:Oe=>{de.handleError(Oe)}});H.onDestroy(()=>{bh(this._modules,H),_e.unsubscribe()})}),function(e,t,n){try{const i=n();return Iu(i)?i.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(de,u,()=>{const _e=H.injector.get(Ss);return _e.runInitializers(),_e.donePromise.then(()=>(Aa&&vl(H.injector.get(kl,ca)||ca),this._moduleDoBootstrap(H),H))})})}bootstrapModule(n,i=[]){const r=Av({},i);return AM(this.injector,r,n).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(n){const i=n.injector.get(xa);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${D(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");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)($n(In))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();function Av(e,t){return Array.isArray(t)?t.reduce(Av,e):Object.assign(Object.assign({},e),t)}let xa=(()=>{class e{constructor(n,i,r,s,c){this._zone=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=c,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 u=new f.y(A=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{A.next(this._stable),A.complete()})}),y=new f.y(A=>{let H;this._zone.runOutsideAngular(()=>{H=this._zone.onStable.subscribe(()=>{Ni.assertNotInAngularZone(),dh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,A.next(!0))})})});const de=this._zone.onUnstable.subscribe(()=>{Ni.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{A.next(!1)}))});return()=>{H.unsubscribe(),de.unsubscribe()}});this.isStable=(0,_.T)(u,y.pipe((0,a.B)()))}bootstrap(n,i){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let r;r=n instanceof bs?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(r.componentType);const s=RM(r)?void 0:this._injector.get(uo),u=r.create(In.NULL,[],i||r.selector,s),y=u.location.nativeElement,A=u.injector.get(Ev,null),H=A&&u.injector.get(ph);return A&&H&&H.registerApplication(y,A),u.onDestroy(()=>{this.detachView(u.hostView),bh(this.components,u),H&&H.unregisterApplication(y)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");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 i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;bh(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(uv,[]).concat(this._bootstrapListeners).forEach(r=>r(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)($n(Ni),$n(In),$n(Xo),$n(Cs),$n(Ss))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();function bh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class BM{}function VM(e){const t=sy(e);if(!t)throw Rv(e);return t}function xv(e){const t=sy(e);if(!t)throw Rv(e);return new xl(t)}const HM=xv;function Rv(e){return new Error(`No module with ID ${e} loaded`)}class Fv{}const UM={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let zM=(()=>{class e{constructor(n,i){this._compiler=n,this._config=i||UM}load(n){return!Aa&&this._compiler instanceof Oa?this.loadFactory(n):this.loadAndCompile(n)}loadAndCompile(n){let[i,r]=n.split("#");return void 0===r&&(r="default"),d(8255)(i).then(s=>s[r]).then(s=>Nv(s,i,r)).then(s=>this._compiler.compileModuleAsync(s))}loadFactory(n){let[i,r]=n.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),d(8255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(c=>c[r+s]).then(c=>Nv(c,i,r))}}return e.\u0275fac=function(n){return new(n||e)($n(Oa),$n(Fv,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();function Nv(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Lv extends Pd{}class WM extends Lv{}class jv{constructor(t,n){this.name=t,this.callback=n}}class Ra{constructor(t,n,i){this.listeners=[],this.parent=null,this._debugContext=i,this.nativeNode=t,n&&n instanceof Jn&&n.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Jn extends Ra{constructor(t,n,i){super(t,n,i),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=t}addChild(t){t&&(this.childNodes.push(t),t.parent=this)}removeChild(t){const n=this.childNodes.indexOf(t);-1!==n&&(t.parent=null,this.childNodes.splice(n,1))}insertChildrenAfter(t,n){const i=this.childNodes.indexOf(t);-1!==i&&(this.childNodes.splice(i+1,0,...n),n.forEach(r=>{r.parent&&r.parent.removeChild(r),t.parent=this}))}insertBefore(t,n){const i=this.childNodes.indexOf(t);-1===i?this.addChild(n):(n.parent&&n.parent.removeChild(n),n.parent=this,this.childNodes.splice(i,0,n))}query(t){return this.queryAll(t)[0]||null}queryAll(t){const n=[];return Bv(this,t,n),n}queryAllNodes(t){const n=[];return Vv(this,t,n),n}get children(){return this.childNodes.filter(t=>t instanceof Jn)}triggerEventHandler(t,n){this.listeners.forEach(i=>{i.name==t&&i.callback(n)})}}function KM(e){return e.map(t=>t.nativeElement)}function Bv(e,t,n){e.childNodes.forEach(i=>{i instanceof Jn&&(t(i)&&n.push(i),Bv(i,t,n))})}function Vv(e,t,n){e instanceof Jn&&e.childNodes.forEach(i=>{t(i)&&n.push(i),i instanceof Jn&&Vv(i,t,n)})}class Ch{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new ka(t):null}get injector(){return mm(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(nu(t)||fm(t))}get context(){return nu(this.nativeNode)||hm(this.nativeNode)}get listeners(){return _m(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function(e){const t=di(e);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){const n=e[1].data[t];if(n&&n.localNames){const i={};let r=n.index+1;for(let s=0;s<n.localNames.length;s+=2)i[n.localNames[s]]=e[r],r++;return i}return null}(t.lView,t.nodeIndex)),t.localRefs||{})}(this.nativeNode)}get providerTokens(){return function(e){const t=di(e);if(null===t)return[];const i=t.lView[1],r=i.data[t.nodeIndex],s=[],u=r.directiveEnd;for(let y=1048575&r.providerIndexes;y<u;y++){let A=i.data[y];qE(A)&&(A=A.type),s.push(A)}return s}(this.nativeNode)}}class ka extends Ch{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const t=di(this.nativeNode);return null!==t?t.lView[1].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){const t=di(this.nativeNode);if(null===t)return{};const n=t.lView,i=n[1].data,r=i[t.nodeIndex],s={};return function(e,t){if(e){let n=Object.getPrototypeOf(e);const i=Node.prototype;for(;null!==n&&n!==i;){const r=Object.getOwnPropertyDescriptors(n);for(let s in r)if(!s.startsWith("__")&&!s.startsWith("on")){const c=e[s];QM(c)&&(t[s]=c)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,s),function(e,t,n,i){let r=t.propertyBindings;if(null!==r)for(let s=0;s<r.length;s++){const c=r[s],y=i[c].split("\ufffd"),A=y[0];if(y.length>1){let H=y[1];for(let de=1;de<y.length-1;de++)H+=be(n[c+de-1])+y[de+1];e[A]=H}else e[A]=n[c]}}(s,r,n,i),s}get attributes(){const t={},n=this.nativeElement;if(!n)return t;const i=di(n);if(null===i)return{};const s=i.lView[1].data[i.nodeIndex].attrs,c=[];if(s){let y=0;for(;y<s.length;){const A=s[y];if("string"!=typeof A)break;t[A]=s[y+1],c.push(A.toLowerCase()),y+=2}}const u=n.attributes;for(let y=0;y<u.length;y++){const A=u[y],H=A.name.toLowerCase();-1===c.indexOf(H)&&(t[H]=A.value)}return t}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const t={},i=this.nativeElement.className;return(i&&"string"!=typeof i?i.baseVal.split(" "):i.split(" ")).forEach(s=>t[s]=!0),t}get childNodes(){const t=this.nativeNode.childNodes,n=[];for(let i=0;i<t.length;i++)n.push(Ll(t[i]));return n}get children(){const t=this.nativeElement;if(!t)return[];const n=t.children,i=[];for(let r=0;r<n.length;r++)i.push(Ll(n[r]));return i}query(t){return this.queryAll(t)[0]||null}queryAll(t){const n=[];return Hv(this,t,n,!0),n}queryAllNodes(t){const n=[];return Hv(this,t,n,!1),n}triggerEventHandler(t,n){const i=this.nativeNode,r=[];this.listeners.forEach(s=>{if(s.name===t){const c=s.callback;c.call(i,n),r.push(c)}}),"function"==typeof i.eventListeners&&i.eventListeners(t).forEach(s=>{if(-1!==s.toString().indexOf("__ngUnwrap__")){const c=s("__ngUnwrap__");return-1===r.indexOf(c)&&c.call(i,n)}})}}function QM(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function Hv(e,t,n,i){const r=di(e.nativeNode);null!==r?xo(r.lView[1].data[r.nodeIndex],r.lView,t,n,i,e.nativeNode):Dh(e.nativeNode,t,n,i)}function xo(e,t,n,i,r,s){const c=function(e,t){const n=null===e?-1:e.index;return-1!==n?v(t[n]):null}(e,t);if(11&e.type){if(Eh(c,n,i,r,s),ci(e)){const y=bn(e.index,t);y&&y[1].firstChild&&xo(y[1].firstChild,y,n,i,r,s)}else e.child&&xo(e.child,t,n,i,r,s),c&&Dh(c,n,i,r);const u=t[e.index];Cn(u)&&$v(u,n,i,r,s)}else if(4&e.type){const u=t[e.index];Eh(u[7],n,i,r,s),$v(u,n,i,r,s)}else if(16&e.type){const u=t[16],A=u[6].projection[e.projection];if(Array.isArray(A))for(let H of A)Eh(H,n,i,r,s);else if(A){const H=u[3];xo(H[1].data[A.index],H,n,i,r,s)}}else e.child&&xo(e.child,t,n,i,r,s);if(s!==c){const u=4&e.flags?e.projectionNext:e.next;u&&xo(u,t,n,i,r,s)}}function $v(e,t,n,i,r){for(let s=10;s<e.length;s++){const c=e[s],u=c[1].firstChild;u&&xo(u,c,t,n,i,r)}}function Eh(e,t,n,i,r){if(r!==e){const s=Zn(e);if(!s)return;(i&&s instanceof ka&&t(s)&&-1===n.indexOf(s)||!i&&t(s)&&-1===n.indexOf(s))&&n.push(s)}}function Dh(e,t,n,i){const r=e.childNodes,s=r.length;for(let c=0;c<s;c++){const u=r[c],y=Zn(u);y&&((i&&y instanceof ka&&t(y)&&-1===n.indexOf(y)||!i&&t(y)&&-1===n.indexOf(y))&&n.push(y),Dh(u,t,n,i))}}const Nl=new Map,Th="__ng_debug__";function Ll(e){return e instanceof Node?(e.hasOwnProperty(Th)||(e[Th]=e.nodeType==Node.ELEMENT_NODE?new ka(e):new Ch(e)),e[Th]):null}const Zn=Ll;function ZM(e){return function(e){return Nl.get(e)||null}(e)}const qM=function(e){return null};function jl(e){Nl.set(e.nativeNode,e)}const tS=Ch,nS=ka,iS=Iv(null,"core",[{provide:cv,useValue:"unknown"},{provide:vh,deps:[In]},{provide:ph,deps:[]},{provide:dv,deps:[]}]);function Uv(){return T_}function zv(){return w_}function Wv(e){return e=e||Aa&&"undefined"!=typeof $localize&&$localize.locale||ca,Aa&&vl(e),e}const Kv=[{provide:xa,useClass:xa,deps:[Ni,In,Xo,Cs,Ss]},{provide:ty,deps:[Ni],useFactory:Gv},{provide:Ss,useClass:Ss,deps:[[new Wr,lh]]},{provide:Oa,useClass:Oa,deps:[]},av,{provide:Tl,useFactory:Uv,deps:[]},{provide:wl,useFactory:zv,deps:[]},{provide:kl,useFactory:Wv,deps:[[new Go(kl),new Wr,new Kr]]},{provide:hv,useValue:Fg}];function Gv(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}let oS=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)($n(xa))},e.\u0275mod=ot({type:e}),e.\u0275inj=L({providers:Kv}),e})();function sS(e,t,n,i,r,s){e|=1;const{matchedQueries:c,references:u,matchedQueryIds:y}=kd(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:y,references:u,ngContentIndex:n,childCount:i,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:s?Ts(s):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:r||Yi},provider:null,text:null,query:null,ngContent:null}}function aS(e,t,n,i,r,s,c=[],u,y,A,H,de){A||(A=Yi);const{matchedQueries:_e,references:Oe,matchedQueryIds:We}=kd(n);let ct=null,it=null;s&&([ct,it]=Nd(s)),u=u||[];const Ot=[];for(let Xt=0;Xt<u.length;Xt++){const[gn,Xn,Zi]=u[Xt],[Va,As]=Nd(Xn);let Os,xs;switch(15&gn){case 4:xs=Zi;break;case 1:case 8:Os=Zi}Ot[Xt]={flags:gn,ns:Va,name:As,nonMinifiedName:As,securityContext:Os,suffix:xs}}y=y||[];const Dt=[];for(let Xt=0;Xt<y.length;Xt++){const[gn,Xn]=y[Xt];Dt[Xt]={type:0,target:gn,eventName:Xn,propName:null}}const zt=(c=c||[]).map(([Xt,gn])=>{const[Xn,Zi]=Nd(Xt);return[Xn,Zi,gn]});return de=function(e){return e&&e.id===N_&&(e.id=null!=e.encapsulation&&e.encapsulation!==ie.None||e.styles.length||Object.keys(e.data).length?"c"+P0++:L_),e&&e.id===L_&&(e=null),e||null}(de),H&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:_e,matchedQueryIds:We,references:Oe,ngContentIndex:i,childCount:r,bindings:Ot,bindingFlags:Ld(Ot),outputs:Dt,element:{ns:ct,name:it,attrs:zt,template:null,componentProvider:null,componentView:H||null,componentRendererType:de,publicProviders:null,allProviders:null,handleEvent:A||Yi},provider:null,text:null,query:null,ngContent:null}}function lS(e,t,n){const i=n.element,r=e.root.selectorOrNode,s=e.renderer;let c;if(e.parent||!r){c=i.name?s.createElement(i.name,i.ns):s.createComment("");const u=Fd(e,t,n);u&&s.appendChild(u,c)}else c=s.selectRootElement(r,!!i.componentRendererType&&i.componentRendererType.encapsulation===ie.ShadowDom);if(i.attrs)for(let u=0;u<i.attrs.length;u++){const[y,A,H]=i.attrs[u];s.setAttribute(c,A,H,y)}return c}function cS(e,t,n,i){for(let r=0;r<n.outputs.length;r++){const s=n.outputs[r],c=uS(e,n.nodeIndex,x0(s.target,s.eventName));let u=s.target,y=e;"component"===s.target&&(u=null,y=t);const A=y.renderer.listen(u||i,s.eventName,c);e.disposables[n.outputIndex+r]=A}}function uS(e,t,n){return i=>B_(e,t,n,i)}function fr(e,t,n,i){if(!Nn(e,t,n,i))return!1;const r=t.bindings[n],s=En(e,t.nodeIndex),c=s.renderElement,u=r.name;switch(15&r.flags){case 1:!function(e,t,n,i,r,s){const c=t.securityContext;let u=c?e.root.sanitizer.sanitize(c,s):s;u=null!=u?u.toString():null;const y=e.renderer;null!=s?y.setAttribute(n,r,u,i):y.removeAttribute(n,r,i)}(e,r,c,r.ns,u,i);break;case 2:!function(e,t,n,i){const r=e.renderer;i?r.addClass(t,n):r.removeClass(t,n)}(e,c,u,i);break;case 4:!function(e,t,n,i,r){let s=e.root.sanitizer.sanitize(Bn.STYLE,r);if(null!=s){s=s.toString();const u=t.suffix;null!=u&&(s+=u)}else s=null;const c=e.renderer;null!=s?c.setStyle(n,i,s):c.removeStyle(n,i)}(e,r,c,u,i);break;case 8:!function(e,t,n,i,r){const s=t.securityContext;let c=s?e.root.sanitizer.sanitize(s,r):r;e.renderer.setProperty(n,i,c)}(33554432&t.flags&&32&r.flags?s.componentView:e,r,c,u,i)}return!0}function _S(e,t,n){let i=[];for(let r in n)i.push({propName:r,bindingType:n[r]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:V_(t),bindings:i},ngContent:null}}function yS(e){return new Sa(e)}function vS(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&R0(e);){let n=e.parentNodeDef;e=e.parent;const i=n.nodeIndex+n.childCount;for(let r=0;r<=i;r++){const s=e.def.nodes[r];67108864&s.flags&&536870912&s.flags&&(s.query.filterId&t)===s.query.filterId&&ya(e,r).setDirty(),(1&s.flags&&r+s.childCount<n.nodeIndex||!(67108864&s.childFlags)||!(536870912&s.childFlags))&&(r+=s.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const i=e.def.nodes[n];134217728&i.flags&&536870912&i.flags&&ya(e,n).setDirty(),n+=i.childCount}}function bS(e,t){const n=ya(e,t.nodeIndex);if(!n.dirty)return;let i,r;if(67108864&t.flags){const u=t.parent.parent;r=Fa(e,u.nodeIndex,u.nodeIndex+u.childCount,t.query,[]),i=ho(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(r=Fa(e,0,e.def.nodes.length-1,t.query,[]),i=e.component);n.reset(r,p_);const s=t.query.bindings;let c=!1;for(let u=0;u<s.length;u++){const y=s[u];let A;switch(y.bindingType){case 0:A=n.first;break;case 1:A=n,c=!0}i[y.propName]=A}c&&n.notifyOnChanges()}function Fa(e,t,n,i,r){for(let s=t;s<=n;s++){const c=e.def.nodes[s],u=c.matchedQueries[i.id];if(null!=u&&r.push(Qv(e,c,u)),1&c.flags&&c.element.template&&(c.element.template.nodeMatchedQueries&i.filterId)===i.filterId){const y=En(e,s);if((c.childMatchedQueries&i.filterId)===i.filterId&&(Fa(e,s+1,s+c.childCount,i,r),s+=c.childCount),16777216&c.flags){const H=y.viewContainer._embeddedViews;for(let de=0;de<H.length;de++){const _e=H[de],Oe=Rd(_e);Oe&&Oe===y&&Fa(_e,0,_e.def.nodes.length-1,i,r)}}const A=y.template._projectedViews;if(A)for(let H=0;H<A.length;H++){const de=A[H];Fa(de,0,de.def.nodes.length-1,i,r)}}(c.childMatchedQueries&i.filterId)!==i.filterId&&(s+=c.childCount)}return r}function Qv(e,t,n){if(null!=n)switch(n){case 1:return En(e,t.nodeIndex).renderElement;case 0:return new cr(En(e,t.nodeIndex).renderElement);case 2:return En(e,t.nodeIndex).template;case 3:return En(e,t.nodeIndex).viewContainer;case 4:return ho(e,t.nodeIndex).instance}}function CS(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function ES(e,t,n){const i=Fd(e,t,n);i&&U_(e,n.ngContent.index,1,i,null,void 0)}function DS(e,t){return wh(128,e,oo(t+1))}function TS(e,t){return wh(32,e,oo(t))}function wS(e,t){const n=Object.keys(t),i=n.length,r=[];for(let s=0;s<i;s++){r.push(n[s])}return wh(64,e,r)}function wh(e,t,n){const i=[];for(let r=0;r<n.length;r++){const s=n[r];i.push({flags:8,name:s,ns:null,nonMinifiedName:s,securityContext:null,suffix:null})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:i,bindingFlags:Ld(i),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function PS(e,t,n){const i=[];for(let r=1;r<n.length;r++)i[r-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[r]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:i,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function AS(e,t,n){let i;const r=e.renderer;i=r.createText(n.text.prefix);const s=Fd(e,t,n);return s&&r.appendChild(s,i),{renderText:i}}function pr(e,t){return(null!=e?e.toString():"")+t.suffix}function RS(e,t,n,i){let r=0,s=0,c=0,u=0,y=0,A=null,H=null,de=!1,_e=!1,Oe=null;for(let ct=0;ct<t.length;ct++){const it=t[ct];if(it.nodeIndex=ct,it.parent=A,it.bindingIndex=r,it.outputIndex=s,it.renderParent=H,c|=it.flags,y|=it.matchedQueryIds,it.element){const Ot=it.element;Ot.publicProviders=A?A.element.publicProviders:Object.create(null),Ot.allProviders=Ot.publicProviders,de=!1,_e=!1,it.element.template&&(y|=it.element.template.nodeMatchedQueries)}if(kS(A,it,t.length),r+=it.bindings.length,s+=it.outputs.length,!H&&3&it.flags&&(Oe=it),20224&it.flags){de||(de=!0,A.element.publicProviders=Object.create(A.element.publicProviders),A.element.allProviders=A.element.publicProviders);const Dt=0!=(32768&it.flags);0==(8192&it.flags)||Dt?A.element.publicProviders[ai(it.provider.token)]=it:(_e||(_e=!0,A.element.allProviders=Object.create(A.element.publicProviders)),A.element.allProviders[ai(it.provider.token)]=it),Dt&&(A.element.componentProvider=it)}if(A?(A.childFlags|=it.flags,A.directChildFlags|=it.flags,A.childMatchedQueries|=it.matchedQueryIds,it.element&&it.element.template&&(A.childMatchedQueries|=it.element.template.nodeMatchedQueries)):u|=it.flags,it.childCount>0)A=it,Yv(it)||(H=it);else for(;A&&ct===A.nodeIndex+A.childCount;){const Ot=A.parent;Ot&&(Ot.childFlags|=A.childFlags,Ot.childMatchedQueries|=A.childMatchedQueries),A=Ot,H=A&&Yv(A)?A.renderParent:A}}return{factory:null,nodeFlags:c,rootNodeFlags:u,nodeMatchedQueries:y,flags:e,nodes:t,updateDirectives:n||Yi,updateRenderer:i||Yi,handleEvent:(ct,it,Ot,Dt)=>t[it].element.handleEvent(ct,Ot,Dt),bindingCount:r,outputCount:s,lastRenderRootNode:Oe}}function Yv(e){return 0!=(1&e.flags)&&null===e.element.name}function kS(e,t,n){const i=t.element&&t.element.template;if(i){if(!i.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(i.lastRenderRootNode&&16777216&i.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function Jv(e,t,n,i){const r=Mh(e.root,e.renderer,e,t,n);return Sh(r,e.component,i),Ih(r),r}function Zv(e,t,n){const i=Mh(e,e.renderer,null,null,t);return Sh(i,n,n),Ih(i),i}function Xv(e,t,n,i){const r=t.element.componentRendererType;let s;return s=r?e.root.rendererFactory.createRenderer(i,r):e.root.renderer,Mh(e.root,s,e,t.element.componentProvider,n)}function Mh(e,t,n,i,r){const s=new Array(r.nodes.length),c=r.outputCount?new Array(r.outputCount):null;return{def:r,parent:n,viewContainerParent:null,parentNodeDef:i,context:null,component:null,nodes:s,state:13,root:e,renderer:t,oldValues:new Array(r.bindingCount),disposables:c,initIndex:-1}}function Sh(e,t,n){e.component=t,e.context=n}function Ih(e){let t;Ao(e)&&(t=En(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,i=e.nodes;for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];let c;switch(ln.setCurrentNode(e,r),201347067&s.flags){case 1:const u=lS(e,t,s);let y;if(33554432&s.flags){const A=Ts(s.element.componentView);y=ln.createComponentView(e,s,A,u)}cS(e,y,s,u),c={renderElement:u,componentView:y,viewContainer:null,template:s.element.template?lw(e,s):void 0},16777216&s.flags&&(c.viewContainer=ow(e,s,c));break;case 2:c=AS(e,t,s);break;case 512:case 1024:case 2048:case 256:c=i[r],!c&&!(4096&s.flags)&&(c={instance:Cw(e,s)});break;case 16:c={instance:Ew(e,s)};break;case 16384:c=i[r],c||(c={instance:Dw(e,s)}),32768&s.flags&&Sh(En(e,s.parent.nodeIndex).componentView,c.instance,c.instance);break;case 32:case 64:case 128:c={value:void 0};break;case 67108864:case 134217728:c=yS(-2147483648==(-2147483648&s.flags));break;case 8:ES(e,t,s),c=void 0}i[r]=c}Na(e,Dn.CreateViewNodes),Ah(e,201326592,268435456,0)}function Bl(e){eb(e),ln.updateDirectives(e,1),Hl(e,Dn.CheckNoChanges),ln.updateRenderer(e,1),Na(e,Dn.CheckNoChanges),e.state&=-97}function Vl(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Sl(e,0,256),eb(e),ln.updateDirectives(e,0),Hl(e,Dn.CheckAndUpdate),Ah(e,67108864,536870912,0);let t=Sl(e,256,512);$d(e,2097152|(t?1048576:0)),ln.updateRenderer(e,0),Na(e,Dn.CheckAndUpdate),Ah(e,134217728,536870912,0),t=Sl(e,512,768),$d(e,8388608|(t?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Sl(e,768,1024)}function qv(e,t,n,i,r,s,c,u,y,A,H,de,_e){return 0===n?function(e,t,n,i,r,s,c,u,y,A,H,de){switch(201347067&t.flags){case 1:return function(e,t,n,i,r,s,c,u,y,A,H,de){const _e=t.bindings.length;let Oe=!1;return _e>0&&fr(e,t,0,n)&&(Oe=!0),_e>1&&fr(e,t,1,i)&&(Oe=!0),_e>2&&fr(e,t,2,r)&&(Oe=!0),_e>3&&fr(e,t,3,s)&&(Oe=!0),_e>4&&fr(e,t,4,c)&&(Oe=!0),_e>5&&fr(e,t,5,u)&&(Oe=!0),_e>6&&fr(e,t,6,y)&&(Oe=!0),_e>7&&fr(e,t,7,A)&&(Oe=!0),_e>8&&fr(e,t,8,H)&&(Oe=!0),_e>9&&fr(e,t,9,de)&&(Oe=!0),Oe}(e,t,n,i,r,s,c,u,y,A,H,de);case 2:return function(e,t,n,i,r,s,c,u,y,A,H,de){let _e=!1;const Oe=t.bindings,We=Oe.length;if(We>0&&Nn(e,t,0,n)&&(_e=!0),We>1&&Nn(e,t,1,i)&&(_e=!0),We>2&&Nn(e,t,2,r)&&(_e=!0),We>3&&Nn(e,t,3,s)&&(_e=!0),We>4&&Nn(e,t,4,c)&&(_e=!0),We>5&&Nn(e,t,5,u)&&(_e=!0),We>6&&Nn(e,t,6,y)&&(_e=!0),We>7&&Nn(e,t,7,A)&&(_e=!0),We>8&&Nn(e,t,8,H)&&(_e=!0),We>9&&Nn(e,t,9,de)&&(_e=!0),_e){let ct=t.text.prefix;We>0&&(ct+=pr(n,Oe[0])),We>1&&(ct+=pr(i,Oe[1])),We>2&&(ct+=pr(r,Oe[2])),We>3&&(ct+=pr(s,Oe[3])),We>4&&(ct+=pr(c,Oe[4])),We>5&&(ct+=pr(u,Oe[5])),We>6&&(ct+=pr(y,Oe[6])),We>7&&(ct+=pr(A,Oe[7])),We>8&&(ct+=pr(H,Oe[8])),We>9&&(ct+=pr(de,Oe[9]));const it=_a(e,t.nodeIndex).renderText;e.renderer.setValue(it,ct)}return _e}(e,t,n,i,r,s,c,u,y,A,H,de);case 16384:return function(e,t,n,i,r,s,c,u,y,A,H,de){const _e=ho(e,t.nodeIndex),Oe=_e.instance;let ct,We=!1;const it=t.bindings.length;return it>0&&Ji(e,t,0,n)&&(We=!0,ct=dr(e,_e,t,0,n,ct)),it>1&&Ji(e,t,1,i)&&(We=!0,ct=dr(e,_e,t,1,i,ct)),it>2&&Ji(e,t,2,r)&&(We=!0,ct=dr(e,_e,t,2,r,ct)),it>3&&Ji(e,t,3,s)&&(We=!0,ct=dr(e,_e,t,3,s,ct)),it>4&&Ji(e,t,4,c)&&(We=!0,ct=dr(e,_e,t,4,c,ct)),it>5&&Ji(e,t,5,u)&&(We=!0,ct=dr(e,_e,t,5,u,ct)),it>6&&Ji(e,t,6,y)&&(We=!0,ct=dr(e,_e,t,6,y,ct)),it>7&&Ji(e,t,7,A)&&(We=!0,ct=dr(e,_e,t,7,A,ct)),it>8&&Ji(e,t,8,H)&&(We=!0,ct=dr(e,_e,t,8,H,ct)),it>9&&Ji(e,t,9,de)&&(We=!0,ct=dr(e,_e,t,9,de,ct)),ct&&Oe.ngOnChanges(ct),65536&t.flags&&Il(e,256,t.nodeIndex)&&Oe.ngOnInit(),262144&t.flags&&Oe.ngDoCheck(),We}(e,t,n,i,r,s,c,u,y,A,H,de);case 32:case 64:case 128:return function(e,t,n,i,r,s,c,u,y,A,H,de){const _e=t.bindings;let Oe=!1;const We=_e.length;if(We>0&&Nn(e,t,0,n)&&(Oe=!0),We>1&&Nn(e,t,1,i)&&(Oe=!0),We>2&&Nn(e,t,2,r)&&(Oe=!0),We>3&&Nn(e,t,3,s)&&(Oe=!0),We>4&&Nn(e,t,4,c)&&(Oe=!0),We>5&&Nn(e,t,5,u)&&(Oe=!0),We>6&&Nn(e,t,6,y)&&(Oe=!0),We>7&&Nn(e,t,7,A)&&(Oe=!0),We>8&&Nn(e,t,8,H)&&(Oe=!0),We>9&&Nn(e,t,9,de)&&(Oe=!0),Oe){const ct=Es(e,t.nodeIndex);let it;switch(201347067&t.flags){case 32:it=[],We>0&&it.push(n),We>1&&it.push(i),We>2&&it.push(r),We>3&&it.push(s),We>4&&it.push(c),We>5&&it.push(u),We>6&&it.push(y),We>7&&it.push(A),We>8&&it.push(H),We>9&&it.push(de);break;case 64:it={},We>0&&(it[_e[0].name]=n),We>1&&(it[_e[1].name]=i),We>2&&(it[_e[2].name]=r),We>3&&(it[_e[3].name]=s),We>4&&(it[_e[4].name]=c),We>5&&(it[_e[5].name]=u),We>6&&(it[_e[6].name]=y),We>7&&(it[_e[7].name]=A),We>8&&(it[_e[8].name]=H),We>9&&(it[_e[9].name]=de);break;case 128:const Ot=n;switch(We){case 1:it=Ot.transform(n);break;case 2:it=Ot.transform(i);break;case 3:it=Ot.transform(i,r);break;case 4:it=Ot.transform(i,r,s);break;case 5:it=Ot.transform(i,r,s,c);break;case 6:it=Ot.transform(i,r,s,c,u);break;case 7:it=Ot.transform(i,r,s,c,u,y);break;case 8:it=Ot.transform(i,r,s,c,u,y,A);break;case 9:it=Ot.transform(i,r,s,c,u,y,A,H);break;case 10:it=Ot.transform(i,r,s,c,u,y,A,H,de)}}ct.value=it}return Oe}(e,t,n,i,r,s,c,u,y,A,H,de);default:throw"unreachable"}}(e,t,i,r,s,c,u,y,A,H,de,_e):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let i=!1;for(let r=0;r<n.length;r++)fr(e,t,r,n[r])&&(i=!0);return i}(e,t,n);case 2:return function(e,t,n){const i=t.bindings;let r=!1;for(let s=0;s<n.length;s++)Nn(e,t,s,n[s])&&(r=!0);if(r){let s="";for(let u=0;u<n.length;u++)s+=pr(n[u],i[u]);s=t.text.prefix+s;const c=_a(e,t.nodeIndex).renderText;e.renderer.setValue(c,s)}return r}(e,t,n);case 16384:return function(e,t,n){const i=ho(e,t.nodeIndex),r=i.instance;let c,s=!1;for(let u=0;u<n.length;u++)Ji(e,t,u,n[u])&&(s=!0,c=dr(e,i,t,u,n[u],c));return c&&r.ngOnChanges(c),65536&t.flags&&Il(e,256,t.nodeIndex)&&r.ngOnInit(),262144&t.flags&&r.ngDoCheck(),s}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const i=t.bindings;let r=!1;for(let s=0;s<n.length;s++)Nn(e,t,s,n[s])&&(r=!0);if(r){const s=Es(e,t.nodeIndex);let c;switch(201347067&t.flags){case 32:c=n;break;case 64:c={};for(let A=0;A<n.length;A++)c[i[A].name]=n[A];break;case 128:const u=n[0],y=n.slice(1);c=u.transform(...y)}s.value=c}return r}(e,t,n);default:throw"unreachable"}}(e,t,i)}function eb(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const i=t.nodes[n];if(4&i.flags){const r=En(e,n).template._projectedViews;if(r)for(let s=0;s<r.length;s++){const c=r[s];c.state|=32,O0(c,e)}}else 0==(4&i.childFlags)&&(n+=i.childCount)}}function tb(e,t,n,i,r,s,c,u,y,A,H,de,_e){return 0===n?function(e,t,n,i,r,s,c,u,y,A,H,de){const _e=t.bindings.length;_e>0&&ur(e,t,0,n),_e>1&&ur(e,t,1,i),_e>2&&ur(e,t,2,r),_e>3&&ur(e,t,3,s),_e>4&&ur(e,t,4,c),_e>5&&ur(e,t,5,u),_e>6&&ur(e,t,6,y),_e>7&&ur(e,t,7,A),_e>8&&ur(e,t,8,H),_e>9&&ur(e,t,9,de)}(e,t,i,r,s,c,u,y,A,H,de,_e):function(e,t,n){for(let i=0;i<n.length;i++)ur(e,t,i,n[i])}(e,t,i),!1}function BS(e,t){if(ya(e,t.nodeIndex).dirty)throw R_(ln.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function Ph(e){if(!(128&e.state)){if(Hl(e,Dn.Destroy),Na(e,Dn.Destroy),$d(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();(function(e){if(!(16&e.state))return;const t=Rd(e);if(t){const n=t.template._projectedViews;n&&(Co(n,n.indexOf(e)),ln.dirtyParentQueries(e))}})(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const i=e.def.nodes[n];1&i.flags?e.renderer.destroyNode(En(e,n).renderElement):2&i.flags?e.renderer.destroyNode(_a(e,n).renderText):(67108864&i.flags||134217728&i.flags)&&ya(e,n).destroy()}}(e),Ao(e)&&e.renderer.destroy(),e.state|=128}}var Dn=(()=>((Dn=Dn||{})[Dn.CreateViewNodes=0]="CreateViewNodes",Dn[Dn.CheckNoChanges=1]="CheckNoChanges",Dn[Dn.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",Dn[Dn.CheckAndUpdate=3]="CheckAndUpdate",Dn[Dn.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",Dn[Dn.Destroy=5]="Destroy",Dn))();function Na(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let i=0;i<n.nodes.length;i++){const r=n.nodes[i];33554432&r.flags?nb(En(e,i).componentView,t):0==(33554432&r.childFlags)&&(i+=r.childCount)}}function Hl(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let i=0;i<n.nodes.length;i++){const r=n.nodes[i];if(16777216&r.flags){const s=En(e,i).viewContainer._embeddedViews;for(let c=0;c<s.length;c++)nb(s[c],t)}else 0==(16777216&r.childFlags)&&(i+=r.childCount)}}function nb(e,t){const n=e.state;switch(t){case Dn.CheckNoChanges:0==(128&n)&&(12==(12&n)?Bl(e):64&n&&$l(e,Dn.CheckNoChangesProjectedViews));break;case Dn.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Bl(e):64&n&&$l(e,t));break;case Dn.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Vl(e):64&n&&$l(e,Dn.CheckAndUpdateProjectedViews));break;case Dn.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Vl(e):64&n&&$l(e,t));break;case Dn.Destroy:Ph(e);break;case Dn.CreateViewNodes:Ih(e)}}function $l(e,t){Hl(e,t),Na(e,t)}function Ah(e,t,n,i){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const r=e.def.nodes.length;for(let s=0;s<r;s++){const c=e.def.nodes[s];if(c.flags&t&&c.flags&n)switch(ln.setCurrentNode(e,c.nodeIndex),i){case 0:bS(e,c);break;case 1:BS(e,c)}(!(c.childFlags&t)||!(c.childFlags&n))&&(s+=c.childCount)}}let ib=!1;function La(){if(ib)return;ib=!0;const e=gh()?{setCurrentNode:Ps,createRootView:zS,createEmbeddedView:WS,createComponentView:KS,createNgModuleRef:GS,overrideProvider:QS,overrideComponentView:YS,clearOverrides:JS,checkAndUpdateView:XS,checkNoChangesView:qS,destroyView:eI,createDebugContext:(e,t)=>new Rh(e,t),handleEvent:tI,updateDirectives:nI,updateRenderer:iI}:{setCurrentNode:()=>{},createRootView:US,createEmbeddedView:Jv,createComponentView:Xv,createNgModuleRef:Q_,overrideProvider:Yi,overrideComponentView:Yi,clearOverrides:Yi,checkAndUpdateView:Vl,checkNoChangesView:Bl,destroyView:Ph,createDebugContext:(e,t)=>new Rh(e,t),handleEvent:(e,t,n,i)=>e.def.handleEvent(e,t,n,i),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?ob:sb,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?ob:sb,e)};ln.setCurrentNode=e.setCurrentNode,ln.createRootView=e.createRootView,ln.createEmbeddedView=e.createEmbeddedView,ln.createComponentView=e.createComponentView,ln.createNgModuleRef=e.createNgModuleRef,ln.overrideProvider=e.overrideProvider,ln.overrideComponentView=e.overrideComponentView,ln.clearOverrides=e.clearOverrides,ln.checkAndUpdateView=e.checkAndUpdateView,ln.checkNoChangesView=e.checkNoChangesView,ln.destroyView=e.destroyView,ln.resolveDep=mi,ln.createDebugContext=e.createDebugContext,ln.handleEvent=e.handleEvent,ln.updateDirectives=e.updateDirectives,ln.updateRenderer=e.updateRenderer,ln.dirtyParentQueries=vS}function US(e,t,n,i,r,s){const c=r.injector.get(Dl);return Zv(rb(e,r,c,t,n),i,s)}function zS(e,t,n,i,r,s){const c=r.injector.get(Dl),u=rb(e,r,new sI(c),t,n),y=xh(i);return Ro(Hn.create,Zv,null,[u,y,s])}function rb(e,t,n,i,r){const s=t.injector.get(Dd),c=t.injector.get(Xo),u=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:i,selectorOrNode:r,sanitizer:s,rendererFactory:n,renderer:u,errorHandler:c}}function WS(e,t,n,i){const r=xh(n);return Ro(Hn.create,Jv,null,[e,t,r,i])}function KS(e,t,n,i){return n=Oh.get(t.element.componentProvider.provider.token)||xh(n),Ro(Hn.create,Xv,null,[e,t,n,i])}function GS(e,t,n,i){const r=function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(s){let c=!1,u=!1;return 0===fo.size||(s.providers.forEach(y=>{const A=fo.get(y.token);3840&y.flags&&A&&(c=!0,u=u||A.deprecatedBehavior)}),s.modules.forEach(y=>{ja.forEach((A,H)=>{S(ue(H).providedIn)===y&&(c=!0,u=u||A.deprecatedBehavior)})})),{hasOverrides:c,hasDeprecatedOverrides:u}}(e);return t?(function(s){for(let c=0;c<s.providers.length;c++){const u=s.providers[c];n&&(u.flags|=4096);const y=fo.get(u.token);y&&(u.flags=-3841&u.flags|y.flags,u.deps=ba(y.deps),u.value=y.value)}if(ja.size>0){let c=new Set(s.modules);ja.forEach((u,y)=>{if(c.has(S(ue(y).providedIn))){let A={token:y,flags:u.flags|(n?4096:0),deps:ba(u.deps),value:u.value,index:s.providers.length};s.providers.push(A),s.providersByKey[ai(y)]=A}})}}(e=e.factory(()=>Yi)),e):e}(i);return Q_(e,t,n,r)}const fo=new Map,ja=new Map,Oh=new Map;function QS(e){let t;fo.set(e.token,e),"function"==typeof e.token&&(t=ue(e.token))&&"function"==typeof t.providedIn&&ja.set(e.token,e)}function YS(e,t){const n=Ts(K_(t)),i=Ts(n.nodes[0].element.componentView);Oh.set(e,i)}function JS(){fo.clear(),ja.clear(),Oh.clear()}function xh(e){if(0===fo.size)return e;const t=function(r){const s=[];let c=null;for(let u=0;u<r.nodes.length;u++){const y=r.nodes[u];1&y.flags&&(c=y),c&&3840&y.flags&&fo.has(y.provider.token)&&(s.push(c.nodeIndex),c=null)}return s}(e);if(0===t.length)return e;e=e.factory(()=>Yi);for(let r=0;r<t.length;r++)i(e,t[r]);return e;function i(r,s){for(let c=s+1;c<r.nodes.length;c++){const u=r.nodes[c];if(1&u.flags)return;if(3840&u.flags){const y=u.provider,A=fo.get(y.token);A&&(u.flags=-3841&u.flags|A.flags,y.deps=ba(A.deps),y.value=A.value)}}}}function ob(e,t,n,i,r,s,c,u,y,A,H,de,_e){const Oe=e.def.nodes[t];return qv(e,Oe,n,i,r,s,c,u,y,A,H,de,_e),224&Oe.flags?Es(e,t).value:void 0}function sb(e,t,n,i,r,s,c,u,y,A,H,de,_e){const Oe=e.def.nodes[t];return tb(e,Oe,n,i,r,s,c,u,y,A,H,de,_e),224&Oe.flags?Es(e,t).value:void 0}function XS(e){return Ro(Hn.detectChanges,Vl,null,[e])}function qS(e){return Ro(Hn.checkNoChanges,Bl,null,[e])}function eI(e){return Ro(Hn.destroy,Ph,null,[e])}var Hn=(()=>((Hn=Hn||{})[Hn.create=0]="create",Hn[Hn.detectChanges=1]="detectChanges",Hn[Hn.checkNoChanges=2]="checkNoChanges",Hn[Hn.destroy=3]="destroy",Hn[Hn.handleEvent=4]="handleEvent",Hn))();let Ba,Is,Ul;function Ps(e,t){Is=e,Ul=t}function tI(e,t,n,i){return Ps(e,t),Ro(Hn.handleEvent,e.def.handleEvent,null,[e,t,n,i])}function nI(e,t){if(128&e.state)throw F_(Hn[Ba]);return Ps(e,cb(e,0)),e.def.updateDirectives(function(i,r,s,...c){const u=i.def.nodes[r];return 0===t?ab(i,u,s,c):lb(i,u,s,c),16384&u.flags&&Ps(i,cb(i,r)),224&u.flags?Es(i,u.nodeIndex).value:void 0},e)}function iI(e,t){if(128&e.state)throw F_(Hn[Ba]);return Ps(e,ub(e,0)),e.def.updateRenderer(function(i,r,s,...c){const u=i.def.nodes[r];return 0===t?ab(i,u,s,c):lb(i,u,s,c),3&u.flags&&Ps(i,ub(i,r)),224&u.flags?Es(i,u.nodeIndex).value:void 0},e)}function ab(e,t,n,i){if(qv(e,t,n,...i)){const s=1===n?i[0]:i;if(16384&t.flags){const c={};for(let A=0;A<t.bindings.length;A++){const H=t.bindings[A],de=s[A];8&H.flags&&(c[Wf(H.nonMinifiedName)]=Kf(de))}const u=t.parent,y=En(e,u.nodeIndex).renderElement;if(u.element.name)for(let A in c){const H=c[A];null!=H?e.renderer.setAttribute(y,A,H):e.renderer.removeAttribute(y,A)}else e.renderer.setValue(y,nl(`bindings=${JSON.stringify(c,null,2)}`))}}}function lb(e,t,n,i){tb(e,t,n,...i)}function cb(e,t){for(let n=t;n<e.def.nodes.length;n++){const i=e.def.nodes[n];if(16384&i.flags&&i.bindings&&i.bindings.length)return n}return null}function ub(e,t){for(let n=t;n<e.def.nodes.length;n++){const i=e.def.nodes[n];if(3&i.flags&&i.bindings&&i.bindings.length)return n}return null}class Rh{constructor(t,n){this.view=t,this.nodeIndex=n,null==n&&(this.nodeIndex=n=0),this.nodeDef=t.def.nodes[n];let i=this.nodeDef,r=t;for(;i&&0==(1&i.flags);)i=i.parent;if(!i)for(;!i&&r;)i=Ds(r),r=r.parent;this.elDef=i,this.elView=r}get elOrCompView(){return En(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return G_(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const t=[];if(this.elDef)for(let n=this.elDef.nodeIndex+1;n<=this.elDef.nodeIndex+this.elDef.childCount;n++){const i=this.elView.def.nodes[n];20224&i.flags&&t.push(i.provider.token),n+=i.childCount}return t}get references(){const t={};if(this.elDef){db(this.elView,this.elDef,t);for(let n=this.elDef.nodeIndex+1;n<=this.elDef.nodeIndex+this.elDef.childCount;n++){const i=this.elView.def.nodes[n];20224&i.flags&&db(this.elView,i,t),n+=i.childCount}}return t}get componentRenderElement(){const t=function(e){for(;e&&!Ao(e);)e=e.parent;return e.parent?En(e.parent,Ds(e).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?va(this.view,this.nodeDef):va(this.elView,this.elDef)}logError(t,...n){let i,r;2&this.nodeDef.flags?(i=this.view.def,r=this.nodeDef.nodeIndex):(i=this.elView.def,r=this.elDef.nodeIndex);const s=function(e,t){let n=-1;for(let i=0;i<=t;i++)3&e.nodes[i].flags&&n++;return n}(i,r);let c=-1;i.factory(()=>(c++,c===s?t.error.bind(t,...n):Yi)),c<s&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error(...n))}}function db(e,t,n){for(let i in t.references)n[i]=Qv(e,t,t.references[i])}function Ro(e,t,n,i){const r=Ba,s=Is,c=Ul;try{Ba=e;const u=t.apply(n,i);return Is=s,Ul=c,Ba=r,u}catch(u){throw function(e){return!!$f(e)}(u)||!Is?u:function(e,t){return e instanceof Error||(e=new Error(e.toString())),k_(e,t),e}(u,kh())}}function kh(){return Is?new Rh(Is,Ul):null}class sI{constructor(t){this.delegate=t}createRenderer(t,n){return new aI(this.delegate.createRenderer(t,n))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class aI{constructor(t){this.delegate=t,this.debugContextFactory=kh,this.data=this.delegate.data}createDebugContext(t){return this.debugContextFactory(t)}destroyNode(t){const n=Zn(t);n&&(Nl.delete(n.nativeNode),n instanceof Ra&&(n.listeners.length=0)),this.delegate.destroyNode&&this.delegate.destroyNode(t)}destroy(){this.delegate.destroy()}createElement(t,n){const i=this.delegate.createElement(t,n),r=this.createDebugContext(i);if(r){const s=new Jn(i,null,r);s.name=t,jl(s)}return i}createComment(t){const n=this.delegate.createComment(nl(t)),i=this.createDebugContext(n);return i&&jl(new Ra(n,null,i)),n}createText(t){const n=this.delegate.createText(t),i=this.createDebugContext(n);return i&&jl(new Ra(n,null,i)),n}appendChild(t,n){const i=Zn(t),r=Zn(n);i&&r&&i instanceof Jn&&i.addChild(r),this.delegate.appendChild(t,n)}insertBefore(t,n,i,r){const s=Zn(t),c=Zn(n),u=Zn(i);s&&c&&s instanceof Jn&&s.insertBefore(u,c),this.delegate.insertBefore(t,n,i,r)}removeChild(t,n){const i=Zn(t),r=Zn(n);i&&r&&i instanceof Jn&&i.removeChild(r),this.delegate.removeChild(t,n)}selectRootElement(t,n){const i=this.delegate.selectRootElement(t,n),r=kh();return r&&jl(new Jn(i,null,r)),i}setAttribute(t,n,i,r){const s=Zn(t);s&&s instanceof Jn&&(s.attributes[r?r+":"+n:n]=i),this.delegate.setAttribute(t,n,i,r)}removeAttribute(t,n,i){const r=Zn(t);r&&r instanceof Jn&&(r.attributes[i?i+":"+n:n]=null),this.delegate.removeAttribute(t,n,i)}addClass(t,n){const i=Zn(t);i&&i instanceof Jn&&(i.classes[n]=!0),this.delegate.addClass(t,n)}removeClass(t,n){const i=Zn(t);i&&i instanceof Jn&&(i.classes[n]=!1),this.delegate.removeClass(t,n)}setStyle(t,n,i,r){const s=Zn(t);s&&s instanceof Jn&&(s.styles[n]=i),this.delegate.setStyle(t,n,i,r)}removeStyle(t,n,i){const r=Zn(t);r&&r instanceof Jn&&(r.styles[n]=null),this.delegate.removeStyle(t,n,i)}setProperty(t,n,i){const r=Zn(t);r&&r instanceof Jn&&(r.properties[n]=i),this.delegate.setProperty(t,n,i)}listen(t,n,i){if("string"!=typeof t){const r=Zn(t);r&&r.listeners.push(new jv(n,i))}return this.delegate.listen(t,n,i)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setValue(t,n){return this.delegate.setValue(t,n)}}function lI(e){return La(),ln.overrideProvider(e)}function cI(e,t){return La(),ln.overrideComponentView(e,t)}function uI(){return La(),ln.clearOverrides()}function dI(e,t,n){return new fI(e,t,n)}class fI extends Ad{constructor(t,n,i){super(),this.moduleType=t,this._bootstrapComponents=n,this._ngModuleDefFactory=i}create(t){La();const n=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),i={};for(const r in e.providersByKey)i[r]=e.providersByKey[r];return{factory:e.factory,scope:e.scope,providers:t,modules:n,providersByKey:i}}(Ts(this._ngModuleDefFactory));return ln.createNgModuleRef(this.moduleType,t||In.NULL,this._bootstrapComponents,n)}}function pI(e){return Qn().compileDirectiveDeclaration(vi,`ng:///${e.type.name}/\u0275fac.js`,e)}function mI(e){var t,n;iy(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(n=e.propDecorators)&&void 0!==n?n:null)}function gI(e){return Qn().compileComponentDeclaration(vi,`ng:///${e.type.name}/\u0275cmp.js`,e)}function _I(e){return Qn(function(e){switch(e){case Gn.Directive:return"directive";case Gn.Component:return"component";case Gn.Injectable:return"injectable";case Gn.Pipe:return"pipe";case Gn.NgModule:;}}(e.target)).compileFactoryDeclaration(vi,`ng:///${e.type.name}/\u0275fac.js`,e)}function vI(e){return Qn().compileInjectableDeclaration(vi,`ng:///${e.type.name}/\u0275prov.js`,e)}function bI(e){return Qn().compileInjectorDeclaration(vi,`ng:///${e.type.name}/\u0275inj.js`,e)}function CI(e){return Qn().compileNgModuleDeclaration(vi,`ng:///${e.type.name}/\u0275mod.js`,e)}function EI(e){return Qn().compilePipeDeclaration(vi,`ng:///${e.type.name}/\u0275pipe.js`,e)}},3679:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{AbstractControl:()=>Se,AbstractControlDirective:()=>fe,AbstractFormGroupDirective:()=>Ke,COMPOSITION_BUFFER_MODE:()=>P,CheckboxControlValueAccessor:()=>E,CheckboxRequiredValidator:()=>ji,ControlContainer:()=>Fe,DefaultValueAccessor:()=>B,EmailValidator:()=>tr,FormArray:()=>Rt,FormArrayName:()=>mr,FormBuilder:()=>ne,FormControl:()=>nt,FormControlDirective:()=>Ci,FormControlName:()=>Fr,FormGroup:()=>ht,FormGroupDirective:()=>ui,FormGroupName:()=>Un,FormsModule:()=>Tr,MaxLengthValidator:()=>Si,MaxValidator:()=>Br,MinLengthValidator:()=>br,MinValidator:()=>yr,NG_ASYNC_VALIDATORS:()=>be,NG_VALIDATORS:()=>ce,NG_VALUE_ACCESSOR:()=>D,NgControl:()=>st,NgControlStatus:()=>He,NgControlStatusGroup:()=>q,NgForm:()=>ye,NgModel:()=>qt,NgModelGroup:()=>Ve,NgSelectOption:()=>po,NumberValueAccessor:()=>gi,PatternValidator:()=>Rn,RadioControlValueAccessor:()=>ei,RangeValueAccessor:()=>Xi,ReactiveFormsModule:()=>go,RequiredValidator:()=>Mi,SelectControlValueAccessor:()=>Di,SelectMultipleControlValueAccessor:()=>_r,VERSION:()=>k,Validators:()=>lt,\u0275InternalFormsSharedModule:()=>Dr,\u0275NgNoValidate:()=>Wt,\u0275NgSelectMultipleOption:()=>Lr,\u0275angular_packages_forms_forms_a:()=>Cr,\u0275angular_packages_forms_forms_b:()=>no,\u0275angular_packages_forms_forms_ba:()=>ii,\u0275angular_packages_forms_forms_bb:()=>Lr,\u0275angular_packages_forms_forms_bc:()=>Wt,\u0275angular_packages_forms_forms_bd:()=>Li,\u0275angular_packages_forms_forms_be:()=>qi,\u0275angular_packages_forms_forms_bf:()=>yi,\u0275angular_packages_forms_forms_bg:()=>er,\u0275angular_packages_forms_forms_bh:()=>Vr,\u0275angular_packages_forms_forms_bi:()=>vr,\u0275angular_packages_forms_forms_bj:()=>Hr,\u0275angular_packages_forms_forms_bk:()=>$r,\u0275angular_packages_forms_forms_bl:()=>Je,\u0275angular_packages_forms_forms_bm:()=>Me,\u0275angular_packages_forms_forms_bn:()=>xe,\u0275angular_packages_forms_forms_bo:()=>Pe,\u0275angular_packages_forms_forms_bp:()=>Ne,\u0275angular_packages_forms_forms_bq:()=>Ct,\u0275angular_packages_forms_forms_br:()=>te,\u0275angular_packages_forms_forms_bs:()=>ge,\u0275angular_packages_forms_forms_bt:()=>X,\u0275angular_packages_forms_forms_c:()=>Er,\u0275angular_packages_forms_forms_d:()=>Dr,\u0275angular_packages_forms_forms_e:()=>g,\u0275angular_packages_forms_forms_f:()=>C,\u0275angular_packages_forms_forms_g:()=>w,\u0275angular_packages_forms_forms_h:()=>M,\u0275angular_packages_forms_forms_i:()=>wt,\u0275angular_packages_forms_forms_j:()=>Ze,\u0275angular_packages_forms_forms_k:()=>ze,\u0275angular_packages_forms_forms_l:()=>ee,\u0275angular_packages_forms_forms_m:()=>at,\u0275angular_packages_forms_forms_n:()=>pe,\u0275angular_packages_forms_forms_o:()=>Mn,\u0275angular_packages_forms_forms_p:()=>bi,\u0275angular_packages_forms_forms_q:()=>qn,\u0275angular_packages_forms_forms_r:()=>_i,\u0275angular_packages_forms_forms_s:()=>xn,\u0275angular_packages_forms_forms_t:()=>ti,\u0275angular_packages_forms_forms_u:()=>Cn,\u0275angular_packages_forms_forms_v:()=>gr,\u0275angular_packages_forms_forms_w:()=>ci,\u0275angular_packages_forms_forms_x:()=>ni,\u0275angular_packages_forms_forms_y:()=>kr,\u0275angular_packages_forms_forms_z:()=>Nr});var o=d(7716),l=d(8583),f=d(9412),_=d(5758),a=d(8002);let C=(()=>{class m{constructor(b,U){this._renderer=b,this._elementRef=U,this.onChange=Qe=>{},this.onTouched=()=>{}}setProperty(b,U){this._renderer.setProperty(this._elementRef.nativeElement,b,U)}registerOnTouched(b){this.onTouched=b}registerOnChange(b){this.onChange=b}setDisabledState(b){this.setProperty("disabled",b)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(o.ElementRef))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m}),m})(),w=(()=>{class m extends C{}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,features:[o.\u0275\u0275InheritDefinitionFeature]}),m})();const D=new o.InjectionToken("NgValueAccessor"),g={provide:D,useExisting:(0,o.forwardRef)(()=>E),multi:!0};let E=(()=>{class m extends w{writeValue(b){this.setProperty("checked",b)}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("change",function(St){return U.onChange(St.target.checked)})("blur",function(){return U.onTouched()})},features:[o.\u0275\u0275ProvidersFeature([g]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const M={provide:D,useExisting:(0,o.forwardRef)(()=>B),multi:!0},P=new o.InjectionToken("CompositionEventMode");let B=(()=>{class m extends C{constructor(b,U,Qe){super(b,U),this._compositionMode=Qe,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const m=(0,l.\u0275getDOM)()?(0,l.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(m.toLowerCase())}())}writeValue(b){this.setProperty("value",null==b?"":b)}_handleInput(b){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(b)}_compositionStart(){this._composing=!0}_compositionEnd(b){this._composing=!1,this._compositionMode&&this.onChange(b)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(P,8))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,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(b,U){1&b&&o.\u0275\u0275listener("input",function(St){return U._handleInput(St.target.value)})("blur",function(){return U.onTouched()})("compositionstart",function(){return U._compositionStart()})("compositionend",function(St){return U._compositionEnd(St.target.value)})},features:[o.\u0275\u0275ProvidersFeature([M]),o.\u0275\u0275InheritDefinitionFeature]}),m})();function j(m){return null==m||0===m.length}function se(m){return null!=m&&"number"==typeof m.length}const ce=new o.InjectionToken("NgValidators"),be=new o.InjectionToken("NgAsyncValidators"),Ue=/^(?=.{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 lt{static min(v){return Je(v)}static max(v){return Me(v)}static required(v){return xe(v)}static requiredTrue(v){return Pe(v)}static email(v){return Ne(v)}static minLength(v){return Ct(v)}static maxLength(v){return te(v)}static pattern(v){return ge(v)}static nullValidator(v){return null}static compose(v){return je(v)}static composeAsync(v){return ut(v)}}function Je(m){return v=>{if(j(v.value)||j(m))return null;const b=parseFloat(v.value);return!isNaN(b)&&b<m?{min:{min:m,actual:v.value}}:null}}function Me(m){return v=>{if(j(v.value)||j(m))return null;const b=parseFloat(v.value);return!isNaN(b)&&b>m?{max:{max:m,actual:v.value}}:null}}function xe(m){return j(m.value)?{required:!0}:null}function Pe(m){return!0===m.value?null:{required:!0}}function Ne(m){return j(m.value)||Ue.test(m.value)?null:{email:!0}}function Ct(m){return v=>j(v.value)||!se(v.value)?null:v.value.length<m?{minlength:{requiredLength:m,actualLength:v.value.length}}:null}function te(m){return v=>se(v.value)&&v.value.length>m?{maxlength:{requiredLength:m,actualLength:v.value.length}}:null}function ge(m){if(!m)return X;let v,b;return"string"==typeof m?(b="","^"!==m.charAt(0)&&(b+="^"),b+=m,"$"!==m.charAt(m.length-1)&&(b+="$"),v=new RegExp(b)):(b=m.toString(),v=m),U=>{if(j(U.value))return null;const Qe=U.value;return v.test(Qe)?null:{pattern:{requiredPattern:b,actualValue:Qe}}}}function X(m){return null}function le(m){return null!=m}function Ae(m){const v=(0,o.\u0275isPromise)(m)?(0,f.D)(m):m;return(0,o.\u0275isObservable)(v),v}function Ce(m){let v={};return m.forEach(b=>{v=null!=b?Object.assign(Object.assign({},v),b):v}),0===Object.keys(v).length?null:v}function $e(m,v){return v.map(b=>b(m))}function pt(m){return m.map(v=>function(m){return!m.validate}(v)?v:b=>v.validate(b))}function je(m){if(!m)return null;const v=m.filter(le);return 0==v.length?null:function(b){return Ce($e(b,v))}}function tt(m){return null!=m?je(pt(m)):null}function ut(m){if(!m)return null;const v=m.filter(le);return 0==v.length?null:function(b){const U=$e(b,v).map(Ae);return(0,_.D)(U).pipe((0,a.U)(Ce))}}function It(m){return null!=m?ut(pt(m)):null}function Xe(m,v){return null===m?[v]:Array.isArray(m)?[...m,v]:[m,v]}function dt(m){return m._rawValidators}function $(m){return m._rawAsyncValidators}function oe(m){return m?Array.isArray(m)?m:[m]:[]}function L(m,v){return Array.isArray(m)?m.includes(v):m===v}function ue(m,v){const b=oe(v);return oe(m).forEach(Qe=>{L(b,Qe)||b.push(Qe)}),b}function ae(m,v){return oe(v).filter(b=>!L(m,b))}let fe=(()=>{class m{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(b){this._rawValidators=b||[],this._composedValidatorFn=tt(this._rawValidators)}_setAsyncValidators(b){this._rawAsyncValidators=b||[],this._composedAsyncValidatorFn=It(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(b){this._onDestroyCallbacks.push(b)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(b=>b()),this._onDestroyCallbacks=[]}reset(b){this.control&&this.control.reset(b)}hasError(b,U){return!!this.control&&this.control.hasError(b,U)}getError(b,U){return this.control?this.control.getError(b,U):null}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m}),m})(),Fe=(()=>{class m extends fe{get formDirective(){return null}get path(){return null}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,features:[o.\u0275\u0275InheritDefinitionFeature]}),m})();class st extends fe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class wt{constructor(v){this._cd=v}is(v){var b,U,Qe;return"submitted"===v?!!(null===(b=this._cd)||void 0===b?void 0:b.submitted):!!(null===(Qe=null===(U=this._cd)||void 0===U?void 0:U.control)||void 0===Qe?void 0:Qe[v])}}const Ze={"[class.ng-untouched]":'is("untouched")',"[class.ng-touched]":'is("touched")',"[class.ng-pristine]":'is("pristine")',"[class.ng-dirty]":'is("dirty")',"[class.ng-valid]":'is("valid")',"[class.ng-invalid]":'is("invalid")',"[class.ng-pending]":'is("pending")'},ze={"[class.ng-untouched]":'is("untouched")',"[class.ng-touched]":'is("touched")',"[class.ng-pristine]":'is("pristine")',"[class.ng-dirty]":'is("dirty")',"[class.ng-valid]":'is("valid")',"[class.ng-invalid]":'is("invalid")',"[class.ng-pending]":'is("pending")',"[class.ng-submitted]":'is("submitted")'};let He=(()=>{class m extends wt{constructor(b){super(b)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(st,2))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(b,U){2&b&&o.\u0275\u0275classProp("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))},features:[o.\u0275\u0275InheritDefinitionFeature]}),m})(),q=(()=>{class m extends wt{constructor(b){super(b)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(Fe,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(b,U){2&b&&o.\u0275\u0275classProp("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))("ng-submitted",U.is("submitted"))},features:[o.\u0275\u0275InheritDefinitionFeature]}),m})();function Et(m,v){return[...v.path,m]}function xt(m,v){At(m,v),v.valueAccessor.writeValue(m.value),function(m,v){v.valueAccessor.registerOnChange(b=>{m._pendingValue=b,m._pendingChange=!0,m._pendingDirty=!0,"change"===m.updateOn&&qe(m,v)})}(m,v),function(m,v){const b=(U,Qe)=>{v.valueAccessor.writeValue(U),Qe&&v.viewToModelUpdate(U)};m.registerOnChange(b),v._registerOnDestroy(()=>{m._unregisterOnChange(b)})}(m,v),function(m,v){v.valueAccessor.registerOnTouched(()=>{m._pendingTouched=!0,"blur"===m.updateOn&&m._pendingChange&&qe(m,v),"submit"!==m.updateOn&&m.markAsTouched()})}(m,v),function(m,v){if(v.valueAccessor.setDisabledState){const b=U=>{v.valueAccessor.setDisabledState(U)};m.registerOnDisabledChange(b),v._registerOnDestroy(()=>{m._unregisterOnDisabledChange(b)})}}(m,v)}function Nt(m,v,b=!0){const U=()=>{};v.valueAccessor&&(v.valueAccessor.registerOnChange(U),v.valueAccessor.registerOnTouched(U)),Lt(m,v),m&&(v._invokeOnDestroyCallbacks(),m._registerOnCollectionChange(()=>{}))}function Ut(m,v){m.forEach(b=>{b.registerOnValidatorChange&&b.registerOnValidatorChange(v)})}function At(m,v){const b=dt(m);null!==v.validator?m.setValidators(Xe(b,v.validator)):"function"==typeof b&&m.setValidators([b]);const U=$(m);null!==v.asyncValidator?m.setAsyncValidators(Xe(U,v.asyncValidator)):"function"==typeof U&&m.setAsyncValidators([U]);const Qe=()=>m.updateValueAndValidity();Ut(v._rawValidators,Qe),Ut(v._rawAsyncValidators,Qe)}function Lt(m,v){let b=!1;if(null!==m){if(null!==v.validator){const Qe=dt(m);if(Array.isArray(Qe)&&Qe.length>0){const St=Qe.filter(Zt=>Zt!==v.validator);St.length!==Qe.length&&(b=!0,m.setValidators(St))}}if(null!==v.asyncValidator){const Qe=$(m);if(Array.isArray(Qe)&&Qe.length>0){const St=Qe.filter(Zt=>Zt!==v.asyncValidator);St.length!==Qe.length&&(b=!0,m.setAsyncValidators(St))}}}const U=()=>{};return Ut(v._rawValidators,U),Ut(v._rawAsyncValidators,U),b}function qe(m,v){m._pendingDirty&&m.markAsDirty(),m.setValue(m._pendingValue,{emitModelToViewChange:!1}),v.viewToModelUpdate(m._pendingValue),m._pendingChange=!1}function V(m,v){At(m,v)}function Ee(m,v){if(!m.hasOwnProperty("model"))return!1;const b=m.model;return!!b.isFirstChange()||!Object.is(v,b.currentValue)}function J(m,v){m._syncPendingControls(),v.forEach(b=>{const U=b.control;"submit"===U.updateOn&&U._pendingChange&&(b.viewToModelUpdate(U._pendingValue),U._pendingChange=!1)})}function N(m,v){if(!v)return null;let b,U,Qe;return Array.isArray(v),v.forEach(St=>{St.constructor===B?b=St:function(m){return Object.getPrototypeOf(m.constructor)===w}(St)?U=St:Qe=St}),Qe||U||b||null}function re(m,v){const b=m.indexOf(v);b>-1&&m.splice(b,1)}const _t="VALID",Ht="INVALID",dn="PENDING",cn="DISABLED";function un(m){return(Re(m)?m.validators:m)||null}function wn(m){return Array.isArray(m)?tt(m):m||null}function yn(m,v){return(Re(v)?v.asyncValidators:m)||null}function mt(m){return Array.isArray(m)?It(m):m||null}function Re(m){return null!=m&&!Array.isArray(m)&&"object"==typeof m}class Se{constructor(v,b){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=v,this._rawAsyncValidators=b,this._composedValidatorFn=wn(this._rawValidators),this._composedAsyncValidatorFn=mt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(v){this._rawValidators=this._composedValidatorFn=v}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(v){this._rawAsyncValidators=this._composedAsyncValidatorFn=v}get parent(){return this._parent}get valid(){return this.status===_t}get invalid(){return this.status===Ht}get pending(){return this.status==dn}get disabled(){return this.status===cn}get enabled(){return this.status!==cn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(v){this._rawValidators=v,this._composedValidatorFn=wn(v)}setAsyncValidators(v){this._rawAsyncValidators=v,this._composedAsyncValidatorFn=mt(v)}addValidators(v){this.setValidators(ue(v,this._rawValidators))}addAsyncValidators(v){this.setAsyncValidators(ue(v,this._rawAsyncValidators))}removeValidators(v){this.setValidators(ae(v,this._rawValidators))}removeAsyncValidators(v){this.setAsyncValidators(ae(v,this._rawAsyncValidators))}hasValidator(v){return L(this._rawValidators,v)}hasAsyncValidator(v){return L(this._rawAsyncValidators,v)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(v={}){this.touched=!0,this._parent&&!v.onlySelf&&this._parent.markAsTouched(v)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(v=>v.markAllAsTouched())}markAsUntouched(v={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(b=>{b.markAsUntouched({onlySelf:!0})}),this._parent&&!v.onlySelf&&this._parent._updateTouched(v)}markAsDirty(v={}){this.pristine=!1,this._parent&&!v.onlySelf&&this._parent.markAsDirty(v)}markAsPristine(v={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(b=>{b.markAsPristine({onlySelf:!0})}),this._parent&&!v.onlySelf&&this._parent._updatePristine(v)}markAsPending(v={}){this.status=dn,!1!==v.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!v.onlySelf&&this._parent.markAsPending(v)}disable(v={}){const b=this._parentMarkedDirty(v.onlySelf);this.status=cn,this.errors=null,this._forEachChild(U=>{U.disable(Object.assign(Object.assign({},v),{onlySelf:!0}))}),this._updateValue(),!1!==v.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},v),{skipPristineCheck:b})),this._onDisabledChange.forEach(U=>U(!0))}enable(v={}){const b=this._parentMarkedDirty(v.onlySelf);this.status=_t,this._forEachChild(U=>{U.enable(Object.assign(Object.assign({},v),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:v.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},v),{skipPristineCheck:b})),this._onDisabledChange.forEach(U=>U(!1))}_updateAncestors(v){this._parent&&!v.onlySelf&&(this._parent.updateValueAndValidity(v),v.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(v){this._parent=v}updateValueAndValidity(v={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===_t||this.status===dn)&&this._runAsyncValidator(v.emitEvent)),!1!==v.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!v.onlySelf&&this._parent.updateValueAndValidity(v)}_updateTreeValidity(v={emitEvent:!0}){this._forEachChild(b=>b._updateTreeValidity(v)),this.updateValueAndValidity({onlySelf:!0,emitEvent:v.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?cn:_t}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(v){if(this.asyncValidator){this.status=dn,this._hasOwnPendingAsyncValidator=!0;const b=Ae(this.asyncValidator(this));this._asyncValidationSubscription=b.subscribe(U=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(U,{emitEvent:v})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(v,b={}){this.errors=v,this._updateControlsErrors(!1!==b.emitEvent)}get(v){return function(m,v,b){if(null==v||(Array.isArray(v)||(v=v.split(".")),Array.isArray(v)&&0===v.length))return null;let U=m;return v.forEach(Qe=>{U=U instanceof ht?U.controls.hasOwnProperty(Qe)?U.controls[Qe]:null:U instanceof Rt&&U.at(Qe)||null}),U}(this,v)}getError(v,b){const U=b?this.get(b):this;return U&&U.errors?U.errors[v]:null}hasError(v,b){return!!this.getError(v,b)}get root(){let v=this;for(;v._parent;)v=v._parent;return v}_updateControlsErrors(v){this.status=this._calculateStatus(),v&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(v)}_initObservables(){this.valueChanges=new o.EventEmitter,this.statusChanges=new o.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?cn:this.errors?Ht:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(dn)?dn:this._anyControlsHaveStatus(Ht)?Ht:_t}_anyControlsHaveStatus(v){return this._anyControls(b=>b.status===v)}_anyControlsDirty(){return this._anyControls(v=>v.dirty)}_anyControlsTouched(){return this._anyControls(v=>v.touched)}_updatePristine(v={}){this.pristine=!this._anyControlsDirty(),this._parent&&!v.onlySelf&&this._parent._updatePristine(v)}_updateTouched(v={}){this.touched=this._anyControlsTouched(),this._parent&&!v.onlySelf&&this._parent._updateTouched(v)}_isBoxedValue(v){return"object"==typeof v&&null!==v&&2===Object.keys(v).length&&"value"in v&&"disabled"in v}_registerOnCollectionChange(v){this._onCollectionChange=v}_setUpdateStrategy(v){Re(v)&&null!=v.updateOn&&(this._updateOn=v.updateOn)}_parentMarkedDirty(v){return!v&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class nt extends Se{constructor(v=null,b,U){super(un(b),yn(U,b)),this._onChange=[],this._applyFormState(v),this._setUpdateStrategy(b),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(v,b={}){this.value=this._pendingValue=v,this._onChange.length&&!1!==b.emitModelToViewChange&&this._onChange.forEach(U=>U(this.value,!1!==b.emitViewToModelChange)),this.updateValueAndValidity(b)}patchValue(v,b={}){this.setValue(v,b)}reset(v=null,b={}){this._applyFormState(v),this.markAsPristine(b),this.markAsUntouched(b),this.setValue(this.value,b),this._pendingChange=!1}_updateValue(){}_anyControls(v){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(v){this._onChange.push(v)}_unregisterOnChange(v){re(this._onChange,v)}registerOnDisabledChange(v){this._onDisabledChange.push(v)}_unregisterOnDisabledChange(v){re(this._onDisabledChange,v)}_forEachChild(v){}_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(v){this._isBoxedValue(v)?(this.value=this._pendingValue=v.value,v.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=v}}class ht extends Se{constructor(v,b,U){super(un(b),yn(U,b)),this.controls=v,this._initObservables(),this._setUpdateStrategy(b),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(v,b){return this.controls[v]?this.controls[v]:(this.controls[v]=b,b.setParent(this),b._registerOnCollectionChange(this._onCollectionChange),b)}addControl(v,b,U={}){this.registerControl(v,b),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}removeControl(v,b={}){this.controls[v]&&this.controls[v]._registerOnCollectionChange(()=>{}),delete this.controls[v],this.updateValueAndValidity({emitEvent:b.emitEvent}),this._onCollectionChange()}setControl(v,b,U={}){this.controls[v]&&this.controls[v]._registerOnCollectionChange(()=>{}),delete this.controls[v],b&&this.registerControl(v,b),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}contains(v){return this.controls.hasOwnProperty(v)&&this.controls[v].enabled}setValue(v,b={}){this._checkAllValuesPresent(v),Object.keys(v).forEach(U=>{this._throwIfControlMissing(U),this.controls[U].setValue(v[U],{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b)}patchValue(v,b={}){null!=v&&(Object.keys(v).forEach(U=>{this.controls[U]&&this.controls[U].patchValue(v[U],{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b))}reset(v={},b={}){this._forEachChild((U,Qe)=>{U.reset(v[Qe],{onlySelf:!0,emitEvent:b.emitEvent})}),this._updatePristine(b),this._updateTouched(b),this.updateValueAndValidity(b)}getRawValue(){return this._reduceChildren({},(v,b,U)=>(v[U]=b instanceof nt?b.value:b.getRawValue(),v))}_syncPendingControls(){let v=this._reduceChildren(!1,(b,U)=>!!U._syncPendingControls()||b);return v&&this.updateValueAndValidity({onlySelf:!0}),v}_throwIfControlMissing(v){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[v])throw new Error(`Cannot find form control with name: ${v}.`)}_forEachChild(v){Object.keys(this.controls).forEach(b=>{const U=this.controls[b];U&&v(U,b)})}_setUpControls(){this._forEachChild(v=>{v.setParent(this),v._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(v){for(const b of Object.keys(this.controls)){const U=this.controls[b];if(this.contains(b)&&v(U))return!0}return!1}_reduceValue(){return this._reduceChildren({},(v,b,U)=>((b.enabled||this.disabled)&&(v[U]=b.value),v))}_reduceChildren(v,b){let U=v;return this._forEachChild((Qe,St)=>{U=b(U,Qe,St)}),U}_allControlsDisabled(){for(const v of Object.keys(this.controls))if(this.controls[v].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(v){this._forEachChild((b,U)=>{if(void 0===v[U])throw new Error(`Must supply a value for form control with name: '${U}'.`)})}}class Rt extends Se{constructor(v,b,U){super(un(b),yn(U,b)),this.controls=v,this._initObservables(),this._setUpdateStrategy(b),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(v){return this.controls[v]}push(v,b={}){this.controls.push(v),this._registerControl(v),this.updateValueAndValidity({emitEvent:b.emitEvent}),this._onCollectionChange()}insert(v,b,U={}){this.controls.splice(v,0,b),this._registerControl(b),this.updateValueAndValidity({emitEvent:U.emitEvent})}removeAt(v,b={}){this.controls[v]&&this.controls[v]._registerOnCollectionChange(()=>{}),this.controls.splice(v,1),this.updateValueAndValidity({emitEvent:b.emitEvent})}setControl(v,b,U={}){this.controls[v]&&this.controls[v]._registerOnCollectionChange(()=>{}),this.controls.splice(v,1),b&&(this.controls.splice(v,0,b),this._registerControl(b)),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(v,b={}){this._checkAllValuesPresent(v),v.forEach((U,Qe)=>{this._throwIfControlMissing(Qe),this.at(Qe).setValue(U,{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b)}patchValue(v,b={}){null!=v&&(v.forEach((U,Qe)=>{this.at(Qe)&&this.at(Qe).patchValue(U,{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b))}reset(v=[],b={}){this._forEachChild((U,Qe)=>{U.reset(v[Qe],{onlySelf:!0,emitEvent:b.emitEvent})}),this._updatePristine(b),this._updateTouched(b),this.updateValueAndValidity(b)}getRawValue(){return this.controls.map(v=>v instanceof nt?v.value:v.getRawValue())}clear(v={}){this.controls.length<1||(this._forEachChild(b=>b._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:v.emitEvent}))}_syncPendingControls(){let v=this.controls.reduce((b,U)=>!!U._syncPendingControls()||b,!1);return v&&this.updateValueAndValidity({onlySelf:!0}),v}_throwIfControlMissing(v){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(v))throw new Error(`Cannot find form control at index ${v}`)}_forEachChild(v){this.controls.forEach((b,U)=>{v(b,U)})}_updateValue(){this.value=this.controls.filter(v=>v.enabled||this.disabled).map(v=>v.value)}_anyControls(v){return this.controls.some(b=>b.enabled&&v(b))}_setUpControls(){this._forEachChild(v=>this._registerControl(v))}_checkAllValuesPresent(v){this._forEachChild((b,U)=>{if(void 0===v[U])throw new Error(`Must supply a value for form control at index: ${U}.`)})}_allControlsDisabled(){for(const v of this.controls)if(v.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(v){v.setParent(this),v._registerOnCollectionChange(this._onCollectionChange)}}const ee={provide:Fe,useExisting:(0,o.forwardRef)(()=>ye)},Y=(()=>Promise.resolve(null))();let ye=(()=>{class m extends Fe{constructor(b,U){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new o.EventEmitter,this.form=new ht({},tt(b),It(U))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(b){Y.then(()=>{const U=this._findContainer(b.path);b.control=U.registerControl(b.name,b.control),xt(b.control,b),b.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(b)})}getControl(b){return this.form.get(b.path)}removeControl(b){Y.then(()=>{const U=this._findContainer(b.path);U&&U.removeControl(b.name),re(this._directives,b)})}addFormGroup(b){Y.then(()=>{const U=this._findContainer(b.path),Qe=new ht({});V(Qe,b),U.registerControl(b.name,Qe),Qe.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(b){Y.then(()=>{const U=this._findContainer(b.path);U&&U.removeControl(b.name)})}getFormGroup(b){return this.form.get(b.path)}updateModel(b,U){Y.then(()=>{this.form.get(b.path).setValue(U)})}setValue(b){this.control.setValue(b)}onSubmit(b){return this.submitted=!0,J(this.form,this._directives),this.ngSubmit.emit(b),!1}onReset(){this.resetForm()}resetForm(b){this.form.reset(b),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(b){return b.pop(),b.length?this.form.get(b):this.form}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(ce,10),o.\u0275\u0275directiveInject(be,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("submit",function(St){return U.onSubmit(St)})("reset",function(){return U.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o.\u0275\u0275ProvidersFeature([ee]),o.\u0275\u0275InheritDefinitionFeature]}),m})(),Ke=(()=>{class m extends Fe{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Et(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,features:[o.\u0275\u0275InheritDefinitionFeature]}),m})();const pe={provide:Fe,useExisting:(0,o.forwardRef)(()=>Ve)};let Ve=(()=>{class m extends Ke{constructor(b,U,Qe){super(),this._parent=b,this._setValidators(U),this._setAsyncValidators(Qe)}_checkParentType(){}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(Fe,5),o.\u0275\u0275directiveInject(ce,10),o.\u0275\u0275directiveInject(be,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[o.\u0275\u0275ProvidersFeature([pe]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const at={provide:st,useExisting:(0,o.forwardRef)(()=>qt)},$t=(()=>Promise.resolve(null))();let qt=(()=>{class m extends st{constructor(b,U,Qe,St){super(),this.control=new nt,this._registered=!1,this.update=new o.EventEmitter,this._parent=b,this._setValidators(U),this._setAsyncValidators(Qe),this.valueAccessor=N(0,St)}ngOnChanges(b){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in b&&this._updateDisabled(b),Ee(b,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Et(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(b){this.viewModel=b,this.update.emit(b)}_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(){xt(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(b){$t.then(()=>{this.control.setValue(b,{emitViewToModelChange:!1})})}_updateDisabled(b){const U=b.isDisabled.currentValue,Qe=""===U||U&&"false"!==U;$t.then(()=>{Qe&&!this.control.disabled?this.control.disable():!Qe&&this.control.disabled&&this.control.enable()})}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(Fe,9),o.\u0275\u0275directiveInject(ce,10),o.\u0275\u0275directiveInject(be,10),o.\u0275\u0275directiveInject(D,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[o.\u0275\u0275ProvidersFeature([at]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m})(),Wt=(()=>{class m{}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),m})();const Mn={provide:D,useExisting:(0,o.forwardRef)(()=>gi),multi:!0};let gi=(()=>{class m extends w{writeValue(b){this.setProperty("value",null==b?"":b)}registerOnChange(b){this.onChange=U=>{b(""==U?null:parseFloat(U))}}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("input",function(St){return U.onChange(St.target.value)})("blur",function(){return U.onTouched()})},features:[o.\u0275\u0275ProvidersFeature([Mn]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const bi={provide:D,useExisting:(0,o.forwardRef)(()=>ei),multi:!0};let qn=(()=>{class m{}return m.\u0275fac=function(b){return new(b||m)},m.\u0275mod=o.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=o.\u0275\u0275defineInjector({}),m})(),_i=(()=>{class m{constructor(){this._accessors=[]}add(b,U){this._accessors.push([b,U])}remove(b){for(let U=this._accessors.length-1;U>=0;--U)if(this._accessors[U][1]===b)return void this._accessors.splice(U,1)}select(b){this._accessors.forEach(U=>{this._isSameGroup(U,b)&&U[1]!==b&&U[1].fireUncheck(b.value)})}_isSameGroup(b,U){return!!b[0].control&&b[0]._parent===U._control._parent&&b[1].name===U.name}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:function(){return new m},token:m,providedIn:qn}),m})(),ei=(()=>{class m extends w{constructor(b,U,Qe,St){super(b,U),this._registry=Qe,this._injector=St,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(st),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(b){this._state=b===this.value,this.setProperty("checked",this._state)}registerOnChange(b){this._fn=b,this.onChange=()=>{b(this.value),this._registry.select(this)}}fireUncheck(b){this.writeValue(b)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(_i),o.\u0275\u0275directiveInject(o.Injector))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("change",function(){return U.onChange()})("blur",function(){return U.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[o.\u0275\u0275ProvidersFeature([bi]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const xn={provide:D,useExisting:(0,o.forwardRef)(()=>Xi),multi:!0};let Xi=(()=>{class m extends w{writeValue(b){this.setProperty("value",parseFloat(b))}registerOnChange(b){this.onChange=U=>{b(""==U?null:parseFloat(U))}}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("change",function(St){return U.onChange(St.target.value)})("input",function(St){return U.onChange(St.target.value)})("blur",function(){return U.onTouched()})},features:[o.\u0275\u0275ProvidersFeature([xn]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const ti=new o.InjectionToken("NgModelWithFormControlWarning"),Cn={provide:st,useExisting:(0,o.forwardRef)(()=>Ci)};let Ci=(()=>{class m extends st{constructor(b,U,Qe,St){super(),this._ngModelWarningConfig=St,this.update=new o.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(b),this._setAsyncValidators(U),this.valueAccessor=N(0,Qe)}set isDisabled(b){}ngOnChanges(b){if(this._isControlChanged(b)){const U=b.form.previousValue;U&&Nt(U,this,!1),xt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ee(b,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Nt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(b){this.viewModel=b,this.update.emit(b)}_isControlChanged(b){return b.hasOwnProperty("form")}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(ce,10),o.\u0275\u0275directiveInject(be,10),o.\u0275\u0275directiveInject(D,10),o.\u0275\u0275directiveInject(ti,8))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[o.\u0275\u0275ProvidersFeature([Cn]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m._ngModelWarningSentOnce=!1,m})();const ci={provide:Fe,useExisting:(0,o.forwardRef)(()=>ui)};let ui=(()=>{class m extends Fe{constructor(b,U){super(),this.validators=b,this.asyncValidators=U,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new o.EventEmitter,this._setValidators(b),this._setAsyncValidators(U)}ngOnChanges(b){this._checkFormPresent(),b.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Lt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(b){const U=this.form.get(b.path);return xt(U,b),U.updateValueAndValidity({emitEvent:!1}),this.directives.push(b),U}getControl(b){return this.form.get(b.path)}removeControl(b){Nt(b.control||null,b,!1),re(this.directives,b)}addFormGroup(b){this._setUpFormContainer(b)}removeFormGroup(b){this._cleanUpFormContainer(b)}getFormGroup(b){return this.form.get(b.path)}addFormArray(b){this._setUpFormContainer(b)}removeFormArray(b){this._cleanUpFormContainer(b)}getFormArray(b){return this.form.get(b.path)}updateModel(b,U){this.form.get(b.path).setValue(U)}onSubmit(b){return this.submitted=!0,J(this.form,this.directives),this.ngSubmit.emit(b),!1}onReset(){this.resetForm()}resetForm(b){this.form.reset(b),this.submitted=!1}_updateDomValue(){this.directives.forEach(b=>{const U=b.control,Qe=this.form.get(b.path);U!==Qe&&(Nt(U||null,b),Qe instanceof nt&&(xt(Qe,b),b.control=Qe))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(b){const U=this.form.get(b.path);V(U,b),U.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(b){if(this.form){const U=this.form.get(b.path);U&&function(m,v){return Lt(m,v)}(U,b)&&U.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){At(this.form,this),this._oldForm&&Lt(this._oldForm,this)}_checkFormPresent(){}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(ce,10),o.\u0275\u0275directiveInject(be,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formGroup",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("submit",function(St){return U.onSubmit(St)})("reset",function(){return U.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o.\u0275\u0275ProvidersFeature([ci]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m})();const ni={provide:Fe,useExisting:(0,o.forwardRef)(()=>Un)};let Un=(()=>{class m extends Ke{constructor(b,U,Qe){super(),this._parent=b,this._setValidators(U),this._setAsyncValidators(Qe)}_checkParentType(){qr(this._parent)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(Fe,13),o.\u0275\u0275directiveInject(ce,10),o.\u0275\u0275directiveInject(be,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[o.\u0275\u0275ProvidersFeature([ni]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const kr={provide:Fe,useExisting:(0,o.forwardRef)(()=>mr)};let mr=(()=>{class m extends Fe{constructor(b,U,Qe){super(),this._parent=b,this._setValidators(U),this._setAsyncValidators(Qe)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Et(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){qr(this._parent)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(Fe,13),o.\u0275\u0275directiveInject(ce,10),o.\u0275\u0275directiveInject(be,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[o.\u0275\u0275ProvidersFeature([kr]),o.\u0275\u0275InheritDefinitionFeature]}),m})();function qr(m){return!(m instanceof Un||m instanceof ui||m instanceof mr)}const gr={provide:st,useExisting:(0,o.forwardRef)(()=>Fr)};let Fr=(()=>{class m extends st{constructor(b,U,Qe,St,Zt){super(),this._ngModelWarningConfig=Zt,this._added=!1,this.update=new o.EventEmitter,this._ngModelWarningSent=!1,this._parent=b,this._setValidators(U),this._setAsyncValidators(Qe),this.valueAccessor=N(0,St)}set isDisabled(b){}ngOnChanges(b){this._added||this._setUpControl(),Ee(b,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(b){this.viewModel=b,this.update.emit(b)}get path(){return Et(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 m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(Fe,13),o.\u0275\u0275directiveInject(ce,10),o.\u0275\u0275directiveInject(be,10),o.\u0275\u0275directiveInject(D,10),o.\u0275\u0275directiveInject(ti,8))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[o.\u0275\u0275ProvidersFeature([gr]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m._ngModelWarningSentOnce=!1,m})();const Nr={provide:D,useExisting:(0,o.forwardRef)(()=>Di),multi:!0};function eo(m,v){return null==m?`${v}`:(v&&"object"==typeof v&&(v="Object"),`${m}: ${v}`.slice(0,50))}let Di=(()=>{class m extends w{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(b){this._compareWith=b}writeValue(b){this.value=b;const U=this._getOptionId(b);null==U&&this.setProperty("selectedIndex",-1);const Qe=eo(U,b);this.setProperty("value",Qe)}registerOnChange(b){this.onChange=U=>{this.value=this._getOptionValue(U),b(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(b){for(const U of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(U),b))return U;return null}_getOptionValue(b){const U=function(m){return m.split(":")[0]}(b);return this._optionMap.has(U)?this._optionMap.get(U):b}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("change",function(St){return U.onChange(St.target.value)})("blur",function(){return U.onTouched()})},inputs:{compareWith:"compareWith"},features:[o.\u0275\u0275ProvidersFeature([Nr]),o.\u0275\u0275InheritDefinitionFeature]}),m})(),po=(()=>{class m{constructor(b,U,Qe){this._element=b,this._renderer=U,this._select=Qe,this._select&&(this.id=this._select._registerOption())}set ngValue(b){null!=this._select&&(this._select._optionMap.set(this.id,b),this._setElementValue(eo(this.id,b)),this._select.writeValue(this._select.value))}set value(b){this._setElementValue(b),this._select&&this._select.writeValue(this._select.value)}_setElementValue(b){this._renderer.setProperty(this._element.nativeElement,"value",b)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(Di,9))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),m})();const ii={provide:D,useExisting:(0,o.forwardRef)(()=>_r),multi:!0};function Ti(m,v){return null==m?`${v}`:("string"==typeof v&&(v=`'${v}'`),v&&"object"==typeof v&&(v="Object"),`${m}: ${v}`.slice(0,50))}let _r=(()=>{class m extends w{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(b){this._compareWith=b}writeValue(b){let U;if(this.value=b,Array.isArray(b)){const Qe=b.map(St=>this._getOptionId(St));U=(St,Zt)=>{St._setSelected(Qe.indexOf(Zt.toString())>-1)}}else U=(Qe,St)=>{Qe._setSelected(!1)};this._optionMap.forEach(U)}registerOnChange(b){this.onChange=U=>{const Qe=[];if(void 0!==U.selectedOptions){const St=U.selectedOptions;for(let Zt=0;Zt<St.length;Zt++){const fn=St.item(Zt),rn=this._getOptionValue(fn.value);Qe.push(rn)}}else{const St=U.options;for(let Zt=0;Zt<St.length;Zt++){const fn=St.item(Zt);if(fn.selected){const rn=this._getOptionValue(fn.value);Qe.push(rn)}}}this.value=Qe,b(Qe)}}_registerOption(b){const U=(this._idCounter++).toString();return this._optionMap.set(U,b),U}_getOptionId(b){for(const U of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(U)._value,b))return U;return null}_getOptionValue(b){const U=function(m){return m.split(":")[0]}(b);return this._optionMap.has(U)?this._optionMap.get(U)._value:b}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("change",function(St){return U.onChange(St.target)})("blur",function(){return U.onTouched()})},inputs:{compareWith:"compareWith"},features:[o.\u0275\u0275ProvidersFeature([ii]),o.\u0275\u0275InheritDefinitionFeature]}),m})(),Lr=(()=>{class m{constructor(b,U,Qe){this._element=b,this._renderer=U,this._select=Qe,this._select&&(this.id=this._select._registerOption(this))}set ngValue(b){null!=this._select&&(this._value=b,this._setElementValue(Ti(this.id,b)),this._select.writeValue(this._select.value))}set value(b){this._select?(this._value=b,this._setElementValue(Ti(this.id,b)),this._select.writeValue(this._select.value)):this._setElementValue(b)}_setElementValue(b){this._renderer.setProperty(this._element.nativeElement,"value",b)}_setSelected(b){this._renderer.setProperty(this._element.nativeElement,"selected",b)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(_r,9))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),m})();function jr(m){return"number"==typeof m?m:parseInt(m,10)}let wi=(()=>{class m{constructor(){this._validator=X}handleChanges(b){if(this.inputName in b){const U=this.normalizeInput(b[this.inputName].currentValue);this._validator=this.createValidator(U),this._onChange&&this._onChange()}}validate(b){return this._validator(b)}registerOnValidatorChange(b){this._onChange=b}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m}),m})();const Li={provide:ce,useExisting:(0,o.forwardRef)(()=>Br),multi:!0};let Br=(()=>{class m extends wi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=b=>parseFloat(b),this.createValidator=b=>Me(b)}ngOnChanges(b){this.handleChanges(b)}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(b,U){if(2&b){let Qe;o.\u0275\u0275attribute("max",null!==(Qe=U.max)&&void 0!==Qe?Qe:null)}},inputs:{max:"max"},features:[o.\u0275\u0275ProvidersFeature([Li]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m})();const qi={provide:ce,useExisting:(0,o.forwardRef)(()=>yr),multi:!0};let yr=(()=>{class m extends wi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=b=>parseFloat(b),this.createValidator=b=>Je(b)}ngOnChanges(b){this.handleChanges(b)}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(b,U){if(2&b){let Qe;o.\u0275\u0275attribute("min",null!==(Qe=U.min)&&void 0!==Qe?Qe:null)}},inputs:{min:"min"},features:[o.\u0275\u0275ProvidersFeature([qi]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m})();const yi={provide:ce,useExisting:(0,o.forwardRef)(()=>Mi),multi:!0},er={provide:ce,useExisting:(0,o.forwardRef)(()=>ji),multi:!0};let Mi=(()=>{class m{constructor(){this._required=!1}get required(){return this._required}set required(b){this._required=null!=b&&!1!==b&&"false"!=`${b}`,this._onChange&&this._onChange()}validate(b){return this.required?xe(b):null}registerOnValidatorChange(b){this._onChange=b}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(b,U){2&b&&o.\u0275\u0275attribute("required",U.required?"":null)},inputs:{required:"required"},features:[o.\u0275\u0275ProvidersFeature([yi])]}),m})(),ji=(()=>{class m extends Mi{validate(b){return this.required?Pe(b):null}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(b,U){2&b&&o.\u0275\u0275attribute("required",U.required?"":null)},features:[o.\u0275\u0275ProvidersFeature([er]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const Vr={provide:ce,useExisting:(0,o.forwardRef)(()=>tr),multi:!0};let tr=(()=>{class m{constructor(){this._enabled=!1}set email(b){this._enabled=""===b||!0===b||"true"===b,this._onChange&&this._onChange()}validate(b){return this._enabled?Ne(b):null}registerOnValidatorChange(b){this._onChange=b}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[o.\u0275\u0275ProvidersFeature([Vr])]}),m})();const vr={provide:ce,useExisting:(0,o.forwardRef)(()=>br),multi:!0};let br=(()=>{class m{constructor(){this._validator=X}ngOnChanges(b){"minlength"in b&&(this._createValidator(),this._onChange&&this._onChange())}validate(b){return this.enabled()?this._validator(b):null}registerOnValidatorChange(b){this._onChange=b}_createValidator(){this._validator=this.enabled()?Ct(jr(this.minlength)):X}enabled(){return null!=this.minlength}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(b,U){2&b&&o.\u0275\u0275attribute("minlength",U.enabled()?U.minlength:null)},inputs:{minlength:"minlength"},features:[o.\u0275\u0275ProvidersFeature([vr]),o.\u0275\u0275NgOnChangesFeature]}),m})();const Hr={provide:ce,useExisting:(0,o.forwardRef)(()=>Si),multi:!0};let Si=(()=>{class m{constructor(){this._validator=X}ngOnChanges(b){"maxlength"in b&&(this._createValidator(),this._onChange&&this._onChange())}validate(b){return this.enabled()?this._validator(b):null}registerOnValidatorChange(b){this._onChange=b}_createValidator(){this._validator=this.enabled()?te(jr(this.maxlength)):X}enabled(){return null!=this.maxlength}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(b,U){2&b&&o.\u0275\u0275attribute("maxlength",U.enabled()?U.maxlength:null)},inputs:{maxlength:"maxlength"},features:[o.\u0275\u0275ProvidersFeature([Hr]),o.\u0275\u0275NgOnChangesFeature]}),m})();const $r={provide:ce,useExisting:(0,o.forwardRef)(()=>Rn),multi:!0};let Rn=(()=>{class m{constructor(){this._validator=X}ngOnChanges(b){"pattern"in b&&(this._createValidator(),this._onChange&&this._onChange())}validate(b){return this._validator(b)}registerOnValidatorChange(b){this._onChange=b}_createValidator(){this._validator=ge(this.pattern)}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(b,U){2&b&&o.\u0275\u0275attribute("pattern",U.pattern?U.pattern:null)},inputs:{pattern:"pattern"},features:[o.\u0275\u0275ProvidersFeature([$r]),o.\u0275\u0275NgOnChangesFeature]}),m})();const Cr=[Wt,po,Lr,B,gi,Xi,E,Di,_r,ei,He,q,Mi,br,Si,Rn,ji,tr,yr,Br],no=[qt,Ve,ye],Er=[Ci,ui,Fr,Un,mr];let Dr=(()=>{class m{}return m.\u0275fac=function(b){return new(b||m)},m.\u0275mod=o.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=o.\u0275\u0275defineInjector({imports:[[qn]]}),m})(),Tr=(()=>{class m{}return m.\u0275fac=function(b){return new(b||m)},m.\u0275mod=o.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=o.\u0275\u0275defineInjector({imports:[Dr]}),m})(),go=(()=>{class m{static withConfig(b){return{ngModule:m,providers:[{provide:ti,useValue:b.warnOnNgModelWithFormControl}]}}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275mod=o.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=o.\u0275\u0275defineInjector({imports:[Dr]}),m})(),ne=(()=>{class m{group(b,U=null){const Qe=this._reduceControls(b);let fn,St=null,Zt=null;return null!=U&&(function(m){return void 0!==m.asyncValidators||void 0!==m.validators||void 0!==m.updateOn}(U)?(St=null!=U.validators?U.validators:null,Zt=null!=U.asyncValidators?U.asyncValidators:null,fn=null!=U.updateOn?U.updateOn:void 0):(St=null!=U.validator?U.validator:null,Zt=null!=U.asyncValidator?U.asyncValidator:null)),new ht(Qe,{asyncValidators:Zt,updateOn:fn,validators:St})}control(b,U,Qe){return new nt(b,U,Qe)}array(b,U,Qe){const St=b.map(Zt=>this._createControl(Zt));return new Rt(St,U,Qe)}_reduceControls(b){const U={};return Object.keys(b).forEach(Qe=>{U[Qe]=this._createControl(b[Qe])}),U}_createControl(b){return b instanceof nt||b instanceof ht||b instanceof Rt?b:Array.isArray(b)?this.control(b[0],b.length>1?b[1]:null,b.length>2?b[2]:null):this.control(b)}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:function(){return new m},token:m,providedIn:go}),m})();const k=new o.Version("12.2.13")},1095:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{MatAnchor:()=>S,MatButton:()=>M,MatButtonModule:()=>P});var o=d(2458),l=d(6237),f=d(7716),_=d(9238);const a=["mat-button",""],C=["*"],w=".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;-ms-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;-ms-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;-ms-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;-ms-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",g=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],E=(0,o.pj)((0,o.Id)((0,o.Kr)(class{constructor(B){this._elementRef=B}})));let M=(()=>{class B extends E{constructor(se,ce,be){super(se),this._focusMonitor=ce,this._animationMode=be,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Ue of g)this._hasHostAttributes(Ue)&&this._getHostElement().classList.add(Ue);se.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(se,ce){se?this._focusMonitor.focusVia(this._getHostElement(),se,ce):this._getHostElement().focus(ce)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...se){return se.some(ce=>this._getHostElement().hasAttribute(ce))}}return B.\u0275fac=function(se){return new(se||B)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(_.tE),f.\u0275\u0275directiveInject(l.ANIMATION_MODULE_TYPE,8))},B.\u0275cmp=f.\u0275\u0275defineComponent({type:B,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(se,ce){if(1&se&&f.\u0275\u0275viewQuery(o.wG,5),2&se){let be;f.\u0275\u0275queryRefresh(be=f.\u0275\u0275loadQuery())&&(ce.ripple=be.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(se,ce){2&se&&(f.\u0275\u0275attribute("disabled",ce.disabled||null),f.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===ce._animationMode)("mat-button-disabled",ce.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[f.\u0275\u0275InheritDefinitionFeature],attrs:a,ngContentSelectors:C,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(se,ce){1&se&&(f.\u0275\u0275projectionDef(),f.\u0275\u0275elementStart(0,"span",0),f.\u0275\u0275projection(1),f.\u0275\u0275elementEnd(),f.\u0275\u0275element(2,"span",1),f.\u0275\u0275element(3,"span",2)),2&se&&(f.\u0275\u0275advance(2),f.\u0275\u0275classProp("mat-button-ripple-round",ce.isRoundButton||ce.isIconButton),f.\u0275\u0275property("matRippleDisabled",ce._isRippleDisabled())("matRippleCentered",ce.isIconButton)("matRippleTrigger",ce._getHostElement()))},directives:[o.wG],styles:[w],encapsulation:2,changeDetection:0}),B})(),S=(()=>{class B extends M{constructor(se,ce,be){super(ce,se,be)}_haltDisabledEvents(se){this.disabled&&(se.preventDefault(),se.stopImmediatePropagation())}}return B.\u0275fac=function(se){return new(se||B)(f.\u0275\u0275directiveInject(_.tE),f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(l.ANIMATION_MODULE_TYPE,8))},B.\u0275cmp=f.\u0275\u0275defineComponent({type:B,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(se,ce){1&se&&f.\u0275\u0275listener("click",function(Ue){return ce._haltDisabledEvents(Ue)}),2&se&&(f.\u0275\u0275attribute("tabindex",ce.disabled?-1:ce.tabIndex||0)("disabled",ce.disabled||null)("aria-disabled",ce.disabled.toString()),f.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===ce._animationMode)("mat-button-disabled",ce.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[f.\u0275\u0275InheritDefinitionFeature],attrs:a,ngContentSelectors:C,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(se,ce){1&se&&(f.\u0275\u0275projectionDef(),f.\u0275\u0275elementStart(0,"span",0),f.\u0275\u0275projection(1),f.\u0275\u0275elementEnd(),f.\u0275\u0275element(2,"span",1),f.\u0275\u0275element(3,"span",2)),2&se&&(f.\u0275\u0275advance(2),f.\u0275\u0275classProp("mat-button-ripple-round",ce.isRoundButton||ce.isIconButton),f.\u0275\u0275property("matRippleDisabled",ce._isRippleDisabled())("matRippleCentered",ce.isIconButton)("matRippleTrigger",ce._getHostElement()))},directives:[o.wG],styles:[w],encapsulation:2,changeDetection:0}),B})(),P=(()=>{class B{}return B.\u0275fac=function(se){return new(se||B)},B.\u0275mod=f.\u0275\u0275defineNgModule({type:B}),B.\u0275inj=f.\u0275\u0275defineInjector({imports:[[o.si,o.BQ],o.BQ]}),B})()},2675:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{MAT_CHIPS_DEFAULT_OPTIONS:()=>Lt,MAT_CHIP_AVATAR:()=>Be,MAT_CHIP_REMOVE:()=>ie,MAT_CHIP_TRAILING_ICON:()=>gt,MatChip:()=>Qt,MatChipAvatar:()=>Nt,MatChipInput:()=>K,MatChipList:()=>Pt,MatChipListChange:()=>qe,MatChipRemove:()=>At,MatChipSelectionChange:()=>z,MatChipTrailingIcon:()=>Ut,MatChipsModule:()=>Ee,\u02750:()=>De});var o=d(6461),l=d(7716),f=d(2458),_=d(9490),a=d(8583),C=d(6237),w=d(9765),D=d(6682),g=d(5257),E=d(6782),M=d(9761),S=d(9238),P=d(8345),ce=(d(8553),d(2759),d(7238),d(946)),be=d(521);let Xe=(()=>{class Q{}return Q.\u0275fac=function(N){return new(N||Q)},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q}),Q})();var R=d(3679);const he=["*"];class z{constructor(J,N,re=!1){this.source=J,this.selected=N,this.isUserInput=re}}const ie=new l.InjectionToken("MatChipRemove"),Be=new l.InjectionToken("MatChipAvatar"),gt=new l.InjectionToken("MatChipTrailingIcon");class Et{constructor(J){this._elementRef=J}}const xt=(0,f.sb)((0,f.pj)((0,f.Kr)(Et),"primary"),-1);let Nt=(()=>{class Q{}return Q.\u0275fac=function(N){return new(N||Q)},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[l.\u0275\u0275ProvidersFeature([{provide:Be,useExisting:Q}])]}),Q})(),Ut=(()=>{class Q{}return Q.\u0275fac=function(N){return new(N||Q)},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[l.\u0275\u0275ProvidersFeature([{provide:gt,useExisting:Q}])]}),Q})(),Qt=(()=>{class Q extends xt{constructor(N,re,ot,_t,Ht,dn,cn,an){super(N),this._ngZone=re,this._changeDetectorRef=Ht,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 w.xQ,this._onBlur=new w.xQ,this.selectionChange=new l.EventEmitter,this.destroyed=new l.EventEmitter,this.removed=new l.EventEmitter,this._addHostClassName(),this._chipRippleTarget=dn.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new f.IR(this,re,this._chipRippleTarget,ot),this._chipRipple.setupTriggerEvents(N),this.rippleConfig=_t||{},this._animationsDisabled="NoopAnimations"===cn,this.tabIndex=null!=an&&parseInt(an)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(N){const re=(0,_.Ig)(N);re!==this._selected&&(this._selected=re,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(N){this._value=N}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(N){this._selectable=(0,_.Ig)(N)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(N){this._disabled=(0,_.Ig)(N)}get removable(){return this._removable}set removable(N){this._removable=(0,_.Ig)(N)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const N="mat-basic-chip",re=this._elementRef.nativeElement;re.hasAttribute(N)||re.tagName.toLowerCase()===N?re.classList.add(N):re.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(N=!1){return this._selected=!this.selected,this._dispatchSelectionChange(N),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(N){this.disabled?N.preventDefault():N.stopPropagation()}_handleKeydown(N){if(!this.disabled)switch(N.keyCode){case o.yY:case o.ZH:this.remove(),N.preventDefault();break;case o.L_:this.selectable&&this.toggleSelected(!0),N.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(N=!1){this.selectionChange.emit({source:this,isUserInput:N,selected:this._selected})}}return Q.\u0275fac=function(N){return new(N||Q)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.NgZone),l.\u0275\u0275directiveInject(be.t4),l.\u0275\u0275directiveInject(f.Y2,8),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(a.DOCUMENT),l.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8),l.\u0275\u0275injectAttribute("tabindex"))},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(N,re,ot){if(1&N&&(l.\u0275\u0275contentQuery(ot,Be,5),l.\u0275\u0275contentQuery(ot,gt,5),l.\u0275\u0275contentQuery(ot,ie,5)),2&N){let _t;l.\u0275\u0275queryRefresh(_t=l.\u0275\u0275loadQuery())&&(re.avatar=_t.first),l.\u0275\u0275queryRefresh(_t=l.\u0275\u0275loadQuery())&&(re.trailingIcon=_t.first),l.\u0275\u0275queryRefresh(_t=l.\u0275\u0275loadQuery())&&(re.removeIcon=_t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(N,re){1&N&&l.\u0275\u0275listener("click",function(_t){return re._handleClick(_t)})("keydown",function(_t){return re._handleKeydown(_t)})("focus",function(){return re.focus()})("blur",function(){return re._blur()}),2&N&&(l.\u0275\u0275attribute("tabindex",re.disabled?null:re.tabIndex)("disabled",re.disabled||null)("aria-disabled",re.disabled.toString())("aria-selected",re.ariaSelected),l.\u0275\u0275classProp("mat-chip-selected",re.selected)("mat-chip-with-avatar",re.avatar)("mat-chip-with-trailing-icon",re.trailingIcon||re.removeIcon)("mat-chip-disabled",re.disabled)("_mat-animation-noopable",re._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:[l.\u0275\u0275InheritDefinitionFeature]}),Q})(),At=(()=>{class Q{constructor(N,re){this._parentChip=N,"BUTTON"===re.nativeElement.nodeName&&re.nativeElement.setAttribute("type","button")}_handleClick(N){const re=this._parentChip;re.removable&&!re.disabled&&re.remove(),N.stopPropagation()}}return Q.\u0275fac=function(N){return new(N||Q)(l.\u0275\u0275directiveInject(Qt),l.\u0275\u0275directiveInject(l.ElementRef))},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(N,re){1&N&&l.\u0275\u0275listener("click",function(_t){return re._handleClick(_t)})},features:[l.\u0275\u0275ProvidersFeature([{provide:ie,useExisting:Q}])]}),Q})();const Lt=new l.InjectionToken("mat-chips-default-options"),jt=(0,f.FD)(class{constructor(Q,J,N,re){this._defaultErrorStateMatcher=Q,this._parentForm=J,this._parentFormGroup=N,this.ngControl=re}});let _n=0;class qe{constructor(J,N){this.source=J,this.value=N}}let Pt=(()=>{class Q extends jt{constructor(N,re,ot,_t,Ht,dn,cn){super(dn,_t,Ht,cn),this._elementRef=N,this._changeDetectorRef=re,this._dir=ot,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new w.xQ,this._uid="mat-chip-list-"+_n++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(an,un)=>an===un,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new l.EventEmitter,this.valueChange=new l.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var N,re;return this.multiple?(null===(N=this._selectionModel)||void 0===N?void 0:N.selected)||[]:null===(re=this._selectionModel)||void 0===re?void 0:re.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(N){this._multiple=(0,_.Ig)(N),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(N){this._compareWith=N,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(N){this.writeValue(N),this._value=N}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(N){this._required=(0,_.Ig)(N),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(N){this._placeholder=N,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(N){this._disabled=(0,_.Ig)(N),this._syncChipsState()}get selectable(){return this._selectable}set selectable(N){this._selectable=(0,_.Ig)(N),this.chips&&this.chips.forEach(re=>re.chipListSelectable=this._selectable)}set tabIndex(N){this._userTabIndex=N,this._tabIndex=N}get chipSelectionChanges(){return(0,D.T)(...this.chips.map(N=>N.selectionChange))}get chipFocusChanges(){return(0,D.T)(...this.chips.map(N=>N._onFocus))}get chipBlurChanges(){return(0,D.T)(...this.chips.map(N=>N._onBlur))}get chipRemoveChanges(){return(0,D.T)(...this.chips.map(N=>N.destroyed))}ngAfterContentInit(){this._keyManager=new S.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,E.R)(this._destroyed)).subscribe(N=>this._keyManager.withHorizontalOrientation(N)),this._keyManager.tabOut.pipe((0,E.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,M.O)(null),(0,E.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 P.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(N){this._chipInput=N,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",N.id)}setDescribedByIds(N){this._ariaDescribedby=N.join(" ")}writeValue(N){this.chips&&this._setSelectionByValue(N,!1)}registerOnChange(N){this._onChange=N}registerOnTouched(N){this._onTouched=N}setDisabledState(N){this.disabled=N,this.stateChanges.next()}onContainerClick(N){this._originatesFromChip(N)||this.focus()}focus(N){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(N),this.stateChanges.next()))}_focusInput(N){this._chipInput&&this._chipInput.focus(N)}_keydown(N){const re=N.target;re&&re.classList.contains("mat-chip")&&(this._keyManager.onKeydown(N),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const N=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(N)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(N){return N>=0&&N<this.chips.length}_setSelectionByValue(N,re=!0){if(this._clearSelection(),this.chips.forEach(ot=>ot.deselect()),Array.isArray(N))N.forEach(ot=>this._selectValue(ot,re)),this._sortValues();else{const ot=this._selectValue(N,re);ot&&re&&this._keyManager.setActiveItem(ot)}}_selectValue(N,re=!0){const ot=this.chips.find(_t=>null!=_t.value&&this._compareWith(_t.value,N));return ot&&(re?ot.selectViaInteraction():ot.select(),this._selectionModel.select(ot)),ot}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(N){this._selectionModel.clear(),this.chips.forEach(re=>{re!==N&&re.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(N=>{N.selected&&this._selectionModel.select(N)}),this.stateChanges.next())}_propagateChanges(N){let re=null;re=Array.isArray(this.selected)?this.selected.map(ot=>ot.value):this.selected?this.selected.value:N,this._value=re,this.change.emit(new qe(this,re)),this.valueChange.emit(re),this._onChange(re),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(N=>{N.source.selected?this._selectionModel.select(N.source):this._selectionModel.deselect(N.source),this.multiple||this.chips.forEach(re=>{!this._selectionModel.isSelected(re)&&re.selected&&re.deselect()}),N.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(N=>{let re=this.chips.toArray().indexOf(N.chip);this._isValidIndex(re)&&this._keyManager.updateActiveItem(re),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(N=>{const re=N.chip,ot=this.chips.toArray().indexOf(N.chip);this._isValidIndex(ot)&&re._hasFocus&&(this._lastDestroyedChipIndex=ot)})}_originatesFromChip(N){let re=N.target;for(;re&&re!==this._elementRef.nativeElement;){if(re.classList.contains("mat-chip"))return!0;re=re.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(N=>N._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(N=>{N._chipListDisabled=this._disabled,N._chipListMultiple=this.multiple})}}return Q.\u0275fac=function(N){return new(N||Q)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(ce.Is,8),l.\u0275\u0275directiveInject(R.NgForm,8),l.\u0275\u0275directiveInject(R.FormGroupDirective,8),l.\u0275\u0275directiveInject(f.rD),l.\u0275\u0275directiveInject(R.NgControl,10))},Q.\u0275cmp=l.\u0275\u0275defineComponent({type:Q,selectors:[["mat-chip-list"]],contentQueries:function(N,re,ot){if(1&N&&l.\u0275\u0275contentQuery(ot,Qt,5),2&N){let _t;l.\u0275\u0275queryRefresh(_t=l.\u0275\u0275loadQuery())&&(re.chips=_t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(N,re){1&N&&l.\u0275\u0275listener("focus",function(){return re.focus()})("blur",function(){return re._blur()})("keydown",function(_t){return re._keydown(_t)}),2&N&&(l.\u0275\u0275hostProperty("id",re._uid),l.\u0275\u0275attribute("tabindex",re.disabled?null:re._tabIndex)("aria-describedby",re._ariaDescribedby||null)("aria-required",re.role?re.required:null)("aria-disabled",re.disabled.toString())("aria-invalid",re.errorState)("aria-multiselectable",re.multiple)("role",re.role)("aria-orientation",re.ariaOrientation),l.\u0275\u0275classProp("mat-chip-list-disabled",re.disabled)("mat-chip-list-invalid",re.errorState)("mat-chip-list-required",re.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[l.\u0275\u0275ProvidersFeature([{provide:Xe,useExisting:Q}]),l.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:he,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(N,re){1&N&&(l.\u0275\u0275projectionDef(),l.\u0275\u0275elementStart(0,"div",0),l.\u0275\u0275projection(1),l.\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}.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}),Q})(),V=0,K=(()=>{class Q{constructor(N,re){this._elementRef=N,this._defaultOptions=re,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new l.EventEmitter,this.placeholder="",this.id="mat-chip-list-input-"+V++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(N){N&&(this._chipList=N,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(N){this._addOnBlur=(0,_.Ig)(N)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(N){this._disabled=(0,_.Ig)(N)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(N){if(N){if(N.keyCode===o.Mf&&!(0,o.Vb)(N,"shiftKey")&&this._chipList._allowFocusEscape(),N.keyCode===o.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void N.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(N)}_keyup(N){!this._focusLastChipOnBackspace&&N.keyCode===o.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,N.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(N){!this.inputElement.value&&!!N&&this._chipList._keydown(N),(!N||this._isSeparatorKey(N))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==N||N.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(N){this.inputElement.focus(N)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(N){return!(0,o.Vb)(N)&&new Set(this.separatorKeyCodes).has(N.keyCode)}}return Q.\u0275fac=function(N){return new(N||Q)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(Lt))},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(N,re){1&N&&l.\u0275\u0275listener("keydown",function(_t){return re._keydown(_t)})("keyup",function(_t){return re._keyup(_t)})("blur",function(){return re._blur()})("focus",function(){return re._focus()})("input",function(){return re._onInput()}),2&N&&(l.\u0275\u0275hostProperty("id",re.id),l.\u0275\u0275attribute("disabled",re.disabled||null)("placeholder",re.placeholder||null)("aria-invalid",re._chipList&&re._chipList.ngControl?re._chipList.ngControl.invalid:null)("aria-required",re._chipList&&re._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[l.\u0275\u0275NgOnChangesFeature]}),Q})();const De={separatorKeyCodes:[o.K5]};let Ee=(()=>{class Q{}return Q.\u0275fac=function(N){return new(N||Q)},Q.\u0275mod=l.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=l.\u0275\u0275defineInjector({providers:[f.rD,{provide:Lt,useValue:De}],imports:[[f.BQ]]}),Q})()},2458:(Le,T,d)=>{"use strict";d.d(T,{rD:()=>ae,Y2:()=>F,BQ:()=>Me,wG:()=>R,si:()=>he,IR:()=>vt,pj:()=>Pe,Kr:()=>Ne,Id:()=>xe,FD:()=>te,sb:()=>Ct});var o=d(7716),l=d(9238),f=d(946);const _=new o.Version("12.2.13");var a=d(8583),C=d(521),w=d(9490),D=d(9765),g=d(6237);d(6461);const Ue=new o.Version("12.2.13"),Je=new o.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let $e,Me=(()=>{class V{constructor(W,De,Ee){this._hasDoneGlobalChecks=!1,this._document=Ee,W._applyBodyHighContrastModeCssClasses(),this._sanityChecks=De,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(W){return!(!(0,o.isDevMode)()||(0,C.Oy)())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[W])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const W=this._document.createElement("div");W.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(W);const De=getComputedStyle(W);De&&"none"!==De.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(W)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&Ue.full!==_.full&&console.warn("The Angular Material version ("+Ue.full+") does not match the Angular CDK version ("+_.full+").\nPlease ensure the versions of these two packages exactly match.")}}return V.\u0275fac=function(W){return new(W||V)(o.\u0275\u0275inject(l.qm),o.\u0275\u0275inject(Je,8),o.\u0275\u0275inject(a.DOCUMENT))},V.\u0275mod=o.\u0275\u0275defineNgModule({type:V}),V.\u0275inj=o.\u0275\u0275defineInjector({imports:[[f.vT],f.vT]}),V})();function xe(V){return class extends V{constructor(...K){super(...K),this._disabled=!1}get disabled(){return this._disabled}set disabled(K){this._disabled=(0,w.Ig)(K)}}}function Pe(V,K){return class extends V{constructor(...W){super(...W),this.defaultColor=K,this.color=K}get color(){return this._color}set color(W){const De=W||this.defaultColor;De!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),De&&this._elementRef.nativeElement.classList.add(`mat-${De}`),this._color=De)}}}function Ne(V){return class extends V{constructor(...K){super(...K),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(K){this._disableRipple=(0,w.Ig)(K)}}}function Ct(V,K=0){return class extends V{constructor(...W){super(...W),this._tabIndex=K,this.defaultTabIndex=K}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(W){this._tabIndex=null!=W?(0,w.su)(W):this.defaultTabIndex}}}function te(V){return class extends V{constructor(...K){super(...K),this.stateChanges=new D.xQ,this.errorState=!1}updateErrorState(){const K=this.errorState,Q=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Q!==K&&(this.errorState=Q,this.stateChanges.next())}}}try{$e="undefined"!=typeof Intl}catch(V){$e=!1}let ae=(()=>{class V{isErrorState(W,De){return!!(W&&W.invalid&&(W.touched||De&&De.submitted))}}return V.\u0275fac=function(W){return new(W||V)},V.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new V},token:V,providedIn:"root"}),V})();class Ze{constructor(K,W,De){this._renderer=K,this.element=W,this.config=De,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ze={enterDuration:225,exitDuration:150},q=(0,C.i$)({passive:!0}),Ge=["mousedown","touchstart"],ft=["mouseup","mouseleave","touchend","touchcancel"];class vt{constructor(K,W,De,Ee){this._target=K,this._ngZone=W,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,Ee.isBrowser&&(this._containerElement=(0,w.fI)(De))}fadeInRipple(K,W,De={}){const Ee=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Q=Object.assign(Object.assign({},ze),De.animation);De.centered&&(K=Ee.left+Ee.width/2,W=Ee.top+Ee.height/2);const J=De.radius||function(V,K,W){const De=Math.max(Math.abs(V-W.left),Math.abs(V-W.right)),Ee=Math.max(Math.abs(K-W.top),Math.abs(K-W.bottom));return Math.sqrt(De*De+Ee*Ee)}(K,W,Ee),N=K-Ee.left,re=W-Ee.top,ot=Q.enterDuration,_t=document.createElement("div");_t.classList.add("mat-ripple-element"),_t.style.left=N-J+"px",_t.style.top=re-J+"px",_t.style.height=2*J+"px",_t.style.width=2*J+"px",null!=De.color&&(_t.style.backgroundColor=De.color),_t.style.transitionDuration=`${ot}ms`,this._containerElement.appendChild(_t),window.getComputedStyle(_t).getPropertyValue("opacity"),_t.style.transform="scale(1)";const Ht=new Ze(this,_t,De);return Ht.state=0,this._activeRipples.add(Ht),De.persistent||(this._mostRecentTransientRipple=Ht),this._runTimeoutOutsideZone(()=>{const dn=Ht===this._mostRecentTransientRipple;Ht.state=1,!De.persistent&&(!dn||!this._isPointerDown)&&Ht.fadeOut()},ot),Ht}fadeOutRipple(K){const W=this._activeRipples.delete(K);if(K===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!W)return;const De=K.element,Ee=Object.assign(Object.assign({},ze),K.config.animation);De.style.transitionDuration=`${Ee.exitDuration}ms`,De.style.opacity="0",K.state=2,this._runTimeoutOutsideZone(()=>{K.state=3,De.parentNode.removeChild(De)},Ee.exitDuration)}fadeOutAll(){this._activeRipples.forEach(K=>K.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(K=>{K.config.persistent||K.fadeOut()})}setupTriggerEvents(K){const W=(0,w.fI)(K);!W||W===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=W,this._registerEvents(Ge))}handleEvent(K){"mousedown"===K.type?this._onMousedown(K):"touchstart"===K.type?this._onTouchStart(K):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ft),this._pointerUpEventsRegistered=!0)}_onMousedown(K){const W=(0,l.X6)(K),De=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!W&&!De&&(this._isPointerDown=!0,this.fadeInRipple(K.clientX,K.clientY,this._target.rippleConfig))}_onTouchStart(K){if(!this._target.rippleDisabled&&!(0,l.yG)(K)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const W=K.changedTouches;for(let De=0;De<W.length;De++)this.fadeInRipple(W[De].clientX,W[De].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(K=>{!K.config.persistent&&(1===K.state||K.config.terminateOnPointerUp&&0===K.state)&&K.fadeOut()}))}_runTimeoutOutsideZone(K,W=0){this._ngZone.runOutsideAngular(()=>setTimeout(K,W))}_registerEvents(K){this._ngZone.runOutsideAngular(()=>{K.forEach(W=>{this._triggerElement.addEventListener(W,this,q)})})}_removeTriggerEvents(){this._triggerElement&&(Ge.forEach(K=>{this._triggerElement.removeEventListener(K,this,q)}),this._pointerUpEventsRegistered&&ft.forEach(K=>{this._triggerElement.removeEventListener(K,this,q)}))}}const F=new o.InjectionToken("mat-ripple-global-options");let R=(()=>{class V{constructor(W,De,Ee,Q,J){this._elementRef=W,this._animationMode=J,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Q||{},this._rippleRenderer=new vt(this,De,W,Ee)}get disabled(){return this._disabled}set disabled(W){W&&this.fadeOutAllNonPersistent(),this._disabled=W,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(W){this._trigger=W,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(W,De=0,Ee){return"number"==typeof W?this._rippleRenderer.fadeInRipple(W,De,Object.assign(Object.assign({},this.rippleConfig),Ee)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),W))}}return V.\u0275fac=function(W){return new(W||V)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(C.t4),o.\u0275\u0275directiveInject(F,8),o.\u0275\u0275directiveInject(g.ANIMATION_MODULE_TYPE,8))},V.\u0275dir=o.\u0275\u0275defineDirective({type:V,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(W,De){2&W&&o.\u0275\u0275classProp("mat-ripple-unbounded",De.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),V})(),he=(()=>{class V{}return V.\u0275fac=function(W){return new(W||V)},V.\u0275mod=o.\u0275\u0275defineNgModule({type:V}),V.\u0275inj=o.\u0275\u0275defineInjector({imports:[[Me,C.ud],Me]}),V})()},2238:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{MAT_DIALOG_DATA:()=>Ct,MAT_DIALOG_DEFAULT_OPTIONS:()=>te,MAT_DIALOG_SCROLL_STRATEGY:()=>ge,MAT_DIALOG_SCROLL_STRATEGY_FACTORY:()=>X,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER:()=>Ae,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>le,MatDialog:()=>$e,MatDialogActions:()=>It,MatDialogClose:()=>je,MatDialogConfig:()=>be,MatDialogContainer:()=>Me,MatDialogContent:()=>ut,MatDialogModule:()=>dt,MatDialogRef:()=>Pe,MatDialogTitle:()=>tt,_MatDialogBase:()=>Ce,_MatDialogContainerBase:()=>Je,_closeDialogVia:()=>Ne,matDialogAnimations:()=>Ue,throwMatDialogContentAlreadyAttachedError:()=>lt});var o=d(625),l=d(7636),f=d(7716),_=d(2458),a=d(946),C=d(8583),w=d(9765),D=d(1439),g=d(5917),E=d(5435),M=d(5257),S=d(9761),P=d(521),B=d(7238),j=d(6461),se=d(9238);function ce($,oe){}class be{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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const Ue={dialogContainer:(0,B.X$)("dialogContainer",[(0,B.SB)("void, exit",(0,B.oB)({opacity:0,transform:"scale(0.7)"})),(0,B.SB)("enter",(0,B.oB)({transform:"none"})),(0,B.eR)("* => enter",(0,B.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,B.oB)({transform:"none",opacity:1}))),(0,B.eR)("* => void, * => exit",(0,B.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,B.oB)({opacity:0})))])};function lt(){throw Error("Attempting to attach dialog content after content is already attached")}let Je=(()=>{class $ extends l.en{constructor(L,ue,ae,fe,Fe,st){super(),this._elementRef=L,this._focusTrapFactory=ue,this._changeDetectorRef=ae,this._config=Fe,this._focusMonitor=st,this._animationStateChanged=new f.EventEmitter,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=wt=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(wt)),this._ariaLabelledBy=Fe.ariaLabelledBy||null,this._document=fe}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(L){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(L)}attachTemplatePortal(L){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(L)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const L=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&L&&"function"==typeof L.focus){const ue=(0,P.ht)(),ae=this._elementRef.nativeElement;(!ue||ue===this._document.body||ue===ae||ae.contains(ue))&&(this._focusMonitor?(this._focusMonitor.focusVia(L,this._closeInteractionType),this._closeInteractionType=null):L.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,P.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const L=this._elementRef.nativeElement,ue=(0,P.ht)();return L===ue||L.contains(ue)}}return $.\u0275fac=function(L){return new(L||$)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(se.qV),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(C.DOCUMENT,8),f.\u0275\u0275directiveInject(be),f.\u0275\u0275directiveInject(se.tE))},$.\u0275dir=f.\u0275\u0275defineDirective({type:$,viewQuery:function(L,ue){if(1&L&&f.\u0275\u0275viewQuery(l.Pl,7),2&L){let ae;f.\u0275\u0275queryRefresh(ae=f.\u0275\u0275loadQuery())&&(ue._portalOutlet=ae.first)}},features:[f.\u0275\u0275InheritDefinitionFeature]}),$})(),Me=(()=>{class $ extends Je{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:L,totalTime:ue}){"enter"===L?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:ue})):"exit"===L&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:ue}))}_onAnimationStart({toState:L,totalTime:ue}){"enter"===L?this._animationStateChanged.next({state:"opening",totalTime:ue}):("exit"===L||"void"===L)&&this._animationStateChanged.next({state:"closing",totalTime:ue})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return $.\u0275fac=function(){let oe;return function(ue){return(oe||(oe=f.\u0275\u0275getInheritedFactory($)))(ue||$)}}(),$.\u0275cmp=f.\u0275\u0275defineComponent({type:$,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(L,ue){1&L&&f.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(fe){return ue._onAnimationStart(fe)})("@dialogContainer.done",function(fe){return ue._onAnimationDone(fe)}),2&L&&(f.\u0275\u0275hostProperty("id",ue._id),f.\u0275\u0275attribute("role",ue._config.role)("aria-labelledby",ue._config.ariaLabel?null:ue._ariaLabelledBy)("aria-label",ue._config.ariaLabel)("aria-describedby",ue._config.ariaDescribedBy||null),f.\u0275\u0275syntheticHostProperty("@dialogContainer",ue._state))},features:[f.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(L,ue){1&L&&f.\u0275\u0275template(0,ce,0,0,"ng-template",0)},directives:[l.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:[Ue.dialogContainer]}}),$})(),xe=0;class Pe{constructor(oe,L,ue="mat-dialog-"+xe++){this._overlayRef=oe,this._containerInstance=L,this.id=ue,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new w.xQ,this._afterClosed=new w.xQ,this._beforeClosed=new w.xQ,this._state=0,L._id=ue,L._animationStateChanged.pipe((0,E.h)(ae=>"opened"===ae.state),(0,M.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),L._animationStateChanged.pipe((0,E.h)(ae=>"closed"===ae.state),(0,M.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),oe.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),oe.keydownEvents().pipe((0,E.h)(ae=>ae.keyCode===j.hY&&!this.disableClose&&!(0,j.Vb)(ae))).subscribe(ae=>{ae.preventDefault(),Ne(this,"keyboard")}),oe.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Ne(this,"mouse")})}close(oe){this._result=oe,this._containerInstance._animationStateChanged.pipe((0,E.h)(L=>"closing"===L.state),(0,M.q)(1)).subscribe(L=>{this._beforeClosed.next(oe),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),L.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(oe){let L=this._getPositionStrategy();return oe&&(oe.left||oe.right)?oe.left?L.left(oe.left):L.right(oe.right):L.centerHorizontally(),oe&&(oe.top||oe.bottom)?oe.top?L.top(oe.top):L.bottom(oe.bottom):L.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(oe="",L=""){return this._overlayRef.updateSize({width:oe,height:L}),this._overlayRef.updatePosition(),this}addPanelClass(oe){return this._overlayRef.addPanelClass(oe),this}removePanelClass(oe){return this._overlayRef.removePanelClass(oe),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Ne($,oe,L){return void 0!==$._containerInstance&&($._containerInstance._closeInteractionType=oe),$.close(L)}const Ct=new f.InjectionToken("MatDialogData"),te=new f.InjectionToken("mat-dialog-default-options"),ge=new f.InjectionToken("mat-dialog-scroll-strategy");function X($){return()=>$.scrollStrategies.block()}function le($){return()=>$.scrollStrategies.block()}const Ae={provide:ge,deps:[o.aV],useFactory:le};let Ce=(()=>{class ${constructor(L,ue,ae,fe,Fe,st,wt,Ze,ze){this._overlay=L,this._injector=ue,this._defaultOptions=ae,this._parentDialog=fe,this._overlayContainer=Fe,this._dialogRefConstructor=wt,this._dialogContainerType=Ze,this._dialogDataToken=ze,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new w.xQ,this._afterOpenedAtThisLevel=new w.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,D.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,S.O)(void 0))),this._scrollStrategy=st}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const L=this._parentDialog;return L?L._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(L,ue){(ue=function($,oe){return Object.assign(Object.assign({},oe),$)}(ue,this._defaultOptions||new be)).id&&this.getDialogById(ue.id);const ae=this._createOverlay(ue),fe=this._attachDialogContainer(ae,ue),Fe=this._attachDialogContent(L,fe,ae,ue);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Fe),Fe.afterClosed().subscribe(()=>this._removeOpenDialog(Fe)),this.afterOpened.next(Fe),fe._initializeWithAttachedContent(),Fe}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(L){return this.openDialogs.find(ue=>ue.id===L)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(L){const ue=this._getOverlayConfig(L);return this._overlay.create(ue)}_getOverlayConfig(L){const ue=new o.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:L.scrollStrategy||this._scrollStrategy(),panelClass:L.panelClass,hasBackdrop:L.hasBackdrop,direction:L.direction,minWidth:L.minWidth,minHeight:L.minHeight,maxWidth:L.maxWidth,maxHeight:L.maxHeight,disposeOnNavigation:L.closeOnNavigation});return L.backdropClass&&(ue.backdropClass=L.backdropClass),ue}_attachDialogContainer(L,ue){const fe=f.Injector.create({parent:ue&&ue.viewContainerRef&&ue.viewContainerRef.injector||this._injector,providers:[{provide:be,useValue:ue}]}),Fe=new l.C5(this._dialogContainerType,ue.viewContainerRef,fe,ue.componentFactoryResolver);return L.attach(Fe).instance}_attachDialogContent(L,ue,ae,fe){const Fe=new this._dialogRefConstructor(ae,ue,fe.id);if(L instanceof f.TemplateRef)ue.attachTemplatePortal(new l.UE(L,null,{$implicit:fe.data,dialogRef:Fe}));else{const st=this._createInjector(fe,Fe,ue),wt=ue.attachComponentPortal(new l.C5(L,fe.viewContainerRef,st));Fe.componentInstance=wt.instance}return Fe.updateSize(fe.width,fe.height).updatePosition(fe.position),Fe}_createInjector(L,ue,ae){const fe=L&&L.viewContainerRef&&L.viewContainerRef.injector,Fe=[{provide:this._dialogContainerType,useValue:ae},{provide:this._dialogDataToken,useValue:L.data},{provide:this._dialogRefConstructor,useValue:ue}];return L.direction&&(!fe||!fe.get(a.Is,null,f.InjectFlags.Optional))&&Fe.push({provide:a.Is,useValue:{value:L.direction,change:(0,g.of)()}}),f.Injector.create({parent:fe||this._injector,providers:Fe})}_removeOpenDialog(L){const ue=this.openDialogs.indexOf(L);ue>-1&&(this.openDialogs.splice(ue,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((ae,fe)=>{ae?fe.setAttribute("aria-hidden",ae):fe.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const L=this._overlayContainer.getContainerElement();if(L.parentElement){const ue=L.parentElement.children;for(let ae=ue.length-1;ae>-1;ae--){let fe=ue[ae];fe!==L&&"SCRIPT"!==fe.nodeName&&"STYLE"!==fe.nodeName&&!fe.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(fe,fe.getAttribute("aria-hidden")),fe.setAttribute("aria-hidden","true"))}}}_closeDialogs(L){let ue=L.length;for(;ue--;)L[ue].close()}}return $.\u0275fac=function(L){return new(L||$)(f.\u0275\u0275directiveInject(o.aV),f.\u0275\u0275directiveInject(f.Injector),f.\u0275\u0275directiveInject(void 0),f.\u0275\u0275directiveInject(void 0),f.\u0275\u0275directiveInject(o.Xj),f.\u0275\u0275directiveInject(void 0),f.\u0275\u0275directiveInject(f.Type),f.\u0275\u0275directiveInject(f.Type),f.\u0275\u0275directiveInject(f.InjectionToken))},$.\u0275dir=f.\u0275\u0275defineDirective({type:$}),$})(),$e=(()=>{class $ extends Ce{constructor(L,ue,ae,fe,Fe,st,wt){super(L,ue,fe,st,wt,Fe,Pe,Me,Ct)}}return $.\u0275fac=function(L){return new(L||$)(f.\u0275\u0275inject(o.aV),f.\u0275\u0275inject(f.Injector),f.\u0275\u0275inject(C.Location,8),f.\u0275\u0275inject(te,8),f.\u0275\u0275inject(ge),f.\u0275\u0275inject($,12),f.\u0275\u0275inject(o.Xj))},$.\u0275prov=f.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac}),$})(),pt=0,je=(()=>{class ${constructor(L,ue,ae){this.dialogRef=L,this._elementRef=ue,this._dialog=ae,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Xe(this._elementRef,this._dialog.openDialogs))}ngOnChanges(L){const ue=L._matDialogClose||L._matDialogCloseResult;ue&&(this.dialogResult=ue.currentValue)}_onButtonClick(L){Ne(this.dialogRef,0===L.screenX&&0===L.screenY?"keyboard":"mouse",this.dialogResult)}}return $.\u0275fac=function(L){return new(L||$)(f.\u0275\u0275directiveInject(Pe,8),f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject($e))},$.\u0275dir=f.\u0275\u0275defineDirective({type:$,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(L,ue){1&L&&f.\u0275\u0275listener("click",function(fe){return ue._onButtonClick(fe)}),2&L&&f.\u0275\u0275attribute("aria-label",ue.ariaLabel||null)("type",ue.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[f.\u0275\u0275NgOnChangesFeature]}),$})(),tt=(()=>{class ${constructor(L,ue,ae){this._dialogRef=L,this._elementRef=ue,this._dialog=ae,this.id="mat-dialog-title-"+pt++}ngOnInit(){this._dialogRef||(this._dialogRef=Xe(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const L=this._dialogRef._containerInstance;L&&!L._ariaLabelledBy&&(L._ariaLabelledBy=this.id)})}}return $.\u0275fac=function(L){return new(L||$)(f.\u0275\u0275directiveInject(Pe,8),f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject($e))},$.\u0275dir=f.\u0275\u0275defineDirective({type:$,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(L,ue){2&L&&f.\u0275\u0275hostProperty("id",ue.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),$})(),ut=(()=>{class ${}return $.\u0275fac=function(L){return new(L||$)},$.\u0275dir=f.\u0275\u0275defineDirective({type:$,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),$})(),It=(()=>{class ${}return $.\u0275fac=function(L){return new(L||$)},$.\u0275dir=f.\u0275\u0275defineDirective({type:$,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),$})();function Xe($,oe){let L=$.nativeElement.parentElement;for(;L&&!L.classList.contains("mat-dialog-container");)L=L.parentElement;return L?oe.find(ue=>ue.id===L.id):null}let dt=(()=>{class ${}return $.\u0275fac=function(L){return new(L||$)},$.\u0275mod=f.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=f.\u0275\u0275defineInjector({providers:[$e,Ae],imports:[[o.U8,l.eL,_.BQ],_.BQ]}),$})()},2421:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{ICON_REGISTRY_PROVIDER:()=>Ae,ICON_REGISTRY_PROVIDER_FACTORY:()=>le,MAT_ICON_LOCATION:()=>je,MAT_ICON_LOCATION_FACTORY:()=>tt,MatIcon:()=>$,MatIconModule:()=>oe,MatIconRegistry:()=>X,getMatIconFailedToSanitizeLiteralError:()=>te,getMatIconFailedToSanitizeUrlError:()=>Ct,getMatIconNameNotFoundError:()=>Pe,getMatIconNoHttpProviderError:()=>Ne,\u02750:()=>It});var o=d(7716),l=d(2458),f=d(9490),_=d(8583),a=d(5917),C=d(205),w=d(5758),D=d(826),g=d(5345);class M{constructor(ue){this.selector=ue}call(ue,ae){return ae.subscribe(new S(ue,this.selector,this.caught))}}class S extends g.Ds{constructor(ue,ae,fe){super(ue),this.selector=ae,this.caught=fe}error(ue){if(!this.isStopped){let ae;try{ae=this.selector(ue,this.caught)}catch(st){return void super.error(st)}this._unsubscribeAndRecycle();const fe=new g.IY(this);this.add(fe);const Fe=(0,g.ft)(ae,fe);Fe!==fe&&this.add(Fe)}}}var P=d(7393);class j{constructor(ue){this.callback=ue}call(ue,ae){return ae.subscribe(new se(ue,this.callback))}}class se extends P.L{constructor(ue,ae){super(ue),this.add(new D.w(ae))}}var ce=d(8307),be=d(8002),Ue=d(8819),lt=d(5257),Je=d(6820),Me=d(9075);const xe=["*"];function Pe(L){return Error(`Unable to find icon with the name "${L}"`)}function Ne(){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 Ct(L){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${L}".`)}function te(L){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${L}".`)}class ge{constructor(ue,ae,fe){this.url=ue,this.svgText=ae,this.options=fe}}let X=(()=>{class L{constructor(ae,fe,Fe,st){this._httpClient=ae,this._sanitizer=fe,this._errorHandler=st,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=Fe}addSvgIcon(ae,fe,Fe){return this.addSvgIconInNamespace("",ae,fe,Fe)}addSvgIconLiteral(ae,fe,Fe){return this.addSvgIconLiteralInNamespace("",ae,fe,Fe)}addSvgIconInNamespace(ae,fe,Fe,st){return this._addSvgIconConfig(ae,fe,new ge(Fe,null,st))}addSvgIconResolver(ae){return this._resolvers.push(ae),this}addSvgIconLiteralInNamespace(ae,fe,Fe,st){const wt=this._sanitizer.sanitize(o.SecurityContext.HTML,Fe);if(!wt)throw te(Fe);return this._addSvgIconConfig(ae,fe,new ge("",wt,st))}addSvgIconSet(ae,fe){return this.addSvgIconSetInNamespace("",ae,fe)}addSvgIconSetLiteral(ae,fe){return this.addSvgIconSetLiteralInNamespace("",ae,fe)}addSvgIconSetInNamespace(ae,fe,Fe){return this._addSvgIconSetConfig(ae,new ge(fe,null,Fe))}addSvgIconSetLiteralInNamespace(ae,fe,Fe){const st=this._sanitizer.sanitize(o.SecurityContext.HTML,fe);if(!st)throw te(fe);return this._addSvgIconSetConfig(ae,new ge("",st,Fe))}registerFontClassAlias(ae,fe=ae){return this._fontCssClassesByAlias.set(ae,fe),this}classNameForFontAlias(ae){return this._fontCssClassesByAlias.get(ae)||ae}setDefaultFontSetClass(ae){return this._defaultFontSetClass=ae,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ae){const fe=this._sanitizer.sanitize(o.SecurityContext.RESOURCE_URL,ae);if(!fe)throw Ct(ae);const Fe=this._cachedIconsByUrl.get(fe);return Fe?(0,a.of)(Ce(Fe)):this._loadSvgIconFromConfig(new ge(ae,null)).pipe((0,ce.b)(st=>this._cachedIconsByUrl.set(fe,st)),(0,be.U)(st=>Ce(st)))}getNamedSvgIcon(ae,fe=""){const Fe=$e(fe,ae);let st=this._svgIconConfigs.get(Fe);if(st)return this._getSvgFromConfig(st);if(st=this._getIconConfigFromResolvers(fe,ae),st)return this._svgIconConfigs.set(Fe,st),this._getSvgFromConfig(st);const wt=this._iconSetConfigs.get(fe);return wt?this._getSvgFromIconSetConfigs(ae,wt):(0,C._)(Pe(Fe))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ae){return ae.svgText?(0,a.of)(Ce(this._svgElementFromConfig(ae))):this._loadSvgIconFromConfig(ae).pipe((0,be.U)(fe=>Ce(fe)))}_getSvgFromIconSetConfigs(ae,fe){const Fe=this._extractIconWithNameFromAnySet(ae,fe);if(Fe)return(0,a.of)(Fe);const st=fe.filter(wt=>!wt.svgText).map(wt=>this._loadSvgIconSetFromConfig(wt).pipe(function(L){return function(ae){const fe=new M(L),Fe=ae.lift(fe);return fe.caught=Fe}}(Ze=>{const He=`Loading icon set URL: ${this._sanitizer.sanitize(o.SecurityContext.RESOURCE_URL,wt.url)} failed: ${Ze.message}`;return this._errorHandler.handleError(new Error(He)),(0,a.of)(null)})));return(0,w.D)(st).pipe((0,be.U)(()=>{const wt=this._extractIconWithNameFromAnySet(ae,fe);if(!wt)throw Pe(ae);return wt}))}_extractIconWithNameFromAnySet(ae,fe){for(let Fe=fe.length-1;Fe>=0;Fe--){const st=fe[Fe];if(st.svgText&&st.svgText.indexOf(ae)>-1){const wt=this._svgElementFromConfig(st),Ze=this._extractSvgIconFromSet(wt,ae,st.options);if(Ze)return Ze}}return null}_loadSvgIconFromConfig(ae){return this._fetchIcon(ae).pipe((0,ce.b)(fe=>ae.svgText=fe),(0,be.U)(()=>this._svgElementFromConfig(ae)))}_loadSvgIconSetFromConfig(ae){return ae.svgText?(0,a.of)(null):this._fetchIcon(ae).pipe((0,ce.b)(fe=>ae.svgText=fe))}_extractSvgIconFromSet(ae,fe,Fe){const st=ae.querySelector(`[id="${fe}"]`);if(!st)return null;const wt=st.cloneNode(!0);if(wt.removeAttribute("id"),"svg"===wt.nodeName.toLowerCase())return this._setSvgAttributes(wt,Fe);if("symbol"===wt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(wt),Fe);const Ze=this._svgElementFromString("<svg></svg>");return Ze.appendChild(wt),this._setSvgAttributes(Ze,Fe)}_svgElementFromString(ae){const fe=this._document.createElement("DIV");fe.innerHTML=ae;const Fe=fe.querySelector("svg");if(!Fe)throw Error("<svg> tag not found");return Fe}_toSvgElement(ae){const fe=this._svgElementFromString("<svg></svg>"),Fe=ae.attributes;for(let st=0;st<Fe.length;st++){const{name:wt,value:Ze}=Fe[st];"id"!==wt&&fe.setAttribute(wt,Ze)}for(let st=0;st<ae.childNodes.length;st++)ae.childNodes[st].nodeType===this._document.ELEMENT_NODE&&fe.appendChild(ae.childNodes[st].cloneNode(!0));return fe}_setSvgAttributes(ae,fe){return ae.setAttribute("fit",""),ae.setAttribute("height","100%"),ae.setAttribute("width","100%"),ae.setAttribute("preserveAspectRatio","xMidYMid meet"),ae.setAttribute("focusable","false"),fe&&fe.viewBox&&ae.setAttribute("viewBox",fe.viewBox),ae}_fetchIcon(ae){var fe;const{url:Fe,options:st}=ae,wt=null!==(fe=null==st?void 0:st.withCredentials)&&void 0!==fe&&fe;if(!this._httpClient)throw Ne();if(null==Fe)throw Error(`Cannot fetch icon from URL "${Fe}".`);const Ze=this._sanitizer.sanitize(o.SecurityContext.RESOURCE_URL,Fe);if(!Ze)throw Ct(Fe);const ze=this._inProgressUrlFetches.get(Ze);if(ze)return ze;const He=this._httpClient.get(Ze,{responseType:"text",withCredentials:wt}).pipe(function(L){return ue=>ue.lift(new j(L))}(()=>this._inProgressUrlFetches.delete(Ze)),(0,Ue.B)());return this._inProgressUrlFetches.set(Ze,He),He}_addSvgIconConfig(ae,fe,Fe){return this._svgIconConfigs.set($e(ae,fe),Fe),this}_addSvgIconSetConfig(ae,fe){const Fe=this._iconSetConfigs.get(ae);return Fe?Fe.push(fe):this._iconSetConfigs.set(ae,[fe]),this}_svgElementFromConfig(ae){if(!ae.svgElement){const fe=this._svgElementFromString(ae.svgText);this._setSvgAttributes(fe,ae.options),ae.svgElement=fe}return ae.svgElement}_getIconConfigFromResolvers(ae,fe){for(let Fe=0;Fe<this._resolvers.length;Fe++){const st=this._resolvers[Fe](fe,ae);if(st)return et(st)?new ge(st.url,null,st.options):new ge(st,null)}}}return L.\u0275fac=function(ae){return new(ae||L)(o.\u0275\u0275inject(Je.HttpClient,8),o.\u0275\u0275inject(Me.DomSanitizer),o.\u0275\u0275inject(_.DOCUMENT,8),o.\u0275\u0275inject(o.ErrorHandler))},L.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new L(o.\u0275\u0275inject(Je.HttpClient,8),o.\u0275\u0275inject(Me.DomSanitizer),o.\u0275\u0275inject(_.DOCUMENT,8),o.\u0275\u0275inject(o.ErrorHandler))},token:L,providedIn:"root"}),L})();function le(L,ue,ae,fe,Fe){return L||new X(ue,ae,Fe,fe)}const Ae={provide:X,deps:[[new o.Optional,new o.SkipSelf,X],[new o.Optional,Je.HttpClient],Me.DomSanitizer,o.ErrorHandler,[new o.Optional,_.DOCUMENT]],useFactory:le};function Ce(L){return L.cloneNode(!0)}function $e(L,ue){return L+":"+ue}function et(L){return!(!L.url||!L.options)}const pt=(0,l.pj)(class{constructor(L){this._elementRef=L}}),je=new o.InjectionToken("mat-icon-location",{providedIn:"root",factory:tt});function tt(){const L=(0,o.inject)(_.DOCUMENT),ue=L?L.location:null;return{getPathname:()=>ue?ue.pathname+ue.search:""}}const ut=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],It=L=>`[${L}]`,Xe=ut.map(It).join(", "),dt=/^url\(['"]?#(.*?)['"]?\)$/;let $=(()=>{class L extends pt{constructor(ae,fe,Fe,st,wt){super(ae),this._iconRegistry=fe,this._location=st,this._errorHandler=wt,this._inline=!1,this._currentIconFetch=D.w.EMPTY,Fe||ae.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(ae){this._inline=(0,f.Ig)(ae)}get svgIcon(){return this._svgIcon}set svgIcon(ae){ae!==this._svgIcon&&(ae?this._updateSvgIcon(ae):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ae)}get fontSet(){return this._fontSet}set fontSet(ae){const fe=this._cleanupFontValue(ae);fe!==this._fontSet&&(this._fontSet=fe,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ae){const fe=this._cleanupFontValue(ae);fe!==this._fontIcon&&(this._fontIcon=fe,this._updateFontIconClasses())}_splitIconName(ae){if(!ae)return["",""];const fe=ae.split(":");switch(fe.length){case 1:return["",fe[0]];case 2:return fe;default:throw Error(`Invalid icon name: "${ae}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ae=this._elementsWithExternalReferences;if(ae&&ae.size){const fe=this._location.getPathname();fe!==this._previousPath&&(this._previousPath=fe,this._prependPathToReferences(fe))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ae){this._clearSvgElement();const fe=ae.querySelectorAll("style");for(let st=0;st<fe.length;st++)fe[st].textContent+=" ";const Fe=this._location.getPathname();this._previousPath=Fe,this._cacheChildrenWithExternalReferences(ae),this._prependPathToReferences(Fe),this._elementRef.nativeElement.appendChild(ae)}_clearSvgElement(){const ae=this._elementRef.nativeElement;let fe=ae.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();fe--;){const Fe=ae.childNodes[fe];(1!==Fe.nodeType||"svg"===Fe.nodeName.toLowerCase())&&ae.removeChild(Fe)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ae=this._elementRef.nativeElement,fe=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();fe!=this._previousFontSetClass&&(this._previousFontSetClass&&ae.classList.remove(this._previousFontSetClass),fe&&ae.classList.add(fe),this._previousFontSetClass=fe),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&ae.classList.remove(this._previousFontIconClass),this.fontIcon&&ae.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ae){return"string"==typeof ae?ae.trim().split(" ")[0]:ae}_prependPathToReferences(ae){const fe=this._elementsWithExternalReferences;fe&&fe.forEach((Fe,st)=>{Fe.forEach(wt=>{st.setAttribute(wt.name,`url('${ae}#${wt.value}')`)})})}_cacheChildrenWithExternalReferences(ae){const fe=ae.querySelectorAll(Xe),Fe=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let st=0;st<fe.length;st++)ut.forEach(wt=>{const Ze=fe[st],ze=Ze.getAttribute(wt),He=ze?ze.match(dt):null;if(He){let q=Fe.get(Ze);q||(q=[],Fe.set(Ze,q)),q.push({name:wt,value:He[1]})}})}_updateSvgIcon(ae){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ae){const[fe,Fe]=this._splitIconName(ae);fe&&(this._svgNamespace=fe),Fe&&(this._svgName=Fe),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Fe,fe).pipe((0,lt.q)(1)).subscribe(st=>this._setSvgElement(st),st=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${fe}:${Fe}! ${st.message}`))})}}}return L.\u0275fac=function(ae){return new(ae||L)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(X),o.\u0275\u0275injectAttribute("aria-hidden"),o.\u0275\u0275directiveInject(je),o.\u0275\u0275directiveInject(o.ErrorHandler))},L.\u0275cmp=o.\u0275\u0275defineComponent({type:L,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(ae,fe){2&ae&&(o.\u0275\u0275attribute("data-mat-icon-type",fe._usingFontIcon()?"font":"svg")("data-mat-icon-name",fe._svgName||fe.fontIcon)("data-mat-icon-namespace",fe._svgNamespace||fe.fontSet),o.\u0275\u0275classProp("mat-icon-inline",fe.inline)("mat-icon-no-color","primary"!==fe.color&&"accent"!==fe.color&&"warn"!==fe.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[o.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:xe,decls:1,vars:0,template:function(ae,fe){1&ae&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;-ms-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}),L})(),oe=(()=>{class L{}return L.\u0275fac=function(ae){return new(ae||L)},L.\u0275mod=o.\u0275\u0275defineNgModule({type:L}),L.\u0275inj=o.\u0275\u0275defineInjector({imports:[[l.BQ],l.BQ]}),L})()},5384:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{MAT_MENU_CONTENT:()=>ut,MAT_MENU_DEFAULT_OPTIONS:()=>Fe,MAT_MENU_PANEL:()=>ue,MAT_MENU_SCROLL_STRATEGY:()=>He,MatMenu:()=>ze,MatMenuContent:()=>Xe,MatMenuItem:()=>fe,MatMenuModule:()=>F,MatMenuTrigger:()=>x,_MatMenuBase:()=>Ze,_MatMenuContentBase:()=>It,_MatMenuTriggerBase:()=>Ye,fadeInItems:()=>je,matMenuAnimations:()=>pt,transformMenu:()=>tt,\u0275angular_material_src_material_menu_menu_a:()=>st,\u0275angular_material_src_material_menu_menu_b:()=>q,\u0275angular_material_src_material_menu_menu_c:()=>Ge});var o=d(9238),l=d(9490),f=d(6461),_=d(7716),a=d(9765),C=d(826),w=d(6682),D=d(5917),g=d(4581),E=d(3637),S=d(7393),P=d(3098);function B(R,he=E.P){const ie=function(R){return R instanceof Date&&!isNaN(+R)}(R)?+R-he.now():Math.abs(R);return Be=>Be.lift(new j(ie,he))}class j{constructor(he,z){this.delay=he,this.scheduler=z}call(he,z){return z.subscribe(new se(he,this.delay,this.scheduler))}}class se extends S.L{constructor(he,z,ie){super(he),this.delay=z,this.scheduler=ie,this.queue=[],this.active=!1,this.errored=!1}static dispatch(he){const z=he.source,ie=z.queue,Be=he.scheduler,gt=he.destination;for(;ie.length>0&&ie[0].time-Be.now()<=0;)ie.shift().notification.observe(gt);if(ie.length>0){const Et=Math.max(0,ie[0].time-Be.now());this.schedule(he,Et)}else this.unsubscribe(),z.active=!1}_schedule(he){this.active=!0,this.destination.add(he.schedule(se.dispatch,this.delay,{source:this,destination:this.destination,scheduler:he}))}scheduleNotification(he){if(!0===this.errored)return;const z=this.scheduler,ie=new ce(z.now()+this.delay,he);this.queue.push(ie),!1===this.active&&this._schedule(z)}_next(he){this.scheduleNotification(P.P.createNext(he))}_error(he){this.errored=!0,this.queue=[],this.destination.error(he),this.unsubscribe()}_complete(){this.scheduleNotification(P.P.createComplete()),this.unsubscribe()}}class ce{constructor(he,z){this.time=he,this.notification=z}}var be=d(9761),Ue=d(3190),lt=d(5257),Je=d(5435),Me=d(6782),xe=d(7238),Pe=d(7636),Ne=d(8583),Ct=d(2458),te=d(625),ge=d(521),X=d(5197),le=d(946);const Ae=["mat-menu-item",""];function Ce(R,he){1&R&&(_.\u0275\u0275namespaceSVG(),_.\u0275\u0275elementStart(0,"svg",2),_.\u0275\u0275element(1,"polygon",3),_.\u0275\u0275elementEnd())}const $e=["*"];function et(R,he){if(1&R){const z=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"div",0),_.\u0275\u0275listener("keydown",function(Be){return _.\u0275\u0275restoreView(z),_.\u0275\u0275nextContext()._handleKeydown(Be)})("click",function(){return _.\u0275\u0275restoreView(z),_.\u0275\u0275nextContext().closed.emit("click")})("@transformMenu.start",function(Be){return _.\u0275\u0275restoreView(z),_.\u0275\u0275nextContext()._onAnimationStart(Be)})("@transformMenu.done",function(Be){return _.\u0275\u0275restoreView(z),_.\u0275\u0275nextContext()._onAnimationDone(Be)}),_.\u0275\u0275elementStart(1,"div",1),_.\u0275\u0275projection(2),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()}if(2&R){const z=_.\u0275\u0275nextContext();_.\u0275\u0275property("id",z.panelId)("ngClass",z._classList)("@transformMenu",z._panelAnimationState),_.\u0275\u0275attribute("aria-label",z.ariaLabel||null)("aria-labelledby",z.ariaLabelledby||null)("aria-describedby",z.ariaDescribedby||null)}}const pt={transformMenu:(0,xe.X$)("transformMenu",[(0,xe.SB)("void",(0,xe.oB)({opacity:0,transform:"scale(0.8)"})),(0,xe.eR)("void => enter",(0,xe.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,xe.oB)({opacity:1,transform:"scale(1)"}))),(0,xe.eR)("* => void",(0,xe.jt)("100ms 25ms linear",(0,xe.oB)({opacity:0})))]),fadeInItems:(0,xe.X$)("fadeInItems",[(0,xe.SB)("showing",(0,xe.oB)({opacity:1})),(0,xe.eR)("void => *",[(0,xe.oB)({opacity:0}),(0,xe.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},je=pt.fadeInItems,tt=pt.transformMenu,ut=new _.InjectionToken("MatMenuContent");let It=(()=>{class R{constructor(z,ie,Be,gt,Et,xt,Nt){this._template=z,this._componentFactoryResolver=ie,this._appRef=Be,this._injector=gt,this._viewContainerRef=Et,this._document=xt,this._changeDetectorRef=Nt,this._attached=new a.xQ}attach(z={}){this._portal||(this._portal=new Pe.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Pe.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const ie=this._template.elementRef.nativeElement;ie.parentNode.insertBefore(this._outlet.outletElement,ie),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,z),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return R.\u0275fac=function(z){return new(z||R)(_.\u0275\u0275directiveInject(_.TemplateRef),_.\u0275\u0275directiveInject(_.ComponentFactoryResolver),_.\u0275\u0275directiveInject(_.ApplicationRef),_.\u0275\u0275directiveInject(_.Injector),_.\u0275\u0275directiveInject(_.ViewContainerRef),_.\u0275\u0275directiveInject(Ne.DOCUMENT),_.\u0275\u0275directiveInject(_.ChangeDetectorRef))},R.\u0275dir=_.\u0275\u0275defineDirective({type:R}),R})(),Xe=(()=>{class R extends It{}return R.\u0275fac=function(){let he;return function(ie){return(he||(he=_.\u0275\u0275getInheritedFactory(R)))(ie||R)}}(),R.\u0275dir=_.\u0275\u0275defineDirective({type:R,selectors:[["ng-template","matMenuContent",""]],features:[_.\u0275\u0275ProvidersFeature([{provide:ut,useExisting:R}]),_.\u0275\u0275InheritDefinitionFeature]}),R})();const ue=new _.InjectionToken("MAT_MENU_PANEL"),ae=(0,Ct.Kr)((0,Ct.Id)(class{}));let fe=(()=>{class R extends ae{constructor(z,ie,Be,gt,Et){super(),this._elementRef=z,this._focusMonitor=Be,this._parentMenu=gt,this._changeDetectorRef=Et,this.role="menuitem",this._hovered=new a.xQ,this._focused=new a.xQ,this._highlighted=!1,this._triggersSubmenu=!1,gt&&gt.addItem&&gt.addItem(this)}focus(z,ie){this._focusMonitor&&z?this._focusMonitor.focusVia(this._getHostElement(),z,ie):this._getHostElement().focus(ie),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(z){this.disabled&&(z.preventDefault(),z.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var z,ie;const Be=this._elementRef.nativeElement.cloneNode(!0),gt=Be.querySelectorAll("mat-icon, .material-icons");for(let Et=0;Et<gt.length;Et++){const xt=gt[Et];null===(z=xt.parentNode)||void 0===z||z.removeChild(xt)}return(null===(ie=Be.textContent)||void 0===ie?void 0:ie.trim())||""}_setHighlighted(z){var ie;this._highlighted=z,null===(ie=this._changeDetectorRef)||void 0===ie||ie.markForCheck()}}return R.\u0275fac=function(z){return new(z||R)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(Ne.DOCUMENT),_.\u0275\u0275directiveInject(o.tE),_.\u0275\u0275directiveInject(ue,8),_.\u0275\u0275directiveInject(_.ChangeDetectorRef))},R.\u0275cmp=_.\u0275\u0275defineComponent({type:R,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(z,ie){1&z&&_.\u0275\u0275listener("click",function(gt){return ie._checkDisabled(gt)})("mouseenter",function(){return ie._handleMouseEnter()}),2&z&&(_.\u0275\u0275attribute("role",ie.role)("tabindex",ie._getTabIndex())("aria-disabled",ie.disabled.toString())("disabled",ie.disabled||null),_.\u0275\u0275classProp("mat-menu-item",!0)("mat-menu-item-highlighted",ie._highlighted)("mat-menu-item-submenu-trigger",ie._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[_.\u0275\u0275InheritDefinitionFeature],attrs:Ae,ngContentSelectors:$e,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(z,ie){1&z&&(_.\u0275\u0275projectionDef(),_.\u0275\u0275projection(0),_.\u0275\u0275element(1,"div",0),_.\u0275\u0275template(2,Ce,2,0,"svg",1)),2&z&&(_.\u0275\u0275advance(1),_.\u0275\u0275property("matRippleDisabled",ie.disableRipple||ie.disabled)("matRippleTrigger",ie._getHostElement()),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",ie._triggersSubmenu))},directives:[Ct.wG,Ne.NgIf],encapsulation:2,changeDetection:0}),R})();const Fe=new _.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:st});function st(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}let wt=0,Ze=(()=>{class R{constructor(z,ie,Be){this._elementRef=z,this._ngZone=ie,this._defaultOptions=Be,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new _.QueryList,this._tabSubscription=C.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new _.EventEmitter,this.close=this.closed,this.panelId="mat-menu-panel-"+wt++}get xPosition(){return this._xPosition}set xPosition(z){this._xPosition=z,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(z){this._yPosition=z,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(z){this._overlapTrigger=(0,l.Ig)(z)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(z){this._hasBackdrop=(0,l.Ig)(z)}set panelClass(z){const ie=this._previousPanelClass;ie&&ie.length&&ie.split(" ").forEach(Be=>{this._classList[Be]=!1}),this._previousPanelClass=z,z&&z.length&&(z.split(" ").forEach(Be=>{this._classList[Be]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(z){this.panelClass=z}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new o.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,be.O)(this._directDescendantItems),(0,Ue.w)(z=>(0,w.T)(...z.map(ie=>ie._focused)))).subscribe(z=>this._keyManager.updateActiveItem(z))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,be.O)(this._directDescendantItems),(0,Ue.w)(ie=>(0,w.T)(...ie.map(Be=>Be._hovered))))}addItem(z){}removeItem(z){}_handleKeydown(z){const ie=z.keyCode,Be=this._keyManager;switch(ie){case f.hY:(0,f.Vb)(z)||(z.preventDefault(),this.closed.emit("keydown"));break;case f.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case f.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(ie===f.LH||ie===f.JH)&&Be.setFocusOrigin("keyboard"),Be.onKeydown(z)}}focusFirstItem(z="program"){this.lazyContent?this._ngZone.onStable.pipe((0,lt.q)(1)).subscribe(()=>this._focusFirstItem(z)):this._focusFirstItem(z)}_focusFirstItem(z){const ie=this._keyManager;if(ie.setFocusOrigin(z).setFirstItemActive(),!ie.activeItem&&this._directDescendantItems.length){let Be=this._directDescendantItems.first._getHostElement().parentElement;for(;Be;){if("menu"===Be.getAttribute("role")){Be.focus();break}Be=Be.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(z){const ie=Math.min(this._baseElevation+z,24),Be=`${this._elevationPrefix}${ie}`,gt=Object.keys(this._classList).find(Et=>Et.startsWith(this._elevationPrefix));(!gt||gt===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[Be]=!0,this._previousElevation=Be)}setPositionClasses(z=this.xPosition,ie=this.yPosition){const Be=this._classList;Be["mat-menu-before"]="before"===z,Be["mat-menu-after"]="after"===z,Be["mat-menu-above"]="above"===ie,Be["mat-menu-below"]="below"===ie}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(z){this._animationDone.next(z),this._isAnimating=!1}_onAnimationStart(z){this._isAnimating=!0,"enter"===z.toState&&0===this._keyManager.activeItemIndex&&(z.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,be.O)(this._allItems)).subscribe(z=>{this._directDescendantItems.reset(z.filter(ie=>ie._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return R.\u0275fac=function(z){return new(z||R)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(Fe))},R.\u0275dir=_.\u0275\u0275defineDirective({type:R,contentQueries:function(z,ie,Be){if(1&z&&(_.\u0275\u0275contentQuery(Be,ut,5),_.\u0275\u0275contentQuery(Be,fe,5),_.\u0275\u0275contentQuery(Be,fe,4)),2&z){let gt;_.\u0275\u0275queryRefresh(gt=_.\u0275\u0275loadQuery())&&(ie.lazyContent=gt.first),_.\u0275\u0275queryRefresh(gt=_.\u0275\u0275loadQuery())&&(ie._allItems=gt),_.\u0275\u0275queryRefresh(gt=_.\u0275\u0275loadQuery())&&(ie.items=gt)}},viewQuery:function(z,ie){if(1&z&&_.\u0275\u0275viewQuery(_.TemplateRef,5),2&z){let Be;_.\u0275\u0275queryRefresh(Be=_.\u0275\u0275loadQuery())&&(ie.templateRef=Be.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),R})(),ze=(()=>{class R extends Ze{constructor(z,ie,Be){super(z,ie,Be),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return R.\u0275fac=function(z){return new(z||R)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(Fe))},R.\u0275cmp=_.\u0275\u0275defineComponent({type:R,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(z,ie){2&z&&_.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[_.\u0275\u0275ProvidersFeature([{provide:ue,useExisting:R}]),_.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:$e,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(z,ie){1&z&&(_.\u0275\u0275projectionDef(),_.\u0275\u0275template(0,et,3,6,"ng-template"))},directives:[Ne.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;-ms-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:[pt.transformMenu,pt.fadeInItems]},changeDetection:0}),R})();const He=new _.InjectionToken("mat-menu-scroll-strategy");function q(R){return()=>R.scrollStrategies.reposition()}const Ge={provide:He,deps:[te.aV],useFactory:q},vt=(0,ge.i$)({passive:!0});let Ye=(()=>{class R{constructor(z,ie,Be,gt,Et,xt,Nt,Ut){this._overlay=z,this._element=ie,this._viewContainerRef=Be,this._menuItemInstance=xt,this._dir=Nt,this._focusMonitor=Ut,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=C.w.EMPTY,this._hoverSubscription=C.w.EMPTY,this._menuCloseSubscription=C.w.EMPTY,this._handleTouchStart=Qt=>{(0,o.yG)(Qt)||(this._openedBy="touch")},this._openedBy=void 0,this._ariaHaspopup=!0,this.restoreFocus=!0,this.menuOpened=new _.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new _.EventEmitter,this.onMenuClose=this.menuClosed,this._scrollStrategy=gt,this._parentMaterialMenu=Et instanceof Ze?Et:void 0,ie.nativeElement.addEventListener("touchstart",this._handleTouchStart,vt),xt&&(xt._triggersSubmenu=this.triggersSubmenu())}get _ariaExpanded(){return this.menuOpen||null}get _ariaControl(){return this.menuOpen?this.menu.panelId:null}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(z){this.menu=z}get menu(){return this._menu}set menu(z){z!==this._menu&&(this._menu=z,this._menuCloseSubscription.unsubscribe(),z&&(this._menuCloseSubscription=z.close.subscribe(ie=>{this._destroyMenu(ie),("click"===ie||"tab"===ie)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(ie)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,vt),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 z=this._createOverlay(),ie=z.getConfig();this._setPosition(ie.positionStrategy),ie.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,z.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Ze&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(z,ie){this._focusMonitor&&z?this._focusMonitor.focusVia(this._element,z,ie):this._element.nativeElement.focus(ie)}updatePosition(){var z;null===(z=this._overlayRef)||void 0===z||z.updatePosition()}_destroyMenu(z){if(!this._overlayRef||!this.menuOpen)return;const ie=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===z||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,ie instanceof Ze?(ie._resetAnimation(),ie.lazyContent?ie._animationDone.pipe((0,Je.h)(Be=>"void"===Be.toState),(0,lt.q)(1),(0,Me.R)(ie.lazyContent._attached)).subscribe({next:()=>ie.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),ie.lazyContent&&ie.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 z=0,ie=this.menu.parentMenu;for(;ie;)z++,ie=ie.parentMenu;this.menu.setElevation(z)}}_setIsMenuOpen(z){this._menuOpen=z,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(z)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const z=this._getOverlayConfig();this._subscribeToPositions(z.positionStrategy),this._overlayRef=this._overlay.create(z),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new te.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(z){this.menu.setPositionClasses&&z.positionChanges.subscribe(ie=>{this.menu.setPositionClasses("start"===ie.connectionPair.overlayX?"after":"before","top"===ie.connectionPair.overlayY?"below":"above")})}_setPosition(z){let[ie,Be]="before"===this.menu.xPosition?["end","start"]:["start","end"],[gt,Et]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[xt,Nt]=[gt,Et],[Ut,Qt]=[ie,Be],At=0;this.triggersSubmenu()?(Qt=ie="before"===this.menu.xPosition?"start":"end",Be=Ut="end"===ie?"start":"end",At="bottom"===gt?8:-8):this.menu.overlapTrigger||(xt="top"===gt?"bottom":"top",Nt="top"===Et?"bottom":"top"),z.withPositions([{originX:ie,originY:xt,overlayX:Ut,overlayY:gt,offsetY:At},{originX:Be,originY:xt,overlayX:Qt,overlayY:gt,offsetY:At},{originX:ie,originY:Nt,overlayX:Ut,overlayY:Et,offsetY:-At},{originX:Be,originY:Nt,overlayX:Qt,overlayY:Et,offsetY:-At}])}_menuClosingActions(){const z=this._overlayRef.backdropClick(),ie=this._overlayRef.detachments(),Be=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,D.of)(),gt=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Je.h)(Et=>Et!==this._menuItemInstance),(0,Je.h)(()=>this._menuOpen)):(0,D.of)();return(0,w.T)(z,Be,gt,ie)}_handleMousedown(z){(0,o.X6)(z)||(this._openedBy=0===z.button?"mouse":void 0,this.triggersSubmenu()&&z.preventDefault())}_handleKeydown(z){const ie=z.keyCode;(ie===f.K5||ie===f.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(ie===f.SV&&"ltr"===this.dir||ie===f.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(z){this.triggersSubmenu()?(z.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Je.h)(z=>z===this._menuItemInstance&&!z.disabled),B(0,g.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ze&&this.menu._isAnimating?this.menu._animationDone.pipe((0,lt.q)(1),B(0,g.E),(0,Me.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Pe.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return R.\u0275fac=function(z){return new(z||R)(_.\u0275\u0275directiveInject(te.aV),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(_.ViewContainerRef),_.\u0275\u0275directiveInject(He),_.\u0275\u0275directiveInject(ue,8),_.\u0275\u0275directiveInject(fe,10),_.\u0275\u0275directiveInject(le.Is,8),_.\u0275\u0275directiveInject(o.tE))},R.\u0275dir=_.\u0275\u0275defineDirective({type:R,hostVars:3,hostBindings:function(z,ie){1&z&&_.\u0275\u0275listener("mousedown",function(gt){return ie._handleMousedown(gt)})("keydown",function(gt){return ie._handleKeydown(gt)})("click",function(gt){return ie._handleClick(gt)}),2&z&&_.\u0275\u0275attribute("aria-haspopup",ie._ariaHaspopup)("aria-expanded",ie._ariaExpanded)("aria-controls",ie._ariaControl)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),R})(),x=(()=>{class R extends Ye{}return R.\u0275fac=function(){let he;return function(ie){return(he||(he=_.\u0275\u0275getInheritedFactory(R)))(ie||R)}}(),R.\u0275dir=_.\u0275\u0275defineDirective({type:R,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[_.\u0275\u0275InheritDefinitionFeature]}),R})(),F=(()=>{class R{}return R.\u0275fac=function(z){return new(z||R)},R.\u0275mod=_.\u0275\u0275defineNgModule({type:R}),R.\u0275inj=_.\u0275\u0275defineInjector({providers:[Ge],imports:[[Ne.CommonModule,Ct.BQ,Ct.si,te.U8],X.ZD,Ct.BQ]}),R})()},2789:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{MatCell:()=>_t,MatCellDef:()=>Ee,MatColumnDef:()=>N,MatFooterCell:()=>ot,MatFooterCellDef:()=>J,MatFooterRow:()=>un,MatFooterRowDef:()=>dn,MatHeaderCell:()=>re,MatHeaderCellDef:()=>Q,MatHeaderRow:()=>an,MatHeaderRowDef:()=>Ht,MatNoDataRow:()=>yn,MatRecycleRows:()=>W,MatRow:()=>wn,MatRowDef:()=>cn,MatTable:()=>De,MatTableDataSource:()=>Rt,MatTableModule:()=>Se,MatTextColumn:()=>mt,_MatTableDataSource:()=>ht});var o=d(9490),l=d(8345),f=d(7716),_=d(946),a=d(521),C=d(5197),w=d(8583),D=d(9765),g=d(9412),E=d(6215),M=d(5639),S=d(5917),P=d(6782),B=d(5257);const j=[[["caption"]],[["colgroup"],["col"]]],se=["caption","colgroup, col"];function ce(ee,ve){if(1&ee&&(f.\u0275\u0275elementStart(0,"th",3),f.\u0275\u0275text(1),f.\u0275\u0275elementEnd()),2&ee){const Y=f.\u0275\u0275nextContext();f.\u0275\u0275styleProp("text-align",Y.justify),f.\u0275\u0275advance(1),f.\u0275\u0275textInterpolate1(" ",Y.headerText," ")}}function be(ee,ve){if(1&ee&&(f.\u0275\u0275elementStart(0,"td",4),f.\u0275\u0275text(1),f.\u0275\u0275elementEnd()),2&ee){const Y=ve.$implicit,ye=f.\u0275\u0275nextContext();f.\u0275\u0275styleProp("text-align",ye.justify),f.\u0275\u0275advance(1),f.\u0275\u0275textInterpolate1(" ",ye.dataAccessor(Y,ye.name)," ")}}function Ue(ee){return class extends ee{constructor(...ve){super(...ve),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(ve){const Y=this._sticky;this._sticky=(0,o.Ig)(ve),this._hasStickyChanged=Y!==this._sticky}hasStickyChanged(){const ve=this._hasStickyChanged;return this._hasStickyChanged=!1,ve}resetStickyChanged(){this._hasStickyChanged=!1}}}const lt=new f.InjectionToken("CDK_TABLE"),Je=new f.InjectionToken("text-column-options");let Me=(()=>{class ee{constructor(Y){this.template=Y}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(f.TemplateRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkCellDef",""]]}),ee})(),xe=(()=>{class ee{constructor(Y){this.template=Y}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(f.TemplateRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkHeaderCellDef",""]]}),ee})(),Pe=(()=>{class ee{constructor(Y){this.template=Y}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(f.TemplateRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkFooterCellDef",""]]}),ee})();class Ne{}const Ct=Ue(Ne);let te=(()=>{class ee extends Ct{constructor(Y){super(),this._table=Y,this._stickyEnd=!1}get name(){return this._name}set name(Y){this._setNameInput(Y)}get stickyEnd(){return this._stickyEnd}set stickyEnd(Y){const ye=this._stickyEnd;this._stickyEnd=(0,o.Ig)(Y),this._hasStickyChanged=ye!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Y){Y&&(this._name=Y,this.cssClassFriendlyName=Y.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(lt,8))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkColumnDef",""]],contentQueries:function(Y,ye,Ke){if(1&Y&&(f.\u0275\u0275contentQuery(Ke,Me,5),f.\u0275\u0275contentQuery(Ke,xe,5),f.\u0275\u0275contentQuery(Ke,Pe,5)),2&Y){let yt;f.\u0275\u0275queryRefresh(yt=f.\u0275\u0275loadQuery())&&(ye.cell=yt.first),f.\u0275\u0275queryRefresh(yt=f.\u0275\u0275loadQuery())&&(ye.headerCell=yt.first),f.\u0275\u0275queryRefresh(yt=f.\u0275\u0275loadQuery())&&(ye.footerCell=yt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[f.\u0275\u0275ProvidersFeature([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})();class ge{constructor(ve,Y){const ye=Y.nativeElement.classList;for(const Ke of ve._columnCssClassName)ye.add(Ke)}}let X=(()=>{class ee extends ge{constructor(Y,ye){super(Y,ye)}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(te),f.\u0275\u0275directiveInject(f.ElementRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[f.\u0275\u0275InheritDefinitionFeature]}),ee})(),le=(()=>{class ee extends ge{constructor(Y,ye){var Ke;if(super(Y,ye),1===(null===(Ke=Y._table)||void 0===Ke?void 0:Ke._elementRef.nativeElement.nodeType)){const yt=Y._table._elementRef.nativeElement.getAttribute("role");ye.nativeElement.setAttribute("role","grid"===yt||"treegrid"===yt?"gridcell":"cell")}}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(te),f.\u0275\u0275directiveInject(f.ElementRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[f.\u0275\u0275InheritDefinitionFeature]}),ee})(),Ae=(()=>{class ee extends ge{constructor(Y,ye){var Ke;if(super(Y,ye),1===(null===(Ke=Y._table)||void 0===Ke?void 0:Ke._elementRef.nativeElement.nodeType)){const yt=Y._table._elementRef.nativeElement.getAttribute("role");ye.nativeElement.setAttribute("role","grid"===yt||"treegrid"===yt?"gridcell":"cell")}}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(te),f.\u0275\u0275directiveInject(f.ElementRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[f.\u0275\u0275InheritDefinitionFeature]}),ee})();class Ce{constructor(){this.tasks=[],this.endTasks=[]}}const $e=new f.InjectionToken("_COALESCED_STYLE_SCHEDULER");let et=(()=>{class ee{constructor(Y){this._ngZone=Y,this._currentSchedule=null,this._destroyed=new D.xQ}schedule(Y){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(Y)}scheduleEnd(Y){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(Y)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Ce,this._getScheduleObservable().pipe((0,P.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const Y=this._currentSchedule;this._currentSchedule=new Ce;for(const ye of Y.tasks)ye();for(const ye of Y.endTasks)ye()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,g.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,B.q)(1))}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275inject(f.NgZone))},ee.\u0275prov=f.\u0275\u0275defineInjectable({token:ee,factory:ee.\u0275fac}),ee})(),je=(()=>{class ee{constructor(Y,ye){this.template=Y,this._differs=ye}ngOnChanges(Y){if(!this._columnsDiffer){const ye=Y.columns&&Y.columns.currentValue||[];this._columnsDiffer=this._differs.find(ye).create(),this._columnsDiffer.diff(ye)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Y){return this instanceof It?Y.headerCell.template:this instanceof $?Y.footerCell.template:Y.cell.template}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(f.TemplateRef),f.\u0275\u0275directiveInject(f.IterableDiffers))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,features:[f.\u0275\u0275NgOnChangesFeature]}),ee})();class tt extends je{}const ut=Ue(tt);let It=(()=>{class ee extends ut{constructor(Y,ye,Ke){super(Y,ye),this._table=Ke}ngOnChanges(Y){super.ngOnChanges(Y)}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(f.TemplateRef),f.\u0275\u0275directiveInject(f.IterableDiffers),f.\u0275\u0275directiveInject(lt,8))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[f.\u0275\u0275InheritDefinitionFeature,f.\u0275\u0275NgOnChangesFeature]}),ee})();class Xe extends je{}const dt=Ue(Xe);let $=(()=>{class ee extends dt{constructor(Y,ye,Ke){super(Y,ye),this._table=Ke}ngOnChanges(Y){super.ngOnChanges(Y)}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(f.TemplateRef),f.\u0275\u0275directiveInject(f.IterableDiffers),f.\u0275\u0275directiveInject(lt,8))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[f.\u0275\u0275InheritDefinitionFeature,f.\u0275\u0275NgOnChangesFeature]}),ee})(),oe=(()=>{class ee extends je{constructor(Y,ye,Ke){super(Y,ye),this._table=Ke}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(f.TemplateRef),f.\u0275\u0275directiveInject(f.IterableDiffers),f.\u0275\u0275directiveInject(lt,8))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[f.\u0275\u0275InheritDefinitionFeature]}),ee})(),L=(()=>{class ee{constructor(Y){this._viewContainer=Y,ee.mostRecentCellOutlet=this}ngOnDestroy(){ee.mostRecentCellOutlet===this&&(ee.mostRecentCellOutlet=null)}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(f.ViewContainerRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkCellOutlet",""]]}),ee.mostRecentCellOutlet=null,ee})(),ue=(()=>{class ee{}return ee.\u0275fac=function(Y){return new(Y||ee)},ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Y,ye){1&Y&&f.\u0275\u0275elementContainer(0,0)},directives:[L],encapsulation:2}),ee})(),ae=(()=>{class ee{}return ee.\u0275fac=function(Y){return new(Y||ee)},ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Y,ye){1&Y&&f.\u0275\u0275elementContainer(0,0)},directives:[L],encapsulation:2}),ee})(),fe=(()=>{class ee{}return ee.\u0275fac=function(Y){return new(Y||ee)},ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Y,ye){1&Y&&f.\u0275\u0275elementContainer(0,0)},directives:[L],encapsulation:2}),ee})(),Fe=(()=>{class ee{constructor(Y){this.templateRef=Y}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(f.TemplateRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["ng-template","cdkNoDataRow",""]]}),ee})();const st=["top","bottom","left","right"];class wt{constructor(ve,Y,ye,Ke,yt=!0,Tt=!0,we){this._isNativeHtmlTable=ve,this._stickCellCss=Y,this.direction=ye,this._coalescedStyleScheduler=Ke,this._isBrowser=yt,this._needsPositionStickyOnElement=Tt,this._positionListener=we,this._cachedCellWidths=[],this._borderCellCss={top:`${Y}-border-elem-top`,bottom:`${Y}-border-elem-bottom`,left:`${Y}-border-elem-left`,right:`${Y}-border-elem-right`}}clearStickyPositioning(ve,Y){const ye=[];for(const Ke of ve)if(Ke.nodeType===Ke.ELEMENT_NODE){ye.push(Ke);for(let yt=0;yt<Ke.children.length;yt++)ye.push(Ke.children[yt])}this._coalescedStyleScheduler.schedule(()=>{for(const Ke of ye)this._removeStickyStyle(Ke,Y)})}updateStickyColumns(ve,Y,ye,Ke=!0){if(!ve.length||!this._isBrowser||!Y.some(Ft=>Ft)&&!ye.some(Ft=>Ft))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const yt=ve[0],Tt=yt.children.length,we=this._getCellWidths(yt,Ke),Ie=this._getStickyStartColumnPositions(we,Y),pe=this._getStickyEndColumnPositions(we,ye),Ve=Y.lastIndexOf(!0),at=ye.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Ft="rtl"===this.direction,$t=Ft?"right":"left",qt=Ft?"left":"right";for(const Wt of ve)for(let Mn=0;Mn<Tt;Mn++){const gi=Wt.children[Mn];Y[Mn]&&this._addStickyStyle(gi,$t,Ie[Mn],Mn===Ve),ye[Mn]&&this._addStickyStyle(gi,qt,pe[Mn],Mn===at)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Ve?[]:we.slice(0,Ve+1).map((Wt,Mn)=>Y[Mn]?Wt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===at?[]:we.slice(at).map((Wt,Mn)=>ye[Mn+at]?Wt:null).reverse()}))})}stickRows(ve,Y,ye){if(!this._isBrowser)return;const Ke="bottom"===ye?ve.slice().reverse():ve,yt="bottom"===ye?Y.slice().reverse():Y,Tt=[],we=[],Ie=[];for(let Ve=0,at=0;Ve<Ke.length;Ve++){if(!yt[Ve])continue;Tt[Ve]=at;const Ft=Ke[Ve];Ie[Ve]=this._isNativeHtmlTable?Array.from(Ft.children):[Ft];const $t=Ft.getBoundingClientRect().height;at+=$t,we[Ve]=$t}const pe=yt.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var Ve,at;for(let Ft=0;Ft<Ke.length;Ft++){if(!yt[Ft])continue;const $t=Tt[Ft],qt=Ft===pe;for(const Wt of Ie[Ft])this._addStickyStyle(Wt,ye,$t,qt)}"top"===ye?null===(Ve=this._positionListener)||void 0===Ve||Ve.stickyHeaderRowsUpdated({sizes:we,offsets:Tt,elements:Ie}):null===(at=this._positionListener)||void 0===at||at.stickyFooterRowsUpdated({sizes:we,offsets:Tt,elements:Ie})})}updateStickyFooterContainer(ve,Y){if(!this._isNativeHtmlTable)return;const ye=ve.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{Y.some(Ke=>!Ke)?this._removeStickyStyle(ye,["bottom"]):this._addStickyStyle(ye,"bottom",0,!1)})}_removeStickyStyle(ve,Y){for(const Ke of Y)ve.style[Ke]="",ve.classList.remove(this._borderCellCss[Ke]);st.some(Ke=>-1===Y.indexOf(Ke)&&ve.style[Ke])?ve.style.zIndex=this._getCalculatedZIndex(ve):(ve.style.zIndex="",this._needsPositionStickyOnElement&&(ve.style.position=""),ve.classList.remove(this._stickCellCss))}_addStickyStyle(ve,Y,ye,Ke){ve.classList.add(this._stickCellCss),Ke&&ve.classList.add(this._borderCellCss[Y]),ve.style[Y]=`${ye}px`,ve.style.zIndex=this._getCalculatedZIndex(ve),this._needsPositionStickyOnElement&&(ve.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(ve){const Y={top:100,bottom:10,left:1,right:1};let ye=0;for(const Ke of st)ve.style[Ke]&&(ye+=Y[Ke]);return ye?`${ye}`:""}_getCellWidths(ve,Y=!0){if(!Y&&this._cachedCellWidths.length)return this._cachedCellWidths;const ye=[],Ke=ve.children;for(let yt=0;yt<Ke.length;yt++)ye.push(Ke[yt].getBoundingClientRect().width);return this._cachedCellWidths=ye,ye}_getStickyStartColumnPositions(ve,Y){const ye=[];let Ke=0;for(let yt=0;yt<ve.length;yt++)Y[yt]&&(ye[yt]=Ke,Ke+=ve[yt]);return ye}_getStickyEndColumnPositions(ve,Y){const ye=[];let Ke=0;for(let yt=ve.length;yt>0;yt--)Y[yt]&&(ye[yt]=Ke,Ke+=ve[yt]);return ye}}const x=new f.InjectionToken("CDK_SPL");let R=(()=>{class ee{constructor(Y,ye){this.viewContainer=Y,this.elementRef=ye}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(f.ViewContainerRef),f.\u0275\u0275directiveInject(f.ElementRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","rowOutlet",""]]}),ee})(),he=(()=>{class ee{constructor(Y,ye){this.viewContainer=Y,this.elementRef=ye}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(f.ViewContainerRef),f.\u0275\u0275directiveInject(f.ElementRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","headerRowOutlet",""]]}),ee})(),z=(()=>{class ee{constructor(Y,ye){this.viewContainer=Y,this.elementRef=ye}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(f.ViewContainerRef),f.\u0275\u0275directiveInject(f.ElementRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","footerRowOutlet",""]]}),ee})(),ie=(()=>{class ee{constructor(Y,ye){this.viewContainer=Y,this.elementRef=ye}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(f.ViewContainerRef),f.\u0275\u0275directiveInject(f.ElementRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","noDataRowOutlet",""]]}),ee})(),Et=(()=>{class ee{constructor(Y,ye,Ke,yt,Tt,we,Ie,pe,Ve,at,Ft){this._differs=Y,this._changeDetectorRef=ye,this._elementRef=Ke,this._dir=Tt,this._platform=Ie,this._viewRepeater=pe,this._coalescedStyleScheduler=Ve,this._viewportRuler=at,this._stickyPositioningListener=Ft,this._onDestroy=new D.xQ,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 f.EventEmitter,this.viewChange=new E.X({start:0,end:Number.MAX_VALUE}),yt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=we,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(Y){this._trackByFn=Y}get dataSource(){return this._dataSource}set dataSource(Y){this._dataSource!==Y&&this._switchDataSource(Y)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Y){this._multiTemplateDataRows=(0,o.Ig)(Y),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(Y){this._fixedLayout=(0,o.Ig)(Y),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((Y,ye)=>this.trackBy?this.trackBy(ye.dataIndex,ye.data):ye),this._viewportRuler.change().pipe((0,P.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const ye=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||ye,this._forceRecalculateCellWidths=ye,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,l.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Y=this._dataDiffer.diff(this._renderRows);if(!Y)return this._updateNoDataRow(),void this.contentChanged.next();const ye=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Y,ye,(Ke,yt,Tt)=>this._getEmbeddedViewArgs(Ke.item,Tt),Ke=>Ke.item.data,Ke=>{1===Ke.operation&&Ke.context&&this._renderCellTemplateForItem(Ke.record.item.rowDef,Ke.context)}),this._updateRowIndexContext(),Y.forEachIdentityChange(Ke=>{ye.get(Ke.currentIndex).context.$implicit=Ke.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(Y){this._customColumnDefs.add(Y)}removeColumnDef(Y){this._customColumnDefs.delete(Y)}addRowDef(Y){this._customRowDefs.add(Y)}removeRowDef(Y){this._customRowDefs.delete(Y)}addHeaderRowDef(Y){this._customHeaderRowDefs.add(Y),this._headerRowDefChanged=!0}removeHeaderRowDef(Y){this._customHeaderRowDefs.delete(Y),this._headerRowDefChanged=!0}addFooterRowDef(Y){this._customFooterRowDefs.add(Y),this._footerRowDefChanged=!0}removeFooterRowDef(Y){this._customFooterRowDefs.delete(Y),this._footerRowDefChanged=!0}setNoDataRow(Y){this._customNoDataRow=Y}updateStickyHeaderRowStyles(){const Y=this._getRenderedRows(this._headerRowOutlet),Ke=this._elementRef.nativeElement.querySelector("thead");Ke&&(Ke.style.display=Y.length?"":"none");const yt=this._headerRowDefs.map(Tt=>Tt.sticky);this._stickyStyler.clearStickyPositioning(Y,["top"]),this._stickyStyler.stickRows(Y,yt,"top"),this._headerRowDefs.forEach(Tt=>Tt.resetStickyChanged())}updateStickyFooterRowStyles(){const Y=this._getRenderedRows(this._footerRowOutlet),Ke=this._elementRef.nativeElement.querySelector("tfoot");Ke&&(Ke.style.display=Y.length?"":"none");const yt=this._footerRowDefs.map(Tt=>Tt.sticky);this._stickyStyler.clearStickyPositioning(Y,["bottom"]),this._stickyStyler.stickRows(Y,yt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,yt),this._footerRowDefs.forEach(Tt=>Tt.resetStickyChanged())}updateStickyColumnStyles(){const Y=this._getRenderedRows(this._headerRowOutlet),ye=this._getRenderedRows(this._rowOutlet),Ke=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Y,...ye,...Ke],["left","right"]),this._stickyColumnStylesNeedReset=!1),Y.forEach((yt,Tt)=>{this._addStickyColumnStyles([yt],this._headerRowDefs[Tt])}),this._rowDefs.forEach(yt=>{const Tt=[];for(let we=0;we<ye.length;we++)this._renderRows[we].rowDef===yt&&Tt.push(ye[we]);this._addStickyColumnStyles(Tt,yt)}),Ke.forEach((yt,Tt)=>{this._addStickyColumnStyles([yt],this._footerRowDefs[Tt])}),Array.from(this._columnDefsByName.values()).forEach(yt=>yt.resetStickyChanged())}_getAllRenderRows(){const Y=[],ye=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let Ke=0;Ke<this._data.length;Ke++){let yt=this._data[Ke];const Tt=this._getRenderRowsForData(yt,Ke,ye.get(yt));this._cachedRenderRowsMap.has(yt)||this._cachedRenderRowsMap.set(yt,new WeakMap);for(let we=0;we<Tt.length;we++){let Ie=Tt[we];const pe=this._cachedRenderRowsMap.get(Ie.data);pe.has(Ie.rowDef)?pe.get(Ie.rowDef).push(Ie):pe.set(Ie.rowDef,[Ie]),Y.push(Ie)}}return Y}_getRenderRowsForData(Y,ye,Ke){return this._getRowDefs(Y,ye).map(Tt=>{const we=Ke&&Ke.has(Tt)?Ke.get(Tt):[];if(we.length){const Ie=we.shift();return Ie.dataIndex=ye,Ie}return{data:Y,rowDef:Tt,dataIndex:ye}})}_cacheColumnDefs(){this._columnDefsByName.clear(),xt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(ye=>{this._columnDefsByName.has(ye.name),this._columnDefsByName.set(ye.name,ye)})}_cacheRowDefs(){this._headerRowDefs=xt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=xt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=xt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const Y=this._rowDefs.filter(ye=>!ye.when);this._defaultRowDef=Y[0]}_renderUpdatedColumns(){const Y=(Tt,we)=>Tt||!!we.getColumnsDiff(),ye=this._rowDefs.reduce(Y,!1);ye&&this._forceRenderDataRows();const Ke=this._headerRowDefs.reduce(Y,!1);Ke&&this._forceRenderHeaderRows();const yt=this._footerRowDefs.reduce(Y,!1);return yt&&this._forceRenderFooterRows(),ye||Ke||yt}_switchDataSource(Y){this._data=[],(0,l.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Y||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=Y}_observeRenderChanges(){if(!this.dataSource)return;let Y;(0,l.Z9)(this.dataSource)?Y=this.dataSource.connect(this):(0,M.b)(this.dataSource)?Y=this.dataSource:Array.isArray(this.dataSource)&&(Y=(0,S.of)(this.dataSource)),this._renderChangeSubscription=Y.pipe((0,P.R)(this._onDestroy)).subscribe(ye=>{this._data=ye||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Y,ye)=>this._renderRow(this._headerRowOutlet,Y,ye)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Y,ye)=>this._renderRow(this._footerRowOutlet,Y,ye)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Y,ye){const Ke=Array.from(ye.columns||[]).map(we=>this._columnDefsByName.get(we)),yt=Ke.map(we=>we.sticky),Tt=Ke.map(we=>we.stickyEnd);this._stickyStyler.updateStickyColumns(Y,yt,Tt,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Y){const ye=[];for(let Ke=0;Ke<Y.viewContainer.length;Ke++){const yt=Y.viewContainer.get(Ke);ye.push(yt.rootNodes[0])}return ye}_getRowDefs(Y,ye){if(1==this._rowDefs.length)return[this._rowDefs[0]];let Ke=[];if(this.multiTemplateDataRows)Ke=this._rowDefs.filter(yt=>!yt.when||yt.when(ye,Y));else{let yt=this._rowDefs.find(Tt=>Tt.when&&Tt.when(ye,Y))||this._defaultRowDef;yt&&Ke.push(yt)}return Ke}_getEmbeddedViewArgs(Y,ye){return{templateRef:Y.rowDef.template,context:{$implicit:Y.data},index:ye}}_renderRow(Y,ye,Ke,yt={}){const Tt=Y.viewContainer.createEmbeddedView(ye.template,yt,Ke);return this._renderCellTemplateForItem(ye,yt),Tt}_renderCellTemplateForItem(Y,ye){for(let Ke of this._getCellTemplates(Y))L.mostRecentCellOutlet&&L.mostRecentCellOutlet._viewContainer.createEmbeddedView(Ke,ye);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Y=this._rowOutlet.viewContainer;for(let ye=0,Ke=Y.length;ye<Ke;ye++){const Tt=Y.get(ye).context;Tt.count=Ke,Tt.first=0===ye,Tt.last=ye===Ke-1,Tt.even=ye%2==0,Tt.odd=!Tt.even,this.multiTemplateDataRows?(Tt.dataIndex=this._renderRows[ye].dataIndex,Tt.renderIndex=ye):Tt.index=this._renderRows[ye].dataIndex}}_getCellTemplates(Y){return Y&&Y.columns?Array.from(Y.columns,ye=>{const Ke=this._columnDefsByName.get(ye);return Y.extractCellTemplate(Ke)}):[]}_applyNativeTableSections(){const Y=this._document.createDocumentFragment(),ye=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const Ke of ye){const yt=this._document.createElement(Ke.tag);yt.setAttribute("role","rowgroup");for(const Tt of Ke.outlets)yt.appendChild(Tt.elementRef.nativeElement);Y.appendChild(yt)}this._elementRef.nativeElement.appendChild(Y)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Y=(ye,Ke)=>ye||Ke.hasStickyChanged();this._headerRowDefs.reduce(Y,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Y,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Y,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new wt(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,S.of)()).pipe((0,P.R)(this._onDestroy)).subscribe(ye=>{this._stickyStyler.direction=ye,this.updateStickyColumnStyles()})}_getOwnDefs(Y){return Y.filter(ye=>!ye._table||ye._table===this)}_updateNoDataRow(){const Y=this._customNoDataRow||this._noDataRow;if(Y){const ye=0===this._rowOutlet.viewContainer.length;if(ye!==this._isShowingNoDataRow){const Ke=this._noDataRowOutlet.viewContainer;ye?Ke.createEmbeddedView(Y.templateRef):Ke.clear(),this._isShowingNoDataRow=ye}}}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(f.IterableDiffers),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275injectAttribute("role"),f.\u0275\u0275directiveInject(_.Is,8),f.\u0275\u0275directiveInject(w.DOCUMENT),f.\u0275\u0275directiveInject(a.t4),f.\u0275\u0275directiveInject(l.k),f.\u0275\u0275directiveInject($e),f.\u0275\u0275directiveInject(C.rL),f.\u0275\u0275directiveInject(x,12))},ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(Y,ye,Ke){if(1&Y&&(f.\u0275\u0275contentQuery(Ke,Fe,5),f.\u0275\u0275contentQuery(Ke,te,5),f.\u0275\u0275contentQuery(Ke,oe,5),f.\u0275\u0275contentQuery(Ke,It,5),f.\u0275\u0275contentQuery(Ke,$,5)),2&Y){let yt;f.\u0275\u0275queryRefresh(yt=f.\u0275\u0275loadQuery())&&(ye._noDataRow=yt.first),f.\u0275\u0275queryRefresh(yt=f.\u0275\u0275loadQuery())&&(ye._contentColumnDefs=yt),f.\u0275\u0275queryRefresh(yt=f.\u0275\u0275loadQuery())&&(ye._contentRowDefs=yt),f.\u0275\u0275queryRefresh(yt=f.\u0275\u0275loadQuery())&&(ye._contentHeaderRowDefs=yt),f.\u0275\u0275queryRefresh(yt=f.\u0275\u0275loadQuery())&&(ye._contentFooterRowDefs=yt)}},viewQuery:function(Y,ye){if(1&Y&&(f.\u0275\u0275viewQuery(R,7),f.\u0275\u0275viewQuery(he,7),f.\u0275\u0275viewQuery(z,7),f.\u0275\u0275viewQuery(ie,7)),2&Y){let Ke;f.\u0275\u0275queryRefresh(Ke=f.\u0275\u0275loadQuery())&&(ye._rowOutlet=Ke.first),f.\u0275\u0275queryRefresh(Ke=f.\u0275\u0275loadQuery())&&(ye._headerRowOutlet=Ke.first),f.\u0275\u0275queryRefresh(Ke=f.\u0275\u0275loadQuery())&&(ye._footerRowOutlet=Ke.first),f.\u0275\u0275queryRefresh(Ke=f.\u0275\u0275loadQuery())&&(ye._noDataRowOutlet=Ke.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(Y,ye){2&Y&&f.\u0275\u0275classProp("cdk-table-fixed-layout",ye.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[f.\u0275\u0275ProvidersFeature([{provide:lt,useExisting:ee},{provide:l.k,useClass:l.yy},{provide:$e,useClass:et},{provide:x,useValue:null}])],ngContentSelectors:se,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Y,ye){1&Y&&(f.\u0275\u0275projectionDef(j),f.\u0275\u0275projection(0),f.\u0275\u0275projection(1,1),f.\u0275\u0275elementContainer(2,0),f.\u0275\u0275elementContainer(3,1),f.\u0275\u0275elementContainer(4,2),f.\u0275\u0275elementContainer(5,3))},directives:[he,R,ie,z],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),ee})();function xt(ee,ve){return ee.concat(Array.from(ve))}let Nt=(()=>{class ee{constructor(Y,ye){this._table=Y,this._options=ye,this.justify="start",this._options=ye||{}}get name(){return this._name}set name(Y){this._name=Y,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((Y,ye)=>Y[ye])),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 Y=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(Y):Y[0].toUpperCase()+Y.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return ee.\u0275fac=function(Y){return new(Y||ee)(f.\u0275\u0275directiveInject(Et,8),f.\u0275\u0275directiveInject(Je,8))},ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["cdk-text-column"]],viewQuery:function(Y,ye){if(1&Y&&(f.\u0275\u0275viewQuery(te,7),f.\u0275\u0275viewQuery(Me,7),f.\u0275\u0275viewQuery(xe,7)),2&Y){let Ke;f.\u0275\u0275queryRefresh(Ke=f.\u0275\u0275loadQuery())&&(ye.columnDef=Ke.first),f.\u0275\u0275queryRefresh(Ke=f.\u0275\u0275loadQuery())&&(ye.cell=Ke.first),f.\u0275\u0275queryRefresh(Ke=f.\u0275\u0275loadQuery())&&(ye.headerCell=Ke.first)}},inputs:{justify:"justify",name:"name",headerText:"headerText",dataAccessor:"dataAccessor"},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(Y,ye){1&Y&&(f.\u0275\u0275elementContainerStart(0,0),f.\u0275\u0275template(1,ce,2,3,"th",1),f.\u0275\u0275template(2,be,2,3,"td",2),f.\u0275\u0275elementContainerEnd())},directives:[te,xe,Me,X,Ae],encapsulation:2}),ee})(),Qt=(()=>{class ee{}return ee.\u0275fac=function(Y){return new(Y||ee)},ee.\u0275mod=f.\u0275\u0275defineNgModule({type:ee}),ee.\u0275inj=f.\u0275\u0275defineInjector({imports:[[C.Cl]]}),ee})();var At=d(2458),Lt=d(6682),jt=d(9112),_n=d(8002);const qe=[[["caption"]],[["colgroup"],["col"]]],Pt=["caption","colgroup, col"];function V(ee,ve){if(1&ee&&(f.\u0275\u0275elementStart(0,"th",3),f.\u0275\u0275text(1),f.\u0275\u0275elementEnd()),2&ee){const Y=f.\u0275\u0275nextContext();f.\u0275\u0275styleProp("text-align",Y.justify),f.\u0275\u0275advance(1),f.\u0275\u0275textInterpolate1(" ",Y.headerText," ")}}function K(ee,ve){if(1&ee&&(f.\u0275\u0275elementStart(0,"td",4),f.\u0275\u0275text(1),f.\u0275\u0275elementEnd()),2&ee){const Y=ve.$implicit,ye=f.\u0275\u0275nextContext();f.\u0275\u0275styleProp("text-align",ye.justify),f.\u0275\u0275advance(1),f.\u0275\u0275textInterpolate1(" ",ye.dataAccessor(Y,ye.name)," ")}}let W=(()=>{class ee{}return ee.\u0275fac=function(Y){return new(Y||ee)},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[f.\u0275\u0275ProvidersFeature([{provide:l.k,useClass:l.eX}])]}),ee})(),De=(()=>{class ee extends Et{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return ee.\u0275fac=function(){let ve;return function(ye){return(ve||(ve=f.\u0275\u0275getInheritedFactory(ee)))(ye||ee)}}(),ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(Y,ye){2&Y&&f.\u0275\u0275classProp("mat-table-fixed-layout",ye.fixedLayout)},exportAs:["matTable"],features:[f.\u0275\u0275ProvidersFeature([{provide:l.k,useClass:l.yy},{provide:Et,useExisting:ee},{provide:lt,useExisting:ee},{provide:$e,useClass:et},{provide:x,useValue:null}]),f.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Pt,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Y,ye){1&Y&&(f.\u0275\u0275projectionDef(qe),f.\u0275\u0275projection(0),f.\u0275\u0275projection(1,1),f.\u0275\u0275elementContainer(2,0),f.\u0275\u0275elementContainer(3,1),f.\u0275\u0275elementContainer(4,2),f.\u0275\u0275elementContainer(5,3))},directives:[he,R,ie,z],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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}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}),ee})(),Ee=(()=>{class ee extends Me{}return ee.\u0275fac=function(){let ve;return function(ye){return(ve||(ve=f.\u0275\u0275getInheritedFactory(ee)))(ye||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","matCellDef",""]],features:[f.\u0275\u0275ProvidersFeature([{provide:Me,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})(),Q=(()=>{class ee extends xe{}return ee.\u0275fac=function(){let ve;return function(ye){return(ve||(ve=f.\u0275\u0275getInheritedFactory(ee)))(ye||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","matHeaderCellDef",""]],features:[f.\u0275\u0275ProvidersFeature([{provide:xe,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})(),J=(()=>{class ee extends Pe{}return ee.\u0275fac=function(){let ve;return function(ye){return(ve||(ve=f.\u0275\u0275getInheritedFactory(ee)))(ye||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","matFooterCellDef",""]],features:[f.\u0275\u0275ProvidersFeature([{provide:Pe,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})(),N=(()=>{class ee extends te{get name(){return this._name}set name(Y){this._setNameInput(Y)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return ee.\u0275fac=function(){let ve;return function(ye){return(ve||(ve=f.\u0275\u0275getInheritedFactory(ee)))(ye||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[f.\u0275\u0275ProvidersFeature([{provide:te,useExisting:ee},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})(),re=(()=>{class ee extends X{}return ee.\u0275fac=function(){let ve;return function(ye){return(ve||(ve=f.\u0275\u0275getInheritedFactory(ee)))(ye||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[f.\u0275\u0275InheritDefinitionFeature]}),ee})(),ot=(()=>{class ee extends le{}return ee.\u0275fac=function(){let ve;return function(ye){return(ve||(ve=f.\u0275\u0275getInheritedFactory(ee)))(ye||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[f.\u0275\u0275InheritDefinitionFeature]}),ee})(),_t=(()=>{class ee extends Ae{}return ee.\u0275fac=function(){let ve;return function(ye){return(ve||(ve=f.\u0275\u0275getInheritedFactory(ee)))(ye||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[f.\u0275\u0275InheritDefinitionFeature]}),ee})(),Ht=(()=>{class ee extends It{}return ee.\u0275fac=function(){let ve;return function(ye){return(ve||(ve=f.\u0275\u0275getInheritedFactory(ee)))(ye||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[f.\u0275\u0275ProvidersFeature([{provide:It,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})(),dn=(()=>{class ee extends ${}return ee.\u0275fac=function(){let ve;return function(ye){return(ve||(ve=f.\u0275\u0275getInheritedFactory(ee)))(ye||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[f.\u0275\u0275ProvidersFeature([{provide:$,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})(),cn=(()=>{class ee extends oe{}return ee.\u0275fac=function(){let ve;return function(ye){return(ve||(ve=f.\u0275\u0275getInheritedFactory(ee)))(ye||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[f.\u0275\u0275ProvidersFeature([{provide:oe,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})(),an=(()=>{class ee extends ue{}return ee.\u0275fac=function(){let ve;return function(ye){return(ve||(ve=f.\u0275\u0275getInheritedFactory(ee)))(ye||ee)}}(),ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[f.\u0275\u0275ProvidersFeature([{provide:ue,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Y,ye){1&Y&&f.\u0275\u0275elementContainer(0,0)},directives:[L],encapsulation:2}),ee})(),un=(()=>{class ee extends ae{}return ee.\u0275fac=function(){let ve;return function(ye){return(ve||(ve=f.\u0275\u0275getInheritedFactory(ee)))(ye||ee)}}(),ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[f.\u0275\u0275ProvidersFeature([{provide:ae,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Y,ye){1&Y&&f.\u0275\u0275elementContainer(0,0)},directives:[L],encapsulation:2}),ee})(),wn=(()=>{class ee extends fe{}return ee.\u0275fac=function(){let ve;return function(ye){return(ve||(ve=f.\u0275\u0275getInheritedFactory(ee)))(ye||ee)}}(),ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[f.\u0275\u0275ProvidersFeature([{provide:fe,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Y,ye){1&Y&&f.\u0275\u0275elementContainer(0,0)},directives:[L],encapsulation:2}),ee})(),yn=(()=>{class ee extends Fe{}return ee.\u0275fac=function(){let ve;return function(ye){return(ve||(ve=f.\u0275\u0275getInheritedFactory(ee)))(ye||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["ng-template","matNoDataRow",""]],features:[f.\u0275\u0275ProvidersFeature([{provide:Fe,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})(),mt=(()=>{class ee extends Nt{}return ee.\u0275fac=function(){let ve;return function(ye){return(ve||(ve=f.\u0275\u0275getInheritedFactory(ee)))(ye||ee)}}(),ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["mat-text-column"]],features:[f.\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(Y,ye){1&Y&&(f.\u0275\u0275elementContainerStart(0,0),f.\u0275\u0275template(1,V,2,3,"th",1),f.\u0275\u0275template(2,K,2,3,"td",2),f.\u0275\u0275elementContainerEnd())},directives:[N,Q,Ee,re,_t],encapsulation:2}),ee})(),Se=(()=>{class ee{}return ee.\u0275fac=function(Y){return new(Y||ee)},ee.\u0275mod=f.\u0275\u0275defineNgModule({type:ee}),ee.\u0275inj=f.\u0275\u0275defineInjector({imports:[[Qt,At.BQ],At.BQ]}),ee})();class ht extends l.o2{constructor(ve=[]){super(),this._renderData=new E.X([]),this._filter=new E.X(""),this._internalPageChanges=new D.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(Y,ye)=>{const Ke=Y[ye];if((0,o.t6)(Ke)){const yt=Number(Ke);return yt<9007199254740991?yt:Ke}return Ke},this.sortData=(Y,ye)=>{const Ke=ye.active,yt=ye.direction;return Ke&&""!=yt?Y.sort((Tt,we)=>{let Ie=this.sortingDataAccessor(Tt,Ke),pe=this.sortingDataAccessor(we,Ke);const Ve=typeof Ie,at=typeof pe;Ve!==at&&("number"===Ve&&(Ie+=""),"number"===at&&(pe+=""));let Ft=0;return null!=Ie&&null!=pe?Ie>pe?Ft=1:Ie<pe&&(Ft=-1):null!=Ie?Ft=1:null!=pe&&(Ft=-1),Ft*("asc"==yt?1:-1)}):Y},this.filterPredicate=(Y,ye)=>{const Ke=Object.keys(Y).reduce((Tt,we)=>Tt+Y[we]+"\u25ec","").toLowerCase(),yt=ye.trim().toLowerCase();return-1!=Ke.indexOf(yt)},this._data=new E.X(ve),this._updateChangeSubscription()}get data(){return this._data.value}set data(ve){this._data.next(ve),this._renderChangesSubscription||this._filterData(ve)}get filter(){return this._filter.value}set filter(ve){this._filter.next(ve),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(ve){this._sort=ve,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(ve){this._paginator=ve,this._updateChangeSubscription()}_updateChangeSubscription(){var ve;const Y=this._sort?(0,Lt.T)(this._sort.sortChange,this._sort.initialized):(0,S.of)(null),ye=this._paginator?(0,Lt.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,S.of)(null),yt=(0,jt.aj)([this._data,this._filter]).pipe((0,_n.U)(([Ie])=>this._filterData(Ie))),Tt=(0,jt.aj)([yt,Y]).pipe((0,_n.U)(([Ie])=>this._orderData(Ie))),we=(0,jt.aj)([Tt,ye]).pipe((0,_n.U)(([Ie])=>this._pageData(Ie)));null===(ve=this._renderChangesSubscription)||void 0===ve||ve.unsubscribe(),this._renderChangesSubscription=we.subscribe(Ie=>this._renderData.next(Ie))}_filterData(ve){return this.filteredData=null==this.filter||""===this.filter?ve:ve.filter(Y=>this.filterPredicate(Y,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(ve){return this.sort?this.sortData(ve.slice(),this.sort):ve}_pageData(ve){if(!this.paginator)return ve;const Y=this.paginator.pageIndex*this.paginator.pageSize;return ve.slice(Y,Y+this.paginator.pageSize)}_updatePaginator(ve){Promise.resolve().then(()=>{const Y=this.paginator;if(Y&&(Y.length=ve,Y.pageIndex>0)){const ye=Math.ceil(Y.length/Y.pageSize)-1||0,Ke=Math.min(Y.pageIndex,ye);Ke!==Y.pageIndex&&(Y.pageIndex=Ke,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var ve;null===(ve=this._renderChangesSubscription)||void 0===ve||ve.unsubscribe(),this._renderChangesSubscription=null}}class Rt extends ht{}},5939:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{MAT_TAB:()=>ae,MAT_TABS_CONFIG:()=>Ge,MAT_TAB_GROUP:()=>st,MatInkBar:()=>$,MatTab:()=>wt,MatTabBody:()=>q,MatTabBodyPortal:()=>ze,MatTabChangeEvent:()=>vt,MatTabContent:()=>L,MatTabGroup:()=>F,MatTabHeader:()=>Nt,MatTabLabel:()=>fe,MatTabLabelWrapper:()=>he,MatTabLink:()=>jt,MatTabNav:()=>Qt,MatTabsModule:()=>_n,_MAT_INK_BAR_POSITIONER:()=>Xe,_MatTabBodyBase:()=>He,_MatTabGroupBase:()=>x,_MatTabHeaderBase:()=>xt,_MatTabLinkBase:()=>Lt,_MatTabNavBase:()=>Ut,matTabsAnimations:()=>Ze,\u0275angular_material_src_material_tabs_tabs_a:()=>dt,\u0275angular_material_src_material_tabs_tabs_b:()=>ue,\u0275angular_material_src_material_tabs_tabs_c:()=>oe,\u0275angular_material_src_material_tabs_tabs_d:()=>Et});var o=d(9238),l=d(8553),f=d(7636),_=d(8583),a=d(7716),C=d(2458),w=d(6237),D=d(9765),g=d(826),E=d(6682),M=d(2759),S=d(5917),P=d(6797),B=d(7238),j=d(9761),se=d(7519),ce=d(6782),be=d(9490),Ue=d(521),lt=d(6461),Je=d(946),Me=d(5197);function xe(qe,Pt){1&qe&&a.\u0275\u0275projection(0)}const Pe=["*"];function Ne(qe,Pt){}const Ct=function(qe){return{animationDuration:qe}},te=function(qe,Pt){return{value:qe,params:Pt}},ge=["tabBodyWrapper"],X=["tabHeader"];function le(qe,Pt){}function Ae(qe,Pt){if(1&qe&&a.\u0275\u0275template(0,le,0,0,"ng-template",9),2&qe){const V=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275property("cdkPortalOutlet",V.templateLabel)}}function Ce(qe,Pt){if(1&qe&&a.\u0275\u0275text(0),2&qe){const V=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275textInterpolate(V.textLabel)}}function $e(qe,Pt){if(1&qe){const V=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",6),a.\u0275\u0275listener("click",function(){const W=a.\u0275\u0275restoreView(V),De=W.$implicit,Ee=W.index,Q=a.\u0275\u0275nextContext(),J=a.\u0275\u0275reference(1);return Q._handleClick(De,J,Ee)})("cdkFocusChange",function(W){const Ee=a.\u0275\u0275restoreView(V).index;return a.\u0275\u0275nextContext()._tabFocusChanged(W,Ee)}),a.\u0275\u0275elementStart(1,"div",7),a.\u0275\u0275template(2,Ae,1,1,"ng-template",8),a.\u0275\u0275template(3,Ce,1,1,"ng-template",8),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()}if(2&qe){const V=Pt.$implicit,K=Pt.index,W=a.\u0275\u0275nextContext();a.\u0275\u0275classProp("mat-tab-label-active",W.selectedIndex==K),a.\u0275\u0275property("id",W._getTabLabelId(K))("disabled",V.disabled)("matRippleDisabled",V.disabled||W.disableRipple),a.\u0275\u0275attribute("tabIndex",W._getTabIndex(V,K))("aria-posinset",K+1)("aria-setsize",W._tabs.length)("aria-controls",W._getTabContentId(K))("aria-selected",W.selectedIndex==K)("aria-label",V.ariaLabel||null)("aria-labelledby",!V.ariaLabel&&V.ariaLabelledby?V.ariaLabelledby:null),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",V.templateLabel),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!V.templateLabel)}}function et(qe,Pt){if(1&qe){const V=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"mat-tab-body",10),a.\u0275\u0275listener("_onCentered",function(){return a.\u0275\u0275restoreView(V),a.\u0275\u0275nextContext()._removeTabBodyWrapperHeight()})("_onCentering",function(W){return a.\u0275\u0275restoreView(V),a.\u0275\u0275nextContext()._setTabBodyWrapperHeight(W)}),a.\u0275\u0275elementEnd()}if(2&qe){const V=Pt.$implicit,K=Pt.index,W=a.\u0275\u0275nextContext();a.\u0275\u0275classProp("mat-tab-body-active",W.selectedIndex===K),a.\u0275\u0275property("id",W._getTabContentId(K))("content",V.content)("position",V.position)("origin",V.origin)("animationDuration",W.animationDuration),a.\u0275\u0275attribute("tabindex",null!=W.contentTabIndex&&W.selectedIndex===K?W.contentTabIndex:null)("aria-labelledby",W._getTabLabelId(K))}}const pt=["tabListContainer"],je=["tabList"],tt=["nextPaginator"],ut=["previousPaginator"],It=["mat-tab-nav-bar",""],Xe=new a.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:dt});function dt(){return Pt=>({left:Pt?(Pt.offsetLeft||0)+"px":"0",width:Pt?(Pt.offsetWidth||0)+"px":"0"})}let $=(()=>{class qe{constructor(V,K,W,De){this._elementRef=V,this._ngZone=K,this._inkBarPositioner=W,this._animationMode=De}alignToElement(V){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(V))}):this._setStyles(V)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(V){const K=this._inkBarPositioner(V),W=this._elementRef.nativeElement;W.style.left=K.left,W.style.width=K.width}}return qe.\u0275fac=function(V){return new(V||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(Xe),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(V,K){2&V&&a.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===K._animationMode)}}),qe})();const oe=new a.InjectionToken("MatTabContent");let L=(()=>{class qe{constructor(V){this.template=V}}return qe.\u0275fac=function(V){return new(V||qe)(a.\u0275\u0275directiveInject(a.TemplateRef))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,selectors:[["","matTabContent",""]],features:[a.\u0275\u0275ProvidersFeature([{provide:oe,useExisting:qe}])]}),qe})();const ue=new a.InjectionToken("MatTabLabel"),ae=new a.InjectionToken("MAT_TAB");let fe=(()=>{class qe extends f.ig{constructor(V,K,W){super(V,K),this._closestTab=W}}return qe.\u0275fac=function(V){return new(V||qe)(a.\u0275\u0275directiveInject(a.TemplateRef),a.\u0275\u0275directiveInject(a.ViewContainerRef),a.\u0275\u0275directiveInject(ae,8))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a.\u0275\u0275ProvidersFeature([{provide:ue,useExisting:qe}]),a.\u0275\u0275InheritDefinitionFeature]}),qe})();const Fe=(0,C.Id)(class{}),st=new a.InjectionToken("MAT_TAB_GROUP");let wt=(()=>{class qe extends Fe{constructor(V,K){super(),this._viewContainerRef=V,this._closestTabGroup=K,this.textLabel="",this._contentPortal=null,this._stateChanges=new D.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(V){this._setTemplateLabelInput(V)}get content(){return this._contentPortal}ngOnChanges(V){(V.hasOwnProperty("textLabel")||V.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new f.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(V){V&&V._closestTab===this&&(this._templateLabel=V)}}return qe.\u0275fac=function(V){return new(V||qe)(a.\u0275\u0275directiveInject(a.ViewContainerRef),a.\u0275\u0275directiveInject(st,8))},qe.\u0275cmp=a.\u0275\u0275defineComponent({type:qe,selectors:[["mat-tab"]],contentQueries:function(V,K,W){if(1&V&&(a.\u0275\u0275contentQuery(W,ue,5),a.\u0275\u0275contentQuery(W,oe,7,a.TemplateRef)),2&V){let De;a.\u0275\u0275queryRefresh(De=a.\u0275\u0275loadQuery())&&(K.templateLabel=De.first),a.\u0275\u0275queryRefresh(De=a.\u0275\u0275loadQuery())&&(K._explicitContent=De.first)}},viewQuery:function(V,K){if(1&V&&a.\u0275\u0275viewQuery(a.TemplateRef,7),2&V){let W;a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._implicitContent=W.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.\u0275\u0275ProvidersFeature([{provide:ae,useExisting:qe}]),a.\u0275\u0275InheritDefinitionFeature,a.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Pe,decls:1,vars:0,template:function(V,K){1&V&&(a.\u0275\u0275projectionDef(),a.\u0275\u0275template(0,xe,1,0,"ng-template"))},encapsulation:2}),qe})();const Ze={translateTab:(0,B.X$)("translateTab",[(0,B.SB)("center, void, left-origin-center, right-origin-center",(0,B.oB)({transform:"none"})),(0,B.SB)("left",(0,B.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,B.SB)("right",(0,B.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,B.eR)("* => left, * => right, left => center, right => center",(0,B.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,B.eR)("void => left-origin-center",[(0,B.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,B.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,B.eR)("void => right-origin-center",[(0,B.oB)({transform:"translate3d(100%, 0, 0)"}),(0,B.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let ze=(()=>{class qe extends f.Pl{constructor(V,K,W,De){super(V,K,De),this._host=W,this._centeringSub=g.w.EMPTY,this._leavingSub=g.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,j.O)(this._host._isCenterPosition(this._host._position))).subscribe(V=>{V&&!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 qe.\u0275fac=function(V){return new(V||qe)(a.\u0275\u0275directiveInject(a.ComponentFactoryResolver),a.\u0275\u0275directiveInject(a.ViewContainerRef),a.\u0275\u0275directiveInject((0,a.forwardRef)(()=>q)),a.\u0275\u0275directiveInject(_.DOCUMENT))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,selectors:[["","matTabBodyHost",""]],features:[a.\u0275\u0275InheritDefinitionFeature]}),qe})(),He=(()=>{class qe{constructor(V,K,W){this._elementRef=V,this._dir=K,this._dirChangeSubscription=g.w.EMPTY,this._translateTabComplete=new D.xQ,this._onCentering=new a.EventEmitter,this._beforeCentering=new a.EventEmitter,this._afterLeavingCenter=new a.EventEmitter,this._onCentered=new a.EventEmitter(!0),this.animationDuration="500ms",K&&(this._dirChangeSubscription=K.change.subscribe(De=>{this._computePositionAnimationState(De),W.markForCheck()})),this._translateTabComplete.pipe((0,se.x)((De,Ee)=>De.fromState===Ee.fromState&&De.toState===Ee.toState)).subscribe(De=>{this._isCenterPosition(De.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(De.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(V){this._positionIndex=V,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(V){const K=this._isCenterPosition(V.toState);this._beforeCentering.emit(K),K&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(V){return"center"==V||"left-origin-center"==V||"right-origin-center"==V}_computePositionAnimationState(V=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==V?"left":"right":this._positionIndex>0?"ltr"==V?"right":"left":"center"}_computePositionFromOrigin(V){const K=this._getLayoutDirection();return"ltr"==K&&V<=0||"rtl"==K&&V>0?"left-origin-center":"right-origin-center"}}return qe.\u0275fac=function(V){return new(V||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(Je.Is,8),a.\u0275\u0275directiveInject(a.ChangeDetectorRef))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),qe})(),q=(()=>{class qe extends He{constructor(V,K,W){super(V,K,W)}}return qe.\u0275fac=function(V){return new(V||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(Je.Is,8),a.\u0275\u0275directiveInject(a.ChangeDetectorRef))},qe.\u0275cmp=a.\u0275\u0275defineComponent({type:qe,selectors:[["mat-tab-body"]],viewQuery:function(V,K){if(1&V&&a.\u0275\u0275viewQuery(f.Pl,5),2&V){let W;a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._portalHost=W.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(V,K){1&V&&(a.\u0275\u0275elementStart(0,"div",0,1),a.\u0275\u0275listener("@translateTab.start",function(De){return K._onTranslateTabStarted(De)})("@translateTab.done",function(De){return K._translateTabComplete.next(De)}),a.\u0275\u0275template(2,Ne,0,0,"ng-template",2),a.\u0275\u0275elementEnd()),2&V&&a.\u0275\u0275property("@translateTab",a.\u0275\u0275pureFunction2(3,te,K._position,a.\u0275\u0275pureFunction1(1,Ct,K.animationDuration)))},directives:[ze],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:[Ze.translateTab]}}),qe})();const Ge=new a.InjectionToken("MAT_TABS_CONFIG");let ft=0;class vt{}const Ye=(0,C.pj)((0,C.Kr)(class{constructor(qe){this._elementRef=qe}}),"primary");let x=(()=>{class qe extends Ye{constructor(V,K,W,De){var Ee;super(V),this._changeDetectorRef=K,this._animationMode=De,this._tabs=new a.QueryList,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=g.w.EMPTY,this._tabLabelSubscription=g.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.EventEmitter,this.focusChange=new a.EventEmitter,this.animationDone=new a.EventEmitter,this.selectedTabChange=new a.EventEmitter(!0),this._groupId=ft++,this.animationDuration=W&&W.animationDuration?W.animationDuration:"500ms",this.disablePagination=!(!W||null==W.disablePagination)&&W.disablePagination,this.dynamicHeight=!(!W||null==W.dynamicHeight)&&W.dynamicHeight,this.contentTabIndex=null!==(Ee=null==W?void 0:W.contentTabIndex)&&void 0!==Ee?Ee:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(V){this._dynamicHeight=(0,be.Ig)(V)}get selectedIndex(){return this._selectedIndex}set selectedIndex(V){this._indexToSelect=(0,be.su)(V,null)}get animationDuration(){return this._animationDuration}set animationDuration(V){this._animationDuration=/^\d+$/.test(V)?V+"ms":V}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(V){this._contentTabIndex=(0,be.su)(V,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(V){const K=this._elementRef.nativeElement;K.classList.remove(`mat-background-${this.backgroundColor}`),V&&K.classList.add(`mat-background-${V}`),this._backgroundColor=V}ngAfterContentChecked(){const V=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=V){const K=null==this._selectedIndex;if(!K){this.selectedTabChange.emit(this._createChangeEvent(V));const W=this._tabBodyWrapper.nativeElement;W.style.minHeight=W.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((W,De)=>W.isActive=De===V),K||(this.selectedIndexChange.emit(V),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((K,W)=>{K.position=W-V,null!=this._selectedIndex&&0==K.position&&!K.origin&&(K.origin=V-this._selectedIndex)}),this._selectedIndex!==V&&(this._selectedIndex=V,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const K=this._tabs.toArray();for(let W=0;W<K.length;W++)if(K[W].isActive){this._indexToSelect=this._selectedIndex=W;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,j.O)(this._allTabs)).subscribe(V=>{this._tabs.reset(V.filter(K=>K._closestTabGroup===this||!K._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(V){const K=this._tabHeader;K&&(K.focusIndex=V)}_focusChanged(V){this.focusChange.emit(this._createChangeEvent(V))}_createChangeEvent(V){const K=new vt;return K.index=V,this._tabs&&this._tabs.length&&(K.tab=this._tabs.toArray()[V]),K}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,E.T)(...this._tabs.map(V=>V._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(V){return Math.min(this._tabs.length-1,Math.max(V||0,0))}_getTabLabelId(V){return`mat-tab-label-${this._groupId}-${V}`}_getTabContentId(V){return`mat-tab-content-${this._groupId}-${V}`}_setTabBodyWrapperHeight(V){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const K=this._tabBodyWrapper.nativeElement;K.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(K.style.height=V+"px")}_removeTabBodyWrapperHeight(){const V=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=V.clientHeight,V.style.height="",this.animationDone.emit()}_handleClick(V,K,W){V.disabled||(this.selectedIndex=K.focusIndex=W)}_getTabIndex(V,K){return V.disabled?null:this.selectedIndex===K?0:-1}_tabFocusChanged(V,K){V&&"mouse"!==V&&"touch"!==V&&(this._tabHeader.focusIndex=K)}}return qe.\u0275fac=function(V){return new(V||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Ge,8),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.\u0275\u0275InheritDefinitionFeature]}),qe})(),F=(()=>{class qe extends x{constructor(V,K,W,De){super(V,K,W,De)}}return qe.\u0275fac=function(V){return new(V||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Ge,8),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275cmp=a.\u0275\u0275defineComponent({type:qe,selectors:[["mat-tab-group"]],contentQueries:function(V,K,W){if(1&V&&a.\u0275\u0275contentQuery(W,wt,5),2&V){let De;a.\u0275\u0275queryRefresh(De=a.\u0275\u0275loadQuery())&&(K._allTabs=De)}},viewQuery:function(V,K){if(1&V&&(a.\u0275\u0275viewQuery(ge,5),a.\u0275\u0275viewQuery(X,5)),2&V){let W;a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabBodyWrapper=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabHeader=W.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(V,K){2&V&&a.\u0275\u0275classProp("mat-tab-group-dynamic-height",K.dynamicHeight)("mat-tab-group-inverted-header","below"===K.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a.\u0275\u0275ProvidersFeature([{provide:st,useExisting:qe}]),a.\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(V,K){1&V&&(a.\u0275\u0275elementStart(0,"mat-tab-header",0,1),a.\u0275\u0275listener("indexFocused",function(De){return K._focusChanged(De)})("selectFocusedIndex",function(De){return K.selectedIndex=De}),a.\u0275\u0275template(2,$e,4,14,"div",2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(3,"div",3,4),a.\u0275\u0275template(5,et,1,9,"mat-tab-body",5),a.\u0275\u0275elementEnd()),2&V&&(a.\u0275\u0275property("selectedIndex",K.selectedIndex||0)("disableRipple",K.disableRipple)("disablePagination",K.disablePagination),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",K._tabs),a.\u0275\u0275advance(1),a.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===K._animationMode),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",K._tabs))},directives:function(){return[Nt,_.NgForOf,he,C.wG,o.kH,_.NgIf,f.Pl,q]},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}),qe})();const R=(0,C.Id)(class{});let he=(()=>{class qe extends R{constructor(V){super(),this.elementRef=V}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return qe.\u0275fac=function(V){return new(V||qe)(a.\u0275\u0275directiveInject(a.ElementRef))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(V,K){2&V&&(a.\u0275\u0275attribute("aria-disabled",!!K.disabled),a.\u0275\u0275classProp("mat-tab-disabled",K.disabled))},inputs:{disabled:"disabled"},features:[a.\u0275\u0275InheritDefinitionFeature]}),qe})();const z=(0,Ue.i$)({passive:!0});let Et=(()=>{class qe{constructor(V,K,W,De,Ee,Q,J){this._elementRef=V,this._changeDetectorRef=K,this._viewportRuler=W,this._dir=De,this._ngZone=Ee,this._platform=Q,this._animationMode=J,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new D.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new D.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.EventEmitter,this.indexFocused=new a.EventEmitter,Ee.runOutsideAngular(()=>{(0,M.R)(V.nativeElement,"mouseleave").pipe((0,ce.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(V){V=(0,be.su)(V),this._selectedIndex!=V&&(this._selectedIndexChanged=!0,this._selectedIndex=V,this._keyManager&&this._keyManager.updateActiveItem(V))}ngAfterViewInit(){(0,M.R)(this._previousPaginator.nativeElement,"touchstart",z).pipe((0,ce.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,M.R)(this._nextPaginator.nativeElement,"touchstart",z).pipe((0,ce.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const V=this._dir?this._dir.change:(0,S.of)("ltr"),K=this._viewportRuler.change(150),W=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new o.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(W):W(),(0,E.T)(V,K,this._items.changes).pipe((0,ce.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(W)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,ce.R)(this._destroyed)).subscribe(De=>{this.indexFocused.emit(De),this._setTabFocus(De)})}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(V){if(!(0,lt.Vb)(V))switch(V.keyCode){case lt.K5:case lt.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(V));break;default:this._keyManager.onKeydown(V)}}_onContentChanges(){const V=this._elementRef.nativeElement.textContent;V!==this._currentTextContent&&(this._currentTextContent=V||"",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(V){!this._isValidIndex(V)||this.focusIndex===V||!this._keyManager||this._keyManager.setActiveItem(V)}_isValidIndex(V){if(!this._items)return!0;const K=this._items?this._items.toArray()[V]:null;return!!K&&!K.disabled}_setTabFocus(V){if(this._showPaginationControls&&this._scrollToLabel(V),this._items&&this._items.length){this._items.toArray()[V].focus();const K=this._tabListContainer.nativeElement;K.scrollLeft="ltr"==this._getLayoutDirection()?0:K.scrollWidth-K.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const V=this.scrollDistance,K="ltr"===this._getLayoutDirection()?-V:V;this._tabList.nativeElement.style.transform=`translateX(${Math.round(K)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(V){this._scrollTo(V)}_scrollHeader(V){return this._scrollTo(this._scrollDistance+("before"==V?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(V){this._stopInterval(),this._scrollHeader(V)}_scrollToLabel(V){if(this.disablePagination)return;const K=this._items?this._items.toArray()[V]:null;if(!K)return;const W=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:De,offsetWidth:Ee}=K.elementRef.nativeElement;let Q,J;"ltr"==this._getLayoutDirection()?(Q=De,J=Q+Ee):(J=this._tabList.nativeElement.offsetWidth-De,Q=J-Ee);const N=this.scrollDistance,re=this.scrollDistance+W;Q<N?this.scrollDistance-=N-Q+60:J>re&&(this.scrollDistance+=J-re+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const V=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;V||(this.scrollDistance=0),V!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=V}}_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._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const V=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,K=V?V.elementRef.nativeElement:null;K?this._inkBar.alignToElement(K):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(V,K){K&&null!=K.button&&0!==K.button||(this._stopInterval(),(0,P.H)(650,100).pipe((0,ce.R)((0,E.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:W,distance:De}=this._scrollHeader(V);(0===De||De>=W)&&this._stopInterval()}))}_scrollTo(V){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const K=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(K,V)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:K,distance:this._scrollDistance}}}return qe.\u0275fac=function(V){return new(V||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Me.rL),a.\u0275\u0275directiveInject(Je.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(Ue.t4),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,inputs:{disablePagination:"disablePagination"}}),qe})(),xt=(()=>{class qe extends Et{constructor(V,K,W,De,Ee,Q,J){super(V,K,W,De,Ee,Q,J),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(V){this._disableRipple=(0,be.Ig)(V)}_itemSelected(V){V.preventDefault()}}return qe.\u0275fac=function(V){return new(V||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Me.rL),a.\u0275\u0275directiveInject(Je.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(Ue.t4),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,inputs:{disableRipple:"disableRipple"},features:[a.\u0275\u0275InheritDefinitionFeature]}),qe})(),Nt=(()=>{class qe extends xt{constructor(V,K,W,De,Ee,Q,J){super(V,K,W,De,Ee,Q,J)}}return qe.\u0275fac=function(V){return new(V||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Me.rL),a.\u0275\u0275directiveInject(Je.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(Ue.t4),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275cmp=a.\u0275\u0275defineComponent({type:qe,selectors:[["mat-tab-header"]],contentQueries:function(V,K,W){if(1&V&&a.\u0275\u0275contentQuery(W,he,4),2&V){let De;a.\u0275\u0275queryRefresh(De=a.\u0275\u0275loadQuery())&&(K._items=De)}},viewQuery:function(V,K){if(1&V&&(a.\u0275\u0275viewQuery($,7),a.\u0275\u0275viewQuery(pt,7),a.\u0275\u0275viewQuery(je,7),a.\u0275\u0275viewQuery(tt,5),a.\u0275\u0275viewQuery(ut,5)),2&V){let W;a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._inkBar=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabListContainer=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabList=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._nextPaginator=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._previousPaginator=W.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(V,K){2&V&&a.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",K._showPaginationControls)("mat-tab-header-rtl","rtl"==K._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Pe,decls:13,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"],["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(V,K){1&V&&(a.\u0275\u0275projectionDef(),a.\u0275\u0275elementStart(0,"div",0,1),a.\u0275\u0275listener("click",function(){return K._handlePaginatorClick("before")})("mousedown",function(De){return K._handlePaginatorPress("before",De)})("touchend",function(){return K._stopInterval()}),a.\u0275\u0275element(2,"div",2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(3,"div",3,4),a.\u0275\u0275listener("keydown",function(De){return K._handleKeydown(De)}),a.\u0275\u0275elementStart(5,"div",5,6),a.\u0275\u0275listener("cdkObserveContent",function(){return K._onContentChanges()}),a.\u0275\u0275elementStart(7,"div",7),a.\u0275\u0275projection(8),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(9,"mat-ink-bar"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(10,"div",8,9),a.\u0275\u0275listener("mousedown",function(De){return K._handlePaginatorPress("after",De)})("click",function(){return K._handlePaginatorClick("after")})("touchend",function(){return K._stopInterval()}),a.\u0275\u0275element(12,"div",2),a.\u0275\u0275elementEnd()),2&V&&(a.\u0275\u0275classProp("mat-tab-header-pagination-disabled",K._disableScrollBefore),a.\u0275\u0275property("matRippleDisabled",K._disableScrollBefore||K.disableRipple),a.\u0275\u0275advance(5),a.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===K._animationMode),a.\u0275\u0275advance(5),a.\u0275\u0275classProp("mat-tab-header-pagination-disabled",K._disableScrollAfter),a.\u0275\u0275property("matRippleDisabled",K._disableScrollAfter||K.disableRipple))},directives:[C.wG,l.wD,$],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;-ms-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;content:"";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}),qe})(),Ut=(()=>{class qe extends Et{constructor(V,K,W,De,Ee,Q,J){super(V,De,Ee,K,W,Q,J),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(V){const K=this._elementRef.nativeElement.classList;K.remove(`mat-background-${this.backgroundColor}`),V&&K.add(`mat-background-${V}`),this._backgroundColor=V}get disableRipple(){return this._disableRipple}set disableRipple(V){this._disableRipple=(0,be.Ig)(V)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,j.O)(null),(0,ce.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const V=this._items.toArray();for(let K=0;K<V.length;K++)if(V[K].active)return this.selectedIndex=K,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}return qe.\u0275fac=function(V){return new(V||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(Je.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Me.rL),a.\u0275\u0275directiveInject(Ue.t4),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,inputs:{color:"color",backgroundColor:"backgroundColor",disableRipple:"disableRipple"},features:[a.\u0275\u0275InheritDefinitionFeature]}),qe})(),Qt=(()=>{class qe extends Ut{constructor(V,K,W,De,Ee,Q,J){super(V,K,W,De,Ee,Q,J)}}return qe.\u0275fac=function(V){return new(V||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(Je.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Me.rL),a.\u0275\u0275directiveInject(Ue.t4),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275cmp=a.\u0275\u0275defineComponent({type:qe,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(V,K,W){if(1&V&&a.\u0275\u0275contentQuery(W,jt,5),2&V){let De;a.\u0275\u0275queryRefresh(De=a.\u0275\u0275loadQuery())&&(K._items=De)}},viewQuery:function(V,K){if(1&V&&(a.\u0275\u0275viewQuery($,7),a.\u0275\u0275viewQuery(pt,7),a.\u0275\u0275viewQuery(je,7),a.\u0275\u0275viewQuery(tt,5),a.\u0275\u0275viewQuery(ut,5)),2&V){let W;a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._inkBar=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabListContainer=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabList=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._nextPaginator=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._previousPaginator=W.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(V,K){2&V&&a.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",K._showPaginationControls)("mat-tab-header-rtl","rtl"==K._getLayoutDirection())("mat-primary","warn"!==K.color&&"accent"!==K.color)("mat-accent","accent"===K.color)("mat-warn","warn"===K.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.\u0275\u0275InheritDefinitionFeature],attrs:It,ngContentSelectors:Pe,decls:13,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"],["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(V,K){1&V&&(a.\u0275\u0275projectionDef(),a.\u0275\u0275elementStart(0,"div",0,1),a.\u0275\u0275listener("click",function(){return K._handlePaginatorClick("before")})("mousedown",function(De){return K._handlePaginatorPress("before",De)})("touchend",function(){return K._stopInterval()}),a.\u0275\u0275element(2,"div",2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(3,"div",3,4),a.\u0275\u0275listener("keydown",function(De){return K._handleKeydown(De)}),a.\u0275\u0275elementStart(5,"div",5,6),a.\u0275\u0275listener("cdkObserveContent",function(){return K._onContentChanges()}),a.\u0275\u0275elementStart(7,"div",7),a.\u0275\u0275projection(8),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(9,"mat-ink-bar"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(10,"div",8,9),a.\u0275\u0275listener("mousedown",function(De){return K._handlePaginatorPress("after",De)})("click",function(){return K._handlePaginatorClick("after")})("touchend",function(){return K._stopInterval()}),a.\u0275\u0275element(12,"div",2),a.\u0275\u0275elementEnd()),2&V&&(a.\u0275\u0275classProp("mat-tab-header-pagination-disabled",K._disableScrollBefore),a.\u0275\u0275property("matRippleDisabled",K._disableScrollBefore||K.disableRipple),a.\u0275\u0275advance(5),a.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===K._animationMode),a.\u0275\u0275advance(5),a.\u0275\u0275classProp("mat-tab-header-pagination-disabled",K._disableScrollAfter),a.\u0275\u0275property("matRippleDisabled",K._disableScrollAfter||K.disableRipple))},directives:[C.wG,l.wD,$],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;-ms-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;content:"";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}),qe})();const At=(0,C.sb)((0,C.Kr)((0,C.Id)(class{})));let Lt=(()=>{class qe extends At{constructor(V,K,W,De,Ee,Q){super(),this._tabNavBar=V,this.elementRef=K,this._focusMonitor=Ee,this._isActive=!1,this.rippleConfig=W||{},this.tabIndex=parseInt(De)||0,"NoopAnimations"===Q&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(V){(0,be.Ig)(V)!==this._isActive&&(this._isActive=V,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 qe.\u0275fac=function(V){return new(V||qe)(a.\u0275\u0275directiveInject(Ut),a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(C.Y2,8),a.\u0275\u0275injectAttribute("tabindex"),a.\u0275\u0275directiveInject(o.tE),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,inputs:{active:"active"},features:[a.\u0275\u0275InheritDefinitionFeature]}),qe})(),jt=(()=>{class qe extends Lt{constructor(V,K,W,De,Ee,Q,J,N){super(V,K,Ee,Q,J,N),this._tabLinkRipple=new C.IR(this,W,K,De),this._tabLinkRipple.setupTriggerEvents(K.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return qe.\u0275fac=function(V){return new(V||qe)(a.\u0275\u0275directiveInject(Qt),a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(Ue.t4),a.\u0275\u0275directiveInject(C.Y2,8),a.\u0275\u0275injectAttribute("tabindex"),a.\u0275\u0275directiveInject(o.tE),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(V,K){1&V&&a.\u0275\u0275listener("focus",function(){return K._handleFocus()}),2&V&&(a.\u0275\u0275attribute("aria-current",K.active?"page":null)("aria-disabled",K.disabled)("tabIndex",K.tabIndex),a.\u0275\u0275classProp("mat-tab-disabled",K.disabled)("mat-tab-label-active",K.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.\u0275\u0275InheritDefinitionFeature]}),qe})(),_n=(()=>{class qe{}return qe.\u0275fac=function(V){return new(V||qe)},qe.\u0275mod=a.\u0275\u0275defineNgModule({type:qe}),qe.\u0275inj=a.\u0275\u0275defineInjector({imports:[[_.CommonModule,C.BQ,f.eL,C.si,l.Q8,o.rt],C.BQ]}),qe})()},1436:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{MAT_TOOLTIP_DEFAULT_OPTIONS:()=>te,MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY:()=>ge,MAT_TOOLTIP_SCROLL_STRATEGY:()=>Pe,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY:()=>Ne,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>Ct,MatTooltip:()=>le,MatTooltipModule:()=>$e,SCROLL_THROTTLE_MS:()=>be,TOOLTIP_PANEL_CLASS:()=>Ue,TooltipComponent:()=>Ce,_MatTooltipBase:()=>X,_TooltipComponentBase:()=>Ae,getMatTooltipInvalidPositionError:()=>xe,matTooltipAnimations:()=>ce});var o=d(625),l=d(9238),f=d(8583),_=d(7716),a=d(2458),C=d(5197),w=d(9490),D=d(6461),g=d(5072),E=d(521),M=d(7636),S=d(9765),P=d(6782),B=d(5257),j=d(7238),se=d(946);const ce={tooltipState:(0,j.X$)("state",[(0,j.SB)("initial, void, hidden",(0,j.oB)({opacity:0,transform:"scale(0)"})),(0,j.SB)("visible",(0,j.oB)({transform:"scale(1)"})),(0,j.eR)("* => visible",(0,j.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,j.F4)([(0,j.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,j.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,j.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,j.eR)("* => hidden",(0,j.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,j.oB)({opacity:0})))])},be=20,Ue="mat-tooltip-panel",lt="tooltip-panel",Je=(0,E.i$)({passive:!0});function xe(et){return Error(`Tooltip position "${et}" is invalid.`)}const Pe=new _.InjectionToken("mat-tooltip-scroll-strategy");function Ne(et){return()=>et.scrollStrategies.reposition({scrollThrottle:be})}const Ct={provide:Pe,deps:[o.aV],useFactory:Ne},te=new _.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:ge});function ge(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}let X=(()=>{class et{constructor(je,tt,ut,It,Xe,dt,$,oe,L,ue,ae,fe){this._overlay=je,this._elementRef=tt,this._scrollDispatcher=ut,this._viewContainerRef=It,this._ngZone=Xe,this._platform=dt,this._ariaDescriber=$,this._focusMonitor=oe,this._dir=ue,this._defaultOptions=ae,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 S.xQ,this._handleKeydown=Fe=>{this._isTooltipVisible()&&Fe.keyCode===D.hY&&!(0,D.Vb)(Fe)&&(Fe.preventDefault(),Fe.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=L,this._document=fe,ae&&(ae.position&&(this.position=ae.position),ae.touchGestures&&(this.touchGestures=ae.touchGestures)),ue.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),Xe.runOutsideAngular(()=>{tt.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(je){var tt;je!==this._position&&(this._position=je,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(tt=this._tooltipInstance)||void 0===tt||tt.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(je){this._disabled=(0,w.Ig)(je),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(je){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=je?String(je).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(je){this._tooltipClass=je,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,P.R)(this._destroyed)).subscribe(je=>{je?"keyboard"===je&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const je=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),je.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([tt,ut])=>{je.removeEventListener(tt,ut,Je)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(je,this.message,"tooltip"),this._focusMonitor.stopMonitoring(je)}show(je=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const tt=this._createOverlay();this._detach(),this._portal=this._portal||new M.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=tt.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,P.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(je)}hide(je=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(je)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const je=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),tt=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(je);return tt.positionChanges.pipe((0,P.R)(this._destroyed)).subscribe(ut=>{this._updateCurrentPositionClass(ut.connectionPair),this._tooltipInstance&&ut.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:tt,panelClass:`${this._cssClassPrefix}-${lt}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,P.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,P.R)(this._destroyed)).subscribe(()=>{var ut;return null===(ut=this._tooltipInstance)||void 0===ut?void 0:ut._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(je){const tt=je.getConfig().positionStrategy,ut=this._getOrigin(),It=this._getOverlayPosition();tt.withPositions([this._addOffset(Object.assign(Object.assign({},ut.main),It.main)),this._addOffset(Object.assign(Object.assign({},ut.fallback),It.fallback))])}_addOffset(je){return je}_getOrigin(){const je=!this._dir||"ltr"==this._dir.value,tt=this.position;let ut;"above"==tt||"below"==tt?ut={originX:"center",originY:"above"==tt?"top":"bottom"}:"before"==tt||"left"==tt&&je||"right"==tt&&!je?ut={originX:"start",originY:"center"}:("after"==tt||"right"==tt&&je||"left"==tt&&!je)&&(ut={originX:"end",originY:"center"});const{x:It,y:Xe}=this._invertPosition(ut.originX,ut.originY);return{main:ut,fallback:{originX:It,originY:Xe}}}_getOverlayPosition(){const je=!this._dir||"ltr"==this._dir.value,tt=this.position;let ut;"above"==tt?ut={overlayX:"center",overlayY:"bottom"}:"below"==tt?ut={overlayX:"center",overlayY:"top"}:"before"==tt||"left"==tt&&je||"right"==tt&&!je?ut={overlayX:"end",overlayY:"center"}:("after"==tt||"right"==tt&&je||"left"==tt&&!je)&&(ut={overlayX:"start",overlayY:"center"});const{x:It,y:Xe}=this._invertPosition(ut.overlayX,ut.overlayY);return{main:ut,fallback:{overlayX:It,overlayY:Xe}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,B.q)(1),(0,P.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(je){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=je,this._tooltipInstance._markForCheck())}_invertPosition(je,tt){return"above"===this.position||"below"===this.position?"top"===tt?tt="bottom":"bottom"===tt&&(tt="top"):"end"===je?je="start":"start"===je&&(je="end"),{x:je,y:tt}}_updateCurrentPositionClass(je){const{overlayY:tt,originX:ut,originY:It}=je;let Xe;if(Xe="center"===tt?this._dir&&"rtl"===this._dir.value?"end"===ut?"left":"right":"start"===ut?"left":"right":"bottom"===tt&&"top"===It?"above":"below",Xe!==this._currentPosition){const dt=this._overlayRef;if(dt){const $=`${this._cssClassPrefix}-${lt}-`;dt.removePanelClass($+this._currentPosition),dt.addPanelClass($+Xe)}this._currentPosition=Xe}}_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 je=[];if(this._platformSupportsMouseEvents())je.push(["mouseleave",()=>this.hide()],["wheel",tt=>this._wheelListener(tt)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const tt=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};je.push(["touchend",tt],["touchcancel",tt])}this._addListeners(je),this._passiveListeners.push(...je)}_addListeners(je){je.forEach(([tt,ut])=>{this._elementRef.nativeElement.addEventListener(tt,ut,Je)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(je){if(this._isTooltipVisible()){const tt=this._document.elementFromPoint(je.clientX,je.clientY),ut=this._elementRef.nativeElement;tt!==ut&&!ut.contains(tt)&&this.hide()}}_disableNativeGesturesIfNecessary(){const je=this.touchGestures;if("off"!==je){const tt=this._elementRef.nativeElement,ut=tt.style;("on"===je||"INPUT"!==tt.nodeName&&"TEXTAREA"!==tt.nodeName)&&(ut.userSelect=ut.msUserSelect=ut.webkitUserSelect=ut.MozUserSelect="none"),("on"===je||!tt.draggable)&&(ut.webkitUserDrag="none"),ut.touchAction="none",ut.webkitTapHighlightColor="transparent"}}}return et.\u0275fac=function(je){return new(je||et)(_.\u0275\u0275directiveInject(o.aV),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(C.mF),_.\u0275\u0275directiveInject(_.ViewContainerRef),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(E.t4),_.\u0275\u0275directiveInject(l.$s),_.\u0275\u0275directiveInject(l.tE),_.\u0275\u0275directiveInject(void 0),_.\u0275\u0275directiveInject(se.Is),_.\u0275\u0275directiveInject(void 0),_.\u0275\u0275directiveInject(f.DOCUMENT))},et.\u0275dir=_.\u0275\u0275defineDirective({type:et,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),et})(),le=(()=>{class et extends X{constructor(je,tt,ut,It,Xe,dt,$,oe,L,ue,ae,fe){super(je,tt,ut,It,Xe,dt,$,oe,L,ue,ae,fe),this._tooltipComponent=Ce}}return et.\u0275fac=function(je){return new(je||et)(_.\u0275\u0275directiveInject(o.aV),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(C.mF),_.\u0275\u0275directiveInject(_.ViewContainerRef),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(E.t4),_.\u0275\u0275directiveInject(l.$s),_.\u0275\u0275directiveInject(l.tE),_.\u0275\u0275directiveInject(Pe),_.\u0275\u0275directiveInject(se.Is,8),_.\u0275\u0275directiveInject(te,8),_.\u0275\u0275directiveInject(f.DOCUMENT))},et.\u0275dir=_.\u0275\u0275defineDirective({type:et,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[_.\u0275\u0275InheritDefinitionFeature]}),et})(),Ae=(()=>{class et{constructor(je){this._changeDetectorRef=je,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new S.xQ}show(je){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},je)}hide(je){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},je)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(je){const tt=je.toState;"hidden"===tt&&!this.isVisible()&&this._onHide.next(),("visible"===tt||"hidden"===tt)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return et.\u0275fac=function(je){return new(je||et)(_.\u0275\u0275directiveInject(_.ChangeDetectorRef))},et.\u0275dir=_.\u0275\u0275defineDirective({type:et}),et})(),Ce=(()=>{class et extends Ae{constructor(je,tt){super(je),this._breakpointObserver=tt,this._isHandset=this._breakpointObserver.observe(g.Breakpoints.Handset)}}return et.\u0275fac=function(je){return new(je||et)(_.\u0275\u0275directiveInject(_.ChangeDetectorRef),_.\u0275\u0275directiveInject(g.BreakpointObserver))},et.\u0275cmp=_.\u0275\u0275defineComponent({type:et,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(je,tt){2&je&&_.\u0275\u0275styleProp("zoom","visible"===tt._visibility?1:null)},features:[_.\u0275\u0275InheritDefinitionFeature],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(je,tt){if(1&je&&(_.\u0275\u0275elementStart(0,"div",0),_.\u0275\u0275listener("@state.start",function(){return tt._animationStart()})("@state.done",function(It){return tt._animationDone(It)}),_.\u0275\u0275pipe(1,"async"),_.\u0275\u0275text(2),_.\u0275\u0275elementEnd()),2&je){let ut;_.\u0275\u0275classProp("mat-tooltip-handset",null==(ut=_.\u0275\u0275pipeBind1(1,5,tt._isHandset))?null:ut.matches),_.\u0275\u0275property("ngClass",tt.tooltipClass)("@state",tt._visibility),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(tt.message)}},directives:[f.NgClass],pipes:[f.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:[ce.tooltipState]},changeDetection:0}),et})(),$e=(()=>{class et{}return et.\u0275fac=function(je){return new(je||et)},et.\u0275mod=_.\u0275\u0275defineNgModule({type:et}),et.\u0275inj=_.\u0275\u0275defineInjector({providers:[Ct],imports:[[l.rt,f.CommonModule,o.U8,a.BQ],a.BQ,C.ZD]}),et})()},6237:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{ANIMATION_MODULE_TYPE:()=>pn,BrowserAnimationsModule:()=>yo,NoopAnimationsModule:()=>Vi,\u0275AnimationRenderer:()=>_o,\u0275AnimationRendererFactory:()=>Yt,\u0275BrowserAnimationBuilder:()=>Tn,\u0275BrowserAnimationFactory:()=>Ln,\u0275InjectableAnimationEngine:()=>Rs,\u0275angular_packages_platform_browser_animations_animations_a:()=>ks,\u0275angular_packages_platform_browser_animations_animations_b:()=>Fs,\u0275angular_packages_platform_browser_animations_animations_c:()=>Mt,\u0275angular_packages_platform_browser_animations_animations_d:()=>kn,\u0275angular_packages_platform_browser_animations_animations_e:()=>Fo,\u0275angular_packages_platform_browser_animations_animations_f:()=>io});var o=d(7716),l=d(9075),f=d(7238);function _(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function C(G){switch(G.length){case 0:return new f.ZN;case 1:return G[0];default:return new f.ZE(G)}}function w(G,h,p,I,Z={},me={}){const Te=[],ke=[];let rt=-1,bt=null;if(I.forEach(kt=>{const Vt=kt.offset,nn=Vt==rt,mn=nn&&bt||{};Object.keys(kt).forEach(Gt=>{let en=Gt,hn=kt[Gt];if("offset"!==Gt)switch(en=h.normalizePropertyName(en,Te),hn){case f.k1:hn=Z[Gt];break;case f.l3:hn=me[Gt];break;default:hn=h.normalizeStyleValue(Gt,en,hn,Te)}mn[en]=hn}),nn||ke.push(mn),bt=mn,rt=Vt}),Te.length){const kt="\n - ";throw new Error(`Unable to animate due to the following errors:${kt}${Te.join(kt)}`)}return ke}function D(G,h,p,I){switch(h){case"start":G.onStart(()=>I(p&&g(p,"start",G)));break;case"done":G.onDone(()=>I(p&&g(p,"done",G)));break;case"destroy":G.onDestroy(()=>I(p&&g(p,"destroy",G)))}}function g(G,h,p){const I=p.totalTime,me=E(G.element,G.triggerName,G.fromState,G.toState,h||G.phaseName,null==I?G.totalTime:I,!!p.disabled),Te=G._data;return null!=Te&&(me._data=Te),me}function E(G,h,p,I,Z="",me=0,Te){return{element:G,triggerName:h,fromState:p,toState:I,phaseName:Z,totalTime:me,disabled:!!Te}}function M(G,h,p){let I;return G instanceof Map?(I=G.get(h),I||G.set(h,I=p)):(I=G[h],I||(I=G[h]=p)),I}function S(G){const h=G.indexOf(":");return[G.substring(1,h),G.substr(h+1)]}let P=(G,h)=>!1,j=(G,h)=>!1,ce=(G,h,p)=>[];const Ue=a();(Ue||"undefined"!=typeof Element)&&(P=_()?(G,h)=>{for(;h&&h!==document.documentElement;){if(h===G)return!0;h=h.parentNode||h.host}return!1}:(G,h)=>G.contains(h),j=(()=>{if(Ue||Element.prototype.matches)return(G,h)=>G.matches(h);{const G=Element.prototype,h=G.matchesSelector||G.mozMatchesSelector||G.msMatchesSelector||G.oMatchesSelector||G.webkitMatchesSelector;return h?(p,I)=>h.apply(p,[I]):j}})(),ce=(G,h,p)=>{let I=[];if(p){const Z=G.querySelectorAll(h);for(let me=0;me<Z.length;me++)I.push(Z[me])}else{const Z=G.querySelector(h);Z&&I.push(Z)}return I});let Je=null,Me=!1;function xe(G){Je||(Je=("undefined"!=typeof document?document.body:null)||{},Me=!!Je.style&&"WebkitAppearance"in Je.style);let h=!0;return Je.style&&!function(G){return"ebkit"==G.substring(1,6)}(G)&&(h=G in Je.style,!h&&Me&&(h="Webkit"+G.charAt(0).toUpperCase()+G.substr(1)in Je.style)),h}const Ne=j,Ct=P,te=ce;function ge(G){const h={};return Object.keys(G).forEach(p=>{const I=p.replace(/([a-z])([A-Z])/g,"$1-$2");h[I]=G[p]}),h}let X=(()=>{class G{validateStyleProperty(p){return xe(p)}matchesElement(p,I){return Ne(p,I)}containsElement(p,I){return Ct(p,I)}query(p,I,Z){return te(p,I,Z)}computeStyle(p,I,Z){return Z||""}animate(p,I,Z,me,Te,ke=[],rt){return new f.ZN(Z,me)}}return G.\u0275fac=function(p){return new(p||G)},G.\u0275prov=o.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})(),le=(()=>{class G{}return G.NOOP=new X,G})();const et="ng-enter",pt="ng-leave",ut="ng-trigger",It=".ng-trigger",Xe="ng-animating",dt=".ng-animating";function $(G){if("number"==typeof G)return G;const h=G.match(/^(-?[\.\d]+)(m?s)/);return!h||h.length<2?0:oe(parseFloat(h[1]),h[2])}function oe(G,h){switch(h){case"s":return 1e3*G;default:return G}}function L(G,h,p){return G.hasOwnProperty("duration")?G:function(G,h,p){let Z,me=0,Te="";if("string"==typeof G){const ke=G.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ke)return h.push(`The provided timing value "${G}" is invalid.`),{duration:0,delay:0,easing:""};Z=oe(parseFloat(ke[1]),ke[2]);const rt=ke[3];null!=rt&&(me=oe(parseFloat(rt),ke[4]));const bt=ke[5];bt&&(Te=bt)}else Z=G;if(!p){let ke=!1,rt=h.length;Z<0&&(h.push("Duration values below 0 are not allowed for this animation step."),ke=!0),me<0&&(h.push("Delay values below 0 are not allowed for this animation step."),ke=!0),ke&&h.splice(rt,0,`The provided timing value "${G}" is invalid.`)}return{duration:Z,delay:me,easing:Te}}(G,h,p)}function ae(G,h={}){return Object.keys(G).forEach(p=>{h[p]=G[p]}),h}function Fe(G,h,p={}){if(h)for(let I in G)p[I]=G[I];else ae(G,p);return p}function st(G,h,p){return p?h+":"+p+";":""}function wt(G){let h="";for(let p=0;p<G.style.length;p++){const I=G.style.item(p);h+=st(0,I,G.style.getPropertyValue(I))}for(const p in G.style)G.style.hasOwnProperty(p)&&!p.startsWith("_")&&(h+=st(0,R(p),G.style[p]));G.setAttribute("style",h)}function Ze(G,h,p){G.style&&(Object.keys(h).forEach(I=>{const Z=F(I);p&&!p.hasOwnProperty(I)&&(p[I]=G.style[Z]),G.style[Z]=h[I]}),a()&&wt(G))}function ze(G,h){G.style&&(Object.keys(h).forEach(p=>{const I=F(p);G.style[I]=""}),a()&&wt(G))}function He(G){return Array.isArray(G)?1==G.length?G[0]:(0,f.vP)(G):G}const Ge=new RegExp("{{\\s*(.+?)\\s*}}","g");function ft(G){let h=[];if("string"==typeof G){let p;for(;p=Ge.exec(G);)h.push(p[1]);Ge.lastIndex=0}return h}function vt(G,h,p){const I=G.toString(),Z=I.replace(Ge,(me,Te)=>{let ke=h[Te];return h.hasOwnProperty(Te)||(p.push(`Please provide a value for the animation param ${Te}`),ke=""),ke.toString()});return Z==I?G:Z}function Ye(G){const h=[];let p=G.next();for(;!p.done;)h.push(p.value),p=G.next();return h}const x=/-+([a-z0-9])/g;function F(G){return G.replace(x,(...h)=>h[1].toUpperCase())}function R(G){return G.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function he(G,h){return 0===G||0===h}function z(G,h,p){const I=Object.keys(p);if(I.length&&h.length){let me=h[0],Te=[];if(I.forEach(ke=>{me.hasOwnProperty(ke)||Te.push(ke),me[ke]=p[ke]}),Te.length)for(var Z=1;Z<h.length;Z++){let ke=h[Z];Te.forEach(function(rt){ke[rt]=Be(G,rt)})}}return h}function ie(G,h,p){switch(h.type){case 7:return G.visitTrigger(h,p);case 0:return G.visitState(h,p);case 1:return G.visitTransition(h,p);case 2:return G.visitSequence(h,p);case 3:return G.visitGroup(h,p);case 4:return G.visitAnimate(h,p);case 5:return G.visitKeyframes(h,p);case 6:return G.visitStyle(h,p);case 8:return G.visitReference(h,p);case 9:return G.visitAnimateChild(h,p);case 10:return G.visitAnimateRef(h,p);case 11:return G.visitQuery(h,p);case 12:return G.visitStagger(h,p);default:throw new Error(`Unable to resolve animation metadata node #${h.type}`)}}function Be(G,h){return window.getComputedStyle(G)[h]}function Et(G,h){const p=[];return"string"==typeof G?G.split(/\s*,\s*/).forEach(I=>function(G,h,p){if(":"==G[0]){const rt=function(G,h){switch(G){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(p,I)=>parseFloat(I)>parseFloat(p);case":decrement":return(p,I)=>parseFloat(I)<parseFloat(p);default:return h.push(`The transition alias value "${G}" is not supported`),"* => *"}}(G,p);if("function"==typeof rt)return void h.push(rt);G=rt}const I=G.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==I||I.length<4)return p.push(`The provided transition expression "${G}" is not supported`),h;const Z=I[1],me=I[2],Te=I[3];h.push(At(Z,Te));"<"==me[0]&&!("*"==Z&&"*"==Te)&&h.push(At(Te,Z))}(I,p,h)):p.push(G),p}const Ut=new Set(["true","1"]),Qt=new Set(["false","0"]);function At(G,h){const p=Ut.has(G)||Qt.has(G),I=Ut.has(h)||Qt.has(h);return(Z,me)=>{let Te="*"==G||G==Z,ke="*"==h||h==me;return!Te&&p&&"boolean"==typeof Z&&(Te=Z?Ut.has(G):Qt.has(G)),!ke&&I&&"boolean"==typeof me&&(ke=me?Ut.has(h):Qt.has(h)),Te&&ke}}const jt=new RegExp("s*:selfs*,?","g");function _n(G,h,p){return new Pt(G).build(h,p)}class Pt{constructor(h){this._driver=h}build(h,p){const I=new W(p);return this._resetContextStyleTimingState(I),ie(this,He(h),I)}_resetContextStyleTimingState(h){h.currentQuerySelector="",h.collectedStyles={},h.collectedStyles[""]={},h.currentTime=0}visitTrigger(h,p){let I=p.queryCount=0,Z=p.depCount=0;const me=[],Te=[];return"@"==h.name.charAt(0)&&p.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),h.definitions.forEach(ke=>{if(this._resetContextStyleTimingState(p),0==ke.type){const rt=ke,bt=rt.name;bt.toString().split(/\s*,\s*/).forEach(kt=>{rt.name=kt,me.push(this.visitState(rt,p))}),rt.name=bt}else if(1==ke.type){const rt=this.visitTransition(ke,p);I+=rt.queryCount,Z+=rt.depCount,Te.push(rt)}else p.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:h.name,states:me,transitions:Te,queryCount:I,depCount:Z,options:null}}visitState(h,p){const I=this.visitStyle(h.styles,p),Z=h.options&&h.options.params||null;if(I.containsDynamicStyles){const me=new Set,Te=Z||{};if(I.styles.forEach(ke=>{if(Ee(ke)){const rt=ke;Object.keys(rt).forEach(bt=>{ft(rt[bt]).forEach(kt=>{Te.hasOwnProperty(kt)||me.add(kt)})})}}),me.size){const ke=Ye(me.values());p.errors.push(`state("${h.name}", ...) must define default values for all the following style substitutions: ${ke.join(", ")}`)}}return{type:0,name:h.name,style:I,options:Z?{params:Z}:null}}visitTransition(h,p){p.queryCount=0,p.depCount=0;const I=ie(this,He(h.animation),p);return{type:1,matchers:Et(h.expr,p.errors),animation:I,queryCount:p.queryCount,depCount:p.depCount,options:J(h.options)}}visitSequence(h,p){return{type:2,steps:h.steps.map(I=>ie(this,I,p)),options:J(h.options)}}visitGroup(h,p){const I=p.currentTime;let Z=0;const me=h.steps.map(Te=>{p.currentTime=I;const ke=ie(this,Te,p);return Z=Math.max(Z,p.currentTime),ke});return p.currentTime=Z,{type:3,steps:me,options:J(h.options)}}visitAnimate(h,p){const I=function(G,h){let p=null;if(G.hasOwnProperty("duration"))p=G;else if("number"==typeof G)return N(L(G,h).duration,0,"");const I=G;if(I.split(/\s+/).some(me=>"{"==me.charAt(0)&&"{"==me.charAt(1))){const me=N(0,0,"");return me.dynamic=!0,me.strValue=I,me}return p=p||L(I,h),N(p.duration,p.delay,p.easing)}(h.timings,p.errors);p.currentAnimateTimings=I;let Z,me=h.styles?h.styles:(0,f.oB)({});if(5==me.type)Z=this.visitKeyframes(me,p);else{let Te=h.styles,ke=!1;if(!Te){ke=!0;const bt={};I.easing&&(bt.easing=I.easing),Te=(0,f.oB)(bt)}p.currentTime+=I.duration+I.delay;const rt=this.visitStyle(Te,p);rt.isEmptyStep=ke,Z=rt}return p.currentAnimateTimings=null,{type:4,timings:I,style:Z,options:null}}visitStyle(h,p){const I=this._makeStyleAst(h,p);return this._validateStyleAst(I,p),I}_makeStyleAst(h,p){const I=[];Array.isArray(h.styles)?h.styles.forEach(Te=>{"string"==typeof Te?Te==f.l3?I.push(Te):p.errors.push(`The provided style string value ${Te} is not allowed.`):I.push(Te)}):I.push(h.styles);let Z=!1,me=null;return I.forEach(Te=>{if(Ee(Te)){const ke=Te,rt=ke.easing;if(rt&&(me=rt,delete ke.easing),!Z)for(let bt in ke)if(ke[bt].toString().indexOf("{{")>=0){Z=!0;break}}}),{type:6,styles:I,easing:me,offset:h.offset,containsDynamicStyles:Z,options:null}}_validateStyleAst(h,p){const I=p.currentAnimateTimings;let Z=p.currentTime,me=p.currentTime;I&&me>0&&(me-=I.duration+I.delay),h.styles.forEach(Te=>{"string"!=typeof Te&&Object.keys(Te).forEach(ke=>{if(!this._driver.validateStyleProperty(ke))return void p.errors.push(`The provided animation property "${ke}" is not a supported CSS property for animations`);const rt=p.collectedStyles[p.currentQuerySelector],bt=rt[ke];let kt=!0;bt&&(me!=Z&&me>=bt.startTime&&Z<=bt.endTime&&(p.errors.push(`The CSS property "${ke}" that exists between the times of "${bt.startTime}ms" and "${bt.endTime}ms" is also being animated in a parallel animation between the times of "${me}ms" and "${Z}ms"`),kt=!1),me=bt.startTime),kt&&(rt[ke]={startTime:me,endTime:Z}),p.options&&function(G,h,p){const I=h.params||{},Z=ft(G);Z.length&&Z.forEach(me=>{I.hasOwnProperty(me)||p.push(`Unable to resolve the local animation param ${me} in the given list of values`)})}(Te[ke],p.options,p.errors)})})}visitKeyframes(h,p){const I={type:5,styles:[],options:null};if(!p.currentAnimateTimings)return p.errors.push("keyframes() must be placed inside of a call to animate()"),I;let me=0;const Te=[];let ke=!1,rt=!1,bt=0;const kt=h.steps.map(Pn=>{const An=this._makeStyleAst(Pn,p);let si=null!=An.offset?An.offset:function(G){if("string"==typeof G)return null;let h=null;if(Array.isArray(G))G.forEach(p=>{if(Ee(p)&&p.hasOwnProperty("offset")){const I=p;h=parseFloat(I.offset),delete I.offset}});else if(Ee(G)&&G.hasOwnProperty("offset")){const p=G;h=parseFloat(p.offset),delete p.offset}return h}(An.styles),zn=0;return null!=si&&(me++,zn=An.offset=si),rt=rt||zn<0||zn>1,ke=ke||zn<bt,bt=zn,Te.push(zn),An});rt&&p.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),ke&&p.errors.push("Please ensure that all keyframe offsets are in order");const Vt=h.steps.length;let nn=0;me>0&&me<Vt?p.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==me&&(nn=1/(Vt-1));const mn=Vt-1,Gt=p.currentTime,en=p.currentAnimateTimings,hn=en.duration;return kt.forEach((Pn,An)=>{const si=nn>0?An==mn?1:nn*An:Te[An],zn=si*hn;p.currentTime=Gt+en.delay+zn,en.duration=zn,this._validateStyleAst(Pn,p),Pn.offset=si,I.styles.push(Pn)}),I}visitReference(h,p){return{type:8,animation:ie(this,He(h.animation),p),options:J(h.options)}}visitAnimateChild(h,p){return p.depCount++,{type:9,options:J(h.options)}}visitAnimateRef(h,p){return{type:10,animation:this.visitReference(h.animation,p),options:J(h.options)}}visitQuery(h,p){const I=p.currentQuerySelector,Z=h.options||{};p.queryCount++,p.currentQuery=h;const[me,Te]=function(G){const h=!!G.split(/\s*,\s*/).find(p=>":self"==p);return h&&(G=G.replace(jt,"")),[G=G.replace(/@\*/g,It).replace(/@\w+/g,p=>It+"-"+p.substr(1)).replace(/:animating/g,dt),h]}(h.selector);p.currentQuerySelector=I.length?I+" "+me:me,M(p.collectedStyles,p.currentQuerySelector,{});const ke=ie(this,He(h.animation),p);return p.currentQuery=null,p.currentQuerySelector=I,{type:11,selector:me,limit:Z.limit||0,optional:!!Z.optional,includeSelf:Te,animation:ke,originalSelector:h.selector,options:J(h.options)}}visitStagger(h,p){p.currentQuery||p.errors.push("stagger() can only be used inside of query()");const I="full"===h.timings?{duration:0,delay:0,easing:"full"}:L(h.timings,p.errors,!0);return{type:12,animation:ie(this,He(h.animation),p),timings:I,options:null}}}class W{constructor(h){this.errors=h,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 Ee(G){return!Array.isArray(G)&&"object"==typeof G}function J(G){return G?(G=ae(G)).params&&(G.params=function(G){return G?ae(G):null}(G.params)):G={},G}function N(G,h,p){return{duration:G,delay:h,easing:p}}function re(G,h,p,I,Z,me,Te=null,ke=!1){return{type:1,element:G,keyframes:h,preStyleProps:p,postStyleProps:I,duration:Z,delay:me,totalTime:Z+me,easing:Te,subTimeline:ke}}class ot{constructor(){this._map=new Map}consume(h){let p=this._map.get(h);return p?this._map.delete(h):p=[],p}append(h,p){let I=this._map.get(h);I||this._map.set(h,I=[]),I.push(...p)}has(h){return this._map.has(h)}clear(){this._map.clear()}}const dn=new RegExp(":enter","g"),an=new RegExp(":leave","g");function un(G,h,p,I,Z,me={},Te={},ke,rt,bt=[]){return(new wn).buildKeyframes(G,h,p,I,Z,me,Te,ke,rt,bt)}class wn{buildKeyframes(h,p,I,Z,me,Te,ke,rt,bt,kt=[]){bt=bt||new ot;const Vt=new mt(h,p,bt,Z,me,kt,[]);Vt.options=rt,Vt.currentTimeline.setStyles([Te],null,Vt.errors,rt),ie(this,I,Vt);const nn=Vt.timelines.filter(mn=>mn.containsAnimation());if(nn.length&&Object.keys(ke).length){const mn=nn[nn.length-1];mn.allowOnlyTimelineStyles()||mn.setStyles([ke],null,Vt.errors,rt)}return nn.length?nn.map(mn=>mn.buildKeyframes()):[re(p,[],[],[],0,0,"",!1)]}visitTrigger(h,p){}visitState(h,p){}visitTransition(h,p){}visitAnimateChild(h,p){const I=p.subInstructions.consume(p.element);if(I){const Z=p.createSubContext(h.options),me=p.currentTimeline.currentTime,Te=this._visitSubInstructions(I,Z,Z.options);me!=Te&&p.transformIntoNewTimeline(Te)}p.previousNode=h}visitAnimateRef(h,p){const I=p.createSubContext(h.options);I.transformIntoNewTimeline(),this.visitReference(h.animation,I),p.transformIntoNewTimeline(I.currentTimeline.currentTime),p.previousNode=h}_visitSubInstructions(h,p,I){let me=p.currentTimeline.currentTime;const Te=null!=I.duration?$(I.duration):null,ke=null!=I.delay?$(I.delay):null;return 0!==Te&&h.forEach(rt=>{const bt=p.appendInstructionToTimeline(rt,Te,ke);me=Math.max(me,bt.duration+bt.delay)}),me}visitReference(h,p){p.updateOptions(h.options,!0),ie(this,h.animation,p),p.previousNode=h}visitSequence(h,p){const I=p.subContextCount;let Z=p;const me=h.options;if(me&&(me.params||me.delay)&&(Z=p.createSubContext(me),Z.transformIntoNewTimeline(),null!=me.delay)){6==Z.previousNode.type&&(Z.currentTimeline.snapshotCurrentStyles(),Z.previousNode=yn);const Te=$(me.delay);Z.delayNextStep(Te)}h.steps.length&&(h.steps.forEach(Te=>ie(this,Te,Z)),Z.currentTimeline.applyStylesToKeyframe(),Z.subContextCount>I&&Z.transformIntoNewTimeline()),p.previousNode=h}visitGroup(h,p){const I=[];let Z=p.currentTimeline.currentTime;const me=h.options&&h.options.delay?$(h.options.delay):0;h.steps.forEach(Te=>{const ke=p.createSubContext(h.options);me&&ke.delayNextStep(me),ie(this,Te,ke),Z=Math.max(Z,ke.currentTimeline.currentTime),I.push(ke.currentTimeline)}),I.forEach(Te=>p.currentTimeline.mergeTimelineCollectedStyles(Te)),p.transformIntoNewTimeline(Z),p.previousNode=h}_visitTiming(h,p){if(h.dynamic){const I=h.strValue;return L(p.params?vt(I,p.params,p.errors):I,p.errors)}return{duration:h.duration,delay:h.delay,easing:h.easing}}visitAnimate(h,p){const I=p.currentAnimateTimings=this._visitTiming(h.timings,p),Z=p.currentTimeline;I.delay&&(p.incrementTime(I.delay),Z.snapshotCurrentStyles());const me=h.style;5==me.type?this.visitKeyframes(me,p):(p.incrementTime(I.duration),this.visitStyle(me,p),Z.applyStylesToKeyframe()),p.currentAnimateTimings=null,p.previousNode=h}visitStyle(h,p){const I=p.currentTimeline,Z=p.currentAnimateTimings;!Z&&I.getCurrentStyleProperties().length&&I.forwardFrame();const me=Z&&Z.easing||h.easing;h.isEmptyStep?I.applyEmptyStep(me):I.setStyles(h.styles,me,p.errors,p.options),p.previousNode=h}visitKeyframes(h,p){const I=p.currentAnimateTimings,Z=p.currentTimeline.duration,me=I.duration,ke=p.createSubContext().currentTimeline;ke.easing=I.easing,h.styles.forEach(rt=>{ke.forwardTime((rt.offset||0)*me),ke.setStyles(rt.styles,rt.easing,p.errors,p.options),ke.applyStylesToKeyframe()}),p.currentTimeline.mergeTimelineCollectedStyles(ke),p.transformIntoNewTimeline(Z+me),p.previousNode=h}visitQuery(h,p){const I=p.currentTimeline.currentTime,Z=h.options||{},me=Z.delay?$(Z.delay):0;me&&(6===p.previousNode.type||0==I&&p.currentTimeline.getCurrentStyleProperties().length)&&(p.currentTimeline.snapshotCurrentStyles(),p.previousNode=yn);let Te=I;const ke=p.invokeQuery(h.selector,h.originalSelector,h.limit,h.includeSelf,!!Z.optional,p.errors);p.currentQueryTotal=ke.length;let rt=null;ke.forEach((bt,kt)=>{p.currentQueryIndex=kt;const Vt=p.createSubContext(h.options,bt);me&&Vt.delayNextStep(me),bt===p.element&&(rt=Vt.currentTimeline),ie(this,h.animation,Vt),Vt.currentTimeline.applyStylesToKeyframe(),Te=Math.max(Te,Vt.currentTimeline.currentTime)}),p.currentQueryIndex=0,p.currentQueryTotal=0,p.transformIntoNewTimeline(Te),rt&&(p.currentTimeline.mergeTimelineCollectedStyles(rt),p.currentTimeline.snapshotCurrentStyles()),p.previousNode=h}visitStagger(h,p){const I=p.parentContext,Z=p.currentTimeline,me=h.timings,Te=Math.abs(me.duration),ke=Te*(p.currentQueryTotal-1);let rt=Te*p.currentQueryIndex;switch(me.duration<0?"reverse":me.easing){case"reverse":rt=ke-rt;break;case"full":rt=I.currentStaggerTime}const kt=p.currentTimeline;rt&&kt.delayNextStep(rt);const Vt=kt.currentTime;ie(this,h.animation,p),p.previousNode=h,I.currentStaggerTime=Z.currentTime-Vt+(Z.startTime-I.currentTimeline.startTime)}}const yn={};class mt{constructor(h,p,I,Z,me,Te,ke,rt){this._driver=h,this.element=p,this.subInstructions=I,this._enterClassName=Z,this._leaveClassName=me,this.errors=Te,this.timelines=ke,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=rt||new Re(this._driver,p,0),ke.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(h,p){if(!h)return;const I=h;let Z=this.options;null!=I.duration&&(Z.duration=$(I.duration)),null!=I.delay&&(Z.delay=$(I.delay));const me=I.params;if(me){let Te=Z.params;Te||(Te=this.options.params={}),Object.keys(me).forEach(ke=>{(!p||!Te.hasOwnProperty(ke))&&(Te[ke]=vt(me[ke],Te,this.errors))})}}_copyOptions(){const h={};if(this.options){const p=this.options.params;if(p){const I=h.params={};Object.keys(p).forEach(Z=>{I[Z]=p[Z]})}}return h}createSubContext(h=null,p,I){const Z=p||this.element,me=new mt(this._driver,Z,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Z,I||0));return me.previousNode=this.previousNode,me.currentAnimateTimings=this.currentAnimateTimings,me.options=this._copyOptions(),me.updateOptions(h),me.currentQueryIndex=this.currentQueryIndex,me.currentQueryTotal=this.currentQueryTotal,me.parentContext=this,this.subContextCount++,me}transformIntoNewTimeline(h){return this.previousNode=yn,this.currentTimeline=this.currentTimeline.fork(this.element,h),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(h,p,I){const Z={duration:null!=p?p:h.duration,delay:this.currentTimeline.currentTime+(null!=I?I:0)+h.delay,easing:""},me=new Se(this._driver,h.element,h.keyframes,h.preStyleProps,h.postStyleProps,Z,h.stretchStartingKeyframe);return this.timelines.push(me),Z}incrementTime(h){this.currentTimeline.forwardTime(this.currentTimeline.duration+h)}delayNextStep(h){h>0&&this.currentTimeline.delayNextStep(h)}invokeQuery(h,p,I,Z,me,Te){let ke=[];if(Z&&ke.push(this.element),h.length>0){h=(h=h.replace(dn,"."+this._enterClassName)).replace(an,"."+this._leaveClassName);let bt=this._driver.query(this.element,h,1!=I);0!==I&&(bt=I<0?bt.slice(bt.length+I,bt.length):bt.slice(0,I)),ke.push(...bt)}return!me&&0==ke.length&&Te.push(`\`query("${p}")\` returned zero elements. (Use \`query("${p}", { optional: true })\` if you wish to allow this.)`),ke}}class Re{constructor(h,p,I,Z){this._driver=h,this.element=p,this.startTime=I,this._elementTimelineStylesLookup=Z,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(p),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(p,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(h){const p=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||p?(this.forwardTime(this.currentTime+h),p&&this.snapshotCurrentStyles()):this.startTime+=h}fork(h,p){return this.applyStylesToKeyframe(),new Re(this._driver,h,p||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(h){this.applyStylesToKeyframe(),this.duration=h,this._loadKeyframe()}_updateStyle(h,p){this._localTimelineStyles[h]=p,this._globalTimelineStyles[h]=p,this._styleSummary[h]={time:this.currentTime,value:p}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(h){h&&(this._previousKeyframe.easing=h),Object.keys(this._globalTimelineStyles).forEach(p=>{this._backFill[p]=this._globalTimelineStyles[p]||f.l3,this._currentKeyframe[p]=f.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(h,p,I,Z){p&&(this._previousKeyframe.easing=p);const me=Z&&Z.params||{},Te=function(G,h){const p={};let I;return G.forEach(Z=>{"*"===Z?(I=I||Object.keys(h),I.forEach(me=>{p[me]=f.l3})):Fe(Z,!1,p)}),p}(h,this._globalTimelineStyles);Object.keys(Te).forEach(ke=>{const rt=vt(Te[ke],me,I);this._pendingStyles[ke]=rt,this._localTimelineStyles.hasOwnProperty(ke)||(this._backFill[ke]=this._globalTimelineStyles.hasOwnProperty(ke)?this._globalTimelineStyles[ke]:f.l3),this._updateStyle(ke,rt)})}applyStylesToKeyframe(){const h=this._pendingStyles,p=Object.keys(h);0!=p.length&&(this._pendingStyles={},p.forEach(I=>{this._currentKeyframe[I]=h[I]}),Object.keys(this._localTimelineStyles).forEach(I=>{this._currentKeyframe.hasOwnProperty(I)||(this._currentKeyframe[I]=this._localTimelineStyles[I])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(h=>{const p=this._localTimelineStyles[h];this._pendingStyles[h]=p,this._updateStyle(h,p)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const h=[];for(let p in this._currentKeyframe)h.push(p);return h}mergeTimelineCollectedStyles(h){Object.keys(h._styleSummary).forEach(p=>{const I=this._styleSummary[p],Z=h._styleSummary[p];(!I||Z.time>I.time)&&this._updateStyle(p,Z.value)})}buildKeyframes(){this.applyStylesToKeyframe();const h=new Set,p=new Set,I=1===this._keyframes.size&&0===this.duration;let Z=[];this._keyframes.forEach((ke,rt)=>{const bt=Fe(ke,!0);Object.keys(bt).forEach(kt=>{const Vt=bt[kt];Vt==f.k1?h.add(kt):Vt==f.l3&&p.add(kt)}),I||(bt.offset=rt/this.duration),Z.push(bt)});const me=h.size?Ye(h.values()):[],Te=p.size?Ye(p.values()):[];if(I){const ke=Z[0],rt=ae(ke);ke.offset=0,rt.offset=1,Z=[ke,rt]}return re(this.element,Z,me,Te,this.duration,this.startTime,this.easing,!1)}}class Se extends Re{constructor(h,p,I,Z,me,Te,ke=!1){super(h,p,Te.delay),this.keyframes=I,this.preStyleProps=Z,this.postStyleProps=me,this._stretchStartingKeyframe=ke,this.timings={duration:Te.duration,delay:Te.delay,easing:Te.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let h=this.keyframes,{delay:p,duration:I,easing:Z}=this.timings;if(this._stretchStartingKeyframe&&p){const me=[],Te=I+p,ke=p/Te,rt=Fe(h[0],!1);rt.offset=0,me.push(rt);const bt=Fe(h[0],!1);bt.offset=nt(ke),me.push(bt);const kt=h.length-1;for(let Vt=1;Vt<=kt;Vt++){let nn=Fe(h[Vt],!1);nn.offset=nt((p+nn.offset*I)/Te),me.push(nn)}I=Te,p=0,Z="",h=me}return re(this.element,h,this.preStyleProps,this.postStyleProps,I,p,Z,!0)}}function nt(G,h=3){const p=Math.pow(10,h-1);return Math.round(G*p)/p}class ee{}class Y extends ee{normalizePropertyName(h,p){return F(h)}normalizeStyleValue(h,p,I,Z){let me="";const Te=I.toString().trim();if(Ke[p]&&0!==I&&"0"!==I)if("number"==typeof I)me="px";else{const ke=I.match(/^[+-]?[\d\.]+([a-z]*)$/);ke&&0==ke[1].length&&Z.push(`Please provide a CSS unit value for ${h}:${I}`)}return Te+me}}const Ke=(()=>function(G){const h={};return G.forEach(p=>h[p]=!0),h}("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 Tt(G,h,p,I,Z,me,Te,ke,rt,bt,kt,Vt,nn){return{type:0,element:G,triggerName:h,isRemovalTransition:Z,fromState:p,fromStyles:me,toState:I,toStyles:Te,timelines:ke,queriedElements:rt,preStyleProps:bt,postStyleProps:kt,totalTime:Vt,errors:nn}}const we={};class Ie{constructor(h,p,I){this._triggerName=h,this.ast=p,this._stateStyles=I}match(h,p,I,Z){return function(G,h,p,I,Z){return G.some(me=>me(h,p,I,Z))}(this.ast.matchers,h,p,I,Z)}buildStyles(h,p,I){const Z=this._stateStyles["*"],me=this._stateStyles[h],Te=Z?Z.buildStyles(p,I):{};return me?me.buildStyles(p,I):Te}build(h,p,I,Z,me,Te,ke,rt,bt,kt){const Vt=[],nn=this.ast.options&&this.ast.options.params||we,Gt=this.buildStyles(I,ke&&ke.params||we,Vt),en=rt&&rt.params||we,hn=this.buildStyles(Z,en,Vt),Pn=new Set,An=new Map,si=new Map,zn="void"===Z,nr={params:Object.assign(Object.assign({},nn),en)},Pi=kt?[]:un(h,p,this.ast.animation,me,Te,Gt,hn,nr,bt,Vt);let ri=0;if(Pi.forEach($i=>{ri=Math.max($i.duration+$i.delay,ri)}),Vt.length)return Tt(p,this._triggerName,I,Z,zn,Gt,hn,[],[],An,si,ri,Vt);Pi.forEach($i=>{const Ei=$i.element,Ls=M(An,Ei,{});$i.preStyleProps.forEach(Fn=>Ls[Fn]=!0);const vo=M(si,Ei,{});$i.postStyleProps.forEach(Fn=>vo[Fn]=!0),Ei!==p&&Pn.add(Ei)});const Hi=Ye(Pn.values());return Tt(p,this._triggerName,I,Z,zn,Gt,hn,Pi,Hi,An,si,ri)}}class Ve{constructor(h,p,I){this.styles=h,this.defaultParams=p,this.normalizer=I}buildStyles(h,p){const I={},Z=ae(this.defaultParams);return Object.keys(h).forEach(me=>{const Te=h[me];null!=Te&&(Z[me]=Te)}),this.styles.styles.forEach(me=>{if("string"!=typeof me){const Te=me;Object.keys(Te).forEach(ke=>{let rt=Te[ke];rt.length>1&&(rt=vt(rt,Z,p));const bt=this.normalizer.normalizePropertyName(ke,p);rt=this.normalizer.normalizeStyleValue(ke,bt,rt,p),I[bt]=rt})}}),I}}class Ft{constructor(h,p,I){this.name=h,this.ast=p,this._normalizer=I,this.transitionFactories=[],this.states={},p.states.forEach(Z=>{this.states[Z.name]=new Ve(Z.style,Z.options&&Z.options.params||{},I)}),qt(this.states,"true","1"),qt(this.states,"false","0"),p.transitions.forEach(Z=>{this.transitionFactories.push(new Ie(h,Z,this.states))}),this.fallbackTransition=function(G,h,p){return new Ie(G,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Te,ke)=>!0],options:null,queryCount:0,depCount:0},h)}(h,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(h,p,I,Z){return this.transitionFactories.find(Te=>Te.match(h,p,I,Z))||null}matchStyles(h,p,I){return this.fallbackTransition.buildStyles(h,p,I)}}function qt(G,h,p){G.hasOwnProperty(h)?G.hasOwnProperty(p)||(G[p]=G[h]):G.hasOwnProperty(p)&&(G[h]=G[p])}const Wt=new ot;class Mn{constructor(h,p,I){this.bodyNode=h,this._driver=p,this._normalizer=I,this._animations={},this._playersById={},this.players=[]}register(h,p){const I=[],Z=_n(this._driver,p,I);if(I.length)throw new Error(`Unable to build the animation due to the following errors: ${I.join("\n")}`);this._animations[h]=Z}_buildPlayer(h,p,I){const Z=h.element,me=w(0,this._normalizer,0,h.keyframes,p,I);return this._driver.animate(Z,me,h.duration,h.delay,h.easing,[],!0)}create(h,p,I={}){const Z=[],me=this._animations[h];let Te;const ke=new Map;if(me?(Te=un(this._driver,p,me,et,pt,{},{},I,Wt,Z),Te.forEach(kt=>{const Vt=M(ke,kt.element,{});kt.postStyleProps.forEach(nn=>Vt[nn]=null)})):(Z.push("The requested animation doesn't exist or has already been destroyed"),Te=[]),Z.length)throw new Error(`Unable to create the animation due to the following errors: ${Z.join("\n")}`);ke.forEach((kt,Vt)=>{Object.keys(kt).forEach(nn=>{kt[nn]=this._driver.computeStyle(Vt,nn,f.l3)})});const bt=C(Te.map(kt=>{const Vt=ke.get(kt.element);return this._buildPlayer(kt,{},Vt)}));return this._playersById[h]=bt,bt.onDestroy(()=>this.destroy(h)),this.players.push(bt),bt}destroy(h){const p=this._getPlayer(h);p.destroy(),delete this._playersById[h];const I=this.players.indexOf(p);I>=0&&this.players.splice(I,1)}_getPlayer(h){const p=this._playersById[h];if(!p)throw new Error(`Unable to find the timeline player referenced by ${h}`);return p}listen(h,p,I,Z){const me=E(p,"","","");return D(this._getPlayer(h),I,me,Z),()=>{}}command(h,p,I,Z){if("register"==I)return void this.register(h,Z[0]);if("create"==I)return void this.create(h,p,Z[0]||{});const me=this._getPlayer(h);switch(I){case"play":me.play();break;case"pause":me.pause();break;case"reset":me.reset();break;case"restart":me.restart();break;case"finish":me.finish();break;case"init":me.init();break;case"setPosition":me.setPosition(parseFloat(Z[0]));break;case"destroy":this.destroy(h)}}}const gi="ng-animate-queued",li="ng-animate-disabled",qn=".ng-animate-disabled",xn=[],Xi={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ti={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Cn="__ng_removed";class Ci{constructor(h,p=""){this.namespaceId=p;const I=h&&h.hasOwnProperty("value");if(this.value=null!=(G=I?h.value:h)?G:null,I){const me=ae(h);delete me.value,this.options=me}else this.options={};var G;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(h){const p=h.params;if(p){const I=this.options.params;Object.keys(p).forEach(Z=>{null==I[Z]&&(I[Z]=p[Z])})}}}const ci="void",ui=new Ci(ci);class ni{constructor(h,p,I){this.id=h,this.hostElement=p,this._engine=I,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+h,ii(p,this._hostClassName)}listen(h,p,I,Z){if(!this._triggers.hasOwnProperty(p))throw new Error(`Unable to listen on the animation trigger event "${I}" because the animation trigger "${p}" doesn't exist!`);if(null==I||0==I.length)throw new Error(`Unable to listen on the animation trigger "${p}" because the provided event is undefined!`);if("start"!=(G=I)&&"done"!=G)throw new Error(`The provided animation trigger event "${I}" for the animation trigger "${p}" is not supported!`);var G;const me=M(this._elementListeners,h,[]),Te={name:p,phase:I,callback:Z};me.push(Te);const ke=M(this._engine.statesByElement,h,{});return ke.hasOwnProperty(p)||(ii(h,ut),ii(h,ut+"-"+p),ke[p]=ui),()=>{this._engine.afterFlush(()=>{const rt=me.indexOf(Te);rt>=0&&me.splice(rt,1),this._triggers[p]||delete ke[p]})}}register(h,p){return!this._triggers[h]&&(this._triggers[h]=p,!0)}_getTrigger(h){const p=this._triggers[h];if(!p)throw new Error(`The provided animation trigger "${h}" has not been registered!`);return p}trigger(h,p,I,Z=!0){const me=this._getTrigger(p),Te=new kr(this.id,p,h);let ke=this._engine.statesByElement.get(h);ke||(ii(h,ut),ii(h,ut+"-"+p),this._engine.statesByElement.set(h,ke={}));let rt=ke[p];const bt=new Ci(I,this.id);if(!(I&&I.hasOwnProperty("value"))&&rt&&bt.absorbOptions(rt.options),ke[p]=bt,rt||(rt=ui),bt.value!==ci&&rt.value===bt.value){if(!function(G,h){const p=Object.keys(G),I=Object.keys(h);if(p.length!=I.length)return!1;for(let Z=0;Z<p.length;Z++){const me=p[Z];if(!h.hasOwnProperty(me)||G[me]!==h[me])return!1}return!0}(rt.params,bt.params)){const en=[],hn=me.matchStyles(rt.value,rt.params,en),Pn=me.matchStyles(bt.value,bt.params,en);en.length?this._engine.reportError(en):this._engine.afterFlush(()=>{ze(h,hn),Ze(h,Pn)})}return}const nn=M(this._engine.playersByElement,h,[]);nn.forEach(en=>{en.namespaceId==this.id&&en.triggerName==p&&en.queued&&en.destroy()});let mn=me.matchTransition(rt.value,bt.value,h,bt.params),Gt=!1;if(!mn){if(!Z)return;mn=me.fallbackTransition,Gt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:h,triggerName:p,transition:mn,fromState:rt,toState:bt,player:Te,isFallbackTransition:Gt}),Gt||(ii(h,gi),Te.onStart(()=>{Ti(h,gi)})),Te.onDone(()=>{let en=this.players.indexOf(Te);en>=0&&this.players.splice(en,1);const hn=this._engine.playersByElement.get(h);if(hn){let Pn=hn.indexOf(Te);Pn>=0&&hn.splice(Pn,1)}}),this.players.push(Te),nn.push(Te),Te}deregister(h){delete this._triggers[h],this._engine.statesByElement.forEach((p,I)=>{delete p[h]}),this._elementListeners.forEach((p,I)=>{this._elementListeners.set(I,p.filter(Z=>Z.name!=h))})}clearElementCache(h){this._engine.statesByElement.delete(h),this._elementListeners.delete(h);const p=this._engine.playersByElement.get(h);p&&(p.forEach(I=>I.destroy()),this._engine.playersByElement.delete(h))}_signalRemovalForInnerTriggers(h,p){const I=this._engine.driver.query(h,It,!0);I.forEach(Z=>{if(Z[Cn])return;const me=this._engine.fetchNamespacesByElement(Z);me.size?me.forEach(Te=>Te.triggerLeaveAnimation(Z,p,!1,!0)):this.clearElementCache(Z)}),this._engine.afterFlushAnimationsDone(()=>I.forEach(Z=>this.clearElementCache(Z)))}triggerLeaveAnimation(h,p,I,Z){const me=this._engine.statesByElement.get(h);if(me){const Te=[];if(Object.keys(me).forEach(ke=>{if(this._triggers[ke]){const rt=this.trigger(h,ke,ci,Z);rt&&Te.push(rt)}}),Te.length)return this._engine.markElementAsRemoved(this.id,h,!0,p),I&&C(Te).onDone(()=>this._engine.processLeaveNode(h)),!0}return!1}prepareLeaveAnimationListeners(h){const p=this._elementListeners.get(h),I=this._engine.statesByElement.get(h);if(p&&I){const Z=new Set;p.forEach(me=>{const Te=me.name;if(Z.has(Te))return;Z.add(Te);const rt=this._triggers[Te].fallbackTransition,bt=I[Te]||ui,kt=new Ci(ci),Vt=new kr(this.id,Te,h);this._engine.totalQueuedPlayers++,this._queue.push({element:h,triggerName:Te,transition:rt,fromState:bt,toState:kt,player:Vt,isFallbackTransition:!0})})}}removeNode(h,p){const I=this._engine;if(h.childElementCount&&this._signalRemovalForInnerTriggers(h,p),this.triggerLeaveAnimation(h,p,!0))return;let Z=!1;if(I.totalAnimations){const me=I.players.length?I.playersByQueriedElement.get(h):[];if(me&&me.length)Z=!0;else{let Te=h;for(;Te=Te.parentNode;)if(I.statesByElement.get(Te)){Z=!0;break}}}if(this.prepareLeaveAnimationListeners(h),Z)I.markElementAsRemoved(this.id,h,!1,p);else{const me=h[Cn];(!me||me===Xi)&&(I.afterFlush(()=>this.clearElementCache(h)),I.destroyInnerAnimations(h),I._onRemovalComplete(h,p))}}insertNode(h,p){ii(h,this._hostClassName)}drainQueuedTransitions(h){const p=[];return this._queue.forEach(I=>{const Z=I.player;if(Z.destroyed)return;const me=I.element,Te=this._elementListeners.get(me);Te&&Te.forEach(ke=>{if(ke.name==I.triggerName){const rt=E(me,I.triggerName,I.fromState.value,I.toState.value);rt._data=h,D(I.player,ke.phase,rt,ke.callback)}}),Z.markedForDestroy?this._engine.afterFlush(()=>{Z.destroy()}):p.push(I)}),this._queue=[],p.sort((I,Z)=>{const me=I.transition.ast.depCount,Te=Z.transition.ast.depCount;return 0==me||0==Te?me-Te:this._engine.driver.containsElement(I.element,Z.element)?1:-1})}destroy(h){this.players.forEach(p=>p.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,h)}elementContainsData(h){let p=!1;return this._elementListeners.has(h)&&(p=!0),p=!!this._queue.find(I=>I.element===h)||p,p}}class Un{constructor(h,p,I){this.bodyNode=h,this.driver=p,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=(Z,me)=>{}}_onRemovalComplete(h,p){this.onRemovalComplete(h,p)}get queuedPlayers(){const h=[];return this._namespaceList.forEach(p=>{p.players.forEach(I=>{I.queued&&h.push(I)})}),h}createNamespace(h,p){const I=new ni(h,p,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,p)?this._balanceNamespaceList(I,p):(this.newHostElements.set(p,I),this.collectEnterElement(p)),this._namespaceLookup[h]=I}_balanceNamespaceList(h,p){const I=this._namespaceList.length-1;if(I>=0){let Z=!1;for(let me=I;me>=0;me--)if(this.driver.containsElement(this._namespaceList[me].hostElement,p)){this._namespaceList.splice(me+1,0,h),Z=!0;break}Z||this._namespaceList.splice(0,0,h)}else this._namespaceList.push(h);return this.namespacesByHostElement.set(p,h),h}register(h,p){let I=this._namespaceLookup[h];return I||(I=this.createNamespace(h,p)),I}registerTrigger(h,p,I){let Z=this._namespaceLookup[h];Z&&Z.register(p,I)&&this.totalAnimations++}destroy(h,p){if(!h)return;const I=this._fetchNamespace(h);this.afterFlush(()=>{this.namespacesByHostElement.delete(I.hostElement),delete this._namespaceLookup[h];const Z=this._namespaceList.indexOf(I);Z>=0&&this._namespaceList.splice(Z,1)}),this.afterFlushAnimationsDone(()=>I.destroy(p))}_fetchNamespace(h){return this._namespaceLookup[h]}fetchNamespacesByElement(h){const p=new Set,I=this.statesByElement.get(h);if(I){const Z=Object.keys(I);for(let me=0;me<Z.length;me++){const Te=I[Z[me]].namespaceId;if(Te){const ke=this._fetchNamespace(Te);ke&&p.add(ke)}}}return p}trigger(h,p,I,Z){if(gr(p)){const me=this._fetchNamespace(h);if(me)return me.trigger(p,I,Z),!0}return!1}insertNode(h,p,I,Z){if(!gr(p))return;const me=p[Cn];if(me&&me.setForRemoval){me.setForRemoval=!1,me.setForMove=!0;const Te=this.collectedLeaveElements.indexOf(p);Te>=0&&this.collectedLeaveElements.splice(Te,1)}if(h){const Te=this._fetchNamespace(h);Te&&Te.insertNode(p,I)}Z&&this.collectEnterElement(p)}collectEnterElement(h){this.collectedEnterElements.push(h)}markElementAsDisabled(h,p){p?this.disabledNodes.has(h)||(this.disabledNodes.add(h),ii(h,li)):this.disabledNodes.has(h)&&(this.disabledNodes.delete(h),Ti(h,li))}removeNode(h,p,I,Z){if(gr(p)){const me=h?this._fetchNamespace(h):null;if(me?me.removeNode(p,Z):this.markElementAsRemoved(h,p,!1,Z),I){const Te=this.namespacesByHostElement.get(p);Te&&Te.id!==h&&Te.removeNode(p,Z)}}else this._onRemovalComplete(p,Z)}markElementAsRemoved(h,p,I,Z){this.collectedLeaveElements.push(p),p[Cn]={namespaceId:h,setForRemoval:Z,hasAnimation:I,removedBeforeQueried:!1}}listen(h,p,I,Z,me){return gr(p)?this._fetchNamespace(h).listen(p,I,Z,me):()=>{}}_buildInstruction(h,p,I,Z,me){return h.transition.build(this.driver,h.element,h.fromState.value,h.toState.value,I,Z,h.fromState.options,h.toState.options,p,me)}destroyInnerAnimations(h){let p=this.driver.query(h,It,!0);p.forEach(I=>this.destroyActiveAnimationsForElement(I)),0!=this.playersByQueriedElement.size&&(p=this.driver.query(h,dt,!0),p.forEach(I=>this.finishActiveQueriedAnimationOnElement(I)))}destroyActiveAnimationsForElement(h){const p=this.playersByElement.get(h);p&&p.forEach(I=>{I.queued?I.markedForDestroy=!0:I.destroy()})}finishActiveQueriedAnimationOnElement(h){const p=this.playersByQueriedElement.get(h);p&&p.forEach(I=>I.finish())}whenRenderingDone(){return new Promise(h=>{if(this.players.length)return C(this.players).onDone(()=>h());h()})}processLeaveNode(h){const p=h[Cn];if(p&&p.setForRemoval){if(h[Cn]=Xi,p.namespaceId){this.destroyInnerAnimations(h);const I=this._fetchNamespace(p.namespaceId);I&&I.clearElementCache(h)}this._onRemovalComplete(h,p.setForRemoval)}this.driver.matchesElement(h,qn)&&this.markElementAsDisabled(h,!1),this.driver.query(h,qn,!0).forEach(I=>{this.markElementAsDisabled(I,!1)})}flush(h=-1){let p=[];if(this.newHostElements.size&&(this.newHostElements.forEach((I,Z)=>this._balanceNamespaceList(I,Z)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let I=0;I<this.collectedEnterElements.length;I++)ii(this.collectedEnterElements[I],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const I=[];try{p=this._flushAnimations(I,h)}finally{for(let Z=0;Z<I.length;Z++)I[Z]()}}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=[],p.length?C(p).onDone(()=>{I.forEach(Z=>Z())}):I.forEach(Z=>Z())}}reportError(h){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${h.join("\n")}`)}_flushAnimations(h,p){const I=new ot,Z=[],me=new Map,Te=[],ke=new Map,rt=new Map,bt=new Map,kt=new Set;this.disabledNodes.forEach(Bt=>{kt.add(Bt);const Kt=this.driver.query(Bt,".ng-animate-queued",!0);for(let tn=0;tn<Kt.length;tn++)kt.add(Kt[tn])});const Vt=this.bodyNode,nn=Array.from(this.statesByElement.keys()),mn=to(nn,this.collectedEnterElements),Gt=new Map;let en=0;mn.forEach((Bt,Kt)=>{const tn=et+en++;Gt.set(Kt,tn),Bt.forEach(vn=>ii(vn,tn))});const hn=[],Pn=new Set,An=new Set;for(let Bt=0;Bt<this.collectedLeaveElements.length;Bt++){const Kt=this.collectedLeaveElements[Bt],tn=Kt[Cn];tn&&tn.setForRemoval&&(hn.push(Kt),Pn.add(Kt),tn.hasAnimation?this.driver.query(Kt,".ng-star-inserted",!0).forEach(vn=>Pn.add(vn)):An.add(Kt))}const si=new Map,zn=to(nn,Array.from(Pn));zn.forEach((Bt,Kt)=>{const tn=pt+en++;si.set(Kt,tn),Bt.forEach(vn=>ii(vn,tn))}),h.push(()=>{mn.forEach((Bt,Kt)=>{const tn=Gt.get(Kt);Bt.forEach(vn=>Ti(vn,tn))}),zn.forEach((Bt,Kt)=>{const tn=si.get(Kt);Bt.forEach(vn=>Ti(vn,tn))}),hn.forEach(Bt=>{this.processLeaveNode(Bt)})});const nr=[],Pi=[];for(let Bt=this._namespaceList.length-1;Bt>=0;Bt--)this._namespaceList[Bt].drainQueuedTransitions(p).forEach(tn=>{const vn=tn.player,Wn=tn.element;if(nr.push(vn),this.collectedEnterElements.length){const Oi=Wn[Cn];if(Oi&&Oi.setForMove)return void vn.destroy()}const Ui=!Vt||!this.driver.containsElement(Vt,Wn),oi=si.get(Wn),Ai=Gt.get(Wn),Sn=this._buildInstruction(tn,I,Ai,oi,Ui);if(Sn.errors&&Sn.errors.length)Pi.push(Sn);else{if(Ui)return vn.onStart(()=>ze(Wn,Sn.fromStyles)),vn.onDestroy(()=>Ze(Wn,Sn.toStyles)),void Z.push(vn);if(tn.isFallbackTransition)return vn.onStart(()=>ze(Wn,Sn.fromStyles)),vn.onDestroy(()=>Ze(Wn,Sn.toStyles)),void Z.push(vn);Sn.timelines.forEach(Oi=>Oi.stretchStartingKeyframe=!0),I.append(Wn,Sn.timelines),Te.push({instruction:Sn,player:vn,element:Wn}),Sn.queriedElements.forEach(Oi=>M(ke,Oi,[]).push(vn)),Sn.preStyleProps.forEach((Oi,bo)=>{const xi=Object.keys(Oi);if(xi.length){let Ri=rt.get(bo);Ri||rt.set(bo,Ri=new Set),xi.forEach(Bs=>Ri.add(Bs))}}),Sn.postStyleProps.forEach((Oi,bo)=>{const xi=Object.keys(Oi);let Ri=bt.get(bo);Ri||bt.set(bo,Ri=new Set),xi.forEach(Bs=>Ri.add(Bs))})}});if(Pi.length){const Bt=[];Pi.forEach(Kt=>{Bt.push(`@${Kt.triggerName} has failed due to:\n`),Kt.errors.forEach(tn=>Bt.push(`- ${tn}\n`))}),nr.forEach(Kt=>Kt.destroy()),this.reportError(Bt)}const ri=new Map,Hi=new Map;Te.forEach(Bt=>{const Kt=Bt.element;I.has(Kt)&&(Hi.set(Kt,Kt),this._beforeAnimationBuild(Bt.player.namespaceId,Bt.instruction,ri))}),Z.forEach(Bt=>{const Kt=Bt.element;this._getPreviousPlayers(Kt,!1,Bt.namespaceId,Bt.triggerName,null).forEach(vn=>{M(ri,Kt,[]).push(vn),vn.destroy()})});const $i=hn.filter(Bt=>jr(Bt,rt,bt)),Ei=new Map;eo(Ei,this.driver,An,bt,f.l3).forEach(Bt=>{jr(Bt,rt,bt)&&$i.push(Bt)});const vo=new Map;mn.forEach((Bt,Kt)=>{eo(vo,this.driver,new Set(Bt),rt,f.k1)}),$i.forEach(Bt=>{const Kt=Ei.get(Bt),tn=vo.get(Bt);Ei.set(Bt,Object.assign(Object.assign({},Kt),tn))});const Fn=[],ir=[],On={};Te.forEach(Bt=>{const{element:Kt,player:tn,instruction:vn}=Bt;if(I.has(Kt)){if(kt.has(Kt))return tn.onDestroy(()=>Ze(Kt,vn.toStyles)),tn.disabled=!0,tn.overrideTotalTime(vn.totalTime),void Z.push(tn);let Wn=On;if(Hi.size>1){let oi=Kt;const Ai=[];for(;oi=oi.parentNode;){const Sn=Hi.get(oi);if(Sn){Wn=Sn;break}Ai.push(oi)}Ai.forEach(Sn=>Hi.set(Sn,Wn))}const Ui=this._buildAnimation(tn.namespaceId,vn,ri,me,vo,Ei);if(tn.setRealPlayer(Ui),Wn===On)Fn.push(tn);else{const oi=this.playersByElement.get(Wn);oi&&oi.length&&(tn.parentPlayer=C(oi)),Z.push(tn)}}else ze(Kt,vn.fromStyles),tn.onDestroy(()=>Ze(Kt,vn.toStyles)),ir.push(tn),kt.has(Kt)&&Z.push(tn)}),ir.forEach(Bt=>{const Kt=me.get(Bt.element);if(Kt&&Kt.length){const tn=C(Kt);Bt.setRealPlayer(tn)}}),Z.forEach(Bt=>{Bt.parentPlayer?Bt.syncPlayerEvents(Bt.parentPlayer):Bt.destroy()});for(let Bt=0;Bt<hn.length;Bt++){const Kt=hn[Bt],tn=Kt[Cn];if(Ti(Kt,pt),tn&&tn.hasAnimation)continue;let vn=[];if(ke.size){let Ui=ke.get(Kt);Ui&&Ui.length&&vn.push(...Ui);let oi=this.driver.query(Kt,dt,!0);for(let Ai=0;Ai<oi.length;Ai++){let Sn=ke.get(oi[Ai]);Sn&&Sn.length&&vn.push(...Sn)}}const Wn=vn.filter(Ui=>!Ui.destroyed);Wn.length?mo(this,Kt,Wn):this.processLeaveNode(Kt)}return hn.length=0,Fn.forEach(Bt=>{this.players.push(Bt),Bt.onDone(()=>{Bt.destroy();const Kt=this.players.indexOf(Bt);this.players.splice(Kt,1)}),Bt.play()}),Fn}elementContainsData(h,p){let I=!1;const Z=p[Cn];return Z&&Z.setForRemoval&&(I=!0),this.playersByElement.has(p)&&(I=!0),this.playersByQueriedElement.has(p)&&(I=!0),this.statesByElement.has(p)&&(I=!0),this._fetchNamespace(h).elementContainsData(p)||I}afterFlush(h){this._flushFns.push(h)}afterFlushAnimationsDone(h){this._whenQuietFns.push(h)}_getPreviousPlayers(h,p,I,Z,me){let Te=[];if(p){const ke=this.playersByQueriedElement.get(h);ke&&(Te=ke)}else{const ke=this.playersByElement.get(h);if(ke){const rt=!me||me==ci;ke.forEach(bt=>{bt.queued||!rt&&bt.triggerName!=Z||Te.push(bt)})}}return(I||Z)&&(Te=Te.filter(ke=>!(I&&I!=ke.namespaceId||Z&&Z!=ke.triggerName))),Te}_beforeAnimationBuild(h,p,I){const me=p.element,Te=p.isRemovalTransition?void 0:h,ke=p.isRemovalTransition?void 0:p.triggerName;for(const rt of p.timelines){const bt=rt.element,kt=bt!==me,Vt=M(I,bt,[]);this._getPreviousPlayers(bt,kt,Te,ke,p.toState).forEach(mn=>{const Gt=mn.getRealPlayer();Gt.beforeDestroy&&Gt.beforeDestroy(),mn.destroy(),Vt.push(mn)})}ze(me,p.fromStyles)}_buildAnimation(h,p,I,Z,me,Te){const ke=p.triggerName,rt=p.element,bt=[],kt=new Set,Vt=new Set,nn=p.timelines.map(Gt=>{const en=Gt.element;kt.add(en);const hn=en[Cn];if(hn&&hn.removedBeforeQueried)return new f.ZN(Gt.duration,Gt.delay);const Pn=en!==rt,An=function(G){const h=[];return _r(G,h),h}((I.get(en)||xn).map(ri=>ri.getRealPlayer())).filter(ri=>!!ri.element&&ri.element===en),si=me.get(en),zn=Te.get(en),nr=w(0,this._normalizer,0,Gt.keyframes,si,zn),Pi=this._buildPlayer(Gt,nr,An);if(Gt.subTimeline&&Z&&Vt.add(en),Pn){const ri=new kr(h,ke,en);ri.setRealPlayer(Pi),bt.push(ri)}return Pi});bt.forEach(Gt=>{M(this.playersByQueriedElement,Gt.element,[]).push(Gt),Gt.onDone(()=>function(G,h,p){let I;if(G instanceof Map){if(I=G.get(h),I){if(I.length){const Z=I.indexOf(p);I.splice(Z,1)}0==I.length&&G.delete(h)}}else if(I=G[h],I){if(I.length){const Z=I.indexOf(p);I.splice(Z,1)}0==I.length&&delete G[h]}return I}(this.playersByQueriedElement,Gt.element,Gt))}),kt.forEach(Gt=>ii(Gt,Xe));const mn=C(nn);return mn.onDestroy(()=>{kt.forEach(Gt=>Ti(Gt,Xe)),Ze(rt,p.toStyles)}),Vt.forEach(Gt=>{M(Z,Gt,[]).push(mn)}),mn}_buildPlayer(h,p,I){return p.length>0?this.driver.animate(h.element,p,h.duration,h.delay,h.easing,I):new f.ZN(h.duration,h.delay)}}class kr{constructor(h,p,I){this.namespaceId=h,this.triggerName=p,this.element=I,this._player=new f.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(h){this._containsRealPlayer||(this._player=h,Object.keys(this._queuedCallbacks).forEach(p=>{this._queuedCallbacks[p].forEach(I=>D(h,p,void 0,I))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(h.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(h){this.totalTime=h}syncPlayerEvents(h){const p=this._player;p.triggerCallback&&h.onStart(()=>p.triggerCallback("start")),h.onDone(()=>this.finish()),h.onDestroy(()=>this.destroy())}_queueEvent(h,p){M(this._queuedCallbacks,h,[]).push(p)}onDone(h){this.queued&&this._queueEvent("done",h),this._player.onDone(h)}onStart(h){this.queued&&this._queueEvent("start",h),this._player.onStart(h)}onDestroy(h){this.queued&&this._queueEvent("destroy",h),this._player.onDestroy(h)}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(h){this.queued||this._player.setPosition(h)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(h){const p=this._player;p.triggerCallback&&p.triggerCallback(h)}}function gr(G){return G&&1===G.nodeType}function Nr(G,h){const p=G.style.display;return G.style.display=null!=h?h:"none",p}function eo(G,h,p,I,Z){const me=[];p.forEach(rt=>me.push(Nr(rt)));const Te=[];I.forEach((rt,bt)=>{const kt={};rt.forEach(Vt=>{const nn=kt[Vt]=h.computeStyle(bt,Vt,Z);(!nn||0==nn.length)&&(bt[Cn]=ti,Te.push(bt))}),G.set(bt,kt)});let ke=0;return p.forEach(rt=>Nr(rt,me[ke++])),Te}function to(G,h){const p=new Map;if(G.forEach(ke=>p.set(ke,[])),0==h.length)return p;const Z=new Set(h),me=new Map;function Te(ke){if(!ke)return 1;let rt=me.get(ke);if(rt)return rt;const bt=ke.parentNode;return rt=p.has(bt)?bt:Z.has(bt)?1:Te(bt),me.set(ke,rt),rt}return h.forEach(ke=>{const rt=Te(ke);1!==rt&&p.get(rt).push(ke)}),p}const Di="$$classes";function ii(G,h){if(G.classList)G.classList.add(h);else{let p=G[Di];p||(p=G[Di]={}),p[h]=!0}}function Ti(G,h){if(G.classList)G.classList.remove(h);else{let p=G[Di];p&&delete p[h]}}function mo(G,h,p){C(p).onDone(()=>G.processLeaveNode(h))}function _r(G,h){for(let p=0;p<G.length;p++){const I=G[p];I instanceof f.ZE?_r(I.players,h):h.push(I)}}function jr(G,h,p){const I=p.get(G);if(!I)return!1;let Z=h.get(G);return Z?I.forEach(me=>Z.add(me)):h.set(G,I),p.delete(G),!0}class wi{constructor(h,p,I){this.bodyNode=h,this._driver=p,this._normalizer=I,this._triggerCache={},this.onRemovalComplete=(Z,me)=>{},this._transitionEngine=new Un(h,p,I),this._timelineEngine=new Mn(h,p,I),this._transitionEngine.onRemovalComplete=(Z,me)=>this.onRemovalComplete(Z,me)}registerTrigger(h,p,I,Z,me){const Te=h+"-"+Z;let ke=this._triggerCache[Te];if(!ke){const rt=[],bt=_n(this._driver,me,rt);if(rt.length)throw new Error(`The animation trigger "${Z}" has failed to build due to the following errors:\n - ${rt.join("\n - ")}`);ke=function(G,h,p){return new Ft(G,h,p)}(Z,bt,this._normalizer),this._triggerCache[Te]=ke}this._transitionEngine.registerTrigger(p,Z,ke)}register(h,p){this._transitionEngine.register(h,p)}destroy(h,p){this._transitionEngine.destroy(h,p)}onInsert(h,p,I,Z){this._transitionEngine.insertNode(h,p,I,Z)}onRemove(h,p,I,Z){this._transitionEngine.removeNode(h,p,Z||!1,I)}disableAnimations(h,p){this._transitionEngine.markElementAsDisabled(h,p)}process(h,p,I,Z){if("@"==I.charAt(0)){const[me,Te]=S(I);this._timelineEngine.command(me,p,Te,Z)}else this._transitionEngine.trigger(h,p,I,Z)}listen(h,p,I,Z,me){if("@"==I.charAt(0)){const[Te,ke]=S(I);return this._timelineEngine.listen(Te,p,ke,me)}return this._transitionEngine.listen(h,p,I,Z,me)}flush(h=-1){this._transitionEngine.flush(h)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Li(G,h){let p=null,I=null;return Array.isArray(h)&&h.length?(p=qi(h[0]),h.length>1&&(I=qi(h[h.length-1]))):h&&(p=qi(h)),p||I?new Br(G,p,I):null}let Br=(()=>{class G{constructor(p,I,Z){this._element=p,this._startStyles=I,this._endStyles=Z,this._state=0;let me=G.initialStylesByElement.get(p);me||G.initialStylesByElement.set(p,me={}),this._initialStyles=me}start(){this._state<1&&(this._startStyles&&Ze(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ze(this._element,this._initialStyles),this._endStyles&&(Ze(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(G.initialStylesByElement.delete(this._element),this._startStyles&&(ze(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ze(this._element,this._endStyles),this._endStyles=null),Ze(this._element,this._initialStyles),this._state=3)}}return G.initialStylesByElement=new WeakMap,G})();function qi(G){let h=null;const p=Object.keys(G);for(let I=0;I<p.length;I++){const Z=p[I];yr(Z)&&(h=h||{},h[Z]=G[Z])}return h}function yr(G){return"display"===G||"position"===G}const er="animation",Mi="animationend";class Vr{constructor(h,p,I,Z,me,Te,ke){this._element=h,this._name=p,this._duration=I,this._delay=Z,this._easing=me,this._fillMode=Te,this._onDoneFn=ke,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=rt=>this._handleCallback(rt)}apply(){(function(G,h){const p=Cr(G,"").trim();let I=0;p.length&&(function(G,h){let p=0;for(let I=0;I<G.length;I++)","===G.charAt(I)&&p++;return p}(p)+1,h=`${p}, ${h}`),Rn(G,"",h)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),$r(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){tr(this._element,this._name,"paused")}resume(){tr(this._element,this._name,"running")}setPosition(h){const p=Hr(this._element,this._name);this._position=h*this._duration,Rn(this._element,"Delay",`-${this._position}ms`,p)}getPosition(){return this._position}_handleCallback(h){const p=h._ngTestManualTimestamp||Date.now(),I=1e3*parseFloat(h.elapsedTime.toFixed(3));h.animationName==this._name&&Math.max(p-this._startTime,0)>=this._delay&&I>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),$r(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(G,h){const I=Cr(G,"").split(","),Z=Si(I,h);Z>=0&&(I.splice(Z,1),Rn(G,"",I.join(",")))}(this._element,this._name))}}function tr(G,h,p){Rn(G,"PlayState",p,Hr(G,h))}function Hr(G,h){const p=Cr(G,"");return p.indexOf(",")>0?Si(p.split(","),h):Si([p],h)}function Si(G,h){for(let p=0;p<G.length;p++)if(G[p].indexOf(h)>=0)return p;return-1}function $r(G,h,p){p?G.removeEventListener(Mi,h):G.addEventListener(Mi,h)}function Rn(G,h,p,I){const Z=er+h;if(null!=I){const me=G.style[Z];if(me.length){const Te=me.split(",");Te[I]=p,p=Te.join(",")}}G.style[Z]=p}function Cr(G,h){return G.style[er+h]||""}class Tr{constructor(h,p,I,Z,me,Te,ke,rt){this.element=h,this.keyframes=p,this.animationName=I,this._duration=Z,this._delay=me,this._finalStyles=ke,this._specialStyles=rt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=Te||"linear",this.totalTime=Z+me,this._buildStyler()}onStart(h){this._onStartFns.push(h)}onDone(h){this._onDoneFns.push(h)}onDestroy(h){this._onDestroyFns.push(h)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(h=>h()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(h=>h()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(h=>h()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(h){this._styler.setPosition(h)}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 Vr(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(h){const p="start"==h?this._onStartFns:this._onDoneFns;p.forEach(I=>I()),p.length=0}beforeDestroy(){this.init();const h={};if(this.hasStarted()){const p=this._state>=3;Object.keys(this._finalStyles).forEach(I=>{"offset"!=I&&(h[I]=p?this._finalStyles[I]:Be(this.element,I))})}this.currentSnapshot=h}}class go extends f.ZN{constructor(h,p){super(),this.element=h,this._startingStyles={},this.__initialized=!1,this._styles=ge(p)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(h=>{this._startingStyles[h]=this.element.style[h]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(h=>this.element.style.setProperty(h,this._styles[h])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(h=>{const p=this._startingStyles[h];p?this.element.style.setProperty(h,p):this.element.style.removeProperty(h)}),this._startingStyles=null,super.destroy())}}class k{constructor(){this._count=0}validateStyleProperty(h){return xe(h)}matchesElement(h,p){return Ne(h,p)}containsElement(h,p){return Ct(h,p)}query(h,p,I){return te(h,p,I)}computeStyle(h,p,I){return window.getComputedStyle(h)[p]}buildKeyframeElement(h,p,I){I=I.map(ke=>ge(ke));let Z=`@keyframes ${p} {\n`,me="";I.forEach(ke=>{me=" ";const rt=parseFloat(ke.offset);Z+=`${me}${100*rt}% {\n`,me+=" ",Object.keys(ke).forEach(bt=>{const kt=ke[bt];switch(bt){case"offset":return;case"easing":return void(kt&&(Z+=`${me}animation-timing-function: ${kt};\n`));default:return void(Z+=`${me}${bt}: ${kt};\n`)}}),Z+=`${me}}\n`}),Z+="}\n";const Te=document.createElement("style");return Te.textContent=Z,Te}animate(h,p,I,Z,me,Te=[],ke){const rt=Te.filter(hn=>hn instanceof Tr),bt={};he(I,Z)&&rt.forEach(hn=>{let Pn=hn.currentSnapshot;Object.keys(Pn).forEach(An=>bt[An]=Pn[An])});const kt=function(G){let h={};return G&&(Array.isArray(G)?G:[G]).forEach(I=>{Object.keys(I).forEach(Z=>{"offset"==Z||"easing"==Z||(h[Z]=I[Z])})}),h}(p=z(h,p,bt));if(0==I)return new go(h,kt);const Vt="gen_css_kf_"+this._count++,nn=this.buildKeyframeElement(h,Vt,p);(function(G){var h;const p=null===(h=G.getRootNode)||void 0===h?void 0:h.call(G);return"undefined"!=typeof ShadowRoot&&p instanceof ShadowRoot?p:document.head})(h).appendChild(nn);const Gt=Li(h,p),en=new Tr(h,p,Vt,I,Z,me,kt,Gt);return en.onDestroy(()=>{var G;(G=nn).parentNode.removeChild(G)}),en}}class St{constructor(h,p,I,Z){this.element=h,this.keyframes=p,this.options=I,this._specialStyles=Z,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(h=>h()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const h=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,h,this.options),this._finalKeyframe=h.length?h[h.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(h,p,I){return h.animate(p,I)}onStart(h){this._onStartFns.push(h)}onDone(h){this._onDoneFns.push(h)}onDestroy(h){this._onDestroyFns.push(h)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(h=>h()),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(h=>h()),this._onDestroyFns=[])}setPosition(h){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=h*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const h={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(p=>{"offset"!=p&&(h[p]=this._finished?this._finalKeyframe[p]:Be(this.element,p))}),this.currentSnapshot=h}triggerCallback(h){const p="start"==h?this._onStartFns:this._onDoneFns;p.forEach(I=>I()),p.length=0}}class Zt{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(rn().toString()),this._cssKeyframesDriver=new k}validateStyleProperty(h){return xe(h)}matchesElement(h,p){return Ne(h,p)}containsElement(h,p){return Ct(h,p)}query(h,p,I){return te(h,p,I)}computeStyle(h,p,I){return window.getComputedStyle(h)[p]}overrideWebAnimationsSupport(h){this._isNativeImpl=h}animate(h,p,I,Z,me,Te=[],ke){if(!ke&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(h,p,I,Z,me,Te);const kt={duration:I,delay:Z,fill:0==Z?"both":"forwards"};me&&(kt.easing=me);const Vt={},nn=Te.filter(Gt=>Gt instanceof St);he(I,Z)&&nn.forEach(Gt=>{let en=Gt.currentSnapshot;Object.keys(en).forEach(hn=>Vt[hn]=en[hn])});const mn=Li(h,p=z(h,p=p.map(Gt=>Fe(Gt,!1)),Vt));return new St(h,p,kt,mn)}}function rn(){return _()&&Element.prototype.animate||{}}var bn=d(8583);let Tn=(()=>{class G extends f._j{constructor(p,I){super(),this._nextAnimationId=0,this._renderer=p.createRenderer(I.body,{id:"0",encapsulation:o.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(p){const I=this._nextAnimationId.toString();this._nextAnimationId++;const Z=Array.isArray(p)?(0,f.vP)(p):p;return Kn(this._renderer,null,I,"register",[Z]),new Ln(I,this._renderer)}}return G.\u0275fac=function(p){return new(p||G)(o.\u0275\u0275inject(o.RendererFactory2),o.\u0275\u0275inject(bn.DOCUMENT))},G.\u0275prov=o.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})();class Ln extends f.LC{constructor(h,p){super(),this._id=h,this._renderer=p}create(h,p){return new Ur(this._id,h,p||{},this._renderer)}}class Ur{constructor(h,p,I,Z){this.id=h,this.element=p,this._renderer=Z,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",I)}_listen(h,p){return this._renderer.listen(this.element,`@@${this.id}:${h}`,p)}_command(h,...p){return Kn(this._renderer,this.element,this.id,h,p)}onDone(h){this._listen("done",h)}onStart(h){this._listen("start",h)}onDestroy(h){this._listen("destroy",h)}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(h){this._command("setPosition",h)}getPosition(){var h,p;return null!==(p=null===(h=this._renderer.engine.players[+this.id])||void 0===h?void 0:h.getPosition())&&void 0!==p?p:0}}function Kn(G,h,p,I,Z){return G.setProperty(h,`@@${p}:${I}`,Z)}const Ii="@.disabled";let Yt=(()=>{class G{constructor(p,I,Z){this.delegate=p,this.engine=I,this._zone=Z,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),I.onRemovalComplete=(me,Te)=>{Te&&Te.parentNode(me)&&Te.removeChild(me.parentNode,me)}}createRenderer(p,I){const me=this.delegate.createRenderer(p,I);if(!(p&&I&&I.data&&I.data.animation)){let kt=this._rendererCache.get(me);return kt||(kt=new io("",me,this.engine),this._rendererCache.set(me,kt)),kt}const Te=I.id,ke=I.id+"-"+this._currentId;this._currentId++,this.engine.register(ke,p);const rt=kt=>{Array.isArray(kt)?kt.forEach(rt):this.engine.registerTrigger(Te,ke,p,kt.name,kt)};return I.data.animation.forEach(rt),new _o(this,ke,me,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(p,I,Z){p>=0&&p<this._microtaskId?this._zone.run(()=>I(Z)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(me=>{const[Te,ke]=me;Te(ke)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([I,Z]))}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 G.\u0275fac=function(p){return new(p||G)(o.\u0275\u0275inject(o.RendererFactory2),o.\u0275\u0275inject(wi),o.\u0275\u0275inject(o.NgZone))},G.\u0275prov=o.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})();class io{constructor(h,p,I){this.namespaceId=h,this.delegate=p,this.engine=I,this.destroyNode=this.delegate.destroyNode?Z=>p.destroyNode(Z):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(h,p){return this.delegate.createElement(h,p)}createComment(h){return this.delegate.createComment(h)}createText(h){return this.delegate.createText(h)}appendChild(h,p){this.delegate.appendChild(h,p),this.engine.onInsert(this.namespaceId,p,h,!1)}insertBefore(h,p,I,Z=!0){this.delegate.insertBefore(h,p,I),this.engine.onInsert(this.namespaceId,p,h,Z)}removeChild(h,p,I){this.engine.onRemove(this.namespaceId,p,this.delegate,I)}selectRootElement(h,p){return this.delegate.selectRootElement(h,p)}parentNode(h){return this.delegate.parentNode(h)}nextSibling(h){return this.delegate.nextSibling(h)}setAttribute(h,p,I,Z){this.delegate.setAttribute(h,p,I,Z)}removeAttribute(h,p,I){this.delegate.removeAttribute(h,p,I)}addClass(h,p){this.delegate.addClass(h,p)}removeClass(h,p){this.delegate.removeClass(h,p)}setStyle(h,p,I,Z){this.delegate.setStyle(h,p,I,Z)}removeStyle(h,p,I){this.delegate.removeStyle(h,p,I)}setProperty(h,p,I){"@"==p.charAt(0)&&p==Ii?this.disableAnimations(h,!!I):this.delegate.setProperty(h,p,I)}setValue(h,p){this.delegate.setValue(h,p)}listen(h,p,I){return this.delegate.listen(h,p,I)}disableAnimations(h,p){this.engine.disableAnimations(h,p)}}class _o extends io{constructor(h,p,I,Z){super(p,I,Z),this.factory=h,this.namespaceId=p}setProperty(h,p,I){"@"==p.charAt(0)?"."==p.charAt(1)&&p==Ii?this.disableAnimations(h,I=void 0===I||!!I):this.engine.process(this.namespaceId,h,p.substr(1),I):this.delegate.setProperty(h,p,I)}listen(h,p,I){if("@"==p.charAt(0)){const Z=function(G){switch(G){case"body":return document.body;case"document":return document;case"window":return window;default:return G}}(h);let me=p.substr(1),Te="";return"@"!=me.charAt(0)&&([me,Te]=function(G){const h=G.indexOf(".");return[G.substring(0,h),G.substr(h+1)]}(me)),this.engine.listen(this.namespaceId,Z,me,Te,ke=>{this.factory.scheduleListenerCallback(ke._data||-1,I,ke)})}return this.delegate.listen(h,p,I)}}let Rs=(()=>{class G extends wi{constructor(p,I,Z){super(p.body,I,Z)}ngOnDestroy(){this.flush()}}return G.\u0275fac=function(p){return new(p||G)(o.\u0275\u0275inject(bn.DOCUMENT),o.\u0275\u0275inject(le),o.\u0275\u0275inject(ee))},G.\u0275prov=o.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})();function ks(){return"function"==typeof rn()?new Zt:new k}function Fs(){return new Y}function Mt(G,h,p){return new Yt(G,h,p)}const pn=new o.InjectionToken("AnimationModuleType"),Ns=[{provide:f._j,useClass:Tn},{provide:ee,useFactory:Fs},{provide:wi,useClass:Rs},{provide:o.RendererFactory2,useFactory:Mt,deps:[l.\u0275DomRendererFactory2,wi,o.NgZone]}],kn=[{provide:le,useFactory:ks},{provide:pn,useValue:"BrowserAnimations"},...Ns],Fo=[{provide:le,useClass:X},{provide:pn,useValue:"NoopAnimations"},...Ns];let yo=(()=>{class G{static withConfig(p){return{ngModule:G,providers:p.disableAnimations?Fo:kn}}}return G.\u0275fac=function(p){return new(p||G)},G.\u0275mod=o.\u0275\u0275defineNgModule({type:G}),G.\u0275inj=o.\u0275\u0275defineInjector({providers:kn,imports:[l.BrowserModule]}),G})(),Vi=(()=>{class G{}return G.\u0275fac=function(p){return new(p||G)},G.\u0275mod=o.\u0275\u0275defineNgModule({type:G}),G.\u0275inj=o.\u0275\u0275defineInjector({providers:Fo,imports:[l.BrowserModule]}),G})()},9075:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{\u0275getDOM:()=>o.\u0275getDOM,BrowserModule:()=>ot,BrowserTransferStateModule:()=>ye,By:()=>Ke,DomSanitizer:()=>jt,EVENT_MANAGER_PLUGINS:()=>X,EventManager:()=>le,HAMMER_GESTURE_CONFIG:()=>Ge,HAMMER_LOADER:()=>ft,HammerGestureConfig:()=>vt,HammerModule:()=>he,Meta:()=>Ht,Title:()=>an,TransferState:()=>ve,VERSION:()=>Tt,disableDebugTools:()=>nt,enableDebugTools:()=>Se,makeStateKey:()=>ee,platformBrowser:()=>N,\u0275BROWSER_SANITIZATION_PROVIDERS:()=>J,\u0275BROWSER_SANITIZATION_PROVIDERS__POST_R3__:()=>Q,\u0275BrowserDomAdapter:()=>_,\u0275BrowserGetTestability:()=>S,\u0275DomEventsPlugin:()=>He,\u0275DomRendererFactory2:()=>ae,\u0275DomSanitizerImpl:()=>qe,\u0275DomSharedStylesHost:()=>$e,\u0275ELEMENT_PROBE_PROVIDERS:()=>ge,\u0275ELEMENT_PROBE_PROVIDERS__POST_R3__:()=>Ct,\u0275HAMMER_PROVIDERS__POST_R3__:()=>x,\u0275HammerGesturesPlugin:()=>Ye,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>De,\u0275KeyEventsPlugin:()=>At,\u0275NAMESPACE_URIS:()=>pt,\u0275SharedStylesHost:()=>Ce,\u0275TRANSITION_ID:()=>g,\u0275angular_packages_platform_browser_platform_browser_a:()=>V,\u0275angular_packages_platform_browser_platform_browser_b:()=>K,\u0275angular_packages_platform_browser_platform_browser_c:()=>re,\u0275angular_packages_platform_browser_platform_browser_d:()=>_t,\u0275angular_packages_platform_browser_platform_browser_e:()=>cn,\u0275angular_packages_platform_browser_platform_browser_f:()=>Y,\u0275angular_packages_platform_browser_platform_browser_g:()=>Ae,\u0275angular_packages_platform_browser_platform_browser_h:()=>F,\u0275angular_packages_platform_browser_platform_browser_i:()=>R,\u0275angular_packages_platform_browser_platform_browser_j:()=>_n,\u0275angular_packages_platform_browser_platform_browser_k:()=>E,\u0275angular_packages_platform_browser_platform_browser_l:()=>M,\u0275angular_packages_platform_browser_platform_browser_m:()=>Pe,\u0275angular_packages_platform_browser_platform_browser_n:()=>te,\u0275angular_packages_platform_browser_platform_browser_o:()=>P,\u0275angular_packages_platform_browser_platform_browser_p:()=>f,\u0275escapeHtml:()=>ht,\u0275flattenStyles:()=>oe,\u0275initDomAdapter:()=>Pt,\u0275shimContentAttribute:()=>dt,\u0275shimHostAttribute:()=>$});var o=d(8583),l=d(7716);class f extends o.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class _ extends f{static makeCurrent(){(0,o.\u0275setRootDomAdapter)(new _)}onAndCancel(Ie,pe,Ve){return Ie.addEventListener(pe,Ve,!1),()=>{Ie.removeEventListener(pe,Ve,!1)}}dispatchEvent(Ie,pe){Ie.dispatchEvent(pe)}remove(Ie){Ie.parentNode&&Ie.parentNode.removeChild(Ie)}createElement(Ie,pe){return(pe=pe||this.getDefaultDocument()).createElement(Ie)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ie){return Ie.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ie){return Ie instanceof DocumentFragment}getGlobalEventTarget(Ie,pe){return"window"===pe?window:"document"===pe?Ie:"body"===pe?Ie.body:null}getBaseHref(Ie){const pe=(a=a||document.querySelector("base"),a?a.getAttribute("href"):null);return null==pe?null:function(we){w=w||document.createElement("a"),w.setAttribute("href",we);const Ie=w.pathname;return"/"===Ie.charAt(0)?Ie:`/${Ie}`}(pe)}resetBaseElement(){a=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ie){return(0,o.\u0275parseCookieValue)(document.cookie,Ie)}}let w,a=null;const g=new l.InjectionToken("TRANSITION_ID");function E(we,Ie,pe){return()=>{pe.get(l.ApplicationInitStatus).donePromise.then(()=>{const Ve=(0,o.\u0275getDOM)(),at=Ie.querySelectorAll(`style[ng-transition="${we}"]`);for(let Ft=0;Ft<at.length;Ft++)Ve.remove(at[Ft])})}}const M=[{provide:l.APP_INITIALIZER,useFactory:E,deps:[g,o.DOCUMENT,l.Injector],multi:!0}];class S{static init(){(0,l.setTestabilityGetter)(new S)}addToWindow(Ie){l.\u0275global.getAngularTestability=(Ve,at=!0)=>{const Ft=Ie.findTestabilityInTree(Ve,at);if(null==Ft)throw new Error("Could not find testability for element.");return Ft},l.\u0275global.getAllAngularTestabilities=()=>Ie.getAllTestabilities(),l.\u0275global.getAllAngularRootElements=()=>Ie.getAllRootElements(),l.\u0275global.frameworkStabilizers||(l.\u0275global.frameworkStabilizers=[]),l.\u0275global.frameworkStabilizers.push(Ve=>{const at=l.\u0275global.getAllAngularTestabilities();let Ft=at.length,$t=!1;const qt=function(Wt){$t=$t||Wt,Ft--,0==Ft&&Ve($t)};at.forEach(function(Wt){Wt.whenStable(qt)})})}findTestabilityInTree(Ie,pe,Ve){if(null==pe)return null;const at=Ie.getTestability(pe);return null!=at?at:Ve?(0,o.\u0275getDOM)().isShadowRoot(pe)?this.findTestabilityInTree(Ie,pe.host,!0):this.findTestabilityInTree(Ie,pe.parentElement,!0):null}}let P=(()=>{class we{build(){return new XMLHttpRequest}}return we.\u0275fac=function(pe){return new(pe||we)},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();function be(we,Ie){"undefined"!=typeof COMPILED&&COMPILED||((l.\u0275global.ng=l.\u0275global.ng||{})[we]=Ie)}const lt=(()=>({ApplicationRef:l.ApplicationRef,NgZone:l.NgZone}))();function xe(we){return(0,l.\u0275getDebugNodeR2)(we)}function Pe(we){return be("probe",xe),be("coreTokens",Object.assign(Object.assign({},lt),function(we){return we.reduce((Ie,pe)=>(Ie[pe.name]=pe.token,Ie),{})}(we||[]))),()=>xe}const Ct=[],te=[{provide:l.APP_INITIALIZER,useFactory:Pe,deps:[[l.NgProbeToken,new l.Optional]],multi:!0}],ge=Ct,X=new l.InjectionToken("EventManagerPlugins");let le=(()=>{class we{constructor(pe,Ve){this._zone=Ve,this._eventNameToPlugin=new Map,pe.forEach(at=>at.manager=this),this._plugins=pe.slice().reverse()}addEventListener(pe,Ve,at){return this._findPluginFor(Ve).addEventListener(pe,Ve,at)}addGlobalEventListener(pe,Ve,at){return this._findPluginFor(Ve).addGlobalEventListener(pe,Ve,at)}getZone(){return this._zone}_findPluginFor(pe){const Ve=this._eventNameToPlugin.get(pe);if(Ve)return Ve;const at=this._plugins;for(let Ft=0;Ft<at.length;Ft++){const $t=at[Ft];if($t.supports(pe))return this._eventNameToPlugin.set(pe,$t),$t}throw new Error(`No event manager plugin found for event ${pe}`)}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(X),l.\u0275\u0275inject(l.NgZone))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();class Ae{constructor(Ie){this._doc=Ie}addGlobalEventListener(Ie,pe,Ve){const at=(0,o.\u0275getDOM)().getGlobalEventTarget(this._doc,Ie);if(!at)throw new Error(`Unsupported event target ${at} for event ${pe}`);return this.addEventListener(at,pe,Ve)}}let Ce=(()=>{class we{constructor(){this._stylesSet=new Set}addStyles(pe){const Ve=new Set;pe.forEach(at=>{this._stylesSet.has(at)||(this._stylesSet.add(at),Ve.add(at))}),this.onStylesAdded(Ve)}onStylesAdded(pe){}getAllStyles(){return Array.from(this._stylesSet)}}return we.\u0275fac=function(pe){return new(pe||we)},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})(),$e=(()=>{class we extends Ce{constructor(pe){super(),this._doc=pe,this._hostNodes=new Map,this._hostNodes.set(pe.head,[])}_addStylesToHost(pe,Ve,at){pe.forEach(Ft=>{const $t=this._doc.createElement("style");$t.textContent=Ft,at.push(Ve.appendChild($t))})}addHost(pe){const Ve=[];this._addStylesToHost(this._stylesSet,pe,Ve),this._hostNodes.set(pe,Ve)}removeHost(pe){const Ve=this._hostNodes.get(pe);Ve&&Ve.forEach(et),this._hostNodes.delete(pe)}onStylesAdded(pe){this._hostNodes.forEach((Ve,at)=>{this._addStylesToHost(pe,at,Ve)})}ngOnDestroy(){this._hostNodes.forEach(pe=>pe.forEach(et))}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();function et(we){(0,o.\u0275getDOM)().remove(we)}const pt={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/"},je=/%COMP%/g;function dt(we){return"_ngcontent-%COMP%".replace(je,we)}function $(we){return"_nghost-%COMP%".replace(je,we)}function oe(we,Ie,pe){for(let Ve=0;Ve<Ie.length;Ve++){let at=Ie[Ve];Array.isArray(at)?oe(we,at,pe):(at=at.replace(je,we),pe.push(at))}return pe}function L(we){return Ie=>{if("__ngUnwrap__"===Ie)return we;!1===we(Ie)&&(Ie.preventDefault(),Ie.returnValue=!1)}}let ae=(()=>{class we{constructor(pe,Ve,at){this.eventManager=pe,this.sharedStylesHost=Ve,this.appId=at,this.rendererByCompId=new Map,this.defaultRenderer=new fe(pe)}createRenderer(pe,Ve){if(!pe||!Ve)return this.defaultRenderer;switch(Ve.encapsulation){case l.ViewEncapsulation.Emulated:{let at=this.rendererByCompId.get(Ve.id);return at||(at=new Ze(this.eventManager,this.sharedStylesHost,Ve,this.appId),this.rendererByCompId.set(Ve.id,at)),at.applyToHost(pe),at}case 1:case l.ViewEncapsulation.ShadowDom:return new ze(this.eventManager,this.sharedStylesHost,pe,Ve);default:if(!this.rendererByCompId.has(Ve.id)){const at=oe(Ve.id,Ve.styles,[]);this.sharedStylesHost.addStyles(at),this.rendererByCompId.set(Ve.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(le),l.\u0275\u0275inject($e),l.\u0275\u0275inject(l.APP_ID))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();class fe{constructor(Ie){this.eventManager=Ie,this.data=Object.create(null)}destroy(){}createElement(Ie,pe){return pe?document.createElementNS(pt[pe]||pe,Ie):document.createElement(Ie)}createComment(Ie){return document.createComment(Ie)}createText(Ie){return document.createTextNode(Ie)}appendChild(Ie,pe){Ie.appendChild(pe)}insertBefore(Ie,pe,Ve){Ie&&Ie.insertBefore(pe,Ve)}removeChild(Ie,pe){Ie&&Ie.removeChild(pe)}selectRootElement(Ie,pe){let Ve="string"==typeof Ie?document.querySelector(Ie):Ie;if(!Ve)throw new Error(`The selector "${Ie}" did not match any elements`);return pe||(Ve.textContent=""),Ve}parentNode(Ie){return Ie.parentNode}nextSibling(Ie){return Ie.nextSibling}setAttribute(Ie,pe,Ve,at){if(at){pe=at+":"+pe;const Ft=pt[at];Ft?Ie.setAttributeNS(Ft,pe,Ve):Ie.setAttribute(pe,Ve)}else Ie.setAttribute(pe,Ve)}removeAttribute(Ie,pe,Ve){if(Ve){const at=pt[Ve];at?Ie.removeAttributeNS(at,pe):Ie.removeAttribute(`${Ve}:${pe}`)}else Ie.removeAttribute(pe)}addClass(Ie,pe){Ie.classList.add(pe)}removeClass(Ie,pe){Ie.classList.remove(pe)}setStyle(Ie,pe,Ve,at){at&(l.RendererStyleFlags2.DashCase|l.RendererStyleFlags2.Important)?Ie.style.setProperty(pe,Ve,at&l.RendererStyleFlags2.Important?"important":""):Ie.style[pe]=Ve}removeStyle(Ie,pe,Ve){Ve&l.RendererStyleFlags2.DashCase?Ie.style.removeProperty(pe):Ie.style[pe]=""}setProperty(Ie,pe,Ve){Ie[pe]=Ve}setValue(Ie,pe){Ie.nodeValue=pe}listen(Ie,pe,Ve){return"string"==typeof Ie?this.eventManager.addGlobalEventListener(Ie,pe,L(Ve)):this.eventManager.addEventListener(Ie,pe,L(Ve))}}class Ze extends fe{constructor(Ie,pe,Ve,at){super(Ie),this.component=Ve;const Ft=oe(at+"-"+Ve.id,Ve.styles,[]);pe.addStyles(Ft),this.contentAttr=dt(at+"-"+Ve.id),this.hostAttr=$(at+"-"+Ve.id)}applyToHost(Ie){super.setAttribute(Ie,this.hostAttr,"")}createElement(Ie,pe){const Ve=super.createElement(Ie,pe);return super.setAttribute(Ve,this.contentAttr,""),Ve}}class ze extends fe{constructor(Ie,pe,Ve,at){super(Ie),this.sharedStylesHost=pe,this.hostEl=Ve,this.shadowRoot=Ve.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ft=oe(at.id,at.styles,[]);for(let $t=0;$t<Ft.length;$t++){const qt=document.createElement("style");qt.textContent=Ft[$t],this.shadowRoot.appendChild(qt)}}nodeOrShadowRoot(Ie){return Ie===this.hostEl?this.shadowRoot:Ie}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Ie,pe){return super.appendChild(this.nodeOrShadowRoot(Ie),pe)}insertBefore(Ie,pe,Ve){return super.insertBefore(this.nodeOrShadowRoot(Ie),pe,Ve)}removeChild(Ie,pe){return super.removeChild(this.nodeOrShadowRoot(Ie),pe)}parentNode(Ie){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ie)))}}let He=(()=>{class we extends Ae{constructor(pe){super(pe)}supports(pe){return!0}addEventListener(pe,Ve,at){return pe.addEventListener(Ve,at,!1),()=>this.removeEventListener(pe,Ve,at)}removeEventListener(pe,Ve,at){return pe.removeEventListener(Ve,at)}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();const q={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Ge=new l.InjectionToken("HammerGestureConfig"),ft=new l.InjectionToken("HammerLoader");let vt=(()=>{class we{constructor(){this.events=[],this.overrides={}}buildHammer(pe){const Ve=new Hammer(pe,this.options);Ve.get("pinch").set({enable:!0}),Ve.get("rotate").set({enable:!0});for(const at in this.overrides)Ve.get(at).set(this.overrides[at]);return Ve}}return we.\u0275fac=function(pe){return new(pe||we)},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})(),Ye=(()=>{class we extends Ae{constructor(pe,Ve,at,Ft){super(pe),this._config=Ve,this.console=at,this.loader=Ft,this._loaderPromise=null}supports(pe){return!(!q.hasOwnProperty(pe.toLowerCase())&&!this.isCustomEvent(pe)||!window.Hammer&&!this.loader)}addEventListener(pe,Ve,at){const Ft=this.manager.getZone();if(Ve=Ve.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let $t=!1,qt=()=>{$t=!0};return this._loaderPromise.then(()=>{window.Hammer?$t||(qt=this.addEventListener(pe,Ve,at)):qt=()=>{}}).catch(()=>{qt=()=>{}}),()=>{qt()}}return Ft.runOutsideAngular(()=>{const $t=this._config.buildHammer(pe),qt=function(Wt){Ft.runGuarded(function(){at(Wt)})};return $t.on(Ve,qt),()=>{$t.off(Ve,qt),"function"==typeof $t.destroy&&$t.destroy()}})}isCustomEvent(pe){return this._config.events.indexOf(pe)>-1}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(o.DOCUMENT),l.\u0275\u0275inject(Ge),l.\u0275\u0275inject(l.\u0275Console),l.\u0275\u0275inject(ft,8))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();const x=[],F=[{provide:X,useClass:Ye,multi:!0,deps:[o.DOCUMENT,Ge,l.\u0275Console,[new l.Optional,ft]]},{provide:Ge,useClass:vt,deps:[]}],R=x;let he=(()=>{class we{}return we.\u0275fac=function(pe){return new(pe||we)},we.\u0275mod=l.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=l.\u0275\u0275defineInjector({providers:F}),we})();const z=["alt","control","meta","shift"],Be={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},gt={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"},Qt={alt:we=>we.altKey,control:we=>we.ctrlKey,meta:we=>we.metaKey,shift:we=>we.shiftKey};let At=(()=>{class we extends Ae{constructor(pe){super(pe)}supports(pe){return null!=we.parseEventName(pe)}addEventListener(pe,Ve,at){const Ft=we.parseEventName(Ve),$t=we.eventCallback(Ft.fullKey,at,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,o.\u0275getDOM)().onAndCancel(pe,Ft.domEventName,$t))}static parseEventName(pe){const Ve=pe.toLowerCase().split("."),at=Ve.shift();if(0===Ve.length||"keydown"!==at&&"keyup"!==at)return null;const Ft=we._normalizeKey(Ve.pop());let $t="";if(z.forEach(Wt=>{const Mn=Ve.indexOf(Wt);Mn>-1&&(Ve.splice(Mn,1),$t+=Wt+".")}),$t+=Ft,0!=Ve.length||0===Ft.length)return null;const qt={};return qt.domEventName=at,qt.fullKey=$t,qt}static getEventFullKey(pe){let Ve="",at=function(we){let Ie=we.key;if(null==Ie){if(Ie=we.keyIdentifier,null==Ie)return"Unidentified";Ie.startsWith("U+")&&(Ie=String.fromCharCode(parseInt(Ie.substring(2),16)),3===we.location&&gt.hasOwnProperty(Ie)&&(Ie=gt[Ie]))}return Be[Ie]||Ie}(pe);return at=at.toLowerCase()," "===at?at="space":"."===at&&(at="dot"),z.forEach(Ft=>{Ft!=at&&Qt[Ft](pe)&&(Ve+=Ft+".")}),Ve+=at,Ve}static eventCallback(pe,Ve,at){return Ft=>{we.getEventFullKey(Ft)===pe&&at.runGuarded(()=>Ve(Ft))}}static _normalizeKey(pe){switch(pe){case"esc":return"escape";default:return pe}}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})(),jt=(()=>{class we{}return we.\u0275fac=function(pe){return new(pe||we)},we.\u0275prov=(0,l.\u0275\u0275defineInjectable)({factory:function(){return(0,l.\u0275\u0275inject)(qe)},token:we,providedIn:"root"}),we})();function _n(we){return new qe(we.get(o.DOCUMENT))}let qe=(()=>{class we extends jt{constructor(pe){super(),this._doc=pe}sanitize(pe,Ve){if(null==Ve)return null;switch(pe){case l.SecurityContext.NONE:return Ve;case l.SecurityContext.HTML:return(0,l.\u0275allowSanitizationBypassAndThrow)(Ve,"HTML")?(0,l.\u0275unwrapSafeValue)(Ve):(0,l.\u0275_sanitizeHtml)(this._doc,String(Ve)).toString();case l.SecurityContext.STYLE:return(0,l.\u0275allowSanitizationBypassAndThrow)(Ve,"Style")?(0,l.\u0275unwrapSafeValue)(Ve):Ve;case l.SecurityContext.SCRIPT:if((0,l.\u0275allowSanitizationBypassAndThrow)(Ve,"Script"))return(0,l.\u0275unwrapSafeValue)(Ve);throw new Error("unsafe value used in a script context");case l.SecurityContext.URL:return(0,l.\u0275getSanitizationBypassType)(Ve),(0,l.\u0275allowSanitizationBypassAndThrow)(Ve,"URL")?(0,l.\u0275unwrapSafeValue)(Ve):(0,l.\u0275_sanitizeUrl)(String(Ve));case l.SecurityContext.RESOURCE_URL:if((0,l.\u0275allowSanitizationBypassAndThrow)(Ve,"ResourceURL"))return(0,l.\u0275unwrapSafeValue)(Ve);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${pe} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(pe){return(0,l.\u0275bypassSanitizationTrustHtml)(pe)}bypassSecurityTrustStyle(pe){return(0,l.\u0275bypassSanitizationTrustStyle)(pe)}bypassSecurityTrustScript(pe){return(0,l.\u0275bypassSanitizationTrustScript)(pe)}bypassSecurityTrustUrl(pe){return(0,l.\u0275bypassSanitizationTrustUrl)(pe)}bypassSecurityTrustResourceUrl(pe){return(0,l.\u0275bypassSanitizationTrustResourceUrl)(pe)}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=(0,l.\u0275\u0275defineInjectable)({factory:function(){return _n((0,l.\u0275\u0275inject)(l.INJECTOR))},token:we,providedIn:"root"}),we})();function Pt(){_.makeCurrent(),S.init()}function V(){return new l.ErrorHandler}function K(){return(0,l.\u0275setDocument)(document),document}const De=[{provide:l.PLATFORM_ID,useValue:o.\u0275PLATFORM_BROWSER_ID},{provide:l.PLATFORM_INITIALIZER,useValue:Pt,multi:!0},{provide:o.DOCUMENT,useFactory:K,deps:[]}],Q=[],J=Q,N=(0,l.createPlatformFactory)(l.platformCore,"browser",De),re=[J,{provide:l.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:l.ErrorHandler,useFactory:V,deps:[]},{provide:X,useClass:He,multi:!0,deps:[o.DOCUMENT,l.NgZone,l.PLATFORM_ID]},{provide:X,useClass:At,multi:!0,deps:[o.DOCUMENT]},R,{provide:ae,useClass:ae,deps:[le,$e,l.APP_ID]},{provide:l.RendererFactory2,useExisting:ae},{provide:Ce,useExisting:$e},{provide:$e,useClass:$e,deps:[o.DOCUMENT]},{provide:l.Testability,useClass:l.Testability,deps:[l.NgZone]},{provide:le,useClass:le,deps:[X,l.NgZone]},{provide:o.XhrFactory,useClass:P,deps:[]},ge];let ot=(()=>{class we{constructor(pe){if(pe)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(pe){return{ngModule:we,providers:[{provide:l.APP_ID,useValue:pe.appId},{provide:g,useExisting:l.APP_ID},M]}}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(we,12))},we.\u0275mod=l.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=l.\u0275\u0275defineInjector({providers:re,imports:[o.CommonModule,l.ApplicationModule]}),we})();function _t(){return new Ht((0,l.\u0275\u0275inject)(o.DOCUMENT))}let Ht=(()=>{class we{constructor(pe){this._doc=pe,this._dom=(0,o.\u0275getDOM)()}addTag(pe,Ve=!1){return pe?this._getOrCreateElement(pe,Ve):null}addTags(pe,Ve=!1){return pe?pe.reduce((at,Ft)=>(Ft&&at.push(this._getOrCreateElement(Ft,Ve)),at),[]):[]}getTag(pe){return pe&&this._doc.querySelector(`meta[${pe}]`)||null}getTags(pe){if(!pe)return[];const Ve=this._doc.querySelectorAll(`meta[${pe}]`);return Ve?[].slice.call(Ve):[]}updateTag(pe,Ve){if(!pe)return null;Ve=Ve||this._parseSelector(pe);const at=this.getTag(Ve);return at?this._setMetaElementAttributes(pe,at):this._getOrCreateElement(pe,!0)}removeTag(pe){this.removeTagElement(this.getTag(pe))}removeTagElement(pe){pe&&this._dom.remove(pe)}_getOrCreateElement(pe,Ve=!1){if(!Ve){const $t=this._parseSelector(pe),qt=this.getTags($t).filter(Wt=>this._containsAttributes(pe,Wt))[0];if(void 0!==qt)return qt}const at=this._dom.createElement("meta");return this._setMetaElementAttributes(pe,at),this._doc.getElementsByTagName("head")[0].appendChild(at),at}_setMetaElementAttributes(pe,Ve){return Object.keys(pe).forEach(at=>Ve.setAttribute(this._getMetaKeyMap(at),pe[at])),Ve}_parseSelector(pe){const Ve=pe.name?"name":"property";return`${Ve}="${pe[Ve]}"`}_containsAttributes(pe,Ve){return Object.keys(pe).every(at=>Ve.getAttribute(this._getMetaKeyMap(at))===pe[at])}_getMetaKeyMap(pe){return dn[pe]||pe}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=(0,l.\u0275\u0275defineInjectable)({factory:_t,token:we,providedIn:"root"}),we})();const dn={httpEquiv:"http-equiv"};function cn(){return new an((0,l.\u0275\u0275inject)(o.DOCUMENT))}let an=(()=>{class we{constructor(pe){this._doc=pe}getTitle(){return this._doc.title}setTitle(pe){this._doc.title=pe||""}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=(0,l.\u0275\u0275defineInjectable)({factory:cn,token:we,providedIn:"root"}),we})();const un="undefined"!=typeof window&&window||{};class wn{constructor(Ie,pe){this.msPerTick=Ie,this.numTicks=pe}}class yn{constructor(Ie){this.appRef=Ie.injector.get(l.ApplicationRef)}timeChangeDetection(Ie){const pe=Ie&&Ie.record,Ve="Change Detection",at=null!=un.console.profile;pe&&at&&un.console.profile(Ve);const Ft=mt();let $t=0;for(;$t<5||mt()-Ft<500;)this.appRef.tick(),$t++;const qt=mt();pe&&at&&un.console.profileEnd(Ve);const Wt=(qt-Ft)/$t;return un.console.log(`ran ${$t} change detection cycles`),un.console.log(`${Wt.toFixed(2)} ms per check`),new wn(Wt,$t)}}function mt(){return un.performance&&un.performance.now?un.performance.now():(new Date).getTime()}const Re="profiler";function Se(we){return be(Re,new yn(we)),we}function nt(){be(Re,null)}function ht(we){const Ie={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return we.replace(/[&"'<>]/g,pe=>Ie[pe])}function ee(we){return we}let ve=(()=>{class we{constructor(){this.store={},this.onSerializeCallbacks={}}static init(pe){const Ve=new we;return Ve.store=pe,Ve}get(pe,Ve){return void 0!==this.store[pe]?this.store[pe]:Ve}set(pe,Ve){this.store[pe]=Ve}remove(pe){delete this.store[pe]}hasKey(pe){return this.store.hasOwnProperty(pe)}onSerialize(pe,Ve){this.onSerializeCallbacks[pe]=Ve}toJson(){for(const pe in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(pe))try{this.store[pe]=this.onSerializeCallbacks[pe]()}catch(Ve){console.warn("Exception in onSerialize callback: ",Ve)}return JSON.stringify(this.store)}}return we.\u0275fac=function(pe){return new(pe||we)},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();function Y(we,Ie){const pe=we.getElementById(Ie+"-state");let Ve={};if(pe&&pe.textContent)try{Ve=JSON.parse(function(we){const Ie={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return we.replace(/&[^;]+;/g,pe=>Ie[pe])}(pe.textContent))}catch(at){console.warn("Exception while restoring TransferState for app "+Ie,at)}return ve.init(Ve)}let ye=(()=>{class we{}return we.\u0275fac=function(pe){return new(pe||we)},we.\u0275mod=l.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=l.\u0275\u0275defineInjector({providers:[{provide:ve,useFactory:Y,deps:[o.DOCUMENT,l.APP_ID]}]}),we})();class Ke{static all(){return()=>!0}static css(Ie){return pe=>null!=pe.nativeElement&&function(we,Ie){return!!(0,o.\u0275getDOM)().isElementNode(we)&&(we.matches&&we.matches(Ie)||we.msMatchesSelector&&we.msMatchesSelector(Ie)||we.webkitMatchesSelector&&we.webkitMatchesSelector(Ie))}(pe.nativeElement,Ie)}static directive(Ie){return pe=>-1!==pe.providerTokens.indexOf(Ie)}}const Tt=new l.Version("12.2.13")},5151:(Le,T,d)=>{"use strict";function a($,oe,L,ue){var Fe,ae=arguments.length,fe=ae<3?oe:null===ue?ue=Object.getOwnPropertyDescriptor(oe,L):ue;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate($,oe,L,ue);else for(var st=$.length-1;st>=0;st--)(Fe=$[st])&&(fe=(ae<3?Fe(fe):ae>3?Fe(oe,L,fe):Fe(oe,L))||fe);return ae>3&&fe&&Object.defineProperty(oe,L,fe),fe}function C($,oe){return function(L,ue){oe(L,ue,$)}}function w($,oe){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata($,oe)}d.r(T),d.d(T,{MONACO_PATH:()=>pt,MonacoDiffEditorComponent:()=>Xe,MonacoEditorComponent:()=>It,MonacoEditorLoaderDirective:()=>tt,MonacoEditorLoaderService:()=>je,MonacoEditorModule:()=>dt});var Ne=d(7716),Ct=d(6215),te=d(9765),ge=d(6782),X=d(5435),le=d(5257),Ae=d(3679);const Ce=["editor"],$e=["diffEditor"],et=".monaco-editor[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n\n}\n.editor-container[_ngcontent-%COMP%] {\n\toverflow: hidden;\n\tposition: relative;\n\tdisplay: table;\n\twidth: 100%;\n height: 100%;\n min-width: 0;\n}",pt="MONACO_PATH";let je=(()=>{let $=class{constructor(L,ue){this.ngZone=L,this.monacoPathConfig=ue,this.isMonacoLoaded$=new Ct.X(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?L.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(L){L&&(this._monacoPath=L)}loadMonaco(){const L=()=>{let Fe=this._monacoPath;window.amdRequire=window.require;const st=!!this.nodeRequire,wt=Fe.includes("http");st&&(window.require=this.nodeRequire,wt||(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))},Ze=>console.error("Error loading monaco-editor: ",Ze))};if(window.amdRequire)return L();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const fe=document.createElement("script");fe.type="text/javascript",fe.src=`${this._monacoPath}/loader.js`,fe.addEventListener("load",L),document.body.appendChild(fe)}addElectronFixScripts(){const L=document.createElement("script"),ue=document.createTextNode("self.module = undefined;"),ae=document.createTextNode("self.process.browser = true;");L.appendChild(ue),L.appendChild(ae),document.body.appendChild(L)}};return $.\u0275fac=function(L){return new(L||$)(Ne.\u0275\u0275inject(Ne.NgZone),Ne.\u0275\u0275inject(pt,8))},$.\u0275prov=(0,Ne.\u0275\u0275defineInjectable)({factory:function(){return new $((0,Ne.\u0275\u0275inject)(Ne.NgZone),(0,Ne.\u0275\u0275inject)("MONACO_PATH",8))},token:$,providedIn:"root"}),$=a([C(1,(0,Ne.Optional)()),C(1,(0,Ne.Inject)(pt)),w("design:paramtypes",[Ne.NgZone,String])],$),$})(),tt=(()=>{let $=class{constructor(L,ue,ae){this.templateRef=L,this.viewContainer=ue,this.monacoEditorLoaderService=ae,this.isMonacoLoaded$=this.monacoEditorLoaderService.isMonacoLoaded$.asObservable(),this.destroyed$=new te.xQ}ngOnInit(){this.isMonacoLoaded$.pipe((0,ge.R)(this.destroyed$)).subscribe(L=>{if(!L)return this.viewContainer.clear();this.viewContainer.createEmbeddedView(this.templateRef)})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}};return $.\u0275fac=function(L){return new(L||$)(Ne.\u0275\u0275directiveInject(Ne.TemplateRef),Ne.\u0275\u0275directiveInject(Ne.ViewContainerRef),Ne.\u0275\u0275directiveInject(je))},$.\u0275dir=Ne.\u0275\u0275defineDirective({type:$,selectors:[["","ngxLoadMonacoEditor",""]]}),$=a([w("design:paramtypes",[Ne.TemplateRef,Ne.ViewContainerRef,je])],$),$})();var ut;let It=ut=class{constructor(oe){this.monacoLoader=oe,this.init=new Ne.EventEmitter,this.propagateChange=L=>{}}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,X.h)(oe=>oe),(0,le.q)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(oe){if(this.editor&&oe.options&&!oe.options.firstChange){const L=oe.options.currentValue,{language:ue,theme:ae}=L,fe=function($,oe){var L={};for(var ue in $)Object.prototype.hasOwnProperty.call($,ue)&&oe.indexOf(ue)<0&&(L[ue]=$[ue]);if(null!=$&&"function"==typeof Object.getOwnPropertySymbols){var ae=0;for(ue=Object.getOwnPropertySymbols($);ae<ue.length;ae++)oe.indexOf(ue[ae])<0&&Object.prototype.propertyIsEnumerable.call($,ue[ae])&&(L[ue[ae]]=$[ue[ae]])}return L}(L,["language","theme"]),{language:Fe,theme:st}=oe.options.previousValue;Fe!==ue&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),st!==ae&&monaco.editor.setTheme(ae),this.editor.updateOptions(fe)}if(this.editor&&oe.uri){const L=oe.uri.currentValue,ue=oe.uri.previousValue;if(ue&&!L||!ue&&L||L&&ue&&L.path!==ue.path){const ae=this.editor.getValue();let fe;this.modelUriInstance&&this.modelUriInstance.dispose(),L&&(fe=monaco.editor.getModels().find(Fe=>Fe.uri.path===L.path)),this.modelUriInstance=fe||monaco.editor.createModel(ae,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(oe){this.value=oe,this.editor&&oe?this.editor.setValue(oe):this.editor&&this.editor.setValue("")}registerOnChange(oe){this.propagateChange=oe}registerOnTouched(oe){this.onTouched=oe}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(oe){this.onErrorStatusChange=oe}initEditor(){const oe={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({},oe),this.options):oe),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const oe=this.modelMarkers.map(({message:ue})=>ue).join("|");this.parsedError!==oe&&(this.parsedError=oe,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}};It.\u0275fac=function(oe){return new(oe||It)(Ne.\u0275\u0275directiveInject(je))},It.\u0275cmp=Ne.\u0275\u0275defineComponent({type:It,selectors:[["ngx-monaco-editor"]],viewQuery:function(oe,L){if(1&oe&&Ne.\u0275\u0275viewQuery(Ce,7),2&oe){let ue;Ne.\u0275\u0275queryRefresh(ue=Ne.\u0275\u0275loadQuery())&&(L.editorContent=ue.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[Ne.\u0275\u0275ProvidersFeature([{provide:Ae.NG_VALUE_ACCESSOR,useExisting:(0,Ne.forwardRef)(()=>ut),multi:!0},{provide:Ae.NG_VALIDATORS,useExisting:(0,Ne.forwardRef)(()=>ut),multi:!0}]),Ne.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(oe,L){1&oe&&(Ne.\u0275\u0275elementStart(0,"div",0,1),Ne.\u0275\u0275element(2,"div",2,3),Ne.\u0275\u0275elementEnd())},styles:[et],changeDetection:0}),It.ctorParameters=()=>[{type:je}],a([(0,Ne.Input)(),w("design:type",Object)],It.prototype,"options",void 0),a([(0,Ne.Input)(),w("design:type",Object)],It.prototype,"uri",void 0),a([(0,Ne.Output)(),w("design:type",Ne.EventEmitter)],It.prototype,"init",void 0),a([(0,Ne.ViewChild)("editor",{static:!0}),w("design:type",Ne.ElementRef)],It.prototype,"editorContent",void 0),It=ut=a([w("design:paramtypes",[je])],It);let Xe=(()=>{let $=class{constructor(L){this.monacoLoader=L,this.init=new Ne.EventEmitter}ngOnInit(){this.container=this.editorContent.nativeElement,this.monacoLoader.isMonacoLoaded$.pipe((0,X.h)(L=>L),(0,le.q)(1)).subscribe(()=>{this.initMonaco()})}ngOnChanges(L){if(this.editor&&(L.code&&!L.code.firstChange||L.modified&&!L.modified.firstChange)){const ue=monaco.editor.createModel(this.modified),ae=monaco.editor.createModel(this.original);this.editor.setModel({original:ae,modified:ue})}this.editor&&L.options&&!L.options.firstChange&&(L.options.previousValue.theme!==L.options.currentValue.theme&&monaco.editor.setTheme(L.options.currentValue.theme),this.editor.updateOptions(L.options.currentValue))}initMonaco(){let L={readOnly:!0,automaticLayout:!0,theme:"vc"};this.options&&(L=Object.assign({},L,this.options)),this.editor=monaco.editor.createDiffEditor(this.container,L);const ue=monaco.editor.createModel(this.original),ae=monaco.editor.createModel(this.modified);this.editor.setModel({original:ue,modified:ae}),this.editor.layout(),this.init.emit(this.editor)}ngOnDestroy(){this.editor&&this.editor.dispose()}};return $.\u0275fac=function(L){return new(L||$)(Ne.\u0275\u0275directiveInject(je))},$.\u0275cmp=Ne.\u0275\u0275defineComponent({type:$,selectors:[["ngx-monaco-diff-editor"]],viewQuery:function(L,ue){if(1&L&&Ne.\u0275\u0275viewQuery($e,7),2&L){let ae;Ne.\u0275\u0275queryRefresh(ae=Ne.\u0275\u0275loadQuery())&&(ue.editorContent=ae.first)}},inputs:{original:"original",modified:"modified",options:"options"},outputs:{init:"init"},features:[Ne.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["diffEditor",""]],template:function(L,ue){1&L&&(Ne.\u0275\u0275elementStart(0,"div",0,1),Ne.\u0275\u0275element(2,"div",2,3),Ne.\u0275\u0275elementEnd())},styles:[et],changeDetection:0}),a([(0,Ne.Input)(),w("design:type",String)],$.prototype,"original",void 0),a([(0,Ne.Input)(),w("design:type",String)],$.prototype,"modified",void 0),a([(0,Ne.Input)(),w("design:type",Object)],$.prototype,"options",void 0),a([(0,Ne.Output)(),w("design:type",Ne.EventEmitter)],$.prototype,"init",void 0),a([(0,Ne.ViewChild)("diffEditor",{static:!0}),w("design:type",Ne.ElementRef)],$.prototype,"editorContent",void 0),$=a([w("design:paramtypes",[je])],$),$})(),dt=(()=>{let $=class{};return $.\u0275fac=function(L){return new(L||$)},$.\u0275mod=Ne.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=Ne.\u0275\u0275defineInjector({imports:[[]]}),$})()},9457:function(Le,T){var d,l;void 0!==(l="function"==typeof(d=function(){"use strict";function _(E,M,S){var P=new XMLHttpRequest;P.open("GET",E),P.responseType="blob",P.onload=function(){g(P.response,M,S)},P.onerror=function(){console.error("could not download file")},P.send()}function a(E){var M=new XMLHttpRequest;M.open("HEAD",E,!1);try{M.send()}catch(S){}return 200<=M.status&&299>=M.status}function C(E){try{E.dispatchEvent(new MouseEvent("click"))}catch(S){var M=document.createEvent("MouseEvents");M.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),E.dispatchEvent(M)}}var w="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,D=w.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=w.saveAs||("object"!=typeof window||window!==w?function(){}:"download"in HTMLAnchorElement.prototype&&!D?function(E,M,S){var P=w.URL||w.webkitURL,B=document.createElement("a");B.download=M=M||E.name||"download",B.rel="noopener","string"==typeof E?(B.href=E,B.origin===location.origin?C(B):a(B.href)?_(E,M,S):C(B,B.target="_blank")):(B.href=P.createObjectURL(E),setTimeout(function(){P.revokeObjectURL(B.href)},4e4),setTimeout(function(){C(B)},0))}:"msSaveOrOpenBlob"in navigator?function(E,M,S){if(M=M||E.name||"download","string"!=typeof E)navigator.msSaveOrOpenBlob(function(E,M){return void 0===M?M={autoBom:!1}:"object"!=typeof M&&(console.warn("Deprecated: Expected third argument to be a object"),M={autoBom:!M}),M.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(E.type)?new Blob(["\ufeff",E],{type:E.type}):E}(E,S),M);else if(a(E))_(E,M,S);else{var P=document.createElement("a");P.href=E,P.target="_blank",setTimeout(function(){C(P)})}}:function(E,M,S,P){if((P=P||open("","_blank"))&&(P.document.title=P.document.body.innerText="downloading..."),"string"==typeof E)return _(E,M,S);var B="application/octet-stream"===E.type,j=/constructor/i.test(w.HTMLElement)||w.safari,se=/CriOS\/[\d]+/.test(navigator.userAgent);if((se||B&&j||D)&&"undefined"!=typeof FileReader){var ce=new FileReader;ce.onloadend=function(){var lt=ce.result;lt=se?lt:lt.replace(/^data:[^;]*;/,"data:attachment/file;"),P?P.location.href=lt:location=lt,P=null},ce.readAsDataURL(E)}else{var be=w.URL||w.webkitURL,Ue=be.createObjectURL(E);P?P.location=Ue:location.href=Ue,P=null,setTimeout(function(){be.revokeObjectURL(Ue)},4e4)}});w.saveAs=g.saveAs=g,Le.exports=g})?d.apply(T,[]):d)&&(Le.exports=l)},1103:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{NgxJsonViewerComponent:()=>g,NgxJsonViewerModule:()=>E});var o=d(8583),l=d(7716);function f(M,S){1&M&&l.\u0275\u0275element(0,"div",9)}function _(M,S){if(1&M&&(l.\u0275\u0275elementStart(0,"span",10),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&M){const P=l.\u0275\u0275nextContext().$implicit;l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(P.description)}}function a(M,S){if(1&M&&(l.\u0275\u0275elementStart(0,"section",11),l.\u0275\u0275element(1,"ngx-json-viewer",12),l.\u0275\u0275elementEnd()),2&M){const P=l.\u0275\u0275nextContext().$implicit,B=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275property("json",P.value)("expanded",B.expanded)("depth",B.depth)("_currentDepth",B._currentDepth)}}const C=function(M){return["segment",M]},w=function(M,S){return{"segment-main":!0,expandable:M,expanded:S}};function D(M,S){if(1&M){const P=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"section",2),l.\u0275\u0275elementStart(1,"section",3),l.\u0275\u0275listener("click",function(){const se=l.\u0275\u0275restoreView(P).$implicit;return l.\u0275\u0275nextContext().toggle(se)}),l.\u0275\u0275template(2,f,1,0,"div",4),l.\u0275\u0275elementStart(3,"span",5),l.\u0275\u0275text(4),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(5,"span",6),l.\u0275\u0275text(6,": "),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(7,_,2,1,"span",7),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(8,a,2,4,"section",8),l.\u0275\u0275elementEnd()}if(2&M){const P=S.$implicit,B=l.\u0275\u0275nextContext();l.\u0275\u0275property("ngClass",l.\u0275\u0275pureFunction1(6,C,"segment-type-"+P.type)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngClass",l.\u0275\u0275pureFunction2(8,w,B.isExpandable(P),P.expanded)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",B.isExpandable(P)),l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate(P.key),l.\u0275\u0275advance(3),l.\u0275\u0275property("ngIf",!P.expanded||!B.isExpandable(P)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",P.expanded&&B.isExpandable(P))}}let g=(()=>{class M{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(P=>{this.segments.push(this.parseKeyValue(P,this.json[P]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(P){return"object"===P.type||"array"===P.type}toggle(P){this.isExpandable(P)&&(P.expanded=!P.expanded)}parseKeyValue(P,B){const j={key:P,value:B,type:void 0,description:""+B,expanded:this.isExpanded()};switch(typeof j.value){case"number":j.type="number";break;case"boolean":j.type="boolean";break;case"function":j.type="function";break;case"string":j.type="string",j.description='"'+j.value+'"';break;case"undefined":j.type="undefined",j.description="undefined";break;case"object":null===j.value?(j.type="null",j.description="null"):Array.isArray(j.value)?(j.type="array",j.description="Array["+j.value.length+"] "+JSON.stringify(j.value)):j.value instanceof Date?j.type="date":(j.type="object",j.description="Object "+JSON.stringify(j.value))}return j}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(P){const B=new WeakMap;return function j(se,ce){let be,Ue;return"object"!=typeof se||null===se||se instanceof Boolean||se instanceof Date||se instanceof Number||se instanceof RegExp||se instanceof String?se:(be=B.get(se),void 0!==be?{$ref:be}:(B.set(se,ce),Array.isArray(se)?(Ue=[],se.forEach(function(lt,Je){Ue[Je]=j(lt,ce+"["+Je+"]")})):(Ue={},Object.keys(se).forEach(function(lt){Ue[lt]=j(se[lt],ce+"["+JSON.stringify(lt)+"]")})),Ue))}(P,"$")}}return M.\u0275fac=function(P){return new(P||M)},M.\u0275cmp=l.\u0275\u0275defineComponent({type:M,selectors:[["ngx-json-viewer"]],inputs:{expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth",json:"json"},features:[l.\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(P,B){1&P&&(l.\u0275\u0275elementStart(0,"section",0),l.\u0275\u0275template(1,D,9,11,"section",1),l.\u0275\u0275elementEnd()),2&P&&(l.\u0275\u0275advance(1),l.\u0275\u0275property("ngForOf",B.segments))},directives:[o.NgForOf,o.NgClass,o.NgIf,M],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}']}),M})(),E=(()=>{class M{}return M.\u0275fac=function(P){return new(P||M)},M.\u0275mod=l.\u0275\u0275defineNgModule({type:M}),M.\u0275inj=l.\u0275\u0275defineInjector({imports:[[o.CommonModule]]}),M})()},9344:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{BasePortalHost:()=>Ne,ComponentPortal:()=>Pe,DefaultGlobalConfig:()=>et,DefaultNoAnimationsGlobalConfig:()=>ut,DefaultNoComponentGlobalConfig:()=>Me,Overlay:()=>X,OverlayContainer:()=>te,OverlayRef:()=>ge,TOAST_CONFIG:()=>xe,Toast:()=>$e,ToastContainerDirective:()=>Ue,ToastContainerModule:()=>lt,ToastInjector:()=>Ae,ToastNoAnimation:()=>tt,ToastNoAnimationModule:()=>It,ToastPackage:()=>Je,ToastRef:()=>le,ToastrComponentlessModule:()=>je,ToastrModule:()=>pt,ToastrService:()=>Ce});var o=d(7716),l=d(7238),f=d(9765),_=d(9075),a=d(8583);const C=["toast-component",""];function w(Xe,dt){if(1&Xe){const $=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",5),o.\u0275\u0275listener("click",function(){return o.\u0275\u0275restoreView($),o.\u0275\u0275nextContext().remove()}),o.\u0275\u0275elementStart(1,"span",6),o.\u0275\u0275text(2,"\xd7"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()}}function D(Xe,dt){if(1&Xe&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275text(1),o.\u0275\u0275elementContainerEnd()),2&Xe){const $=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1("[",$.duplicatesCount+1,"]")}}function g(Xe,dt){if(1&Xe&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275text(1),o.\u0275\u0275template(2,D,2,1,"ng-container",4),o.\u0275\u0275elementEnd()),2&Xe){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.titleClass),o.\u0275\u0275attribute("aria-label",$.title),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",$.title," "),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",$.duplicatesCount)}}function E(Xe,dt){if(1&Xe&&o.\u0275\u0275element(0,"div",7),2&Xe){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.messageClass),o.\u0275\u0275property("innerHTML",$.message,o.\u0275\u0275sanitizeHtml)}}function M(Xe,dt){if(1&Xe&&(o.\u0275\u0275elementStart(0,"div",8),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&Xe){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.messageClass),o.\u0275\u0275attribute("aria-label",$.message),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",$.message," ")}}function S(Xe,dt){if(1&Xe&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"div",9),o.\u0275\u0275elementEnd()),2&Xe){const $=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275styleProp("width",$.width+"%")}}function P(Xe,dt){if(1&Xe){const $=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",5),o.\u0275\u0275listener("click",function(){return o.\u0275\u0275restoreView($),o.\u0275\u0275nextContext().remove()}),o.\u0275\u0275elementStart(1,"span",6),o.\u0275\u0275text(2,"\xd7"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()}}function B(Xe,dt){if(1&Xe&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275text(1),o.\u0275\u0275elementContainerEnd()),2&Xe){const $=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1("[",$.duplicatesCount+1,"]")}}function j(Xe,dt){if(1&Xe&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275text(1),o.\u0275\u0275template(2,B,2,1,"ng-container",4),o.\u0275\u0275elementEnd()),2&Xe){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.titleClass),o.\u0275\u0275attribute("aria-label",$.title),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",$.title," "),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",$.duplicatesCount)}}function se(Xe,dt){if(1&Xe&&o.\u0275\u0275element(0,"div",7),2&Xe){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.messageClass),o.\u0275\u0275property("innerHTML",$.message,o.\u0275\u0275sanitizeHtml)}}function ce(Xe,dt){if(1&Xe&&(o.\u0275\u0275elementStart(0,"div",8),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&Xe){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.messageClass),o.\u0275\u0275attribute("aria-label",$.message),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",$.message," ")}}function be(Xe,dt){if(1&Xe&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"div",9),o.\u0275\u0275elementEnd()),2&Xe){const $=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275styleProp("width",$.width+"%")}}let Ue=(()=>{class Xe{constructor($){this.el=$}getContainerElement(){return this.el.nativeElement}}return Xe.\u0275fac=function($){return new($||Xe)(o.\u0275\u0275directiveInject(o.ElementRef))},Xe.\u0275dir=o.\u0275\u0275defineDirective({type:Xe,selectors:[["","toastContainer",""]],exportAs:["toastContainer"]}),Xe})(),lt=(()=>{class Xe{}return Xe.\u0275fac=function($){return new($||Xe)},Xe.\u0275mod=o.\u0275\u0275defineNgModule({type:Xe}),Xe.\u0275inj=o.\u0275\u0275defineInjector({}),Xe})();class Je{constructor(dt,$,oe,L,ue,ae){this.toastId=dt,this.config=$,this.message=oe,this.title=L,this.toastType=ue,this.toastRef=ae,this._onTap=new f.xQ,this._onAction=new f.xQ,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(dt){this._onAction.next(dt)}onAction(){return this._onAction.asObservable()}}const Me={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},xe=new o.InjectionToken("ToastConfig");class Pe{constructor(dt,$){this.component=dt,this.injector=$}attach(dt,$){return this._attachedHost=dt,dt.attach(this,$)}detach(){const dt=this._attachedHost;if(dt)return this._attachedHost=void 0,dt.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(dt){this._attachedHost=dt}}class Ne{attach(dt,$){return this._attachedPortal=dt,this.attachComponentPortal(dt,$)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(dt){this._disposeFn=dt}}class Ct extends Ne{constructor(dt,$,oe){super(),this._hostDomElement=dt,this._componentFactoryResolver=$,this._appRef=oe}attachComponentPortal(dt,$){const oe=this._componentFactoryResolver.resolveComponentFactory(dt.component);let L;return L=oe.create(dt.injector),this._appRef.attachView(L.hostView),this.setDisposeFn(()=>{this._appRef.detachView(L.hostView),L.destroy()}),$?this._hostDomElement.insertBefore(this._getComponentRootNode(L),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(L)),L}_getComponentRootNode(dt){return dt.hostView.rootNodes[0]}}let te=(()=>{class Xe{constructor($){this._document=$}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const $=this._document.createElement("div");$.classList.add("overlay-container"),this._document.body.appendChild($),this._containerElement=$}}return Xe.\u0275fac=function($){return new($||Xe)(o.\u0275\u0275inject(a.DOCUMENT))},Xe.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new Xe(o.\u0275\u0275inject(a.DOCUMENT))},token:Xe,providedIn:"root"}),Xe})();class ge{constructor(dt){this._portalHost=dt}attach(dt,$=!0){return this._portalHost.attach(dt,$)}detach(){return this._portalHost.detach()}}let X=(()=>{class Xe{constructor($,oe,L,ue){this._overlayContainer=$,this._componentFactoryResolver=oe,this._appRef=L,this._document=ue,this._paneElements=new Map}create($,oe){return this._createOverlayRef(this.getPaneElement($,oe))}getPaneElement($="",oe){return this._paneElements.get(oe)||this._paneElements.set(oe,{}),this._paneElements.get(oe)[$]||(this._paneElements.get(oe)[$]=this._createPaneElement($,oe)),this._paneElements.get(oe)[$]}_createPaneElement($,oe){const L=this._document.createElement("div");return L.id="toast-container",L.classList.add($),L.classList.add("toast-container"),oe?oe.getContainerElement().appendChild(L):this._overlayContainer.getContainerElement().appendChild(L),L}_createPortalHost($){return new Ct($,this._componentFactoryResolver,this._appRef)}_createOverlayRef($){return new ge(this._createPortalHost($))}}return Xe.\u0275fac=function($){return new($||Xe)(o.\u0275\u0275inject(te),o.\u0275\u0275inject(o.ComponentFactoryResolver),o.\u0275\u0275inject(o.ApplicationRef),o.\u0275\u0275inject(a.DOCUMENT))},Xe.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new Xe(o.\u0275\u0275inject(te),o.\u0275\u0275inject(o.ComponentFactoryResolver),o.\u0275\u0275inject(o.ApplicationRef),o.\u0275\u0275inject(a.DOCUMENT))},token:Xe,providedIn:"root"}),Xe})();class le{constructor(dt){this._overlayRef=dt,this.duplicatesCount=0,this._afterClosed=new f.xQ,this._activate=new f.xQ,this._manualClose=new f.xQ,this._resetTimeout=new f.xQ,this._countDuplicate=new f.xQ}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(dt,$){dt&&this._resetTimeout.next(),$&&this._countDuplicate.next(++this.duplicatesCount)}}class Ae{constructor(dt,$){this._toastPackage=dt,this._parentInjector=$}get(dt,$,oe){return dt===Je?this._toastPackage:this._parentInjector.get(dt,$,oe)}}let Ce=(()=>{class Xe{constructor($,oe,L,ue,ae){this.overlay=oe,this._injector=L,this.sanitizer=ue,this.ngZone=ae,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},$.default),$.config),$.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},$.default.iconClasses),$.config.iconClasses))}show($,oe,L={},ue=""){return this._preBuildNotification(ue,$,oe,this.applyConfig(L))}success($,oe,L={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",$,oe,this.applyConfig(L))}error($,oe,L={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",$,oe,this.applyConfig(L))}info($,oe,L={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",$,oe,this.applyConfig(L))}warning($,oe,L={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",$,oe,this.applyConfig(L))}clear($){for(const oe of this.toasts)if(void 0!==$){if(oe.toastId===$)return void oe.toastRef.manualClose()}else oe.toastRef.manualClose()}remove($){const oe=this._findToast($);if(!oe||(oe.activeToast.toastRef.close(),this.toasts.splice(oe.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 L=this.toasts[this.currentlyActive].toastRef;L.isInactive()||(this.currentlyActive=this.currentlyActive+1,L.activate())}return!0}findDuplicate($="",oe="",L,ue){const{includeTitleDuplicates:ae}=this.toastrConfig;for(const fe of this.toasts){const Fe=ae&&fe.title===$;if((!ae||Fe)&&fe.message===oe)return fe.toastRef.onDuplicate(L,ue),fe}return null}applyConfig($={}){return Object.assign(Object.assign({},this.toastrConfig),$)}_findToast($){for(let oe=0;oe<this.toasts.length;oe++)if(this.toasts[oe].toastId===$)return{index:oe,activeToast:this.toasts[oe]};return null}_preBuildNotification($,oe,L,ue){return ue.onActivateTick?this.ngZone.run(()=>this._buildNotification($,oe,L,ue)):this._buildNotification($,oe,L,ue)}_buildNotification($,oe,L,ue){if(!ue.toastComponent)throw new Error("toastComponent required");const ae=this.findDuplicate(L,oe,this.toastrConfig.resetTimeoutOnDuplicate&&ue.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&L||oe)&&this.toastrConfig.preventDuplicates&&null!==ae)return ae;this.previousToastMessage=oe;let fe=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(fe=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const Fe=this.overlay.create(ue.positionClass,this.overlayContainer);this.index=this.index+1;let st=oe;oe&&ue.enableHtml&&(st=this.sanitizer.sanitize(o.SecurityContext.HTML,oe));const wt=new le(Fe),Ze=new Je(this.index,ue,st,L,$,wt),ze=new Ae(Ze,this._injector),He=new Pe(ue.toastComponent,ze),q=Fe.attach(He,this.toastrConfig.newestOnTop);wt.componentInstance=q.instance;const Ge={toastId:this.index,title:L||"",message:oe||"",toastRef:wt,onShown:wt.afterActivate(),onHidden:wt.afterClosed(),onTap:Ze.onTap(),onAction:Ze.onAction(),portal:q};return fe||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Ge.toastRef.activate()})),this.toasts.push(Ge),Ge}}return Xe.\u0275fac=function($){return new($||Xe)(o.\u0275\u0275inject(xe),o.\u0275\u0275inject(X),o.\u0275\u0275inject(o.Injector),o.\u0275\u0275inject(_.DomSanitizer),o.\u0275\u0275inject(o.NgZone))},Xe.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new Xe(o.\u0275\u0275inject(xe),o.\u0275\u0275inject(X),o.\u0275\u0275inject(o.INJECTOR),o.\u0275\u0275inject(_.DomSanitizer),o.\u0275\u0275inject(o.NgZone))},token:Xe,providedIn:"root"}),Xe})(),$e=(()=>{class Xe{constructor($,oe,L){this.toastrService=$,this.toastPackage=oe,this.ngZone=L,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=oe.message,this.title=oe.title,this.options=oe.config,this.originalTimeout=oe.config.timeOut,this.toastClasses=`${oe.toastType} ${oe.config.toastClass}`,this.sub=oe.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=oe.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=oe.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=oe.toastRef.countDuplicate().subscribe(ue=>{this.duplicatesCount=ue})}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 $=(new Date).getTime();this.width=(this.hideTime-$)/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($,oe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular($),oe)):this.timeout=setTimeout(()=>$(),oe)}outsideInterval($,oe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular($),oe)):this.intervalId=setInterval(()=>$(),oe)}runInsideAngular($){this.ngZone?this.ngZone.run(()=>$()):$()}}return Xe.\u0275fac=function($){return new($||Xe)(o.\u0275\u0275directiveInject(Ce),o.\u0275\u0275directiveInject(Je),o.\u0275\u0275directiveInject(o.NgZone))},Xe.\u0275cmp=o.\u0275\u0275defineComponent({type:Xe,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function($,oe){1&$&&o.\u0275\u0275listener("click",function(){return oe.tapToast()})("mouseenter",function(){return oe.stickAround()})("mouseleave",function(){return oe.delayedHideToast()}),2&$&&(o.\u0275\u0275syntheticHostProperty("@flyInOut",oe.state),o.\u0275\u0275classMap(oe.toastClasses),o.\u0275\u0275styleProp("display",oe.displayStyle))},attrs:C,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($,oe){1&$&&(o.\u0275\u0275template(0,w,3,0,"button",0),o.\u0275\u0275template(1,g,3,5,"div",1),o.\u0275\u0275template(2,E,1,3,"div",2),o.\u0275\u0275template(3,M,2,4,"div",3),o.\u0275\u0275template(4,S,2,2,"div",4)),2&$&&(o.\u0275\u0275property("ngIf",oe.options.closeButton),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",oe.title),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",oe.message&&oe.options.enableHtml),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",oe.message&&!oe.options.enableHtml),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",oe.options.progressBar))},directives:[a.NgIf],encapsulation:2,data:{animation:[(0,l.X$)("flyInOut",[(0,l.SB)("inactive",(0,l.oB)({opacity:0})),(0,l.SB)("active",(0,l.oB)({opacity:1})),(0,l.SB)("removed",(0,l.oB)({opacity:0})),(0,l.eR)("inactive => active",(0,l.jt)("{{ easeTime }}ms {{ easing }}")),(0,l.eR)("active => removed",(0,l.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),Xe})();const et=Object.assign(Object.assign({},Me),{toastComponent:$e});let pt=(()=>{class Xe{static forRoot($={}){return{ngModule:Xe,providers:[{provide:xe,useValue:{default:et,config:$}}]}}}return Xe.\u0275fac=function($){return new($||Xe)},Xe.\u0275mod=o.\u0275\u0275defineNgModule({type:Xe}),Xe.\u0275inj=o.\u0275\u0275defineInjector({imports:[[a.CommonModule]]}),Xe})(),je=(()=>{class Xe{static forRoot($={}){return{ngModule:pt,providers:[{provide:xe,useValue:{default:Me,config:$}}]}}}return Xe.\u0275fac=function($){return new($||Xe)},Xe.\u0275mod=o.\u0275\u0275defineNgModule({type:Xe}),Xe.\u0275inj=o.\u0275\u0275defineInjector({imports:[[a.CommonModule]]}),Xe})(),tt=(()=>{class Xe{constructor($,oe,L){this.toastrService=$,this.toastPackage=oe,this.appRef=L,this.width=-1,this.toastClasses="",this.state="inactive",this.message=oe.message,this.title=oe.title,this.options=oe.config,this.originalTimeout=oe.config.timeOut,this.toastClasses=`${oe.toastType} ${oe.config.toastClass}`,this.sub=oe.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=oe.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=oe.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=oe.toastRef.countDuplicate().subscribe(ue=>{this.duplicatesCount=ue})}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 $=(new Date).getTime();this.width=(this.hideTime-$)/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 Xe.\u0275fac=function($){return new($||Xe)(o.\u0275\u0275directiveInject(Ce),o.\u0275\u0275directiveInject(Je),o.\u0275\u0275directiveInject(o.ApplicationRef))},Xe.\u0275cmp=o.\u0275\u0275defineComponent({type:Xe,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function($,oe){1&$&&o.\u0275\u0275listener("click",function(){return oe.tapToast()})("mouseenter",function(){return oe.stickAround()})("mouseleave",function(){return oe.delayedHideToast()}),2&$&&(o.\u0275\u0275classMap(oe.toastClasses),o.\u0275\u0275styleProp("display",oe.displayStyle))},attrs:C,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($,oe){1&$&&(o.\u0275\u0275template(0,P,3,0,"button",0),o.\u0275\u0275template(1,j,3,5,"div",1),o.\u0275\u0275template(2,se,1,3,"div",2),o.\u0275\u0275template(3,ce,2,4,"div",3),o.\u0275\u0275template(4,be,2,2,"div",4)),2&$&&(o.\u0275\u0275property("ngIf",oe.options.closeButton),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",oe.title),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",oe.message&&oe.options.enableHtml),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",oe.message&&!oe.options.enableHtml),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",oe.options.progressBar))},directives:[a.NgIf],encapsulation:2}),Xe})();const ut=Object.assign(Object.assign({},Me),{toastComponent:tt});let It=(()=>{class Xe{static forRoot($={}){return{ngModule:Xe,providers:[{provide:xe,useValue:{default:ut,config:$}}]}}}return Xe.\u0275fac=function($){return new($||Xe)},Xe.\u0275mod=o.\u0275\u0275defineNgModule({type:Xe}),Xe.\u0275inj=o.\u0275\u0275defineInjector({imports:[[a.CommonModule]]}),Xe})()},4813:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{ArgumentOutOfRangeError:()=>le.W,AsyncSubject:()=>B,BehaviorSubject:()=>S.X,ConnectableObservable:()=>l.c,EMPTY:()=>ze.E,EmptyError:()=>Ce,GroupedObservable:()=>D,NEVER:()=>Be,Notification:()=>Ne.P,NotificationKind:()=>Ne.W,ObjectUnsubscribedError:()=>$e.N,Observable:()=>o.y,ReplaySubject:()=>P.t,Scheduler:()=>xe.b,Subject:()=>M.xQ,Subscriber:()=>Pe.L,Subscription:()=>f.w,TimeoutError:()=>je,UnsubscriptionError:()=>et.B,VirtualAction:()=>Me,VirtualTimeScheduler:()=>Je,animationFrame:()=>be.r,animationFrameScheduler:()=>be.Z,asap:()=>j.e,asapScheduler:()=>j.E,async:()=>se.P,asyncScheduler:()=>se.z,bindCallback:()=>dt,bindNodeCallback:()=>ue,combineLatest:()=>st.aj,concat:()=>wt.z,config:()=>yn.v,defer:()=>Ze.P,empty:()=>ze.c,forkJoin:()=>He.D,from:()=>q.D,fromEvent:()=>Ge.R,fromEventPattern:()=>vt,generate:()=>Ye,identity:()=>ge.y,iif:()=>F,interval:()=>he,isObservable:()=>X.b,merge:()=>ie.T,never:()=>gt,noop:()=>te.Z,observable:()=>E.L,of:()=>Et.of,onErrorResumeNext:()=>xt,pairs:()=>Nt,partition:()=>jt,pipe:()=>Ct.z,queue:()=>ce.c,queueScheduler:()=>ce.N,race:()=>V,range:()=>De,scheduled:()=>wn.x,throwError:()=>Q._,timer:()=>J.H,using:()=>N,zip:()=>_t});var o=d(9897),l=d(2441),f=d(826);class D extends o.y{constructor(Re,Se,nt){super(),this.key=Re,this.groupSubject=Se,this.refCountSubscription=nt}_subscribe(Re){const Se=new f.w,{refCountSubscription:nt,groupSubject:ht}=this;return nt&&!nt.closed&&Se.add(new g(nt)),Se.add(ht.subscribe(Re)),Se}}class g extends f.w{constructor(Re){super(),this.parent=Re,Re.count++}unsubscribe(){const Re=this.parent;!Re.closed&&!this.closed&&(super.unsubscribe(),Re.count-=1,0===Re.count&&Re.attemptedToUnsubscribe&&Re.unsubscribe())}}var E=d(6554),M=d(9765),S=d(6215),P=d(4448);class B extends M.xQ{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(Re){return this.hasError?(Re.error(this.thrownError),f.w.EMPTY):this.hasCompleted&&this.hasNext?(Re.next(this.value),Re.complete(),f.w.EMPTY):super._subscribe(Re)}next(Re){this.hasCompleted||(this.value=Re,this.hasNext=!0)}error(Re){this.hasCompleted||super.error(Re)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}var j=d(4581),se=d(3637),ce=d(7771),be=d(1927),Ue=d(6465),lt=d(4548);let Je=(()=>{class mt extends lt.v{constructor(Se=Me,nt=Number.POSITIVE_INFINITY){super(Se,()=>this.frame),this.maxFrames=nt,this.frame=0,this.index=-1}flush(){const{actions:Se,maxFrames:nt}=this;let ht,Rt;for(;(Rt=Se[0])&&Rt.delay<=nt&&(Se.shift(),this.frame=Rt.delay,!(ht=Rt.execute(Rt.state,Rt.delay))););if(ht){for(;Rt=Se.shift();)Rt.unsubscribe();throw ht}}}return mt.frameTimeFactor=10,mt})();class Me extends Ue.o{constructor(Re,Se,nt=(Re.index+=1)){super(Re,Se),this.scheduler=Re,this.work=Se,this.index=nt,this.active=!0,this.index=Re.index=nt}schedule(Re,Se=0){if(!this.id)return super.schedule(Re,Se);this.active=!1;const nt=new Me(this.scheduler,this.work);return this.add(nt),nt.schedule(Re,Se)}requestAsyncId(Re,Se,nt=0){this.delay=Re.frame+nt;const{actions:ht}=Re;return ht.push(this),ht.sort(Me.sortActions),!0}recycleAsyncId(Re,Se,nt=0){}_execute(Re,Se){if(!0===this.active)return super._execute(Re,Se)}static sortActions(Re,Se){return Re.delay===Se.delay?Re.index===Se.index?0:Re.index>Se.index?1:-1:Re.delay>Se.delay?1:-1}}var xe=d(2217),Pe=d(7393),Ne=d(3098),Ct=d(4022),te=d(8640),ge=d(4487),X=d(5639),le=d(7108);const Ce=(()=>{function mt(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return mt.prototype=Object.create(Error.prototype),mt})();var $e=d(7971),et=d(7744);const je=(()=>{function mt(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return mt.prototype=Object.create(Error.prototype),mt})();var tt=d(8002),ut=d(3179),It=d(9796),Xe=d(4869);function dt(mt,Re,Se){if(Re){if(!(0,Xe.K)(Re))return(...nt)=>dt(mt,Se)(...nt).pipe((0,tt.U)(ht=>(0,It.k)(ht)?Re(...ht):Re(ht)));Se=Re}return function(...nt){const ht=this;let Rt;const ee={context:ht,subject:Rt,callbackFunc:mt,scheduler:Se};return new o.y(ve=>{if(Se)return Se.schedule($,0,{args:nt,subscriber:ve,params:ee});if(!Rt){Rt=new B;const Y=(...ye)=>{Rt.next(ye.length<=1?ye[0]:ye),Rt.complete()};try{mt.apply(ht,[...nt,Y])}catch(ye){(0,ut._)(Rt)?Rt.error(ye):console.warn(ye)}}return Rt.subscribe(ve)})}}function $(mt){const{args:Se,subscriber:nt,params:ht}=mt,{callbackFunc:Rt,context:ee,scheduler:ve}=ht;let{subject:Y}=ht;if(!Y){Y=ht.subject=new B;const ye=(...Ke)=>{this.add(ve.schedule(oe,0,{value:Ke.length<=1?Ke[0]:Ke,subject:Y}))};try{Rt.apply(ee,[...Se,ye])}catch(Ke){Y.error(Ke)}}this.add(Y.subscribe(nt))}function oe(mt){const{value:Re,subject:Se}=mt;Se.next(Re),Se.complete()}function ue(mt,Re,Se){if(Re){if(!(0,Xe.K)(Re))return(...nt)=>ue(mt,Se)(...nt).pipe((0,tt.U)(ht=>(0,It.k)(ht)?Re(...ht):Re(ht)));Se=Re}return function(...nt){const ht={subject:void 0,args:nt,callbackFunc:mt,scheduler:Se,context:this};return new o.y(Rt=>{const{context:ee}=ht;let{subject:ve}=ht;if(Se)return Se.schedule(ae,0,{params:ht,subscriber:Rt,context:ee});if(!ve){ve=ht.subject=new B;const Y=(...ye)=>{const Ke=ye.shift();Ke?ve.error(Ke):(ve.next(ye.length<=1?ye[0]:ye),ve.complete())};try{mt.apply(ee,[...nt,Y])}catch(ye){(0,ut._)(ve)?ve.error(ye):console.warn(ye)}}return ve.subscribe(Rt)})}}function ae(mt){const{params:Re,subscriber:Se,context:nt}=mt,{callbackFunc:ht,args:Rt,scheduler:ee}=Re;let ve=Re.subject;if(!ve){ve=Re.subject=new B;const Y=(...ye)=>{const Ke=ye.shift();this.add(Ke?ee.schedule(Fe,0,{err:Ke,subject:ve}):ee.schedule(fe,0,{value:ye.length<=1?ye[0]:ye,subject:ve}))};try{ht.apply(nt,[...Rt,Y])}catch(ye){this.add(ee.schedule(Fe,0,{err:ye,subject:ve}))}}this.add(ve.subscribe(Se))}function fe(mt){const{value:Re,subject:Se}=mt;Se.next(Re),Se.complete()}function Fe(mt){const{err:Re,subject:Se}=mt;Se.error(Re)}var st=d(9112),wt=d(8071),Ze=d(1439),ze=d(9193),He=d(5758),q=d(9412),Ge=d(2759),ft=d(9105);function vt(mt,Re,Se){return Se?vt(mt,Re).pipe((0,tt.U)(nt=>(0,It.k)(nt)?Se(...nt):Se(nt))):new o.y(nt=>{const ht=(...ee)=>nt.next(1===ee.length?ee[0]:ee);let Rt;try{Rt=mt(ht)}catch(ee){return void nt.error(ee)}if((0,ft.m)(Re))return()=>Re(ht,Rt)})}function Ye(mt,Re,Se,nt,ht){let Rt,ee;return 1==arguments.length?(ee=mt.initialState,Re=mt.condition,Se=mt.iterate,Rt=mt.resultSelector||ge.y,ht=mt.scheduler):void 0===nt||(0,Xe.K)(nt)?(ee=mt,Rt=ge.y,ht=nt):(ee=mt,Rt=nt),new o.y(ve=>{let Y=ee;if(ht)return ht.schedule(x,0,{subscriber:ve,iterate:Se,condition:Re,resultSelector:Rt,state:Y});for(;;){if(Re){let Ke;try{Ke=Re(Y)}catch(yt){return void ve.error(yt)}if(!Ke){ve.complete();break}}let ye;try{ye=Rt(Y)}catch(Ke){return void ve.error(Ke)}if(ve.next(ye),ve.closed)break;try{Y=Se(Y)}catch(Ke){return void ve.error(Ke)}}})}function x(mt){const{subscriber:Re,condition:Se}=mt;if(Re.closed)return;if(mt.needIterate)try{mt.state=mt.iterate(mt.state)}catch(ht){return void Re.error(ht)}else mt.needIterate=!0;if(Se){let ht;try{ht=Se(mt.state)}catch(Rt){return void Re.error(Rt)}if(!ht)return void Re.complete();if(Re.closed)return}let nt;try{nt=mt.resultSelector(mt.state)}catch(ht){return void Re.error(ht)}return Re.closed||(Re.next(nt),Re.closed)?void 0:this.schedule(mt)}function F(mt,Re=ze.E,Se=ze.E){return(0,Ze.P)(()=>mt()?Re:Se)}var R=d(6561);function he(mt=0,Re=se.P){return(!(0,R.k)(mt)||mt<0)&&(mt=0),(!Re||"function"!=typeof Re.schedule)&&(Re=se.P),new o.y(Se=>(Se.add(Re.schedule(z,mt,{subscriber:Se,counter:0,period:mt})),Se))}function z(mt){const{subscriber:Re,counter:Se,period:nt}=mt;Re.next(Se),this.schedule({subscriber:Re,counter:Se+1,period:nt},nt)}var ie=d(6682);const Be=new o.y(te.Z);function gt(){return Be}var Et=d(5917);function xt(...mt){if(0===mt.length)return ze.E;const[Re,...Se]=mt;return 1===mt.length&&(0,It.k)(Re)?xt(...Re):new o.y(nt=>{const ht=()=>nt.add(xt(...Se).subscribe(nt));return(0,q.D)(Re).subscribe({next(Rt){nt.next(Rt)},error:ht,complete:ht})})}function Nt(mt,Re){return new o.y(Re?Se=>{const nt=Object.keys(mt),ht=new f.w;return ht.add(Re.schedule(Ut,0,{keys:nt,index:0,subscriber:Se,subscription:ht,obj:mt})),ht}:Se=>{const nt=Object.keys(mt);for(let ht=0;ht<nt.length&&!Se.closed;ht++){const Rt=nt[ht];mt.hasOwnProperty(Rt)&&Se.next([Rt,mt[Rt]])}Se.complete()})}function Ut(mt){const{keys:Re,index:Se,subscriber:nt,subscription:ht,obj:Rt}=mt;if(!nt.closed)if(Se<Re.length){const ee=Re[Se];nt.next([ee,Rt[ee]]),ht.add(this.schedule({keys:Re,index:Se+1,subscriber:nt,subscription:ht,obj:Rt}))}else nt.complete()}function Qt(mt,Re){function Se(){return!Se.pred.apply(Se.thisArg,arguments)}return Se.pred=mt,Se.thisArg=Re,Se}var At=d(7444),Lt=d(5435);function jt(mt,Re,Se){return[(0,Lt.h)(Re,Se)(new o.y((0,At.s)(mt))),(0,Lt.h)(Qt(Re,Se))(new o.y((0,At.s)(mt)))]}var _n=d(6693),qe=d(5866),Pt=d(509);function V(...mt){if(1===mt.length){if(!(0,It.k)(mt[0]))return mt[0];mt=mt[0]}return(0,_n.n)(mt,void 0).lift(new K)}class K{call(Re,Se){return Se.subscribe(new W(Re))}}class W extends qe.L{constructor(Re){super(Re),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(Re){this.observables.push(Re)}_complete(){const Re=this.observables,Se=Re.length;if(0===Se)this.destination.complete();else{for(let nt=0;nt<Se&&!this.hasFirst;nt++){const Rt=(0,Pt.D)(this,Re[nt],void 0,nt);this.subscriptions&&this.subscriptions.push(Rt),this.add(Rt)}this.observables=null}}notifyNext(Re,Se,nt){if(!this.hasFirst){this.hasFirst=!0;for(let ht=0;ht<this.subscriptions.length;ht++)if(ht!==nt){let Rt=this.subscriptions[ht];Rt.unsubscribe(),this.remove(Rt)}this.subscriptions=null}this.destination.next(Se)}}function De(mt=0,Re,Se){return new o.y(nt=>{void 0===Re&&(Re=mt,mt=0);let ht=0,Rt=mt;if(Se)return Se.schedule(Ee,0,{index:ht,count:Re,start:mt,subscriber:nt});for(;;){if(ht++>=Re){nt.complete();break}if(nt.next(Rt++),nt.closed)break}})}function Ee(mt){const{start:Re,index:Se,count:nt,subscriber:ht}=mt;Se>=nt?ht.complete():(ht.next(Re),!ht.closed&&(mt.index=Se+1,mt.start=Re+1,this.schedule(mt)))}var Q=d(205),J=d(6797);function N(mt,Re){return new o.y(Se=>{let nt,ht;try{nt=mt()}catch(ve){return void Se.error(ve)}try{ht=Re(nt)}catch(ve){return void Se.error(ve)}const ee=(ht?(0,q.D)(ht):ze.E).subscribe(Se);return()=>{ee.unsubscribe(),nt&&nt.unsubscribe()}})}var re=d(377),ot=d(5345);function _t(...mt){const Re=mt[mt.length-1];return"function"==typeof Re&&mt.pop(),(0,_n.n)(mt,void 0).lift(new Ht(Re))}class Ht{constructor(Re){this.resultSelector=Re}call(Re,Se){return Se.subscribe(new dn(Re,this.resultSelector))}}class dn extends Pe.L{constructor(Re,Se,nt=Object.create(null)){super(Re),this.resultSelector=Se,this.iterators=[],this.active=0,this.resultSelector="function"==typeof Se?Se:void 0}_next(Re){const Se=this.iterators;(0,It.k)(Re)?Se.push(new an(Re)):Se.push("function"==typeof Re[re.hZ]?new cn(Re[re.hZ]()):new un(this.destination,this,Re))}_complete(){const Re=this.iterators,Se=Re.length;if(this.unsubscribe(),0!==Se){this.active=Se;for(let nt=0;nt<Se;nt++){let ht=Re[nt];ht.stillUnsubscribed?this.destination.add(ht.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const Re=this.iterators,Se=Re.length,nt=this.destination;for(let ee=0;ee<Se;ee++){let ve=Re[ee];if("function"==typeof ve.hasValue&&!ve.hasValue())return}let ht=!1;const Rt=[];for(let ee=0;ee<Se;ee++){let ve=Re[ee],Y=ve.next();if(ve.hasCompleted()&&(ht=!0),Y.done)return void nt.complete();Rt.push(Y.value)}this.resultSelector?this._tryresultSelector(Rt):nt.next(Rt),ht&&nt.complete()}_tryresultSelector(Re){let Se;try{Se=this.resultSelector.apply(this,Re)}catch(nt){return void this.destination.error(nt)}this.destination.next(Se)}}class cn{constructor(Re){this.iterator=Re,this.nextResult=Re.next()}hasValue(){return!0}next(){const Re=this.nextResult;return this.nextResult=this.iterator.next(),Re}hasCompleted(){const Re=this.nextResult;return Boolean(Re&&Re.done)}}class an{constructor(Re){this.array=Re,this.index=0,this.length=0,this.length=Re.length}[re.hZ](){return this}next(Re){const Se=this.index++;return Se<this.length?{value:this.array[Se],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class un extends ot.Ds{constructor(Re,Se,nt){super(Re),this.parent=Se,this.observable=nt,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[re.hZ](){return this}next(){const Re=this.buffer;return 0===Re.length&&this.isComplete?{value:null,done:!0}:{value:Re.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(Re){this.buffer.push(Re),this.parent.checkIterators()}subscribe(){return(0,ot.ft)(this.observable,new ot.IY(this))}}var wn=d(1115),yn=d(2494)},6215:(Le,T,d)=>{"use strict";d.d(T,{X:()=>f});var o=d(9765),l=d(7971);class f extends o.xQ{constructor(a){super(),this._value=a}get value(){return this.getValue()}_subscribe(a){const C=super._subscribe(a);return C&&!C.closed&&a.next(this._value),C}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new l.N;return this._value}next(a){super.next(this._value=a)}}},3098:(Le,T,d)=>{"use strict";d.d(T,{W:()=>_,P:()=>a});var o=d(9193),l=d(5917),f=d(205),_=(()=>{return(C=_||(_={})).NEXT="N",C.ERROR="E",C.COMPLETE="C",_;var C})();class a{constructor(w,D,g){this.kind=w,this.value=D,this.error=g,this.hasValue="N"===w}observe(w){switch(this.kind){case"N":return w.next&&w.next(this.value);case"E":return w.error&&w.error(this.error);case"C":return w.complete&&w.complete()}}do(w,D,g){switch(this.kind){case"N":return w&&w(this.value);case"E":return D&&D(this.error);case"C":return g&&g()}}accept(w,D,g){return w&&"function"==typeof w.next?this.observe(w):this.do(w,D,g)}toObservable(){switch(this.kind){case"N":return(0,l.of)(this.value);case"E":return(0,f._)(this.error);case"C":return(0,o.c)()}throw new Error("unexpected notification kind value")}static createNext(w){return void 0!==w?new a("N",w):a.undefinedValueNotification}static createError(w){return new a("E",void 0,w)}static createComplete(){return a.completeNotification}}a.completeNotification=new a("C"),a.undefinedValueNotification=new a("N",void 0)},9897:(Le,T,d)=>{"use strict";d.d(T,{y:()=>g});var o=d(3179),l=d(7393),f=d(9181),_=d(6490),C=d(6554),w=d(4022),D=d(2494);let g=(()=>{class M{constructor(P){this._isScalar=!1,P&&(this._subscribe=P)}lift(P){const B=new M;return B.source=this,B.operator=P,B}subscribe(P,B,j){const{operator:se}=this,ce=function(M,S,P){if(M){if(M instanceof l.L)return M;if(M[f.b])return M[f.b]()}return M||S||P?new l.L(M,S,P):new l.L(_.c)}(P,B,j);if(ce.add(se?se.call(ce,this.source):this.source||D.v.useDeprecatedSynchronousErrorHandling&&!ce.syncErrorThrowable?this._subscribe(ce):this._trySubscribe(ce)),D.v.useDeprecatedSynchronousErrorHandling&&ce.syncErrorThrowable&&(ce.syncErrorThrowable=!1,ce.syncErrorThrown))throw ce.syncErrorValue;return ce}_trySubscribe(P){try{return this._subscribe(P)}catch(B){D.v.useDeprecatedSynchronousErrorHandling&&(P.syncErrorThrown=!0,P.syncErrorValue=B),(0,o._)(P)?P.error(B):console.warn(B)}}forEach(P,B){return new(B=E(B))((j,se)=>{let ce;ce=this.subscribe(be=>{try{P(be)}catch(Ue){se(Ue),ce&&ce.unsubscribe()}},se,j)})}_subscribe(P){const{source:B}=this;return B&&B.subscribe(P)}[C.L](){return this}pipe(...P){return 0===P.length?this:(0,w.U)(P)(this)}toPromise(P){return new(P=E(P))((B,j)=>{let se;this.subscribe(ce=>se=ce,ce=>j(ce),()=>B(se))})}}return M.create=S=>new M(S),M})();function E(M){if(M||(M=D.v.Promise||Promise),!M)throw new Error("no Promise impl found");return M}},6490:(Le,T,d)=>{"use strict";d.d(T,{c:()=>f});var o=d(2494),l=d(4449);const f={closed:!0,next(_){},error(_){if(o.v.useDeprecatedSynchronousErrorHandling)throw _;(0,l.z)(_)},complete(){}}},5866:(Le,T,d)=>{"use strict";d.d(T,{L:()=>l});var o=d(7393);class l extends o.L{notifyNext(_,a,C,w,D){this.destination.next(a)}notifyError(_,a){this.destination.error(_)}notifyComplete(_){this.destination.complete()}}},4448:(Le,T,d)=>{"use strict";d.d(T,{t:()=>S});var o=d(9765),l=d(7771),f=d(826),_=d(7393),a=d(3098);class D extends _.L{constructor(j,se,ce=0){super(j),this.scheduler=se,this.delay=ce}static dispatch(j){const{notification:se,destination:ce}=j;se.observe(ce),this.unsubscribe()}scheduleMessage(j){this.destination.add(this.scheduler.schedule(D.dispatch,this.delay,new g(j,this.destination)))}_next(j){this.scheduleMessage(a.P.createNext(j))}_error(j){this.scheduleMessage(a.P.createError(j)),this.unsubscribe()}_complete(){this.scheduleMessage(a.P.createComplete()),this.unsubscribe()}}class g{constructor(j,se){this.notification=j,this.destination=se}}var E=d(7971),M=d(8858);class S extends o.xQ{constructor(j=Number.POSITIVE_INFINITY,se=Number.POSITIVE_INFINITY,ce){super(),this.scheduler=ce,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=j<1?1:j,this._windowTime=se<1?1:se,se===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(j){if(!this.isStopped){const se=this._events;se.push(j),se.length>this._bufferSize&&se.shift()}super.next(j)}nextTimeWindow(j){this.isStopped||(this._events.push(new P(this._getNow(),j)),this._trimBufferThenGetEvents()),super.next(j)}_subscribe(j){const se=this._infiniteTimeWindow,ce=se?this._events:this._trimBufferThenGetEvents(),be=this.scheduler,Ue=ce.length;let lt;if(this.closed)throw new E.N;if(this.isStopped||this.hasError?lt=f.w.EMPTY:(this.observers.push(j),lt=new M.W(this,j)),be&&j.add(j=new D(j,be)),se)for(let Je=0;Je<Ue&&!j.closed;Je++)j.next(ce[Je]);else for(let Je=0;Je<Ue&&!j.closed;Je++)j.next(ce[Je].value);return this.hasError?j.error(this.thrownError):this.isStopped&&j.complete(),lt}_getNow(){return(this.scheduler||l.c).now()}_trimBufferThenGetEvents(){const j=this._getNow(),se=this._bufferSize,ce=this._windowTime,be=this._events,Ue=be.length;let lt=0;for(;lt<Ue&&!(j-be[lt].time<ce);)lt++;return Ue>se&&(lt=Math.max(lt,Ue-se)),lt>0&&be.splice(0,lt),be}}class P{constructor(j,se){this.time=j,this.value=se}}},2217:(Le,T,d)=>{"use strict";d.d(T,{b:()=>o});let o=(()=>{class l{constructor(_,a=l.now){this.SchedulerAction=_,this.now=a}schedule(_,a=0,C){return new this.SchedulerAction(this,_).schedule(C,a)}}return l.now=()=>Date.now(),l})()},9765:(Le,T,d)=>{"use strict";d.d(T,{Yc:()=>w,xQ:()=>D});var o=d(9897),l=d(7393),f=d(826),_=d(7971),a=d(8858),C=d(9181);class w extends l.L{constructor(M){super(M),this.destination=M}}let D=(()=>{class E extends o.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[C.b](){return new w(this)}lift(S){const P=new g(this,this);return P.operator=S,P}next(S){if(this.closed)throw new _.N;if(!this.isStopped){const{observers:P}=this,B=P.length,j=P.slice();for(let se=0;se<B;se++)j[se].next(S)}}error(S){if(this.closed)throw new _.N;this.hasError=!0,this.thrownError=S,this.isStopped=!0;const{observers:P}=this,B=P.length,j=P.slice();for(let se=0;se<B;se++)j[se].error(S);this.observers.length=0}complete(){if(this.closed)throw new _.N;this.isStopped=!0;const{observers:S}=this,P=S.length,B=S.slice();for(let j=0;j<P;j++)B[j].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(S){if(this.closed)throw new _.N;return super._trySubscribe(S)}_subscribe(S){if(this.closed)throw new _.N;return this.hasError?(S.error(this.thrownError),f.w.EMPTY):this.isStopped?(S.complete(),f.w.EMPTY):(this.observers.push(S),new a.W(this,S))}asObservable(){const S=new o.y;return S.source=this,S}}return E.create=(M,S)=>new g(M,S),E})();class g extends D{constructor(M,S){super(),this.destination=M,this.source=S}next(M){const{destination:S}=this;S&&S.next&&S.next(M)}error(M){const{destination:S}=this;S&&S.error&&this.destination.error(M)}complete(){const{destination:M}=this;M&&M.complete&&this.destination.complete()}_subscribe(M){const{source:S}=this;return S?this.source.subscribe(M):f.w.EMPTY}}},8858:(Le,T,d)=>{"use strict";d.d(T,{W:()=>l});var o=d(826);class l extends o.w{constructor(_,a){super(),this.subject=_,this.subscriber=a,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const _=this.subject,a=_.observers;if(this.subject=null,!a||0===a.length||_.isStopped||_.closed)return;const C=a.indexOf(this.subscriber);-1!==C&&a.splice(C,1)}}},7393:(Le,T,d)=>{"use strict";d.d(T,{L:()=>w});var o=d(9105),l=d(6490),f=d(826),_=d(9181),a=d(2494),C=d(4449);class w extends f.w{constructor(E,M,S){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l.c;break;case 1:if(!E){this.destination=l.c;break}if("object"==typeof E){E instanceof w?(this.syncErrorThrowable=E.syncErrorThrowable,this.destination=E,E.add(this)):(this.syncErrorThrowable=!0,this.destination=new D(this,E));break}default:this.syncErrorThrowable=!0,this.destination=new D(this,E,M,S)}}[_.b](){return this}static create(E,M,S){const P=new w(E,M,S);return P.syncErrorThrowable=!1,P}next(E){this.isStopped||this._next(E)}error(E){this.isStopped||(this.isStopped=!0,this._error(E))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(E){this.destination.next(E)}_error(E){this.destination.error(E),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:E}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=E,this}}class D extends w{constructor(E,M,S,P){super(),this._parentSubscriber=E;let B,j=this;(0,o.m)(M)?B=M:M&&(B=M.next,S=M.error,P=M.complete,M!==l.c&&(j=Object.create(M),(0,o.m)(j.unsubscribe)&&this.add(j.unsubscribe.bind(j)),j.unsubscribe=this.unsubscribe.bind(this))),this._context=j,this._next=B,this._error=S,this._complete=P}next(E){if(!this.isStopped&&this._next){const{_parentSubscriber:M}=this;a.v.useDeprecatedSynchronousErrorHandling&&M.syncErrorThrowable?this.__tryOrSetError(M,this._next,E)&&this.unsubscribe():this.__tryOrUnsub(this._next,E)}}error(E){if(!this.isStopped){const{_parentSubscriber:M}=this,{useDeprecatedSynchronousErrorHandling:S}=a.v;if(this._error)S&&M.syncErrorThrowable?(this.__tryOrSetError(M,this._error,E),this.unsubscribe()):(this.__tryOrUnsub(this._error,E),this.unsubscribe());else if(M.syncErrorThrowable)S?(M.syncErrorValue=E,M.syncErrorThrown=!0):(0,C.z)(E),this.unsubscribe();else{if(this.unsubscribe(),S)throw E;(0,C.z)(E)}}}complete(){if(!this.isStopped){const{_parentSubscriber:E}=this;if(this._complete){const M=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&E.syncErrorThrowable?(this.__tryOrSetError(E,M),this.unsubscribe()):(this.__tryOrUnsub(M),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(E,M){try{E.call(this._context,M)}catch(S){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw S;(0,C.z)(S)}}__tryOrSetError(E,M,S){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{M.call(this._context,S)}catch(P){return a.v.useDeprecatedSynchronousErrorHandling?(E.syncErrorValue=P,E.syncErrorThrown=!0,!0):((0,C.z)(P),!0)}return!1}_unsubscribe(){const{_parentSubscriber:E}=this;this._context=null,this._parentSubscriber=null,E.unsubscribe()}}},826:(Le,T,d)=>{"use strict";d.d(T,{w:()=>a});var w,o=d(9796),l=d(1555),f=d(9105),_=d(7744);class a{constructor(D){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,D&&(this._ctorUnsubscribe=!0,this._unsubscribe=D)}unsubscribe(){let D;if(this.closed)return;let{_parentOrParents:g,_ctorUnsubscribe:E,_unsubscribe:M,_subscriptions:S}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,g instanceof a)g.remove(this);else if(null!==g)for(let P=0;P<g.length;++P)g[P].remove(this);if((0,f.m)(M)){E&&(this._unsubscribe=void 0);try{M.call(this)}catch(P){D=P instanceof _.B?C(P.errors):[P]}}if((0,o.k)(S)){let P=-1,B=S.length;for(;++P<B;){const j=S[P];if((0,l.K)(j))try{j.unsubscribe()}catch(se){D=D||[],se instanceof _.B?D=D.concat(C(se.errors)):D.push(se)}}}if(D)throw new _.B(D)}add(D){let g=D;if(!D)return a.EMPTY;switch(typeof D){case"function":g=new a(D);case"object":if(g===this||g.closed||"function"!=typeof g.unsubscribe)return g;if(this.closed)return g.unsubscribe(),g;if(!(g instanceof a)){const S=g;g=new a,g._subscriptions=[S]}break;default:throw new Error("unrecognized teardown "+D+" added to Subscription.")}let{_parentOrParents:E}=g;if(null===E)g._parentOrParents=this;else if(E instanceof a){if(E===this)return g;g._parentOrParents=[E,this]}else{if(-1!==E.indexOf(this))return g;E.push(this)}const M=this._subscriptions;return null===M?this._subscriptions=[g]:M.push(g),g}remove(D){const g=this._subscriptions;if(g){const E=g.indexOf(D);-1!==E&&g.splice(E,1)}}}function C(w){return w.reduce((D,g)=>D.concat(g instanceof _.B?g.errors:g),[])}a.EMPTY=((w=new a).closed=!0,w)},2494:(Le,T,d)=>{"use strict";d.d(T,{v:()=>l});let o=!1;const l={Promise:void 0,set useDeprecatedSynchronousErrorHandling(f){if(f){const _=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+_.stack)}else o&&console.log("RxJS: Back to a better error behavior. Thank you. <3");o=f},get useDeprecatedSynchronousErrorHandling(){return o}}},5345:(Le,T,d)=>{"use strict";d.d(T,{IY:()=>_,Ds:()=>C,ft:()=>D});var o=d(7393),l=d(9897),f=d(7444);class _ extends o.L{constructor(E){super(),this.parent=E}_next(E){this.parent.notifyNext(E)}_error(E){this.parent.notifyError(E),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class C extends o.L{notifyNext(E){this.destination.next(E)}notifyError(E){this.destination.error(E)}notifyComplete(){this.destination.complete()}}function D(g,E){if(E.closed)return;if(g instanceof l.y)return g.subscribe(E);let M;try{M=(0,f.s)(g)(E)}catch(S){E.error(S)}return M}},2441:(Le,T,d)=>{"use strict";d.d(T,{c:()=>a,N:()=>C});var o=d(9765),l=d(9897),f=d(826),_=d(1307);class a extends l.y{constructor(M,S){super(),this.source=M,this.subjectFactory=S,this._refCount=0,this._isComplete=!1}_subscribe(M){return this.getSubject().subscribe(M)}getSubject(){const M=this._subject;return(!M||M.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let M=this._connection;return M||(this._isComplete=!1,M=this._connection=new f.w,M.add(this.source.subscribe(new w(this.getSubject(),this))),M.closed&&(this._connection=null,M=f.w.EMPTY)),M}refCount(){return(0,_.x)()(this)}}const C=(()=>{const E=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:E._subscribe},_isComplete:{value:E._isComplete,writable:!0},getSubject:{value:E.getSubject},connect:{value:E.connect},refCount:{value:E.refCount}}})();class w extends o.Yc{constructor(M,S){super(M),this.connectable=S}_error(M){this._unsubscribe(),super._error(M)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const M=this.connectable;if(M){this.connectable=null;const S=M._connection;M._refCount=0,M._subject=null,M._connection=null,S&&S.unsubscribe()}}}},9112:(Le,T,d)=>{"use strict";d.d(T,{aj:()=>w});var o=d(4869),l=d(9796),f=d(5866),_=d(509),a=d(6693);const C={};function w(...E){let M,S;return(0,o.K)(E[E.length-1])&&(S=E.pop()),"function"==typeof E[E.length-1]&&(M=E.pop()),1===E.length&&(0,l.k)(E[0])&&(E=E[0]),(0,a.n)(E,S).lift(new D(M))}class D{constructor(M){this.resultSelector=M}call(M,S){return S.subscribe(new g(M,this.resultSelector))}}class g extends f.L{constructor(M,S){super(M),this.resultSelector=S,this.active=0,this.values=[],this.observables=[]}_next(M){this.values.push(C),this.observables.push(M)}_complete(){const M=this.observables,S=M.length;if(0===S)this.destination.complete();else{this.active=S,this.toRespond=S;for(let P=0;P<S;P++)this.add((0,_.D)(this,M[P],void 0,P))}}notifyComplete(M){0==(this.active-=1)&&this.destination.complete()}notifyNext(M,S,P){const B=this.values,se=this.toRespond?B[P]===C?--this.toRespond:this.toRespond:0;B[P]=S,0===se&&(this.resultSelector?this._tryResultSelector(B):this.destination.next(B.slice()))}_tryResultSelector(M){let S;try{S=this.resultSelector.apply(this,M)}catch(P){return void this.destination.error(P)}this.destination.next(S)}}},8071:(Le,T,d)=>{"use strict";d.d(T,{z:()=>_});var o=d(5917),l=d(3282);function _(...a){return(0,l.J)(1)((0,o.of)(...a))}},1439:(Le,T,d)=>{"use strict";d.d(T,{P:()=>_});var o=d(9897),l=d(9412),f=d(9193);function _(a){return new o.y(C=>{let w;try{w=a()}catch(g){return void C.error(g)}return(w?(0,l.D)(w):(0,f.c)()).subscribe(C)})}},9193:(Le,T,d)=>{"use strict";d.d(T,{E:()=>l,c:()=>f});var o=d(9897);const l=new o.y(a=>a.complete());function f(a){return a?function(a){return new o.y(C=>a.schedule(()=>C.complete()))}(a):l}},5758:(Le,T,d)=>{"use strict";d.d(T,{D:()=>C});var o=d(9897),l=d(9796),f=d(8002),_=d(1555),a=d(9412);function C(...D){if(1===D.length){const g=D[0];if((0,l.k)(g))return w(g,null);if((0,_.K)(g)&&Object.getPrototypeOf(g)===Object.prototype){const E=Object.keys(g);return w(E.map(M=>g[M]),E)}}if("function"==typeof D[D.length-1]){const g=D.pop();return w(D=1===D.length&&(0,l.k)(D[0])?D[0]:D,null).pipe((0,f.U)(E=>g(...E)))}return w(D,null)}function w(D,g){return new o.y(E=>{const M=D.length;if(0===M)return void E.complete();const S=new Array(M);let P=0,B=0;for(let j=0;j<M;j++){const se=(0,a.D)(D[j]);let ce=!1;E.add(se.subscribe({next:be=>{ce||(ce=!0,B++),S[j]=be},error:be=>E.error(be),complete:()=>{P++,(P===M||!ce)&&(B===M&&E.next(g?g.reduce((be,Ue,lt)=>(be[Ue]=S[lt],be),{}):S),E.complete())}}))}})}},9412:(Le,T,d)=>{"use strict";d.d(T,{D:()=>_});var o=d(9897),l=d(7444),f=d(1115);function _(a,C){return C?(0,f.x)(a,C):a instanceof o.y?a:new o.y((0,l.s)(a))}},6693:(Le,T,d)=>{"use strict";d.d(T,{n:()=>_});var o=d(9897),l=d(5015),f=d(4087);function _(a,C){return C?(0,f.r)(a,C):new o.y((0,l.V)(a))}},2759:(Le,T,d)=>{"use strict";d.d(T,{R:()=>C});var o=d(9897),l=d(9796),f=d(9105),_=d(8002);function C(M,S,P,B){return(0,f.m)(P)&&(B=P,P=void 0),B?C(M,S,P).pipe((0,_.U)(j=>(0,l.k)(j)?B(...j):B(j))):new o.y(j=>{w(M,S,function(ce){j.next(arguments.length>1?Array.prototype.slice.call(arguments):ce)},j,P)})}function w(M,S,P,B,j){let se;if(function(M){return M&&"function"==typeof M.addEventListener&&"function"==typeof M.removeEventListener}(M)){const ce=M;M.addEventListener(S,P,j),se=()=>ce.removeEventListener(S,P,j)}else if(function(M){return M&&"function"==typeof M.on&&"function"==typeof M.off}(M)){const ce=M;M.on(S,P),se=()=>ce.off(S,P)}else if(function(M){return M&&"function"==typeof M.addListener&&"function"==typeof M.removeListener}(M)){const ce=M;M.addListener(S,P),se=()=>ce.removeListener(S,P)}else{if(!M||!M.length)throw new TypeError("Invalid event target");for(let ce=0,be=M.length;ce<be;ce++)w(M[ce],S,P,B,j)}B.add(se)}},6682:(Le,T,d)=>{"use strict";d.d(T,{T:()=>a});var o=d(9897),l=d(4869),f=d(3282),_=d(6693);function a(...C){let w=Number.POSITIVE_INFINITY,D=null,g=C[C.length-1];return(0,l.K)(g)?(D=C.pop(),C.length>1&&"number"==typeof C[C.length-1]&&(w=C.pop())):"number"==typeof g&&(w=C.pop()),null===D&&1===C.length&&C[0]instanceof o.y?C[0]:(0,f.J)(w)((0,_.n)(C,D))}},5917:(Le,T,d)=>{"use strict";d.d(T,{of:()=>_});var o=d(4869),l=d(6693),f=d(4087);function _(...a){let C=a[a.length-1];return(0,o.K)(C)?(a.pop(),(0,f.r)(a,C)):(0,l.n)(a)}},205:(Le,T,d)=>{"use strict";d.d(T,{_:()=>l});var o=d(9897);function l(_,a){return new o.y(a?C=>a.schedule(f,0,{error:_,subscriber:C}):C=>C.error(_))}function f({error:_,subscriber:a}){a.error(_)}},6797:(Le,T,d)=>{"use strict";d.d(T,{H:()=>a});var o=d(9897),l=d(3637),f=d(6561),_=d(4869);function a(w=0,D,g){let E=-1;return(0,f.k)(D)?E=Number(D)<1?1:Number(D):(0,_.K)(D)&&(g=D),(0,_.K)(g)||(g=l.P),new o.y(M=>{const S=(0,f.k)(w)?w:+w-g.now();return g.schedule(C,S,{index:0,period:E,subscriber:M})})}function C(w){const{index:D,period:g,subscriber:E}=w;if(E.next(D),!E.closed){if(-1===g)return E.complete();w.index=D+1,this.schedule(w,g)}}},4395:(Le,T,d)=>{"use strict";d.d(T,{b:()=>f});var o=d(7393),l=d(3637);function f(w,D=l.P){return g=>g.lift(new _(w,D))}class _{constructor(D,g){this.dueTime=D,this.scheduler=g}call(D,g){return g.subscribe(new a(D,this.dueTime,this.scheduler))}}class a extends o.L{constructor(D,g,E){super(D),this.dueTime=g,this.scheduler=E,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(D){this.clearDebounce(),this.lastValue=D,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(C,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:D}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(D)}}clearDebounce(){const D=this.debouncedSubscription;null!==D&&(this.remove(D),D.unsubscribe(),this.debouncedSubscription=null)}}function C(w){w.debouncedNext()}},7519:(Le,T,d)=>{"use strict";d.d(T,{x:()=>l});var o=d(7393);function l(a,C){return w=>w.lift(new f(a,C))}class f{constructor(C,w){this.compare=C,this.keySelector=w}call(C,w){return w.subscribe(new _(C,this.compare,this.keySelector))}}class _ extends o.L{constructor(C,w,D){super(C),this.keySelector=D,this.hasKey=!1,"function"==typeof w&&(this.compare=w)}compare(C,w){return C===w}_next(C){let w;try{const{keySelector:g}=this;w=g?g(C):C}catch(g){return this.destination.error(g)}let D=!1;if(this.hasKey)try{const{compare:g}=this;D=g(this.key,w)}catch(g){return this.destination.error(g)}else this.hasKey=!0;D||(this.key=w,this.destination.next(C))}}},5435:(Le,T,d)=>{"use strict";d.d(T,{h:()=>l});var o=d(7393);function l(a,C){return function(D){return D.lift(new f(a,C))}}class f{constructor(C,w){this.predicate=C,this.thisArg=w}call(C,w){return w.subscribe(new _(C,this.predicate,this.thisArg))}}class _ extends o.L{constructor(C,w,D){super(C),this.predicate=w,this.thisArg=D,this.count=0}_next(C){let w;try{w=this.predicate.call(this.thisArg,C,this.count++)}catch(D){return void this.destination.error(D)}w&&this.destination.next(C)}}},8002:(Le,T,d)=>{"use strict";d.d(T,{U:()=>l});var o=d(7393);function l(a,C){return function(D){if("function"!=typeof a)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return D.lift(new f(a,C))}}class f{constructor(C,w){this.project=C,this.thisArg=w}call(C,w){return w.subscribe(new _(C,this.project,this.thisArg))}}class _ extends o.L{constructor(C,w,D){super(C),this.project=w,this.count=0,this.thisArg=D||this}_next(C){let w;try{w=this.project.call(this.thisArg,C,this.count++)}catch(D){return void this.destination.error(D)}this.destination.next(w)}}},3282:(Le,T,d)=>{"use strict";d.d(T,{J:()=>f});var o=d(9773),l=d(4487);function f(_=Number.POSITIVE_INFINITY){return(0,o.zg)(l.y,_)}},9773:(Le,T,d)=>{"use strict";d.d(T,{zg:()=>_});var o=d(8002),l=d(9412),f=d(5345);function _(D,g,E=Number.POSITIVE_INFINITY){return"function"==typeof g?M=>M.pipe(_((S,P)=>(0,l.D)(D(S,P)).pipe((0,o.U)((B,j)=>g(S,B,P,j))),E)):("number"==typeof g&&(E=g),M=>M.lift(new a(D,E)))}class a{constructor(g,E=Number.POSITIVE_INFINITY){this.project=g,this.concurrent=E}call(g,E){return E.subscribe(new C(g,this.project,this.concurrent))}}class C extends f.Ds{constructor(g,E,M=Number.POSITIVE_INFINITY){super(g),this.project=E,this.concurrent=M,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(g){this.active<this.concurrent?this._tryNext(g):this.buffer.push(g)}_tryNext(g){let E;const M=this.index++;try{E=this.project(g,M)}catch(S){return void this.destination.error(S)}this.active++,this._innerSub(E)}_innerSub(g){const E=new f.IY(this),M=this.destination;M.add(E);const S=(0,f.ft)(g,E);S!==E&&M.add(S)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(g){this.destination.next(g)}notifyComplete(){const g=this.buffer;this.active--,g.length>0?this._next(g.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1307:(Le,T,d)=>{"use strict";d.d(T,{x:()=>l});var o=d(7393);function l(){return function(C){return C.lift(new f(C))}}class f{constructor(C){this.connectable=C}call(C,w){const{connectable:D}=this;D._refCount++;const g=new _(C,D),E=w.subscribe(g);return g.closed||(g.connection=D.connect()),E}}class _ extends o.L{constructor(C,w){super(C),this.connectable=w}_unsubscribe(){const{connectable:C}=this;if(!C)return void(this.connection=null);this.connectable=null;const w=C._refCount;if(w<=0)return void(this.connection=null);if(C._refCount=w-1,w>1)return void(this.connection=null);const{connection:D}=this,g=C._connection;this.connection=null,g&&(!D||g===D)&&g.unsubscribe()}}},8819:(Le,T,d)=>{"use strict";d.d(T,{B:()=>w});var o=d(2441);var _=d(1307),a=d(9765);function C(){return new a.xQ}function w(){return D=>(0,_.x)()(function(D,g){return function(M){let S;S="function"==typeof D?D:function(){return D};const P=Object.create(M,o.N);return P.source=M,P.subjectFactory=S,P}}(C)(D))}},3653:(Le,T,d)=>{"use strict";d.d(T,{T:()=>l});var o=d(7393);function l(a){return C=>C.lift(new f(a))}class f{constructor(C){this.total=C}call(C,w){return w.subscribe(new _(C,this.total))}}class _ extends o.L{constructor(C,w){super(C),this.total=w,this.count=0}_next(C){++this.count>this.total&&this.destination.next(C)}}},9761:(Le,T,d)=>{"use strict";d.d(T,{O:()=>f});var o=d(8071),l=d(4869);function f(..._){const a=_[_.length-1];return(0,l.K)(a)?(_.pop(),C=>(0,o.z)(_,C,a)):C=>(0,o.z)(_,C)}},3190:(Le,T,d)=>{"use strict";d.d(T,{w:()=>_});var o=d(8002),l=d(9412),f=d(5345);function _(w,D){return"function"==typeof D?g=>g.pipe(_((E,M)=>(0,l.D)(w(E,M)).pipe((0,o.U)((S,P)=>D(E,S,M,P))))):g=>g.lift(new a(w))}class a{constructor(D){this.project=D}call(D,g){return g.subscribe(new C(D,this.project))}}class C extends f.Ds{constructor(D,g){super(D),this.project=g,this.index=0}_next(D){let g;const E=this.index++;try{g=this.project(D,E)}catch(M){return void this.destination.error(M)}this._innerSub(g)}_innerSub(D){const g=this.innerSubscription;g&&g.unsubscribe();const E=new f.IY(this),M=this.destination;M.add(E),this.innerSubscription=(0,f.ft)(D,E),this.innerSubscription!==E&&M.add(this.innerSubscription)}_complete(){const{innerSubscription:D}=this;(!D||D.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(D){this.destination.next(D)}}},5257:(Le,T,d)=>{"use strict";d.d(T,{q:()=>_});var o=d(7393),l=d(7108),f=d(9193);function _(w){return D=>0===w?(0,f.c)():D.lift(new a(w))}class a{constructor(D){if(this.total=D,this.total<0)throw new l.W}call(D,g){return g.subscribe(new C(D,this.total))}}class C extends o.L{constructor(D,g){super(D),this.total=g,this.count=0}_next(D){const g=this.total,E=++this.count;E<=g&&(this.destination.next(D),E===g&&(this.destination.complete(),this.unsubscribe()))}}},6782:(Le,T,d)=>{"use strict";d.d(T,{R:()=>l});var o=d(5345);function l(a){return C=>C.lift(new f(a))}class f{constructor(C){this.notifier=C}call(C,w){const D=new _(C),g=(0,o.ft)(this.notifier,new o.IY(D));return g&&!D.seenValue?(D.add(g),w.subscribe(D)):D}}class _ extends o.Ds{constructor(C){super(C),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},8307:(Le,T,d)=>{"use strict";d.d(T,{b:()=>_});var o=d(7393),l=d(8640),f=d(9105);function _(w,D,g){return function(M){return M.lift(new a(w,D,g))}}class a{constructor(D,g,E){this.nextOrObserver=D,this.error=g,this.complete=E}call(D,g){return g.subscribe(new C(D,this.nextOrObserver,this.error,this.complete))}}class C extends o.L{constructor(D,g,E,M){super(D),this._tapNext=l.Z,this._tapError=l.Z,this._tapComplete=l.Z,this._tapError=E||l.Z,this._tapComplete=M||l.Z,(0,f.m)(g)?(this._context=this,this._tapNext=g):g&&(this._context=g,this._tapNext=g.next||l.Z,this._tapError=g.error||l.Z,this._tapComplete=g.complete||l.Z)}_next(D){try{this._tapNext.call(this._context,D)}catch(g){return void this.destination.error(g)}this.destination.next(D)}_error(D){try{this._tapError.call(this._context,D)}catch(g){return void this.destination.error(g)}this.destination.error(D)}_complete(){try{this._tapComplete.call(this._context)}catch(D){return void this.destination.error(D)}return this.destination.complete()}}},4087:(Le,T,d)=>{"use strict";d.d(T,{r:()=>f});var o=d(9897),l=d(826);function f(_,a){return new o.y(C=>{const w=new l.w;let D=0;return w.add(a.schedule(function(){D!==_.length?(C.next(_[D++]),C.closed||w.add(this.schedule())):C.complete()})),w})}},1115:(Le,T,d)=>{"use strict";d.d(T,{x:()=>P});var o=d(9897),l=d(826),f=d(6554),C=d(4087),w=d(377),E=d(4072),M=d(9489);function P(B,j){if(null!=B){if(function(B){return B&&"function"==typeof B[f.L]}(B))return function(B,j){return new o.y(se=>{const ce=new l.w;return ce.add(j.schedule(()=>{const be=B[f.L]();ce.add(be.subscribe({next(Ue){ce.add(j.schedule(()=>se.next(Ue)))},error(Ue){ce.add(j.schedule(()=>se.error(Ue)))},complete(){ce.add(j.schedule(()=>se.complete()))}}))})),ce})}(B,j);if((0,E.t)(B))return function(B,j){return new o.y(se=>{const ce=new l.w;return ce.add(j.schedule(()=>B.then(be=>{ce.add(j.schedule(()=>{se.next(be),ce.add(j.schedule(()=>se.complete()))}))},be=>{ce.add(j.schedule(()=>se.error(be)))}))),ce})}(B,j);if((0,M.z)(B))return(0,C.r)(B,j);if(function(B){return B&&"function"==typeof B[w.hZ]}(B)||"string"==typeof B)return function(B,j){if(!B)throw new Error("Iterable cannot be null");return new o.y(se=>{const ce=new l.w;let be;return ce.add(()=>{be&&"function"==typeof be.return&&be.return()}),ce.add(j.schedule(()=>{be=B[w.hZ](),ce.add(j.schedule(function(){if(se.closed)return;let Ue,lt;try{const Je=be.next();Ue=Je.value,lt=Je.done}catch(Je){return void se.error(Je)}lt?se.complete():(se.next(Ue),this.schedule())}))})),ce})}(B,j)}throw new TypeError((null!==B&&typeof B||B)+" is not observable")}},6465:(Le,T,d)=>{"use strict";d.d(T,{o:()=>f});var o=d(826);class l extends o.w{constructor(a,C){super()}schedule(a,C=0){return this}}class f extends l{constructor(a,C){super(a,C),this.scheduler=a,this.work=C,this.pending=!1}schedule(a,C=0){if(this.closed)return this;this.state=a;const w=this.id,D=this.scheduler;return null!=w&&(this.id=this.recycleAsyncId(D,w,C)),this.pending=!0,this.delay=C,this.id=this.id||this.requestAsyncId(D,this.id,C),this}requestAsyncId(a,C,w=0){return setInterval(a.flush.bind(a,this),w)}recycleAsyncId(a,C,w=0){if(null!==w&&this.delay===w&&!1===this.pending)return C;clearInterval(C)}execute(a,C){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const w=this._execute(a,C);if(w)return w;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(a,C){let D,w=!1;try{this.work(a)}catch(g){w=!0,D=!!g&&g||new Error(g)}if(w)return this.unsubscribe(),D}_unsubscribe(){const a=this.id,C=this.scheduler,w=C.actions,D=w.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==D&&w.splice(D,1),null!=a&&(this.id=this.recycleAsyncId(C,a,null)),this.delay=null}}},4548:(Le,T,d)=>{"use strict";d.d(T,{v:()=>l});var o=d(2217);class l extends o.b{constructor(_,a=o.b.now){super(_,()=>l.delegate&&l.delegate!==this?l.delegate.now():a()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(_,a=0,C){return l.delegate&&l.delegate!==this?l.delegate.schedule(_,a,C):super.schedule(_,a,C)}flush(_){const{actions:a}=this;if(this.active)return void a.push(_);let C;this.active=!0;do{if(C=_.execute(_.state,_.delay))break}while(_=a.shift());if(this.active=!1,C){for(;_=a.shift();)_.unsubscribe();throw C}}}},1927:(Le,T,d)=>{"use strict";d.d(T,{r:()=>C,Z:()=>a});var o=d(6465),f=d(4548);const a=new class extends f.v{flush(D){this.active=!0,this.scheduled=void 0;const{actions:g}=this;let E,M=-1,S=g.length;D=D||g.shift();do{if(E=D.execute(D.state,D.delay))break}while(++M<S&&(D=g.shift()));if(this.active=!1,E){for(;++M<S&&(D=g.shift());)D.unsubscribe();throw E}}}(class extends o.o{constructor(D,g){super(D,g),this.scheduler=D,this.work=g}requestAsyncId(D,g,E=0){return null!==E&&E>0?super.requestAsyncId(D,g,E):(D.actions.push(this),D.scheduled||(D.scheduled=requestAnimationFrame(()=>D.flush(null))))}recycleAsyncId(D,g,E=0){if(null!==E&&E>0||null===E&&this.delay>0)return super.recycleAsyncId(D,g,E);0===D.actions.length&&(cancelAnimationFrame(g),D.scheduled=void 0)}}),C=a},4581:(Le,T,d)=>{"use strict";d.d(T,{e:()=>S,E:()=>M});let o=1;const l=Promise.resolve(),f={};function _(P){return P in f&&(delete f[P],!0)}const a={setImmediate(P){const B=o++;return f[B]=!0,l.then(()=>_(B)&&P()),B},clearImmediate(P){_(P)}};var w=d(6465),g=d(4548);const M=new class extends g.v{flush(B){this.active=!0,this.scheduled=void 0;const{actions:j}=this;let se,ce=-1,be=j.length;B=B||j.shift();do{if(se=B.execute(B.state,B.delay))break}while(++ce<be&&(B=j.shift()));if(this.active=!1,se){for(;++ce<be&&(B=j.shift());)B.unsubscribe();throw se}}}(class extends w.o{constructor(B,j){super(B,j),this.scheduler=B,this.work=j}requestAsyncId(B,j,se=0){return null!==se&&se>0?super.requestAsyncId(B,j,se):(B.actions.push(this),B.scheduled||(B.scheduled=a.setImmediate(B.flush.bind(B,null))))}recycleAsyncId(B,j,se=0){if(null!==se&&se>0||null===se&&this.delay>0)return super.recycleAsyncId(B,j,se);0===B.actions.length&&(a.clearImmediate(j),B.scheduled=void 0)}}),S=M},3637:(Le,T,d)=>{"use strict";d.d(T,{z:()=>f,P:()=>_});var o=d(6465);const f=new(d(4548).v)(o.o),_=f},7771:(Le,T,d)=>{"use strict";d.d(T,{c:()=>C,N:()=>a});var o=d(6465),f=d(4548);const a=new class extends f.v{}(class extends o.o{constructor(D,g){super(D,g),this.scheduler=D,this.work=g}schedule(D,g=0){return g>0?super.schedule(D,g):(this.delay=g,this.state=D,this.scheduler.flush(this),this)}execute(D,g){return g>0||this.closed?super.execute(D,g):this._execute(D,g)}requestAsyncId(D,g,E=0){return null!==E&&E>0||null===E&&this.delay>0?super.requestAsyncId(D,g,E):D.flush(this)}}),C=a},377:(Le,T,d)=>{"use strict";d.d(T,{hZ:()=>l});const l="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:(Le,T,d)=>{"use strict";d.d(T,{L:()=>o});const o="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:(Le,T,d)=>{"use strict";d.d(T,{b:()=>o});const o="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:(Le,T,d)=>{"use strict";d.d(T,{W:()=>l});const l=(()=>{function f(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return f.prototype=Object.create(Error.prototype),f})()},7971:(Le,T,d)=>{"use strict";d.d(T,{N:()=>l});const l=(()=>{function f(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return f.prototype=Object.create(Error.prototype),f})()},7744:(Le,T,d)=>{"use strict";d.d(T,{B:()=>l});const l=(()=>{function f(_){return Error.call(this),this.message=_?`${_.length} errors occurred during unsubscription:\n${_.map((a,C)=>`${C+1}) ${a.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=_,this}return f.prototype=Object.create(Error.prototype),f})()},3179:(Le,T,d)=>{"use strict";d.d(T,{_:()=>l});var o=d(7393);function l(f){for(;f;){const{closed:_,destination:a,isStopped:C}=f;if(_||C)return!1;f=a&&a instanceof o.L?a:null}return!0}},4449:(Le,T,d)=>{"use strict";function o(l){setTimeout(()=>{throw l},0)}d.d(T,{z:()=>o})},4487:(Le,T,d)=>{"use strict";function o(l){return l}d.d(T,{y:()=>o})},9796:(Le,T,d)=>{"use strict";d.d(T,{k:()=>o});const o=Array.isArray||(l=>l&&"number"==typeof l.length)},9489:(Le,T,d)=>{"use strict";d.d(T,{z:()=>o});const o=l=>l&&"number"==typeof l.length&&"function"!=typeof l},9105:(Le,T,d)=>{"use strict";function o(l){return"function"==typeof l}d.d(T,{m:()=>o})},6561:(Le,T,d)=>{"use strict";d.d(T,{k:()=>l});var o=d(9796);function l(f){return!(0,o.k)(f)&&f-parseFloat(f)+1>=0}},1555:(Le,T,d)=>{"use strict";function o(l){return null!==l&&"object"==typeof l}d.d(T,{K:()=>o})},5639:(Le,T,d)=>{"use strict";d.d(T,{b:()=>l});var o=d(9897);function l(f){return!!f&&(f instanceof o.y||"function"==typeof f.lift&&"function"==typeof f.subscribe)}},4072:(Le,T,d)=>{"use strict";function o(l){return!!l&&"function"!=typeof l.subscribe&&"function"==typeof l.then}d.d(T,{t:()=>o})},4869:(Le,T,d)=>{"use strict";function o(l){return l&&"function"==typeof l.schedule}d.d(T,{K:()=>o})},8640:(Le,T,d)=>{"use strict";function o(){}d.d(T,{Z:()=>o})},4022:(Le,T,d)=>{"use strict";d.d(T,{z:()=>l,U:()=>f});var o=d(4487);function l(..._){return f(_)}function f(_){return 0===_.length?o.y:1===_.length?_[0]:function(C){return _.reduce((w,D)=>D(w),C)}}},7444:(Le,T,d)=>{"use strict";d.d(T,{s:()=>M});var o=d(5015),l=d(4449),_=d(377),C=d(6554),D=d(9489),g=d(4072),E=d(1555);const M=S=>{if(S&&"function"==typeof S[C.L])return(S=>P=>{const B=S[C.L]();if("function"!=typeof B.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return B.subscribe(P)})(S);if((0,D.z)(S))return(0,o.V)(S);if((0,g.t)(S))return(S=>P=>(S.then(B=>{P.closed||(P.next(B),P.complete())},B=>P.error(B)).then(null,l.z),P))(S);if(S&&"function"==typeof S[_.hZ])return(S=>P=>{const B=S[_.hZ]();for(;;){let j;try{j=B.next()}catch(se){return P.error(se),P}if(j.done){P.complete();break}if(P.next(j.value),P.closed)break}return"function"==typeof B.return&&P.add(()=>{B.return&&B.return()}),P})(S);{const B=`You provided ${(0,E.K)(S)?"an invalid object":`'${S}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(B)}}},5015:(Le,T,d)=>{"use strict";d.d(T,{V:()=>o});const o=l=>f=>{for(let _=0,a=l.length;_<a&&!f.closed;_++)f.next(l[_]);f.complete()}},509:(Le,T,d)=>{"use strict";d.d(T,{D:()=>a});var o=d(7393);class l extends o.L{constructor(w,D,g){super(),this.parent=w,this.outerValue=D,this.outerIndex=g,this.index=0}_next(w){this.parent.notifyNext(this.outerValue,w,this.outerIndex,this.index++,this)}_error(w){this.parent.notifyError(w,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var f=d(7444),_=d(9897);function a(C,w,D,g,E=new l(C,D,g)){if(!E.closed)return w instanceof _.y?w.subscribe(E):(0,f.s)(w)(E)}},5041:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.AppComponent=void 0;const o=d(4762),l=d(3679),f=d(4906),_=d(6988),a=d(2768),C=d(1670),w=d(282),D=d(9457),g=o.__importStar(d(7716)),E=o.__importStar(d(6395)),M=o.__importStar(d(9075)),S=o.__importStar(d(2421)),P=o.__importStar(d(5151)),B=o.__importStar(d(2665)),j=o.__importStar(d(8583)),se=o.__importStar(d(5384)),ce=o.__importStar(d(5939)),be=o.__importStar(d(5585)),Ue=o.__importStar(d(1095)),lt=o.__importStar(d(1436)),Je=o.__importStar(d(4264)),Me=o.__importStar(d(7822));function xe($e,et){1&$e&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275text(1,"Editor Avan\xe7ado"),g.\u0275\u0275elementContainerEnd())}function Pe($e,et){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 pt=g.\u0275\u0275nextContext(2).$implicit;g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate1("\u25b6\xa0",pt.function,"")}}function Ne($e,et){if(1&$e){const pt=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"span",17),g.\u0275\u0275template(1,xe,2,0,"ng-container",18),g.\u0275\u0275template(2,Pe,3,1,"ng-container",18),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(3,"button",19),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(pt);const tt=g.\u0275\u0275nextContext().$implicit;return g.\u0275\u0275nextContext(2).closeTab(tt)}),g.\u0275\u0275elementStart(4,"mat-icon"),g.\u0275\u0275text(5,"close"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()}if(2&$e){const pt=g.\u0275\u0275nextContext().$implicit;g.\u0275\u0275property("ngSwitch",pt.type),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase","advanced"),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase","simple")}}function Ct($e,et){1&$e&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275element(1,"app-tab-editor"),g.\u0275\u0275elementContainerEnd())}function te($e,et){if(1&$e&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275element(1,"app-simple-call",21),g.\u0275\u0275elementContainerEnd()),2&$e){const pt=g.\u0275\u0275nextContext().$implicit;g.\u0275\u0275advance(1),g.\u0275\u0275property("fn",pt.function)}}function ge($e,et){if(1&$e&&(g.\u0275\u0275elementStart(0,"mat-tab"),g.\u0275\u0275template(1,Ne,6,3,"ng-template",16),g.\u0275\u0275elementContainerStart(2,17),g.\u0275\u0275template(3,Ct,2,0,"ng-container",18),g.\u0275\u0275template(4,te,2,1,"ng-container",18),g.\u0275\u0275elementContainerEnd(),g.\u0275\u0275elementEnd()),2&$e){const pt=et.$implicit;g.\u0275\u0275advance(2),g.\u0275\u0275property("ngSwitch",pt.type),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase","advanced"),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase","simple")}}function X($e,et){if(1&$e){const pt=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"button",22),g.\u0275\u0275listener("click",function(){return g.\u0275\u0275restoreView(pt),g.\u0275\u0275nextContext(2).addAdvancedTab()}),g.\u0275\u0275elementStart(1,"mat-icon"),g.\u0275\u0275text(2,"add_circle"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()}}function le($e,et){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 pt=g.\u0275\u0275reference(5);g.\u0275\u0275property("matMenuTriggerFor",pt)}}function Ae($e,et){if(1&$e){const pt=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"mat-tab-group",11),g.\u0275\u0275listener("selectedIndexChange",function(tt){return g.\u0275\u0275restoreView(pt),g.\u0275\u0275nextContext().selected.setValue(tt)}),g.\u0275\u0275elementStart(1,"mat-tab",12),g.\u0275\u0275elementStart(2,"app-tab-home",13),g.\u0275\u0275listener("runFunction",function(tt){return g.\u0275\u0275restoreView(pt),g.\u0275\u0275nextContext().addSimpleTab(tt)}),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd(),g.\u0275\u0275template(3,ge,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,le,3,1,"ng-template",16),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()}if(2&$e){const pt=g.\u0275\u0275nextContext();g.\u0275\u0275property("selectedIndex",pt.selected.value),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngForOf",pt.tabs)}}class Ce{constructor(et,pt,je){this.sdkgen=et,this.domSanitizer=pt,this.matIconRegistry=je,this.selected=new l.FormControl(0),this.tabs=[{id:0,type:"advanced"}],this.tabIndex=1;for(const tt of["typescript","dot-net","kotlin","swift","dart"])this.matIconRegistry.addSvgIcon(tt,this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/${tt}.svg`))}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(et=>{this.state=null!=et?et:void 0})}ngOnDestroy(){var et;null===(et=this.state$)||void 0===et||et.unsubscribe()}addSimpleTab(et){this.tabs.push({id:this.tabIndex++,function:et,type:"simple"}),this.selected.setValue(this.tabs.length)}addAdvancedTab(){this.tabs.push({id:this.tabIndex++,type:"advanced"}),this.selected.setValue(this.tabs.length)}closeTab(et){this.tabs.splice(this.tabs.indexOf(et),1),this.selected.setValue(0)}downloadTarget(et){if(!this.state)return;let pt,je;switch(et){case"typescript_nodeserver":pt=w.generateNodeServerSource(this.state.astRoot),je="node-server.ts";break;case"typescript_nodeclient":pt=w.generateNodeClientSource(this.state.astRoot),je="node-client.ts";break;case"typescript_web":pt=w.generateBrowserClientSource(this.state.astRoot),je="web-client.ts";break;case"typescript_interfaces":pt=w.generateTypescriptInterfaces(this.state.astRoot),je="interfaces.ts";break;case"flutter":pt=_.generateDartClientSource(this.state.astRoot),je="flutter-client.dart";break;case"csharp_server":pt=f.generateCSharpServerSource(this.state.astRoot),je="csharp-server.cs";break;case"kotlin_android":pt=a.generateAndroidClientSource(this.state.astRoot,!0),je="android-client.kt";break;case"kotlin_android_without_callbacks":pt=a.generateAndroidClientSource(this.state.astRoot,!1),je="android-client-no-callbacks.kt";break;case"swift_ios":pt=C.generateSwiftClientSource(this.state.astRoot,!1),je="ios-client.swift";break;case"rxswift_ios":pt=C.generateSwiftClientSource(this.state.astRoot,!0),je="ios-client-rx.swift"}D.saveAs(new Blob([pt],{type:"application/octet-stream"}),je)}}T.AppComponent=Ce,Ce.\u0275fac=function(et){return new(et||Ce)(g.\u0275\u0275directiveInject(E.SdkgenService),g.\u0275\u0275directiveInject(M.DomSanitizer),g.\u0275\u0275directiveInject(S.MatIconRegistry))},Ce.\u0275cmp=g.\u0275\u0275defineComponent({type:Ce,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(et,pt){1&et&&(g.\u0275\u0275element(0,"ngx-monaco-editor",0),g.\u0275\u0275element(1,"app-tab-nav"),g.\u0275\u0275template(2,Ae,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 pt.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 pt.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 pt.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 pt.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 pt.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 pt.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 pt.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 pt.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 pt.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 pt.downloadTarget("typescript_interfaces")}),g.\u0275\u0275element(41,"mat-icon",6),g.\u0275\u0275text(42,"Interfaces"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()),2&et&&(g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",g.\u0275\u0275pipeBind1(3,1,pt.sdkgen.state$)))},directives:[P.MonacoEditorComponent,B.TabNavComponent,j.NgIf,se.MatMenu,se.MatMenuItem,S.MatIcon,ce.MatTabGroup,ce.MatTab,be.TabHomeComponent,j.NgForOf,ce.MatTabLabel,j.NgSwitch,j.NgSwitchCase,Ue.MatButton,lt.MatTooltip,Je.TabEditorComponent,Me.SimpleCallComponent,se.MatMenuTrigger],pipes:[j.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:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.AppModule=void 0;const o=d(4762),l=d(6820),f=d(3679),_=d(1095),a=d(2675),C=d(2238),w=d(2421),D=d(5384),g=d(2789),E=d(5939),M=d(1436),S=d(9075),P=d(6237),B=d(5151),j=d(1430),se=d(1103),ce=d(9344),be=d(5041),Ue=o.__importStar(d(7716));o.__importStar(d(9344));class Je{}T.AppModule=Je,Je.\u0275fac=function(xe){return new(xe||Je)},Je.\u0275mod=Ue.\u0275\u0275defineNgModule({type:Je,bootstrap:[be.AppComponent]}),Je.\u0275inj=Ue.\u0275\u0275defineInjector({providers:[{provide:B.MONACO_PATH,useValue:"assets/vs"}],imports:[[S.BrowserModule,f.FormsModule,f.ReactiveFormsModule,B.MonacoEditorModule,P.BrowserAnimationsModule,se.NgxJsonViewerModule,ce.ToastrModule.forRoot(),j.AngularSplitModule,l.HttpClientModule,_.MatButtonModule,a.MatChipsModule,C.MatDialogModule,w.MatIconModule,D.MatMenuModule,g.MatTableModule,E.MatTabsModule,M.MatTooltipModule]]})},8495:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ConsoleComponent=void 0;const o=d(4762),l=d(9972),f=o.__importStar(d(7716)),_=o.__importStar(d(1095)),a=o.__importStar(d(2421)),C=o.__importStar(d(8583)),w=o.__importStar(d(1103));function D(B,j){1&B&&(f.\u0275\u0275elementContainerStart(0),f.\u0275\u0275text(1,"info_outline"),f.\u0275\u0275elementContainerEnd())}function g(B,j){1&B&&(f.\u0275\u0275elementContainerStart(0),f.\u0275\u0275text(1,"error"),f.\u0275\u0275elementContainerEnd())}function E(B,j){1&B&&(f.\u0275\u0275elementContainerStart(0),f.\u0275\u0275text(1,"public"),f.\u0275\u0275elementContainerEnd())}function M(B,j){if(1&B&&f.\u0275\u0275element(0,"ngx-json-viewer",6),2&B){const se=f.\u0275\u0275nextContext().$implicit;f.\u0275\u0275property("json",se.details)("expanded",!1)}}function S(B,j){if(1&B&&(f.\u0275\u0275elementStart(0,"li",2),f.\u0275\u0275elementStart(1,"mat-icon",3),f.\u0275\u0275template(2,D,2,0,"ng-container",4),f.\u0275\u0275template(3,g,2,0,"ng-container",4),f.\u0275\u0275template(4,E,2,0,"ng-container",4),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(5,"span"),f.\u0275\u0275text(6),f.\u0275\u0275elementEnd(),f.\u0275\u0275template(7,M,1,2,"ngx-json-viewer",5),f.\u0275\u0275elementEnd()),2&B){const se=j.$implicit,ce=f.\u0275\u0275nextContext();f.\u0275\u0275property("ngClass",se.type),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngSwitch",se.type)("ngClass",se.type),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngSwitchCase",ce.itemTypes.INFO),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngSwitchCase",ce.itemTypes.ERROR),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngSwitchCase",ce.itemTypes.NETWORK),f.\u0275\u0275advance(2),f.\u0275\u0275textInterpolate(se.message),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngIf",se.details)}}class P{constructor(){this.itemTypes=l.ConsoleItemType,this.items=[]}}T.ConsoleComponent=P,P.\u0275fac=function(j){return new(j||P)},P.\u0275cmp=f.\u0275\u0275defineComponent({type:P,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(j,se){1&j&&(f.\u0275\u0275elementStart(0,"header"),f.\u0275\u0275elementStart(1,"strong"),f.\u0275\u0275text(2,"CONSOLE"),f.\u0275\u0275elementEnd(),f.\u0275\u0275element(3,"s"),f.\u0275\u0275elementStart(4,"button",0),f.\u0275\u0275listener("click",function(){return se.items.splice(0,se.items.length)}),f.\u0275\u0275elementStart(5,"mat-icon"),f.\u0275\u0275text(6,"delete"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(7,"ul"),f.\u0275\u0275template(8,S,8,8,"li",1),f.\u0275\u0275elementEnd()),2&j&&(f.\u0275\u0275advance(8),f.\u0275\u0275property("ngForOf",se.items))},directives:[_.MatButton,a.MatIcon,C.NgForOf,C.NgClass,C.NgSwitch,C.NgSwitchCase,C.NgIf,w.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%] s[_ngcontent-%COMP%]{flex-grow:1}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:(Le,T)=>{"use strict";var o;Object.defineProperty(T,"__esModule",{value:!0}),T.ConsoleItemType=void 0,(o=T.ConsoleItemType||(T.ConsoleItemType={})).INFO="info",o.ERROR="error",o.NETWORK="network"},4211:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.FilterPipe=void 0;const l=d(4762).__importStar(d(7716));class f{transform(a,C){if(!a)return[];if(!C)return a;const w=C.toLocaleLowerCase();return a.filter(D=>JSON.stringify(D).toLocaleLowerCase().includes(w))}}T.FilterPipe=f,f.\u0275fac=function(a){return new(a||f)},f.\u0275pipe=l.\u0275\u0275definePipe({name:"appFilter",type:f,pure:!0})},7120:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ResponsiveService=void 0;const o=d(4762),l=o.__importStar(d(7716)),f=o.__importStar(d(5072));class _{constructor(C){this.observer=C}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)"])}}T.ResponsiveService=_,_.\u0275fac=function(C){return new(C||_)(l.\u0275\u0275inject(f.BreakpointObserver))},_.\u0275prov=l.\u0275\u0275defineInjectable({token:_,factory:_.\u0275fac,providedIn:"root"})},9435:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.getTypeDoc=T.getTypeLabels=T.getConstructorName=T.primitiveTypesExamples=T.primitiveTypes=void 0;const o=d(3979),l=d(6395);function f(C){switch(C.constructor){case o.StringPrimitiveType:return"StringPrimitiveType";case o.IntPrimitiveType:return"IntPrimitiveType";case o.UIntPrimitiveType:return"UIntPrimitiveType";case o.FloatPrimitiveType:return"FloatPrimitiveType";case o.BigIntPrimitiveType:return"BigIntPrimitiveType";case o.MoneyPrimitiveType:return"MoneyPrimitiveType";case o.DatePrimitiveType:return"DatePrimitiveType";case o.DateTimePrimitiveType:return"DateTimePrimitiveType";case o.BoolPrimitiveType:return"BoolPrimitiveType";case o.VoidPrimitiveType:return"VoidPrimitiveType";case o.CpfPrimitiveType:return"CpfPrimitiveType";case o.CnpjPrimitiveType:return"CnpjPrimitiveType";case o.EmailPrimitiveType:return"EmailPrimitiveType";case o.UrlPrimitiveType:return"UrlPrimitiveType";case o.UuidPrimitiveType:return"UuidPrimitiveType";case o.HexPrimitiveType:return"HexPrimitiveType";case o.HtmlPrimitiveType:return"HtmlPrimitiveType";case o.BytesPrimitiveType:return"BytesPrimitiveType";case o.Base64PrimitiveType:return"Base64PrimitiveType";case o.XmlPrimitiveType:return"XmlPrimitiveType";case o.JsonPrimitiveType:return"JsonPrimitiveType";case o.OptionalType:return"OptionalType";case o.EnumType:return"EnumType";case o.ArrayType:return"ArrayType";case o.StructType:return"StructType";default:return C.constructor.name}}T.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?."},T.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}']},T.getConstructorName=f,T.getTypeLabels=function _(C){const w=[];switch(C.constructor){case o.StringPrimitiveType:case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.FloatPrimitiveType:case o.BigIntPrimitiveType:case o.MoneyPrimitiveType:case o.DatePrimitiveType:case o.DateTimePrimitiveType:case o.BoolPrimitiveType:case o.VoidPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.HtmlPrimitiveType:case o.BytesPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:case o.JsonPrimitiveType:w.push("Primitivo");break;case o.OptionalType:w.push("Opcional"),w.push(..._(C.base));break;case o.TypeReference:w.push(..._(C.type));break;case o.ArrayType:w.push("Array"),w.push(..._(C.base));break;case o.EnumType:w.push("Enum");break;default:console.error("No labels for",f(C))}return w},T.getTypeDoc=function a(C){var w,D,g;switch(C.constructor){case o.StringPrimitiveType:case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.FloatPrimitiveType:case o.BigIntPrimitiveType:case o.MoneyPrimitiveType:case o.DatePrimitiveType:case o.DateTimePrimitiveType:case o.BoolPrimitiveType:case o.VoidPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.HtmlPrimitiveType:case o.BytesPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:case o.JsonPrimitiveType:return{longDescription:T.primitiveTypes[f(C)],shortDescription:T.primitiveTypes[f(C)],examples:T.primitiveTypesExamples[f(C)]};case o.OptionalType:{const M=a(C.base);return Object.assign(Object.assign({},M),{longDescription:M.longDescription,shortDescription:`(opcional) ${M.shortDescription}`,examples:["null",...null!==(w=M.examples)&&void 0!==w?w:[]]})}case o.TypeReference:return a(C.type);case o.ArrayType:{const M=a(C.base);return Object.assign(Object.assign({},M),{longDescription:M.longDescription,shortDescription:`(array) ${M.shortDescription}`,examples:["[]",...null!==(g=null===(D=M.examples)||void 0===D?void 0:D.map(S=>`[${S}]`))&&void 0!==g?g:[]]})}case o.EnumType:const E=C.values.map(M=>M.value);return{longDescription:"enum representa um conjunto limitado de possibilidades de valores, similar as enumera\xe7\xf5es em outras linguagens.",shortDescription:`(enum) ${E.slice(0,3).join(", ")}${E.length>3?"\u2026":""}`,examples:E,isEnum:!0};case o.StructType:return{longDescription:"",shortDescription:`(objeto complexo) ${C.fields.slice(0,3).map(M=>M.name).join(", ")}\u2026`,isStruct:!0,structFields:C.fields.map(M=>{var S;return{name:M.name,description:null===(S=M.annotations.find(P=>P instanceof o.DescriptionAnnotation))||void 0===S?void 0:S.text,type:M.type,secret:M.secret}}),examples:[JSON.stringify((new l.SdkgenService).buildJsonObject(C.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__(1052).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SdkgenService=void 0;const tslib_1=__webpack_require__(4762),browser_runtime_1=__webpack_require__(2184),parser_1=__webpack_require__(3979),rxjs_1=__webpack_require__(4813),i0=tslib_1.__importStar(__webpack_require__(7716));class SdkgenService{constructor(){this.state$=new rxjs_1.BehaviorSubject(null)}buildJsonObject(Le){const T=d=>{switch(d.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 this.buildJsonObject(d.fields);case parser_1.OptionalType:return null;case parser_1.TypeReference:return T(d.type);case parser_1.ArrayType:return[T(d.base),T(d.base),T(d.base)];case parser_1.EnumType:return d.values[0].value;default:return null}};return Le.reduce((d,o)=>(d[o.name]=T(o.type),d),{})}getTypeScriptCode(Le,T){return`await client.${Le}(${JSON.stringify(T,null,2)});\n`}buildKotlinString(Le,T=0){const d=o=>{switch(o.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`${o.name}(\n${this.buildKotlinString(o.fields,T+1)}\n${" ".repeat(T+1)})`;case parser_1.OptionalType:return"null";case parser_1.TypeReference:return d(o.type);case parser_1.ArrayType:T++;const l=d(o.base);return T--,`arrayOf(\n${" ".repeat(T+2)}${l},\n${" ".repeat(T+2)}${l}\n${" ".repeat(T+1)})`;case parser_1.EnumType:return`"${o.values[0].value}"`;default:return"<>()"}};return Le.map(o=>`${" ".repeat(T+1)}${d(o.type)}`).join(",\n")}getKotlinCode(Le,T){return 0===T.length?`client.${Le}().await();`:`client.${Le}(\n${this.buildKotlinString(T)}\n).await();`}getDartCode(Le,T){return'print("todo");'}getSwiftCode(Le,T){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:(Le,T)=>function(){var d=_asyncToGenerator(function*(o){return clientInstance.makeRequest(T.toString(),o)});return function(o){return d.apply(this,arguments)}}()})}}exports.SdkgenService=SdkgenService,SdkgenService.\u0275fac=function(T){return new(T||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__(1052).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SimpleCallComponent=void 0;const tslib_1=__webpack_require__(4762),forms_1=__webpack_require__(3679),console_types_1=__webpack_require__(9972),code_execution_1=__webpack_require__(8227),i0=tslib_1.__importStar(__webpack_require__(7716)),i1=tslib_1.__importStar(__webpack_require__(6395)),i2=tslib_1.__importStar(__webpack_require__(1430)),i3=tslib_1.__importStar(__webpack_require__(5939)),i4=tslib_1.__importStar(__webpack_require__(1095)),i5=tslib_1.__importStar(__webpack_require__(2421)),i6=tslib_1.__importStar(__webpack_require__(5151)),i7=tslib_1.__importStar(__webpack_require__(3679)),i8=tslib_1.__importStar(__webpack_require__(1103)),i9=tslib_1.__importStar(__webpack_require__(8495));class SimpleCallComponent{constructor(Le){this.sdkgen=Le,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(Le=>{!Le||(this.generateFunctionCode(Le.astRoot,this.fn),this.client=this.sdkgen.getSdkgenClient(Le.url,Le.astJson))})}ngOnDestroy(){var Le;null===(Le=this.state$)||void 0===Le||Le.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(Le){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:Le.toString()}),delete Le.toString,_this.response={error:{type:Le.type,message:Le.message,data:Le.data}}}finally{eval(code_execution_1.unwrap),_this.selected.setValue(1)}})()}generateFunctionCode(Le,T){var d;const o=null===(d=Le.operations.find(l=>l.name===T))||void 0===d?void 0:d.args;o&&(this.code=JSON.stringify(this.sdkgen.buildJsonObject(o),null,2))}}exports.SimpleCallComponent=SimpleCallComponent,SimpleCallComponent.\u0275fac=function(T){return new(T||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(T,d){1&T&&(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(l){return d.selected.setValue(l)}),i0.\u0275\u0275elementStart(3,"mat-tab",2),i0.\u0275\u0275elementStart(4,"button",3),i0.\u0275\u0275listener("click",function(){return d.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(l){return d.code=l}),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&T&&(i0.\u0275\u0275advance(2),i0.\u0275\u0275property("selectedIndex",d.selected.value),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",d.editorOptions)("ngModel",d.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",!d.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("json",d.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",d.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__(1052).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.TabEditorComponent=void 0;const tslib_1=__webpack_require__(4762),typescript_generator_1=__webpack_require__(282),console_types_1=__webpack_require__(9972),code_execution_1=__webpack_require__(8227),i0=tslib_1.__importStar(__webpack_require__(7716)),i1=tslib_1.__importStar(__webpack_require__(6395)),i2=tslib_1.__importStar(__webpack_require__(1095)),i3=tslib_1.__importStar(__webpack_require__(2421)),i4=tslib_1.__importStar(__webpack_require__(1430)),i5=tslib_1.__importStar(__webpack_require__(5151)),i6=tslib_1.__importStar(__webpack_require__(3679)),i7=tslib_1.__importStar(__webpack_require__(8495));class TabEditorComponent{constructor(Le){this.sdkgen=Le,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(Le=>{if(!Le)return;const T=`${this.patchBrowserClientSource(typescript_generator_1.generateBrowserClientSource(Le.astRoot))}\n\ndeclare const client: sdkgen.ApiClient;\n\n`;this.client=this.sdkgen.getSdkgenClient(Le.url,Le.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 d=monaco.editor.getModels().find(l=>l.uri.toString().endsWith("client.d.ts"));d?d.setValue(T):monaco.editor.createModel(T,"typescript",monaco.Uri.parse("ts:filename/client.d.ts"));const[o]=Le.astRoot.operations;this.code=this.sdkgen.getTypeScriptCode(o.name,this.sdkgen.buildJsonObject(o.args))})}ngOnDestroy(){var Le;null===(Le=this.state$)||void 0===Le||Le.unsubscribe()}patchBrowserClientSource(Le){return`declare namespace sdkgen {\n${Le.substring(95,Le.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,"")}\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(Le){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:Le.toString()})}})()}}exports.TabEditorComponent=TabEditorComponent,TabEditorComponent.\u0275fac=function(T){return new(T||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(T,d){1&T&&(i0.\u0275\u0275elementStart(0,"button",0),i0.\u0275\u0275listener("click",function(){return d.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(l){return d.code=l}),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&T&&(i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",d.editorOptions)("ngModel",d.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",d.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:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.TabHomeComponent=void 0;const o=d(4762),l=d(7716),f=d(9435),_=d(5281),a=o.__importStar(d(7716)),C=o.__importStar(d(6395)),w=o.__importStar(d(2238)),D=o.__importStar(d(7120)),g=o.__importStar(d(1430)),E=o.__importStar(d(3679)),M=o.__importStar(d(8583)),S=o.__importStar(d(1436)),P=o.__importStar(d(1095)),B=o.__importStar(d(2421)),j=o.__importStar(d(5939)),se=o.__importStar(d(5151)),ce=o.__importStar(d(2675)),be=o.__importStar(d(2789)),Ue=o.__importStar(d(4211));function lt(Ze,ze){if(1&Ze&&(a.\u0275\u0275elementStart(0,"span",8),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&Ze){const He=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.description)}}const Je=function(Ze){return{active:Ze}};function Me(Ze,ze){if(1&Ze){const He=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"li",5),a.\u0275\u0275listener("click",function(){const ft=a.\u0275\u0275restoreView(He).$implicit;return a.\u0275\u0275nextContext().selectedFunction=ft}),a.\u0275\u0275elementStart(1,"span",6),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(3,lt,2,1,"span",7),a.\u0275\u0275elementEnd()}if(2&Ze){const He=ze.$implicit,q=a.\u0275\u0275nextContext();a.\u0275\u0275property("ngClass",a.\u0275\u0275pureFunction1(3,Je,(null==q.selectedFunction?null:q.selectedFunction.name)===He.name)),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(He.name),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",He.description)}}function xe(Ze,ze){1&Ze&&a.\u0275\u0275element(0,"span")}function Pe(Ze,ze){if(1&Ze){const He=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"span"),a.\u0275\u0275element(1,"br"),a.\u0275\u0275text(2,"\xa0\xa0"),a.\u0275\u0275elementStart(3,"span",37),a.\u0275\u0275text(4),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(5,"span",14),a.\u0275\u0275text(6,":"),a.\u0275\u0275elementEnd(),a.\u0275\u0275text(7,"\xa0"),a.\u0275\u0275elementStart(8,"u",15),a.\u0275\u0275listener("click",function(){const ft=a.\u0275\u0275restoreView(He).$implicit;return a.\u0275\u0275nextContext(2).showDocumentation(ft.rawType)}),a.\u0275\u0275text(9),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(10,xe,1,0,"span",38),a.\u0275\u0275elementEnd()}if(2&Ze){const He=ze.$implicit,q=ze.index;a.\u0275\u0275nextContext();const Ge=a.\u0275\u0275reference(18),ft=a.\u0275\u0275reference(20),vt=a.\u0275\u0275nextContext();a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate(He.name),a.\u0275\u0275advance(4),a.\u0275\u0275property("matTooltip",vt.getTooltip(He.rawType)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.type),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",q!=vt.selectedFunction.args.length-1)("ngIfThen",Ge)("ngIfElse",ft)}}function Ne(Ze,ze){1&Ze&&a.\u0275\u0275text(0,",")}function Ct(Ze,ze){1&Ze&&a.\u0275\u0275element(0,"br")}function te(Ze,ze){if(1&Ze){const He=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"u",29),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(He);const Ge=a.\u0275\u0275nextContext().$implicit;return a.\u0275\u0275nextContext(3).showDocumentation(Ge.dataType)}),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()}if(2&Ze){const He=a.\u0275\u0275nextContext().$implicit,q=a.\u0275\u0275nextContext(3);a.\u0275\u0275property("matTooltip",q.getTooltip(He.dataType)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1("(",He.dataType.name,")")}}function ge(Ze,ze){if(1&Ze&&(a.\u0275\u0275elementStart(0,"mat-chip",42),a.\u0275\u0275elementStart(1,"span",28),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(3,"i"),a.\u0275\u0275elementStart(4,"span",28),a.\u0275\u0275text(5),a.\u0275\u0275template(6,te,2,2,"u",43),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()),2&Ze){const He=ze.$implicit;a.\u0275\u0275property("disableRipple",!0),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(He.name),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1("",He.type," "),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",He.dataType&&"void"!==He.dataType.name)}}function X(Ze,ze){if(1&Ze&&(a.\u0275\u0275elementStart(0,"section",39),a.\u0275\u0275elementStart(1,"mat-chip-list",40),a.\u0275\u0275template(2,ge,7,4,"mat-chip",41),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()),2&Ze){const He=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275property("selectable",!1),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngForOf",He.selectedFunction.labels)}}function le(Ze,ze){if(1&Ze&&(a.\u0275\u0275elementStart(0,"p"),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&Ze){const He=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.selectedFunction.description)}}function Ae(Ze,ze){1&Ze&&(a.\u0275\u0275elementStart(0,"p",44),a.\u0275\u0275text(1,"N\xe3o h\xe1 descri\xe7\xe3o para esta fun\xe7\xe3o."),a.\u0275\u0275elementEnd())}function Ce(Ze,ze){1&Ze&&(a.\u0275\u0275elementStart(0,"p",44),a.\u0275\u0275text(1,"Esta fun\xe7\xe3o n\xe3o possui argumentos."),a.\u0275\u0275elementEnd())}function $e(Ze,ze){1&Ze&&(a.\u0275\u0275elementStart(0,"th",54),a.\u0275\u0275text(1,"Nome"),a.\u0275\u0275elementEnd())}function et(Ze,ze){if(1&Ze&&(a.\u0275\u0275elementStart(0,"td",55),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&Ze){const He=ze.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.name)}}function pt(Ze,ze){1&Ze&&(a.\u0275\u0275elementStart(0,"th",54),a.\u0275\u0275text(1,"Tipo"),a.\u0275\u0275elementEnd())}function je(Ze,ze){if(1&Ze){const He=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"td",55),a.\u0275\u0275elementStart(1,"u",29),a.\u0275\u0275listener("click",function(){const ft=a.\u0275\u0275restoreView(He).$implicit;return a.\u0275\u0275nextContext(3).showDocumentation(ft.rawType)}),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()}if(2&Ze){const He=ze.$implicit,q=a.\u0275\u0275nextContext(3);a.\u0275\u0275advance(1),a.\u0275\u0275property("matTooltip",q.getTooltip(He.rawType)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.type)}}function tt(Ze,ze){1&Ze&&(a.\u0275\u0275elementStart(0,"th",54),a.\u0275\u0275text(1,"Descri\xe7\xe3o"),a.\u0275\u0275elementEnd())}function ut(Ze,ze){if(1&Ze&&(a.\u0275\u0275elementStart(0,"td",56),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&Ze){const He=ze.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.description||"-")}}function It(Ze,ze){1&Ze&&a.\u0275\u0275element(0,"tr",57)}function Xe(Ze,ze){1&Ze&&a.\u0275\u0275element(0,"tr",58)}function dt(Ze,ze){if(1&Ze&&(a.\u0275\u0275elementStart(0,"table",45),a.\u0275\u0275elementContainerStart(1,46),a.\u0275\u0275template(2,$e,2,0,"th",47),a.\u0275\u0275template(3,et,2,1,"td",48),a.\u0275\u0275elementContainerEnd(),a.\u0275\u0275elementContainerStart(4,49),a.\u0275\u0275template(5,pt,2,0,"th",47),a.\u0275\u0275template(6,je,3,2,"td",48),a.\u0275\u0275elementContainerEnd(),a.\u0275\u0275elementContainerStart(7,50),a.\u0275\u0275template(8,tt,2,0,"th",47),a.\u0275\u0275template(9,ut,2,1,"td",51),a.\u0275\u0275elementContainerEnd(),a.\u0275\u0275template(10,It,1,0,"tr",52),a.\u0275\u0275template(11,Xe,1,0,"tr",53),a.\u0275\u0275elementEnd()),2&Ze){const He=a.\u0275\u0275nextContext(2);a.\u0275\u0275property("dataSource",He.selectedFunction.args),a.\u0275\u0275advance(10),a.\u0275\u0275property("matHeaderRowDef",He.argumentsTableColumns),a.\u0275\u0275advance(1),a.\u0275\u0275property("matRowDefColumns",He.argumentsTableColumns)}}function $(Ze,ze){1&Ze&&(a.\u0275\u0275elementStart(0,"span",59),a.\u0275\u0275text(1,"Dart"),a.\u0275\u0275elementEnd())}function oe(Ze,ze){1&Ze&&(a.\u0275\u0275elementStart(0,"span",59),a.\u0275\u0275text(1,"Swift"),a.\u0275\u0275elementEnd())}const L=function(){return{theme:"vs-dark",language:"javascript"}},ue=function(){return{theme:"vs-dark",language:"kotlin"}},ae=function(){return{theme:"vs-dark",language:"dart"}},fe=function(){return{theme:"vs-dark",language:"swift"}};function Fe(Ze,ze){if(1&Ze){const He=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"article"),a.\u0275\u0275elementStart(1,"header"),a.\u0275\u0275elementStart(2,"h1",9),a.\u0275\u0275elementStart(3,"span",10),a.\u0275\u0275elementStart(4,"span",11),a.\u0275\u0275text(5,"fn"),a.\u0275\u0275elementEnd(),a.\u0275\u0275text(6,"\xa0"),a.\u0275\u0275elementStart(7,"span",12),a.\u0275\u0275text(8),a.\u0275\u0275elementEnd(),a.\u0275\u0275text(9,"("),a.\u0275\u0275template(10,Pe,11,6,"span",13),a.\u0275\u0275text(11,")"),a.\u0275\u0275elementStart(12,"span",14),a.\u0275\u0275text(13,":"),a.\u0275\u0275elementEnd(),a.\u0275\u0275text(14,"\xa0"),a.\u0275\u0275elementStart(15,"u",15),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(He);const Ge=a.\u0275\u0275nextContext();return Ge.showDocumentation(Ge.selectedFunction.returns.rawType)}),a.\u0275\u0275text(16),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(17,Ne,1,0,"ng-template",null,16,a.\u0275\u0275templateRefExtractor),a.\u0275\u0275template(19,Ct,1,0,"ng-template",null,17,a.\u0275\u0275templateRefExtractor),a.\u0275\u0275element(21,"s"),a.\u0275\u0275elementStart(22,"button",18),a.\u0275\u0275listener("click",function(){return a.\u0275\u0275restoreView(He),a.\u0275\u0275nextContext().addSimpleCallTab()}),a.\u0275\u0275elementStart(23,"mat-icon"),a.\u0275\u0275text(24,"play_arrow"),a.\u0275\u0275elementEnd(),a.\u0275\u0275text(25,"\xa0EXECUTAR "),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(26,X,3,2,"section",19),a.\u0275\u0275elementStart(27,"section",9),a.\u0275\u0275elementStart(28,"h2",20),a.\u0275\u0275text(29,"Descri\xe7\xe3o"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(30,"div",21),a.\u0275\u0275template(31,le,2,1,"p",22),a.\u0275\u0275template(32,Ae,2,0,"p",23),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(33,"h2",24),a.\u0275\u0275text(34,"Par\xe2metros"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(35,"div",21),a.\u0275\u0275template(36,Ce,2,0,"p",23),a.\u0275\u0275elementStart(37,"div",25),a.\u0275\u0275template(38,dt,12,3,"table",26),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(39,"h2",27),a.\u0275\u0275text(40,"Retorno"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(41,"div"),a.\u0275\u0275elementStart(42,"p",28),a.\u0275\u0275elementStart(43,"u",29),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(He);const Ge=a.\u0275\u0275nextContext();return Ge.showDocumentation(Ge.selectedFunction.returns.rawType)}),a.\u0275\u0275text(44),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(45,"h2",30),a.\u0275\u0275text(46,"Exemplo de Requisi\xe7\xe3o"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(47,"mat-tab-group",31),a.\u0275\u0275elementStart(48,"mat-tab",32),a.\u0275\u0275element(49,"ngx-monaco-editor",33),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(50,"mat-tab",34),a.\u0275\u0275element(51,"ngx-monaco-editor",33),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(52,"mat-tab",35),a.\u0275\u0275template(53,$,2,0,"ng-template",36),a.\u0275\u0275element(54,"ngx-monaco-editor",33),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(55,"mat-tab",35),a.\u0275\u0275template(56,oe,2,0,"ng-template",36),a.\u0275\u0275element(57,"ngx-monaco-editor",33),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()}if(2&Ze){const He=a.\u0275\u0275nextContext();a.\u0275\u0275advance(8),a.\u0275\u0275textInterpolate(He.selectedFunction.name),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",He.selectedFunction.args),a.\u0275\u0275advance(5),a.\u0275\u0275property("matTooltip",He.getTooltip(He.selectedFunction.returns.rawType)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.selectedFunction.returns.type),a.\u0275\u0275advance(10),a.\u0275\u0275property("ngIf",He.selectedFunction.labels.length>0),a.\u0275\u0275advance(4),a.\u0275\u0275property("ngSwitch",!!He.selectedFunction.description),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",!0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",!1),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngSwitch",He.selectedFunction.args.length),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",0),a.\u0275\u0275advance(7),a.\u0275\u0275property("matTooltip",He.getTooltip(He.selectedFunction.returns.rawType)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.selectedFunction.returns.type),a.\u0275\u0275advance(5),a.\u0275\u0275property("options",a.\u0275\u0275pureFunction0(20,L))("ngModel",He.selectedFunction.examples.typeScript),a.\u0275\u0275advance(2),a.\u0275\u0275property("options",a.\u0275\u0275pureFunction0(21,ue))("ngModel",He.selectedFunction.examples.kotlin),a.\u0275\u0275advance(3),a.\u0275\u0275property("options",a.\u0275\u0275pureFunction0(22,ae))("ngModel",He.selectedFunction.examples.dart),a.\u0275\u0275advance(3),a.\u0275\u0275property("options",a.\u0275\u0275pureFunction0(23,fe))("ngModel",He.selectedFunction.examples.swift)}}const st=function(){return{standalone:!0}};class wt{constructor(ze,He,q){this.sdkgen=ze,this.dialog=He,this.responsive=q,this.isBelowMd=!1,this.runFunction=new l.EventEmitter,this.searchText="",this.argumentsTableColumns=["name","type","description"],this.editorOptions={theme:"vs-dark",language:"javascript"}}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(ze=>{!ze||(this.selectedFunction=void 0,this.fnTable=ze.astRoot.operations.sort((He,q)=>He.name.localeCompare(q.name)).map(He=>{var q,Ge,ft;const vt=ze.astJson.annotations[`fn.${He.name}`],Ye=this.sdkgen.buildJsonObject(He.args);return(null==vt?void 0:vt.find(x=>"hidden"===x.type))?null:{name:He.name,description:null===(q=null==vt?void 0:vt.find(x=>"description"===x.type))||void 0===q?void 0:q.value,args:He.args.map(({name:x,type:F})=>{var R,he,z;return{name:x,description:null===(z=[...null!==(R=ze.astJson.annotations[`type.${F}.${x}`])&&void 0!==R?R:[],...null!==(he=ze.astJson.annotations[`fn.${He.name}.${x}`])&&void 0!==he?he:[]].find(Be=>"description"===Be.type))||void 0===z?void 0:z.value,type:F.name,rawType:F}}),argsStr:He.args.map(x=>`${x.name}: ${x.type.name}`).join(", "),argsFields:He.args,returns:{type:He.returnType.name,rawType:He.returnType},labels:null!==(Ge=null==vt?void 0:vt.filter(x=>["rest","throws"].includes(x.type)).map(x=>{var F;return"rest"===x.type?{name:"REST",type:`${x.value.method} ${x.value.path}`}:"throws"===x.type?{name:"THROWS",type:x.value,dataType:null===(F=ze.astRoot.errors.find(R=>R.name===x.value))||void 0===F?void 0:F.dataType}:{name:"?",type:"?"}}))&&void 0!==Ge?Ge:[],throws:null===(ft=null==vt?void 0:vt.find(x=>"throws"===x.type))||void 0===ft?void 0:ft.value,examples:{typeScript:this.sdkgen.getTypeScriptCode(He.name,Ye),kotlin:this.sdkgen.getKotlinCode(He.name,He.args),dart:this.sdkgen.getDartCode(He.name,Ye),swift:this.sdkgen.getSwiftCode(He.name,Ye)}}}).filter(He=>Boolean(He)))})}ngOnDestroy(){var ze,He;null===(ze=this.state$)||void 0===ze||ze.unsubscribe(),null===(He=this.responsive$)||void 0===He||He.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(ze=>{this.isBelowMd=ze.matches})}addSimpleCallTab(){var ze;this.runFunction.emit(null===(ze=this.selectedFunction)||void 0===ze?void 0:ze.name)}getTooltip(ze){return f.getTypeDoc(ze).shortDescription}showDocumentation(ze){this.dialog.open(_.TypeDetailsComponent,{position:{right:"0",top:"0",bottom:"0"},data:{type:ze},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}T.TabHomeComponent=wt,wt.\u0275fac=function(ze){return new(ze||wt)(a.\u0275\u0275directiveInject(C.SdkgenService),a.\u0275\u0275directiveInject(w.MatDialog),a.\u0275\u0275directiveInject(D.ResponsiveService))},wt.\u0275cmp=a.\u0275\u0275defineComponent({type:wt,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(ze,He){1&ze&&(a.\u0275\u0275elementStart(0,"as-split",0),a.\u0275\u0275elementStart(1,"as-split-area",1),a.\u0275\u0275elementStart(2,"aside"),a.\u0275\u0275elementStart(3,"nav"),a.\u0275\u0275elementStart(4,"form"),a.\u0275\u0275elementStart(5,"input",2),a.\u0275\u0275listener("ngModelChange",function(Ge){return He.searchText=Ge}),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(6,"ul"),a.\u0275\u0275template(7,Me,4,5,"li",3),a.\u0275\u0275pipe(8,"appFilter"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(9,"as-split-area"),a.\u0275\u0275template(10,Fe,58,24,"article",4),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()),2&ze&&(a.\u0275\u0275property("direction",He.isBelowMd?"vertical":"horizontal"),a.\u0275\u0275advance(1),a.\u0275\u0275property("size",He.isBelowMd?130:350),a.\u0275\u0275advance(4),a.\u0275\u0275property("ngModel",He.searchText)("ngModelOptions",a.\u0275\u0275pureFunction0(9,st)),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",a.\u0275\u0275pipeBind2(8,6,He.fnTable,He.searchText)),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf",He.selectedFunction))},directives:[g.SplitComponent,g.SplitAreaDirective,E.\u0275NgNoValidate,E.NgControlStatusGroup,E.NgForm,E.DefaultValueAccessor,E.NgControlStatus,E.NgModel,M.NgForOf,M.NgIf,M.NgClass,S.MatTooltip,P.MatButton,B.MatIcon,M.NgSwitch,M.NgSwitchCase,M.NgSwitchDefault,j.MatTabGroup,j.MatTab,se.MonacoEditorComponent,j.MatTabLabel,ce.MatChipList,ce.MatChip,be.MatTable,be.MatColumnDef,be.MatHeaderCellDef,be.MatCellDef,be.MatHeaderRowDef,be.MatRowDef,be.MatHeaderCell,be.MatCell,be.MatHeaderRow,be.MatRow],pipes:[Ue.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%] s[_ngcontent-%COMP%]{flex-grow:1}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}']})},2665:(Le,T,d)=>{"use strict";var o=d(1052).default;Object.defineProperty(T,"__esModule",{value:!0}),T.TabNavComponent=void 0;const l=d(4762),f=d(3679),_=d(3979),a=l.__importStar(d(7716)),C=l.__importStar(d(6395)),w=l.__importStar(d(9344)),D=l.__importStar(d(3679)),g=l.__importStar(d(8583)),E=l.__importStar(d(2421));function M(B,j){1&B&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"mat-icon",5),a.\u0275\u0275text(2,"loop"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd())}function S(B,j){1&B&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"mat-icon"),a.\u0275\u0275text(2,"arrow_forward"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd())}class P{constructor(j,se){this.sdkgen=j,this.toastr=se,this.loading=!1,this.url=new f.FormControl("")}ngOnInit(){fetch("/ast.json").then(j=>{j.ok&&this.url.setValue(`${window.location.protocol}://${window.location.hostname}`)}).catch(()=>{})}loadUrl(j){var se=this;return o(function*(){j.preventDefault();try{se.loading=!0,/^https?:\/\//.test(se.url.value)||se.url.setValue(`https://${se.url.value}`);const ce=new URL(se.url.value);ce.pathname+=(/\/$/u.test(ce.pathname)?"":"/")+"ast.json";const be=ce.toString();console.debug("astUrl",be);const Ue=yield fetch(be).then(lt=>lt.ok?lt.json():lt);if(Ue instanceof Response)throw Ue instanceof Error?Ue:new Error(Ue.statusText);if(!Ue.errors||!Ue.functionTable||!Ue.typeTable)throw new Error("Invalid AST");for(;"undefined"==typeof monaco;)yield new Promise(lt=>setTimeout(lt,250));console.debug("astJson",Ue),se.sdkgen.state$.next({astJson:Ue,astRoot:_.jsonToAst(Ue),url:se.url.value})}catch(ce){se.toastr.error(ce instanceof Error?ce.message:JSON.stringify(ce),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{se.loading=!1}})()}}T.TabNavComponent=P,P.\u0275fac=function(j){return new(j||P)(a.\u0275\u0275directiveInject(C.SdkgenService),a.\u0275\u0275directiveInject(w.ToastrService))},P.\u0275cmp=a.\u0275\u0275defineComponent({type:P,selectors:[["app-tab-nav"]],decls:6,vars:6,consts:[["src","assets/polvinho.png"],[3,"submit"],["placeholder","Digite uma URL aqui para conectar",3,"formControl","readonly"],["type","submit",3,"disabled","ngSwitch"],[4,"ngSwitchCase"],[1,"loader"]],template:function(j,se){1&j&&(a.\u0275\u0275element(0,"img",0),a.\u0275\u0275elementStart(1,"form",1),a.\u0275\u0275listener("submit",function(be){return se.loadUrl(be)}),a.\u0275\u0275element(2,"input",2),a.\u0275\u0275elementStart(3,"button",3),a.\u0275\u0275template(4,M,3,0,"ng-container",4),a.\u0275\u0275template(5,S,3,0,"ng-container",4),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()),2&j&&(a.\u0275\u0275advance(2),a.\u0275\u0275property("formControl",se.url)("readonly",se.loading),a.\u0275\u0275advance(1),a.\u0275\u0275property("disabled",se.loading)("ngSwitch",se.loading),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",!0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",!1))},directives:[D.\u0275NgNoValidate,D.NgControlStatusGroup,D.NgForm,D.DefaultValueAccessor,D.NgControlStatus,D.FormControlDirective,g.NgSwitch,g.NgSwitchCase,E.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}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#0003}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:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.TypeDetailsComponent=void 0;const o=d(4762),l=d(2238),f=d(9435),_=o.__importStar(d(7716)),a=o.__importStar(d(2238)),C=o.__importStar(d(8583)),w=o.__importStar(d(2675)),D=o.__importStar(d(1095)),g=o.__importStar(d(2421)),E=o.__importStar(d(2789)),M=o.__importStar(d(1436));function S(ge,X){1&ge&&(_.\u0275\u0275elementStart(0,"button",6),_.\u0275\u0275elementStart(1,"mat-icon"),_.\u0275\u0275text(2,"arrow_back"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd())}function P(ge,X){if(1&ge&&(_.\u0275\u0275elementStart(0,"mat-chip",7),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&ge){const le=X.$implicit;_.\u0275\u0275property("disableRipple",!0),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(le)}}function B(ge,X){1&ge&&(_.\u0275\u0275elementStart(0,"button",8),_.\u0275\u0275elementStart(1,"mat-icon"),_.\u0275\u0275text(2,"close"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd())}function j(ge,X){1&ge&&(_.\u0275\u0275elementStart(0,"th",19),_.\u0275\u0275text(1,"Nome"),_.\u0275\u0275elementEnd())}function se(ge,X){if(1&ge&&(_.\u0275\u0275elementStart(0,"td",20),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&ge){const le=X.$implicit;_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(le.name)}}function ce(ge,X){1&ge&&(_.\u0275\u0275elementStart(0,"th",19),_.\u0275\u0275text(1,"Tipo"),_.\u0275\u0275elementEnd())}function be(ge,X){if(1&ge){const le=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"td",20),_.\u0275\u0275elementStart(1,"u",21),_.\u0275\u0275listener("click",function(){const $e=_.\u0275\u0275restoreView(le).$implicit;return _.\u0275\u0275nextContext(2).showDocumentation($e.type)}),_.\u0275\u0275text(2),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()}if(2&ge){const le=X.$implicit,Ae=_.\u0275\u0275nextContext(2);_.\u0275\u0275advance(1),_.\u0275\u0275property("matTooltip",Ae.getTooltip(le.type)),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(le.type.name)}}function Ue(ge,X){1&ge&&(_.\u0275\u0275elementStart(0,"th",19),_.\u0275\u0275text(1,"Descri\xe7\xe3o"),_.\u0275\u0275elementEnd())}function lt(ge,X){if(1&ge&&(_.\u0275\u0275elementStart(0,"td",22),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&ge){const le=X.$implicit;_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(le.description||"-")}}function Je(ge,X){1&ge&&_.\u0275\u0275element(0,"tr",23)}function Me(ge,X){1&ge&&_.\u0275\u0275element(0,"tr",24)}const xe=function(){return[]};function Pe(ge,X){if(1&ge&&(_.\u0275\u0275elementStart(0,"section"),_.\u0275\u0275elementStart(1,"div",9),_.\u0275\u0275elementStart(2,"table",10),_.\u0275\u0275elementContainerStart(3,11),_.\u0275\u0275template(4,j,2,0,"th",12),_.\u0275\u0275template(5,se,2,1,"td",13),_.\u0275\u0275elementContainerEnd(),_.\u0275\u0275elementContainerStart(6,14),_.\u0275\u0275template(7,ce,2,0,"th",12),_.\u0275\u0275template(8,be,3,2,"td",13),_.\u0275\u0275elementContainerEnd(),_.\u0275\u0275elementContainerStart(9,15),_.\u0275\u0275template(10,Ue,2,0,"th",12),_.\u0275\u0275template(11,lt,2,1,"td",16),_.\u0275\u0275elementContainerEnd(),_.\u0275\u0275template(12,Je,1,0,"tr",17),_.\u0275\u0275template(13,Me,1,0,"tr",18),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()),2&ge){const le=_.\u0275\u0275nextContext();let Ae;_.\u0275\u0275advance(2),_.\u0275\u0275property("dataSource",null!==(Ae=null==le.typeDoc?null:le.typeDoc.structFields)&&void 0!==Ae?Ae:_.\u0275\u0275pureFunction0(3,xe)),_.\u0275\u0275advance(10),_.\u0275\u0275property("matHeaderRowDef",le.argumentsTableColumns),_.\u0275\u0275advance(1),_.\u0275\u0275property("matRowDefColumns",le.argumentsTableColumns)}}function Ne(ge,X){if(1&ge&&(_.\u0275\u0275elementStart(0,"li"),_.\u0275\u0275elementStart(1,"code",1),_.\u0275\u0275text(2),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()),2&ge){const le=X.$implicit;_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(le)}}function Ct(ge,X){if(1&ge&&(_.\u0275\u0275elementStart(0,"section"),_.\u0275\u0275elementStart(1,"h3"),_.\u0275\u0275text(2),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(3,"ul"),_.\u0275\u0275template(4,Ne,3,1,"li",25),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()),2&ge){const le=_.\u0275\u0275nextContext();_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(null!=le.typeDoc&&le.typeDoc.isEnum?"Valores":"Exemplos"),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngForOf",null==le.typeDoc?null:le.typeDoc.examples)}}class te{constructor(X,le,Ae){this.dialogRef=X,this.data=le,this.dialog=Ae,this.labels=[],this.argumentsTableColumns=["name","type","description"]}ngOnInit(){this.labels=f.getTypeLabels(this.data.type),this.typeDoc=f.getTypeDoc(this.data.type)}getTooltip(X){return f.getTypeDoc(X).shortDescription}showDocumentation(X){this.dialog.open(te,{position:{right:"0"},data:{type:X,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}T.TypeDetailsComponent=te,te.\u0275fac=function(X){return new(X||te)(_.\u0275\u0275directiveInject(a.MatDialogRef),_.\u0275\u0275directiveInject(l.MAT_DIALOG_DATA),_.\u0275\u0275directiveInject(a.MatDialog))},te.\u0275cmp=_.\u0275\u0275defineComponent({type:te,selectors:[["app-type-details"]],decls:11,vars:8,consts:[["class","back-button","mat-icon-button","","mat-dialog-close","",4,"ngIf"],[1,"mono"],[3,"selectable"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["class","close-button","mat-icon-button","","mat-dialog-close","",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","mat-dialog-close","",1,"back-button"],["color","primary",3,"disableRipple"],["mat-icon-button","","mat-dialog-close","",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"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],[3,"matTooltip","click"],["mat-cell",""],["mat-header-row",""],["mat-row",""],[4,"ngFor","ngForOf"]],template:function(X,le){1&X&&(_.\u0275\u0275elementStart(0,"h1"),_.\u0275\u0275template(1,S,3,0,"button",0),_.\u0275\u0275elementStart(2,"span",1),_.\u0275\u0275text(3),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(4,"mat-chip-list",2),_.\u0275\u0275template(5,P,2,2,"mat-chip",3),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(6,B,3,0,"button",4),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(7,"p"),_.\u0275\u0275text(8),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(9,Pe,14,4,"section",5),_.\u0275\u0275template(10,Ct,5,2,"section",5)),2&X&&(_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",le.data.subdialog),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(le.data.type.name),_.\u0275\u0275advance(1),_.\u0275\u0275property("selectable",!1),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngForOf",le.labels),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",!le.data.subdialog),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(null==le.typeDoc?null:le.typeDoc.longDescription),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",(null==le.typeDoc?null:le.typeDoc.isStruct)&&(null==le.typeDoc?null:le.typeDoc.structFields)),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",null==le.typeDoc||null==le.typeDoc.examples?null:le.typeDoc.examples.length))},directives:[C.NgIf,w.MatChipList,C.NgForOf,D.MatButton,a.MatDialogClose,g.MatIcon,w.MatChip,E.MatTable,E.MatColumnDef,E.MatHeaderCellDef,E.MatCellDef,E.MatHeaderRowDef,E.MatRowDef,E.MatHeaderCell,E.MatCell,M.MatTooltip,E.MatHeaderRow,E.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:(Le,T)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.unwrap=T.wrapper=void 0,T.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',T.unwrap="\n XMLHttpRequest.prototype.open = window.___originalXmlHttpRequestOpen;\n console.log = window.___originalConsoleLog;\n console.error = window.___originalConsoleError;\n"},2340:(Le,T)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.environment=void 0,T.environment={production:!0}},4431:(Le,T,d)=>{"use strict";const f=d(4762).__importStar(d(9075)),_=d(7716),a=d(6747);d(2340).environment.production&&_.enableProdMode(),f.platformBrowser().bootstrapModule(a.AppModule).catch(w=>console.error(w))},9043:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateRxMethod=T.generateMethodSignature=T.generateErrorClass=T.generateClass=T.generateErrorType=T.generateEnum=T.generateJsonRepresentation=T.mangle=T.generateSwiftTypeName=void 0;const o=d(3979);function l(P){switch(P.constructor){case o.IntPrimitiveType:return"Int";case o.UIntPrimitiveType:return"UInt";case o.MoneyPrimitiveType:return"Int64";case o.FloatPrimitiveType:return"Double";case o.BigIntPrimitiveType:return"Decimal";case o.DatePrimitiveType:case o.DateTimePrimitiveType:return"Date";case o.BoolPrimitiveType:return"Bool";case o.BytesPrimitiveType:return"Data";case o.StringPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.UrlPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:return"String";case o.VoidPrimitiveType:return"Void";case o.JsonPrimitiveType:return"AnyCodable";case o.OptionalType:return`${l(P.base)}?`;case o.ArrayType:return`[${l(P.base)}]`;case o.StructType:case o.EnumType:return`API.${P.name}`;case o.TypeReference:return l(P.type);default:throw new Error(`BUG: generateSwiftTypeName with ${P.constructor.name}`)}}function f(P){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(P)?`_${P}`:P}function _(P,B){switch(P.constructor){case o.StringPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.MoneyPrimitiveType:case o.FloatPrimitiveType:case o.BoolPrimitiveType:return`${B}`;case o.OptionalType:return`${B} == nil ? nil : ${_(P.base,`${B}!`)}`;case o.DatePrimitiveType:return`SdkgenHelper.encodeDate(date: ${B})`;case o.DateTimePrimitiveType:return`SdkgenHelper.encodeDateTime(date: ${B})`;case o.EnumType:return`${B}.rawValue`;case o.TypeReference:return`${_(P.type,`${B}`)}`;case o.StructType:return`${B}.toJSON()`;case o.ArrayType:return`${B}.map({ return ${_(P.base,"$0")} })`;case o.JsonPrimitiveType:return`try? ${B}.toJson()`;case o.VoidPrimitiveType:return"nil";case o.BytesPrimitiveType:return`${B}.base64EncodedString()`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${P.constructor.name}`)}}T.generateSwiftTypeName=l,T.mangle=f,T.generateJsonRepresentation=_,T.generateEnum=function(P){let B=` public enum ${P.name}: String, Codable {\n`;return B+=P.values.map(j=>` case ${f(j.value)} = "${j.value}"`).join("\n"),B+="\n }\n",B},T.generateErrorType=function(P){let B=" public enum ErrorType: String, Codable {\n";return B+=P.map(j=>` case ${f(j)} = "${j}"`).join("\n"),B+="\n }\n",B},T.generateClass=function(P){return` public struct ${P.name}: Codable {\n${P.fields.map(B=>` var ${f(B.name)}: ${l(B.type)}`).join("\n")}\n\n${function(P){let B=" init(";return B+=P.fields.map(j=>`${f(j.name)}: ${l(j.type)}`).join(", "),B+=") {\n",B+=P.fields.map(j=>` self.${f(j.name)} = ${f(j.name)}`).join("\n"),B+="\n }\n",B}(P)}\n${function(P){let B=" func toJSON() -> [String: Any] {\n";return B+=" var json = [String: Any]()\n",B+=P.fields.map(j=>` json["${f(j.name)}"] = ${_(j.type,j.name)}`).join("\n"),B+="\n return json",B+="\n }\n",B}(P)}\n }\n`},T.generateErrorClass=function(){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"},T.generateMethodSignature=function(P){const B=P.args.map(j=>`${f(j.name)}: ${l(j.type)}`).concat(["timeoutSeconds: Double?",`callback: ((_ result: ${P.returnType instanceof o.VoidPrimitiveType?"API.Result<API.NoReply>":`API.Result<${l(P.returnType)}>`}) -> Void)?`]);return` func ${f(P.name)}(${B.join(", ")})`},T.generateRxMethod=function(P){const B=P.args.map(se=>`${f(se.name)}: ${l(se.type)}`).concat(["timeoutSeconds: Double? = nil"]);let j=` static func ${f(P.name)}(${B.join(", ")}) -> ${P.returnType instanceof o.VoidPrimitiveType?"Observable<API.Result<API.NoReply>>":`Observable<API.Result<${l(P.returnType)}>>`} {\n`;return j+=" return Observable.create { observer -> Disposable in\n",j+=` API.calls.${f(P.name)}(${P.args.map(se=>`${f(se.name)}: ${f(se.name)}`).concat(["timeoutSeconds: timeoutSeconds"]).join(", ")}) { result in \n`,j+=" observer.on(.next(result))\n",j+=" observer.on(.completed)\n",j+=" }\n",j+=" return Disposables.create()\n",j+=" }\n",j+=" }\n",j}},1670:function(Le,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(f,_,a,C){void 0===C&&(C=a),Object.defineProperty(f,C,{enumerable:!0,get:function(){return _[a]}})}:function(f,_,a,C){void 0===C&&(C=a),f[C]=_[a]}),l=this&&this.__exportStar||function(f,_){for(var a in f)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,f,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(1966),T)},1966:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateSwiftClientSource=void 0;const o=d(3979),l=d(9043);T.generateSwiftClientSource=function(_,a){let C="import Foundation\nimport SdkgenRuntime\n";C+=a?"import RxSwift\nimport RxCocoa\n\n":"\n",C+="protocol APICallsProtocol {\n",C+=_.operations.filter(g=>g.annotations.every(E=>!(E instanceof o.HiddenAnnotation))).map(g=>`${(0,l.generateMethodSignature)(g)}`).join("\n"),C+="\n}\n\n",C+='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 _.enumTypes)C+=(0,l.generateEnum)(g),C+="\n";for(const g of _.structTypes)C+=(0,l.generateClass)(g),C+="\n";const w=[],D=new o.ErrorNode("Connection",new o.VoidPrimitiveType);w.push(D.name);for(const g of _.errors)w.push(g.name);return w.length>0&&(C+=(0,l.generateErrorType)(w),C+="\n"),C+=(0,l.generateErrorClass)(),C+="\n",C+=" public enum Result<T> {\n case success(T)\n case failure(Failure)\n }\n\n",C+=" public class Calls: SdkgenHttpClient, APICallsProtocol {\n\n override init(baseUrl: String) {\n super.init(baseUrl: baseUrl)\n }\n\n",C+=_.operations.filter(g=>g.annotations.every(E=>!(E instanceof o.HiddenAnnotation))).map(g=>{let E="";return E+=` ${(0,l.generateMethodSignature)(g)} {\n`,g.args.length>0?(E+=" var jsonArgs = [String: Any]()\n",E+=g.args.map(M=>` jsonArgs["${(0,l.mangle)(M.name)}"] = ${(0,l.generateJsonRepresentation)(M.type,(0,l.mangle)(M.name))}`).join("\n")):E+=" let jsonArgs = [String: Any]()",E+="\n\n",E+=` request("${g.name}", jsonArgs, timeoutSeconds, completion: { (value: ${g.returnType instanceof o.VoidPrimitiveType?"API.NoReply":(0,l.generateSwiftTypeName)(g.returnType)}) in\n`,E+=" callback?(API.Result.success(value))\n",E+=" }, onError: { error in\n",E+=" callback?(API.Result.failure(API.Failure(message: error.message, code: error.code, type: error.type)))\n",E+=" })",E+="\n }\n",E}).join("\n"),C+=" }\n",C+="}\n",a&&(C+="\n",C+="extension API: ReactiveCompatible {}\n\n",C+="extension Reactive where Base: API {\n",C+=_.operations.filter(g=>g.annotations.every(E=>!(E instanceof o.HiddenAnnotation))).map(g=>`${(0,l.generateRxMethod)(g)}`).join("\n"),C+="}\n"),C}},7306:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateBrowserClientSource=void 0;const o=d(3979),l=d(760);T.generateBrowserClientSource=function(_){let a="";a+=`/* eslint-disable */\nimport { SdkgenError${_.errors.some(w=>!(w.dataType instanceof o.VoidPrimitiveType))?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/browser-runtime";\n\n`;for(const w of _.enumTypes)a+=(0,l.generateTypescriptEnum)(w),a+="\n";for(const w of _.structTypes)a+=(0,l.generateTypescriptInterface)(w,!0),a+="\n";for(const w of _.errors)a+=(0,l.generateTypescriptErrorClass)(w,!0),a+="\n";return a+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${_.operations.filter(w=>w.annotations.every(D=>!(D instanceof o.HiddenAnnotation))).map(w=>`\n ${w.name}(args${0===w.args.length?"?":""}: {${w.args.map(D=>`${D.name}${D.type.name.endsWith("?")?"?":""}: ${(0,l.generateTypescriptTypeName)(D.type,!0)}`).join(", ")}}): Promise<${(0,l.generateTypescriptTypeName)(w.returnType,!0)}> { return this.makeRequest("${w.name}", args || {}); }`).join("")}\n}\n\n`,a+=`const errClasses = {\n${_.errors.map(w=>` ${w.name}`).join(",\n")}\n};\n\n`,a+=`const astJson = ${JSON.stringify((0,o.astToJson)(_),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,a}},760:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.clearForLogging=T.generateTypescriptErrorClass=T.generateTypescriptEnum=T.generateTypescriptInterface=T.generateTypescriptTypeName=void 0;const o=d(3979);function l(w,D){switch(w.constructor){case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.MoneyPrimitiveType:case o.FloatPrimitiveType:return"number";case o.BigIntPrimitiveType:return"bigint";case o.DatePrimitiveType:case o.DateTimePrimitiveType:return"Date";case o.BoolPrimitiveType:return"boolean";case o.BytesPrimitiveType:return D?"ArrayBuffer":"Buffer";case o.StringPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:return"string";case o.VoidPrimitiveType:return"void";case o.JsonPrimitiveType:return"any";case o.OptionalType:return`${l(w.base,D)} | null`;case o.ArrayType:{const{base:g}=w,E=l(g,D);return g instanceof o.OptionalType?`(${E})[]`:`${E}[]`}case o.StructType:case o.EnumType:return w.name;case o.TypeReference:return l(w.type,D);default:throw new Error(`BUG: generateTypescriptTypeName with ${w.constructor.name}`)}}T.generateTypescriptTypeName=l,T.generateTypescriptInterface=function(w,D){return`export interface ${w.name} {\n${w.fields.map(g=>` ${g.name}: ${l(g.type,D)}`).join("\n")}\n}\n`},T.generateTypescriptEnum=function(w){return`export type ${w.name} = ${w.values.map(D=>`"${D.value}"`).join(" | ")};\n`},T.generateTypescriptErrorClass=function(w,D){return`export class ${w.name} extends ${w.dataType instanceof o.VoidPrimitiveType?"SdkgenError":`SdkgenErrorWithData<${l(w.dataType,D)}>`} {}\n`},T.clearForLogging=function C(w,D){switch(D.constructor){case o.TypeReference:return C(w,D.type);case o.OptionalType:{const g=C(w,D.base);return g?`if (${w} !== null && ${w} !== undefined) { ${g} }`:""}case o.ArrayType:{const g=C("el",D.base);return g?`for (const el of ${w}) { ${g} }`:""}case o.StructType:{const g=[];for(const E of D.fields)if(E.secret)g.push(`${w}.${E.name} = "<secret>";`);else{const M=C(`${w}.${E.name}`,E.type);M&&g.push(M)}return g.join(" ")}default:return""}}},282:function(Le,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(f,_,a,C){void 0===C&&(C=a),Object.defineProperty(f,C,{enumerable:!0,get:function(){return _[a]}})}:function(f,_,a,C){void 0===C&&(C=a),f[C]=_[a]}),l=this&&this.__exportStar||function(f,_){for(var a in f)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,f,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(7306),T),l(d(6283),T),l(d(1918),T),l(d(9847),T)},6283:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateTypescriptInterfaces=void 0;const o=d(760);T.generateTypescriptInterfaces=function(f){let _="";for(const a of f.enumTypes)_+=(0,o.generateTypescriptEnum)(a);_+="\n";for(const a of f.structTypes)_+=(0,o.generateTypescriptInterface)(a,!1),_+="\n";return _}},1918:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateNodeClientSource=void 0;const o=d(3979),l=d(760);T.generateNodeClientSource=function(_){let a="";const C=_.errors.some(D=>!(D.dataType instanceof o.VoidPrimitiveType));a+=`/* eslint-disable */\nimport { Context, Fatal${_.errors.filter(D=>"Fatal"!==D.name).some(D=>D.dataType instanceof o.VoidPrimitiveType)?", SdkgenError":""}${C?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/node-runtime";\nimport { PartialDeep } from "type-fest";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const D of _.enumTypes)a+=(0,l.generateTypescriptEnum)(D),a+="\n";for(const D of _.structTypes)a+=(0,l.generateTypescriptInterface)(D,!1),a+="\n";for(const D of _.errors)"Fatal"!==D.name&&(a+=(0,l.generateTypescriptErrorClass)(D,!1),a+="\n");return a+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${_.operations.filter(D=>D.annotations.every(g=>!(g instanceof o.HiddenAnnotation))).map(D=>`\n ${D.name}(ctx: PartialDeep<Context> | null, args: {${D.args.map(g=>`${g.name}${g.type.name.endsWith("?")?"?":""}: ${(0,l.generateTypescriptTypeName)(g.type,!1)}`).join(", ")}}): Promise<${(0,l.generateTypescriptTypeName)(D.returnType,!1)}> { return this.makeRequest(ctx, "${D.name}", args); }`).join("")}\n}\n\n`,a+=`const errClasses = {\n${_.errors.map(D=>` ${D.name}`).join(",\n")}\n};\n\n`,a+=`const astJson = ${JSON.stringify((0,o.astToJson)(_),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,a}},9847:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateNodeServerSource=void 0;const o=d(3979),l=d(760);T.generateNodeServerSource=function(_){let a="";const C=_.errors.some(D=>!(D.dataType instanceof o.VoidPrimitiveType));a+=`/* eslint-disable */\nimport { BaseApiConfig, Context, Fatal${_.errors.filter(D=>"Fatal"!==D.name).some(D=>D.dataType instanceof o.VoidPrimitiveType)?", SdkgenError":""}${C?", SdkgenErrorWithData":""} } from "@sdkgen/node-runtime";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const D of _.enumTypes)a+=(0,l.generateTypescriptEnum)(D),a+="\n";for(const D of _.structTypes)a+=(0,l.generateTypescriptInterface)(D,!1),a+="\n";for(const D of _.errors)"Fatal"!==D.name&&(a+=(0,l.generateTypescriptErrorClass)(D,!1),a+="\n");return a+=`export class ApiConfig<ExtraContextT> extends BaseApiConfig<ExtraContextT> {\n fn!: {${_.operations.map(D=>`\n ${D.name}: (args: {${D.args.map(g=>`${g.name}: ${(0,l.generateTypescriptTypeName)(g.type,!1)}`).join(", ")}}) => Promise<${(0,l.generateTypescriptTypeName)(D.returnType,!1)}>`).join("")}\n }\n\n astJson = ${JSON.stringify((0,o.astToJson)(_),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:").replace(/\n/gu,"\n ")} as const\n}\n\nexport const api = new ApiConfig<{}>();\n`,a}},1052:Le=>{function T(o,l,f,_,a,C,w){try{var D=o[C](w),g=D.value}catch(E){return void f(E)}D.done?l(g):Promise.resolve(g).then(_,a)}Le.exports=function(o){return function(){var l=this,f=arguments;return new Promise(function(_,a){var C=o.apply(l,f);function w(g){T(C,_,a,w,D,"next",g)}function D(g){T(C,_,a,w,D,"throw",g)}w(void 0)})}},Le.exports.default=Le.exports,Le.exports.__esModule=!0},4762:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{__extends:()=>l,__assign:()=>f,__rest:()=>_,__decorate:()=>a,__param:()=>C,__metadata:()=>w,__awaiter:()=>D,__generator:()=>g,__createBinding:()=>E,__exportStar:()=>M,__values:()=>S,__read:()=>P,__spread:()=>B,__spreadArrays:()=>j,__spreadArray:()=>se,__await:()=>ce,__asyncGenerator:()=>be,__asyncDelegator:()=>Ue,__asyncValues:()=>lt,__makeTemplateObject:()=>Je,__importStar:()=>xe,__importDefault:()=>Pe,__classPrivateFieldGet:()=>Ne,__classPrivateFieldSet:()=>Ct});var o=function(te,ge){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,le){X.__proto__=le}||function(X,le){for(var Ae in le)Object.prototype.hasOwnProperty.call(le,Ae)&&(X[Ae]=le[Ae])})(te,ge)};function l(te,ge){if("function"!=typeof ge&&null!==ge)throw new TypeError("Class extends value "+String(ge)+" is not a constructor or null");function X(){this.constructor=te}o(te,ge),te.prototype=null===ge?Object.create(ge):(X.prototype=ge.prototype,new X)}var f=function(){return(f=Object.assign||function(ge){for(var X,le=1,Ae=arguments.length;le<Ae;le++)for(var Ce in X=arguments[le])Object.prototype.hasOwnProperty.call(X,Ce)&&(ge[Ce]=X[Ce]);return ge}).apply(this,arguments)};function _(te,ge){var X={};for(var le in te)Object.prototype.hasOwnProperty.call(te,le)&&ge.indexOf(le)<0&&(X[le]=te[le]);if(null!=te&&"function"==typeof Object.getOwnPropertySymbols){var Ae=0;for(le=Object.getOwnPropertySymbols(te);Ae<le.length;Ae++)ge.indexOf(le[Ae])<0&&Object.prototype.propertyIsEnumerable.call(te,le[Ae])&&(X[le[Ae]]=te[le[Ae]])}return X}function a(te,ge,X,le){var $e,Ae=arguments.length,Ce=Ae<3?ge:null===le?le=Object.getOwnPropertyDescriptor(ge,X):le;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ce=Reflect.decorate(te,ge,X,le);else for(var et=te.length-1;et>=0;et--)($e=te[et])&&(Ce=(Ae<3?$e(Ce):Ae>3?$e(ge,X,Ce):$e(ge,X))||Ce);return Ae>3&&Ce&&Object.defineProperty(ge,X,Ce),Ce}function C(te,ge){return function(X,le){ge(X,le,te)}}function w(te,ge){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(te,ge)}function D(te,ge,X,le){return new(X||(X=Promise))(function(Ce,$e){function et(tt){try{je(le.next(tt))}catch(ut){$e(ut)}}function pt(tt){try{je(le.throw(tt))}catch(ut){$e(ut)}}function je(tt){tt.done?Ce(tt.value):function(Ce){return Ce instanceof X?Ce:new X(function($e){$e(Ce)})}(tt.value).then(et,pt)}je((le=le.apply(te,ge||[])).next())})}function g(te,ge){var le,Ae,Ce,$e,X={label:0,sent:function(){if(1&Ce[0])throw Ce[1];return Ce[1]},trys:[],ops:[]};return $e={next:et(0),throw:et(1),return:et(2)},"function"==typeof Symbol&&($e[Symbol.iterator]=function(){return this}),$e;function et(je){return function(tt){return function(je){if(le)throw new TypeError("Generator is already executing.");for(;X;)try{if(le=1,Ae&&(Ce=2&je[0]?Ae.return:je[0]?Ae.throw||((Ce=Ae.return)&&Ce.call(Ae),0):Ae.next)&&!(Ce=Ce.call(Ae,je[1])).done)return Ce;switch(Ae=0,Ce&&(je=[2&je[0],Ce.value]),je[0]){case 0:case 1:Ce=je;break;case 4:return X.label++,{value:je[1],done:!1};case 5:X.label++,Ae=je[1],je=[0];continue;case 7:je=X.ops.pop(),X.trys.pop();continue;default:if(!(Ce=(Ce=X.trys).length>0&&Ce[Ce.length-1])&&(6===je[0]||2===je[0])){X=0;continue}if(3===je[0]&&(!Ce||je[1]>Ce[0]&&je[1]<Ce[3])){X.label=je[1];break}if(6===je[0]&&X.label<Ce[1]){X.label=Ce[1],Ce=je;break}if(Ce&&X.label<Ce[2]){X.label=Ce[2],X.ops.push(je);break}Ce[2]&&X.ops.pop(),X.trys.pop();continue}je=ge.call(te,X)}catch(tt){je=[6,tt],Ae=0}finally{le=Ce=0}if(5&je[0])throw je[1];return{value:je[0]?je[1]:void 0,done:!0}}([je,tt])}}}var E=Object.create?function(te,ge,X,le){void 0===le&&(le=X),Object.defineProperty(te,le,{enumerable:!0,get:function(){return ge[X]}})}:function(te,ge,X,le){void 0===le&&(le=X),te[le]=ge[X]};function M(te,ge){for(var X in te)"default"!==X&&!Object.prototype.hasOwnProperty.call(ge,X)&&E(ge,te,X)}function S(te){var ge="function"==typeof Symbol&&Symbol.iterator,X=ge&&te[ge],le=0;if(X)return X.call(te);if(te&&"number"==typeof te.length)return{next:function(){return te&&le>=te.length&&(te=void 0),{value:te&&te[le++],done:!te}}};throw new TypeError(ge?"Object is not iterable.":"Symbol.iterator is not defined.")}function P(te,ge){var X="function"==typeof Symbol&&te[Symbol.iterator];if(!X)return te;var Ae,$e,le=X.call(te),Ce=[];try{for(;(void 0===ge||ge-- >0)&&!(Ae=le.next()).done;)Ce.push(Ae.value)}catch(et){$e={error:et}}finally{try{Ae&&!Ae.done&&(X=le.return)&&X.call(le)}finally{if($e)throw $e.error}}return Ce}function B(){for(var te=[],ge=0;ge<arguments.length;ge++)te=te.concat(P(arguments[ge]));return te}function j(){for(var te=0,ge=0,X=arguments.length;ge<X;ge++)te+=arguments[ge].length;var le=Array(te),Ae=0;for(ge=0;ge<X;ge++)for(var Ce=arguments[ge],$e=0,et=Ce.length;$e<et;$e++,Ae++)le[Ae]=Ce[$e];return le}function se(te,ge,X){if(X||2===arguments.length)for(var Ce,le=0,Ae=ge.length;le<Ae;le++)(Ce||!(le in ge))&&(Ce||(Ce=Array.prototype.slice.call(ge,0,le)),Ce[le]=ge[le]);return te.concat(Ce||Array.prototype.slice.call(ge))}function ce(te){return this instanceof ce?(this.v=te,this):new ce(te)}function be(te,ge,X){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ae,le=X.apply(te,ge||[]),Ce=[];return Ae={},$e("next"),$e("throw"),$e("return"),Ae[Symbol.asyncIterator]=function(){return this},Ae;function $e(It){le[It]&&(Ae[It]=function(Xe){return new Promise(function(dt,$){Ce.push([It,Xe,dt,$])>1||et(It,Xe)})})}function et(It,Xe){try{!function(It){It.value instanceof ce?Promise.resolve(It.value.v).then(je,tt):ut(Ce[0][2],It)}(le[It](Xe))}catch(dt){ut(Ce[0][3],dt)}}function je(It){et("next",It)}function tt(It){et("throw",It)}function ut(It,Xe){It(Xe),Ce.shift(),Ce.length&&et(Ce[0][0],Ce[0][1])}}function Ue(te){var ge,X;return ge={},le("next"),le("throw",function(Ae){throw Ae}),le("return"),ge[Symbol.iterator]=function(){return this},ge;function le(Ae,Ce){ge[Ae]=te[Ae]?function($e){return(X=!X)?{value:ce(te[Ae]($e)),done:"return"===Ae}:Ce?Ce($e):$e}:Ce}}function lt(te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var X,ge=te[Symbol.asyncIterator];return ge?ge.call(te):(te=S(te),X={},le("next"),le("throw"),le("return"),X[Symbol.asyncIterator]=function(){return this},X);function le(Ce){X[Ce]=te[Ce]&&function($e){return new Promise(function(et,pt){!function(Ce,$e,et,pt){Promise.resolve(pt).then(function(je){Ce({value:je,done:et})},$e)}(et,pt,($e=te[Ce]($e)).done,$e.value)})}}}function Je(te,ge){return Object.defineProperty?Object.defineProperty(te,"raw",{value:ge}):te.raw=ge,te}var Me=Object.create?function(te,ge){Object.defineProperty(te,"default",{enumerable:!0,value:ge})}:function(te,ge){te.default=ge};function xe(te){if(te&&te.__esModule)return te;var ge={};if(null!=te)for(var X in te)"default"!==X&&Object.prototype.hasOwnProperty.call(te,X)&&E(ge,te,X);return Me(ge,te),ge}function Pe(te){return te&&te.__esModule?te:{default:te}}function Ne(te,ge,X,le){if("a"===X&&!le)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof ge?te!==ge||!le:!ge.has(te))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===X?le:"a"===X?le.call(te):le?le.value:ge.get(te)}function Ct(te,ge,X,le,Ae){if("m"===le)throw new TypeError("Private method is not writable");if("a"===le&&!Ae)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof ge?te!==ge||!Ae:!ge.has(te))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===le?Ae.call(te,X):Ae?Ae.value=X:ge.set(te,X),X}},1430:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{ANGULAR_SPLIT_DEFAULT_OPTIONS:()=>xe,AngularSplitModule:()=>Ct,SplitAreaDirective:()=>Ne,SplitComponent:()=>Pe});var o=d(7716),l=d(8583),f=d(9765),_=d(9897),a=d(4395);const C=["gutterEls"];function w(te,ge){if(1&te){const X=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",2,3),o.\u0275\u0275listener("mousedown",function(Ae){o.\u0275\u0275restoreView(X);const Ce=o.\u0275\u0275nextContext().index;return o.\u0275\u0275nextContext().startDragging(Ae,2*Ce+1,Ce+1)})("touchstart",function(Ae){o.\u0275\u0275restoreView(X);const Ce=o.\u0275\u0275nextContext().index;return o.\u0275\u0275nextContext().startDragging(Ae,2*Ce+1,Ce+1)})("mouseup",function(Ae){o.\u0275\u0275restoreView(X);const Ce=o.\u0275\u0275nextContext().index;return o.\u0275\u0275nextContext().clickGutter(Ae,Ce+1)})("touchend",function(Ae){o.\u0275\u0275restoreView(X);const Ce=o.\u0275\u0275nextContext().index;return o.\u0275\u0275nextContext().clickGutter(Ae,Ce+1)}),o.\u0275\u0275element(2,"div",4),o.\u0275\u0275elementEnd()}if(2&te){const X=o.\u0275\u0275nextContext().index,le=o.\u0275\u0275nextContext();o.\u0275\u0275styleProp("flex-basis",le.gutterSize,"px")("order",2*X+1)}}function D(te,ge){1&te&&o.\u0275\u0275template(0,w,3,4,"div",1),2&te&&o.\u0275\u0275property("ngIf",!1===ge.last)}const g=["*"];function E(te){return void 0!==te.changedTouches&&te.changedTouches.length>0?{x:te.changedTouches[0].clientX,y:te.changedTouches[0].clientY}:void 0!==te.clientX&&void 0!==te.clientY?{x:te.clientX,y:te.clientY}:null}function M(te,ge,X){return Math.abs(te.x-ge.x)<=X&&Math.abs(te.y-ge.y)<=X}function S(te,ge){const X=te.nativeElement.getBoundingClientRect();return"horizontal"===ge?X.width:X.height}function P(te){return"boolean"==typeof te?te:"false"!==te}function B(te,ge){return null==te?ge:(te=Number(te),!isNaN(te)&&te>=0?te:ge)}function j(te,ge){if("percent"===te){const X=ge.reduce((le,Ae)=>null!==Ae?le+Ae:le,0);return ge.every(le=>null!==le)&&X>99.9&&X<100.1}if("pixel"===te)return 1===ge.filter(X=>null===X).length}function se(te){return null===te.size?null:!0===te.component.lockSize?te.size:null===te.component.minSize?null:te.component.minSize>te.size?te.size:te.component.minSize}function ce(te){return null===te.size?null:!0===te.component.lockSize?te.size:null===te.component.maxSize?null:te.component.maxSize<te.size?te.size:te.component.maxSize}function be(te,ge,X,le){return ge.reduce((Ae,Ce)=>{const $e=function(te,ge,X,le){return 0===X?{areaSnapshot:ge,pixelAbsorb:0,percentAfterAbsorption:ge.sizePercentAtStart,pixelRemain:0}:0===ge.sizePixelAtStart&&X<0?{areaSnapshot:ge,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:X}:"percent"===te?function(te,ge,X){const Ae=(te.sizePixelAtStart+ge)/X*100;if(ge>0){if(null!==te.area.maxSize&&Ae>te.area.maxSize){const Ce=te.area.maxSize/100*X;return{areaSnapshot:te,pixelAbsorb:Ce,percentAfterAbsorption:te.area.maxSize,pixelRemain:te.sizePixelAtStart+ge-Ce}}return{areaSnapshot:te,pixelAbsorb:ge,percentAfterAbsorption:Ae>100?100:Ae,pixelRemain:0}}if(ge<0){if(null!==te.area.minSize&&Ae<te.area.minSize){const Ce=te.area.minSize/100*X;return{areaSnapshot:te,pixelAbsorb:Ce,percentAfterAbsorption:te.area.minSize,pixelRemain:te.sizePixelAtStart+ge-Ce}}return Ae<0?{areaSnapshot:te,pixelAbsorb:-te.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:ge+te.sizePixelAtStart}:{areaSnapshot:te,pixelAbsorb:ge,percentAfterAbsorption:Ae,pixelRemain:0}}}(ge,X,le):"pixel"===te?function(te,ge,X){const le=te.sizePixelAtStart+ge;return ge>0?null!==te.area.maxSize&&le>te.area.maxSize?{areaSnapshot:te,pixelAbsorb:te.area.maxSize-te.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:le-te.area.maxSize}:{areaSnapshot:te,pixelAbsorb:ge,percentAfterAbsorption:-1,pixelRemain:0}:ge<0?null!==te.area.minSize&&le<te.area.minSize?{areaSnapshot:te,pixelAbsorb:te.area.minSize+ge-le,percentAfterAbsorption:-1,pixelRemain:le-te.area.minSize}:le<0?{areaSnapshot:te,pixelAbsorb:-te.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:ge+te.sizePixelAtStart}:{areaSnapshot:te,pixelAbsorb:ge,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(ge,X):void 0}(te,Ce,Ae.remain,le);return Ae.list.push($e),Ae.remain=$e.pixelRemain,Ae},{remain:X,list:[]})}function Me(te,ge){"percent"===te?ge.areaSnapshot.area.size=ge.percentAfterAbsorption:"pixel"===te&&null!==ge.areaSnapshot.area.size&&(ge.areaSnapshot.area.size=ge.areaSnapshot.sizePixelAtStart+ge.pixelAbsorb)}const xe=new o.InjectionToken("angular-split-global-config");let Pe=(()=>{class te{constructor(X,le,Ae,Ce,$e){this.ngZone=X,this.elRef=le,this.cdRef=Ae,this.renderer=Ce,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 o.EventEmitter(!1),this.dragEnd=new o.EventEmitter(!1),this.gutterClick=new o.EventEmitter(!1),this.gutterDblClick=new o.EventEmitter(!1),this.dragProgressSubject=new f.xQ,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(et=>{this[et]=this._config[et]})}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=B(X,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(X){this._gutterStep=B(X,1)}get gutterStep(){return this._gutterStep}set restrictMove(X){this._restrictMove=P(X)}get restrictMove(){return this._restrictMove}set useTransition(X){this._useTransition=P(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=P(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=B(X,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new _.y(X=>this.transitionEndSubscriber=X).pipe((0,a.b)(20))}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea(X){const le={component:X,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===X.visible?(this.displayedAreas.push(le),this.build(!0,!0)):this.hiddenAreas.push(le)}removeArea(X){if(this.displayedAreas.some(le=>le.component===X)){const le=this.displayedAreas.find(Ae=>Ae.component===X);this.displayedAreas.splice(this.displayedAreas.indexOf(le),1),this.build(!0,!0)}else if(this.hiddenAreas.some(le=>le.component===X)){const le=this.hiddenAreas.find(Ae=>Ae.component===X);this.hiddenAreas.splice(this.hiddenAreas.indexOf(le),1)}}updateArea(X,le,Ae){!0===X.visible&&this.build(le,Ae)}showArea(X){const le=this.hiddenAreas.find(Ce=>Ce.component===X);if(void 0===le)return;const Ae=this.hiddenAreas.splice(this.hiddenAreas.indexOf(le),1);this.displayedAreas.push(...Ae),this.build(!0,!0)}hideArea(X){const le=this.displayedAreas.find(Ce=>Ce.component===X);if(void 0===le)return;const Ae=this.displayedAreas.splice(this.displayedAreas.indexOf(le),1);Ae.forEach(Ce=>{Ce.order=0,Ce.size=0}),this.hiddenAreas.push(...Ae),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(X=>null===X.size?"*":X.size)}setVisibleAreaSizes(X){if(X.length!==this.displayedAreas.length)return!1;const le=X.map(Ce=>B(Ce,null));return!1!==j(this.unit,le)&&(this.displayedAreas.forEach((Ce,$e)=>Ce.component._size=le[$e]),this.build(!1,!0),!0)}build(X,le){if(this.stopDragging(),!0===X&&(this.displayedAreas.every(Ae=>null!==Ae.component.order)&&this.displayedAreas.sort((Ae,Ce)=>Ae.component.order-Ce.component.order),this.displayedAreas.forEach((Ae,Ce)=>{Ae.order=2*Ce,Ae.component.setStyleOrder(Ae.order)})),!0===le){const Ae=j(this.unit,this.displayedAreas.map(Ce=>Ce.component.size));switch(this.unit){case"percent":{const Ce=100/this.displayedAreas.length;this.displayedAreas.forEach($e=>{$e.size=Ae?$e.component.size:Ce,$e.minSize=se($e),$e.maxSize=ce($e)});break}case"pixel":if(Ae)this.displayedAreas.forEach(Ce=>{Ce.size=Ce.component.size,Ce.minSize=se(Ce),Ce.maxSize=ce(Ce)});else{const Ce=this.displayedAreas.filter($e=>null===$e.component.size);if(0===Ce.length&&this.displayedAreas.length>0)this.displayedAreas.forEach(($e,et)=>{$e.size=0===et?null:$e.component.size,$e.minSize=0===et?null:se($e),$e.maxSize=0===et?null:ce($e)});else if(Ce.length>1){let $e=!1;this.displayedAreas.forEach(et=>{null===et.component.size?!1===$e?(et.size=null,et.minSize=null,et.maxSize=null,$e=!0):(et.size=100,et.minSize=null,et.maxSize=null):(et.size=et.component.size,et.minSize=se(et),et.maxSize=ce(et))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const X=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(le=>{le.component.setStyleFlex(0,0,`calc( ${le.size}% - ${le.size/100*X}px )`,null!==le.minSize&&le.minSize===le.size,null!==le.maxSize&&le.maxSize===le.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(X=>{null===X.size?X.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?X.component.setStyleFlex(0,0,"100%",!1,!1):X.component.setStyleFlex(0,0,`${X.size}px`,null!==X.minSize&&X.minSize===X.size,null!==X.maxSize&&X.maxSize===X.size)})}clickGutter(X,le){const Ae=E(X);this.startPoint&&M(this.startPoint,Ae,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",le),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",le),this.stopDragging()},this.gutterDblClickDuration))}startDragging(X,le,Ae){X.preventDefault(),X.stopPropagation(),this.startPoint=E(X),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.snapshot={gutterNum:Ae,lastSteppedOffset:0,allAreasSizePixel:S(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(Ce=>{const $e={area:Ce,sizePixelAtStart:S(Ce.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?Ce.size:-1};Ce.order<le?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[$e]:this.snapshot.areasBeforeGutter.unshift($e):Ce.order>le&&(!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((Ce,$e)=>Ce+$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(Ce=>Ce.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0))}dragEvent(X){X.preventDefault(),X.stopPropagation();const le=E(X);if(null!==this._clickTimeout&&!M(this.startPoint,le,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1===this.isDragging||(this.endPoint=E(X),null===this.endPoint))return;if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)})}let Ae="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(Ae=-Ae);const Ce=Math.round(Ae/this.gutterStep)*this.gutterStep;if(Ce===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=Ce;let $e=be(this.unit,this.snapshot.areasBeforeGutter,-Ce,this.snapshot.allAreasSizePixel),et=be(this.unit,this.snapshot.areasAfterGutter,Ce,this.snapshot.allAreasSizePixel);if(0!==$e.remain&&0!==et.remain?Math.abs($e.remain)===Math.abs(et.remain)||(Math.abs($e.remain)>Math.abs(et.remain)?et=be(this.unit,this.snapshot.areasAfterGutter,Ce+$e.remain,this.snapshot.allAreasSizePixel):$e=be(this.unit,this.snapshot.areasBeforeGutter,-(Ce-et.remain),this.snapshot.allAreasSizePixel)):0!==$e.remain?et=be(this.unit,this.snapshot.areasAfterGutter,Ce+$e.remain,this.snapshot.allAreasSizePixel):0!==et.remain&&($e=be(this.unit,this.snapshot.areasBeforeGutter,-(Ce-et.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const pt=[...$e.list,...et.list],je=pt.find(tt=>0!==tt.percentAfterAbsorption&&tt.percentAfterAbsorption!==tt.areaSnapshot.area.minSize&&tt.percentAfterAbsorption!==tt.areaSnapshot.area.maxSize);je&&(je.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-pt.filter(tt=>tt!==je).reduce((tt,ut)=>tt+ut.percentAfterAbsorption,0))}$e.list.forEach(pt=>Me(this.unit,pt)),et.list.forEach(pt=>Me(this.unit,pt)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(X){if(X&&(X.preventDefault(),X.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(le=>le.component.unlockEvents());this.dragListeners.length>0;){const le=this.dragListeners.pop();le&&le()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(X,le){const Ae=this.getVisibleAreaSizes();"start"===X?this.dragStart.emit({gutterNum:le,sizes:Ae}):"end"===X?this.dragEnd.emit({gutterNum:le,sizes:Ae}):"click"===X?this.gutterClick.emit({gutterNum:le,sizes:Ae}):"dblclick"===X?this.gutterDblClick.emit({gutterNum:le,sizes:Ae}):"transitionEnd"===X?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(Ae)):"progress"===X&&this.dragProgressSubject.next({gutterNum:le,sizes:Ae})}ngOnDestroy(){this.stopDragging()}collapseArea(X,le,Ae){const Ce=this.displayedAreas.find(pt=>pt.component===X);if(void 0===Ce)return;const $e="right"===Ae?1:-1;Ce.sizeBeforeCollapse||(Ce.sizeBeforeCollapse=Ce.size,Ce.gutterBeforeCollapse=$e),Ce.size=le;const et=this.gutterEls.find(pt=>pt.nativeElement.style.order===`${Ce.order+$e}`);et&&this.renderer.addClass(et.nativeElement,"as-split-gutter-collapsed"),this.updateArea(X,!1,!1)}expandArea(X){const le=this.displayedAreas.find(Ce=>Ce.component===X);if(void 0===le||!le.sizeBeforeCollapse)return;le.size=le.sizeBeforeCollapse,le.sizeBeforeCollapse=null;const Ae=this.gutterEls.find(Ce=>Ce.nativeElement.style.order===`${le.order+le.gutterBeforeCollapse}`);Ae&&this.renderer.removeClass(Ae.nativeElement,"as-split-gutter-collapsed"),this.updateArea(X,!1,!1)}}return te.\u0275fac=function(X){return new(X||te)(o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(xe,8))},te.\u0275cmp=o.\u0275\u0275defineComponent({type:te,selectors:[["as-split"]],viewQuery:function(X,le){if(1&X&&o.\u0275\u0275viewQuery(C,5),2&X){let Ae;o.\u0275\u0275queryRefresh(Ae=o.\u0275\u0275loadQuery())&&(le.gutterEls=Ae)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors: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,le){1&X&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0),o.\u0275\u0275template(1,D,1,1,"ng-template",0)),2&X&&(o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",le.displayedAreas))},directives:[l.NgForOf,l.NgIf],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url()}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0}),te})(),Ne=(()=>{class te{constructor(X,le,Ae,Ce){this.ngZone=X,this.elRef=le,this.renderer=Ae,this.split=Ce,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=B(X,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(X){this._size=B(X,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(X){this._minSize=B(X,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(X){this._maxSize=B(X,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(X){this._lockSize=P(X),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(X){this._visible=P(X),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",X=>{"flex-basis"===X.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(X){this.renderer.setStyle(this.elRef.nativeElement,"order",X)}setStyleFlex(X,le,Ae,Ce,$e){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",X),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",le),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",Ae),!0===Ce?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,le="right"){this.split.collapseArea(this,X,le)}expand(){this.split.expandArea(this)}}return te.\u0275fac=function(X){return new(X||te)(o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(Pe))},te.\u0275dir=o.\u0275\u0275defineDirective({type:te,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]}),te})(),Ct=(()=>{class te{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:te,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:te,providers:[]}}}return te.\u0275fac=function(X){return new(X||te)},te.\u0275mod=o.\u0275\u0275defineNgModule({type:te}),te.\u0275inj=o.\u0275\u0275defineInjector({imports:[[l.CommonModule]]}),te})()}},Le=>{Le(Le.s=4431)}]);