@drayman/elements 1.24.0 → 1.26.0

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 (115) hide show
  1. package/README.md +2 -4
  2. package/dist/button/3rdpartylicenses.txt +3 -45
  3. package/dist/button/main.js +1 -1
  4. package/dist/button/polyfills.js +1 -1
  5. package/dist/calendar/3rdpartylicenses.txt +3 -52
  6. package/dist/calendar/main.js +1 -1
  7. package/dist/calendar/polyfills.js +1 -1
  8. package/dist/calendar/styles.css +1 -1
  9. package/dist/checkbox/3rdpartylicenses.txt +3 -30
  10. package/dist/checkbox/main.js +1 -1
  11. package/dist/checkbox/polyfills.js +1 -1
  12. package/dist/claviz-charts/3rdpartylicenses.txt +1 -28
  13. package/dist/claviz-charts/main.js +1 -1
  14. package/dist/claviz-charts/polyfills.js +1 -1
  15. package/dist/code-editor/3rdpartylicenses.txt +2 -139
  16. package/dist/code-editor/main.js +1 -1
  17. package/dist/code-editor/polyfills.js +1 -1
  18. package/dist/datepicker/3rdpartylicenses.txt +3 -91
  19. package/dist/datepicker/main.js +1 -1
  20. package/dist/datepicker/polyfills.js +1 -1
  21. package/dist/file-uploader/3rdpartylicenses.txt +1 -28
  22. package/dist/file-uploader/main.js +1 -1
  23. package/dist/file-uploader/polyfills.js +1 -1
  24. package/dist/{jsondiffpatch → gauge}/3rdpartylicenses.txt +15 -38
  25. package/dist/gauge/main.js +1 -0
  26. package/dist/gauge/polyfills.js +1 -0
  27. package/dist/grid/3rdpartylicenses.txt +3 -45
  28. package/dist/grid/main.js +1 -1
  29. package/dist/grid/polyfills.js +1 -1
  30. package/dist/menu/3rdpartylicenses.txt +3 -45
  31. package/dist/menu/main.js +1 -1
  32. package/dist/menu/polyfills.js +1 -1
  33. package/dist/nebula/3rdpartylicenses.txt +24 -62
  34. package/dist/nebula/main.js +1 -1
  35. package/dist/nebula/polyfills.js +1 -1
  36. package/dist/ngx-charts/3rdpartylicenses.txt +2 -44
  37. package/dist/ngx-charts/main.js +1 -1
  38. package/dist/ngx-charts/polyfills.js +1 -1
  39. package/dist/ngx-graph/3rdpartylicenses.txt +3 -69
  40. package/dist/ngx-graph/main.js +1 -1
  41. package/dist/ngx-graph/polyfills.js +1 -1
  42. package/dist/number-field/3rdpartylicenses.txt +3 -30
  43. package/dist/number-field/main.js +1 -1
  44. package/dist/number-field/polyfills.js +1 -1
  45. package/dist/pdf-viewer/3rdpartylicenses.txt +26 -12
  46. package/dist/pdf-viewer/main.js +1 -1
  47. package/dist/pdf-viewer/polyfills.js +1 -1
  48. package/dist/radio-group/3rdpartylicenses.txt +3 -52
  49. package/dist/radio-group/main.js +1 -1
  50. package/dist/radio-group/polyfills.js +1 -1
  51. package/dist/select/3rdpartylicenses.txt +3 -30
  52. package/dist/select/main.js +1 -1
  53. package/dist/select/polyfills.js +1 -1
  54. package/dist/table/3rdpartylicenses.txt +3 -91
  55. package/dist/table/main.js +1 -1
  56. package/dist/table/polyfills.js +1 -1
  57. package/dist/text-field/3rdpartylicenses.txt +3 -45
  58. package/dist/text-field/main.js +1 -1
  59. package/dist/text-field/polyfills.js +1 -1
  60. package/dist/textarea-field/3rdpartylicenses.txt +3 -30
  61. package/dist/textarea-field/main.js +1 -1
  62. package/dist/textarea-field/polyfills.js +1 -1
  63. package/dist/timepicker/3rdpartylicenses.txt +3 -67
  64. package/dist/timepicker/main.js +1 -1
  65. package/dist/timepicker/polyfills.js +1 -1
  66. package/dist/types/checkbox/src/app/models/checkbox-options.d.ts +0 -0
  67. package/dist/types/claviz-charts/src/app/models/claviz-charts-options.d.ts +0 -0
  68. package/dist/types/datepicker/src/app/models/datepicker-options.d.ts +0 -0
  69. package/dist/types/file-uploader/src/app/models/file-uploader-options.d.ts +0 -0
  70. package/dist/types/gauge/src/app/models/gauge-options.d.ts +91 -0
  71. package/dist/types/menu/src/app/models/menu-options.d.ts +0 -0
  72. package/dist/types/nebula/src/app/models/nebula-options.d.ts +0 -0
  73. package/dist/types/ngx-charts/src/app/models/ngx-charts-options.d.ts +0 -0
  74. package/dist/types/ngx-graph/src/app/models/ngx-graph-options.d.ts +0 -0
  75. package/dist/types/number-field/src/app/models/number-field-options.d.ts +0 -0
  76. package/dist/types/pdf-viewer/src/app/models/pdf-viewer-options.d.ts +0 -0
  77. package/dist/types/radio-group/src/app/models/radio-group-options.d.ts +0 -0
  78. package/dist/types/select/src/app/models/select-options.d.ts +0 -0
  79. package/dist/types/shared/models/autocomplete-options-base.d.ts +0 -0
  80. package/dist/types/shared/models/button-options-base.d.ts +0 -0
  81. package/dist/types/shared/models/button-options.d.ts +0 -0
  82. package/dist/types/shared/models/field-options-base.d.ts +0 -0
  83. package/dist/types/shared/models/input-field-options-base.d.ts +0 -0
  84. package/dist/types/shared/models/input-mask-options-base.d.ts +0 -0
  85. package/dist/types/table/src/app/models/table-options.d.ts +0 -0
  86. package/dist/types/text-field/src/app/models/text-field-options.d.ts +0 -0
  87. package/dist/types/textarea-field/src/app/models/textarea-field-options.d.ts +0 -0
  88. package/dist/types/timepicker/src/app/models/timepicker-options.d.ts +0 -0
  89. package/dist/types/youtube-player/src/app/models/youtube-player-options.d.ts +0 -0
  90. package/dist/youtube-player/3rdpartylicenses.txt +2 -29
  91. package/dist/youtube-player/main.js +1 -1
  92. package/dist/youtube-player/polyfills.js +1 -1
  93. package/package.json +188 -183
  94. package/types/index.d.ts +35 -0
  95. package/dist/jsondiffpatch/favicon.ico +0 -0
  96. package/dist/jsondiffpatch/main.js +0 -1
  97. package/dist/jsondiffpatch/polyfills.js +0 -1
  98. package/dist/monaco-editor/3rdpartylicenses.txt +0 -406
  99. package/dist/monaco-editor/favicon.ico +0 -0
  100. package/dist/monaco-editor/main.js +0 -1
  101. package/dist/monaco-editor/polyfills.js +0 -1
  102. package/dist/monaco-editor/styles.css +0 -1
  103. package/dist/picasso/3rdpartylicenses.txt +0 -465
  104. package/dist/picasso/favicon.ico +0 -0
  105. package/dist/picasso/main.js +0 -1
  106. package/dist/picasso/polyfills.js +0 -1
  107. package/dist/picasso/styles.css +0 -0
  108. package/dist/pivot-grid/3rdpartylicenses.txt +0 -418
  109. package/dist/pivot-grid/main.js +0 -1
  110. package/dist/pivot-grid/polyfills.js +0 -1
  111. package/dist/pivot-grid/styles.css +0 -0
  112. package/dist/types/picasso/src/app/models/picasso-options.d.ts +0 -3
  113. package/dist/types/pivot-grid/src/app/models/pivot-grid-options.d.ts +0 -62
  114. /package/dist/{pivot-grid → gauge}/favicon.ico +0 -0
  115. /package/dist/{jsondiffpatch → gauge}/styles.css +0 -0
@@ -0,0 +1 @@
1
+ (()=>{var Vw={289:(ht,Yt,Ee)=>{ht.exports={ResizeSensor:Ee(294),ElementQueries:Ee(322)}},322:function(ht,Yt,Ee){"use strict";var cn,it;"undefined"!=typeof window&&window,cn=[Ee(294)],void 0!==(it=function(bt){var Ye=function(){var V,ke={},At=[];function rs(C){C||(C=document.documentElement);var E=window.getComputedStyle(C,null).fontSize;return parseFloat(E)||16}function be(C,E){var $=E.split(/\d/),G=$[$.length-1];switch(E=parseFloat(E),G){case"px":default:return E;case"em":return E*rs(C);case"rem":return E*rs();case"vw":return E*document.documentElement.clientWidth/100;case"vh":return E*document.documentElement.clientHeight/100;case"vmin":case"vmax":var re=document.documentElement.clientWidth/100,Te=document.documentElement.clientHeight/100;return E*(0,Math["vmin"===G?"min":"max"])(re,Te)}}function J(C,E){this.element=C;var $,G,re,Te,rt,De,Ze,Xe,Zt=["min-width","min-height","max-width","max-height"];this.call=function(){for($ in re=function L(C){if(!C.getBoundingClientRect)return{width:C.offsetWidth,height:C.offsetHeight};var E=C.getBoundingClientRect();return{width:Math.round(E.width),height:Math.round(E.height)}}(this.element),De={},ke[E])!ke[E].hasOwnProperty($)||(Te=be(this.element,(G=ke[E][$]).value),rt="width"===G.property?re.width:re.height,Ze="","min"===G.mode&&rt>=Te&&(Ze+=G.value),"max"===G.mode&&rt<=Te&&(Ze+=G.value),De[Xe=G.mode+"-"+G.property]||(De[Xe]=""),Ze&&-1===(" "+De[Xe]+" ").indexOf(" "+Ze+" ")&&(De[Xe]+=" "+Ze));for(var Rt in Zt)!Zt.hasOwnProperty(Rt)||(De[Zt[Rt]]?this.element.setAttribute(Zt[Rt],De[Zt[Rt]].substr(1)):this.element.removeAttribute(Zt[Rt]))}}function Tt(C,E){C.elementQueriesSetupInformation||(C.elementQueriesSetupInformation=new J(C,E)),C.elementQueriesSensor||(C.elementQueriesSensor=new bt(C,function(){C.elementQueriesSetupInformation.call()}))}function Ft(C,E,$,G){if(void 0===ke[C]){ke[C]=[];var re=At.length;V.innerHTML+="\n"+C+" {animation: 0.1s element-queries;}",V.innerHTML+="\n"+C+" > .resize-sensor {min-width: "+re+"px;}",At.push(C)}ke[C].push({mode:E,property:$,value:G})}function H(C){var E;if(document.querySelectorAll&&(E=C?C.querySelectorAll.bind(C):document.querySelectorAll.bind(document)),!E&&"undefined"!=typeof $$&&(E=$$),!E&&"undefined"!=typeof jQuery&&(E=jQuery),!E)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return E}function Nt(C){var E=[],$=[],G=[],re=0,Te=-1,rt=[];for(var De in C.children)if(C.children.hasOwnProperty(De)&&C.children[De].tagName&&"img"===C.children[De].tagName.toLowerCase()){E.push(C.children[De]);var Ze=C.children[De].getAttribute("min-width")||C.children[De].getAttribute("data-min-width"),Xe=C.children[De].getAttribute("data-src")||C.children[De].getAttribute("url");G.push(Xe),$.push({minWidth:Ze}),Ze?C.children[De].style.display="none":(re=E.length-1,C.children[De].style.display="block")}function Rt(){var mt,de=!1;for(mt in E)!E.hasOwnProperty(mt)||$[mt].minWidth&&C.offsetWidth>$[mt].minWidth&&(de=mt);if(de||(de=re),Te!==de)if(rt[de])E[Te].style.display="none",E[de].style.display="block",Te=de;else{var si=new Image;si.onload=function(){E[de].src=G[de],E[Te].style.display="none",E[de].style.display="block",rt[de]=!0,Te=de},si.src=G[de]}else E[de].src=G[de]}Te=re,C.resizeSensorInstance=new bt(C,Rt),Rt()}var pt=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,Fi=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function $e(C){var E,$,G,re;for(C=C.replace(/'/g,'"');null!==(E=pt.exec(C));)for($=E[1]+E[3],G=E[2];null!==(re=Fi.exec(G));)Ft($,re[1],re[2],re[3])}function An(C){var E="";if(C)if("string"==typeof C)(-1!==(C=C.toLowerCase()).indexOf("min-width")||-1!==C.indexOf("max-width"))&&$e(C);else for(var $=0,G=C.length;$<G;$++)1===C[$].type?(-1!==(E=C[$].selectorText||C[$].cssText).indexOf("min-height")||-1!==E.indexOf("max-height")||-1!==E.indexOf("min-width")||-1!==E.indexOf("max-width"))&&$e(E):4===C[$].type?An(C[$].cssRules||C[$].rules):3===C[$].type&&C[$].styleSheet.hasOwnProperty("cssRules")&&An(C[$].styleSheet.cssRules)}var ri=!1;this.init=function(){var C="animationstart";void 0!==document.documentElement.style.webkitAnimationName?C="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?C="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(C="oanimationstart"),document.body.addEventListener(C,function(G){var re=G.target,Te=re&&window.getComputedStyle(re,null),rt=Te&&Te.getPropertyValue("animation-name");if(rt&&-1!==rt.indexOf("element-queries")){re.elementQueriesSensor=new bt(re,function(){re.elementQueriesSetupInformation&&re.elementQueriesSetupInformation.call()});var Xe=window.getComputedStyle(re.resizeSensor,null).getPropertyValue("min-width");Xe=parseInt(Xe.replace("px","")),Tt(G.target,At[Xe])}}),ri||((V=document.createElement("style")).type="text/css",V.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",V.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(V),ri=!0);for(var E=0,$=document.styleSheets.length;E<$;E++)try{document.styleSheets[E].href&&0===document.styleSheets[E].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[E].href),An(document.styleSheets[E].cssRules||document.styleSheets[E].rules||document.styleSheets[E].cssText)}catch(G){}!function oe(){for(var E=H()("[data-responsive-image],[responsive-image]"),$=0,G=E.length;$<G;$++)Nt(E[$])}()},this.findElementQueriesElements=function(C){!function gt(C){var E=H(C);for(var $ in ke)if(ke.hasOwnProperty($))for(var G=E($,C),re=0,Te=G.length;re<Te;re++)Tt(G[re],$)}(C)},this.update=function(){this.init()}};Ye.update=function(){Ye.instance.update()},Ye.detach=function(V){V.elementQueriesSetupInformation?(V.elementQueriesSensor.detach(),delete V.elementQueriesSetupInformation,delete V.elementQueriesSensor):V.resizeSensorInstance&&(V.resizeSensorInstance.detach(),delete V.resizeSensorInstance)},Ye.init=function(){Ye.instance||(Ye.instance=new Ye),Ye.instance.init()};return Ye.findElementQueriesElements=function(V){Ye.instance.findElementQueriesElements(V)},Ye.listen=function(){!function(V){if(document.addEventListener)document.addEventListener("DOMContentLoaded",V,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var ke=setInterval(function(){/loaded|complete/i.test(document.readyState)&&(V(),clearInterval(ke))},10);else window.onload=V}(Ye.init)},Ye}.apply(Yt,cn))&&(ht.exports=it)},294:function(ht,Yt,Ee){"use strict";var cn;"undefined"!=typeof window&&window,void 0!==(cn=function(){if("undefined"==typeof window)return null;var it="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),bt=it.requestAnimationFrame||it.mozRequestAnimationFrame||it.webkitRequestAnimationFrame||function(L){return it.setTimeout(L,20)},Ye=it.cancelAnimationFrame||it.mozCancelAnimationFrame||it.webkitCancelAnimationFrame||function(L){it.clearTimeout(L)};function bn(L,be){var J=Object.prototype.toString.call(L),Tt="[object Array]"===J||"[object NodeList]"===J||"[object HTMLCollection]"===J||"[object Object]"===J||"undefined"!=typeof jQuery&&L instanceof jQuery||"undefined"!=typeof Elements&&L instanceof Elements,Ft=0,H=L.length;if(Tt)for(;Ft<H;Ft++)be(L[Ft]);else be(L)}function V(L){if(!L.getBoundingClientRect)return{width:L.offsetWidth,height:L.offsetHeight};var be=L.getBoundingClientRect();return{width:Math.round(be.width),height:Math.round(be.height)}}function ke(L,be){Object.keys(be).forEach(function(J){L.style[J]=be[J]})}var At=function(L,be){var J=0;function Tt(){var gt,Nt,H=[];this.add=function(oe){H.push(oe)},this.call=function(oe){for(gt=0,Nt=H.length;gt<Nt;gt++)H[gt].call(this,oe)},this.remove=function(oe){var pt=[];for(gt=0,Nt=H.length;gt<Nt;gt++)H[gt]!==oe&&pt.push(H[gt]);H=pt},this.length=function(){return H.length}}function Ft(H,gt){if(H){if(H.resizedAttached)return void H.resizedAttached.add(gt);H.resizedAttached=new Tt,H.resizedAttached.add(gt),H.resizeSensor=document.createElement("div"),H.resizeSensor.dir="ltr",H.resizeSensor.className="resize-sensor";var Nt={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},oe={position:"absolute",left:"0px",top:"0px",transition:"0s"};ke(H.resizeSensor,Nt);var pt=document.createElement("div");pt.className="resize-sensor-expand",ke(pt,Nt);var Fi=document.createElement("div");ke(Fi,oe),pt.appendChild(Fi);var $e=document.createElement("div");$e.className="resize-sensor-shrink",ke($e,Nt);var An=document.createElement("div");ke(An,oe),ke(An,{width:"200%",height:"200%"}),$e.appendChild(An),H.resizeSensor.appendChild(pt),H.resizeSensor.appendChild($e),H.appendChild(H.resizeSensor);var ri=window.getComputedStyle(H),C=ri?ri.getPropertyValue("position"):null;"absolute"!==C&&"relative"!==C&&"fixed"!==C&&"sticky"!==C&&(H.style.position="relative");var E=!1,$=0,G=V(H),re=0,Te=0,rt=!0;J=0;var Ze=function(){if(rt){if(0===H.offsetWidth&&0===H.offsetHeight)return void(J||(J=bt(function(){J=0,Ze()})));rt=!1}var de,mt;mt=H.offsetHeight,Fi.style.width=(de=H.offsetWidth)+10+"px",Fi.style.height=mt+10+"px",pt.scrollLeft=de+10,pt.scrollTop=mt+10,$e.scrollLeft=de+10,$e.scrollTop=mt+10};H.resizeSensor.resetSensor=Ze;var Xe=function(){$=0,E&&(re=G.width,Te=G.height,H.resizedAttached&&H.resizedAttached.call(G))},Zt=function(){G=V(H),(E=G.width!==re||G.height!==Te)&&!$&&($=bt(Xe)),Ze()},Rt=function(de,mt,si){de.attachEvent?de.attachEvent("on"+mt,si):de.addEventListener(mt,si)};Rt(pt,"scroll",Zt),Rt($e,"scroll",Zt),J=bt(function(){J=0,Ze()})}}bn(L,function(H){Ft(H,be)}),this.detach=function(H){J||(Ye(J),J=0),At.detach(L,H)},this.reset=function(){L.resizeSensor.resetSensor()}};if(At.reset=function(L){bn(L,function(be){be.resizeSensor.resetSensor()})},At.detach=function(L,be){bn(L,function(J){!J||J.resizedAttached&&"function"==typeof be&&(J.resizedAttached.remove(be),J.resizedAttached.length())||J.resizeSensor&&(J.contains(J.resizeSensor)&&J.removeChild(J.resizeSensor),delete J.resizeSensor,delete J.resizedAttached)})},"undefined"!=typeof MutationObserver){var rs=new MutationObserver(function(L){for(var be in L)if(L.hasOwnProperty(be))for(var J=L[be].addedNodes,Tt=0;Tt<J.length;Tt++)J[Tt].resizeSensor&&At.reset(J[Tt])});document.addEventListener("DOMContentLoaded",function(L){rs.observe(document.body,{childList:!0,subtree:!0})})}return At}.call(Yt,Ee,Yt,ht))&&(ht.exports=cn)}},Mf={};function If(ht){var Yt=Mf[ht];if(void 0!==Yt)return Yt.exports;var Ee=Mf[ht]={exports:{}};return Vw[ht].call(Ee.exports,Ee,Ee.exports,If),Ee.exports}(()=>{"use strict";function ht(t){return"function"==typeof t}let Yt=!1;const Ee={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Yt&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Yt=t},get useDeprecatedSynchronousErrorHandling(){return Yt}};function at(t){setTimeout(()=>{throw t},0)}const cn={closed:!0,next(t){},error(t){if(Ee.useDeprecatedSynchronousErrorHandling)throw t;at(t)},complete(){}},it=Array.isArray||(t=>t&&"number"==typeof t.length);function bt(t){return null!==t&&"object"==typeof t}const bn=(()=>{function t(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,i)=>`${i+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t})();class V{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof V)n.remove(this);else if(null!==n)for(let o=0;o<n.length;++o)n[o].remove(this);if(ht(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof bn?ke(o.errors):[o]}}if(it(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(bt(l))try{l.unsubscribe()}catch(u){e=e||[],u instanceof bn?e=e.concat(ke(u.errors)):e.push(u)}}}if(e)throw new bn(e)}add(e){let n=e;if(!e)return V.EMPTY;switch(typeof e){case"function":n=new V(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof V)){const s=n;n=new V,n._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof V){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}remove(e){const n=this._subscriptions;if(n){const i=n.indexOf(e);-1!==i&&n.splice(i,1)}}}var t;function ke(t){return t.reduce((e,n)=>e.concat(n instanceof bn?n.errors:n),[])}V.EMPTY=((t=new V).closed=!0,t);const At="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class L extends V{constructor(e,n,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=cn;break;case 1:if(!e){this.destination=cn;break}if("object"==typeof e){e instanceof L?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new be(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new be(this,e,n,i)}}[At](){return this}static create(e,n,i){const r=new L(e,n,i);return r.syncErrorThrowable=!1,r}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 be extends L{constructor(e,n,i,r){super(),this._parentSubscriber=e;let s,o=this;ht(n)?s=n:n&&(s=n.next,i=n.error,r=n.complete,n!==cn&&(o=Object.create(n),ht(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;Ee.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:i}=Ee;if(this._error)i&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)i?(n.syncErrorValue=e,n.syncErrorThrown=!0):at(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;at(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const n=()=>this._complete.call(this._context);Ee.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,n){try{e.call(this._context,n)}catch(i){if(this.unsubscribe(),Ee.useDeprecatedSynchronousErrorHandling)throw i;at(i)}}__tryOrSetError(e,n,i){if(!Ee.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,i)}catch(r){return Ee.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(at(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Ft="function"==typeof Symbol&&Symbol.observable||"@@observable";function H(t){return t}let oe=(()=>{class t{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const i=new t;return i.source=this,i.operator=n,i}subscribe(n,i,r){const{operator:s}=this,o=function Tt(t,e,n){if(t){if(t instanceof L)return t;if(t[At])return t[At]()}return t||e||n?new L(t,e,n):new L(cn)}(n,i,r);if(o.add(s?s.call(o,this.source):this.source||Ee.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Ee.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(n){try{return this._subscribe(n)}catch(i){Ee.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=i),function J(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof L?n:null}return!0}(n)?n.error(i):console.warn(i)}}forEach(n,i){return new(i=pt(i))((r,s)=>{let o;o=this.subscribe(a=>{try{n(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(n){const{source:i}=this;return i&&i.subscribe(n)}[Ft](){return this}pipe(...n){return 0===n.length?this:function Nt(t){return 0===t.length?H:1===t.length?t[0]:function(n){return t.reduce((i,r)=>r(i),n)}}(n)(this)}toPromise(n){return new(n=pt(n))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return t.create=e=>new t(e),t})();function pt(t){if(t||(t=Ee.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const $e=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class An extends V{constructor(e,n){super(),this.subject=e,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,n=e.observers;if(this.subject=null,!n||0===n.length||e.isStopped||e.closed)return;const i=n.indexOf(this.subscriber);-1!==i&&n.splice(i,1)}}class ri extends L{constructor(e){super(e),this.destination=e}}let C=(()=>{class t extends oe{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[At](){return new ri(this)}lift(n){const i=new E(this,this);return i.operator=n,i}next(n){if(this.closed)throw new $e;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(n)}}error(n){if(this.closed)throw new $e;this.hasError=!0,this.thrownError=n,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(n);this.observers.length=0}complete(){if(this.closed)throw new $e;this.isStopped=!0;const{observers:n}=this,i=n.length,r=n.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(n){if(this.closed)throw new $e;return super._trySubscribe(n)}_subscribe(n){if(this.closed)throw new $e;return this.hasError?(n.error(this.thrownError),V.EMPTY):this.isStopped?(n.complete(),V.EMPTY):(this.observers.push(n),new An(this,n))}asObservable(){const n=new oe;return n.source=this,n}}return t.create=(e,n)=>new E(e,n),t})();class E extends C{constructor(e,n){super(),this.destination=e,this.source=n}next(e){const{destination:n}=this;n&&n.next&&n.next(e)}error(e){const{destination:n}=this;n&&n.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:n}=this;return n?this.source.subscribe(e):V.EMPTY}}function $(t){return t&&"function"==typeof t.schedule}function G(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new re(t,e))}}class re{constructor(e,n){this.project=e,this.thisArg=n}call(e,n){return n.subscribe(new Te(e,this.project,this.thisArg))}}class Te extends L{constructor(e,n,i){super(e),this.project=n,this.count=0,this.thisArg=i||this}_next(e){let n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(n)}}const rt=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()},Xe=function Ze(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),mt=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function si(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const Tf=t=>{if(t&&"function"==typeof t[Ft])return(t=>e=>{const n=t[Ft]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if(mt(t))return rt(t);if(si(t))return(t=>e=>(t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,at),e))(t);if(t&&"function"==typeof t[Xe])return(t=>e=>{const n=t[Xe]();for(;;){let i;try{i=n.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const n=`You provided ${bt(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function vl(t,e){return new oe(n=>{const i=new V;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function co(t,e){return e?function Uw(t,e){if(null!=t){if(function Hw(t){return t&&"function"==typeof t[Ft]}(t))return function Bw(t,e){return new oe(n=>{const i=new V;return i.add(e.schedule(()=>{const r=t[Ft]();i.add(r.subscribe({next(s){i.add(e.schedule(()=>n.next(s)))},error(s){i.add(e.schedule(()=>n.error(s)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(si(t))return function jw(t,e){return new oe(n=>{const i=new V;return i.add(e.schedule(()=>t.then(r=>{i.add(e.schedule(()=>{n.next(r),i.add(e.schedule(()=>n.complete()))}))},r=>{i.add(e.schedule(()=>n.error(r)))}))),i})}(t,e);if(mt(t))return vl(t,e);if(function $w(t){return t&&"function"==typeof t[Xe]}(t)||"string"==typeof t)return function Gw(t,e){if(!t)throw new Error("Iterable cannot be null");return new oe(n=>{const i=new V;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=t[Xe](),i.add(e.schedule(function(){if(n.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void n.error(a)}o?n.complete():(n.next(s),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof oe?t:new oe(Tf(t))}class Dl extends 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 wl extends L{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Cl(t,e){if(!e.closed)return t instanceof oe?t.subscribe(e):Tf(t)(e)}function Ff(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(Ff((r,s)=>co(t(r,s)).pipe(G((o,a)=>e(r,o,s,a))),n)):("number"==typeof e&&(n=e),i=>i.lift(new zw(t,n)))}class zw{constructor(e,n=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=n}call(e,n){return n.subscribe(new Ww(e,this.project,this.concurrent))}}class Ww extends wl{constructor(e,n,i=Number.POSITIVE_INFINITY){super(e),this.project=n,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let n;const i=this.index++;try{n=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(n)}_innerSub(e){const n=new Dl(this),i=this.destination;i.add(n);const r=Cl(e,n);r!==n&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function qw(t=Number.POSITIVE_INFINITY){return Ff(H,t)}function Nf(t,e){return e?vl(t,e):new oe(rt(t))}function fo(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return $(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof oe?t[0]:qw(e)(Nf(t,n))}function Rf(){return function(e){return e.lift(new Qw(e))}}class Qw{constructor(e){this.connectable=e}call(e,n){const{connectable:i}=this;i._refCount++;const r=new Kw(e,i),s=n.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class Kw extends L{constructor(e,n){super(e),this.connectable=n}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const n=e._refCount;if(n<=0)return void(this.connection=null);if(e._refCount=n-1,n>1)return void(this.connection=null);const{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class Yw extends oe{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new V,e.add(this.source.subscribe(new Xw(this.getSubject(),this))),e.closed&&(this._connection=null,e=V.EMPTY)),e}refCount(){return Rf()(this)}}const Zw=(()=>{const t=Yw.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Xw extends ri{constructor(e,n){super(e),this.connectable=n}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}}class tC{constructor(e,n){this.subjectFactory=e,this.selector=n}call(e,n){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(e);return s.add(n.subscribe(r)),s}}function nC(){return new C}function fe(t){for(let e in t)if(t[e]===fe)return e;throw Error("Could not find renamed property on target object.")}function xl(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ae(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(ae).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function El(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const rC=fe({__forward_ref__:fe});function me(t){return t.__forward_ref__=me,t.toString=function(){return ae(this())},t}function Y(t){return Of(t)?t():t}function Of(t){return"function"==typeof t&&t.hasOwnProperty(rC)&&t.__forward_ref__===me}class M extends Error{constructor(e,n){super(function bl(t,e){return`NG0${Math.abs(t)}${e?": "+e:""}`}(e,n)),this.code=e}}function U(t){return"string"==typeof t?t:null==t?"":String(t)}function st(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():U(t)}function ho(t,e){const n=e?` in ${e}`:"";throw new M(-201,`No provider for ${st(t)} found${n}`)}function Pt(t,e){null==t&&function le(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${n} ${i} ${e} <=Actual]`))}(e,t,null,"!=")}function N(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ue(t){return{providers:t.providers||[],imports:t.imports||[]}}function Al(t){return Pf(t,go)||Pf(t,kf)}function Pf(t,e){return t.hasOwnProperty(e)?t[e]:null}function Lf(t){return t&&(t.hasOwnProperty(Sl)||t.hasOwnProperty(dC))?t[Sl]:null}const go=fe({\u0275prov:fe}),Sl=fe({\u0275inj:fe}),kf=fe({ngInjectableDef:fe}),dC=fe({ngInjectorDef:fe});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 Ml;function oi(t){const e=Ml;return Ml=t,e}function Vf(t,e,n){const i=Al(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Q.Optional?null:void 0!==e?e:void ho(ae(t),"Injector")}function ai(t){return{toString:t}.toString()}var dn=(()=>((dn=dn||{})[dn.OnPush=0]="OnPush",dn[dn.Default=1]="Default",dn))(),fn=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(fn||(fn={})),fn))();const hC="undefined"!=typeof globalThis&&globalThis,gC="undefined"!=typeof window&&window,pC="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ue=hC||"undefined"!=typeof global&&global||gC||pC,nr={},he=[],po=fe({\u0275cmp:fe}),Il=fe({\u0275dir:fe}),Tl=fe({\u0275pipe:fe}),Bf=fe({\u0275mod:fe}),Wn=fe({\u0275fac:fe}),ss=fe({__NG_ELEMENT_ID__:fe});let mC=0;function mo(t){return ai(()=>{const n={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===dn.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||he,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||fn.Emulated,id:"c",styles:t.styles||he,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,s=t.features,o=t.pipes;return i.id+=mC++,i.inputs=$f(t.inputs,n),i.outputs=$f(t.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(jf):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Gf):null,i})}function jf(t){return ot(t)||function li(t){return t[Il]||null}(t)}function Gf(t){return function Ni(t){return t[Tl]||null}(t)}const Hf={};function Je(t){return ai(()=>{const e={type:t.type,bootstrap:t.bootstrap||he,declarations:t.declarations||he,imports:t.imports||he,exports:t.exports||he,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Hf[t.id]=t.type),e})}function $f(t,e){if(null==t)return nr;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,e&&(e[r]=s)}return n}const w=mo;function St(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ot(t){return t[po]||null}function Xt(t,e){const n=t[Bf]||null;if(!n&&!0===e)throw new Error(`Type ${ae(t)} does not have '\u0275mod' property.`);return n}const K=11;function Sn(t){return Array.isArray(t)&&"object"==typeof t[1]}function gn(t){return Array.isArray(t)&&!0===t[1]}function Rl(t){return 0!=(8&t.flags)}function Do(t){return 2==(2&t.flags)}function wo(t){return 1==(1&t.flags)}function pn(t){return null!==t.template}function CC(t){return 0!=(512&t[2])}function Li(t,e){return t.hasOwnProperty(Wn)?t[Wn]:null}class zf{constructor(e,n,i){this.previousValue=e,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function kt(){return Wf}function Wf(t){return t.type.prototype.ngOnChanges&&(t.setInput=AC),bC}function bC(){const t=Qf(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===nr)t.previous=e;else for(let i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}}function AC(t,e,n,i){const r=Qf(t)||function SC(t,e){return t[qf]=e}(t,{previous:nr,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];s[a]=new zf(l&&l.currentValue,e,o===nr),t[i]=e}kt.ngInherit=!0;const qf="__ngSimpleChanges__";function Qf(t){return t[qf]||null}let Vl;function Ne(t){return!!t.listen}const Kf={createRenderer:(t,e)=>function Bl(){return void 0!==Vl?Vl:"undefined"!=typeof document?document:void 0}()};function Ve(t){for(;Array.isArray(t);)t=t[0];return t}function Co(t,e){return Ve(e[t])}function Vt(t,e){return Ve(e[t.index])}function jl(t,e){return t.data[e]}function Bt(t,e){const n=e[t];return Sn(n)?n:n[0]}function Yf(t){return 4==(4&t[2])}function Gl(t){return 128==(128&t[2])}function ui(t,e){return null==e?null:t[e]}function Zf(t){t[18]=0}function Hl(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const z={lFrame:oh(null),bindingsEnabled:!0};function Jf(){return z.bindingsEnabled}function D(){return z.lFrame.lView}function ie(){return z.lFrame.tView}function ze(){let t=eh();for(;null!==t&&64===t.type;)t=t.parent;return t}function eh(){return z.lFrame.currentTNode}function Mn(t,e){const n=z.lFrame;n.currentTNode=t,n.isParent=e}function $l(){return z.lFrame.isParent}function Ul(){z.lFrame.isParent=!1}function lr(){return z.lFrame.bindingIndex++}function zC(t,e){const n=z.lFrame;n.bindingIndex=n.bindingRootIndex=t,zl(e)}function zl(t){z.lFrame.currentDirectiveIndex=t}function ih(){return z.lFrame.currentQueryIndex}function ql(t){z.lFrame.currentQueryIndex=t}function qC(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function rh(t,e,n){if(n&Q.SkipSelf){let r=e,s=t;for(;!(r=r.parent,null!==r||n&Q.Host||(r=qC(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,t=s}const i=z.lFrame=sh();return i.currentTNode=e,i.lView=t,!0}function Eo(t){const e=sh(),n=t[1];z.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function sh(){const t=z.lFrame,e=null===t?null:t.child;return null===e?oh(t):e}function oh(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function ah(){const t=z.lFrame;return z.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const lh=ah;function bo(){const t=ah();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function vt(){return z.lFrame.selectedIndex}function ci(t){z.lFrame.selectedIndex=t}function Ae(){const t=z.lFrame;return jl(t.tView,t.selectedIndex)}function Ao(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const s=t.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:c}=s;o&&(t.contentHooks||(t.contentHooks=[])).push(-n,o),a&&((t.contentHooks||(t.contentHooks=[])).push(n,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-n,l),u&&((t.viewHooks||(t.viewHooks=[])).push(n,u),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,u)),null!=c&&(t.destroyHooks||(t.destroyHooks=[])).push(n,c)}}function So(t,e,n){uh(t,e,3,n)}function Mo(t,e,n,i){(3&t[2])===n&&uh(t,e,n,i)}function Ql(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function uh(t,e,n,i){const s=null!=i?i:-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&t[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(t[18]+=65536),(a<s||-1==s)&&(nx(t,n,e,l),t[18]=(4294901760&t[18])+l+2),l++}function nx(t,e,n,i){const r=n[i]<0,s=n[i+1],a=t[r?-n[i]:n[i]];if(r){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class cs{constructor(e,n,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function Io(t,e,n){const i=Ne(t);let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const o=n[r++],a=n[r++],l=n[r++];i?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=n[++r];Yl(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function ch(t){return 3===t||4===t||6===t}function Yl(t){return 64===t.charCodeAt(0)}function To(t,e){if(null!==e&&0!==e.length)if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?n=r:0===n||dh(t,n,r,null,-1===n||2===n?e[++i]:null)}}return t}function dh(t,e,n,i,r){let s=0,o=t.length;if(-1===e)o=-1;else for(;s<t.length;){const a=t[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<t.length;){const a=t[s];if("number"==typeof a)break;if(a===n){if(null===i)return void(null!==r&&(t[s+1]=r));if(i===t[s+1])return void(t[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(t.splice(o,0,e),s=o+1),t.splice(s++,0,n),null!==i&&t.splice(s++,0,i),null!==r&&t.splice(s++,0,r)}function fh(t){return-1!==t}function ur(t){return 32767&t}function cr(t,e){let n=function ax(t){return t>>16}(t),i=e;for(;n>0;)i=i[15],n--;return i}let Zl=!0;function Fo(t){const e=Zl;return Zl=t,e}let lx=0;function fs(t,e){const n=Jl(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Xl(i.data,t),Xl(e,null),Xl(i.blueprint,null));const r=No(t,e),s=t.injectorIndex;if(fh(r)){const o=ur(r),a=cr(r,e),l=a[1].data;for(let u=0;u<8;u++)e[s+u]=a[o+u]|l[o+u]}return e[s+8]=r,s}function Xl(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Jl(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function No(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Ro(t,e,n){!function ux(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ss)&&(i=n[ss]),null==i&&(i=n[ss]=lx++);const r=255&i;e.data[t+(r>>5)]|=1<<r}(t,e,n)}function ph(t,e,n){if(n&Q.Optional)return t;ho(e,"NodeInjector")}function mh(t,e,n,i){if(n&Q.Optional&&void 0===i&&(i=null),0==(n&(Q.Self|Q.Host))){const r=t[9],s=oi(void 0);try{return r?r.get(e,i,n&Q.Optional):Vf(e,i,n&Q.Optional)}finally{oi(s)}}return ph(i,e,n)}function yh(t,e,n,i=Q.Default,r){if(null!==t){const s=function hx(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(ss)?t[ss]:void 0;return"number"==typeof e?e>=0?255&e:dx:e}(n);if("function"==typeof s){if(!rh(e,t,i))return i&Q.Host?ph(r,n,i):mh(e,n,i,r);try{const o=s(i);if(null!=o||i&Q.Optional)return o;ho(n)}finally{lh()}}else if("number"==typeof s){let o=null,a=Jl(t,e),l=-1,u=i&Q.Host?e[16][6]:null;for((-1===a||i&Q.SkipSelf)&&(l=-1===a?No(t,e):e[a+8],-1!==l&&Dh(i,!1)?(o=e[1],a=ur(l),e=cr(l,e)):a=-1);-1!==a;){const c=e[1];if(vh(s,a,c.data)){const d=fx(a,e,n,o,i,u);if(d!==_h)return d}l=e[a+8],-1!==l&&Dh(i,e[1].data[a+8]===u)&&vh(s,a,e)?(o=c,a=ur(l),e=cr(l,e)):a=-1}}}return mh(e,n,i,r)}const _h={};function dx(){return new dr(ze(),D())}function fx(t,e,n,i,r,s){const o=e[1],a=o.data[t+8],c=Oo(a,o,n,null==i?Do(a)&&Zl:i!=o&&0!=(3&a.type),r&Q.Host&&s===a);return null!==c?hs(e,o,c,a):_h}function Oo(t,e,n,i,r){const s=t.providerIndexes,o=e.data,a=1048575&s,l=t.directiveStart,c=s>>20,f=r?a+c:t.directiveEnd;for(let h=i?a:a+c;h<f;h++){const g=o[h];if(h<l&&n===g||h>=l&&g.type===n)return h}if(r){const h=o[l];if(h&&pn(h)&&h.type===n)return l}return null}function hs(t,e,n,i){let r=t[n];const s=e.data;if(function ix(t){return t instanceof cs}(r)){const o=r;o.resolving&&function sC(t,e){const n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new M(-200,`Circular dependency in DI detected for ${t}${n}`)}(st(s[n]));const a=Fo(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?oi(o.injectImpl):null;rh(t,i,Q.Default);try{r=t[n]=o.factory(void 0,s,t,i),e.firstCreatePass&&n>=i.directiveStart&&function tx(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=Wf(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{null!==l&&oi(l),Fo(a),o.resolving=!1,lh()}}return r}function vh(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function Dh(t,e){return!(t&Q.Self||t&Q.Host&&e)}class dr{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,i){return yh(this._tNode,this._lView,e,i,n)}}function R(t){return ai(()=>{const e=t.prototype.constructor,n=e[Wn]||eu(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const s=r[Wn]||eu(r);if(s&&s!==n)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function eu(t){return Of(t)?()=>{const e=eu(Y(t));return e&&e()}:Li(t)}const hr="__parameters__";function pr(t,e,n){return ai(()=>{const i=function nu(t){return function(...n){if(t){const i=t(...n);for(const r in i)this[r]=i[r]}}}(e);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,u,c){const d=l.hasOwnProperty(hr)?l[hr]:Object.defineProperty(l,hr,{value:[]})[hr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(o),l}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class W{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=N({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}function tn(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let i=t[n];Array.isArray(i)?(e===t&&(e=t.slice(0,n)),tn(i,e)):e!==t&&e.push(i)}return e}function In(t,e){t.forEach(n=>Array.isArray(n)?In(n,e):e(n))}function Ch(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Po(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ms(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function jt(t,e,n){let i=mr(t,e);return i>=0?t[1|i]=n:(i=~i,function yx(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function ru(t,e){const n=mr(t,e);if(n>=0)return t[1|n]}function mr(t,e){return function bh(t,e,n){let i=0,r=t.length>>n;for(;r!==i;){const s=i+(r-i>>1),o=t[s<<n];if(e===o)return s<<n;o>e?r=s:i=s+1}return~(r<<n)}(t,e,1)}const ys={},ou="__NG_DI_FLAG__",ko="ngTempTokenPath",Ex=/\n/gm,Sh="__source",Ax=fe({provide:String,useValue:fe});let _s;function Mh(t){const e=_s;return _s=t,e}function Sx(t,e=Q.Default){if(void 0===_s)throw new M(203,"");return null===_s?Vf(t,void 0,e):_s.get(t,e&Q.Optional?null:void 0,e)}function F(t,e=Q.Default){return(function fC(){return Ml}()||Sx)(Y(t),e)}const Vo=F;function au(t){const e=[];for(let n=0;n<t.length;n++){const i=Y(t[n]);if(Array.isArray(i)){if(0===i.length)throw new M(900,"");let r,s=Q.Default;for(let o=0;o<i.length;o++){const a=i[o],l=Mx(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(F(r,s))}else e.push(F(i))}return e}function vs(t,e){return t[ou]=e,t.prototype[ou]=e,t}function Mx(t){return t[ou]}const Bo=vs(pr("Optional"),8),jo=vs(pr("SkipSelf"),4);var Gt=(()=>((Gt=Gt||{})[Gt.Important=1]="Important",Gt[Gt.DashCase=2]="DashCase",Gt))();const Lh="__ngContext__";function ut(t,e){t[Lh]=e}function du(t){const e=function ws(t){return t[Lh]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function hu(t,e){return undefined(t,e)}function Cs(t){const e=t[3];return gn(e)?e[3]:e}function gu(t){return $h(t[13])}function pu(t){return $h(t[4])}function $h(t){for(;null!==t&&!gn(t);)t=t[4];return t}function _r(t,e,n,i,r){if(null!=i){let s,o=!1;gn(i)?s=i:Sn(i)&&(o=!0,i=i[0]);const a=Ve(i);0===t&&null!==n?null==r?Kh(e,n,a):ki(e,n,a,r||null,!0):1===t&&null!==n?ki(e,n,a,r||null,!0):2===t?function Cu(t,e,n){const i=Ho(t,e);i&&function sE(t,e,n,i){Ne(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=s&&function lE(t,e,n,i,r){const s=n[7];s!==Ve(n)&&_r(e,t,i,s,r);for(let a=10;a<n.length;a++){const l=n[a];xs(l[1],l,t,e,i,s)}}(e,t,s,n,r)}}function yu(t,e,n){if(Ne(t))return t.createElement(e,n);{const i=null!==n?function FC(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(n):null;return null===i?t.createElement(e):t.createElementNS(i,e)}}function zh(t,e){const n=t[9],i=n.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Hl(r,-1)),n.splice(i,1)}function _u(t,e){if(t.length<=10)return;const n=10+e,i=t[n];if(i){const r=i[17];null!==r&&r!==t&&zh(r,i),e>0&&(t[n-1][4]=i[4]);const s=Po(t,10+e);!function Zx(t,e){xs(t,e,e[K],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Wh(t,e){if(!(256&e[2])){const n=e[K];Ne(n)&&n.destroyNode&&xs(t,e,n,3,null,null),function eE(t){let e=t[13];if(!e)return vu(t[1],t);for(;e;){let n=null;if(Sn(e))n=e[13];else{const i=e[10];i&&(n=i)}if(!n){for(;e&&!e[4]&&e!==t;)Sn(e)&&vu(e[1],e),e=e[3];null===e&&(e=t),Sn(e)&&vu(e[1],e),n=e&&e[4]}e=n}}(e)}}function vu(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function rE(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i<n.length;i+=2){const r=e[n[i]];if(!(r instanceof cs)){const s=n[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(t,e),function iE(t,e){const n=t.cleanup,i=e[7];let r=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const o=n[s+1],a="function"==typeof o?o(e):Ve(e[o]),l=i[r=n[s+2]],u=n[s+3];"boolean"==typeof u?a.removeEventListener(n[s],l,u):u>=0?i[r=u]():i[r=-u].unsubscribe(),s+=2}else{const o=i[r=n[s+1]];n[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();e[7]=null}}(t,e),1===e[1].type&&Ne(e[K])&&e[K].destroy();const n=e[17];if(null!==n&&gn(e[3])){n!==e[3]&&zh(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function qh(t,e,n){return function Qh(t,e,n){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return n[0];if(2&i.flags){const r=t.data[i.directiveStart].encapsulation;if(r===fn.None||r===fn.Emulated)return null}return Vt(i,n)}(t,e.parent,n)}function ki(t,e,n,i,r){Ne(t)?t.insertBefore(e,n,i,r):e.insertBefore(n,i,r)}function Kh(t,e,n){Ne(t)?t.appendChild(e,n):e.appendChild(n)}function Yh(t,e,n,i,r){null!==i?ki(t,e,n,i,r):Kh(t,e,n)}function Ho(t,e){return Ne(t)?t.parentNode(e):e.parentNode}function Zh(t,e,n){return Jh(t,e,n)}let zo,Jh=function Xh(t,e,n){return 40&t.type?Vt(t,n):null};function $o(t,e,n,i){const r=qh(t,i,e),s=e[K],a=Zh(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(n))for(let l=0;l<n.length;l++)Yh(s,r,n[l],a,!1);else Yh(s,r,n,a,!1)}function Uo(t,e){if(null!==e){const n=e.type;if(3&n)return Vt(e,t);if(4&n)return wu(-1,t[e.index]);if(8&n){const i=e.child;if(null!==i)return Uo(t,i);{const r=t[e.index];return gn(r)?wu(-1,r):Ve(r)}}if(32&n)return hu(e,t)()||Ve(t[e.index]);{const i=tg(t,e);return null!==i?Array.isArray(i)?i[0]:Uo(Cs(t[16]),i):Uo(t,e.next)}}return null}function tg(t,e){return null!==e?t[16][6].projection[e.projection]:null}function wu(t,e){const n=10+t+1;if(n<e.length){const i=e[n],r=i[1].firstChild;if(null!==r)return Uo(i,r)}return e[7]}function xu(t,e,n,i,r,s,o){for(;null!=n;){const a=i[n.index],l=n.type;if(o&&0===e&&(a&&ut(Ve(a),i),n.flags|=4),64!=(64&n.flags))if(8&l)xu(t,e,n.child,i,r,s,!1),_r(e,t,r,a,s);else if(32&l){const u=hu(n,i);let c;for(;c=u();)_r(e,t,r,c,s);_r(e,t,r,a,s)}else 16&l?ng(t,e,i,n,r,s):_r(e,t,r,a,s);n=o?n.projectionNext:n.next}}function xs(t,e,n,i,r,s){xu(n,i,t.firstChild,e,r,s,!1)}function ng(t,e,n,i,r,s){const o=n[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++)_r(e,t,r,l[u],s);else xu(t,e,l,o[3],r,s,!0)}function ig(t,e,n){Ne(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Eu(t,e,n){Ne(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function Vi(t){var e;return(null===(e=function bu(){if(void 0===zo&&(zo=null,ue.trustedTypes))try{zo=ue.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return zo}())||void 0===e?void 0:e.createHTML(t))||t}class Bi{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class hE extends Bi{getTypeName(){return"HTML"}}class gE extends Bi{getTypeName(){return"Style"}}class pE extends Bi{getTypeName(){return"Script"}}class mE extends Bi{getTypeName(){return"URL"}}class yE extends Bi{getTypeName(){return"ResourceURL"}}function Ht(t){return t instanceof Bi?t.changingThisBreaksApplicationSecurity:t}function Tn(t,e){const n=ag(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function ag(t){return t instanceof Bi&&t.getTypeName()||null}class xE{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const n=(new window.DOMParser).parseFromString(Vi(e),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(e):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class EE{constructor(e){if(this.defaultDoc=e,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(e){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Vi(e),n;const i=this.inertDocument.createElement("body");return i.innerHTML=Vi(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const n=e.attributes;for(let r=n.length-1;0<r;r--){const o=n.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&e.removeAttribute(o)}let i=e.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const AE=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,SE=/^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 Es(t){return(t=String(t)).match(AE)||t.match(SE)?t:"unsafe:"+t}function ug(t){return(t=String(t)).split(",").map(e=>Es(e.trim())).join(", ")}function Fn(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function bs(...t){const e={};for(const n of t)for(const i in n)n.hasOwnProperty(i)&&(e[i]=!0);return e}const cg=Fn("area,br,col,hr,img,wbr"),dg=Fn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),fg=Fn("rp,rt"),Su=bs(cg,bs(dg,Fn("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")),bs(fg,Fn("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")),bs(fg,dg)),Mu=Fn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Iu=Fn("srcset"),hg=bs(Mu,Iu,Fn("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"),Fn("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")),ME=Fn("script,style,template");class IE{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let n=e.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(e){const n=e.nodeName.toLowerCase();if(!Su.hasOwnProperty(n))return this.sanitizedSomething=!0,!ME.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const i=e.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!hg.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;Mu[a]&&(l=Es(l)),Iu[a]&&(l=ug(l)),this.buf.push(" ",o,'="',gg(l),'"')}return this.buf.push(">"),!0}endElement(e){const n=e.nodeName.toLowerCase();Su.hasOwnProperty(n)&&!cg.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(e){this.buf.push(gg(e))}checkClobberedElement(e,n){if(n&&(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return n}}const TE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,FE=/([^\#-~ |!])/g;function gg(t){return t.replace(/&/g,"&amp;").replace(TE,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(FE,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let qo;function pg(t,e){let n=null;try{qo=qo||function lg(t){const e=new EE(t);return function bE(){try{return!!(new window.DOMParser).parseFromString(Vi(""),"text/html")}catch(t){return!1}}()?new xE(e):e}(t);let i=e?String(e):"";n=qo.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=qo.getInertBodyElement(i)}while(i!==s);return Vi((new IE).sanitizeChildren(Tu(n)||n))}finally{if(n){const i=Tu(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Tu(t){return"content"in t&&function NE(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ge=(()=>((ge=ge||{})[ge.NONE=0]="NONE",ge[ge.HTML=1]="HTML",ge[ge.STYLE=2]="STYLE",ge[ge.SCRIPT=3]="SCRIPT",ge[ge.URL=4]="URL",ge[ge.RESOURCE_URL=5]="RESOURCE_URL",ge))();function Nu(t){return t.ngOriginalError}function $E(t,...e){t.error(...e)}class Ss{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e),i=function HE(t){return t&&t.ngErrorLogger||$E}(e);i(this._console,"ERROR",e),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Nu(e);for(;n&&Nu(n);)n=Nu(n);return n||null}}const YE=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ue))();function Nn(t){return t instanceof Function?t():t}function vg(t,e,n){let i=t.length;for(;;){const r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const s=e.length;if(r+s===i||t.charCodeAt(r+s)<=32)return r}n=r+1}}const Dg="ng-template";function eb(t,e,n){let i=0;for(;i<t.length;){let r=t[i++];if(n&&"class"===r){if(r=t[i],-1!==vg(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function wg(t){return 4===t.type&&t.value!==Dg}function tb(t,e,n){return e===(4!==t.type||n?t.value:Dg)}function nb(t,e,n){let i=4;const r=t.attrs||[],s=function sb(t){for(let e=0;e<t.length;e++)if(ch(t[e]))return e;return t.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!tb(t,l,n)||""===l&&1===e.length){if(mn(i))return!1;o=!0}}else{const u=8&i?l:e[++a];if(8&i&&null!==t.attrs){if(!eb(t.attrs,u,n)){if(mn(i))return!1;o=!0}continue}const d=ib(8&i?"class":l,r,wg(t),n);if(-1===d){if(mn(i))return!1;o=!0;continue}if(""!==u){let f;f=d>s?"":r[d+1].toLowerCase();const h=8&i?f:null;if(h&&-1!==vg(h,u,0)||2&i&&u!==f){if(mn(i))return!1;o=!0}}}}else{if(!o&&!mn(i)&&!mn(l))return!1;if(o&&mn(l))continue;o=!1,i=l|1&i}}return mn(i)||o}function mn(t){return 0==(1&t)}function ib(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let s=!1;for(;r<e.length;){const o=e[r];if(o===t)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function ob(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function Cg(t,e,n=!1){for(let i=0;i<e.length;i++)if(nb(t,e[i],n))return!0;return!1}function ab(t,e){e:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let r=0;r<t.length;r++)if(t[r]!==i[r])continue e;return!0}}return!1}function xg(t,e){return t?":not("+e.trim()+")":e}function lb(t){let e=t[0],n=1,i=2,r="",s=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const a=t[++n];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!mn(o)&&(e+=xg(s,r),r=""),i=o,s=s||!mn(i);n++}return""!==r&&(e+=xg(s,r)),e}const q={};function Be(t){Eg(ie(),D(),vt()+t,!1)}function Eg(t,e,n,i){if(!i)if(3==(3&e[2])){const s=t.preOrderCheckHooks;null!==s&&So(e,s,n)}else{const s=t.preOrderHooks;null!==s&&Mo(e,s,0,n)}ci(n)}function Qo(t,e){return t<<17|e<<2}function yn(t){return t>>17&32767}function Ru(t){return 2|t}function Kn(t){return(131068&t)>>2}function Ou(t,e){return-131069&t|e<<2}function Pu(t){return 1|t}function Pg(t,e){const n=t.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 o=t.data[s];ql(r),o.contentQueries(2,e[s],s)}}}function Ms(t,e,n,i,r,s,o,a,l,u){const c=e.blueprint.slice();return c[0]=r,c[2]=140|i,Zf(c),c[3]=c[15]=t,c[8]=n,c[10]=o||t&&t[10],c[K]=a||t&&t[K],c[12]=l||t&&t[12]||null,c[9]=u||t&&t[9]||null,c[6]=s,c[16]=2==e.type?t[16]:c,c}function Dr(t,e,n,i,r){let s=t.data[e];if(null===s)s=function Uu(t,e,n,i,r){const s=eh(),o=$l(),l=t.data[e]=function Ab(t,e,n,i,r,s){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:e?e.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:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,n,e,i,r);return null===t.firstChild&&(t.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(t,e,n,i,r),function UC(){return z.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;const o=function us(){const t=z.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Mn(s,!0),s}function wr(t,e,n,i){if(0===n)return-1;const r=e.length;for(let s=0;s<n;s++)e.push(i),t.blueprint.push(i),t.data.push(null);return r}function Is(t,e,n){Eo(e);try{const i=t.viewQuery;null!==i&&Ju(1,i,n);const r=t.template;null!==r&&Lg(t,e,r,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Pg(t,e),t.staticViewQueries&&Ju(2,t.viewQuery,n);const s=t.components;null!==s&&function xb(t,e){for(let n=0;n<e.length;n++)Ub(t,e[n])}(e,s)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{e[2]&=-5,bo()}}function Cr(t,e,n,i){const r=e[2];if(256!=(256&r)){Eo(e);try{Zf(e),function th(t){return z.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==n&&Lg(t,e,n,2,i);const o=3==(3&r);if(o){const u=t.preOrderCheckHooks;null!==u&&So(e,u,null)}else{const u=t.preOrderHooks;null!==u&&Mo(e,u,0,null),Ql(e,0)}if(function Hb(t){for(let e=gu(t);null!==e;e=pu(e)){if(!e[2])continue;const n=e[9];for(let i=0;i<n.length;i++){const r=n[i],s=r[3];0==(1024&r[2])&&Hl(s,1),r[2]|=1024}}}(e),function Gb(t){for(let e=gu(t);null!==e;e=pu(e))for(let n=10;n<e.length;n++){const i=e[n],r=i[1];Gl(i)&&Cr(r,i,r.template,i[8])}}(e),null!==t.contentQueries&&Pg(t,e),o){const u=t.contentCheckHooks;null!==u&&So(e,u)}else{const u=t.contentHooks;null!==u&&Mo(e,u,1),Ql(e,1)}!function wb(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let i=0;i<n.length;i++){const r=n[i];if(r<0)ci(~r);else{const s=r,o=n[++i],a=n[++i];zC(o,s),a(2,e[s])}}}finally{ci(-1)}}(t,e);const a=t.components;null!==a&&function Cb(t,e){for(let n=0;n<e.length;n++)$b(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&Ju(2,l,i),o){const u=t.viewCheckHooks;null!==u&&So(e,u)}else{const u=t.viewHooks;null!==u&&Mo(e,u,2),Ql(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,Hl(e[3],-1))}finally{bo()}}}function Eb(t,e,n,i){const r=e[10],o=Yf(e);try{!o&&r.begin&&r.begin(),o&&Is(t,e,i),Cr(t,e,n,i)}finally{!o&&r.end&&r.end()}}function Lg(t,e,n,i,r){const s=vt(),o=2&i;try{ci(-1),o&&e.length>20&&Eg(t,e,20,!1),n(i,r)}finally{ci(s)}}function kg(t,e,n){if(Rl(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const o=t.data[s];o.contentQueries&&o.contentQueries(1,n[s],s)}}}function zu(t,e,n){!Jf()||(function Rb(t,e,n,i){const r=n.directiveStart,s=n.directiveEnd;t.firstCreatePass||fs(n,e),ut(i,e);const o=n.initialInputs;for(let a=r;a<s;a++){const l=t.data[a],u=pn(l);u&&Vb(e,n,l);const c=hs(e,t,a,n);ut(c,e),null!==o&&Bb(0,a-r,c,l,0,o),u&&(Bt(n.index,e)[8]=c)}}(t,e,n,Vt(n,e)),128==(128&n.flags)&&function Ob(t,e,n){const i=n.directiveStart,r=n.directiveEnd,o=n.index,a=function WC(){return z.lFrame.currentDirectiveIndex}();try{ci(o);for(let l=i;l<r;l++){const u=t.data[l],c=e[l];zl(l),(null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs)&&zg(u,c)}}finally{ci(-1),zl(a)}}(t,e,n))}function Wu(t,e,n=Vt){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?n(e,t):t[o];t[r++]=a}}}function Vg(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Zo(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Zo(t,e,n,i,r,s,o,a,l,u){const c=20+i,d=c+r,f=function bb(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:q);return n}(c,d),h="function"==typeof u?u():u;return f[1]={type:t,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,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 o?o():o,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1}}function Gg(t,e,n,i){const r=Zg(e);null===n?r.push(i):(r.push(n),t.firstCreatePass&&Xg(t).push(i,r.length-1))}function Hg(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,r):n[i]=[e,r]}return n}function qu(t,e,n,i){let r=!1;if(Jf()){const s=function Pb(t,e,n){const i=t.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Cg(n,o.selectors,!1)&&(r||(r=[]),Ro(fs(n,e),t,o.type),pn(o)?(Wg(t,n),r.unshift(o)):r.push(o))}return r}(t,e,n),o=null===i?null:{"":-1};if(null!==s){r=!0,qg(n,t.data.length,s.length);for(let c=0;c<s.length;c++){const d=s[c];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,u=wr(t,e,s.length,null);for(let c=0;c<s.length;c++){const d=s[c];n.mergedAttrs=To(n.mergedAttrs,d.hostAttrs),Qg(t,n,e,u,d),kb(u,d,o),null!==d.contentQueries&&(n.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(n.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),a=!0),!l&&(f.ngOnChanges||f.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),l=!0),u++}!function Sb(t,e){const i=e.directiveEnd,r=t.data,s=e.attrs,o=[];let a=null,l=null;for(let u=e.directiveStart;u<i;u++){const c=r[u],d=c.inputs,f=null===s||wg(e)?null:jb(d,s);o.push(f),a=Hg(d,u,a),l=Hg(c.outputs,u,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(t,n)}o&&function Lb(t,e,n){if(e){const i=t.localNames=[];for(let r=0;r<e.length;r+=2){const s=n[e[r+1]];if(null==s)throw new M(-301,!1);i.push(e[r],s)}}}(n,i,o)}return n.mergedAttrs=To(n.mergedAttrs,n.attrs),r}function Ug(t,e,n,i,r,s){const o=s.hostBindings;if(o){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~e.index;(function Nb(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function zg(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Wg(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function kb(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;pn(e)&&(n[""]=t)}}function qg(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Qg(t,e,n,i,r){t.data[i]=r;const s=r.factory||(r.factory=Li(r.type)),o=new cs(s,pn(r),null);t.blueprint[i]=o,n[i]=o,Ug(t,e,0,i,wr(t,n,r.hostVars,q),r)}function Vb(t,e,n){const i=Vt(e,t),r=Vg(n),s=t[10],o=Xo(t,Ms(t,r,null,n.onPush?64:16,i,e,s,s.createRenderer(i,n),null,null));t[e.index]=o}function Rn(t,e,n,i,r,s){const o=Vt(t,e);!function Qu(t,e,n,i,r,s,o){if(null==s)Ne(t)?t.removeAttribute(e,r,n):e.removeAttribute(r);else{const a=null==o?U(s):o(s,i||"",r);Ne(t)?t.setAttribute(e,r,a,n):n?e.setAttributeNS(n,r,a):e.setAttribute(r,a)}}(e[K],o,s,t.value,n,i,r)}function Bb(t,e,n,i,r,s){const o=s[e];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const u=o[l++],c=o[l++],d=o[l++];null!==a?i.setInput(n,d,u,c):n[c]=d}}}function jb(t,e){let n=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,t[r],e[i+1])),i+=2}else i+=2;else i+=4}return n}function Kg(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function $b(t,e){const n=Bt(e,t);if(Gl(n)){const i=n[1];80&n[2]?Cr(i,n,i.template,n[8]):n[5]>0&&Ku(n)}}function Ku(t){for(let i=gu(t);null!==i;i=pu(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];Cr(o,s,o.template,s[8])}else s[5]>0&&Ku(s)}const n=t[1].components;if(null!==n)for(let i=0;i<n.length;i++){const r=Bt(n[i],t);Gl(r)&&r[5]>0&&Ku(r)}}function Ub(t,e){const n=Bt(e,t),i=n[1];(function zb(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])})(i,n),Is(i,n,n[8])}function Xo(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Yu(t){for(;t;){t[2]|=64;const e=Cs(t);if(CC(t)&&!e)return t;t=e}return null}function Yg(t){!function Zu(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=du(n),r=i[1];Eb(r,i,r.template,n)}}(t[8])}function Ju(t,e,n){ql(0),e(t,n)}const qb=(()=>Promise.resolve(null))();function Zg(t){return t[7]||(t[7]=[])}function Xg(t){return t.cleanup||(t.cleanup=[])}function ep(t,e){const n=t[9],i=n?n.get(Ss,null):null;i&&i.handleError(e)}function tp(t,e,n,i,r){for(let s=0;s<n.length;){const o=n[s++],a=n[s++],l=e[o],u=t.data[o];null!==u.setInput?u.setInput(l,r,i,a):l[a]=r}}function Yn(t,e,n){const i=Co(e,t);!function Uh(t,e,n){Ne(t)?t.setValue(e,n):e.textContent=n}(t[K],i,n)}function Jo(t,e,n){let i=n?t.styles:null,r=n?t.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?r=El(r,a):2==s&&(i=El(i,a+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=r:t.classesWithoutHost=r}const ec=new W("INJECTOR",-1);class np{get(e,n=ys){if(n===ys){const i=new Error(`NullInjectorError: No provider for ${ae(e)}!`);throw i.name="NullInjectorError",i}return n}}const tc=new W("Set Injector scope."),Ts={},Yb={};let nc;function ip(){return void 0===nc&&(nc=new np),nc}function rp(t,e=null,n=null,i){const r=sp(t,e,n,i);return r._resolveInjectorDefTypes(),r}function sp(t,e=null,n=null,i){return new Zb(t,n,e||ip(),i)}class Zb{constructor(e,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&&In(n,a=>this.processProvider(a,e,n)),In([e],a=>this.processInjectorType(a,[],s)),this.records.set(ec,xr(void 0,this));const o=this.records.get(tc);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:ae(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,n=ys,i=Q.Default){this.assertNotDestroyed();const r=Mh(this),s=oi(void 0);try{if(!(i&Q.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function sA(t){return"function"==typeof t||"object"==typeof t&&t instanceof W}(e)&&Al(e);a=l&&this.injectableDefInScope(l)?xr(ic(e),Ts):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&Q.Self?ip():this.parent).get(e,n=i&Q.Optional&&n===ys?null:n)}catch(o){if("NullInjectorError"===o.name){if((o[ko]=o[ko]||[]).unshift(ae(e)),r)throw o;return function Ix(t,e,n,i){const r=t[ko];throw e[Sh]&&r.unshift(e[Sh]),t.message=function Tx(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=ae(e);if(Array.isArray(e))r=e.map(ae).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):ae(a)))}r=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(Ex,"\n ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t[ko]=null,t}(o,e,"R3InjectorError",this.source)}throw o}finally{oi(s),Mh(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(ae(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processInjectorType(e,n,i){if(!(e=Y(e)))return!1;let r=Lf(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=Lf(s)),null==r)return!1;if(null!=r.imports&&!a){let c;i.push(o);try{In(r.imports,d=>{this.processInjectorType(d,n,i)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;d<c.length;d++){const{ngModule:f,providers:h}=c[d];In(h,g=>this.processProvider(g,f,h||he))}}this.injectorDefTypes.add(o);const l=Li(o)||(()=>new o);this.records.set(o,xr(l,Ts));const u=r.providers;if(null!=u&&!a){const c=e;In(u,d=>this.processProvider(d,c,u))}return void 0!==s&&void 0!==e.providers}processProvider(e,n,i){let r=Er(e=Y(e))?e:Y(e&&e.provide);const s=function Jb(t,e,n){return ap(t)?xr(void 0,t.useValue):xr(function op(t,e,n){let i;if(Er(t)){const r=Y(t);return Li(r)||ic(r)}if(ap(t))i=()=>Y(t.useValue);else if(function tA(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...au(t.deps||[]));else if(function eA(t){return!(!t||!t.useExisting)}(t))i=()=>F(Y(t.useExisting));else{const r=Y(t&&(t.useClass||t.provide));if(!function iA(t){return!!t.deps}(t))return Li(r)||ic(r);i=()=>new r(...au(t.deps))}return i}(t),Ts)}(e);if(Er(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=xr(void 0,Ts,!0),o.factory=()=>au(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,n){return n.value===Ts&&(n.value=Yb,n.value=n.factory()),"object"==typeof n.value&&n.value&&function rA(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=Y(e.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function ic(t){const e=Al(t),n=null!==e?e.factory:Li(t);if(null!==n)return n;if(t instanceof W)throw new M(204,!1);if(t instanceof Function)return function Xb(t){const e=t.length;if(e>0)throw ms(e,"?"),new M(204,!1);const n=function uC(t){const e=t&&(t[go]||t[kf]);if(e){const n=function cC(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);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.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new M(204,!1)}function xr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ap(t){return null!==t&&"object"==typeof t&&Ax in t}function Er(t){return"function"==typeof t}let Mt=(()=>{class t{static create(n,i){var r;if(Array.isArray(n))return rp({name:""},i,n,"");{const s=null!==(r=n.name)&&void 0!==r?r:"";return rp({name:s},n.parent,n.providers,s)}}}return t.THROW_IF_NOT_FOUND=ys,t.NULL=new np,t.\u0275prov=N({token:t,providedIn:"any",factory:()=>F(ec)}),t.__NG_ELEMENT_ID__=-1,t})();function hA(t,e){Ao(du(t)[1],ze())}function b(t){let e=function vp(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const i=[t];for(;e;){let r;if(pn(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new M(903,"");r=e.\u0275dir}if(r){if(n){i.push(r);const o=t;o.inputs=oc(t.inputs),o.declaredInputs=oc(t.declaredInputs),o.outputs=oc(t.outputs);const a=r.hostBindings;a&&yA(t,a);const l=r.viewQuery,u=r.contentQueries;if(l&&pA(t,l),u&&mA(t,u),xl(t.inputs,r.inputs),xl(t.declaredInputs,r.declaredInputs),xl(t.outputs,r.outputs),pn(r)&&r.data.animation){const c=t.data;c.animation=(c.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(t),a===b&&(n=!1)}}e=Object.getPrototypeOf(e)}!function gA(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=To(r.hostAttrs,n=To(n,r.hostAttrs))}}(i)}function oc(t){return t===nr?{}:t===he?[]:t}function pA(t,e){const n=t.viewQuery;t.viewQuery=n?(i,r)=>{e(i,r),n(i,r)}:e}function mA(t,e){const n=t.contentQueries;t.contentQueries=n?(i,r,s)=>{e(i,r,s),n(i,r,s)}:e}function yA(t,e){const n=t.hostBindings;t.hostBindings=n?(i,r)=>{e(i,r),n(i,r)}:e}let ea=null;function br(){if(!ea){const t=ue.Symbol;if(t&&t.iterator)ea=t.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<e.length;++n){const i=e[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(ea=i)}}}return ea}function ac(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ct(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Pn(t,e,n,i){const r=D();return ct(r,lr(),e)&&(ie(),Rn(Ae(),r,t,e,n,i)),Pn}function Zn(t,e,n,i,r,s,o,a){const l=D(),u=ie(),c=t+20,d=u.firstCreatePass?function EA(t,e,n,i,r,s,o,a,l){const u=e.consts,c=Dr(e,t,4,o||null,ui(u,a));qu(e,n,c,ui(u,l)),Ao(e,c);const d=c.tViews=Zo(2,c,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u);return null!==e.queries&&(e.queries.template(e,c),d.queries=e.queries.embeddedTView(c)),c}(c,u,l,e,n,i,r,s,o):u.data[c];Mn(d,!1);const f=l[K].createComment("");$o(u,l,f,d),ut(f,l),Xo(l,l[c]=Kg(f,l,f,d)),wo(d)&&zu(u,l,d),null!=o&&Wu(l,d,a)}function p(t,e=Q.Default){const n=D();return null===n?F(t,e):yh(ze(),n,Y(t),e)}function dt(t,e,n){const i=D();return ct(i,lr(),e)&&function $t(t,e,n,i,r,s,o,a){const l=Vt(e,n);let c,u=e.inputs;!a&&null!=u&&(c=u[i])?(tp(t,n,c,i,r),Do(e)&&function Ib(t,e){const n=Bt(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(i=function Mb(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=o?o(r,e.value||"",i):r,Ne(s)?s.setProperty(l,i,r):Yl(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(ie(),Ae(),i,t,e,i[K],n,!1),dt}function fc(t,e,n,i,r){const o=r?"class":"style";tp(t,n,e.inputs[o],o,i)}function gi(t,e,n,i){const r=D(),s=ie(),o=20+t,a=r[K],l=r[o]=yu(a,e,function ex(){return z.lFrame.currentNamespace}()),u=s.firstCreatePass?function qA(t,e,n,i,r,s,o){const a=e.consts,u=Dr(e,t,2,r,ui(a,s));return qu(e,n,u,ui(a,o)),null!==u.attrs&&Jo(u,u.attrs,!1),null!==u.mergedAttrs&&Jo(u,u.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,u),u}(o,s,r,0,e,n,i):s.data[o];Mn(u,!0);const c=u.mergedAttrs;null!==c&&Io(a,l,c);const d=u.classes;null!==d&&Eu(a,l,d);const f=u.styles;return null!==f&&ig(a,l,f),64!=(64&u.flags)&&$o(s,r,l,u),0===function kC(){return z.lFrame.elementDepthCount}()&&ut(l,r),function VC(){z.lFrame.elementDepthCount++}(),wo(u)&&(zu(s,r,u),kg(s,u,r)),null!==i&&Wu(r,u),gi}function Gi(){let t=ze();$l()?Ul():(t=t.parent,Mn(t,!1));const e=t;!function BC(){z.lFrame.elementDepthCount--}();const n=ie();return n.firstCreatePass&&(Ao(n,t),Rl(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function sx(t){return 0!=(16&t.flags)}(e)&&fc(n,e,D(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function ox(t){return 0!=(32&t.flags)}(e)&&fc(n,e,D(),e.stylesWithoutHost,!1),Gi}function hc(t,e,n,i){return gi(t,e,n,i),Gi(),hc}function pi(t,e,n){const i=D(),r=ie(),s=t+20,o=r.firstCreatePass?function QA(t,e,n,i,r){const s=e.consts,o=ui(s,i),a=Dr(e,t,8,"ng-container",o);return null!==o&&Jo(a,o,!0),qu(e,n,a,ui(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,n):r.data[s];Mn(o,!0);const a=i[s]=i[K].createComment("");return $o(r,i,a,o),ut(a,i),wo(o)&&(zu(r,i,o),kg(r,o,i)),null!=n&&Wu(i,o),pi}function mi(){let t=ze();const e=ie();return $l()?Ul():(t=t.parent,Mn(t,!1)),e.firstCreatePass&&(Ao(e,t),Rl(t)&&e.queries.elementEnd(t)),mi}function ia(t){return!!t&&"function"==typeof t.then}const Gp=function jp(t){return!!t&&"function"==typeof t.subscribe};function rn(t,e,n,i){const r=D(),s=ie(),o=ze();return function $p(t,e,n,i,r,s,o,a){const l=wo(i),c=t.firstCreatePass&&Xg(t),d=e[8],f=Zg(e);let h=!0;if(3&i.type||a){const _=Vt(i,e),v=a?a(_):_,m=f.length,x=a?T=>a(Ve(T[i.index])):i.index;if(Ne(n)){let T=null;if(!a&&l&&(T=function YA(t,e,n,i){const r=t.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===n&&r[s+1]===i){const a=e[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(t,e,r,i.index)),null!==T)(T.__ngLastListenerFn__||T).__ngNextListenerFn__=s,T.__ngLastListenerFn__=s,h=!1;else{s=gc(i,e,d,s,!1);const j=n.listen(v,r,s);f.push(s,j),c&&c.push(r,x,m,m+1)}}else s=gc(i,e,d,s,!0),v.addEventListener(r,s,o),f.push(s),c&&c.push(r,x,m,o)}else s=gc(i,e,d,s,!1);const g=i.outputs;let y;if(h&&null!==g&&(y=g[r])){const _=y.length;if(_)for(let v=0;v<_;v+=2){const ce=e[y[v]][y[v+1]].subscribe(s),pe=f.length;f.push(s,ce),c&&c.push(r,i.index,pe,-(pe+1))}}}(s,r,r[K],o,t,e,!!n,i),rn}function Up(t,e,n,i){try{return!1!==n(i)}catch(r){return ep(t,r),!1}}function gc(t,e,n,i,r){return function s(o){if(o===Function)return i;const a=2&t.flags?Bt(t.index,e):e;0==(32&e[2])&&Yu(a);let l=Up(e,0,i,o),u=s.__ngNextListenerFn__;for(;u;)l=Up(e,0,u,o)&&l,u=u.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function Rs(t=1){return function QC(t){return(z.lFrame.contextLView=function KC(t,e){for(;t>0;)e=e[15],t--;return e}(t,z.lFrame.contextLView))[8]}(t)}function ZA(t,e){let n=null;const i=function rb(t){const e=t.attrs;if(null!=e){const n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?Cg(t,s,!0):ab(i,s))return r}else n=r}return n}function Os(t,e=0,n){const i=D(),r=ie(),s=Dr(r,20+t,16,null,n||null);null===s.projection&&(s.projection=e),Ul(),64!=(64&s.flags)&&function aE(t,e,n){ng(e[K],0,e,n,qh(t,n,e),Zh(n.parent||e[6],n,e))}(r,i,s)}function tm(t,e,n,i,r){const s=t[n+1],o=null===e;let a=i?yn(s):Kn(s),l=!1;for(;0!==a&&(!1===l||o);){const c=t[a+1];eS(t[a],e)&&(l=!0,t[a+1]=i?Pu(c):Ru(c)),a=i?yn(c):Kn(c)}l&&(t[n+1]=i?Ru(s):Pu(s))}function eS(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&mr(t,e)>=0}function ra(t,e,n){return vn(t,e,n,!1),ra}function Ps(t,e){return vn(t,e,null,!0),Ps}function vn(t,e,n,i){const r=D(),s=ie(),o=function Qn(t){const e=z.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}(2);s.firstUpdatePass&&function um(t,e,n,i){const r=t.data;if(null===r[n+1]){const s=r[vt()],o=function lm(t,e){return e>=t.expandoStartIndex}(t,n);(function hm(t,e){return 0!=(t.flags&(e?16:32))})(s,i)&&null===e&&!o&&(e=!1),e=function uS(t,e,n,i){const r=function Wl(t){const e=z.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=Ls(n=mc(null,t,e,n,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=mc(r,t,e,n,i),null===s){let l=function cS(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Kn(i))return t[yn(i)]}(t,e,i);void 0!==l&&Array.isArray(l)&&(l=mc(null,t,e,l[1],i),l=Ls(l,e.attrs,i),function dS(t,e,n,i){t[yn(n?e.classBindings:e.styleBindings)]=i}(t,e,i,l))}else s=function fS(t,e,n){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=Ls(i,t[s].hostAttrs,n);return Ls(i,e.attrs,n)}(t,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),n}(r,s,e,i),function XA(t,e,n,i,r,s){let o=s?e.classBindings:e.styleBindings,a=yn(o),l=Kn(o);t[i]=n;let c,u=!1;if(Array.isArray(n)){const d=n;c=d[1],(null===c||mr(d,c)>0)&&(u=!0)}else c=n;if(r)if(0!==l){const f=yn(t[a+1]);t[i+1]=Qo(f,a),0!==f&&(t[f+1]=Ou(t[f+1],i)),t[a+1]=function db(t,e){return 131071&t|e<<17}(t[a+1],i)}else t[i+1]=Qo(a,0),0!==a&&(t[a+1]=Ou(t[a+1],i)),a=i;else t[i+1]=Qo(l,0),0===a?a=i:t[l+1]=Ou(t[l+1],i),l=i;u&&(t[i+1]=Ru(t[i+1])),tm(t,c,i,!0),tm(t,c,i,!1),function JA(t,e,n,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&mr(s,e)>=0&&(n[i+1]=Pu(n[i+1]))}(e,c,t,i,s),o=Qo(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,n,o,i)}}(s,t,o,i),e!==q&&ct(r,o,e)&&function dm(t,e,n,i,r,s,o,a){if(!(3&e.type))return;const l=t.data,u=l[a+1];sa(function Sg(t){return 1==(1&t)}(u)?fm(l,e,n,r,Kn(u),o):void 0)||(sa(s)||function Ag(t){return 2==(2&t)}(u)&&(s=fm(l,null,n,r,a,o)),function uE(t,e,n,i,r){const s=Ne(t);if(e)r?s?t.addClass(n,i):n.classList.add(i):s?t.removeClass(n,i):n.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:Gt.DashCase;if(null==r)s?t.removeStyle(n,i,o):n.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=Gt.Important),s?t.setStyle(n,i,r,o):n.style.setProperty(i,r,a?"important":"")}}}(i,o,Co(vt(),n),r,s))}(s,s.data[vt()],r,r[K],t,r[o+1]=function pS(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=ae(Ht(t)))),t}(e,n),i,o)}function mc(t,e,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(s=e[a],i=Ls(i,s.hostAttrs,r),s!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function Ls(t,e,n){const i=n?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),jt(t,o,!!n||e[++s]))}return void 0===t?null:t}function fm(t,e,n,i,r,s){const o=null===e;let a;for(;r>0;){const l=t[r],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[r+1];f===q&&(f=d?he:void 0);let h=d?ru(f,i):c===i?f:void 0;if(u&&!sa(h)&&(h=ru(l,i)),sa(h)&&(a=h,o))return a;const g=t[r+1];r=o?yn(g):Kn(g)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=ru(l,i))}return a}function sa(t){return void 0!==t}function kr(t,e=""){const n=D(),i=ie(),r=t+20,s=i.firstCreatePass?Dr(i,r,1,e,null):i.data[r],o=n[r]=function mu(t,e){return Ne(t)?t.createText(e):t.createTextNode(e)}(n[K],e);$o(i,n,o,s),Mn(s,!1)}function Vr(t){return oa("",t,""),Vr}function oa(t,e,n){const i=D(),r=function Sr(t,e,n,i){return ct(t,lr(),n)?e+U(n)+i:q}(i,t,e,n);return r!==q&&Yn(i,vt(),r),oa}const Hi=void 0;var PS=["en",[["a","p"],["AM","PM"],Hi],[["AM","PM"],Hi,Hi],[["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"]],Hi,[["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"]],Hi,[["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}",Hi,"{1} 'at' {0}",Hi],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function OS(t){const n=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let Br={};function wt(t){const e=function LS(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Om(e);if(n)return n;const i=e.split("-")[0];if(n=Om(i),n)return n;if("en"===i)return PS;throw new Error(`Missing locale data for the locale "${t}".`)}function Om(t){return t in Br||(Br[t]=ue.ng&&ue.ng.common&&ue.ng.common.locales&&ue.ng.common.locales[t]),Br[t]}var S=(()=>((S=S||{})[S.LocaleId=0]="LocaleId",S[S.DayPeriodsFormat=1]="DayPeriodsFormat",S[S.DayPeriodsStandalone=2]="DayPeriodsStandalone",S[S.DaysFormat=3]="DaysFormat",S[S.DaysStandalone=4]="DaysStandalone",S[S.MonthsFormat=5]="MonthsFormat",S[S.MonthsStandalone=6]="MonthsStandalone",S[S.Eras=7]="Eras",S[S.FirstDayOfWeek=8]="FirstDayOfWeek",S[S.WeekendRange=9]="WeekendRange",S[S.DateFormat=10]="DateFormat",S[S.TimeFormat=11]="TimeFormat",S[S.DateTimeFormat=12]="DateTimeFormat",S[S.NumberSymbols=13]="NumberSymbols",S[S.NumberFormats=14]="NumberFormats",S[S.CurrencyCode=15]="CurrencyCode",S[S.CurrencySymbol=16]="CurrencySymbol",S[S.CurrencyName=17]="CurrencyName",S[S.Currencies=18]="Currencies",S[S.Directionality=19]="Directionality",S[S.PluralCase=20]="PluralCase",S[S.ExtraData=21]="ExtraData",S))();const aa="en-US";let Pm=aa;class oy{}class kM{resolveComponentFactory(e){throw function LM(t){const e=Error(`No component factory found for ${ae(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(e)}}let Gr=(()=>{class t{}return t.NULL=new kM,t})();function VM(){return Hr(ze(),D())}function Hr(t,e){return new ee(Vt(t,e))}let ee=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=VM,t})();function BM(t){return t instanceof ee?t.nativeElement:t}class Gs{}let Vn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function GM(){const t=D(),n=Bt(ze().index,t);return function jM(t){return t[K]}(Sn(n)?n:t)}(),t})(),HM=(()=>{class t{}return t.\u0275prov=N({token:t,providedIn:"root",factory:()=>null}),t})();class $r{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const $M=new $r("13.4.0"),xc={};function fa(t,e,n,i,r=!1){for(;null!==n;){const s=e[n.index];if(null!==s&&i.push(Ve(s)),gn(s))for(let a=10;a<s.length;a++){const l=s[a],u=l[1].firstChild;null!==u&&fa(l[1],l,u,i)}const o=n.type;if(8&o)fa(t,e,n.child,i);else if(32&o){const a=hu(n,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=tg(e,n);if(Array.isArray(a))i.push(...a);else{const l=Cs(e[16]);fa(l[1],l,a,i,!0)}}n=r?n.projectionNext:n.next}return i}class Hs{constructor(e,n){this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,n=e[1];return fa(n,e,n.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(gn(e)){const n=e[8],i=n?n.indexOf(this):-1;i>-1&&(_u(e,i),Po(n,i))}this._attachedToViewContainer=!1}Wh(this._lView[1],this._lView)}onDestroy(e){Gg(this._lView[1],this._lView,null,e)}markForCheck(){Yu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Xu(t,e,n){const i=e[10];i.begin&&i.begin();try{Cr(t,e,t.template,n)}catch(r){throw ep(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Jx(t,e){xs(t,e,e[K],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new M(902,"");this._appRef=e}}class UM extends Hs{constructor(e){super(e),this._view=e}detectChanges(){Yg(this._view)}checkNoChanges(){}get context(){return null}}class ly extends Gr{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=ot(e);return new Ec(n,this.ngModule)}}function uy(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}class Ec extends oy{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function ub(t){return t.map(lb).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return uy(this.componentDef.inputs)}get outputs(){return uy(this.componentDef.outputs)}create(e,n,i,r){const s=(r=r||this.ngModule)?function WM(t,e){return{get:(n,i,r)=>{const s=t.get(n,xc,r);return s!==xc||i===xc?s:e.get(n,i,r)}}}(e,r.injector):e,o=s.get(Gs,Kf),a=s.get(HM,null),l=o.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",c=i?function jg(t,e,n){if(Ne(t))return t.selectRootElement(e,n===fn.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):yu(o.createRenderer(null,this.componentDef),u,function zM(t){const e=t.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(u)),d=this.componentDef.onPush?576:528,f=function _p(t,e){return{components:[],scheduler:t||YE,clean:qb,playerHandler:e||null,flags:0}}(),h=Zo(0,null,null,1,0,null,null,null,null,null),g=Ms(null,h,f,d,null,null,o,l,a,s);let y,_;Eo(g);try{const v=function mp(t,e,n,i,r,s){const o=n[1];n[20]=t;const l=Dr(o,20,2,"#host",null),u=l.mergedAttrs=e.hostAttrs;null!==u&&(Jo(l,u,!0),null!==t&&(Io(r,t,u),null!==l.classes&&Eu(r,t,l.classes),null!==l.styles&&ig(r,t,l.styles)));const c=i.createRenderer(t,e),d=Ms(n,Vg(e),null,e.onPush?64:16,n[20],l,i,c,s||null,null);return o.firstCreatePass&&(Ro(fs(l,n),o,e.type),Wg(o,l),qg(l,n.length,1)),Xo(n,d),n[20]=d}(c,this.componentDef,g,o,l);if(c)if(i)Io(l,c,["ng-version",$M.full]);else{const{attrs:m,classes:x}=function cb(t){const e=[],n=[];let i=1,r=2;for(;i<t.length;){let s=t[i];if("string"==typeof s)2===r?""!==s&&e.push(s,t[++i]):8===r&&n.push(s);else{if(!mn(r))break;r=s}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);m&&Io(l,c,m),x&&x.length>0&&Eu(l,c,x.join(" "))}if(_=jl(h,20),void 0!==n){const m=_.projection=[];for(let x=0;x<this.ngContentSelectors.length;x++){const T=n[x];m.push(null!=T?Array.from(T):null)}}y=function yp(t,e,n,i,r){const s=n[1],o=function Fb(t,e,n){const i=ze();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Qg(t,i,e,wr(t,e,1,null),n));const r=hs(e,t,i.directiveStart,i);ut(r,e);const s=Vt(i,e);return s&&ut(s,e),r}(s,n,e);if(i.components.push(o),t[8]=o,r&&r.forEach(l=>l(o,e)),e.contentQueries){const l=ze();e.contentQueries(1,o,l.directiveStart)}const a=ze();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(ci(a.index),Ug(n[1],a,0,a.directiveStart,a.directiveEnd,e),zg(e,o)),o}(v,this.componentDef,g,f,[hA]),Is(h,g,null)}finally{bo()}return new QM(this.componentType,y,Hr(_,g),g,_)}}class QM extends class PM{}{constructor(e,n,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new UM(r),this.componentType=e}get injector(){return new dr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class Ur{}const zr=new Map;class fy extends Ur{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ly(this);const i=Xt(e);this._bootstrapComponents=Nn(i.bootstrap),this._r3Injector=sp(e,n,[{provide:Ur,useValue:this},{provide:Gr,useValue:this.componentFactoryResolver}],ae(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,n=Mt.THROW_IF_NOT_FOUND,i=Q.Default){return e===Mt||e===Ur||e===ec?this:this._r3Injector.get(e,n,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class bc extends class YM{}{constructor(e){super(),this.moduleType=e,null!==Xt(e)&&function ZM(t){const e=new Set;!function n(i){const r=Xt(i,!0),s=r.id;null!==s&&(function cy(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${ae(e)} vs ${ae(e.name)}`)}(s,zr.get(s),i),zr.set(s,i));const o=Nn(r.imports);for(const a of o)e.has(a)||(e.add(a),n(a))}(t)}(e)}create(e){return new fy(this.moduleType,e)}}function hy(t,e,n,i,r,s){const o=e+n;return ct(t,o,r)?function On(t,e,n){return t[e]=n}(t,o+1,s?i.call(s,r):i(r)):function $s(t,e){const n=t[e];return n===q?void 0:n}(t,o+1)}function vy(t,e,n){const i=t+20,r=D(),s=function ar(t,e){return t[e]}(r,i);return function Us(t,e){return t[1].data[e].pure}(r,i)?hy(r,function _t(){const t=z.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}(),e,s.transform,n,s):s.transform(n)}function Ac(t){return e=>{setTimeout(t,void 0,e)}}const tt=class g0 extends C{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,i){var r,s,o;let a=e,l=n||(()=>null),u=i;if(e&&"object"==typeof e){const d=e;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),u=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=Ac(l),a&&(a=Ac(a)),u&&(u=Ac(u)));const c=super.subscribe({next:a,error:l,complete:u});return e instanceof V&&e.add(c),c}};function p0(){return this._results[br()]()}class Sc{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=br(),i=Sc.prototype;i[n]||(i[n]=p0)}get changes(){return this._changes||(this._changes=new tt)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){const i=this;i.dirty=!1;const r=tn(e);(this._changesDetected=!function px(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],s=e[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;let Xn=(()=>{class t{}return t.__NG_ELEMENT_ID__=_0,t})();const m0=Xn,y0=class extends m0{constructor(e,n,i){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(e){const n=this._declarationTContainer.tViews,i=Ms(this._declarationLView,n,e,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)),Is(n,i,e),new Hs(i)}};function _0(){return ha(ze(),D())}function ha(t,e){return 4&t.type?new y0(e,t,Hr(t,e)):null}let Bn=(()=>{class t{}return t.__NG_ELEMENT_ID__=v0,t})();function v0(){return Cy(ze(),D())}const D0=Bn,Dy=class extends D0{constructor(e,n,i){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=i}get element(){return Hr(this._hostTNode,this._hostLView)}get injector(){return new dr(this._hostTNode,this._hostLView)}get parentInjector(){const e=No(this._hostTNode,this._hostLView);if(fh(e)){const n=cr(e,this._hostLView),i=ur(e);return new dr(n[1].data[i+8],n)}return new dr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=wy(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,i){const r=e.createEmbeddedView(n||{});return this.insert(r,i),r}createComponent(e,n,i,r,s){const o=e&&!function ps(t){return"function"==typeof t}(e);let a;if(o)a=n;else{const d=n||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new Ec(ot(e)),u=i||this.parentInjector;if(!s&&null==l.ngModule){const f=(o?u:this.parentInjector).get(Ur,null);f&&(s=f)}const c=l.create(u,r,void 0,s);return this.insert(c.hostView,a),c}insert(e,n){const i=e._lView,r=i[1];if(function LC(t){return gn(t[3])}(i)){const c=this.indexOf(e);if(-1!==c)this.detach(c);else{const d=i[3],f=new Dy(d,d[6],d[3]);f.detach(f.indexOf(e))}}const s=this._adjustIndex(n),o=this._lContainer;!function tE(t,e,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=e),i<s-10?(e[4]=n[r],Ch(n,10+i,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function nE(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(r,i,o,s);const a=wu(s,o),l=i[K],u=Ho(l,o[7]);return null!==u&&function Xx(t,e,n,i,r,s){i[0]=r,i[6]=e,xs(t,i,n,1,r,s)}(r,o[6],l,i,u,a),e.attachToViewContainerRef(),Ch(Mc(o),s,e),e}move(e,n){return this.insert(e,n)}indexOf(e){const n=wy(this._lContainer);return null!==n?n.indexOf(e):-1}remove(e){const n=this._adjustIndex(e,-1),i=_u(this._lContainer,n);i&&(Po(Mc(this._lContainer),n),Wh(i[1],i))}detach(e){const n=this._adjustIndex(e,-1),i=_u(this._lContainer,n);return i&&null!=Po(Mc(this._lContainer),n)?new Hs(i):null}_adjustIndex(e,n=0){return null==e?this.length+n:e}};function wy(t){return t[8]}function Mc(t){return t[8]||(t[8]=[])}function Cy(t,e){let n;const i=e[t.index];if(gn(i))n=i;else{let r;if(8&t.type)r=Ve(i);else{const s=e[K];r=s.createComment("");const o=Vt(t,e);ki(s,Ho(s,o),r,function oE(t,e){return Ne(t)?t.nextSibling(e):e.nextSibling}(s,o),!1)}e[t.index]=n=Kg(i,e,r,t),Xo(e,n)}return new Dy(n,t,e)}class Ic{constructor(e){this.queryList=e,this.matches=null}clone(){return new Ic(this.queryList)}setDirty(){this.queryList.setDirty()}}class Tc{constructor(e=[]){this.queries=e}createEmbeddedView(e){const n=e.queries;if(null!==n){const i=null!==e.contentQueries?e.contentQueries[0]:n.length,r=[];for(let s=0;s<i;s++){const o=n.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Tc(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)null!==Sy(e,n).matches&&this.queries[n].setDirty()}}class xy{constructor(e,n,i=null){this.predicate=e,this.flags=n,this.read=i}}class Fc{constructor(e=[]){this.queries=e}elementStart(e,n){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,n)}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e)}embeddedTView(e){let n=null;for(let i=0;i<this.length;i++){const r=null!==n?n.length:0,s=this.getByIndex(i).embeddedTView(e,r);s&&(s.indexInDeclarationView=i,null!==n?n.push(s):n=[s])}return null!==n?new Fc(n):null}template(e,n){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,n)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Nc{constructor(e,n=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,n){this.elementStart(e,n)}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new Nc(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,n){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(e,n,x0(n,s)),this.matchTNodeWithReadOption(e,n,Oo(n,e,s,!1,!1))}else i===Xn?4&n.type&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,Oo(n,e,i,!1,!1))}matchTNodeWithReadOption(e,n,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===ee||r===Bn||r===Xn&&4&n.type)this.addMatch(n.index,-2);else{const s=Oo(n,e,r,!1,!1);null!==s&&this.addMatch(n.index,s)}else this.addMatch(n.index,i)}}addMatch(e,n){null===this.matches?this.matches=[e,n]:this.matches.push(e,n)}}function x0(t,e){const n=t.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function b0(t,e,n,i){return-1===n?function E0(t,e){return 11&t.type?Hr(t,e):4&t.type?ha(t,e):null}(e,t):-2===n?function A0(t,e,n){return n===ee?Hr(e,t):n===Xn?ha(e,t):n===Bn?Cy(e,t):void 0}(t,e,i):hs(t,t[1],n,e)}function Ey(t,e,n,i){const r=e[19].queries[i];if(null===r.matches){const s=t.data,o=n.matches,a=[];for(let l=0;l<o.length;l+=2){const u=o[l];a.push(u<0?null:b0(e,s[u],o[l+1],n.metadata.read))}r.matches=a}return r.matches}function Rc(t,e,n,i){const r=t.queries.getByIndex(n),s=r.matches;if(null!==s){const o=Ey(t,e,r,n);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const u=s[a+1],c=e[-l];for(let d=10;d<c.length;d++){const f=c[d];f[17]===f[3]&&Rc(f[1],f,u,i)}if(null!==c[9]){const d=c[9];for(let f=0;f<d.length;f++){const h=d[f];Rc(h[1],h,u,i)}}}}}return i}function yi(t){const e=D(),n=ie(),i=ih();ql(i+1);const r=Sy(n,i);if(t.dirty&&Yf(e)===(2==(2&r.metadata.flags))){if(null===r.matches)t.reset([]);else{const s=r.crossesNgTemplate?Rc(n,e,i,[]):Ey(n,e,r,i);t.reset(s,BM),t.notifyOnChanges()}return!0}return!1}function ga(t,e,n){const i=ie();i.firstCreatePass&&(Ay(i,new xy(t,e,n),-1),2==(2&e)&&(i.staticViewQueries=!0)),by(i,D(),e)}function zs(t,e,n,i){const r=ie();if(r.firstCreatePass){const s=ze();Ay(r,new xy(e,n,i),s.index),function M0(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(n.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(r,t),2==(2&n)&&(r.staticContentQueries=!0)}by(r,D(),n)}function _i(){return function S0(t,e){return t[19].queries[e].queryList}(D(),ih())}function by(t,e,n){const i=new Sc(4==(4&n));Gg(t,e,i,i.destroy),null===e[19]&&(e[19]=new Tc),e[19].queries.push(new Ic(i))}function Ay(t,e,n){null===t.queries&&(t.queries=new Fc),t.queries.track(new Nc(e,n))}function Sy(t,e){return t.queries.getByIndex(e)}function ya(...t){}const Uy=new W("Application Initializer");let Bc=(()=>{class t{constructor(n){this.appInits=n,this.resolve=ya,this.reject=ya,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(ia(s))n.push(s);else if(Gp(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});n.push(o)}}Promise.all(n).then(()=>{i()}).catch(r=>{this.reject(r)}),0===n.length&&i(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(F(Uy,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const qs=new W("AppId",{providedIn:"root",factory:function zy(){return`${jc()}${jc()}${jc()}`}});function jc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Wy=new W("Platform Initializer"),jn=new W("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),qy=new W("appBootstrapListener"),vi=new W("LocaleId",{providedIn:"root",factory:()=>Vo(vi,Q.Optional|Q.SkipSelf)||function W0(){return"undefined"!=typeof $localize&&$localize.locale||aa}()}),Y0=(()=>Promise.resolve(0))();function Gc(t){"undefined"==typeof Zone?Y0.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class je{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new tt(!1),this.onMicrotaskEmpty=new tt(!1),this.onStable=new tt(!1),this.onError=new tt(!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)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&n,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Z0(){let t=ue.requestAnimationFrame,e=ue.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function eI(t){const e=()=>{!function J0(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(ue,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,$c(t),t.isCheckStableRunning=!0,Hc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),$c(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,o,a)=>{try{return Qy(t),n.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&e(),Ky(t)}},onInvoke:(n,i,r,s,o,a,l)=>{try{return Qy(t),n.invoke(r,s,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),Ky(t)}},onHasTask:(n,i,r,s)=>{n.hasTask(r,s),i===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,$c(t),Hc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,r,s)=>(n.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!je.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(je.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,n,i){return this._inner.run(e,n,i)}runTask(e,n,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,X0,ya,ya);try{return s.runTask(o,n,i)}finally{s.cancelTask(o)}}runGuarded(e,n,i){return this._inner.runGuarded(e,n,i)}runOutsideAngular(e){return this._outer.run(e)}}const X0={};function Hc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function $c(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Qy(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ky(t){t._nesting--,Hc(t)}class tI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new tt,this.onMicrotaskEmpty=new tt,this.onStable=new tt,this.onError=new tt}run(e,n,i){return e.apply(n,i)}runGuarded(e,n,i){return e.apply(n,i)}runOutsideAngular(e){return e()}runTask(e,n,i,r){return e.apply(n,i)}}let Uc=(()=>{class t{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:()=>{je.assertNotInAngularZone(),Gc(()=>{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())Gc(()=>{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(o=>o.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 t.\u0275fac=function(n){return new(n||t)(F(je))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),nI=(()=>{class t{constructor(){this._applications=new Map,zc.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 zc.findTestabilityInTree(this,n,i)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class iI{addToWindow(e){}findTestabilityInTree(e,n,i){return null}}let zc=new iI,$i=null;const Yy=new W("AllowMultipleToken"),Zy=new W("PlatformOnDestroy");function Xy(t,e,n=[]){const i=`Platform: ${e}`,r=new W(i);return(s=[])=>{let o=Wc();if(!o||o.injector.get(Yy,!1)){const a=[...n,...s,{provide:r,useValue:!0}];t?t(a):function aI(t){if($i&&!$i.get(Yy,!1))throw new M(400,"");$i=t;const e=t.get(Jy),n=t.get(Wy,null);n&&n.forEach(i=>i())}(function uI(t=[],e){return Mt.create({name:e,providers:[{provide:tc,useValue:"platform"},{provide:Zy,useValue:()=>$i=null},...t]})}(a,i))}return function lI(t){const e=Wc();if(!e)throw new M(401,"");return e}()}}function Wc(){var t;return null!==(t=null==$i?void 0:$i.get(Jy))&&void 0!==t?t:null}let Jy=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const a=function cI(t,e){let n;return n="noop"===t?new tI:("zone.js"===t?void 0:t)||new je({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:je,useValue:a}];return a.run(()=>{const u=Mt.create({providers:l,parent:this.injector,name:n.moduleType.name}),c=n.create(u),d=c.injector.get(Ss,null);if(!d)throw new M(402,"");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});c.onDestroy(()=>{Qc(this._modules,c),f.unsubscribe()})}),function dI(t,e,n){try{const i=n();return ia(i)?i.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(d,a,()=>{const f=c.injector.get(Bc);return f.runInitializers(),f.donePromise.then(()=>(function jS(t){Pt(t,"Expected localeId to be defined"),"string"==typeof t&&(Pm=t.toLowerCase().replace(/_/g,"-"))}(c.injector.get(vi,aa)||aa),this._moduleDoBootstrap(c),c))})})}bootstrapModule(n,i=[]){const r=e_({},i);return function sI(t,e,n){const i=new bc(n);return Promise.resolve(i)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(n){const i=n.injector.get(qc);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!n.instance.ngDoBootstrap)throw new M(403,"");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 M(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const n=this._injector.get(Zy,null);null==n||n(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(F(Mt))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function e_(t,e){return Array.isArray(e)?e.reduce(e_,t):Object.assign(Object.assign({},t),e)}let qc=(()=>{class t{constructor(n,i,r,s){this._zone=n,this._injector=i,this._exceptionHandler=r,this._initStatus=s,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 o=new oe(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new oe(l=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{je.assertNotInAngularZone(),Gc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{je.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{u.unsubscribe(),c.unsubscribe()}});this.isStable=fo(o,a.pipe(function iC(){return t=>Rf()(function eC(t,e){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return i.lift(new tC(r,e));const s=Object.create(i,Zw);return s.source=i,s.subjectFactory=r,s}}(nC)(t))}()))}bootstrap(n,i){if(!this._initStatus.done)throw new M(405,"");let r;r=n instanceof oy?n:this._injector.get(Gr).resolveComponentFactory(n),this.componentTypes.push(r.componentType);const s=function oI(t){return t.isBoundToModule}(r)?void 0:this._injector.get(Ur),a=r.create(Mt.NULL,[],i||r.selector,s),l=a.location.nativeElement,u=a.injector.get(Uc,null),c=u&&a.injector.get(nI);return u&&c&&c.registerApplication(l,u),a.onDestroy(()=>{this.detachView(a.hostView),Qc(this.components,a),c&&c.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new M(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;Qc(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(qy,[]).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 t.\u0275fac=function(n){return new(n||t)(F(je),F(Mt),F(Ss),F(Bc))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Qc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let n_=!0,Kc=(()=>{class t{}return t.__NG_ELEMENT_ID__=gI,t})();function gI(t){return function pI(t,e,n){if(Do(t)&&!n){const i=Bt(t.index,e);return new Hs(i,i)}return 47&t.type?new Hs(e[16],e):null}(ze(),D(),16==(16&t))}class c_{constructor(){}supports(e){return e instanceof Map||ac(e)}create(){return new EI}}class EI{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(e){let n;for(n=this._mapHead;null!==n;n=n._next)e(n)}forEachPreviousItem(e){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)e(n)}forEachChangedItem(e){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)e(n)}diff(e){if(e){if(!(e instanceof Map||ac(e)))throw new M(900,"")}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(e,(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(e,n){if(e){const i=e._prev;return n._next=e,n._prev=i,e._prev=n,i&&(i._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(e,n){if(this._records.has(e)){const r=this._records.get(e);this._maybeAddToChanges(r,n);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new bI(e);return this._records.set(e,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach(i=>n(e[i],i))}}class bI{constructor(e){this.key=e,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 f_(){return new zi([new c_])}let zi=(()=>{class t{constructor(n){this.factories=n}static create(n,i){if(i){const r=i.factories.slice();n=n.concat(r)}return new t(n)}static extend(n){return{provide:t,useFactory:i=>t.create(n,i||f_()),deps:[[t,new jo,new Bo]]}}find(n){const i=this.factories.find(s=>s.supports(n));if(i)return i;throw new M(901,"")}}return t.\u0275prov=N({token:t,providedIn:"root",factory:f_}),t})();const MI=Xy(null,"core",[]);let II=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(F(qc))},t.\u0275mod=Je({type:t}),t.\u0275inj=Ue({}),t})(),Da=null;function Wi(){return Da}const Qe=new W("DocumentToken");var It=(()=>((It=It||{})[It.Decimal=0]="Decimal",It[It.Percent=1]="Percent",It[It.Currency=2]="Currency",It[It.Scientific=3]="Scientific",It))(),P=(()=>((P=P||{})[P.Decimal=0]="Decimal",P[P.Group=1]="Group",P[P.List=2]="List",P[P.PercentSign=3]="PercentSign",P[P.PlusSign=4]="PlusSign",P[P.MinusSign=5]="MinusSign",P[P.Exponential=6]="Exponential",P[P.SuperscriptingExponent=7]="SuperscriptingExponent",P[P.PerMille=8]="PerMille",P[P.Infinity=9]="Infinity",P[P.NaN=10]="NaN",P[P.TimeSeparator=11]="TimeSeparator",P[P.CurrencyDecimal=12]="CurrencyDecimal",P[P.CurrencyGroup=13]="CurrencyGroup",P))();function sn(t,e){const n=wt(t),i=n[S.NumberSymbols][e];if(void 0===i){if(e===P.CurrencyDecimal)return n[S.NumberSymbols][P.Decimal];if(e===P.CurrencyGroup)return n[S.NumberSymbols][P.Group]}return i}const aT=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ad(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}const b_="browser";function qr(t){return t===b_}function Qr(t){return"server"===t}class fd{constructor(e,n){this._viewContainerRef=e,this._templateRef=n,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Na=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(n){this._ngSwitch=n,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(n)}_matchCase(n){const i=n==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(n){if(this._defaultViews&&n!==this._defaultUsed){this._defaultUsed=n;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(n)}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=w({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),T_=(()=>{class t{constructor(n,i,r){this.ngSwitch=r,r._addCase(),this._view=new fd(n,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(n){return new(n||t)(p(Bn),p(Xn),p(Na,9))},t.\u0275dir=w({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Ra=(()=>{class t{constructor(n,i,r){this._ngEl=n,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){const n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,i){const[r,s]=n.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(n){n.forEachRemovedItem(i=>this._setStyle(i.key,null)),n.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),n.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(n){return new(n||t)(p(ee),p(zi),p(Vn))},t.\u0275dir=w({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})();let R_=(()=>{class t{constructor(n){this._locale=n}transform(n,i,r){if(!function hd(t){return!(null==t||""===t||t!=t)}(n))return null;r=r||this._locale;try{return function hT(t,e,n){return function sd(t,e,n,i,r,s,o=!1){let a="",l=!1;if(isFinite(t)){let u=function pT(t){let i,r,s,o,a,e=Math.abs(t)+"",n=0;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(s=e.search(/e/i))>0?(r<0&&(r=s),r+=+e.slice(s+1),e=e.substring(0,s)):r<0&&(r=e.length),s=0;"0"===e.charAt(s);s++);if(s===(a=e.length))i=[0],r=1;else{for(a--;"0"===e.charAt(a);)a--;for(r-=s,i=[],o=0;s<=a;s++,o++)i[o]=Number(e.charAt(s))}return r>22&&(i=i.splice(0,21),n=r-1,r=1),{digits:i,exponent:n,integerLen:r}}(t);o&&(u=function gT(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(u));let c=e.minInt,d=e.minFrac,f=e.maxFrac;if(s){const m=s.match(aT);if(null===m)throw new Error(`${s} is not a valid digit info`);const x=m[1],T=m[3],j=m[5];null!=x&&(c=ad(x)),null!=T&&(d=ad(T)),null!=j?f=ad(j):null!=T&&d>f&&(f=d)}!function mT(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let i=t.digits,r=i.length-t.integerLen;const s=Math.min(Math.max(e,r),n);let o=s+t.integerLen,a=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(let d=o;d<i.length;d++)i[d]=0}else{r=Math.max(0,r),t.integerLen=1,i.length=Math.max(1,o=s+1),i[0]=0;for(let d=1;d<o;d++)i[d]=0}if(a>=5)if(o-1<0){for(let d=0;d>o;d--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;r<Math.max(0,s);r++)i.push(0);let l=0!==s;const u=e+t.integerLen,c=i.reduceRight(function(d,f,h,g){return g[h]=(f+=d)<10?f:f-10,l&&(0===g[h]&&h>=u?g.pop():l=!1),f>=10?1:0},0);c&&(i.unshift(c),t.integerLen++)}(u,d,f);let h=u.digits,g=u.integerLen;const y=u.exponent;let _=[];for(l=h.every(m=>!m);g<c;g++)h.unshift(0);for(;g<0;g++)h.unshift(0);g>0?_=h.splice(g,h.length):(_=h,h=[0]);const v=[];for(h.length>=e.lgSize&&v.unshift(h.splice(-e.lgSize,h.length).join(""));h.length>e.gSize;)v.unshift(h.splice(-e.gSize,h.length).join(""));h.length&&v.unshift(h.join("")),a=v.join(sn(n,i)),_.length&&(a+=sn(n,r)+_.join("")),y&&(a+=sn(n,P.Exponential)+"+"+y)}else a=sn(n,P.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function od(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],s=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let c=0;c<l.length;c++){const d=l.charAt(c);"0"===d?n.minFrac=n.maxFrac=c+1:"#"===d?n.maxFrac=c+1:n.posSuf+=d}const u=a.split(",");if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,s){const c=r.length-n.posPre.length-n.posSuf.length,d=s.indexOf("#");n.negPre=s.substr(0,d).replace(/'/g,""),n.negSuf=s.substr(d+c).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}(function ed(t,e){return wt(t)[S.NumberFormats][e]}(e,It.Decimal),sn(e,P.MinusSign)),e,P.Group,P.Decimal,n)}(function gd(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return t}(n),r,i)}catch(s){throw function Cn(t,e){return new M(2100,"")}()}}}return t.\u0275fac=function(n){return new(n||t)(p(vi,16))},t.\u0275pipe=St({name:"number",type:t,pure:!0}),t})();let O_=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Je({type:t}),t.\u0275inj=Ue({}),t})();class pd extends class EF extends class NI{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function FI(t){Da||(Da=t)}(new pd)}onAndCancel(e,n,i){return e.addEventListener(n,i,!1),()=>{e.removeEventListener(n,i,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=function bF(){return Xs=Xs||document.querySelector("base"),Xs?Xs.getAttribute("href"):null}();return null==n?null:function AF(t){Oa=Oa||document.createElement("a"),Oa.setAttribute("href",t);const e=Oa.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){Xs=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function _T(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const i=n.indexOf("="),[r,s]=-1==i?[n,""]:[n.slice(0,i),n.slice(i+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let Oa,Xs=null;const L_=new W("TRANSITION_ID"),MF=[{provide:Uy,useFactory:function SF(t,e,n){return()=>{n.get(Bc).donePromise.then(()=>{const i=Wi(),r=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[L_,Qe,Mt],multi:!0}];class md{static init(){!function rI(t){zc=t}(new md)}addToWindow(e){ue.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},ue.getAllAngularTestabilities=()=>e.getAllTestabilities(),ue.getAllAngularRootElements=()=>e.getAllRootElements(),ue.frameworkStabilizers||(ue.frameworkStabilizers=[]),ue.frameworkStabilizers.push(i=>{const r=ue.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,n,i){if(null==n)return null;const r=e.getTestability(n);return null!=r?r:i?Wi().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}let IF=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const Pa=new W("EventManagerPlugins");let La=(()=>{class t{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(r=>r.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,i,r){return this._findPluginFor(i).addEventListener(n,i,r)}addGlobalEventListener(n,i,r){return this._findPluginFor(i).addGlobalEventListener(n,i,r)}getZone(){return this._zone}_findPluginFor(n){const i=this._eventNameToPlugin.get(n);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(n))return this._eventNameToPlugin.set(n,o),o}throw new Error(`No event manager plugin found for event ${n}`)}}return t.\u0275fac=function(n){return new(n||t)(F(Pa),F(je))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();class k_{constructor(e){this._doc=e}addGlobalEventListener(e,n,i){const r=Wi().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${n}`);return this.addEventListener(r,n,i)}}let V_=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(n){const i=new Set;n.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),Js=(()=>{class t extends V_{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,i,r){n.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(n){const i=[];this._addStylesToHost(this._stylesSet,n,i),this._hostNodes.set(n,i)}removeHost(n){const i=this._hostNodes.get(n);i&&i.forEach(B_),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(n,r,i)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(B_))}}return t.\u0275fac=function(n){return new(n||t)(F(Qe))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();function B_(t){Wi().remove(t)}const yd={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},_d=/%COMP%/g;function ka(t,e,n){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?ka(t,r,n):(r=r.replace(_d,t),n.push(r))}return n}function H_(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Va=(()=>{class t{constructor(n,i,r){this.eventManager=n,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new vd(n)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;switch(i.encapsulation){case fn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new PF(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(n),r}case 1:case fn.ShadowDom:return new LF(this.eventManager,this.sharedStylesHost,n,i);default:if(!this.rendererByCompId.has(i.id)){const r=ka(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(F(La),F(Js),F(qs))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();class vd{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,n){return n?document.createElementNS(yd[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){e.appendChild(n)}insertBefore(e,n,i){e&&e.insertBefore(n,i)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return n||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,i,r){if(r){n=r+":"+n;const s=yd[r];s?e.setAttributeNS(s,n,i):e.setAttribute(n,i)}else e.setAttribute(n,i)}removeAttribute(e,n,i){if(i){const r=yd[i];r?e.removeAttributeNS(r,n):e.removeAttribute(`${i}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,i,r){r&(Gt.DashCase|Gt.Important)?e.style.setProperty(n,i,r&Gt.Important?"important":""):e.style[n]=i}removeStyle(e,n,i){i&Gt.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,i){e[n]=i}setValue(e,n){e.nodeValue=n}listen(e,n,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,H_(i)):this.eventManager.addEventListener(e,n,H_(i))}}class PF extends vd{constructor(e,n,i,r){super(e),this.component=i;const s=ka(r+"-"+i.id,i.styles,[]);n.addStyles(s),this.contentAttr=function NF(t){return"_ngcontent-%COMP%".replace(_d,t)}(r+"-"+i.id),this.hostAttr=function RF(t){return"_nghost-%COMP%".replace(_d,t)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const i=super.createElement(e,n);return super.setAttribute(i,this.contentAttr,""),i}}class LF extends vd{constructor(e,n,i,r){super(e),this.sharedStylesHost=n,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=ka(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,i){return super.insertBefore(this.nodeOrShadowRoot(e),n,i)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let kF=(()=>{class t extends k_{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,r){return n.addEventListener(i,r,!1),()=>this.removeEventListener(n,i,r)}removeEventListener(n,i,r){return n.removeEventListener(i,r)}}return t.\u0275fac=function(n){return new(n||t)(F(Qe))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const U_=["alt","control","meta","shift"],BF={"\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"},z_={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"},jF={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let GF=(()=>{class t extends k_{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,i,r){const s=t.parseEventName(i),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wi().onAndCancel(n,s.domEventName,o))}static parseEventName(n){const i=n.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(i.pop());let o="";if(U_.forEach(l=>{const u=i.indexOf(l);u>-1&&(i.splice(u,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(n){let i="",r=function HF(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&z_.hasOwnProperty(e)&&(e=z_[e]))}return BF[e]||e}(n);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),U_.forEach(s=>{s!=r&&jF[s](n)&&(i+=s+".")}),i+=r,i}static eventCallback(n,i,r){return s=>{t.getEventFullKey(s)===n&&r.runGuarded(()=>i(s))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return t.\u0275fac=function(n){return new(n||t)(F(Qe))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const WF=Xy(MI,"browser",[{provide:jn,useValue:b_},{provide:Wy,useValue:function $F(){pd.makeCurrent(),md.init()},multi:!0},{provide:Qe,useFactory:function zF(){return function NC(t){Vl=t}(document),document},deps:[]}]),qF=[{provide:tc,useValue:"root"},{provide:Ss,useFactory:function UF(){return new Ss},deps:[]},{provide:Pa,useClass:kF,multi:!0,deps:[Qe,je,jn]},{provide:Pa,useClass:GF,multi:!0,deps:[Qe]},{provide:Va,useClass:Va,deps:[La,Js,qs]},{provide:Gs,useExisting:Va},{provide:V_,useExisting:Js},{provide:Js,useClass:Js,deps:[Qe]},{provide:Uc,useClass:Uc,deps:[je]},{provide:La,useClass:La,deps:[Pa,je]},{provide:class CF{},useClass:IF,deps:[]}];let W_=(()=>{class t{constructor(n){if(n)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(n){return{ngModule:t,providers:[{provide:qs,useValue:n.appId},{provide:L_,useExisting:qs},MF]}}}return t.\u0275fac=function(n){return new(n||t)(F(t,12))},t.\u0275mod=Je({type:t}),t.\u0275inj=Ue({providers:qF,imports:[O_,II]}),t})();"undefined"!=typeof window&&window;let K_=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:function(n){let i=null;return i=n?new(n||t):F(Y_),i},providedIn:"root"}),t})(),Y_=(()=>{class t extends K_{constructor(n){super(),this._doc=n}sanitize(n,i){if(null==i)return null;switch(n){case ge.NONE:return i;case ge.HTML:return Tn(i,"HTML")?Ht(i):pg(this._doc,String(i)).toString();case ge.STYLE:return Tn(i,"Style")?Ht(i):i;case ge.SCRIPT:if(Tn(i,"Script"))return Ht(i);throw new Error("unsafe value used in a script context");case ge.URL:return ag(i),Tn(i,"URL")?Ht(i):Es(String(i));case ge.RESOURCE_URL:if(Tn(i,"ResourceURL"))return Ht(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${n} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(n){return function _E(t){return new hE(t)}(n)}bypassSecurityTrustStyle(n){return function vE(t){return new gE(t)}(n)}bypassSecurityTrustScript(n){return function DE(t){return new pE(t)}(n)}bypassSecurityTrustUrl(n){return function wE(t){return new mE(t)}(n)}bypassSecurityTrustResourceUrl(n){return function CE(t){return new yE(t)}(n)}}return t.\u0275fac=function(n){return new(n||t)(F(Qe))},t.\u0275prov=N({token:t,factory:function(n){let i=null;return i=n?new n:function iN(t){return new Y_(t.get(Qe))}(F(Mt)),i},providedIn:"root"}),t})();class rN extends V{constructor(e,n){super()}schedule(e,n=0){return this}}class sN extends rN{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){if(this.closed)return this;this.state=e;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(r,this.id,n),this}requestAsyncId(e,n,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,n,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return n;clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,n);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let r,i=!1;try{this.work(e)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,n=this.scheduler,i=n.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null}}let Z_=(()=>{class t{constructor(n,i=t.now){this.SchedulerAction=n,this.now=i}schedule(n,i=0,r){return new this.SchedulerAction(this,n).schedule(r,i)}}return t.now=()=>Date.now(),t})();class wi extends Z_{constructor(e,n=Z_.now){super(e,()=>wi.delegate&&wi.delegate!==this?wi.delegate.now():n()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,n=0,i){return wi.delegate&&wi.delegate!==this?wi.delegate.schedule(e,n,i):super.schedule(e,n,i)}flush(e){const{actions:n}=this;if(this.active)return void n.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=n.shift());if(this.active=!1,i){for(;e=n.shift();)e.unsubscribe();throw i}}}const lN=new class aN extends wi{}(class oN extends sN{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}schedule(e,n=0){return n>0?super.schedule(e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)}execute(e,n){return n>0||this.closed?super.execute(e,n):this._execute(e,n)}requestAsyncId(e,n,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,n,i):e.flush(this)}}),uN=new oe(t=>t.complete());function gN({error:t,subscriber:e}){e.error(t)}class an{constructor(e,n,i){this.kind=e,this.value=n,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,n,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return n&&n(this.error);case"C":return i&&i()}}accept(e,n,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,n,i)}toObservable(){switch(this.kind){case"N":return function fN(...t){let e=t[t.length-1];return $(e)?(t.pop(),vl(t,e)):Nf(t)}(this.value);case"E":return function hN(t,e){return new oe(e?n=>e.schedule(gN,0,{error:t,subscriber:n}):n=>n.error(t))}(this.error);case"C":return function cN(t){return t?function dN(t){return new oe(e=>t.schedule(()=>e.complete()))}(t):uN}()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new an("N",e):an.undefinedValueNotification}static createError(e){return new an("E",void 0,e)}static createComplete(){return an.completeNotification}}an.completeNotification=new an("C"),an.undefinedValueNotification=new an("N",void 0);class Ba extends L{constructor(e,n,i=0){super(e),this.scheduler=n,this.delay=i}static dispatch(e){const{notification:n,destination:i}=e;n.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Ba.dispatch,this.delay,new mN(e,this.destination)))}_next(e){this.scheduleMessage(an.createNext(e))}_error(e){this.scheduleMessage(an.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(an.createComplete()),this.unsubscribe()}}class mN{constructor(e,n){this.notification=e,this.destination=n}}class yN extends C{constructor(e=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new _N(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new $e;if(this.isStopped||this.hasError?o=V.EMPTY:(this.observers.push(e),o=new An(this,e)),r&&e.add(e=new Ba(e,r)),n)for(let a=0;a<s&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||lN).now()}_trimBufferThenGetEvents(){const e=this._getNow(),n=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(e-r[o].time<i);)o++;return s>n&&(o=Math.max(o,s-n)),o>0&&r.splice(0,o),r}}class _N{constructor(e,n){this.time=e,this.value=n}}function X_(t,e){return"function"==typeof e?n=>n.pipe(X_((i,r)=>co(t(i,r)).pipe(G((s,o)=>e(i,s,r,o))))):n=>n.lift(new vN(t))}class vN{constructor(e){this.project=e}call(e,n){return n.subscribe(new DN(e,this.project))}}class DN extends wl{constructor(e,n){super(e),this.project=n,this.index=0}_next(e){let n;const i=this.index++;try{n=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(n)}_innerSub(e){const n=this.innerSubscription;n&&n.unsubscribe();const i=new Dl(this),r=this.destination;r.add(i),this.innerSubscription=Cl(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const ja={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return ja.schedule(t,0);if(void 0===window.requestAnimationFrame)return ja.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};let wd;function IN(t,e,n){let i=n;return function CN(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((r,s)=>!("*"===r||!function EN(t,e){if(!wd){const n=Element.prototype;wd=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&wd.call(t,e)}(t,r)||(i=s,0))),i}class FN{constructor(e,n){this.componentFactory=n.get(Gr).resolveComponentFactory(e)}create(e){return new NN(this.componentFactory,e)}}class NN{constructor(e,n){this.componentFactory=e,this.injector=n,this.eventEmitters=new yN(1),this.events=this.eventEmitters.pipe(X_(i=>fo(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(je),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=ja.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,n){this.runInZone(()=>{null!==this.componentRef?function bN(t,e){return t===e||t!=t&&e!=e}(n,this.getInputValue(e))&&(void 0!==n||!this.unchangedInputs.has(e))||(this.recordInputChange(e,n),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=n,this.scheduleDetectChanges()):this.initialInputValues.set(e,n)})}initializeComponent(e){const n=Mt.create({providers:[],parent:this.injector}),i=function MN(t,e){const n=t.childNodes,i=e.map(()=>[]);let r=-1;e.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=n.length;s<o;++s){const a=n[s],l=IN(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(Kc),this.implementsOnChanges=function xN(t){return"function"==typeof t}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(qc).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const n=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe(G(o=>({name:r,value:o}))));this.eventEmitters.next(n)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const n=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(n)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=ja.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,n){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=n);const r=this.unchangedInputs.has(e),s=r?void 0:this.getInputValue(e);this.inputChanges[e]=new zf(s,n,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class RN extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class J_{}const ei="*";function ev(t,e=null){return{type:2,steps:t,options:e}}function tv(t){return{type:6,styles:t,offset:null}}function nv(t){Promise.resolve(null).then(t)}class eo{constructor(e=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){nv(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(i=>i()),n.length=0}}class iv{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let n=0,i=0,r=0;const s=this.players.length;0==s?nv(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++n==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const n=e*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,n/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((n,i)=>null===n||i.totalTime>n.totalTime?i:n,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(i=>i()),n.length=0}}const ne=!1;function rv(t){return new M(3e3,ne)}function pR(){return"undefined"!=typeof window&&void 0!==window.document}function xd(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Ci(t){switch(t.length){case 0:return new eo;case 1:return t[0];default:return new iv(t)}}function sv(t,e,n,i,r={},s={}){const o=[],a=[];let l=-1,u=null;if(i.forEach(c=>{const d=c.offset,f=d==l,h=f&&u||{};Object.keys(c).forEach(g=>{let y=g,_=c[g];if("offset"!==g)switch(y=e.normalizePropertyName(y,o),_){case"!":_=r[g];break;case ei:_=s[g];break;default:_=e.normalizeStyleValue(g,y,_,o)}h[y]=_}),f||a.push(h),u=h,l=d}),o.length)throw function rR(t){return new M(3502,ne)}();return a}function Ed(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&bd(n,"start",t)));break;case"done":t.onDone(()=>i(n&&bd(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&bd(n,"destroy",t)))}}function bd(t,e,n){const i=n.totalTime,s=Ad(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),o=t._data;return null!=o&&(s._data=o),s}function Ad(t,e,n,i,r="",s=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Ut(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function ov(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Sd=(t,e)=>!1,av=(t,e,n)=>[],lv=null;function Md(t){const e=t.parentNode||t.host;return e===lv?null:e}(xd()||"undefined"!=typeof Element)&&(pR()?(lv=(()=>document.documentElement)(),Sd=(t,e)=>{for(;e;){if(e===t)return!0;e=Md(e)}return!1}):Sd=(t,e)=>t.contains(e),av=(t,e,n)=>{if(n)return Array.from(t.querySelectorAll(e));const i=t.querySelector(e);return i?[i]:[]});let qi=null,uv=!1;function cv(t){qi||(qi=function yR(){return"undefined"!=typeof document?document.body:null}()||{},uv=!!qi.style&&"WebkitAppearance"in qi.style);let e=!0;return qi.style&&!function mR(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in qi.style,!e&&uv&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in qi.style)),e}const dv=Sd,fv=av;let hv=(()=>{class t{validateStyleProperty(n){return cv(n)}matchesElement(n,i){return!1}containsElement(n,i){return dv(n,i)}getParentElement(n){return Md(n)}query(n,i,r){return fv(n,i,r)}computeStyle(n,i,r){return r||""}animate(n,i,r,s,o,a=[],l){return new eo(r,s)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})(),Id=(()=>{class t{}return t.NOOP=new hv,t})();const Td="ng-enter",Ha="ng-leave",$a="ng-trigger",Ua=".ng-trigger",pv="ng-animating",Fd=".ng-animating";function Qi(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Nd(parseFloat(e[1]),e[2])}function Nd(t,e){return"s"===e?1e3*t:t}function za(t,e,n){return t.hasOwnProperty("duration")?t:function DR(t,e,n){let r,s=0,o="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(rv()),{duration:0,delay:0,easing:""};r=Nd(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Nd(parseFloat(l),a[4]));const u=a[5];u&&(o=u)}else r=t;if(!n){let a=!1,l=e.length;r<0&&(e.push(function LN(){return new M(3100,ne)}()),a=!0),s<0&&(e.push(function kN(){return new M(3101,ne)}()),a=!0),a&&e.splice(l,0,rv())}return{duration:r,delay:s,easing:o}}(t,e,n)}function Kr(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function xi(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else Kr(t,n);return n}function yv(t,e,n){return n?e+":"+n+";":""}function _v(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=yv(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=yv(0,xR(n),t.style[n]));t.setAttribute("style",e)}function Gn(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const r=Od(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]}),xd()&&_v(t))}function Ki(t,e){t.style&&(Object.keys(e).forEach(n=>{const i=Od(n);t.style[i]=""}),xd()&&_v(t))}function to(t){return Array.isArray(t)?1==t.length?t[0]:ev(t):t}const Rd=new RegExp("{{\\s*(.+?)\\s*}}","g");function vv(t){let e=[];if("string"==typeof t){let n;for(;n=Rd.exec(t);)e.push(n[1]);Rd.lastIndex=0}return e}function Wa(t,e,n){const i=t.toString(),r=i.replace(Rd,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(n.push(function BN(t){return new M(3003,ne)}()),a=""),a.toString()});return r==i?t:r}function qa(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const CR=/-+([a-z0-9])/g;function Od(t){return t.replace(CR,(...e)=>e[1].toUpperCase())}function xR(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function zt(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw function jN(t){return new M(3004,ne)}()}}function Dv(t,e){return window.getComputedStyle(t)[e]}function IR(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function TR(t,e,n){if(":"==t[0]){const l=function FR(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,i)=>parseFloat(i)>parseFloat(n);case":decrement":return(n,i)=>parseFloat(i)<parseFloat(n);default:return e.push(function eR(t){return new M(3016,ne)}()),"* => *"}}(t,n);if("function"==typeof l)return void e.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(function JN(t){return new M(3015,ne)}()),e;const r=i[1],s=i[2],o=i[3];e.push(wv(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(wv(o,r))}(i,n,e)):n.push(t),n}const Za=new Set(["true","1"]),Xa=new Set(["false","0"]);function wv(t,e){const n=Za.has(t)||Xa.has(t),i=Za.has(e)||Xa.has(e);return(r,s)=>{let o="*"==t||t==r,a="*"==e||e==s;return!o&&n&&"boolean"==typeof r&&(o=r?Za.has(t):Xa.has(t)),!a&&i&&"boolean"==typeof s&&(a=s?Za.has(e):Xa.has(e)),o&&a}}const NR=new RegExp("s*:selfs*,?","g");function Pd(t,e,n,i){return new RR(t).build(e,n,i)}class RR{constructor(e){this._driver=e}build(e,n,i){const r=new LR(n);this._resetContextStyleTimingState(r);const s=zt(this,to(e),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,n){let i=n.queryCount=0,r=n.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&n.errors.push(function HN(){return new M(3006,ne)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),0==a.type){const l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,s.push(this.visitState(l,n))}),l.name=u}else if(1==a.type){const l=this.visitTransition(a,n);i+=l.queryCount,r+=l.depCount,o.push(l)}else n.errors.push(function $N(){return new M(3007,ne)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,n){const i=this.visitStyle(e.styles,n),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(Ja(a)){const l=a;Object.keys(l).forEach(u=>{vv(l[u]).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}}),s.size&&(qa(s.values()),n.errors.push(function UN(t,e){return new M(3008,ne)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;const i=zt(this,to(e.animation),n);return{type:1,matchers:IR(e.expr,n.errors),animation:i,queryCount:n.queryCount,depCount:n.depCount,options:Yi(e.options)}}visitSequence(e,n){return{type:2,steps:e.steps.map(i=>zt(this,i,n)),options:Yi(e.options)}}visitGroup(e,n){const i=n.currentTime;let r=0;const s=e.steps.map(o=>{n.currentTime=i;const a=zt(this,o,n);return r=Math.max(r,n.currentTime),a});return n.currentTime=r,{type:3,steps:s,options:Yi(e.options)}}visitAnimate(e,n){const i=function VR(t,e){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Ld(za(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Ld(0,0,"");return s.dynamic=!0,s.strValue=n,s}const r=za(n,e);return Ld(r.duration,r.delay,r.easing)}(e.timings,n.errors);n.currentAnimateTimings=i;let r,s=e.styles?e.styles:tv({});if(5==s.type)r=this.visitKeyframes(s,n);else{let o=e.styles,a=!1;if(!o){a=!0;const u={};i.easing&&(u.easing=i.easing),o=tv(u)}n.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,n);l.isEmptyStep=a,r=l}return n.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,n){const i=this._makeStyleAst(e,n);return this._validateStyleAst(i,n),i}_makeStyleAst(e,n){const i=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==ei?i.push(o):n.errors.push(function zN(t){return new M(3002,ne)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(Ja(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let u in a)if(a[u].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,n){const i=n.currentAnimateTimings;let r=n.currentTime,s=n.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void n.unsupportedCSSPropertiesFound.add(a);const l=n.collectedStyles[n.currentQuerySelector],u=l[a];let c=!0;u&&(s!=r&&s>=u.startTime&&r<=u.endTime&&(n.errors.push(function WN(t,e,n,i,r){return new M(3010,ne)}()),c=!1),s=u.startTime),c&&(l[a]={startTime:s,endTime:r}),n.options&&function wR(t,e,n){const i=e.params||{},r=vv(t);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||n.push(function VN(t){return new M(3001,ne)}())})}(o[a],n.options,n.errors)})})}visitKeyframes(e,n){const i={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function qN(){return new M(3011,ne)}()),i;let s=0;const o=[];let a=!1,l=!1,u=0;const c=e.steps.map(v=>{const m=this._makeStyleAst(v,n);let x=null!=m.offset?m.offset:function kR(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(n=>{if(Ja(n)&&n.hasOwnProperty("offset")){const i=n;e=parseFloat(i.offset),delete i.offset}});else if(Ja(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(m.styles),T=0;return null!=x&&(s++,T=m.offset=x),l=l||T<0||T>1,a=a||T<u,u=T,o.push(T),m});l&&n.errors.push(function QN(){return new M(3012,ne)}()),a&&n.errors.push(function KN(){return new M(3200,ne)}());const d=e.steps.length;let f=0;s>0&&s<d?n.errors.push(function YN(){return new M(3202,ne)}()):0==s&&(f=1/(d-1));const h=d-1,g=n.currentTime,y=n.currentAnimateTimings,_=y.duration;return c.forEach((v,m)=>{const x=f>0?m==h?1:f*m:o[m],T=x*_;n.currentTime=g+y.delay+T,y.duration=T,this._validateStyleAst(v,n),v.offset=x,i.styles.push(v)}),i}visitReference(e,n){return{type:8,animation:zt(this,to(e.animation),n),options:Yi(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:9,options:Yi(e.options)}}visitAnimateRef(e,n){return{type:10,animation:this.visitReference(e.animation,n),options:Yi(e.options)}}visitQuery(e,n){const i=n.currentQuerySelector,r=e.options||{};n.queryCount++,n.currentQuery=e;const[s,o]=function OR(t){const e=!!t.split(/\s*,\s*/).find(n=>":self"==n);return e&&(t=t.replace(NR,"")),t=t.replace(/@\*/g,Ua).replace(/@\w+/g,n=>Ua+"-"+n.substr(1)).replace(/:animating/g,Fd),[t,e]}(e.selector);n.currentQuerySelector=i.length?i+" "+s:s,Ut(n.collectedStyles,n.currentQuerySelector,{});const a=zt(this,to(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Yi(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(function ZN(){return new M(3013,ne)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:za(e.timings,n.errors,!0);return{type:12,animation:zt(this,to(e.animation),n),timings:i,options:null}}}class LR{constructor(e){this.errors=e,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,this.unsupportedCSSPropertiesFound=new Set}}function Ja(t){return!Array.isArray(t)&&"object"==typeof t}function Yi(t){return t?(t=Kr(t)).params&&(t.params=function PR(t){return t?Kr(t):null}(t.params)):t={},t}function Ld(t,e,n){return{duration:t,delay:e,easing:n}}function kd(t,e,n,i,r,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class el{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,n){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const GR=new RegExp(":enter","g"),$R=new RegExp(":leave","g");function Vd(t,e,n,i,r,s={},o={},a,l,u=[]){return(new UR).buildKeyframes(t,e,n,i,r,s,o,a,l,u)}class UR{buildKeyframes(e,n,i,r,s,o,a,l,u,c=[]){u=u||new el;const d=new Bd(e,n,u,r,s,c,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),zt(this,i,d);const f=d.timelines.filter(h=>h.containsAnimation());if(Object.keys(a).length){let h;for(let g=f.length-1;g>=0;g--){const y=f[g];if(y.element===n){h=y;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,d.errors,l)}return f.length?f.map(h=>h.buildKeyframes()):[kd(n,[],[],[],0,0,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){const i=n.subInstructions.get(n.element);if(i){const r=n.createSubContext(e.options),s=n.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&n.transformIntoNewTimeline(o)}n.previousNode=e}visitAnimateRef(e,n){const i=n.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),n.transformIntoNewTimeline(i.currentTimeline.currentTime),n.previousNode=e}_visitSubInstructions(e,n,i){let s=n.currentTimeline.currentTime;const o=null!=i.duration?Qi(i.duration):null,a=null!=i.delay?Qi(i.delay):null;return 0!==o&&e.forEach(l=>{const u=n.appendInstructionToTimeline(l,o,a);s=Math.max(s,u.duration+u.delay)}),s}visitReference(e,n){n.updateOptions(e.options,!0),zt(this,e.animation,n),n.previousNode=e}visitSequence(e,n){const i=n.subContextCount;let r=n;const s=e.options;if(s&&(s.params||s.delay)&&(r=n.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=tl);const o=Qi(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>zt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){const i=[];let r=n.currentTimeline.currentTime;const s=e.options&&e.options.delay?Qi(e.options.delay):0;e.steps.forEach(o=>{const a=n.createSubContext(e.options);s&&a.delayNextStep(s),zt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>n.currentTimeline.mergeTimelineCollectedStyles(o)),n.transformIntoNewTimeline(r),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){const i=e.strValue;return za(n.params?Wa(i,n.params,n.errors):i,n.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){const i=n.currentAnimateTimings=this._visitTiming(e.timings,n),r=n.currentTimeline;i.delay&&(n.incrementTime(i.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,n):(n.incrementTime(i.duration),this.visitStyle(s,n),r.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){const i=n.currentTimeline,r=n.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){const i=n.currentAnimateTimings,r=n.currentTimeline.duration,s=i.duration,a=n.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(r+s),n.previousNode=e}visitQuery(e,n){const i=n.currentTimeline.currentTime,r=e.options||{},s=r.delay?Qi(r.delay):0;s&&(6===n.previousNode.type||0==i&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=tl);let o=i;const a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,n.errors);n.currentQueryTotal=a.length;let l=null;a.forEach((u,c)=>{n.currentQueryIndex=c;const d=n.createSubContext(e.options,u);s&&d.delayNextStep(s),u===n.element&&(l=d.currentTimeline),zt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(o),l&&(n.currentTimeline.mergeTimelineCollectedStyles(l),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){const i=n.parentContext,r=n.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(n.currentQueryTotal-1);let l=o*n.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const c=n.currentTimeline;l&&c.delayNextStep(l);const d=c.currentTime;zt(this,e.animation,n),n.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const tl={};class Bd{constructor(e,n,i,r,s,o,a,l){this._driver=e,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=tl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new nl(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=Qi(i.duration)),null!=i.delay&&(r.delay=Qi(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!n||!o.hasOwnProperty(a))&&(o[a]=Wa(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const n=this.options.params;if(n){const i=e.params={};Object.keys(n).forEach(r=>{i[r]=n[r]})}}return e}createSubContext(e=null,n,i){const r=n||this.element,s=new Bd(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=tl,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,i){const r={duration:null!=n?n:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},s=new zR(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(GR,"."+this._enterClassName)).replace($R,"."+this._leaveClassName);let u=this._driver.query(this.element,e,1!=i);0!==i&&(u=i<0?u.slice(u.length+i,u.length):u.slice(0,i)),a.push(...u)}return!s&&0==a.length&&o.push(function XN(t){return new M(3014,ne)}()),a}}class nl{constructor(e,n,i,r){this._driver=e,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,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(e){const n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new nl(this._driver,e,n||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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles[e]=n,this._globalTimelineStyles[e]=n,this._styleSummary[e]={time:this.currentTime,value:n}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(n=>{this._backFill[n]=this._globalTimelineStyles[n]||ei,this._currentKeyframe[n]=ei}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,i,r){n&&(this._previousKeyframe.easing=n);const s=r&&r.params||{},o=function WR(t,e){const n={};let i;return t.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{n[s]=ei})):xi(r,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Wa(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:ei),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(i=>{this._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const n=this._localTimelineStyles[e];this._pendingStyles[e]=n,this._updateStyle(e,n)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(n=>{const i=this._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&this._updateStyle(n,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const u=xi(a,!0);Object.keys(u).forEach(c=>{const d=u[c];"!"==d?e.add(c):d==ei&&n.add(c)}),i||(u.offset=l/this.duration),r.push(u)});const s=e.size?qa(e.values()):[],o=n.size?qa(n.values()):[];if(i){const a=r[0],l=Kr(a);a.offset=0,l.offset=1,r=[a,l]}return kd(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class zR extends nl{constructor(e,n,i,r,s,o,a=!1){super(e,n,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&n){const s=[],o=i+n,a=n/o,l=xi(e[0],!1);l.offset=0,s.push(l);const u=xi(e[0],!1);u.offset=Ev(a),s.push(u);const c=e.length-1;for(let d=1;d<=c;d++){let f=xi(e[d],!1);f.offset=Ev((n+f.offset*i)/o),s.push(f)}i=o,n=0,r="",e=s}return kd(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}function Ev(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class jd{}class qR extends jd{normalizePropertyName(e,n){return Od(e)}normalizeStyleValue(e,n,i,r){let s="";const o=i.toString().trim();if(QR[n]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function GN(t,e){return new M(3005,ne)}())}return o+s}}const QR=(()=>function KR(t){const e={};return t.forEach(n=>e[n]=!0),e}("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 bv(t,e,n,i,r,s,o,a,l,u,c,d,f){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:f}}const Gd={};class Av{constructor(e,n,i){this._triggerName=e,this.ast=n,this._stateStyles=i}match(e,n,i,r){return function YR(t,e,n,i,r){return t.some(s=>s(e,n,i,r))}(this.ast.matchers,e,n,i,r)}buildStyles(e,n,i){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(n,i):{};return s?s.buildStyles(n,i):o}build(e,n,i,r,s,o,a,l,u,c){const d=[],f=this.ast.options&&this.ast.options.params||Gd,g=this.buildStyles(i,a&&a.params||Gd,d),y=l&&l.params||Gd,_=this.buildStyles(r,y,d),v=new Set,m=new Map,x=new Map,T="void"===r,j={params:Object.assign(Object.assign({},f),y)},ce=c?[]:Vd(e,n,this.ast.animation,s,o,g,_,j,u,d);let pe=0;if(ce.forEach(qt=>{pe=Math.max(qt.duration+qt.delay,pe)}),d.length)return bv(n,this._triggerName,i,r,T,g,_,[],[],m,x,pe,d);ce.forEach(qt=>{const Qt=qt.element,ts=Ut(m,Qt,{});qt.preStyleProps.forEach(En=>ts[En]=!0);const ii=Ut(x,Qt,{});qt.postStyleProps.forEach(En=>ii[En]=!0),Qt!==n&&v.add(Qt)});const Wt=qa(v.values());return bv(n,this._triggerName,i,r,T,g,_,ce,Wt,m,x,pe)}}class ZR{constructor(e,n,i){this.styles=e,this.defaultParams=n,this.normalizer=i}buildStyles(e,n){const i={},r=Kr(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Wa(l,r,n));const u=this.normalizer.normalizePropertyName(a,n);l=this.normalizer.normalizeStyleValue(a,u,l,n),i[u]=l})}}),i}}class JR{constructor(e,n,i){this.name=e,this.ast=n,this._normalizer=i,this.transitionFactories=[],this.states={},n.states.forEach(r=>{this.states[r.name]=new ZR(r.style,r.options&&r.options.params||{},i)}),Sv(this.states,"true","1"),Sv(this.states,"false","0"),n.transitions.forEach(r=>{this.transitionFactories.push(new Av(e,r,this.states))}),this.fallbackTransition=function eO(t,e,n){return new Av(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,i,r){return this.transitionFactories.find(o=>o.match(e,n,i,r))||null}matchStyles(e,n,i){return this.fallbackTransition.buildStyles(e,n,i)}}function Sv(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const tO=new el;class nO{constructor(e,n,i){this.bodyNode=e,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(e,n){const i=[],s=Pd(this._driver,n,i,[]);if(i.length)throw function sR(t){return new M(3503,ne)}();this._animations[e]=s}_buildPlayer(e,n,i){const r=e.element,s=sv(0,this._normalizer,0,e.keyframes,n,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,n,i={}){const r=[],s=this._animations[e];let o;const a=new Map;if(s?(o=Vd(this._driver,n,s,Td,Ha,{},{},i,tO,r),o.forEach(c=>{const d=Ut(a,c.element,{});c.postStyleProps.forEach(f=>d[f]=null)})):(r.push(function oR(){return new M(3300,ne)}()),o=[]),r.length)throw function aR(t){return new M(3504,ne)}();a.forEach((c,d)=>{Object.keys(c).forEach(f=>{c[f]=this._driver.computeStyle(d,f,ei)})});const u=Ci(o.map(c=>{const d=a.get(c.element);return this._buildPlayer(c,{},d)}));return this._playersById[e]=u,u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){const n=this._getPlayer(e);n.destroy(),delete this._playersById[e];const i=this.players.indexOf(n);i>=0&&this.players.splice(i,1)}_getPlayer(e){const n=this._playersById[e];if(!n)throw function lR(t){return new M(3301,ne)}();return n}listen(e,n,i,r){const s=Ad(n,"","","");return Ed(this._getPlayer(e),i,s,r),()=>{}}command(e,n,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,n,r[0]||{});const s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const Mv="ng-animate-queued",Hd="ng-animate-disabled",aO=[],Iv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lO={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ln="__ng_removed";class $d{constructor(e,n=""){this.namespaceId=n;const i=e&&e.hasOwnProperty("value");if(this.value=function fO(t){return null!=t?t:null}(i?e.value:e),i){const s=Kr(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const n=e.params;if(n){const i=this.options.params;Object.keys(n).forEach(r=>{null==i[r]&&(i[r]=n[r])})}}}const no="void",Ud=new $d(no);class uO{constructor(e,n,i){this.id=e,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,un(n,this._hostClassName)}listen(e,n,i,r){if(!this._triggers.hasOwnProperty(n))throw function uR(t,e){return new M(3302,ne)}();if(null==i||0==i.length)throw function cR(t){return new M(3303,ne)}();if(!function hO(t){return"start"==t||"done"==t}(i))throw function dR(t,e){return new M(3400,ne)}();const s=Ut(this._elementListeners,e,[]),o={name:n,phase:i,callback:r};s.push(o);const a=Ut(this._engine.statesByElement,e,{});return a.hasOwnProperty(n)||(un(e,$a),un(e,$a+"-"+n),a[n]=Ud),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[n]||delete a[n]})}}register(e,n){return!this._triggers[e]&&(this._triggers[e]=n,!0)}_getTrigger(e){const n=this._triggers[e];if(!n)throw function fR(t){return new M(3401,ne)}();return n}trigger(e,n,i,r=!0){const s=this._getTrigger(n),o=new zd(this.id,n,e);let a=this._engine.statesByElement.get(e);a||(un(e,$a),un(e,$a+"-"+n),this._engine.statesByElement.set(e,a={}));let l=a[n];const u=new $d(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a[n]=u,l||(l=Ud),u.value!==no&&l.value===u.value){if(!function mO(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let r=0;r<n.length;r++){const s=n[r];if(!e.hasOwnProperty(s)||t[s]!==e[s])return!1}return!0}(l.params,u.params)){const y=[],_=s.matchStyles(l.value,l.params,y),v=s.matchStyles(u.value,u.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{Ki(e,_),Gn(e,v)})}return}const f=Ut(this._engine.playersByElement,e,[]);f.forEach(y=>{y.namespaceId==this.id&&y.triggerName==n&&y.queued&&y.destroy()});let h=s.matchTransition(l.value,u.value,e,u.params),g=!1;if(!h){if(!r)return;h=s.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:h,fromState:l,toState:u,player:o,isFallbackTransition:g}),g||(un(e,Mv),o.onStart(()=>{Yr(e,Mv)})),o.onDone(()=>{let y=this.players.indexOf(o);y>=0&&this.players.splice(y,1);const _=this._engine.playersByElement.get(e);if(_){let v=_.indexOf(o);v>=0&&_.splice(v,1)}}),this.players.push(o),f.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((n,i)=>{delete n[e]}),this._elementListeners.forEach((n,i)=>{this._elementListeners.set(i,n.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const n=this._engine.playersByElement.get(e);n&&(n.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){const i=this._engine.driver.query(e,Ua,!0);i.forEach(r=>{if(r[ln])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,n,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,n,i,r){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const u=this.trigger(e,l,no,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,o),i&&Ci(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const n=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(n&&i){const r=new Set;n.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,u=i[o]||Ud,c=new $d(no),d=new zd(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:u,toState:c,player:d,isFallbackTransition:!0})})}}removeNode(e,n){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,n);else{const s=e[ln];(!s||s===Iv)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,n))}}insertNode(e,n){un(e,this._hostClassName)}drainQueuedTransitions(e){const n=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Ad(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Ed(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):n.push(i)}),this._queue=[],n.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let n=!1;return this._elementListeners.has(e)&&(n=!0),n=!!this._queue.find(i=>i.element===e)||n,n}}class cO{constructor(e,n,i){this.bodyNode=e,this.driver=n,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=(r,s)=>{}}_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(n=>{n.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,n){const i=new uO(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(i,n):(this.newHostElements.set(n,i),this.collectEnterElement(n)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,n){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(n);for(;a;){const l=r.get(a);if(l){const u=i.indexOf(l);i.splice(u+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,n)){i.splice(a+1,0,e),o=!0;break}o||i.unshift(e)}else i.push(e);return r.set(n,e),e}register(e,n){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,n)),i}registerTrigger(e,n,i){let r=this._namespaceLookup[e];r&&r.register(n,i)&&this.totalAnimations++}destroy(e,n){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(n))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const n=new Set,i=this.statesByElement.get(e);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&n.add(a)}}}return n}trigger(e,n,i,r){if(il(n)){const s=this._fetchNamespace(e);if(s)return s.trigger(n,i,r),!0}return!1}insertNode(e,n,i,r){if(!il(n))return;const s=n[ln];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(n);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(n,i)}r&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),un(e,Hd)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Yr(e,Hd))}removeNode(e,n,i,r){if(il(n)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(n,r):this.markElementAsRemoved(e,n,!1,r),i){const o=this.namespacesByHostElement.get(n);o&&o.id!==e&&o.removeNode(n,r)}}else this._onRemovalComplete(n,r)}markElementAsRemoved(e,n,i,r,s){this.collectedLeaveElements.push(n),n[ln]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,n,i,r,s){return il(n)?this._fetchNamespace(e).listen(n,i,r,s):()=>{}}_buildInstruction(e,n,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,n,s)}destroyInnerAnimations(e){let n=this.driver.query(e,Ua,!0);n.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,Fd,!0),n.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const n=this.playersByElement.get(e);n&&n.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const n=this.playersByQueriedElement.get(e);n&&n.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ci(this.players).onDone(()=>e());e()})}processLeaveNode(e){var n;const i=e[ln];if(i&&i.setForRemoval){if(e[ln]=Iv,i.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}(null===(n=e.classList)||void 0===n?void 0:n.contains(Hd))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)un(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{n=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}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=[],n.length?Ci(n).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function hR(t){return new M(3402,ne)}()}_flushAnimations(e,n){const i=new el,r=[],s=new Map,o=[],a=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(I=>{c.add(I);const O=this.driver.query(I,".ng-animate-queued",!0);for(let B=0;B<O.length;B++)c.add(O[B])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),h=Nv(f,this.collectedEnterElements),g=new Map;let y=0;h.forEach((I,O)=>{const B=Td+y++;g.set(O,B),I.forEach(se=>un(se,B))});const _=[],v=new Set,m=new Set;for(let I=0;I<this.collectedLeaveElements.length;I++){const O=this.collectedLeaveElements[I],B=O[ln];B&&B.setForRemoval&&(_.push(O),v.add(O),B.hasAnimation?this.driver.query(O,".ng-star-inserted",!0).forEach(se=>v.add(se)):m.add(O))}const x=new Map,T=Nv(f,Array.from(v));T.forEach((I,O)=>{const B=Ha+y++;x.set(O,B),I.forEach(se=>un(se,B))}),e.push(()=>{h.forEach((I,O)=>{const B=g.get(O);I.forEach(se=>Yr(se,B))}),T.forEach((I,O)=>{const B=x.get(O);I.forEach(se=>Yr(se,B))}),_.forEach(I=>{this.processLeaveNode(I)})});const j=[],ce=[];for(let I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(n).forEach(B=>{const se=B.player,nt=B.element;if(j.push(se),this.collectedEnterElements.length){const Et=nt[ln];if(Et&&Et.setForMove){if(Et.previousTriggersValues&&Et.previousTriggersValues.has(B.triggerName)){const er=Et.previousTriggersValues.get(B.triggerName),Ti=this.statesByElement.get(B.element);Ti&&Ti[B.triggerName]&&(Ti[B.triggerName].value=er)}return void se.destroy()}}const Un=!d||!this.driver.containsElement(d,nt),Kt=x.get(nt),Ii=g.get(nt),Ie=this._buildInstruction(B,i,Ii,Kt,Un);if(Ie.errors&&Ie.errors.length)return void ce.push(Ie);if(Un)return se.onStart(()=>Ki(nt,Ie.fromStyles)),se.onDestroy(()=>Gn(nt,Ie.toStyles)),void r.push(se);if(B.isFallbackTransition)return se.onStart(()=>Ki(nt,Ie.fromStyles)),se.onDestroy(()=>Gn(nt,Ie.toStyles)),void r.push(se);const kw=[];Ie.timelines.forEach(Et=>{Et.stretchStartingKeyframe=!0,this.disabledNodes.has(Et.element)||kw.push(Et)}),Ie.timelines=kw,i.append(nt,Ie.timelines),o.push({instruction:Ie,player:se,element:nt}),Ie.queriedElements.forEach(Et=>Ut(a,Et,[]).push(se)),Ie.preStyleProps.forEach((Et,er)=>{const Ti=Object.keys(Et);if(Ti.length){let tr=l.get(er);tr||l.set(er,tr=new Set),Ti.forEach(Sf=>tr.add(Sf))}}),Ie.postStyleProps.forEach((Et,er)=>{const Ti=Object.keys(Et);let tr=u.get(er);tr||u.set(er,tr=new Set),Ti.forEach(Sf=>tr.add(Sf))})});if(ce.length){const I=[];ce.forEach(O=>{I.push(function gR(t,e){return new M(3505,ne)}())}),j.forEach(O=>O.destroy()),this.reportError(I)}const pe=new Map,Wt=new Map;o.forEach(I=>{const O=I.element;i.has(O)&&(Wt.set(O,O),this._beforeAnimationBuild(I.player.namespaceId,I.instruction,pe))}),r.forEach(I=>{const O=I.element;this._getPreviousPlayers(O,!1,I.namespaceId,I.triggerName,null).forEach(se=>{Ut(pe,O,[]).push(se),se.destroy()})});const qt=_.filter(I=>Ov(I,l,u)),Qt=new Map;Fv(Qt,this.driver,m,u,ei).forEach(I=>{Ov(I,l,u)&&qt.push(I)});const ii=new Map;h.forEach((I,O)=>{Fv(ii,this.driver,new Set(I),l,"!")}),qt.forEach(I=>{const O=Qt.get(I),B=ii.get(I);Qt.set(I,Object.assign(Object.assign({},O),B))});const En=[],ns=[],is={};o.forEach(I=>{const{element:O,player:B,instruction:se}=I;if(i.has(O)){if(c.has(O))return B.onDestroy(()=>Gn(O,se.toStyles)),B.disabled=!0,B.overrideTotalTime(se.totalTime),void r.push(B);let nt=is;if(Wt.size>1){let Kt=O;const Ii=[];for(;Kt=Kt.parentNode;){const Ie=Wt.get(Kt);if(Ie){nt=Ie;break}Ii.push(Kt)}Ii.forEach(Ie=>Wt.set(Ie,nt))}const Un=this._buildAnimation(B.namespaceId,se,pe,s,ii,Qt);if(B.setRealPlayer(Un),nt===is)En.push(B);else{const Kt=this.playersByElement.get(nt);Kt&&Kt.length&&(B.parentPlayer=Ci(Kt)),r.push(B)}}else Ki(O,se.fromStyles),B.onDestroy(()=>Gn(O,se.toStyles)),ns.push(B),c.has(O)&&r.push(B)}),ns.forEach(I=>{const O=s.get(I.element);if(O&&O.length){const B=Ci(O);I.setRealPlayer(B)}}),r.forEach(I=>{I.parentPlayer?I.syncPlayerEvents(I.parentPlayer):I.destroy()});for(let I=0;I<_.length;I++){const O=_[I],B=O[ln];if(Yr(O,Ha),B&&B.hasAnimation)continue;let se=[];if(a.size){let Un=a.get(O);Un&&Un.length&&se.push(...Un);let Kt=this.driver.query(O,Fd,!0);for(let Ii=0;Ii<Kt.length;Ii++){let Ie=a.get(Kt[Ii]);Ie&&Ie.length&&se.push(...Ie)}}const nt=se.filter(Un=>!Un.destroyed);nt.length?gO(this,O,nt):this.processLeaveNode(O)}return _.length=0,En.forEach(I=>{this.players.push(I),I.onDone(()=>{I.destroy();const O=this.players.indexOf(I);this.players.splice(O,1)}),I.play()}),En}elementContainsData(e,n){let i=!1;const r=n[ln];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(n)&&(i=!0),this.playersByQueriedElement.has(n)&&(i=!0),this.statesByElement.has(n)&&(i=!0),this._fetchNamespace(e).elementContainsData(n)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,i,r,s){let o=[];if(n){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==no;a.forEach(u=>{u.queued||!l&&u.triggerName!=r||o.push(u)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,n,i){const s=n.element,o=n.isRemovalTransition?void 0:e,a=n.isRemovalTransition?void 0:n.triggerName;for(const l of n.timelines){const u=l.element,c=u!==s,d=Ut(i,u,[]);this._getPreviousPlayers(u,c,o,a,n.toState).forEach(h=>{const g=h.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),h.destroy(),d.push(h)})}Ki(s,n.fromStyles)}_buildAnimation(e,n,i,r,s,o){const a=n.triggerName,l=n.element,u=[],c=new Set,d=new Set,f=n.timelines.map(g=>{const y=g.element;c.add(y);const _=y[ln];if(_&&_.removedBeforeQueried)return new eo(g.duration,g.delay);const v=y!==l,m=function pO(t){const e=[];return Rv(t,e),e}((i.get(y)||aO).map(pe=>pe.getRealPlayer())).filter(pe=>!!pe.element&&pe.element===y),x=s.get(y),T=o.get(y),j=sv(0,this._normalizer,0,g.keyframes,x,T),ce=this._buildPlayer(g,j,m);if(g.subTimeline&&r&&d.add(y),v){const pe=new zd(e,a,y);pe.setRealPlayer(ce),u.push(pe)}return ce});u.forEach(g=>{Ut(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function dO(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const r=i.indexOf(n);i.splice(r,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const r=i.indexOf(n);i.splice(r,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,g.element,g))}),c.forEach(g=>un(g,pv));const h=Ci(f);return h.onDestroy(()=>{c.forEach(g=>Yr(g,pv)),Gn(l,n.toStyles)}),d.forEach(g=>{Ut(r,g,[]).push(h)}),h}_buildPlayer(e,n,i){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,i):new eo(e.duration,e.delay)}}class zd{constructor(e,n,i){this.namespaceId=e,this.triggerName=n,this.element=i,this._player=new eo,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(n=>{this._queuedCallbacks[n].forEach(i=>Ed(e,n,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){Ut(this._queuedCallbacks,e,[]).push(n)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const n=this._player;n.triggerCallback&&n.triggerCallback(e)}}function il(t){return t&&1===t.nodeType}function Tv(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Fv(t,e,n,i,r){const s=[];n.forEach(l=>s.push(Tv(l)));const o=[];i.forEach((l,u)=>{const c={};l.forEach(d=>{const f=c[d]=e.computeStyle(u,d,r);(!f||0==f.length)&&(u[ln]=lO,o.push(u))}),t.set(u,c)});let a=0;return n.forEach(l=>Tv(l,s[a++])),o}function Nv(t,e){const n=new Map;if(t.forEach(a=>n.set(a,[])),0==e.length)return n;const r=new Set(e),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const u=a.parentNode;return l=n.has(u)?u:r.has(u)?1:o(u),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&n.get(l).push(a)}),n}function un(t,e){var n;null===(n=t.classList)||void 0===n||n.add(e)}function Yr(t,e){var n;null===(n=t.classList)||void 0===n||n.remove(e)}function gO(t,e,n){Ci(n).onDone(()=>t.processLeaveNode(e))}function Rv(t,e){for(let n=0;n<t.length;n++){const i=t[n];i instanceof iv?Rv(i.players,e):e.push(i)}}function Ov(t,e,n){const i=n.get(t);if(!i)return!1;let r=e.get(t);return r?i.forEach(s=>r.add(s)):e.set(t,i),n.delete(t),!0}class rl{constructor(e,n,i){this.bodyNode=e,this._driver=n,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new cO(e,n,i),this._timelineEngine=new nO(e,n,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,n,i,r,s){const o=e+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],c=Pd(this._driver,s,l,[]);if(l.length)throw function iR(t,e){return new M(3404,ne)}();a=function XR(t,e,n){return new JR(t,e,n)}(r,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(n,r,a)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,i,r){this._transitionEngine.insertNode(e,n,i,r)}onRemove(e,n,i,r){this._transitionEngine.removeNode(e,n,r||!1,i)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,i,r){if("@"==i.charAt(0)){const[s,o]=ov(i);this._timelineEngine.command(s,n,o,r)}else this._transitionEngine.trigger(e,n,i,r)}listen(e,n,i,r,s){if("@"==i.charAt(0)){const[o,a]=ov(i);return this._timelineEngine.listen(o,n,a,s)}return this._transitionEngine.listen(e,n,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let _O=(()=>{class t{constructor(n,i,r){this._element=n,this._startStyles=i,this._endStyles=r,this._state=0;let s=t.initialStylesByElement.get(n);s||t.initialStylesByElement.set(n,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Gn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Gn(this._element,this._initialStyles),this._endStyles&&(Gn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ki(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ki(this._element,this._endStyles),this._endStyles=null),Gn(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Wd(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const r=n[i];vO(r)&&(e=e||{},e[r]=t[r])}return e}function vO(t){return"display"===t||"position"===t}class Pv{constructor(e,n,i,r){this.element=e,this.keyframes=n,this.options=i,this._specialStyles=r,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(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,n,i){return e.animate(n,i)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const n=this._finalKeyframe;Object.keys(n).forEach(i=>{"offset"!=i&&(e[i]=this._finished?n[i]:Dv(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(i=>i()),n.length=0}}class DO{validateStyleProperty(e){return cv(e)}matchesElement(e,n){return!1}containsElement(e,n){return dv(e,n)}getParentElement(e){return Md(e)}query(e,n,i){return fv(e,n,i)}computeStyle(e,n,i){return window.getComputedStyle(e)[n]}animate(e,n,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const u={},c=o.filter(f=>f instanceof Pv);(function ER(t,e){return 0===t||0===e})(i,r)&&c.forEach(f=>{let h=f.currentSnapshot;Object.keys(h).forEach(g=>u[g]=h[g])}),n=function bR(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=n[a]}),o.length)for(var r=1;r<e.length;r++){let a=e[r];o.forEach(function(l){a[l]=Dv(t,l)})}}return e}(e,n=n.map(f=>xi(f,!1)),u);const d=function yO(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Wd(e[0]),e.length>1&&(i=Wd(e[e.length-1]))):e&&(n=Wd(e)),n||i?new _O(t,n,i):null}(e,n);return new Pv(e,n,l,d)}}let wO=(()=>{class t extends J_{constructor(n,i){super(),this._nextAnimationId=0,this._renderer=n.createRenderer(i.body,{id:"0",encapsulation:fn.None,styles:[],data:{animation:[]}})}build(n){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(n)?ev(n):n;return Lv(this._renderer,null,i,"register",[r]),new CO(i,this._renderer)}}return t.\u0275fac=function(n){return new(n||t)(F(Gs),F(Qe))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();class CO extends class PN{}{constructor(e,n){super(),this._id=e,this._renderer=n}create(e,n){return new xO(this._id,e,n||{},this._renderer)}}class xO{constructor(e,n,i,r){this.id=e,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,n){return this._renderer.listen(this.element,`@@${this.id}:${e}`,n)}_command(e,...n){return Lv(this._renderer,this.element,this.id,e,n)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}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(e){this._command("setPosition",e)}getPosition(){var e,n;return null!==(n=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==n?n:0}}function Lv(t,e,n,i,r){return t.setProperty(e,`@@${n}:${i}`,r)}const kv="@.disabled";let EO=(()=>{class t{constructor(n,i,r){this.delegate=n,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(n,i){const s=this.delegate.createRenderer(n,i);if(!(n&&i&&i.data&&i.data.animation)){let c=this._rendererCache.get(s);return c||(c=new Vv("",s,this.engine),this._rendererCache.set(s,c)),c}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);const l=c=>{Array.isArray(c)?c.forEach(l):this.engine.registerTrigger(o,a,n,c.name,c)};return i.data.animation.forEach(l),new bO(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(n,i,r){n>=0&&n<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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 t.\u0275fac=function(n){return new(n||t)(F(Gs),F(rl),F(je))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();class Vv{constructor(e,n,i){this.namespaceId=e,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>n.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,i,r=!0){this.delegate.insertBefore(e,n,i),this.engine.onInsert(this.namespaceId,n,e,r)}removeChild(e,n,i){this.engine.onRemove(this.namespaceId,n,this.delegate,i)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,i,r){this.delegate.setAttribute(e,n,i,r)}removeAttribute(e,n,i){this.delegate.removeAttribute(e,n,i)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,i,r){this.delegate.setStyle(e,n,i,r)}removeStyle(e,n,i){this.delegate.removeStyle(e,n,i)}setProperty(e,n,i){"@"==n.charAt(0)&&n==kv?this.disableAnimations(e,!!i):this.delegate.setProperty(e,n,i)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,i){return this.delegate.listen(e,n,i)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}}class bO extends Vv{constructor(e,n,i,r){super(n,i,r),this.factory=e,this.namespaceId=n}setProperty(e,n,i){"@"==n.charAt(0)?"."==n.charAt(1)&&n==kv?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,n.substr(1),i):this.delegate.setProperty(e,n,i)}listen(e,n,i){if("@"==n.charAt(0)){const r=function AO(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(e);let s=n.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function SO(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,n,i)}}let MO=(()=>{class t extends rl{constructor(n,i,r){super(n.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(n){return new(n||t)(F(Qe),F(Id),F(jd))},t.\u0275prov=N({token:t,factory:t.\u0275fac}),t})();const Bv=new W("AnimationModuleType"),jv=[{provide:J_,useClass:wO},{provide:jd,useFactory:function IO(){return new qR}},{provide:rl,useClass:MO},{provide:Gs,useFactory:function TO(t,e,n){return new EO(t,e,n)},deps:[Va,rl,je]}],Gv=[{provide:Id,useFactory:()=>new DO},{provide:Bv,useValue:"BrowserAnimations"},...jv],FO=[{provide:Id,useClass:hv},{provide:Bv,useValue:"NoopAnimations"},...jv];let NO=(()=>{class t{static withConfig(n){return{ngModule:t,providers:n.disableAnimations?FO:Gv}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Je({type:t}),t.\u0275inj=Ue({providers:Gv,imports:[W_]}),t})(),TD=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Je({type:t}),t.\u0275inj=Ue({}),t})();const ff=new W("NgModelWithFormControlWarning");let qD=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Je({type:t}),t.\u0275inj=Ue({imports:[[TD]]}),t})(),NP=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Je({type:t}),t.\u0275inj=Ue({imports:[qD]}),t})(),RP=(()=>{class t{static withConfig(n){return{ngModule:t,providers:[{provide:ff,useValue:n.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Je({type:t}),t.\u0275inj=Ue({imports:[qD]}),t})();class OP extends C{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const n=super._subscribe(e);return n&&!n.closed&&e.next(this._value),n}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new $e;return this._value}next(e){super.next(this._value=e)}}function QD(t){for(let e in t){let n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":n=n||"row",t["-webkit-flex-direction"]=n,t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}const vf="inline",ml=["row","column","row-reverse","column-reverse"];function YD(t){var e;t=null!==(e=null==t?void 0:t.toLowerCase())&&void 0!==e?e:"";let[n,i,r]=t.split(" ");return ml.find(s=>s===n)||(n=ml[0]),i===vf&&(i=r!==vf?r:"",r=vf),[n,PP(i),!!r]}function ao(t){let[e]=YD(t);return e.indexOf("row")>-1}function PP(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}function ti(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let i in n)n.hasOwnProperty(i)&&(t[i]=n[i]);return t}function Df(t,e){return function(i){return i.lift(new kP(t,e))}}class kP{constructor(e,n){this.predicate=e,this.thisArg=n}call(e,n){return n.subscribe(new VP(e,this.predicate,this.thisArg))}}class VP extends L{constructor(e,n,i){super(e),this.predicate=n,this.thisArg=i,this.count=0}_next(e){let n;try{n=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}n&&this.destination.next(e)}}function Si(){}class jP{constructor(e,n,i){this.nextOrObserver=e,this.error=n,this.complete=i}call(e,n){return n.subscribe(new GP(e,this.nextOrObserver,this.error,this.complete))}}class GP extends L{constructor(e,n,i,r){super(e),this._tapNext=Si,this._tapError=Si,this._tapComplete=Si,this._tapError=i||Si,this._tapComplete=r||Si,ht(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||Si,this._tapError=n.error||Si,this._tapComplete=n.complete||Si)}_next(e){try{this._tapNext.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}const $P={provide:qy,useFactory:function HP(t,e){return()=>{if(qr(e)){const n=Array.from(t.querySelectorAll(`[class*=${ZD}]`)),i=/\bflex-layout-.+?\b/g;n.forEach(r=>{r.classList.contains(`${ZD}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(i,"")})}}},deps:[Qe,jn],multi:!0},ZD="flex-layout-";let wf=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Je({type:t}),t.\u0275inj=Ue({providers:[$P]}),t})();class Ji{constructor(e=!1,n="all",i="",r="",s=0){this.matches=e,this.mediaQuery=n,this.mqAlias=i,this.suffix=r,this.priority=s,this.property=""}clone(){return new Ji(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let UP=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(n,i,r){const s=this.stylesheet.get(n);s?s.set(i,r):this.stylesheet.set(n,new Map([[i,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(n,i){const r=this.stylesheet.get(n);let s="";if(r){const o=r.get(i);("number"==typeof o||"string"==typeof o)&&(s=o+"")}return s}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Cf={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},xn=new W("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Cf}),Xr=new W("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),xf=new W("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function XD(t,e){return t=t?t.clone():new Ji,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}class Oe{constructor(){this.shouldCache=!0}sideEffect(e,n,i){}}let ve=(()=>{class t{constructor(n,i,r,s){this._serverStylesheet=n,this._serverModuleLoaded=i,this._platformId=r,this.layoutConfig=s}applyStyleToElement(n,i,r=null){let s={};"string"==typeof i&&(s[i]=r,i=s),s=this.layoutConfig.disableVendorPrefixes?i:QD(i),this._applyMultiValueStyleToElement(s,n)}applyStyleToElements(n,i=[]){const r=this.layoutConfig.disableVendorPrefixes?n:QD(n);i.forEach(s=>{this._applyMultiValueStyleToElement(r,s)})}getFlowDirection(n){const i="flex-direction";let r=this.lookupStyle(n,i);return[r||"row",this.lookupInlineStyle(n,i)||Qr(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(n){return"wrap"===this.lookupStyle(n,"flex-wrap")}lookupAttributeValue(n,i){var r;return null!==(r=n.getAttribute(i))&&void 0!==r?r:""}lookupInlineStyle(n,i){return qr(this._platformId)?n.style.getPropertyValue(i):function zP(t,e){var n;return null!==(n=JD(t)[e])&&void 0!==n?n:""}(n,i)}lookupStyle(n,i,r=!1){let s="";return n&&((s=this.lookupInlineStyle(n,i))||(qr(this._platformId)?r||(s=getComputedStyle(n).getPropertyValue(i)):this._serverModuleLoaded&&(s=this._serverStylesheet.getStyleForElement(n,i)))),s?s.trim():""}_applyMultiValueStyleToElement(n,i){Object.keys(n).sort().forEach(r=>{const s=n[r],o=Array.isArray(s)?s:[s];o.sort();for(let a of o)a=a?a+"":"",qr(this._platformId)||!this._serverModuleLoaded?qr(this._platformId)?i.style.setProperty(r,a):WP(i,r,a):this._serverStylesheet.addStyleToElement(i,r,a)})}}return t.\u0275fac=function(n){return new(n||t)(F(UP),F(Xr),F(jn),F(xn))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function WP(t,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=JD(t);i[e]=null!=n?n:"",function qP(t,e){let n="";for(const i in e)e[i]&&(n+=`${i}:${e[i]};`);t.setAttribute("style",n)}(t,i)}function JD(t){const e={},n=t.getAttribute("style");if(n){const i=n.split(/;+/g);for(let r=0;r<i.length;r++){const s=i[r].trim();if(s.length>0){const o=s.indexOf(":");if(-1===o)throw new Error(`Invalid CSS style: ${s}`);e[s.substr(0,o).trim()]=s.substr(o+1).trim()}}}return e}function lo(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function QP(t,e){return(t.priority||0)-(e.priority||0)}let Ef=(()=>{class t{constructor(n,i,r){this._zone=n,this._platformId=i,this._document=r,this.source=new OP(new Ji(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const n=[];return this.registry.forEach((i,r)=>{i.matches&&n.push(r)}),n}isActive(n){var i;const r=this.registry.get(n);return null!==(i=null==r?void 0:r.matches)&&void 0!==i?i:this.registerQuery(n).some(s=>s.matches)}observe(n,i=!1){if(n&&n.length){const r=this._observable$.pipe(Df(o=>!i||n.indexOf(o.mediaQuery)>-1));return fo(new oe(o=>{const a=this.registerQuery(n);if(a.length){const l=a.pop();a.forEach(u=>{o.next(u)}),this.source.next(l)}o.complete()}),r)}return this._observable$}registerQuery(n){const i=Array.isArray(n)?n:[n],r=[];return function KP(t,e){const n=t.filter(i=>!ew[i]);if(n.length>0){const i=n.join(", ");try{const r=e.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${i} {.fx-query-test{ }}\n`)),e.head.appendChild(r),n.forEach(s=>ew[s]=r)}catch(r){console.error(r)}}}(i,this._document),i.forEach(s=>{const o=l=>{this._zone.run(()=>this.source.next(new Ji(l.matches,s)))};let a=this.registry.get(s);a||(a=this.buildMQL(s),a.addListener(o),this.pendingRemoveListenerFns.push(()=>a.removeListener(o)),this.registry.set(s,a)),a.matches&&r.push(new Ji(!0,s))}),r}ngOnDestroy(){let n;for(;n=this.pendingRemoveListenerFns.pop();)n()}buildMQL(n){return function YP(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(n,qr(this._platformId))}}return t.\u0275fac=function(n){return new(n||t)(F(je),F(jn),F(Qe))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const ew={},ZP=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],tw="(orientation: portrait) and (max-width: 599.98px)",nw="(orientation: landscape) and (max-width: 959.98px)",iw="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",rw="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",sw="(orientation: portrait) and (min-width: 840px)",ow="(orientation: landscape) and (min-width: 1280px)",ni={HANDSET:`${tw}, ${nw}`,TABLET:`${iw} , ${rw}`,WEB:`${sw}, ${ow} `,HANDSET_PORTRAIT:`${tw}`,TABLET_PORTRAIT:`${iw} `,WEB_PORTRAIT:`${sw}`,HANDSET_LANDSCAPE:`${nw}`,TABLET_LANDSCAPE:`${rw}`,WEB_LANDSCAPE:`${ow}`},XP=[{alias:"handset",priority:2e3,mediaQuery:ni.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ni.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ni.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ni.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ni.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ni.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ni.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ni.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ni.WEB_PORTRAIT,overlapping:!0}],JP=/(\.|-|_)/g;function eL(t){let e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}const rL=new W("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Vo(xf),e=Vo(xn),n=[].concat.apply([],(t||[]).map(r=>Array.isArray(r)?r:[r]));return function iL(t,e=[]){const n={};return t.forEach(i=>{n[i.alias]=i}),e.forEach(i=>{n[i.alias]?ti(n[i.alias],i):n[i.alias]=i}),function nL(t){return t.forEach(e=>{e.suffix||(e.suffix=function tL(t){return t.replace(JP,"|").split("|").map(eL).join("")}(e.alias),e.overlapping=!!e.overlapping)}),t}(Object.keys(n).map(i=>n[i]))}((e.disableDefaultBps?[]:ZP).concat(e.addOrientationBps?XP:[]),n)}});let bf=(()=>{class t{constructor(n){this.findByMap=new Map,this.items=[...n].sort(QP)}findByAlias(n){return n?this.findWithPredicate(n,i=>i.alias===n):null}findByQuery(n){return this.findWithPredicate(n,i=>i.mediaQuery===n)}get overlappings(){return this.items.filter(n=>n.overlapping)}get aliases(){return this.items.map(n=>n.alias)}get suffixes(){return this.items.map(n=>{var i;return null!==(i=null==n?void 0:n.suffix)&&void 0!==i?i:""})}findWithPredicate(n,i){var r;let s=this.findByMap.get(n);return s||(s=null!==(r=this.items.find(i))&&void 0!==r?r:null,this.findByMap.set(n,s)),null!=s?s:null}}return t.\u0275fac=function(n){return new(n||t)(F(rL))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Jr="print",sL={alias:Jr,mediaQuery:Jr,priority:1e3};let oL=(()=>{class t{constructor(n,i,r){this.breakpoints=n,this.layoutConfig=i,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new aL,this.deactivations=[]}withPrintQuery(n){return[...n,Jr]}isPrintEvent(n){return n.mediaQuery.startsWith(Jr)}get printAlias(){var n;return[...null!==(n=this.layoutConfig.printWithBreakpoints)&&void 0!==n?n:[]]}get printBreakPoints(){return this.printAlias.map(n=>this.breakpoints.findByAlias(n)).filter(n=>null!==n)}getEventBreakpoints({mediaQuery:n}){const i=this.breakpoints.findByQuery(n);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(lo)}updateEvent(n){var i;let r=this.breakpoints.findByQuery(n.mediaQuery);return this.isPrintEvent(n)&&(r=this.getEventBreakpoints(n)[0],n.mediaQuery=null!==(i=null==r?void 0:r.mediaQuery)&&void 0!==i?i:""),XD(n,r)}registerBeforeAfterPrintHooks(n){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(n,this.getEventBreakpoints(new Ji(!0,Jr))),n.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(n),n.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(r)}interceptEvents(n){return i=>{this.isPrintEvent(i)?i.matches&&!this.isPrinting?(this.startPrinting(n,this.getEventBreakpoints(i)),n.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(n),n.updateStyles()):this.collectActivations(n,i)}}blockPropagation(){return n=>!(this.isPrinting||this.isPrintEvent(n))}startPrinting(n,i){this.isPrinting=!0,this.formerActivations=n.activatedBreakpoints,n.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(n){n.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(n,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){const r=this.breakpoints.findByQuery(i.mediaQuery);if(r){const s=this.formerActivations&&this.formerActivations.includes(r),o=!this.formerActivations&&n.activatedBreakpoints.includes(r);(s||o)&&(this.deactivations.push(r),this.deactivations.sort(lo))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(n=>this._document.defaultView.removeEventListener("beforeprint",n)),this.afterPrintEventListeners.forEach(n=>this._document.defaultView.removeEventListener("afterprint",n)))}}return t.\u0275fac=function(n){return new(n||t)(F(bf),F(xn),F(Qe))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class aL{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(e){return e.push(sL),e.sort(lo),e.forEach(n=>this.addBreakpoint(n)),this.printBreakpoints}addBreakpoint(e){e&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===e.mediaQuery)&&(this.printBreakpoints=function lL(t){var e;return null!==(e=null==t?void 0:t.mediaQuery.startsWith(Jr))&&void 0!==e&&e}(e)?[e,...this.printBreakpoints]:[...this.printBreakpoints,e])}clear(){this.printBreakpoints=[]}}let xe=(()=>{class t{constructor(n,i,r){this.matchMedia=n,this.breakpoints=i,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new C,this.observeActivations()}get activatedAlias(){var n,i;return null!==(i=null===(n=this.activatedBreakpoints[0])||void 0===n?void 0:n.alias)&&void 0!==i?i:""}set activatedBreakpoints(n){this._activatedBreakpoints=[...n]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(n){this._useFallbacks=n}onMediaChange(n){const i=this.findByQuery(n.mediaQuery);if(i){n=XD(n,i);const r=this.activatedBreakpoints.indexOf(i);n.matches&&-1===r?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(lo),this.updateStyles()):!n.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(lo),this.updateStyles())}}init(n,i,r,s,o=[]){aw(this.updateMap,n,i,r),aw(this.clearMap,n,i,s),this.buildElementKeyMap(n,i),this.watchExtraTriggers(n,i,o)}getValue(n,i,r){const s=this.elementMap.get(n);if(s){const o=void 0!==r?s.get(r):this.getActivatedValues(s,i);if(o)return o.get(i)}}hasValue(n,i){const r=this.elementMap.get(n);if(r){const s=this.getActivatedValues(r,i);if(s)return void 0!==s.get(i)||!1}return!1}setValue(n,i,r,s){var o;let a=this.elementMap.get(n);if(a){const u=(null!==(o=a.get(s))&&void 0!==o?o:new Map).set(i,r);a.set(s,u),this.elementMap.set(n,a)}else a=(new Map).set(s,(new Map).set(i,r)),this.elementMap.set(n,a);const l=this.getValue(n,i);void 0!==l&&this.updateElement(n,i,l)}trackValue(n,i){return this.subject.asObservable().pipe(Df(r=>r.element===n&&r.key===i))}updateStyles(){this.elementMap.forEach((n,i)=>{const r=new Set(this.elementKeyMap.get(i));let s=this.getActivatedValues(n);s&&s.forEach((o,a)=>{this.updateElement(i,a,o),r.delete(a)}),r.forEach(o=>{if(s=this.getActivatedValues(n,o),s){const a=s.get(o);this.updateElement(i,o,a)}else this.clearElement(i,o)})})}clearElement(n,i){const r=this.clearMap.get(n);if(r){const s=r.get(i);s&&(s(),this.subject.next({element:n,key:i,value:""}))}}updateElement(n,i,r){const s=this.updateMap.get(n);if(s){const o=s.get(i);o&&(o(r),this.subject.next({element:n,key:i,value:r}))}}releaseElement(n){const i=this.watcherMap.get(n);i&&(i.forEach(s=>s.unsubscribe()),this.watcherMap.delete(n));const r=this.elementMap.get(n);r&&(r.forEach((s,o)=>r.delete(o)),this.elementMap.delete(n))}triggerUpdate(n,i){const r=this.elementMap.get(n);if(r){const s=this.getActivatedValues(r,i);s&&(i?this.updateElement(n,i,s.get(i)):s.forEach((o,a)=>this.updateElement(n,a,o)))}}buildElementKeyMap(n,i){let r=this.elementKeyMap.get(n);r||(r=new Set,this.elementKeyMap.set(n,r)),r.add(i)}watchExtraTriggers(n,i,r){if(r&&r.length){let s=this.watcherMap.get(n);if(s||(s=new Map,this.watcherMap.set(n,s)),!s.get(i)){const a=fo(...r).subscribe(()=>{const l=this.getValue(n,i);this.updateElement(n,i,l)});s.set(i,a)}}}findByQuery(n){return this.breakpoints.findByQuery(n)}getActivatedValues(n,i){for(let s=0;s<this.activatedBreakpoints.length;s++){const a=n.get(this.activatedBreakpoints[s].alias);if(a&&(void 0===i||a.has(i)&&null!=a.get(i)))return a}if(!this._useFallbacks)return;const r=n.get("");return void 0===i||r&&r.has(i)?r:void 0}observeActivations(){const n=this.breakpoints.items.map(i=>i.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(n)).pipe(function BP(t,e,n){return function(r){return r.lift(new jP(t,e,n))}}(this.hook.interceptEvents(this)),Df(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(n){return new(n||t)(F(Ef),F(bf),F(oL))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function aw(t,e,n,i){var r;if(void 0!==i){const s=null!==(r=t.get(e))&&void 0!==r?r:new Map;s.set(n,i),t.set(e,s)}}let Me=(()=>{class t{constructor(n,i,r,s){this.elementRef=n,this.styleBuilder=i,this.styler=r,this.marshal=s,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new C,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(n){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,n,this.marshal.activatedAlias)}ngOnChanges(n){Object.keys(n).forEach(i=>{if(-1!==this.inputs.indexOf(i)){const r=i.split(".").slice(1).join(".");this.setValue(n[i].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(n=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),n)}addStyles(n,i){const r=this.styleBuilder,s=r.shouldCache;let o=this.styleCache.get(n);(!o||!s)&&(o=r.buildStyles(n,i),s&&this.styleCache.set(n,o)),this.mru=Object.assign({},o),this.applyStyleToElement(o),r.sideEffect(n,o,i)}clearStyles(){Object.keys(this.mru).forEach(n=>{this.mru[n]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(n,i=!1){if(n){const[r,s]=this.styler.getFlowDirection(n);if(!s&&i){const o=function KD(t){let[e,n,i]=YD(t);return function LP(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,i)}(r);this.styler.applyStyleToElements(o,[n])}return r.trim()}return"row"}hasWrap(n){return this.styler.hasWrap(n)}applyStyleToElement(n,i,r=this.nativeElement){this.styler.applyStyleToElement(r,n,i)}setValue(n,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,n,i)}updateWithValue(n){this.currentValue!==n&&(this.addStyles(n),this.currentValue=n)}}return t.\u0275fac=function(n){return new(n||t)(p(ee),p(Oe),p(ve),p(xe))},t.\u0275dir=w({type:t,features:[kt]}),t})();class fL{constructor(e){this.notifier=e}call(e,n){const i=new hL(e),r=Cl(this.notifier,new Dl(i));return r&&!i.seenValue?(i.add(r),n.subscribe(i)):i}}class hL extends wl{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}class AL{constructor(e,n,i=!0){this.key=e,this.value=n,this.key=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=this.value.replace(/;/,"")}}function dw(t){let e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function hw(t){const[e,...n]=t.split(":");return new AL(e,n.join(":"))}function gw(t,e){return e.key&&(t[e.key]=e.value),t}let IL=(()=>{class t extends Me{constructor(n,i,r,s,o,a,l,u,c){var d;super(n,null,i,r),this.sanitizer=s,this.ngStyleInstance=l,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new Ra(n,o,a)),this.init();const f=null!==(d=this.nativeElement.getAttribute("style"))&&void 0!==d?d:"";this.fallbackStyles=this.buildStyleMap(f),this.isServer=u&&Qr(c)}updateWithValue(n){const i=this.buildStyleMap(n);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),i),this.isServer&&this.applyStyleToElement(i),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(n){const i=r=>{var s;return null!==(s=this.sanitizer.sanitize(ge.STYLE,r))&&void 0!==s?s:""};if(n)switch(dw(n)){case"string":return mw(function SL(t,e=";"){return String(t).trim().split(e).map(n=>n.trim()).filter(n=>""!==n)}(n),i);case"array":return mw(n,i);default:return function fw(t,e){let n=[];return"set"===dw(t)?t.forEach(i=>n.push(i)):Object.keys(t).forEach(i=>{n.push(`${i}:${t[i]}`)}),function ML(t,e){return t.map(hw).filter(i=>!!i).map(i=>(e&&(i.value=e(i.value)),i)).reduce(gw,{})}(n,e)}(n,i)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(n){return new(n||t)(p(ee),p(ve),p(xe),p(K_),p(zi),p(Vn),p(Ra,10),p(Xr),p(jn))},t.\u0275dir=w({type:t,features:[b]}),t})();const TL=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let pw=(()=>{class t extends IL{constructor(){super(...arguments),this.inputs=TL}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=R(t)))(i||t)}}(),t.\u0275dir=w({type:t,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[b]}),t})();function mw(t,e){return t.map(hw).filter(i=>!!i).map(i=>(e&&(i.value=e(i.value)),i)).reduce(gw,{})}let yw=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Je({type:t}),t.\u0275inj=Ue({imports:[[wf]]}),t})(),PL=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Je({type:t}),t.\u0275inj=Ue({}),t})(),Sk=(()=>{class t extends Oe{buildStyles(n,i){const r={},[s,o]=n.split(" ");switch(s){case"center":r["justify-content"]="center";break;case"space-around":r["justify-content"]="space-around";break;case"space-between":r["justify-content"]="space-between";break;case"space-evenly":r["justify-content"]="space-evenly";break;case"end":case"flex-end":r["justify-content"]="flex-end";break;default:r["justify-content"]="flex-start"}switch(o){case"start":case"flex-start":r["align-items"]=r["align-content"]="flex-start";break;case"center":r["align-items"]=r["align-content"]="center";break;case"end":case"flex-end":r["align-items"]=r["align-content"]="flex-end";break;case"space-between":r["align-content"]="space-between",r["align-items"]="stretch";break;case"space-around":r["align-content"]="space-around",r["align-items"]="stretch";break;case"baseline":r["align-content"]="stretch",r["align-items"]="baseline";break;default:r["align-items"]=r["align-content"]="stretch"}return ti(r,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":"stretch"===o?ao(i.layout)?null:"100%":null,"max-height":"stretch"===o&&ao(i.layout)?"100%":null})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=R(t)))(i||t)}}(),t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Mk=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let Ik=(()=>{class t extends Me{constructor(n,i,r,s){super(n,r,i,s),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(function es(t){return e=>e.lift(new fL(t))}(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(n){const i=this.layout||"row",r=this.inline;"row"===i&&r?this.styleCache=Ok:"row"!==i||r?"row-reverse"===i&&r?this.styleCache=Lk:"row-reverse"!==i||r?"column"===i&&r?this.styleCache=Pk:"column"!==i||r?"column-reverse"===i&&r?this.styleCache=kk:"column-reverse"===i&&!r&&(this.styleCache=Rk):this.styleCache=Fk:this.styleCache=Nk:this.styleCache=Tk,this.addStyles(n,{layout:i,inline:r})}onLayoutChange(n){const i=n.value.split(" ");this.layout=i[0],this.inline=n.value.includes("inline"),ml.find(r=>r===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(n){return new(n||t)(p(ee),p(ve),p(Sk),p(xe))},t.\u0275dir=w({type:t,features:[b]}),t})(),Cw=(()=>{class t extends Ik{constructor(){super(...arguments),this.inputs=Mk}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=R(t)))(i||t)}}(),t.\u0275dir=w({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[b]}),t})();const Tk=new Map,Fk=new Map,Nk=new Map,Rk=new Map,Ok=new Map,Pk=new Map,Lk=new Map,kk=new Map;let xw=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Je({type:t}),t.\u0275inj=Ue({imports:[[wf,PL]]}),t})(),Fw=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Je({type:t}),t.\u0275inj=Ue({imports:[[wf]]}),t})(),sV=(()=>{class t{constructor(n,i){Qr(i)&&!n&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(n,i=[]){return{ngModule:t,providers:n.serverLoaded?[{provide:xn,useValue:Object.assign(Object.assign({},Cf),n)},{provide:xf,useValue:i,multi:!0},{provide:Xr,useValue:!0}]:[{provide:xn,useValue:Object.assign(Object.assign({},Cf),n)},{provide:xf,useValue:i,multi:!0}]}}}return t.\u0275fac=function(n){return new(n||t)(F(Xr),F(jn))},t.\u0275mod=Je({type:t}),t.\u0275inj=Ue({imports:[[xw,yw,Fw],xw,yw,Fw]}),t})();var Nw=If(289);class oV{constructor(e,n,i,r,s){this.element=e,this.newWidth=n,this.newHeight=i,this.oldWidth=r,this.oldHeight=s}}let aV=(()=>{class t{constructor(n){this.element=n,this.resized=new tt}ngOnInit(){Nw.ResizeSensor&&(this.resizeSensor=new Nw.ResizeSensor(this.element.nativeElement,()=>this.onResized()))}ngOnDestroy(){this.resizeSensor&&this.resizeSensor.detach()}onResized(){const n=this.element.nativeElement.clientWidth,i=this.element.nativeElement.clientHeight;if(n===this.oldWidth&&i===this.oldHeight)return;const r=new oV(this.element,n,i,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.emit(r)}}return t.\u0275fac=function(n){return new(n||t)(p(ee))},t.\u0275dir=w({type:t,selectors:[["","resized",""]],outputs:{resized:"resized"}}),t})(),lV=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Je({type:t}),t.\u0275inj=Ue({imports:[[]]}),t})();const uV=["canvas"],cV=["rLabel"],dV=["reading"];function fV(t,e){1&t&&Os(0,0,["*ngSwitchCase","true"])}function hV(t,e){if(1&t&&(pi(0),kr(1),mi()),2&t){const n=Rs();Be(1),Vr(n.prepend)}}function gV(t,e){1&t&&Os(0,1,["*ngSwitchCase","true"])}function pV(t,e){if(1&t&&(pi(0),kr(1),function _y(t,e){const n=ie();let i;const r=t+20;n.firstCreatePass?(i=function u0(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}}(e,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=Li(i.type)),o=oi(p);try{const a=Fo(!1),l=s();return Fo(a),function bA(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,D(),r,l),l}finally{oi(o)}}(2,"number"),mi()),2&t){const n=Rs();Be(1),Vr(vy(2,1,n.value))}}function mV(t,e){1&t&&Os(0,2,["*ngSwitchCase","true"])}function yV(t,e){if(1&t&&(pi(0),kr(1),mi()),2&t){const n=Rs();Be(1),Vr(n.append)}}function _V(t,e){1&t&&Os(0,3,["*ngSwitchCase","true"])}function vV(t,e){if(1&t&&(pi(0),kr(1),mi()),2&t){const n=Rs();Be(1),Vr(n.label)}}const DV=[[["ngx-gauge-prepend"]],[["ngx-gauge-value"]],[["ngx-gauge-append"]],[["ngx-gauge-label"]]],wV=["ngx-gauge-prepend","ngx-gauge-value","ngx-gauge-append","ngx-gauge-label"];function Rw(t,e,n){return Math.max(e,Math.min(n,t))}function uo(t,e=0){return isNaN(parseFloat(t))||isNaN(Number(t))?e:Number(t)}function Ow(t){return`${t}px`}function Pw(t){return null!=t&&!isNaN(parseFloat(t))&&!isNaN(Number(t))}let xV=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=w({type:t,selectors:[["ngx-gauge-append"]],exportAs:["ngxGaugeAppend"]}),t})(),EV=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=w({type:t,selectors:[["ngx-gauge-prepend"]],exportAs:["ngxGaugePrepend"]}),t})(),Lw=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=w({type:t,selectors:[["ngx-gauge-value"]],exportAs:["ngxGaugeValue"]}),t})(),bV=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=w({type:t,selectors:[["ngx-gauge-label"]],exportAs:["ngxGaugeLabel"]}),t})();let AV=(()=>{class t{constructor(n,i){this._elementRef=n,this._renderer=i,this._size=200,this._min=0,this._max=100,this._animate=!0,this._margin=0,this._initialized=!1,this._animationRequestID=0,this.ariaLabel="",this.ariaLabelledby=null,this.type="arch",this.cap="butt",this.thick=4,this.foregroundColor="rgba(0, 150, 136, 1)",this.backgroundColor="rgba(0, 0, 0, 0.1)",this.thresholds=Object.create(null),this.markers=Object.create(null),this.horizontalMarkerLabels=!1,this._value=0,this.duration=1200}get size(){return this._size}set size(n){this._size=uo(n)}get margin(){return this._margin}set margin(n){this._margin=uo(n)}get min(){return this._min}set min(n){this._min=uo(n,0)}get animate(){return this._animate}set animate(n){this._animate=function CV(t){return null!=t&&"false"!=`${t}`}(n)}get max(){return this._max}set max(n){this._max=uo(n,100)}get value(){return this._value}set value(n){this._value=uo(n)}ngOnInit(){this.markers&&Object.keys(this.markers).length>0&&!this._margin&&(this._margin=10)}ngOnChanges(n){const i=n.thick||n.type||n.cap||n.size;if(this._initialized){if(n.value||n.min||n.max){let s,o;n.value&&(s=n.value.currentValue,o=n.value.previousValue),this._update(s,o)}i&&(this._destroy(),this._init())}}_updateSize(){this._renderer.setStyle(this._elementRef.nativeElement,"width",Ow(this._getWidth())),this._renderer.setStyle(this._elementRef.nativeElement,"height",Ow(this._getCanvasHeight())),this._canvas.nativeElement.width=this._getWidth(),this._canvas.nativeElement.height=this._getCanvasHeight(),this._renderer.setStyle(this._label.nativeElement,"transform","translateY("+(this.size/3*2-this.size/13/4)+"px)"),this._renderer.setStyle(this._reading.nativeElement,"transform","translateY("+(this.size/2-.22*this.size/2)+"px)")}ngAfterViewInit(){this._canvas&&this._init()}ngOnDestroy(){this._destroy()}_getBounds(n){let i,r,s,o;return"semi"==n?(i=Math.PI,r=2*Math.PI,s=180,o=360):"full"==n?(i=1.5*Math.PI,r=3.5*Math.PI,s=270,o=s+360):"arch"===n&&(i=.8*Math.PI,r=2.2*Math.PI,s=144,o=396),{head:i,tail:r,start:s,end:o}}_drawShell(n,i,r,s){let o=this._getCenter(),a=this._getRadius();if(this._initialized){this._clear(),this._drawMarkersAndTicks();let l=this._getBackgroundColorRanges();if(this._context.lineWidth=this.thick,l&&l.length>0){this._context.lineCap="butt";for(let u=0;u<l.length;++u){let c=l[u];this._context.beginPath(),this._context.strokeStyle=c.backgroundColor?c.backgroundColor:c.bgOpacity?c.color:this.backgroundColor,null!=c.bgOpacity&&(this._context.globalAlpha=c.bgOpacity),this._context.arc(o.x,o.y,a,this._getDisplacement(c.start),this._getDisplacement(c.end),!1),this._context.stroke(),this._context.globalAlpha=1}}else this._context.lineCap=this.cap,this._context.beginPath(),this._context.strokeStyle=this.backgroundColor,this._context.arc(o.x,o.y,a,n,r,!1),this._context.stroke();this._drawFill(n,i,r,s)}}_drawFill(n,i,r,s){let o=this._getCenter(),a=this._getRadius();this._context.lineCap=this.cap,this._context.lineWidth=this.thick,i=Math.max(i,n),i=Math.min(i,r),this._context.lineCap=this.cap,this._context.lineWidth=this.thick,this._context.beginPath(),this._context.strokeStyle=s,this._context.arc(o.x,o.y,a,n,i,!1),this._context.stroke()}_addMarker(n,i,r,s,o,a){var l=n*Math.PI/180;o||(o=8),s||(s="line");let c=this._getCenter(),d=this._getRadius(),f=(d+this.thick/2+2)*Math.cos(l)+c.x,h=(d+this.thick/2+2)*Math.sin(l)+c.y,g=(d+this.thick/2+2+o)*Math.cos(l)+c.x,y=(d+this.thick/2+2+o)*Math.sin(l)+c.y;if("triangle"==s){this._context.beginPath(),this._context.strokeStyle=i,this._context.moveTo(f,h),this._context.lineWidth=1;let _=n-45,v=n+45;_<0&&(_+=360),_>360&&(_-=360),v<0&&(v+=360),v>360&&(v-=360);let m=_*Math.PI/180,x=o*Math.cos(m)+f,T=o*Math.sin(m)+h;this._context.lineTo(x,T);let j=v*Math.PI/180,ce=o*Math.cos(j)+f,pe=o*Math.sin(j)+h;this._context.lineTo(ce,pe),this._context.lineTo(f,h),this._context.closePath(),this._context.stroke(),this._context.fillStyle=i,this._context.fill()}else this._context.beginPath(),this._context.lineWidth=.5,this._context.strokeStyle=i,this._context.moveTo(f,h),this._context.lineTo(g,y),this._context.closePath(),this._context.stroke();if(r){if(this._context.save(),this._context.translate(g,y),this._context.font=a||"13px Arial",this._context.textAlign="center",this.horizontalMarkerLabels){this._context.textBaseline="middle";const _=this._context.measureText(r),v=n*(Math.PI/180),x=10*Math.abs(Math.cos(v)),T=(_.actualBoundingBoxLeft+x)*Math.cos(v),j=(_.actualBoundingBoxAscent+x)*Math.sin(v);this._context.fillText(r,T,j)}else this._context.rotate((n+90)*(Math.PI/180)),this._context.fillText(r,0,-3);this._context.restore()}}_clear(){this._context.clearRect(0,0,this._getWidth(),this._getHeight())}_getWidth(){return this.size}_getHeight(){return this.size}_getCanvasHeight(){return"arch"==this.type||"semi"==this.type?.85*this._getHeight():this._getHeight()}_getRadius(){var i=this._getCenter().x-this.thick;return this._margin>0&&(i-=this._margin),i}_getCenter(){return{x:this._getWidth()/2,y:this._getHeight()/2}}_init(){this._context=this._canvas.nativeElement.getContext("2d"),this._initialized=!0,this._updateSize(),this._create()}_destroy(){this._animationRequestID&&(window.cancelAnimationFrame(this._animationRequestID),this._animationRequestID=0),this._clear(),this._context=null,this._initialized=!1}_getForegroundColorByRange(n){const i=this._getThresholdMatchForValue(n);return i&&i.color?i.color:this.foregroundColor}_getThresholdMatchForValue(n){const i=Object.keys(this.thresholds).filter(function(r){return Pw(r)&&Number(r)<=n}).sort((r,s)=>Number(r)-Number(s)).reverse()[0];if(void 0!==i){const r=this.thresholds[i];return{color:r.color,backgroundColor:r.backgroundColor,bgOpacity:r.bgOpacity,start:Number(i),end:this._getNextThreshold(Number(i))}}}_getNextThreshold(n){const i=Object.keys(this.thresholds).filter(function(r){return Pw(r)&&Number(r)>n}).sort((r,s)=>Number(r)-Number(s));return i&&void 0!==i[0]?Number(i[0]):this.max}_getBackgroundColorRanges(){let n=0,i=[];for(;;){let r=this._getThresholdMatchForValue(n);if(!r)break;if(i.push({start:r.start,end:r.end,color:r.color,backgroundColor:r.backgroundColor,bgOpacity:r.bgOpacity}),n=r.end,n>=this.max)break}return i}_getDisplacement(n){let r=this._getBounds(this.type),s=this.min,o=this.max,a=r.head,l=Rw(n,this.min,this.max);return a+(r.tail-r.head)/(o-s)*(l-s)}_create(n,i){let _,r=this,o=this._getBounds(this.type),a=this.duration,l=this.min,u=this.max,c=Rw(this.value,this.min,this.max),d=o.head,f=(o.tail-o.head)/(u-l),h=f*(c-l),g=o.tail,y=this._getForegroundColorByRange(c);function v(m){let x=(m=m||(new Date).getTime())-_,T=Math.min(x/a,1);r._drawShell(d,d+(i?(i-l)*f:0)+h*T,g,y),r._animationRequestID&&x<a?r._animationRequestID=window.requestAnimationFrame(pe=>v(pe)):window.cancelAnimationFrame(r._animationRequestID)}r._animationRequestID&&window.cancelAnimationFrame(r._animationRequestID),this._animate?(null!=n&&null!=i&&(h=f*n-f*i),r._animationRequestID=window.requestAnimationFrame(m=>{_=m||(new Date).getTime(),v(_)})):r._drawShell(d,d+h,g,y)}_drawMarkersAndTicks(){if(this.markers)for(let l in this.markers){var n=Number(l),i=this._getBounds(this.type),a=this.markers[l];this._addMarker(i.start+n*((i.end-i.start)/this.max),a.color,a.label,a.type,a.size,a.font)}}_update(n,i){this._clear(),this._create(n,i)}}return t.\u0275fac=function(n){return new(n||t)(p(ee),p(Vn))},t.\u0275cmp=mo({type:t,selectors:[["ngx-gauge"]],contentQueries:function(n,i,r){if(1&n&&(zs(r,bV,5),zs(r,EV,5),zs(r,xV,5),zs(r,Lw,5)),2&n){let s;yi(s=_i())&&(i._labelChild=s.first),yi(s=_i())&&(i._prependChild=s.first),yi(s=_i())&&(i._appendChild=s.first),yi(s=_i())&&(i._valueDisplayChild=s.first)}},viewQuery:function(n,i){if(1&n&&(ga(uV,7),ga(cV,7),ga(dV,7)),2&n){let r;yi(r=_i())&&(i._canvas=r.first),yi(r=_i())&&(i._label=r.first),yi(r=_i())&&(i._reading=r.first)}},hostAttrs:["role","slider","aria-readonly","true"],hostVars:7,hostBindings:function(n,i){2&n&&(Pn("aria-valuemin",i.min)("aria-valuemax",i.max)("aria-valuenow",i.value)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby),Ps("ngx-gauge-meter",!0))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],size:"size",margin:"margin",min:"min",animate:"animate",max:"max",type:"type",cap:"cap",thick:"thick",label:"label",append:"append",prepend:"prepend",foregroundColor:"foregroundColor",backgroundColor:"backgroundColor",thresholds:"thresholds",markers:"markers",horizontalMarkerLabels:"horizontalMarkerLabels",value:"value",duration:"duration"},features:[kt],ngContentSelectors:wV,decls:17,vars:16,consts:[[1,"reading-block"],["reading",""],[1,"reading-affix",3,"ngSwitch"],[4,"ngSwitchCase"],[3,"ngSwitch"],[1,"reading-label",3,"ngSwitch"],["rLabel",""],["canvas",""]],template:function(n,i){1&n&&(function zp(t){const e=D()[16][6];if(!e.projection){const i=e.projection=ms(t?t.length:1,null),r=i.slice();let s=e.child;for(;null!==s;){const o=t?ZA(s,t):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}(DV),gi(0,"div",0,1)(2,"u",2),Zn(3,fV,1,0,"ng-content",3),Zn(4,hV,2,1,"ng-container",3),Gi(),pi(5,4),Zn(6,gV,1,0,"ng-content",3),Zn(7,pV,3,3,"ng-container",3),mi(),gi(8,"u",2),Zn(9,mV,1,0,"ng-content",3),Zn(10,yV,2,1,"ng-container",3),Gi()(),gi(11,"div",5,6),Zn(13,_V,1,0,"ng-content",3),Zn(14,vV,2,1,"ng-container",3),Gi(),hc(15,"canvas",null,7)),2&n&&(ra("font-size",.22*(i.size-2*i.margin)+"px"),Be(2),dt("ngSwitch",null!=i._prependChild),Be(1),dt("ngSwitchCase",!0),Be(1),dt("ngSwitchCase",!1),Be(1),dt("ngSwitch",null!=i._valueDisplayChild),Be(1),dt("ngSwitchCase",!0),Be(1),dt("ngSwitchCase",!1),Be(1),dt("ngSwitch",null!=i._appendChild),Be(1),dt("ngSwitchCase",!0),Be(1),dt("ngSwitchCase",!1),Be(1),ra("font-size",(i.size-2*i.margin)/13+"px"),dt("ngSwitch",null!=i._labelChild),Be(2),dt("ngSwitchCase",!0),Be(1),dt("ngSwitchCase",!1))},directives:[Na,T_],pipes:[R_],styles:[".ngx-gauge-meter{display:inline-block;text-align:center;position:relative}.reading-block{position:absolute;width:100%;font-weight:400;white-space:nowrap;text-align:center;overflow:hidden;text-overflow:ellipsis}.reading-label{font-family:inherit;width:100%;display:inline-block;position:absolute;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}.reading-affix{text-decoration:none;font-size:.6em;opacity:.8;font-weight:200;padding:0 .18em}.reading-affix:first-child{padding-left:0}.reading-affix:last-child{padding-right:0}\n"],encapsulation:2}),t})(),SV=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Je({type:t}),t.\u0275inj=Ue({imports:[[O_]]}),t})(),MV=(()=>{class t{constructor(){this.type="full",this.min=0,this.max=100,this.cap="butt",this.thick=6,this.foregroundColor="rgba(0, 150, 136, 1)",this.backgroundColor="rgba(0, 0, 0, 0.1)",this.duration=1500,this.thresholds={},this.markers={},this.margin=0,this.animate=!0,this.horizontalMarkerLabels=!1,this.size=200}ngOnChanges(n){}onResized(n){this.size=(n.newWidth<n.newHeight?n.newWidth:n.newHeight)-10}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=mo({type:t,selectors:[["drayman-gauge-internal"]],inputs:{type:"type",min:"min",max:"max",value:"value",cap:"cap",thick:"thick",label:"label",foregroundColor:"foregroundColor",backgroundColor:"backgroundColor",append:"append",prepend:"prepend",duration:"duration",thresholds:"thresholds",markers:"markers",margin:"margin",animate:"animate",valueLabel:"valueLabel",valueStyle:"valueStyle",horizontalMarkerLabels:"horizontalMarkerLabels"},features:[kt],decls:5,vars:20,consts:[["fxLayoutAlign","center center",2,"width","100%","height","100%",3,"resized"],[3,"horizontalMarkerLabels","size","type","min","max","value","cap","thick","label","foregroundColor","backgroundColor","append","prepend","duration","thresholds","markers","margin","animate"],[2,"display","contents",3,"ngStyle"]],template:function(n,i){1&n&&(gi(0,"div",0),rn("resized",function(s){return i.onResized(s)}),gi(1,"ngx-gauge",1)(2,"ngx-gauge-value")(3,"div",2),kr(4),Gi()()()()),2&n&&(Be(1),dt("horizontalMarkerLabels",i.horizontalMarkerLabels)("size",i.size)("type",i.type)("min",i.min)("max",i.max)("value",i.value)("cap",i.cap)("thick",i.thick)("label",i.label)("foregroundColor",i.foregroundColor)("backgroundColor",i.backgroundColor)("append",i.append)("prepend",i.prepend)("duration",i.duration)("thresholds",i.thresholds)("markers",i.markers)("margin",i.margin)("animate",i.animate),Be(2),dt("ngStyle",i.valueStyle),Be(1),oa(" ",i.valueLabel||i.value," "))},directives:[Cw,aV,AV,Lw,Ra,pw],styles:[""]}),t})(),IV=(()=>{class t{constructor(n){this.injector=n}ngDoBootstrap(){const n=function ON(t,e){const n=function SN(t,e){return e.get(Gr).resolveComponentFactory(t).inputs}(t,e.injector),i=e.strategyFactory||new FN(t,e.injector),r=function AN(t){const e={};return t.forEach(({propName:n,templateName:i})=>{e[function wN(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=n}),e}(n);class s extends RN{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);n.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const u=this[l];delete this[l],a.setInputValue(l,u)})}return this._ngElementStrategy}attributeChangedCallback(a,l,u,c){this.ngElementStrategy.setInputValue(r[a],u)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),n.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(MV,{injector:this.injector});customElements.define("drayman-gauge",n)}}return t.\u0275fac=function(n){return new(n||t)(F(Mt))},t.\u0275mod=Je({type:t}),t.\u0275inj=Ue({imports:[[W_,NO,RP,NP,sV,SV,lV]]}),t})();(function hI(){n_=!1})(),WF().bootstrapModule(IV).catch(t=>console.error(t))})()})();