@drayman/elements 1.24.0 → 1.25.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 +87 -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
@@ -1 +1 @@
1
- !function(t){var e={};function n(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)n.d(i,s,(function(e){return t[e]}).bind(null,s));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}({0:function(t,e,n){t.exports=n("zUnb")},"4Xgz":function(t,e,n){"use strict";var i,s,r;"undefined"!=typeof window&&window,s=[n("MXs6")],void 0===(r="function"==typeof(i=function(t){var e=function(){var e,n={},i=[];function s(t){t||(t=document.documentElement);var e=window.getComputedStyle(t,null).fontSize;return parseFloat(e)||16}function r(t,e){var n=e.split(/\d/),i=n[n.length-1];switch(e=parseFloat(e),i){case"px":return e;case"em":return e*s(t);case"rem":return e*s();case"vw":return e*document.documentElement.clientWidth/100;case"vh":return e*document.documentElement.clientHeight/100;case"vmin":case"vmax":var r=document.documentElement.clientWidth/100,o=document.documentElement.clientHeight/100;return e*(0,Math["vmin"===i?"min":"max"])(r,o);default:return e}}function o(t,e){var i,s,o,a,l,c,h,u;this.element=t;var d=["min-width","min-height","max-width","max-height"];this.call=function(){for(i in o=function(t){if(!t.getBoundingClientRect)return{width:t.offsetWidth,height:t.offsetHeight};var e=t.getBoundingClientRect();return{width:Math.round(e.width),height:Math.round(e.height)}}(this.element),c={},n[e])n[e].hasOwnProperty(i)&&(a=r(this.element,(s=n[e][i]).value),l="width"===s.property?o.width:o.height,h="","min"===s.mode&&l>=a&&(h+=s.value),"max"===s.mode&&l<=a&&(h+=s.value),c[u=s.mode+"-"+s.property]||(c[u]=""),h&&-1===(" "+c[u]+" ").indexOf(" "+h+" ")&&(c[u]+=" "+h));for(var t in d)d.hasOwnProperty(t)&&(c[d[t]]?this.element.setAttribute(d[t],c[d[t]].substr(1)):this.element.removeAttribute(d[t]))}}function a(e,n){e.elementQueriesSetupInformation||(e.elementQueriesSetupInformation=new o(e,n)),e.elementQueriesSensor||(e.elementQueriesSensor=new t(e,(function(){e.elementQueriesSetupInformation.call()})))}function l(t,s,r,o){if(void 0===n[t]){n[t]=[];var a=i.length;e.innerHTML+="\n"+t+" {animation: 0.1s element-queries;}",e.innerHTML+="\n"+t+" > .resize-sensor {min-width: "+a+"px;}",i.push(t)}n[t].push({mode:s,property:r,value:o})}function c(t){var e;if(document.querySelectorAll&&(e=t?t.querySelectorAll.bind(t):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 h(e){var n=[],i=[],s=[],r=0,o=-1,a=[];for(var l in e.children)if(e.children.hasOwnProperty(l)&&e.children[l].tagName&&"img"===e.children[l].tagName.toLowerCase()){n.push(e.children[l]);var c=e.children[l].getAttribute("min-width")||e.children[l].getAttribute("data-min-width"),h=e.children[l].getAttribute("data-src")||e.children[l].getAttribute("url");s.push(h),i.push({minWidth:c}),c?e.children[l].style.display="none":(r=n.length-1,e.children[l].style.display="block")}function u(){var t,l=!1;for(t in n)n.hasOwnProperty(t)&&i[t].minWidth&&e.offsetWidth>i[t].minWidth&&(l=t);if(l||(l=r),o!==l)if(a[l])n[o].style.display="none",n[l].style.display="block",o=l;else{var c=new Image;c.onload=function(){n[l].src=s[l],n[o].style.display="none",n[l].style.display="block",a[l]=!0,o=l},c.src=s[l]}else n[l].src=s[l]}o=r,e.resizeSensorInstance=new t(e,u),u()}var u=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,d=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function f(t){var e,n,i,s;for(t=t.replace(/'/g,'"');null!==(e=u.exec(t));)for(n=e[1]+e[3],i=e[2];null!==(s=d.exec(i));)l(n,s[1],s[2],s[3])}function p(t){var e="";if(t)if("string"==typeof t)-1===(t=t.toLowerCase()).indexOf("min-width")&&-1===t.indexOf("max-width")||f(t);else for(var n=0,i=t.length;n<i;n++)1===t[n].type?-1!==(e=t[n].selectorText||t[n].cssText).indexOf("min-height")||-1!==e.indexOf("max-height")?f(e):-1===e.indexOf("min-width")&&-1===e.indexOf("max-width")||f(e):4===t[n].type?p(t[n].cssRules||t[n].rules):3===t[n].type&&t[n].styleSheet.hasOwnProperty("cssRules")&&p(t[n].styleSheet.cssRules)}var m=!1;this.init=function(){var n="animationstart";void 0!==document.documentElement.style.webkitAnimationName?n="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?n="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(n="oanimationstart"),document.body.addEventListener(n,(function(e){var n=e.target,s=n&&window.getComputedStyle(n,null),r=s&&s.getPropertyValue("animation-name");if(r&&-1!==r.indexOf("element-queries")){n.elementQueriesSensor=new t(n,(function(){n.elementQueriesSetupInformation&&n.elementQueriesSetupInformation.call()}));var o=window.getComputedStyle(n.resizeSensor,null).getPropertyValue("min-width");o=parseInt(o.replace("px","")),a(e.target,i[o])}})),m||((e=document.createElement("style")).type="text/css",e.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",e.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(e),m=!0);for(var s=0,r=document.styleSheets.length;s<r;s++)try{document.styleSheets[s].href&&0===document.styleSheets[s].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[s].href),p(document.styleSheets[s].cssRules||document.styleSheets[s].rules||document.styleSheets[s].cssText)}catch(o){}!function(){for(var t=c()("[data-responsive-image],[responsive-image]"),e=0,n=t.length;e<n;e++)h(t[e])}()},this.findElementQueriesElements=function(t){!function(t){var e=c(t);for(var i in n)if(n.hasOwnProperty(i))for(var s=e(i,t),r=0,o=s.length;r<o;r++)a(s[r],i)}(t)},this.update=function(){this.init()}};return e.update=function(){e.instance.update()},e.detach=function(t){t.elementQueriesSetupInformation?(t.elementQueriesSensor.detach(),delete t.elementQueriesSetupInformation,delete t.elementQueriesSensor):t.resizeSensorInstance&&(t.resizeSensorInstance.detach(),delete t.resizeSensorInstance)},e.init=function(){e.instance||(e.instance=new e),e.instance.init()},e.findElementQueriesElements=function(t){e.instance.findElementQueriesElements(t)},e.listen=function(){!function(t){if(document.addEventListener)document.addEventListener("DOMContentLoaded",t,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var e=setInterval((function(){/loaded|complete/i.test(document.readyState)&&(t(),clearInterval(e))}),10);else window.onload=t}(e.init)},e})?i.apply(e,s):i)||(t.exports=r)},"5vqC":function(t,e,n){t.exports={ResizeSensor:n("MXs6"),ElementQueries:n("4Xgz")}},MXs6:function(t,e,n){"use strict";var i,s;"undefined"!=typeof window&&window,void 0===(s="function"==typeof(i=function(){if("undefined"==typeof window)return null;var t="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(e){return t.setTimeout(e,20)},n=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||function(e){t.clearTimeout(e)};function i(t,e){var n=Object.prototype.toString.call(t),i="[object Array]"===n||"[object NodeList]"===n||"[object HTMLCollection]"===n||"[object Object]"===n||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements,s=0,r=t.length;if(i)for(;s<r;s++)e(t[s]);else e(t)}function s(t){if(!t.getBoundingClientRect)return{width:t.offsetWidth,height:t.offsetHeight};var e=t.getBoundingClientRect();return{width:Math.round(e.width),height:Math.round(e.height)}}function r(t,e){Object.keys(e).forEach((function(n){t.style[n]=e[n]}))}var o=function(t,a){var l=0;function c(){var t,e,n=[];this.add=function(t){n.push(t)},this.call=function(i){for(t=0,e=n.length;t<e;t++)n[t].call(this,i)},this.remove=function(i){var s=[];for(t=0,e=n.length;t<e;t++)n[t]!==i&&s.push(n[t]);n=s},this.length=function(){return n.length}}i(t,(function(t){!function(t,n){if(t)if(t.resizedAttached)t.resizedAttached.add(n);else{t.resizedAttached=new c,t.resizedAttached.add(n),t.resizeSensor=document.createElement("div"),t.resizeSensor.dir="ltr",t.resizeSensor.className="resize-sensor";var i={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},o={position:"absolute",left:"0px",top:"0px",transition:"0s"};r(t.resizeSensor,i);var a=document.createElement("div");a.className="resize-sensor-expand",r(a,i);var h=document.createElement("div");r(h,o),a.appendChild(h);var u=document.createElement("div");u.className="resize-sensor-shrink",r(u,i);var d=document.createElement("div");r(d,o),r(d,{width:"200%",height:"200%"}),u.appendChild(d),t.resizeSensor.appendChild(a),t.resizeSensor.appendChild(u),t.appendChild(t.resizeSensor);var f=window.getComputedStyle(t),p=f?f.getPropertyValue("position"):null;"absolute"!==p&&"relative"!==p&&"fixed"!==p&&"sticky"!==p&&(t.style.position="relative");var m=!1,g=0,y=s(t),v=0,x=0,b=!0;l=0;var w=function(){if(b){if(0===t.offsetWidth&&0===t.offsetHeight)return void(l||(l=e((function(){l=0,w()}))));b=!1}var n,i;i=t.offsetHeight,h.style.width=(n=t.offsetWidth)+10+"px",h.style.height=i+10+"px",a.scrollLeft=n+10,a.scrollTop=i+10,u.scrollLeft=n+10,u.scrollTop=i+10};t.resizeSensor.resetSensor=w;var _=function(){g=0,m&&(v=y.width,x=y.height,t.resizedAttached&&t.resizedAttached.call(y))},T=function(){y=s(t),(m=y.width!==v||y.height!==x)&&!g&&(g=e(_)),w()},S=function(t,e,n){t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener(e,n)};S(a,"scroll",T),S(u,"scroll",T),l=e((function(){l=0,w()}))}}(t,a)})),this.detach=function(e){l||(n(l),l=0),o.detach(t,e)},this.reset=function(){t.resizeSensor.resetSensor()}};if(o.reset=function(t){i(t,(function(t){t.resizeSensor.resetSensor()}))},o.detach=function(t,e){i(t,(function(t){t&&(t.resizedAttached&&"function"==typeof e&&(t.resizedAttached.remove(e),t.resizedAttached.length())||t.resizeSensor&&(t.contains(t.resizeSensor)&&t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached))}))},"undefined"!=typeof MutationObserver){var a=new MutationObserver((function(t){for(var e in t)if(t.hasOwnProperty(e))for(var n=t[e].addedNodes,i=0;i<n.length;i++)n[i].resizeSensor&&o.reset(n[i])}));document.addEventListener("DOMContentLoaded",(function(t){a.observe(document.body,{childList:!0,subtree:!0})}))}return o})?i.call(e,n,e,t):i)||(t.exports=s)},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const h=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let u=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:s,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(i(r)){s&&(this._unsubscribe=void 0);try{r.call(this)}catch(a){e=a instanceof h?d(a.errors):[a]}}if(l(o)){let t=-1,n=o.length;for(;++t<n;){const n=o[t];if(c(n))try{n.unsubscribe()}catch(a){e=e||[],a instanceof h?e=e.concat(d(a.errors)):e.push(a)}}}if(e)throw new h(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}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 t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var e;return t.EMPTY=((e=new t).closed=!0,e),t})();function d(t){return t.reduce((t,e)=>t.concat(e instanceof h?e.errors:e),[])}const f=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class p extends u{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof p?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[f](){return this}static create(t,e,n){const i=new p(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class m extends p{constructor(t,e,n,s){let r;super(),this._parentSubscriber=t;let o=this;i(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=r;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(t){return t}let v=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,s=function(t,e,n){if(t){if(t instanceof p)return t;if(t[f])return t[f]()}return t||e||n?new p(t,e,n):new p(a)}(t,e,n);if(s.add(i?i.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof p?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=x(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=x(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function x(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const b=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends u{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class _ extends p{constructor(t){super(t),this.destination=t}}let T=(()=>{class t extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new _(this)}lift(t){const e=new S(this,this);return e.operator=t,e}next(t){if(this.closed)throw new b;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].next(t)}}error(t){if(this.closed)throw new b;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new b;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let i=0;i<e;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new b;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new b;return this.hasError?(t.error(this.thrownError),u.EMPTY):this.isStopped?(t.complete(),u.EMPTY):(this.observers.push(t),new w(this,t))}asObservable(){const t=new v;return t.source=this,t}}return t.create=(t,e)=>new S(t,e),t})();class S extends T{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):u.EMPTY}}function k(t){return t&&"function"==typeof t.schedule}function C(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new A(t,e))}}class A{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new E(t,this.project,this.thisArg))}}class E extends p{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const L=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()};function D(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const F=D(),M=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function O(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const I=t=>{if(t&&"function"==typeof t[g])return i=t,t=>{const e=i[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(M(t))return L(t);if(O(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[F])return e=t,t=>{const n=e[F]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,i};function P(t,e){return new v(n=>{const i=new u;let s=0;return i.add(e.schedule((function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()}))),i})}function N(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new v(n=>{const i=new u;return i.add(e.schedule(()=>{const s=t[g]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(O(t))return function(t,e){return new v(n=>{const i=new u;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(M(t))return P(t,e);if(function(t){return t&&"function"==typeof t[F]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new v(n=>{const i=new u;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[F](),i.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())})))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof v?t:new v(I(t))}class R extends p{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class H extends p{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function V(t,e){if(!e.closed)return t instanceof v?t.subscribe(e):I(t)(e)}class j{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new z(t,this.project,this.concurrent))}}class z extends H{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e)}_innerSub(t){const e=new R(this),n=this.destination;n.add(e);const i=V(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function B(t,e){return e?P(t,e):new v(L(t))}function $(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return k(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 v?t[0]:function(t=Number.POSITIVE_INFINITY){return function t(e,n,i=Number.POSITIVE_INFINITY){return"function"==typeof n?s=>s.pipe(t((t,i)=>N(e(t,i)).pipe(C((e,s)=>n(t,e,i,s))),i)):("number"==typeof n&&(i=n),t=>t.lift(new j(e,i)))}(y,t)}(e)(B(t,n))}function Y(){return function(t){return t.lift(new W(t))}}class W{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new q(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class q extends p{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class U extends v{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new u,t.add(this.source.subscribe(new G(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return Y()(this)}}const X=(()=>{const t=U.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 G extends _{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function Q(){return new T}function Z(t){return{toString:t}.toString()}const K="__parameters__";function J(t,e,n){return Z(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty(K)?t[K]:Object.defineProperty(t,K,{value:[]})[K];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const tt=J("Inject",t=>({token:t})),et=J("Optional"),nt=J("Self"),it=J("SkipSelf");var st=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function rt(t){for(let e in t)if(t[e]===rt)return e;throw Error("Could not find renamed property on target object.")}function ot(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function at(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function lt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function ct(t){return ht(t,t[dt])||ht(t,t[mt])}function ht(t,e){return e&&e.token===t?e:null}function ut(t){return t&&(t.hasOwnProperty(ft)||t.hasOwnProperty(gt))?t[ft]:null}const dt=rt({"\u0275prov":rt}),ft=rt({"\u0275inj":rt}),pt=rt({"\u0275provFallback":rt}),mt=rt({ngInjectableDef:rt}),gt=rt({ngInjectorDef:rt});function yt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(yt).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 vt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const xt=rt({__forward_ref__:rt});function bt(t){return t.__forward_ref__=bt,t.toString=function(){return yt(this())},t}function wt(t){return _t(t)?t():t}function _t(t){return"function"==typeof t&&t.hasOwnProperty(xt)&&t.__forward_ref__===bt}const Tt="undefined"!=typeof globalThis&&globalThis,St="undefined"!=typeof window&&window,kt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ct="undefined"!=typeof global&&global,At=Tt||Ct||St||kt,Et=rt({"\u0275cmp":rt}),Lt=rt({"\u0275dir":rt}),Dt=rt({"\u0275pipe":rt}),Ft=rt({"\u0275mod":rt}),Mt=rt({"\u0275loc":rt}),Ot=rt({"\u0275fac":rt}),It=rt({__NG_ELEMENT_ID__:rt});class Pt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=at({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Nt=new Pt("INJECTOR",-1),Rt={},Ht=/\n/gm,Vt="__source",jt=rt({provide:String,useValue:rt});let zt,Bt=void 0;function $t(t){const e=Bt;return Bt=t,e}function Yt(t){const e=zt;return zt=t,e}function Wt(t,e=st.Default){if(void 0===Bt)throw new Error("inject() must be called from an injection context");return null===Bt?Ut(t,void 0,e):Bt.get(t,e&st.Optional?null:void 0,e)}function qt(t,e=st.Default){return(zt||Wt)(wt(t),e)}function Ut(t,e,n){const i=ct(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&st.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${yt(t)}]`)}function Xt(t){const e=[];for(let n=0;n<t.length;n++){const i=wt(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=st.Default;for(let e=0;e<i.length;e++){const s=i[e];s instanceof et||"Optional"===s.ngMetadataName||s===et?n|=st.Optional:s instanceof it||"SkipSelf"===s.ngMetadataName||s===it?n|=st.SkipSelf:s instanceof nt||"Self"===s.ngMetadataName||s===nt?n|=st.Self:t=s instanceof tt||s===tt?s.token:s}e.push(qt(t,n))}else e.push(qt(i))}return e}class Gt{get(t,e=Rt){if(e===Rt){const e=new Error(`NullInjectorError: No provider for ${yt(t)}!`);throw e.name="NullInjectorError",e}return e}}class Qt{}function Zt(t,e){t.forEach(t=>Array.isArray(t)?Zt(t,e):e(t))}function Kt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Jt(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function te(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function ee(t,e,n){let i=ie(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function ne(t,e){const n=ie(t,e);if(n>=0)return t[1|n]}function ie(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}var se=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),re=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const oe={},ae=[];let le=0;function ce(t){return Z(()=>{const e={},n={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:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===se.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ae,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||re.Emulated,id:"c",styles:t.styles||ae,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=le++,n.inputs=pe(t.inputs,e),n.outputs=pe(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(he):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(ue):null,n})}function he(t){return ge(t)||function(t){return t[Lt]||null}(t)}function ue(t){return function(t){return t[Dt]||null}(t)}const de={};function fe(t){const e={type:t.type,bootstrap:t.bootstrap||ae,declarations:t.declarations||ae,imports:t.imports||ae,exports:t.exports||ae,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&Z(()=>{de[t.id]=t.type}),e}function pe(t,e){if(null==t)return oe;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const me=ce;function ge(t){return t[Et]||null}function ye(t,e){return t.hasOwnProperty(Ot)?t[Ot]:null}function ve(t,e){const n=t[Ft]||null;if(!n&&!0===e)throw new Error(`Type ${yt(t)} does not have '\u0275mod' property.`);return n}const xe=20,be=10;function we(t){return Array.isArray(t)&&"object"==typeof t[1]}function _e(t){return Array.isArray(t)&&!0===t[1]}function Te(t){return 0!=(8&t.flags)}function Se(t){return 2==(2&t.flags)}function ke(t){return 1==(1&t.flags)}function Ce(t){return null!==t.template}function Ae(t){return 0!=(512&t[2])}class Ee{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Le(){return De}function De(t){return t.type.prototype.ngOnChanges&&(t.setInput=Me),Fe}function Fe(){const t=Oe(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===oe)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Me(t,e,n,i){const s=Oe(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:oe,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new Ee(l&&l.currentValue,e,o===oe),t[i]=e}function Oe(t){return t.__ngSimpleChanges__||null}Le.ngInherit=!0;const Ie="http://www.w3.org/2000/svg";let Pe=void 0;function Ne(){return void 0!==Pe?Pe:"undefined"!=typeof document?document:void 0}function Re(t){return!!t.listen}const He={createRenderer:(t,e)=>Ne()};function Ve(t){for(;Array.isArray(t);)t=t[0];return t}function je(t,e){return Ve(e[t+xe])}function ze(t,e){return Ve(e[t.index])}function Be(t,e){return t.data[e+xe]}function $e(t,e){const n=e[t];return we(n)?n:n[0]}function Ye(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function We(t){return 4==(4&t[2])}function qe(t){return 128==(128&t[2])}function Ue(t,e){return null===t||null==e?null:t[e]}function Xe(t){t[18]=0}function Ge(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 Qe={lFrame:vn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Ze(){return Qe.bindingsEnabled}function Ke(){return Qe.lFrame.lView}function Je(){return Qe.lFrame.tView}function tn(t){Qe.lFrame.contextLView=t}function en(){return Qe.lFrame.previousOrParentTNode}function nn(t,e){Qe.lFrame.previousOrParentTNode=t,Qe.lFrame.isParent=e}function sn(){return Qe.lFrame.isParent}function rn(){Qe.lFrame.isParent=!1}function on(){return Qe.checkNoChangesMode}function an(t){Qe.checkNoChangesMode=t}function ln(){const t=Qe.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function cn(){return Qe.lFrame.bindingIndex++}function hn(t){const e=Qe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function un(t,e){const n=Qe.lFrame;n.bindingIndex=n.bindingRootIndex=t,dn(e)}function dn(t){Qe.lFrame.currentDirectiveIndex=t}function fn(){return Qe.lFrame.currentQueryIndex}function pn(t){Qe.lFrame.currentQueryIndex=t}function mn(t,e){const n=yn();Qe.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function gn(t,e){const n=yn(),i=t[1];Qe.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex}function yn(){const t=Qe.lFrame,e=null===t?null:t.child;return null===e?vn(t):e}function vn(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function xn(){const t=Qe.lFrame;return Qe.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const bn=xn;function wn(){const t=xn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function _n(){return Qe.lFrame.selectedIndex}function Tn(t){Qe.lFrame.selectedIndex=t}function Sn(){const t=Qe.lFrame;return Be(t.tView,t.selectedIndex)}function kn(){Qe.lFrame.currentNamespace=Ie}function Cn(){Qe.lFrame.currentNamespace=null}function An(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:s,ngAfterViewInit:r,ngAfterViewChecked:o,ngOnDestroy:a}=e;i&&(t.contentHooks||(t.contentHooks=[])).push(-n,i),s&&((t.contentHooks||(t.contentHooks=[])).push(n,s),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,s)),r&&(t.viewHooks||(t.viewHooks=[])).push(-n,r),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function En(t,e,n){Fn(t,e,3,n)}function Ln(t,e,n,i){(3&t[2])===n&&Fn(t,e,n,i)}function Dn(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Fn(t,e,n,i){const s=null!=i?i:-1;let r=0;for(let o=void 0!==i?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(r=e[o],null!=i&&r>=i)break}else e[o]<0&&(t[18]+=65536),(r<s||-1==s)&&(Mn(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Mn(t,e,n,i){const s=n[i]<0,r=n[i+1],o=t[s?-n[i]:n[i]];s?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}class On{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function In(t,e,n){const i=Re(t);let s=0;for(;s<n.length;){const r=n[s];if("number"==typeof r){if(0!==r)break;s++;const o=n[s++],a=n[s++],l=n[s++];i?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=r,a=n[++s];Pn(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),s++}}return s}function Pn(t){return 64===t.charCodeAt(0)}function Nn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const s=e[i];"number"==typeof s?n=s:0===n||Rn(t,n,s,null,-1===n||2===n?e[++i]:null)}}return t}function Rn(t,e,n,i,s){let r=0,o=t.length;if(-1===e)o=-1;else for(;r<t.length;){const n=t[r++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==s&&(t[r+1]=s));if(i===t[r+1])return void(t[r+2]=s)}r++,null!==i&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,e),r=o+1),t.splice(r++,0,n),null!==i&&t.splice(r++,0,i),null!==s&&t.splice(r++,0,s)}function Hn(t){return-1!==t}function Vn(t){return 32767&t}function jn(t){return t>>16}function zn(t,e){let n=jn(t),i=e;for(;n>0;)i=i[15],n--;return i}function Bn(t){return"string"==typeof t?t:null==t?"":""+t}function $n(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Bn(t)}const Yn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(At))();function Wn(t){return{name:"window",target:t.ownerDocument.defaultView}}function qn(t){return t instanceof Function?t():t}let Un=!0;function Xn(t){const e=Un;return Un=t,e}let Gn=0;function Qn(t,e){const n=Kn(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Zn(i.data,t),Zn(e,null),Zn(i.blueprint,null));const s=Jn(t,e),r=t.injectorIndex;if(Hn(s)){const t=Vn(s),n=zn(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function Zn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Kn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Jn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],i=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function ti(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(It)&&(i=n[It]),null==i&&(i=n[It]=Gn++);const s=255&i,r=1<<s,o=64&s,a=32&s,l=e.data;128&s?o?a?l[t+7]|=r:l[t+6]|=r:a?l[t+5]|=r:l[t+4]|=r:o?a?l[t+3]|=r:l[t+2]|=r:a?l[t+1]|=r:l[t]|=r}(t,e,n)}function ei(t,e,n,i=st.Default,s){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(It)?t[It]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof s){mn(e,t);try{const t=s();if(null!=t||i&st.Optional)return t;throw new Error(`No provider for ${$n(n)}!`)}finally{bn()}}else if("number"==typeof s){if(-1===s)return new li(t,e);let r=null,o=Kn(t,e),a=-1,l=i&st.Host?e[16][6]:null;for((-1===o||i&st.SkipSelf)&&(a=-1===o?Jn(t,e):e[o+8],ai(i,!1)?(r=e[1],o=Vn(a),e=zn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(oi(s,o,t.data)){const t=ii(o,e,n,r,i,l);if(t!==ni)return t}ai(i,e[1].data[o+8]===l)&&oi(s,o,e)?(r=t,o=Vn(a),e=zn(a,e)):o=-1}}}if(i&st.Optional&&void 0===s&&(s=null),0==(i&(st.Self|st.Host))){const t=e[9],r=Yt(void 0);try{return t?t.get(n,s,i&st.Optional):Ut(n,s,i&st.Optional)}finally{Yt(r)}}if(i&st.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${$n(n)}]`)}const ni={};function ii(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=si(a,o,n,null==i?Se(a)&&Un:i!=o&&3===a.type,s&st.Host&&r===a);return null!==l?ri(e,o,l,a):ni}function si(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,h=s?a+c:t.directiveEnd;for(let u=i?a:a+c;u<h;u++){const t=o[u];if(u<l&&n===t||u>=l&&t.type===n)return u}if(s){const t=o[l];if(t&&Ce(t)&&t.type===n)return l}return null}function ri(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof On){const o=s;if(o.resolving)throw new Error("Circular dep for "+$n(r[n]));const a=Xn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=Yt(o.injectImpl)),mn(t,i);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=De(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{o.injectImpl&&Yt(l),Xn(a),o.resolving=!1,bn()}}return s}function oi(t,e,n){const i=64&t,s=32&t;let r;return r=128&t?i?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:i?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(r&1<<t)}function ai(t,e){return!(t&st.Self||t&st.Host&&e)}class li{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return ei(this._tNode,this._lView,t,void 0,e)}}function ci(t){const e=t;if(_t(t))return()=>{const t=ci(wt(e));return t?t():null};let n=ye(e);if(null===n){const t=ut(e);n=t&&t.factory}return n||null}function hi(t){return Z(()=>{const e=t.prototype.constructor,n=e[Ot]||ci(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Ot]||ci(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function ui(t){return t.ngDebugContext}function di(t){return t.ngOriginalError}function fi(t,...e){t.error(...e)}class pi{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||fi}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?ui(t)?ui(t):this._findContext(di(t)):null}_findOriginalError(t){let e=di(t);for(;e&&di(e);)e=di(e);return e}}class mi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class gi extends mi{getTypeName(){return"HTML"}}class yi extends mi{getTypeName(){return"Style"}}class vi extends mi{getTypeName(){return"Script"}}class xi extends mi{getTypeName(){return"URL"}}class bi extends mi{getTypeName(){return"ResourceURL"}}function wi(t){return t instanceof mi?t.changingThisBreaksApplicationSecurity:t}function _i(t,e){const n=Ti(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Ti(t){return t instanceof mi&&t.getTypeName()||null}let Si=!0,ki=!1;function Ci(){return ki=!0,Si}class Ai{getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Ei{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const n=e.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Li=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Di=/^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 Fi(t){return(t=String(t)).match(Li)||t.match(Di)?t:(Ci()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Mi(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Oi(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Ii=Mi("area,br,col,hr,img,wbr"),Pi=Mi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ni=Mi("rp,rt"),Ri=Oi(Ni,Pi),Hi=Oi(Ii,Oi(Pi,Mi("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")),Oi(Ni,Mi("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")),Ri),Vi=Mi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ji=Mi("srcset"),zi=Oi(Vi,ji,Mi("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"),Mi("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")),Bi=Mi("script,style,template");class $i{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Hi.hasOwnProperty(e))return this.sanitizedSomething=!0,!Bi.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let s=0;s<n.length;s++){const t=n.item(s),e=t.name,r=e.toLowerCase();if(!zi.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=t.value;Vi[r]&&(o=Fi(o)),ji[r]&&(i=o,o=(i=String(i)).split(",").map(t=>Fi(t.trim())).join(", ")),this.buf.push(" ",e,'="',qi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Hi.hasOwnProperty(e)&&!Ii.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(qi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const Yi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wi=/([^\#-~ |!])/g;function qi(t){return t.replace(/&/g,"&amp;").replace(Yi,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Wi,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ui;function Xi(t,e){let n=null;try{Ui=Ui||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Ai:new Ei(t)}(t);let i=e?String(e):"";n=Ui.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=Ui.getInertBodyElement(i)}while(i!==r);const o=new $i,a=o.sanitizeChildren(Gi(n)||n);return Ci()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Gi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Gi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Qi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Zi(t){const e=function(){const t=Ke();return t&&t[12]}();return e?e.sanitize(Qi.HTML,t)||"":_i(t,"HTML")?wi(t):Xi(Ne(),Bn(t))}function Ki(t,e){t.__ngContext__=e}function Ji(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function ts(){throw new Error("Cannot mix multi providers and regular providers")}function es(t,e,n){let i=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===i||t.charCodeAt(s+n)<=32)return s}n=s+1}}const ns="ng-template";function is(t,e,n){let i=0;for(;i<t.length;){let s=t[i++];if(n&&"class"===s){if(s=t[i],-1!==es(s.toLowerCase(),e,0))return!0}else if(1===s){for(;i<t.length&&"string"==typeof(s=t[i++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function ss(t){return 0===t.type&&t.tagName!==ns}function rs(t,e,n){return e===(0!==t.type||n?t.tagName:ns)}function os(t,e,n){let i=4;const s=t.attrs||[],r=function(t){for(let n=0;n<t.length;n++)if(3===(e=t[n])||4===e||6===e)return n;var e;return t.length}(s);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&&!rs(t,l,n)||""===l&&1===e.length){if(as(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==t.attrs){if(!is(t.attrs,c,n)){if(as(i))return!1;o=!0}continue}const h=ls(8&i?"class":l,s,ss(t),n);if(-1===h){if(as(i))return!1;o=!0;continue}if(""!==c){let t;t=h>r?"":s[h+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==es(e,c,0)||2&i&&c!==t){if(as(i))return!1;o=!0}}}}else{if(!o&&!as(i)&&!as(l))return!1;if(o&&as(l))continue;o=!1,i=l|1&i}}return as(i)||o}function as(t){return 0==(1&t)}function ls(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s<e.length;){const i=e[s];if(i===t)return s;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++s];for(;"string"==typeof t;)t=e[++s];continue}if(4===i)break;if(0===i){s+=4;continue}}s+=n?1:2}return-1}return function(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 cs(t,e,n=!1){for(let i=0;i<e.length;i++)if(os(t,e[i],n))return!0;return!1}function hs(t,e){t:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let e=0;e<t.length;e++)if(t[e]!==i[e])continue t;return!0}}return!1}function us(t,e){return t?":not("+e.trim()+")":e}function ds(t){let e=t[0],n=1,i=2,s="",r=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const e=t[++n];s+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||as(o)||(e+=us(r,s),s=""),i=o,r=r||!as(i);n++}return""!==s&&(e+=us(r,s)),e}const fs={};function ps(t){const e=t[3];return _e(e)?e[3]:e}function ms(t){return ys(t[13])}function gs(t){return ys(t[4])}function ys(t){for(;null!==t&&!_e(t);)t=t[4];return t}function vs(t){xs(Je(),Ke(),_n()+t,on())}function xs(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&En(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Ln(e,i,0,n)}Tn(n)}function bs(t,e){return t<<17|e<<2}function ws(t){return t>>17&32767}function _s(t){return 2|t}function Ts(t){return(131068&t)>>2}function Ss(t,e){return-131069&t|e<<2}function ks(t){return 1|t}function Cs(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const s=n[i],r=n[i+1];if(-1!==r){const n=t.data[r];pn(s),n.contentQueries(2,e[r],r)}}}function As(t,e,n){return Re(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Es(t,e,n,i,s,r,o,a,l,c){const h=e.blueprint.slice();return h[0]=s,h[2]=140|i,Xe(h),h[3]=h[15]=t,h[8]=n,h[10]=o||t&&t[10],h[11]=a||t&&t[11],h[12]=l||t&&t[12]||null,h[9]=c||t&&t[9]||null,h[6]=r,h[16]=2==e.type?t[16]:h,h}function Ls(t,e,n,i,s,r){const o=n+xe,a=t.data[o]||function(t,e,n,i,s,r){const o=en(),a=sn(),l=a?o:o&&o.parent,c=t.data[n]=js(0,l&&l!==e?l:null,i,n,s,r);return null===t.firstChild&&(t.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(t,e,o,i,s,r);return nn(a,!0),a}function Ds(t,e,n){gn(e,e[6]);try{const i=t.viewQuery;null!==i&&ar(1,i,n);const s=t.template;null!==s&&Os(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Cs(t,e),t.staticViewQueries&&ar(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)nr(t,e[n])}(e,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,wn()}}function Fs(t,e,n,i){const s=e[2];if(256==(256&s))return;gn(e,e[6]);const r=on();try{Xe(e),Qe.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Os(t,e,n,2,i);const o=3==(3&s);if(!r)if(o){const n=t.preOrderCheckHooks;null!==n&&En(e,n,null)}else{const n=t.preOrderHooks;null!==n&&Ln(e,n,0,null),Dn(e,0)}if(function(t){for(let e=ms(t);null!==e;e=gs(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&Ge(i,1),n[2]|=1024}}}(e),function(t){for(let e=ms(t);null!==e;e=gs(e))for(let t=be;t<e.length;t++){const n=e[t],i=n[1];qe(n)&&Fs(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&Cs(t,e),!r)if(o){const n=t.contentCheckHooks;null!==n&&En(e,n)}else{const n=t.contentHooks;null!==n&&Ln(e,n,1),Dn(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let i=t.expandoStartIndex,s=-1,r=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(r=0-o,Tn(r),i+=9+n[++t],s=i):i+=o:(null!==o&&(un(i,s),o(2,e[s])),s++)}}}finally{Tn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)er(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&ar(2,l,i),!r)if(o){const n=t.viewCheckHooks;null!==n&&En(e,n)}else{const n=t.viewHooks;null!==n&&Ln(e,n,2),Dn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Ge(e[3],-1))}finally{wn()}}function Ms(t,e,n,i){const s=e[10],r=!on(),o=We(e);try{r&&!o&&s.begin&&s.begin(),o&&Ds(t,e,i),Fs(t,e,n,i)}finally{r&&!o&&s.end&&s.end()}}function Os(t,e,n,i,s){const r=_n();try{Tn(-1),2&i&&e.length>xe&&xs(t,e,0,on()),n(i,s)}finally{Tn(r)}}function Is(t,e,n){if(Te(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s<i;s++){const e=t.data[s];e.contentQueries&&e.contentQueries(1,n[s],s)}}}function Ps(t,e,n){Ze()&&(function(t,e,n,i){const s=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||Qn(n,e),Ki(i,e);const o=n.initialInputs;for(let a=s;a<r;a++){const i=t.data[a],r=Ce(i);r&&Zs(e,n,i);const l=ri(e,t,a,n);Ki(l,e),null!==o&&Ks(0,a-s,l,i,0,o),r&&($e(n.index,e)[8]=l)}}(t,e,n,ze(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,s=n.directiveEnd,r=t.expandoInstructions,o=t.firstCreatePass,a=n.index-xe,l=Qe.lFrame.currentDirectiveIndex;try{Tn(a);for(let n=i;n<s;n++){const i=t.data[n],s=e[n];dn(n),null!==i.hostBindings||0!==i.hostVars||null!==i.hostAttrs?Ws(i,s):o&&r.push(null)}}finally{Tn(-1),dn(l)}}(t,e,n))}function Ns(t,e,n=ze){const i=e.localNames;if(null!==i){let s=e.index+1;for(let r=0;r<i.length;r+=2){const o=i[r+1],a=-1===o?n(e,t):t[o];t[s++]=a}}}function Rs(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Hs(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Hs(t,e,n,i,s,r,o,a,l,c){const h=xe+i,u=h+s,d=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:fs);return n}(h,u),f="function"==typeof c?c():c;return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:u,expandoInstructions: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 r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Vs(t,e,n,i){const s=cr(e);s.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(i,s.length-1)}function js(t,e,n,i,s,r){return{type:n,index:i,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:s,attrs:r,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}}function zs(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const s=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,s):n[i]=[e,s]}return n}function Bs(t,e,n,i){let s=!1;if(Ze()){const r=function(t,e,n){const i=t.directiveRegistry;let s=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];cs(n,o.selectors,!1)&&(s||(s=[]),ti(Qn(n,e),t,o.type),Ce(o)?(2&n.flags&&Ji(n),Us(t,n),s.unshift(o)):s.push(o))}return s}(t,e,n),o=null===i?null:{"":-1};if(null!==r){let i=0;s=!0,Gs(n,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}qs(t,n,r.length);let a=!1,l=!1;for(let s=0;s<r.length;s++){const c=r[s];n.mergedAttrs=Nn(n.mergedAttrs,c.hostAttrs),Qs(t,e,c),Xs(t.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const h=c.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-xe),a=!0),l||!h.ngOnChanges&&!h.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-xe),l=!0),$s(t,c),i+=c.hostVars}!function(t,e){const n=e.directiveEnd,i=t.data,s=e.attrs,r=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=i[l],n=t.inputs,c=null===s||ss(e)?null:Js(n,s);r.push(c),o=zs(n,l,o),a=zs(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=r,e.inputs=o,e.outputs=a}(t,n),Ys(t,e,i)}o&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const s=n[e[t+1]];if(null==s)throw new Error(`Export of name '${e[t+1]}' not found!`);i.push(e[t],s)}}}(n,i,o)}return n.mergedAttrs=Nn(n.mergedAttrs,n.attrs),s}function $s(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function Ys(t,e,n){for(let i=0;i<n;i++)e.push(fs),t.blueprint.push(fs),t.data.push(null)}function Ws(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function qs(t,e,n){const i=xe-e.index,s=t.data.length-(1048575&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(i,s,n)}function Us(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Xs(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;Ce(e)&&(n[""]=t)}}function Gs(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Qs(t,e,n){t.data.push(n);const i=n.factory||(n.factory=ye(n.type)),s=new On(i,Ce(n),null);t.blueprint.push(s),e.push(s)}function Zs(t,e,n){const i=ze(e,t),s=Rs(n),r=t[10],o=ir(t,Es(t,s,null,n.onPush?64:16,i,e,r,r.createRenderer(i,n)));t[e.index]=o}function Ks(t,e,n,i,s,r){const o=r[e];if(null!==o){const t=i.setInput;for(let e=0;e<o.length;){const s=o[e++],r=o[e++],a=o[e++];null!==t?i.setInput(n,a,s,r):n[r]=a}}}function Js(t,e){let n=null,i=0;for(;i<e.length;){const s=e[i];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,t[s],e[i+1])),i+=2}else i+=2;else i+=4}return n}function tr(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function er(t,e){const n=$e(e,t);if(qe(n)){const t=n[1];80&n[2]?Fs(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let i=ms(e);null!==i;i=gs(i))for(let e=be;e<i.length;e++){const n=i[e];if(1024&n[2]){const t=n[1];Fs(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const s=$e(n[i],e);qe(s)&&s[5]>0&&t(s)}}(n)}}function nr(t,e){const n=$e(e,t),i=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(i,n),Ds(i,n,n[8])}function ir(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function sr(t){for(;t;){t[2]|=64;const e=ps(t);if(Ae(t)&&!e)return t;t=e}return null}function rr(t,e,n){const i=e[10];i.begin&&i.begin();try{Fs(t,e,t.template,n)}catch(s){throw hr(e,s),s}finally{i.end&&i.end()}}function or(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=Ye(n),s=i[1];Ms(s,i,s.template,n)}}(t[8])}function ar(t,e,n){pn(0),e(t,n)}const lr=(()=>Promise.resolve(null))();function cr(t){return t[7]||(t[7]=[])}function hr(t,e){const n=t[9],i=n?n.get(pi,null):null;i&&i.handleError(e)}function ur(t,e,n,i,s){for(let r=0;r<n.length;){const o=n[r++],a=n[r++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,i,a):l[a]=s}}function dr(t,e){const n=e[3];return-1===t.index?_e(n)?n:null:n}function fr(t,e){const n=dr(t,e);return n?kr(e[11],n[7]):null}function pr(t,e,n,i,s){if(null!=i){let r,o=!1;_e(i)?r=i:we(i)&&(o=!0,i=i[0]);const a=Ve(i);0===t&&null!==n?null==s?Tr(e,n,a):_r(e,n,a,s||null):1===t&&null!==n?_r(e,n,a,s||null):2===t?function(t,e,n){const i=kr(t,e);i&&function(t,e,n,i){Re(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==Ve(n)&&pr(e,t,i,r,s);for(let o=be;o<n.length;o++){const s=n[o];Dr(s[1],s,t,e,i,r)}}(e,t,r,n,s)}}function mr(t,e,n,i){const s=fr(t.node,e);s&&Dr(t,e,e[11],n?1:2,s,i)}function gr(t,e){const n=t[9],i=n.indexOf(e);1024&e[2]&&Ge(e[3],-1),n.splice(i,1)}function yr(t,e){if(t.length<=be)return;const n=be+e,i=t[n];if(i){const s=i[17];null!==s&&s!==t&&gr(s,i),e>0&&(t[n-1][4]=i[4]);const r=Jt(t,be+e);mr(i[1],i,!1,null);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function vr(t,e){if(!(256&e[2])){const n=e[11];Re(n)&&n.destroyNode&&Dr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return br(t[1],t);for(;e;){let n=null;if(we(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)we(e)&&br(e[1],e),e=xr(e,t);null===e&&(e=t),we(e)&&br(e[1],e),n=e&&e[4]}e=n}}(e)}}function xr(t,e){let n;return we(t)&&(n=t[6])&&2===n.type?dr(n,t):t[3]===e?null:t[3]}function br(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i<n.length;i+=2){const t=e[n[i]];if(!(t instanceof On)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+1],r="function"==typeof s?s(e):Ve(e[s]),o=t[n[i+2]],a=n[i+3];"boolean"==typeof a?r.removeEventListener(n[i],o,a):a>=0?t[a]():t[-a].unsubscribe(),i+=2}else n[i].call(t[n[i+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Re(e[11])&&e[11].destroy();const i=e[17];if(null!==i&&_e(e[3])){i!==e[3]&&gr(i,e);const n=e[19];null!==n&&n.detachView(t)}}}function wr(t,e,n){let i=e.parent;for(;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){const t=n[6];return 2===t.type?fr(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return ze(e,n).parentNode;if(2&i.flags){const e=t.data,n=e[e[i.index].directiveStart].encapsulation;if(n!==re.ShadowDom&&n!==re.Native)return null}return ze(i,n)}function _r(t,e,n,i){Re(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function Tr(t,e,n){Re(t)?t.appendChild(e,n):e.appendChild(n)}function Sr(t,e,n,i){null!==i?_r(t,e,n,i):Tr(t,e,n)}function kr(t,e){return Re(t)?t.parentNode(e):e.parentNode}function Cr(t,e){if(2===t.type){const n=dr(t,e);return null===n?null:Er(n.indexOf(e,be)-be,n)}return 4===t.type||5===t.type?ze(t,e):null}function Ar(t,e,n,i){const s=wr(t,i,e);if(null!=s){const t=e[11],r=Cr(i.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)Sr(t,s,n[e],r);else Sr(t,s,n,r)}}function Er(t,e){const n=be+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return function t(e,n){if(null!==n){const i=n.type;if(3===i)return ze(n,e);if(0===i)return Er(-1,e[n.index]);if(4===i||5===i){const i=n.child;if(null!==i)return t(e,i);{const t=e[n.index];return _e(t)?Er(-1,t):Ve(t)}}{const i=e[16],s=i[6],r=ps(i),o=s.projection[n.projection];return null!=o?t(r,o):t(e,n.next)}}return null}(t,i)}return e[7]}function Lr(t,e,n,i,s,r,o){for(;null!=n;){const a=i[n.index],l=n.type;o&&0===e&&(a&&Ki(Ve(a),i),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(Lr(t,e,n.child,i,s,r,!1),pr(e,t,s,a,r)):1===l?Fr(t,e,i,n,s,r):pr(e,t,s,a,r)),n=o?n.projectionNext:n.next}}function Dr(t,e,n,i,s,r){Lr(n,i,t.node.child,e,s,r,!1)}function Fr(t,e,n,i,s,r){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)pr(e,t,s,a[l],r);else Lr(t,e,a,o[3],s,r,!0)}function Mr(t,e,n){Re(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Or(t,e,n){Re(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Ir{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,i,s,r=!1){for(;null!==i;){const o=n[i.index];if(null!==o&&s.push(Ve(o)),_e(o))for(let e=be;e<o.length;e++){const n=o[e],i=n[1].firstChild;null!==i&&t(n[1],n,i,s)}const a=i.type;if(4===a||5===a)t(e,n,i.child,s);else if(1===a){const e=n[16],r=e[6].projection[i.projection];if(Array.isArray(r))s.push(...r);else{const n=ps(e);t(n[1],n,r,s,!0)}}i=r?i.projectionNext:i.next}return s}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}vr(this._lView[1],this._lView)}onDestroy(t){Vs(this._lView[1],this._lView,null,t)}markForCheck(){sr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){rr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){an(!0);try{rr(t,e,n)}finally{an(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Dr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Pr extends Ir{constructor(t){super(t),this._view=t}detectChanges(){or(this._view)}checkNoChanges(){!function(t){an(!0);try{or(t)}finally{an(!1)}}(this._view)}get context(){return null}}let Nr,Rr,Hr;function Vr(t,e,n){return Nr||(Nr=class extends t{}),new Nr(ze(e,n))}function jr(t,e,n,i){return Rr||(Rr=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Es(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Ds(e,n,t),new Ir(n)}}),0===n.type?new Rr(i,n,Vr(e,n,i)):null}function zr(t,e,n,i){let s;Hr||(Hr=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return Vr(e,this._hostTNode,this._hostView)}get injector(){return new li(this._hostTNode,this._hostView)}get parentInjector(){const t=Jn(this._hostTNode,this._hostView),e=zn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let i=jn(t),s=e,r=e[6];for(;i>1;)s=s[15],r=s[6],i--;return r}(t,this._hostView,this._hostTNode);return Hn(t)&&null!=n?new li(n,e):new li(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-be}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(Qt,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),_e(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new Hr(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e);return function(t,e,n,i){const s=be+i,r=n.length;i>0&&(n[s-1][4]=e),i<r-be?(e[4]=n[s],Kt(n,be+i,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(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}(i,n,this._lContainer,s),mr(i,n,!0,Er(s,this._lContainer)),t.attachToViewContainerRef(this),Kt(this._lContainer[8],s,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=yr(this._lContainer,e);n&&(Jt(this._lContainer[8],e),vr(n[1],n))}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=yr(this._lContainer,e);return n&&null!=Jt(this._lContainer[8],e)?new Ir(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const r=i[n.index];if(_e(r))s=r;else{let t;if(4===n.type)t=Ve(r);else if(t=i[11].createComment(""),Ae(i)){const e=i[11],s=ze(n,i);_r(e,kr(e,s),t,function(t,e){return Re(t)?t.nextSibling(e):e.nextSibling}(e,s))}else Ar(i[1],i,t,n);i[n.index]=s=tr(r,i,t,n),ir(i,s)}return new Hr(s,n,i)}let Br=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>$r(),t})();const $r=function(t=!1){return function(t,e,n){if(!n&&Se(t)){const n=$e(t.index,e);return new Ir(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Ir(e[16],e):null}(en(),Ke(),t)},Yr=new Pt("Set Injector scope."),Wr={},qr={},Ur=[];let Xr=void 0;function Gr(){return void 0===Xr&&(Xr=new Gt),Xr}function Qr(t,e=null,n=null,i){return new Zr(t,n,e||Gr(),i)}class Zr{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&Zt(e,n=>this.processProvider(n,t,e)),Zt([t],t=>this.processInjectorType(t,[],s)),this.records.set(Nt,to(void 0,this));const r=this.records.get(Yr);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:yt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Rt,n=st.Default){this.assertNotDestroyed();const i=$t(this);try{if(!(n&st.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Pt)&&ct(t);e=n&&this.injectableDefInScope(n)?to(Kr(t),Wr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&st.Self?Gr():this.parent).get(t,e=n&st.Optional&&e===Rt?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(yt(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e[Vt]&&s.unshift(e[Vt]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=yt(e);if(Array.isArray(e))s=e.map(yt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):yt(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(Ht,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{$t(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(yt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=wt(t)))return!1;let i=ut(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=ut(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{Zt(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];Zt(i,t=>this.processProvider(t,n,i||Ur))}}this.injectorDefTypes.add(r),this.records.set(r,to(i.factory,Wr));const a=i.providers;if(null!=a&&!o){const e=t;Zt(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=no(t=wt(t))?t:wt(t&&t.provide);const s=function(t,e,n){return eo(t)?to(void 0,t.useValue):to(Jr(t,e,n),Wr)}(t,e,n);if(no(t)||!0!==t.multi){const t=this.records.get(i);t&&void 0!==t.multi&&ts()}else{let e=this.records.get(i);e?void 0===e.multi&&ts():(e=to(void 0,Wr,!0),e.factory=()=>Xt(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===qr?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(yt(t)):e.value===Wr&&(e.value=qr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Kr(t){const e=ct(t),n=null!==e?e.factory:ye(t);if(null!==n)return n;const i=ut(t);if(null!==i)return i.factory;if(t instanceof Pt)throw new Error(`Token ${yt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=te(e,"?");throw new Error(`Can't resolve all parameters for ${yt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[dt]||t[mt]||t[pt]&&t[pt]());if(e){const n=function(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 Error("unreachable")}function Jr(t,e,n){let i=void 0;if(no(t)){const e=wt(t);return ye(e)||Kr(e)}if(eo(t))i=()=>wt(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...Xt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>qt(wt(t.useExisting));else{const s=wt(t&&(t.useClass||t.provide));if(s||function(t,e,n){let i="";throw t&&e&&(i=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${yt(t)}'`+i)}(e,n,t),!function(t){return!!t.deps}(t))return ye(s)||Kr(s);i=()=>new s(...Xt(t.deps))}var s;return i}function to(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function eo(t){return null!==t&&"object"==typeof t&&jt in t}function no(t){return"function"==typeof t}const io=function(t,e,n){return function(t,e=null,n=null,i){const s=Qr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let so=(()=>{class t{static create(t,e){return Array.isArray(t)?io(t,e,""):io(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Rt,t.NULL=new Gt,t.\u0275prov=at({token:t,providedIn:"any",factory:()=>qt(Nt)}),t.__NG_ELEMENT_ID__=-1,t})();function ro(t,e,n){let i=n?t.styles:null,s=n?t.classes:null,r=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?r=t:1==r?s=vt(s,t):2==r&&(i=vt(i,t+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=s:t.classesWithoutHost=s}let oo=null;function ao(){if(!oo){const t=At.Symbol;if(t&&t.iterator)oo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(oo=n)}}}return oo}function lo(t){return!!co(t)&&(Array.isArray(t)||!(t instanceof Map)&&ao()in t)}function co(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ho(t,e,n){return t[e]=n}function uo(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function fo(t,e,n,i){const s=Ke();return uo(s,cn(),e)&&(Je(),function(t,e,n,i,s,r){const o=ze(t,e),a=e[11];if(null==i)Re(a)?a.removeAttribute(o,n,r):o.removeAttribute(n);else{const e=null==s?Bn(i):s(i,t.tagName||"",n);Re(a)?a.setAttribute(o,n,e,r):r?o.setAttributeNS(r,n,e):o.setAttribute(n,e)}}(Sn(),s,t,e,n,i)),fo}function po(t,e,n,i){return uo(t,cn(),n)?e+Bn(n)+i:fs}function mo(t,e,n,i,s,r,o,a){const l=Ke(),c=Je(),h=t+xe,u=c.firstCreatePass?function(t,e,n,i,s,r,o,a,l){const c=e.consts,h=Ls(e,n[6],t,0,o||null,Ue(c,a));Bs(e,n,h,Ue(c,l)),An(e,h);const u=h.tViews=Hs(2,-1,i,s,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),d=js(0,null,2,-1,null,null);return d.injectorIndex=h.injectorIndex,u.node=d,null!==e.queries&&(e.queries.template(e,h),u.queries=e.queries.embeddedTView(h)),h}(t,c,l,e,n,i,s,r,o):c.data[h];nn(u,!1);const d=l[11].createComment("");Ar(c,l,d,u),Ki(d,l),ir(l,l[h]=tr(d,l,d,u)),ke(u)&&Ps(c,l,u),null!=o&&Ns(l,u,a)}function go(t,e=st.Default){const n=Ke();return null==n?qt(t,e):ei(en(),n,wt(t),e)}function yo(t,e,n){const i=Ke();return uo(i,cn(),e)&&function(t,e,n,i,s,r,o,a){const l=ze(e,n);let c,h=e.inputs;var u;null!=h&&(c=h[i])?(ur(t,n,c,i,s),Se(e)&&function(t,e){const n=$e(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(i="class"===(u=i)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,s=null!=o?o(s,e.tagName||"",i):s,Re(r)?r.setProperty(l,i,s):Pn(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}(Je(),Sn(),i,t,e,i[11],n),yo}function vo(t,e,n,i,s){const r=s?"class":"style";ur(t,n,e.inputs[r],r,i)}function xo(t,e,n,i){const s=Ke(),r=Je(),o=xe+t,a=s[11],l=s[o]=As(e,a,Qe.lFrame.currentNamespace),c=r.firstCreatePass?function(t,e,n,i,s,r,o){const a=e.consts,l=Ue(a,r),c=Ls(e,n[6],t,3,s,l);return Bs(e,n,c,Ue(a,o)),null!==c.attrs&&ro(c,c.attrs,!1),null!==c.mergedAttrs&&ro(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(t,r,s,0,e,n,i):r.data[o];nn(c,!0);const h=c.mergedAttrs;null!==h&&In(a,l,h);const u=c.classes;null!==u&&Or(a,l,u);const d=c.styles;null!==d&&Mr(a,l,d),Ar(r,s,l,c),0===Qe.lFrame.elementDepthCount&&Ki(l,s),Qe.lFrame.elementDepthCount++,ke(c)&&(Ps(r,s,c),Is(r,c,s)),null!==i&&Ns(s,c)}function bo(){let t=en();sn()?rn():(t=t.parent,nn(t,!1));const e=t;Qe.lFrame.elementDepthCount--;const n=Je();n.firstCreatePass&&(An(n,t),Te(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&vo(n,e,Ke(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&vo(n,e,Ke(),e.stylesWithoutHost,!1)}function wo(t,e,n,i){xo(t,e,n,i),bo()}function _o(t,e,n){const i=Ke(),s=Je(),r=t+xe,o=s.firstCreatePass?function(t,e,n,i,s){const r=e.consts,o=Ue(r,i),a=Ls(e,n[6],t,4,"ng-container",o);return null!==o&&ro(a,o,!0),Bs(e,n,a,Ue(r,s)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,s,i,e,n):s.data[r];nn(o,!0);const a=i[r]=i[11].createComment("");Ar(s,i,a,o),Ki(a,i),ke(o)&&(Ps(s,i,o),Is(s,o,i)),null!=n&&Ns(i,o)}function To(){let t=en();const e=Je();sn()?rn():(t=t.parent,nn(t,!1)),e.firstCreatePass&&(An(e,t),Te(t)&&e.queries.elementEnd(t))}function So(){return Ke()}function ko(t){return!!t&&"function"==typeof t.then}function Co(t,e,n=!1,i){const s=Ke(),r=Je(),o=en();return function(t,e,n,i,s,r,o=!1,a){const l=ke(i),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),h=cr(e);let u=!0;if(3===i.type){const d=ze(i,e),f=a?a(d):oe,p=f.target||d,m=h.length,g=a?t=>a(Ve(t[i.index])).target:i.index;if(Re(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const t=s[r];if(t===n&&s[r+1]===i){const t=e[7],n=s[r+2];return t.length>n?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=Eo(i,e,r,!1);const t=n.listen(f.name||p,s,r);h.push(r,t),c&&c.push(s,g,m,m+1)}}else r=Eo(i,e,r,!0),p.addEventListener(s,r,o),h.push(r),c&&c.push(s,g,m,o)}const d=i.outputs;let f;if(u&&null!==d&&(f=d[s])){const t=f.length;if(t)for(let n=0;n<t;n+=2){const t=e[f[n]][f[n+1]].subscribe(r),o=h.length;h.push(r,t),c&&c.push(s,i.index,o,-(o+1))}}}(r,s,s[11],o,t,e,n,i),Co}function Ao(t,e,n){try{return!1!==e(n)}catch(i){return hr(t,i),!1}}function Eo(t,e,n,i){return function s(r){if(r===Function)return n;const o=2&t.flags?$e(t.index,e):e;0==(32&e[2])&&sr(o);let a=Ao(e,n,r),l=s.__ngNextListenerFn__;for(;l;)a=Ao(e,l,r)&&a,l=l.__ngNextListenerFn__;return i&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function Lo(t=1){return function(t){return(Qe.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Qe.lFrame.contextLView))[8]}(t)}function Do(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s<e.length;s++){const r=e[s];if("*"!==r){if(null===i?cs(t,r,!0):hs(i,r))return s}else n=s}return n}function Fo(t){const e=Ke()[16][6];if(!e.projection){const n=e.projection=te(t?t.length:1,null),i=n.slice();let s=e.child;for(;null!==s;){const e=t?Do(s,t):0;null!==e&&(i[e]?i[e].projectionNext=s:n[e]=s,i[e]=s),s=s.next}}}function Mo(t,e=0,n){const i=Ke(),s=Je(),r=Ls(s,i[6],t,1,null,n||null);null===r.projection&&(r.projection=e),rn(),function(t,e,n){Fr(e[11],0,e,n,wr(t,n,e),Cr(n.parent||e[6],e))}(s,i,r)}const Oo=[];function Io(t,e,n,i,s){const r=t[n+1],o=null===e;let a=i?ws(r):Ts(r),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];Po(t[a],e)&&(l=!0,t[a+1]=i?ks(n):_s(n)),a=i?ws(n):Ts(n)}l&&(t[n+1]=i?_s(r):ks(r))}function Po(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ie(t,e)>=0}const No={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ro(t){return t.substring(No.key,No.keyEnd)}function Ho(t,e){const n=No.textEnd;return n===e?-1:(e=No.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,No.key=e,n),Vo(t,e,n))}function Vo(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function jo(t,e,n){return $o(t,e,n,!1),jo}function zo(t,e){return $o(t,e,null,!0),zo}function Bo(t,e){for(let n=function(t){return function(t){No.key=0,No.keyEnd=0,No.value=0,No.valueEnd=0,No.textEnd=t.length}(t),Ho(t,Vo(t,0,No.textEnd))}(e);n>=0;n=Ho(e,n))ee(t,Ro(e),!0)}function $o(t,e,n,i){const s=Ke(),r=Je(),o=hn(2);r.firstUpdatePass&&qo(r,t,o,i),e!==fs&&uo(s,o,e)&&Go(r,r.data[_n()+xe],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=yt(wi(t)))),t}(e,n),i,o)}function Yo(t,e,n,i){const s=Je(),r=hn(2);s.firstUpdatePass&&qo(s,null,r,i);const o=Ke();if(n!==fs&&uo(o,r,n)){const a=s.data[_n()+xe];if(Ko(a,i)&&!Wo(s,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=vt(t,n||"")),vo(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===fs&&(s=Oo);let l=0,c=0,h=0<s.length?s[0]:null,u=0<r.length?r[0]:null;for(;null!==h||null!==u;){const d=l<s.length?s[l+1]:void 0,f=c<r.length?r[c+1]:void 0;let p=null,m=void 0;h===u?(l+=2,c+=2,d!==f&&(p=u,m=f)):null===u||null!==h&&h<u?(l+=2,p=h):(c+=2,p=u,m=f),null!==p&&Go(t,e,n,i,p,m,o,a),h=l<s.length?s[l]:null,u=c<r.length?r[c]:null}}(s,a,o,o[11],o[r+1],o[r+1]=function(t,e,n){if(null==n||""===n)return Oo;const i=[],s=wi(n);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(i,s[r],!0);else if("object"==typeof s)for(const r in s)s.hasOwnProperty(r)&&t(i,r,s[r]);else"string"==typeof s&&e(i,s);return i}(t,e,n),i,r)}}function Wo(t,e){return e>=t.expandoStartIndex}function qo(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[_n()+xe],o=Wo(t,n);Ko(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=function(t){const e=Qe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=Xo(n=Uo(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=Uo(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Ts(i))return t[ws(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Uo(null,t,e,n[1],i),n=Xo(n,e.attrs,i),function(t,e,n,i){t[ws(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i=void 0;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<s;r++)i=Xo(i,t[r].hostAttrs,n);return Xo(i,e.attrs,n)}(t,e,i)}return void 0!==r&&(i?e.residualClasses=r:e.residualStyles=r),n}(s,r,e,i),function(t,e,n,i,s,r){let o=r?e.classBindings:e.styleBindings,a=ws(o),l=Ts(o);t[i]=n;let c,h=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||ie(t,c)>0)&&(h=!0)}else c=n;if(s)if(0!==l){const e=ws(t[a+1]);t[i+1]=bs(e,a),0!==e&&(t[e+1]=Ss(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=bs(a,0),0!==a&&(t[a+1]=Ss(t[a+1],i)),a=i;else t[i+1]=bs(l,0),0===a?a=i:t[l+1]=Ss(t[l+1],i),l=i;h&&(t[i+1]=_s(t[i+1])),Io(t,c,i,!0),Io(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&ie(r,e)>=0&&(n[i+1]=ks(n[i+1]))}(e,c,t,i,r),o=bs(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function Uo(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(r=e[a],i=Xo(i,r.hostAttrs,s),r!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function Xo(t,e,n){const i=n?1:2;let s=-1;if(null!==e)for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?s=o:s===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),ee(t,o,!!n||e[++r]))}return void 0===t?null:t}function Go(t,e,n,i,s,r,o,a){if(3!==e.type)return;const l=t.data,c=l[a+1];Zo(1==(1&c)?Qo(l,e,n,s,Ts(c),o):void 0)||(Zo(r)||2==(2&c)&&(r=Qo(l,null,n,s,a,o)),function(t,e,n,i,s){const r=Re(t);if(e)s?r?t.addClass(n,i):n.classList.add(i):r?t.removeClass(n,i):n.classList.remove(i);else{const e=-1==i.indexOf("-")?void 0:2;null==s?r?t.removeStyle(n,i,e):n.style.removeProperty(i):r?t.setStyle(n,i,s,e):n.style.setProperty(i,s)}}(i,o,je(_n(),n),s,r))}function Qo(t,e,n,i,s,r){const o=null===e;let a=void 0;for(;s>0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=n[s+1];h===fs&&(h=c?Oo:void 0);let u=c?ne(h,i):l===i?h:void 0;if(r&&!Zo(u)&&(u=ne(e,i)),Zo(u)&&(a=u,o))return a;const d=t[s+1];s=o?ws(d):Ts(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=ne(t,i))}return a}function Zo(t){return void 0!==t}function Ko(t,e){return 0!=(t.flags&(e?16:32))}function Jo(t,e=""){const n=Ke(),i=Je(),s=t+xe,r=i.firstCreatePass?Ls(i,n[6],t,3,null,null):i.data[s],o=n[s]=function(t,e){return Re(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Ar(i,n,o,r),nn(r,!1)}function ta(t){return ea("",t,""),ta}function ea(t,e,n){const i=Ke(),s=po(i,t,e,n);return s!==fs&&function(t,e,n){const i=je(e,t),s=t[11];Re(s)?s.setValue(i,n):i.textContent=n}(i,_n(),s),ea}function na(t,e){const n=Ye(t)[1],i=n.data.length-1;An(n,{directiveStart:i,directiveEnd:i+1})}function ia(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s=void 0;if(Ce(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=sa(t.inputs),e.declaredInputs=sa(t.declaredInputs),e.outputs=sa(t.outputs);const n=s.hostBindings;n&&aa(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&ra(t,r),o&&oa(t,o),ot(t.inputs,s.inputs),ot(t.declaredInputs,s.declaredInputs),ot(t.outputs,s.outputs),Ce(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i<e.length;i++){const s=e[i];s&&s.ngInherit&&s(t),s===ia&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=Nn(s.hostAttrs,n=Nn(n,s.hostAttrs))}}(i)}function sa(t){return t===oe?{}:t===ae?[]:t}function ra(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function oa(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function aa(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}function la(t,e,n,i,s){if(t=wt(t),Array.isArray(t))for(let r=0;r<t.length;r++)la(t[r],e,n,i,s);else{const r=Je(),o=Ke();let a=no(t)?t:wt(t.provide),l=Jr(t);const c=en(),h=1048575&c.providerIndexes,u=c.directiveStart,d=c.providerIndexes>>20;if(no(t)||!t.multi){const i=new On(l,s,go),f=ua(a,e,s?h:h+d,u);-1===f?(ti(Qn(c,o),r,a),ca(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[f]=i,o[f]=i)}else{const f=ua(a,e,h+d,u),p=ua(a,e,h,h+d),m=f>=0&&n[f],g=p>=0&&n[p];if(s&&!g||!s&&!m){ti(Qn(c,o),r,a);const h=function(t,e,n,i,s){const r=new On(t,n,go);return r.multi=[],r.index=e,r.componentProviders=0,ha(r,s,i&&!n),r}(s?fa:da,n.length,s,i,l);!s&&g&&(n[p].providerFactory=h),ca(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(h),o.push(h)}else ca(r,t,f>-1?f:p,ha(n[s?p:f],l,!s&&i));!s&&i&&g&&n[p].componentProviders++}}}function ca(t,e,n,i){const s=no(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function ha(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ua(t,e,n,i){for(let s=n;s<i;s++)if(e[s]===t)return s;return-1}function da(t,e,n,i){return pa(this.multi,[])}function fa(t,e,n,i){const s=this.multi;let r;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=ri(n,n[1],this.providerFactory.index,i);r=e.slice(0,t),pa(s,r);for(let n=t;n<e.length;n++)r.push(e[n])}else r=[],pa(s,r);return r}function pa(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function ma(t,e=[]){return n=>{n.providersResolver=(n,i)=>function(t,e,n){const i=Je();if(i.firstCreatePass){const s=Ce(t);la(n,i.data,i.blueprint,s,!0),la(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class ga{}class ya{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${yt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let va=(()=>{class t{}return t.NULL=new ya,t})(),xa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>ba(t),t})();const ba=function(t){return Vr(t,en(),Ke())};class wa{}var _a=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Ta=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Sa(),t})();const Sa=function(){const t=Ke(),e=$e(en().index,t);return function(t){const e=t[11];if(Re(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(we(e)?e:t)};let ka=(()=>{class t{}return t.\u0275prov=at({token:t,providedIn:"root",factory:()=>null}),t})();class Ca{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Aa=new Ca("10.1.0");class Ea{constructor(){}supports(t){return lo(t)}create(t){return new Da(t)}}const La=(t,e)=>e;class Da{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||La}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex<Ia(n,i,s)?e:n,o=Ia(r,i,s),a=r.currentIndex;if(r===n)i--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)i++;else{s||(s=[]);const t=o-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<s.length?s[n]:s[n]=0,r=i+n;e<=r&&r<t&&(s[n]=i+1)}s[r.previousIndex]=e-t}}o!==a&&t(r,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!lo(t))throw new Error(`Error trying to diff '${yt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,i,s=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,n,i,e)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,i,e),r=!0),s=s._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[ao()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):t=this._addAfter(new Fa(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Oa),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Oa),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Fa{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ma{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Oa{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ma,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ia(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i<n.length&&(s=n[i]),i+e+s}class Pa{constructor(){}supports(t){return t instanceof Map||co(t)}create(){return new Na}}class Na{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||co(t)))throw new Error(`Error trying to diff '${yt(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new Ra(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Ra{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Ha=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new it,new et]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=at({token:t,providedIn:"root",factory:()=>new t([new Ea])}),t})(),Va=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new it,new et]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=at({token:t,providedIn:"root",factory:()=>new t([new Pa])}),t})();const ja=[new Pa],za=new Ha([new Ea]),Ba=new Va(ja);let $a=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ya(t,xa),t})();const Ya=function(t,e){return jr(t,e,en(),Ke())};let Wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>qa(t,xa),t})();const qa=function(t,e){return zr(t,e,en(),Ke())},Ua={};class Xa extends va{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=ge(t);return new Za(e,this.ngModule)}}function Ga(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Qa=new Pt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Yn});class Za extends ga{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ds).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ga(this.componentDef.inputs)}get outputs(){return Ga(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,Ua,s);return r!==Ua||i===Ua?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(wa,He),o=s.get(ka,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Re(t))return t.selectRootElement(e,n===re.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):As(l,r.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?Ie:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:Yn,clean:lr,playerHandler:null,flags:0},d=Hs(0,-1,null,1,0,null,null,null,null,null),f=Es(null,d,u,h,null,null,r,a,o,s);let p,m;gn(f,null);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=Ls(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(ro(a,l,!0),null!==t&&(In(s,t,l),null!==a.classes&&Or(s,t,a.classes),null!==a.styles&&Mr(s,t,a.styles)));const c=i.createRenderer(t,e),h=Es(n,Rs(e),null,e.onPush?64:16,n[20],a,i,c,void 0);return o.firstCreatePass&&(ti(Qn(a,n),o,e.type),Us(o,a),Gs(a,n.length,1)),ir(n,h),n[20]=h}(c,this.componentDef,f,r,a);if(c)if(n)In(a,c,["ng-version",Aa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===s?""!==r&&e.push(r,t[++i]):8===s&&n.push(r);else{if(!as(s))break;s=r}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&In(a,c,t),e&&e.length>0&&Or(a,c,e.join(" "))}if(m=Be(d,0),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}p=function(t,e,n,i,s){const r=n[1],o=function(t,e,n){const i=en();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),qs(t,i,1),Qs(t,e,n));const s=ri(e,t,e.length-1,i);Ki(s,e);const r=ze(i,e);return r&&Ki(r,e),s}(r,n,e);i.components.push(o),t[8]=o,s&&s.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=en();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Tn(a.index-xe);const t=n[1];$s(t,e),Ys(t,n,e.hostVars),Ws(e,o)}return o}(t,this.componentDef,f,u,[na]),Ds(d,f,null)}finally{wn()}const g=new Ka(this.componentType,p,Vr(xa,m,f),f,m);return d.node.child=m,g}}class Ka extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Pr(i),function(t,e,n,i){let s=t.node;null==s&&(t.node=s=js(0,null,2,-1,null,null)),i[6]=s}(i[1],0,0,i),this.componentType=t}get injector(){return new li(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Ja=void 0;var tl=["en",[["a","p"],["AM","PM"],Ja],[["AM","PM"],Ja,Ja],[["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"]],Ja,[["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"]],Ja,[["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}",Ja,"{1} 'at' {0}",Ja],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let el={};function nl(t){return t in el||(el[t]=At.ng&&At.ng.common&&At.ng.common.locales&&At.ng.common.locales[t]),el[t]}var il=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const sl="en-US";let rl=sl;function ol(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(rl=t.toLowerCase().replace(/_/g,"-"))}const al=new Map;class ll extends Qt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Xa(this);const n=ve(t),i=t[Mt]||null;i&&ol(i),this._bootstrapComponents=qn(n.bootstrap),this._r3Injector=Qr(t,e,[{provide:Qt,useValue:this},{provide:va,useValue:this.componentFactoryResolver}],yt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=so.THROW_IF_NOT_FOUND,n=st.Default){return t===so||t===Qt||t===Nt?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class cl extends class{}{constructor(t){super(),this.moduleType=t,null!==ve(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${yt(e)} vs ${yt(e.name)}`)})(t,al.get(t),e),al.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new ll(this.moduleType,t)}}function hl(t,e,n,i){return function(t,e,n,i,s,r){const o=e+n;return uo(t,o,s)?ho(t,o+1,r?i.call(r,s):i(s)):dl(t,o+1)}(Ke(),ln(),t,e,n,i)}function ul(t,e,n,i,s){return function(t,e,n,i,s,r,o){const a=e+n;return function(t,e,n,i){const s=uo(t,e,n);return uo(t,e+1,i)||s}(t,a,s,r)?ho(t,a+2,o?i.call(o,s,r):i(s,r)):dl(t,a+2)}(Ke(),ln(),t,e,n,i,s)}function dl(t,e){const n=t[e];return n===fs?void 0:n}const fl=class extends T{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,s=t=>null,r=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,s,r);return t instanceof u&&t.add(o),o}};function pl(){return this._results[ao()]()}class ml{constructor(){this.dirty=!0,this._results=[],this.changes=new fl,this.length=0;const t=ao(),e=ml.prototype;e[t]||(e[t]=pl)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let i=0;i<e.length;i++){let s=e[i];Array.isArray(s)?(n===e&&(n=e.slice(0,i)),t(s,n)):n!==e&&n.push(s)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class gl{constructor(t){this.queryList=t,this.matches=null}clone(){return new gl(this.queryList)}setDirty(){this.queryList.setDirty()}}class yl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);i.push(this.queries[n.indexInDeclarationView].clone())}return new yl(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Fl(t,e).matches&&this.queries[e].setDirty()}}class vl{constructor(t,e,n,i=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=i}}class xl{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const i=null!==e?e.length:0,s=this.getByIndex(n).embeddedTView(t,i);s&&(s.indexInDeclarationView=n,null!==e?e.push(s):e=[s])}return null!==e?new xl(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class bl{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new bl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const s=n[i];this.matchTNodeWithReadOption(t,e,wl(e,s)),this.matchTNodeWithReadOption(t,e,si(e,t,s,!1,!1))}else n===$a?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,si(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===xa||i===Wa||i===$a&&0===e.type)this.addMatch(e.index,-2);else{const n=si(e,t,i,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function wl(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 _l(t,e,n,i){return-1===n?function(t,e){return 3===t.type||4===t.type?Vr(xa,t,e):0===t.type?jr($a,xa,t,e):null}(e,t):-2===n?function(t,e,n){return n===xa?Vr(xa,e,t):n===$a?jr($a,xa,e,t):n===Wa?zr(Wa,xa,e,t):void 0}(t,e,i):ri(t,t[1],n,e)}function Tl(t,e,n,i){const s=e[19].queries[i];if(null===s.matches){const i=t.data,r=n.matches,o=[];for(let t=0;t<r.length;t+=2){const s=r[t];o.push(s<0?null:_l(e,i[s],r[t+1],n.metadata.read))}s.matches=o}return s.matches}function Sl(t){const e=Ke(),n=Je(),i=fn();pn(i+1);const s=Fl(n,i);if(t.dirty&&We(e)===s.metadata.isStatic){if(null===s.matches)t.reset([]);else{const r=s.crossesNgTemplate?function t(e,n,i,s){const r=e.queries.getByIndex(i),o=r.matches;if(null!==o){const a=Tl(e,n,r,i);for(let e=0;e<o.length;e+=2){const i=o[e];if(i>0)s.push(a[e/2]);else{const r=o[e+1],a=n[-i];for(let e=be;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,r,s)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const i=e[n];t(i[1],i,r,s)}}}}}return s}(n,e,i,[]):Tl(n,e,s,i);t.reset(r),t.notifyOnChanges()}return!0}return!1}function kl(t,e,n){Cl(Je(),Ke(),t,e,n,!1)}function Cl(t,e,n,i,s,r){t.firstCreatePass&&(Dl(t,new vl(n,i,r,s),-1),r&&(t.staticViewQueries=!0)),Ll(t,e)}function Al(t,e,n,i){!function(t,e,n,i,s,r,o,a){t.firstCreatePass&&(Dl(t,new vl(n,i,false,s),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a)),Ll(t,e)}(Je(),Ke(),e,n,i,0,en(),t)}function El(){return t=Ke(),e=fn(),t[19].queries[e].queryList;var t,e}function Ll(t,e){const n=new ml;Vs(t,e,n,n.destroy),null===e[19]&&(e[19]=new yl),e[19].queries.push(new gl(n))}function Dl(t,e,n){null===t.queries&&(t.queries=new xl),t.queries.track(new bl(e,n))}function Fl(t,e){return t.queries.getByIndex(e)}function Ml(t,e){return jr($a,xa,t,e)}const Ol=new Pt("Application Initializer");let Il=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();ko(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(qt(Ol,8))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const Pl=new Pt("AppId"),Nl={provide:Pl,useFactory:function(){return`${Rl()}${Rl()}${Rl()}`},deps:[]};function Rl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Hl=new Pt("Platform Initializer"),Vl=new Pt("Platform ID"),jl=new Pt("appBootstrapListener");let zl=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const Bl=new Pt("LocaleId"),$l=new Pt("DefaultCurrencyCode");class Yl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Wl=function(t){return new cl(t)},ql=Wl,Ul=function(t){return Promise.resolve(Wl(t))},Xl=function(t){const e=Wl(t),n=qn(ve(t).declarations).reduce((t,e)=>{const n=ge(e);return n&&t.push(new Za(n)),t},[]);return new Yl(e,n)},Gl=Xl,Ql=function(t){return Promise.resolve(Xl(t))};let Zl=(()=>{class t{constructor(){this.compileModuleSync=ql,this.compileModuleAsync=Ul,this.compileModuleAndAllComponentsSync=Gl,this.compileModuleAndAllComponentsAsync=Ql}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const Kl=(()=>Promise.resolve(0))();function Jl(t){"undefined"==typeof Zone?Kl.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class tc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new fl(!1),this.onMicrotaskEmpty=new fl(!1),this.onStable=new fl(!1),this.onError=new fl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=At.requestAnimationFrame,e=At.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(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(At,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,sc(t),ic(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),sc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,s,r,o,a)=>{try{return rc(t),n.invokeTask(s,r,o,a)}finally{e&&"eventTask"===r.type&&e(),oc(t)}},onInvoke:(e,n,i,s,r,o,a)=>{try{return rc(t),e.invoke(i,s,r,o,a)}finally{oc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,sc(t),ic(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!tc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(tc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,nc,ec,ec);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function ec(){}const nc={};function ic(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 sc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function rc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function oc(t){t._nesting--,ic(t)}class ac{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new fl,this.onMicrotaskEmpty=new fl,this.onStable=new fl,this.onError=new fl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let lc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{tc.assertNotInAngularZone(),Jl(()=>{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())Jl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(qt(tc))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),cc=(()=>{class t{constructor(){this._applications=new Map,dc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return dc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();class hc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let uc,dc=new hc;const fc=new Pt("AllowMultipleToken");function pc(t,e,n=[]){const i="Platform: "+e,s=new Pt(i);return(e=[])=>{let r=mc();if(!r||r.injector.get(fc,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Yr,useValue:"platform"});!function(t){if(uc&&!uc.destroyed&&!uc.injector.get(fc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");uc=t.get(gc);const e=t.get(Hl,null);e&&e.forEach(t=>t())}(so.create({providers:t,name:i}))}return function(t){const e=mc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function mc(){return uc&&!uc.destroyed?uc:null}let gc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new ac:("zone.js"===t?void 0:t)||new tc({enableLongStackTrace:Ci(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:tc,useValue:n}];return n.run(()=>{const e=so.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(pi,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>xc(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const i=n();return ko(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(Il);return t.runInitializers(),t.donePromise.then(()=>(ol(s.injector.get(Bl,sl)||sl),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=yc({},e);return function(t,e,n){const i=new cl(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(vc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${yt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(qt(so))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();function yc(t,e){return Array.isArray(e)?e.reduce(yc,t):Object.assign(Object.assign({},t),e)}let vc=(()=>{class t{constructor(t,e,n,i,s,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ci(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new v(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new v(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{tc.assertNotInAngularZone(),Jl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{tc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=$(o,a.pipe(t=>{return Y()((e=Q,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,X);return i.source=t,i.subjectFactory=n,i})(t));var e}))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof ga?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(Qt),s=n.create(so.NULL,[],e||n.selector,i);s.onDestroy(()=>{this._unloadComponent(s)});const r=s.injector.get(lc,null);return r&&s.injector.get(cc).registerApplication(s.location.nativeElement,r),this._loadComponent(s),Ci()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;xc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(jl,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),xc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(qt(tc),qt(zl),qt(so),qt(pi),qt(va),qt(Il))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();function xc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const bc=pc(null,"core",[{provide:Vl,useValue:"unknown"},{provide:gc,deps:[so]},{provide:cc,deps:[]},{provide:zl,deps:[]}]),wc=[{provide:vc,useClass:vc,deps:[tc,zl,so,pi,va,Il]},{provide:Qa,deps:[tc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Il,useClass:Il,deps:[[new et,Ol]]},{provide:Zl,useClass:Zl,deps:[]},Nl,{provide:Ha,useFactory:function(){return za},deps:[]},{provide:Va,useFactory:function(){return Ba},deps:[]},{provide:Bl,useFactory:function(t){return ol(t=t||"undefined"!=typeof $localize&&$localize.locale||sl),t},deps:[[new tt(Bl),new et,new it]]},{provide:$l,useValue:"USD"}];let _c=(()=>{class t{constructor(t){}}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)(qt(vc))},providers:wc}),t})();class Tc extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class Sc extends Tc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}class kc extends Sc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}let Cc=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class Ac extends Cc{constructor(t,e=Cc.now){super(t,()=>Ac.delegate&&Ac.delegate!==this?Ac.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Ac.delegate&&Ac.delegate!==this?Ac.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}class Ec extends Ac{}const Lc=new Ec(kc),Dc=new v(t=>t.complete());let Fc=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return function(...t){let e=t[t.length-1];return k(e)?(t.pop(),P(t,e)):B(t)}(this.value);case"E":return t=this.error,new v(e=>e.error(t));case"C":return Dc}var t;throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class Mc extends p{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Mc.dispatch,this.delay,new Oc(t,this.destination)))}_next(t){this.scheduleMessage(Fc.createNext(t))}_error(t){this.scheduleMessage(Fc.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Fc.createComplete()),this.unsubscribe()}}class Oc{constructor(t,e){this.notification=t,this.destination=e}}class Ic extends T{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new Pc(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;let r;if(this.closed)throw new b;if(this.isStopped||this.hasError?r=u.EMPTY:(this.observers.push(t),r=new w(this,t)),i&&t.add(t=new Mc(t,i)),e)for(let o=0;o<s&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<s&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),r}_getNow(){return(this.scheduler||Lc).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,s=i.length;let r=0;for(;r<s&&!(t-i[r].time<n);)r++;return s>e&&(r=Math.max(r,s-e)),r>0&&i.splice(0,r),i}}class Pc{constructor(t,e){this.time=t,this.value=e}}class Nc{constructor(t){this.project=t}call(t,e){return e.subscribe(new Rc(t,this.project))}}class Rc extends H{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new R(this),i=this.destination;i.add(n),this.innerSubscription=V(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const Hc=(()=>{const t=Element.prototype;return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector})(),Vc={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return Vc.schedule(t,0);if(void 0===window.requestAnimationFrame)return Vc.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};function jc(t,e,n){let i=n;return function(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((e,n)=>!("*"===e||!function(t,e){return Hc.call(t,e)}(t,e)||(i=n,0))),i}class zc{constructor(t,e){this.componentFactory=e.get(va).resolveComponentFactory(t)}create(t){return new Bc(this.componentFactory,t)}}class Bc{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new Ic(1),this.events=this.eventEmitters.pipe(function t(e,n){return"function"==typeof n?i=>i.pipe(t((t,i)=>N(e(t,i)).pipe(C((e,s)=>n(t,e,i,s))))):t=>t.lift(new Nc(e))}(t=>$(...t))),this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set,this.ngZone=this.injector.get(tc),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=Vc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{var n,i;null!==this.componentRef?((n=e)!==(i=this.getInputValue(t))&&(n==n||i==i)||void 0===e&&this.unchangedInputs.has(t))&&(this.recordInputChange(t,e),this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=so.create({providers:[],parent:this.injector}),n=function(t,e){const n=t.childNodes,i=e.map(()=>[]);let s=-1;e.some((t,e)=>"*"===t&&(s=e,!0));for(let r=0,o=n.length;r<o;++r){const t=n[r],o=jc(t,e,s);-1!==o&&i[o].push(t)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(vc).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.implementsOnChanges&&this.unchangedInputs.add(t),this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:e,templateName:n})=>t.instance[e].pipe(C(t=>({name:n,value:t}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Vc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[t];if(n)return void(n.currentValue=e);const i=this.unchangedInputs.has(t);this.unchangedInputs.delete(t);const s=i?void 0:this.getInputValue(t);this.inputChanges[t]=new Ee(s,e,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class $c extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Yc(t,e){t.forEach(({propName:t})=>{Object.defineProperty(e,t,{get(){return this.ngElementStrategy.getInputValue(t)},set(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})})}let Wc=null;function qc(){return Wc}const Uc=new Pt("DocumentToken");var Xc=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class Gc{}let Qc=(()=>{class t extends Gc{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=nl(e);if(n)return n;const i=e.split("-")[0];if(n=nl(i),n)return n;if("en"===i)return tl;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[il.PluralCase]}(e||this.locale)(t)){case Xc.Zero:return"zero";case Xc.One:return"one";case Xc.Two:return"two";case Xc.Few:return"few";case Xc.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(qt(Bl))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();class Zc{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Kc=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Ci()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Zc(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new Jc(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new Jc(t,s);e.push(r)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=i,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(go(Wa),go($a),go(Ha))},t.\u0275dir=me({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Jc{constructor(t,e){this.record=t,this.view=e}}let th=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new eh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){nh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){nh("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(go(Wa),go($a))},t.\u0275dir=me({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class eh{constructor(){this.$implicit=null,this.ngIf=null}}function nh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${yt(e)}'.`)}class ih{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let sh=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),rh=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new ih(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(go(Wa),go($a),go(sh,1))},t.\u0275dir=me({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),oh=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(go(Wa))},t.\u0275dir=me({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Le]}),t})(),ah=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[{provide:Gc,useClass:Qc}]}),t})();class lh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new lh,Wc||(Wc=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=hh||(hh=document.querySelector("base"),hh)?hh.getAttribute("href"):null;return null==e?null:(n=e,ch||(ch=document.createElement("a")),ch.setAttribute("href",n),"/"===ch.pathname.charAt(0)?ch.pathname:"/"+ch.pathname);var n}resetBaseElement(){hh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return function(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,t)}}let ch,hh=null;const uh=new Pt("TRANSITION_ID"),dh=[{provide:Ol,useFactory:function(t,e,n){return()=>{n.get(Il).donePromise.then(()=>{const n=qc();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[uh,Uc,so],multi:!0}];class fh{static init(){var t;t=new fh,dc=t}addToWindow(t){At.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},At.getAllAngularTestabilities=()=>t.getAllTestabilities(),At.getAllAngularRootElements=()=>t.getAllRootElements(),At.frameworkStabilizers||(At.frameworkStabilizers=[]),At.frameworkStabilizers.push(t=>{const e=At.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach((function(t){t.whenStable(s)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?qc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const ph=new Pt("EventManagerPlugins");let mh=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i<n.length;i++){const e=n[i];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(qt(ph),qt(tc))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();class gh{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=qc().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,n)}}let yh=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),vh=(()=>{class t extends yh{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>qc().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(qt(Uc))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const xh={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/"},bh=/%COMP%/g;function wh(t,e,n){for(let i=0;i<e.length;i++){let s=e[i];Array.isArray(s)?wh(t,s,n):(s=s.replace(bh,t),n.push(s))}return n}function _h(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Th=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Sh(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case re.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new kh(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case re.Native:case re.ShadowDom:return new Ch(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=wh(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(qt(mh),qt(vh),qt(Pl))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();class Sh{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(xh[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=xh[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=xh[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&_a.DashCase?t.style.setProperty(e,n,i&_a.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&_a.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,_h(n)):this.eventManager.addEventListener(t,e,_h(n))}}class kh extends Sh{constructor(t,e,n,i){super(t),this.component=n;const s=wh(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(bh,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(bh,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class Ch extends Sh{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=i,this.shadowRoot=i.encapsulation===re.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=wh(i.id,i.styles,[]);for(let r=0;r<s.length;r++){const t=document.createElement("style");t.textContent=s[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let Ah=(()=>{class t extends gh{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(qt(Uc))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const Eh=["alt","control","meta","shift"],Lh={"\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"},Dh={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"},Fh={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Mh=(()=>{class t extends gh{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>qc().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(Eh.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(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&&Dh.hasOwnProperty(e)&&(e=Dh[e]))}return Lh[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Eh.forEach(i=>{i!=n&&(0,Fh[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(qt(Uc))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),Oh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({factory:function(){return qt(Ih)},token:t,providedIn:"root"}),t})(),Ih=(()=>{class t extends Oh{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Qi.NONE:return e;case Qi.HTML:return _i(e,"HTML")?wi(e):Xi(this._doc,String(e));case Qi.STYLE:return _i(e,"Style")?wi(e):e;case Qi.SCRIPT:if(_i(e,"Script"))return wi(e);throw new Error("unsafe value used in a script context");case Qi.URL:return Ti(e),_i(e,"URL")?wi(e):Fi(String(e));case Qi.RESOURCE_URL:if(_i(e,"ResourceURL"))return wi(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new gi(t)}bypassSecurityTrustStyle(t){return new yi(t)}bypassSecurityTrustScript(t){return new vi(t)}bypassSecurityTrustUrl(t){return new xi(t)}bypassSecurityTrustResourceUrl(t){return new bi(t)}}return t.\u0275fac=function(e){return new(e||t)(qt(Uc))},t.\u0275prov=at({factory:function(){return t=qt(Nt),new Ih(t.get(Uc));var t},token:t,providedIn:"root"}),t})();const Ph=pc(bc,"browser",[{provide:Vl,useValue:"browser"},{provide:Hl,useValue:function(){lh.makeCurrent(),fh.init()},multi:!0},{provide:Uc,useFactory:function(){return function(t){Pe=t}(document),document},deps:[]}]),Nh=[[],{provide:Yr,useValue:"root"},{provide:pi,useFactory:function(){return new pi},deps:[]},{provide:ph,useClass:Ah,multi:!0,deps:[Uc,tc,Vl]},{provide:ph,useClass:Mh,multi:!0,deps:[Uc]},[],{provide:Th,useClass:Th,deps:[mh,vh,Pl]},{provide:wa,useExisting:Th},{provide:yh,useExisting:vh},{provide:vh,useClass:vh,deps:[Uc]},{provide:lc,useClass:lc,deps:[tc]},{provide:mh,useClass:mh,deps:[ph,tc]},[]];let Rh=(()=>{class t{constructor(t){if(t)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(e){return{ngModule:t,providers:[{provide:Pl,useValue:e.appId},{provide:uh,useExisting:Pl},dh]}}}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)(qt(t,12))},providers:Nh,imports:[ah,_c]}),t})();"undefined"!=typeof window&&window;class Hh{}const Vh="*";function jh(t,e){return{type:7,name:t,definitions:e,options:{}}}function zh(t,e=null){return{type:4,styles:e,timings:t}}function Bh(t,e=null){return{type:2,steps:t,options:e}}function $h(t){return{type:6,styles:t,offset:null}}function Yh(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function Wh(t){Promise.resolve(null).then(t)}class qh{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Wh(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Uh{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?Wh(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Xh(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Gh(t){switch(t.length){case 0:return new qh;case 1:return t[0];default:return new Uh(t)}}function Qh(t,e,n,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(t=>{const n=t.offset,i=n==l,h=i&&c||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),a){case"!":a=s[n];break;case Vh:a=r[n];break;default:a=e.normalizeStyleValue(n,i,a,o)}h[i]=a}),i||a.push(h),c=h,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Zh(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&Kh(n,"start",t)));break;case"done":t.onDone(()=>i(n&&Kh(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&Kh(n,"destroy",t)))}}function Kh(t,e,n){const i=n.totalTime,s=Jh(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function Jh(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function tu(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 eu(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let nu=(t,e)=>!1,iu=(t,e)=>!1,su=(t,e,n)=>[];const ru=Xh();(ru||"undefined"!=typeof Element)&&(nu=(t,e)=>t.contains(e),iu=(()=>{if(ru||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):iu}})(),su=(t,e,n)=>{let i=[];if(n)i.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&i.push(n)}return i});let ou=null,au=!1;function lu(t){ou||(ou=("undefined"!=typeof document?document.body:null)||{},au=!!ou.style&&"WebkitAppearance"in ou.style);let e=!0;return ou.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in ou.style,!e&&au)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in ou.style),e}const cu=iu,hu=nu,uu=su;function du(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let fu=(()=>{class t{validateStyleProperty(t){return lu(t)}matchesElement(t,e){return cu(t,e)}containsElement(t,e){return hu(t,e)}query(t,e,n){return uu(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,r=[],o){return new qh(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),pu=(()=>{class t{}return t.NOOP=new fu,t})();const mu="ng-enter",gu="ng-leave",yu="ng-trigger",vu=".ng-trigger",xu="ng-animating",bu=".ng-animating";function wu(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:_u(parseFloat(e[1]),e[2])}function _u(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Tu(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=_u(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=_u(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function Su(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function ku(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else Su(t,n);return n}function Cu(t,e,n){return n?e+":"+n+";":""}function Au(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=Cu(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=Cu(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function Eu(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const s=Nu(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),Xh()&&Au(t))}function Lu(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Nu(e);t.style[n]=""}),Xh()&&Au(t))}function Du(t){return Array.isArray(t)?1==t.length?t[0]:Bh(t):t}const Fu=new RegExp("{{\\s*(.+?)\\s*}}","g");function Mu(t){let e=[];if("string"==typeof t){let n;for(;n=Fu.exec(t);)e.push(n[1]);Fu.lastIndex=0}return e}function Ou(t,e,n){const i=t.toString(),s=i.replace(Fu,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),s=""),s.toString()});return s==i?t:s}function Iu(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const Pu=/-+([a-z0-9])/g;function Nu(t){return t.replace(Pu,(...t)=>t[1].toUpperCase())}function Ru(t,e){return 0===t||0===e}function Hu(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;s<e.length;s++){let n=e[s];o.forEach((function(e){n[e]=ju(t,e)}))}}return e}function Vu(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 new Error("Unable to resolve animation metadata node #"+e.type)}}function ju(t,e){return window.getComputedStyle(t)[e]}const zu="*";function Bu(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(Wu(s,o)),"<"!=r[0]||s==zu&&o==zu||e.push(Wu(o,s))}(t,n,e)):n.push(t),n}const $u=new Set(["true","1"]),Yu=new Set(["false","0"]);function Wu(t,e){const n=$u.has(t)||Yu.has(t),i=$u.has(e)||Yu.has(e);return(s,r)=>{let o=t==zu||t==s,a=e==zu||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?$u.has(t):Yu.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?$u.has(e):Yu.has(e)),o&&a}}const qu=new RegExp("s*:selfs*,?","g");function Uu(t,e,n){return new Xu(t).build(e,n)}class Xu{constructor(t){this._driver=t}build(t,e){const n=new Gu(e);return this._resetContextStyleTimingState(n),Vu(this,Du(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(Qu(t)){const e=t;Object.keys(e).forEach(t=>{Mu(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=Iu(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Vu(this,Du(t.animation),e);return{type:1,matchers:Bu(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Zu(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Vu(this,t,e)),options:Zu(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=Vu(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:Zu(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Ku(Tu(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Ku(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||Tu(i,e),Ku(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:$h({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};n.easing&&(t.easing=n.easing),s=$h(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==Vh?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(Qu(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=Mu(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Qu(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(Qu(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c<a,a=c,s.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let h=0;i>0&&i<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(h=1/(c-1));const u=c-1,d=e.currentTime,f=e.currentAnimateTimings,p=f.duration;return l.forEach((t,i)=>{const r=h>0?i==u?1:h*i:s[i],o=r*p;e.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Vu(this,Du(t.animation),e),options:Zu(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Zu(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Zu(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(qu,"")),[t=t.replace(/@\*/g,vu).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,bu),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,tu(e.collectedStyles,e.currentQuerySelector,{});const o=Vu(this,Du(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:Zu(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Tu(t.timings,e.errors,!0);return{type:12,animation:Vu(this,Du(t.animation),e),timings:n,options:null}}}class Gu{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Qu(t){return!Array.isArray(t)&&"object"==typeof t}function Zu(t){var e;return t?(t=Su(t)).params&&(t.params=(e=t.params)?Su(e):null):t={},t}function Ku(t,e,n){return{duration:t,delay:e,easing:n}}function Ju(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class td{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ed=new RegExp(":enter","g"),nd=new RegExp(":leave","g");function id(t,e,n,i,s,r={},o={},a,l,c=[]){return(new sd).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class sd{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new td;const h=new od(t,e,l,i,s,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),Vu(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[Ju(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?wu(n.duration):null,r=null!=n.delay?wu(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),Vu(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=rd);const t=wu(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Vu(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?wu(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),Vu(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return Tu(e.params?Ou(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?wu(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=rd);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),Vu(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Vu(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const rd={};class od{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=rd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ad(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=wu(n.duration)),null!=n.delay&&(i.delay=wu(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=Ou(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new od(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=rd,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new ld(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(ed,"."+this._enterClassName)).replace(nd,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class ad{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new ad(this._driver,t,e||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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Vh,this._currentKeyframe[t]=Vh}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},r=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=Vh})):ku(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=Ou(r[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Vh),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,r)=>{const o=ku(s,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):i==Vh&&e.add(n)}),n||(o.offset=r/this.duration),i.push(o)});const s=t.size?Iu(t.values()):[],r=e.size?Iu(e.values()):[];if(n){const t=i[0],e=Su(t);t.offset=0,e.offset=1,i=[t,e]}return Ju(this.element,i,s,r,this.duration,this.startTime,this.easing,!1)}}class ld extends ad{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=ku(t[0],!1);a.offset=0,s.push(a);const l=ku(t[0],!1);l.offset=cd(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=ku(t[i],!1);o.offset=cd((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return Ju(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function cd(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class hd{}class ud extends hd{normalizePropertyName(t,e){return Nu(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(dd[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const dd=(()=>function(t){const e={};return t.forEach(t=>e[t]=!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 fd(t,e,n,i,s,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const pd={};class md{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||pd,d=this.buildStyles(n,o&&o.params||pd,h),f=a&&a.params||pd,p=this.buildStyles(i,f,h),m=new Set,g=new Map,y=new Map,v="void"===i,x={params:Object.assign(Object.assign({},u),f)},b=c?[]:id(t,e,this.ast.animation,s,r,d,p,x,l,h);let w=0;if(b.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return fd(e,this._triggerName,n,i,v,d,p,[],[],g,y,w,h);b.forEach(t=>{const n=t.element,i=tu(g,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=tu(y,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&m.add(n)});const _=Iu(m.values());return fd(e,this._triggerName,n,i,v,d,p,b,_,g,y,w)}}class gd{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=Su(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Ou(r,i,e)),n[t]=r})}}),n}}class yd{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new gd(t.style,t.options&&t.options.params||{})}),vd(this.states,"true","1"),vd(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new md(t,e,this.states))}),this.fallbackTransition=new md(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function vd(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const xd=new td;class bd{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=Uu(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=Qh(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let r;const o=new Map;if(s?(r=id(this._driver,e,s,mu,gu,{},{},n,xd,i),r.forEach(t=>{const e=tu(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),r=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,Vh)})});const a=Gh(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,i){const s=Jh(e,"","","");return Zh(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){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(i[0]));break;case"destroy":this.destroy(t)}}}const wd="ng-animate-queued",_d="ng-animate-disabled",Td=".ng-animate-disabled",Sd=[],kd={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Cd={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Ad{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=Su(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Ed="void",Ld=new Ad(Ed);class Dd{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Rd(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=tu(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=tu(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Rd(t,yu),Rd(t,"ng-trigger-"+e),a[e]=Ld),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new Md(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Rd(t,yu),Rd(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new Ad(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Ld),l.value!==Ed&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s<n.length;s++){const i=n[s];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(a.params,l.params)){const e=[],n=s.matchStyles(a.value,a.params,e),i=s.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{Lu(t,n),Eu(t,i)})}return}const c=tu(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=s.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!i)return;h=s.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(Rd(t,wd),r.onStart(()=>{Hd(t,wd)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,vu,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,Ed,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Gh(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const s=this._triggers[i].fallbackTransition,r=this._engine.statesByElement.get(t)[i]||Ld,o=new Ad(Ed),a=new Md(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:s,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==kd||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Rd(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=Jh(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,Zh(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Fd{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Dd(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const s=n[t[i]].namespaceId;if(s){const t=this._fetchNamespace(s);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(Od(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!Od(e))return;const s=e.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Rd(t,_d)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Hd(t,_d))}removeNode(t,e,n,i){if(Od(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Od(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,vu,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,bu,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Gh(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=kd,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Td)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Td,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Rd(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Gh(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new td,i=[],s=new Map,r=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const h=this.bodyNode,u=Array.from(this.statesByElement.keys()),d=Nd(u,this.collectedEnterElements),f=new Map;let p=0;d.forEach((t,e)=>{const n=mu+p++;f.set(e,n),t.forEach(t=>Rd(t,n))});const m=[],g=new Set,y=new Set;for(let D=0;D<this.collectedLeaveElements.length;D++){const t=this.collectedLeaveElements[D],e=t.__ng_removed;e&&e.setForRemoval&&(m.push(t),g.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>g.add(t)):y.add(t))}const v=new Map,x=Nd(u,Array.from(g));x.forEach((t,e)=>{const n=gu+p++;v.set(e,n),t.forEach(t=>Rd(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=f.get(e);t.forEach(t=>Hd(t,n))}),x.forEach((t,e)=>{const n=v.get(e);t.forEach(t=>Hd(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const b=[],w=[];for(let D=this._namespaceList.length-1;D>=0;D--)this._namespaceList[D].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(b.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,s),u=v.get(s),d=f.get(s),p=this._buildInstruction(t,n,d,u,c);if(p.errors&&p.errors.length)w.push(p);else{if(c)return e.onStart(()=>Lu(s,p.fromStyles)),e.onDestroy(()=>Eu(s,p.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>Lu(s,p.fromStyles)),e.onDestroy(()=>Eu(s,p.toStyles)),void i.push(e);p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,p.timelines),r.push({instruction:p,player:e,element:s}),p.queriedElements.forEach(t=>tu(o,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),p.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=l.get(e);i||l.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const _=new Map,T=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(T.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,_))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{tu(_,e,[]).push(t),t.destroy()})});const S=m.filter(t=>jd(t,a,l)),k=new Map;Pd(k,this.driver,y,l,Vh).forEach(t=>{jd(t,a,l)&&S.push(t)});const C=new Map;d.forEach((t,e)=>{Pd(C,this.driver,new Set(t),a,"!")}),S.forEach(t=>{const e=k.get(t),n=C.get(t);k.set(t,Object.assign(Object.assign({},e),n))});const A=[],E=[],L={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>Eu(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=L;if(T.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=T.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>T.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,_,s,C,k);if(r.setRealPlayer(n),t===L)A.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Gh(e)),i.push(r)}}else Lu(e,o.fromStyles),r.onDestroy(()=>Eu(e,o.toStyles)),E.push(r),c.has(e)&&i.push(r)}),E.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=Gh(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let D=0;D<m.length;D++){const t=m[D],e=t.__ng_removed;if(Hd(t,gu),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,bu,!0);for(let t=0;t<i.length;t++){let e=o.get(i[t]);e&&e.length&&n.push(...e)}}const i=n.filter(t=>!t.destroyed);i.length?Vd(this,t,i):this.processLeaveNode(t)}return m.length=0,A.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),A}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==Ed;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=tu(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Lu(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,r){const o=e.triggerName,a=e.element,l=[],c=new Set,h=new Set,u=e.timelines.map(e=>{const u=e.element;c.add(u);const d=u.__ng_removed;if(d&&d.removedBeforeQueried)return new qh(e.duration,e.delay);const f=u!==a,p=function(t){const e=[];return function t(e,n){for(let i=0;i<e.length;i++){const s=e[i];s instanceof Uh?t(s.players,n):n.push(s)}}(t,e),e}((n.get(u)||Sd).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),m=s.get(u),g=r.get(u),y=Qh(0,this._normalizer,0,e.keyframes,m,g),v=this._buildPlayer(e,y,p);if(e.subTimeline&&i&&h.add(u),f){const e=new Md(t,o,u);e.setRealPlayer(v),l.push(e)}return v});l.forEach(t=>{tu(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Rd(t,xu));const d=Gh(u);return d.onDestroy(()=>{c.forEach(t=>Hd(t,xu)),Eu(a,e.toStyles)}),h.forEach(t=>{tu(i,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new qh(t.duration,t.delay)}}class Md{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new qh,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Zh(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){tu(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Od(t){return t&&1===t.nodeType}function Id(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Pd(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Id(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=Cd,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Id(t,r[a++])),o}function Nd(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let r=s.get(e);if(r)return r;const o=e.parentNode;return r=n.has(o)?o:i.has(o)?1:t(o),s.set(e,r),r}(t);1!==e&&n.get(e).push(t)}),n}function Rd(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Hd(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Vd(t,e,n){Gh(n).onDone(()=>t.processLeaveNode(e))}function jd(t,e,n){const i=n.get(t);if(!i)return!1;let s=e.get(t);return s?i.forEach(t=>s.add(t)):e.set(t,i),n.delete(t),!0}class zd{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Fd(t,e,n),this._timelineEngine=new bd(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=Uu(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new yd(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=eu(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=eu(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Bd(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Yd(e[0]),e.length>1&&(i=Yd(e[e.length-1]))):e&&(n=Yd(e)),n||i?new $d(t,n,i):null}let $d=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Eu(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Eu(this._element,this._initialStyles),this._endStyles&&(Eu(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Lu(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Lu(this._element,this._endStyles),this._endStyles=null),Eu(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Yd(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const s=n[i];Wd(s)&&(e=e||{},e[s]=t[s])}return e}function Wd(t){return"display"===t||"position"===t}const qd="animation",Ud="animationend";class Xd{constructor(t,e,n,i,s,r,o){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=s,this._fillMode=r,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=tf(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i<t.length;i++)","===t.charAt(i)&&n++}(n),e=`${n}, ${e}`),Jd(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Kd(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Gd(this._element,this._name,"paused")}resume(){Gd(this._element,this._name,"running")}setPosition(t){const e=Qd(this._element,this._name);this._position=t*this._duration,Jd(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Kd(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=tf(t,"").split(","),i=Zd(n,e);i>=0&&(n.splice(i,1),Jd(t,"",n.join(",")))}(this._element,this._name))}}function Gd(t,e,n){Jd(t,"PlayState",n,Qd(t,e))}function Qd(t,e){const n=tf(t,"");return n.indexOf(",")>0?Zd(n.split(","),e):Zd([n],e)}function Zd(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Kd(t,e,n){n?t.removeEventListener(Ud,e):t.addEventListener(Ud,e)}function Jd(t,e,n,i){const s=qd+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function tf(t,e){return t.style[qd+e]}class ef{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Xd(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:ju(this.element,n))})}this.currentSnapshot=t}}class nf extends qh{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=du(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class sf{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return lu(t)}matchesElement(t,e){return cu(t,e)}containsElement(t,e){return hu(t,e)}query(t,e,n){return uu(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>du(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=s+"}\n"}),i+="}\n";const r=document.createElement("style");return r.innerHTML=i,r}animate(t,e,n,i,s,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof ef),l={};Ru(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Hu(t,e,l));if(0==n)return new nf(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=Bd(t,e),f=new ef(t,e,h,n,i,s,c,d);return f.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),f}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class rf{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:ju(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class of{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(af().toString()),this._cssKeyframesDriver=new sf}validateStyleProperty(t){return lu(t)}matchesElement(t,e){return cu(t,e)}containsElement(t,e){return hu(t,e)}query(t,e,n){return uu(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof rf);Ru(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=Bd(t,e=Hu(t,e=e.map(t=>ku(t,!1)),l));return new rf(t,e,a,h)}}function af(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let lf=(()=>{class t extends Hh{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:re.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Bh(t):t;return uf(this._renderer,null,e,"register",[n]),new cf(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(qt(wa),qt(Uc))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();class cf extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new hf(this._id,t,e||{},this._renderer)}}class hf{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return uf(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function uf(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}const df="@",ff="@.disabled";let pf=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new mf("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new gf(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}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(e){return new(e||t)(qt(wa),qt(zd),qt(tc))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();class mf{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==df&&e==ff?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class gf extends mf{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==df?"."==e.charAt(1)&&e==ff?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==df){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return s.charAt(0)!=df&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let yf=(()=>{class t extends zd{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(qt(Uc),qt(pu),qt(hd))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const vf=[{provide:pu,useFactory:function(){return"function"==typeof af()?new of:new sf}},{provide:new Pt("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:Hh,useClass:lf},{provide:hd,useFactory:function(){return new ud}},{provide:zd,useClass:yf},{provide:wa,useFactory:function(t,e,n){return new pf(t,e,n)},deps:[Th,zd,tc]}];let xf=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:vf,imports:[Rh]}),t})();class bf{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class wf extends bf{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class _f extends bf{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Tf extends bf{constructor(t){super(),this.element=t instanceof xa?t.nativeElement:t}}class Sf extends class extends class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof wf?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof _f?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Tf?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}{}const kf=new Ac(Sc);class Cf{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Af(t,this.dueTime,this.scheduler))}}class Af extends p{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Ef,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function Ef(t){t.debouncedNext()}function Lf(){}var Df=function(t){return null==t?Lf:function(){return this.querySelector(t)}};function Ff(){return[]}var Mf=function(t){return null==t?Ff:function(){return this.querySelectorAll(t)}},Of=function(t){return function(){return this.matches(t)}},If=function(t){return new Array(t.length)};function Pf(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Nf(t,e,n,i,s,r){for(var o,a=0,l=e.length,c=r.length;a<c;++a)(o=e[a])?(o.__data__=r[a],i[a]=o):n[a]=new Pf(t,r[a]);for(;a<l;++a)(o=e[a])&&(s[a]=o)}function Rf(t,e,n,i,s,r,o){var a,l,c,h={},u=e.length,d=r.length,f=new Array(u);for(a=0;a<u;++a)(l=e[a])&&(f[a]=c="$"+o.call(l,l.__data__,a,e),c in h?s[a]=l:h[c]=l);for(a=0;a<d;++a)(l=h[c="$"+o.call(t,r[a],a,r)])?(i[a]=l,l.__data__=r[a],h[c]=null):n[a]=new Pf(t,r[a]);for(a=0;a<u;++a)(l=e[a])&&h[f[a]]===l&&(s[a]=l)}function Hf(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Pf.prototype={constructor:Pf,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Vf="http://www.w3.org/1999/xhtml",jf={svg:"http://www.w3.org/2000/svg",xhtml:Vf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},zf=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),jf.hasOwnProperty(e)?{space:jf[e],local:t}:t};function Bf(t){return function(){this.removeAttribute(t)}}function $f(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Yf(t,e){return function(){this.setAttribute(t,e)}}function Wf(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function qf(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Uf(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var Xf=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Gf(t){return function(){this.style.removeProperty(t)}}function Qf(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Zf(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Kf(t,e){return t.style.getPropertyValue(e)||Xf(t).getComputedStyle(t,null).getPropertyValue(e)}function Jf(t){return function(){delete this[t]}}function tp(t,e){return function(){this[t]=e}}function ep(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function np(t){return t.trim().split(/^|\s+/)}function ip(t){return t.classList||new sp(t)}function sp(t){this._node=t,this._names=np(t.getAttribute("class")||"")}function rp(t,e){for(var n=ip(t),i=-1,s=e.length;++i<s;)n.add(e[i])}function op(t,e){for(var n=ip(t),i=-1,s=e.length;++i<s;)n.remove(e[i])}function ap(t){return function(){rp(this,t)}}function lp(t){return function(){op(this,t)}}function cp(t,e){return function(){(e.apply(this,arguments)?rp:op)(this,t)}}function hp(){this.textContent=""}function up(t){return function(){this.textContent=t}}function dp(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function fp(){this.innerHTML=""}function pp(t){return function(){this.innerHTML=t}}function mp(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function gp(){this.nextSibling&&this.parentNode.appendChild(this)}function yp(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vp(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Vf&&e.documentElement.namespaceURI===Vf?e.createElement(t):e.createElementNS(n,t)}}function xp(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}sp.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var bp=function(t){var e=zf(t);return(e.local?xp:vp)(e)};function wp(){return null}function _p(){var t=this.parentNode;t&&t.removeChild(this)}function Tp(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Sp(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var kp={},Cp=null;function Ap(t,e,n){return t=Ep(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Ep(t,e,n){return function(i){var s=Cp;Cp=i;try{t.call(this,this.__data__,e,n)}finally{Cp=s}}}function Lp(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Dp(t){return function(){var e=this.__on;if(e){for(var n,i=0,s=-1,r=e.length;i<r;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++s]=n:this.removeEventListener(n.type,n.listener,n.capture);++s?e.length=s:delete this.__on}}}function Fp(t,e,n){var i=kp.hasOwnProperty(t.type)?Ap:Ep;return function(s,r,o){var a,l=this.__on,c=i(e,r,o);if(l)for(var h=0,u=l.length;h<u;++h)if((a=l[h]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=c,a.capture=n),void(a.value=e);this.addEventListener(t.type,c,n),a={type:t.type,name:t.name,value:e,listener:c,capture:n},l?l.push(a):this.__on=[a]}}function Mp(t,e,n){var i=Xf(t),s=i.CustomEvent;"function"==typeof s?s=new s(e,n):(s=i.document.createEvent("Event"),n?(s.initEvent(e,n.bubbles,n.cancelable),s.detail=n.detail):s.initEvent(e,!1,!1)),t.dispatchEvent(s)}function Op(t,e){return function(){return Mp(this,t,e)}}function Ip(t,e){return function(){return Mp(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(kp={mouseenter:"mouseover",mouseleave:"mouseout"}));var Pp=[null];function Np(t,e){this._groups=t,this._parents=e}function Rp(){return new Np([[document.documentElement]],Pp)}Np.prototype=Rp.prototype={constructor:Np,select:function(t){"function"!=typeof t&&(t=Df(t));for(var e=this._groups,n=e.length,i=new Array(n),s=0;s<n;++s)for(var r,o,a=e[s],l=a.length,c=i[s]=new Array(l),h=0;h<l;++h)(r=a[h])&&(o=t.call(r,r.__data__,h,a))&&("__data__"in r&&(o.__data__=r.__data__),c[h]=o);return new Np(i,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=Mf(t));for(var e=this._groups,n=e.length,i=[],s=[],r=0;r<n;++r)for(var o,a=e[r],l=a.length,c=0;c<l;++c)(o=a[c])&&(i.push(t.call(o,o.__data__,c,a)),s.push(o));return new Np(i,s)},filter:function(t){"function"!=typeof t&&(t=Of(t));for(var e=this._groups,n=e.length,i=new Array(n),s=0;s<n;++s)for(var r,o=e[s],a=o.length,l=i[s]=[],c=0;c<a;++c)(r=o[c])&&t.call(r,r.__data__,c,o)&&l.push(r);return new Np(i,this._parents)},data:function(t,e){if(!t)return p=new Array(this.size()),h=-1,this.each((function(t){p[++h]=t})),p;var n,i=e?Rf:Nf,s=this._parents,r=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var o=r.length,a=new Array(o),l=new Array(o),c=new Array(o),h=0;h<o;++h){var u=s[h],d=r[h],f=d.length,p=t.call(u,u&&u.__data__,h,s),m=p.length,g=l[h]=new Array(m),y=a[h]=new Array(m);i(u,d,g,y,c[h]=new Array(f),p,e);for(var v,x,b=0,w=0;b<m;++b)if(v=g[b]){for(b>=w&&(w=b+1);!(x=y[w])&&++w<m;);v._next=x||null}}return(a=new Np(a,s))._enter=l,a._exit=c,a},enter:function(){return new Np(this._enter||this._groups.map(If),this._parents)},exit:function(){return new Np(this._exit||this._groups.map(If),this._parents)},join:function(t,e,n){var i=this.enter(),s=this,r=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=e&&(s=e(s)),null==n?r.remove():n(r),i&&s?i.merge(s).order():s},merge:function(t){for(var e=this._groups,n=t._groups,i=e.length,s=Math.min(i,n.length),r=new Array(i),o=0;o<s;++o)for(var a,l=e[o],c=n[o],h=l.length,u=r[o]=new Array(h),d=0;d<h;++d)(a=l[d]||c[d])&&(u[d]=a);for(;o<i;++o)r[o]=e[o];return new Np(r,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,s=t[e],r=s.length-1,o=s[r];--r>=0;)(i=s[r])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Hf);for(var n=this._groups,i=n.length,s=new Array(i),r=0;r<i;++r){for(var o,a=n[r],l=a.length,c=s[r]=new Array(l),h=0;h<l;++h)(o=a[h])&&(c[h]=o);c.sort(e)}return new Np(s,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],s=0,r=i.length;s<r;++s){var o=i[s];if(o)return o}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var s,r=e[n],o=0,a=r.length;o<a;++o)(s=r[o])&&t.call(s,s.__data__,o,r);return this},attr:function(t,e){var n=zf(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?$f:Bf:"function"==typeof e?n.local?Uf:qf:n.local?Wf:Yf)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Gf:"function"==typeof e?Zf:Qf)(t,e,null==n?"":n)):Kf(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Jf:"function"==typeof e?ep:tp)(t,e)):this.node()[t]},classed:function(t,e){var n=np(t+"");if(arguments.length<2){for(var i=ip(this.node()),s=-1,r=n.length;++s<r;)if(!i.contains(n[s]))return!1;return!0}return this.each(("function"==typeof e?cp:e?ap:lp)(n,e))},text:function(t){return arguments.length?this.each(null==t?hp:("function"==typeof t?dp:up)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?fp:("function"==typeof t?mp:pp)(t)):this.node().innerHTML},raise:function(){return this.each(gp)},lower:function(){return this.each(yp)},append:function(t){var e="function"==typeof t?t:bp(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:bp(t),i=null==e?wp:"function"==typeof e?e:Df(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(_p)},clone:function(t){return this.select(t?Sp:Tp)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,s,r=Lp(t+""),o=r.length;if(!(arguments.length<2)){for(a=e?Fp:Dp,null==n&&(n=!1),i=0;i<o;++i)this.each(a(r[i],e,n));return this}var a=this.node().__on;if(a)for(var l,c=0,h=a.length;c<h;++c)for(i=0,l=a[c];i<o;++i)if((s=r[i]).type===l.type&&s.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Ip:Op)(t,e))}};var Hp=Rp,Vp=function(t){return"string"==typeof t?new Np([[document.querySelector(t)]],[document.documentElement]):new Np([[t]],Pp)},jp={value:function(){}};function zp(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new Bp(i)}function Bp(t){this._=t}function $p(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");if(i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function Yp(t,e){for(var n,i=0,s=t.length;i<s;++i)if((n=t[i]).name===e)return n.value}function Wp(t,e,n){for(var i=0,s=t.length;i<s;++i)if(t[i].name===e){t[i]=jp,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}Bp.prototype=zp.prototype={constructor:Bp,on:function(t,e){var n,i=this._,s=$p(t+"",i),r=-1,o=s.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++r<o;)if(n=(t=s[r]).type)i[n]=Wp(i[n],t.name,e);else if(null==e)for(n in i)i[n]=Wp(i[n],t.name,null);return this}for(;++r<o;)if((n=(t=s[r]).type)&&(n=Yp(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Bp(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,s=new Array(n),r=0;r<n;++r)s[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=0,n=(i=this._[t]).length;r<n;++r)i[r].value.apply(e,s)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],s=0,r=i.length;s<r;++s)i[s].value.apply(e,n)}};var qp=zp,Up=function(){Cp.preventDefault(),Cp.stopImmediatePropagation()},Xp=function(t){var e=t.document.documentElement,n=Vp(t).on("dragstart.drag",Up,!0);"onselectstart"in e?n.on("selectstart.drag",Up,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function Gp(t,e){var n=t.document.documentElement,i=Vp(t).on("dragstart.drag",null);e&&(i.on("click.drag",Up,!0),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Qp=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Zp(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function Kp(){}var Jp=.7,tm=1/Jp,em="\\s*([+-]?\\d+)\\s*",nm="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",im="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sm=/^#([0-9a-f]{3,8})$/,rm=new RegExp("^rgb\\("+[em,em,em]+"\\)$"),om=new RegExp("^rgb\\("+[im,im,im]+"\\)$"),am=new RegExp("^rgba\\("+[em,em,em,nm]+"\\)$"),lm=new RegExp("^rgba\\("+[im,im,im,nm]+"\\)$"),cm=new RegExp("^hsl\\("+[nm,im,im]+"\\)$"),hm=new RegExp("^hsla\\("+[nm,im,im,nm]+"\\)$"),um={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function dm(){return this.rgb().formatHex()}function fm(){return this.rgb().formatRgb()}function pm(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=sm.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?mm(e):3===n?new xm(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?gm(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?gm(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=rm.exec(t))?new xm(e[1],e[2],e[3],1):(e=om.exec(t))?new xm(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=am.exec(t))?gm(e[1],e[2],e[3],e[4]):(e=lm.exec(t))?gm(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=cm.exec(t))?Tm(e[1],e[2]/100,e[3]/100,1):(e=hm.exec(t))?Tm(e[1],e[2]/100,e[3]/100,e[4]):um.hasOwnProperty(t)?mm(um[t]):"transparent"===t?new xm(NaN,NaN,NaN,0):null}function mm(t){return new xm(t>>16&255,t>>8&255,255&t,1)}function gm(t,e,n,i){return i<=0&&(t=e=n=NaN),new xm(t,e,n,i)}function ym(t){return t instanceof Kp||(t=pm(t)),t?new xm((t=t.rgb()).r,t.g,t.b,t.opacity):new xm}function vm(t,e,n,i){return 1===arguments.length?ym(t):new xm(t,e,n,null==i?1:i)}function xm(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function bm(){return"#"+_m(this.r)+_m(this.g)+_m(this.b)}function wm(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function _m(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Tm(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new km(t,e,n,i)}function Sm(t){if(t instanceof km)return new km(t.h,t.s,t.l,t.opacity);if(t instanceof Kp||(t=pm(t)),!t)return new km;if(t instanceof km)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,s=Math.min(e,n,i),r=Math.max(e,n,i),o=NaN,a=r-s,l=(r+s)/2;return a?(o=e===r?(n-i)/a+6*(n<i):n===r?(i-e)/a+2:(e-n)/a+4,a/=l<.5?r+s:2-r-s,o*=60):a=l>0&&l<1?0:o,new km(o,a,l,t.opacity)}function km(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Cm(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Am(t,e,n,i,s){var r=t*t,o=r*t;return((1-3*t+3*r-o)*e+(4-6*r+3*o)*n+(1+3*t+3*r-3*o)*i+o*s)/6}Qp(Kp,pm,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:dm,formatHex:dm,formatHsl:function(){return Sm(this).formatHsl()},formatRgb:fm,toString:fm}),Qp(xm,vm,Zp(Kp,{brighter:function(t){return t=null==t?tm:Math.pow(tm,t),new xm(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Jp:Math.pow(Jp,t),new xm(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bm,formatHex:bm,formatRgb:wm,toString:wm})),Qp(km,(function(t,e,n,i){return 1===arguments.length?Sm(t):new km(t,e,n,null==i?1:i)}),Zp(Kp,{brighter:function(t){return t=null==t?tm:Math.pow(tm,t),new km(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Jp:Math.pow(Jp,t),new km(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,s=2*n-i;return new xm(Cm(t>=240?t-240:t+120,s,i),Cm(t,s,i),Cm(t<120?t+240:t-120,s,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Em=function(t){return function(){return t}};function Lm(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Em(isNaN(t)?e:t)}var Dm=function t(e){var n=function(t){return 1==(t=+t)?Lm:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Em(isNaN(e)?n:e)}}(e);function i(t,e){var i=n((t=vm(t)).r,(e=vm(e)).r),s=n(t.g,e.g),r=n(t.b,e.b),o=Lm(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=s(e),t.b=r(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function Fm(t){return function(e){var n,i,s=e.length,r=new Array(s),o=new Array(s),a=new Array(s);for(n=0;n<s;++n)i=vm(e[n]),r[n]=i.r||0,o[n]=i.g||0,a[n]=i.b||0;return r=t(r),o=t(o),a=t(a),i.opacity=1,function(t){return i.r=r(t),i.g=o(t),i.b=a(t),i+""}}}Fm((function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),s=t[i],r=t[i+1];return Am((n-i/e)*e,i>0?t[i-1]:2*s-r,s,r,i<e-1?t[i+2]:2*r-s)}})),Fm((function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e);return Am((n-i/e)*e,t[(i+e-1)%e],t[i%e],t[(i+1)%e],t[(i+2)%e])}}));var Mm=function(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,s=e.slice();return function(r){for(n=0;n<i;++n)s[n]=t[n]*(1-r)+e[n]*r;return s}};function Om(t,e){var n,i=e?e.length:0,s=t?Math.min(i,t.length):0,r=new Array(s),o=new Array(i);for(n=0;n<s;++n)r[n]=Bm(t[n],e[n]);for(;n<i;++n)o[n]=e[n];return function(t){for(n=0;n<s;++n)o[n]=r[n](t);return o}}var Im,Pm,Nm=function(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}},Rm=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Hm=function(t,e){var n,i={},s={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Bm(t[n],e[n]):s[n]=e[n];return function(t){for(n in i)s[n]=i[n](t);return s}},Vm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jm=new RegExp(Vm.source,"g"),zm=function(t,e){var n,i,s,r=Vm.lastIndex=jm.lastIndex=0,o=-1,a=[],l=[];for(t+="",e+="";(n=Vm.exec(t))&&(i=jm.exec(e));)(s=i.index)>r&&(s=e.slice(r,s),a[o]?a[o]+=s:a[++o]=s),(n=n[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,l.push({i:o,x:Rm(n,i)})),r=jm.lastIndex;return r<e.length&&(s=e.slice(r),a[o]?a[o]+=s:a[++o]=s),a.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)a[(n=l[i]).i]=n.x(t);return a.join("")})},Bm=function(t,e){var n,i,s=typeof e;return null==e||"boolean"===s?Em(e):("number"===s?Rm:"string"===s?(n=pm(e))?(e=n,Dm):zm:e instanceof pm?Dm:e instanceof Date?Nm:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?Om:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Hm:Rm:Mm))(t,e)},$m=function(){for(var t,e=Cp;t=e.sourceEvent;)e=t;return e},Ym=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]},Wm=function(t){var e=$m();return e.changedTouches&&(e=e.changedTouches[0]),Ym(t,e)},qm=0,Um=0,Xm=0,Gm=0,Qm=0,Zm=0,Km="object"==typeof performance&&performance.now?performance:Date,Jm="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tg(){return Qm||(Jm(eg),Qm=Km.now()+Zm)}function eg(){Qm=0}function ng(){this._call=this._time=this._next=null}function ig(t,e,n){var i=new ng;return i.restart(t,e,n),i}function sg(){Qm=(Gm=Km.now())+Zm,qm=Um=0;try{!function(){tg(),++qm;for(var t,e=Im;e;)(t=Qm-e._time)>=0&&e._call.call(null,t),e=e._next;--qm}()}finally{qm=0,function(){for(var t,e,n=Im,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Im=e);Pm=t,og(i)}(),Qm=0}}function rg(){var t=Km.now(),e=t-Gm;e>1e3&&(Zm-=e,Gm=t)}function og(t){qm||(Um&&(Um=clearTimeout(Um)),t-Qm>24?(t<1/0&&(Um=setTimeout(sg,t-Km.now()-Zm)),Xm&&(Xm=clearInterval(Xm))):(Xm||(Gm=Km.now(),Xm=setInterval(rg,1e3)),qm=1,Jm(sg)))}ng.prototype=ig.prototype={constructor:ng,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?tg():+n)+(null==e?0:+e),this._next||Pm===this||(Pm?Pm._next=this:Im=this,Pm=this),this._call=t,this._time=n,og()},stop:function(){this._call&&(this._call=null,this._time=1/0,og())}};var ag=function(t,e,n){var i=new ng;return i.restart((function(n){i.stop(),t(n+e)}),e=null==e?0:+e,n),i},lg=qp("start","end","cancel","interrupt"),cg=[],hg=function(t,e,n,i,s,r){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var i,s=t.__transition;function r(l){var c,h,u,d;if(1!==n.state)return a();for(c in s)if((d=s[c]).name===n.name){if(3===d.state)return ag(r);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete s[c]):+c<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete s[c])}if(ag((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(l))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(u=n.tween.length),c=0,h=-1;c<u;++c)(d=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++h]=d);i.length=h+1}}function o(e){for(var s=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=5,1),r=-1,o=i.length;++r<o;)i[r].call(t,s);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var i in n.state=6,n.timer.stop(),delete s[e],s)return;delete t.__transition}s[e]=n,n.timer=ig((function(t){n.state=1,n.timer.restart(r,n.delay,n.time),n.delay<=t&&r(t-n.delay)}),0,n.time)}(t,n,{name:e,index:i,group:s,on:lg,tween:cg,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:0})};function ug(t,e){var n=fg(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function dg(t,e){var n=fg(t,e);if(n.state>3)throw new Error("too late; already running");return n}function fg(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var pg,mg,gg,yg,vg=function(t,e){var n,i,s,r=t.__transition,o=!0;if(r){for(s in e=null==e?null:e+"",r)(n=r[s]).name===e?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete r[s]):o=!1;o&&delete t.__transition}},xg=180/Math.PI,bg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},wg=function(t,e,n,i,s,r){var o,a,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,o=-o),{translateX:s,translateY:r,rotate:Math.atan2(e,t)*xg,skewX:Math.atan(l)*xg,scaleX:o,scaleY:a}};function _g(t,e,n,i){function s(t){return t.length?t.pop()+" ":""}return function(r,o){var a=[],l=[];return r=t(r),o=t(o),function(t,i,s,r,o,a){if(t!==s||i!==r){var l=o.push("translate(",null,e,null,n);a.push({i:l-4,x:Rm(t,s)},{i:l-2,x:Rm(i,r)})}else(s||r)&&o.push("translate("+s+e+r+n)}(r.translateX,r.translateY,o.translateX,o.translateY,a,l),function(t,e,n,r){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(s(n)+"rotate(",null,i)-2,x:Rm(t,e)})):e&&n.push(s(n)+"rotate("+e+i)}(r.rotate,o.rotate,a,l),function(t,e,n,r){t!==e?r.push({i:n.push(s(n)+"skewX(",null,i)-2,x:Rm(t,e)}):e&&n.push(s(n)+"skewX("+e+i)}(r.skewX,o.skewX,a,l),function(t,e,n,i,r,o){if(t!==n||e!==i){var a=r.push(s(r)+"scale(",null,",",null,")");o.push({i:a-4,x:Rm(t,n)},{i:a-2,x:Rm(e,i)})}else 1===n&&1===i||r.push(s(r)+"scale("+n+","+i+")")}(r.scaleX,r.scaleY,o.scaleX,o.scaleY,a,l),r=o=null,function(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t);return a.join("")}}}var Tg=_g((function(t){return"none"===t?bg:(pg||(pg=document.createElement("DIV"),mg=document.documentElement,gg=document.defaultView),pg.style.transform=t,t=gg.getComputedStyle(mg.appendChild(pg),null).getPropertyValue("transform"),mg.removeChild(pg),t=t.slice(7,-1).split(","),wg(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),Sg=_g((function(t){return null==t?bg:(yg||(yg=document.createElementNS("http://www.w3.org/2000/svg","g")),yg.setAttribute("transform",t),(t=yg.transform.baseVal.consolidate())?wg((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):bg)}),", ",")",")");function kg(t,e){var n,i;return function(){var s=dg(this,t),r=s.tween;if(r!==n)for(var o=0,a=(i=n=r).length;o<a;++o)if(i[o].name===e){(i=i.slice()).splice(o,1);break}s.tween=i}}function Cg(t,e,n){var i,s;if("function"!=typeof n)throw new Error;return function(){var r=dg(this,t),o=r.tween;if(o!==i){s=(i=o).slice();for(var a={name:e,value:n},l=0,c=s.length;l<c;++l)if(s[l].name===e){s[l]=a;break}l===c&&s.push(a)}r.tween=s}}function Ag(t,e,n){var i=t._id;return t.each((function(){var t=dg(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return fg(t,i).value[e]}}var Eg=function(t,e){var n;return("number"==typeof e?Rm:e instanceof pm?Dm:(n=pm(e))?(e=n,Dm):zm)(t,e)};function Lg(t){return function(){this.removeAttribute(t)}}function Dg(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Fg(t,e,n){var i,s,r=n+"";return function(){var o=this.getAttribute(t);return o===r?null:o===i?s:s=e(i=o,n)}}function Mg(t,e,n){var i,s,r=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===r?null:o===i?s:s=e(i=o,n)}}function Og(t,e,n){var i,s,r;return function(){var o,a,l=n(this);if(null!=l)return(o=this.getAttribute(t))===(a=l+"")?null:o===i&&a===s?r:(s=a,r=e(i=o,l));this.removeAttribute(t)}}function Ig(t,e,n){var i,s,r;return function(){var o,a,l=n(this);if(null!=l)return(o=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:o===i&&a===s?r:(s=a,r=e(i=o,l));this.removeAttributeNS(t.space,t.local)}}function Pg(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Ng(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Rg(t,e){var n,i;function s(){var s=e.apply(this,arguments);return s!==i&&(n=(i=s)&&Ng(t,s)),n}return s._value=e,s}function Hg(t,e){var n,i;function s(){var s=e.apply(this,arguments);return s!==i&&(n=(i=s)&&Pg(t,s)),n}return s._value=e,s}function Vg(t,e){return function(){ug(this,t).delay=+e.apply(this,arguments)}}function jg(t,e){return e=+e,function(){ug(this,t).delay=e}}function zg(t,e){return function(){dg(this,t).duration=+e.apply(this,arguments)}}function Bg(t,e){return e=+e,function(){dg(this,t).duration=e}}function $g(t,e){if("function"!=typeof e)throw new Error;return function(){dg(this,t).ease=e}}function Yg(t,e,n){var i,s,r=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?ug:dg;return function(){var o=r(this,t),a=o.on;a!==i&&(s=(i=a).copy()).on(e,n),o.on=s}}var Wg=Hp.prototype.constructor;function qg(t){return function(){this.style.removeProperty(t)}}function Ug(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function Xg(t,e,n){var i,s;function r(){var r=e.apply(this,arguments);return r!==s&&(i=(s=r)&&Ug(t,r,n)),i}return r._value=e,r}function Gg(t){return function(e){this.textContent=t.call(this,e)}}function Qg(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Gg(i)),e}return i._value=t,i}var Zg=0;function Kg(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function Jg(){return++Zg}var ty=Hp.prototype;Kg.prototype=(function(t){return Hp().transition(t)}).prototype={constructor:Kg,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Df(t));for(var i=this._groups,s=i.length,r=new Array(s),o=0;o<s;++o)for(var a,l,c=i[o],h=c.length,u=r[o]=new Array(h),d=0;d<h;++d)(a=c[d])&&(l=t.call(a,a.__data__,d,c))&&("__data__"in a&&(l.__data__=a.__data__),u[d]=l,hg(u[d],e,n,d,u,fg(a,n)));return new Kg(r,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Mf(t));for(var i=this._groups,s=i.length,r=[],o=[],a=0;a<s;++a)for(var l,c=i[a],h=c.length,u=0;u<h;++u)if(l=c[u]){for(var d,f=t.call(l,l.__data__,u,c),p=fg(l,n),m=0,g=f.length;m<g;++m)(d=f[m])&&hg(d,e,n,m,f,p);r.push(f),o.push(l)}return new Kg(r,o,e,n)},filter:function(t){"function"!=typeof t&&(t=Of(t));for(var e=this._groups,n=e.length,i=new Array(n),s=0;s<n;++s)for(var r,o=e[s],a=o.length,l=i[s]=[],c=0;c<a;++c)(r=o[c])&&t.call(r,r.__data__,c,o)&&l.push(r);return new Kg(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,s=Math.min(i,n.length),r=new Array(i),o=0;o<s;++o)for(var a,l=e[o],c=n[o],h=l.length,u=r[o]=new Array(h),d=0;d<h;++d)(a=l[d]||c[d])&&(u[d]=a);for(;o<i;++o)r[o]=e[o];return new Kg(r,this._parents,this._name,this._id)},selection:function(){return new Wg(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Jg(),i=this._groups,s=i.length,r=0;r<s;++r)for(var o,a=i[r],l=a.length,c=0;c<l;++c)if(o=a[c]){var h=fg(o,e);hg(o,t,n,c,a,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Kg(i,this._parents,t,n)},call:ty.call,nodes:ty.nodes,node:ty.node,size:ty.size,empty:ty.empty,each:ty.each,on:function(t,e){var n=this._id;return arguments.length<2?fg(this.node(),n).on.on(t):this.each(Yg(n,t,e))},attr:function(t,e){var n=zf(t),i="transform"===n?Sg:Eg;return this.attrTween(t,"function"==typeof e?(n.local?Ig:Og)(n,i,Ag(this,"attr."+t,e)):null==e?(n.local?Dg:Lg)(n):(n.local?Mg:Fg)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=zf(t);return this.tween(n,(i.local?Rg:Hg)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Tg:Eg;return null==e?this.styleTween(t,function(t,e){var n,i,s;return function(){var r=Kf(this,t),o=(this.style.removeProperty(t),Kf(this,t));return r===o?null:r===n&&o===i?s:s=e(n=r,i=o)}}(t,i)).on("end.style."+t,qg(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,s,r;return function(){var o=Kf(this,t),a=n(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=Kf(this,t)),o===l?null:o===i&&l===s?r:(s=l,r=e(i=o,a))}}(t,i,Ag(this,"style."+t,e))).each(function(t,e){var n,i,s,r,o="style."+e,a="end."+o;return function(){var l=dg(this,t),c=l.on,h=null==l.value[o]?r||(r=qg(e)):void 0;c===n&&s===h||(i=(n=c).copy()).on(a,s=h),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,s,r=n+"";return function(){var o=Kf(this,t);return o===r?null:o===i?s:s=e(i=o,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,Xg(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ag(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Qg(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,s=fg(this.node(),n).tween,r=0,o=s.length;r<o;++r)if((i=s[r]).name===t)return i.value;return null}return this.each((null==e?kg:Cg)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Vg:jg)(e,t)):fg(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?zg:Bg)(e,t)):fg(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each($g(e,t)):fg(this.node(),e).ease},end:function(){var t,e,n=this,i=n._id,s=n.size();return new Promise((function(r,o){var a={value:o},l={value:function(){0==--s&&r()}};n.each((function(){var n=dg(this,i),s=n.on;s!==t&&((e=(t=s).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e}))}))}};var ey={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function ny(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return ey.time=tg(),ey;return n}Hp.prototype.interrupt=function(t){return this.each((function(){vg(this,t)}))},Hp.prototype.transition=function(t){var e,n;t instanceof Kg?(e=t._id,t=t._name):(e=Jg(),(n=ey).time=tg(),t=null==t?null:t+"");for(var i=this._groups,s=i.length,r=0;r<s;++r)for(var o,a=i[r],l=a.length,c=0;c<l;++c)(o=a[c])&&hg(o,t,e,c,a,n||ny(o,e));return new Kg(i,this._parents,t,e)};var iy=function(t){return function(){return t}},sy=function(t,e,n){this.target=t,this.type=e,this.selection=n};function ry(){Cp.stopImmediatePropagation()}var oy=function(){Cp.preventDefault(),Cp.stopImmediatePropagation()},ay={name:"drag"},ly={name:"space"},cy={name:"handle"},hy={name:"center"};function uy(t){return[+t[0],+t[1]]}function dy(t){return[uy(t[0]),uy(t[1])]}function fy(t){return function(e){return function(t,e,n){arguments.length<3&&(n=e,e=$m().changedTouches);for(var i,s=0,r=e?e.length:0;s<r;++s)if((i=e[s]).identifier===n)return Ym(t,i);return null}(e,Cp.touches,t)}}var py={name:"x",handles:["w","e"].map(wy),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},my={name:"y",handles:["n","s"].map(wy),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},gy=(["n","w","e","s","nw","ne","sw","se"].map(wy),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),yy={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},vy={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},xy={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},by={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function wy(t){return{type:t}}function _y(){return!Cp.ctrlKey&&!Cp.button}function Ty(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Sy(){return navigator.maxTouchPoints||"ontouchstart"in this}function ky(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Cy(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}var Ay=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},Ey=function(t){let e=t,n=t;function i(t,e,i,s){for(null==i&&(i=0),null==s&&(s=t.length);i<s;){const r=i+s>>>1;n(t[r],e)<0?i=r+1:s=r}return i}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>Ay(t(e),n)}(t)),{left:i,center:function(t,n,s,r){null==s&&(s=0),null==r&&(r=t.length);const o=i(t,n,s,r-1);return o>s&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,i,s){for(null==i&&(i=0),null==s&&(s=t.length);i<s;){const r=i+s>>>1;n(t[r],e)>0?s=r:i=r+1}return i}}},Ly=Math.sqrt(50),Dy=Math.sqrt(10),Fy=Math.sqrt(2);function My(t,e,n){var i=(e-t)/Math.max(0,n),s=Math.floor(Math.log(i)/Math.LN10),r=i/Math.pow(10,s);return s>=0?(r>=Ly?10:r>=Dy?5:r>=Fy?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(r>=Ly?10:r>=Dy?5:r>=Fy?2:1)}function Oy(t,e,n){var i=Math.abs(e-t)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),r=i/s;return r>=Ly?s*=10:r>=Dy?s*=5:r>=Fy&&(s*=2),e<t?-s:s}const Iy=1e3,Py=6e4,Ny=36e5,Ry=864e5,Hy=6048e5,Vy=31536e6;var jy=new Date,zy=new Date;function By(t,e,n,i){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n},s.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},s.range=function(n,i,r){var o,a=[];if(n=s.ceil(n),r=null==r?1:Math.floor(r),!(n<i&&r>0))return a;do{a.push(o=new Date(+n)),e(n,r),t(n)}while(o<n&&n<i);return a},s.filter=function(n){return By((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););}))},n&&(s.count=function(e,i){return jy.setTime(+e),zy.setTime(+i),t(jy),t(zy),Math.floor(n(jy,zy))},s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(i?function(e){return i(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}var $y=By((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));$y.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?By((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):$y:null};var Yy=$y,Wy=By((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Iy)}),(function(t,e){return(e-t)/Iy}),(function(t){return t.getUTCSeconds()})),qy=By((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Iy)}),(function(t,e){t.setTime(+t+e*Py)}),(function(t,e){return(e-t)/Py}),(function(t){return t.getMinutes()})),Uy=By((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Iy-t.getMinutes()*Py)}),(function(t,e){t.setTime(+t+e*Ny)}),(function(t,e){return(e-t)/Ny}),(function(t){return t.getHours()})),Xy=By(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Py)/Ry,t=>t.getDate()-1);function Gy(t){return By((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Py)/Hy}))}var Qy=Gy(0),Zy=(Gy(1),Gy(2),Gy(3),Gy(4),Gy(5),Gy(6),By((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),Ky=By((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Ky.every=function(t){return isFinite(t=Math.floor(t))&&t>0?By((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Jy=Ky,tv=By((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*Py)}),(function(t,e){return(e-t)/Py}),(function(t){return t.getUTCMinutes()})),ev=By((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*Ny)}),(function(t,e){return(e-t)/Ny}),(function(t){return t.getUTCHours()})),nv=By((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Ry}),(function(t){return t.getUTCDate()-1}));function iv(t){return By((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/Hy}))}var sv=iv(0),rv=(iv(1),iv(2),iv(3),iv(4),iv(5),iv(6),By((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),ov=By((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));ov.every=function(t){return isFinite(t=Math.floor(t))&&t>0?By((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var av=ov;function lv(t,e,n,i,s,r){const o=[[Wy,1,Iy],[Wy,5,5e3],[Wy,15,15e3],[Wy,30,3e4],[r,1,Py],[r,5,3e5],[r,15,9e5],[r,30,18e5],[s,1,Ny],[s,3,108e5],[s,6,216e5],[s,12,432e5],[i,1,Ry],[i,2,1728e5],[n,1,Hy],[e,1,2592e6],[e,3,7776e6],[t,1,Vy]];function a(e,n,i){const s=Math.abs(n-e)/i,r=Ey(([,,t])=>t).right(o,s);if(r===o.length)return t.every(Oy(e/Vy,n/Vy,i));if(0===r)return Yy.every(Math.max(Oy(e,n,i),1));const[a,l]=o[s/o[r-1][2]<o[r][2]/s?r-1:r];return a.every(l)}return[function(t,e,n){const i=e<t;i&&([t,e]=[e,t]);const s=n&&"function"==typeof n.range?n:a(t,e,n),r=s?s.range(t,+e+1):[];return i?r.reverse():r},a]}const[cv,hv]=lv(av,rv,sv,nv,ev,tv),[uv,dv]=lv(Jy,Zy,Qy,Xy,Uy,qy);var fv=new Date,pv=new Date;function mv(t,e,n,i){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n},s.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},s.range=function(n,i,r){var o,a=[];if(n=s.ceil(n),r=null==r?1:Math.floor(r),!(n<i&&r>0))return a;do{a.push(o=new Date(+n)),e(n,r),t(n)}while(o<n&&n<i);return a},s.filter=function(n){return mv((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););}))},n&&(s.count=function(e,i){return fv.setTime(+e),pv.setTime(+i),t(fv),t(pv),Math.floor(n(fv,pv))},s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(i?function(e){return i(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}var gv=864e5,yv=6048e5;function vv(t){return mv((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/yv}))}var xv=vv(0),bv=vv(1),wv=(vv(2),vv(3),vv(4)),_v=(vv(5),vv(6),mv((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/gv}),(function(t){return t.getUTCDate()-1})));function Tv(t){return mv((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/yv}))}var Sv=Tv(0),kv=Tv(1),Cv=(Tv(2),Tv(3),Tv(4)),Av=(Tv(5),Tv(6),mv((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/gv}),(function(t){return t.getDate()-1}))),Ev=mv((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Ev.every=function(t){return isFinite(t=Math.floor(t))&&t>0?mv((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Lv=Ev,Dv=mv((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Dv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?mv((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var Fv=Dv;function Mv(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ov(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Iv(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Pv,Nv,Rv={"-":"",_:" ",0:"0"},Hv=/^\s*\d+/,Vv=/^%/,jv=/[\\^$*+?|[\]().{}]/g;function zv(t,e,n){var i=t<0?"-":"",s=(i?-t:t)+"",r=s.length;return i+(r<n?new Array(n-r+1).join(e)+s:s)}function Bv(t){return t.replace(jv,"\\$&")}function $v(t){return new RegExp("^(?:"+t.map(Bv).join("|")+")","i")}function Yv(t){for(var e={},n=-1,i=t.length;++n<i;)e[t[n].toLowerCase()]=n;return e}function Wv(t,e,n){var i=Hv.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function qv(t,e,n){var i=Hv.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function Uv(t,e,n){var i=Hv.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function Xv(t,e,n){var i=Hv.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function Gv(t,e,n){var i=Hv.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function Qv(t,e,n){var i=Hv.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function Zv(t,e,n){var i=Hv.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function Kv(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Jv(t,e,n){var i=Hv.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function tx(t,e,n){var i=Hv.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function ex(t,e,n){var i=Hv.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function nx(t,e,n){var i=Hv.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function ix(t,e,n){var i=Hv.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function sx(t,e,n){var i=Hv.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function rx(t,e,n){var i=Hv.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function ox(t,e,n){var i=Hv.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function ax(t,e,n){var i=Hv.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function lx(t,e,n){var i=Vv.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function cx(t,e,n){var i=Hv.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function hx(t,e,n){var i=Hv.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function ux(t,e){return zv(t.getDate(),e,2)}function dx(t,e){return zv(t.getHours(),e,2)}function fx(t,e){return zv(t.getHours()%12||12,e,2)}function px(t,e){return zv(1+Av.count(Lv(t),t),e,3)}function mx(t,e){return zv(t.getMilliseconds(),e,3)}function gx(t,e){return mx(t,e)+"000"}function yx(t,e){return zv(t.getMonth()+1,e,2)}function vx(t,e){return zv(t.getMinutes(),e,2)}function xx(t,e){return zv(t.getSeconds(),e,2)}function bx(t){var e=t.getDay();return 0===e?7:e}function wx(t,e){return zv(Sv.count(Lv(t)-1,t),e,2)}function _x(t){var e=t.getDay();return e>=4||0===e?Cv(t):Cv.ceil(t)}function Tx(t,e){return t=_x(t),zv(Cv.count(Lv(t),t)+(4===Lv(t).getDay()),e,2)}function Sx(t){return t.getDay()}function kx(t,e){return zv(kv.count(Lv(t)-1,t),e,2)}function Cx(t,e){return zv(t.getFullYear()%100,e,2)}function Ax(t,e){return zv((t=_x(t)).getFullYear()%100,e,2)}function Ex(t,e){return zv(t.getFullYear()%1e4,e,4)}function Lx(t,e){var n=t.getDay();return zv((t=n>=4||0===n?Cv(t):Cv.ceil(t)).getFullYear()%1e4,e,4)}function Dx(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+zv(e/60|0,"0",2)+zv(e%60,"0",2)}function Fx(t,e){return zv(t.getUTCDate(),e,2)}function Mx(t,e){return zv(t.getUTCHours(),e,2)}function Ox(t,e){return zv(t.getUTCHours()%12||12,e,2)}function Ix(t,e){return zv(1+_v.count(Fv(t),t),e,3)}function Px(t,e){return zv(t.getUTCMilliseconds(),e,3)}function Nx(t,e){return Px(t,e)+"000"}function Rx(t,e){return zv(t.getUTCMonth()+1,e,2)}function Hx(t,e){return zv(t.getUTCMinutes(),e,2)}function Vx(t,e){return zv(t.getUTCSeconds(),e,2)}function jx(t){var e=t.getUTCDay();return 0===e?7:e}function zx(t,e){return zv(xv.count(Fv(t)-1,t),e,2)}function Bx(t){var e=t.getUTCDay();return e>=4||0===e?wv(t):wv.ceil(t)}function $x(t,e){return t=Bx(t),zv(wv.count(Fv(t),t)+(4===Fv(t).getUTCDay()),e,2)}function Yx(t){return t.getUTCDay()}function Wx(t,e){return zv(bv.count(Fv(t)-1,t),e,2)}function qx(t,e){return zv(t.getUTCFullYear()%100,e,2)}function Ux(t,e){return zv((t=Bx(t)).getUTCFullYear()%100,e,2)}function Xx(t,e){return zv(t.getUTCFullYear()%1e4,e,4)}function Gx(t,e){var n=t.getUTCDay();return zv((t=n>=4||0===n?wv(t):wv.ceil(t)).getUTCFullYear()%1e4,e,4)}function Qx(){return"+0000"}function Zx(){return"%"}function Kx(t){return+t}function Jx(t){return Math.floor(+t/1e3)}Pv=function(t){var e=t.dateTime,n=t.date,i=t.time,s=t.periods,r=t.days,o=t.shortDays,a=t.months,l=t.shortMonths,c=$v(s),h=Yv(s),u=$v(r),d=Yv(r),f=$v(o),p=Yv(o),m=$v(a),g=Yv(a),y=$v(l),v=Yv(l),x={a:function(t){return o[t.getDay()]},A:function(t){return r[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:ux,e:ux,f:gx,g:Ax,G:Lx,H:dx,I:fx,j:px,L:mx,m:yx,M:vx,p:function(t){return s[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Kx,s:Jx,S:xx,u:bx,U:wx,V:Tx,w:Sx,W:kx,x:null,X:null,y:Cx,Y:Ex,Z:Dx,"%":Zx},b={a:function(t){return o[t.getUTCDay()]},A:function(t){return r[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:Fx,e:Fx,f:Nx,g:Ux,G:Gx,H:Mx,I:Ox,j:Ix,L:Px,m:Rx,M:Hx,p:function(t){return s[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Kx,s:Jx,S:Vx,u:jx,U:zx,V:$x,w:Yx,W:Wx,x:null,X:null,y:qx,Y:Xx,Z:Qx,"%":Zx},w={a:function(t,e,n){var i=f.exec(e.slice(n));return i?(t.w=p[i[0].toLowerCase()],n+i[0].length):-1},A:function(t,e,n){var i=u.exec(e.slice(n));return i?(t.w=d[i[0].toLowerCase()],n+i[0].length):-1},b:function(t,e,n){var i=y.exec(e.slice(n));return i?(t.m=v[i[0].toLowerCase()],n+i[0].length):-1},B:function(t,e,n){var i=m.exec(e.slice(n));return i?(t.m=g[i[0].toLowerCase()],n+i[0].length):-1},c:function(t,n,i){return S(t,e,n,i)},d:ex,e:ex,f:ax,g:Zv,G:Qv,H:ix,I:ix,j:nx,L:ox,m:tx,M:sx,p:function(t,e,n){var i=c.exec(e.slice(n));return i?(t.p=h[i[0].toLowerCase()],n+i[0].length):-1},q:Jv,Q:cx,s:hx,S:rx,u:qv,U:Uv,V:Xv,w:Wv,W:Gv,x:function(t,e,i){return S(t,n,e,i)},X:function(t,e,n){return S(t,i,e,n)},y:Zv,Y:Qv,Z:Kv,"%":lx};function _(t,e){return function(n){var i,s,r,o=[],a=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++a<c;)37===t.charCodeAt(a)&&(o.push(t.slice(l,a)),null!=(s=Rv[i=t.charAt(++a)])?i=t.charAt(++a):s="e"===i?" ":"0",(r=e[i])&&(i=r(n,s)),o.push(i),l=a+1);return o.push(t.slice(l,a)),o.join("")}}function T(t,e){return function(n){var i,s,r=Iv(1900,void 0,1);if(S(r,t,n+="",0)!=n.length)return null;if("Q"in r)return new Date(r.Q);if("s"in r)return new Date(1e3*r.s+("L"in r?r.L:0));if(e&&!("Z"in r)&&(r.Z=0),"p"in r&&(r.H=r.H%12+12*r.p),void 0===r.m&&(r.m="q"in r?r.q:0),"V"in r){if(r.V<1||r.V>53)return null;"w"in r||(r.w=1),"Z"in r?(s=(i=Ov(Iv(r.y,0,1))).getUTCDay(),i=s>4||0===s?bv.ceil(i):bv(i),i=_v.offset(i,7*(r.V-1)),r.y=i.getUTCFullYear(),r.m=i.getUTCMonth(),r.d=i.getUTCDate()+(r.w+6)%7):(s=(i=Mv(Iv(r.y,0,1))).getDay(),i=s>4||0===s?kv.ceil(i):kv(i),i=Av.offset(i,7*(r.V-1)),r.y=i.getFullYear(),r.m=i.getMonth(),r.d=i.getDate()+(r.w+6)%7)}else("W"in r||"U"in r)&&("w"in r||(r.w="u"in r?r.u%7:"W"in r?1:0),s="Z"in r?Ov(Iv(r.y,0,1)).getUTCDay():Mv(Iv(r.y,0,1)).getDay(),r.m=0,r.d="W"in r?(r.w+6)%7+7*r.W-(s+5)%7:r.w+7*r.U-(s+6)%7);return"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,Ov(r)):Mv(r)}}function S(t,e,n,i){for(var s,r,o=0,a=e.length,l=n.length;o<a;){if(i>=l)return-1;if(37===(s=e.charCodeAt(o++))){if(s=e.charAt(o++),!(r=w[s in Rv?e.charAt(o++):s])||(i=r(t,n,i))<0)return-1}else if(s!=n.charCodeAt(i++))return-1}return i}return x.x=_(n,x),x.X=_(i,x),x.c=_(e,x),b.x=_(n,b),b.X=_(i,b),b.c=_(e,b),{format:function(t){var e=_(t+="",x);return e.toString=function(){return t},e},parse:function(t){var e=T(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=_(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=T(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Nv=Pv.format;var tb=function(t){return null===t?NaN:+t};const eb=Ey(Ay).right;Ey(tb);var nb=eb,ib=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}};function sb(t){return+t}var rb=[0,1];function ob(t){return t}function ab(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function lb(t,e,n){var i=t[0],s=t[1],r=e[0],o=e[1];return s<i?(i=ab(s,i),r=n(o,r)):(i=ab(i,s),r=n(r,o)),function(t){return r(i(t))}}function cb(t,e,n){var i=Math.min(t.length,e.length)-1,s=new Array(i),r=new Array(i),o=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<i;)s[o]=ab(t[o],t[o+1]),r[o]=n(e[o],e[o+1]);return function(e){var n=nb(t,e,1,i)-1;return r[n](s[n](e))}}function hb(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ub(){return function(){var t,e,n,i,s,r,o=rb,a=rb,l=Bm,c=ob;function h(){var t,e,n,l=Math.min(o.length,a.length);return c!==ob&&((t=o[0])>(e=o[l-1])&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),i=l>2?cb:lb,s=r=null,u}function u(e){return null==e||isNaN(e=+e)?n:(s||(s=i(o.map(t),a,l)))(t(c(e)))}return u.invert=function(n){return c(e((r||(r=i(a,o.map(t),Rm)))(n)))},u.domain=function(t){return arguments.length?(o=Array.from(t,sb),h()):o.slice()},u.range=function(t){return arguments.length?(a=Array.from(t),h()):a.slice()},u.rangeRound=function(t){return a=Array.from(t),l=ib,h()},u.clamp=function(t){return arguments.length?(c=!!t||ob,h()):c!==ob},u.interpolate=function(t){return arguments.length?(l=t,h()):l},u.unknown=function(t){return arguments.length?(n=t,u):n},function(n,i){return t=n,e=i,h()}}()(ob,ob)}function db(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function fb(t){return new Date(t)}function pb(t){return t instanceof Date?+t:+new Date(+t)}function mb(t,e,n,i,s,r,o,a,l,c){var h=ub(),u=h.invert,d=h.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),y=c("%a %d"),v=c("%b %d"),x=c("%B"),b=c("%Y");function w(t){return(l(t)<t?f:a(t)<t?p:o(t)<t?m:r(t)<t?g:i(t)<t?s(t)<t?y:v:n(t)<t?x:b)(t)}return h.invert=function(t){return new Date(u(t))},h.domain=function(t){return arguments.length?d(Array.from(t,pb)):d().map(fb)},h.ticks=function(e){var n=d();return t(n[0],n[n.length-1],null==e?10:e)},h.tickFormat=function(t,e){return null==e?w:c(e)},h.nice=function(t){var n=d();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?d(function(t,e){var n,i=0,s=(t=t.slice()).length-1,r=t[i],o=t[s];return o<r&&(n=i,i=s,s=n,n=r,r=o,o=n),t[i]=e.floor(r),t[s]=e.ceil(o),t}(n,t)):h},h.copy=function(){return hb(h,mb(t,e,n,i,s,r,o,a,l,c))},h}function gb(){return db.apply(mb(uv,dv,Jy,Zy,Qy,Xy,Uy,qy,Wy,Nv).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var yb=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vb(t){if(!(e=yb.exec(t)))throw new Error("invalid format: "+t);var e;return new xb({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function xb(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function bb(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}vb.prototype=xb.prototype,xb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var wb,_b,Tb,Sb,kb=function(t){return(t=bb(Math.abs(t)))?t[1]:NaN},Cb=function(t,e){var n=bb(t,e);if(!n)return t+"";var i=n[0],s=n[1];return s<0?"0."+new Array(-s).join("0")+i:i.length>s+1?i.slice(0,s+1)+"."+i.slice(s+1):i+new Array(s-i.length+2).join("0")},Ab={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Cb(100*t,e)},r:Cb,s:function(t,e){var n=bb(t,e);if(!n)return t+"";var i=n[0],s=n[1],r=s-(wb=3*Math.max(-8,Math.min(8,Math.floor(s/3))))+1,o=i.length;return r===o?i:r>o?i+new Array(r-o+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+bb(t,Math.max(0,e+r-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Eb=function(t){return t},Lb=Array.prototype.map,Db=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Fb(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var i,s,r,o,a=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((i=e<t)&&(s=t,t=e,e=s),0===(o=My(t,e,n))||!isFinite(o))return[];if(o>0){let n=Math.round(t/o),i=Math.round(e/o);for(n*o<t&&++n,i*o>e&&--i,r=new Array(s=i-n+1);++a<s;)r[a]=(n+a)*o}else{o=-o;let n=Math.round(t*o),i=Math.round(e*o);for(n/o<t&&++n,i/o>e&&--i,r=new Array(s=i-n+1);++a<s;)r[a]=(n+a)/o}return i&&r.reverse(),r}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e();return function(t,e,n,i){var s,r=Oy(t,e,n);switch((i=vb(null==i?",f":i)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(s=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(kb(e)/3)))-kb(Math.abs(t)))}(r,o))||(i.precision=s),Sb(i,o);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(s=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,kb(e)-kb(t))+1}(r,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=s-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(s=function(t){return Math.max(0,-kb(Math.abs(t)))}(r))||(i.precision=s-2*("%"===i.type))}return Tb(i)}(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,s,r=e(),o=0,a=r.length-1,l=r[o],c=r[a],h=10;for(c<l&&(s=l,l=c,c=s,s=o,o=a,a=s);h-- >0;){if((s=My(l,c,n))===i)return r[o]=l,r[a]=c,e(r);if(s>0)l=Math.floor(l/s)*s,c=Math.ceil(c/s)*s;else{if(!(s<0))break;l=Math.ceil(l*s)/s,c=Math.floor(c*s)/s}i=s}return t},t}function Mb(){var t=ub();return t.copy=function(){return hb(t,Mb())},db.apply(t,arguments),Fb(t)}_b=function(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?Eb:(e=Lb.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var s=t.length,r=[],o=0,a=e[0],l=0;s>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(t.substring(s-=a,s+a)),!((l+=a+1)>i));)a=e[o=(o+1)%e.length];return r.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",r=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?Eb:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Lb.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function u(t){var e=(t=vb(t)).fill,n=t.align,u=t.sign,d=t.symbol,f=t.zero,p=t.width,m=t.comma,g=t.precision,y=t.trim,v=t.type;"n"===v?(m=!0,v="g"):Ab[v]||(void 0===g&&(g=12),y=!0,v="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var x="$"===d?s:"#"===d&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",b="$"===d?r:/[%p]/.test(v)?l:"",w=Ab[v],_=/[defgprs%]/.test(v);function T(t){var s,r,l,d=x,T=b;if("c"===v)T=w(t)+T,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?h:w(Math.abs(t),g),y&&(t=function(t){t:for(var e,n=t.length,i=1,s=-1;i<n;++i)switch(t[i]){case".":s=e=i;break;case"0":0===s&&(s=i),e=i;break;default:if(!+t[i])break t;s>0&&(s=0)}return s>0?t.slice(0,s)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==u&&(S=!1),d=(S?"("===u?u:c:"-"===u||"("===u?"":u)+d,T=("s"===v?Db[8+wb/3]:"")+T+(S&&"("===u?")":""),_)for(s=-1,r=t.length;++s<r;)if(48>(l=t.charCodeAt(s))||l>57){T=(46===l?o+t.slice(s+1):t.slice(s))+T,t=t.slice(0,s);break}}m&&!f&&(t=i(t,1/0));var k=d.length+t.length+T.length,C=k<p?new Array(p-k+1).join(e):"";switch(m&&f&&(t=i(C+t,C.length?p-T.length:1/0),C=""),n){case"<":t=d+t+T+C;break;case"=":t=d+C+t+T;break;case"^":t=C.slice(0,k=C.length>>1)+d+t+T+C.slice(k);break;default:t=C+d+t+T}return a(t)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),T.toString=function(){return t+""},T}return{format:u,formatPrefix:function(t,e){var n=u(((t=vb(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(kb(e)/3))),s=Math.pow(10,-i),r=Db[8+i/3];return function(t){return n(s*t)+r}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Tb=_b.format,Sb=_b.formatPrefix;var Ob=function(t,e,n){t=+t,e=+e,n=(s=arguments.length)<2?(e=t,t=0,1):s<3?1:+n;for(var i=-1,s=0|Math.max(0,Math.ceil((e-t)/n)),r=new Array(s);++i<s;)r[i]=t+i*n;return r};const Ib=Symbol("implicit");function Pb(){var t=new Map,e=[],n=[],i=Ib;function s(s){var r=s+"",o=t.get(r);if(!o){if(i!==Ib)return i;t.set(r,o=e.push(s))}return n[(o-1)%n.length]}return s.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Map;for(const i of n){const n=i+"";t.has(n)||t.set(n,e.push(i))}return s},s.range=function(t){return arguments.length?(n=Array.from(t),s):n.slice()},s.unknown=function(t){return arguments.length?(i=t,s):i},s.copy=function(){return Pb(e,n).unknown(i)},db.apply(s,arguments),s}function Nb(){var t,e,n=Pb().unknown(void 0),i=n.domain,s=n.range,r=0,o=1,a=!1,l=0,c=0,h=.5;function u(){var n=i().length,u=o<r,d=u?o:r,f=u?r:o;t=(f-d)/Math.max(1,n-l+2*c),a&&(t=Math.floor(t)),d+=(f-d-t*(n-l))*h,e=t*(1-l),a&&(d=Math.round(d),e=Math.round(e));var p=Ob(n).map((function(e){return d+t*e}));return s(u?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),u()):i()},n.range=function(t){return arguments.length?([r,o]=t,r=+r,o=+o,u()):[r,o]},n.rangeRound=function(t){return[r,o]=t,r=+r,o=+o,a=!0,u()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,u()):a},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),u()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),u()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,u()):c},n.align=function(t){return arguments.length?(h=Math.max(0,Math.min(1,t)),u()):h},n.copy=function(){return Nb(i(),[r,o]).round(a).paddingInner(l).paddingOuter(c).align(h)},db.apply(u(),arguments)}function Rb(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Rb(e())},t}function Hb(){return Rb(Nb.apply(null,arguments).paddingInner(1))}function Vb(t,e,n=tb){if(i=t.length){if((e=+e)<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,s=(i-1)*e,r=Math.floor(s),o=+n(t[r],r,t);return o+(+n(t[r+1],r+1,t)-o)*(s-r)}}function jb(t){this._context=t}jb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var zb=function(t){return new jb(t)},Bb=Math.PI,$b=2*Bb,Yb=1e-6,Wb=$b-Yb;function qb(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Ub(){return new qb}qb.prototype=Ub.prototype={constructor:qb,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,s,r){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+s)+","+(this._y1=+r)},arcTo:function(t,e,n,i,s){var r=this._x1,o=this._y1,a=(n=+n)-(t=+t),l=(i=+i)-(e=+e),c=r-t,h=o-e,u=c*c+h*h;if((s=+s)<0)throw new Error("negative radius: "+s);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(u>Yb)if(Math.abs(h*a-l*c)>Yb&&s){var d=n-r,f=i-o,p=a*a+l*l,m=d*d+f*f,g=Math.sqrt(p),y=Math.sqrt(u),v=s*Math.tan((Bb-Math.acos((p+u-m)/(2*g*y)))/2),x=v/y,b=v/g;Math.abs(x-1)>Yb&&(this._+="L"+(t+x*c)+","+(e+x*h)),this._+="A"+s+","+s+",0,0,"+ +(h*d>c*f)+","+(this._x1=t+b*a)+","+(this._y1=e+b*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,s,r){t=+t,e=+e,r=!!r;var o=(n=+n)*Math.cos(i),a=n*Math.sin(i),l=t+o,c=e+a,h=1^r,u=r?i-s:s-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Yb||Math.abs(this._y1-c)>Yb)&&(this._+="L"+l+","+c),n&&(u<0&&(u=u%$b+$b),u>Wb?this._+="A"+n+","+n+",0,1,"+h+","+(t-o)+","+(e-a)+"A"+n+","+n+",0,1,"+h+","+(this._x1=l)+","+(this._y1=c):u>Yb&&(this._+="A"+n+","+n+",0,"+ +(u>=Bb)+","+h+","+(this._x1=t+n*Math.cos(s))+","+(this._y1=e+n*Math.sin(s))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var Xb=Ub,Gb=function(t){return function(){return t}};function Qb(t){return t[0]}function Zb(t){return t[1]}var Kb=function(){var t=Qb,e=Zb,n=Gb(!0),i=null,s=zb,r=null;function o(o){var a,l,c,h=o.length,u=!1;for(null==i&&(r=s(c=Xb())),a=0;a<=h;++a)!(a<h&&n(l=o[a],a,o))===u&&((u=!u)?r.lineStart():r.lineEnd()),u&&r.point(+t(l,a,o),+e(l,a,o));if(c)return r=null,c+""||null}return o.x=function(e){return arguments.length?(t="function"==typeof e?e:Gb(+e),o):t},o.y=function(t){return arguments.length?(e="function"==typeof t?t:Gb(+t),o):e},o.defined=function(t){return arguments.length?(n="function"==typeof t?t:Gb(!!t),o):n},o.curve=function(t){return arguments.length?(s=t,null!=i&&(r=s(i)),o):s},o.context=function(t){return arguments.length?(null==t?i=r=null:r=s(i=t),o):i},o},Jb=function(){var t=Qb,e=null,n=Gb(0),i=Zb,s=Gb(!0),r=null,o=zb,a=null;function l(l){var c,h,u,d,f,p=l.length,m=!1,g=new Array(p),y=new Array(p);for(null==r&&(a=o(f=Xb())),c=0;c<=p;++c){if(!(c<p&&s(d=l[c],c,l))===m)if(m=!m)h=c,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),u=c-1;u>=h;--u)a.point(g[u],y[u]);a.lineEnd(),a.areaEnd()}m&&(g[c]=+t(d,c,l),y[c]=+n(d,c,l),a.point(e?+e(d,c,l):g[c],i?+i(d,c,l):y[c]))}if(f)return a=null,f+""||null}function c(){return Kb().defined(s).curve(o).context(r)}return l.x=function(n){return arguments.length?(t="function"==typeof n?n:Gb(+n),e=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:Gb(+e),l):t},l.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Gb(+t),l):e},l.y=function(t){return arguments.length?(n="function"==typeof t?t:Gb(+t),i=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:Gb(+t),l):n},l.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:Gb(+t),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(n)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(e).y(n)},l.defined=function(t){return arguments.length?(s="function"==typeof t?t:Gb(!!t),l):s},l.curve=function(t){return arguments.length?(o=t,null!=r&&(a=o(r)),l):o},l.context=function(t){return arguments.length?(null==t?r=a=null:a=o(r=t),l):r},l},tw=function(){};function ew(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function nw(t,e){this._context=t,this._k=(1-e)/6}function iw(t,e){this._context=t,this._k=(1-e)/6}function sw(t){this._curve=t}nw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ew(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ew(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new nw(t,e)}return n.tension=function(e){return t(+e)},n}(0),iw.prototype={areaStart:tw,areaEnd:tw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ew(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new iw(t,e)}return n.tension=function(e){return t(+e)},n}(0),sw.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var rw=Math.abs,ow=Math.atan2,aw=Math.cos,lw=Math.max,cw=Math.min,hw=Math.sin,uw=Math.sqrt,dw=1e-12,fw=Math.PI,pw=fw/2,mw=2*fw;function gw(t){return t>1?0:t<-1?fw:Math.acos(t)}function yw(t){return t>=1?pw:t<=-1?-pw:Math.asin(t)}function vw(t){return t.innerRadius}function xw(t){return t.outerRadius}function bw(t){return t.startAngle}function ww(t){return t.endAngle}function _w(t){return t&&t.padAngle}function Tw(t,e,n,i,s,r,o,a){var l=n-t,c=i-e,h=o-s,u=a-r,d=u*l-h*c;if(!(d*d<dw))return[t+(d=(h*(e-r)-u*(t-s))/d)*l,e+d*c]}function Sw(t,e,n,i,s,r,o){var a=t-n,l=e-i,c=(o?r:-r)/uw(a*a+l*l),h=c*l,u=-c*a,d=t+h,f=e+u,p=n+h,m=i+u,g=(d+p)/2,y=(f+m)/2,v=p-d,x=m-f,b=v*v+x*x,w=s-r,_=d*m-p*f,T=(x<0?-1:1)*uw(lw(0,w*w*b-_*_)),S=(_*x-v*T)/b,k=(-_*v-x*T)/b,C=(_*x+v*T)/b,A=(-_*v+x*T)/b,E=S-g,L=k-y,D=C-g,F=A-y;return E*E+L*L>D*D+F*F&&(S=C,k=A),{cx:S,cy:k,x01:-h,y01:-u,x11:S*(s/w-1),y11:k*(s/w-1)}}var kw=function(){var t=vw,e=xw,n=Gb(0),i=null,s=bw,r=ww,o=_w,a=null;function l(){var l,c,h=+t.apply(this,arguments),u=+e.apply(this,arguments),d=s.apply(this,arguments)-pw,f=r.apply(this,arguments)-pw,p=rw(f-d),m=f>d;if(a||(a=l=Xb()),u<h&&(c=u,u=h,h=c),u>dw)if(p>mw-dw)a.moveTo(u*aw(d),u*hw(d)),a.arc(0,0,u,d,f,!m),h>dw&&(a.moveTo(h*aw(f),h*hw(f)),a.arc(0,0,h,f,d,m));else{var g,y,v=d,x=f,b=d,w=f,_=p,T=p,S=o.apply(this,arguments)/2,k=S>dw&&(i?+i.apply(this,arguments):uw(h*h+u*u)),C=cw(rw(u-h)/2,+n.apply(this,arguments)),A=C,E=C;if(k>dw){var L=yw(k/h*hw(S)),D=yw(k/u*hw(S));(_-=2*L)>dw?(b+=L*=m?1:-1,w-=L):(_=0,b=w=(d+f)/2),(T-=2*D)>dw?(v+=D*=m?1:-1,x-=D):(T=0,v=x=(d+f)/2)}var F=u*aw(v),M=u*hw(v),O=h*aw(w),I=h*hw(w);if(C>dw){var P,N=u*aw(x),R=u*hw(x),H=h*aw(b),V=h*hw(b);if(p<fw&&(P=Tw(F,M,H,V,N,R,O,I))){var j=F-P[0],z=M-P[1],B=N-P[0],$=R-P[1],Y=1/hw(gw((j*B+z*$)/(uw(j*j+z*z)*uw(B*B+$*$)))/2),W=uw(P[0]*P[0]+P[1]*P[1]);A=cw(C,(h-W)/(Y-1)),E=cw(C,(u-W)/(Y+1))}}T>dw?E>dw?(g=Sw(H,V,F,M,u,E,m),y=Sw(N,R,O,I,u,E,m),a.moveTo(g.cx+g.x01,g.cy+g.y01),E<C?a.arc(g.cx,g.cy,E,ow(g.y01,g.x01),ow(y.y01,y.x01),!m):(a.arc(g.cx,g.cy,E,ow(g.y01,g.x01),ow(g.y11,g.x11),!m),a.arc(0,0,u,ow(g.cy+g.y11,g.cx+g.x11),ow(y.cy+y.y11,y.cx+y.x11),!m),a.arc(y.cx,y.cy,E,ow(y.y11,y.x11),ow(y.y01,y.x01),!m))):(a.moveTo(F,M),a.arc(0,0,u,v,x,!m)):a.moveTo(F,M),h>dw&&_>dw?A>dw?(g=Sw(O,I,N,R,h,-A,m),y=Sw(F,M,H,V,h,-A,m),a.lineTo(g.cx+g.x01,g.cy+g.y01),A<C?a.arc(g.cx,g.cy,A,ow(g.y01,g.x01),ow(y.y01,y.x01),!m):(a.arc(g.cx,g.cy,A,ow(g.y01,g.x01),ow(g.y11,g.x11),!m),a.arc(0,0,h,ow(g.cy+g.y11,g.cx+g.x11),ow(y.cy+y.y11,y.cx+y.x11),m),a.arc(y.cx,y.cy,A,ow(y.y11,y.x11),ow(y.y01,y.x01),!m))):a.arc(0,0,h,w,b,m):a.lineTo(O,I)}else a.moveTo(0,0);if(a.closePath(),l)return a=null,l+""||null}return l.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,i=(+s.apply(this,arguments)+ +r.apply(this,arguments))/2-fw/2;return[aw(i)*n,hw(i)*n]},l.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Gb(+e),l):t},l.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Gb(+t),l):e},l.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Gb(+t),l):n},l.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:Gb(+t),l):i},l.startAngle=function(t){return arguments.length?(s="function"==typeof t?t:Gb(+t),l):s},l.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:Gb(+t),l):r},l.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Gb(+t),l):o},l.context=function(t){return arguments.length?(a=null==t?null:t,l):a},l},Cw=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},Aw=function(t){return t},Ew=function(t,e,n,i,s){for(var r,o=t.children,a=-1,l=o.length,c=t.value&&(i-e)/t.value;++a<l;)(r=o[a]).y0=n,r.y1=s,r.x0=e,r.x1=e+=r.value*c},Lw=function(t,e,n,i,s){for(var r,o=t.children,a=-1,l=o.length,c=t.value&&(s-n)/t.value;++a<l;)(r=o[a]).x0=e,r.x1=i,r.y0=n,r.y1=n+=r.value*c};function Dw(t){var e=0,n=t.children,i=n&&n.length;if(i)for(;--i>=0;)e+=n[i].value;else e=1;t.value=e}function Fw(t,e){var n,i,s,r,o,a=new Pw(t),l=+t.value&&(a.value=t.value),c=[a];for(null==e&&(e=Mw);n=c.pop();)if(l&&(n.value=+n.data.value),(s=e(n.data))&&(o=s.length))for(n.children=new Array(o),r=o-1;r>=0;--r)c.push(i=n.children[r]=new Pw(s[r])),i.parent=n,i.depth=n.depth+1;return a.eachBefore(Iw)}function Mw(t){return t.children}function Ow(t){t.data=t.data.data}function Iw(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Pw(t){this.data=t,this.depth=this.height=0,this.parent=null}!function t(e){function n(t,n,i,s,r){!function(t,e,n,i,s,r){for(var o,a,l,c,h,u,d,f,p,m,g,y=[],v=e.children,x=0,b=0,w=v.length,_=e.value;x<w;){l=s-n,c=r-i;do{h=v[b++].value}while(!h&&b<w);for(u=d=h,g=h*h*(m=Math.max(c/l,l/c)/(_*t)),p=Math.max(d/g,g/u);b<w;++b){if(h+=a=v[b].value,a<u&&(u=a),a>d&&(d=a),g=h*h*m,(f=Math.max(d/g,g/u))>p){h-=a;break}p=f}y.push(o={value:h,dice:l<c,children:v.slice(x,b)}),o.dice?Ew(o,n,i,s,_?i+=c*h/_:r):Lw(o,n,i,_?n+=l*h/_:s,r),_-=h,x=b}}(e,t,n,i,s,r)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}((1+Math.sqrt(5))/2),Pw.prototype=Fw.prototype={constructor:Pw,count:function(){return this.eachAfter(Dw)},each:function(t){var e,n,i,s,r=this,o=[r];do{for(e=o.reverse(),o=[];r=e.pop();)if(t(r),n=r.children)for(i=0,s=n.length;i<s;++i)o.push(n[i])}while(o.length);return this},eachAfter:function(t){for(var e,n,i,s=this,r=[s],o=[];s=r.pop();)if(o.push(s),e=s.children)for(n=0,i=e.length;n<i;++n)r.push(e[n]);for(;s=o.pop();)t(s);return this},eachBefore:function(t){for(var e,n,i=this,s=[i];i=s.pop();)if(t(i),e=i.children)for(n=e.length-1;n>=0;--n)s.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,i=e.children,s=i&&i.length;--s>=0;)n+=i[s].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),s=null;for(t=n.pop(),e=i.pop();t===e;)s=t,t=n.pop(),e=i.pop();return s}(e,t),i=[e];e!==n;)i.push(e=e.parent);for(var s=i.length;t!==n;)i.splice(s,0,t),t=t.parent;return i},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return Fw(this).eachBefore(Ow)}};const Nw=["caretElm"];function Rw(t,e){}const Hw=function(t){return{model:t}};function Vw(t,e){if(1&t&&(xo(0,"span"),mo(1,Rw,0,0,"ng-template",5),bo()),2&t){const t=Lo();vs(1),yo("ngTemplateOutlet",t.template)("ngTemplateOutletContext",hl(2,Hw,t.context))}}function jw(t,e){1&t&&wo(0,"span",6),2&t&&yo("innerHTML",Lo().title,Zi)}function zw(t,e){if(1&t&&(kn(),Cn(),wo(0,"ngx-charts-scale-legend",4)),2&t){const t=Lo();yo("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("valueRange",t.legendOptions.domain)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)}}function Bw(t,e){if(1&t){const t=So();kn(),Cn(),xo(0,"ngx-charts-legend",5),Co("labelClick",(function(e){return tn(t),Lo().legendLabelClick.emit(e)}))("labelActivate",(function(e){return tn(t),Lo().legendLabelActivate.emit(e)}))("labelDeactivate",(function(e){return tn(t),Lo().legendLabelDeactivate.emit(e)})),bo()}if(2&t){const t=Lo();yo("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("data",t.legendOptions.domain)("title",t.legendOptions.title)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)("activeEntries",t.activeEntries)}}const $w=["*"],Yw=["ngx-charts-axis-label",""],Ww=["ticksel"],qw=["ngx-charts-x-axis-ticks",""];function Uw(t,e){if(1&t&&(kn(),xo(0,"g",3),xo(1,"title"),Jo(2),bo(),xo(3,"text",4),Jo(4),bo(),bo()),2&t){const t=e.$implicit,n=Lo();fo("transform",n.tickTransform(t)),vs(2),ta(n.tickFormat(t)),vs(1),jo("font-size","12px"),fo("text-anchor",n.textAnchor)("transform",n.textTransform),vs(1),ea(" ",n.tickTrim(n.tickFormat(t))," ")}}function Xw(t,e){if(1&t&&(kn(),xo(0,"g"),wo(1,"line",6),bo()),2&t){const t=Lo(2);fo("transform",t.gridLineTransform()),vs(1),fo("y1",-t.gridLineHeight)}}function Gw(t,e){if(1&t&&(kn(),xo(0,"g"),mo(1,Xw,2,2,"g",5),bo()),2&t){const t=e.$implicit,n=Lo();fo("transform",n.tickTransform(t)),vs(1),yo("ngIf",n.showGridLines)}}const Qw=["ngx-charts-x-axis",""];function Zw(t,e){if(1&t){const t=So();kn(),xo(0,"g",2),Co("dimensionsChanged",(function(e){return tn(t),Lo().emitTicksHeight(e)})),bo()}if(2&t){const t=Lo();yo("trimTicks",t.trimTicks)("rotateTicks",t.rotateTicks)("maxTickLength",t.maxTickLength)("tickFormatting",t.tickFormatting)("tickArguments",t.tickArguments)("tickStroke",t.tickStroke)("scale",t.xScale)("orient",t.xOrient)("showGridLines",t.showGridLines)("gridLineHeight",t.dims.height)("width",t.dims.width)("tickValues",t.ticks)}}function Kw(t,e){if(1&t&&(kn(),wo(0,"g",3)),2&t){const t=Lo();yo("label",t.labelText)("offset",t.labelOffset)("orient","bottom")("height",t.dims.height)("width",t.dims.width)}}const Jw=["ngx-charts-y-axis-ticks",""];function t_(t,e){if(1&t&&(kn(),xo(0,"g",4),xo(1,"title"),Jo(2),bo(),xo(3,"text",5),Jo(4),bo(),bo()),2&t){const t=e.$implicit,n=Lo();fo("transform",n.transform(t)),vs(2),ta(n.tickFormat(t)),vs(1),jo("font-size","12px"),fo("dy",n.dy)("x",n.x1)("y",n.y1)("text-anchor",n.textAnchor),vs(1),ea(" ",n.tickTrim(n.tickFormat(t))," ")}}function e_(t,e){if(1&t&&(kn(),wo(0,"path",6)),2&t){const t=Lo();fo("d",t.referenceAreaPath)("transform",t.gridLineTransform())}}function n_(t,e){1&t&&(kn(),wo(0,"line",9)),2&t&&fo("x2",Lo(3).gridLineWidth)}function i_(t,e){1&t&&(kn(),wo(0,"line",9)),2&t&&fo("x2",-Lo(3).gridLineWidth)}function s_(t,e){if(1&t&&(kn(),xo(0,"g"),mo(1,n_,1,1,"line",8),mo(2,i_,1,1,"line",8),bo()),2&t){const t=Lo(2);fo("transform",t.gridLineTransform()),vs(1),yo("ngIf","left"===t.orient),vs(1),yo("ngIf","right"===t.orient)}}function r_(t,e){if(1&t&&(kn(),xo(0,"g"),mo(1,s_,3,3,"g",7),bo()),2&t){const t=e.$implicit,n=Lo();fo("transform",n.transform(t)),vs(1),yo("ngIf",n.showGridLines)}}function o_(t,e){if(1&t&&(kn(),xo(0,"g"),xo(1,"title"),Jo(2),bo(),xo(3,"text",11),Jo(4),bo(),bo()),2&t){const t=Lo(2).$implicit,e=Lo();vs(2),ta(e.tickTrim(e.tickFormat(t.value))),vs(1),fo("dy",e.dy)("y",-6)("x",e.gridLineWidth)("text-anchor",e.textAnchor),vs(1),ea(" ",t.name," ")}}function a_(t,e){if(1&t&&(kn(),xo(0,"g"),wo(1,"line",10),mo(2,o_,5,6,"g",7),bo()),2&t){const t=Lo().$implicit,e=Lo();fo("transform",e.transform(t.value)),vs(1),fo("x2",e.gridLineWidth)("transform",e.gridLineTransform()),vs(1),yo("ngIf",e.showRefLabels)}}function l_(t,e){if(1&t&&(kn(),xo(0,"g"),mo(1,a_,3,4,"g",7),bo()),2&t){const t=Lo();vs(1),yo("ngIf",t.showRefLines)}}const c_=["ngx-charts-y-axis",""];function h_(t,e){if(1&t){const t=So();kn(),xo(0,"g",2),Co("dimensionsChanged",(function(e){return tn(t),Lo().emitTicksWidth(e)})),bo()}if(2&t){const t=Lo();yo("trimTicks",t.trimTicks)("maxTickLength",t.maxTickLength)("tickFormatting",t.tickFormatting)("tickArguments",t.tickArguments)("tickValues",t.ticks)("tickStroke",t.tickStroke)("scale",t.yScale)("orient",t.yOrient)("showGridLines",t.showGridLines)("gridLineWidth",t.dims.width)("referenceLines",t.referenceLines)("showRefLines",t.showRefLines)("showRefLabels",t.showRefLabels)("height",t.dims.height)}}function u_(t,e){if(1&t&&(kn(),wo(0,"g",3)),2&t){const t=Lo();yo("label",t.labelText)("offset",t.labelOffset)("orient",t.yOrient)("height",t.dims.height)("width",t.dims.width)}}const d_=["ngx-charts-circle-series",""];function f_(t,e){if(1&t&&(kn(),wo(0,"rect",4)),2&t){const t=Lo(2);yo("@animationState","active"),fo("x",t.circle.cx-t.circle.radius)("y",t.circle.cy)("width",2*t.circle.radius)("height",t.circle.height)("fill",t.gradientFill)}}const p_=function(t){return{name:t}};function m_(t,e){if(1&t){const t=So();kn(),xo(0,"g"),xo(1,"defs"),wo(2,"g",1),bo(),mo(3,f_,1,6,"rect",2),xo(4,"g",3),Co("select",(function(){tn(t);const e=Lo();return e.onClick(e.circle.data)}))("activate",(function(){return tn(t),Lo().activateCircle()}))("deactivate",(function(){return tn(t),Lo().deactivateCircle()})),bo(),bo()}if(2&t){const t=Lo();vs(2),yo("name",t.gradientId)("stops",t.circle.gradientStops),vs(1),yo("ngIf",t.barVisible&&"standard"===t.type),vs(1),zo("active",t.isActive(hl(18,p_,t.circle.seriesName))),yo("cx",t.circle.cx)("cy",t.circle.cy)("r",t.circle.radius)("fill",t.circle.color)("pointerEvents",0===t.circle.value?"none":"all")("data",t.circle.value)("classNames",t.circle.classNames)("tooltipDisabled",t.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",t.tooltipTemplate?void 0:t.getTooltipText(t.circle))("tooltipTemplate",t.tooltipTemplate)("tooltipContext",t.circle.data)}}const g_=["ngx-charts-circle",""],y_=["ngx-charts-svg-linear-gradient",""];function v_(t,e){if(1&t&&(kn(),wo(0,"stop")),2&t){const t=e.$implicit;jo("stop-color",t.color)("stop-opacity",t.opacity),fo("offset",t.offset+"%")}}const x_=["ngx-charts-svg-radial-gradient",""];function b_(t,e){if(1&t&&(kn(),wo(0,"stop")),2&t){const t=e.$implicit;jo("stop-color",t.color)("stop-opacity",t.opacity),fo("offset",t.offset+"%")}}const w_=["ngx-charts-area",""];function __(t,e){if(1&t&&(kn(),xo(0,"defs"),wo(1,"g",2),bo()),2&t){const t=Lo();vs(1),yo("name",t.gradientId)("stops",t.gradientStops)}}const T_=["tooltipAnchor"],S_=["ngx-charts-tooltip-area",""];function k_(t,e){if(1&t&&(xo(0,"div",6),wo(1,"span",7),Jo(2),bo()),2&t){const t=e.$implicit,n=Lo(2);vs(1),jo("background-color",t.color),vs(1),ea(" ",n.getToolTipText(t)," ")}}function C_(t,e){if(1&t&&(kn(),Cn(),xo(0,"div",4),mo(1,k_,3,3,"div",5),bo()),2&t){const t=e.model;vs(1),yo("ngForOf",t)}}const A_=["ngx-charts-timeline",""];function E_(t,e){if(1&t&&(xo(0,"header",4),xo(1,"span",5),Jo(2),bo(),bo()),2&t){const t=Lo();vs(2),ta(t.title)}}function L_(t,e){if(1&t){const t=So();xo(0,"li",6),xo(1,"ngx-charts-legend-entry",7),Co("select",(function(e){return tn(t),Lo().labelClick.emit(e)}))("activate",(function(e){return tn(t),Lo().activate(e)}))("deactivate",(function(e){return tn(t),Lo().deactivate(e)})),bo(),bo()}if(2&t){const t=e.$implicit,n=Lo();vs(1),yo("label",t.label)("formattedLabel",t.formattedLabel)("color",t.color)("isActive",n.isActive(t))}}const D_=["tooltipTemplate"],F_=["seriesTooltipTemplate"],M_=function(t,e){return[t,e]};function O_(t,e){if(1&t){const t=So();kn(),xo(0,"g",7),Co("dimensionsChanged",(function(e){return tn(t),Lo().updateXAxisHeight(e)})),bo()}if(2&t){const t=Lo();yo("xScale",t.xScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)}}function I_(t,e){if(1&t){const t=So();kn(),xo(0,"g",8),Co("dimensionsChanged",(function(e){return tn(t),Lo().updateYAxisWidth(e)})),bo()}if(2&t){const t=Lo();yo("yScale",t.yScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}function P_(t,e){if(1&t&&(kn(),xo(0,"g"),wo(1,"g",9),bo()),2&t){const t=e.$implicit,n=Lo();vs(1),yo("xScale",n.xScale)("yScale",n.yScale)("colors",n.colors)("data",t)("scaleType",n.scaleType)("activeEntries",n.activeEntries)("gradient",n.gradient)("curve",n.curve)("animations",n.animations)}}function N_(t,e){if(1&t){const t=So();kn(),xo(0,"g"),xo(1,"g",13),Co("select",(function(n){tn(t);const i=e.$implicit;return Lo(2).onClick(n,i)}))("activate",(function(e){return tn(t),Lo(2).onActivate(e)}))("deactivate",(function(e){return tn(t),Lo(2).onDeactivate(e)})),bo(),bo()}if(2&t){const t=e.$implicit,n=Lo(2);vs(1),yo("xScale",n.xScale)("yScale",n.yScale)("colors",n.colors)("activeEntries",n.activeEntries)("data",t)("scaleType",n.scaleType)("visibleValue",n.hoveredVertical)("tooltipDisabled",n.tooltipDisabled)("tooltipTemplate",n.tooltipTemplate)}}function R_(t,e){if(1&t){const t=So();kn(),xo(0,"g",10),Co("mouseleave",(function(){return tn(t),Lo().hideCircles()})),xo(1,"g",11),Co("hover",(function(e){return tn(t),Lo().updateHoveredVertical(e)})),bo(),mo(2,N_,2,9,"g",12),bo()}if(2&t){const t=Lo();vs(1),yo("dims",t.dims)("xSet",t.xSet)("xScale",t.xScale)("yScale",t.yScale)("results",t.results)("colors",t.colors)("showPercentage",!0)("tooltipDisabled",t.tooltipDisabled)("tooltipTemplate",t.seriesTooltipTemplate),vs(1),yo("ngForOf",t.results)}}function H_(t,e){if(1&t&&(kn(),xo(0,"g"),wo(1,"g",15),bo()),2&t){const t=e.$implicit,n=Lo(2);vs(1),yo("xScale",n.timelineXScale)("yScale",n.timelineYScale)("colors",n.colors)("data",t)("scaleType",n.scaleType)("gradient",n.gradient)("curve",n.curve)("animations",n.animations)}}function V_(t,e){if(1&t){const t=So();kn(),xo(0,"g",14),Co("onDomainChange",(function(e){return tn(t),Lo().updateDomain(e)})),mo(1,H_,2,8,"g",4),bo()}if(2&t){const t=Lo();yo("results",t.results)("view",ul(10,M_,t.timelineWidth,t.height))("height",t.timelineHeight)("scheme",t.scheme)("customColors",t.customColors)("legend",t.legend)("scaleType",t.scaleType),fo("transform",t.timelineTransform),vs(1),yo("ngForOf",t.results)("ngForTrackBy",t.trackBy)}}const j_=".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}";function z_(t,e){if(1&t){const t=So();kn(),xo(0,"g",7),Co("dimensionsChanged",(function(e){return tn(t),Lo().updateXAxisHeight(e)})),bo()}if(2&t){const t=Lo();yo("xScale",t.xScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)}}function B_(t,e){if(1&t){const t=So();kn(),xo(0,"g",8),Co("dimensionsChanged",(function(e){return tn(t),Lo().updateYAxisWidth(e)})),bo()}if(2&t){const t=Lo();yo("yScale",t.yScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}function $_(t,e){if(1&t&&(kn(),xo(0,"g"),wo(1,"g",9),bo()),2&t){const t=e.$implicit,n=Lo();vs(1),yo("xScale",n.xScale)("yScale",n.yScale)("colors",n.colors)("data",t)("scaleType",n.scaleType)("gradient",n.gradient)("activeEntries",n.activeEntries)("curve",n.curve)("animations",n.animations)}}function Y_(t,e){if(1&t){const t=So();kn(),xo(0,"g"),xo(1,"g",12),Co("select",(function(n){tn(t);const i=e.$implicit;return Lo(2).onClick(n,i)}))("activate",(function(e){return tn(t),Lo(2).onActivate(e)}))("deactivate",(function(e){return tn(t),Lo(2).onDeactivate(e)})),bo(),bo()}if(2&t){const t=e.$implicit,n=Lo(2);vs(1),yo("xScale",n.xScale)("yScale",n.yScale)("colors",n.colors)("activeEntries",n.activeEntries)("data",t)("scaleType",n.scaleType)("visibleValue",n.hoveredVertical)("tooltipDisabled",n.tooltipDisabled)("tooltipTemplate",n.tooltipTemplate)}}function W_(t,e){if(1&t){const t=So();kn(),xo(0,"g",10),Co("mouseleave",(function(){return tn(t),Lo().hideCircles()})),xo(1,"g",11),Co("hover",(function(e){return tn(t),Lo().updateHoveredVertical(e)})),bo(),mo(2,Y_,2,9,"g",4),bo()}if(2&t){const t=Lo();vs(1),yo("dims",t.dims)("xSet",t.xSet)("xScale",t.xScale)("yScale",t.yScale)("results",t.results)("colors",t.colors)("tooltipDisabled",t.tooltipDisabled)("tooltipTemplate",t.seriesTooltipTemplate),vs(1),yo("ngForOf",t.results)("ngForTrackBy",t.trackBy)}}function q_(t,e){if(1&t&&(kn(),xo(0,"g"),wo(1,"g",14),bo()),2&t){const t=e.$implicit,n=Lo(2);vs(1),yo("xScale",n.timelineXScale)("yScale",n.timelineYScale)("colors",n.colors)("data",t)("scaleType",n.scaleType)("gradient",n.gradient)("curve",n.curve)("animations",n.animations)}}function U_(t,e){if(1&t){const t=So();kn(),xo(0,"g",13),Co("onDomainChange",(function(e){return tn(t),Lo().updateDomain(e)})),mo(1,q_,2,8,"g",4),bo()}if(2&t){const t=Lo();yo("results",t.results)("view",ul(10,M_,t.timelineWidth,t.height))("height",t.timelineHeight)("scheme",t.scheme)("customColors",t.customColors)("legend",t.legend)("scaleType",t.scaleType),fo("transform",t.timelineTransform),vs(1),yo("ngForOf",t.results)("ngForTrackBy",t.trackBy)}}const X_=["ngx-charts-area-series",""],G_=["ngx-charts-bar",""];function Q_(t,e){if(1&t&&(kn(),xo(0,"defs"),wo(1,"g",2),bo()),2&t){const t=Lo();vs(1),yo("orientation",t.orientation)("name",t.gradientId)("stops",t.gradientStops)}}function Z_(t,e){if(1&t){const t=So();kn(),xo(0,"g",5),Co("dimensionsChanged",(function(e){return tn(t),Lo().updateXAxisHeight(e)})),bo()}if(2&t){const t=Lo();yo("xScale",t.xScale)("dims",t.dims)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)("xAxisOffset",t.dataLabelMaxHeight.negative)}}function K_(t,e){if(1&t){const t=So();kn(),xo(0,"g",6),Co("dimensionsChanged",(function(e){return tn(t),Lo().updateYAxisWidth(e)})),bo()}if(2&t){const t=Lo();yo("yScale",t.yScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}const J_=["ngx-charts-series-vertical",""];function tT(t,e){if(1&t){const t=So();kn(),xo(0,"g",2),Co("select",(function(e){return tn(t),Lo().onClick(e)}))("activate",(function(e){return tn(t),Lo().activate.emit(e)}))("deactivate",(function(e){return tn(t),Lo().deactivate.emit(e)})),bo()}if(2&t){const t=e.$implicit,n=Lo();yo("@animationState","active")("@.disabled",!n.animations)("width",t.width)("height",t.height)("x",t.x)("y",t.y)("fill",t.color)("stops",t.gradientStops)("data",t.data)("orientation","vertical")("roundEdges",t.roundEdges)("gradient",n.gradient)("ariaLabel",t.ariaLabel)("isActive",n.isActive(t.data))("tooltipDisabled",n.tooltipDisabled)("tooltipPlacement",n.tooltipPlacement)("tooltipType",n.tooltipType)("tooltipTitle",n.tooltipTemplate?void 0:t.tooltipText)("tooltipTemplate",n.tooltipTemplate)("tooltipContext",t.data)("noBarWhenZero",n.noBarWhenZero)("animations",n.animations)}}function eT(t,e){if(1&t){const t=So();kn(),xo(0,"g",4),Co("dimensionsChanged",(function(n){tn(t);const i=e.index;return Lo(2).dataLabelHeightChanged.emit({size:n,index:i})})),bo()}if(2&t){const t=e.$implicit,n=Lo(2);yo("barX",t.x)("barY",t.y)("barWidth",t.width)("barHeight",t.height)("value",t.total)("valueFormatting",n.dataLabelFormatting)("orientation","vertical")}}function nT(t,e){if(1&t&&(kn(),xo(0,"g"),mo(1,eT,1,7,"g",3),bo()),2&t){const t=Lo();vs(1),yo("ngForOf",t.barsForDataLabels)("ngForTrackBy",t.trackDataLabelBy)}}const iT=["ngx-charts-bar-label",""],sT=["ngx-charts-line",""];function rT(t,e){if(1&t){const t=So();kn(),xo(0,"g",7),Co("dimensionsChanged",(function(e){return tn(t),Lo().updateXAxisHeight(e)})),bo()}if(2&t){const t=Lo();yo("xScale",t.xScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)}}function oT(t,e){if(1&t){const t=So();kn(),xo(0,"g",8),Co("dimensionsChanged",(function(e){return tn(t),Lo().updateYAxisWidth(e)})),bo()}if(2&t){const t=Lo();yo("yScale",t.yScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)("referenceLines",t.referenceLines)("showRefLines",t.showRefLines)("showRefLabels",t.showRefLabels)}}function aT(t,e){if(1&t&&(kn(),xo(0,"g"),wo(1,"g",9),bo()),2&t){const t=e.$implicit,n=Lo();yo("@animationState","active"),vs(1),yo("xScale",n.xScale)("yScale",n.yScale)("colors",n.colors)("data",t)("activeEntries",n.activeEntries)("scaleType",n.scaleType)("curve",n.curve)("rangeFillOpacity",n.rangeFillOpacity)("hasRange",n.hasRange)("animations",n.animations)}}function lT(t,e){if(1&t){const t=So();kn(),xo(0,"g"),xo(1,"g",13),Co("select",(function(e){return tn(t),Lo(2).onClick(e)}))("activate",(function(e){return tn(t),Lo(2).onActivate(e)}))("deactivate",(function(e){return tn(t),Lo(2).onDeactivate(e)})),bo(),bo()}if(2&t){const t=e.$implicit,n=Lo(2);vs(1),yo("xScale",n.xScale)("yScale",n.yScale)("colors",n.colors)("data",t)("scaleType",n.scaleType)("visibleValue",n.hoveredVertical)("activeEntries",n.activeEntries)("tooltipDisabled",n.tooltipDisabled)("tooltipTemplate",n.tooltipTemplate)}}function cT(t,e){if(1&t){const t=So();kn(),xo(0,"g",10),Co("mouseleave",(function(){return tn(t),Lo().hideCircles()})),xo(1,"g",11),Co("hover",(function(e){return tn(t),Lo().updateHoveredVertical(e)})),bo(),mo(2,lT,2,9,"g",12),bo()}if(2&t){const t=Lo();vs(1),yo("dims",t.dims)("xSet",t.xSet)("xScale",t.xScale)("yScale",t.yScale)("results",t.results)("colors",t.colors)("tooltipDisabled",t.tooltipDisabled)("tooltipTemplate",t.seriesTooltipTemplate),vs(1),yo("ngForOf",t.results)}}function hT(t,e){if(1&t&&(kn(),xo(0,"g"),wo(1,"g",15),bo()),2&t){const t=e.$implicit,n=Lo(2);vs(1),yo("xScale",n.timelineXScale)("yScale",n.timelineYScale)("colors",n.colors)("data",t)("scaleType",n.scaleType)("curve",n.curve)("hasRange",n.hasRange)("animations",n.animations)}}function uT(t,e){if(1&t){const t=So();kn(),xo(0,"g",14),Co("onDomainChange",(function(e){return tn(t),Lo().updateDomain(e)})),mo(1,hT,2,8,"g",4),bo()}if(2&t){const t=Lo();yo("results",t.results)("view",ul(10,M_,t.timelineWidth,t.height))("height",t.timelineHeight)("scheme",t.scheme)("customColors",t.customColors)("scaleType",t.scaleType)("legend",t.legend),fo("transform",t.timelineTransform),vs(1),yo("ngForOf",t.results)("ngForTrackBy",t.trackBy)}}const dT=["ngx-charts-line-series",""];function fT(t,e){if(1&t&&(kn(),wo(0,"g",4)),2&t){const t=Lo();yo("name",t.gradientId)("stops",t.gradientStops)}}function pT(t,e){if(1&t&&(kn(),wo(0,"g",5)),2&t){const t=Lo();zo("active",t.isActive(t.data))("inactive",t.isInactive(t.data)),yo("data",t.data)("path",t.outerPath)("fill",t.hasGradient?t.gradientUrl:t.colors.getColor(t.data.name))("opacity",t.rangeFillOpacity)("animations",t.animations)}}const mT=["ngx-charts-pie-label",""],gT=["ngx-charts-pie-arc",""];function yT(t,e){if(1&t&&(kn(),xo(0,"defs"),wo(1,"g",3),bo()),2&t){const t=Lo();vs(1),yo("color",t.fill)("name",t.radialGradientId)("startOpacity",t.startOpacity)}}const vT=["ngx-charts-pie-series",""];function xT(t,e){if(1&t&&(kn(),wo(0,"g",3)),2&t){const t=Lo().$implicit,e=Lo();yo("data",t)("radius",e.outerRadius)("color",e.color(t))("label",e.labelText(t))("labelTrim",e.trimLabels)("labelTrimSize",e.maxLabelLength)("max",e.max)("value",t.value)("explodeSlices",e.explodeSlices)("animations",e.animations)}}function bT(t,e){if(1&t){const t=So();kn(),xo(0,"g"),mo(1,xT,1,10,"g",1),xo(2,"g",2),Co("select",(function(e){return tn(t),Lo().onClick(e)}))("activate",(function(e){return tn(t),Lo().activate.emit(e)}))("deactivate",(function(e){return tn(t),Lo().deactivate.emit(e)}))("dblclick",(function(e){return tn(t),Lo().dblclick.emit(e)})),bo(),bo()}if(2&t){const t=e.$implicit,n=Lo();vs(1),yo("ngIf",n.labelVisible(t)),vs(1),yo("startAngle",t.startAngle)("endAngle",t.endAngle)("innerRadius",n.innerRadius)("outerRadius",n.outerRadius)("fill",n.color(t))("value",t.data.value)("gradient",n.gradient)("data",t.data)("max",n.max)("explodeSlices",n.explodeSlices)("isActive",n.isActive(t.data))("animate",n.animations)("tooltipDisabled",n.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",n.getTooltipTitle(t))("tooltipTemplate",n.tooltipTemplate)("tooltipContext",t.data)}}const wT=["textEl"],_T=["ngx-charts-card",""];function TT(t,e){if(1&t&&(kn(),wo(0,"path",7)),2&t){const t=Lo();fo("fill",t.bandColor)("transform",t.transformBand)("d",t.bandPath)}}const ST=["ngx-charts-card-series",""];function kT(t,e){if(1&t&&(kn(),wo(0,"rect",2)),2&t){const t=e.$implicit;jo("fill",Lo().emptyColor),fo("x",t.x)("y",t.y)("width",t.width)("height",t.height)}}function CT(t,e){if(1&t){const t=So();kn(),xo(0,"g",3),Co("select",(function(e){return tn(t),Lo().onClick(e)})),bo()}if(2&t){const t=e.$implicit,n=Lo();yo("x",t.x)("y",t.y)("width",t.width)("height",t.height)("color",t.color)("bandColor",t.bandColor)("textColor",t.textColor)("data",t.data)("label",t.label)("medianSize",n.medianSize)("valueFormatting",n.valueFormatting)("labelFormatting",n.labelFormatting)("animations",n.animations)}}function AT(t,e){if(1&t){const t=So();kn(),xo(0,"g"),xo(1,"g",5),Co("select",(function(e){return tn(t),Lo().onClick(e)}))("activate",(function(e){return tn(t),Lo().onActivate(e)}))("deactivate",(function(e){return tn(t),Lo().onDeactivate(e)})),bo(),bo()}if(2&t){const t=e.$implicit,n=Lo();fo("transform",n.rotation),vs(1),yo("backgroundArc",t.backgroundArc)("valueArc",t.valueArc)("cornerRadius",n.cornerRadius)("colors",n.colors)("isActive",n.isActive(t.valueArc.data))("tooltipDisabled",n.tooltipDisabled)("tooltipTemplate",n.tooltipTemplate)("valueFormatting",n.valueFormatting)("animations",n.animations)}}function ET(t,e){if(1&t&&(kn(),wo(0,"g",6)),2&t){const t=Lo();yo("bigSegments",t.bigSegments)("smallSegments",t.smallSegments)("min",t.min)("max",t.max)("radius",t.outerRadius)("angleSpan",t.angleSpan)("valueScale",t.valueScale)("startAngle",t.startAngle)("tickFormatting",t.axisTickFormatting)}}function LT(t,e){if(1&t&&(kn(),xo(0,"text",7,8),xo(2,"tspan",9),Jo(3),bo(),xo(4,"tspan",10),Jo(5),bo(),bo()),2&t){const t=Lo();jo("text-anchor","middle"),fo("transform",t.textTransform),vs(3),ta(t.displayValue),vs(2),ta(t.units)}}const DT=["ngx-charts-gauge-arc",""],FT=["ngx-charts-gauge-axis",""];function MT(t,e){if(1&t&&(kn(),xo(0,"g",2),wo(1,"path"),bo()),2&t){const t=e.$implicit;vs(1),fo("d",t.line)}}function OT(t,e){if(1&t&&(kn(),xo(0,"g",2),xo(1,"text",3),Jo(2),bo(),bo()),2&t){const t=e.$implicit;vs(1),jo("text-anchor",t.textAnchor),fo("transform",t.textTransform),vs(1),ea(" ",t.text," ")}}function IT(t,e){if(1&t&&(kn(),xo(0,"g",4),wo(1,"path"),bo()),2&t){const t=e.$implicit;vs(1),fo("d",t.line)}}let PT=(()=>{class t{constructor(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const n=Object.getOwnPropertyNames(e.inputs);for(const i of n)t.instance[i]=e.inputs[i]}if(void 0!==e.outputs){const n=Object.getOwnPropertyNames(e.outputs);for(const i of n)t.instance[i]=e.outputs[i]}}return t}appendComponent(t,e={},n){n||(n=this.getRootViewContainer());const i=this.getComponentRootNode(n),s=new Sf(i,this.componentFactoryResolver,this.applicationRef,this.injector),r=new wf(t),o=s.attach(r);return this.projectComponentBindings(o,e),o}}return t.\u0275fac=function(e){return new(e||t)(qt(vc),qt(va),qt(so))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function NT(t,e,n){let i,s,r;n=n||{};let o=null,a=0;function l(){a=!1===n.leading?0:+new Date,o=null,r=t.apply(i,s)}return function(){const c=+new Date;a||!1!==n.leading||(a=c);const h=e-(c-a);return i=this,s=arguments,h<=0?(clearTimeout(o),o=null,a=c,r=t.apply(i,s)):o||!1===n.trailing||(o=setTimeout(l,h)),r}}var RT=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function HT(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function VT(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}class jT{static calculateVerticalAlignment(t,e,n){let i=HT(t,e,n);return i+e.height>window.innerHeight&&(i=window.innerHeight-e.height),i}static calculateVerticalCaret(t,e,n,i){let s;"top"===i&&(s=t.height/2-n.height/2+7),"bottom"===i&&(s=e.height-t.height/2-n.height/2-7),"center"===i&&(s=e.height/2-n.height/2);const r=HT(t,e,i);return r+e.height>window.innerHeight&&(s+=r+e.height-window.innerHeight),s}static calculateHorizontalAlignment(t,e,n){let i=VT(t,e,n);return i+e.width>window.innerWidth&&(i=window.innerWidth-e.width),i}static calculateHorizontalCaret(t,e,n,i){let s;"left"===i&&(s=t.width/2-n.width/2+7),"right"===i&&(s=e.width-t.width/2-n.width/2-7),"center"===i&&(s=e.width/2-n.width/2);const r=VT(t,e,i);return r+e.width>window.innerWidth&&(s+=r+e.width-window.innerWidth),s}static shouldFlip(t,e,n,i){let s=!1;return"right"===n&&t.left+t.width+e.width+i>window.innerWidth&&(s=!0),"left"===n&&t.left-e.width-i<0&&(s=!0),"top"===n&&t.top-e.height-i<0&&(s=!0),"bottom"===n&&t.top+t.height+e.height+i>window.innerHeight&&(s=!0),s}static positionCaret(t,e,n,i,s){let r=0,o=0;return t===RT.right?(o=-7,r=jT.calculateVerticalCaret(n,e,i,s)):t===RT.left?(o=e.width,r=jT.calculateVerticalCaret(n,e,i,s)):t===RT.top?(r=e.height,o=jT.calculateHorizontalCaret(n,e,i,s)):t===RT.bottom&&(r=-7,o=jT.calculateHorizontalCaret(n,e,i,s)),{top:r,left:o}}static positionContent(t,e,n,i,s){let r=0,o=0;return t===RT.right?(o=n.left+n.width+i,r=jT.calculateVerticalAlignment(n,e,s)):t===RT.left?(o=n.left-e.width-i,r=jT.calculateVerticalAlignment(n,e,s)):t===RT.top?(r=n.top-e.height-i,o=jT.calculateHorizontalAlignment(n,e,s)):t===RT.bottom&&(r=n.top+n.height+i,o=jT.calculateHorizontalAlignment(n,e,s)),{top:r,left:o}}static determinePlacement(t,e,n,i){if(jT.shouldFlip(n,e,t,i)){if(t===RT.right)return RT.left;if(t===RT.left)return RT.right;if(t===RT.top)return RT.bottom;if(t===RT.bottom)return RT.top}return t}}let zT=(()=>{class t{constructor(t,e){this.element=t,this.renderer=e}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=" position-"+this.placement,t+=" type-"+this.type,t+=" "+this.cssClass,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const n=t.getBoundingClientRect();this.checkFlip(e,n),this.positionContent(t,e,n),this.showCaret&&this.positionCaret(e,n),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,n){const{top:i,left:s}=jT.positionContent(this.placement,n,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",i+"px"),this.renderer.setStyle(t,"left",s+"px")}positionCaret(t,e){const n=this.caretElm.nativeElement,i=n.getBoundingClientRect(),{top:s,left:r}=jT.positionCaret(this.placement,e,t,i,this.alignment);this.renderer.setStyle(n,"top",s+"px"),this.renderer.setStyle(n,"left",r+"px")}checkFlip(t,e){this.placement=jT.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(go(xa),go(Ta))},t.\u0275cmp=ce({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){var n;1&t&&kl(Nw,!0),2&t&&Sl(n=El())&&(e.caretElm=n.first)},hostVars:2,hostBindings:function(t,e){1&t&&Co("resize",(function(){return e.onWindowResize()}),!1,Wn),2&t&&Yo(ee,Bo,e.cssClasses,!0)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(t,e){var n;1&t&&(xo(0,"div"),wo(1,"span",0,1),xo(3,"div",2),mo(4,Vw,2,4,"span",3),mo(5,jw,1,1,"span",4),bo(),bo()),2&t&&(vs(1),"tooltip-caret position-",n=e.placement,"",Yo(ee,Bo,po(Ke(),"tooltip-caret position-",n,""),!0),yo("hidden",!e.showCaret),vs(3),yo("ngIf",!e.title),vs(1),yo("ngIf",e.title))},directives:[th,oh],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);r>3&&o&&Object.defineProperty(e,n,o)}([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:NT(n.value,100,void 0)}),this[e]}}}],t.prototype,"onWindowResize",null),t})(),BT=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const n=this.injectComponent(t,e);return this.register(t,n),n}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=zT}}return t.\u0275fac=function(e){return new(e||t)(qt(PT))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),$T=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new fl,this.legendLabelActivate=new fl,this.legendLabelDeactivate=new fl}ngOnChanges(t){this.update()}update(){let t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[ma([BT]),Le],ngContentSelectors:$w,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(Fo(),xo(0,"div",0),kn(),xo(1,"svg",1),Mo(2),bo(),mo(3,zw,1,5,"ngx-charts-scale-legend",2),mo(4,Bw,1,7,"ngx-charts-legend",3),bo()),2&t&&(jo("width",e.view[0],"px"),yo("@animationState","active")("@.disabled",!e.animations),vs(1),fo("width",e.chartWidth)("height",e.view[1]),vs(2),yo("ngIf",e.showLegend&&"scaleLegend"===e.legendType),vs(1),yo("ngIf",e.showLegend&&"legend"===e.legendType))},directives:function(){return[th,TS,wS]},encapsulation:2,data:{animation:[jh("animationState",[Yh(":enter",[$h({opacity:0}),zh("500ms 100ms",$h({opacity:1}))])])]},changeDetection:0}),t})(),YT=(()=>{class t{constructor(t,e){this.element=t,this.zone=e,this.visible=new fl,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const t=()=>{if(!this.element)return;const{offsetHeight:e,offsetWidth:n}=this.element.nativeElement;e&&n?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t())})}}return t.\u0275fac=function(e){return new(e||t)(go(xa),go(tc))},t.\u0275dir=me({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),WT=(()=>{class t{constructor(t,e,n){this.chartElement=t,this.zone=e,this.cd=n,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new fl}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new YT(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(t){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const t=this.getContainerDims();t&&(this.width=t.width,this.height=t.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let t,e;const n=this.chartElement.nativeElement;if(null!==n.parentNode){const i=n.parentNode.getBoundingClientRect();t=i.width,e=i.height}return t&&e?{width:t,height:e}:null}formatDates(){for(let t=0;t<this.results.length;t++){const e=this.results[t];if(e.label=e.name,e.label instanceof Date&&(e.label=e.label.toLocaleDateString()),e.series)for(let t=0;t<e.series.length;t++){const n=e.series[t];n.label=n.name,n.label instanceof Date&&(n.label=n.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const t=function t(e,n,s,r){return i(s)&&(r=s,s=void 0),r?t(e,n,s).pipe(C(t=>l(t)?r(...t):r(t))):new v(t=>{!function t(e,n,i,s,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,i,r),o=()=>t.removeEventListener(n,i,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,i),o=()=>t.off(n,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,i),o=()=>t.removeListener(n,i)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],n,i,s,r)}s.add(o)}(e,n,(function(e){t.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),t,s)})}(window,"resize").pipe(function(t,e=kf){return n=>n.lift(new Cf(t,e))}(200)).subscribe(t=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=t}cloneData(t){const e=[];for(const n of t){const t={name:n.name};if(void 0!==n.value&&(t.value=n.value),void 0!==n.series){t.series=[];for(const e of n.series){const n=Object.assign({},e);t.series.push(n)}}void 0!==n.extra&&(t.extra=JSON.parse(JSON.stringify(n.extra))),e.push(t)}return e}}return t.\u0275fac=function(e){return new(e||t)(go(xa),go(tc),go(Br))},t.\u0275cmp=ce({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[Le],decls:1,vars:0,template:function(t,e){1&t&&wo(0,"div")},encapsulation:2}),t})(),qT=(()=>{class t{constructor(t){this.textHeight=25,this.margin=5,this.element=t.nativeElement}ngOnChanges(t){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(go(xa))},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[Le],attrs:Yw,decls:2,vars:6,template:function(t,e){1&t&&(kn(),xo(0,"text"),Jo(1),bo()),2&t&&(fo("stroke-width",e.strokeWidth)("x",e.x)("y",e.y)("text-anchor",e.textAnchor)("transform",e.transform),vs(1),ea(" ",e.label," "))},encapsulation:2,changeDetection:0}),t})();function UT(t,e=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=e?t:t.slice(0,e)+"..."}function XT(t,e){if(t.length>e){const n=[],i=Math.floor(t.length/e);for(let e=0;e<t.length;e++)e%i==0&&n.push(t[e]);t=n}return t}let GT=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new fl,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(t){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const t=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);t!==this.height&&(this.height=t,this.dimensionsChanged.emit({height:t}),setTimeout(()=>this.updateDims()))}update(){const t=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:t.tickFormat?t.tickFormat.apply(t,this.tickArguments):function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()};const e=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(t){return this.scale(t)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",e&&0!==e?(this.textTransform=`rotate(${e})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(t){let e=0;this.maxTicksLength=0;for(let r=0;r<t.length;r++){const e=this.tickFormat(t[r]).toString();let n=e.length;this.trimTicks&&(n=this.tickTrim(e).length),n>this.maxTicksLength&&(this.maxTicksLength=n)}const n=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let i=n;const s=Math.floor(this.width/t.length);for(;i>s&&e>-90;)e-=30,i=Math.cos(e*(Math.PI/180))*n;return e}getTicks(){let t;const e=this.getMaxTicks(20),n=this.getMaxTicks(100);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[n]):(t=this.scale.domain(),t=XT(t,e)),t}getMaxTicks(t){return Math.floor(this.width/t)}tickTransform(t){return"translate("+this.adjustedScale(t)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(t){return this.trimTicks?UT(t,this.maxTickLength):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(t,e){var n;1&t&&kl(Ww,!0),2&t&&Sl(n=El())&&(e.ticksElement=n.first)},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Le],attrs:qw,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(t,e){1&t&&(kn(),xo(0,"g",null,0),mo(2,Uw,5,7,"g",1),bo(),mo(3,Gw,2,2,"g",2)),2&t&&(vs(2),yo("ngForOf",e.ticks),vs(1),yo("ngForOf",e.ticks))},directives:[Kc,th],encapsulation:2,changeDetection:0}),t})(),QT=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new fl,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(t){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:t}){const e=t+25+5;e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({height:t})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(t,e){var n;1&t&&kl(GT,!0),2&t&&Sl(n=El())&&(e.ticksComponent=n.first)},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Le],attrs:Qw,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(t,e){1&t&&(kn(),xo(0,"g"),mo(1,Zw,1,12,"g",0),mo(2,Kw,1,5,"g",1),bo()),2&t&&(fo("class",e.xAxisClassName)("transform",e.transform),vs(1),yo("ngIf",e.xScale),vs(1),yo("ngIf",e.showLabel))},directives:[th,GT,qT],encapsulation:2,changeDetection:0}),t})();function ZT(t,e,n,i,s,[r,o,a,l]){let c="";return c="M"+[t+s,e],c+="h"+((n=0===(n=Math.floor(n))?1:n)-2*s),c+=o?`a${[s,s]} 0 0 1 ${[s,s]}`:`h${s}v${s}`,c+="v"+((i=0===(i=Math.floor(i))?1:i)-2*s),c+=l?`a${[s,s]} 0 0 1 ${[-s,s]}`:`v${s}h${-s}`,c+="h"+(2*s-n),c+=a?`a${[s,s]} 0 0 1 ${[-s,-s]}`:`h${-s}v${-s}`,c+="v"+(2*s-i),c+=r?`a${[s,s]} 0 0 1 ${[s,-s]}`:`v${-s}h${s}`,c+="z",c}let KT=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new fl,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(t){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const t=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);t!==this.width&&(this.width=t,this.dimensionsChanged.emit({width:t}),setTimeout(()=>this.updateDims()))}update(){let t;const e="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,t=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:t.tickFormat?t.tickFormat.apply(t,this.tickArguments):function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()},this.adjustedScale=t.bandwidth?function(e){return t(e)+.5*t.bandwidth()}:t,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(t){return"translate("+this.adjustedScale(t)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*e,this.y1=this.tickSpacing*e,this.dy=e<0?"0em":".71em";break;case"left":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-e,this.x1=this.tickSpacing*-e,this.dy=".32em";break;case"right":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-e,this.x1=this.tickSpacing*-e,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(t=>t.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(t=>t.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=ZT(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let t;const e=this.getMaxTicks(20),n=this.getMaxTicks(50);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[n]):(t=this.scale.domain(),t=XT(t,e)),t}getMaxTicks(t){return Math.floor(this.height/t)}tickTransform(t){return`translate(${this.adjustedScale(t)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(t){return this.trimTicks?UT(t,this.maxTickLength):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(t,e){var n;1&t&&kl(Ww,!0),2&t&&Sl(n=El())&&(e.ticksElement=n.first)},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Le],attrs:Jw,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(t,e){1&t&&(kn(),xo(0,"g",null,0),mo(2,t_,5,9,"g",1),bo(),mo(3,e_,1,2,"path",2),mo(4,r_,2,2,"g",3),mo(5,l_,2,1,"g",3)),2&t&&(vs(2),yo("ngForOf",e.ticks),vs(1),yo("ngIf",e.referenceLineLength>1&&e.refMax&&e.refMin&&e.showRefLines),vs(1),yo("ngForOf",e.ticks),vs(1),yo("ngForOf",e.referenceLines))},directives:[Kc,th],encapsulation:2,changeDetection:0}),t})(),JT=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new fl,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(t){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:t}){t!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=t+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:t})},0)):t!==this.labelOffset&&(this.labelOffset=t,setTimeout(()=>{this.dimensionsChanged.emit({width:t})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(t,e){var n;1&t&&kl(KT,!0),2&t&&Sl(n=El())&&(e.ticksComponent=n.first)},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Le],attrs:c_,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(t,e){1&t&&(kn(),xo(0,"g"),mo(1,h_,1,14,"g",0),mo(2,u_,1,5,"g",1),bo()),2&t&&(fo("class",e.yAxisClassName)("transform",e.transform),vs(1),yo("ngIf",e.yScale),vs(1),yo("ngIf",e.showLabel))},directives:[th,KT,qT],encapsulation:2,changeDetection:0}),t})(),tS=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[ah]]}),t})();var eS=function(t){return t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip",t}({}),nS=function(t){return t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right",t}({}),iS=function(t){return t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover",t}({});let sS=(()=>{class t{constructor(t,e,n){this.tooltipService=t,this.viewContainerRef=e,this.renderer=n,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=RT.top,this.tooltipAlignment=nS.center,this.tooltipType=eS.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=iS.all,this.tooltipImmediateExit=!1,this.show=new fl,this.hide=new fl}get listensForFocus(){return this.tooltipShowEvent===iS.all||this.tooltipShowEvent===iS.focus}get listensForHover(){return this.tooltipShowEvent===iS.all||this.tooltipShowEvent===iS.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(t){if(this.component||this.tooltipDisabled)return;const e=t?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const t=this.createBoundOptions();this.component=this.tooltipService.create(t),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},e)}addHideListeners(t){this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",e=>{t.contains(e.target)||this.hideTooltip()}))}hideTooltip(t=!1){if(!this.component)return;const e=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),t?e():this.timeout=setTimeout(e,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(go(BT),go(Wa),go(Ta))},t.\u0275dir=me({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(t,e){1&t&&Co("focusin",(function(){return e.onFocus()}))("blur",(function(){return e.onBlur()}))("mouseenter",(function(){return e.onMouseEnter()}))("mouseleave",(function(t){return e.onMouseLeave(t.target)}))("click",(function(){return e.onMouseClick()}))},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),rS=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[PT,BT],imports:[[ah]]}),t})();function oS(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function aS(t){return t.toLocaleString().replace(/[&'`"<>]/g,t=>({"&":"&amp;","'":"&#x27;","`":"&#x60;",'"':"&quot;","<":"&lt;",">":"&gt;"}[t]))}const lS={};function cS(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t="a"+t,lS[t]?cS():(lS[t]=!0,t)}let hS,uS=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.select=new fl,this.activate=new fl,this.deactivate=new fl,this.barVisible=!1}ngOnInit(){this.gradientId="grad"+cS().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(t){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const t=this.data.series.findIndex(t=>{const e=t.name;return e&&this.visibleValue&&e.toString()===this.visibleValue.toString()&&void 0!==t.value});if(-1!==t)return this.mapDataPointToCircle(this.data.series[t],t)}mapDataPointToCircle(t,e){const n=this.data.name,i=t.value,s=t.name,r=oS(s);let o;o=this.xScale("time"===this.scaleType?s:"linear"===this.scaleType?Number(s):s);const a=this.yScale("standard"===this.type?i:t.d1),l=this.yScale.range()[0]-a;let c;return c=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?i:t.d1:n),{classNames:["circle-data-"+e],value:i,label:s,data:Object.assign({},t,{series:n,value:i,name:s}),cx:o,cy:a,radius:5,height:l,tooltipLabel:r,color:c,opacity:1,seriesName:n,gradientStops:this.getGradientStops(c),min:t.min,max:t.max}}getTooltipText({tooltipLabel:t,value:e,seriesName:n,min:i,max:s}){return`\n <span class="tooltip-label">${aS(n)} \u2022 ${aS(t)}</span>\n <span class="tooltip-val">${e.toLocaleString()}${this.getTooltipMinMaxText(i,s)}</span>\n `}getTooltipMinMaxText(t,e){if(void 0!==t||void 0!==e){let n=" (";return void 0!==t?(void 0===e&&(n+="\u2265"),n+=t.toLocaleString(),void 0!==e&&(n+=" - ")):void 0!==e&&(n+="\u2264"),void 0!==e&&(n+=e.toLocaleString()),n+=")",n}return""}getGradientStops(t){return[{offset:0,color:t,opacity:.2},{offset:100,color:t,opacity:1}]}onClick(t){this.select.emit(t)}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.name===e.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[Le],attrs:d_,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(t,e){1&t&&mo(0,m_,5,20,"g",0),2&t&&yo("ngIf",e.circle)},directives:function(){return[th,fS,dS,sS]},encapsulation:2,data:{animation:[jh("animationState",[Yh(":enter",[$h({opacity:0}),zh(250,$h({opacity:1}))])])]},changeDetection:0}),t})(),dS=(()=>{class t{constructor(){this.select=new fl,this.activate=new fl,this.deactivate=new fl}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(t){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(t,e){1&t&&Co("click",(function(){return e.onClick()}))("mouseenter",(function(){return e.onMouseEnter()}))("mouseleave",(function(){return e.onMouseLeave()}))},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[Le],attrs:g_,decls:1,vars:8,template:function(t,e){1&t&&(kn(),wo(0,"circle")),2&t&&fo("cx",e.cx)("cy",e.cy)("r",e.r)("fill",e.fill)("stroke",e.stroke)("opacity",e.circleOpacity)("class",e.classNames)("pointer-events",e.pointerEvents)},encapsulation:2,changeDetection:0}),t})(),fS=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(t){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[Le],attrs:y_,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(t,e){1&t&&(kn(),xo(0,"linearGradient",0),mo(1,v_,1,5,"stop",1),bo()),2&t&&(yo("id",e.name),fo("x1",e.x1)("y1",e.y1)("x2",e.x2)("y2",e.y2),vs(1),yo("ngForOf",e.stops))},directives:[Kc],encapsulation:2,changeDetection:0}),t})(),pS=(()=>{class t{constructor(){this.endOpacity=1,this.cx=0,this.cy=0}get stops(){return this.stopsInput||this.stopsDefault}set stops(t){this.stopsInput=t}ngOnChanges(t){this.r="30%",("color"in t||"startOpacity"in t||"endOpacity"in t)&&(this.stopsDefault=[{offset:0,color:this.color,opacity:this.startOpacity},{offset:100,color:this.color,opacity:this.endOpacity}])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-svg-radial-gradient",""]],inputs:{endOpacity:"endOpacity",cx:"cx",cy:"cy",stops:"stops",color:"color",name:"name",startOpacity:"startOpacity"},features:[Le],attrs:x_,decls:2,vars:5,consts:[["gradientUnits","userSpaceOnUse",3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(t,e){1&t&&(kn(),xo(0,"radialGradient",0),mo(1,b_,1,5,"stop",1),bo()),2&t&&(yo("id",e.name),fo("cx",e.cx)("cy",e.cy)("r",e.r),vs(1),yo("ngForOf",e.stops))},directives:[Kc],encapsulation:2,changeDetection:0}),t})(),mS=(()=>{class t{constructor(t){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new fl,this.initialized=!1,this.hasGradient=!1,this.element=t.nativeElement}ngOnChanges(t){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.gradientId="grad"+cS().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)}updatePathEl(){const t=Vp(this.element).select(".area");this.animations?t.transition().duration(750).attr("d",this.path):t.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(go(xa))},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",activeLabel:"activeLabel",stops:"stops"},outputs:{select:"select"},features:[Le],attrs:w_,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(t,e){1&t&&(mo(0,__,2,2,"defs",0),kn(),wo(1,"path",1)),2&t&&(yo("ngIf",e.gradient),vs(1),jo("opacity",e.opacity),fo("d",e.areaPath)("fill",e.gradient?e.gradientFill:e.fill))},directives:[th,fS],encapsulation:2,changeDetection:0}),t})();function gS(t,e,n,i){return n*(1-Math.pow(2,-10*t/i))*1024/1023+e}"undefined"!=typeof window?hS=window:"undefined"!=typeof global&&(hS=global);const yS=hS.MouseEvent;function vS(t,e=!1,n=!0){if("function"==typeof yS)return new yS(t,{bubbles:e,cancelable:n});{const i=document.createEvent("MouseEvent");return i.initEvent(t,e,n),i}}let xS=(()=>{class t{constructor(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new fl}getValues(t){const e=[];for(const n of this.results){const i=n.series.find(e=>e.name.toString()===t.toString());let s=n.name;if(s instanceof Date&&(s=s.toLocaleDateString()),i){const t=i.name;let r,o=i.value;if(this.showPercentage&&(o=(i.d1-i.d0).toFixed(2)+"%"),"linear"===this.colors.scaleType){let t=o;i.d1&&(t=i.d1),r=this.colors.getColor(t)}else r=this.colors.getColor(n.name);const a=Object.assign({},i,{value:o,name:t,series:s,min:i.min,max:i.max,color:r});e.push(a)}}return e}mouseMove(t){const e=t.pageX-t.target.getBoundingClientRect().left,n=this.findClosestPointIndex(e),i=this.xSet[n];if(this.anchorPos=this.xScale(i),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(i),this.anchorPos!==this.lastAnchorPos){const t=vS("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(t),this.anchorOpacity=.7,this.hover.emit({value:i}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(t){let e=0,n=this.xSet.length-1,i=Number.MAX_VALUE,s=0;for(;e<=n;){const r=(e+n)/2|0,o=this.xScale(this.xSet[r]),a=Math.abs(o-t);if(a<i&&(i=a,s=r),o<t)e=r+1;else{if(!(o>t)){i=0,s=r;break}n=r-1}}return s}showTooltip(){const t=vS("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(t)}hideTooltip(){const t=vS("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(t),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(t){let e="";return e+=void 0!==t.series?t.series:"???",e+=": ",void 0!==t.value&&(e+=t.value.toLocaleString()),void 0===t.min&&void 0===t.max||(e+=" (",void 0!==t.min?(void 0===t.max&&(e+="\u2265"),e+=t.min.toLocaleString(),void 0!==t.max&&(e+=" - ")):void 0!==t.max&&(e+="\u2264"),void 0!==t.max&&(e+=t.max.toLocaleString()),e+=")"),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(t,e){var n;1&t&&kl(T_,!0),2&t&&Sl(n=El())&&(e.tooltipAnchor=n.first)},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:S_,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","auto",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(t,e){if(1&t&&(kn(),xo(0,"g"),xo(1,"rect",0),Co("mousemove",(function(t){return e.mouseMove(t)}))("mouseleave",(function(){return e.hideTooltip()})),bo(),mo(2,C_,2,1,"ng-template",null,1,Ml),wo(4,"rect",2,3),bo()),2&t){const t=function(t,e){return t[e+xe]}(Qe.lFrame.contextLView,3);vs(1),fo("x",0)("width",e.dims.width)("height",e.dims.height),vs(3),jo("opacity",e.anchorOpacity)("pointer-events","none"),yo("@animationState",0!==e.anchorOpacity?"active":"inactive")("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",e.tooltipTemplate?e.tooltipTemplate:t)("tooltipContext",e.anchorValues)("tooltipImmediateExit",!0),fo("x",e.anchorPos)("width",1)("height",e.dims.height)}},directives:[sS,Kc],encapsulation:2,data:{animation:[jh("animationState",[Yh("inactive => active",[$h({opacity:0}),zh(250,$h({opacity:.7}))]),Yh("active => inactive",[$h({opacity:.7}),zh(250,$h({opacity:0}))])])]},changeDetection:0}),t})(),bS=(()=>{class t{constructor(t,e){this.cd=e,this.height=50,this.select=new fl,this.onDomainChange=new fl,this.initialized=!1,this.element=t.nativeElement}ngOnChanges(t){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const t=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${t})`,this.filterId="filter"+cS().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let t=[];for(const n of this.results)for(const e of n.series)t.includes(e.name)||t.push(e.name);let e=[];return"time"===this.scaleType?e=[Math.min(...t),Math.max(...t)]:"linear"===this.scaleType?(t=t.map(t=>Number(t)),e=[Math.min(...t),Math.max(...t)]):e=t,e}getXScale(){let t;return"time"===this.scaleType?t=gb().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?t=Mb().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(t=Hb().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),t}addBrush(){if(this.brush)return;const t=this.height,e=this.view[0];this.brush=function(t){var e,n=Ty,i=_y,s=Sy,r=!0,o=qp("start","brush","end"),a=6;function l(e){var n=e.property("__brush",m).selectAll(".overlay").data([wy("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",gy.overlay).merge(n).each((function(){var t=ky(this).extent;Vp(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([wy("selection")]).enter().append("rect").attr("class","selection").attr("cursor",gy.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));i.exit().remove(),i.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return gy[t.type]})),e.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",d).filter(s).on("touchstart.brush",d).on("touchmove.brush",f).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var t=Vp(this),e=ky(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-a/2:e[0][0]-a/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-a/2:e[0][1]-a/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+a:a})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+a:a}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function h(t,e,n){var i=t.__brush.emitter;return!i||n&&i.clean?new u(t,e,n):i}function u(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function d(){if((!e||Cp.touches)&&i.apply(this,arguments)){var n,s,o,a,l,u,d,f,p,m,g,y=this,v=Cp.target.__data__.type,x="selection"===(r&&Cp.metaKey?v="overlay":v)?ay:r&&Cp.altKey?hy:cy,b=t===my?null:xy[v],w=t===py?null:by[v],_=ky(y),T=_.extent,S=_.selection,k=T[0][0],C=T[0][1],A=T[1][0],E=T[1][1],L=0,D=0,F=b&&w&&r&&Cp.shiftKey,M=Cp.touches?fy(Cp.changedTouches[0].identifier):Wm,O=M(y),I=O,P=h(y,arguments,!0).beforestart();"overlay"===v?(S&&(p=!0),_.selection=S=[[n=t===my?k:O[0],o=t===py?C:O[1]],[l=t===my?A:n,d=t===py?E:o]]):(n=S[0][0],o=S[0][1],l=S[1][0],d=S[1][1]),s=n,a=o,u=l,f=d;var N=Vp(y).attr("pointer-events","none"),R=N.selectAll(".overlay").attr("cursor",gy[v]);if(Cp.touches)P.moved=V,P.ended=z;else{var H=Vp(Cp.view).on("mousemove.brush",V,!0).on("mouseup.brush",z,!0);r&&H.on("keydown.brush",B,!0).on("keyup.brush",$,!0),Xp(Cp.view)}ry(),vg(y),c.call(y),P.start()}function V(){var t=M(y);!F||m||g||(Math.abs(t[0]-I[0])>Math.abs(t[1]-I[1])?g=!0:m=!0),I=t,p=!0,oy(),j()}function j(){var t;switch(L=I[0]-O[0],D=I[1]-O[1],x){case ly:case ay:b&&(L=Math.max(k-n,Math.min(A-l,L)),s=n+L,u=l+L),w&&(D=Math.max(C-o,Math.min(E-d,D)),a=o+D,f=d+D);break;case cy:b<0?(L=Math.max(k-n,Math.min(A-n,L)),s=n+L,u=l):b>0&&(L=Math.max(k-l,Math.min(A-l,L)),s=n,u=l+L),w<0?(D=Math.max(C-o,Math.min(E-o,D)),a=o+D,f=d):w>0&&(D=Math.max(C-d,Math.min(E-d,D)),a=o,f=d+D);break;case hy:b&&(s=Math.max(k,Math.min(A,n-L*b)),u=Math.max(k,Math.min(A,l+L*b))),w&&(a=Math.max(C,Math.min(E,o-D*w)),f=Math.max(C,Math.min(E,d+D*w)))}u<s&&(b*=-1,t=n,n=l,l=t,t=s,s=u,u=t,v in yy&&R.attr("cursor",gy[v=yy[v]])),f<a&&(w*=-1,t=o,o=d,d=t,t=a,a=f,f=t,v in vy&&R.attr("cursor",gy[v=vy[v]])),_.selection&&(S=_.selection),m&&(s=S[0][0],u=S[1][0]),g&&(a=S[0][1],f=S[1][1]),S[0][0]===s&&S[0][1]===a&&S[1][0]===u&&S[1][1]===f||(_.selection=[[s,a],[u,f]],c.call(y),P.brush())}function z(){if(ry(),Cp.touches){if(Cp.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else Gp(Cp.view,p),H.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);N.attr("pointer-events","all"),R.attr("cursor",gy.overlay),_.selection&&(S=_.selection),Cy(S)&&(_.selection=null,c.call(y)),P.end()}function B(){switch(Cp.keyCode){case 16:F=b&&w;break;case 18:x===cy&&(b&&(l=u-L*b,n=s+L*b),w&&(d=f-D*w,o=a+D*w),x=hy,j());break;case 32:x!==cy&&x!==hy||(b<0?l=u-L:b>0&&(n=s-L),w<0?d=f-D:w>0&&(o=a-D),x=ly,R.attr("cursor",gy.selection),j());break;default:return}oy()}function $(){switch(Cp.keyCode){case 16:F&&(m=g=F=!1,j());break;case 18:x===hy&&(b<0?l=u:b>0&&(n=s),w<0?d=f:w>0&&(o=a),x=cy,j());break;case 32:x===ly&&(Cp.altKey?(b&&(l=u-L*b,n=s+L*b),w&&(d=f-D*w,o=a+D*w),x=hy):(b<0?l=u:b>0&&(n=s),w<0?d=f:w>0&&(o=a),x=cy),R.attr("cursor",gy[v]),j());break;default:return}oy()}}function f(){h(this,arguments).moved()}function p(){h(this,arguments).ended()}function m(){var e=this.__brush||{selection:null};return e.extent=dy(n.apply(this,arguments)),e.dim=t,e}return l.move=function(e,n){e.selection?e.on("start.brush",(function(){h(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){h(this,arguments).end()})).tween("brush",(function(){var e=this,i=e.__brush,s=h(e,arguments),r=i.selection,o=t.input("function"==typeof n?n.apply(this,arguments):n,i.extent),a=Bm(r,o);function l(t){i.selection=1===t&&null===o?null:a(t),c.call(e),s.brush()}return null!==r&&null!==o?l:l(1)})):e.each((function(){var e=this,i=arguments,s=e.__brush,r=t.input("function"==typeof n?n.apply(e,i):n,s.extent),o=h(e,i).beforestart();vg(e),s.selection=null===r?null:r,c.call(e),o.start().brush().end()}))},l.clear=function(t){l.move(t,null)},u.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){!function(t,e,n,i){var s=Cp;t.sourceEvent=Cp,Cp=t;try{e.apply(n,i)}finally{Cp=s}}(new sy(l,e,t.output(this.state.selection)),o.apply,o,[e,this.that,this.args])}},l.extent=function(t){return arguments.length?(n="function"==typeof t?t:iy(dy(t)),l):n},l.filter=function(t){return arguments.length?(i="function"==typeof t?t:iy(!!t),l):i},l.touchable=function(t){return arguments.length?(s="function"==typeof t?t:iy(!!t),l):s},l.handleSize=function(t){return arguments.length?(a=+t,l):a},l.keyModifiers=function(t){return arguments.length?(r=!!t,l):r},l.on=function(){var t=o.on.apply(o,arguments);return t===o?l:t},l}(py).extent([[0,0],[e,t]]).on("brush end",()=>{const t=(Cp.selection||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(t),this.cd.markForCheck()}),Vp(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),Vp(this.element).select(".brush").call(this.brush),Vp(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(go(xa),go(Br))},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",state:"state",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",miniChart:"miniChart",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[Le],attrs:A_,ngContentSelectors:$w,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(t,e){1&t&&(Fo(),kn(),xo(0,"g",0),xo(1,"filter"),wo(2,"feColorMatrix",1),bo(),xo(3,"g",2),Mo(4),bo(),wo(5,"rect",3),wo(6,"g",4),bo()),2&t&&(fo("transform",e.transform),vs(1),fo("id",e.filterId),vs(4),fo("width",e.view[0])("height",e.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke:#888;stroke-width:1px}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t})(),wS=(()=>{class t{constructor(t){this.cd=t,this.horizontal=!1,this.labelClick=new fl,this.labelActivate=new fl,this.labelDeactivate=new fl,this.legendEntries=[]}ngOnChanges(t){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const t=[];for(const e of this.data){const n=oS(e);-1===t.findIndex(t=>t.label===n)&&t.push({label:e,formattedLabel:n,color:this.colors.getColor(e)})}return t}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.label===e.name)}activate(t){this.labelActivate.emit(t)}deactivate(t){this.labelDeactivate.emit(t)}trackBy(t,e){return e.label}}return t.\u0275fac=function(e){return new(e||t)(go(Br))},t.\u0275cmp=ce({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[Le],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(t,e){1&t&&(xo(0,"div"),mo(1,E_,3,1,"header",0),xo(2,"div",1),xo(3,"ul",2),mo(4,L_,2,4,"li",3),bo(),bo(),bo()),2&t&&(jo("width",e.width,"px"),vs(1),yo("ngIf",(null==e.title?null:e.title.length)>0),vs(2),jo("max-height",e.height-45,"px"),zo("horizontal-legend",e.horizontal),vs(1),yo("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[th,Kc,_S]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),_S=(()=>{class t{constructor(){this.isActive=!1,this.select=new fl,this.activate=new fl,this.deactivate=new fl,this.toggle=new fl}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&Co("mouseenter",(function(){return e.onMouseEnter()}))("mouseleave",(function(){return e.onMouseLeave()}))},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(xo(0,"span",0),Co("click",(function(){return e.select.emit(e.formattedLabel)})),xo(1,"span",1),Co("click",(function(){return e.toggle.emit(e.formattedLabel)})),bo(),xo(2,"span",2),Jo(3),bo(),bo()),2&t&&(zo("active",e.isActive),yo("title",e.formattedLabel),vs(1),jo("background-color",e.color),vs(2),ea(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),TS=(()=>{class t{constructor(t){this.sanitizer=t,this.horizontal=!1}ngOnChanges(t){const e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${e})`)}gradientString(t,e){e.push(1);const n=[];return t.reverse().forEach((t,i)=>{n.push(`${t} ${Math.round(100*e[i])}%`)}),n.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(go(Oh))},t.\u0275cmp=ce({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[Le],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"div",1),xo(2,"span"),Jo(3),bo(),bo(),wo(4,"div",2),xo(5,"div",1),xo(6,"span"),Jo(7),bo(),bo(),bo()),2&t&&(jo("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),zo("horizontal-legend",e.horizontal),vs(3),ta(e.valueRange[1].toLocaleString()),vs(1),jo("background",e.gradient),vs(3),ta(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),SS=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[ah,tS,rS],ah,tS,rS]}),t})();function kS({width:t,height:e,margins:n,showXAxis:i=!1,showYAxis:s=!1,xAxisHeight:r=0,yAxisWidth:o=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:h="ordinal",legendPosition:u="right",columns:d=12}){let f=n[3],p=t,m=e-n[0]-n[2];if(c&&"right"===u&&(d-="ordinal"===h?2:1),p=p*d/12,p=p-n[1]-n[3],i&&(m-=5,m-=r,a)&&(m-=30),s&&(p-=5,p-=o,f+=o,f+=10,l)){const t=30;p-=t,f+=t}return p=Math.max(0,p),m=Math.max(0,m),{width:Math.floor(p),height:Math.floor(m),xOffset:Math.floor(f)}}let CS=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class AS{constructor(t,e,n,i){"string"==typeof t&&(t=CS.find(e=>e.name===t)),this.colorDomain=t.domain,this.scaleType=e,this.domain=n,this.customColors=i,this.scale=this.generateColorScheme(t,e,this.domain)}generateColorScheme(t,e,n){let i;if("string"==typeof t&&(t=CS.find(e=>e.name===t)),"quantile"===e)i=function t(){var e,n=[],i=[],s=[];function r(){var t=0,e=Math.max(1,i.length);for(s=new Array(e-1);++t<e;)s[t-1]=Vb(n,t/e);return o}function o(t){return null==t||isNaN(t=+t)?e:i[nb(s,t)]}return o.invertExtent=function(t){var e=i.indexOf(t);return e<0?[NaN,NaN]:[e>0?s[e-1]:n[0],e<s.length?s[e]:n[n.length-1]]},o.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(Ay),r()},o.range=function(t){return arguments.length?(i=Array.from(t),r()):i.slice()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.quantiles=function(){return s.slice()},o.copy=function(){return t().domain(n).range(i).unknown(e)},db.apply(o,arguments)}().range(t.domain).domain(n);else if("ordinal"===e)i=Pb().range(t.domain).domain(n);else if("linear"===e){const e=[...t.domain];1===e.length&&(e.push(e[0]),this.colorDomain=e);const n=Ob(0,1,1/e.length);i=Mb().domain(n).range(e)}return i}getColor(t){if(null==t)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=Mb().domain(this.domain).range([0,1]);return this.scale(e(t))}{if("function"==typeof this.customColors)return this.customColors(t);const e=t.toString();let n;return this.customColors&&this.customColors.length>0&&(n=this.customColors.find(t=>t.name.toLowerCase()===e.toLowerCase())),n?n.value:this.scale(t)}}getLinearGradientStops(t,e){void 0===e&&(e=this.domain[0]);const n=Mb().domain(this.domain).range([0,1]),i=Nb().domain(this.colorDomain).range([0,1]),s=this.getColor(t),r=n(e),o=this.getColor(e),a=n(t);let l=1,c=r;const h=[];for(h.push({color:o,offset:r,originalOffset:r,opacity:1});c<a&&l<this.colorDomain.length;){const t=this.colorDomain[l],e=i(t);if(e<=r)l++;else{if(e.toFixed(4)>=(a-i.bandwidth()).toFixed(4))break;h.push({color:t,offset:e,opacity:1}),c=e,l++}}if(h[h.length-1].offset<100&&h.push({color:s,offset:a,opacity:1}),a===r)h[0].offset=0,h[1].offset=100;else if(100!==h[h.length-1].offset)for(const u of h)u.offset=(u.offset-r)/(a-r)*100;return h}}function ES(t){const e=new Set;for(const n of t)for(const t of n.series)e.add(t.name);return Array.from(e)}function LS(t,e=!0){return e&&t.every(t=>t instanceof Date)?"time":t.every(t=>"number"==typeof t)?"linear":"ordinal"}let DS=(()=>{class t extends WT{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=zb,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.activate=new fl,this.deactivate=new fl,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=kS({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(let t=0;t<this.xSet.length;t++){const e=this.xSet[t];let n=0,i=0;for(const t of this.results){const n=t.series.find(t=>{let n=t.name,i=e;return"time"===this.scaleType&&(n=n.valueOf(),i=i.valueOf()),n===i});n&&(i+=n.value)}for(const t of this.results){let s=t.series.find(t=>{let n=t.name,i=e;return"time"===this.scaleType&&(n=n.valueOf(),i=i.valueOf()),n===i});s?(s.d0=n,s.d1=n+s.value,n+=s.value):(s={name:e,value:0,d0:n,d1:n},t.series.push(s)),i>0?(s.d0=100*s.d0/i,s.d1=100*s.d1/i):(s.d0=0,s.d1=0)}}this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+cS().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let t=ES(this.results);this.scaleType=LS(t);let e=[];if("time"===this.scaleType){const n=Math.min(...t),i=Math.max(...t);e=[new Date(n),new Date(i)],this.xSet=[...t].sort((t,e)=>{const n=t.getTime(),i=e.getTime();return n>i?1:i>n?-1:0})}else"linear"===this.scaleType?(t=t.map(t=>Number(t)),e=[Math.min(...t),Math.max(...t)],this.xSet=[...t].sort((t,e)=>t-e)):(e=t,this.xSet=t);return e}getYDomain(){return[0,100]}getSeriesDomain(){return this.results.map(t=>t.name)}getXScale(t,e){let n;return"time"===this.scaleType?n=gb():"linear"===this.scaleType?n=Mb():"ordinal"===this.scaleType&&(n=Hb().padding(.1)),n.range([0,e]).domain(t),this.roundDomains?n.nice():n}getYScale(t,e){const n=Mb().range([e,0]).domain(t);return this.roundDomains?n.nice():n}updateDomain(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(t){this.hoveredVertical=t.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(t,e){e&&(t.series=e.name),this.select.emit(t)}trackBy(t,e){return e.name}setColors(){let t;t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new AS(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onActivate(t){this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const e=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value);this.activeEntries.splice(e,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const t of this.activeEntries)this.deactivate.emit({value:t,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(e){return FS(e||t)},t.\u0275cmp=ce({type:t,selectors:[["ngx-charts-area-chart-normalized"]],contentQueries:function(t,e,n){var i;1&t&&(Al(n,D_,!0),Al(n,F_,!0)),2&t&&(Sl(i=El())&&(e.tooltipTemplate=i.first),Sl(i=El())&&(e.seriesTooltipTemplate=i.first))},hostBindings:function(t,e){1&t&&Co("mouseleave",(function(){return e.hideCircles()}))},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ia],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","","normalized","true",3,"xScale","yScale","colors","data","scaleType","activeEntries","gradient","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","showPercentage","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","","type","stacked",3,"xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","","normalized","true",3,"xScale","yScale","colors","data","scaleType","gradient","curve","animations"]],template:function(t,e){1&t&&(xo(0,"ngx-charts-chart",0),Co("legendLabelClick",(function(t){return e.onClick(t)}))("legendLabelActivate",(function(t){return e.onActivate(t)}))("legendLabelDeactivate",(function(t){return e.onDeactivate(t)})),kn(),xo(1,"defs"),xo(2,"clipPath"),wo(3,"rect"),bo(),bo(),xo(4,"g",1),mo(5,O_,1,10,"g",2),mo(6,I_,1,9,"g",3),xo(7,"g"),mo(8,P_,2,9,"g",4),mo(9,R_,3,10,"g",5),bo(),bo(),mo(10,V_,2,13,"g",6),bo()),2&t&&(yo("view",ul(17,M_,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),vs(2),fo("id",e.clipPathId),vs(1),fo("width",e.dims.width+10)("height",e.dims.height+10)("transform","translate(-5, -5)"),vs(1),fo("transform",e.transform),vs(1),yo("ngIf",e.xAxis),vs(1),yo("ngIf",e.yAxis),vs(1),fo("clip-path",e.clipPath),vs(1),yo("ngForOf",e.results)("ngForTrackBy",e.trackBy),vs(1),yo("ngIf",!e.tooltipDisabled),vs(1),yo("ngIf",e.timeline&&"ordinal"!=e.scaleType))},directives:function(){return[$T,th,Kc,QT,JT,RS,xS,uS,bS]},styles:[j_],encapsulation:2,changeDetection:0}),t})();const FS=hi(DS);let MS=(()=>{class t extends WT{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=zb,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.activate=new fl,this.deactivate=new fl,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=kS({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(let t=0;t<this.xSet.length;t++){const e=this.xSet[t];let n=0;for(const t of this.results){let i=t.series.find(t=>{let n=t.name,i=e;return"time"===this.scaleType&&(n=n.valueOf(),i=i.valueOf()),n===i});i?(i.d0=n,i.d1=n+i.value,n+=i.value):(i={name:e,value:0,d0:n,d1:n},t.series.push(i))}}this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+cS().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let t=ES(this.results);this.scaleType=LS(t);let e,n,i=[];return"linear"===this.scaleType&&(t=t.map(t=>Number(t))),"time"!==this.scaleType&&"linear"!==this.scaleType||(e=this.xScaleMin?this.xScaleMin:Math.min(...t),n=this.xScaleMax?this.xScaleMax:Math.max(...t)),"time"===this.scaleType?(i=[new Date(e),new Date(n)],this.xSet=[...t].sort((t,e)=>{const n=t.getTime(),i=e.getTime();return n>i?1:i>n?-1:0})):"linear"===this.scaleType?(i=[e,n],this.xSet=[...t].sort((t,e)=>t-e)):(i=t,this.xSet=t),i}getYDomain(){const t=[];for(let e=0;e<this.xSet.length;e++){const n=this.xSet[e];let i=0;for(const t of this.results){const e=t.series.find(t=>{let e=t.name,i=n;return"time"===this.scaleType&&(e=e.valueOf(),i=i.valueOf()),e===i});e&&(i+=e.value)}t.push(i)}return[this.yScaleMin?this.yScaleMin:Math.min(0,...t),this.yScaleMax?this.yScaleMax:Math.max(...t)]}getSeriesDomain(){return this.results.map(t=>t.name)}getXScale(t,e){let n;return"time"===this.scaleType?n=gb():"linear"===this.scaleType?n=Mb():"ordinal"===this.scaleType&&(n=Hb().padding(.1)),n.range([0,e]).domain(t),this.roundDomains?n.nice():n}getYScale(t,e){const n=Mb().range([e,0]).domain(t);return this.roundDomains?n.nice():n}updateDomain(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(t){this.hoveredVertical=t.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(t,e){e&&(t.series=e.name),this.select.emit(t)}trackBy(t,e){return e.name}setColors(){let t;t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new AS(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onActivate(t){this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const e=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value);this.activeEntries.splice(e,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const t of this.activeEntries)this.deactivate.emit({value:t,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(e){return OS(e||t)},t.\u0275cmp=ce({type:t,selectors:[["ngx-charts-area-chart-stacked"]],contentQueries:function(t,e,n){var i;1&t&&(Al(n,D_,!0),Al(n,F_,!0)),2&t&&(Sl(i=El())&&(e.tooltipTemplate=i.first),Sl(i=El())&&(e.seriesTooltipTemplate=i.first))},hostBindings:function(t,e){1&t&&Co("mouseleave",(function(){return e.hideCircles()}))},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ia],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","","stacked","true",3,"xScale","yScale","colors","data","scaleType","gradient","activeEntries","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],["ngx-charts-circle-series","","type","stacked",3,"xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","","stacked","true",3,"xScale","yScale","colors","data","scaleType","gradient","curve","animations"]],template:function(t,e){1&t&&(xo(0,"ngx-charts-chart",0),Co("legendLabelClick",(function(t){return e.onClick(t)}))("legendLabelActivate",(function(t){return e.onActivate(t)}))("legendLabelDeactivate",(function(t){return e.onDeactivate(t)})),kn(),xo(1,"defs"),xo(2,"clipPath"),wo(3,"rect"),bo(),bo(),xo(4,"g",1),mo(5,z_,1,10,"g",2),mo(6,B_,1,9,"g",3),xo(7,"g"),mo(8,$_,2,9,"g",4),mo(9,W_,3,10,"g",5),bo(),bo(),mo(10,U_,2,13,"g",6),bo()),2&t&&(yo("view",ul(17,M_,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),vs(2),fo("id",e.clipPathId),vs(1),fo("width",e.dims.width+10)("height",e.dims.height+10)("transform","translate(-5, -5)"),vs(1),fo("transform",e.transform),vs(1),yo("ngIf",e.xAxis),vs(1),yo("ngIf",e.yAxis),vs(1),fo("clip-path",e.clipPath),vs(1),yo("ngForOf",e.results)("ngForTrackBy",e.trackBy),vs(1),yo("ngIf",!e.tooltipDisabled),vs(1),yo("ngIf",e.timeline&&"ordinal"!=e.scaleType))},directives:function(){return[$T,th,Kc,QT,JT,RS,xS,uS,bS]},styles:[j_],encapsulation:2,changeDetection:0}),t})();const OS=hi(MS);function IS(t,e,n="asc"){return t.sort((t,i)=>"asc"===n?t[e]-i[e]:i[e]-t[e])}function PS(t,e,n="asc",i){return t.sort((t,s)=>{const r=s[e],o=i.indexOf(t[e]),a=i.indexOf(r);return"asc"===n?o-a:a-o})}function NS(t,e,n="asc"){return t.sort((t,i)=>{const s=t[e].getTime(),r=i[e].getTime();return"asc"===n?s>r?1:r>s?-1:0:s>r?-1:r>s?1:0})}let RS=(()=>{class t{constructor(){this.baseValue="auto",this.stacked=!1,this.normalized=!1,this.animations=!0,this.select=new fl}ngOnChanges(t){this.update()}update(){let t,e;this.updateGradient();const n=t=>this.xScale(t.name);this.stacked||this.normalized?(t=Jb().x(n).y0((t,e)=>this.yScale(t.d0)).y1((t,e)=>this.yScale(t.d1)),e=Jb().x(n).y0(t=>this.yScale.range()[0]).y1(t=>this.yScale.range()[0])):(t=Jb().x(n).y0(()=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue)).y1(t=>this.yScale(t.value)),e=Jb().x(n).y0(t=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue)).y1(t=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue))),t.curve(this.curve),e.curve(this.curve),this.opacity=.8;let i=this.data.series;i="linear"===this.scaleType?IS(i,"name"):"time"===this.scaleType?NS(i,"name"):PS(i,"name","asc",this.xScale.domain()),this.path=t(i),this.startingPath=e(i)}updateGradient(){if("linear"===this.colors.scaleType)if(this.hasGradient=!0,this.stacked||this.normalized){const t=this.data.series.map(t=>t.d0),e=this.data.series.map(t=>t.d1),n=Math.max(...e),i=Math.min(...t);this.gradientStops=this.colors.getLinearGradientStops(n,i)}else{const t=this.data.series.map(t=>t.value),e=Math.max(...t);this.gradientStops=this.colors.getLinearGradientStops(e)}else this.hasGradient=!1,this.gradientStops=void 0}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.name===e.name)}isInactive(t){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(e=>t.name===e.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-area-series",""]],inputs:{baseValue:"baseValue",stacked:"stacked",normalized:"normalized",animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",gradient:"gradient",curve:"curve",activeEntries:"activeEntries"},outputs:{select:"select"},features:[Le],attrs:X_,decls:1,vars:12,consts:[["ngx-charts-area","",1,"area-series",3,"data","path","fill","stops","startingPath","opacity","gradient","animations"]],template:function(t,e){1&t&&(kn(),wo(0,"g",0)),2&t&&(zo("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),yo("data",e.data)("path",e.path)("fill",e.colors.getColor(e.data.name))("stops",e.gradientStops)("startingPath",e.startingPath)("opacity",e.opacity)("gradient",e.gradient||e.hasGradient)("animations",e.animations))},directives:[mS],encapsulation:2,changeDetection:0}),t})(),HS=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[SS]]}),t})(),VS=(()=>{class t{constructor(t){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new fl,this.activate=new fl,this.deactivate=new fl,this.hasGradient=!1,this.hideBar=!1,this.element=t.nativeElement}ngOnChanges(t){t.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+cS().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const t=Vp(this.element).select(".bar"),e=this.getPath();this.animations?t.transition().duration(500).attr("d",e):t.attr("d",e)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=ZT(this.x,this.y+this.height,this.width,1,0,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=ZT(this.x,this.y,1,this.height,0,this.edges)):"vertical"===this.orientation?t=ZT(this.x,this.y+this.height,this.width,1,0,this.edges):"horizontal"===this.orientation&&(t=ZT(this.x,this.y,1,this.height,0,this.edges)),t}getPath(){let t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=ZT(this.x,this.y,this.width,this.height,e,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=ZT(this.x,this.y,this.width,this.height,e,this.edges)):t=ZT(this.x,this.y,this.width,this.height,e,this.edges),t}getRadius(){let t=0;return this.roundEdges&&this.height>5&&this.width>5&&(t=Math.floor(Math.min(5,this.height/2,this.width/2))),t}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let t=[!1,!1,!1,!1];return this.roundEdges&&("vertical"===this.orientation?t=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:"horizontal"===this.orientation&&(t=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),t}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&("vertical"===this.orientation&&0===this.height||"horizontal"===this.orientation&&0===this.width)}}return t.\u0275fac=function(e){return new(e||t)(go(xa))},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(t,e){1&t&&Co("mouseenter",(function(){return e.onMouseEnter()}))("mouseleave",(function(){return e.onMouseLeave()}))},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[Le],attrs:G_,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(t,e){1&t&&(mo(0,Q_,2,3,"defs",0),kn(),xo(1,"path",1),Co("click",(function(){return e.select.emit(e.data)})),bo()),2&t&&(yo("ngIf",e.hasGradient),vs(1),zo("active",e.isActive)("hidden",e.hideBar),fo("d",e.path)("aria-label",e.ariaLabel)("fill",e.hasGradient?e.gradientFill:e.fill))},directives:[th,fS],encapsulation:2,changeDetection:0}),t})(),jS=(()=>{class t extends WT{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new fl,this.deactivate=new fl,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=kS({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const t=this.xDomain.length/(this.dims.width/this.barPadding+1);return Nb().range([0,this.dims.width]).paddingInner(t).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const t=Mb().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?t.nice():t}getXDomain(){return this.results.map(t=>t.label)}getYDomain(){const t=this.results.map(t=>t.value);let e=this.yScaleMin?Math.min(this.yScaleMin,...t):Math.min(0,...t);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(e=Math.min(e,...this.yAxisTicks));let n=this.yScaleMax?Math.max(this.yScaleMax,...t):Math.max(0,...t);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(n=Math.max(n,...this.yAxisTicks)),[e,n]}onClick(t){this.select.emit(t)}setColors(){let t;t="ordinal"===this.schemeType?this.xDomain:this.yDomain,this.colors=new AS(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===t.scaleType?(t.domain=this.xDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onDataLabelMaxHeightChanged(t){t.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,t.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,t.size.height),t.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(t,e=!1){t=this.results.find(n=>e?n.label===t.name:n.name===t.name),this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t,e=!1){t=this.results.find(n=>e?n.label===t.name:n.name===t.name);const n=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series);this.activeEntries.splice(n,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}}return t.\u0275fac=function(e){return zS(e||t)},t.\u0275cmp=ce({type:t,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(t,e,n){var i;1&t&&Al(n,D_,!0),2&t&&Sl(i=El())&&(e.tooltipTemplate=i.first)},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ia],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(t,e){1&t&&(xo(0,"ngx-charts-chart",0),Co("legendLabelClick",(function(t){return e.onClick(t)}))("legendLabelActivate",(function(t){return e.onActivate(t,!0)}))("legendLabelDeactivate",(function(t){return e.onDeactivate(t,!0)})),kn(),xo(1,"g",1),mo(2,Z_,1,10,"g",2),mo(3,K_,1,9,"g",3),xo(4,"g",4),Co("activate",(function(t){return e.onActivate(t)}))("deactivate",(function(t){return e.onDeactivate(t)}))("select",(function(t){return e.onClick(t)}))("dataLabelHeightChanged",(function(t){return e.onDataLabelMaxHeightChanged(t)})),bo(),bo(),bo()),2&t&&(yo("view",ul(22,M_,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),vs(1),fo("transform",e.transform),vs(1),yo("ngIf",e.xAxis),vs(1),yo("ngIf",e.yAxis),vs(1),yo("xScale",e.xScale)("yScale",e.yScale)("colors",e.colors)("series",e.results)("dims",e.dims)("gradient",e.gradient)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)("showDataLabel",e.showDataLabel)("dataLabelFormatting",e.dataLabelFormatting)("activeEntries",e.activeEntries)("roundEdges",e.roundEdges)("animations",e.animations)("noBarWhenZero",e.noBarWhenZero))},directives:function(){return[$T,th,$S,QT,JT]},styles:[j_],encapsulation:2,changeDetection:0}),t})();const zS=hi(jS);var BS=function(t){return t.positive="positive",t.negative="negative",t}({});let $S=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new fl,this.activate=new fl,this.deactivate=new fl,this.dataLabelHeightChanged=new fl,this.barsForDataLabels=[]}ngOnChanges(t){this.update()}update(){let t;this.updateTooltipSettings(),this.series.length&&(t=this.xScale.bandwidth()),t=Math.round(t);const e=Math.max(this.yScale.domain()[0],0),n={[BS.positive]:0,[BS.negative]:0};let i,s=BS.positive;"normalized"===this.type&&(i=this.series.map(t=>t.value).reduce((t,e)=>t+e,0)),this.bars=this.series.map((r,o)=>{let a=r.value;const l=this.getLabel(r),c=oS(l);s=a>0?BS.positive:BS.negative;const h={value:a,label:l,roundEdges:this.roundEdges,data:r,width:t,formattedLabel:c,height:0,x:0,y:0};if("standard"===this.type)h.height=Math.abs(this.yScale(a)-this.yScale(e)),h.x=this.xScale(l),h.y=this.yScale(a<0?0:a);else if("stacked"===this.type){const t=n[s],e=t+a;n[s]+=a,h.height=this.yScale(t)-this.yScale(e),h.x=0,h.y=this.yScale(e),h.offset0=t,h.offset1=e}else if("normalized"===this.type){let t=n[s],e=t+a;n[s]+=a,i>0?(t=100*t/i,e=100*e/i):(t=0,e=0),h.height=this.yScale(t)-this.yScale(e),h.x=0,h.y=this.yScale(e),h.offset0=t,h.offset1=e,a=(e-t).toFixed(2)+"%"}"ordinal"===this.colors.scaleType?h.color=this.colors.getColor(l):"standard"===this.type?(h.color=this.colors.getColor(a),h.gradientStops=this.colors.getLinearGradientStops(a)):(h.color=this.colors.getColor(h.offset1),h.gradientStops=this.colors.getLinearGradientStops(h.offset1,h.offset0));let u=c;return h.ariaLabel=c+" "+a.toLocaleString(),this.seriesName&&(u=`${this.seriesName} \u2022 ${c}`,h.data.series=this.seriesName,h.ariaLabel=this.seriesName+" "+h.ariaLabel),h.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${aS(u)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(a):a.toLocaleString()}</span>\n `,h}),this.updateDataLabels()}updateDataLabels(){if("stacked"===this.type){this.barsForDataLabels=[];const t={};t.series=this.seriesName;const e=this.series.map(t=>t.value).reduce((t,e)=>e>0?t+e:t,0),n=this.series.map(t=>t.value).reduce((t,e)=>e<0?t+e:t,0);t.total=e+n,t.x=0,t.y=0,t.height=this.yScale(t.total>0?e:n),t.width=this.xScale.bandwidth(),this.barsForDataLabels.push(t)}else this.barsForDataLabels=this.series.map(t=>{const e={};return e.series=this.seriesName?this.seriesName:t.label,e.total=t.value,e.x=this.xScale(t.label),e.y=this.yScale(0),e.height=this.yScale(e.total)-this.yScale(0),e.width=this.xScale.bandwidth(),e})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.name===e.name&&t.series===e.series)}onClick(t){this.select.emit(t)}getLabel(t){return t.label?t.label:t.name}trackBy(t,e){return e.label}trackDataLabelBy(t,e){return t+"#"+e.series+"#"+e.total}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[Le],attrs:J_,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(t,e){1&t&&(mo(0,tT,1,22,"g",0),mo(1,nT,2,2,"g",1)),2&t&&(yo("ngForOf",e.bars)("ngForTrackBy",e.trackBy),vs(1),yo("ngIf",e.showDataLabel))},directives:function(){return[Kc,th,VS,sS,YS]},encapsulation:2,data:{animation:[jh("animationState",[Yh(":leave",[$h({opacity:1}),zh(500,$h({opacity:0}))])])]},changeDetection:0}),t})(),YS=(()=>{class t{constructor(t){this.dimensionsChanged=new fl,this.horizontalPadding=2,this.verticalPadding=5,this.element=t.nativeElement}ngOnChanges(t){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):oS(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return t.\u0275fac=function(e){return new(e||t)(go(xa))},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[Le],attrs:iT,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(t,e){1&t&&(kn(),xo(0,"text",0),Jo(1),bo()),2&t&&(fo("text-anchor",e.textAnchor)("transform",e.transform)("x",e.x)("y",e.y),vs(1),ea(" ",e.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),t})(),WS=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[SS]]}),t})(),qS=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[SS]]}),t})(),US=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[SS]]}),t})(),XS=(()=>{class t{constructor(t){this.element=t,this.fill="none",this.animations=!0,this.select=new fl,this.initialized=!1}ngOnChanges(t){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const t=Vp(this.element.nativeElement).select(".line");this.animations?t.transition().duration(750).attr("d",this.path):t.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(go(xa))},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},outputs:{select:"select"},features:[Le],attrs:sT,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(t,e){1&t&&(kn(),wo(0,"path",0)),2&t&&(yo("@animationState","active"),fo("d",e.initialPath)("fill",e.fill)("stroke",e.stroke))},encapsulation:2,data:{animation:[jh("animationState",[Yh(":enter",[$h({strokeDasharray:2e3,strokeDashoffset:2e3}),zh(1e3,$h({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),GS=(()=>{class t extends WT{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=zb,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new fl,this.deactivate=new fl,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=kS({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+cS().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let t=ES(this.results);this.scaleType=LS(t);let e,n,i=[];return"linear"===this.scaleType&&(t=t.map(t=>Number(t))),"time"!==this.scaleType&&"linear"!==this.scaleType||(e=this.xScaleMin?this.xScaleMin:Math.min(...t),n=this.xScaleMax?this.xScaleMax:Math.max(...t)),"time"===this.scaleType?(i=[new Date(e),new Date(n)],this.xSet=[...t].sort((t,e)=>{const n=t.getTime(),i=e.getTime();return n>i?1:i>n?-1:0})):"linear"===this.scaleType?(i=[e,n],this.xSet=[...t].sort((t,e)=>t-e)):(i=t,this.xSet=t),i}getYDomain(){const t=[];for(const n of this.results)for(const e of n.series)t.indexOf(e.value)<0&&t.push(e.value),void 0!==e.min&&(this.hasRange=!0,t.indexOf(e.min)<0&&t.push(e.min)),void 0!==e.max&&(this.hasRange=!0,t.indexOf(e.max)<0&&t.push(e.max));const e=[...t];return this.autoScale||e.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...e),this.yScaleMax?this.yScaleMax:Math.max(...e)]}getSeriesDomain(){return this.results.map(t=>t.name)}getXScale(t,e){let n;return"time"===this.scaleType?n=gb().range([0,e]).domain(t):"linear"===this.scaleType?(n=Mb().range([0,e]).domain(t),this.roundDomains&&(n=n.nice())):"ordinal"===this.scaleType&&(n=Hb().range([0,e]).padding(.1).domain(t)),n}getYScale(t,e){const n=Mb().range([e,0]).domain(t);return this.roundDomains?n.nice():n}updateDomain(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(t){this.hoveredVertical=t.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(t){this.select.emit(t)}trackBy(t,e){return e.name}setColors(){let t;t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new AS(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onActivate(t){this.deactivateAll(),this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value)>-1||(this.activeEntries=[t],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const e=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value);this.activeEntries.splice(e,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const t of this.activeEntries)this.deactivate.emit({value:t,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(e){return QS(e||t)},t.\u0275cmp=ce({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(t,e,n){var i;1&t&&(Al(n,D_,!0),Al(n,F_,!0)),2&t&&(Sl(i=El())&&(e.tooltipTemplate=i.first),Sl(i=El())&&(e.seriesTooltipTemplate=i.first))},hostBindings:function(t,e){1&t&&Co("mouseleave",(function(){return e.hideCircles()}))},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ia],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(t,e){1&t&&(xo(0,"ngx-charts-chart",0),Co("legendLabelClick",(function(t){return e.onClick(t)}))("legendLabelActivate",(function(t){return e.onActivate(t)}))("legendLabelDeactivate",(function(t){return e.onDeactivate(t)})),kn(),xo(1,"defs"),xo(2,"clipPath"),wo(3,"rect"),bo(),bo(),xo(4,"g",1),mo(5,rT,1,10,"g",2),mo(6,oT,1,12,"g",3),xo(7,"g"),mo(8,aT,2,11,"g",4),mo(9,cT,3,9,"g",5),bo(),bo(),mo(10,uT,2,13,"g",6),bo()),2&t&&(yo("view",ul(17,M_,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),vs(2),fo("id",e.clipPathId),vs(1),fo("width",e.dims.width+10)("height",e.dims.height+10)("transform","translate(-5, -5)"),vs(1),fo("transform",e.transform),vs(1),yo("ngIf",e.xAxis),vs(1),yo("ngIf",e.yAxis),vs(1),fo("clip-path",e.clipPath),vs(1),yo("ngForOf",e.results)("ngForTrackBy",e.trackBy),vs(1),yo("ngIf",!e.tooltipDisabled),vs(1),yo("ngIf",e.timeline&&"ordinal"!=e.scaleType))},directives:function(){return[$T,th,Kc,QT,JT,ZS,xS,uS,bS]},styles:[j_],encapsulation:2,data:{animation:[jh("animationState",[Yh(":leave",[$h({opacity:1}),zh(500,$h({opacity:0}))])])]},changeDetection:0}),t})();const QS=hi(GS);let ZS=(()=>{class t{constructor(){this.animations=!0}ngOnChanges(t){this.update()}update(){this.updateGradients();const t=this.sortData(this.data.series),e=this.getLineGenerator();this.path=e(t)||"";const n=this.getAreaGenerator();if(this.areaPath=n(t)||"",this.hasRange){const e=this.getRangeGenerator();this.outerPath=e(t)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const t=this.data.series.map(t=>t.value),e=Math.max(...t);e===Math.min(...t)&&(this.stroke=this.colors.getColor(e))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return Kb().x(t=>{const e=t.name;let n;return n=this.xScale("time"===this.scaleType?e:"linear"===this.scaleType?Number(e):e),n}).y(t=>this.yScale(t.value)).curve(this.curve)}getRangeGenerator(){return Jb().x(t=>{const e=t.name;let n;return n=this.xScale("time"===this.scaleType?e:"linear"===this.scaleType?Number(e):e),n}).y0(t=>this.yScale("number"==typeof t.min?t.min:t.value)).y1(t=>this.yScale("number"==typeof t.max?t.max:t.value)).curve(this.curve)}getAreaGenerator(){return Jb().x(t=>this.xScale(t.name)).y0(()=>this.yScale.range()[0]).y1(t=>this.yScale(t.value)).curve(this.curve)}sortData(t){return"linear"===this.scaleType?IS(t,"name"):"time"===this.scaleType?NS(t,"name"):PS(t,"name","asc",this.xScale.domain())}updateGradients(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+cS().toString(),this.gradientUrl=`url(#${this.gradientId})`;const t=this.data.series.map(t=>t.value),e=Math.max(...t),n=Math.min(...t);this.gradientStops=this.colors.getLinearGradientStops(e,n),this.areaGradientStops=this.colors.getLinearGradientStops(e)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.name===e.name)}isInactive(t){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(e=>t.name===e.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[Le],attrs:dT,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(t,e){1&t&&(kn(),xo(0,"g"),xo(1,"defs"),mo(2,fT,1,2,"g",0),bo(),wo(3,"g",1),wo(4,"g",2),mo(5,pT,1,9,"g",3),bo()),2&t&&(vs(2),yo("ngIf",e.hasGradient),vs(1),zo("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),yo("data",e.data)("path",e.areaPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",e.areaGradientStops)("animations",e.animations),vs(1),zo("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),yo("data",e.data)("path",e.path)("stroke",e.stroke)("animations",e.animations),vs(1),yo("ngIf",e.hasRange))},directives:[th,mS,XS,fS],encapsulation:2,changeDetection:0}),t})(),KS=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[SS]]}),t})();Math;let JS=(()=>{class t{constructor(){this.animations=!0,this.labelTrim=!0,this.labelTrimSize=10,this.isIE=/(edge|msie|trident)/i.test(navigator.userAgent),this.trimLabel=UT}ngOnChanges(t){this.update()}update(){let t=this.radius;this.explodeSlices&&(t=this.radius*this.value/this.max);const e=kw().innerRadius(t).outerRadius(t).centroid(this.data);let n=this.data.pos[1]/e[1];0!==this.data.pos[1]&&0!==e[1]||(n=1),this.line=`M${e}L${[n*e[0],n*e[1]]}L${this.data.pos}`}get textX(){return this.data.pos[0]}get textY(){return this.data.pos[1]}get styleTransform(){return this.isIE?null:`translate3d(${this.textX}px,${this.textY}px, 0)`}get attrTransform(){return this.isIE?`translate(${this.textX},${this.textY})`:null}get textTransition(){return this.isIE||!this.animations?null:"transform 0.75s"}textAnchor(){return this.midAngle(this.data)<Math.PI?"start":"end"}midAngle(t){return t.startAngle+(t.endAngle-t.startAngle)/2}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-pie-label",""]],inputs:{animations:"animations",labelTrim:"labelTrim",labelTrimSize:"labelTrimSize",data:"data",radius:"radius",label:"label",color:"color",max:"max",value:"value",explodeSlices:"explodeSlices"},features:[Le],attrs:mT,decls:6,vars:17,consts:[["dy",".35em",1,"pie-label"],["fill","none",1,"pie-label-line","line"]],template:function(t,e){1&t&&(xo(0,"title"),Jo(1),bo(),kn(),xo(2,"g"),xo(3,"text",0),Jo(4),bo(),bo(),wo(5,"path",1)),2&t&&(vs(1),ta(e.label),vs(1),jo("transform",e.styleTransform)("transition",e.textTransition),fo("transform",e.attrTransform),vs(1),jo("text-anchor",e.textAnchor())("shape-rendering","crispEdges"),zo("animation",e.animations),vs(1),ea(" ",e.labelTrim?e.trimLabel(e.label,e.labelTrimSize):e.label," "),vs(1),zo("animation",e.animations),fo("d",e.line)("stroke",e.color))},encapsulation:2,changeDetection:0}),t})(),tk=(()=>{class t{constructor(t){this.startAngle=0,this.endAngle=2*Math.PI,this.cornerRadius=0,this.explodeSlices=!1,this.gradient=!1,this.animate=!0,this.pointerEvents=!0,this.isActive=!1,this.select=new fl,this.activate=new fl,this.deactivate=new fl,this.dblclick=new fl,this.initialized=!1,this.element=t.nativeElement}ngOnChanges(t){this.update()}getGradient(){return this.gradient?this.gradientFill:this.fill}getPointerEvents(){return this.pointerEvents?"auto":"none"}update(){const t=this.calculateArc();this.startOpacity=.5,this.radialGradientId="linearGrad"+cS().toString(),this.gradientFill=`url(#${this.radialGradientId})`,this.animate?this.initialized?this.updateAnimation():(this.loadAnimation(),this.initialized=!0):this.path=t.startAngle(this.startAngle).endAngle(this.endAngle)()}calculateArc(){let t=this.outerRadius;return this.explodeSlices&&0===this.innerRadius&&(t=this.outerRadius*this.value/this.max),kw().innerRadius(this.innerRadius).outerRadius(t).cornerRadius(this.cornerRadius)}loadAnimation(){const t=Vp(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),e=this.calculateArc();t.transition().attrTween("d",(function(t){this._current=this._current||t;const n=Object.assign({},t);n.endAngle=n.startAngle;const i=Bm(n,n);return this._current=i(0),function(t){return e(i(t))}})).transition().duration(750).attrTween("d",(function(t){this._current=this._current||t;const n=Bm(this._current,t);return this._current=n(0),function(t){return e(n(t))}}))}updateAnimation(){const t=Vp(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),e=this.calculateArc();t.transition().duration(750).attrTween("d",(function(t){this._current=this._current||t;const n=Bm(this._current,t);return this._current=n(0),function(t){return e(n(t))}}))}onClick(){clearTimeout(this._timeout),this._timeout=setTimeout(()=>this.select.emit(this.data),200)}onDblClick(t){t.preventDefault(),t.stopPropagation(),clearTimeout(this._timeout),this.dblclick.emit({data:this.data,nativeEvent:t})}}return t.\u0275fac=function(e){return new(e||t)(go(xa))},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-pie-arc",""]],inputs:{startAngle:"startAngle",endAngle:"endAngle",cornerRadius:"cornerRadius",explodeSlices:"explodeSlices",gradient:"gradient",animate:"animate",pointerEvents:"pointerEvents",isActive:"isActive",fill:"fill",innerRadius:"innerRadius",outerRadius:"outerRadius",value:"value",max:"max",data:"data"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[Le],attrs:gT,decls:3,vars:7,consts:[[1,"arc-group"],[4,"ngIf"],[1,"arc",3,"click","dblclick","mouseenter","mouseleave"],["ngx-charts-svg-radial-gradient","","orientation","vertical",3,"color","name","startOpacity"]],template:function(t,e){1&t&&(kn(),xo(0,"g",0),mo(1,yT,2,3,"defs",1),xo(2,"path",2),Co("click",(function(){return e.onClick()}))("dblclick",(function(t){return e.onDblClick(t)}))("mouseenter",(function(){return e.activate.emit(e.data)}))("mouseleave",(function(){return e.deactivate.emit(e.data)})),bo(),bo()),2&t&&(vs(1),yo("ngIf",e.gradient),vs(1),jo("pointer-events",e.getPointerEvents()),zo("active",e.isActive),fo("d",e.path)("fill",e.getGradient()))},directives:[th,pS],encapsulation:2,changeDetection:0}),t})(),ek=(()=>{class t extends WT{constructor(){super(...arguments),this.labels=!1,this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.explodeSlices=!1,this.doughnut=!1,this.arcWidth=.25,this.activeEntries=[],this.tooltipDisabled=!1,this.trimLabels=!0,this.maxLabelLength=10,this.dblclick=new fl,this.select=new fl,this.activate=new fl,this.deactivate=new fl}update(){super.update(),this.labels&&this.hasNoOptionalMarginsSet()?this.margins=[30,80,30,80]:!this.labels&&this.hasNoOptionalMarginsSet()&&(this.margins=[20,20,20,20]),this.dims=kS({width:this.width,height:this.height,margins:this.margins,showLegend:this.legend,legendPosition:this.legendPosition}),this.formatDates(),this.translation=`translate(${this.margins[3]+this.dims.width/2}, ${this.margins[0]+this.dims.height/2})`,this.outerRadius=Math.min(this.dims.width,this.dims.height),this.outerRadius/=this.labels?3:2,this.innerRadius=0,this.doughnut&&(this.innerRadius=this.outerRadius*(1-this.arcWidth)),this.domain=this.getDomain(),this.data=this.results.sort((t,e)=>this.domain.indexOf(t.name)-this.domain.indexOf(e.name)),this.setColors(),this.legendOptions=this.getLegendOptions()}getDomain(){return this.results.map(t=>t.label)}onClick(t){this.select.emit(t)}setColors(){this.colors=new AS(this.scheme,"ordinal",this.domain,this.customColors)}getLegendOptions(){return{scaleType:"ordinal",domain:this.domain,colors:this.colors,title:this.legendTitle,position:this.legendPosition}}onActivate(t,e=!1){t=this.results.find(n=>e?n.label===t.name:n.name===t.name),this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t,e=!1){t=this.results.find(n=>e?n.label===t.name:n.name===t.name);const n=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series);this.activeEntries.splice(n,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}hasNoOptionalMarginsSet(){return!this.margins||this.margins.length<=0}}return t.\u0275fac=function(e){return nk(e||t)},t.\u0275cmp=ce({type:t,selectors:[["ngx-charts-pie-chart"]],contentQueries:function(t,e,n){var i;1&t&&Al(n,D_,!0),2&t&&Sl(i=El())&&(e.tooltipTemplate=i.first)},inputs:{labels:"labels",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",explodeSlices:"explodeSlices",doughnut:"doughnut",arcWidth:"arcWidth",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",margins:"margins",gradient:"gradient",labelFormatting:"labelFormatting",tooltipText:"tooltipText"},outputs:{dblclick:"dblclick",select:"select",activate:"activate",deactivate:"deactivate"},features:[ia],decls:3,vars:24,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"pie-chart","chart"],["ngx-charts-pie-series","",3,"colors","series","showLabels","labelFormatting","trimLabels","maxLabelLength","activeEntries","innerRadius","outerRadius","explodeSlices","gradient","animations","tooltipDisabled","tooltipTemplate","tooltipText","dblclick","select","activate","deactivate"]],template:function(t,e){1&t&&(xo(0,"ngx-charts-chart",0),Co("legendLabelActivate",(function(t){return e.onActivate(t,!0)}))("legendLabelDeactivate",(function(t){return e.onDeactivate(t,!0)}))("legendLabelClick",(function(t){return e.onClick(t)})),kn(),xo(1,"g",1),xo(2,"g",2),Co("dblclick",(function(t){return e.dblclick.emit(t)}))("select",(function(t){return e.onClick(t)}))("activate",(function(t){return e.onActivate(t)}))("deactivate",(function(t){return e.onDeactivate(t)})),bo(),bo(),bo()),2&t&&(yo("view",ul(21,M_,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),vs(1),fo("transform",e.translation),vs(1),yo("colors",e.colors)("series",e.data)("showLabels",e.labels)("labelFormatting",e.labelFormatting)("trimLabels",e.trimLabels)("maxLabelLength",e.maxLabelLength)("activeEntries",e.activeEntries)("innerRadius",e.innerRadius)("outerRadius",e.outerRadius)("explodeSlices",e.explodeSlices)("gradient",e.gradient)("animations",e.animations)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)("tooltipText",e.tooltipText))},directives:function(){return[$T,sk]},styles:[j_,".pie-label{font-size:11px}.pie-label.animation{-webkit-animation:fadeIn .75s ease-in;animation:fadeIn .75s ease-in}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.pie-label-line{stroke-dasharray:100%}.pie-label-line.animation{-webkit-animation:drawOut 3s linear;animation:drawOut 3s linear;transition:d .75s}@-webkit-keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}@keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}"],encapsulation:2,changeDetection:0}),t})();const nk=hi(ek);function ik(t,e,n){let i=1,s=e;const r=t.width;if(r>n)for(;r/s<n;)i+=1,s=Math.ceil(e/i);return[s,i]}let sk=(()=>{class t{constructor(){this.series=[],this.innerRadius=60,this.outerRadius=80,this.trimLabels=!0,this.maxLabelLength=10,this.tooltipDisabled=!1,this.animations=!0,this.select=new fl,this.activate=new fl,this.deactivate=new fl,this.dblclick=new fl}ngOnChanges(t){this.update()}update(){const t=function(){var t=Aw,e=Cw,n=null,i=Gb(0),s=Gb(mw),r=Gb(0);function o(o){var a,l,c,h,u,d=o.length,f=0,p=new Array(d),m=new Array(d),g=+i.apply(this,arguments),y=Math.min(mw,Math.max(-mw,s.apply(this,arguments)-g)),v=Math.min(Math.abs(y)/d,r.apply(this,arguments)),x=v*(y<0?-1:1);for(a=0;a<d;++a)(u=m[p[a]=a]=+t(o[a],a,o))>0&&(f+=u);for(null!=e?p.sort((function(t,n){return e(m[t],m[n])})):null!=n&&p.sort((function(t,e){return n(o[t],o[e])})),a=0,c=f?(y-d*x)/f:0;a<d;++a,g=h)m[l=p[a]]={data:o[l],index:a,value:u=m[l],startAngle:g,endAngle:h=g+(u>0?u*c:0)+x,padAngle:v};return m}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:Gb(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:Gb(+t),o):i},o.endAngle=function(t){return arguments.length?(s="function"==typeof t?t:Gb(+t),o):s},o.padAngle=function(t){return arguments.length?(r="function"==typeof t?t:Gb(+t),o):r},o}().value(t=>t.value).sort(null)(this.series);this.max=function(t,e){let n;if(void 0===e)for(const i of t)null!=i&&(n<i||void 0===n&&i>=i)&&(n=i);else{let i=-1;for(let s of t)null!=(s=e(s,++i))&&(n<s||void 0===n&&s>=s)&&(n=s)}return n}(t,t=>t.value),this.data=this.calculateLabelPositions(t),this.tooltipText=this.tooltipText||this.defaultTooltipText}midAngle(t){return t.startAngle+(t.endAngle-t.startAngle)/2}outerArc(){return kw().innerRadius(1.5*this.outerRadius).outerRadius(1.5*this.outerRadius)}calculateLabelPositions(t){const e=t;e.forEach(t=>{t.pos=this.outerArc().centroid(t),t.pos[0]=1.5*this.outerRadius*(this.midAngle(t)<Math.PI?1:-1)});for(let n=0;n<e.length-1;n++){const t=e[n];if(this.labelVisible(t))for(let i=n+1;i<e.length;i++){const n=e[i];if(this.labelVisible(n)&&n.pos[0]*t.pos[0]>0){const e=10-Math.abs(n.pos[1]-t.pos[1]);e>0&&(n.pos[1]+=Math.sign(n.pos[0])*e)}}}return e}labelVisible(t){return this.showLabels&&t.endAngle-t.startAngle>Math.PI/30}getTooltipTitle(t){return this.tooltipTemplate?void 0:this.tooltipText(t)}labelText(t){return this.labelFormatting?this.labelFormatting(t.data.name):this.label(t)}label(t){return oS(t.data.name)}defaultTooltipText(t){const e=this.label(t),n=oS(t.data.value);return`\n <span class="tooltip-label">${aS(e)}</span>\n <span class="tooltip-val">${n}</span>\n `}color(t){return this.colors.getColor(this.label(t))}trackBy(t,e){return e.data.name}onClick(t){this.select.emit(t)}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.name===e.name&&t.series===e.series)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-pie-series",""]],inputs:{series:"series",innerRadius:"innerRadius",outerRadius:"outerRadius",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",tooltipDisabled:"tooltipDisabled",animations:"animations",tooltipText:"tooltipText",colors:"colors",dims:"dims",explodeSlices:"explodeSlices",showLabels:"showLabels",gradient:"gradient",activeEntries:"activeEntries",labelFormatting:"labelFormatting",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[Le],attrs:vT,decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations",4,"ngIf"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","gradient","data","max","explodeSlices","isActive","animate","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate","dblclick"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations"]],template:function(t,e){1&t&&mo(0,bT,3,19,"g",0),2&t&&yo("ngForOf",e.data)("ngForTrackBy",e.trackBy)},directives:[Kc,th,tk,sS,JS],encapsulation:2,changeDetection:0}),t})(),rk=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[SS]]}),t})(),ok=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[SS,rk,KS]]}),t})(),ak=(()=>{class t{constructor(t,e,n){this.cd=e,this.zone=n,this.animations=!0,this.select=new fl,this.value="",this.textFontSize=12,this.textTransform="",this.initialized=!1,this.bandHeight=10,this.textPadding=[10,20,5,20],this.labelFontSize=15,this.element=t.nativeElement}ngOnChanges(t){this.update()}ngOnDestroy(){cancelAnimationFrame(this.animationReq)}update(){this.zone.run(()=>{const t=this.data&&void 0!==this.data.value,e=this.valueFormatting||(t=>t.value.toLocaleString()),n=this.labelFormatting||(t=>aS(UT(t.label,55)));this.transform=`translate(${this.x} , ${this.y})`,this.textWidth=Math.max(0,this.width)-this.textPadding[1]-this.textPadding[3],this.cardWidth=Math.max(0,this.width),this.cardHeight=Math.max(0,this.height),this.label=this.label?this.label:this.data.name;const i={label:this.label,data:this.data,value:this.data.value};this.formattedLabel=n(i),this.transformBand=`translate(0 , ${this.cardHeight-this.bandHeight})`;const s=t?e(i):"";this.value=this.paddedValue(s),this.setPadding(),this.bandPath=ZT(0,0,this.cardWidth,this.bandHeight,3,[!1,!1,!0,!0]),setTimeout(()=>{this.scaleText(),this.value=s,t&&!this.initialized&&setTimeout(()=>this.startCount(),20)},8)})}paddedValue(t){return this.medianSize&&this.medianSize>t.length&&(t+="\u2007".repeat(this.medianSize-t.length)),t}startCount(){if(!this.initialized&&this.animations){cancelAnimationFrame(this.animationReq);const t=this.data.value,e=function(t){const e=Number(t);return e%1!=0&&Math.abs(e)<=10?2:0}(t),n=this.valueFormatting||(t=>t.value.toLocaleString());this.animationReq=function(t,e,n,i,s){const r=Number(0),o=Number(e),a=r>o,l=Math.max(0,n),c=Math.pow(10,l),h=1e3*Number(1);let u;return requestAnimationFrame(t=>(u=t,function t(e){let n;const i=e-u;n=a?r-gS(i,0,r-o,h):gS(i,r,o-r,h),n=a?n<o?o:n:n>o?o:n,n=Math.round(n*c)/c;const l=i<h;if(s({value:n,progress:i,timestamp:e,finished:!l}),l)return requestAnimationFrame(e=>t(e))}(t)))}(0,t,e,0,({value:e,finished:i})=>{this.zone.run(()=>{this.value=n({label:this.label,data:this.data,value:e=i?t:e}),i||(this.value=this.paddedValue(this.value)),this.cd.markForCheck()})}),this.initialized=!0}}scaleText(){this.zone.run(()=>{const{width:t,height:e}=this.textEl.nativeElement.getBoundingClientRect();if(0===t||0===e)return;const n=this.textPadding[1]=this.textPadding[3]=this.cardWidth/8,i=Math.min((this.cardWidth-2*n)/t,this.cardHeight/3/e);this.textFontSize=Math.floor(this.textFontSize*i),this.labelFontSize=Math.min(this.textFontSize,15),this.setPadding(),this.cd.markForCheck()})}setPadding(){this.textPadding[1]=this.textPadding[3]=this.cardWidth/8;const t=this.cardHeight/2;this.textPadding[0]=t-this.textFontSize-this.labelFontSize/2,this.textPadding[2]=t-this.labelFontSize}onClick(){this.select.emit(this.data)}}return t.\u0275fac=function(e){return new(e||t)(go(xa),go(Br),go(tc))},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-card",""]],viewQuery:function(t,e){var n;1&t&&kl(wT,!0),2&t&&Sl(n=El())&&(e.textEl=n.first)},inputs:{animations:"animations",label:"label",color:"color",bandColor:"bandColor",textColor:"textColor",x:"x",y:"y",width:"width",height:"height",data:"data",medianSize:"medianSize",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting"},outputs:{select:"select"},features:[Le],attrs:_T,decls:10,vars:25,consts:[[1,"cell",3,"click"],["rx","3","ry","3",1,"card"],["class","card-band","stroke","none",4,"ngIf"],["x","5","alignment-baseline","hanging",1,"trimmed-label"],[3,"innerHTML"],["text-anchor","start","alignment-baseline","hanging",1,"value-text"],["textEl",""],["stroke","none",1,"card-band"]],template:function(t,e){1&t&&(kn(),xo(0,"g",0),Co("click",(function(){return e.onClick()})),wo(1,"rect",1),mo(2,TT,1,3,"path",2),xo(3,"title"),Jo(4),bo(),xo(5,"foreignObject",3),Cn(),wo(6,"p",4),bo(),kn(),xo(7,"text",5,6),Jo(9),bo(),bo()),2&t&&(fo("transform",e.transform),vs(1),jo("fill",e.color),fo("width",e.cardWidth)("height",e.cardHeight),vs(1),yo("ngIf",e.bandColor&&e.bandColor!==e.color),vs(2),ta(e.label),vs(1),fo("x",e.textPadding[3])("y",e.cardHeight-e.textPadding[2])("width",e.textWidth)("height",e.labelFontSize+e.textPadding[2]),vs(1),jo("color",e.textColor)("font-size",e.labelFontSize,"px")("line-height",e.labelFontSize,"px"),yo("innerHTML",e.formattedLabel,Zi),vs(1),jo("fill",e.textColor)("font-size",e.textFontSize,"pt"),fo("x",e.textPadding[3])("y",e.textPadding[0]),vs(2),ea(" ",e.value," "))},directives:[th],encapsulation:2,changeDetection:0}),t})();function lk(t){const e=vm(t),{r:n,g:i,b:s,opacity:r}=e;return 0===r?e.toString():function({r:t,g:e,b:n},i){const s=i<0?0:255,r=i<0?-1*i:i;return`rgb(${t=Math.round((s-t)*r)+t}, ${e=Math.round((s-e)*r)+e}, ${n=Math.round((s-n)*r)+n})`}(e,(299*n+587*i+114*s)/1e3>=128?-.8:.8)}let ck=(()=>{class t{constructor(){this.innerPadding=15,this.emptyColor="rgba(0, 0, 0, 0)",this.animations=!0,this.select=new fl}ngOnChanges(t){this.update()}update(){if(this.data.length>2){const t=this.valueFormatting||(t=>t.value.toLocaleString()),e=this.data.map(e=>e&&e.data&&null!=e.data.value?t({data:e.data,label:e?e.data.name:"",value:e&&e.data?e.data.value:""}).length:0).sort((t,e)=>e-t),n=Math.ceil(this.data.length/2);this.medianSize=e[n]}const t=this.getCards();this.cards=t.filter(t=>null!==t.data.value),this.emptySlots=t.filter(t=>null===t.data.value)}getCards(){const t="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[0]+this.innerPadding[2],e="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[1]+this.innerPadding[3];return this.data.map((n,i)=>{let s=n.data.name;s=s&&"Date"===s.constructor.name?s.toLocaleDateString():s?s.toLocaleString():s;const r=n.data.value,o=s?this.colors.getColor(s):this.emptyColor,a=this.cardColor||o||"#000";return{x:n.x,y:n.y,width:n.width-e,height:n.height-t,color:a,bandColor:this.bandColor||o,textColor:this.textColor||lk(a),label:s,data:n.data,tooltipText:`${s}: ${r}`}})}trackBy(t,e){return e.label}onClick(t){this.select.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-card-series",""]],inputs:{innerPadding:"innerPadding",emptyColor:"emptyColor",animations:"animations",data:"data",slots:"slots",dims:"dims",colors:"colors",cardColor:"cardColor",bandColor:"bandColor",textColor:"textColor",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting"},outputs:{select:"select"},features:[Le],attrs:ST,decls:2,vars:4,consts:[["class","card-empty","rx","3","ry","3",3,"fill",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-card","",3,"x","y","width","height","color","bandColor","textColor","data","label","medianSize","valueFormatting","labelFormatting","animations","select",4,"ngFor","ngForOf","ngForTrackBy"],["rx","3","ry","3",1,"card-empty"],["ngx-charts-card","",3,"x","y","width","height","color","bandColor","textColor","data","label","medianSize","valueFormatting","labelFormatting","animations","select"]],template:function(t,e){1&t&&(mo(0,kT,1,6,"rect",0),mo(1,CT,1,13,"g",1)),2&t&&(yo("ngForOf",e.emptySlots)("ngForTrackBy",e.trackBy),vs(1),yo("ngForOf",e.cards)("ngForTrackBy",e.trackBy))},directives:[Kc,ak],encapsulation:2,changeDetection:0}),t})(),hk=(()=>{class t extends WT{constructor(){super(...arguments),this.emptyColor="rgba(0, 0, 0, 0)",this.innerPadding=15,this.margin=[10,10,10,10]}get clickable(){return!!this.select.observers.length}update(){super.update(),this.dims=kS({width:this.width,height:this.height,margins:this.margin}),this.formatDates(),this.domain=this.getDomain(),this.setColors(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`;const t=ik(this.dims,this.results.length,150),e=t[0]*t[1],n=this.results.slice();for(;n.length<e;)n.push({value:null});this.data=function(t,e,n,i){const s=Nb(),r=Nb(),o=t.width,a=t.height,[l,c]=ik(t,e.length,150),h=[],u=[];for(let g=0;g<c;g++)u.push(g);for(let g=0;g<l;g++)h.push(g);s.domain(h),r.domain(u),s.rangeRound([0,o],.1),r.rangeRound([0,a],.1);const d=[],f=i||e.map(t=>t?t.value:0).reduce((t,e)=>t+e,0),p=s.bandwidth(),m=r.bandwidth();for(let g=0;g<e.length;g++)d[g]={},d[g].data={name:e[g]?e[g].name:"",value:e[g]?e[g].value:void 0,extra:e[g]?e[g].extra:void 0,label:e[g]?e[g].label:""},d[g].x=s(g%l),d[g].y=r(Math.floor(g/l)),d[g].width=p,d[g].height=m,d[g].data.percent=f>0?d[g].data.value/f:0,d[g].data.total=f;return d}(this.dims,n,0,this.designatedTotal)}getDomain(){return this.results.map(t=>t.label)}onClick(t){this.select.emit(t)}setColors(){this.colors=new AS(this.scheme,"ordinal",this.domain,this.customColors)}}return t.\u0275fac=function(e){return uk(e||t)},t.\u0275cmp=ce({type:t,selectors:[["ngx-charts-number-card"]],inputs:{emptyColor:"emptyColor",innerPadding:"innerPadding",cardColor:"cardColor",bandColor:"bandColor",textColor:"textColor",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting",designatedTotal:"designatedTotal"},features:[ia],decls:3,vars:20,consts:[[3,"view","showLegend","animations"],[1,"number-card","chart"],["ngx-charts-card-series","",3,"colors","cardColor","bandColor","textColor","emptyColor","data","dims","innerPadding","valueFormatting","labelFormatting","animations","select"]],template:function(t,e){1&t&&(xo(0,"ngx-charts-chart",0),kn(),xo(1,"g",1),xo(2,"g",2),Co("select",(function(t){return e.onClick(t)})),bo(),bo(),bo()),2&t&&(yo("view",ul(17,M_,e.width,e.height))("showLegend",!1)("animations",e.animations),vs(1),zo("clickable",e.clickable),fo("transform",e.transform),vs(1),yo("colors",e.colors)("cardColor",e.cardColor)("bandColor",e.bandColor)("textColor",e.textColor)("emptyColor",e.emptyColor)("data",e.data)("dims",e.dims)("innerPadding",e.innerPadding)("valueFormatting",e.valueFormatting)("labelFormatting",e.labelFormatting)("animations",e.animations))},directives:[$T,ck],styles:[j_,"ngx-charts-number-card .cell .trimmed-label{font-size:12px;line-height:1em;overflow:hidden;pointer-events:none;text-align:left}ngx-charts-number-card .cell .trimmed-label p{margin:0;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap;width:100%}ngx-charts-number-card .cell .value-text{pointer-events:none}ngx-charts-number-card .number-card.clickable .cell .card,ngx-charts-number-card .number-card.clickable .cell .card-band{cursor:pointer}"],encapsulation:2,changeDetection:0}),t})();const uk=hi(hk);let dk=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[SS]]}),t})(),fk=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[SS]]}),t})(),pk=(()=>{class t extends WT{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.min=0,this.max=100,this.bigSegments=10,this.smallSegments=5,this.showAxis=!0,this.startAngle=-120,this.angleSpan=240,this.activeEntries=[],this.tooltipDisabled=!1,this.showText=!0,this.activate=new fl,this.deactivate=new fl,this.resizeScale=1,this.rotation="",this.textTransform="scale(1, 1)",this.cornerRadius=10}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>this.scaleText())}update(){super.update(),this.showAxis?this.margin||(this.margin=[60,100,60,100]):this.margin||(this.margin=[10,20,10,20]),this.startAngle<0&&(this.startAngle=this.startAngle%360+360),this.angleSpan=Math.min(this.angleSpan,360),this.dims=kS({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend,legendPosition:this.legendPosition}),this.domain=this.getDomain(),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.outerRadius=Math.min(this.dims.width,this.dims.height)/2,this.arcs=this.getArcs(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.margin[3]+this.dims.width/2}, ${this.margin[0]+this.dims.height/2})`,this.rotation=`rotate(${this.startAngle})`,setTimeout(()=>this.scaleText(),50)}getArcs(){const t=[],e=Math.min(.7*this.outerRadius/this.results.length,10),n=.7*e;this.textRadius=this.outerRadius-this.results.length*e,this.cornerRadius=Math.floor(n/2);let i=0;for(const s of this.results){const r=this.outerRadius-i*e,o=r-n,a={endAngle:this.angleSpan*Math.PI/180,innerRadius:o,outerRadius:r,data:{value:this.max,name:s.name}},l={endAngle:Math.min(this.valueScale(s.value),this.angleSpan)*Math.PI/180,innerRadius:o,outerRadius:r,data:{value:s.value,name:s.name}};t.push({backgroundArc:a,valueArc:l}),i++}return t}getDomain(){return this.results.map(t=>t.name)}getValueDomain(){const t=this.results.map(t=>t.value),e=Math.min(...t),n=Math.max(...t);return this.min=void 0!==this.min?Math.min(this.min,e):e,this.max=void 0!==this.max?Math.max(this.max,n):n,[this.min,this.max]}getValueScale(){return Mb().range([0,this.angleSpan]).nice().domain(this.valueDomain)}getDisplayValue(){const t=this.results.map(t=>t.value).reduce((t,e)=>t+e,0);return this.textValue&&0!==this.textValue.length?this.textValue.toLocaleString():this.valueFormatting?this.valueFormatting(t):t.toLocaleString()}scaleText(t=!0){if(!this.showText)return;const{width:e}=this.textEl.nativeElement.getBoundingClientRect(),n=this.resizeScale;this.resizeScale=0===e?1:Math.floor(this.textRadius/(e/this.resizeScale)*100)/100,this.resizeScale!==n&&(this.textTransform=`scale(${this.resizeScale}, ${this.resizeScale})`,this.cd.markForCheck(),t&&setTimeout(()=>this.scaleText(!1),50))}onClick(t){this.select.emit(t)}getLegendOptions(){return{scaleType:"ordinal",colors:this.colors,domain:this.domain,title:this.legendTitle,position:this.legendPosition}}setColors(){this.colors=new AS(this.scheme,"ordinal",this.domain,this.customColors)}onActivate(t){this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const e=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value);this.activeEntries.splice(e,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.name===e.name&&t.series===e.series)}trackBy(t,e){return e.valueArc.data.name}}return t.\u0275fac=function(e){return mk(e||t)},t.\u0275cmp=ce({type:t,selectors:[["ngx-charts-gauge"]],contentQueries:function(t,e,n){var i;1&t&&Al(n,D_,!0),2&t&&Sl(i=El())&&(e.tooltipTemplate=i.first)},viewQuery:function(t,e){var n;1&t&&kl(wT,!0),2&t&&Sl(n=El())&&(e.textEl=n.first)},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",min:"min",max:"max",bigSegments:"bigSegments",smallSegments:"smallSegments",showAxis:"showAxis",startAngle:"startAngle",angleSpan:"angleSpan",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",showText:"showText",margin:"margin",textValue:"textValue",units:"units",results:"results",axisTickFormatting:"axisTickFormatting",valueFormatting:"valueFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[ia],decls:5,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"gauge","chart"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-gauge-axis","",3,"bigSegments","smallSegments","min","max","radius","angleSpan","valueScale","startAngle","tickFormatting",4,"ngIf"],["alignment-baseline","central",3,"textAnchor",4,"ngIf"],["ngx-charts-gauge-arc","",3,"backgroundArc","valueArc","cornerRadius","colors","isActive","tooltipDisabled","tooltipTemplate","valueFormatting","animations","select","activate","deactivate"],["ngx-charts-gauge-axis","",3,"bigSegments","smallSegments","min","max","radius","angleSpan","valueScale","startAngle","tickFormatting"],["alignment-baseline","central"],["textEl",""],["x","0","dy","0"],["x","0","dy","1.2em"]],template:function(t,e){1&t&&(xo(0,"ngx-charts-chart",0),Co("legendLabelClick",(function(t){return e.onClick(t)}))("legendLabelActivate",(function(t){return e.onActivate(t)}))("legendLabelDeactivate",(function(t){return e.onDeactivate(t)})),kn(),xo(1,"g",1),mo(2,AT,2,10,"g",2),mo(3,ET,1,9,"g",3),mo(4,LT,6,5,"text",4),bo(),bo()),2&t&&(yo("view",ul(10,M_,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),vs(1),fo("transform",e.transform),vs(1),yo("ngForOf",e.arcs)("ngForTrackBy",e.trackBy),vs(1),yo("ngIf",e.showAxis),vs(1),yo("ngIf",e.showText))},directives:function(){return[$T,Kc,th,gk,yk]},styles:[j_,".gauge .background-arc path{fill:rgba(0,0,0,.05)}.gauge .gauge-tick path{stroke:#666}.gauge .gauge-tick text{fill:#666;font-size:12px;font-weight:700}.gauge .gauge-tick-large path{stroke-width:2px}.gauge .gauge-tick-small path{stroke-width:1px}"],encapsulation:2,changeDetection:0}),t})();const mk=hi(pk);let gk=(()=>{class t{constructor(){this.isActive=!1,this.tooltipDisabled=!1,this.animations=!0,this.select=new fl,this.activate=new fl,this.deactivate=new fl}tooltipText(t){const e=oS(t.data.name);let n;return n=this.valueFormatting?this.valueFormatting(t.data.value):oS(t.data.value),`\n <span class="tooltip-label">${aS(e)}</span>\n <span class="tooltip-val">${n}</span>\n `}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-gauge-arc",""]],inputs:{isActive:"isActive",tooltipDisabled:"tooltipDisabled",animations:"animations",backgroundArc:"backgroundArc",valueArc:"valueArc",cornerRadius:"cornerRadius",colors:"colors",valueFormatting:"valueFormatting",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},attrs:DT,decls:2,vars:23,consts:[["ngx-charts-pie-arc","",1,"background-arc",3,"startAngle","endAngle","innerRadius","outerRadius","cornerRadius","data","animate","pointerEvents"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"startAngle","endAngle","innerRadius","outerRadius","cornerRadius","fill","data","animate","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"]],template:function(t,e){1&t&&(kn(),wo(0,"g",0),xo(1,"g",1),Co("select",(function(t){return e.select.emit(t)}))("activate",(function(t){return e.activate.emit(t)}))("deactivate",(function(t){return e.deactivate.emit(t)})),bo()),2&t&&(yo("startAngle",0)("endAngle",e.backgroundArc.endAngle)("innerRadius",e.backgroundArc.innerRadius)("outerRadius",e.backgroundArc.outerRadius)("cornerRadius",e.cornerRadius)("data",e.backgroundArc.data)("animate",!1)("pointerEvents",!1),vs(1),yo("startAngle",0)("endAngle",e.valueArc.endAngle)("innerRadius",e.valueArc.innerRadius)("outerRadius",e.valueArc.outerRadius)("cornerRadius",e.cornerRadius)("fill",e.colors.getColor(e.valueArc.data.name))("data",e.valueArc.data)("animate",e.animations)("isActive",e.isActive)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",e.tooltipTemplate?void 0:e.tooltipText(e.valueArc))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.valueArc.data))},directives:[tk,sS],encapsulation:2,changeDetection:0}),t})(),yk=(()=>{class t{constructor(){this.rotate=""}ngOnChanges(t){this.update()}update(){this.rotationAngle=-90+this.startAngle,this.rotate=`rotate(${this.rotationAngle})`,this.ticks=this.getTicks()}getTicks(){const t=this.angleSpan/this.bigSegments,e=t/this.smallSegments,n={big:[],small:[]},i=this.radius+10,s=i+20+10;for(let r=0;r<=this.bigSegments;r++){const o=r*t,a=o*Math.PI/180,l=this.getTextAnchor(o);let c=!1;if(0===r&&360===this.angleSpan&&(c=!0),!c){let t=Number.parseFloat(this.valueScale.invert(o).toString()).toLocaleString();this.tickFormatting&&(t=this.tickFormatting(t)),n.big.push({line:this.getTickPath(i,20,a),textAnchor:l,text:t,textTransform:`\n translate(${s*Math.cos(a)}, ${s*Math.sin(a)}) rotate(${-this.rotationAngle})\n `})}if(r!==this.bigSegments)for(let t=1;t<=this.smallSegments;t++){const s=(o+t*e)*Math.PI/180;n.small.push({line:this.getTickPath(i,10,s)})}}return n}getTextAnchor(t){let e="middle";return(t=(this.startAngle+t)%360)>45&&t<=135?e="start":t>225&&t<=315&&(e="end"),e}getTickPath(t,e,n){const i=t*Math.sin(n),s=(t+e)*Math.sin(n),r=[{x:t*Math.cos(n),y:i},{x:(t+e)*Math.cos(n),y:s}];return Kb().x(t=>t.x).y(t=>t.y)(r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["g","ngx-charts-gauge-axis",""]],inputs:{bigSegments:"bigSegments",smallSegments:"smallSegments",min:"min",max:"max",angleSpan:"angleSpan",startAngle:"startAngle",radius:"radius",valueScale:"valueScale",tickFormatting:"tickFormatting"},features:[Le],attrs:FT,decls:4,vars:4,consts:[["class","gauge-tick gauge-tick-large",4,"ngFor","ngForOf"],["class","gauge-tick gauge-tick-small",4,"ngFor","ngForOf"],[1,"gauge-tick","gauge-tick-large"],["alignment-baseline","central"],[1,"gauge-tick","gauge-tick-small"]],template:function(t,e){1&t&&(kn(),xo(0,"g"),mo(1,MT,2,1,"g",0),mo(2,OT,3,4,"g",0),mo(3,IT,2,1,"g",1),bo()),2&t&&(fo("transform",e.rotate),vs(1),yo("ngForOf",e.ticks.big),vs(1),yo("ngForOf",e.ticks.big),vs(1),yo("ngForOf",e.ticks.small))},directives:[Kc],encapsulation:2,changeDetection:0}),t})(),vk=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[SS,rk,WS]]}),t})(),xk=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[SS,HS,WS,qS,US,KS,ok,dk,rk,fk,vk]}),t})();var bk=n("5vqC");class wk{constructor(t,e,n,i,s){this.element=t,this.newWidth=e,this.newHeight=n,this.oldWidth=i,this.oldHeight=s}}let _k=(()=>{class t{constructor(t){this.element=t,this.resized=new fl}ngOnInit(){bk.ResizeSensor&&(this.resizeSensor=new bk.ResizeSensor(this.element.nativeElement,()=>this.onResized()))}ngOnDestroy(){this.resizeSensor&&this.resizeSensor.detach()}onResized(){const t=this.element.nativeElement.clientWidth,e=this.element.nativeElement.clientHeight;if(t===this.oldWidth&&e===this.oldHeight)return;const n=new wk(this.element,t,e,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.emit(n)}}return t.\u0275fac=function(e){return new(e||t)(go(xa))},t.\u0275dir=me({type:t,selectors:[["","resized",""]],outputs:{resized:"resized"}}),t})(),Tk=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[]]}),t})();const Sk=["chartContainer"];function kk(t,e){if(1&t){const t=So();_o(0),xo(1,"ngx-charts-bar-vertical",3),Co("select",(function(e){return tn(t),Lo().onSelect(e)})),bo(),To()}if(2&t){const t=Lo();vs(1),yo("results",t.chart.results)("scheme",t.chart.scheme)("customColors",t.chart.customColors)("animations",t.chart.animations)("legend",t.chart.legend)("legendTitle",t.chart.legendTitle)("gradient",t.chart.gradient)("activeEntries",t.chart.activeEntries)("tooltipDisabled",t.chart.tooltipDisabled)("schemeType",t.chart.schemeType)("xAxis",t.chart.xAxis)("yAxis",t.chart.yAxis)("showXAxisLabel",t.chart.showXAxisLabel)("showYAxisLabel",t.chart.showYAxisLabel)("xAxisLabel",t.chart.xAxisLabel)("yAxisLabel",t.chart.yAxisLabel)("showGridLines",t.chart.showGridLines)("xAxisTicks",t.chart.xAxisTicks)("yAxisTicks",t.chart.yAxisTicks)("barPadding",t.chart.barPadding)("roundDomains",t.chart.roundDomains)("roundEdges",t.chart.roundEdges)("yScaleMax",t.chart.yScaleMax)("yScaleMin",t.chart.yScaleMin)("showDataLabel",t.chart.showDataLabel)}}function Ck(t,e){if(1&t){const t=So();_o(0),xo(1,"ngx-charts-pie-chart",4),Co("select",(function(e){return tn(t),Lo().onSelect(e)})),bo(),To()}if(2&t){const t=Lo();vs(1),yo("results",t.chart.results)("scheme",t.chart.scheme)("customColors",t.chart.customColors)("animations",t.chart.animations)("labels",t.chart.labels)("trimLabels",t.chart.trimLabels)("maxLabelLength",t.chart.maxLabelLength)("legend",t.chart.legend)("legendTitle",t.chart.legendTitle)("explodeSlices",t.chart.explodeSlices)("doughnut",t.chart.doughnut)("arcWidth",t.chart.arcWidth)("gradient",t.chart.gradient)("activeEntries",t.chart.activeEntries)("tooltipDisabled",t.chart.tooltipDisabled)("schemeType",t.chart.schemeType)}}function Ak(t,e){if(1&t){const t=So();_o(0),xo(1,"ngx-charts-number-card",5),Co("select",(function(e){return tn(t),Lo().onSelect(e)})),bo(),To()}if(2&t){const t=Lo();vs(1),yo("results",t.chart.results)("scheme",t.chart.scheme)("schemeType",t.chart.schemeType)("customColors",t.chart.customColors)("animations",t.chart.animations)("cardColor",t.chart.cardColor)("bandColor",t.chart.bandColor)("emptyColor",t.chart.emptyColor)("innerPadding",t.chart.innerPadding)}}function Ek(t,e){if(1&t){const t=So();_o(0),xo(1,"ngx-charts-gauge",6),Co("select",(function(e){return tn(t),Lo().onSelect(e)})),bo(),To()}if(2&t){const t=Lo();vs(1),yo("results",t.chart.results)("scheme",t.chart.scheme)("schemeType",t.chart.schemeType)("customColors",t.chart.customColors)("animations",t.chart.animations)("legend",t.chart.legend)("legendTitle",t.chart.legendTitle)("units",t.chart.units)("min",t.chart.min)("max",t.chart.max)("bigSegments",t.chart.bigSegments)("smallSegments",t.chart.smallSegments)("showAxis",t.chart.showAxis)("startAngle",t.chart.startAngle)("angleSpan",t.chart.angleSpan)("activeEntries",t.chart.activeEntries)("tooltipDisabled",t.chart.tooltipDisabled)}}function Lk(t,e){if(1&t){const t=So();_o(0),xo(1,"ngx-charts-area-chart-normalized",7),Co("select",(function(e){return tn(t),Lo().onSelect(e)})),bo(),To()}if(2&t){const t=Lo();vs(1),yo("results",t.chart.results)("scheme",t.chart.scheme)("schemeType",t.chart.schemeType)("customColors",t.chart.customColors)("animations",t.chart.animations)("legend",t.chart.legend)("legendTitle",t.chart.legendTitle)("xAxis",t.chart.xAxis)("yAxis",t.chart.yAxis)("showXAxisLabel",t.chart.showXAxisLabel)("showYAxisLabel",t.chart.showYAxisLabel)("xAxisLabel",t.chart.xAxisLabel)("yAxisLabel",t.chart.yAxisLabel)("timeline",t.chart.timeline)("gradient",t.chart.gradient)("showGridLines",t.chart.showGridLines)("activeEntries",t.chart.activeEntries)("schemeType",t.chart.schemeType)("xAxisTicks",t.chart.xAxisTicks)("yAxisTicks",t.chart.yAxisTicks)("roundDomains",t.chart.roundDomains)("tooltipDisabled",t.chart.tooltipDisabled)}}function Dk(t,e){if(1&t){const t=So();_o(0),xo(1,"ngx-charts-area-chart-stacked",8),Co("select",(function(e){return tn(t),Lo().onSelect(e)})),bo(),To()}if(2&t){const t=Lo();vs(1),yo("results",t.chart.results)("scheme",t.chart.scheme)("schemeType",t.chart.schemeType)("customColors",t.chart.customColors)("animations",t.chart.animations)("legend",t.chart.legend)("legendTitle",t.chart.legendTitle)("xAxis",t.chart.xAxis)("yAxis",t.chart.yAxis)("showXAxisLabel",t.chart.showXAxisLabel)("showYAxisLabel",t.chart.showYAxisLabel)("xAxisLabel",t.chart.xAxisLabel)("yAxisLabel",t.chart.yAxisLabel)("timeline",t.chart.timeline)("gradient",t.chart.gradient)("showGridLines",t.chart.showGridLines)("activeEntries",t.chart.activeEntries)("schemeType",t.chart.schemeType)("xAxisTicks",t.chart.xAxisTicks)("yAxisTicks",t.chart.yAxisTicks)("roundDomains",t.chart.roundDomains)("tooltipDisabled",t.chart.tooltipDisabled)("xScaleMin",t.chart.xScaleMin)("xScaleMax",t.chart.xScaleMax)("yScaleMin",t.chart.yScaleMin)("yScaleMax",t.chart.yScaleMax)}}function Fk(t,e){if(1&t){const t=So();_o(0),xo(1,"ngx-charts-line-chart",9),Co("select",(function(e){return tn(t),Lo().onSelect(e)})),bo(),To()}if(2&t){const t=Lo();vs(1),yo("results",t.chart.results)("scheme",t.chart.scheme)("schemeType",t.chart.schemeType)("customColors",t.chart.customColors)("animations",t.chart.animations)("legend",t.chart.legend)("legendTitle",t.chart.legendTitle)("xAxis",t.chart.xAxis)("yAxis",t.chart.yAxis)("showXAxisLabel",t.chart.showXAxisLabel)("showYAxisLabel",t.chart.showYAxisLabel)("xAxisLabel",t.chart.xAxisLabel)("yAxisLabel",t.chart.yAxisLabel)("timeline",t.chart.timeline)("gradient",t.chart.gradient)("showGridLines",t.chart.showGridLines)("activeEntries",t.chart.activeEntries)("schemeType",t.chart.schemeType)("xAxisTicks",t.chart.xAxisTicks)("yAxisTicks",t.chart.yAxisTicks)("roundDomains",t.chart.roundDomains)("tooltipDisabled",t.chart.tooltipDisabled)("autoScale",t.chart.autoScale)("gradient",t.chart.gradient)("rangeFillOpacity",t.chart.rangeFillOpacity)("showRefLines",t.chart.showRefLines)("referenceLines",t.chart.referenceLines)("showRefLabels",t.chart.showRefLabels)("xScaleMin",t.chart.xScaleMin)("xScaleMax",t.chart.xScaleMax)("yScaleMin",t.chart.yScaleMin)("yScaleMax",t.chart.yScaleMax)}}let Mk=(()=>{class t{constructor(t,e){this.elementRef=t,this.tooltipService=e}ngAfterViewInit(){this.tooltipService.injectionService.setRootViewContainer(this.chartContainer)}onResized(t){window.dispatchEvent(new Event("resize"))}ngOnChanges(){this.chart={type:this.type,results:this.results,legendTitle:this.legendTitle||"Legend",scheme:this.scheme||"cool",animations:this.animations||!0,legend:this.legend||!1,labels:this.labels||!1,customColors:this.customColors||void 0,schemeType:this.schemeType||"ordinal",explodeSlices:this.explodeSlices||!1,doughnut:this.doughnut||!1,arcWidth:this.arcWidth||.25,gradient:this.gradient||!1,activeEntries:this.activeEntries||[],tooltipDisabled:this.tooltipDisabled||!1,trimLabels:this.trimLabels||!0,maxLabelLength:this.maxLabelLength||10,xAxis:this.xAxis||void 0,yAxis:this.yAxis||void 0,showXAxisLabel:this.showXAxisLabel||void 0,showYAxisLabel:this.showYAxisLabel||void 0,xAxisLabel:this.xAxisLabel||void 0,yAxisLabel:this.yAxisLabel||void 0,showGridLines:this.showGridLines||!0,xAxisTicks:this.xAxisTicks||void 0,yAxisTicks:this.yAxisTicks||void 0,barPadding:this.barPadding||8,roundDomains:this.roundDomains||!1,roundEdges:this.roundEdges||!0,yScaleMax:this.yScaleMax||void 0,yScaleMin:this.yScaleMin||void 0,showDataLabel:this.showDataLabel||!1,cardColor:this.cardColor||void 0,bandColor:this.bandColor||void 0,emptyColor:this.emptyColor||"rgba(0, 0, 0, 0)",innerPadding:this.innerPadding||15,textColor:this.textColor||void 0,legendPosition:this.legendPosition||"right",min:this.min||0,max:this.max||100,units:this.units||void 0,bigSegments:this.bigSegments||10,smallSegments:this.smallSegments||5,showAxis:this.showAxis||!0,startAngle:this.startAngle||-120,angleSpan:this.angleSpan||240,timeline:this.timeline||void 0,xScaleMin:this.xScaleMin||void 0,xScaleMax:this.xScaleMax||void 0,autoScale:this.autoScale||void 0,rangeFillOpacity:this.rangeFillOpacity||void 0,showRefLines:this.showRefLines||!1,referenceLines:this.referenceLines||void 0,showRefLabels:this.showRefLabels||!0}}}return t.\u0275fac=function(e){return new(e||t)(go(xa),go(BT))},t.\u0275cmp=ce({type:t,selectors:[["drayman-ngx-charts-internal"]],viewQuery:function(t,e){var n,i,s;1&t&&(i=Sk,!0,s=Wa,Cl(Je(),Ke(),i,true,s,!0)),2&t&&Sl(n=El())&&(e.chartContainer=n.first)},inputs:{onSelect:"onSelect",type:"type",results:"results",legendTitle:"legendTitle",scheme:"scheme",animations:"animations",legend:"legend",labels:"labels",customColors:"customColors",schemeType:"schemeType",explodeSlices:"explodeSlices",doughnut:"doughnut",arcWidth:"arcWidth",gradient:"gradient",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",showGridLines:"showGridLines",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",cardColor:"cardColor",bandColor:"bandColor",emptyColor:"emptyColor",innerPadding:"innerPadding",textColor:"textColor",legendPosition:"legendPosition",min:"min",max:"max",units:"units",bigSegments:"bigSegments",smallSegments:"smallSegments",showAxis:"showAxis",startAngle:"startAngle",angleSpan:"angleSpan",timeline:"timeline",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",autoScale:"autoScale",rangeFillOpacity:"rangeFillOpacity",showRefLines:"showRefLines",referenceLines:"referenceLines",showRefLabels:"showRefLabels"},features:[Le],decls:9,vars:8,consts:[[2,"width","100%","height","100%",3,"ngSwitch","resized"],["chartContainer",""],[4,"ngSwitchCase"],[3,"results","scheme","customColors","animations","legend","legendTitle","gradient","activeEntries","tooltipDisabled","schemeType","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","xAxisTicks","yAxisTicks","barPadding","roundDomains","roundEdges","yScaleMax","yScaleMin","showDataLabel","select"],[3,"results","scheme","customColors","animations","labels","trimLabels","maxLabelLength","legend","legendTitle","explodeSlices","doughnut","arcWidth","gradient","activeEntries","tooltipDisabled","schemeType","select"],[3,"results","scheme","schemeType","customColors","animations","cardColor","bandColor","emptyColor","innerPadding","select"],[3,"results","scheme","schemeType","customColors","animations","legend","legendTitle","units","min","max","bigSegments","smallSegments","showAxis","startAngle","angleSpan","activeEntries","tooltipDisabled","select"],[3,"results","scheme","schemeType","customColors","animations","legend","legendTitle","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","timeline","gradient","showGridLines","activeEntries","xAxisTicks","yAxisTicks","roundDomains","tooltipDisabled","select"],[3,"results","scheme","schemeType","customColors","animations","legend","legendTitle","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","timeline","gradient","showGridLines","activeEntries","xAxisTicks","yAxisTicks","roundDomains","tooltipDisabled","xScaleMin","xScaleMax","yScaleMin","yScaleMax","select"],[3,"results","scheme","schemeType","customColors","animations","legend","legendTitle","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","timeline","gradient","showGridLines","activeEntries","xAxisTicks","yAxisTicks","roundDomains","tooltipDisabled","autoScale","rangeFillOpacity","showRefLines","referenceLines","showRefLabels","xScaleMin","xScaleMax","yScaleMin","yScaleMax","select"]],template:function(t,e){1&t&&(xo(0,"div",0,1),Co("resized",(function(t){return e.onResized(t)})),mo(2,kk,2,25,"ng-container",2),mo(3,Ck,2,16,"ng-container",2),mo(4,Ak,2,9,"ng-container",2),mo(5,Ek,2,17,"ng-container",2),mo(6,Lk,2,22,"ng-container",2),mo(7,Dk,2,26,"ng-container",2),mo(8,Fk,2,32,"ng-container",2),bo()),2&t&&(yo("ngSwitch",null==e.chart?null:e.chart.type),vs(2),yo("ngSwitchCase","verticalBar"),vs(1),yo("ngSwitchCase","pie"),vs(1),yo("ngSwitchCase","numberCard"),vs(1),yo("ngSwitchCase","gauge"),vs(1),yo("ngSwitchCase","areaNormalized"),vs(1),yo("ngSwitchCase","areaStacked"),vs(1),yo("ngSwitchCase","line"))},directives:[sh,_k,rh,jS,ek,hk,pk,DS,MS,GS],styles:[""]}),t})(),Ok=(()=>{class t{constructor(t){this.injector=t}ngDoBootstrap(){const t=function(t,e){const n=function(t,e){return e.get(va).resolveComponentFactory(t).inputs}(t,e.injector),i=e.strategyFactory||new zc(t,e.injector),s=function(t){const e={};return t.forEach(({propName:t,templateName:n})=>{var i;e[(i=n,i.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))]=t}),e}(n);class r extends $c{constructor(t){super(),this.injector=t}get ngElementStrategy(){if(!this._ngElementStrategy){const t=this._ngElementStrategy=i.create(this.injector||e.injector),s=n.filter(({propName:t})=>this.hasOwnProperty(t)).map(({propName:t})=>[t,this[t]]);this instanceof r?s.forEach(([t])=>delete this[t]):Yc(n,this),s.forEach(([e,n])=>t.setInputValue(e,n))}return this._ngElementStrategy}attributeChangedCallback(t,e,n,i){this.ngElementStrategy.setInputValue(s[t],n)}connectedCallback(){let t=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),t=!0),this.ngElementStrategy.connect(this),t||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(t=>{const e=function(t,e,n){if("function"!=typeof CustomEvent){const i=t.createEvent("CustomEvent");return i.initCustomEvent(e,!1,!1,n),i}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,t.name,t.value);this.dispatchEvent(e)})}}return r.observedAttributes=Object.keys(s),Object.defineProperty(r.prototype,"ngElementStrategy",{enumerable:!0}),Yc(n,r.prototype),r}(Mk,{injector:this.injector});customElements.define("drayman-ngx-charts",t)}}return t.\u0275mod=fe({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)(qt(so))},imports:[[Rh,xf,xk,Tk]]}),t})();(function(){if(ki)throw new Error("Cannot enable prod mode after platform setup.");Si=!1})(),Ph().bootstrapModule(Ok).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}});
1
+ (()=>{var Uw={289:(mn,oi,ut)=>{mn.exports={ResizeSensor:ut(294),ElementQueries:ut(322)}},322:function(mn,oi,ut){"use strict";var bi,cn;"undefined"!=typeof window&&window,bi=[ut(294)],void 0!==(cn=function(Bn){var Gt=function(){var se,Mt={},Fn=[];function To(R){R||(R=document.documentElement);var z=window.getComputedStyle(R,null).fontSize;return parseFloat(z)||16}function ht(R,z){var ue=z.split(/\d/),le=ue[ue.length-1];switch(z=parseFloat(z),le){case"px":default:return z;case"em":return z*To(R);case"rem":return z*To();case"vw":return z*document.documentElement.clientWidth/100;case"vh":return z*document.documentElement.clientHeight/100;case"vmin":case"vmax":var Re=document.documentElement.clientWidth/100,vt=document.documentElement.clientHeight/100;return z*(0,Math["vmin"===le?"min":"max"])(Re,vt)}}function De(R,z){this.element=R;var ue,le,Re,vt,Jt,ot,Ut,Yt,ai=["min-width","min-height","max-width","max-height"];this.call=function(){for(ue in Re=function re(R){if(!R.getBoundingClientRect)return{width:R.offsetWidth,height:R.offsetHeight};var z=R.getBoundingClientRect();return{width:Math.round(z.width),height:Math.round(z.height)}}(this.element),ot={},Mt[z])!Mt[z].hasOwnProperty(ue)||(vt=ht(this.element,(le=Mt[z][ue]).value),Jt="width"===le.property?Re.width:Re.height,Ut="","min"===le.mode&&Jt>=vt&&(Ut+=le.value),"max"===le.mode&&Jt<=vt&&(Ut+=le.value),ot[Yt=le.mode+"-"+le.property]||(ot[Yt]=""),Ut&&-1===(" "+ot[Yt]+" ").indexOf(" "+Ut+" ")&&(ot[Yt]+=" "+Ut));for(var zn in ai)!ai.hasOwnProperty(zn)||(ot[ai[zn]]?this.element.setAttribute(ai[zn],ot[ai[zn]].substr(1)):this.element.removeAttribute(ai[zn]))}}function Hn(R,z){R.elementQueriesSetupInformation||(R.elementQueriesSetupInformation=new De(R,z)),R.elementQueriesSensor||(R.elementQueriesSensor=new Bn(R,function(){R.elementQueriesSetupInformation.call()}))}function Vn(R,z,ue,le){if(void 0===Mt[R]){Mt[R]=[];var Re=Fn.length;se.innerHTML+="\n"+R+" {animation: 0.1s element-queries;}",se.innerHTML+="\n"+R+" > .resize-sensor {min-width: "+Re+"px;}",Fn.push(R)}Mt[R].push({mode:z,property:ue,value:le})}function ae(R){var z;if(document.querySelectorAll&&(z=R?R.querySelectorAll.bind(R):document.querySelectorAll.bind(document)),!z&&"undefined"!=typeof $$&&(z=$$),!z&&"undefined"!=typeof jQuery&&(z=jQuery),!z)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return z}function $n(R){var z=[],ue=[],le=[],Re=0,vt=-1,Jt=[];for(var ot in R.children)if(R.children.hasOwnProperty(ot)&&R.children[ot].tagName&&"img"===R.children[ot].tagName.toLowerCase()){z.push(R.children[ot]);var Ut=R.children[ot].getAttribute("min-width")||R.children[ot].getAttribute("data-min-width"),Yt=R.children[ot].getAttribute("data-src")||R.children[ot].getAttribute("url");le.push(Yt),ue.push({minWidth:Ut}),Ut?R.children[ot].style.display="none":(Re=z.length-1,R.children[ot].style.display="block")}function zn(){var vn,qe=!1;for(vn in z)!z.hasOwnProperty(vn)||ue[vn].minWidth&&R.offsetWidth>ue[vn].minWidth&&(qe=vn);if(qe||(qe=Re),vt!==qe)if(Jt[qe])z[vt].style.display="none",z[qe].style.display="block",vt=qe;else{var Ts=new Image;Ts.onload=function(){z[qe].src=le[qe],z[vt].style.display="none",z[qe].style.display="block",Jt[qe]=!0,vt=qe},Ts.src=le[qe]}else z[qe].src=le[qe]}vt=Re,R.resizeSensorInstance=new Bn(R,zn),zn()}var yn=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,Hs=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function Wt(R){var z,ue,le,Re;for(R=R.replace(/'/g,'"');null!==(z=yn.exec(R));)for(ue=z[1]+z[3],le=z[2];null!==(Re=Hs.exec(le));)Vn(ue,Re[1],Re[2],Re[3])}function Hi(R){var z="";if(R)if("string"==typeof R)(-1!==(R=R.toLowerCase()).indexOf("min-width")||-1!==R.indexOf("max-width"))&&Wt(R);else for(var ue=0,le=R.length;ue<le;ue++)1===R[ue].type?(-1!==(z=R[ue].selectorText||R[ue].cssText).indexOf("min-height")||-1!==z.indexOf("max-height")||-1!==z.indexOf("min-width")||-1!==z.indexOf("max-width"))&&Wt(z):4===R[ue].type?Hi(R[ue].cssRules||R[ue].rules):3===R[ue].type&&R[ue].styleSheet.hasOwnProperty("cssRules")&&Hi(R[ue].styleSheet.cssRules)}var bs=!1;this.init=function(){var R="animationstart";void 0!==document.documentElement.style.webkitAnimationName?R="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?R="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(R="oanimationstart"),document.body.addEventListener(R,function(le){var Re=le.target,vt=Re&&window.getComputedStyle(Re,null),Jt=vt&&vt.getPropertyValue("animation-name");if(Jt&&-1!==Jt.indexOf("element-queries")){Re.elementQueriesSensor=new Bn(Re,function(){Re.elementQueriesSetupInformation&&Re.elementQueriesSetupInformation.call()});var Yt=window.getComputedStyle(Re.resizeSensor,null).getPropertyValue("min-width");Yt=parseInt(Yt.replace("px","")),Hn(le.target,Fn[Yt])}}),bs||((se=document.createElement("style")).type="text/css",se.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",se.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(se),bs=!0);for(var z=0,ue=document.styleSheets.length;z<ue;z++)try{document.styleSheets[z].href&&0===document.styleSheets[z].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[z].href),Hi(document.styleSheets[z].cssRules||document.styleSheets[z].rules||document.styleSheets[z].cssText)}catch(le){}!function je(){for(var z=ae()("[data-responsive-image],[responsive-image]"),ue=0,le=z.length;ue<le;ue++)$n(z[ue])}()},this.findElementQueriesElements=function(R){!function _n(R){var z=ae(R);for(var ue in Mt)if(Mt.hasOwnProperty(ue))for(var le=z(ue,R),Re=0,vt=le.length;Re<vt;Re++)Hn(le[Re],ue)}(R)},this.update=function(){this.init()}};Gt.update=function(){Gt.instance.update()},Gt.detach=function(se){se.elementQueriesSetupInformation?(se.elementQueriesSensor.detach(),delete se.elementQueriesSetupInformation,delete se.elementQueriesSensor):se.resizeSensorInstance&&(se.resizeSensorInstance.detach(),delete se.resizeSensorInstance)},Gt.init=function(){Gt.instance||(Gt.instance=new Gt),Gt.instance.init()};return Gt.findElementQueriesElements=function(se){Gt.instance.findElementQueriesElements(se)},Gt.listen=function(){!function(se){if(document.addEventListener)document.addEventListener("DOMContentLoaded",se,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var Mt=setInterval(function(){/loaded|complete/i.test(document.readyState)&&(se(),clearInterval(Mt))},10);else window.onload=se}(Gt.init)},Gt}.apply(oi,bi))&&(mn.exports=cn)},294:function(mn,oi,ut){"use strict";var bi;"undefined"!=typeof window&&window,void 0!==(bi=function(){if("undefined"==typeof window)return null;var cn="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Bn=cn.requestAnimationFrame||cn.mozRequestAnimationFrame||cn.webkitRequestAnimationFrame||function(re){return cn.setTimeout(re,20)},Gt=cn.cancelAnimationFrame||cn.mozCancelAnimationFrame||cn.webkitCancelAnimationFrame||function(re){cn.clearTimeout(re)};function Bi(re,ht){var De=Object.prototype.toString.call(re),Hn="[object Array]"===De||"[object NodeList]"===De||"[object HTMLCollection]"===De||"[object Object]"===De||"undefined"!=typeof jQuery&&re instanceof jQuery||"undefined"!=typeof Elements&&re instanceof Elements,Vn=0,ae=re.length;if(Hn)for(;Vn<ae;Vn++)ht(re[Vn]);else ht(re)}function se(re){if(!re.getBoundingClientRect)return{width:re.offsetWidth,height:re.offsetHeight};var ht=re.getBoundingClientRect();return{width:Math.round(ht.width),height:Math.round(ht.height)}}function Mt(re,ht){Object.keys(ht).forEach(function(De){re.style[De]=ht[De]})}var Fn=function(re,ht){var De=0;function Hn(){var _n,$n,ae=[];this.add=function(je){ae.push(je)},this.call=function(je){for(_n=0,$n=ae.length;_n<$n;_n++)ae[_n].call(this,je)},this.remove=function(je){var yn=[];for(_n=0,$n=ae.length;_n<$n;_n++)ae[_n]!==je&&yn.push(ae[_n]);ae=yn},this.length=function(){return ae.length}}function Vn(ae,_n){if(ae){if(ae.resizedAttached)return void ae.resizedAttached.add(_n);ae.resizedAttached=new Hn,ae.resizedAttached.add(_n),ae.resizeSensor=document.createElement("div"),ae.resizeSensor.dir="ltr",ae.resizeSensor.className="resize-sensor";var $n={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},je={position:"absolute",left:"0px",top:"0px",transition:"0s"};Mt(ae.resizeSensor,$n);var yn=document.createElement("div");yn.className="resize-sensor-expand",Mt(yn,$n);var Hs=document.createElement("div");Mt(Hs,je),yn.appendChild(Hs);var Wt=document.createElement("div");Wt.className="resize-sensor-shrink",Mt(Wt,$n);var Hi=document.createElement("div");Mt(Hi,je),Mt(Hi,{width:"200%",height:"200%"}),Wt.appendChild(Hi),ae.resizeSensor.appendChild(yn),ae.resizeSensor.appendChild(Wt),ae.appendChild(ae.resizeSensor);var bs=window.getComputedStyle(ae),R=bs?bs.getPropertyValue("position"):null;"absolute"!==R&&"relative"!==R&&"fixed"!==R&&"sticky"!==R&&(ae.style.position="relative");var z=!1,ue=0,le=se(ae),Re=0,vt=0,Jt=!0;De=0;var Ut=function(){if(Jt){if(0===ae.offsetWidth&&0===ae.offsetHeight)return void(De||(De=Bn(function(){De=0,Ut()})));Jt=!1}var qe,vn;vn=ae.offsetHeight,Hs.style.width=(qe=ae.offsetWidth)+10+"px",Hs.style.height=vn+10+"px",yn.scrollLeft=qe+10,yn.scrollTop=vn+10,Wt.scrollLeft=qe+10,Wt.scrollTop=vn+10};ae.resizeSensor.resetSensor=Ut;var Yt=function(){ue=0,z&&(Re=le.width,vt=le.height,ae.resizedAttached&&ae.resizedAttached.call(le))},ai=function(){le=se(ae),(z=le.width!==Re||le.height!==vt)&&!ue&&(ue=Bn(Yt)),Ut()},zn=function(qe,vn,Ts){qe.attachEvent?qe.attachEvent("on"+vn,Ts):qe.addEventListener(vn,Ts)};zn(yn,"scroll",ai),zn(Wt,"scroll",ai),De=Bn(function(){De=0,Ut()})}}Bi(re,function(ae){Vn(ae,ht)}),this.detach=function(ae){De||(Gt(De),De=0),Fn.detach(re,ae)},this.reset=function(){re.resizeSensor.resetSensor()}};if(Fn.reset=function(re){Bi(re,function(ht){ht.resizeSensor.resetSensor()})},Fn.detach=function(re,ht){Bi(re,function(De){!De||De.resizedAttached&&"function"==typeof ht&&(De.resizedAttached.remove(ht),De.resizedAttached.length())||De.resizeSensor&&(De.contains(De.resizeSensor)&&De.removeChild(De.resizeSensor),delete De.resizeSensor,delete De.resizedAttached)})},"undefined"!=typeof MutationObserver){var To=new MutationObserver(function(re){for(var ht in re)if(re.hasOwnProperty(ht))for(var De=re[ht].addedNodes,Hn=0;Hn<De.length;Hn++)De[Hn].resizeSensor&&Fn.reset(De[Hn])});document.addEventListener("DOMContentLoaded",function(re){To.observe(document.body,{childList:!0,subtree:!0})})}return Fn}.call(oi,ut,oi,mn))&&(mn.exports=bi)}},fp={};function gp(mn){var oi=fp[mn];if(void 0!==oi)return oi.exports;var ut=fp[mn]={exports:{}};return Uw[mn].call(ut.exports,ut,ut.exports,gp),ut.exports}(()=>{"use strict";function mn(t){return"function"==typeof t}let oi=!1;const ut={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else oi&&console.log("RxJS: Back to a better error behavior. Thank you. <3");oi=t},get useDeprecatedSynchronousErrorHandling(){return oi}};function ln(t){setTimeout(()=>{throw t},0)}const bi={closed:!0,next(t){},error(t){if(ut.useDeprecatedSynchronousErrorHandling)throw t;ln(t)},complete(){}},cn=Array.isArray||(t=>t&&"number"==typeof t.length);function Bn(t){return null!==t&&"object"==typeof t}const Bi=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class se{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof se)e.remove(this);else if(null!==e)for(let o=0;o<e.length;++o)e[o].remove(this);if(mn(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(o){n=o instanceof Bi?Mt(o.errors):[o]}}if(cn(r)){let o=-1,a=r.length;for(;++o<a;){const l=r[o];if(Bn(l))try{l.unsubscribe()}catch(c){n=n||[],c instanceof Bi?n=n.concat(Mt(c.errors)):n.push(c)}}}if(n)throw new Bi(n)}add(n){let e=n;if(!n)return se.EMPTY;switch(typeof n){case"function":e=new se(n);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof se)){const r=e;e=new se,e._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof se){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[e]:s.push(e),e}remove(n){const e=this._subscriptions;if(e){const i=e.indexOf(n);-1!==i&&e.splice(i,1)}}}var t;function Mt(t){return t.reduce((n,e)=>n.concat(e instanceof Bi?e.errors:e),[])}se.EMPTY=((t=new se).closed=!0,t);const Fn="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class re extends se{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=bi;break;case 1:if(!n){this.destination=bi;break}if("object"==typeof n){n instanceof re?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new ht(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new ht(this,n,e,i)}}[Fn](){return this}static create(n,e,i){const s=new re(n,e,i);return s.syncErrorThrowable=!1,s}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class ht extends re{constructor(n,e,i,s){super(),this._parentSubscriber=n;let r,o=this;mn(e)?r=e:e&&(r=e.next,i=e.error,s=e.complete,e!==bi&&(o=Object.create(e),mn(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=i,this._complete=s}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;ut.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=ut;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):ln(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;ln(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);ut.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),ut.useDeprecatedSynchronousErrorHandling)throw i;ln(i)}}__tryOrSetError(n,e,i){if(!ut.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(s){return ut.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=s,n.syncErrorThrown=!0,!0):(ln(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const Vn="function"==typeof Symbol&&Symbol.observable||"@@observable";function ae(t){return t}let je=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,s){const{operator:r}=this,o=function Hn(t,n,e){if(t){if(t instanceof re)return t;if(t[Fn])return t[Fn]()}return t||n||e?new re(t,n,e):new re(bi)}(e,i,s);if(o.add(r?r.call(o,this.source):this.source||ut.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),ut.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){ut.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function De(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof re?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=yn(i))((s,r)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){r(l),o&&o.unsubscribe()}},r,s)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[Vn](){return this}pipe(...e){return 0===e.length?this:function $n(t){return 0===t.length?ae:1===t.length?t[0]:function(e){return t.reduce((i,s)=>s(i),e)}}(e)(this)}toPromise(e){return new(e=yn(e))((i,s)=>{let r;this.subscribe(o=>r=o,o=>s(o),()=>i(r))})}}return t.create=n=>new t(n),t})();function yn(t){if(t||(t=ut.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const Wt=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class Hi extends se{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class bs extends re{constructor(n){super(n),this.destination=n}}let R=(()=>{class t extends je{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Fn](){return new bs(this)}lift(e){const i=new z(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Wt;if(!this.isStopped){const{observers:i}=this,s=i.length,r=i.slice();for(let o=0;o<s;o++)r[o].next(e)}}error(e){if(this.closed)throw new Wt;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,s=i.length,r=i.slice();for(let o=0;o<s;o++)r[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new Wt;this.isStopped=!0;const{observers:e}=this,i=e.length,s=e.slice();for(let r=0;r<i;r++)s[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new Wt;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new Wt;return this.hasError?(e.error(this.thrownError),se.EMPTY):this.isStopped?(e.complete(),se.EMPTY):(this.observers.push(e),new Hi(this,e))}asObservable(){const e=new je;return e.source=this,e}}return t.create=(n,e)=>new z(n,e),t})();class z extends R{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):se.EMPTY}}function ue(t){return t&&"function"==typeof t.schedule}function le(t,n){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,n))}}class Re{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new vt(n,this.project,this.thisArg))}}class vt extends re{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Jt=t=>n=>{for(let e=0,i=t.length;e<i&&!n.closed;e++)n.next(t[e]);n.complete()},Yt=function Ut(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),vn=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Ts(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const pp=t=>{if(t&&"function"==typeof t[Vn])return(t=>n=>{const e=t[Vn]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(vn(t))return Jt(t);if(Ts(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,ln),n))(t);if(t&&"function"==typeof t[Yt])return(t=>n=>{const e=t[Yt]();for(;;){let i;try{i=e.next()}catch(s){return n.error(s),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${Bn(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function xu(t,n){return new je(e=>{const i=new se;let s=0;return i.add(n.schedule(function(){s!==t.length?(e.next(t[s++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function mp(t,n){return n?function Kw(t,n){if(null!=t){if(function Qw(t){return t&&"function"==typeof t[Vn]}(t))return function Yw(t,n){return new je(e=>{const i=new se;return i.add(n.schedule(()=>{const s=t[Vn]();i.add(s.subscribe({next(r){i.add(n.schedule(()=>e.next(r)))},error(r){i.add(n.schedule(()=>e.error(r)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(Ts(t))return function Xw(t,n){return new je(e=>{const i=new se;return i.add(n.schedule(()=>t.then(s=>{i.add(n.schedule(()=>{e.next(s),i.add(n.schedule(()=>e.complete()))}))},s=>{i.add(n.schedule(()=>e.error(s)))}))),i})}(t,n);if(vn(t))return xu(t,n);if(function Zw(t){return t&&"function"==typeof t[Yt]}(t)||"string"==typeof t)return function qw(t,n){if(!t)throw new Error("Iterable cannot be null");return new je(e=>{const i=new se;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(n.schedule(()=>{s=t[Yt](),i.add(n.schedule(function(){if(e.closed)return;let r,o;try{const a=s.next();r=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(r),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof je?t:new je(pp(t))}class _p extends re{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class yp extends re{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function vp(t,n){if(!n.closed)return t instanceof je?t.subscribe(n):pp(t)(n)}function xp(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(xp((s,r)=>mp(t(s,r)).pipe(le((o,a)=>n(s,o,r,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new Jw(t,e)))}class Jw{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new eD(n,this.project,this.concurrent))}}class eD extends yp{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active<this.concurrent?this._tryNext(n):this.buffer.push(n)}_tryNext(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(n){const e=new _p(this),i=this.destination;i.add(e);const s=vp(n,e);s!==e&&i.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(n){this.destination.next(n)}notifyComplete(){const n=this.buffer;this.active--,n.length>0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function tD(t=Number.POSITIVE_INFINITY){return xp(ae,t)}function bp(t,n){return n?xu(t,n):new je(Jt(t))}function Tp(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return ue(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof je?t[0]:tD(n)(bp(t,e))}function Cp(){return function(n){return n.lift(new nD(n))}}class nD{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const s=new iD(n,i),r=e.subscribe(s);return s.closed||(s.connection=i.connect()),r}}class iD extends re{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,s=n._connection;this.connection=null,s&&(!i||s===i)&&s.unsubscribe()}}class sD extends je{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new se,n.add(this.source.subscribe(new oD(this.getSubject(),this))),n.closed&&(this._connection=null,n=se.EMPTY)),n}refCount(){return Cp()(this)}}const rD=(()=>{const t=sD.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 oD extends bs{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class cD{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,s=this.subjectFactory(),r=i(s).subscribe(n);return r.add(e.subscribe(s)),r}}function uD(){return new R}function Qe(t){for(let n in t)if(t[n]===Qe)return n;throw Error("Could not find renamed property on target object.")}function bu(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function We(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(We).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Tu(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const dD=Qe({__forward_ref__:Qe});function Cu(t){return t.__forward_ref__=Cu,t.toString=function(){return We(this())},t}function ve(t){return wp(t)?t():t}function wp(t){return"function"==typeof t&&t.hasOwnProperty(dD)&&t.__forward_ref__===Cu}class K extends Error{constructor(n,e){super(function wu(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function he(t){return"string"==typeof t?t:null==t?"":String(t)}function en(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():he(t)}function Wa(t,n){const e=n?` in ${n}`:"";throw new K(-201,`No provider for ${en(t)} found${e}`)}function Gn(t,n){null==t&&function Ue(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function ze(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function xt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Du(t){return Dp(t,Ua)||Dp(t,Ap)}function Dp(t,n){return t.hasOwnProperty(n)?t[n]:null}function Sp(t){return t&&(t.hasOwnProperty(Su)||t.hasOwnProperty(vD))?t[Su]:null}const Ua=Qe({\u0275prov:Qe}),Su=Qe({\u0275inj:Qe}),Ap=Qe({ngInjectableDef:Qe}),vD=Qe({ngInjectorDef:Qe});var ge=(()=>((ge=ge||{})[ge.Default=0]="Default",ge[ge.Host=1]="Host",ge[ge.Self=2]="Self",ge[ge.SkipSelf=4]="SkipSelf",ge[ge.Optional=8]="Optional",ge))();let Au;function Cs(t){const n=Au;return Au=t,n}function Ep(t,n,e){const i=Du(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&ge.Optional?null:void 0!==n?n:void Wa(We(t),"Injector")}function ws(t){return{toString:t}.toString()}var Ti=(()=>((Ti=Ti||{})[Ti.OnPush=0]="OnPush",Ti[Ti.Default=1]="Default",Ti))(),Ci=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(Ci||(Ci={})),Ci))();const bD="undefined"!=typeof globalThis&&globalThis,TD="undefined"!=typeof window&&window,CD="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ye=bD||"undefined"!=typeof global&&global||TD||CD,vr={},Ze=[],Ya=Qe({\u0275cmp:Qe}),Eu=Qe({\u0275dir:Qe}),ku=Qe({\u0275pipe:Qe}),kp=Qe({\u0275mod:Qe}),ss=Qe({\u0275fac:Qe}),Co=Qe({__NG_ELEMENT_ID__:Qe});let wD=0;function q(t){return ws(()=>{const e={},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:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Ti.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Ze,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Ci.Emulated,id:"c",styles:t.styles||Ze,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,o=t.pipes;return i.id+=wD++,i.inputs=Ip(t.inputs,e),i.outputs=Ip(t.outputs),r&&r.forEach(a=>a(i)),i.directiveDefs=s?()=>("function"==typeof s?s():s).map(Mp):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Lp):null,i})}function Mp(t){return tn(t)||function Ds(t){return t[Eu]||null}(t)}function Lp(t){return function Vs(t){return t[ku]||null}(t)}const Fp={};function St(t){return ws(()=>{const n={type:t.type,bootstrap:t.bootstrap||Ze,declarations:t.declarations||Ze,imports:t.imports||Ze,exports:t.exports||Ze,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Fp[t.id]=t.type),n})}function Ip(t,n){if(null==t)return vr;const e={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),e[s]=i,n&&(n[s]=r)}return e}const xn=q;function tn(t){return t[Ya]||null}function li(t,n){const e=t[kp]||null;if(!e&&!0===n)throw new Error(`Type ${We(t)} does not have '\u0275mod' property.`);return e}function Vi(t){return Array.isArray(t)&&"object"==typeof t[1]}function Di(t){return Array.isArray(t)&&!0===t[1]}function Fu(t){return 0!=(8&t.flags)}function Za(t){return 2==(2&t.flags)}function Ka(t){return 1==(1&t.flags)}function Si(t){return null!==t.template}function MD(t){return 0!=(512&t[2])}function Gs(t,n){return t.hasOwnProperty(ss)?t[ss]:null}class Np{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function _e(){return Op}function Op(t){return t.type.prototype.ngOnChanges&&(t.setInput=PD),ID}function ID(){const t=Bp(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===vr)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function PD(t,n,e,i){const s=Bp(t)||function ND(t,n){return t[Rp]=n}(t,{previous:vr,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[e],l=o[a];r[a]=new Np(l&&l.currentValue,n,o===vr),t[i]=n}_e.ngInherit=!0;const Rp="__ngSimpleChanges__";function Bp(t){return t[Rp]||null}let Ru;function Bu(){return void 0!==Ru?Ru:"undefined"!=typeof document?document:void 0}function Tt(t){return!!t.listen}const Hp={createRenderer:(t,n)=>Bu()};function Lt(t){for(;Array.isArray(t);)t=t[0];return t}function Ja(t,n){return Lt(n[t])}function Un(t,n){return Lt(n[t.index])}function Hu(t,n){return t.data[n]}function Yn(t,n){const e=n[t];return Vi(e)?e:e[0]}function Vp(t){return 4==(4&t[2])}function Vu(t){return 128==(128&t[2])}function Ss(t,n){return null==n?null:t[n]}function $p(t){t[18]=0}function $u(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const de={lFrame:Qp(null),bindingsEnabled:!0};function jp(){return de.bindingsEnabled}function F(){return de.lFrame.lView}function Pe(){return de.lFrame.tView}function A(t){return de.lFrame.contextLView=t,t[8]}function Rt(){let t=Gp();for(;null!==t&&64===t.type;)t=t.parent;return t}function Gp(){return de.lFrame.currentTNode}function $i(t,n){const e=de.lFrame;e.currentTNode=t,e.isParent=n}function zu(){return de.lFrame.isParent}function ju(){de.lFrame.isParent=!1}function Tn(){const t=de.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Dr(){return de.lFrame.bindingIndex++}function os(t){const n=de.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function KD(t,n){const e=de.lFrame;e.bindingIndex=e.bindingRootIndex=t,Gu(n)}function Gu(t){de.lFrame.currentDirectiveIndex=t}function Yp(){return de.lFrame.currentQueryIndex}function Uu(t){de.lFrame.currentQueryIndex=t}function e1(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Xp(t,n,e){if(e&ge.SkipSelf){let s=n,r=t;for(;!(s=s.parent,null!==s||e&ge.Host||(s=e1(r),null===s||(r=r[15],10&s.type))););if(null===s)return!1;n=s,t=r}const i=de.lFrame=qp();return i.currentTNode=n,i.lView=t,!0}function tl(t){const n=qp(),e=t[1];de.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function qp(){const t=de.lFrame,n=null===t?null:t.child;return null===n?Qp(t):n}function Qp(t){const n={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=n),n}function Zp(){const t=de.lFrame;return de.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Kp=Zp;function nl(){const t=Zp();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 Cn(){return de.lFrame.selectedIndex}function As(t){de.lFrame.selectedIndex=t}function dt(){const t=de.lFrame;return Hu(t.tView,t.selectedIndex)}function w(){de.lFrame.currentNamespace="svg"}function Ws(){!function s1(){de.lFrame.currentNamespace=null}()}function il(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const r=t.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=r;o&&(t.contentHooks||(t.contentHooks=[])).push(-e,o),a&&((t.contentHooks||(t.contentHooks=[])).push(e,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-e,l),c&&((t.viewHooks||(t.viewHooks=[])).push(e,c),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,c)),null!=u&&(t.destroyHooks||(t.destroyHooks=[])).push(e,u)}}function sl(t,n,e){Jp(t,n,3,e)}function rl(t,n,e,i){(3&t[2])===e&&Jp(t,n,e,i)}function Yu(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function Jp(t,n,e,i){const r=null!=i?i:-1,o=n.length-1;let a=0;for(let l=void 0!==i?65535&t[18]:0;l<o;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=i&&a>=i)break}else n[l]<0&&(t[18]+=65536),(a<r||-1==r)&&(a1(t,e,n,l),t[18]=(4294901760&t[18])+l+2),l++}function a1(t,n,e,i){const s=e[i]<0,r=e[i+1],a=t[s?-e[i]:e[i]];if(s){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{r.call(a)}finally{}}}else try{r.call(a)}finally{}}class Eo{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function ol(t,n,e){const i=Tt(t);let s=0;for(;s<e.length;){const r=e[s];if("number"==typeof r){if(0!==r)break;s++;const o=e[s++],a=e[s++],l=e[s++];i?t.setAttribute(n,a,l,o):n.setAttributeNS(o,a,l)}else{const o=r,a=e[++s];qu(o)?i&&t.setProperty(n,o,a):i?t.setAttribute(n,o,a):n.setAttribute(o,a),s++}}return s}function em(t){return 3===t||4===t||6===t}function qu(t){return 64===t.charCodeAt(0)}function al(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const s=n[i];"number"==typeof s?e=s:0===e||tm(t,e,s,null,-1===e||2===e?n[++i]:null)}}return t}function tm(t,n,e,i,s){let r=0,o=t.length;if(-1===n)o=-1;else for(;r<t.length;){const a=t[r++];if("number"==typeof a){if(a===n){o=-1;break}if(a>n){o=r-1;break}}}for(;r<t.length;){const a=t[r];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==s&&(t[r+1]=s));if(i===t[r+1])return void(t[r+2]=s)}r++,null!==i&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,n),r=o+1),t.splice(r++,0,e),null!==i&&t.splice(r++,0,i),null!==s&&t.splice(r++,0,s)}function nm(t){return-1!==t}function Sr(t){return 32767&t}function Ar(t,n){let e=function d1(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let Qu=!0;function ll(t){const n=Qu;return Qu=t,n}let f1=0;function Mo(t,n){const e=Ku(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,Zu(i.data,t),Zu(n,null),Zu(i.blueprint,null));const s=cl(t,n),r=t.injectorIndex;if(nm(s)){const o=Sr(s),a=Ar(s,n),l=a[1].data;for(let c=0;c<8;c++)n[r+c]=a[o+c]|l[o+c]}return n[r+8]=s,r}function Zu(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Ku(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function cl(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,s=n;for(;null!==s;){const r=s[1],o=r.type;if(i=2===o?r.declTNode:1===o?s[6]:null,null===i)return-1;if(e++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function ul(t,n,e){!function g1(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Co)&&(i=e[Co]),null==i&&(i=e[Co]=f1++);const s=255&i;n.data[t+(s>>5)]|=1<<s}(t,n,e)}function rm(t,n,e){if(e&ge.Optional)return t;Wa(n,"NodeInjector")}function om(t,n,e,i){if(e&ge.Optional&&void 0===i&&(i=null),0==(e&(ge.Self|ge.Host))){const s=t[9],r=Cs(void 0);try{return s?s.get(n,i,e&ge.Optional):Ep(n,i,e&ge.Optional)}finally{Cs(r)}}return rm(i,n,e)}function am(t,n,e,i=ge.Default,s){if(null!==t){const r=function y1(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(Co)?t[Co]:void 0;return"number"==typeof n?n>=0?255&n:m1:n}(e);if("function"==typeof r){if(!Xp(n,t,i))return i&ge.Host?rm(s,e,i):om(n,e,i,s);try{const o=r(i);if(null!=o||i&ge.Optional)return o;Wa(e)}finally{Kp()}}else if("number"==typeof r){let o=null,a=Ku(t,n),l=-1,c=i&ge.Host?n[16][6]:null;for((-1===a||i&ge.SkipSelf)&&(l=-1===a?cl(t,n):n[a+8],-1!==l&&um(i,!1)?(o=n[1],a=Sr(l),n=Ar(l,n)):a=-1);-1!==a;){const u=n[1];if(cm(r,a,u.data)){const h=_1(a,n,e,o,i,c);if(h!==lm)return h}l=n[a+8],-1!==l&&um(i,n[1].data[a+8]===c)&&cm(r,a,n)?(o=u,a=Sr(l),n=Ar(l,n)):a=-1}}}return om(n,e,i,s)}const lm={};function m1(){return new Er(Rt(),F())}function _1(t,n,e,i,s,r){const o=n[1],a=o.data[t+8],u=hl(a,o,e,null==i?Za(a)&&Qu:i!=o&&0!=(3&a.type),s&ge.Host&&r===a);return null!==u?Lo(n,o,u,a):lm}function hl(t,n,e,i,s){const r=t.providerIndexes,o=n.data,a=1048575&r,l=t.directiveStart,u=r>>20,d=s?a+u:t.directiveEnd;for(let f=i?a:a+u;f<d;f++){const g=o[f];if(f<l&&e===g||f>=l&&g.type===e)return f}if(s){const f=o[l];if(f&&Si(f)&&f.type===e)return l}return null}function Lo(t,n,e,i){let s=t[e];const r=n.data;if(function l1(t){return t instanceof Eo}(s)){const o=s;o.resolving&&function fD(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new K(-200,`Circular dependency in DI detected for ${t}${e}`)}(en(r[e]));const a=ll(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Cs(o.injectImpl):null;Xp(t,i,ge.Default);try{s=t[e]=o.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function o1(t,n,e){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=n.type.prototype;if(i){const o=Op(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}s&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,s),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],n)}finally{null!==l&&Cs(l),ll(a),o.resolving=!1,Kp()}}return s}function cm(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function um(t,n){return!(t&ge.Self||t&ge.Host&&n)}class Er{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return am(this._tNode,this._lView,n,i,e)}}function ft(t){return ws(()=>{const n=t.prototype.constructor,e=n[ss]||Ju(n),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const r=s[ss]||Ju(s);if(r&&r!==e)return r;s=Object.getPrototypeOf(s)}return r=>new r})}function Ju(t){return wp(t)?()=>{const n=Ju(ve(t));return n&&n()}:Gs(t)}const Mr="__parameters__";function Fr(t,n,e){return ws(()=>{const i=function th(t){return function(...e){if(t){const i=t(...e);for(const s in i)this[s]=i[s]}}}(n);function s(...r){if(this instanceof s)return i.apply(this,r),this;const o=new s(...r);return a.annotation=o,a;function a(l,c,u){const h=l.hasOwnProperty(Mr)?l[Mr]:Object.defineProperty(l,Mr,{value:[]})[Mr];for(;h.length<=u;)h.push(null);return(h[u]=h[u]||[]).push(o),l}}return e&&(s.prototype=Object.create(e.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class Ne{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ze({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function hi(t,n){void 0===n&&(n=t);for(let e=0;e<t.length;e++){let i=t[e];Array.isArray(i)?(n===t&&(n=t.slice(0,e)),hi(i,n)):n!==t&&n.push(i)}return n}function zi(t,n){t.forEach(e=>Array.isArray(e)?zi(e,n):n(e))}function dm(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function dl(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Po(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function Xn(t,n,e){let i=Ir(t,n);return i>=0?t[1|i]=e:(i=~i,function T1(t,n,e,i){let s=t.length;if(s==n)t.push(e,i);else if(1===s)t.push(i,t[0]),t[0]=e;else{for(s--,t.push(t[s-1],t[s]);s>n;)t[s]=t[s-2],s--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function ih(t,n){const e=Ir(t,n);if(e>=0)return t[1|e]}function Ir(t,n){return function pm(t,n,e){let i=0,s=t.length>>e;for(;s!==i;){const r=i+(s-i>>1),o=t[r<<e];if(n===o)return r<<e;o>n?s=r:i=r+1}return~(s<<e)}(t,n,1)}const No={},rh="__NG_DI_FLAG__",gl="ngTempTokenPath",k1=/\n/gm,_m="__source",L1=Qe({provide:String,useValue:Qe});let Oo;function ym(t){const n=Oo;return Oo=t,n}function F1(t,n=ge.Default){if(void 0===Oo)throw new K(203,"");return null===Oo?Ep(t,void 0,n):Oo.get(t,n&ge.Optional?null:void 0,n)}function pe(t,n=ge.Default){return(function xD(){return Au}()||F1)(ve(t),n)}const I1=pe;function oh(t){const n=[];for(let e=0;e<t.length;e++){const i=ve(t[e]);if(Array.isArray(i)){if(0===i.length)throw new K(900,"");let s,r=ge.Default;for(let o=0;o<i.length;o++){const a=i[o],l=P1(a);"number"==typeof l?-1===l?s=a.token:r|=l:s=a}n.push(pe(s,r))}else n.push(pe(i))}return n}function Ro(t,n){return t[rh]=n,t.prototype[rh]=n,t}function P1(t){return t[rh]}const pl=Ro(Fr("Optional"),8),ml=Ro(Fr("SkipSelf"),4);var qn=(()=>((qn=qn||{})[qn.Important=1]="Important",qn[qn.DashCase=2]="DashCase",qn))();const Sm="__ngContext__";function hn(t,n){t[Sm]=n}function uh(t){const n=function Ho(t){return t[Sm]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function dh(t,n){return undefined(t,n)}function Vo(t){const n=t[3];return Di(n)?n[3]:n}function fh(t){return Im(t[13])}function gh(t){return Im(t[4])}function Im(t){for(;null!==t&&!Di(t);)t=t[4];return t}function Nr(t,n,e,i,s){if(null!=i){let r,o=!1;Di(i)?r=i:Vi(i)&&(o=!0,i=i[0]);const a=Lt(i);0===t&&null!==e?null==s?Hm(n,e,a):Us(n,e,a,s||null,!0):1===t&&null!==e?Us(n,e,a,s||null,!0):2===t?function bh(t,n,e){const i=yl(t,n);i&&function hS(t,n,e,i){Tt(t)?t.removeChild(n,e,i):n.removeChild(e)}(t,i,n,e)}(n,a,o):3===t&&n.destroyNode(a),null!=r&&function gS(t,n,e,i,s){const r=e[7];r!==Lt(e)&&Nr(n,t,i,r,s);for(let a=10;a<e.length;a++){const l=e[a];$o(l[1],l,t,n,i,r)}}(n,t,r,e,s)}}function mh(t,n,e){if(Tt(t))return t.createElement(n,e);{const i=null!==e?function HD(t){const n=t.toLowerCase();return"svg"===n?"http://www.w3.org/2000/svg":"math"===n?"http://www.w3.org/1998/MathML/":null}(e):null;return null===i?t.createElement(n):t.createElementNS(i,n)}}function Nm(t,n){const e=t[9],i=e.indexOf(n),s=n[3];1024&n[2]&&(n[2]&=-1025,$u(s,-1)),e.splice(i,1)}function _h(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const s=i[17];null!==s&&s!==t&&Nm(s,i),n>0&&(t[e-1][4]=i[4]);const r=dl(t,10+n);!function iS(t,n){$o(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Om(t,n){if(!(256&n[2])){const e=n[11];Tt(e)&&e.destroyNode&&$o(t,n,e,3,null,null),function oS(t){let n=t[13];if(!n)return yh(t[1],t);for(;n;){let e=null;if(Vi(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)Vi(n)&&yh(n[1],n),n=n[3];null===n&&(n=t),Vi(n)&&yh(n[1],n),e=n&&n[4]}n=e}}(n)}}function yh(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function uS(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const s=n[e[i]];if(!(s instanceof Eo)){const r=e[i+1];if(Array.isArray(r))for(let o=0;o<r.length;o+=2){const a=s[r[o]],l=r[o+1];try{l.call(a)}finally{}}else try{r.call(s)}finally{}}}}(t,n),function cS(t,n){const e=t.cleanup,i=n[7];let s=-1;if(null!==e)for(let r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const o=e[r+1],a="function"==typeof o?o(n):Lt(n[o]),l=i[s=e[r+2]],c=e[r+3];"boolean"==typeof c?a.removeEventListener(e[r],l,c):c>=0?i[s=c]():i[s=-c].unsubscribe(),r+=2}else{const o=i[s=e[r+1]];e[r].call(o)}if(null!==i){for(let r=s+1;r<i.length;r++)i[r]();n[7]=null}}(t,n),1===n[1].type&&Tt(n[11])&&n[11].destroy();const e=n[17];if(null!==e&&Di(n[3])){e!==n[3]&&Nm(e,n);const i=n[19];null!==i&&i.detachView(t)}}}function Rm(t,n,e){return function Bm(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[0];if(2&i.flags){const s=t.data[i.directiveStart].encapsulation;if(s===Ci.None||s===Ci.Emulated)return null}return Un(i,e)}(t,n.parent,e)}function Us(t,n,e,i,s){Tt(t)?t.insertBefore(n,e,i,s):n.insertBefore(e,i,s)}function Hm(t,n,e){Tt(t)?t.appendChild(n,e):n.appendChild(e)}function Vm(t,n,e,i,s){null!==i?Us(t,n,e,i,s):Hm(t,n,e)}function yl(t,n){return Tt(t)?t.parentNode(n):n.parentNode}function $m(t,n,e){return jm(t,n,e)}let bl,Tl,jm=function zm(t,n,e){return 40&t.type?Un(t,e):null};function vl(t,n,e,i){const s=Rm(t,i,n),r=n[11],a=$m(i.parent||n[6],i,n);if(null!=s)if(Array.isArray(e))for(let l=0;l<e.length;l++)Vm(r,s,e[l],a,!1);else Vm(r,s,e,a,!1)}function xl(t,n){if(null!==n){const e=n.type;if(3&e)return Un(n,t);if(4&e)return xh(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return xl(t,i);{const s=t[n.index];return Di(s)?xh(-1,s):Lt(s)}}if(32&e)return dh(n,t)()||Lt(t[n.index]);{const i=Wm(t,n);return null!==i?Array.isArray(i)?i[0]:xl(Vo(t[16]),i):xl(t,n.next)}}return null}function Wm(t,n){return null!==n?t[16][6].projection[n.projection]:null}function xh(t,n){const e=10+t+1;if(e<n.length){const i=n[e],s=i[1].firstChild;if(null!==s)return xl(i,s)}return n[7]}function Th(t,n,e,i,s,r,o){for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===n&&(a&&hn(Lt(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)Th(t,n,e.child,i,s,r,!1),Nr(n,t,s,a,r);else if(32&l){const c=dh(e,i);let u;for(;u=c();)Nr(n,t,s,u,r);Nr(n,t,s,a,r)}else 16&l?Um(t,n,i,e,s,r):Nr(n,t,s,a,r);e=o?e.projectionNext:e.next}}function $o(t,n,e,i,s,r){Th(e,i,t.firstChild,n,s,r,!1)}function Um(t,n,e,i,s,r){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Nr(n,t,s,l[c],r);else Th(t,n,l,o[3],s,r,!0)}function Ym(t,n,e){Tt(t)?t.setAttribute(n,"style",e):n.style.cssText=e}function Ch(t,n,e){Tt(t)?""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e):n.className=e}function Ys(t){var n;return(null===(n=function wh(){if(void 0===bl&&(bl=null,Ye.trustedTypes))try{bl=Ye.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return bl}())||void 0===n?void 0:n.createHTML(t))||t}function Xm(t){var n;return(null===(n=function Dh(){if(void 0===Tl&&(Tl=null,Ye.trustedTypes))try{Tl=Ye.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Tl}())||void 0===n?void 0:n.createHTML(t))||t}class Xs{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class vS extends Xs{getTypeName(){return"HTML"}}class xS extends Xs{getTypeName(){return"Style"}}class bS extends Xs{getTypeName(){return"Script"}}class TS extends Xs{getTypeName(){return"URL"}}class CS extends Xs{getTypeName(){return"ResourceURL"}}function Qn(t){return t instanceof Xs?t.changingThisBreaksApplicationSecurity:t}function ji(t,n){const e=Zm(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}function Zm(t){return t instanceof Xs&&t.getTypeName()||null}class kS{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(Ys(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class MS{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ys(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ys(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let s=e.length-1;0<s;s--){const o=e.item(s).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&n.removeAttribute(o)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const FS=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,IS=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function zo(t){return(t=String(t)).match(FS)||t.match(IS)?t:"unsafe:"+t}function Jm(t){return(t=String(t)).split(",").map(n=>zo(n.trim())).join(", ")}function Gi(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function jo(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const e_=Gi("area,br,col,hr,img,wbr"),t_=Gi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),n_=Gi("rp,rt"),Sh=jo(e_,jo(t_,Gi("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")),jo(n_,Gi("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")),jo(n_,t_)),Ah=Gi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Eh=Gi("srcset"),i_=jo(Ah,Eh,Gi("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"),Gi("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")),PS=Gi("script,style,template");class NS{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let s=this.checkClobberedElement(e,e.nextSibling);if(s){e=s;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!Sh.hasOwnProperty(e))return this.sanitizedSomething=!0,!PS.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let s=0;s<i.length;s++){const r=i.item(s),o=r.name,a=o.toLowerCase();if(!i_.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=r.value;Ah[a]&&(l=zo(l)),Eh[a]&&(l=Jm(l)),this.buf.push(" ",o,'="',s_(l),'"')}return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();Sh.hasOwnProperty(e)&&!e_.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(s_(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const OS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,RS=/([^\#-~ |!])/g;function s_(t){return t.replace(/&/g,"&amp;").replace(OS,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(RS,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Cl;function r_(t,n){let e=null;try{Cl=Cl||function Km(t){const n=new MS(t);return function LS(){try{return!!(new window.DOMParser).parseFromString(Ys(""),"text/html")}catch(t){return!1}}()?new kS(n):n}(t);let i=n?String(n):"";e=Cl.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=e.innerHTML,e=Cl.getInertBodyElement(i)}while(i!==r);return Ys((new NS).sanitizeChildren(kh(e)||e))}finally{if(e){const i=kh(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function kh(t){return"content"in t&&function BS(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var nt=(()=>((nt=nt||{})[nt.NONE=0]="NONE",nt[nt.HTML=1]="HTML",nt[nt.STYLE=2]="STYLE",nt[nt.SCRIPT=3]="SCRIPT",nt[nt.URL=4]="URL",nt[nt.RESOURCE_URL=5]="RESOURCE_URL",nt))();function wl(t){const n=function Go(){const t=F();return t&&t[12]}();return n?Xm(n.sanitize(nt.HTML,t)||""):ji(t,"HTML")?Xm(Qn(t)):r_(Bu(),he(t))}function Lh(t){return t.ngOriginalError}function XS(t,...n){t.error(...n)}class Wo{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=function YS(t){return t&&t.ngErrorLogger||XS}(n);i(this._console,"ERROR",n),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Lh(n);for(;e&&Lh(e);)e=Lh(e);return e||null}}const tA=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ye))();function l_(t){return t.ownerDocument.defaultView}function Wi(t){return t instanceof Function?t():t}function u_(t,n,e){let i=t.length;for(;;){const s=t.indexOf(n,e);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const r=n.length;if(s+r===i||t.charCodeAt(s+r)<=32)return s}e=s+1}}const h_="ng-template";function sA(t,n,e){let i=0;for(;i<t.length;){let s=t[i++];if(e&&"class"===s){if(s=t[i],-1!==u_(s.toLowerCase(),n,0))return!0}else if(1===s){for(;i<t.length&&"string"==typeof(s=t[i++]);)if(s.toLowerCase()===n)return!0;return!1}}return!1}function d_(t){return 4===t.type&&t.value!==h_}function rA(t,n,e){return n===(4!==t.type||e?t.value:h_)}function oA(t,n,e){let i=4;const s=t.attrs||[],r=function cA(t){for(let n=0;n<t.length;n++)if(em(t[n]))return n;return t.length}(s);let o=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!rA(t,l,e)||""===l&&1===n.length){if(Ai(i))return!1;o=!0}}else{const c=8&i?l:n[++a];if(8&i&&null!==t.attrs){if(!sA(t.attrs,c,e)){if(Ai(i))return!1;o=!0}continue}const h=aA(8&i?"class":l,s,d_(t),e);if(-1===h){if(Ai(i))return!1;o=!0;continue}if(""!==c){let d;d=h>r?"":s[h+1].toLowerCase();const f=8&i?d:null;if(f&&-1!==u_(f,c,0)||2&i&&c!==d){if(Ai(i))return!1;o=!0}}}}else{if(!o&&!Ai(i)&&!Ai(l))return!1;if(o&&Ai(l))continue;o=!1,i=l|1&i}}return Ai(i)||o}function Ai(t){return 0==(1&t)}function aA(t,n,e,i){if(null===n)return-1;let s=0;if(i||!e){let r=!1;for(;s<n.length;){const o=n[s];if(o===t)return s;if(3===o||6===o)r=!0;else{if(1===o||2===o){let a=n[++s];for(;"string"==typeof a;)a=n[++s];continue}if(4===o)break;if(0===o){s+=4;continue}}s+=r?1:2}return-1}return function uA(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function f_(t,n,e=!1){for(let i=0;i<n.length;i++)if(oA(t,n[i],e))return!0;return!1}function hA(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let s=0;s<t.length;s++)if(t[s]!==i[s])continue e;return!0}}return!1}function g_(t,n){return t?":not("+n.trim()+")":n}function dA(t){let n=t[0],e=1,i=2,s="",r=!1;for(;e<t.length;){let o=t[e];if("string"==typeof o)if(2&i){const a=t[++e];s+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""!==s&&!Ai(o)&&(n+=g_(r,s),s=""),i=o,r=r||!Ai(i);e++}return""!==s&&(n+=g_(r,s)),n}const fe={};function _(t){p_(Pe(),F(),Cn()+t,!1)}function p_(t,n,e,i){if(!i)if(3==(3&n[2])){const r=t.preOrderCheckHooks;null!==r&&sl(n,r,e)}else{const r=t.preOrderHooks;null!==r&&rl(n,r,0,e)}As(e)}function Dl(t,n){return t<<17|n<<2}function Ei(t){return t>>17&32767}function Fh(t){return 2|t}function as(t){return(131068&t)>>2}function Ih(t,n){return-131069&t|n<<2}function Ph(t){return 1|t}function S_(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const s=e[i],r=e[i+1];if(-1!==r){const o=t.data[r];Uu(s),o.contentQueries(2,n[r],r)}}}function Uo(t,n,e,i,s,r,o,a,l,c){const u=n.blueprint.slice();return u[0]=s,u[2]=140|i,$p(u),u[3]=u[15]=t,u[8]=e,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=r,u[16]=2==n.type?t[16]:u,u}function Rr(t,n,e,i,s){let r=t.data[n];if(null===r)r=function jh(t,n,e,i,s){const r=Gp(),o=zu(),l=t.data[n]=function MA(t,n,e,i,s,r){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,e,n,i,s);return null===t.firstChild&&(t.firstChild=l),null!==r&&(o?null==r.child&&null!==l.parent&&(r.child=l):null===r.next&&(r.next=l)),l}(t,n,e,i,s),function ZD(){return de.lFrame.inI18n}()&&(r.flags|=64);else if(64&r.type){r.type=e,r.value=i,r.attrs=s;const o=function Ao(){const t=de.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();r.injectorIndex=null===o?-1:o.injectorIndex}return $i(r,!0),r}function Br(t,n,e,i){if(0===e)return-1;const s=n.length;for(let r=0;r<e;r++)n.push(i),t.blueprint.push(i),t.data.push(null);return s}function Yo(t,n,e){tl(n);try{const i=t.viewQuery;null!==i&&Kh(1,i,e);const s=t.template;null!==s&&A_(t,n,s,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&S_(t,n),t.staticViewQueries&&Kh(2,t.viewQuery,e);const r=t.components;null!==r&&function AA(t,n){for(let e=0;e<n.length;e++)XA(t,n[e])}(n,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,nl()}}function Hr(t,n,e,i){const s=n[2];if(256!=(256&s)){tl(n);try{$p(n),function Wp(t){return de.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&A_(t,n,e,2,i);const o=3==(3&s);if(o){const c=t.preOrderCheckHooks;null!==c&&sl(n,c,null)}else{const c=t.preOrderHooks;null!==c&&rl(n,c,0,null),Yu(n,0)}if(function UA(t){for(let n=fh(t);null!==n;n=gh(n)){if(!n[2])continue;const e=n[9];for(let i=0;i<e.length;i++){const s=e[i],r=s[3];0==(1024&s[2])&&$u(r,1),s[2]|=1024}}}(n),function WA(t){for(let n=fh(t);null!==n;n=gh(n))for(let e=10;e<n.length;e++){const i=n[e],s=i[1];Vu(i)&&Hr(s,i,s.template,i[8])}}(n),null!==t.contentQueries&&S_(t,n),o){const c=t.contentCheckHooks;null!==c&&sl(n,c)}else{const c=t.contentHooks;null!==c&&rl(n,c,1),Yu(n,1)}!function DA(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const s=e[i];if(s<0)As(~s);else{const r=s,o=e[++i],a=e[++i];KD(o,r),a(2,n[r])}}}finally{As(-1)}}(t,n);const a=t.components;null!==a&&function SA(t,n){for(let e=0;e<n.length;e++)YA(t,n[e])}(n,a);const l=t.viewQuery;if(null!==l&&Kh(2,l,i),o){const c=t.viewCheckHooks;null!==c&&sl(n,c)}else{const c=t.viewHooks;null!==c&&rl(n,c,2),Yu(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-73,1024&n[2]&&(n[2]&=-1025,$u(n[3],-1))}finally{nl()}}}function EA(t,n,e,i){const s=n[10],o=Vp(n);try{!o&&s.begin&&s.begin(),o&&Yo(t,n,i),Hr(t,n,e,i)}finally{!o&&s.end&&s.end()}}function A_(t,n,e,i,s){const r=Cn(),o=2&i;try{As(-1),o&&n.length>20&&p_(t,n,20,!1),e(i,s)}finally{As(r)}}function E_(t,n,e){if(Fu(n)){const s=n.directiveEnd;for(let r=n.directiveStart;r<s;r++){const o=t.data[r];o.contentQueries&&o.contentQueries(1,e[r],r)}}}function Gh(t,n,e){!jp()||(function RA(t,n,e,i){const s=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||Mo(e,n),hn(i,n);const o=e.initialInputs;for(let a=s;a<r;a++){const l=t.data[a],c=Si(l);c&&zA(n,e,l);const u=Lo(n,t,a,e);hn(u,n),null!==o&&jA(0,a-s,u,l,0,o),c&&(Yn(e.index,n)[8]=u)}}(t,n,e,Un(e,n)),128==(128&e.flags)&&function BA(t,n,e){const i=e.directiveStart,s=e.directiveEnd,o=e.index,a=function JD(){return de.lFrame.currentDirectiveIndex}();try{As(o);for(let l=i;l<s;l++){const c=t.data[l],u=n[l];Gu(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&O_(c,u)}}finally{As(-1),Gu(a)}}(t,n,e))}function Wh(t,n,e=Un){const i=n.localNames;if(null!==i){let s=n.index+1;for(let r=0;r<i.length;r+=2){const o=i[r+1],a=-1===o?e(n,t):t[o];t[s++]=a}}}function k_(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=El(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function El(t,n,e,i,s,r,o,a,l,c){const u=20+i,h=u+s,d=function kA(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:fe);return e}(u,h),f="function"==typeof c?c():c;return d[1]={type:t,blueprint:d,template:e,queries:null,viewQuery:a,declTNode:n,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,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 r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function F_(t,n,e,i){const s=z_(n);null===e?s.push(i):(s.push(e),t.firstCreatePass&&j_(t).push(i,s.length-1))}function I_(t,n,e){for(let i in t)if(t.hasOwnProperty(i)){const s=t[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(n,s):e[i]=[n,s]}return e}function Uh(t,n,e,i){let s=!1;if(jp()){const r=function HA(t,n,e){const i=t.directiveRegistry;let s=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];f_(e,o.selectors,!1)&&(s||(s=[]),ul(Mo(e,n),t,o.type),Si(o)?(R_(t,e),s.unshift(o)):s.push(o))}return s}(t,n,e),o=null===i?null:{"":-1};if(null!==r){s=!0,B_(e,t.data.length,r.length);for(let u=0;u<r.length;u++){const h=r[u];h.providersResolver&&h.providersResolver(h)}let a=!1,l=!1,c=Br(t,n,r.length,null);for(let u=0;u<r.length;u++){const h=r[u];e.mergedAttrs=al(e.mergedAttrs,h.hostAttrs),H_(t,e,n,c,h),$A(c,h,o),null!==h.contentQueries&&(e.flags|=8),(null!==h.hostBindings||null!==h.hostAttrs||0!==h.hostVars)&&(e.flags|=128);const d=h.type.prototype;!a&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),a=!0),!l&&(d.ngOnChanges||d.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function LA(t,n){const i=n.directiveEnd,s=t.data,r=n.attrs,o=[];let a=null,l=null;for(let c=n.directiveStart;c<i;c++){const u=s[c],h=u.inputs,d=null===r||d_(n)?null:GA(h,r);o.push(d),a=I_(h,c,a),l=I_(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(n.flags|=16),a.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=o,n.inputs=a,n.outputs=l}(t,e)}o&&function VA(t,n,e){if(n){const i=t.localNames=[];for(let s=0;s<n.length;s+=2){const r=e[n[s+1]];if(null==r)throw new K(-301,!1);i.push(n[s],r)}}}(e,i,o)}return e.mergedAttrs=al(e.mergedAttrs,e.attrs),s}function N_(t,n,e,i,s,r){const o=r.hostBindings;if(o){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~n.index;(function OA(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,s,o)}}function O_(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function R_(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function $A(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;Si(n)&&(e[""]=t)}}function B_(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function H_(t,n,e,i,s){t.data[i]=s;const r=s.factory||(s.factory=Gs(s.type)),o=new Eo(r,Si(s),null);t.blueprint[i]=o,e[i]=o,N_(t,n,0,i,Br(t,e,s.hostVars,fe),s)}function zA(t,n,e){const i=Un(n,t),s=k_(e),r=t[10],o=kl(t,Uo(t,s,null,e.onPush?64:16,i,n,r,r.createRenderer(i,e),null,null));t[n.index]=o}function Ui(t,n,e,i,s,r){const o=Un(t,n);!function Yh(t,n,e,i,s,r,o){if(null==r)Tt(t)?t.removeAttribute(n,s,e):n.removeAttribute(s);else{const a=null==o?he(r):o(r,i||"",s);Tt(t)?t.setAttribute(n,s,a,e):e?n.setAttributeNS(e,s,a):n.setAttribute(s,a)}}(n[11],o,r,t.value,e,i,s)}function jA(t,n,e,i,s,r){const o=r[n];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],h=o[l++];null!==a?i.setInput(e,h,c,u):e[u]=h}}}function GA(t,n){let e=null,i=0;for(;i<n.length;){const s=n[i];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===e&&(e=[]),e.push(s,t[s],n[i+1])),i+=2}else i+=2;else i+=4}return e}function V_(t,n,e,i){return new Array(t,!0,!1,n,null,0,i,e,null,null)}function YA(t,n){const e=Yn(n,t);if(Vu(e)){const i=e[1];80&e[2]?Hr(i,e,i.template,e[8]):e[5]>0&&Xh(e)}}function Xh(t){for(let i=fh(t);null!==i;i=gh(i))for(let s=10;s<i.length;s++){const r=i[s];if(1024&r[2]){const o=r[1];Hr(o,r,o.template,r[8])}else r[5]>0&&Xh(r)}const e=t[1].components;if(null!==e)for(let i=0;i<e.length;i++){const s=Yn(e[i],t);Vu(s)&&s[5]>0&&Xh(s)}}function XA(t,n){const e=Yn(n,t),i=e[1];(function qA(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),Yo(i,e,e[8])}function kl(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function qh(t){for(;t;){t[2]|=64;const n=Vo(t);if(MD(t)&&!n)return t;t=n}return null}function $_(t){!function Qh(t){for(let n=0;n<t.components.length;n++){const e=t.components[n],i=uh(e),s=i[1];EA(s,i,s.template,e)}}(t[8])}function Kh(t,n,e){Uu(0),n(t,e)}const ZA=(()=>Promise.resolve(null))();function z_(t){return t[7]||(t[7]=[])}function j_(t){return t.cleanup||(t.cleanup=[])}function W_(t,n){const e=t[9],i=e?e.get(Wo,null):null;i&&i.handleError(n)}function U_(t,n,e,i,s){for(let r=0;r<e.length;){const o=e[r++],a=e[r++],l=n[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,i,a):l[a]=s}}function ls(t,n,e){const i=Ja(n,t);!function Pm(t,n,e){Tt(t)?t.setValue(n,e):n.textContent=e}(t[11],i,e)}function Ml(t,n,e){let i=e?t.styles:null,s=e?t.classes:null,r=0;if(null!==n)for(let o=0;o<n.length;o++){const a=n[o];"number"==typeof a?r=a:1==r?s=Tu(s,a):2==r&&(i=Tu(i,a+": "+n[++o]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=s:t.classesWithoutHost=s}const Jh=new Ne("INJECTOR",-1);class Y_{get(n,e=No){if(e===No){const i=new Error(`NullInjectorError: No provider for ${We(n)}!`);throw i.name="NullInjectorError",i}return e}}const ed=new Ne("Set Injector scope."),Xo={},eE={};let td;function X_(){return void 0===td&&(td=new Y_),td}function q_(t,n=null,e=null,i){const s=Q_(t,n,e,i);return s._resolveInjectorDefTypes(),s}function Q_(t,n=null,e=null,i){return new tE(t,e,n||X_(),i)}class tE{constructor(n,e,i,s=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&zi(e,a=>this.processProvider(a,n,e)),zi([n],a=>this.processInjectorType(a,[],r)),this.records.set(Jh,Vr(void 0,this));const o=this.records.get(ed);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof n?null:We(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,e=No,i=ge.Default){this.assertNotDestroyed();const s=ym(this),r=Cs(void 0);try{if(!(i&ge.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function cE(t){return"function"==typeof t||"object"==typeof t&&t instanceof Ne}(n)&&Du(n);a=l&&this.injectableDefInScope(l)?Vr(nd(n),Xo):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&ge.Self?X_():this.parent).get(n,e=i&ge.Optional&&e===No?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[gl]=o[gl]||[]).unshift(We(n)),s)throw o;return function N1(t,n,e,i){const s=t[gl];throw n[_m]&&s.unshift(n[_m]),t.message=function O1(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=We(n);if(Array.isArray(n))s=n.map(We).join(" -> ");else if("object"==typeof n){let r=[];for(let o in n)if(n.hasOwnProperty(o)){let a=n[o];r.push(o+":"+("string"==typeof a?JSON.stringify(a):We(a)))}s=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${s}]: ${t.replace(k1,"\n ")}`}("\n"+t.message,s,e,i),t.ngTokenPath=s,t[gl]=null,t}(o,n,"R3InjectorError",this.source)}throw o}finally{Cs(r),ym(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,s)=>n.push(We(s))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new K(205,!1)}processInjectorType(n,e,i){if(!(n=ve(n)))return!1;let s=Sp(n);const r=null==s&&n.ngModule||void 0,o=void 0===r?n:r,a=-1!==i.indexOf(o);if(void 0!==r&&(s=Sp(r)),null==s)return!1;if(null!=s.imports&&!a){let u;i.push(o);try{zi(s.imports,h=>{this.processInjectorType(h,e,i)&&(void 0===u&&(u=[]),u.push(h))})}finally{}if(void 0!==u)for(let h=0;h<u.length;h++){const{ngModule:d,providers:f}=u[h];zi(f,g=>this.processProvider(g,d,f||Ze))}}this.injectorDefTypes.add(o);const l=Gs(o)||(()=>new o);this.records.set(o,Vr(l,Xo));const c=s.providers;if(null!=c&&!a){const u=n;zi(c,h=>this.processProvider(h,u,c))}return void 0!==r&&void 0!==n.providers}processProvider(n,e,i){let s=$r(n=ve(n))?n:ve(n&&n.provide);const r=function iE(t,n,e){return K_(t)?Vr(void 0,t.useValue):Vr(Z_(t),Xo)}(n);if($r(n)||!0!==n.multi)this.records.get(s);else{let o=this.records.get(s);o||(o=Vr(void 0,Xo,!0),o.factory=()=>oh(o.multi),this.records.set(s,o)),s=n,o.multi.push(n)}this.records.set(s,r)}hydrate(n,e){return e.value===Xo&&(e.value=eE,e.value=e.factory()),"object"==typeof e.value&&e.value&&function lE(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=ve(n.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function nd(t){const n=Du(t),e=null!==n?n.factory:Gs(t);if(null!==e)return e;if(t instanceof Ne)throw new K(204,!1);if(t instanceof Function)return function nE(t){const n=t.length;if(n>0)throw Po(n,"?"),new K(204,!1);const e=function _D(t){const n=t&&(t[Ua]||t[Ap]);if(n){const e=function yD(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" 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 "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new K(204,!1)}function Z_(t,n,e){let i;if($r(t)){const s=ve(t);return Gs(s)||nd(s)}if(K_(t))i=()=>ve(t.useValue);else if(function rE(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...oh(t.deps||[]));else if(function sE(t){return!(!t||!t.useExisting)}(t))i=()=>pe(ve(t.useExisting));else{const s=ve(t&&(t.useClass||t.provide));if(!function aE(t){return!!t.deps}(t))return Gs(s)||nd(s);i=()=>new s(...oh(t.deps))}return i}function Vr(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function K_(t){return null!==t&&"object"==typeof t&&L1 in t}function $r(t){return"function"==typeof t}let Dn=(()=>{class t{static create(e,i){var s;if(Array.isArray(e))return q_({name:""},i,e,"");{const r=null!==(s=e.name)&&void 0!==s?s:"";return q_({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=No,t.NULL=new Y_,t.\u0275prov=ze({token:t,providedIn:"any",factory:()=>pe(Jh)}),t.__NG_ELEMENT_ID__=-1,t})();function _E(t,n){il(uh(t)[1],Rt())}function lt(t){let n=function uy(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let s;if(Si(t))s=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new K(903,"");s=n.\u0275dir}if(s){if(e){i.push(s);const o=t;o.inputs=rd(t.inputs),o.declaredInputs=rd(t.declaredInputs),o.outputs=rd(t.outputs);const a=s.hostBindings;a&&bE(t,a);const l=s.viewQuery,c=s.contentQueries;if(l&&vE(t,l),c&&xE(t,c),bu(t.inputs,s.inputs),bu(t.declaredInputs,s.declaredInputs),bu(t.outputs,s.outputs),Si(s)&&s.data.animation){const u=t.data;u.animation=(u.animation||[]).concat(s.data.animation)}}const r=s.features;if(r)for(let o=0;o<r.length;o++){const a=r[o];a&&a.ngInherit&&a(t),a===lt&&(e=!1)}}n=Object.getPrototypeOf(n)}!function yE(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const s=t[i];s.hostVars=n+=s.hostVars,s.hostAttrs=al(s.hostAttrs,e=al(e,s.hostAttrs))}}(i)}function rd(t){return t===vr?{}:t===Ze?[]:t}function vE(t,n){const e=t.viewQuery;t.viewQuery=e?(i,s)=>{n(i,s),e(i,s)}:n}function xE(t,n){const e=t.contentQueries;t.contentQueries=e?(i,s,r)=>{n(i,s,r),e(i,s,r)}:n}function bE(t,n){const e=t.hostBindings;t.hostBindings=e?(i,s)=>{n(i,s),e(i,s)}:n}let Ll=null;function zr(){if(!Ll){const t=Ye.Symbol;if(t&&t.iterator)Ll=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Ll=i)}}}return Ll}function qo(t){return!!function od(t){return null!==t&&("function"==typeof t||"object"==typeof t)}(t)&&(Array.isArray(t)||!(t instanceof Map)&&zr()in t)}function Yi(t,n,e){return t[n]=e}function dn(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function L(t,n,e,i){const s=F();return dn(s,Dr(),n)&&(Pe(),Ui(dt(),s,t,n,e,i)),L}function Gr(t,n,e,i){return dn(t,Dr(),e)?n+he(e)+i:fe}function S(t,n,e,i,s,r,o,a){const l=F(),c=Pe(),u=t+20,h=c.firstCreatePass?function EE(t,n,e,i,s,r,o,a,l){const c=n.consts,u=Rr(n,t,4,o||null,Ss(c,a));Uh(n,e,u,Ss(c,l)),il(n,u);const h=u.tViews=El(2,u,i,s,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),h.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,s,r,o):c.data[u];$i(h,!1);const d=l[11].createComment("");vl(c,l,d,h),hn(d,l),kl(l,l[u]=V_(d,l,d,h)),Ka(h)&&Gh(c,l,h),null!=o&&Wh(l,h,a)}function Q(t,n=ge.Default){const e=F();return null===e?pe(t,n):am(Rt(),e,ve(t),n)}function m(t,n,e){const i=F();return dn(i,Dr(),n)&&function Zn(t,n,e,i,s,r,o,a){const l=Un(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[i])?(U_(t,e,u,i,s),Za(n)&&function IA(t,n){const e=Yn(n,t);16&e[2]||(e[2]|=64)}(e,n.index)):3&n.type&&(i=function FA(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),s=null!=o?o(s,n.value||"",i):s,Tt(r)?r.setProperty(l,i,s):qu(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}(Pe(),dt(),i,t,n,i[11],e,!1),m}function hd(t,n,e,i,s){const o=s?"class":"style";U_(t,e,n.inputs[o],o,i)}function x(t,n,e,i){const s=F(),r=Pe(),o=20+t,a=s[11],l=s[o]=mh(a,n,function r1(){return de.lFrame.currentNamespace}()),c=r.firstCreatePass?function QE(t,n,e,i,s,r,o){const a=n.consts,c=Rr(n,t,2,s,Ss(a,r));return Uh(n,e,c,Ss(a,o)),null!==c.attrs&&Ml(c,c.attrs,!1),null!==c.mergedAttrs&&Ml(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(o,r,s,0,n,e,i):r.data[o];$i(c,!0);const u=c.mergedAttrs;null!==u&&ol(a,l,u);const h=c.classes;null!==h&&Ch(a,l,h);const d=c.styles;return null!==d&&Ym(a,l,d),64!=(64&c.flags)&&vl(r,s,l,c),0===function WD(){return de.lFrame.elementDepthCount}()&&hn(l,s),function UD(){de.lFrame.elementDepthCount++}(),Ka(c)&&(Gh(r,s,c),E_(r,c,s)),null!==i&&Wh(s,c),x}function T(){let t=Rt();zu()?ju():(t=t.parent,$i(t,!1));const n=t;!function YD(){de.lFrame.elementDepthCount--}();const e=Pe();return e.firstCreatePass&&(il(e,t),Fu(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function u1(t){return 0!=(16&t.flags)}(n)&&hd(e,n,F(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function h1(t){return 0!=(32&t.flags)}(n)&&hd(e,n,F(),n.stylesWithoutHost,!1),T}function V(t,n,e,i){return x(t,n,e,i),T(),V}function Xi(t,n,e){const i=F(),s=Pe(),r=t+20,o=s.firstCreatePass?function ZE(t,n,e,i,s){const r=n.consts,o=Ss(r,i),a=Rr(n,t,8,"ng-container",o);return null!==o&&Ml(a,o,!0),Uh(n,e,a,Ss(r,s)),null!==n.queries&&n.queries.elementStart(n,a),a}(r,s,i,n,e):s.data[r];$i(o,!0);const a=i[r]=i[11].createComment("");return vl(s,i,a,o),hn(a,i),Ka(o)&&(Gh(s,i,o),E_(s,o,i)),null!=e&&Wh(i,o),Xi}function qi(){let t=Rt();const n=Pe();return zu()?ju():(t=t.parent,$i(t,!1)),n.firstCreatePass&&(il(n,t),Fu(t)&&n.queries.elementEnd(t)),qi}function j(){return F()}function dd(t){return!!t&&"function"==typeof t.then}const KE=function Fy(t){return!!t&&"function"==typeof t.subscribe};function E(t,n,e,i){const s=F(),r=Pe(),o=Rt();return function Py(t,n,e,i,s,r,o,a){const l=Ka(i),u=t.firstCreatePass&&j_(t),h=n[8],d=z_(n);let f=!0;if(3&i.type||a){const p=Un(i,n),C=a?a(p):p,b=d.length,D=a?M=>a(Lt(M[i.index])):i.index;if(Tt(e)){let M=null;if(!a&&l&&(M=function JE(t,n,e,i){const s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const o=s[r];if(o===e&&s[r+1]===i){const a=n[7],l=s[r+2];return a.length>l?a[l]:null}"string"==typeof o&&(r+=2)}return null}(t,n,s,i.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=r,M.__ngLastListenerFn__=r,f=!1;else{r=fd(i,n,h,r,!1);const N=e.listen(C,s,r);d.push(r,N),u&&u.push(s,D,b,b+1)}}else r=fd(i,n,h,r,!0),C.addEventListener(s,r,o),d.push(r),u&&u.push(s,D,b,o)}else r=fd(i,n,h,r,!1);const g=i.outputs;let v;if(f&&null!==g&&(v=g[s])){const p=v.length;if(p)for(let C=0;C<p;C+=2){const I=n[v[C]][v[C+1]].subscribe(r),X=d.length;d.push(r,I),u&&u.push(s,i.index,X,-(X+1))}}}(r,s,s[11],o,t,n,!!e,i),E}function Ny(t,n,e,i){try{return!1!==e(i)}catch(s){return W_(t,s),!1}}function fd(t,n,e,i,s){return function r(o){if(o===Function)return i;const a=2&t.flags?Yn(t.index,n):n;0==(32&n[2])&&qh(a);let l=Ny(n,0,i,o),c=r.__ngNextListenerFn__;for(;c;)l=Ny(n,0,c,o)&&l,c=c.__ngNextListenerFn__;return s&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function y(t=1){return function t1(t){return(de.lFrame.contextLView=function n1(t,n){for(;t>0;)n=n[15],t--;return n}(t,de.lFrame.contextLView))[8]}(t)}function ek(t,n){let e=null;const i=function lA(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let s=0;s<n.length;s++){const r=n[s];if("*"!==r){if(null===i?f_(t,r,!0):hA(i,r))return s}else e=s}return e}function gd(t){const n=F()[16][6];if(!n.projection){const i=n.projection=Po(t?t.length:1,null),s=i.slice();let r=n.child;for(;null!==r;){const o=t?ek(r,t):0;null!==o&&(s[o]?s[o].projectionNext=r:i[o]=r,s[o]=r),r=r.next}}}function pd(t,n=0,e){const i=F(),s=Pe(),r=Rr(s,20+t,16,null,e||null);null===r.projection&&(r.projection=n),ju(),64!=(64&r.flags)&&function fS(t,n,e){Um(n[11],0,n,e,Rm(t,e,n),$m(e.parent||n[6],e,n))}(s,i,r)}function Wy(t,n,e,i,s){const r=t[e+1],o=null===n;let a=i?Ei(r):as(r),l=!1;for(;0!==a&&(!1===l||o);){const u=t[a+1];ik(t[a],n)&&(l=!0,t[a+1]=i?Ph(u):Fh(u)),a=i?Ei(u):as(u)}l&&(t[e+1]=i?Fh(r):Ph(r))}function ik(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Ir(t,n)>=0}const Ht={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Uy(t){return t.substring(Ht.key,Ht.keyEnd)}function Yy(t,n){const e=Ht.textEnd;return e===n?-1:(n=Ht.keyEnd=function ak(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,Ht.key=n,e),Jr(t,n,e))}function Jr(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function ke(t,n,e){return Mi(t,n,e,!1),ke}function qt(t,n){return Mi(t,n,null,!0),qt}function Zi(t,n){for(let e=function rk(t){return function qy(t){Ht.key=0,Ht.keyEnd=0,Ht.value=0,Ht.valueEnd=0,Ht.textEnd=t.length}(t),Yy(t,Jr(t,0,Ht.textEnd))}(n);e>=0;e=Yy(n,e))Xn(t,Uy(n),!0)}function Mi(t,n,e,i){const s=F(),r=Pe(),o=os(2);r.firstUpdatePass&&ev(r,t,o,i),n!==fe&&dn(s,o,n)&&nv(r,r.data[Cn()],s,s[11],t,s[o+1]=function _k(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=We(Qn(t)))),t}(n,e),i,o)}function Li(t,n,e,i){const s=Pe(),r=os(2);s.firstUpdatePass&&ev(s,null,r,i);const o=F();if(e!==fe&&dn(o,r,e)){const a=s.data[Cn()];if(sv(a,i)&&!Jy(s,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Tu(l,e||"")),hd(s,a,o,e,i)}else!function mk(t,n,e,i,s,r,o,a){s===fe&&(s=Ze);let l=0,c=0,u=0<s.length?s[0]:null,h=0<r.length?r[0]:null;for(;null!==u||null!==h;){const d=l<s.length?s[l+1]:void 0,f=c<r.length?r[c+1]:void 0;let v,g=null;u===h?(l+=2,c+=2,d!==f&&(g=h,v=f)):null===h||null!==u&&u<h?(l+=2,g=u):(c+=2,g=h,v=f),null!==g&&nv(t,n,e,i,g,v,o,a),u=l<s.length?s[l]:null,h=c<r.length?r[c]:null}}(s,a,o,o[11],o[r+1],o[r+1]=function pk(t,n,e){if(null==e||""===e)return Ze;const i=[],s=Qn(e);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(i,s[r],!0);else if("object"==typeof s)for(const r in s)s.hasOwnProperty(r)&&t(i,r,s[r]);else"string"==typeof s&&n(i,s);return i}(t,n,e),i,r)}}function Jy(t,n){return n>=t.expandoStartIndex}function ev(t,n,e,i){const s=t.data;if(null===s[e+1]){const r=s[Cn()],o=Jy(t,e);sv(r,i)&&null===n&&!o&&(n=!1),n=function hk(t,n,e,i){const s=function Wu(t){const n=de.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let r=i?n.residualClasses:n.residualStyles;if(null===s)0===(i?n.classBindings:n.styleBindings)&&(e=Zo(e=_d(null,t,n,e,i),n.attrs,i),r=null);else{const o=n.directiveStylingLast;if(-1===o||t[o]!==s)if(e=_d(s,t,n,e,i),null===r){let l=function dk(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==as(i))return t[Ei(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=_d(null,t,n,l[1],i),l=Zo(l,n.attrs,i),function fk(t,n,e,i){t[Ei(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function gk(t,n,e){let i;const s=n.directiveEnd;for(let r=1+n.directiveStylingLast;r<s;r++)i=Zo(i,t[r].hostAttrs,e);return Zo(i,n.attrs,e)}(t,n,i)}return void 0!==r&&(i?n.residualClasses=r:n.residualStyles=r),e}(s,r,n,i),function tk(t,n,e,i,s,r){let o=r?n.classBindings:n.styleBindings,a=Ei(o),l=as(o);t[i]=e;let u,c=!1;if(Array.isArray(e)){const h=e;u=h[1],(null===u||Ir(h,u)>0)&&(c=!0)}else u=e;if(s)if(0!==l){const d=Ei(t[a+1]);t[i+1]=Dl(d,a),0!==d&&(t[d+1]=Ih(t[d+1],i)),t[a+1]=function pA(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=Dl(a,0),0!==a&&(t[a+1]=Ih(t[a+1],i)),a=i;else t[i+1]=Dl(l,0),0===a?a=i:t[l+1]=Ih(t[l+1],i),l=i;c&&(t[i+1]=Fh(t[i+1])),Wy(t,u,i,!0),Wy(t,u,i,!1),function nk(t,n,e,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&Ir(r,n)>=0&&(e[i+1]=Ph(e[i+1]))}(n,u,t,i,r),o=Dl(a,l),r?n.classBindings=o:n.styleBindings=o}(s,r,n,e,o,i)}}function _d(t,n,e,i,s){let r=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(r=n[a],i=Zo(i,r.hostAttrs,s),r!==t);)a++;return null!==t&&(e.directiveStylingLast=a),i}function Zo(t,n,e){const i=e?1:2;let s=-1;if(null!==n)for(let r=0;r<n.length;r++){const o=n[r];"number"==typeof o?s=o:s===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Xn(t,o,!!e||n[++r]))}return void 0===t?null:t}function nv(t,n,e,i,s,r,o,a){if(!(3&n.type))return;const l=t.data,c=l[a+1];Pl(function y_(t){return 1==(1&t)}(c)?iv(l,n,e,s,as(c),o):void 0)||(Pl(r)||function __(t){return 2==(2&t)}(c)&&(r=iv(l,null,e,s,a,o)),function pS(t,n,e,i,s){const r=Tt(t);if(n)s?r?t.addClass(e,i):e.classList.add(i):r?t.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:qn.DashCase;if(null==s)r?t.removeStyle(e,i,o):e.style.removeProperty(i);else{const a="string"==typeof s&&s.endsWith("!important");a&&(s=s.slice(0,-10),o|=qn.Important),r?t.setStyle(e,i,s,o):e.style.setProperty(i,s,a?"important":"")}}}(i,o,Ja(Cn(),e),s,r))}function iv(t,n,e,i,s,r){const o=null===n;let a;for(;s>0;){const l=t[s],c=Array.isArray(l),u=c?l[1]:l,h=null===u;let d=e[s+1];d===fe&&(d=h?Ze:void 0);let f=h?ih(d,i):u===i?d:void 0;if(c&&!Pl(f)&&(f=ih(l,i)),Pl(f)&&(a=f,o))return a;const g=t[s+1];s=o?Ei(g):as(g)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(a=ih(l,i))}return a}function Pl(t){return void 0!==t}function sv(t,n){return 0!=(t.flags&(n?16:32))}function Be(t,n=""){const e=F(),i=Pe(),s=t+20,r=i.firstCreatePass?Rr(i,s,1,n,null):i.data[s],o=e[s]=function ph(t,n){return Tt(t)?t.createText(n):t.createTextNode(n)}(e[11],n);vl(i,e,o,r),$i(r,!1)}function Kn(t){return gt("",t,""),Kn}function gt(t,n,e){const i=F(),s=Gr(i,t,n,e);return s!==fe&&ls(i,Cn(),s),gt}const Nl="en-US";let Sv=Nl;function bd(t,n,e,i,s){if(t=ve(t),Array.isArray(t))for(let r=0;r<t.length;r++)bd(t[r],n,e,i,s);else{const r=Pe(),o=F();let a=$r(t)?t:ve(t.provide),l=Z_(t);const c=Rt(),u=1048575&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>20;if($r(t)||!t.multi){const f=new Eo(l,s,Q),g=Cd(a,n,s?u:u+d,h);-1===g?(ul(Mo(c,o),r,a),Td(r,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),e.push(f),o.push(f)):(e[g]=f,o[g]=f)}else{const f=Cd(a,n,u+d,h),g=Cd(a,n,u,u+d),v=f>=0&&e[f],p=g>=0&&e[g];if(s&&!p||!s&&!v){ul(Mo(c,o),r,a);const C=function NM(t,n,e,i,s){const r=new Eo(t,e,Q);return r.multi=[],r.index=n,r.componentProviders=0,Qv(r,s,i&&!e),r}(s?PM:IM,e.length,s,i,l);!s&&p&&(e[g].providerFactory=C),Td(r,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),e.push(C),o.push(C)}else Td(r,t,f>-1?f:g,Qv(e[s?g:f],l,!s&&i));!s&&i&&p&&e[g].componentProviders++}}}function Td(t,n,e,i){const s=$r(n),r=function oE(t){return!!t.useClass}(n);if(s||r){const l=(r?ve(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!s&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function Qv(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Cd(t,n,e,i){for(let s=e;s<i;s++)if(n[s]===t)return s;return-1}function IM(t,n,e,i){return wd(this.multi,[])}function PM(t,n,e,i){const s=this.multi;let r;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Lo(e,e[1],this.providerFactory.index,i);r=a.slice(0,o),wd(s,r);for(let l=o;l<a.length;l++)r.push(a[l])}else r=[],wd(s,r);return r}function wd(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function Zv(t,n=[]){return e=>{e.providersResolver=(i,s)=>function FM(t,n,e){const i=Pe();if(i.firstCreatePass){const s=Si(t);bd(e,i.data,i.blueprint,s,!0),bd(n,i.data,i.blueprint,s,!1)}}(i,s?s(t):t,n)}}class Kv{}class BM{resolveComponentFactory(n){throw function RM(t){const n=Error(`No component factory found for ${We(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let Zs=(()=>{class t{}return t.NULL=new BM,t})();function HM(){return no(Rt(),F())}function no(t,n){return new ct(Un(t,n))}let ct=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=HM,t})();function VM(t){return t instanceof ct?t.nativeElement:t}class na{}let Vl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function zM(){const t=F(),e=Yn(Rt().index,t);return function $M(t){return t[11]}(Vi(e)?e:t)}(),t})(),jM=(()=>{class t{}return t.\u0275prov=ze({token:t,providedIn:"root",factory:()=>null}),t})();class $l{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const GM=new $l("13.4.0"),Dd={};function zl(t,n,e,i,s=!1){for(;null!==e;){const r=n[e.index];if(null!==r&&i.push(Lt(r)),Di(r))for(let a=10;a<r.length;a++){const l=r[a],c=l[1].firstChild;null!==c&&zl(l[1],l,c,i)}const o=e.type;if(8&o)zl(t,n,e.child,i);else if(32&o){const a=dh(e,n);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Wm(n,e);if(Array.isArray(a))i.push(...a);else{const l=Vo(n[16]);zl(l[1],l,a,i,!0)}}e=s?e.projectionNext:e.next}return i}class ia{constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,e=n[1];return zl(e,n,e.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(Di(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(_h(n,i),dl(e,i))}this._attachedToViewContainer=!1}Om(this._lView[1],this._lView)}onDestroy(n){F_(this._lView[1],this._lView,null,n)}markForCheck(){qh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Zh(t,n,e){const i=n[10];i.begin&&i.begin();try{Hr(t,n,t.template,e)}catch(s){throw W_(n,s),s}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new K(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function rS(t,n){$o(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new K(902,"");this._appRef=n}}class WM extends ia{constructor(n){super(n),this._view=n}detectChanges(){$_(this._view)}checkNoChanges(){}get context(){return null}}class ex extends Zs{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=tn(n);return new Sd(e,this.ngModule)}}function tx(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class Sd extends Kv{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function fA(t){return t.map(dA).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return tx(this.componentDef.inputs)}get outputs(){return tx(this.componentDef.outputs)}create(n,e,i,s){const r=(s=s||this.ngModule)?function YM(t,n){return{get:(e,i,s)=>{const r=t.get(e,Dd,s);return r!==Dd||i===Dd?r:n.get(e,i,s)}}}(n,s.injector):n,o=r.get(na,Hp),a=r.get(jM,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function L_(t,n,e){if(Tt(t))return t.selectRootElement(n,e===Ci.ShadowDom);let i="string"==typeof n?t.querySelector(n):n;return i.textContent="",i}(l,i,this.componentDef.encapsulation):mh(o.createRenderer(null,this.componentDef),c,function UM(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(c)),h=this.componentDef.onPush?576:528,d=function cy(t,n){return{components:[],scheduler:t||tA,clean:ZA,playerHandler:n||null,flags:0}}(),f=El(0,null,null,1,0,null,null,null,null,null),g=Uo(null,f,d,h,null,null,o,l,a,r);let v,p;tl(g);try{const C=function ay(t,n,e,i,s,r){const o=e[1];e[20]=t;const l=Rr(o,20,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(Ml(l,c,!0),null!==t&&(ol(s,t,c),null!==l.classes&&Ch(s,t,l.classes),null!==l.styles&&Ym(s,t,l.styles)));const u=i.createRenderer(t,n),h=Uo(e,k_(n),null,n.onPush?64:16,e[20],l,i,u,r||null,null);return o.firstCreatePass&&(ul(Mo(l,e),o,n.type),R_(o,l),B_(l,e.length,1)),kl(e,h),e[20]=h}(u,this.componentDef,g,o,l);if(u)if(i)ol(l,u,["ng-version",GM.full]);else{const{attrs:b,classes:D}=function gA(t){const n=[],e=[];let i=1,s=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===s?""!==r&&n.push(r,t[++i]):8===s&&e.push(r);else{if(!Ai(s))break;s=r}i++}return{attrs:n,classes:e}}(this.componentDef.selectors[0]);b&&ol(l,u,b),D&&D.length>0&&Ch(l,u,D.join(" "))}if(p=Hu(f,20),void 0!==e){const b=p.projection=[];for(let D=0;D<this.ngContentSelectors.length;D++){const M=e[D];b.push(null!=M?Array.from(M):null)}}v=function ly(t,n,e,i,s){const r=e[1],o=function NA(t,n,e){const i=Rt();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),H_(t,i,n,Br(t,n,1,null),e));const s=Lo(n,t,i.directiveStart,i);hn(s,n);const r=Un(i,n);return r&&hn(r,n),s}(r,e,n);if(i.components.push(o),t[8]=o,s&&s.forEach(l=>l(o,n)),n.contentQueries){const l=Rt();n.contentQueries(1,o,l.directiveStart)}const a=Rt();return!r.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(As(a.index),N_(e[1],a,0,a.directiveStart,a.directiveEnd,n),O_(n,o)),o}(C,this.componentDef,g,d,[_E]),Yo(f,g,null)}finally{nl()}return new qM(this.componentType,v,no(p,g),g,p)}}class qM extends class OM{}{constructor(n,e,i,s,r){super(),this.location=i,this._rootLView=s,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new WM(s),this.componentType=n}get injector(){return new Er(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class io{}const so=new Map;class sx extends io{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ex(this);const i=li(n);this._bootstrapComponents=Wi(i.bootstrap),this._r3Injector=Q_(n,e,[{provide:io,useValue:this},{provide:Zs,useValue:this.componentFactoryResolver}],We(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=Dn.THROW_IF_NOT_FOUND,i=ge.Default){return n===Dn||n===io||n===Jh?this:this._r3Injector.get(n,e,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Ad extends class ZM{}{constructor(n){super(),this.moduleType=n,null!==li(n)&&function KM(t){const n=new Set;!function e(i){const s=li(i,!0),r=s.id;null!==r&&(function nx(t,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${t} - ${We(n)} vs ${We(n.name)}`)}(r,so.get(r),i),so.set(r,i));const o=Wi(s.imports);for(const a of o)n.has(a)||(n.add(a),e(a))}(t)}(n)}create(n){return new sx(this.moduleType,n)}}function jl(t,n,e,i){return function ox(t,n,e,i,s,r){const o=n+e;return dn(t,o,s)?Yi(t,o+1,r?i.call(r,s):i(s)):sa(t,o+1)}(F(),Tn(),t,n,e,i)}function Ke(t,n,e,i,s){return function ax(t,n,e,i,s,r,o){const a=n+e;return function qs(t,n,e,i){const s=dn(t,n,e);return dn(t,n+1,i)||s}(t,a,s,r)?Yi(t,a+2,o?i.call(o,s,r):i(s,r)):sa(t,a+2)}(F(),Tn(),t,n,e,i,s)}function sa(t,n){const e=t[n];return e===fe?void 0:e}function kd(t){return n=>{setTimeout(t,void 0,n)}}const k=class dL extends R{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var s,r,o;let a=n,l=e||(()=>null),c=i;if(n&&"object"==typeof n){const h=n;a=null===(s=h.next)||void 0===s?void 0:s.bind(h),l=null===(r=h.error)||void 0===r?void 0:r.bind(h),c=null===(o=h.complete)||void 0===o?void 0:o.bind(h)}this.__isAsync&&(l=kd(l),a&&(a=kd(a)),c&&(c=kd(c)));const u=super.subscribe({next:a,error:l,complete:c});return n instanceof se&&n.add(u),u}};function fL(){return this._results[zr()]()}class Md{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=zr(),i=Md.prototype;i[e]||(i[e]=fL)}get changes(){return this._changes||(this._changes=new k)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const s=hi(n);(this._changesDetected=!function x1(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let s=t[i],r=n[i];if(e&&(s=e(s),r=e(r)),r!==s)return!1}return!0}(i._results,s,e))&&(i._results=s,i.length=s.length,i.last=s[this.length-1],i.first=s[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 cs=(()=>{class t{}return t.__NG_ELEMENT_ID__=mL,t})();const gL=cs,pL=class extends gL{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n){const e=this._declarationTContainer.tViews,i=Uo(this._declarationLView,e,n,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(i[19]=r.createEmbeddedView(e)),Yo(e,i,n),new ia(i)}};function mL(){return Gl(Rt(),F())}function Gl(t,n){return 4&t.type?new pL(n,t,no(t,n)):null}let fi=(()=>{class t{}return t.__NG_ELEMENT_ID__=_L,t})();function _L(){return fx(Rt(),F())}const yL=fi,hx=class extends yL{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return no(this._hostTNode,this._hostLView)}get injector(){return new Er(this._hostTNode,this._hostLView)}get parentInjector(){const n=cl(this._hostTNode,this._hostLView);if(nm(n)){const e=Ar(n,this._hostLView),i=Sr(n);return new Er(e[1].data[i+8],e)}return new Er(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=dx(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){const s=n.createEmbeddedView(e||{});return this.insert(s,i),s}createComponent(n,e,i,s,r){const o=n&&!function Io(t){return"function"==typeof t}(n);let a;if(o)a=e;else{const h=e||{};a=h.index,i=h.injector,s=h.projectableNodes,r=h.ngModuleRef}const l=o?n:new Sd(tn(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const d=(o?c:this.parentInjector).get(io,null);d&&(r=d)}const u=l.create(c,s,void 0,r);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,s=i[1];if(function GD(t){return Di(t[3])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const h=i[3],d=new hx(h,h[6],h[3]);d.detach(d.indexOf(n))}}const r=this._adjustIndex(e),o=this._lContainer;!function aS(t,n,e,i){const s=10+i,r=e.length;i>0&&(e[s-1][4]=n),i<r-10?(n[4]=e[s],dm(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const o=n[17];null!==o&&e!==o&&function lS(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(o,n);const a=n[19];null!==a&&a.insertView(t),n[2]|=128}(s,i,o,r);const a=xh(r,o),l=i[11],c=yl(l,o[7]);return null!==c&&function sS(t,n,e,i,s,r){i[0]=s,i[6]=n,$o(t,i,e,1,s,r)}(s,o[6],l,i,c,a),n.attachToViewContainerRef(),dm(Ld(o),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=dx(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=_h(this._lContainer,e);i&&(dl(Ld(this._lContainer),e),Om(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=_h(this._lContainer,e);return i&&null!=dl(Ld(this._lContainer),e)?new ia(i):null}_adjustIndex(n,e=0){return null==n?this.length+e:n}};function dx(t){return t[8]}function Ld(t){return t[8]||(t[8]=[])}function fx(t,n){let e;const i=n[t.index];if(Di(i))e=i;else{let s;if(8&t.type)s=Lt(i);else{const r=n[11];s=r.createComment("");const o=Un(t,n);Us(r,yl(r,o),s,function dS(t,n){return Tt(t)?t.nextSibling(n):n.nextSibling}(r,o),!1)}n[t.index]=e=V_(i,n,s,t),kl(n,e)}return new hx(e,t,n)}class Fd{constructor(n){this.queryList=n,this.matches=null}clone(){return new Fd(this.queryList)}setDirty(){this.queryList.setDirty()}}class Id{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,s=[];for(let r=0;r<i;r++){const o=e.getByIndex(r);s.push(this.queries[o.indexInDeclarationView].clone())}return new Id(s)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==yx(n,e).matches&&this.queries[e].setDirty()}}class gx{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class Pd{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const s=null!==e?e.length:0,r=this.getByIndex(i).embeddedTView(n,s);r&&(r.indexInDeclarationView=i,null!==e?e.push(r):e=[r])}return null!==e?new Pd(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class Nd{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new Nd(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let s=0;s<i.length;s++){const r=i[s];this.matchTNodeWithReadOption(n,e,bL(e,r)),this.matchTNodeWithReadOption(n,e,hl(e,n,r,!1,!1))}else i===cs?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,hl(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const s=this.metadata.read;if(null!==s)if(s===ct||s===fi||s===cs&&4&e.type)this.addMatch(e.index,-2);else{const r=hl(e,n,s,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function bL(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function CL(t,n,e,i){return-1===e?function TL(t,n){return 11&t.type?no(t,n):4&t.type?Gl(t,n):null}(n,t):-2===e?function wL(t,n,e){return e===ct?no(n,t):e===cs?Gl(n,t):e===fi?fx(n,t):void 0}(t,n,i):Lo(t,t[1],e,n)}function px(t,n,e,i){const s=n[19].queries[i];if(null===s.matches){const r=t.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:CL(n,r[c],o[l+1],e.metadata.read))}s.matches=a}return s.matches}function Od(t,n,e,i){const s=t.queries.getByIndex(e),r=s.matches;if(null!==r){const o=px(t,n,s,e);for(let a=0;a<r.length;a+=2){const l=r[a];if(l>0)i.push(o[a/2]);else{const c=r[a+1],u=n[-l];for(let h=10;h<u.length;h++){const d=u[h];d[17]===d[3]&&Od(d[1],d,c,i)}if(null!==u[9]){const h=u[9];for(let d=0;d<h.length;d++){const f=h[d];Od(f[1],f,c,i)}}}}}return i}function Me(t){const n=F(),e=Pe(),i=Yp();Uu(i+1);const s=yx(e,i);if(t.dirty&&Vp(n)===(2==(2&s.metadata.flags))){if(null===s.matches)t.reset([]);else{const r=s.crossesNgTemplate?Od(e,n,i,[]):px(e,n,s,i);t.reset(r,VM),t.notifyOnChanges()}return!0}return!1}function gi(t,n,e){const i=Pe();i.firstCreatePass&&(_x(i,new gx(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),mx(i,F(),n)}function rt(t,n,e,i){const s=Pe();if(s.firstCreatePass){const r=Rt();_x(s,new gx(n,e,i),r.index),function SL(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(s,t),2==(2&e)&&(s.staticContentQueries=!0)}mx(s,F(),e)}function Le(){return function DL(t,n){return t[19].queries[n].queryList}(F(),Yp())}function mx(t,n,e){const i=new Md(4==(4&e));F_(t,n,i,i.destroy),null===n[19]&&(n[19]=new Id),n[19].queries.push(new Fd(i))}function _x(t,n,e){null===t.queries&&(t.queries=new Pd),t.queries.track(new Nd(n,e))}function yx(t,n){return t.queries.getByIndex(n)}function vx(t,n){return Gl(t,n)}function Yl(...t){}const Ox=new Ne("Application Initializer");let zd=(()=>{class t{constructor(e){this.appInits=e,this.resolve=Yl,this.reject=Yl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,s)=>{this.resolve=i,this.reject=s})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s<this.appInits.length;s++){const r=this.appInits[s]();if(dd(r))e.push(r);else if(KE(r)){const o=new Promise((a,l)=>{r.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(s=>{this.reject(s)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(pe(Ox,8))},t.\u0275prov=ze({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const aa=new Ne("AppId",{providedIn:"root",factory:function Rx(){return`${jd()}${jd()}${jd()}`}});function jd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Bx=new Ne("Platform Initializer"),Hx=new Ne("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),jL=new Ne("appBootstrapListener"),Ls=new Ne("LocaleId",{providedIn:"root",factory:()=>I1(Ls,ge.Optional|ge.SkipSelf)||function GL(){return"undefined"!=typeof $localize&&$localize.locale||Nl}()}),XL=(()=>Promise.resolve(0))();function Gd(t){"undefined"==typeof Zone?XL.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ft{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new k(!1),this.onMicrotaskEmpty=new k(!1),this.onStable=new k(!1),this.onError=new k(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&e,s.shouldCoalesceRunChangeDetection=i,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function qL(){let t=Ye.requestAnimationFrame,n=Ye.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function KL(t){const n=()=>{!function ZL(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ye,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ud(t),t.isCheckStableRunning=!0,Wd(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ud(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,s,r,o,a)=>{try{return Vx(t),e.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),$x(t)}},onInvoke:(e,i,s,r,o,a,l)=>{try{return Vx(t),e.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),$x(t)}},onHasTask:(e,i,s,r)=>{e.hasTask(s,r),i===s&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Ud(t),Wd(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,s,r)=>(e.handleError(s,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(s)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ft.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ft.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,s){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+s,n,QL,Yl,Yl);try{return r.runTask(o,e,i)}finally{r.cancelTask(o)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const QL={};function Wd(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 Ud(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Vx(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function $x(t){t._nesting--,Wd(t)}class JL{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new k,this.onMicrotaskEmpty=new k,this.onStable=new k,this.onError=new k}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,s){return n.apply(e,i)}}let Yd=(()=>{class t{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.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:()=>{Ft.assertNotInAngularZone(),Gd(()=>{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())Gd(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,s){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:s})}whenStable(e,i,s){if(s&&!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(e,i,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,s){return[]}}return t.\u0275fac=function(e){return new(e||t)(pe(Ft))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})(),eF=(()=>{class t{constructor(){this._applications=new Map,Xd.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Xd.findTestabilityInTree(this,e,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ze({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class tF{addToWindow(n){}findTestabilityInTree(n,e,i){return null}}let Xd=new tF,Ks=null;const zx=new Ne("AllowMultipleToken"),jx=new Ne("PlatformOnDestroy");function Gx(t,n,e=[]){const i=`Platform: ${n}`,s=new Ne(i);return(r=[])=>{let o=qd();if(!o||o.injector.get(zx,!1)){const a=[...e,...r,{provide:s,useValue:!0}];t?t(a):function rF(t){if(Ks&&!Ks.get(zx,!1))throw new K(400,"");Ks=t;const n=t.get(Wx),e=t.get(Bx,null);e&&e.forEach(i=>i())}(function aF(t=[],n){return Dn.create({name:n,providers:[{provide:ed,useValue:"platform"},{provide:jx,useValue:()=>Ks=null},...t]})}(a,i))}return function oF(t){const n=qd();if(!n)throw new K(401,"");return n}()}}function qd(){var t;return null!==(t=null==Ks?void 0:Ks.get(Wx))&&void 0!==t?t:null}let Wx=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function lF(t,n){let e;return e="noop"===t?new JL:("zone.js"===t?void 0:t)||new Ft({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:Ft,useValue:a}];return a.run(()=>{const c=Dn.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),h=u.injector.get(Wo,null);if(!h)throw new K(402,"");return a.runOutsideAngular(()=>{const d=a.onError.subscribe({next:f=>{h.handleError(f)}});u.onDestroy(()=>{Qd(this._modules,u),d.unsubscribe()})}),function cF(t,n,e){try{const i=e();return dd(i)?i.catch(s=>{throw n.runOutsideAngular(()=>t.handleError(s)),s}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(h,a,()=>{const d=u.injector.get(zd);return d.runInitializers(),d.donePromise.then(()=>(function $k(t){Gn(t,"Expected localeId to be defined"),"string"==typeof t&&(Sv=t.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Ls,Nl)||Nl),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const s=Ux({},i);return function iF(t,n,e){const i=new Ad(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,s))}_moduleDoBootstrap(e){const i=e.injector.get(Xl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(s=>i.bootstrap(s));else{if(!e.instance.ngDoBootstrap)throw new K(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new K(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(jx,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(pe(Dn))},t.\u0275prov=ze({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function Ux(t,n){return Array.isArray(n)?n.reduce(Ux,t):Object.assign(Object.assign({},t),n)}let Xl=(()=>{class t{constructor(e,i,s,r){this._zone=e,this._injector=i,this._exceptionHandler=s,this._initStatus=r,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 je(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new je(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Ft.assertNotInAngularZone(),Gd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{Ft.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=Tp(o,a.pipe(function hD(){return t=>Cp()(function lD(t,n){return function(i){let s;if(s="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new cD(s,n));const r=Object.create(i,rD);return r.source=i,r.subjectFactory=s,r}}(uD)(t))}()))}bootstrap(e,i){if(!this._initStatus.done)throw new K(405,"");let s;s=e instanceof Kv?e:this._injector.get(Zs).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const r=function sF(t){return t.isBoundToModule}(s)?void 0:this._injector.get(io),a=s.create(Dn.NULL,[],i||s.selector,r),l=a.location.nativeElement,c=a.injector.get(Yd,null),u=c&&a.injector.get(eF);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Qd(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new K(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Qd(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(jL,[]).concat(this._bootstrapListeners).forEach(s=>s(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(pe(Ft),pe(Dn),pe(Wo),pe(zd))},t.\u0275prov=ze({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Qd(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let Xx=!0,Js=(()=>{class t{}return t.__NG_ELEMENT_ID__=dF,t})();function dF(t){return function fF(t,n,e){if(Za(t)&&!e){const i=Yn(t.index,n);return new ia(i,i)}return 47&t.type?new ia(n[16],n):null}(Rt(),F(),16==(16&t))}class Jx{constructor(){}supports(n){return qo(n)}create(n){return new vF(n)}}const yF=(t,n)=>n;class vF{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||yF}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,s=0,r=null;for(;e||i;){const o=!i||e&&e.currentIndex<t0(i,s,r)?e:i,a=t0(o,s,r),l=o.currentIndex;if(o===i)s--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)s++;else{r||(r=[]);const c=a-s,u=l-s;if(c!=u){for(let d=0;d<c;d++){const f=d<r.length?r[d]:r[d]=0,g=f+d;u<=g&&g<c&&(r[d]=f+1)}r[o.previousIndex]=u-c}}a!==l&&n(o,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!qo(n))throw new K(900,"");return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let s,r,o,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)r=n[a],o=this._trackByFn(a,r),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,r,o,a)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,o,a),i=!0),e=e._next}else s=0,function AE(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[zr()]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,a=>{o=this._trackByFn(s,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,s)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,s),i=!0),e=e._next,s++}),this.length=s;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,s){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,s)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,s))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,s)):n=this._addAfter(new xF(e,i),r,s),n}_verifyReinsertion(n,e,i,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,s):n.currentIndex!=s&&(n.currentIndex=s,this._addToMoves(n,s)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const s=n._prevRemoved,r=n._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const s=null===e?this._itHead:e._next;return n._next=s,n._prev=e,null===s?this._itTail=n:s._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new e0),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new e0),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class xF{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class bF{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class e0{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new bF,this.map.set(e,i)),i.add(n)}get(n,e){const s=this.map.get(n);return s?s.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function t0(t,n,e){const i=t.previousIndex;if(null===i)return i;let s=0;return e&&i<e.length&&(s=e[i]),i+n+s}function s0(){return new Zl([new Jx])}let Zl=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const s=i.factories.slice();e=e.concat(s)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||s0()),deps:[[t,new ml,new pl]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(null!=i)return i;throw new K(901,"")}}return t.\u0275prov=ze({token:t,providedIn:"root",factory:s0}),t})();const SF=Gx(null,"core",[]);let AF=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(pe(Xl))},t.\u0275mod=St({type:t}),t.\u0275inj=xt({}),t})(),Kl=null;function ca(){return Kl}const Pn=new Ne("DocumentToken");class vI{constructor(n,e,i,s){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Oe=(()=>{class t{constructor(e,i,s){this._viewContainer=e,this._template=i,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((s,r,o)=>{if(null==s.previousIndex)i.createEmbeddedView(this._template,new vI(s.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===r?void 0:r);else if(null!==r){const a=i.get(r);i.move(a,o),m0(a,s)}});for(let s=0,r=i.length;s<r;s++){const a=i.get(s).context;a.index=s,a.count=r,a.ngForOf=this._ngForOf}e.forEachIdentityChange(s=>{m0(i.get(s.currentIndex),s)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(Q(fi),Q(cs),Q(Zl))},t.\u0275dir=xn({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function m0(t,n){t.context.$implicit=n.item}let Ce=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new xI,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){_0("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){_0("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(Q(fi),Q(cs))},t.\u0275dir=xn({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class xI{constructor(){this.$implicit=null,this.ngIf=null}}function _0(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${We(n)}'.`)}class ff{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let uc=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==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(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=xn({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),C0=(()=>{class t{constructor(e,i,s){this.ngSwitch=s,s._addCase(),this._view=new ff(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(Q(fi),Q(cs),Q(uc,9))},t.\u0275dir=xn({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),D0=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(Q(fi))},t.\u0275dir=xn({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[_e]}),t})(),fa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({}),t})();class mf extends class TP extends class MF{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function kF(t){Kl||(Kl=t)}(new mf)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function CP(){return ga=ga||document.querySelector("base"),ga?ga.getAttribute("href"):null}();return null==e?null:function wP(t){hc=hc||document.createElement("a"),hc.setAttribute("href",t);const n=hc.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){ga=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function mI(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[s,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(s.trim()===n)return decodeURIComponent(r)}return null}(document.cookie,n)}}let hc,ga=null;const E0=new Ne("TRANSITION_ID"),SP=[{provide:Ox,useFactory:function DP(t,n,e){return()=>{e.get(zd).donePromise.then(()=>{const i=ca(),s=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let r=0;r<s.length;r++)i.remove(s[r])})}},deps:[E0,Pn,Dn],multi:!0}];class _f{static init(){!function nF(t){Xd=t}(new _f)}addToWindow(n){Ye.getAngularTestability=(i,s=!0)=>{const r=n.findTestabilityInTree(i,s);if(null==r)throw new Error("Could not find testability for element.");return r},Ye.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ye.getAllAngularRootElements=()=>n.getAllRootElements(),Ye.frameworkStabilizers||(Ye.frameworkStabilizers=[]),Ye.frameworkStabilizers.push(i=>{const s=Ye.getAllAngularTestabilities();let r=s.length,o=!1;const a=function(l){o=o||l,r--,0==r&&i(o)};s.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const s=n.getTestability(e);return null!=s?s:i?ca().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let AP=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();const dc=new Ne("EventManagerPlugins");let fc=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,s){return this._findPluginFor(i).addEventListener(e,i,s)}addGlobalEventListener(e,i,s){return this._findPluginFor(i).addGlobalEventListener(e,i,s)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const s=this._plugins;for(let r=0;r<s.length;r++){const o=s[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(pe(dc),pe(Ft))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();class k0{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const s=ca().getGlobalEventTarget(this._doc,n);if(!s)throw new Error(`Unsupported event target ${s} for event ${e}`);return this.addEventListener(s,e,i)}}let M0=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),i.add(s))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})(),pa=(()=>{class t extends M0{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,s){e.forEach(r=>{const o=this._doc.createElement("style");o.textContent=r,s.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(L0),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,s)=>{this._addStylesToHost(e,s,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(L0))}}return t.\u0275fac=function(e){return new(e||t)(pe(Pn))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();function L0(t){ca().remove(t)}const yf={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/"},vf=/%COMP%/g;function gc(t,n,e){for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?gc(t,s,e):(s=s.replace(vf,t),e.push(s))}return e}function P0(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let pc=(()=>{class t{constructor(e,i,s){this.eventManager=e,this.sharedStylesHost=i,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new xf(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Ci.Emulated:{let s=this.rendererByCompId.get(i.id);return s||(s=new IP(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,s)),s.applyToHost(e),s}case 1:case Ci.ShadowDom:return new PP(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const s=gc(i.id,i.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(pe(fc),pe(pa),pe(aa))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();class xf{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(yf[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){n.appendChild(e)}insertBefore(n,e,i){n&&n.insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,s){if(s){e=s+":"+e;const r=yf[s];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const s=yf[i];s?n.removeAttributeNS(s,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,s){s&(qn.DashCase|qn.Important)?n.style.setProperty(e,i,s&qn.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&qn.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,P0(i)):this.eventManager.addEventListener(n,e,P0(i))}}class IP extends xf{constructor(n,e,i,s){super(n),this.component=i;const r=gc(s+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function MP(t){return"_ngcontent-%COMP%".replace(vf,t)}(s+"-"+i.id),this.hostAttr=function LP(t){return"_nghost-%COMP%".replace(vf,t)}(s+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class PP extends xf{constructor(n,e,i,s){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=gc(s.id,s.styles,[]);for(let o=0;o<r.length;o++){const a=document.createElement("style");a.textContent=r[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let NP=(()=>{class t extends k0{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,s){return e.addEventListener(i,s,!1),()=>this.removeEventListener(e,i,s)}removeEventListener(e,i,s){return e.removeEventListener(i,s)}}return t.\u0275fac=function(e){return new(e||t)(pe(Pn))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();const O0=["alt","control","meta","shift"],RP={"\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"},R0={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"},BP={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let HP=(()=>{class t extends k0{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const r=t.parseEventName(i),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ca().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),s=i.shift();if(0===i.length||"keydown"!==s&&"keyup"!==s)return null;const r=t._normalizeKey(i.pop());let o="";if(O0.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=r,0!=i.length||0===r.length)return null;const a={};return a.domEventName=s,a.fullKey=o,a}static getEventFullKey(e){let i="",s=function VP(t){let n=t.key;if(null==n){if(n=t.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&R0.hasOwnProperty(n)&&(n=R0[n]))}return RP[n]||n}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),O0.forEach(r=>{r!=s&&BP[r](e)&&(i+=r+".")}),i+=s,i}static eventCallback(e,i,s){return r=>{t.getEventFullKey(r)===e&&s.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(pe(Pn))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();const GP=Gx(SF,"browser",[{provide:Hx,useValue:"browser"},{provide:Bx,useValue:function $P(){mf.makeCurrent(),_f.init()},multi:!0},{provide:Pn,useFactory:function jP(){return function VD(t){Ru=t}(document),document},deps:[]}]),WP=[{provide:ed,useValue:"root"},{provide:Wo,useFactory:function zP(){return new Wo},deps:[]},{provide:dc,useClass:NP,multi:!0,deps:[Pn,Ft,Hx]},{provide:dc,useClass:HP,multi:!0,deps:[Pn]},{provide:pc,useClass:pc,deps:[fc,pa,aa]},{provide:na,useExisting:pc},{provide:M0,useExisting:pa},{provide:pa,useClass:pa,deps:[Pn]},{provide:Yd,useClass:Yd,deps:[Ft]},{provide:fc,useClass:fc,deps:[dc,Ft]},{provide:class xP{},useClass:AP,deps:[]}];let B0=(()=>{class t{constructor(e){if(e)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(e){return{ngModule:t,providers:[{provide:aa,useValue:e.appId},{provide:E0,useExisting:aa},SP]}}}return t.\u0275fac=function(e){return new(e||t)(pe(t,12))},t.\u0275mod=St({type:t}),t.\u0275inj=xt({providers:WP,imports:[fa,AF]}),t})();"undefined"!=typeof window&&window;let $0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ze({token:t,factory:function(e){let i=null;return i=e?new(e||t):pe(z0),i},providedIn:"root"}),t})(),z0=(()=>{class t extends $0{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case nt.NONE:return i;case nt.HTML:return ji(i,"HTML")?Qn(i):r_(this._doc,String(i)).toString();case nt.STYLE:return ji(i,"Style")?Qn(i):i;case nt.SCRIPT:if(ji(i,"Script"))return Qn(i);throw new Error("unsafe value used in a script context");case nt.URL:return Zm(i),ji(i,"URL")?Qn(i):zo(String(i));case nt.RESOURCE_URL:if(ji(i,"ResourceURL"))return Qn(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 ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function wS(t){return new vS(t)}(e)}bypassSecurityTrustStyle(e){return function DS(t){return new xS(t)}(e)}bypassSecurityTrustScript(e){return function SS(t){return new bS(t)}(e)}bypassSecurityTrustUrl(e){return function AS(t){return new TS(t)}(e)}bypassSecurityTrustResourceUrl(e){return function ES(t){return new CS(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(pe(Pn))},t.\u0275prov=ze({token:t,factory:function(e){let i=null;return i=e?new e:function t2(t){return new z0(t.get(Pn))}(pe(Dn)),i},providedIn:"root"}),t})();class n2 extends se{constructor(n,e){super()}schedule(n,e=0){return this}}class j0 extends n2{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,s=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(s,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let s,i=!1;try{this.work(n)}catch(r){i=!0,s=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),s}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,s=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&i.splice(s,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let G0=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,s){return new this.SchedulerAction(this,e).schedule(s,i)}}return t.now=()=>Date.now(),t})();class hs extends G0{constructor(n,e=G0.now){super(n,()=>hs.delegate&&hs.delegate!==this?hs.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return hs.delegate&&hs.delegate!==this?hs.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const r2=new class s2 extends hs{}(class i2 extends j0{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}schedule(n,e=0){return e>0?super.schedule(n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)}execute(n,e){return e>0||this.closed?super.execute(n,e):this._execute(n,e)}requestAsyncId(n,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(n,e,i):n.flush(this)}}),o2=new je(t=>t.complete());function h2({error:t,subscriber:n}){n.error(t)}class _i{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return function c2(...t){let n=t[t.length-1];return ue(n)?(t.pop(),xu(t,n)):bp(t)}(this.value);case"E":return function u2(t,n){return new je(n?e=>n.schedule(h2,0,{error:t,subscriber:e}):e=>e.error(t))}(this.error);case"C":return function a2(t){return t?function l2(t){return new je(n=>t.schedule(()=>n.complete()))}(t):o2}()}throw new Error("unexpected notification kind value")}static createNext(n){return void 0!==n?new _i("N",n):_i.undefinedValueNotification}static createError(n){return new _i("E",void 0,n)}static createComplete(){return _i.completeNotification}}_i.completeNotification=new _i("C"),_i.undefinedValueNotification=new _i("N",void 0);class mc extends re{constructor(n,e,i=0){super(n),this.scheduler=e,this.delay=i}static dispatch(n){const{notification:e,destination:i}=n;e.observe(i),this.unsubscribe()}scheduleMessage(n){this.destination.add(this.scheduler.schedule(mc.dispatch,this.delay,new f2(n,this.destination)))}_next(n){this.scheduleMessage(_i.createNext(n))}_error(n){this.scheduleMessage(_i.createError(n)),this.unsubscribe()}_complete(){this.scheduleMessage(_i.createComplete()),this.unsubscribe()}}class f2{constructor(n,e){this.notification=n,this.destination=e}}class g2 extends R{constructor(n=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=n<1?1:n,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(n){const e=this._events;e.push(n),e.length>this._bufferSize&&e.shift(),super.next(n)}nextTimeWindow(n){this._events.push(new p2(this._getNow(),n)),this._trimBufferThenGetEvents(),super.next(n)}_subscribe(n){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=i.length;let o;if(this.closed)throw new Wt;if(this.isStopped||this.hasError?o=se.EMPTY:(this.observers.push(n),o=new Hi(this,n)),s&&n.add(n=new mc(n,s)),e)for(let a=0;a<r&&!n.closed;a++)n.next(i[a]);else for(let a=0;a<r&&!n.closed;a++)n.next(i[a].value);return this.hasError?n.error(this.thrownError):this.isStopped&&n.complete(),o}_getNow(){return(this.scheduler||r2).now()}_trimBufferThenGetEvents(){const n=this._getNow(),e=this._bufferSize,i=this._windowTime,s=this._events,r=s.length;let o=0;for(;o<r&&!(n-s[o].time<i);)o++;return r>e&&(o=Math.max(o,r-e)),o>0&&s.splice(0,o),s}}class p2{constructor(n,e){this.time=n,this.value=e}}function W0(t,n){return"function"==typeof n?e=>e.pipe(W0((i,s)=>mp(t(i,s)).pipe(le((r,o)=>n(i,r,s,o))))):e=>e.lift(new m2(t))}class m2{constructor(n){this.project=n}call(n,e){return e.subscribe(new _2(n,this.project))}}class _2 extends yp{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new _p(this),s=this.destination;s.add(i),this.innerSubscription=vp(n,i),this.innerSubscription!==i&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const _c={schedule(t,n){const e=setTimeout(t,n);return()=>clearTimeout(e)},scheduleBeforeRender(t){if("undefined"==typeof window)return _c.schedule(t,0);if(void 0===window.requestAnimationFrame)return _c.schedule(t,16);const n=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(n)}};let Tf;function S2(t,n,e){let i=e;return function v2(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&n.some((s,r)=>!("*"===s||!function b2(t,n){if(!Tf){const e=Element.prototype;Tf=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&Tf.call(t,n)}(t,s)||(i=r,0))),i}class E2{constructor(n,e){this.componentFactory=e.get(Zs).resolveComponentFactory(n)}create(n){return new k2(this.componentFactory,n)}}class k2{constructor(n,e){this.componentFactory=n,this.injector=e,this.eventEmitters=new g2(1),this.events=this.eventEmitters.pipe(W0(i=>Tp(...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(Ft),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=_c.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(n){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,e){this.runInZone(()=>{null!==this.componentRef?function T2(t,n){return t===n||t!=t&&n!=n}(e,this.getInputValue(n))&&(void 0!==e||!this.unchangedInputs.has(n))||(this.recordInputChange(n,e),this.unchangedInputs.delete(n),this.hasInputChanges=!0,this.componentRef.instance[n]=e,this.scheduleDetectChanges()):this.initialInputValues.set(n,e)})}initializeComponent(n){const e=Dn.create({providers:[],parent:this.injector}),i=function D2(t,n){const e=t.childNodes,i=n.map(()=>[]);let s=-1;n.some((r,o)=>"*"===r&&(s=o,!0));for(let r=0,o=e.length;r<o;++r){const a=e[r],l=S2(a,n,s);-1!==l&&i[l].push(a)}return i}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,n),this.viewChangeDetectorRef=this.componentRef.injector.get(Js),this.implementsOnChanges=function x2(t){return"function"==typeof t}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Xl).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:n})=>{this.initialInputValues.has(n)&&this.setInputValue(n,this.initialInputValues.get(n))}),this.initialInputValues.clear()}initializeOutputs(n){const e=this.componentFactory.outputs.map(({propName:i,templateName:s})=>n.instance[i].pipe(le(o=>({name:s,value:o}))));this.eventEmitters.next(e)}callNgOnChanges(n){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,n.instance.ngOnChanges(e)}markViewForCheck(n){this.hasInputChanges&&(this.hasInputChanges=!1,n.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=_c.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(n,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[n];if(i)return void(i.currentValue=e);const s=this.unchangedInputs.has(n),r=s?void 0:this.getInputValue(n);this.inputChanges[n]=new Np(r,e,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}}class M2 extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class U0{}const ds="*";function fn(t,n){return{type:7,name:t,definitions:n,options:{}}}function nn(t,n=null){return{type:4,styles:n,timings:t}}function Y0(t,n=null){return{type:2,steps:t,options:n}}function Fe(t){return{type:6,styles:t,offset:null}}function sn(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function X0(t){Promise.resolve(null).then(t)}class ma{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){X0(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class q0{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,s=0;const r=this.players.length;0==r?X0(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==r&&this._onFinish()}),o.onDestroy(()=>{++i==r&&this._onDestroy()}),o.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const s=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(s)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const Ie=!1;function Q0(t){return new K(3e3,Ie)}function dN(){return"undefined"!=typeof window&&void 0!==window.document}function wf(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Is(t){switch(t.length){case 0:return new ma;case 1:return t[0];default:return new q0(t)}}function Z0(t,n,e,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const h=u.offset,d=h==l,f=d&&c||{};Object.keys(u).forEach(g=>{let v=g,p=u[g];if("offset"!==g)switch(v=n.normalizePropertyName(v,o),p){case"!":p=s[g];break;case ds:p=r[g];break;default:p=n.normalizeStyleValue(g,v,p,o)}f[v]=p}),d||a.push(f),c=f,l=h}),o.length)throw function tN(t){return new K(3502,Ie)}();return a}function Df(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&Sf(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Sf(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Sf(e,"destroy",t)))}}function Sf(t,n,e){const i=e.totalTime,r=Af(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),o=t._data;return null!=o&&(r._data=o),r}function Af(t,n,e,i,s="",r=0,o){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function Jn(t,n,e){let i;return t instanceof Map?(i=t.get(n),i||t.set(n,i=e)):(i=t[n],i||(i=t[n]=e)),i}function K0(t){const n=t.indexOf(":");return[t.substring(1,n),t.substr(n+1)]}let Ef=(t,n)=>!1,J0=(t,n,e)=>[],eb=null;function kf(t){const n=t.parentNode||t.host;return n===eb?null:n}(wf()||"undefined"!=typeof Element)&&(dN()?(eb=(()=>document.documentElement)(),Ef=(t,n)=>{for(;n;){if(n===t)return!0;n=kf(n)}return!1}):Ef=(t,n)=>t.contains(n),J0=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let tr=null,tb=!1;function nb(t){tr||(tr=function gN(){return"undefined"!=typeof document?document.body:null}()||{},tb=!!tr.style&&"WebkitAppearance"in tr.style);let n=!0;return tr.style&&!function fN(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in tr.style,!n&&tb&&(n="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in tr.style)),n}const ib=Ef,sb=J0;let rb=(()=>{class t{validateStyleProperty(e){return nb(e)}matchesElement(e,i){return!1}containsElement(e,i){return ib(e,i)}getParentElement(e){return kf(e)}query(e,i,s){return sb(e,i,s)}computeStyle(e,i,s){return s||""}animate(e,i,s,r,o,a=[],l){return new ma(s,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})(),Mf=(()=>{class t{}return t.NOOP=new rb,t})();const Lf="ng-enter",vc="ng-leave",xc="ng-trigger",bc=".ng-trigger",ab="ng-animating",Ff=".ng-animating";function nr(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:If(parseFloat(n[1]),n[2])}function If(t,n){return"s"===n?1e3*t:t}function Tc(t,n,e){return t.hasOwnProperty("duration")?t:function _N(t,n,e){let s,r=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 n.push(Q0()),{duration:0,delay:0,easing:""};s=If(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=If(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else s=t;if(!e){let a=!1,l=n.length;s<0&&(n.push(function I2(){return new K(3100,Ie)}()),a=!0),r<0&&(n.push(function P2(){return new K(3101,Ie)}()),a=!0),a&&n.splice(l,0,Q0())}return{duration:s,delay:r,easing:o}}(t,n,e)}function oo(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function Ps(t,n,e={}){if(n)for(let i in t)e[i]=t[i];else oo(t,e);return e}function cb(t,n,e){return e?n+":"+e+";":""}function ub(t){let n="";for(let e=0;e<t.style.length;e++){const i=t.style.item(e);n+=cb(0,i,t.style.getPropertyValue(i))}for(const e in t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(n+=cb(0,xN(e),t.style[e]));t.setAttribute("style",n)}function Ki(t,n,e){t.style&&(Object.keys(n).forEach(i=>{const s=Nf(i);e&&!e.hasOwnProperty(i)&&(e[i]=t.style[s]),t.style[s]=n[i]}),wf()&&ub(t))}function ir(t,n){t.style&&(Object.keys(n).forEach(e=>{const i=Nf(e);t.style[i]=""}),wf()&&ub(t))}function _a(t){return Array.isArray(t)?1==t.length?t[0]:Y0(t):t}const Pf=new RegExp("{{\\s*(.+?)\\s*}}","g");function hb(t){let n=[];if("string"==typeof t){let e;for(;e=Pf.exec(t);)n.push(e[1]);Pf.lastIndex=0}return n}function Cc(t,n,e){const i=t.toString(),s=i.replace(Pf,(r,o)=>{let a=n[o];return n.hasOwnProperty(o)||(e.push(function O2(t){return new K(3003,Ie)}()),a=""),a.toString()});return s==i?t:s}function wc(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const vN=/-+([a-z0-9])/g;function Nf(t){return t.replace(vN,(...n)=>n[1].toUpperCase())}function xN(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ei(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function R2(t){return new K(3004,Ie)}()}}function db(t,n){return window.getComputedStyle(t)[n]}function SN(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function AN(t,n,e){if(":"==t[0]){const l=function EN(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(function Z2(t){return new K(3016,Ie)}()),"* => *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function Q2(t){return new K(3015,Ie)}()),n;const s=i[1],r=i[2],o=i[3];n.push(fb(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&n.push(fb(o,s))}(i,e,n)):e.push(t),e}const Ec=new Set(["true","1"]),kc=new Set(["false","0"]);function fb(t,n){const e=Ec.has(t)||kc.has(t),i=Ec.has(n)||kc.has(n);return(s,r)=>{let o="*"==t||t==s,a="*"==n||n==r;return!o&&e&&"boolean"==typeof s&&(o=s?Ec.has(t):kc.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?Ec.has(n):kc.has(n)),o&&a}}const kN=new RegExp("s*:selfs*,?","g");function Of(t,n,e,i){return new MN(t).build(n,e,i)}class MN{constructor(n){this._driver=n}build(n,e,i){const s=new IN(e);this._resetContextStyleTimingState(s);const r=ei(this,_a(n),s);return s.unsupportedCSSPropertiesFound.size&&s.unsupportedCSSPropertiesFound.keys(),r}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles={},n.collectedStyles[""]={},n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,s=e.depCount=0;const r=[],o=[];return"@"==n.name.charAt(0)&&e.errors.push(function H2(){return new K(3006,Ie)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,s+=l.depCount,o.push(l)}else e.errors.push(function V2(){return new K(3007,Ie)}())}),{type:7,name:n.name,states:r,transitions:o,queryCount:i,depCount:s,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),s=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,o=s||{};i.styles.forEach(a=>{if(Mc(a)){const l=a;Object.keys(l).forEach(c=>{hb(l[c]).forEach(u=>{o.hasOwnProperty(u)||r.add(u)})})}}),r.size&&(wc(r.values()),e.errors.push(function $2(t,n){return new K(3008,Ie)}()))}return{type:0,name:n.name,style:i,options:s?{params:s}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=ei(this,_a(n.animation),e);return{type:1,matchers:SN(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:sr(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>ei(this,i,e)),options:sr(n.options)}}visitGroup(n,e){const i=e.currentTime;let s=0;const r=n.steps.map(o=>{e.currentTime=i;const a=ei(this,o,e);return s=Math.max(s,e.currentTime),a});return e.currentTime=s,{type:3,steps:r,options:sr(n.options)}}visitAnimate(n,e){const i=function NN(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Rf(Tc(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=Rf(0,0,"");return r.dynamic=!0,r.strValue=e,r}const s=Tc(e,n);return Rf(s.duration,s.delay,s.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let s,r=n.styles?n.styles:Fe({});if(5==r.type)s=this.visitKeyframes(r,e);else{let o=n.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Fe(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,s=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:s,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[];Array.isArray(n.styles)?n.styles.forEach(o=>{"string"==typeof o?o==ds?i.push(o):e.errors.push(function z2(t){return new K(3002,Ie)}()):i.push(o)}):i.push(n.styles);let s=!1,r=null;return i.forEach(o=>{if(Mc(o)){const a=o,l=a.easing;if(l&&(r=l,delete a.easing),!s)for(let c in a)if(a[c].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:i,easing:r,offset:n.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let s=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(r!=s&&r>=c.startTime&&s<=c.endTime&&(e.errors.push(function j2(t,n,e,i,s){return new K(3010,Ie)}()),u=!1),r=c.startTime),u&&(l[a]={startTime:r,endTime:s}),e.options&&function yN(t,n,e){const i=n.params||{},s=hb(t);s.length&&s.forEach(r=>{i.hasOwnProperty(r)||e.push(function N2(t){return new K(3001,Ie)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function G2(){return new K(3011,Ie)}()),i;let r=0;const o=[];let a=!1,l=!1,c=0;const u=n.steps.map(C=>{const b=this._makeStyleAst(C,e);let D=null!=b.offset?b.offset:function PN(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(Mc(e)&&e.hasOwnProperty("offset")){const i=e;n=parseFloat(i.offset),delete i.offset}});else if(Mc(t)&&t.hasOwnProperty("offset")){const e=t;n=parseFloat(e.offset),delete e.offset}return n}(b.styles),M=0;return null!=D&&(r++,M=b.offset=D),l=l||M<0||M>1,a=a||M<c,c=M,o.push(M),b});l&&e.errors.push(function W2(){return new K(3012,Ie)}()),a&&e.errors.push(function U2(){return new K(3200,Ie)}());const h=n.steps.length;let d=0;r>0&&r<h?e.errors.push(function Y2(){return new K(3202,Ie)}()):0==r&&(d=1/(h-1));const f=h-1,g=e.currentTime,v=e.currentAnimateTimings,p=v.duration;return u.forEach((C,b)=>{const D=d>0?b==f?1:d*b:o[b],M=D*p;e.currentTime=g+v.delay+M,v.duration=M,this._validateStyleAst(C,e),C.offset=D,i.styles.push(C)}),i}visitReference(n,e){return{type:8,animation:ei(this,_a(n.animation),e),options:sr(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:sr(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:sr(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,s=n.options||{};e.queryCount++,e.currentQuery=n;const[r,o]=function LN(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(kN,"")),t=t.replace(/@\*/g,bc).replace(/@\w+/g,e=>bc+"-"+e.substr(1)).replace(/:animating/g,Ff),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,Jn(e.collectedStyles,e.currentQuerySelector,{});const a=ei(this,_a(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:n.selector,options:sr(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function X2(){return new K(3013,Ie)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Tc(n.timings,e.errors,!0);return{type:12,animation:ei(this,_a(n.animation),e),timings:i,options:null}}}class IN{constructor(n){this.errors=n,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 Mc(t){return!Array.isArray(t)&&"object"==typeof t}function sr(t){return t?(t=oo(t)).params&&(t.params=function FN(t){return t?oo(t):null}(t.params)):t={},t}function Rf(t,n,e){return{duration:t,delay:n,easing:e}}function Bf(t,n,e,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Lc{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const BN=new RegExp(":enter","g"),VN=new RegExp(":leave","g");function Hf(t,n,e,i,s,r={},o={},a,l,c=[]){return(new $N).buildKeyframes(t,n,e,i,s,r,o,a,l,c)}class $N{buildKeyframes(n,e,i,s,r,o,a,l,c,u=[]){c=c||new Lc;const h=new Vf(n,e,c,s,r,u,[]);h.options=l,h.currentTimeline.setStyles([o],null,h.errors,l),ei(this,i,h);const d=h.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let g=d.length-1;g>=0;g--){const v=d[g];if(v.element===e){f=v;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,h.errors,l)}return d.length?d.map(f=>f.buildKeyframes()):[Bf(e,[],[],[],0,0,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const s=e.createSubContext(n.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,s,s.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const o=null!=i.duration?nr(i.duration):null,a=null!=i.delay?nr(i.delay):null;return 0!==o&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),ei(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let s=e;const r=n.options;if(r&&(r.params||r.delay)&&(s=e.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Fc);const o=nr(r.delay);s.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>ei(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>i&&s.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let s=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?nr(n.options.delay):0;n.steps.forEach(o=>{const a=e.createSubContext(n.options);r&&a.delayNextStep(r),ei(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(s),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Tc(e.params?Cc(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),s=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),s.snapshotCurrentStyles());const r=n.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,s=e.currentAnimateTimings;!s&&i.getCurrentStyleProperties().length&&i.forwardFrame();const r=s&&s.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,s=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(s+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,s=n.options||{},r=s.delay?nr(s.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Fc);let o=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(n.options,c);r&&h.delayNextStep(r),c===e.element&&(l=h.currentTimeline),ei(this,n.animation,h),h.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,s=e.currentTimeline,r=n.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const h=u.currentTime;ei(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=s.currentTime-h+(s.startTime-i.currentTimeline.startTime)}}const Fc={};class Vf{constructor(n,e,i,s,r,o,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Fc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ic(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let s=this.options;null!=i.duration&&(s.duration=nr(i.duration)),null!=i.delay&&(s.delay=nr(i.delay));const r=i.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Cc(r[a],o,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(s=>{i[s]=e[s]})}}return n}createSubContext(n=null,e,i){const s=e||this.element,r=new Vf(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Fc,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const s={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},r=new zN(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,s,n.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,s,r,o){let a=[];if(s&&a.push(this.element),n.length>0){n=(n=n.replace(BN,"."+this._enterClassName)).replace(VN,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&0==a.length&&o.push(function q2(t){return new K(3014,Ie)}()),a}}class Ic{constructor(n,e,i,s){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=s,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(n){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Ic(this._driver,n,e||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(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles[n]=e,this._globalTimelineStyles[n]=e,this._styleSummary[n]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&(this._previousKeyframe.easing=n),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||ds,this._currentKeyframe[e]=ds}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,s){e&&(this._previousKeyframe.easing=e);const r=s&&s.params||{},o=function jN(t,n){const e={};let i;return t.forEach(s=>{"*"===s?(i=i||Object.keys(n),i.forEach(r=>{e[r]=ds})):Ps(s,!1,e)}),e}(n,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Cc(o[a],r,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:ds),this._updateStyle(a,l)})}applyStylesToKeyframe(){const n=this._pendingStyles,e=Object.keys(n);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=n[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(n=>{const e=this._localTimelineStyles[n];this._pendingStyles[n]=e,this._updateStyle(n,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){Object.keys(n._styleSummary).forEach(e=>{const i=this._styleSummary[e],s=n._styleSummary[e];(!i||s.time>i.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((a,l)=>{const c=Ps(a,!0);Object.keys(c).forEach(u=>{const h=c[u];"!"==h?n.add(u):h==ds&&e.add(u)}),i||(c.offset=l/this.duration),s.push(c)});const r=n.size?wc(n.values()):[],o=e.size?wc(e.values()):[];if(i){const a=s[0],l=oo(a);a.offset=0,l.offset=1,s=[a,l]}return Bf(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}}class zN extends Ic{constructor(n,e,i,s,r,o,a=!1){super(n,e,o.delay),this.keyframes=i,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],o=i+e,a=e/o,l=Ps(n[0],!1);l.offset=0,r.push(l);const c=Ps(n[0],!1);c.offset=mb(a),r.push(c);const u=n.length-1;for(let h=1;h<=u;h++){let d=Ps(n[h],!1);d.offset=mb((e+d.offset*i)/o),r.push(d)}i=o,e=0,s="",n=r}return Bf(this.element,n,this.preStyleProps,this.postStyleProps,i,e,s,!0)}}function mb(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class $f{}class GN extends $f{normalizePropertyName(n,e){return Nf(n)}normalizeStyleValue(n,e,i,s){let r="";const o=i.toString().trim();if(WN[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&s.push(function B2(t,n){return new K(3005,Ie)}())}return o+r}}const WN=(()=>function UN(t){const n={};return t.forEach(e=>n[e]=!0),n}("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 _b(t,n,e,i,s,r,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:n,isRemovalTransition:s,fromState:e,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const zf={};class yb{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,s){return function YN(t,n,e,i,s){return t.some(r=>r(n,e,i,s))}(this.ast.matchers,n,e,i,s)}buildStyles(n,e,i){const s=this._stateStyles["*"],r=this._stateStyles[n],o=s?s.buildStyles(e,i):{};return r?r.buildStyles(e,i):o}build(n,e,i,s,r,o,a,l,c,u){const h=[],d=this.ast.options&&this.ast.options.params||zf,g=this.buildStyles(i,a&&a.params||zf,h),v=l&&l.params||zf,p=this.buildStyles(s,v,h),C=new Set,b=new Map,D=new Map,M="void"===s,N={params:Object.assign(Object.assign({},d),v)},I=u?[]:Hf(n,e,this.ast.animation,r,o,g,p,N,c,h);let X=0;if(I.forEach(ee=>{X=Math.max(ee.duration+ee.delay,X)}),h.length)return _b(e,this._triggerName,i,s,M,g,p,[],[],b,D,X,h);I.forEach(ee=>{const oe=ee.element,J=Jn(b,oe,{});ee.preStyleProps.forEach(W=>J[W]=!0);const B=Jn(D,oe,{});ee.postStyleProps.forEach(W=>B[W]=!0),oe!==e&&C.add(oe)});const be=wc(C.values());return _b(e,this._triggerName,i,s,M,g,p,I,be,b,D,X)}}class XN{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i={},s=oo(this.defaultParams);return Object.keys(n).forEach(r=>{const o=n[r];null!=o&&(s[r]=o)}),this.styles.styles.forEach(r=>{if("string"!=typeof r){const o=r;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Cc(l,s,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class QN{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new XN(s.style,s.options&&s.options.params||{},i)}),vb(this.states,"true","1"),vb(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new yb(n,s,this.states))}),this.fallbackTransition=function ZN(t,n,e){return new yb(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,s){return this.transitionFactories.find(o=>o.match(n,e,i,s))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function vb(t,n,e){t.hasOwnProperty(n)?t.hasOwnProperty(e)||(t[e]=t[n]):t.hasOwnProperty(e)&&(t[n]=t[e])}const KN=new Lc;class JN{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(n,e){const i=[],r=Of(this._driver,e,i,[]);if(i.length)throw function nN(t){return new K(3503,Ie)}();this._animations[n]=r}_buildPlayer(n,e,i){const s=n.element,r=Z0(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(s,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const s=[],r=this._animations[n];let o;const a=new Map;if(r?(o=Hf(this._driver,e,r,Lf,vc,{},{},i,KN,s),o.forEach(u=>{const h=Jn(a,u.element,{});u.postStyleProps.forEach(d=>h[d]=null)})):(s.push(function iN(){return new K(3300,Ie)}()),o=[]),s.length)throw function sN(t){return new K(3504,Ie)}();a.forEach((u,h)=>{Object.keys(u).forEach(d=>{u[d]=this._driver.computeStyle(h,d,ds)})});const c=Is(o.map(u=>{const h=a.get(u.element);return this._buildPlayer(u,{},h)}));return this._playersById[n]=c,c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),delete this._playersById[n];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById[n];if(!e)throw function rN(t){return new K(3301,Ie)}();return e}listen(n,e,i,s){const r=Af(e,"","","");return Df(this._getPlayer(n),i,r,s),()=>{}}command(n,e,i,s){if("register"==i)return void this.register(n,s[0]);if("create"==i)return void this.create(n,e,s[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(n)}}}const xb="ng-animate-queued",jf="ng-animate-disabled",sO=[],bb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},rO={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},yi="__ng_removed";class Gf{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function cO(t){return null!=t?t:null}(i?n.value:n),i){const r=oo(n);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(s=>{null==i[s]&&(i[s]=e[s])})}}}const ya="void",Wf=new Gf(ya);class oO{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,vi(e,this._hostClassName)}listen(n,e,i,s){if(!this._triggers.hasOwnProperty(e))throw function oN(t,n){return new K(3302,Ie)}();if(null==i||0==i.length)throw function aN(t){return new K(3303,Ie)}();if(!function uO(t){return"start"==t||"done"==t}(i))throw function lN(t,n){return new K(3400,Ie)}();const r=Jn(this._elementListeners,n,[]),o={name:e,phase:i,callback:s};r.push(o);const a=Jn(this._engine.statesByElement,n,{});return a.hasOwnProperty(e)||(vi(n,xc),vi(n,xc+"-"+e),a[e]=Wf),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers[e]||delete a[e]})}}register(n,e){return!this._triggers[n]&&(this._triggers[n]=e,!0)}_getTrigger(n){const e=this._triggers[n];if(!e)throw function cN(t){return new K(3401,Ie)}();return e}trigger(n,e,i,s=!0){const r=this._getTrigger(e),o=new Uf(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(vi(n,xc),vi(n,xc+"-"+e),this._engine.statesByElement.set(n,a={}));let l=a[e];const c=new Gf(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=Wf),c.value!==ya&&l.value===c.value){if(!function fO(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let s=0;s<e.length;s++){const r=e[s];if(!n.hasOwnProperty(r)||t[r]!==n[r])return!1}return!0}(l.params,c.params)){const v=[],p=r.matchStyles(l.value,l.params,v),C=r.matchStyles(c.value,c.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{ir(n,p),Ki(n,C)})}return}const d=Jn(this._engine.playersByElement,n,[]);d.forEach(v=>{v.namespaceId==this.id&&v.triggerName==e&&v.queued&&v.destroy()});let f=r.matchTransition(l.value,c.value,n,c.params),g=!1;if(!f){if(!s)return;f=r.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:g}),g||(vi(n,xb),o.onStart(()=>{ao(n,xb)})),o.onDone(()=>{let v=this.players.indexOf(o);v>=0&&this.players.splice(v,1);const p=this._engine.playersByElement.get(n);if(p){let C=p.indexOf(o);C>=0&&p.splice(C,1)}}),this.players.push(o),d.push(o),o}deregister(n){delete this._triggers[n],this._engine.statesByElement.forEach((e,i)=>{delete e[n]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(s=>s.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,bc,!0);i.forEach(s=>{if(s[yi])return;const r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(n,e,i,s){const r=this._engine.statesByElement.get(n),o=new Map;if(r){const a=[];if(Object.keys(r).forEach(l=>{if(o.set(l,r[l].value),this._triggers[l]){const c=this.trigger(n,l,ya,s);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,o),i&&Is(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const s=new Set;e.forEach(r=>{const o=r.name;if(s.has(o))return;s.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||Wf,u=new Gf(ya),h=new Uf(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:l,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let s=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)s=!0;else{let o=n;for(;o=o.parentNode;)if(i.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(n),s)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[yi];(!r||r===bb)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){vi(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const s=i.player;if(s.destroyed)return;const r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Af(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,Df(i.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(i)}),this._queue=[],e.sort((i,s)=>{const r=i.transition.ast.depCount,o=s.transition.ast.depCount;return 0==r||0==o?r-o:this._engine.driver.containsElement(i.element,s.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class aO{constructor(n,e,i){this.bodyNode=n,this.driver=e,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=(s,r)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new oO(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,s=this.namespacesByHostElement,r=i.length-1;if(r>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const l=s.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=r;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,e)){i.splice(a+1,0,n),o=!0;break}o||i.unshift(n)}else i.push(n);return s.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let s=this._namespaceLookup[n];s&&s.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const s=this._namespaceList.indexOf(i);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i){const s=Object.keys(i);for(let r=0;r<s.length;r++){const o=i[s[r]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&e.add(a)}}}return e}trigger(n,e,i,s){if(Pc(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,s),!0}return!1}insertNode(n,e,i,s){if(!Pc(e))return;const r=e[yi];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(n){const o=this._fetchNamespace(n);o&&o.insertNode(e,i)}s&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),vi(n,jf)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),ao(n,jf))}removeNode(n,e,i,s){if(Pc(e)){const r=n?this._fetchNamespace(n):null;if(r?r.removeNode(e,s):this.markElementAsRemoved(n,e,!1,s),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(n,e,i,s,r){this.collectedLeaveElements.push(e),e[yi]={namespaceId:n,setForRemoval:s,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,s,r){return Pc(e)?this._fetchNamespace(n).listen(e,i,s,r):()=>{}}_buildInstruction(n,e,i,s,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,s,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,bc,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,Ff,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Is(this.players).onDone(()=>n());n()})}processLeaveNode(n){var e;const i=n[yi];if(i&&i.setForRemoval){if(n[yi]=bb,i.namespaceId){this.destroyInnerAnimations(n);const s=this._fetchNamespace(i.namespaceId);s&&s.clearElementCache(n)}this._onRemovalComplete(n,i.setForRemoval)}(null===(e=n.classList)||void 0===e?void 0:e.contains(jf))&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,s)=>this._balanceNamespaceList(i,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)vi(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,n)}finally{for(let s=0;s<i.length;s++)i[s]()}}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=[],e.length?Is(e).onDone(()=>{i.forEach(s=>s())}):i.forEach(s=>s())}}reportError(n){throw function uN(t){return new K(3402,Ie)}()}_flushAnimations(n,e){const i=new Lc,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(P=>{u.add(P);const G=this.driver.query(P,".ng-animate-queued",!0);for(let $=0;$<G.length;$++)u.add(G[$])});const h=this.bodyNode,d=Array.from(this.statesByElement.keys()),f=wb(d,this.collectedEnterElements),g=new Map;let v=0;f.forEach((P,G)=>{const $=Lf+v++;g.set(G,$),P.forEach(Z=>vi(Z,$))});const p=[],C=new Set,b=new Set;for(let P=0;P<this.collectedLeaveElements.length;P++){const G=this.collectedLeaveElements[P],$=G[yi];$&&$.setForRemoval&&(p.push(G),C.add(G),$.hasAnimation?this.driver.query(G,".ng-star-inserted",!0).forEach(Z=>C.add(Z)):b.add(G))}const D=new Map,M=wb(d,Array.from(C));M.forEach((P,G)=>{const $=vc+v++;D.set(G,$),P.forEach(Z=>vi(Z,$))}),n.push(()=>{f.forEach((P,G)=>{const $=g.get(G);P.forEach(Z=>ao(Z,$))}),M.forEach((P,G)=>{const $=D.get(G);P.forEach(Z=>ao(Z,$))}),p.forEach(P=>{this.processLeaveNode(P)})});const N=[],I=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(e).forEach($=>{const Z=$.player,ce=$.element;if(N.push(Z),this.collectedEnterElements.length){const et=ce[yi];if(et&&et.setForMove){if(et.previousTriggersValues&&et.previousTriggersValues.has($.triggerName)){const jt=et.previousTriggersValues.get($.triggerName),H=this.statesByElement.get($.element);H&&H[$.triggerName]&&(H[$.triggerName].value=jt)}return void Z.destroy()}}const Ee=!h||!this.driver.containsElement(h,ce),yt=D.get(ce),zt=g.get(ce),Te=this._buildInstruction($,i,zt,yt,Ee);if(Te.errors&&Te.errors.length)return void I.push(Te);if(Ee)return Z.onStart(()=>ir(ce,Te.fromStyles)),Z.onDestroy(()=>Ki(ce,Te.toStyles)),void s.push(Z);if($.isFallbackTransition)return Z.onStart(()=>ir(ce,Te.fromStyles)),Z.onDestroy(()=>Ki(ce,Te.toStyles)),void s.push(Z);const ri=[];Te.timelines.forEach(et=>{et.stretchStartingKeyframe=!0,this.disabledNodes.has(et.element)||ri.push(et)}),Te.timelines=ri,i.append(ce,Te.timelines),o.push({instruction:Te,player:Z,element:ce}),Te.queriedElements.forEach(et=>Jn(a,et,[]).push(Z)),Te.preStyleProps.forEach((et,jt)=>{const H=Object.keys(et);if(H.length){let ne=l.get(jt);ne||l.set(jt,ne=new Set),H.forEach(ye=>ne.add(ye))}}),Te.postStyleProps.forEach((et,jt)=>{const H=Object.keys(et);let ne=c.get(jt);ne||c.set(jt,ne=new Set),H.forEach(ye=>ne.add(ye))})});if(I.length){const P=[];I.forEach(G=>{P.push(function hN(t,n){return new K(3505,Ie)}())}),N.forEach(G=>G.destroy()),this.reportError(P)}const X=new Map,be=new Map;o.forEach(P=>{const G=P.element;i.has(G)&&(be.set(G,G),this._beforeAnimationBuild(P.player.namespaceId,P.instruction,X))}),s.forEach(P=>{const G=P.element;this._getPreviousPlayers(G,!1,P.namespaceId,P.triggerName,null).forEach(Z=>{Jn(X,G,[]).push(Z),Z.destroy()})});const ee=p.filter(P=>Sb(P,l,c)),oe=new Map;Cb(oe,this.driver,b,c,ds).forEach(P=>{Sb(P,l,c)&&ee.push(P)});const B=new Map;f.forEach((P,G)=>{Cb(B,this.driver,new Set(P),l,"!")}),ee.forEach(P=>{const G=oe.get(P),$=B.get(P);oe.set(P,Object.assign(Object.assign({},G),$))});const W=[],Ge=[],Ae={};o.forEach(P=>{const{element:G,player:$,instruction:Z}=P;if(i.has(G)){if(u.has(G))return $.onDestroy(()=>Ki(G,Z.toStyles)),$.disabled=!0,$.overrideTotalTime(Z.totalTime),void s.push($);let ce=Ae;if(be.size>1){let yt=G;const zt=[];for(;yt=yt.parentNode;){const Te=be.get(yt);if(Te){ce=Te;break}zt.push(yt)}zt.forEach(Te=>be.set(Te,ce))}const Ee=this._buildAnimation($.namespaceId,Z,X,r,B,oe);if($.setRealPlayer(Ee),ce===Ae)W.push($);else{const yt=this.playersByElement.get(ce);yt&&yt.length&&($.parentPlayer=Is(yt)),s.push($)}}else ir(G,Z.fromStyles),$.onDestroy(()=>Ki(G,Z.toStyles)),Ge.push($),u.has(G)&&s.push($)}),Ge.forEach(P=>{const G=r.get(P.element);if(G&&G.length){const $=Is(G);P.setRealPlayer($)}}),s.forEach(P=>{P.parentPlayer?P.syncPlayerEvents(P.parentPlayer):P.destroy()});for(let P=0;P<p.length;P++){const G=p[P],$=G[yi];if(ao(G,vc),$&&$.hasAnimation)continue;let Z=[];if(a.size){let Ee=a.get(G);Ee&&Ee.length&&Z.push(...Ee);let yt=this.driver.query(G,Ff,!0);for(let zt=0;zt<yt.length;zt++){let Te=a.get(yt[zt]);Te&&Te.length&&Z.push(...Te)}}const ce=Z.filter(Ee=>!Ee.destroyed);ce.length?hO(this,G,ce):this.processLeaveNode(G)}return p.length=0,W.forEach(P=>{this.players.push(P),P.onDone(()=>{P.destroy();const G=this.players.indexOf(P);this.players.splice(G,1)}),P.play()}),W}elementContainsData(n,e){let i=!1;const s=e[yi];return s&&s.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,s,r){let o=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(o=a)}else{const a=this.playersByElement.get(n);if(a){const l=!r||r==ya;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(i||s)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(n,e,i){const r=e.element,o=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==r,h=Jn(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(f=>{const g=f.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),f.destroy(),h.push(f)})}ir(r,e.fromStyles)}_buildAnimation(n,e,i,s,r,o){const a=e.triggerName,l=e.element,c=[],u=new Set,h=new Set,d=e.timelines.map(g=>{const v=g.element;u.add(v);const p=v[yi];if(p&&p.removedBeforeQueried)return new ma(g.duration,g.delay);const C=v!==l,b=function dO(t){const n=[];return Db(t,n),n}((i.get(v)||sO).map(X=>X.getRealPlayer())).filter(X=>!!X.element&&X.element===v),D=r.get(v),M=o.get(v),N=Z0(0,this._normalizer,0,g.keyframes,D,M),I=this._buildPlayer(g,N,b);if(g.subTimeline&&s&&h.add(v),C){const X=new Uf(n,a,v);X.setRealPlayer(I),c.push(X)}return I});c.forEach(g=>{Jn(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function lO(t,n,e){let i;if(t instanceof Map){if(i=t.get(n),i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&t.delete(n)}}else if(i=t[n],i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&delete t[n]}return i}(this.playersByQueriedElement,g.element,g))}),u.forEach(g=>vi(g,ab));const f=Is(d);return f.onDestroy(()=>{u.forEach(g=>ao(g,ab)),Ki(l,e.toStyles)}),h.forEach(g=>{Jn(s,g,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new ma(n.duration,n.delay)}}class Uf{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new ma,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Df(n,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){Jn(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}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(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Pc(t){return t&&1===t.nodeType}function Tb(t,n){const e=t.style.display;return t.style.display=null!=n?n:"none",e}function Cb(t,n,e,i,s){const r=[];e.forEach(l=>r.push(Tb(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(h=>{const d=u[h]=n.computeStyle(c,h,s);(!d||0==d.length)&&(c[yi]=rO,o.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>Tb(l,r[a++])),o}function wb(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const s=new Set(n),r=new Map;function o(a){if(!a)return 1;let l=r.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:s.has(c)?1:o(c),r.set(a,l),l}return n.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function vi(t,n){var e;null===(e=t.classList)||void 0===e||e.add(n)}function ao(t,n){var e;null===(e=t.classList)||void 0===e||e.remove(n)}function hO(t,n,e){Is(e).onDone(()=>t.processLeaveNode(n))}function Db(t,n){for(let e=0;e<t.length;e++){const i=t[e];i instanceof q0?Db(i.players,n):n.push(i)}}function Sb(t,n,e){const i=e.get(t);if(!i)return!1;let s=n.get(t);return s?i.forEach(r=>s.add(r)):n.set(t,i),e.delete(t),!0}class Nc{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new aO(n,e,i),this._timelineEngine=new JN(n,e,i),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(n,e,i,s,r){const o=n+"-"+s;let a=this._triggerCache[o];if(!a){const l=[],u=Of(this._driver,r,l,[]);if(l.length)throw function eN(t,n){return new K(3404,Ie)}();a=function qN(t,n,e){return new QN(t,n,e)}(s,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,s,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,s){this._transitionEngine.insertNode(n,e,i,s)}onRemove(n,e,i,s){this._transitionEngine.removeNode(n,e,s||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,s){if("@"==i.charAt(0)){const[r,o]=K0(i);this._timelineEngine.command(r,e,o,s)}else this._transitionEngine.trigger(n,e,i,s)}listen(n,e,i,s,r){if("@"==i.charAt(0)){const[o,a]=K0(i);return this._timelineEngine.listen(o,e,a,r)}return this._transitionEngine.listen(n,e,i,s,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let pO=(()=>{class t{constructor(e,i,s){this._element=e,this._startStyles=i,this._endStyles=s,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ki(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ki(this._element,this._initialStyles),this._endStyles&&(Ki(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ir(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ir(this._element,this._endStyles),this._endStyles=null),Ki(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Yf(t){let n=null;const e=Object.keys(t);for(let i=0;i<e.length;i++){const s=e[i];mO(s)&&(n=n||{},n[s]=t[s])}return n}function mO(t){return"display"===t||"position"===t}class Ab{constructor(n,e,i,s){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=s,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(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(n,e,i){return n.animate(e,i)}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),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(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(n[i]=this._finished?e[i]:db(this.element,i))})}this.currentSnapshot=n}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class _O{validateStyleProperty(n){return nb(n)}matchesElement(n,e){return!1}containsElement(n,e){return ib(n,e)}getParentElement(n){return kf(n)}query(n,e,i){return sb(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,s,r,o=[]){const l={duration:i,delay:s,fill:0==s?"both":"forwards"};r&&(l.easing=r);const c={},u=o.filter(d=>d instanceof Ab);(function bN(t,n){return 0===t||0===n})(i,s)&&u.forEach(d=>{let f=d.currentSnapshot;Object.keys(f).forEach(g=>c[g]=f[g])}),e=function TN(t,n,e){const i=Object.keys(e);if(i.length&&n.length){let r=n[0],o=[];if(i.forEach(a=>{r.hasOwnProperty(a)||o.push(a),r[a]=e[a]}),o.length)for(var s=1;s<n.length;s++){let a=n[s];o.forEach(function(l){a[l]=db(t,l)})}}return n}(n,e=e.map(d=>Ps(d,!1)),c);const h=function gO(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=Yf(n[0]),n.length>1&&(i=Yf(n[n.length-1]))):n&&(e=Yf(n)),e||i?new pO(t,e,i):null}(n,e);return new Ab(n,e,l,h)}}let yO=(()=>{class t extends U0{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ci.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?Y0(e):e;return Eb(this._renderer,null,i,"register",[s]),new vO(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(pe(na),pe(Pn))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();class vO extends class F2{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new xO(this._id,n,e||{},this._renderer)}}class xO{constructor(n,e,i,s){this.id=n,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return Eb(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}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(n){this._command("setPosition",n)}getPosition(){var n,e;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function Eb(t,n,e,i,s){return t.setProperty(n,`@@${e}:${i}`,s)}const kb="@.disabled";let bO=(()=>{class t{constructor(e,i,s){this.delegate=e,this.engine=i,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,o)=>{const a=null==o?void 0:o.parentNode(r);a&&o.removeChild(a,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(r);return u||(u=new Mb("",r,this.engine),this._rendererCache.set(r,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return i.data.animation.forEach(l),new TO(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,s){e>=0&&e<this._microtaskId?this._zone.run(()=>i(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,s]))}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(e){return new(e||t)(pe(na),pe(Nc),pe(Ft))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();class Mb{constructor(n,e,i){this.namespaceId=n,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,s=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,s)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,s){this.delegate.setAttribute(n,e,i,s)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,s){this.delegate.setStyle(n,e,i,s)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==kb?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class TO extends Mb{constructor(n,e,i,s){super(e,i,s),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==kb?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.substr(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const s=function CO(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.substr(1),o="";return"@"!=r.charAt(0)&&([r,o]=function wO(t){const n=t.indexOf(".");return[t.substring(0,n),t.substr(n+1)]}(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let DO=(()=>{class t extends Nc{constructor(e,i,s){super(e.body,i,s)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(pe(Pn),pe(Mf),pe($f))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})();const Lb=new Ne("AnimationModuleType"),Fb=[{provide:U0,useClass:yO},{provide:$f,useFactory:function SO(){return new GN}},{provide:Nc,useClass:DO},{provide:na,useFactory:function AO(t,n,e){return new bO(t,n,e)},deps:[pc,Nc,Ft]}],Ib=[{provide:Mf,useFactory:()=>new _O},{provide:Lb,useValue:"BrowserAnimations"},...Fb],EO=[{provide:Mf,useClass:rb},{provide:Lb,useValue:"NoopAnimations"},...Fb];let kO=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?EO:Ib}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({providers:Ib,imports:[B0]}),t})();class Xf{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class Pb extends Xf{constructor(n,e,i,s){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=s}}class MO extends Xf{constructor(n,e,i){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class LO extends Xf{constructor(n){super(),this.element=n instanceof ct?n.nativeElement:n}}class PO extends class IO extends class FO{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof Pb?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof MO?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof LO?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(n,e,i,s,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=s,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let s;return n.viewContainerRef?(s=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=i.create(n.injector||this._defaultInjector||Dn.NULL),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=n,s}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context);return i.rootNodes.forEach(s=>this.outletElement.appendChild(s)),i.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(i);-1!==s&&e.remove(s)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}{}function Rb(t,n,e,i){return mn(e)&&(i=e,e=void 0),i?Rb(t,n,e).pipe(le(s=>cn(s)?i(...s):i(s))):new je(s=>{Bb(t,n,function r(o){s.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},s,e)})}function Bb(t,n,e,i,s){let r;if(function oR(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const o=t;t.addEventListener(n,e,s),r=()=>o.removeEventListener(n,e,s)}else if(function rR(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const o=t;t.on(n,e),r=()=>o.off(n,e)}else if(function sR(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const o=t;t.addListener(n,e),r=()=>o.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o<a;o++)Bb(t[o],n,e,i,s)}i.add(r)}"function"==typeof SuppressedError&&SuppressedError;const aR=new hs(j0);class cR{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new uR(n,this.dueTime,this.scheduler))}}class uR extends re{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(hR,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function hR(t){t.debouncedNext()}function dR(){}function Jf(t){return null==t?dR:function(){return this.querySelector(t)}}function gR(){return[]}function Hb(t){return null==t?gR:function(){return this.querySelectorAll(t)}}function Vb(t){return function(){return this.matches(t)}}function $b(t){return new Array(t.length)}function Rc(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function vR(t,n,e,i,s,r){for(var a,o=0,l=n.length,c=r.length;o<c;++o)(a=n[o])?(a.__data__=r[o],i[o]=a):e[o]=new Rc(t,r[o]);for(;o<l;++o)(a=n[o])&&(s[o]=a)}function xR(t,n,e,i,s,r,o){var a,l,f,c={},u=n.length,h=r.length,d=new Array(u);for(a=0;a<u;++a)(l=n[a])&&(d[a]=f="$"+o.call(l,l.__data__,a,n),f in c?s[a]=l:c[f]=l);for(a=0;a<h;++a)(l=c[f="$"+o.call(t,r[a],a,r)])?(i[a]=l,l.__data__=r[a],c[f]=null):e[a]=new Rc(t,r[a]);for(a=0;a<u;++a)(l=n[a])&&c[d[a]]===l&&(s[a]=l)}function AR(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}Rc.prototype={constructor:Rc,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var eg="http://www.w3.org/1999/xhtml";const jb={svg:"http://www.w3.org/2000/svg",xhtml:eg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Bc(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),jb.hasOwnProperty(n)?{space:jb[n],local:t}:t}function PR(t){return function(){this.removeAttribute(t)}}function NR(t){return function(){this.removeAttributeNS(t.space,t.local)}}function OR(t,n){return function(){this.setAttribute(t,n)}}function RR(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function BR(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function HR(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Gb(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $R(t){return function(){this.style.removeProperty(t)}}function zR(t,n,e){return function(){this.style.setProperty(t,n,e)}}function jR(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function lo(t,n){return t.style.getPropertyValue(n)||Gb(t).getComputedStyle(t,null).getPropertyValue(n)}function WR(t){return function(){delete this[t]}}function UR(t,n){return function(){this[t]=n}}function YR(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Wb(t){return t.trim().split(/^|\s+/)}function tg(t){return t.classList||new Ub(t)}function Ub(t){this._node=t,this._names=Wb(t.getAttribute("class")||"")}function Yb(t,n){for(var e=tg(t),i=-1,s=n.length;++i<s;)e.add(n[i])}function Xb(t,n){for(var e=tg(t),i=-1,s=n.length;++i<s;)e.remove(n[i])}function qR(t){return function(){Yb(this,t)}}function QR(t){return function(){Xb(this,t)}}function ZR(t,n){return function(){(n.apply(this,arguments)?Yb:Xb)(this,t)}}function JR(){this.textContent=""}function eB(t){return function(){this.textContent=t}}function tB(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function iB(){this.innerHTML=""}function sB(t){return function(){this.innerHTML=t}}function rB(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function aB(){this.nextSibling&&this.parentNode.appendChild(this)}function cB(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hB(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===eg&&n.documentElement.namespaceURI===eg?n.createElement(t):n.createElementNS(e,t)}}function dB(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function qb(t){var n=Bc(t);return(n.local?dB:hB)(n)}function gB(){return null}function mB(){var t=this.parentNode;t&&t.removeChild(this)}function yB(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function vB(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}Ub.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Qb={},He=null;function CB(t,n,e){return t=Zb(t,n,e),function(i){var s=i.relatedTarget;(!s||s!==this&&!(8&s.compareDocumentPosition(this)))&&t.call(this,i)}}function Zb(t,n,e){return function(i){var s=He;He=i;try{t.call(this,this.__data__,n,e)}finally{He=s}}}function wB(t){return t.trim().split(/^|\s+/).map(function(n){var e="",i=n.indexOf(".");return i>=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}function DB(t){return function(){var n=this.__on;if(n){for(var r,e=0,i=-1,s=n.length;e<s;++e)r=n[e],t.type&&r.type!==t.type||r.name!==t.name?n[++i]=r:this.removeEventListener(r.type,r.listener,r.capture);++i?n.length=i:delete this.__on}}}function SB(t,n,e){var i=Qb.hasOwnProperty(t.type)?CB:Zb;return function(s,r,o){var l,a=this.__on,c=i(n,r,o);if(a)for(var u=0,h=a.length;u<h;++u)if((l=a[u]).type===t.type&&l.name===t.name)return this.removeEventListener(l.type,l.listener,l.capture),this.addEventListener(l.type,l.listener=c,l.capture=e),void(l.value=n);this.addEventListener(t.type,c,e),l={type:t.type,name:t.name,value:n,listener:c,capture:e},a?a.push(l):this.__on=[l]}}function Kb(t,n,e){var i=Gb(t),s=i.CustomEvent;"function"==typeof s?s=new s(n,e):(s=i.document.createEvent("Event"),e?(s.initEvent(n,e.bubbles,e.cancelable),s.detail=e.detail):s.initEvent(n,!1,!1)),t.dispatchEvent(s)}function kB(t,n){return function(){return Kb(this,t,n)}}function MB(t,n){return function(){return Kb(this,t,n.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Qb={mouseenter:"mouseover",mouseleave:"mouseout"}));var Jb=[null];function ti(t,n){this._groups=t,this._parents=n}function eT(){return new ti([[document.documentElement]],Jb)}ti.prototype=eT.prototype={constructor:ti,select:function fR(t){"function"!=typeof t&&(t=Jf(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,c,r=n[s],o=r.length,a=i[s]=new Array(o),u=0;u<o;++u)(l=r[u])&&(c=t.call(l,l.__data__,u,r))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new ti(i,this._parents)},selectAll:function pR(t){"function"!=typeof t&&(t=Hb(t));for(var n=this._groups,e=n.length,i=[],s=[],r=0;r<e;++r)for(var l,o=n[r],a=o.length,c=0;c<a;++c)(l=o[c])&&(i.push(t.call(l,l.__data__,c,o)),s.push(l));return new ti(i,s)},filter:function mR(t){"function"!=typeof t&&(t=Vb(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,r=n[s],o=r.length,a=i[s]=[],c=0;c<o;++c)(l=r[c])&&t.call(l,l.__data__,c,r)&&a.push(l);return new ti(i,this._parents)},data:function bR(t,n){if(!t)return f=new Array(this.size()),c=-1,this.each(function(I){f[++c]=I}),f;var e=n?xR:vR,i=this._parents,s=this._groups;"function"!=typeof t&&(t=function yR(t){return function(){return t}}(t));for(var r=s.length,o=new Array(r),a=new Array(r),l=new Array(r),c=0;c<r;++c){var u=i[c],h=s[c],d=h.length,f=t.call(u,u&&u.__data__,c,i),g=f.length,v=a[c]=new Array(g),p=o[c]=new Array(g);e(u,h,v,p,l[c]=new Array(d),f,n);for(var M,N,b=0,D=0;b<g;++b)if(M=v[b]){for(b>=D&&(D=b+1);!(N=p[D])&&++D<g;);M._next=N||null}}return(o=new ti(o,i))._enter=a,o._exit=l,o},enter:function _R(){return new ti(this._enter||this._groups.map($b),this._parents)},exit:function TR(){return new ti(this._exit||this._groups.map($b),this._parents)},join:function CR(t,n,e){var i=this.enter(),s=this,r=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=n&&(s=n(s)),null==e?r.remove():e(r),i&&s?i.merge(s).order():s},merge:function wR(t){for(var n=this._groups,e=t._groups,i=n.length,r=Math.min(i,e.length),o=new Array(i),a=0;a<r;++a)for(var d,l=n[a],c=e[a],u=l.length,h=o[a]=new Array(u),f=0;f<u;++f)(d=l[f]||c[f])&&(h[f]=d);for(;a<i;++a)o[a]=n[a];return new ti(o,this._parents)},order:function DR(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var o,i=t[n],s=i.length-1,r=i[s];--s>=0;)(o=i[s])&&(r&&4^o.compareDocumentPosition(r)&&r.parentNode.insertBefore(o,r),r=o);return this},sort:function SR(t){function n(h,d){return h&&d?t(h.__data__,d.__data__):!h-!d}t||(t=AR);for(var e=this._groups,i=e.length,s=new Array(i),r=0;r<i;++r){for(var c,o=e[r],a=o.length,l=s[r]=new Array(a),u=0;u<a;++u)(c=o[u])&&(l[u]=c);l.sort(n)}return new ti(s,this._parents).order()},call:function ER(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function kR(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},node:function MR(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var i=t[n],s=0,r=i.length;s<r;++s){var o=i[s];if(o)return o}return null},size:function LR(){var t=0;return this.each(function(){++t}),t},empty:function FR(){return!this.node()},each:function IR(t){for(var n=this._groups,e=0,i=n.length;e<i;++e)for(var a,s=n[e],r=0,o=s.length;r<o;++r)(a=s[r])&&t.call(a,a.__data__,r,s);return this},attr:function VR(t,n){var e=Bc(t);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==n?e.local?NR:PR:"function"==typeof n?e.local?HR:BR:e.local?RR:OR)(e,n))},style:function GR(t,n,e){return arguments.length>1?this.each((null==n?$R:"function"==typeof n?jR:zR)(t,n,null==e?"":e)):lo(this.node(),t)},property:function XR(t,n){return arguments.length>1?this.each((null==n?WR:"function"==typeof n?YR:UR)(t,n)):this.node()[t]},classed:function KR(t,n){var e=Wb(t+"");if(arguments.length<2){for(var i=tg(this.node()),s=-1,r=e.length;++s<r;)if(!i.contains(e[s]))return!1;return!0}return this.each(("function"==typeof n?ZR:n?qR:QR)(e,n))},text:function nB(t){return arguments.length?this.each(null==t?JR:("function"==typeof t?tB:eB)(t)):this.node().textContent},html:function oB(t){return arguments.length?this.each(null==t?iB:("function"==typeof t?rB:sB)(t)):this.node().innerHTML},raise:function lB(){return this.each(aB)},lower:function uB(){return this.each(cB)},append:function fB(t){var n="function"==typeof t?t:qb(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function pB(t,n){var e="function"==typeof t?t:qb(t),i=null==n?gB:"function"==typeof n?n:Jf(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function _B(){return this.each(mB)},clone:function xB(t){return this.select(t?vB:yB)},datum:function bB(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function AB(t,n,e){var s,o,i=wB(t+""),r=i.length;if(!(arguments.length<2)){for(a=n?SB:DB,null==e&&(e=!1),s=0;s<r;++s)this.each(a(i[s],n,e));return this}var a=this.node().__on;if(a)for(var u,l=0,c=a.length;l<c;++l)for(s=0,u=a[l];s<r;++s)if((o=i[s]).type===u.type&&o.name===u.name)return u.value},dispatch:function LB(t,n){return this.each(("function"==typeof n?MB:kB)(t,n))}};const xa=eT;function Qt(t){return"string"==typeof t?new ti([[document.querySelector(t)]],[document.documentElement]):new ti([[t]],Jb)}var FB={value:function(){}};function tT(){for(var i,t=0,n=arguments.length,e={};t<n;++t){if(!(i=arguments[t]+"")||i in e||/[\s.]/.test(i))throw new Error("illegal type: "+i);e[i]=[]}return new Hc(e)}function Hc(t){this._=t}function IB(t,n){return t.trim().split(/^|\s+/).map(function(e){var i="",s=e.indexOf(".");if(s>=0&&(i=e.slice(s+1),e=e.slice(0,s)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function PB(t,n){for(var s,e=0,i=t.length;e<i;++e)if((s=t[e]).name===n)return s.value}function nT(t,n,e){for(var i=0,s=t.length;i<s;++i)if(t[i].name===n){t[i]=FB,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=e&&t.push({name:n,value:e}),t}Hc.prototype=tT.prototype={constructor:Hc,on:function(t,n){var s,e=this._,i=IB(t+"",e),r=-1,o=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++r<o;)if(s=(t=i[r]).type)e[s]=nT(e[s],t.name,n);else if(null==n)for(s in e)e[s]=nT(e[s],t.name,null);return this}for(;++r<o;)if((s=(t=i[r]).type)&&(s=PB(e[s],t.name)))return s},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new Hc(t)},call:function(t,n){if((s=arguments.length-2)>0)for(var s,r,e=new Array(s),i=0;i<s;++i)e[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=0,s=(r=this._[t]).length;i<s;++i)r[i].value.apply(n,e)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],s=0,r=i.length;s<r;++s)i[s].value.apply(n,e)}};const iT=tT;function ng(){He.preventDefault(),He.stopImmediatePropagation()}function NB(t){var n=t.document.documentElement,e=Qt(t).on("dragstart.drag",ng,!0);"onselectstart"in n?e.on("selectstart.drag",ng,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function OB(t,n){var e=t.document.documentElement,i=Qt(t).on("dragstart.drag",null);n&&(i.on("click.drag",ng,!0),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in e?i.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function ig(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function sT(t,n){var e=Object.create(t.prototype);for(var i in n)e[i]=n[i];return e}function ba(){}var Vc=1/.7,co="\\s*([+-]?\\d+)\\s*",Ca="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ji="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",RB=/^#([0-9a-f]{3,8})$/,BB=new RegExp("^rgb\\("+[co,co,co]+"\\)$"),HB=new RegExp("^rgb\\("+[Ji,Ji,Ji]+"\\)$"),VB=new RegExp("^rgba\\("+[co,co,co,Ca]+"\\)$"),$B=new RegExp("^rgba\\("+[Ji,Ji,Ji,Ca]+"\\)$"),zB=new RegExp("^hsl\\("+[Ca,Ji,Ji]+"\\)$"),jB=new RegExp("^hsla\\("+[Ca,Ji,Ji,Ca]+"\\)$"),rT={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function oT(){return this.rgb().formatHex()}function aT(){return this.rgb().formatRgb()}function rr(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=RB.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?lT(n):3===e?new ni(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?$c(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?$c(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=BB.exec(t))?new ni(n[1],n[2],n[3],1):(n=HB.exec(t))?new ni(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=VB.exec(t))?$c(n[1],n[2],n[3],n[4]):(n=$B.exec(t))?$c(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=zB.exec(t))?hT(n[1],n[2]/100,n[3]/100,1):(n=jB.exec(t))?hT(n[1],n[2]/100,n[3]/100,n[4]):rT.hasOwnProperty(t)?lT(rT[t]):"transparent"===t?new ni(NaN,NaN,NaN,0):null}function lT(t){return new ni(t>>16&255,t>>8&255,255&t,1)}function $c(t,n,e,i){return i<=0&&(t=n=e=NaN),new ni(t,n,e,i)}function WB(t){return t instanceof ba||(t=rr(t)),t?new ni((t=t.rgb()).r,t.g,t.b,t.opacity):new ni}function wa(t,n,e,i){return 1===arguments.length?WB(t):new ni(t,n,e,null==i?1:i)}function ni(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function cT(){return"#"+sg(this.r)+sg(this.g)+sg(this.b)}function uT(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function sg(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function hT(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new es(t,n,e,i)}function dT(t){if(t instanceof es)return new es(t.h,t.s,t.l,t.opacity);if(t instanceof ba||(t=rr(t)),!t)return new es;if(t instanceof es)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,s=Math.min(n,e,i),r=Math.max(n,e,i),o=NaN,a=r-s,l=(r+s)/2;return a?(o=n===r?(e-i)/a+6*(e<i):e===r?(i-n)/a+2:(n-e)/a+4,a/=l<.5?r+s:2-r-s,o*=60):a=l>0&&l<1?0:o,new es(o,a,l,t.opacity)}function es(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function rg(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function fT(t,n,e,i,s){var r=t*t,o=r*t;return((1-3*t+3*r-o)*n+(4-6*r+3*o)*e+(1+3*t+3*r-3*o)*i+o*s)/6}function og(t){return function(){return t}}function pT(t,n){var e=n-t;return e?function gT(t,n){return function(e){return t+e*n}}(t,e):og(isNaN(t)?n:t)}ig(ba,rr,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:oT,formatHex:oT,formatHsl:function GB(){return dT(this).formatHsl()},formatRgb:aT,toString:aT}),ig(ni,wa,sT(ba,{brighter:function(t){return t=null==t?Vc:Math.pow(Vc,t),new ni(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ni(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cT,formatHex:cT,formatRgb:uT,toString:uT})),ig(es,function UB(t,n,e,i){return 1===arguments.length?dT(t):new es(t,n,e,null==i?1:i)},sT(ba,{brighter:function(t){return t=null==t?Vc:Math.pow(Vc,t),new es(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new es(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,s=2*e-i;return new ni(rg(t>=240?t-240:t+120,s,i),rg(t,s,i),rg(t<120?t+240:t-120,s,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const zc=function t(n){var e=function QB(t){return 1==(t=+t)?pT:function(n,e){return e-n?function qB(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):og(isNaN(n)?e:n)}}(n);function i(s,r){var o=e((s=wa(s)).r,(r=wa(r)).r),a=e(s.g,r.g),l=e(s.b,r.b),c=pT(s.opacity,r.opacity);return function(u){return s.r=o(u),s.g=a(u),s.b=l(u),s.opacity=c(u),s+""}}return i.gamma=t,i}(1);function mT(t){return function(n){var o,a,e=n.length,i=new Array(e),s=new Array(e),r=new Array(e);for(o=0;o<e;++o)a=wa(n[o]),i[o]=a.r||0,s[o]=a.g||0,r[o]=a.b||0;return i=t(i),s=t(s),r=t(r),a.opacity=1,function(l){return a.r=i(l),a.g=s(l),a.b=r(l),a+""}}}function _T(t,n){var o,e=n?n.length:0,i=t?Math.min(e,t.length):0,s=new Array(i),r=new Array(e);for(o=0;o<i;++o)s[o]=or(t[o],n[o]);for(;o<e;++o)r[o]=n[o];return function(a){for(o=0;o<i;++o)r[o]=s[o](a);return r}}function ZB(t,n){var e=new Date;return t=+t,n=+n,function(i){return e.setTime(t*(1-i)+n*i),e}}function Pi(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function KB(t,n){var s,e={},i={};for(s in(null===t||"object"!=typeof t)&&(t={}),(null===n||"object"!=typeof n)&&(n={}),n)s in t?e[s]=or(t[s],n[s]):i[s]=n[s];return function(r){for(s in e)i[s]=e[s](r);return i}}mT(function YB(t){var n=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),s=t[i],r=t[i+1];return fT((e-i/n)*n,i>0?t[i-1]:2*s-r,s,r,i<n-1?t[i+2]:2*r-s)}}),mT(function XB(t){var n=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*n);return fT((e-i/n)*n,t[(i+n-1)%n],t[i%n],t[(i+1)%n],t[(i+2)%n])}});var ag=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lg=new RegExp(ag.source,"g");function yT(t,n){var i,s,r,e=ag.lastIndex=lg.lastIndex=0,o=-1,a=[],l=[];for(t+="",n+="";(i=ag.exec(t))&&(s=lg.exec(n));)(r=s.index)>e&&(r=n.slice(e,r),a[o]?a[o]+=r:a[++o]=r),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,l.push({i:o,x:Pi(i,s)})),e=lg.lastIndex;return e<n.length&&(r=n.slice(e),a[o]?a[o]+=r:a[++o]=r),a.length<2?l[0]?function e3(t){return function(n){return t(n)+""}}(l[0].x):function JB(t){return function(){return t}}(n):(n=l.length,function(c){for(var h,u=0;u<n;++u)a[(h=l[u]).i]=h.x(c);return a.join("")})}function t3(t,n){n||(n=[]);var s,e=t?Math.min(n.length,t.length):0,i=n.slice();return function(r){for(s=0;s<e;++s)i[s]=t[s]*(1-r)+n[s]*r;return i}}function or(t,n){var i,e=typeof n;return null==n||"boolean"===e?og(n):("number"===e?Pi:"string"===e?(i=rr(n))?(n=i,zc):yT:n instanceof rr?zc:n instanceof Date?ZB:function n3(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(n)?t3:Array.isArray(n)?_T:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?KB:Pi)(t,n)}function vT(){for(var n,t=He;n=t.sourceEvent;)t=n;return t}function xT(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var i=e.createSVGPoint();return i.x=n.clientX,i.y=n.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}var s=t.getBoundingClientRect();return[n.clientX-s.left-t.clientLeft,n.clientY-s.top-t.clientTop]}function s3(t){var n=vT();return n.changedTouches&&(n=n.changedTouches[0]),xT(t,n)}var jc,Aa,uo=0,Da=0,Sa=0,Gc=0,ar=0,Wc=0,Ea="object"==typeof performance&&performance.now?performance:Date,TT="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Uc(){return ar||(TT(r3),ar=Ea.now()+Wc)}function r3(){ar=0}function Yc(){this._call=this._time=this._next=null}function CT(t,n,e){var i=new Yc;return i.restart(t,n,e),i}function wT(){ar=(Gc=Ea.now())+Wc,uo=Da=0;try{!function o3(){Uc(),++uo;for(var n,t=jc;t;)(n=ar-t._time)>=0&&t._call.call(null,n),t=t._next;--uo}()}finally{uo=0,function l3(){for(var t,e,n=jc,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:jc=e);Aa=t,cg(i)}(),ar=0}}function a3(){var t=Ea.now(),n=t-Gc;n>1e3&&(Wc-=n,Gc=t)}function cg(t){uo||(Da&&(Da=clearTimeout(Da)),t-ar>24?(t<1/0&&(Da=setTimeout(wT,t-Ea.now()-Wc)),Sa&&(Sa=clearInterval(Sa))):(Sa||(Gc=Ea.now(),Sa=setInterval(a3,1e3)),uo=1,TT(wT)))}function DT(t,n,e){var i=new Yc;return i.restart(function(s){i.stop(),t(s+n)},n=null==n?0:+n,e),i}Yc.prototype=CT.prototype={constructor:Yc,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Uc():+e)+(null==n?0:+n),!this._next&&Aa!==this&&(Aa?Aa._next=this:jc=this,Aa=this),this._call=t,this._time=e,cg()},stop:function(){this._call&&(this._call=null,this._time=1/0,cg())}};var c3=iT("start","end","cancel","interrupt"),u3=[];function Qc(t,n,e,i,s,r){var o=t.__transition;if(o){if(e in o)return}else t.__transition={};!function h3(t,n,e){var s,i=t.__transition;function o(c){var u,h,d,f;if(1!==e.state)return l();for(u in i)if((f=i[u]).name===e.name){if(3===f.state)return DT(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+u<n&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[u])}if(DT(function(){3===e.state&&(e.state=4,e.timer.restart(a,e.delay,e.time),a(c))}),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,s=new Array(d=e.tween.length),u=0,h=-1;u<d;++u)(f=e.tween[u].value.call(t,t.__data__,e.index,e.group))&&(s[++h]=f);s.length=h+1}}function a(c){for(var u=c<e.duration?e.ease.call(null,c/e.duration):(e.timer.restart(l),e.state=5,1),h=-1,d=s.length;++h<d;)s[h].call(t,u);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),l())}function l(){for(var c in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=CT(function r(c){e.state=1,e.timer.restart(o,e.delay,e.time),e.delay<=c&&o(c-e.delay)},0,e.time)}(t,e,{name:n,index:i,group:s,on:c3,tween:u3,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:0})}function dg(t,n){var e=Ni(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function fs(t,n){var e=Ni(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Ni(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function fg(t,n){var i,s,o,e=t.__transition,r=!0;if(e){for(o in n=null==n?null:n+"",e)(i=e[o]).name===n?(s=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete e[o]):r=!1;r&&delete t.__transition}}var ka,pg,LT,Zc,kT=180/Math.PI,gg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function MT(t,n,e,i,s,r){var o,a,l;return(o=Math.sqrt(t*t+n*n))&&(t/=o,n/=o),(l=t*e+n*i)&&(e-=t*l,i-=n*l),(a=Math.sqrt(e*e+i*i))&&(e/=a,i/=a,l/=a),t*i<n*e&&(t=-t,n=-n,l=-l,o=-o),{translateX:s,translateY:r,rotate:Math.atan2(n,t)*kT,skewX:Math.atan(l)*kT,scaleX:o,scaleY:a}}function FT(t,n,e,i){function s(c){return c.length?c.pop()+" ":""}return function(c,u){var h=[],d=[];return c=t(c),u=t(u),function r(c,u,h,d,f,g){if(c!==h||u!==d){var v=f.push("translate(",null,n,null,e);g.push({i:v-4,x:Pi(c,h)},{i:v-2,x:Pi(u,d)})}else(h||d)&&f.push("translate("+h+n+d+e)}(c.translateX,c.translateY,u.translateX,u.translateY,h,d),function o(c,u,h,d){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),d.push({i:h.push(s(h)+"rotate(",null,i)-2,x:Pi(c,u)})):u&&h.push(s(h)+"rotate("+u+i)}(c.rotate,u.rotate,h,d),function a(c,u,h,d){c!==u?d.push({i:h.push(s(h)+"skewX(",null,i)-2,x:Pi(c,u)}):u&&h.push(s(h)+"skewX("+u+i)}(c.skewX,u.skewX,h,d),function l(c,u,h,d,f,g){if(c!==h||u!==d){var v=f.push(s(f)+"scale(",null,",",null,")");g.push({i:v-4,x:Pi(c,h)},{i:v-2,x:Pi(u,d)})}else(1!==h||1!==d)&&f.push(s(f)+"scale("+h+","+d+")")}(c.scaleX,c.scaleY,u.scaleX,u.scaleY,h,d),c=u=null,function(f){for(var p,g=-1,v=d.length;++g<v;)h[(p=d[g]).i]=p.x(f);return h.join("")}}}var p3=FT(function f3(t){return"none"===t?gg:(ka||(ka=document.createElement("DIV"),pg=document.documentElement,LT=document.defaultView),ka.style.transform=t,t=LT.getComputedStyle(pg.appendChild(ka),null).getPropertyValue("transform"),pg.removeChild(ka),MT(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),m3=FT(function g3(t){return null!=t&&(Zc||(Zc=document.createElementNS("http://www.w3.org/2000/svg","g")),Zc.setAttribute("transform",t),t=Zc.transform.baseVal.consolidate())?MT((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):gg},", ",")",")");function _3(t,n){var e,i;return function(){var s=fs(this,t),r=s.tween;if(r!==e)for(var o=0,a=(i=e=r).length;o<a;++o)if(i[o].name===n){(i=i.slice()).splice(o,1);break}s.tween=i}}function y3(t,n,e){var i,s;if("function"!=typeof e)throw new Error;return function(){var r=fs(this,t),o=r.tween;if(o!==i){s=(i=o).slice();for(var a={name:n,value:e},l=0,c=s.length;l<c;++l)if(s[l].name===n){s[l]=a;break}l===c&&s.push(a)}r.tween=s}}function mg(t,n,e){var i=t._id;return t.each(function(){var s=fs(this,i);(s.value||(s.value={}))[n]=e.apply(this,arguments)}),function(s){return Ni(s,i).value[n]}}function IT(t,n){var e;return("number"==typeof n?Pi:n instanceof rr?zc:(e=rr(n))?(n=e,zc):yT)(t,n)}function x3(t){return function(){this.removeAttribute(t)}}function b3(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T3(t,n,e){var i,r,s=e+"";return function(){var o=this.getAttribute(t);return o===s?null:o===i?r:r=n(i=o,e)}}function C3(t,n,e){var i,r,s=e+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===s?null:o===i?r:r=n(i=o,e)}}function w3(t,n,e){var i,s,r;return function(){var o,l,a=e(this);return null==a?void this.removeAttribute(t):(o=this.getAttribute(t))===(l=a+"")?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}function D3(t,n,e){var i,s,r;return function(){var o,l,a=e(this);return null==a?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local))===(l=a+"")?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}function A3(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function E3(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function k3(t,n){var e,i;function s(){var r=n.apply(this,arguments);return r!==i&&(e=(i=r)&&E3(t,r)),e}return s._value=n,s}function M3(t,n){var e,i;function s(){var r=n.apply(this,arguments);return r!==i&&(e=(i=r)&&A3(t,r)),e}return s._value=n,s}function F3(t,n){return function(){dg(this,t).delay=+n.apply(this,arguments)}}function I3(t,n){return n=+n,function(){dg(this,t).delay=n}}function N3(t,n){return function(){fs(this,t).duration=+n.apply(this,arguments)}}function O3(t,n){return n=+n,function(){fs(this,t).duration=n}}function B3(t,n){if("function"!=typeof n)throw new Error;return function(){fs(this,t).ease=n}}function j3(t,n,e){var i,s,r=function z3(t){return(t+"").trim().split(/^|\s+/).every(function(n){var e=n.indexOf(".");return e>=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?dg:fs;return function(){var o=r(this,t),a=o.on;a!==i&&(s=(i=a).copy()).on(n,e),o.on=s}}var q3=xa.prototype.constructor;function PT(t){return function(){this.style.removeProperty(t)}}function nH(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}function iH(t,n,e){var i,s;function r(){var o=n.apply(this,arguments);return o!==s&&(i=(s=o)&&nH(t,o,e)),i}return r._value=n,r}function lH(t){return function(n){this.textContent=t.call(this,n)}}function cH(t){var n,e;function i(){var s=t.apply(this,arguments);return s!==e&&(n=(e=s)&&lH(s)),n}return i._value=t,i}var fH=0;function gs(t,n,e,i){this._groups=t,this._parents=n,this._name=e,this._id=i}function NT(){return++fH}var ho=xa.prototype;gs.prototype=function gH(t){return xa().transition(t)}.prototype={constructor:gs,select:function Y3(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Jf(t));for(var i=this._groups,s=i.length,r=new Array(s),o=0;o<s;++o)for(var u,h,a=i[o],l=a.length,c=r[o]=new Array(l),d=0;d<l;++d)(u=a[d])&&(h=t.call(u,u.__data__,d,a))&&("__data__"in u&&(h.__data__=u.__data__),c[d]=h,Qc(c[d],n,e,d,c,Ni(u,e)));return new gs(r,this._parents,n,e)},selectAll:function X3(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Hb(t));for(var i=this._groups,s=i.length,r=[],o=[],a=0;a<s;++a)for(var u,l=i[a],c=l.length,h=0;h<c;++h)if(u=l[h]){for(var f,d=t.call(u,u.__data__,h,l),g=Ni(u,e),v=0,p=d.length;v<p;++v)(f=d[v])&&Qc(f,n,e,v,d,g);r.push(d),o.push(u)}return new gs(r,o,n,e)},filter:function V3(t){"function"!=typeof t&&(t=Vb(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,r=n[s],o=r.length,a=i[s]=[],c=0;c<o;++c)(l=r[c])&&t.call(l,l.__data__,c,r)&&a.push(l);return new gs(i,this._parents,this._name,this._id)},merge:function $3(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,i=n.length,r=Math.min(i,e.length),o=new Array(i),a=0;a<r;++a)for(var d,l=n[a],c=e[a],u=l.length,h=o[a]=new Array(u),f=0;f<u;++f)(d=l[f]||c[f])&&(h[f]=d);for(;a<i;++a)o[a]=n[a];return new gs(o,this._parents,this._name,this._id)},selection:function Q3(){return new q3(this._groups,this._parents)},transition:function hH(){for(var t=this._name,n=this._id,e=NT(),i=this._groups,s=i.length,r=0;r<s;++r)for(var l,o=i[r],a=o.length,c=0;c<a;++c)if(l=o[c]){var u=Ni(l,n);Qc(l,t,e,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new gs(i,this._parents,t,e)},call:ho.call,nodes:ho.nodes,node:ho.node,size:ho.size,empty:ho.empty,each:ho.each,on:function G3(t,n){var e=this._id;return arguments.length<2?Ni(this.node(),e).on.on(t):this.each(j3(e,t,n))},attr:function S3(t,n){var e=Bc(t),i="transform"===e?m3:IT;return this.attrTween(t,"function"==typeof n?(e.local?D3:w3)(e,i,mg(this,"attr."+t,n)):null==n?(e.local?b3:x3)(e):(e.local?C3:T3)(e,i,n))},attrTween:function L3(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=Bc(t);return this.tween(e,(i.local?k3:M3)(i,n))},style:function tH(t,n,e){var i="transform"==(t+="")?p3:IT;return null==n?this.styleTween(t,function Z3(t,n){var e,i,s;return function(){var r=lo(this,t),o=(this.style.removeProperty(t),lo(this,t));return r===o?null:r===e&&o===i?s:s=n(e=r,i=o)}}(t,i)).on("end.style."+t,PT(t)):"function"==typeof n?this.styleTween(t,function J3(t,n,e){var i,s,r;return function(){var o=lo(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=lo(this,t)),o===l?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}(t,i,mg(this,"style."+t,n))).each(function eH(t,n){var e,i,s,a,r="style."+n,o="end."+r;return function(){var l=fs(this,t),c=l.on,u=null==l.value[r]?a||(a=PT(n)):void 0;(c!==e||s!==u)&&(i=(e=c).copy()).on(o,s=u),l.on=i}}(this._id,t)):this.styleTween(t,function K3(t,n,e){var i,r,s=e+"";return function(){var o=lo(this,t);return o===s?null:o===i?r:r=n(i=o,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function sH(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,iH(t,n,null==e?"":e))},text:function aH(t){return this.tween("text","function"==typeof t?function oH(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(mg(this,"text",t)):function rH(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function uH(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,cH(t))},remove:function U3(){return this.on("end.remove",function W3(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function v3(t,n){var e=this._id;if(t+="",arguments.length<2){for(var o,i=Ni(this.node(),e).tween,s=0,r=i.length;s<r;++s)if((o=i[s]).name===t)return o.value;return null}return this.each((null==n?_3:y3)(e,t,n))},delay:function P3(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?F3:I3)(n,t)):Ni(this.node(),n).delay},duration:function R3(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?N3:O3)(n,t)):Ni(this.node(),n).duration},ease:function H3(t){var n=this._id;return arguments.length?this.each(B3(n,t)):Ni(this.node(),n).ease},end:function dH(){var t,n,e=this,i=e._id,s=e.size();return new Promise(function(r,o){var a={value:o},l={value:function(){0==--s&&r()}};e.each(function(){var c=fs(this,i),u=c.on;u!==t&&((n=(t=u).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(l)),c.on=n})})}};var _g={time:null,delay:0,duration:250,ease:function pH(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function mH(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return _g.time=Uc(),_g;return e}function yg(t){return function(){return t}}function vH(t,n,e){this.target=t,this.type=n,this.selection=e}function OT(){He.stopImmediatePropagation()}function vg(){He.preventDefault(),He.stopImmediatePropagation()}xa.prototype.interrupt=function d3(t){return this.each(function(){fg(this,t)})},xa.prototype.transition=function _H(t){var n,e;t instanceof gs?(n=t._id,t=t._name):(n=NT(),(e=_g).time=Uc(),t=null==t?null:t+"");for(var i=this._groups,s=i.length,r=0;r<s;++r)for(var l,o=i[r],a=o.length,c=0;c<a;++c)(l=o[c])&&Qc(l,t,n,c,o,e||mH(l,n));return new gs(i,this._parents,t,n)};var RT={name:"drag"},xg={name:"space"},fo={name:"handle"},go={name:"center"};function BT(t){return[+t[0],+t[1]]}function bg(t){return[BT(t[0]),BT(t[1])]}function xH(t){return function(n){return function i3(t,n,e){arguments.length<3&&(e=n,n=vT().changedTouches);for(var r,i=0,s=n?n.length:0;i<s;++i)if((r=n[i]).identifier===e)return xT(t,r);return null}(n,He.touches,t)}}var Kc={name:"x",handles:["w","e"].map(Ma),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Jc={name:"y",handles:["n","s"].map(Ma),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},ps=(["n","w","e","s","nw","ne","sw","se"].map(Ma),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),HT={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},VT={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},TH={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},CH={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Ma(t){return{type:t}}function wH(){return!He.ctrlKey&&!He.button}function DH(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function SH(){return navigator.maxTouchPoints||"ontouchstart"in this}function Tg(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function AH(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function wg(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Dg(t){let n=t,e=t;function i(o,a,l,c){for(null==l&&(l=0),null==c&&(c=o.length);l<c;){const u=l+c>>>1;e(o[u],a)<0?l=u+1:c=u}return l}return 1===t.length&&(n=(o,a)=>t(o)-a,e=function kH(t){return(n,e)=>wg(t(n),e)}(t)),{left:i,center:function r(o,a,l,c){null==l&&(l=0),null==c&&(c=o.length);const u=i(o,a,l,c-1);return u>l&&n(o[u-1],a)>-n(o[u],a)?u-1:u},right:function s(o,a,l,c){for(null==l&&(l=0),null==c&&(c=o.length);l<c;){const u=l+c>>>1;e(o[u],a)>0?c=u:l=u+1}return l}}}var Sg=Math.sqrt(50),Ag=Math.sqrt(10),Eg=Math.sqrt(2);function $T(t,n,e){var i=(n-t)/Math.max(0,e),s=Math.floor(Math.log(i)/Math.LN10),r=i/Math.pow(10,s);return s>=0?(r>=Sg?10:r>=Ag?5:r>=Eg?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(r>=Sg?10:r>=Ag?5:r>=Eg?2:1)}function kg(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),s=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),r=i/s;return r>=Sg?s*=10:r>=Ag?s*=5:r>=Eg&&(s*=2),n<t?-s:s}const ms=1e3,xi=6e4,_s=60*xi,lr=24*_s,Mg=7*lr,zT=30*lr,Lg=365*lr;var Fg=new Date,Ig=new Date;function Zt(t,n,e,i){function s(r){return t(r=0===arguments.length?new Date:new Date(+r)),r}return s.floor=function(r){return t(r=new Date(+r)),r},s.ceil=function(r){return t(r=new Date(r-1)),n(r,1),t(r),r},s.round=function(r){var o=s(r),a=s.ceil(r);return r-o<a-r?o:a},s.offset=function(r,o){return n(r=new Date(+r),null==o?1:Math.floor(o)),r},s.range=function(r,o,a){var c,l=[];if(r=s.ceil(r),a=null==a?1:Math.floor(a),!(r<o&&a>0))return l;do{l.push(c=new Date(+r)),n(r,a),t(r)}while(c<r&&r<o);return l},s.filter=function(r){return Zt(function(o){if(o>=o)for(;t(o),!r(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;n(o,-1),!r(o););else for(;--a>=0;)for(;n(o,1),!r(o););})},e&&(s.count=function(r,o){return Fg.setTime(+r),Ig.setTime(+o),t(Fg),t(Ig),Math.floor(e(Fg,Ig))},s.every=function(r){return r=Math.floor(r),isFinite(r)&&r>0?r>1?s.filter(i?function(o){return i(o)%r==0}:function(o){return s.count(0,o)%r==0}):s:null}),s}var eu=Zt(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});eu.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Zt(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):eu:null};const LH=eu;var jT=Zt(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*ms)},function(t,n){return(n-t)/ms},function(t){return t.getUTCSeconds()});const La=jT;var GT=Zt(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*ms)},function(t,n){t.setTime(+t+n*xi)},function(t,n){return(n-t)/xi},function(t){return t.getMinutes()});const WT=GT;var UT=Zt(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*ms-t.getMinutes()*xi)},function(t,n){t.setTime(+t+n*_s)},function(t,n){return(n-t)/_s},function(t){return t.getHours()});const YT=UT;var XT=Zt(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xi)/lr,t=>t.getDate()-1);const qT=XT;function cr(t){return Zt(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*xi)/Mg})}var Pg=cr(0),QT=(cr(1),cr(2),cr(3),cr(4),cr(5),cr(6),Zt(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}));const ZT=QT;var Ng=Zt(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Ng.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zt(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const KT=Ng;var JT=Zt(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*xi)},function(t,n){return(n-t)/xi},function(t){return t.getUTCMinutes()});const BH=JT;var eC=Zt(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*_s)},function(t,n){return(n-t)/_s},function(t){return t.getUTCHours()});const HH=eC;var tC=Zt(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/lr},function(t){return t.getUTCDate()-1});const VH=tC;function ur(t){return Zt(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/Mg})}var nC=ur(0),iC=(ur(1),ur(2),ur(3),ur(4),ur(5),ur(6),Zt(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}));const YH=iC;var Og=Zt(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Og.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zt(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const XH=Og;function sC(t,n,e,i,s,r){const o=[[La,1,ms],[La,5,5e3],[La,15,15e3],[La,30,3e4],[r,1,xi],[r,5,5*xi],[r,15,15*xi],[r,30,30*xi],[s,1,_s],[s,3,3*_s],[s,6,6*_s],[s,12,12*_s],[i,1,lr],[i,2,2*lr],[e,1,Mg],[n,1,zT],[n,3,3*zT],[t,1,Lg]];function l(c,u,h){const d=Math.abs(u-c)/h,f=Dg(([,,p])=>p).right(o,d);if(f===o.length)return t.every(kg(c/Lg,u/Lg,h));if(0===f)return LH.every(Math.max(kg(c,u,h),1));const[g,v]=o[d/o[f-1][2]<o[f][2]/d?f-1:f];return g.every(v)}return[function a(c,u,h){const d=u<c;d&&([c,u]=[u,c]);const f=h&&"function"==typeof h.range?h:l(c,u,h),g=f?f.range(c,+u+1):[];return d?g.reverse():g},l]}const[AX,EX]=sC(XH,YH,nC,VH,HH,BH),[qH,QH]=sC(KT,ZT,Pg,qT,YT,WT);var Rg=new Date,Bg=new Date;function ys(t,n,e,i){function s(r){return t(r=0===arguments.length?new Date:new Date(+r)),r}return s.floor=function(r){return t(r=new Date(+r)),r},s.ceil=function(r){return t(r=new Date(r-1)),n(r,1),t(r),r},s.round=function(r){var o=s(r),a=s.ceil(r);return r-o<a-r?o:a},s.offset=function(r,o){return n(r=new Date(+r),null==o?1:Math.floor(o)),r},s.range=function(r,o,a){var c,l=[];if(r=s.ceil(r),a=null==a?1:Math.floor(a),!(r<o&&a>0))return l;do{l.push(c=new Date(+r)),n(r,a),t(r)}while(c<r&&r<o);return l},s.filter=function(r){return ys(function(o){if(o>=o)for(;t(o),!r(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;n(o,-1),!r(o););else for(;--a>=0;)for(;n(o,1),!r(o););})},e&&(s.count=function(r,o){return Rg.setTime(+r),Bg.setTime(+o),t(Rg),t(Bg),Math.floor(e(Rg,Bg))},s.every=function(r){return r=Math.floor(r),isFinite(r)&&r>0?r>1?s.filter(i?function(o){return i(o)%r==0}:function(o){return s.count(0,o)%r==0}):s:null}),s}var aC=6048e5;function hr(t){return ys(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/aC})}var lC=hr(0),tu=hr(1),po=(hr(2),hr(3),hr(4)),cC=(hr(5),hr(6),ys(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const uC=cC;function dr(t){return ys(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-6e4*(e.getTimezoneOffset()-n.getTimezoneOffset()))/aC})}var hC=dr(0),nu=dr(1),mo=(dr(2),dr(3),dr(4)),dC=(dr(5),dr(6),ys(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1}));const fC=dC;var Hg=ys(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Hg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ys(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const Fa=Hg;var Vg=ys(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Vg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ys(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const Ia=Vg;function $g(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function zg(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Pa(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var _o,EC,gC={"-":"",_:" ",0:"0"},Kt=/^\s*\d+/,oV=/^%/,aV=/[\\^$*+?|[\]().{}]/g;function $e(t,n,e){var i=t<0?"-":"",s=(i?-t:t)+"",r=s.length;return i+(r<e?new Array(e-r+1).join(n)+s:s)}function lV(t){return t.replace(aV,"\\$&")}function Na(t){return new RegExp("^(?:"+t.map(lV).join("|")+")","i")}function Oa(t){for(var n={},e=-1,i=t.length;++e<i;)n[t[e].toLowerCase()]=e;return n}function cV(t,n,e){var i=Kt.exec(n.slice(e,e+1));return i?(t.w=+i[0],e+i[0].length):-1}function uV(t,n,e){var i=Kt.exec(n.slice(e,e+1));return i?(t.u=+i[0],e+i[0].length):-1}function hV(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.U=+i[0],e+i[0].length):-1}function dV(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.V=+i[0],e+i[0].length):-1}function fV(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.W=+i[0],e+i[0].length):-1}function pC(t,n,e){var i=Kt.exec(n.slice(e,e+4));return i?(t.y=+i[0],e+i[0].length):-1}function mC(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function gV(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function pV(t,n,e){var i=Kt.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function mV(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function _C(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function _V(t,n,e){var i=Kt.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function yC(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function yV(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function vV(t,n,e){var i=Kt.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function xV(t,n,e){var i=Kt.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function bV(t,n,e){var i=Kt.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function TV(t,n,e){var i=oV.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function CV(t,n,e){var i=Kt.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function wV(t,n,e){var i=Kt.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function vC(t,n){return $e(t.getDate(),n,2)}function DV(t,n){return $e(t.getHours(),n,2)}function SV(t,n){return $e(t.getHours()%12||12,n,2)}function AV(t,n){return $e(1+fC.count(Fa(t),t),n,3)}function xC(t,n){return $e(t.getMilliseconds(),n,3)}function EV(t,n){return xC(t,n)+"000"}function kV(t,n){return $e(t.getMonth()+1,n,2)}function MV(t,n){return $e(t.getMinutes(),n,2)}function LV(t,n){return $e(t.getSeconds(),n,2)}function FV(t){var n=t.getDay();return 0===n?7:n}function IV(t,n){return $e(hC.count(Fa(t)-1,t),n,2)}function bC(t){var n=t.getDay();return n>=4||0===n?mo(t):mo.ceil(t)}function PV(t,n){return t=bC(t),$e(mo.count(Fa(t),t)+(4===Fa(t).getDay()),n,2)}function NV(t){return t.getDay()}function OV(t,n){return $e(nu.count(Fa(t)-1,t),n,2)}function RV(t,n){return $e(t.getFullYear()%100,n,2)}function BV(t,n){return $e((t=bC(t)).getFullYear()%100,n,2)}function HV(t,n){return $e(t.getFullYear()%1e4,n,4)}function VV(t,n){var e=t.getDay();return $e((t=e>=4||0===e?mo(t):mo.ceil(t)).getFullYear()%1e4,n,4)}function $V(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+$e(n/60|0,"0",2)+$e(n%60,"0",2)}function TC(t,n){return $e(t.getUTCDate(),n,2)}function zV(t,n){return $e(t.getUTCHours(),n,2)}function jV(t,n){return $e(t.getUTCHours()%12||12,n,2)}function GV(t,n){return $e(1+uC.count(Ia(t),t),n,3)}function CC(t,n){return $e(t.getUTCMilliseconds(),n,3)}function WV(t,n){return CC(t,n)+"000"}function UV(t,n){return $e(t.getUTCMonth()+1,n,2)}function YV(t,n){return $e(t.getUTCMinutes(),n,2)}function XV(t,n){return $e(t.getUTCSeconds(),n,2)}function qV(t){var n=t.getUTCDay();return 0===n?7:n}function QV(t,n){return $e(lC.count(Ia(t)-1,t),n,2)}function wC(t){var n=t.getUTCDay();return n>=4||0===n?po(t):po.ceil(t)}function ZV(t,n){return t=wC(t),$e(po.count(Ia(t),t)+(4===Ia(t).getUTCDay()),n,2)}function KV(t){return t.getUTCDay()}function JV(t,n){return $e(tu.count(Ia(t)-1,t),n,2)}function e$(t,n){return $e(t.getUTCFullYear()%100,n,2)}function t$(t,n){return $e((t=wC(t)).getUTCFullYear()%100,n,2)}function n$(t,n){return $e(t.getUTCFullYear()%1e4,n,4)}function i$(t,n){var e=t.getUTCDay();return $e((t=e>=4||0===e?po(t):po.ceil(t)).getUTCFullYear()%1e4,n,4)}function s$(){return"+0000"}function DC(){return"%"}function SC(t){return+t}function AC(t){return Math.floor(+t/1e3)}function kC(t){return null===t?NaN:+t}!function l$(t){_o=function rV(t){var n=t.dateTime,e=t.date,i=t.time,s=t.periods,r=t.days,o=t.shortDays,a=t.months,l=t.shortMonths,c=Na(s),u=Oa(s),h=Na(r),d=Oa(r),f=Na(o),g=Oa(o),v=Na(a),p=Oa(a),C=Na(l),b=Oa(l),D={a:function G(H){return o[H.getDay()]},A:function $(H){return r[H.getDay()]},b:function Z(H){return l[H.getMonth()]},B:function ce(H){return a[H.getMonth()]},c:null,d:vC,e:vC,f:EV,g:BV,G:VV,H:DV,I:SV,j:AV,L:xC,m:kV,M:MV,p:function Ee(H){return s[+(H.getHours()>=12)]},q:function yt(H){return 1+~~(H.getMonth()/3)},Q:SC,s:AC,S:LV,u:FV,U:IV,V:PV,w:NV,W:OV,x:null,X:null,y:RV,Y:HV,Z:$V,"%":DC},M={a:function zt(H){return o[H.getUTCDay()]},A:function Te(H){return r[H.getUTCDay()]},b:function ri(H){return l[H.getUTCMonth()]},B:function ns(H){return a[H.getUTCMonth()]},c:null,d:TC,e:TC,f:WV,g:t$,G:i$,H:zV,I:jV,j:GV,L:CC,m:UV,M:YV,p:function et(H){return s[+(H.getUTCHours()>=12)]},q:function jt(H){return 1+~~(H.getUTCMonth()/3)},Q:SC,s:AC,S:XV,u:qV,U:QV,V:ZV,w:KV,W:JV,x:null,X:null,y:e$,Y:n$,Z:s$,"%":DC},N={a:function oe(H,ne,ye){var O=f.exec(ne.slice(ye));return O?(H.w=g[O[0].toLowerCase()],ye+O[0].length):-1},A:function J(H,ne,ye){var O=h.exec(ne.slice(ye));return O?(H.w=d[O[0].toLowerCase()],ye+O[0].length):-1},b:function B(H,ne,ye){var O=C.exec(ne.slice(ye));return O?(H.m=b[O[0].toLowerCase()],ye+O[0].length):-1},B:function W(H,ne,ye){var O=v.exec(ne.slice(ye));return O?(H.m=p[O[0].toLowerCase()],ye+O[0].length):-1},c:function Ge(H,ne,ye){return be(H,n,ne,ye)},d:_C,e:_C,f:bV,g:mC,G:pC,H:yC,I:yC,j:_V,L:xV,m:mV,M:yV,p:function ee(H,ne,ye){var O=c.exec(ne.slice(ye));return O?(H.p=u[O[0].toLowerCase()],ye+O[0].length):-1},q:pV,Q:CV,s:wV,S:vV,u:uV,U:hV,V:dV,w:cV,W:fV,x:function Ae(H,ne,ye){return be(H,e,ne,ye)},X:function P(H,ne,ye){return be(H,i,ne,ye)},y:mC,Y:pC,Z:gV,"%":TV};function I(H,ne){return function(ye){var Mn,xs,Ln,O=[],an=-1,Ve=0,pn=H.length;for(ye instanceof Date||(ye=new Date(+ye));++an<pn;)37===H.charCodeAt(an)&&(O.push(H.slice(Ve,an)),null!=(xs=gC[Mn=H.charAt(++an)])?Mn=H.charAt(++an):xs="e"===Mn?" ":"0",(Ln=ne[Mn])&&(Mn=Ln(ye,xs)),O.push(Mn),Ve=an+1);return O.push(H.slice(Ve,an)),O.join("")}}function X(H,ne){return function(ye){var Ve,pn,O=Pa(1900,void 0,1);if(be(O,H,ye+="",0)!=ye.length)return null;if("Q"in O)return new Date(O.Q);if("s"in O)return new Date(1e3*O.s+("L"in O?O.L:0));if(ne&&!("Z"in O)&&(O.Z=0),"p"in O&&(O.H=O.H%12+12*O.p),void 0===O.m&&(O.m="q"in O?O.q:0),"V"in O){if(O.V<1||O.V>53)return null;"w"in O||(O.w=1),"Z"in O?(pn=(Ve=zg(Pa(O.y,0,1))).getUTCDay(),Ve=pn>4||0===pn?tu.ceil(Ve):tu(Ve),Ve=uC.offset(Ve,7*(O.V-1)),O.y=Ve.getUTCFullYear(),O.m=Ve.getUTCMonth(),O.d=Ve.getUTCDate()+(O.w+6)%7):(pn=(Ve=$g(Pa(O.y,0,1))).getDay(),Ve=pn>4||0===pn?nu.ceil(Ve):nu(Ve),Ve=fC.offset(Ve,7*(O.V-1)),O.y=Ve.getFullYear(),O.m=Ve.getMonth(),O.d=Ve.getDate()+(O.w+6)%7)}else("W"in O||"U"in O)&&("w"in O||(O.w="u"in O?O.u%7:"W"in O?1:0),pn="Z"in O?zg(Pa(O.y,0,1)).getUTCDay():$g(Pa(O.y,0,1)).getDay(),O.m=0,O.d="W"in O?(O.w+6)%7+7*O.W-(pn+5)%7:O.w+7*O.U-(pn+6)%7);return"Z"in O?(O.H+=O.Z/100|0,O.M+=O.Z%100,zg(O)):$g(O)}}function be(H,ne,ye,O){for(var Mn,xs,an=0,Ve=ne.length,pn=ye.length;an<Ve;){if(O>=pn)return-1;if(37===(Mn=ne.charCodeAt(an++))){if(Mn=ne.charAt(an++),!(xs=N[Mn in gC?ne.charAt(an++):Mn])||(O=xs(H,ye,O))<0)return-1}else if(Mn!=ye.charCodeAt(O++))return-1}return O}return D.x=I(e,D),D.X=I(i,D),D.c=I(n,D),M.x=I(e,M),M.X=I(i,M),M.c=I(n,M),{format:function(H){var ne=I(H+="",D);return ne.toString=function(){return H},ne},parse:function(H){var ne=X(H+="",!1);return ne.toString=function(){return H},ne},utcFormat:function(H){var ne=I(H+="",M);return ne.toString=function(){return H},ne},utcParse:function(H){var ne=X(H+="",!0);return ne.toString=function(){return H},ne}}}(t),EC=_o.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const c$=Dg(wg).right,LC=(Dg(kC),c$);function u$(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function d$(t){return+t}var FC=[0,1];function yo(t){return t}function jg(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function h$(t){return function(){return t}}(isNaN(n)?NaN:.5)}function g$(t,n,e){var i=t[0],s=t[1],r=n[0],o=n[1];return s<i?(i=jg(s,i),r=e(o,r)):(i=jg(i,s),r=e(r,o)),function(a){return r(i(a))}}function p$(t,n,e){var i=Math.min(t.length,n.length)-1,s=new Array(i),r=new Array(i),o=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++o<i;)s[o]=jg(t[o],t[o+1]),r[o]=e(n[o],n[o+1]);return function(a){var l=LC(t,a,1,i)-1;return r[l](s[l](a))}}function IC(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function PC(){return function m$(){var i,s,r,a,l,c,t=FC,n=FC,e=or,o=yo;function u(){var d=Math.min(t.length,n.length);return o!==yo&&(o=function f$(t,n){var e;return t>n&&(e=t,t=n,n=e),function(i){return Math.max(t,Math.min(n,i))}}(t[0],t[d-1])),a=d>2?p$:g$,l=c=null,h}function h(d){return null==d||isNaN(d=+d)?r:(l||(l=a(t.map(i),n,e)))(i(o(d)))}return h.invert=function(d){return o(s((c||(c=a(n,t.map(i),Pi)))(d)))},h.domain=function(d){return arguments.length?(t=Array.from(d,d$),u()):t.slice()},h.range=function(d){return arguments.length?(n=Array.from(d),u()):n.slice()},h.rangeRound=function(d){return n=Array.from(d),e=u$,u()},h.clamp=function(d){return arguments.length?(o=!!d||yo,u()):o!==yo},h.interpolate=function(d){return arguments.length?(e=d,u()):e},h.unknown=function(d){return arguments.length?(r=d,h):r},function(d,f){return i=d,s=f,u()}}()(yo,yo)}function Ra(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function y$(t){return new Date(t)}function v$(t){return t instanceof Date?+t:+new Date(+t)}function NC(t,n,e,i,s,r,o,a,l,c){var u=PC(),h=u.invert,d=u.domain,f=c(".%L"),g=c(":%S"),v=c("%I:%M"),p=c("%I %p"),C=c("%a %d"),b=c("%b %d"),D=c("%B"),M=c("%Y");function N(I){return(l(I)<I?f:a(I)<I?g:o(I)<I?v:r(I)<I?p:i(I)<I?s(I)<I?C:b:e(I)<I?D:M)(I)}return u.invert=function(I){return new Date(h(I))},u.domain=function(I){return arguments.length?d(Array.from(I,v$)):d().map(y$)},u.ticks=function(I){var X=d();return t(X[0],X[X.length-1],null==I?10:I)},u.tickFormat=function(I,X){return null==X?N:c(X)},u.nice=function(I){var X=d();return(!I||"function"!=typeof I.range)&&(I=n(X[0],X[X.length-1],null==I?10:I)),I?d(function _$(t,n){var o,e=0,i=(t=t.slice()).length-1,s=t[e],r=t[i];return r<s&&(o=e,e=i,i=o,o=s,s=r,r=o),t[e]=n.floor(s),t[i]=n.ceil(r),t}(X,I)):u},u.copy=function(){return IC(u,NC(t,n,e,i,s,r,o,a,l,c))},u}function fr(){return Ra.apply(NC(qH,QH,KT,ZT,Pg,qT,YT,WT,La,EC).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var OC,x$=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function iu(t){if(!(n=x$.exec(t)))throw new Error("invalid format: "+t);var n;return new Gg({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Gg(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function su(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function vo(t){return(t=su(Math.abs(t)))?t[1]:NaN}function RC(t,n){var e=su(t,n);if(!e)return t+"";var i=e[0],s=e[1];return s<0?"0."+new Array(-s).join("0")+i:i.length>s+1?i.slice(0,s+1)+"."+i.slice(s+1):i+new Array(s-i.length+2).join("0")}iu.prototype=Gg.prototype,Gg.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const BC={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function b$(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return RC(100*t,n)},r:RC,s:function S$(t,n){var e=su(t,n);if(!e)return t+"";var i=e[0],s=e[1],r=s-(OC=3*Math.max(-8,Math.min(8,Math.floor(s/3))))+1,o=i.length;return r===o?i:r>o?i+new Array(r-o+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+su(t,Math.max(0,n+r-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function HC(t){return t}var ru,Wg,zC,VC=Array.prototype.map,$C=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function F$(t){var n=t.domain;return t.ticks=function(e){var i=n();return function MH(t,n,e){var i,r,o,a,s=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((i=n<t)&&(r=t,t=n,n=r),0===(a=$T(t,n,e))||!isFinite(a))return[];if(a>0){let l=Math.round(t/a),c=Math.round(n/a);for(l*a<t&&++l,c*a>n&&--c,o=new Array(r=c-l+1);++s<r;)o[s]=(l+s)*a}else{a=-a;let l=Math.round(t*a),c=Math.round(n*a);for(l/a<t&&++l,c/a>n&&--c,o=new Array(r=c-l+1);++s<r;)o[s]=(l+s)/a}return i&&o.reverse(),o}(i[0],i[i.length-1],null==e?10:e)},t.tickFormat=function(e,i){var s=n();return function L$(t,n,e,i){var r,s=kg(t,n,e);switch((i=iu(null==i?",f":i)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(n));return null==i.precision&&!isNaN(r=function T$(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(vo(n)/3)))-vo(Math.abs(t)))}(s,o))&&(i.precision=r),zC(i,o);case"":case"e":case"g":case"p":case"r":null==i.precision&&!isNaN(r=function k$(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,vo(n)-vo(t))+1}(s,Math.max(Math.abs(t),Math.abs(n))))&&(i.precision=r-("e"===i.type));break;case"f":case"%":null==i.precision&&!isNaN(r=function M$(t){return Math.max(0,-vo(Math.abs(t)))}(s))&&(i.precision=r-2*("%"===i.type))}return Wg(i)}(s[0],s[s.length-1],null==e?10:e,i)},t.nice=function(e){null==e&&(e=10);var l,c,i=n(),s=0,r=i.length-1,o=i[s],a=i[r],u=10;for(a<o&&(c=o,o=a,a=c,c=s,s=r,r=c);u-- >0;){if((c=$T(o,a,e))===l)return i[s]=o,i[r]=a,n(i);if(c>0)o=Math.floor(o/c)*c,a=Math.ceil(a/c)*c;else{if(!(c<0))break;o=Math.ceil(o*c)/c,a=Math.floor(a*c)/c}l=c}return t},t}function Je(){var t=PC();return t.copy=function(){return IC(t,Je())},Ra.apply(t,arguments),F$(t)}function jC(t,n,e){t=+t,n=+n,e=(s=arguments.length)<2?(n=t,t=0,1):s<3?1:+e;for(var i=-1,s=0|Math.max(0,Math.ceil((n-t)/e)),r=new Array(s);++i<s;)r[i]=t+i*e;return r}!function E$(t){ru=function A$(t){var n=void 0===t.grouping||void 0===t.thousands?HC:function C$(t,n){return function(e,i){for(var s=e.length,r=[],o=0,a=t[0],l=0;s>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(e.substring(s-=a,s+a)),!((l+=a+1)>i));)a=t[o=(o+1)%t.length];return r.reverse().join(n)}}(VC.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",r=void 0===t.numerals?HC:function w$(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(VC.call(t.numerals,String)),o=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(h){var d=(h=iu(h)).fill,f=h.align,g=h.sign,v=h.symbol,p=h.zero,C=h.width,b=h.comma,D=h.precision,M=h.trim,N=h.type;"n"===N?(b=!0,N="g"):BC[N]||(void 0===D&&(D=12),M=!0,N="g"),(p||"0"===d&&"="===f)&&(p=!0,d="0",f="=");var I="$"===v?e:"#"===v&&/[boxX]/.test(N)?"0"+N.toLowerCase():"",X="$"===v?i:/[%p]/.test(N)?o:"",be=BC[N],ee=/[defgprs%]/.test(N);function oe(J){var Ge,Ae,P,B=I,W=X;if("c"===N)W=be(J)+W,J="";else{var G=(J=+J)<0||1/J<0;if(J=isNaN(J)?l:be(Math.abs(J),D),M&&(J=function D$(t){e:for(var s,n=t.length,e=1,i=-1;e<n;++e)switch(t[e]){case".":i=s=e;break;case"0":0===i&&(i=e),s=e;break;default:if(!+t[e])break e;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(s+1):t}(J)),G&&0==+J&&"+"!==g&&(G=!1),B=(G?"("===g?g:a:"-"===g||"("===g?"":g)+B,W=("s"===N?$C[8+OC/3]:"")+W+(G&&"("===g?")":""),ee)for(Ge=-1,Ae=J.length;++Ge<Ae;)if(48>(P=J.charCodeAt(Ge))||P>57){W=(46===P?s+J.slice(Ge+1):J.slice(Ge))+W,J=J.slice(0,Ge);break}}b&&!p&&(J=n(J,1/0));var $=B.length+J.length+W.length,Z=$<C?new Array(C-$+1).join(d):"";switch(b&&p&&(J=n(Z+J,Z.length?C-W.length:1/0),Z=""),f){case"<":J=B+J+W+Z;break;case"=":J=B+Z+J+W;break;case"^":J=Z.slice(0,$=Z.length>>1)+B+J+W+Z.slice($);break;default:J=Z+B+J+W}return r(J)}return D=void 0===D?6:/[gprs]/.test(N)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D)),oe.toString=function(){return h+""},oe}return{format:c,formatPrefix:function u(h,d){var f=c(((h=iu(h)).type="f",h)),g=3*Math.max(-8,Math.min(8,Math.floor(vo(d)/3))),v=Math.pow(10,-g),p=$C[8+g/3];return function(C){return f(v*C)+p}}}}(t),Wg=ru.format,zC=ru.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const GC=Symbol("implicit");function Ug(){var t=new Map,n=[],e=[],i=GC;function s(r){var o=r+"",a=t.get(o);if(!a){if(i!==GC)return i;t.set(o,a=n.push(r))}return e[(a-1)%e.length]}return s.domain=function(r){if(!arguments.length)return n.slice();n=[],t=new Map;for(const o of r){const a=o+"";t.has(a)||t.set(a,n.push(o))}return s},s.range=function(r){return arguments.length?(e=Array.from(r),s):e.slice()},s.unknown=function(r){return arguments.length?(i=r,s):i},s.copy=function(){return Ug(n,e).unknown(i)},Ra.apply(s,arguments),s}function rn(){var r,o,t=Ug().unknown(void 0),n=t.domain,e=t.range,i=0,s=1,a=!1,l=0,c=0,u=.5;function h(){var d=n().length,f=s<i,g=f?s:i,v=f?i:s;r=(v-g)/Math.max(1,d-l+2*c),a&&(r=Math.floor(r)),g+=(v-g-r*(d-l))*u,o=r*(1-l),a&&(g=Math.round(g),o=Math.round(o));var p=jC(d).map(function(C){return g+r*C});return e(f?p.reverse():p)}return delete t.unknown,t.domain=function(d){return arguments.length?(n(d),h()):n()},t.range=function(d){return arguments.length?([i,s]=d,i=+i,s=+s,h()):[i,s]},t.rangeRound=function(d){return[i,s]=d,i=+i,s=+s,a=!0,h()},t.bandwidth=function(){return o},t.step=function(){return r},t.round=function(d){return arguments.length?(a=!!d,h()):a},t.padding=function(d){return arguments.length?(l=Math.min(1,c=+d),h()):l},t.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),h()):l},t.paddingOuter=function(d){return arguments.length?(c=+d,h()):c},t.align=function(d){return arguments.length?(u=Math.max(0,Math.min(1,d)),h()):u},t.copy=function(){return rn(n(),[i,s]).round(a).paddingInner(l).paddingOuter(c).align(u)},Ra.apply(h(),arguments)}function WC(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return WC(n())},t}function gr(){return WC(rn.apply(null,arguments).paddingInner(1))}function I$(t,n,e=kC){if(i=t.length){if((n=+n)<=0||i<2)return+e(t[0],0,t);if(n>=1)return+e(t[i-1],i-1,t);var i,s=(i-1)*n,r=Math.floor(s),o=+e(t[r],r,t);return o+(+e(t[r+1],r+1,t)-o)*(s-r)}}function UC(){var i,t=[],n=[],e=[];function s(){var o=0,a=Math.max(1,n.length);for(e=new Array(a-1);++o<a;)e[o-1]=I$(t,o/a);return r}function r(o){return null==o||isNaN(o=+o)?i:n[LC(e,o)]}return r.invertExtent=function(o){var a=n.indexOf(o);return a<0?[NaN,NaN]:[a>0?e[a-1]:t[0],a<e.length?e[a]:t[t.length-1]]},r.domain=function(o){if(!arguments.length)return t.slice();t=[];for(let a of o)null!=a&&!isNaN(a=+a)&&t.push(a);return t.sort(wg),s()},r.range=function(o){return arguments.length?(n=Array.from(o),s()):n.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.quantiles=function(){return e.slice()},r.copy=function(){return UC().domain(t).range(n).unknown(i)},Ra.apply(r,arguments)}function YC(t){this._context=t}function pr(t){return new YC(t)}YC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Yg=Math.PI,Xg=2*Yg,mr=1e-6,P$=Xg-mr;function qg(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function XC(){return new qg}qg.prototype=XC.prototype={constructor:qg,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,s,r){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+s)+","+(this._y1=+r)},arcTo:function(t,n,e,i,s){var r=this._x1,o=this._y1,a=(e=+e)-(t=+t),l=(i=+i)-(n=+n),c=r-t,u=o-n,h=c*c+u*u;if((s=+s)<0)throw new Error("negative radius: "+s);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(h>mr)if(Math.abs(u*a-l*c)>mr&&s){var d=e-r,f=i-o,g=a*a+l*l,v=d*d+f*f,p=Math.sqrt(g),C=Math.sqrt(h),b=s*Math.tan((Yg-Math.acos((g+h-v)/(2*p*C)))/2),D=b/C,M=b/p;Math.abs(D-1)>mr&&(this._+="L"+(t+D*c)+","+(n+D*u)),this._+="A"+s+","+s+",0,0,"+ +(u*d>c*f)+","+(this._x1=t+M*a)+","+(this._y1=n+M*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,s,r){t=+t,n=+n,r=!!r;var o=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+o,c=n+a,u=1^r,h=r?i-s:s-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>mr||Math.abs(this._y1-c)>mr)&&(this._+="L"+l+","+c),e&&(h<0&&(h=h%Xg+Xg),h>P$?this._+="A"+e+","+e+",0,1,"+u+","+(t-o)+","+(n-a)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>mr&&(this._+="A"+e+","+e+",0,"+ +(h>=Yg)+","+u+","+(this._x1=t+e*Math.cos(s))+","+(this._y1=n+e*Math.sin(s))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const Qg=XC;function Xe(t){return function(){return t}}function qC(t){return t[0]}function QC(t){return t[1]}function ou(){var t=qC,n=QC,e=Xe(!0),i=null,s=pr,r=null;function o(a){var l,u,d,c=a.length,h=!1;for(null==i&&(r=s(d=Qg())),l=0;l<=c;++l)!(l<c&&e(u=a[l],l,a))===h&&((h=!h)?r.lineStart():r.lineEnd()),h&&r.point(+t(u,l,a),+n(u,l,a));if(d)return r=null,d+""||null}return o.x=function(a){return arguments.length?(t="function"==typeof a?a:Xe(+a),o):t},o.y=function(a){return arguments.length?(n="function"==typeof a?a:Xe(+a),o):n},o.defined=function(a){return arguments.length?(e="function"==typeof a?a:Xe(!!a),o):e},o.curve=function(a){return arguments.length?(s=a,null!=i&&(r=s(i)),o):s},o.context=function(a){return arguments.length?(null==a?i=r=null:r=s(i=a),o):i},o}function xo(){var t=qC,n=null,e=Xe(0),i=QC,s=Xe(!0),r=null,o=pr,a=null;function l(u){var h,d,f,v,C,g=u.length,p=!1,b=new Array(g),D=new Array(g);for(null==r&&(a=o(C=Qg())),h=0;h<=g;++h){if(!(h<g&&s(v=u[h],h,u))===p)if(p=!p)d=h,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),f=h-1;f>=d;--f)a.point(b[f],D[f]);a.lineEnd(),a.areaEnd()}p&&(b[h]=+t(v,h,u),D[h]=+e(v,h,u),a.point(n?+n(v,h,u):b[h],i?+i(v,h,u):D[h]))}if(C)return a=null,C+""||null}function c(){return ou().defined(s).curve(o).context(r)}return l.x=function(u){return arguments.length?(t="function"==typeof u?u:Xe(+u),n=null,l):t},l.x0=function(u){return arguments.length?(t="function"==typeof u?u:Xe(+u),l):t},l.x1=function(u){return arguments.length?(n=null==u?null:"function"==typeof u?u:Xe(+u),l):n},l.y=function(u){return arguments.length?(e="function"==typeof u?u:Xe(+u),i=null,l):e},l.y0=function(u){return arguments.length?(e="function"==typeof u?u:Xe(+u),l):e},l.y1=function(u){return arguments.length?(i=null==u?null:"function"==typeof u?u:Xe(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(u){return arguments.length?(s="function"==typeof u?u:Xe(!!u),l):s},l.curve=function(u){return arguments.length?(o=u,null!=r&&(a=o(r)),l):o},l.context=function(u){return arguments.length?(null==u?r=a=null:a=o(r=u),l):r},l}function ZC(){}function Zg(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function KC(t,n){this._context=t,this._k=(1-n)/6}function JC(t,n){this._context=t,this._k=(1-n)/6}function ew(t){this._curve=t}KC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Zg(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Zg(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new KC(i,n)}return e.tension=function(i){return t(+i)},e}(0),JC.prototype={areaStart:ZC,areaEnd:ZC,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Zg(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new JC(i,n)}return e.tension=function(i){return t(+i)},e}(0),function tw(t){function n(e){return new ew(t(e))}return n._curve=t,n}(pr),ew.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var nw=Math.abs,gn=Math.atan2,_r=Math.cos,H$=Math.max,Kg=Math.min,ts=Math.sin,bo=Math.sqrt,On=1e-12,Ba=Math.PI,au=Ba/2,lu=2*Ba;function V$(t){return t>1?0:t<-1?Ba:Math.acos(t)}function iw(t){return t>=1?au:t<=-1?-au:Math.asin(t)}function z$(t){return t.innerRadius}function j$(t){return t.outerRadius}function G$(t){return t.startAngle}function W$(t){return t.endAngle}function U$(t){return t&&t.padAngle}function Y$(t,n,e,i,s,r,o,a){var l=e-t,c=i-n,u=o-s,h=a-r,d=h*l-u*c;if(!(d*d<On))return[t+(d=(u*(n-r)-h*(t-s))/d)*l,n+d*c]}function cu(t,n,e,i,s,r,o){var a=t-e,l=n-i,c=(o?r:-r)/bo(a*a+l*l),u=c*l,h=-c*a,d=t+u,f=n+h,g=e+u,v=i+h,p=(d+g)/2,C=(f+v)/2,b=g-d,D=v-f,M=b*b+D*D,N=s-r,I=d*v-g*f,X=(D<0?-1:1)*bo(H$(0,N*N*M-I*I)),be=(I*D-b*X)/M,ee=(-I*b-D*X)/M,oe=(I*D+b*X)/M,J=(-I*b+D*X)/M,B=be-p,W=ee-C,Ge=oe-p,Ae=J-C;return B*B+W*W>Ge*Ge+Ae*Ae&&(be=oe,ee=J),{cx:be,cy:ee,x01:-u,y01:-h,x11:be*(s/N-1),y11:ee*(s/N-1)}}function Jg(){var t=z$,n=j$,e=Xe(0),i=null,s=G$,r=W$,o=U$,a=null;function l(){var c,u,h=+t.apply(this,arguments),d=+n.apply(this,arguments),f=s.apply(this,arguments)-au,g=r.apply(this,arguments)-au,v=nw(g-f),p=g>f;if(a||(a=c=Qg()),d<h&&(u=d,d=h,h=u),d>On)if(v>lu-On)a.moveTo(d*_r(f),d*ts(f)),a.arc(0,0,d,f,g,!p),h>On&&(a.moveTo(h*_r(g),h*ts(g)),a.arc(0,0,h,g,f,p));else{var B,W,C=f,b=g,D=f,M=g,N=v,I=v,X=o.apply(this,arguments)/2,be=X>On&&(i?+i.apply(this,arguments):bo(h*h+d*d)),ee=Kg(nw(d-h)/2,+e.apply(this,arguments)),oe=ee,J=ee;if(be>On){var Ge=iw(be/h*ts(X)),Ae=iw(be/d*ts(X));(N-=2*Ge)>On?(D+=Ge*=p?1:-1,M-=Ge):(N=0,D=M=(f+g)/2),(I-=2*Ae)>On?(C+=Ae*=p?1:-1,b-=Ae):(I=0,C=b=(f+g)/2)}var P=d*_r(C),G=d*ts(C),$=h*_r(M),Z=h*ts(M);if(ee>On){var Te,ce=d*_r(b),Ee=d*ts(b),yt=h*_r(D),zt=h*ts(D);if(v<Ba&&(Te=Y$(P,G,yt,zt,ce,Ee,$,Z))){var ri=P-Te[0],ns=G-Te[1],et=ce-Te[0],jt=Ee-Te[1],H=1/ts(V$((ri*et+ns*jt)/(bo(ri*ri+ns*ns)*bo(et*et+jt*jt)))/2),ne=bo(Te[0]*Te[0]+Te[1]*Te[1]);oe=Kg(ee,(h-ne)/(H-1)),J=Kg(ee,(d-ne)/(H+1))}}I>On?J>On?(B=cu(yt,zt,P,G,d,J,p),W=cu(ce,Ee,$,Z,d,J,p),a.moveTo(B.cx+B.x01,B.cy+B.y01),J<ee?a.arc(B.cx,B.cy,J,gn(B.y01,B.x01),gn(W.y01,W.x01),!p):(a.arc(B.cx,B.cy,J,gn(B.y01,B.x01),gn(B.y11,B.x11),!p),a.arc(0,0,d,gn(B.cy+B.y11,B.cx+B.x11),gn(W.cy+W.y11,W.cx+W.x11),!p),a.arc(W.cx,W.cy,J,gn(W.y11,W.x11),gn(W.y01,W.x01),!p))):(a.moveTo(P,G),a.arc(0,0,d,C,b,!p)):a.moveTo(P,G),h>On&&N>On?oe>On?(B=cu($,Z,ce,Ee,h,-oe,p),W=cu(P,G,yt,zt,h,-oe,p),a.lineTo(B.cx+B.x01,B.cy+B.y01),oe<ee?a.arc(B.cx,B.cy,oe,gn(B.y01,B.x01),gn(W.y01,W.x01),!p):(a.arc(B.cx,B.cy,oe,gn(B.y01,B.x01),gn(B.y11,B.x11),!p),a.arc(0,0,h,gn(B.cy+B.y11,B.cx+B.x11),gn(W.cy+W.y11,W.cx+W.x11),p),a.arc(W.cx,W.cy,oe,gn(W.y11,W.x11),gn(W.y01,W.x01),!p))):a.arc(0,0,h,M,D,p):a.lineTo($,Z)}else a.moveTo(0,0);if(a.closePath(),c)return a=null,c+""||null}return l.centroid=function(){var c=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,u=(+s.apply(this,arguments)+ +r.apply(this,arguments))/2-Ba/2;return[_r(u)*c,ts(u)*c]},l.innerRadius=function(c){return arguments.length?(t="function"==typeof c?c:Xe(+c),l):t},l.outerRadius=function(c){return arguments.length?(n="function"==typeof c?c:Xe(+c),l):n},l.cornerRadius=function(c){return arguments.length?(e="function"==typeof c?c:Xe(+c),l):e},l.padRadius=function(c){return arguments.length?(i=null==c?null:"function"==typeof c?c:Xe(+c),l):i},l.startAngle=function(c){return arguments.length?(s="function"==typeof c?c:Xe(+c),l):s},l.endAngle=function(c){return arguments.length?(r="function"==typeof c?c:Xe(+c),l):r},l.padAngle=function(c){return arguments.length?(o="function"==typeof c?c:Xe(+c),l):o},l.context=function(c){return arguments.length?(a=null==c?null:c,l):a},l}function X$(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function q$(t){return t}function J$(t,n,e,i,s){for(var o,r=t.children,a=-1,l=r.length,c=t.value&&(i-n)/t.value;++a<l;)(o=r[a]).y0=e,o.y1=s,o.x0=n,o.x1=n+=o.value*c}function e5(t,n,e,i,s){for(var o,r=t.children,a=-1,l=r.length,c=t.value&&(s-e)/t.value;++a<l;)(o=r[a]).x0=n,o.x1=i,o.y0=e,o.y1=e+=o.value*c}function r5(t){var n=0,e=t.children,i=e&&e.length;if(i)for(;--i>=0;)n+=e[i].value;else n=1;t.value=n}function rw(t,n){var s,o,a,l,c,e=new $a(t),i=+t.value&&(e.value=t.value),r=[e];for(null==n&&(n=v5);s=r.pop();)if(i&&(s.value=+s.data.value),(a=n(s.data))&&(c=a.length))for(s.children=new Array(c),l=c-1;l>=0;--l)r.push(o=s.children[l]=new $a(a[l])),o.parent=s,o.depth=s.depth+1;return e.eachBefore(ow)}function v5(t){return t.children}function x5(t){t.data=t.data.data}function ow(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function $a(t){this.data=t,this.depth=this.height=0,this.parent=null}!function t(n){function e(i,s,r,o,a){!function n5(t,n,e,i,s,r){for(var l,c,f,g,p,C,b,D,M,N,I,o=[],a=n.children,u=0,h=0,d=a.length,v=n.value;u<d;){f=s-e,g=r-i;do{p=a[h++].value}while(!p&&h<d);for(C=b=p,I=p*p*(N=Math.max(g/f,f/g)/(v*t)),M=Math.max(b/I,I/C);h<d;++h){if(p+=c=a[h].value,c<C&&(C=c),c>b&&(b=c),I=p*p*N,(D=Math.max(b/I,I/C))>M){p-=c;break}M=D}o.push(l={value:p,dice:f<g,children:a.slice(u,h)}),l.dice?J$(l,e,i,s,v?i+=g*p/v:r):e5(l,e,i,v?e+=f*p/v:s,r),v-=p,u=h}}(n,i,s,r,o,a)}return e.ratio=function(i){return t((i=+i)>1?i:1)},e}((1+Math.sqrt(5))/2),$a.prototype=rw.prototype={constructor:$a,count:function o5(){return this.eachAfter(r5)},each:function a5(t){var e,s,r,o,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),s=n.children)for(r=0,o=s.length;r<o;++r)i.push(s[r])}while(i.length);return this},eachAfter:function c5(t){for(var s,r,o,n=this,e=[n],i=[];n=e.pop();)if(i.push(n),s=n.children)for(r=0,o=s.length;r<o;++r)e.push(s[r]);for(;n=i.pop();)t(n);return this},eachBefore:function l5(t){for(var i,s,n=this,e=[n];n=e.pop();)if(t(n),i=n.children)for(s=i.length-1;s>=0;--s)e.push(i[s]);return this},sum:function u5(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,s=i&&i.length;--s>=0;)e+=i[s].value;n.value=e})},sort:function h5(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function d5(t){for(var n=this,e=function f5(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),s=null;for(t=e.pop(),n=i.pop();t===n;)s=t,t=e.pop(),n=i.pop();return s}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var s=i.length;t!==e;)i.splice(s,0,t),t=t.parent;return i},ancestors:function g5(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function p5(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function m5(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function _5(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function y5(){return rw(this).eachBefore(x5)}};const D5=["caretElm"];function S5(t,n){}const A5=function(t){return{model:t}};function E5(t,n){if(1&t&&(x(0,"span"),S(1,S5,0,0,"ng-template",5),T()),2&t){const e=y();_(1),m("ngTemplateOutlet",e.template)("ngTemplateOutletContext",jl(2,A5,e.context))}}function k5(t,n){1&t&&V(0,"span",6),2&t&&m("innerHTML",y().title,wl)}function M5(t,n){if(1&t&&(w(),Ws(),V(0,"ngx-charts-scale-legend",4)),2&t){const e=y();m("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("valueRange",e.legendOptions.domain)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)}}function L5(t,n){if(1&t){const e=j();w(),Ws(),x(0,"ngx-charts-legend",5),E("labelClick",function(s){return A(e),y().legendLabelClick.emit(s)})("labelActivate",function(s){return A(e),y().legendLabelActivate.emit(s)})("labelDeactivate",function(s){return A(e),y().legendLabelDeactivate.emit(s)}),T()}if(2&t){const e=y();m("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("data",e.legendOptions.domain)("title",e.legendOptions.title)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)("activeEntries",e.activeEntries)}}const cw=["*"],F5=["ngx-charts-axis-label",""],uw=["ticksel"],I5=["ngx-charts-x-axis-ticks",""];function P5(t,n){if(1&t&&(w(),x(0,"g",3)(1,"title"),Be(2),T(),x(3,"text",4),Be(4),T()()),2&t){const e=n.$implicit,i=y();L("transform",i.tickTransform(e)),_(2),Kn(i.tickFormat(e)),_(1),ke("font-size","12px"),L("text-anchor",i.textAnchor)("transform",i.textTransform),_(1),gt(" ",i.tickTrim(i.tickFormat(e))," ")}}function N5(t,n){if(1&t&&(w(),x(0,"g"),V(1,"line",6),T()),2&t){const e=y(2);L("transform",e.gridLineTransform()),_(1),L("y1",-e.gridLineHeight)}}function O5(t,n){if(1&t&&(w(),x(0,"g"),S(1,N5,2,2,"g",5),T()),2&t){const e=n.$implicit,i=y();L("transform",i.tickTransform(e)),_(1),m("ngIf",i.showGridLines)}}const R5=["ngx-charts-x-axis",""];function B5(t,n){if(1&t){const e=j();w(),x(0,"g",2),E("dimensionsChanged",function(s){return A(e),y().emitTicksHeight(s)}),T()}if(2&t){const e=y();m("trimTicks",e.trimTicks)("rotateTicks",e.rotateTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickStroke",e.tickStroke)("scale",e.xScale)("orient",e.xOrient)("showGridLines",e.showGridLines)("gridLineHeight",e.dims.height)("width",e.dims.width)("tickValues",e.ticks)}}function H5(t,n){if(1&t&&(w(),V(0,"g",3)),2&t){const e=y();m("label",e.labelText)("offset",e.labelOffset)("orient","bottom")("height",e.dims.height)("width",e.dims.width)}}const V5=["ngx-charts-y-axis-ticks",""];function $5(t,n){if(1&t&&(w(),x(0,"g",4)(1,"title"),Be(2),T(),x(3,"text",5),Be(4),T()()),2&t){const e=n.$implicit,i=y();L("transform",i.transform(e)),_(2),Kn(i.tickFormat(e)),_(1),ke("font-size","12px"),L("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),_(1),gt(" ",i.tickTrim(i.tickFormat(e))," ")}}function z5(t,n){if(1&t&&(w(),V(0,"path",6)),2&t){const e=y();L("d",e.referenceAreaPath)("transform",e.gridLineTransform())}}function j5(t,n){1&t&&(w(),V(0,"line",9)),2&t&&L("x2",y(3).gridLineWidth)}function G5(t,n){1&t&&(w(),V(0,"line",9)),2&t&&L("x2",-y(3).gridLineWidth)}function W5(t,n){if(1&t&&(w(),x(0,"g"),S(1,j5,1,1,"line",8),S(2,G5,1,1,"line",8),T()),2&t){const e=y(2);L("transform",e.gridLineTransform()),_(1),m("ngIf","left"===e.orient),_(1),m("ngIf","right"===e.orient)}}function U5(t,n){if(1&t&&(w(),x(0,"g"),S(1,W5,3,3,"g",7),T()),2&t){const e=n.$implicit,i=y();L("transform",i.transform(e)),_(1),m("ngIf",i.showGridLines)}}function Y5(t,n){if(1&t&&(w(),x(0,"g")(1,"title"),Be(2),T(),x(3,"text",11),Be(4),T()()),2&t){const e=y(2).$implicit,i=y();_(2),Kn(i.tickTrim(i.tickFormat(e.value))),_(1),L("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),_(1),gt(" ",e.name," ")}}function X5(t,n){if(1&t&&(w(),x(0,"g"),V(1,"line",10),S(2,Y5,5,6,"g",7),T()),2&t){const e=y().$implicit,i=y();L("transform",i.transform(e.value)),_(1),L("x2",i.gridLineWidth)("transform",i.gridLineTransform()),_(1),m("ngIf",i.showRefLabels)}}function q5(t,n){if(1&t&&(w(),x(0,"g"),S(1,X5,3,4,"g",7),T()),2&t){const e=y();_(1),m("ngIf",e.showRefLines)}}const Q5=["ngx-charts-y-axis",""];function Z5(t,n){if(1&t){const e=j();w(),x(0,"g",2),E("dimensionsChanged",function(s){return A(e),y().emitTicksWidth(s)}),T()}if(2&t){const e=y();m("trimTicks",e.trimTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickValues",e.ticks)("tickStroke",e.tickStroke)("scale",e.yScale)("orient",e.yOrient)("showGridLines",e.showGridLines)("gridLineWidth",e.dims.width)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("height",e.dims.height)}}function K5(t,n){if(1&t&&(w(),V(0,"g",3)),2&t){const e=y();m("label",e.labelText)("offset",e.labelOffset)("orient",e.yOrient)("height",e.dims.height)("width",e.dims.width)}}const J5=["ngx-charts-circle-series",""];function e4(t,n){if(1&t&&(w(),V(0,"rect",4)),2&t){const e=y(2);m("@animationState","active"),L("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}const t4=function(t){return{name:t}};function n4(t,n){if(1&t){const e=j();w(),x(0,"g")(1,"defs"),V(2,"g",1),T(),S(3,e4,1,6,"rect",2),x(4,"g",3),E("select",function(){A(e);const s=y();return s.onClick(s.circle.data)})("activate",function(){return A(e),y().activateCircle()})("deactivate",function(){return A(e),y().deactivateCircle()}),T()()}if(2&t){const e=y();_(2),m("name",e.gradientId)("stops",e.circle.gradientStops),_(1),m("ngIf",e.barVisible&&"standard"===e.type),_(1),qt("active",e.isActive(jl(18,t4,e.circle.seriesName))),m("cx",e.circle.cx)("cy",e.circle.cy)("r",e.circle.radius)("fill",e.circle.color)("pointerEvents",0===e.circle.value?"none":"all")("data",e.circle.value)("classNames",e.circle.classNames)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",e.tooltipTemplate?void 0:e.getTooltipText(e.circle))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.circle.data)}}const i4=["ngx-charts-circle",""],a4=["ngx-charts-svg-linear-gradient",""];function l4(t,n){if(1&t&&(w(),V(0,"stop")),2&t){const e=n.$implicit;ke("stop-color",e.color)("stop-opacity",e.opacity),L("offset",e.offset+"%")}}const c4=["ngx-charts-svg-radial-gradient",""];function u4(t,n){if(1&t&&(w(),V(0,"stop")),2&t){const e=n.$implicit;ke("stop-color",e.color)("stop-opacity",e.opacity),L("offset",e.offset+"%")}}const h4=["ngx-charts-area",""];function d4(t,n){if(1&t&&(w(),x(0,"defs"),V(1,"g",2),T()),2&t){const e=y();_(1),m("name",e.gradientId)("stops",e.gradientStops)}}const g4=["tooltipAnchor"],p4=["ngx-charts-tooltip-area",""];function m4(t,n){if(1&t&&(x(0,"div",6),V(1,"span",7),Be(2),T()),2&t){const e=n.$implicit,i=y(2);_(1),ke("background-color",e.color),_(1),gt(" ",i.getToolTipText(e)," ")}}function _4(t,n){if(1&t&&(w(),Ws(),x(0,"div",4),S(1,m4,3,3,"div",5),T()),2&t){const e=n.model;_(1),m("ngForOf",e)}}const y4=["ngx-charts-timeline",""];function v4(t,n){if(1&t&&(x(0,"header",4)(1,"span",5),Be(2),T()()),2&t){const e=y();_(2),Kn(e.title)}}function x4(t,n){if(1&t){const e=j();x(0,"li",6)(1,"ngx-charts-legend-entry",7),E("select",function(s){return A(e),y().labelClick.emit(s)})("activate",function(s){return A(e),y().activate(s)})("deactivate",function(s){return A(e),y().deactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=y();_(1),m("label",e.label)("formattedLabel",e.formattedLabel)("color",e.color)("isActive",i.isActive(e))}}const Nt=["tooltipTemplate"],hu=["seriesTooltipTemplate"],st=function(t,n){return[t,n]};function N4(t,n){if(1&t){const e=j();w(),x(0,"g",7),E("dimensionsChanged",function(s){return A(e),y().updateXAxisHeight(s)}),T()}if(2&t){const e=y();m("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function O4(t,n){if(1&t){const e=j();w(),x(0,"g",8),E("dimensionsChanged",function(s){return A(e),y().updateYAxisWidth(s)}),T()}if(2&t){const e=y();m("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)}}function R4(t,n){if(1&t&&(w(),x(0,"g"),V(1,"g",9),T()),2&t){const e=n.$implicit,i=y();_(1),m("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("activeEntries",i.activeEntries)("gradient",i.gradient)("curve",i.curve)("animations",i.animations)}}function B4(t,n){if(1&t){const e=j();w(),x(0,"g")(1,"g",13),E("select",function(s){const o=A(e).$implicit;return y(2).onClick(s,o)})("activate",function(s){return A(e),y(2).onActivate(s)})("deactivate",function(s){return A(e),y(2).onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=y(2);_(1),m("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("activeEntries",i.activeEntries)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function H4(t,n){if(1&t){const e=j();w(),x(0,"g",10),E("mouseleave",function(){return A(e),y().hideCircles()}),x(1,"g",11),E("hover",function(s){return A(e),y().updateHoveredVertical(s)}),T(),S(2,B4,2,9,"g",12),T()}if(2&t){const e=y();_(1),m("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("showPercentage",!0)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),_(1),m("ngForOf",e.results)}}function V4(t,n){if(1&t&&(w(),x(0,"g"),V(1,"g",15),T()),2&t){const e=n.$implicit,i=y(2);_(1),m("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("gradient",i.gradient)("curve",i.curve)("animations",i.animations)}}function $4(t,n){if(1&t){const e=j();w(),x(0,"g",14),E("onDomainChange",function(s){return A(e),y().updateDomain(s)}),S(1,V4,2,8,"g",4),T()}if(2&t){const e=y();m("results",e.results)("view",Ke(10,st,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("legend",e.legend)("scaleType",e.scaleType),L("transform",e.timelineTransform),_(1),m("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const kt=".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}";function z4(t,n){if(1&t){const e=j();w(),x(0,"g",7),E("dimensionsChanged",function(s){return A(e),y().updateXAxisHeight(s)}),T()}if(2&t){const e=y();m("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function j4(t,n){if(1&t){const e=j();w(),x(0,"g",8),E("dimensionsChanged",function(s){return A(e),y().updateYAxisWidth(s)}),T()}if(2&t){const e=y();m("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)}}function G4(t,n){if(1&t&&(w(),x(0,"g"),V(1,"g",9),T()),2&t){const e=n.$implicit,i=y();_(1),m("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("gradient",i.gradient)("activeEntries",i.activeEntries)("curve",i.curve)("animations",i.animations)}}function W4(t,n){if(1&t){const e=j();w(),x(0,"g")(1,"g",12),E("select",function(s){const o=A(e).$implicit;return y(2).onClick(s,o)})("activate",function(s){return A(e),y(2).onActivate(s)})("deactivate",function(s){return A(e),y(2).onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=y(2);_(1),m("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("activeEntries",i.activeEntries)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function U4(t,n){if(1&t){const e=j();w(),x(0,"g",10),E("mouseleave",function(){return A(e),y().hideCircles()}),x(1,"g",11),E("hover",function(s){return A(e),y().updateHoveredVertical(s)}),T(),S(2,W4,2,9,"g",4),T()}if(2&t){const e=y();_(1),m("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),_(1),m("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}function Y4(t,n){if(1&t&&(w(),x(0,"g"),V(1,"g",14),T()),2&t){const e=n.$implicit,i=y(2);_(1),m("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("gradient",i.gradient)("curve",i.curve)("animations",i.animations)}}function X4(t,n){if(1&t){const e=j();w(),x(0,"g",13),E("onDomainChange",function(s){return A(e),y().updateDomain(s)}),S(1,Y4,2,8,"g",4),T()}if(2&t){const e=y();m("results",e.results)("view",Ke(10,st,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("legend",e.legend)("scaleType",e.scaleType),L("transform",e.timelineTransform),_(1),m("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const q4=["ngx-charts-area-series",""],Q4=["ngx-charts-bar",""];function Z4(t,n){if(1&t&&(w(),x(0,"defs"),V(1,"g",2),T()),2&t){const e=y();_(1),m("orientation",e.orientation)("name",e.gradientId)("stops",e.gradientStops)}}function cz(t,n){if(1&t){const e=j();w(),x(0,"g",5),E("dimensionsChanged",function(s){return A(e),y().updateXAxisHeight(s)}),T()}if(2&t){const e=y();m("xScale",e.xScale)("dims",e.dims)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)("xAxisOffset",e.dataLabelMaxHeight.negative)}}function uz(t,n){if(1&t){const e=j();w(),x(0,"g",6),E("dimensionsChanged",function(s){return A(e),y().updateYAxisWidth(s)}),T()}if(2&t){const e=y();m("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)}}const xz=["ngx-charts-series-vertical",""];function bz(t,n){if(1&t){const e=j();w(),x(0,"g",2),E("select",function(s){return A(e),y().onClick(s)})("activate",function(s){return A(e),y().activate.emit(s)})("deactivate",function(s){return A(e),y().deactivate.emit(s)}),T()}if(2&t){const e=n.$implicit,i=y();m("@animationState","active")("@.disabled",!i.animations)("width",e.width)("height",e.height)("x",e.x)("y",e.y)("fill",e.color)("stops",e.gradientStops)("data",e.data)("orientation","vertical")("roundEdges",e.roundEdges)("gradient",i.gradient)("ariaLabel",e.ariaLabel)("isActive",i.isActive(e.data))("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.tooltipPlacement)("tooltipType",i.tooltipType)("tooltipTitle",i.tooltipTemplate?void 0:e.tooltipText)("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)("noBarWhenZero",i.noBarWhenZero)("animations",i.animations)}}function Tz(t,n){if(1&t){const e=j();w(),x(0,"g",4),E("dimensionsChanged",function(s){const o=A(e).index;return y(2).dataLabelHeightChanged.emit({size:s,index:o})}),T()}if(2&t){const e=n.$implicit,i=y(2);m("barX",e.x)("barY",e.y)("barWidth",e.width)("barHeight",e.height)("value",e.total)("valueFormatting",i.dataLabelFormatting)("orientation","vertical")}}function Cz(t,n){if(1&t&&(w(),x(0,"g"),S(1,Tz,1,7,"g",3),T()),2&t){const e=y();_(1),m("ngForOf",e.barsForDataLabels)("ngForTrackBy",e.trackDataLabelBy)}}const Ez=["ngx-charts-bar-label",""],zz=["ngx-charts-line",""];function jz(t,n){if(1&t){const e=j();w(),x(0,"g",7),E("dimensionsChanged",function(s){return A(e),y().updateXAxisHeight(s)}),T()}if(2&t){const e=y();m("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function Gz(t,n){if(1&t){const e=j();w(),x(0,"g",8),E("dimensionsChanged",function(s){return A(e),y().updateYAxisWidth(s)}),T()}if(2&t){const e=y();m("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)}}function Wz(t,n){if(1&t&&(w(),x(0,"g"),V(1,"g",9),T()),2&t){const e=n.$implicit,i=y();m("@animationState","active"),_(1),m("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function Uz(t,n){if(1&t){const e=j();w(),x(0,"g")(1,"g",13),E("select",function(s){return A(e),y(2).onClick(s)})("activate",function(s){return A(e),y(2).onActivate(s)})("deactivate",function(s){return A(e),y(2).onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=y(2);_(1),m("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function Yz(t,n){if(1&t){const e=j();w(),x(0,"g",10),E("mouseleave",function(){return A(e),y().hideCircles()}),x(1,"g",11),E("hover",function(s){return A(e),y().updateHoveredVertical(s)}),T(),S(2,Uz,2,9,"g",12),T()}if(2&t){const e=y();_(1),m("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),_(1),m("ngForOf",e.results)}}function Xz(t,n){if(1&t&&(w(),x(0,"g"),V(1,"g",15),T()),2&t){const e=n.$implicit,i=y(2);_(1),m("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function qz(t,n){if(1&t){const e=j();w(),x(0,"g",14),E("onDomainChange",function(s){return A(e),y().updateDomain(s)}),S(1,Xz,2,8,"g",4),T()}if(2&t){const e=y();m("results",e.results)("view",Ke(10,st,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("scaleType",e.scaleType)("legend",e.legend),L("transform",e.timelineTransform),_(1),m("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const Qz=["ngx-charts-line-series",""];function Zz(t,n){if(1&t&&(w(),V(0,"g",4)),2&t){const e=y();m("name",e.gradientId)("stops",e.gradientStops)}}function Kz(t,n){if(1&t&&(w(),V(0,"g",5)),2&t){const e=y();qt("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),m("data",e.data)("path",e.outerPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",e.rangeFillOpacity)("animations",e.animations)}}const cj=["ngx-charts-pie-label",""],uj=["ngx-charts-pie-arc",""];function hj(t,n){if(1&t&&(w(),x(0,"defs"),V(1,"g",3),T()),2&t){const e=y();_(1),m("color",e.fill)("name",e.radialGradientId)("startOpacity",e.startOpacity)}}const xj=["ngx-charts-pie-series",""];function bj(t,n){if(1&t&&(w(),V(0,"g",3)),2&t){const e=y().$implicit,i=y();m("data",e)("radius",i.outerRadius)("color",i.color(e))("label",i.labelText(e))("labelTrim",i.trimLabels)("labelTrimSize",i.maxLabelLength)("max",i.max)("value",e.value)("explodeSlices",i.explodeSlices)("animations",i.animations)}}function Tj(t,n){if(1&t){const e=j();w(),x(0,"g"),S(1,bj,1,10,"g",1),x(2,"g",2),E("select",function(s){return A(e),y().onClick(s)})("activate",function(s){return A(e),y().activate.emit(s)})("deactivate",function(s){return A(e),y().deactivate.emit(s)})("dblclick",function(s){return A(e),y().dblclick.emit(s)}),T()()}if(2&t){const e=n.$implicit,i=y();_(1),m("ngIf",i.labelVisible(e)),_(1),m("startAngle",e.startAngle)("endAngle",e.endAngle)("innerRadius",i.innerRadius)("outerRadius",i.outerRadius)("fill",i.color(e))("value",e.data.value)("gradient",i.gradient)("data",e.data)("max",i.max)("explodeSlices",i.explodeSlices)("isActive",i.isActive(e.data))("animate",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",i.getTooltipTitle(e))("tooltipTemplate",i.tooltipTemplate)("tooltipContext",e.data)}}const dw=["textEl"],Cj=["ngx-charts-card",""];function wj(t,n){if(1&t&&(w(),V(0,"path",7)),2&t){const e=y();L("fill",e.bandColor)("transform",e.transformBand)("d",e.bandPath)}}const Dj=["ngx-charts-card-series",""];function Sj(t,n){if(1&t&&(w(),V(0,"rect",2)),2&t){const e=n.$implicit;ke("fill",y().emptyColor),L("x",e.x)("y",e.y)("width",e.width)("height",e.height)}}function Aj(t,n){if(1&t){const e=j();w(),x(0,"g",3),E("select",function(s){return A(e),y().onClick(s)}),T()}if(2&t){const e=n.$implicit,i=y();m("x",e.x)("y",e.y)("width",e.width)("height",e.height)("color",e.color)("bandColor",e.bandColor)("textColor",e.textColor)("data",e.data)("label",e.label)("medianSize",i.medianSize)("valueFormatting",i.valueFormatting)("labelFormatting",i.labelFormatting)("animations",i.animations)}}function Hj(t,n){if(1&t){const e=j();w(),x(0,"g")(1,"g",5),E("select",function(s){return A(e),y().onClick(s)})("activate",function(s){return A(e),y().onActivate(s)})("deactivate",function(s){return A(e),y().onDeactivate(s)}),T()()}if(2&t){const e=n.$implicit,i=y();L("transform",i.rotation),_(1),m("backgroundArc",e.backgroundArc)("valueArc",e.valueArc)("cornerRadius",i.cornerRadius)("colors",i.colors)("isActive",i.isActive(e.valueArc.data))("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("valueFormatting",i.valueFormatting)("animations",i.animations)}}function Vj(t,n){if(1&t&&(w(),V(0,"g",6)),2&t){const e=y();m("bigSegments",e.bigSegments)("smallSegments",e.smallSegments)("min",e.min)("max",e.max)("radius",e.outerRadius)("angleSpan",e.angleSpan)("valueScale",e.valueScale)("startAngle",e.startAngle)("tickFormatting",e.axisTickFormatting)}}function $j(t,n){if(1&t&&(w(),x(0,"text",7,8)(2,"tspan",9),Be(3),T(),x(4,"tspan",10),Be(5),T()()),2&t){const e=y();ke("text-anchor","middle"),L("transform",e.textTransform),_(3),Kn(e.displayValue),_(2),Kn(e.units)}}const zj=["ngx-charts-gauge-arc",""],jj=["ngx-charts-gauge-axis",""];function Gj(t,n){if(1&t&&(w(),x(0,"g",2),V(1,"path"),T()),2&t){const e=n.$implicit;_(1),L("d",e.line)}}function Wj(t,n){if(1&t&&(w(),x(0,"g",2)(1,"text",3),Be(2),T()()),2&t){const e=n.$implicit;_(1),ke("text-anchor",e.textAnchor),L("transform",e.textTransform),_(1),gt(" ",e.text," ")}}function Uj(t,n){if(1&t&&(w(),x(0,"g",4),V(1,"path"),T()),2&t){const e=n.$implicit;_(1),L("d",e.line)}}let gw=(()=>{class t{constructor(e,i,s){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=s}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function Yj(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const s=Object.getOwnPropertyNames(i.inputs);for(const r of s)e.instance[r]=i.inputs[r]}if(void 0!==i.outputs){const s=Object.getOwnPropertyNames(i.outputs);for(const r of s)e.instance[r]=i.outputs[r]}}return e}appendComponent(e,i={},s){s||(s=this.getRootViewContainer());const r=this.getComponentRootNode(s),o=new PO(r,this.componentFactoryResolver,this.applicationRef,this.injector),a=new Pb(e),l=o.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(pe(Xl),pe(Zs),pe(Dn))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function Xj(t,n,e){e=e||{};let i,s,r,o=null,a=0;function l(){a=!1===e.leading?0:+new Date,o=null,r=t.apply(i,s)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const u=n-(c-a);return i=this,s=arguments,u<=0?(clearTimeout(o),o=null,a=c,r=t.apply(i,s)):!o&&!1!==e.trailing&&(o=setTimeout(l,u)),r}}function qj(t,n){return function(i,s,r){return{configurable:!0,enumerable:r.enumerable,get:function(){return Object.defineProperty(this,s,{configurable:!0,enumerable:r.enumerable,value:Xj(r.value,t,n)}),this[s]}}}}var Ot=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(Ot||(Ot={})),Ot))();function pw(t,n,e){return"top"===e?t.top-7:"bottom"===e?t.top+t.height-n.height+7:"center"===e?t.top+t.height/2-n.height/2:void 0}function mw(t,n,e){return"left"===e?t.left-7:"right"===e?t.left+t.width-n.width+7:"center"===e?t.left+t.width/2-n.width/2:void 0}class ii{static calculateVerticalAlignment(n,e,i){let s=pw(n,e,i);return s+e.height>window.innerHeight&&(s=window.innerHeight-e.height),s}static calculateVerticalCaret(n,e,i,s){let r;"top"===s&&(r=n.height/2-i.height/2+7),"bottom"===s&&(r=e.height-n.height/2-i.height/2-7),"center"===s&&(r=e.height/2-i.height/2);const o=pw(n,e,s);return o+e.height>window.innerHeight&&(r+=o+e.height-window.innerHeight),r}static calculateHorizontalAlignment(n,e,i){let s=mw(n,e,i);return s+e.width>window.innerWidth&&(s=window.innerWidth-e.width),s}static calculateHorizontalCaret(n,e,i,s){let r;"left"===s&&(r=n.width/2-i.width/2+7),"right"===s&&(r=e.width-n.width/2-i.width/2-7),"center"===s&&(r=e.width/2-i.width/2);const o=mw(n,e,s);return o+e.width>window.innerWidth&&(r+=o+e.width-window.innerWidth),r}static shouldFlip(n,e,i,s){let r=!1;return"right"===i&&n.left+n.width+e.width+s>window.innerWidth&&(r=!0),"left"===i&&n.left-e.width-s<0&&(r=!0),"top"===i&&n.top-e.height-s<0&&(r=!0),"bottom"===i&&n.top+n.height+e.height+s>window.innerHeight&&(r=!0),r}static positionCaret(n,e,i,s,r){let o=0,a=0;return n===Ot.right?(a=-7,o=ii.calculateVerticalCaret(i,e,s,r)):n===Ot.left?(a=e.width,o=ii.calculateVerticalCaret(i,e,s,r)):n===Ot.top?(o=e.height,a=ii.calculateHorizontalCaret(i,e,s,r)):n===Ot.bottom&&(o=-7,a=ii.calculateHorizontalCaret(i,e,s,r)),{top:o,left:a}}static positionContent(n,e,i,s,r){let o=0,a=0;return n===Ot.right?(a=i.left+i.width+s,o=ii.calculateVerticalAlignment(i,e,r)):n===Ot.left?(a=i.left-e.width-s,o=ii.calculateVerticalAlignment(i,e,r)):n===Ot.top?(o=i.top-e.height-s,a=ii.calculateHorizontalAlignment(i,e,r)):n===Ot.bottom&&(o=i.top+i.height+s,a=ii.calculateHorizontalAlignment(i,e,r)),{top:o,left:a}}static determinePlacement(n,e,i,s){if(ii.shouldFlip(i,e,n,s)){if(n===Ot.right)return Ot.left;if(n===Ot.left)return Ot.right;if(n===Ot.top)return Ot.bottom;if(n===Ot.bottom)return Ot.top}return n}}let Qj=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const s=e.getBoundingClientRect();this.checkFlip(i,s),this.positionContent(e,i,s),this.showCaret&&this.positionCaret(i,s),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,s){const{top:r,left:o}=ii.positionContent(this.placement,s,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${r}px`),this.renderer.setStyle(e,"left",`${o}px`)}positionCaret(e,i){const s=this.caretElm.nativeElement,r=s.getBoundingClientRect(),{top:o,left:a}=ii.positionCaret(this.placement,i,e,r,this.alignment);this.renderer.setStyle(s,"top",`${o}px`),this.renderer.setStyle(s,"left",`${a}px`)}checkFlip(e,i){this.placement=ii.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(Q(ct),Q(Vl))},t.\u0275cmp=q({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&gi(D5,5),2&e){let s;Me(s=Le())&&(i.caretElm=s.first)}},hostVars:2,hostBindings:function(e,i){1&e&&E("resize",function(){return i.onWindowResize()},!1,l_),2&e&&function Ky(t){Li(Xn,Zi,t,!0)}(i.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(x(0,"div"),V(1,"span",0,1),x(3,"div",2),S(4,E5,2,4,"span",3),S(5,k5,1,1,"span",4),T()()),2&e&&(_(1),function dv(t,n,e){Li(Xn,Zi,Gr(F(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),m("hidden",!i.showCaret),_(3),m("ngIf",!i.title),_(1),m("ngIf",i.title))},directives:[Ce,D0],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function Nb(t,n,e,i){var o,s=arguments.length,r=s<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(s<3?o(r):s>3?o(n,e,r):o(n,e))||r);return s>3&&r&&Object.defineProperty(n,e,r),r}([qj(100)],t.prototype,"onWindowResize",null),t})(),du=(()=>{class t extends class Zj{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}{constructor(e){super(e),this.type=Qj}}return t.\u0275fac=function(e){return new(e||t)(pe(gw))},t.\u0275prov=ze({token:t,factory:t.\u0275fac}),t})(),mt=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new k,this.legendLabelActivate=new k,this.legendLabelDeactivate=new k}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||"right"===this.legendOptions.position)&&(e="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[Zv([du]),_e],ngContentSelectors:cw,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,i){1&e&&(gd(),x(0,"div",0),w(),x(1,"svg",1),pd(2),T(),S(3,M5,1,5,"ngx-charts-scale-legend",2),S(4,L5,1,7,"ngx-charts-legend",3),T()),2&e&&(ke("width",i.view[0],"px"),m("@animationState","active")("@.disabled",!i.animations),_(1),L("width",i.chartWidth)("height",i.view[1]),_(2),m("ngIf",i.showLegend&&"scaleLegend"===i.legendType),_(1),m("ngIf",i.showLegend&&"legend"===i.legendType))},directives:function(){return[Ce,Mw,Ew]},encapsulation:2,data:{animation:[fn("animationState",[sn(":enter",[Fe({opacity:0}),nn("500ms 100ms",Fe({opacity:1}))])])]},changeDetection:0}),t})(),Kj=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new k,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:s}=this.element.nativeElement;i&&s?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(Q(ct),Q(Ft))},t.\u0275dir=xn({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),_t=(()=>{class t{constructor(e,i,s){this.chartElement=e,this.zone=i,this.cd=s,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new k}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Kj(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(e){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const s=this.chartElement.nativeElement;if(null!==s.parentNode){const r=s.parentNode.getBoundingClientRect();e=r.width,i=r.height}return e&&i?{width:e,height:i}:null}formatDates(){for(let e=0;e<this.results.length;e++){const i=this.results[e];if(i.label=i.name,i.label instanceof Date&&(i.label=i.label.toLocaleDateString()),i.series)for(let s=0;s<i.series.length;s++){const r=i.series[s];r.label=r.name,r.label instanceof Date&&(r.label=r.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=Rb(window,"resize").pipe(function lR(t,n=aR){return e=>e.lift(new cR(t,n))}(200)).subscribe(s=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(e){const i=[];for(const s of e){const r={name:s.name};if(void 0!==s.value&&(r.value=s.value),void 0!==s.series){r.series=[];for(const o of s.series){const a=Object.assign({},o);r.series.push(a)}}void 0!==s.extra&&(r.extra=JSON.parse(JSON.stringify(s.extra))),i.push(r)}return i}}return t.\u0275fac=function(e){return new(e||t)(Q(ct),Q(Ft),Q(Js))},t.\u0275cmp=q({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[_e],decls:1,vars:0,template:function(e,i){1&e&&V(0,"div")},encapsulation:2}),t})(),ep=(()=>{class t{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(Q(ct))},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[_e],attrs:F5,decls:2,vars:6,template:function(e,i){1&e&&(w(),x(0,"text"),Be(1),T()),2&e&&(L("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),_(1),gt(" ",i.label," "))},encapsulation:2,changeDetection:0}),t})();function Os(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function _w(t,n){if(t.length>n){const e=[],i=Math.floor(t.length/n);for(let s=0;s<t.length;s++)s%i==0&&e.push(t[s]);t=e}return t}let yw=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new k,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(s){return"Date"===s.constructor.name?s.toLocaleDateString():s.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(s){return this.scale(s)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(e){let i=0;this.maxTicksLength=0;for(let c=0;c<e.length;c++){const u=this.tickFormat(e[c]).toString();let h=u.length;this.trimTicks&&(h=this.tickTrim(u).length),h>this.maxTicksLength&&(this.maxTicksLength=h)}const o=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let a=o;const l=Math.floor(this.width/e.length);for(;a>l&&i>-90;)i-=30,a=Math.cos(i*(Math.PI/180))*o;return i}getTicks(){let e;const i=this.getMaxTicks(20),s=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[s]):(e=this.scale.domain(),e=_w(e,i)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?Os(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&gi(uw,5),2&e){let s;Me(s=Le())&&(i.ticksElement=s.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[_e],attrs:I5,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,i){1&e&&(w(),x(0,"g",null,0),S(2,P5,5,7,"g",1),T(),S(3,O5,2,2,"g",2)),2&e&&(_(2),m("ngForOf",i.ticks),_(1),m("ngForOf",i.ticks))},directives:[Oe,Ce],encapsulation:2,changeDetection:0}),t})(),Rn=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new k,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const i=e+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,i){if(1&e&&gi(yw,5),2&e){let s;Me(s=Le())&&(i.ticksComponent=s.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[_e],attrs:R5,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(w(),x(0,"g"),S(1,B5,1,12,"g",0),S(2,H5,1,5,"g",1),T()),2&e&&(L("class",i.xAxisClassName)("transform",i.transform),_(1),m("ngIf",i.xScale),_(1),m("ngIf",i.showLabel))},directives:[Ce,yw,ep],encapsulation:2,changeDetection:0}),t})();function vs(t,n,e,i,s,[r,o,a,l]){let c="";return c=`M${[t+s,n]}`,c+="h"+((e=0===(e=Math.floor(e))?1:e)-2*s),c+=o?`a${[s,s]} 0 0 1 ${[s,s]}`:`h${s}v${s}`,c+="v"+((i=0===(i=Math.floor(i))?1:i)-2*s),c+=l?`a${[s,s]} 0 0 1 ${[-s,s]}`:`v${s}h${-s}`,c+="h"+(2*s-e),c+=a?`a${[s,s]} 0 0 1 ${[-s,-s]}`:`h${-s}v${-s}`,c+="v"+(2*s-i),c+=r?`a${[s,s]} 0 0 1 ${[s,-s]}`:`v${-s}h${s}`,c+="z",c}let vw=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new k,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){let e;const i="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,e=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(s){return"Date"===s.constructor.name?s.toLocaleDateString():s.toLocaleString()},this.adjustedScale=e.bandwidth?function(s){return e(s)+.5*e.bandwidth()}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(s){return"translate("+this.adjustedScale(s)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case"left":this.transform=function(s){return"translate(0,"+this.adjustedScale(s)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case"right":this.transform=function(s){return"translate(0,"+this.adjustedScale(s)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=vs(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const i=this.getMaxTicks(20),s=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[s]):(e=this.scale.domain(),e=_w(e,i)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?Os(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&gi(uw,5),2&e){let s;Me(s=Le())&&(i.ticksElement=s.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[_e],attrs:V5,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,i){1&e&&(w(),x(0,"g",null,0),S(2,$5,5,9,"g",1),T(),S(3,z5,1,2,"path",2),S(4,U5,2,2,"g",3),S(5,q5,2,1,"g",3)),2&e&&(_(2),m("ngForOf",i.ticks),_(1),m("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),_(1),m("ngForOf",i.ticks),_(1),m("ngForOf",i.referenceLines))},directives:[Oe,Ce],encapsulation:2,changeDetection:0}),t})(),En=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new k,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,i){if(1&e&&gi(vw,5),2&e){let s;Me(s=Le())&&(i.ticksComponent=s.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[_e],attrs:Q5,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(w(),x(0,"g"),S(1,Z5,1,14,"g",0),S(2,K5,1,5,"g",1),T()),2&e&&(L("class",i.yAxisClassName)("transform",i.transform),_(1),m("ngIf",i.yScale),_(1),m("ngIf",i.showLabel))},directives:[Ce,vw,ep],encapsulation:2,changeDetection:0}),t})(),xw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[fa]]}),t})();var fu=(()=>(function(t){t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip"}(fu||(fu={})),fu))(),gu=(()=>(function(t){t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right"}(gu||(gu={})),gu))(),Rs=(()=>(function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}(Rs||(Rs={})),Rs))();let Oi=(()=>{class t{constructor(e,i,s){this.tooltipService=e,this.viewContainerRef=i,this.renderer=s,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Ot.top,this.tooltipAlignment=gu.center,this.tooltipType=fu.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Rs.all,this.tooltipImmediateExit=!1,this.show=new k,this.hide=new k}get listensForFocus(){return this.tooltipShowEvent===Rs.all||this.tooltipShowEvent===Rs.focus}get listensForHover(){return this.tooltipShowEvent===Rs.all||this.tooltipShowEvent===Rs.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const s=this.createBoundOptions();this.component=this.tooltipService.create(s),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(Q(du),Q(fi),Q(Vl))},t.\u0275dir=xn({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&E("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(r){return i.onMouseLeave(r.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),bw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({providers:[gw,du],imports:[[fa]]}),t})();function on(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function $t(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&amp;","'":"&#x27;","`":"&#x60;",'"':"&quot;","<":"&lt;",">":"&gt;"}[n]))}const Tw={};function kn(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,Tw[t]?kn():(Tw[t]=!0,t)}let sp,za=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.select=new k,this.activate=new k,this.deactivate=new k,this.barVisible=!1}ngOnInit(){this.gradientId="grad"+kn().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(e){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(i=>{const s=i.name;return s&&this.visibleValue&&s.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,i){const s=this.data.name,r=e.value,o=e.name,a=on(o);let l;l=this.xScale("time"===this.scaleType?o:"linear"===this.scaleType?Number(o):o);const c=this.yScale("standard"===this.type?r:e.d1),h=this.yScale.range()[0]-c;let f;return f=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?r:e.d1:s),{classNames:[`circle-data-${i}`],value:r,label:o,data:Object.assign({},e,{series:s,value:r,name:o}),cx:l,cy:c,radius:5,height:h,tooltipLabel:a,color:f,opacity:1,seriesName:s,gradientStops:this.getGradientStops(f),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:i,seriesName:s,min:r,max:o}){return`\n <span class="tooltip-label">${$t(s)} \u2022 ${$t(e)}</span>\n <span class="tooltip-val">${i.toLocaleString()}${this.getTooltipMinMaxText(r,o)}</span>\n `}getTooltipMinMaxText(e,i){if(void 0!==e||void 0!==i){let s=" (";return void 0!==e?(void 0===i&&(s+="\u2265"),s+=e.toLocaleString(),void 0!==i&&(s+=" - ")):void 0!==i&&(s+="\u2264"),void 0!==i&&(s+=i.toLocaleString()),s+=")",s}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[_e],attrs:J5,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(e,i){1&e&&S(0,n4,5,20,"g",0),2&e&&m("ngIf",i.circle)},directives:function(){return[Ce,yr,pu,Oi]},encapsulation:2,data:{animation:[fn("animationState",[sn(":enter",[Fe({opacity:0}),nn(250,Fe({opacity:1}))])])]},changeDetection:0}),t})(),pu=(()=>{class t{constructor(){this.select=new k,this.activate=new k,this.deactivate=new k}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(e,i){1&e&&E("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[_e],attrs:i4,decls:1,vars:8,template:function(e,i){1&e&&(w(),V(0,"circle")),2&e&&L("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),t})(),yr=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[_e],attrs:a4,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(w(),x(0,"linearGradient",0),S(1,l4,1,5,"stop",1),T()),2&e&&(m("id",i.name),L("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),_(1),m("ngForOf",i.stops))},directives:[Oe],encapsulation:2,changeDetection:0}),t})(),np=(()=>{class t{constructor(){this.endOpacity=1,this.cx=0,this.cy=0}get stops(){return this.stopsInput||this.stopsDefault}set stops(e){this.stopsInput=e}ngOnChanges(e){this.r="30%",("color"in e||"startOpacity"in e||"endOpacity"in e)&&(this.stopsDefault=[{offset:0,color:this.color,opacity:this.startOpacity},{offset:100,color:this.color,opacity:this.endOpacity}])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-svg-radial-gradient",""]],inputs:{endOpacity:"endOpacity",cx:"cx",cy:"cy",stops:"stops",color:"color",name:"name",startOpacity:"startOpacity"},features:[_e],attrs:c4,decls:2,vars:5,consts:[["gradientUnits","userSpaceOnUse",3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(w(),x(0,"radialGradient",0),S(1,u4,1,5,"stop",1),T()),2&e&&(m("id",i.name),L("cx",i.cx)("cy",i.cy)("r",i.r),_(1),m("ngForOf",i.stops))},directives:[Oe],encapsulation:2,changeDetection:0}),t})(),ip=(()=>{class t{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new k,this.initialized=!1,this.hasGradient=!1,this.element=e.nativeElement}ngOnChanges(e){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.gradientId="grad"+kn().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)}updatePathEl(){const e=Qt(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(Q(ct))},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",activeLabel:"activeLabel",stops:"stops"},outputs:{select:"select"},features:[_e],attrs:h4,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(e,i){1&e&&(S(0,d4,2,2,"defs",0),w(),V(1,"path",1)),2&e&&(m("ngIf",i.gradient),_(1),ke("opacity",i.opacity),L("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},directives:[Ce,yr],encapsulation:2,changeDetection:0}),t})();function ww(t,n,e,i){return e*(1-Math.pow(2,-10*t/i))*1024/1023+n}function Dw(t,n,e,i,s){const r=Number(t),o=Number(n),a=r>o,l=Math.max(0,e),c=Math.pow(10,l),u=1e3*Number(i);let h;function d(f){let g;const v=f-h;g=a?r-ww(v,0,r-o,u):ww(v,r,o-r,u),g=a?g<o?o:g:g>o?o:g,g=Math.round(g*c)/c;const p=v<u;if(s({value:g,progress:v,timestamp:f,finished:!p}),p)return requestAnimationFrame(C=>d(C))}return requestAnimationFrame(f=>(h=f,d(f)))}"undefined"!=typeof window?sp=window:"undefined"!=typeof global&&(sp=global);const Aw=sp.MouseEvent;function rp(t,n=!1,e=!0){if("function"==typeof Aw)return new Aw(t,{bubbles:n,cancelable:e});{const i=document.createEvent("MouseEvent");return i.initEvent(t,n,e),i}}let ja=(()=>{class t{constructor(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new k}getValues(e){const i=[];for(const s of this.results){const r=s.series.find(a=>a.name.toString()===e.toString());let o=s.name;if(o instanceof Date&&(o=o.toLocaleDateString()),r){const a=r.name;let c,l=r.value;if(this.showPercentage&&(l=(r.d1-r.d0).toFixed(2)+"%"),"linear"===this.colors.scaleType){let h=l;r.d1&&(h=r.d1),c=this.colors.getColor(h)}else c=this.colors.getColor(s.name);const u=Object.assign({},r,{value:l,name:a,series:o,min:r.min,max:r.max,color:c});i.push(u)}}return i}mouseMove(e){const i=e.pageX-e.target.getBoundingClientRect().left,s=this.findClosestPointIndex(i),r=this.xSet[s];if(this.anchorPos=this.xScale(r),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(r),this.anchorPos!==this.lastAnchorPos){const o=rp("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(o),this.anchorOpacity=.7,this.hover.emit({value:r}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let i=0,s=this.xSet.length-1,r=Number.MAX_VALUE,o=0;for(;i<=s;){const a=(i+s)/2|0,l=this.xScale(this.xSet[a]),c=Math.abs(l-e);if(c<r&&(r=c,o=a),l<e)i=a+1;else{if(!(l>e)){r=0,o=a;break}s=a-1}}return o}showTooltip(){const e=rp("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=rp("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let i="";return i+=void 0!==e.series?e.series:"???",i+=": ",void 0!==e.value&&(i+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(i+=" (",void 0!==e.min?(void 0===e.max&&(i+="\u2265"),i+=e.min.toLocaleString(),void 0!==e.max&&(i+=" - ")):void 0!==e.max&&(i+="\u2264"),void 0!==e.max&&(i+=e.max.toLocaleString()),i+=")"),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(e,i){if(1&e&&gi(g4,5),2&e){let s;Me(s=Le())&&(i.tooltipAnchor=s.first)}},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:p4,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","auto",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(e,i){if(1&e&&(w(),x(0,"g")(1,"rect",0),E("mousemove",function(r){return i.mouseMove(r)})("mouseleave",function(){return i.hideTooltip()}),T(),S(2,_4,2,1,"ng-template",null,1,vx),V(4,"rect",2,3),T()),2&e){const s=function xy(t){return function wr(t,n){return t[n]}(function QD(){return de.lFrame.contextLView}(),20+t)}(3);_(1),L("x",0)("width",i.dims.width)("height",i.dims.height),_(3),ke("opacity",i.anchorOpacity)("pointer-events","none"),m("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:s)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),L("x",i.anchorPos)("width",1)("height",i.dims.height)}},directives:[Oe,Oi],encapsulation:2,data:{animation:[fn("animationState",[sn("inactive => active",[Fe({opacity:0}),nn(250,Fe({opacity:.7}))]),sn("active => inactive",[Fe({opacity:.7}),nn(250,Fe({opacity:0}))])])]},changeDetection:0}),t})(),Ga=(()=>{class t{constructor(e,i){this.cd=i,this.height=50,this.select=new k,this.onDomainChange=new k,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+kn().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const s of this.results)for(const r of s.series)e.includes(r.name)||e.push(r.name);let i=[];return"time"===this.scaleType?i=[Math.min(...e),Math.max(...e)]:"linear"===this.scaleType?(e=e.map(o=>Number(o)),i=[Math.min(...e),Math.max(...e)]):i=e,i}getXScale(){let e;return"time"===this.scaleType?e=fr().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?e=Je().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(e=gr().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,i=this.view[0];this.brush=function EH(){return function Cg(t){var a,n=DH,e=wH,i=SH,s=!0,r=iT("start","brush","end"),o=6;function l(p){var C=p.property("__brush",v).selectAll(".overlay").data([Ma("overlay")]);C.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ps.overlay).merge(C).each(function(){var D=Tg(this).extent;Qt(this).attr("x",D[0][0]).attr("y",D[0][1]).attr("width",D[1][0]-D[0][0]).attr("height",D[1][1]-D[0][1])}),p.selectAll(".selection").data([Ma("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ps.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var b=p.selectAll(".handle").data(t.handles,function(D){return D.type});b.exit().remove(),b.enter().append("rect").attr("class",function(D){return"handle handle--"+D.type}).attr("cursor",function(D){return ps[D.type]}),p.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",d).filter(i).on("touchstart.brush",d).on("touchmove.brush",f).on("touchend.brush touchcancel.brush",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var p=Qt(this),C=Tg(this).selection;C?(p.selectAll(".selection").style("display",null).attr("x",C[0][0]).attr("y",C[0][1]).attr("width",C[1][0]-C[0][0]).attr("height",C[1][1]-C[0][1]),p.selectAll(".handle").style("display",null).attr("x",function(b){return"e"===b.type[b.type.length-1]?C[1][0]-o/2:C[0][0]-o/2}).attr("y",function(b){return"s"===b.type[0]?C[1][1]-o/2:C[0][1]-o/2}).attr("width",function(b){return"n"===b.type||"s"===b.type?C[1][0]-C[0][0]+o:o}).attr("height",function(b){return"e"===b.type||"w"===b.type?C[1][1]-C[0][1]+o:o})):p.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(p,C,b){var D=p.__brush.emitter;return!D||b&&D.clean?new h(p,C,b):D}function h(p,C,b){this.that=p,this.args=C,this.state=p.__brush,this.active=0,this.clean=b}function d(){if((!a||He.touches)&&e.apply(this,arguments)){var ee,oe,B,W,Ae,P,$,Z,yt,Te,ri,p=this,C=He.target.__data__.type,b="selection"===(s&&He.metaKey?C="overlay":C)?RT:s&&He.altKey?go:fo,D=t===Jc?null:TH[C],M=t===Kc?null:CH[C],N=Tg(p),I=N.extent,X=N.selection,be=I[0][0],J=I[0][1],Ge=I[1][0],G=I[1][1],ce=0,Ee=0,zt=D&&M&&s&&He.shiftKey,ns=He.touches?xH(He.changedTouches[0].identifier):s3,et=ns(p),jt=et,H=u(p,arguments,!0).beforestart();"overlay"===C?(X&&(yt=!0),N.selection=X=[[ee=t===Jc?be:et[0],B=t===Kc?J:et[1]],[Ae=t===Jc?Ge:ee,$=t===Kc?G:B]]):(ee=X[0][0],B=X[0][1],Ae=X[1][0],$=X[1][1]),oe=ee,W=B,P=Ae,Z=$;var ne=Qt(p).attr("pointer-events","none"),ye=ne.selectAll(".overlay").attr("cursor",ps[C]);if(He.touches)H.moved=an,H.ended=pn;else{var O=Qt(He.view).on("mousemove.brush",an,!0).on("mouseup.brush",pn,!0);s&&O.on("keydown.brush",Mn,!0).on("keyup.brush",xs,!0),NB(He.view)}OT(),fg(p),c.call(p),H.start()}function an(){var Ln=ns(p);zt&&!Te&&!ri&&(Math.abs(Ln[0]-jt[0])>Math.abs(Ln[1]-jt[1])?ri=!0:Te=!0),jt=Ln,yt=!0,vg(),Ve()}function Ve(){var Ln;switch(ce=jt[0]-et[0],Ee=jt[1]-et[1],b){case xg:case RT:D&&(ce=Math.max(be-ee,Math.min(Ge-Ae,ce)),oe=ee+ce,P=Ae+ce),M&&(Ee=Math.max(J-B,Math.min(G-$,Ee)),W=B+Ee,Z=$+Ee);break;case fo:D<0?(ce=Math.max(be-ee,Math.min(Ge-ee,ce)),oe=ee+ce,P=Ae):D>0&&(ce=Math.max(be-Ae,Math.min(Ge-Ae,ce)),oe=ee,P=Ae+ce),M<0?(Ee=Math.max(J-B,Math.min(G-B,Ee)),W=B+Ee,Z=$):M>0&&(Ee=Math.max(J-$,Math.min(G-$,Ee)),W=B,Z=$+Ee);break;case go:D&&(oe=Math.max(be,Math.min(Ge,ee-ce*D)),P=Math.max(be,Math.min(Ge,Ae+ce*D))),M&&(W=Math.max(J,Math.min(G,B-Ee*M)),Z=Math.max(J,Math.min(G,$+Ee*M)))}P<oe&&(D*=-1,Ln=ee,ee=Ae,Ae=Ln,Ln=oe,oe=P,P=Ln,C in HT&&ye.attr("cursor",ps[C=HT[C]])),Z<W&&(M*=-1,Ln=B,B=$,$=Ln,Ln=W,W=Z,Z=Ln,C in VT&&ye.attr("cursor",ps[C=VT[C]])),N.selection&&(X=N.selection),Te&&(oe=X[0][0],P=X[1][0]),ri&&(W=X[0][1],Z=X[1][1]),(X[0][0]!==oe||X[0][1]!==W||X[1][0]!==P||X[1][1]!==Z)&&(N.selection=[[oe,W],[P,Z]],c.call(p),H.brush())}function pn(){if(OT(),He.touches){if(He.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500)}else OB(He.view,yt),O.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);ne.attr("pointer-events","all"),ye.attr("cursor",ps.overlay),N.selection&&(X=N.selection),AH(X)&&(N.selection=null,c.call(p)),H.end()}function Mn(){switch(He.keyCode){case 16:zt=D&&M;break;case 18:b===fo&&(D&&(Ae=P-ce*D,ee=oe+ce*D),M&&($=Z-Ee*M,B=W+Ee*M),b=go,Ve());break;case 32:(b===fo||b===go)&&(D<0?Ae=P-ce:D>0&&(ee=oe-ce),M<0?$=Z-Ee:M>0&&(B=W-Ee),b=xg,ye.attr("cursor",ps.selection),Ve());break;default:return}vg()}function xs(){switch(He.keyCode){case 16:zt&&(Te=ri=zt=!1,Ve());break;case 18:b===go&&(D<0?Ae=P:D>0&&(ee=oe),M<0?$=Z:M>0&&(B=W),b=fo,Ve());break;case 32:b===xg&&(He.altKey?(D&&(Ae=P-ce*D,ee=oe+ce*D),M&&($=Z-Ee*M,B=W+Ee*M),b=go):(D<0?Ae=P:D>0&&(ee=oe),M<0?$=Z:M>0&&(B=W),b=fo),ye.attr("cursor",ps[C]),Ve());break;default:return}vg()}}function f(){u(this,arguments).moved()}function g(){u(this,arguments).ended()}function v(){var p=this.__brush||{selection:null};return p.extent=bg(n.apply(this,arguments)),p.dim=t,p}return l.move=function(p,C){p.selection?p.on("start.brush",function(){u(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){u(this,arguments).end()}).tween("brush",function(){var b=this,D=b.__brush,M=u(b,arguments),N=D.selection,I=t.input("function"==typeof C?C.apply(this,arguments):C,D.extent),X=or(N,I);function be(ee){D.selection=1===ee&&null===I?null:X(ee),c.call(b),M.brush()}return null!==N&&null!==I?be:be(1)}):p.each(function(){var b=this,D=arguments,M=b.__brush,N=t.input("function"==typeof C?C.apply(b,D):C,M.extent),I=u(b,D).beforestart();fg(b),M.selection=null===N?null:N,c.call(b),I.start().brush().end()})},l.clear=function(p){l.move(p,null)},h.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(p){!function EB(t,n,e,i){var s=He;t.sourceEvent=He,He=t;try{n.apply(e,i)}finally{He=s}}(new vH(l,p,t.output(this.state.selection)),r.apply,r,[p,this.that,this.args])}},l.extent=function(p){return arguments.length?(n="function"==typeof p?p:yg(bg(p)),l):n},l.filter=function(p){return arguments.length?(e="function"==typeof p?p:yg(!!p),l):e},l.touchable=function(p){return arguments.length?(i="function"==typeof p?p:yg(!!p),l):i},l.handleSize=function(p){return arguments.length?(o=+p,l):o},l.keyModifiers=function(p){return arguments.length?(s=!!p,l):s},l.on=function(){var p=r.on.apply(r,arguments);return p===r?l:p},l}(Kc)}().extent([[0,0],[i,e]]).on("brush end",()=>{const r=(He.selection||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(r),this.cd.markForCheck()}),Qt(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),Qt(this.element).select(".brush").call(this.brush),Qt(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(Q(ct),Q(Js))},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",state:"state",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",miniChart:"miniChart",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[_e],attrs:y4,ngContentSelectors:cw,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(e,i){1&e&&(gd(),w(),x(0,"g",0)(1,"filter"),V(2,"feColorMatrix",1),T(),x(3,"g",2),pd(4),T(),V(5,"rect",3)(6,"g",4),T()),2&e&&(L("transform",i.transform),_(1),L("id",i.filterId),_(4),L("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke:#888;stroke-width:1px}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t})(),Ew=(()=>{class t{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new k,this.labelActivate=new k,this.labelDeactivate=new k,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const i of this.data){const s=on(i);-1===e.findIndex(o=>o.label===s)&&e.push({label:i,formattedLabel:s,color:this.colors.getColor(i)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.label===s.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)(Q(Js))},t.\u0275cmp=q({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[_e],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,i){1&e&&(x(0,"div"),S(1,v4,3,1,"header",0),x(2,"div",1)(3,"ul",2),S(4,x4,2,4,"li",3),T()()()),2&e&&(ke("width",i.width,"px"),_(1),m("ngIf",(null==i.title?null:i.title.length)>0),_(2),ke("max-height",i.height-45,"px"),qt("horizontal-legend",i.horizontal),_(1),m("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},directives:function(){return[Ce,Oe,kw]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),kw=(()=>{class t{constructor(){this.isActive=!1,this.select=new k,this.activate=new k,this.deactivate=new k,this.toggle=new k}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,i){1&e&&E("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,i){1&e&&(x(0,"span",0),E("click",function(){return i.select.emit(i.formattedLabel)}),x(1,"span",1),E("click",function(){return i.toggle.emit(i.formattedLabel)}),T(),x(2,"span",2),Be(3),T()()),2&e&&(qt("active",i.isActive),m("title",i.formattedLabel),_(1),ke("background-color",i.color),_(2),gt(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Mw=(()=>{class t{constructor(e){this.sanitizer=e,this.horizontal=!1}ngOnChanges(e){const i=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${i})`)}gradientString(e,i){i.push(1);const s=[];return e.reverse().forEach((r,o)=>{s.push(`${r} ${Math.round(100*i[o])}%`)}),s.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(Q($0))},t.\u0275cmp=q({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[_e],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,i){1&e&&(x(0,"div",0)(1,"div",1)(2,"span"),Be(3),T()(),V(4,"div",2),x(5,"div",1)(6,"span"),Be(7),T()()()),2&e&&(ke("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),qt("horizontal-legend",i.horizontal),_(3),Kn(i.valueRange[1].toLocaleString()),_(1),ke("background",i.gradient),_(3),Kn(i.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Ri=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[fa,xw,bw],fa,xw,bw]}),t})();function wt({width:t,height:n,margins:e,showXAxis:i=!1,showYAxis:s=!1,xAxisHeight:r=0,yAxisWidth:o=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:u="ordinal",legendPosition:h="right",columns:d=12}){let f=e[3],g=t,v=n-e[0]-e[2];return c&&"right"===h&&(d-="ordinal"===u?2:1),g=g*d/12,g=g-e[1]-e[3],i&&(v-=5,v-=r,a&&(v-=30)),s&&(g-=5,g-=o,f+=o,f+=10,l&&(g-=30,f+=30)),g=Math.max(0,g),v=Math.max(0,v),{width:Math.floor(g),height:Math.floor(v),xOffset:Math.floor(f)}}let Fw=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Dt{constructor(n,e,i,s){"string"==typeof n&&(n=Fw.find(r=>r.name===n)),this.colorDomain=n.domain,this.scaleType=e,this.domain=i,this.customColors=s,this.scale=this.generateColorScheme(n,e,this.domain)}generateColorScheme(n,e,i){let s;if("string"==typeof n&&(n=Fw.find(r=>r.name===n)),"quantile"===e)s=UC().range(n.domain).domain(i);else if("ordinal"===e)s=Ug().range(n.domain).domain(i);else if("linear"===e){const r=[...n.domain];1===r.length&&(r.push(r[0]),this.colorDomain=r);const o=jC(0,1,1/r.length);s=Je().domain(o).range(r)}return s}getColor(n){if(null==n)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=Je().domain(this.domain).range([0,1]);return this.scale(e(n))}{if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(s=>s.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}getLinearGradientStops(n,e){void 0===e&&(e=this.domain[0]);const i=Je().domain(this.domain).range([0,1]),s=rn().domain(this.colorDomain).range([0,1]),r=this.getColor(n),o=i(e),a=this.getColor(e),l=i(n);let c=1,u=o;const h=[];for(h.push({color:a,offset:o,originalOffset:o,opacity:1});u<l&&c<this.colorDomain.length;){const d=this.colorDomain[c],f=s(d);if(f<=o)c++;else{if(f.toFixed(4)>=(l-s.bandwidth()).toFixed(4))break;h.push({color:d,offset:f,opacity:1}),u=f,c++}}if(h[h.length-1].offset<100&&h.push({color:r,offset:l,opacity:1}),l===o)h[0].offset=0,h[1].offset=100;else if(100!==h[h.length-1].offset)for(const d of h)d.offset=(d.offset-o)/(l-o)*100;return h}}function _u(t){const n=new Set;for(const e of t)for(const i of e.series)n.add(i.name);return Array.from(n)}function Bs(t,n=!0){return n&&t.every(s=>s instanceof Date)?"time":t.every(i=>"number"==typeof i)?"linear":"ordinal"}let Jj=(()=>{class t extends _t{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=pr,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.activate=new k,this.deactivate=new k,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=wt({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(let e=0;e<this.xSet.length;e++){const i=this.xSet[e];let s=0,r=0;for(const o of this.results){const a=o.series.find(l=>{let c=l.name,u=i;return"time"===this.scaleType&&(c=c.valueOf(),u=u.valueOf()),c===u});a&&(r+=a.value)}for(const o of this.results){let a=o.series.find(l=>{let c=l.name,u=i;return"time"===this.scaleType&&(c=c.valueOf(),u=u.valueOf()),c===u});a?(a.d0=s,a.d1=s+a.value,s+=a.value):(a={name:i,value:0,d0:s,d1:s},o.series.push(a)),r>0?(a.d0=100*a.d0/r,a.d1=100*a.d1/r):(a.d0=0,a.d1=0)}}this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+kn().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=_u(this.results);this.scaleType=Bs(e);let i=[];if("time"===this.scaleType){const s=Math.min(...e),r=Math.max(...e);i=[new Date(s),new Date(r)],this.xSet=[...e].sort((o,a)=>{const l=o.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})}else"linear"===this.scaleType?(e=e.map(o=>Number(o)),i=[Math.min(...e),Math.max(...e)],this.xSet=[...e].sort((o,a)=>o-a)):(i=e,this.xSet=e);return i}getYDomain(){return[0,100]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let s;return"time"===this.scaleType?s=fr():"linear"===this.scaleType?s=Je():"ordinal"===this.scaleType&&(s=gr().padding(.1)),s.range([0,i]).domain(e),this.roundDomains?s.nice():s}getYScale(e,i){const s=Je().range([i,0]).domain(e);return this.roundDomains?s.nice():s}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new Dt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ft(t)))(i||t)}}(),t.\u0275cmp=q({type:t,selectors:[["ngx-charts-area-chart-normalized"]],contentQueries:function(e,i,s){if(1&e&&(rt(s,Nt,5),rt(s,hu,5)),2&e){let r;Me(r=Le())&&(i.tooltipTemplate=r.first),Me(r=Le())&&(i.seriesTooltipTemplate=r.first)}},hostBindings:function(e,i){1&e&&E("mouseleave",function(){return i.hideCircles()})},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[lt],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","","normalized","true",3,"xScale","yScale","colors","data","scaleType","activeEntries","gradient","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","showPercentage","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","","type","stacked",3,"xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","","normalized","true",3,"xScale","yScale","colors","data","scaleType","gradient","curve","animations"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r)})("legendLabelDeactivate",function(r){return i.onDeactivate(r)}),w(),x(1,"defs")(2,"clipPath"),V(3,"rect"),T()(),x(4,"g",1),S(5,N4,1,10,"g",2),S(6,O4,1,9,"g",3),x(7,"g"),S(8,R4,2,9,"g",4),S(9,H4,3,10,"g",5),T()(),S(10,$4,2,13,"g",6),T()),2&e&&(m("view",Ke(17,st,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(2),L("id",i.clipPathId),_(1),L("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),_(1),L("transform",i.transform),_(1),m("ngIf",i.xAxis),_(1),m("ngIf",i.yAxis),_(1),L("clip-path",i.clipPath),_(1),m("ngForOf",i.results)("ngForTrackBy",i.trackBy),_(1),m("ngIf",!i.tooltipDisabled),_(1),m("ngIf",i.timeline&&"ordinal"!=i.scaleType))},directives:function(){return[mt,Ce,Rn,En,Oe,cp,ja,za,Ga]},styles:[kt],encapsulation:2,changeDetection:0}),t})(),e8=(()=>{class t extends _t{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=pr,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.activate=new k,this.deactivate=new k,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=wt({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(let e=0;e<this.xSet.length;e++){const i=this.xSet[e];let s=0;for(const r of this.results){let o=r.series.find(a=>{let l=a.name,c=i;return"time"===this.scaleType&&(l=l.valueOf(),c=c.valueOf()),l===c});o?(o.d0=s,o.d1=s+o.value,s+=o.value):(o={name:i,value:0,d0:s,d1:s},r.series.push(o))}}this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+kn().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=_u(this.results);this.scaleType=Bs(e);let s,r,i=[];return"linear"===this.scaleType&&(e=e.map(o=>Number(o))),("time"===this.scaleType||"linear"===this.scaleType)&&(s=this.xScaleMin?this.xScaleMin:Math.min(...e),r=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(s),new Date(r)],this.xSet=[...e].sort((o,a)=>{const l=o.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[s,r],this.xSet=[...e].sort((o,a)=>o-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(let r=0;r<this.xSet.length;r++){const o=this.xSet[r];let a=0;for(const l of this.results){const c=l.series.find(u=>{let h=u.name,d=o;return"time"===this.scaleType&&(h=h.valueOf(),d=d.valueOf()),h===d});c&&(a+=c.value)}e.push(a)}return[this.yScaleMin?this.yScaleMin:Math.min(0,...e),this.yScaleMax?this.yScaleMax:Math.max(...e)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let s;return"time"===this.scaleType?s=fr():"linear"===this.scaleType?s=Je():"ordinal"===this.scaleType&&(s=gr().padding(.1)),s.range([0,i]).domain(e),this.roundDomains?s.nice():s}getYScale(e,i){const s=Je().range([i,0]).domain(e);return this.roundDomains?s.nice():s}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e,i){i&&(e.series=i.name),this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new Dt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ft(t)))(i||t)}}(),t.\u0275cmp=q({type:t,selectors:[["ngx-charts-area-chart-stacked"]],contentQueries:function(e,i,s){if(1&e&&(rt(s,Nt,5),rt(s,hu,5)),2&e){let r;Me(r=Le())&&(i.tooltipTemplate=r.first),Me(r=Le())&&(i.seriesTooltipTemplate=r.first)}},hostBindings:function(e,i){1&e&&E("mouseleave",function(){return i.hideCircles()})},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[lt],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","","stacked","true",3,"xScale","yScale","colors","data","scaleType","gradient","activeEntries","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],["ngx-charts-circle-series","","type","stacked",3,"xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","","stacked","true",3,"xScale","yScale","colors","data","scaleType","gradient","curve","animations"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r)})("legendLabelDeactivate",function(r){return i.onDeactivate(r)}),w(),x(1,"defs")(2,"clipPath"),V(3,"rect"),T()(),x(4,"g",1),S(5,z4,1,10,"g",2),S(6,j4,1,9,"g",3),x(7,"g"),S(8,G4,2,9,"g",4),S(9,U4,3,10,"g",5),T()(),S(10,X4,2,13,"g",6),T()),2&e&&(m("view",Ke(17,st,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(2),L("id",i.clipPathId),_(1),L("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),_(1),L("transform",i.transform),_(1),m("ngIf",i.xAxis),_(1),m("ngIf",i.yAxis),_(1),L("clip-path",i.clipPath),_(1),m("ngForOf",i.results)("ngForTrackBy",i.trackBy),_(1),m("ngIf",!i.tooltipDisabled),_(1),m("ngIf",i.timeline&&"ordinal"!=i.scaleType))},directives:function(){return[mt,Ce,Rn,En,Oe,cp,ja,za,Ga]},styles:[kt],encapsulation:2,changeDetection:0}),t})();function op(t,n,e="asc"){return t.sort((i,s)=>"asc"===e?i[n]-s[n]:s[n]-i[n])}function ap(t,n,e="asc",i){return t.sort((s,r)=>{const a=r[n],l=i.indexOf(s[n]),c=i.indexOf(a);return"asc"===e?l-c:c-l})}function lp(t,n,e="asc"){return t.sort((i,s)=>{const r=i[n].getTime(),o=s[n].getTime();return"asc"===e?r>o?1:o>r?-1:0:r>o?-1:o>r?1:0})}let cp=(()=>{class t{constructor(){this.baseValue="auto",this.stacked=!1,this.normalized=!1,this.animations=!0,this.select=new k}ngOnChanges(e){this.update()}update(){let e,i;this.updateGradient();const s=o=>this.xScale(o.name);this.stacked||this.normalized?(e=xo().x(s).y0((o,a)=>this.yScale(o.d0)).y1((o,a)=>this.yScale(o.d1)),i=xo().x(s).y0(o=>this.yScale.range()[0]).y1(o=>this.yScale.range()[0])):(e=xo().x(s).y0(()=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue)).y1(o=>this.yScale(o.value)),i=xo().x(s).y0(o=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue)).y1(o=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue))),e.curve(this.curve),i.curve(this.curve),this.opacity=.8;let r=this.data.series;r="linear"===this.scaleType?op(r,"name"):"time"===this.scaleType?lp(r,"name"):ap(r,"name","asc",this.xScale.domain()),this.path=e(r),this.startingPath=i(r)}updateGradient(){if("linear"===this.colors.scaleType)if(this.hasGradient=!0,this.stacked||this.normalized){const e=this.data.series.map(o=>o.d0),i=this.data.series.map(o=>o.d1),s=Math.max(...i),r=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(s,r)}else{const e=this.data.series.map(s=>s.value),i=Math.max(...e);this.gradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(s=>e.name===s.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-area-series",""]],inputs:{baseValue:"baseValue",stacked:"stacked",normalized:"normalized",animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",gradient:"gradient",curve:"curve",activeEntries:"activeEntries"},outputs:{select:"select"},features:[_e],attrs:q4,decls:1,vars:12,consts:[["ngx-charts-area","",1,"area-series",3,"data","path","fill","stops","startingPath","opacity","gradient","animations"]],template:function(e,i){1&e&&(w(),V(0,"g",0)),2&e&&(qt("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),m("data",i.data)("path",i.path)("fill",i.colors.getColor(i.data.name))("stops",i.gradientStops)("startingPath",i.startingPath)("opacity",i.opacity)("gradient",i.gradient||i.hasGradient)("animations",i.animations))},directives:[ip],encapsulation:2,changeDetection:0}),t})(),t8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Ri]]}),t})(),up=(()=>{class t{constructor(e){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new k,this.activate=new k,this.deactivate=new k,this.hasGradient=!1,this.hideBar=!1,this.element=e.nativeElement}ngOnChanges(e){e.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+kn().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const e=Qt(this.element).select(".bar"),i=this.getPath();this.animations?e.transition().duration(500).attr("d",i):e.attr("d",i)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let i,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),i=vs(this.x,this.y+this.height,this.width,1,0,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),i=vs(this.x,this.y,1,this.height,0,this.edges)):"vertical"===this.orientation?i=vs(this.x,this.y+this.height,this.width,1,0,this.edges):"horizontal"===this.orientation&&(i=vs(this.x,this.y,1,this.height,0,this.edges)),i}getPath(){let i,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),i=vs(this.x,this.y,this.width,this.height,e,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),i=vs(this.x,this.y,this.width,this.height,e,this.edges)):i=vs(this.x,this.y,this.width,this.height,e,this.edges),i}getRadius(){let e=0;return this.roundEdges&&this.height>5&&this.width>5&&(e=Math.floor(Math.min(5,this.height/2,this.width/2))),e}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let e=[!1,!1,!1,!1];return this.roundEdges&&("vertical"===this.orientation?e=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:"horizontal"===this.orientation&&(e=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),e}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&("vertical"===this.orientation&&0===this.height||"horizontal"===this.orientation&&0===this.width)}}return t.\u0275fac=function(e){return new(e||t)(Q(ct))},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(e,i){1&e&&E("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[_e],attrs:Q4,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(e,i){1&e&&(S(0,Z4,2,3,"defs",0),w(),x(1,"path",1),E("click",function(){return i.select.emit(i.data)}),T()),2&e&&(m("ngIf",i.hasGradient),_(1),qt("active",i.isActive)("hidden",i.hideBar),L("d",i.path)("aria-label",i.ariaLabel)("fill",i.hasGradient?i.gradientFill:i.fill))},directives:[Ce,yr],encapsulation:2,changeDetection:0}),t})(),n8=(()=>{class t extends _t{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new k,this.deactivate=new k,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=wt({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const e=this.xDomain.length/(this.dims.width/this.barPadding+1);return rn().range([0,this.dims.width]).paddingInner(e).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const e=Je().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?e.nice():e}getXDomain(){return this.results.map(e=>e.label)}getYDomain(){const e=this.results.map(r=>r.value);let i=this.yScaleMin?Math.min(this.yScaleMin,...e):Math.min(0,...e);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(i=Math.min(i,...this.yAxisTicks));let s=this.yScaleMax?Math.max(this.yScaleMax,...e):Math.max(0,...e);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(s=Math.max(s,...this.yAxisTicks)),[i,s]}onClick(e){this.select.emit(e)}setColors(){let e;e="ordinal"===this.schemeType?this.xDomain:this.yDomain,this.colors=new Dt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.xDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onDataLabelMaxHeightChanged(e){e.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,e.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,e.size.height),e.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series)>-1)&&(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name);const s=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series);this.activeEntries.splice(s,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ft(t)))(i||t)}}(),t.\u0275cmp=q({type:t,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(e,i,s){if(1&e&&rt(s,Nt,5),2&e){let r;Me(r=Le())&&(i.tooltipTemplate=r.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[lt],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,!0)}),w(),x(1,"g",1),S(2,cz,1,10,"g",2),S(3,uz,1,9,"g",3),x(4,"g",4),E("activate",function(r){return i.onActivate(r)})("deactivate",function(r){return i.onDeactivate(r)})("select",function(r){return i.onClick(r)})("dataLabelHeightChanged",function(r){return i.onDataLabelMaxHeightChanged(r)}),T()()()),2&e&&(m("view",Ke(22,st,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),L("transform",i.transform),_(1),m("ngIf",i.xAxis),_(1),m("ngIf",i.yAxis),_(1),m("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("series",i.results)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("activeEntries",i.activeEntries)("roundEdges",i.roundEdges)("animations",i.animations)("noBarWhenZero",i.noBarWhenZero))},directives:function(){return[mt,Ce,Rn,En,yu]},styles:[kt],encapsulation:2,changeDetection:0}),t})();var si=(()=>(function(t){t.positive="positive",t.negative="negative"}(si||(si={})),si))();let yu=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new k,this.activate=new k,this.deactivate=new k,this.dataLabelHeightChanged=new k,this.barsForDataLabels=[]}ngOnChanges(e){this.update()}update(){let e;this.updateTooltipSettings(),this.series.length&&(e=this.xScale.bandwidth()),e=Math.round(e);const i=Math.max(this.yScale.domain()[0],0),s={[si.positive]:0,[si.negative]:0};let o,r=si.positive;"normalized"===this.type&&(o=this.series.map(a=>a.value).reduce((a,l)=>a+l,0)),this.bars=this.series.map((a,l)=>{let c=a.value;const u=this.getLabel(a),h=on(u);r=c>0?si.positive:si.negative;const f={value:c,label:u,roundEdges:this.roundEdges,data:a,width:e,formattedLabel:h,height:0,x:0,y:0};if("standard"===this.type)f.height=Math.abs(this.yScale(c)-this.yScale(i)),f.x=this.xScale(u),f.y=this.yScale(c<0?0:c);else if("stacked"===this.type){const v=s[r],p=v+c;s[r]+=c,f.height=this.yScale(v)-this.yScale(p),f.x=0,f.y=this.yScale(p),f.offset0=v,f.offset1=p}else if("normalized"===this.type){let v=s[r],p=v+c;s[r]+=c,o>0?(v=100*v/o,p=100*p/o):(v=0,p=0),f.height=this.yScale(v)-this.yScale(p),f.x=0,f.y=this.yScale(p),f.offset0=v,f.offset1=p,c=(p-v).toFixed(2)+"%"}"ordinal"===this.colors.scaleType?f.color=this.colors.getColor(u):"standard"===this.type?(f.color=this.colors.getColor(c),f.gradientStops=this.colors.getLinearGradientStops(c)):(f.color=this.colors.getColor(f.offset1),f.gradientStops=this.colors.getLinearGradientStops(f.offset1,f.offset0));let g=h;return f.ariaLabel=h+" "+c.toLocaleString(),this.seriesName&&(g=`${this.seriesName} \u2022 ${h}`,f.data.series=this.seriesName,f.ariaLabel=this.seriesName+" "+f.ariaLabel),f.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${$t(g)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(c):c.toLocaleString()}</span>\n `,f}),this.updateDataLabels()}updateDataLabels(){if("stacked"===this.type){this.barsForDataLabels=[];const e={};e.series=this.seriesName;const i=this.series.map(r=>r.value).reduce((r,o)=>o>0?r+o:r,0),s=this.series.map(r=>r.value).reduce((r,o)=>o<0?r+o:r,0);e.total=i+s,e.x=0,e.y=0,e.height=this.yScale(e.total>0?i:s),e.width=this.xScale.bandwidth(),this.barsForDataLabels.push(e)}else this.barsForDataLabels=this.series.map(e=>{const i={};return i.series=this.seriesName?this.seriesName:e.label,i.total=e.value,i.x=this.xScale(e.label),i.y=this.yScale(0),i.height=this.yScale(i.total)-this.yScale(0),i.width=this.xScale.bandwidth(),i})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name&&e.series===s.series)}onClick(e){this.select.emit(e)}getLabel(e){return e.label?e.label:e.name}trackBy(e,i){return i.label}trackDataLabelBy(e,i){return e+"#"+i.series+"#"+i.total}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[_e],attrs:xz,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(e,i){1&e&&(S(0,bz,1,22,"g",0),S(1,Cz,2,2,"g",1)),2&e&&(m("ngForOf",i.bars)("ngForTrackBy",i.trackBy),_(1),m("ngIf",i.showDataLabel))},directives:function(){return[Oe,up,Oi,Ce,Iw]},encapsulation:2,data:{animation:[fn("animationState",[sn(":leave",[Fe({opacity:1}),nn(500,Fe({opacity:0}))])])]},changeDetection:0}),t})(),Iw=(()=>{class t{constructor(e){this.dimensionsChanged=new k,this.horizontalPadding=2,this.verticalPadding=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):on(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return t.\u0275fac=function(e){return new(e||t)(Q(ct))},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[_e],attrs:Ez,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(e,i){1&e&&(w(),x(0,"text",0),Be(1),T()),2&e&&(L("text-anchor",i.textAnchor)("transform",i.transform)("x",i.x)("y",i.y),_(1),gt(" ",i.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),t})(),Pw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Ri]]}),t})(),s8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Ri]]}),t})(),a8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Ri]]}),t})(),Rw=(()=>{class t{constructor(e){this.element=e,this.fill="none",this.animations=!0,this.select=new k,this.initialized=!1}ngOnChanges(e){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const e=Qt(this.element.nativeElement).select(".line");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(Q(ct))},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},outputs:{select:"select"},features:[_e],attrs:zz,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(e,i){1&e&&(w(),V(0,"path",0)),2&e&&(m("@animationState","active"),L("d",i.initialPath)("fill",i.fill)("stroke",i.stroke))},encapsulation:2,data:{animation:[fn("animationState",[sn(":enter",[Fe({strokeDasharray:2e3,strokeDashoffset:2e3}),nn(1e3,Fe({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),l8=(()=>{class t extends _t{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=pr,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new k,this.deactivate=new k,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=wt({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+kn().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=_u(this.results);this.scaleType=Bs(e);let s,r,i=[];return"linear"===this.scaleType&&(e=e.map(o=>Number(o))),("time"===this.scaleType||"linear"===this.scaleType)&&(s=this.xScaleMin?this.xScaleMin:Math.min(...e),r=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(s),new Date(r)],this.xSet=[...e].sort((o,a)=>{const l=o.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[s,r],this.xSet=[...e].sort((o,a)=>o-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const o of this.results)for(const a of o.series)e.indexOf(a.value)<0&&e.push(a.value),void 0!==a.min&&(this.hasRange=!0,e.indexOf(a.min)<0&&e.push(a.min)),void 0!==a.max&&(this.hasRange=!0,e.indexOf(a.max)<0&&e.push(a.max));const i=[...e];return this.autoScale||i.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let s;return"time"===this.scaleType?s=fr().range([0,i]).domain(e):"linear"===this.scaleType?(s=Je().range([0,i]).domain(e),this.roundDomains&&(s=s.nice())):"ordinal"===this.scaleType&&(s=gr().range([0,i]).padding(.1).domain(e)),s}getYScale(e,i){const s=Je().range([i,0]).domain(e);return this.roundDomains?s.nice():s}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e){this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new Dt(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.deactivateAll(),!(this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value)>-1)&&(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ft(t)))(i||t)}}(),t.\u0275cmp=q({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(e,i,s){if(1&e&&(rt(s,Nt,5),rt(s,hu,5)),2&e){let r;Me(r=Le())&&(i.tooltipTemplate=r.first),Me(r=Le())&&(i.seriesTooltipTemplate=r.first)}},hostBindings:function(e,i){1&e&&E("mouseleave",function(){return i.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[lt],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r)})("legendLabelDeactivate",function(r){return i.onDeactivate(r)}),w(),x(1,"defs")(2,"clipPath"),V(3,"rect"),T()(),x(4,"g",1),S(5,jz,1,10,"g",2),S(6,Gz,1,12,"g",3),x(7,"g"),S(8,Wz,2,11,"g",4),S(9,Yz,3,9,"g",5),T()(),S(10,qz,2,13,"g",6),T()),2&e&&(m("view",Ke(17,st,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(2),L("id",i.clipPathId),_(1),L("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),_(1),L("transform",i.transform),_(1),m("ngIf",i.xAxis),_(1),m("ngIf",i.yAxis),_(1),L("clip-path",i.clipPath),_(1),m("ngForOf",i.results)("ngForTrackBy",i.trackBy),_(1),m("ngIf",!i.tooltipDisabled),_(1),m("ngIf",i.timeline&&"ordinal"!=i.scaleType))},directives:function(){return[mt,Ce,Rn,En,Oe,c8,ja,za,Ga]},styles:[kt],encapsulation:2,data:{animation:[fn("animationState",[sn(":leave",[Fe({opacity:1}),nn(500,Fe({opacity:0}))])])]},changeDetection:0}),t})(),c8=(()=>{class t{constructor(){this.animations=!0}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(e)||"";const s=this.getAreaGenerator();if(this.areaPath=s(e)||"",this.hasRange){const r=this.getRangeGenerator();this.outerPath=r(e)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const r=this.data.series.map(l=>l.value),o=Math.max(...r);o===Math.min(...r)&&(this.stroke=this.colors.getColor(o))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return ou().x(e=>{const i=e.name;let s;return s=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),s}).y(e=>this.yScale(e.value)).curve(this.curve)}getRangeGenerator(){return xo().x(e=>{const i=e.name;let s;return s=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),s}).y0(e=>this.yScale("number"==typeof e.min?e.min:e.value)).y1(e=>this.yScale("number"==typeof e.max?e.max:e.value)).curve(this.curve)}getAreaGenerator(){return xo().x(i=>this.xScale(i.name)).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(e){return"linear"===this.scaleType?op(e,"name"):"time"===this.scaleType?lp(e,"name"):ap(e,"name","asc",this.xScale.domain())}updateGradients(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+kn().toString(),this.gradientUrl=`url(#${this.gradientId})`;const e=this.data.series.map(r=>r.value),i=Math.max(...e),s=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,s),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(s=>e.name===s.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[_e],attrs:Qz,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(e,i){1&e&&(w(),x(0,"g")(1,"defs"),S(2,Zz,1,2,"g",0),T(),V(3,"g",1)(4,"g",2),S(5,Kz,1,9,"g",3),T()),2&e&&(_(2),m("ngIf",i.hasGradient),_(1),qt("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),m("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),_(1),qt("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),m("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),_(1),m("ngIf",i.hasRange))},directives:[Ce,yr,ip,Rw],encapsulation:2,changeDetection:0}),t})(),Bw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Ri]]}),t})();Math;let Vw=(()=>{class t{constructor(){this.animations=!0,this.labelTrim=!0,this.labelTrimSize=10,this.isIE=/(edge|msie|trident)/i.test(navigator.userAgent),this.trimLabel=Os}ngOnChanges(e){this.update()}update(){let e=this.radius;this.explodeSlices&&(e=this.radius*this.value/this.max);const s=Jg().innerRadius(e).outerRadius(e).centroid(this.data);let r=this.data.pos[1]/s[1];(0===this.data.pos[1]||0===s[1])&&(r=1),this.line=`M${s}L${[r*s[0],r*s[1]]}L${this.data.pos}`}get textX(){return this.data.pos[0]}get textY(){return this.data.pos[1]}get styleTransform(){return this.isIE?null:`translate3d(${this.textX}px,${this.textY}px, 0)`}get attrTransform(){return this.isIE?`translate(${this.textX},${this.textY})`:null}get textTransition(){return this.isIE||!this.animations?null:"transform 0.75s"}textAnchor(){return this.midAngle(this.data)<Math.PI?"start":"end"}midAngle(e){return e.startAngle+(e.endAngle-e.startAngle)/2}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-pie-label",""]],inputs:{animations:"animations",labelTrim:"labelTrim",labelTrimSize:"labelTrimSize",data:"data",radius:"radius",label:"label",color:"color",max:"max",value:"value",explodeSlices:"explodeSlices"},features:[_e],attrs:cj,decls:6,vars:17,consts:[["dy",".35em",1,"pie-label"],["fill","none",1,"pie-label-line","line"]],template:function(e,i){1&e&&(x(0,"title"),Be(1),T(),w(),x(2,"g")(3,"text",0),Be(4),T()(),V(5,"path",1)),2&e&&(_(1),Kn(i.label),_(1),ke("transform",i.styleTransform)("transition",i.textTransition),L("transform",i.attrTransform),_(1),ke("text-anchor",i.textAnchor())("shape-rendering","crispEdges"),qt("animation",i.animations),_(1),gt(" ",i.labelTrim?i.trimLabel(i.label,i.labelTrimSize):i.label," "),_(1),qt("animation",i.animations),L("d",i.line)("stroke",i.color))},encapsulation:2,changeDetection:0}),t})(),hp=(()=>{class t{constructor(e){this.startAngle=0,this.endAngle=2*Math.PI,this.cornerRadius=0,this.explodeSlices=!1,this.gradient=!1,this.animate=!0,this.pointerEvents=!0,this.isActive=!1,this.select=new k,this.activate=new k,this.deactivate=new k,this.dblclick=new k,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update()}getGradient(){return this.gradient?this.gradientFill:this.fill}getPointerEvents(){return this.pointerEvents?"auto":"none"}update(){const e=this.calculateArc();this.startOpacity=.5,this.radialGradientId="linearGrad"+kn().toString(),this.gradientFill=`url(#${this.radialGradientId})`,this.animate?this.initialized?this.updateAnimation():(this.loadAnimation(),this.initialized=!0):this.path=e.startAngle(this.startAngle).endAngle(this.endAngle)()}calculateArc(){let e=this.outerRadius;return this.explodeSlices&&0===this.innerRadius&&(e=this.outerRadius*this.value/this.max),Jg().innerRadius(this.innerRadius).outerRadius(e).cornerRadius(this.cornerRadius)}loadAnimation(){const e=Qt(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),i=this.calculateArc();e.transition().attrTween("d",function(s){this._current=this._current||s;const r=Object.assign({},s);r.endAngle=r.startAngle;const o=or(r,r);return this._current=o(0),function(a){return i(o(a))}}).transition().duration(750).attrTween("d",function(s){this._current=this._current||s;const r=or(this._current,s);return this._current=r(0),function(o){return i(r(o))}})}updateAnimation(){const e=Qt(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),i=this.calculateArc();e.transition().duration(750).attrTween("d",function(s){this._current=this._current||s;const r=or(this._current,s);return this._current=r(0),function(o){return i(r(o))}})}onClick(){clearTimeout(this._timeout),this._timeout=setTimeout(()=>this.select.emit(this.data),200)}onDblClick(e){e.preventDefault(),e.stopPropagation(),clearTimeout(this._timeout),this.dblclick.emit({data:this.data,nativeEvent:e})}}return t.\u0275fac=function(e){return new(e||t)(Q(ct))},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-pie-arc",""]],inputs:{startAngle:"startAngle",endAngle:"endAngle",cornerRadius:"cornerRadius",explodeSlices:"explodeSlices",gradient:"gradient",animate:"animate",pointerEvents:"pointerEvents",isActive:"isActive",fill:"fill",innerRadius:"innerRadius",outerRadius:"outerRadius",value:"value",max:"max",data:"data"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[_e],attrs:uj,decls:3,vars:7,consts:[[1,"arc-group"],[4,"ngIf"],[1,"arc",3,"click","dblclick","mouseenter","mouseleave"],["ngx-charts-svg-radial-gradient","","orientation","vertical",3,"color","name","startOpacity"]],template:function(e,i){1&e&&(w(),x(0,"g",0),S(1,hj,2,3,"defs",1),x(2,"path",2),E("click",function(){return i.onClick()})("dblclick",function(r){return i.onDblClick(r)})("mouseenter",function(){return i.activate.emit(i.data)})("mouseleave",function(){return i.deactivate.emit(i.data)}),T()()),2&e&&(_(1),m("ngIf",i.gradient),_(1),ke("pointer-events",i.getPointerEvents()),qt("active",i.isActive),L("d",i.path)("fill",i.getGradient()))},directives:[Ce,np],encapsulation:2,changeDetection:0}),t})(),d8=(()=>{class t extends _t{constructor(){super(...arguments),this.labels=!1,this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.explodeSlices=!1,this.doughnut=!1,this.arcWidth=.25,this.activeEntries=[],this.tooltipDisabled=!1,this.trimLabels=!0,this.maxLabelLength=10,this.dblclick=new k,this.select=new k,this.activate=new k,this.deactivate=new k}update(){super.update(),this.labels&&this.hasNoOptionalMarginsSet()?this.margins=[30,80,30,80]:!this.labels&&this.hasNoOptionalMarginsSet()&&(this.margins=[20,20,20,20]),this.dims=wt({width:this.width,height:this.height,margins:this.margins,showLegend:this.legend,legendPosition:this.legendPosition}),this.formatDates(),this.translation=`translate(${this.margins[3]+this.dims.width/2}, ${this.margins[0]+this.dims.height/2})`,this.outerRadius=Math.min(this.dims.width,this.dims.height),this.outerRadius/=this.labels?3:2,this.innerRadius=0,this.doughnut&&(this.innerRadius=this.outerRadius*(1-this.arcWidth)),this.domain=this.getDomain(),this.data=this.results.sort((s,r)=>this.domain.indexOf(s.name)-this.domain.indexOf(r.name)),this.setColors(),this.legendOptions=this.getLegendOptions()}getDomain(){return this.results.map(e=>e.label)}onClick(e){this.select.emit(e)}setColors(){this.colors=new Dt(this.scheme,"ordinal",this.domain,this.customColors)}getLegendOptions(){return{scaleType:"ordinal",domain:this.domain,colors:this.colors,title:this.legendTitle,position:this.legendPosition}}onActivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series)>-1)&&(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e,i=!1){e=this.results.find(r=>i?r.label===e.name:r.name===e.name);const s=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value&&r.series===e.series);this.activeEntries.splice(s,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}hasNoOptionalMarginsSet(){return!this.margins||this.margins.length<=0}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ft(t)))(i||t)}}(),t.\u0275cmp=q({type:t,selectors:[["ngx-charts-pie-chart"]],contentQueries:function(e,i,s){if(1&e&&rt(s,Nt,5),2&e){let r;Me(r=Le())&&(i.tooltipTemplate=r.first)}},inputs:{labels:"labels",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",explodeSlices:"explodeSlices",doughnut:"doughnut",arcWidth:"arcWidth",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",margins:"margins",gradient:"gradient",labelFormatting:"labelFormatting",tooltipText:"tooltipText"},outputs:{dblclick:"dblclick",select:"select",activate:"activate",deactivate:"deactivate"},features:[lt],decls:3,vars:24,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"pie-chart","chart"],["ngx-charts-pie-series","",3,"colors","series","showLabels","labelFormatting","trimLabels","maxLabelLength","activeEntries","innerRadius","outerRadius","explodeSlices","gradient","animations","tooltipDisabled","tooltipTemplate","tooltipText","dblclick","select","activate","deactivate"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelActivate",function(r){return i.onActivate(r,!0)})("legendLabelDeactivate",function(r){return i.onDeactivate(r,!0)})("legendLabelClick",function(r){return i.onClick(r)}),w(),x(1,"g",1)(2,"g",2),E("dblclick",function(r){return i.dblclick.emit(r)})("select",function(r){return i.onClick(r)})("activate",function(r){return i.onActivate(r)})("deactivate",function(r){return i.onDeactivate(r)}),T()()()),2&e&&(m("view",Ke(21,st,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),L("transform",i.translation),_(1),m("colors",i.colors)("series",i.data)("showLabels",i.labels)("labelFormatting",i.labelFormatting)("trimLabels",i.trimLabels)("maxLabelLength",i.maxLabelLength)("activeEntries",i.activeEntries)("innerRadius",i.innerRadius)("outerRadius",i.outerRadius)("explodeSlices",i.explodeSlices)("gradient",i.gradient)("animations",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("tooltipText",i.tooltipText))},directives:function(){return[mt,jw]},styles:[kt,".pie-label{font-size:11px}.pie-label.animation{-webkit-animation:fadeIn .75s ease-in;animation:fadeIn .75s ease-in}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.pie-label-line{stroke-dasharray:100%}.pie-label-line.animation{-webkit-animation:drawOut 3s linear;animation:drawOut 3s linear;transition:d .75s}@-webkit-keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}@keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}"],encapsulation:2,changeDetection:0}),t})();function $w(t,n,e){let i=1,s=n;const r=t.width;if(r>e)for(;r/s<e;)i+=1,s=Math.ceil(n/i);return[s,i]}let jw=(()=>{class t{constructor(){this.series=[],this.innerRadius=60,this.outerRadius=80,this.trimLabels=!0,this.maxLabelLength=10,this.tooltipDisabled=!1,this.animations=!0,this.select=new k,this.activate=new k,this.deactivate=new k,this.dblclick=new k}ngOnChanges(e){this.update()}update(){const i=function sw(){var t=q$,n=X$,e=null,i=Xe(0),s=Xe(lu),r=Xe(0);function o(a){var l,u,h,C,M,c=a.length,d=0,f=new Array(c),g=new Array(c),v=+i.apply(this,arguments),p=Math.min(lu,Math.max(-lu,s.apply(this,arguments)-v)),b=Math.min(Math.abs(p)/c,r.apply(this,arguments)),D=b*(p<0?-1:1);for(l=0;l<c;++l)(M=g[f[l]=l]=+t(a[l],l,a))>0&&(d+=M);for(null!=n?f.sort(function(N,I){return n(g[N],g[I])}):null!=e&&f.sort(function(N,I){return e(a[N],a[I])}),l=0,h=d?(p-c*D)/d:0;l<c;++l,v=C)g[u=f[l]]={data:a[u],index:l,value:M=g[u],startAngle:v,endAngle:C=v+(M>0?M*h:0)+D,padAngle:b};return g}return o.value=function(a){return arguments.length?(t="function"==typeof a?a:Xe(+a),o):t},o.sortValues=function(a){return arguments.length?(n=a,e=null,o):n},o.sort=function(a){return arguments.length?(e=a,n=null,o):e},o.startAngle=function(a){return arguments.length?(i="function"==typeof a?a:Xe(+a),o):i},o.endAngle=function(a){return arguments.length?(s="function"==typeof a?a:Xe(+a),o):s},o.padAngle=function(a){return arguments.length?(r="function"==typeof a?a:Xe(+a),o):r},o}().value(s=>s.value).sort(null)(this.series);this.max=function Z$(t,n){let e;if(void 0===n)for(const i of t)null!=i&&(e<i||void 0===e&&i>=i)&&(e=i);else{let i=-1;for(let s of t)null!=(s=n(s,++i,t))&&(e<s||void 0===e&&s>=s)&&(e=s)}return e}(i,s=>s.value),this.data=this.calculateLabelPositions(i),this.tooltipText=this.tooltipText||this.defaultTooltipText}midAngle(e){return e.startAngle+(e.endAngle-e.startAngle)/2}outerArc(){return Jg().innerRadius(1.5*this.outerRadius).outerRadius(1.5*this.outerRadius)}calculateLabelPositions(e){const r=e;r.forEach(o=>{o.pos=this.outerArc().centroid(o),o.pos[0]=1.5*this.outerRadius*(this.midAngle(o)<Math.PI?1:-1)});for(let o=0;o<r.length-1;o++){const a=r[o];if(this.labelVisible(a))for(let l=o+1;l<r.length;l++){const c=r[l];if(this.labelVisible(c)&&c.pos[0]*a.pos[0]>0){const u=10-Math.abs(c.pos[1]-a.pos[1]);u>0&&(c.pos[1]+=Math.sign(c.pos[0])*u)}}}return r}labelVisible(e){return this.showLabels&&e.endAngle-e.startAngle>Math.PI/30}getTooltipTitle(e){return this.tooltipTemplate?void 0:this.tooltipText(e)}labelText(e){return this.labelFormatting?this.labelFormatting(e.data.name):this.label(e)}label(e){return on(e.data.name)}defaultTooltipText(e){const i=this.label(e),s=on(e.data.value);return`\n <span class="tooltip-label">${$t(i)}</span>\n <span class="tooltip-val">${s}</span>\n `}color(e){return this.colors.getColor(this.label(e))}trackBy(e,i){return i.data.name}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name&&e.series===s.series)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-pie-series",""]],inputs:{series:"series",innerRadius:"innerRadius",outerRadius:"outerRadius",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",tooltipDisabled:"tooltipDisabled",animations:"animations",tooltipText:"tooltipText",colors:"colors",dims:"dims",explodeSlices:"explodeSlices",showLabels:"showLabels",gradient:"gradient",activeEntries:"activeEntries",labelFormatting:"labelFormatting",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[_e],attrs:xj,decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations",4,"ngIf"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","gradient","data","max","explodeSlices","isActive","animate","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate","dblclick"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations"]],template:function(e,i){1&e&&S(0,Tj,3,19,"g",0),2&e&&m("ngForOf",i.data)("ngForTrackBy",i.trackBy)},directives:[Oe,Ce,Vw,hp,Oi],encapsulation:2,changeDetection:0}),t})(),dp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Ri]]}),t})(),p8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Ri,dp,Bw]]}),t})(),m8=(()=>{class t{constructor(e,i,s){this.cd=i,this.zone=s,this.animations=!0,this.select=new k,this.value="",this.textFontSize=12,this.textTransform="",this.initialized=!1,this.bandHeight=10,this.textPadding=[10,20,5,20],this.labelFontSize=15,this.element=e.nativeElement}ngOnChanges(e){this.update()}ngOnDestroy(){cancelAnimationFrame(this.animationReq)}update(){this.zone.run(()=>{const e=this.data&&void 0!==this.data.value,i=this.valueFormatting||(a=>a.value.toLocaleString()),s=this.labelFormatting||(a=>$t(Os(a.label,55)));this.transform=`translate(${this.x} , ${this.y})`,this.textWidth=Math.max(0,this.width)-this.textPadding[1]-this.textPadding[3],this.cardWidth=Math.max(0,this.width),this.cardHeight=Math.max(0,this.height),this.label=this.label?this.label:this.data.name;const r={label:this.label,data:this.data,value:this.data.value};this.formattedLabel=s(r),this.transformBand=`translate(0 , ${this.cardHeight-this.bandHeight})`;const o=e?i(r):"";this.value=this.paddedValue(o),this.setPadding(),this.bandPath=vs(0,0,this.cardWidth,this.bandHeight,3,[!1,!1,!0,!0]),setTimeout(()=>{this.scaleText(),this.value=o,e&&!this.initialized&&setTimeout(()=>this.startCount(),20)},8)})}paddedValue(e){return this.medianSize&&this.medianSize>e.length&&(e+="\u2007".repeat(this.medianSize-e.length)),e}startCount(){if(!this.initialized&&this.animations){cancelAnimationFrame(this.animationReq);const e=this.data.value,i=function Sw(t){const n=Number(t);return n%1!=0&&Math.abs(n)<=10?2:0}(e),s=this.valueFormatting||(o=>o.value.toLocaleString());this.animationReq=Dw(0,e,i,1,({value:o,finished:a})=>{this.zone.run(()=>{this.value=s({label:this.label,data:this.data,value:o=a?e:o}),a||(this.value=this.paddedValue(this.value)),this.cd.markForCheck()})}),this.initialized=!0}}scaleText(){this.zone.run(()=>{const{width:e,height:i}=this.textEl.nativeElement.getBoundingClientRect();if(0===e||0===i)return;const s=this.textPadding[1]=this.textPadding[3]=this.cardWidth/8,a=Math.min((this.cardWidth-2*s)/e,this.cardHeight/3/i);this.textFontSize=Math.floor(this.textFontSize*a),this.labelFontSize=Math.min(this.textFontSize,15),this.setPadding(),this.cd.markForCheck()})}setPadding(){this.textPadding[1]=this.textPadding[3]=this.cardWidth/8;const e=this.cardHeight/2;this.textPadding[0]=e-this.textFontSize-this.labelFontSize/2,this.textPadding[2]=e-this.labelFontSize}onClick(){this.select.emit(this.data)}}return t.\u0275fac=function(e){return new(e||t)(Q(ct),Q(Js),Q(Ft))},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-card",""]],viewQuery:function(e,i){if(1&e&&gi(dw,5),2&e){let s;Me(s=Le())&&(i.textEl=s.first)}},inputs:{animations:"animations",label:"label",color:"color",bandColor:"bandColor",textColor:"textColor",x:"x",y:"y",width:"width",height:"height",data:"data",medianSize:"medianSize",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting"},outputs:{select:"select"},features:[_e],attrs:Cj,decls:10,vars:25,consts:[[1,"cell",3,"click"],["rx","3","ry","3",1,"card"],["class","card-band","stroke","none",4,"ngIf"],["x","5","alignment-baseline","hanging",1,"trimmed-label"],[3,"innerHTML"],["text-anchor","start","alignment-baseline","hanging",1,"value-text"],["textEl",""],["stroke","none",1,"card-band"]],template:function(e,i){1&e&&(w(),x(0,"g",0),E("click",function(){return i.onClick()}),V(1,"rect",1),S(2,wj,1,3,"path",2),x(3,"title"),Be(4),T(),x(5,"foreignObject",3),Ws(),V(6,"p",4),T(),w(),x(7,"text",5,6),Be(9),T()()),2&e&&(L("transform",i.transform),_(1),ke("fill",i.color),L("width",i.cardWidth)("height",i.cardHeight),_(1),m("ngIf",i.bandColor&&i.bandColor!==i.color),_(2),Kn(i.label),_(1),L("x",i.textPadding[3])("y",i.cardHeight-i.textPadding[2])("width",i.textWidth)("height",i.labelFontSize+i.textPadding[2]),_(1),ke("color",i.textColor)("font-size",i.labelFontSize,"px")("line-height",i.labelFontSize,"px"),m("innerHTML",i.formattedLabel,wl),_(1),ke("fill",i.textColor)("font-size",i.textFontSize,"pt"),L("x",i.textPadding[3])("y",i.textPadding[0]),_(2),gt(" ",i.value," "))},directives:[Ce],encapsulation:2,changeDetection:0}),t})();function Gw(t){const n=wa(t),{r:e,g:i,b:s,opacity:r}=n;return 0===r?n.toString():function _8({r:t,g:n,b:e},i){const s=i<0?0:255,r=i<0?-1*i:i;return`rgb(${t=Math.round((s-t)*r)+t}, ${n=Math.round((s-n)*r)+n}, ${e=Math.round((s-e)*r)+e})`}(n,(299*e+587*i+114*s)/1e3>=128?-.8:.8)}let y8=(()=>{class t{constructor(){this.innerPadding=15,this.emptyColor="rgba(0, 0, 0, 0)",this.animations=!0,this.select=new k}ngOnChanges(e){this.update()}update(){if(this.data.length>2){const i=this.valueFormatting||(o=>o.value.toLocaleString()),s=this.data.map(o=>o&&o.data&&null!=o.data.value?i({data:o.data,label:o?o.data.name:"",value:o&&o.data?o.data.value:""}).length:0).sort((o,a)=>a-o),r=Math.ceil(this.data.length/2);this.medianSize=s[r]}const e=this.getCards();this.cards=e.filter(i=>null!==i.data.value),this.emptySlots=e.filter(i=>null===i.data.value)}getCards(){const e="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[0]+this.innerPadding[2],i="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[1]+this.innerPadding[3];return this.data.map((s,r)=>{let o=s.data.name;o=o&&"Date"===o.constructor.name?o.toLocaleDateString():o&&o.toLocaleString();const a=s.data.value,l=o?this.colors.getColor(o):this.emptyColor,c=this.cardColor||l||"#000";return{x:s.x,y:s.y,width:s.width-i,height:s.height-e,color:c,bandColor:this.bandColor||l,textColor:this.textColor||Gw(c),label:o,data:s.data,tooltipText:`${o}: ${a}`}})}trackBy(e,i){return i.label}onClick(e){this.select.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-card-series",""]],inputs:{innerPadding:"innerPadding",emptyColor:"emptyColor",animations:"animations",data:"data",slots:"slots",dims:"dims",colors:"colors",cardColor:"cardColor",bandColor:"bandColor",textColor:"textColor",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting"},outputs:{select:"select"},features:[_e],attrs:Dj,decls:2,vars:4,consts:[["class","card-empty","rx","3","ry","3",3,"fill",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-card","",3,"x","y","width","height","color","bandColor","textColor","data","label","medianSize","valueFormatting","labelFormatting","animations","select",4,"ngFor","ngForOf","ngForTrackBy"],["rx","3","ry","3",1,"card-empty"],["ngx-charts-card","",3,"x","y","width","height","color","bandColor","textColor","data","label","medianSize","valueFormatting","labelFormatting","animations","select"]],template:function(e,i){1&e&&(S(0,Sj,1,6,"rect",0),S(1,Aj,1,13,"g",1)),2&e&&(m("ngForOf",i.emptySlots)("ngForTrackBy",i.trackBy),_(1),m("ngForOf",i.cards)("ngForTrackBy",i.trackBy))},directives:[Oe,m8],encapsulation:2,changeDetection:0}),t})(),v8=(()=>{class t extends _t{constructor(){super(...arguments),this.emptyColor="rgba(0, 0, 0, 0)",this.innerPadding=15,this.margin=[10,10,10,10]}get clickable(){return!!this.select.observers.length}update(){super.update(),this.dims=wt({width:this.width,height:this.height,margins:this.margin}),this.formatDates(),this.domain=this.getDomain(),this.setColors(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`;const e=$w(this.dims,this.results.length,150),i=e[0]*e[1],s=this.results.slice();for(;s.length<i;)s.push({value:null});this.data=function zw(t,n,e,i){const s=rn(),r=rn(),o=t.width,a=t.height,[l,c]=$w(t,n.length,e),u=[],h=[];for(let p=0;p<c;p++)h.push(p);for(let p=0;p<l;p++)u.push(p);s.domain(u),r.domain(h),s.rangeRound([0,o],.1),r.rangeRound([0,a],.1);const d=[],f=i||function f8(t){return t.map(n=>n?n.value:0).reduce((n,e)=>n+e,0)}(n),g=s.bandwidth(),v=r.bandwidth();for(let p=0;p<n.length;p++)d[p]={},d[p].data={name:n[p]?n[p].name:"",value:n[p]?n[p].value:void 0,extra:n[p]?n[p].extra:void 0,label:n[p]?n[p].label:""},d[p].x=s(p%l),d[p].y=r(Math.floor(p/l)),d[p].width=g,d[p].height=v,d[p].data.percent=f>0?d[p].data.value/f:0,d[p].data.total=f;return d}(this.dims,s,150,this.designatedTotal)}getDomain(){return this.results.map(e=>e.label)}onClick(e){this.select.emit(e)}setColors(){this.colors=new Dt(this.scheme,"ordinal",this.domain,this.customColors)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ft(t)))(i||t)}}(),t.\u0275cmp=q({type:t,selectors:[["ngx-charts-number-card"]],inputs:{emptyColor:"emptyColor",innerPadding:"innerPadding",cardColor:"cardColor",bandColor:"bandColor",textColor:"textColor",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting",designatedTotal:"designatedTotal"},features:[lt],decls:3,vars:20,consts:[[3,"view","showLegend","animations"],[1,"number-card","chart"],["ngx-charts-card-series","",3,"colors","cardColor","bandColor","textColor","emptyColor","data","dims","innerPadding","valueFormatting","labelFormatting","animations","select"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),w(),x(1,"g",1)(2,"g",2),E("select",function(r){return i.onClick(r)}),T()()()),2&e&&(m("view",Ke(17,st,i.width,i.height))("showLegend",!1)("animations",i.animations),_(1),qt("clickable",i.clickable),L("transform",i.transform),_(1),m("colors",i.colors)("cardColor",i.cardColor)("bandColor",i.bandColor)("textColor",i.textColor)("emptyColor",i.emptyColor)("data",i.data)("dims",i.dims)("innerPadding",i.innerPadding)("valueFormatting",i.valueFormatting)("labelFormatting",i.labelFormatting)("animations",i.animations))},directives:[mt,y8],styles:[kt,"ngx-charts-number-card .cell .trimmed-label{font-size:12px;line-height:1em;overflow:hidden;pointer-events:none;text-align:left}ngx-charts-number-card .cell .trimmed-label p{margin:0;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap;width:100%}ngx-charts-number-card .cell .value-text{pointer-events:none}ngx-charts-number-card .number-card.clickable .cell .card,ngx-charts-number-card .number-card.clickable .cell .card-band{cursor:pointer}"],encapsulation:2,changeDetection:0}),t})(),x8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Ri]]}),t})(),C8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Ri]]}),t})(),w8=(()=>{class t extends _t{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.min=0,this.max=100,this.bigSegments=10,this.smallSegments=5,this.showAxis=!0,this.startAngle=-120,this.angleSpan=240,this.activeEntries=[],this.tooltipDisabled=!1,this.showText=!0,this.activate=new k,this.deactivate=new k,this.resizeScale=1,this.rotation="",this.textTransform="scale(1, 1)",this.cornerRadius=10}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>this.scaleText())}update(){super.update(),this.showAxis?this.margin||(this.margin=[60,100,60,100]):this.margin||(this.margin=[10,20,10,20]),this.startAngle<0&&(this.startAngle=this.startAngle%360+360),this.angleSpan=Math.min(this.angleSpan,360),this.dims=wt({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend,legendPosition:this.legendPosition}),this.domain=this.getDomain(),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.outerRadius=Math.min(this.dims.width,this.dims.height)/2,this.arcs=this.getArcs(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.margin[3]+this.dims.width/2}, ${this.margin[0]+this.dims.height/2})`,this.rotation=`rotate(${this.startAngle})`,setTimeout(()=>this.scaleText(),50)}getArcs(){const e=[],s=Math.min(.7*this.outerRadius/this.results.length,10),r=.7*s;this.textRadius=this.outerRadius-this.results.length*s,this.cornerRadius=Math.floor(r/2);let o=0;for(const a of this.results){const l=this.outerRadius-o*s,c=l-r,u={endAngle:this.angleSpan*Math.PI/180,innerRadius:c,outerRadius:l,data:{value:this.max,name:a.name}},h={endAngle:Math.min(this.valueScale(a.value),this.angleSpan)*Math.PI/180,innerRadius:c,outerRadius:l,data:{value:a.value,name:a.name}};e.push({backgroundArc:u,valueArc:h}),o++}return e}getDomain(){return this.results.map(e=>e.name)}getValueDomain(){const e=this.results.map(r=>r.value),i=Math.min(...e),s=Math.max(...e);return this.min=void 0!==this.min?Math.min(this.min,i):i,this.max=void 0!==this.max?Math.max(this.max,s):s,[this.min,this.max]}getValueScale(){return Je().range([0,this.angleSpan]).nice().domain(this.valueDomain)}getDisplayValue(){const e=this.results.map(i=>i.value).reduce((i,s)=>i+s,0);return this.textValue&&0!==this.textValue.length?this.textValue.toLocaleString():this.valueFormatting?this.valueFormatting(e):e.toLocaleString()}scaleText(e=!0){if(!this.showText)return;const{width:i}=this.textEl.nativeElement.getBoundingClientRect(),s=this.resizeScale;this.resizeScale=0===i?1:Math.floor(this.textRadius/(i/this.resizeScale)*100)/100,this.resizeScale!==s&&(this.textTransform=`scale(${this.resizeScale}, ${this.resizeScale})`,this.cd.markForCheck(),e&&setTimeout(()=>this.scaleText(!1),50))}onClick(e){this.select.emit(e)}getLegendOptions(){return{scaleType:"ordinal",colors:this.colors,domain:this.domain,title:this.legendTitle,position:this.legendPosition}}setColors(){this.colors=new Dt(this.scheme,"ordinal",this.domain,this.customColors)}onActivate(e){this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name&&e.series===s.series)}trackBy(e,i){return i.valueArc.data.name}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ft(t)))(i||t)}}(),t.\u0275cmp=q({type:t,selectors:[["ngx-charts-gauge"]],contentQueries:function(e,i,s){if(1&e&&rt(s,Nt,5),2&e){let r;Me(r=Le())&&(i.tooltipTemplate=r.first)}},viewQuery:function(e,i){if(1&e&&gi(dw,5),2&e){let s;Me(s=Le())&&(i.textEl=s.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",min:"min",max:"max",bigSegments:"bigSegments",smallSegments:"smallSegments",showAxis:"showAxis",startAngle:"startAngle",angleSpan:"angleSpan",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",showText:"showText",margin:"margin",textValue:"textValue",units:"units",results:"results",axisTickFormatting:"axisTickFormatting",valueFormatting:"valueFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[lt],decls:5,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"gauge","chart"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-gauge-axis","",3,"bigSegments","smallSegments","min","max","radius","angleSpan","valueScale","startAngle","tickFormatting",4,"ngIf"],["alignment-baseline","central",3,"textAnchor",4,"ngIf"],["ngx-charts-gauge-arc","",3,"backgroundArc","valueArc","cornerRadius","colors","isActive","tooltipDisabled","tooltipTemplate","valueFormatting","animations","select","activate","deactivate"],["ngx-charts-gauge-axis","",3,"bigSegments","smallSegments","min","max","radius","angleSpan","valueScale","startAngle","tickFormatting"],["alignment-baseline","central"],["textEl",""],["x","0","dy","0"],["x","0","dy","1.2em"]],template:function(e,i){1&e&&(x(0,"ngx-charts-chart",0),E("legendLabelClick",function(r){return i.onClick(r)})("legendLabelActivate",function(r){return i.onActivate(r)})("legendLabelDeactivate",function(r){return i.onDeactivate(r)}),w(),x(1,"g",1),S(2,Hj,2,10,"g",2),S(3,Vj,1,9,"g",3),S(4,$j,6,5,"text",4),T()()),2&e&&(m("view",Ke(10,st,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),_(1),L("transform",i.transform),_(1),m("ngForOf",i.arcs)("ngForTrackBy",i.trackBy),_(1),m("ngIf",i.showAxis),_(1),m("ngIf",i.showText))},directives:function(){return[mt,Oe,D8,Ce,S8]},styles:[kt,".gauge .background-arc path{fill:rgba(0,0,0,.05)}.gauge .gauge-tick path{stroke:#666}.gauge .gauge-tick text{fill:#666;font-size:12px;font-weight:700}.gauge .gauge-tick-large path{stroke-width:2px}.gauge .gauge-tick-small path{stroke-width:1px}"],encapsulation:2,changeDetection:0}),t})(),D8=(()=>{class t{constructor(){this.isActive=!1,this.tooltipDisabled=!1,this.animations=!0,this.select=new k,this.activate=new k,this.deactivate=new k}tooltipText(e){const i=on(e.data.name);let s;return s=this.valueFormatting?this.valueFormatting(e.data.value):on(e.data.value),`\n <span class="tooltip-label">${$t(i)}</span>\n <span class="tooltip-val">${s}</span>\n `}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-gauge-arc",""]],inputs:{isActive:"isActive",tooltipDisabled:"tooltipDisabled",animations:"animations",backgroundArc:"backgroundArc",valueArc:"valueArc",cornerRadius:"cornerRadius",colors:"colors",valueFormatting:"valueFormatting",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},attrs:zj,decls:2,vars:23,consts:[["ngx-charts-pie-arc","",1,"background-arc",3,"startAngle","endAngle","innerRadius","outerRadius","cornerRadius","data","animate","pointerEvents"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"startAngle","endAngle","innerRadius","outerRadius","cornerRadius","fill","data","animate","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"]],template:function(e,i){1&e&&(w(),V(0,"g",0),x(1,"g",1),E("select",function(r){return i.select.emit(r)})("activate",function(r){return i.activate.emit(r)})("deactivate",function(r){return i.deactivate.emit(r)}),T()),2&e&&(m("startAngle",0)("endAngle",i.backgroundArc.endAngle)("innerRadius",i.backgroundArc.innerRadius)("outerRadius",i.backgroundArc.outerRadius)("cornerRadius",i.cornerRadius)("data",i.backgroundArc.data)("animate",!1)("pointerEvents",!1),_(1),m("startAngle",0)("endAngle",i.valueArc.endAngle)("innerRadius",i.valueArc.innerRadius)("outerRadius",i.valueArc.outerRadius)("cornerRadius",i.cornerRadius)("fill",i.colors.getColor(i.valueArc.data.name))("data",i.valueArc.data)("animate",i.animations)("isActive",i.isActive)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",i.tooltipTemplate?void 0:i.tooltipText(i.valueArc))("tooltipTemplate",i.tooltipTemplate)("tooltipContext",i.valueArc.data))},directives:[hp,Oi],encapsulation:2,changeDetection:0}),t})(),S8=(()=>{class t{constructor(){this.rotate=""}ngOnChanges(e){this.update()}update(){this.rotationAngle=-90+this.startAngle,this.rotate=`rotate(${this.rotationAngle})`,this.ticks=this.getTicks()}getTicks(){const e=this.angleSpan/this.bigSegments,i=e/this.smallSegments,r={big:[],small:[]},o=this.radius+10,a=o+20+10;for(let l=0;l<=this.bigSegments;l++){const c=l*e,u=c*Math.PI/180,h=this.getTextAnchor(c);let d=!1;if(0===l&&360===this.angleSpan&&(d=!0),!d){let f=Number.parseFloat(this.valueScale.invert(c).toString()).toLocaleString();this.tickFormatting&&(f=this.tickFormatting(f)),r.big.push({line:this.getTickPath(o,20,u),textAnchor:h,text:f,textTransform:`\n translate(${a*Math.cos(u)}, ${a*Math.sin(u)}) rotate(${-this.rotationAngle})\n `})}if(l!==this.bigSegments)for(let f=1;f<=this.smallSegments;f++){const v=(c+f*i)*Math.PI/180;r.small.push({line:this.getTickPath(o,10,v)})}}return r}getTextAnchor(e){let i="middle";return(e=(this.startAngle+e)%360)>45&&e<=135?i="start":e>225&&e<=315&&(i="end"),i}getTickPath(e,i,s){const r=e*Math.sin(s),o=(e+i)*Math.sin(s),c=[{x:e*Math.cos(s),y:r},{x:(e+i)*Math.cos(s),y:o}];return ou().x(h=>h.x).y(h=>h.y)(c)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=q({type:t,selectors:[["g","ngx-charts-gauge-axis",""]],inputs:{bigSegments:"bigSegments",smallSegments:"smallSegments",min:"min",max:"max",angleSpan:"angleSpan",startAngle:"startAngle",radius:"radius",valueScale:"valueScale",tickFormatting:"tickFormatting"},features:[_e],attrs:jj,decls:4,vars:4,consts:[["class","gauge-tick gauge-tick-large",4,"ngFor","ngForOf"],["class","gauge-tick gauge-tick-small",4,"ngFor","ngForOf"],[1,"gauge-tick","gauge-tick-large"],["alignment-baseline","central"],[1,"gauge-tick","gauge-tick-small"]],template:function(e,i){1&e&&(w(),x(0,"g"),S(1,Gj,2,1,"g",0),S(2,Wj,3,4,"g",0),S(3,Uj,2,1,"g",1),T()),2&e&&(L("transform",i.rotate),_(1),m("ngForOf",i.ticks.big),_(1),m("ngForOf",i.ticks.big),_(1),m("ngForOf",i.ticks.small))},directives:[Oe],encapsulation:2,changeDetection:0}),t})(),A8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[Ri,dp,Pw]]}),t})(),k8=(()=>{class t{constructor(){!function E8(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[Ri,t8,Pw,s8,a8,Bw,p8,x8,dp,C8,A8]}),t})();var Ww=gp(289);class M8{constructor(n,e,i,s,r){this.element=n,this.newWidth=e,this.newHeight=i,this.oldWidth=s,this.oldHeight=r}}let L8=(()=>{class t{constructor(e){this.element=e,this.resized=new k}ngOnInit(){Ww.ResizeSensor&&(this.resizeSensor=new Ww.ResizeSensor(this.element.nativeElement,()=>this.onResized()))}ngOnDestroy(){this.resizeSensor&&this.resizeSensor.detach()}onResized(){const e=this.element.nativeElement.clientWidth,i=this.element.nativeElement.clientHeight;if(e===this.oldWidth&&i===this.oldHeight)return;const s=new M8(this.element,e,i,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.emit(s)}}return t.\u0275fac=function(e){return new(e||t)(Q(ct))},t.\u0275dir=xn({type:t,selectors:[["","resized",""]],outputs:{resized:"resized"}}),t})(),F8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[]]}),t})();const I8=["chartContainer"];function P8(t,n){if(1&t){const e=j();Xi(0),x(1,"ngx-charts-bar-vertical",3),E("select",function(s){return A(e),y().onSelect(s)}),T(),qi()}if(2&t){const e=y();_(1),m("results",e.chart.results)("scheme",e.chart.scheme)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("gradient",e.chart.gradient)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)("schemeType",e.chart.schemeType)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("showGridLines",e.chart.showGridLines)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("barPadding",e.chart.barPadding)("roundDomains",e.chart.roundDomains)("roundEdges",e.chart.roundEdges)("yScaleMax",e.chart.yScaleMax)("yScaleMin",e.chart.yScaleMin)("showDataLabel",e.chart.showDataLabel)}}function N8(t,n){if(1&t){const e=j();Xi(0),x(1,"ngx-charts-pie-chart",4),E("select",function(s){return A(e),y().onSelect(s)}),T(),qi()}if(2&t){const e=y();_(1),m("results",e.chart.results)("scheme",e.chart.scheme)("customColors",e.chart.customColors)("animations",e.chart.animations)("labels",e.chart.labels)("trimLabels",e.chart.trimLabels)("maxLabelLength",e.chart.maxLabelLength)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("explodeSlices",e.chart.explodeSlices)("doughnut",e.chart.doughnut)("arcWidth",e.chart.arcWidth)("gradient",e.chart.gradient)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)("schemeType",e.chart.schemeType)}}function O8(t,n){if(1&t){const e=j();Xi(0),x(1,"ngx-charts-number-card",5),E("select",function(s){return A(e),y().onSelect(s)}),T(),qi()}if(2&t){const e=y();_(1),m("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("cardColor",e.chart.cardColor)("bandColor",e.chart.bandColor)("emptyColor",e.chart.emptyColor)("innerPadding",e.chart.innerPadding)}}function R8(t,n){if(1&t){const e=j();Xi(0),x(1,"ngx-charts-gauge",6),E("select",function(s){return A(e),y().onSelect(s)}),T(),qi()}if(2&t){const e=y();_(1),m("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("units",e.chart.units)("min",e.chart.min)("max",e.chart.max)("bigSegments",e.chart.bigSegments)("smallSegments",e.chart.smallSegments)("showAxis",e.chart.showAxis)("startAngle",e.chart.startAngle)("angleSpan",e.chart.angleSpan)("activeEntries",e.chart.activeEntries)("tooltipDisabled",e.chart.tooltipDisabled)}}function B8(t,n){if(1&t){const e=j();Xi(0),x(1,"ngx-charts-area-chart-normalized",7),E("select",function(s){return A(e),y().onSelect(s)}),T(),qi()}if(2&t){const e=y();_(1),m("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("timeline",e.chart.timeline)("gradient",e.chart.gradient)("showGridLines",e.chart.showGridLines)("activeEntries",e.chart.activeEntries)("schemeType",e.chart.schemeType)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("roundDomains",e.chart.roundDomains)("tooltipDisabled",e.chart.tooltipDisabled)}}function H8(t,n){if(1&t){const e=j();Xi(0),x(1,"ngx-charts-area-chart-stacked",8),E("select",function(s){return A(e),y().onSelect(s)}),T(),qi()}if(2&t){const e=y();_(1),m("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("timeline",e.chart.timeline)("gradient",e.chart.gradient)("showGridLines",e.chart.showGridLines)("activeEntries",e.chart.activeEntries)("schemeType",e.chart.schemeType)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("roundDomains",e.chart.roundDomains)("tooltipDisabled",e.chart.tooltipDisabled)("xScaleMin",e.chart.xScaleMin)("xScaleMax",e.chart.xScaleMax)("yScaleMin",e.chart.yScaleMin)("yScaleMax",e.chart.yScaleMax)}}function V8(t,n){if(1&t){const e=j();Xi(0),x(1,"ngx-charts-line-chart",9),E("select",function(s){return A(e),y().onSelect(s)}),T(),qi()}if(2&t){const e=y();_(1),m("results",e.chart.results)("scheme",e.chart.scheme)("schemeType",e.chart.schemeType)("customColors",e.chart.customColors)("animations",e.chart.animations)("legend",e.chart.legend)("legendTitle",e.chart.legendTitle)("xAxis",e.chart.xAxis)("yAxis",e.chart.yAxis)("showXAxisLabel",e.chart.showXAxisLabel)("showYAxisLabel",e.chart.showYAxisLabel)("xAxisLabel",e.chart.xAxisLabel)("yAxisLabel",e.chart.yAxisLabel)("timeline",e.chart.timeline)("gradient",e.chart.gradient)("showGridLines",e.chart.showGridLines)("activeEntries",e.chart.activeEntries)("schemeType",e.chart.schemeType)("xAxisTicks",e.chart.xAxisTicks)("yAxisTicks",e.chart.yAxisTicks)("roundDomains",e.chart.roundDomains)("tooltipDisabled",e.chart.tooltipDisabled)("autoScale",e.chart.autoScale)("gradient",e.chart.gradient)("rangeFillOpacity",e.chart.rangeFillOpacity)("showRefLines",e.chart.showRefLines)("referenceLines",e.chart.referenceLines)("showRefLabels",e.chart.showRefLabels)("xScaleMin",e.chart.xScaleMin)("xScaleMax",e.chart.xScaleMax)("yScaleMin",e.chart.yScaleMin)("yScaleMax",e.chart.yScaleMax)}}let $8=(()=>{class t{constructor(e,i){this.elementRef=e,this.tooltipService=i}ngAfterViewInit(){this.tooltipService.injectionService.setRootViewContainer(this.chartContainer)}onResized(e){window.dispatchEvent(new Event("resize"))}ngOnChanges(){this.chart={type:this.type,results:this.results,legendTitle:this.legendTitle||"Legend",scheme:this.scheme||"cool",animations:this.animations||!0,legend:this.legend||!1,labels:this.labels||!1,customColors:this.customColors||void 0,schemeType:this.schemeType||"ordinal",explodeSlices:this.explodeSlices||!1,doughnut:this.doughnut||!1,arcWidth:this.arcWidth||.25,gradient:this.gradient||!1,activeEntries:this.activeEntries||[],tooltipDisabled:this.tooltipDisabled||!1,trimLabels:this.trimLabels||!0,maxLabelLength:this.maxLabelLength||10,xAxis:this.xAxis||void 0,yAxis:this.yAxis||void 0,showXAxisLabel:this.showXAxisLabel||void 0,showYAxisLabel:this.showYAxisLabel||void 0,xAxisLabel:this.xAxisLabel||void 0,yAxisLabel:this.yAxisLabel||void 0,showGridLines:this.showGridLines||!0,xAxisTicks:this.xAxisTicks||void 0,yAxisTicks:this.yAxisTicks||void 0,barPadding:this.barPadding||8,roundDomains:this.roundDomains||!1,roundEdges:this.roundEdges||!0,yScaleMax:this.yScaleMax||void 0,yScaleMin:this.yScaleMin||void 0,showDataLabel:this.showDataLabel||!1,cardColor:this.cardColor||void 0,bandColor:this.bandColor||void 0,emptyColor:this.emptyColor||"rgba(0, 0, 0, 0)",innerPadding:this.innerPadding||15,textColor:this.textColor||void 0,legendPosition:this.legendPosition||"right",min:this.min||0,max:this.max||100,units:this.units||void 0,bigSegments:this.bigSegments||10,smallSegments:this.smallSegments||5,showAxis:this.showAxis||!0,startAngle:this.startAngle||-120,angleSpan:this.angleSpan||240,timeline:this.timeline||void 0,xScaleMin:this.xScaleMin||void 0,xScaleMax:this.xScaleMax||void 0,autoScale:this.autoScale||void 0,rangeFillOpacity:this.rangeFillOpacity||void 0,showRefLines:this.showRefLines||!1,referenceLines:this.referenceLines||void 0,showRefLabels:this.showRefLabels||!0}}}return t.\u0275fac=function(e){return new(e||t)(Q(ct),Q(du))},t.\u0275cmp=q({type:t,selectors:[["drayman-ngx-charts-internal"]],viewQuery:function(e,i){if(1&e&&gi(I8,7,fi),2&e){let s;Me(s=Le())&&(i.chartContainer=s.first)}},inputs:{onSelect:"onSelect",type:"type",results:"results",legendTitle:"legendTitle",scheme:"scheme",animations:"animations",legend:"legend",labels:"labels",customColors:"customColors",schemeType:"schemeType",explodeSlices:"explodeSlices",doughnut:"doughnut",arcWidth:"arcWidth",gradient:"gradient",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",showGridLines:"showGridLines",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",cardColor:"cardColor",bandColor:"bandColor",emptyColor:"emptyColor",innerPadding:"innerPadding",textColor:"textColor",legendPosition:"legendPosition",min:"min",max:"max",units:"units",bigSegments:"bigSegments",smallSegments:"smallSegments",showAxis:"showAxis",startAngle:"startAngle",angleSpan:"angleSpan",timeline:"timeline",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",autoScale:"autoScale",rangeFillOpacity:"rangeFillOpacity",showRefLines:"showRefLines",referenceLines:"referenceLines",showRefLabels:"showRefLabels"},features:[_e],decls:9,vars:8,consts:[[2,"width","100%","height","100%",3,"ngSwitch","resized"],["chartContainer",""],[4,"ngSwitchCase"],[3,"results","scheme","customColors","animations","legend","legendTitle","gradient","activeEntries","tooltipDisabled","schemeType","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","xAxisTicks","yAxisTicks","barPadding","roundDomains","roundEdges","yScaleMax","yScaleMin","showDataLabel","select"],[3,"results","scheme","customColors","animations","labels","trimLabels","maxLabelLength","legend","legendTitle","explodeSlices","doughnut","arcWidth","gradient","activeEntries","tooltipDisabled","schemeType","select"],[3,"results","scheme","schemeType","customColors","animations","cardColor","bandColor","emptyColor","innerPadding","select"],[3,"results","scheme","schemeType","customColors","animations","legend","legendTitle","units","min","max","bigSegments","smallSegments","showAxis","startAngle","angleSpan","activeEntries","tooltipDisabled","select"],[3,"results","scheme","schemeType","customColors","animations","legend","legendTitle","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","timeline","gradient","showGridLines","activeEntries","xAxisTicks","yAxisTicks","roundDomains","tooltipDisabled","select"],[3,"results","scheme","schemeType","customColors","animations","legend","legendTitle","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","timeline","gradient","showGridLines","activeEntries","xAxisTicks","yAxisTicks","roundDomains","tooltipDisabled","xScaleMin","xScaleMax","yScaleMin","yScaleMax","select"],[3,"results","scheme","schemeType","customColors","animations","legend","legendTitle","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","timeline","gradient","showGridLines","activeEntries","xAxisTicks","yAxisTicks","roundDomains","tooltipDisabled","autoScale","rangeFillOpacity","showRefLines","referenceLines","showRefLabels","xScaleMin","xScaleMax","yScaleMin","yScaleMax","select"]],template:function(e,i){1&e&&(x(0,"div",0,1),E("resized",function(r){return i.onResized(r)}),S(2,P8,2,25,"ng-container",2),S(3,N8,2,16,"ng-container",2),S(4,O8,2,9,"ng-container",2),S(5,R8,2,17,"ng-container",2),S(6,B8,2,22,"ng-container",2),S(7,H8,2,26,"ng-container",2),S(8,V8,2,32,"ng-container",2),T()),2&e&&(m("ngSwitch",null==i.chart?null:i.chart.type),_(2),m("ngSwitchCase","verticalBar"),_(1),m("ngSwitchCase","pie"),_(1),m("ngSwitchCase","numberCard"),_(1),m("ngSwitchCase","gauge"),_(1),m("ngSwitchCase","areaNormalized"),_(1),m("ngSwitchCase","areaStacked"),_(1),m("ngSwitchCase","line"))},directives:[uc,L8,C0,n8,d8,v8,w8,Jj,e8,l8],styles:[""]}),t})(),z8=(()=>{class t{constructor(e){this.injector=e}ngDoBootstrap(){const e=function L2(t,n){const e=function w2(t,n){return n.get(Zs).resolveComponentFactory(t).inputs}(t,n.injector),i=n.strategyFactory||new E2(t,n.injector),s=function C2(t){const n={};return t.forEach(({propName:e,templateName:i})=>{n[function y2(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(i)]=e}),n}(e);class r extends M2{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||n.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(s[a],c)}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 r.observedAttributes=Object.keys(s),e.forEach(({propName:o})=>{Object.defineProperty(r.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),r}($8,{injector:this.injector});customElements.define("drayman-ngx-charts",e)}}return t.\u0275fac=function(e){return new(e||t)(pe(Dn))},t.\u0275mod=St({type:t}),t.\u0275inj=xt({imports:[[B0,kO,k8,F8]]}),t})();(function hF(){Xx=!1})(),GP().bootstrapModule(z8).catch(t=>console.error(t))})()})();