@drayman/elements 1.23.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.
- package/README.md +2 -4
- package/dist/button/3rdpartylicenses.txt +3 -45
- package/dist/button/main.js +1 -1
- package/dist/button/polyfills.js +1 -1
- package/dist/calendar/3rdpartylicenses.txt +3 -52
- package/dist/calendar/favicon.ico +0 -0
- package/dist/calendar/main.js +1 -1
- package/dist/calendar/polyfills.js +1 -1
- package/dist/calendar/styles.css +1 -1
- package/dist/checkbox/3rdpartylicenses.txt +3 -30
- package/dist/checkbox/main.js +1 -1
- package/dist/checkbox/polyfills.js +1 -1
- package/dist/claviz-charts/3rdpartylicenses.txt +1 -28
- package/dist/claviz-charts/main.js +1 -1
- package/dist/claviz-charts/polyfills.js +1 -1
- package/dist/code-editor/3rdpartylicenses.txt +2 -139
- package/dist/code-editor/main.js +1 -1
- package/dist/code-editor/polyfills.js +1 -1
- package/dist/datepicker/3rdpartylicenses.txt +3 -91
- package/dist/datepicker/main.js +1 -1
- package/dist/datepicker/polyfills.js +1 -1
- package/dist/file-uploader/3rdpartylicenses.txt +1 -28
- package/dist/file-uploader/main.js +1 -1
- package/dist/file-uploader/polyfills.js +1 -1
- package/dist/{jsondiffpatch → gauge}/3rdpartylicenses.txt +15 -38
- package/dist/gauge/main.js +1 -0
- package/dist/gauge/polyfills.js +1 -0
- package/dist/grid/3rdpartylicenses.txt +3 -45
- package/dist/grid/main.js +1 -1
- package/dist/grid/polyfills.js +1 -1
- package/dist/menu/3rdpartylicenses.txt +3 -45
- package/dist/menu/main.js +1 -1
- package/dist/menu/polyfills.js +1 -1
- package/dist/nebula/3rdpartylicenses.txt +24 -62
- package/dist/nebula/main.js +1 -1
- package/dist/nebula/polyfills.js +1 -1
- package/dist/ngx-charts/3rdpartylicenses.txt +2 -44
- package/dist/ngx-charts/main.js +1 -1
- package/dist/ngx-charts/polyfills.js +1 -1
- package/dist/ngx-graph/3rdpartylicenses.txt +3 -69
- package/dist/ngx-graph/favicon.ico +0 -0
- package/dist/ngx-graph/main.js +1 -1
- package/dist/ngx-graph/polyfills.js +1 -1
- package/dist/number-field/3rdpartylicenses.txt +3 -30
- package/dist/number-field/main.js +1 -1
- package/dist/number-field/polyfills.js +1 -1
- package/dist/pdf-viewer/3rdpartylicenses.txt +26 -12
- package/dist/pdf-viewer/main.js +1 -1
- package/dist/pdf-viewer/polyfills.js +1 -1
- package/dist/radio-group/3rdpartylicenses.txt +3 -52
- package/dist/radio-group/main.js +1 -1
- package/dist/radio-group/polyfills.js +1 -1
- package/dist/select/3rdpartylicenses.txt +3 -30
- package/dist/select/main.js +1 -1
- package/dist/select/polyfills.js +1 -1
- package/dist/table/3rdpartylicenses.txt +3 -91
- package/dist/table/main.js +1 -1
- package/dist/table/polyfills.js +1 -1
- package/dist/text-field/3rdpartylicenses.txt +3 -45
- package/dist/text-field/main.js +1 -1
- package/dist/text-field/polyfills.js +1 -1
- package/dist/textarea-field/3rdpartylicenses.txt +3 -30
- package/dist/textarea-field/main.js +1 -1
- package/dist/textarea-field/polyfills.js +1 -1
- package/dist/timepicker/3rdpartylicenses.txt +3 -67
- package/dist/timepicker/main.js +1 -1
- package/dist/timepicker/polyfills.js +1 -1
- package/dist/types/checkbox/src/app/models/checkbox-options.d.ts +0 -0
- package/dist/types/claviz-charts/src/app/models/claviz-charts-options.d.ts +0 -0
- package/dist/types/datepicker/src/app/models/datepicker-options.d.ts +0 -0
- package/dist/types/file-uploader/src/app/models/file-uploader-options.d.ts +0 -0
- package/dist/types/gauge/src/app/models/gauge-options.d.ts +87 -0
- package/dist/types/menu/src/app/models/menu-options.d.ts +0 -0
- package/dist/types/nebula/src/app/models/nebula-options.d.ts +15 -0
- package/dist/types/ngx-charts/src/app/models/ngx-charts-options.d.ts +0 -0
- package/dist/types/ngx-graph/src/app/models/ngx-graph-options.d.ts +0 -0
- package/dist/types/number-field/src/app/models/number-field-options.d.ts +0 -0
- package/dist/types/pdf-viewer/src/app/models/pdf-viewer-options.d.ts +0 -0
- package/dist/types/radio-group/src/app/models/radio-group-options.d.ts +0 -0
- package/dist/types/select/src/app/models/select-options.d.ts +0 -0
- package/dist/types/shared/models/autocomplete-options-base.d.ts +0 -0
- package/dist/types/shared/models/button-options-base.d.ts +0 -0
- package/dist/types/shared/models/button-options.d.ts +0 -0
- package/dist/types/shared/models/field-options-base.d.ts +0 -0
- package/dist/types/shared/models/input-field-options-base.d.ts +0 -0
- package/dist/types/shared/models/input-mask-options-base.d.ts +0 -0
- package/dist/types/table/src/app/models/table-options.d.ts +0 -0
- package/dist/types/text-field/src/app/models/text-field-options.d.ts +0 -0
- package/dist/types/textarea-field/src/app/models/textarea-field-options.d.ts +0 -0
- package/dist/types/timepicker/src/app/models/timepicker-options.d.ts +0 -0
- package/dist/types/youtube-player/src/app/models/youtube-player-options.d.ts +0 -0
- package/dist/youtube-player/3rdpartylicenses.txt +2 -29
- package/dist/youtube-player/main.js +1 -1
- package/dist/youtube-player/polyfills.js +1 -1
- package/package.json +188 -183
- package/types/index.d.ts +35 -0
- package/dist/jsondiffpatch/favicon.ico +0 -0
- package/dist/jsondiffpatch/main.js +0 -1
- package/dist/jsondiffpatch/polyfills.js +0 -1
- package/dist/monaco-editor/3rdpartylicenses.txt +0 -406
- package/dist/monaco-editor/favicon.ico +0 -0
- package/dist/monaco-editor/main.js +0 -1
- package/dist/monaco-editor/polyfills.js +0 -1
- package/dist/monaco-editor/styles.css +0 -1
- package/dist/picasso/3rdpartylicenses.txt +0 -465
- package/dist/picasso/favicon.ico +0 -0
- package/dist/picasso/main.js +0 -1
- package/dist/picasso/polyfills.js +0 -1
- package/dist/picasso/styles.css +0 -0
- package/dist/pivot-grid/3rdpartylicenses.txt +0 -418
- package/dist/pivot-grid/main.js +0 -1
- package/dist/pivot-grid/polyfills.js +0 -1
- package/dist/pivot-grid/styles.css +0 -0
- package/dist/types/picasso/src/app/models/picasso-options.d.ts +0 -3
- package/dist/types/pivot-grid/src/app/models/pivot-grid-options.d.ts +0 -62
- /package/dist/{pivot-grid → gauge}/favicon.ico +0 -0
- /package/dist/{jsondiffpatch → gauge}/styles.css +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e){var t={};function n(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(s,r,(function(t){return e[t]}).bind(null,r));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({0:function(e,t,n){e.exports=n("zUnb")},"4Xgz":function(e,t,n){"use strict";var s,r,i;"undefined"!=typeof window&&window,r=[n("MXs6")],void 0===(i="function"==typeof(s=function(e){var t=function(){var t,n={},s=[];function r(e){e||(e=document.documentElement);var t=window.getComputedStyle(e,null).fontSize;return parseFloat(t)||16}function i(e,t){var n=t.split(/\d/),s=n[n.length-1];switch(t=parseFloat(t),s){case"px":return t;case"em":return t*r(e);case"rem":return t*r();case"vw":return t*document.documentElement.clientWidth/100;case"vh":return t*document.documentElement.clientHeight/100;case"vmin":case"vmax":var i=document.documentElement.clientWidth/100,o=document.documentElement.clientHeight/100;return t*(0,Math["vmin"===s?"min":"max"])(i,o);default:return t}}function o(e,t){var s,r,o,a,l,c,u,h;this.element=e;var d=["min-width","min-height","max-width","max-height"];this.call=function(){for(s in o=function(e){if(!e.getBoundingClientRect)return{width:e.offsetWidth,height:e.offsetHeight};var t=e.getBoundingClientRect();return{width:Math.round(t.width),height:Math.round(t.height)}}(this.element),c={},n[t])n[t].hasOwnProperty(s)&&(a=i(this.element,(r=n[t][s]).value),l="width"===r.property?o.width:o.height,u="","min"===r.mode&&l>=a&&(u+=r.value),"max"===r.mode&&l<=a&&(u+=r.value),c[h=r.mode+"-"+r.property]||(c[h]=""),u&&-1===(" "+c[h]+" ").indexOf(" "+u+" ")&&(c[h]+=" "+u));for(var e in d)d.hasOwnProperty(e)&&(c[d[e]]?this.element.setAttribute(d[e],c[d[e]].substr(1)):this.element.removeAttribute(d[e]))}}function a(t,n){t.elementQueriesSetupInformation||(t.elementQueriesSetupInformation=new o(t,n)),t.elementQueriesSensor||(t.elementQueriesSensor=new e(t,(function(){t.elementQueriesSetupInformation.call()})))}function l(e,r,i,o){if(void 0===n[e]){n[e]=[];var a=s.length;t.innerHTML+="\n"+e+" {animation: 0.1s element-queries;}",t.innerHTML+="\n"+e+" > .resize-sensor {min-width: "+a+"px;}",s.push(e)}n[e].push({mode:r,property:i,value:o})}function c(e){var t;if(document.querySelectorAll&&(t=e?e.querySelectorAll.bind(e):document.querySelectorAll.bind(document)),t||"undefined"==typeof $$||(t=$$),t||"undefined"==typeof jQuery||(t=jQuery),!t)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return t}function u(t){var n=[],s=[],r=[],i=0,o=-1,a=[];for(var l in t.children)if(t.children.hasOwnProperty(l)&&t.children[l].tagName&&"img"===t.children[l].tagName.toLowerCase()){n.push(t.children[l]);var c=t.children[l].getAttribute("min-width")||t.children[l].getAttribute("data-min-width"),u=t.children[l].getAttribute("data-src")||t.children[l].getAttribute("url");r.push(u),s.push({minWidth:c}),c?t.children[l].style.display="none":(i=n.length-1,t.children[l].style.display="block")}function h(){var e,l=!1;for(e in n)n.hasOwnProperty(e)&&s[e].minWidth&&t.offsetWidth>s[e].minWidth&&(l=e);if(l||(l=i),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=r[l],n[o].style.display="none",n[l].style.display="block",a[l]=!0,o=l},c.src=r[l]}else n[l].src=r[l]}o=i,t.resizeSensorInstance=new e(t,h),h()}var h=/,?[\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 p(e){var t,n,s,r;for(e=e.replace(/'/g,'"');null!==(t=h.exec(e));)for(n=t[1]+t[3],s=t[2];null!==(r=d.exec(s));)l(n,r[1],r[2],r[3])}function f(e){var t="";if(e)if("string"==typeof e)-1===(e=e.toLowerCase()).indexOf("min-width")&&-1===e.indexOf("max-width")||p(e);else for(var n=0,s=e.length;n<s;n++)1===e[n].type?-1!==(t=e[n].selectorText||e[n].cssText).indexOf("min-height")||-1!==t.indexOf("max-height")?p(t):-1===t.indexOf("min-width")&&-1===t.indexOf("max-width")||p(t):4===e[n].type?f(e[n].cssRules||e[n].rules):3===e[n].type&&e[n].styleSheet.hasOwnProperty("cssRules")&&f(e[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(t){var n=t.target,r=n&&window.getComputedStyle(n,null),i=r&&r.getPropertyValue("animation-name");if(i&&-1!==i.indexOf("element-queries")){n.elementQueriesSensor=new e(n,(function(){n.elementQueriesSetupInformation&&n.elementQueriesSetupInformation.call()}));var o=window.getComputedStyle(n.resizeSensor,null).getPropertyValue("min-width");o=parseInt(o.replace("px","")),a(t.target,s[o])}})),m||((t=document.createElement("style")).type="text/css",t.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",t.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(t),m=!0);for(var r=0,i=document.styleSheets.length;r<i;r++)try{document.styleSheets[r].href&&0===document.styleSheets[r].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[r].href),f(document.styleSheets[r].cssRules||document.styleSheets[r].rules||document.styleSheets[r].cssText)}catch(o){}!function(){for(var e=c()("[data-responsive-image],[responsive-image]"),t=0,n=e.length;t<n;t++)u(e[t])}()},this.findElementQueriesElements=function(e){!function(e){var t=c(e);for(var s in n)if(n.hasOwnProperty(s))for(var r=t(s,e),i=0,o=r.length;i<o;i++)a(r[i],s)}(e)},this.update=function(){this.init()}};return t.update=function(){t.instance.update()},t.detach=function(e){e.elementQueriesSetupInformation?(e.elementQueriesSensor.detach(),delete e.elementQueriesSetupInformation,delete e.elementQueriesSensor):e.resizeSensorInstance&&(e.resizeSensorInstance.detach(),delete e.resizeSensorInstance)},t.init=function(){t.instance||(t.instance=new t),t.instance.init()},t.findElementQueriesElements=function(e){t.instance.findElementQueriesElements(e)},t.listen=function(){!function(e){if(document.addEventListener)document.addEventListener("DOMContentLoaded",e,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var t=setInterval((function(){/loaded|complete/i.test(document.readyState)&&(e(),clearInterval(t))}),10);else window.onload=e}(t.init)},t})?s.apply(t,r):s)||(e.exports=i)},"5vqC":function(e,t,n){e.exports={ResizeSensor:n("MXs6"),ElementQueries:n("4Xgz")}},MXs6:function(e,t,n){"use strict";var s,r;"undefined"!=typeof window&&window,void 0===(r="function"==typeof(s=function(){if("undefined"==typeof window)return null;var e="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||function(t){return e.setTimeout(t,20)},n=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||function(t){e.clearTimeout(t)};function s(e,t){var n=Object.prototype.toString.call(e),s="[object Array]"===n||"[object NodeList]"===n||"[object HTMLCollection]"===n||"[object Object]"===n||"undefined"!=typeof jQuery&&e instanceof jQuery||"undefined"!=typeof Elements&&e instanceof Elements,r=0,i=e.length;if(s)for(;r<i;r++)t(e[r]);else t(e)}function r(e){if(!e.getBoundingClientRect)return{width:e.offsetWidth,height:e.offsetHeight};var t=e.getBoundingClientRect();return{width:Math.round(t.width),height:Math.round(t.height)}}function i(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}var o=function(e,a){var l=0;function c(){var e,t,n=[];this.add=function(e){n.push(e)},this.call=function(s){for(e=0,t=n.length;e<t;e++)n[e].call(this,s)},this.remove=function(s){var r=[];for(e=0,t=n.length;e<t;e++)n[e]!==s&&r.push(n[e]);n=r},this.length=function(){return n.length}}s(e,(function(e){!function(e,n){if(e)if(e.resizedAttached)e.resizedAttached.add(n);else{e.resizedAttached=new c,e.resizedAttached.add(n),e.resizeSensor=document.createElement("div"),e.resizeSensor.dir="ltr",e.resizeSensor.className="resize-sensor";var s={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"};i(e.resizeSensor,s);var a=document.createElement("div");a.className="resize-sensor-expand",i(a,s);var u=document.createElement("div");i(u,o),a.appendChild(u);var h=document.createElement("div");h.className="resize-sensor-shrink",i(h,s);var d=document.createElement("div");i(d,o),i(d,{width:"200%",height:"200%"}),h.appendChild(d),e.resizeSensor.appendChild(a),e.resizeSensor.appendChild(h),e.appendChild(e.resizeSensor);var p=window.getComputedStyle(e),f=p?p.getPropertyValue("position"):null;"absolute"!==f&&"relative"!==f&&"fixed"!==f&&"sticky"!==f&&(e.style.position="relative");var m=!1,y=0,g=r(e),_=0,v=0,w=!0;l=0;var b=function(){if(w){if(0===e.offsetWidth&&0===e.offsetHeight)return void(l||(l=t((function(){l=0,b()}))));w=!1}var n,s;s=e.offsetHeight,u.style.width=(n=e.offsetWidth)+10+"px",u.style.height=s+10+"px",a.scrollLeft=n+10,a.scrollTop=s+10,h.scrollLeft=n+10,h.scrollTop=s+10};e.resizeSensor.resetSensor=b;var S=function(){y=0,m&&(_=g.width,v=g.height,e.resizedAttached&&e.resizedAttached.call(g))},E=function(){g=r(e),(m=g.width!==_||g.height!==v)&&!y&&(y=t(S)),b()},x=function(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n)};x(a,"scroll",E),x(h,"scroll",E),l=t((function(){l=0,b()}))}}(e,a)})),this.detach=function(t){l||(n(l),l=0),o.detach(e,t)},this.reset=function(){e.resizeSensor.resetSensor()}};if(o.reset=function(e){s(e,(function(e){e.resizeSensor.resetSensor()}))},o.detach=function(e,t){s(e,(function(e){e&&(e.resizedAttached&&"function"==typeof t&&(e.resizedAttached.remove(t),e.resizedAttached.length())||e.resizeSensor&&(e.contains(e.resizeSensor)&&e.removeChild(e.resizeSensor),delete e.resizeSensor,delete e.resizedAttached))}))},"undefined"!=typeof MutationObserver){var a=new MutationObserver((function(e){for(var t in e)if(e.hasOwnProperty(t))for(var n=e[t].addedNodes,s=0;s<n.length;s++)n[s].resizeSensor&&o.reset(n[s])}));document.addEventListener("DOMContentLoaded",(function(e){a.observe(document.body,{childList:!0,subtree:!0})}))}return o})?s.call(t,n,t,e):s)||(e.exports=r)},zUnb:function(e,t,n){"use strict";function s(e){return"function"==typeof e}n.r(t);let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}};function o(e){setTimeout(()=>{throw e},0)}const a={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},l=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function c(e){return null!==e&&"object"==typeof e}const u=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let h=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(s(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(a){t=a instanceof u?d(a.errors):[a]}}if(l(o)){let e=-1,n=o.length;for(;++e<n;){const n=o[e];if(c(n))try{n.unsubscribe()}catch(a){t=t||[],a instanceof u?t=t.concat(d(a.errors)):t.push(a)}}}if(t)throw new u(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:s}=n;if(null===s)n._parentOrParents=this;else if(s instanceof e){if(s===this)return n;n._parentOrParents=[s,this]}else{if(-1!==s.indexOf(this))return n;s.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function d(e){return e.reduce((e,t)=>e.concat(t instanceof u?t.errors:t),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(e,t,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(!e){this.destination=a;break}if("object"==typeof e){e instanceof f?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[p](){return this}static create(e,t,n){const s=new f(e,t,n);return s.syncErrorThrowable=!1,s}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class m extends f{constructor(e,t,n,r){let i;super(),this._parentSubscriber=e;let o=this;s(t)?i=t:t&&(i=t.next,n=t.error,r=t.complete,t!==a&&(o=Object.create(t),s(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(s){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(o(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const y=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function g(e){return e}function _(...e){return v(e)}function v(e){return 0===e.length?g:1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}}let w=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:s}=this,r=function(e,t,n){if(e){if(e instanceof f)return e;if(e[p])return e[p]()}return e||t||n?new f(e,t,n):new f(a)}(e,t,n);if(r.add(s?s.call(r,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),i.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:s}=e;if(t||s)return!1;e=n&&n instanceof f?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=b(t))((t,n)=>{let s;s=this.subscribe(t=>{try{e(t)}catch(r){n(r),s&&s.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[y](){return this}pipe(...e){return 0===e.length?this:v(e)(this)}toPromise(e){return new(e=b(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function b(e){if(e||(e=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const S=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class E extends h{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class x extends f{constructor(e){super(e),this.destination=e}}let T=(()=>{class e extends w{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new x(this)}lift(e){const t=new C(this,this);return t.operator=e,t}next(e){if(this.closed)throw new S;if(!this.isStopped){const{observers:t}=this,n=t.length,s=t.slice();for(let r=0;r<n;r++)s[r].next(e)}}error(e){if(this.closed)throw new S;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,s=t.slice();for(let r=0;r<n;r++)s[r].error(e);this.observers.length=0}complete(){if(this.closed)throw new S;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let s=0;s<t;s++)n[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new S;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new S;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new E(this,e))}asObservable(){const e=new w;return e.source=this,e}}return e.create=(e,t)=>new C(e,t),e})();class C extends T{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):h.EMPTY}}function k(e){return e&&"function"==typeof e.schedule}function I(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new A(e,t))}}class A{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new N(e,this.project,this.thisArg))}}class N extends f{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const P=e=>t=>{for(let n=0,s=e.length;n<s&&!t.closed;n++)t.next(e[n]);t.complete()};function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const D=O(),F=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function R(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const j=e=>{if(e&&"function"==typeof e[y])return s=e,e=>{const t=s[y]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(F(e))return P(e);if(R(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e);if(e&&"function"==typeof e[D])return t=e,e=>{const n=t[D]();for(;;){let t;try{t=n.next()}catch(s){return e.error(s),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,s};function M(e,t){return new w(n=>{const s=new h;let r=0;return s.add(t.schedule((function(){r!==e.length?(n.next(e[r++]),n.closed||s.add(this.schedule())):n.complete()}))),s})}function V(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[y]}(e))return function(e,t){return new w(n=>{const s=new h;return s.add(t.schedule(()=>{const r=e[y]();s.add(r.subscribe({next(e){s.add(t.schedule(()=>n.next(e)))},error(e){s.add(t.schedule(()=>n.error(e)))},complete(){s.add(t.schedule(()=>n.complete()))}}))})),s})}(e,t);if(R(e))return function(e,t){return new w(n=>{const s=new h;return s.add(t.schedule(()=>e.then(e=>{s.add(t.schedule(()=>{n.next(e),s.add(t.schedule(()=>n.complete()))}))},e=>{s.add(t.schedule(()=>n.error(e)))}))),s})}(e,t);if(F(e))return M(e,t);if(function(e){return e&&"function"==typeof e[D]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new w(n=>{const s=new h;let r;return s.add(()=>{r&&"function"==typeof r.return&&r.return()}),s.add(t.schedule(()=>{r=e[D](),s.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=r.next();e=n.value,t=n.done}catch(s){return void n.error(s)}t?n.complete():(n.next(e),this.schedule())})))})),s})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof w?e:new w(j(e))}class H extends f{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class L extends f{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function z(e,t){if(!t.closed)return e instanceof w?e.subscribe(t):j(e)(t)}function B(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?s=>s.pipe(B((n,s)=>V(e(n,s)).pipe(I((e,r)=>t(n,e,s,r))),n)):("number"==typeof t&&(n=t),t=>t.lift(new q(e,n)))}class q{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new Q(e,this.project,this.concurrent))}}class Q extends L{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(t)}_innerSub(e){const t=new H(this),n=this.destination;n.add(t);const s=z(e,t);s!==t&&n.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const $=B;function W(e=Number.POSITIVE_INFINITY){return B(g,e)}function Z(e,t){return t?M(e,t):new w(P(e))}function K(...e){let t=Number.POSITIVE_INFINITY,n=null,s=e[e.length-1];return k(s)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof s&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof w?e[0]:W(t)(Z(e,n))}function U(){return function(e){return e.lift(new G(e))}}class G{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const s=new Y(e,n),r=t.subscribe(s);return s.closed||(s.connection=n.connect()),r}}class Y extends f{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,s=e._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}class J extends w{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new h,e.add(this.source.subscribe(new ee(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return U()(this)}}const X=(()=>{const e=J.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class ee extends x{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function te(e,t){return function(n){let s;if(s="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new ne(s,t));const r=Object.create(n,X);return r.source=n,r.subjectFactory=s,r}}class ne{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:n}=this,s=this.subjectFactory(),r=n(s).subscribe(e);return r.add(t.subscribe(s)),r}}function se(){return new T}function re(e){return{toString:e}.toString()}const ie="__parameters__";function oe(e,t,n){return re(()=>{const s=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function r(...e){if(this instanceof r)return s.apply(this,e),this;const t=new r(...e);return n.annotation=t,n;function n(e,n,s){const r=e.hasOwnProperty(ie)?e[ie]:Object.defineProperty(e,ie,{value:[]})[ie];for(;r.length<=s;)r.push(null);return(r[s]=r[s]||[]).push(t),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const ae=oe("Inject",e=>({token:e})),le=oe("Optional"),ce=oe("Self"),ue=oe("SkipSelf");var he=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function de(e){for(let t in e)if(e[t]===de)return t;throw Error("Could not find renamed property on target object.")}function pe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function fe(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function me(e){return ye(e,e[_e])||ye(e,e[be])}function ye(e,t){return t&&t.token===e?t:null}function ge(e){return e&&(e.hasOwnProperty(ve)||e.hasOwnProperty(Se))?e[ve]:null}const _e=de({"\u0275prov":de}),ve=de({"\u0275inj":de}),we=de({"\u0275provFallback":de}),be=de({ngInjectableDef:de}),Se=de({ngInjectorDef:de});function Ee(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ee).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function xe(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Te=de({__forward_ref__:de});function Ce(e){return e.__forward_ref__=Ce,e.toString=function(){return Ee(this())},e}function ke(e){return"function"==typeof(t=e)&&t.hasOwnProperty(Te)&&t.__forward_ref__===Ce?e():e;var t}const Ie="undefined"!=typeof globalThis&&globalThis,Ae="undefined"!=typeof window&&window,Ne="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Pe="undefined"!=typeof global&&global,Oe=Ie||Pe||Ae||Ne,De=de({"\u0275cmp":de}),Fe=de({"\u0275dir":de}),Re=de({"\u0275pipe":de}),je=de({"\u0275mod":de}),Me=de({"\u0275loc":de}),Ve=de({"\u0275fac":de}),He=de({__NG_ELEMENT_ID__:de});class Le{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=pe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const ze=new Le("INJECTOR",-1),Be={},qe=/\n/gm,Qe="__source",$e=de({provide:String,useValue:de});let We,Ze=void 0;function Ke(e){const t=Ze;return Ze=e,t}function Ue(e){const t=We;return We=e,t}function Ge(e,t=he.Default){if(void 0===Ze)throw new Error("inject() must be called from an injection context");return null===Ze?Je(e,void 0,t):Ze.get(e,t&he.Optional?null:void 0,t)}function Ye(e,t=he.Default){return(We||Ge)(ke(e),t)}function Je(e,t,n){const s=me(e);if(s&&"root"==s.providedIn)return void 0===s.value?s.value=s.factory():s.value;if(n&he.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${Ee(e)}]`)}function Xe(e){const t=[];for(let n=0;n<e.length;n++){const s=ke(e[n]);if(Array.isArray(s)){if(0===s.length)throw new Error("Arguments array must have arguments.");let e=void 0,n=he.Default;for(let t=0;t<s.length;t++){const r=s[t];r instanceof le||"Optional"===r.ngMetadataName||r===le?n|=he.Optional:r instanceof ue||"SkipSelf"===r.ngMetadataName||r===ue?n|=he.SkipSelf:r instanceof ce||"Self"===r.ngMetadataName||r===ce?n|=he.Self:e=r instanceof ae||r===ae?r.token:r}t.push(Ye(e,n))}else t.push(Ye(s))}return t}class et{get(e,t=Be){if(t===Be){const t=new Error(`NullInjectorError: No provider for ${Ee(e)}!`);throw t.name="NullInjectorError",t}return t}}class tt{}function nt(e,t){e.forEach(e=>Array.isArray(e)?nt(e,t):t(e))}function st(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function rt(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var it=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),ot=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const at={},lt=[];let ct=0;function ut(e){return re(()=>{const t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===it.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||lt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ot.Emulated,id:"c",styles:e.styles||lt,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,r=e.features,i=e.pipes;return n.id+=ct++,n.inputs=mt(e.inputs,t),n.outputs=mt(e.outputs),r&&r.forEach(e=>e(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(ht):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map(dt):null,n})}function ht(e){return gt(e)||function(e){return e[Fe]||null}(e)}function dt(e){return function(e){return e[Re]||null}(e)}const pt={};function ft(e){const t={type:e.type,bootstrap:e.bootstrap||lt,declarations:e.declarations||lt,imports:e.imports||lt,exports:e.exports||lt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&re(()=>{pt[e.id]=e.type}),t}function mt(e,t){if(null==e)return at;const n={};for(const s in e)if(e.hasOwnProperty(s)){let r=e[s],i=r;Array.isArray(r)&&(i=r[1],r=r[0]),n[r]=s,t&&(t[r]=i)}return n}const yt=ut;function gt(e){return e[De]||null}function _t(e,t){return e.hasOwnProperty(Ve)?e[Ve]:null}function vt(e,t){const n=e[je]||null;if(!n&&!0===t)throw new Error(`Type ${Ee(e)} does not have '\u0275mod' property.`);return n}const wt=20,bt=10;function St(e){return Array.isArray(e)&&"object"==typeof e[1]}function Et(e){return Array.isArray(e)&&!0===e[1]}function xt(e){return 0!=(8&e.flags)}function Tt(e){return 2==(2&e.flags)}function Ct(e){return 1==(1&e.flags)}function kt(e){return null!==e.template}function It(e){return 0!=(512&e[2])}class At{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function Nt(){const e=Ot(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===at)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function Pt(e,t,n,s){const r=Ot(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:at,current:null}),i=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];i[a]=new At(l&&l.currentValue,t,o===at),e[s]=t}function Ot(e){return e.__ngSimpleChanges__||null}let Dt=void 0;function Ft(e){return!!e.listen}const Rt={createRenderer:(e,t)=>void 0!==Dt?Dt:"undefined"!=typeof document?document:void 0};function jt(e){for(;Array.isArray(e);)e=e[0];return e}function Mt(e,t){return jt(t[e.index])}function Vt(e,t){return e.data[t+wt]}function Ht(e,t){const n=t[e];return St(n)?n:n[0]}function Lt(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function zt(e){return 4==(4&e[2])}function Bt(e){return 128==(128&e[2])}function qt(e,t){return null===e||null==t?null:e[t]}function Qt(e){e[18]=0}function $t(e,t){e[5]+=t;let n=e,s=e[3];for(;null!==s&&(1===t&&1===n[5]||-1===t&&0===n[5]);)s[5]+=t,n=s,s=s[3]}const Wt={lFrame:cn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Zt(){return Wt.bindingsEnabled}function Kt(){return Wt.lFrame.lView}function Ut(){return Wt.lFrame.tView}function Gt(){return Wt.lFrame.previousOrParentTNode}function Yt(e,t){Wt.lFrame.previousOrParentTNode=e,Wt.lFrame.isParent=t}function Jt(){return Wt.lFrame.isParent}function Xt(){return Wt.checkNoChangesMode}function en(e){Wt.checkNoChangesMode=e}function tn(e,t){const n=Wt.lFrame;n.bindingIndex=n.bindingRootIndex=e,nn(t)}function nn(e){Wt.lFrame.currentDirectiveIndex=e}function sn(){return Wt.lFrame.currentQueryIndex}function rn(e){Wt.lFrame.currentQueryIndex=e}function on(e,t){const n=ln();Wt.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function an(e,t){const n=ln(),s=e[1];Wt.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=s,n.contextLView=e,n.bindingIndex=s.bindingStartIndex}function ln(){const e=Wt.lFrame,t=null===e?null:e.child;return null===t?cn(e):t}function cn(e){const t={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:e,child:null};return null!==e&&(e.child=t),t}function un(){const e=Wt.lFrame;return Wt.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}const hn=un;function dn(){const e=un();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function pn(){return Wt.lFrame.selectedIndex}function fn(e){Wt.lFrame.selectedIndex=e}function mn(e,t){for(let n=t.directiveStart,s=t.directiveEnd;n<s;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:r,ngAfterViewInit:i,ngAfterViewChecked:o,ngOnDestroy:a}=t;s&&(e.contentHooks||(e.contentHooks=[])).push(-n,s),r&&((e.contentHooks||(e.contentHooks=[])).push(n,r),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,r)),i&&(e.viewHooks||(e.viewHooks=[])).push(-n,i),o&&((e.viewHooks||(e.viewHooks=[])).push(n,o),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,o)),null!=a&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a)}}function yn(e,t,n){vn(e,t,3,n)}function gn(e,t,n,s){(3&e[2])===n&&vn(e,t,n,s)}function _n(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function vn(e,t,n,s){const r=null!=s?s:-1;let i=0;for(let o=void 0!==s?65535&e[18]:0;o<t.length;o++)if("number"==typeof t[o+1]){if(i=t[o],null!=s&&i>=s)break}else t[o]<0&&(e[18]+=65536),(i<r||-1==r)&&(wn(e,n,t,o),e[18]=(4294901760&e[18])+o+2),o++}function wn(e,t,n,s){const r=n[s]<0,i=n[s+1],o=e[r?-n[s]:n[s]];r?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,i.call(o)):i.call(o)}class bn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function Sn(e,t,n){const s=Ft(e);let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const o=n[r++],a=n[r++],l=n[r++];s?e.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=i,a=n[++r];En(o)?s&&e.setProperty(t,o,a):s?e.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function En(e){return 64===e.charCodeAt(0)}function xn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let s=0;s<t.length;s++){const r=t[s];"number"==typeof r?n=r:0===n||Tn(e,n,r,null,-1===n||2===n?t[++s]:null)}}return e}function Tn(e,t,n,s,r){let i=0,o=e.length;if(-1===t)o=-1;else for(;i<e.length;){const n=e[i++];if("number"==typeof n){if(n===t){o=-1;break}if(n>t){o=i-1;break}}}for(;i<e.length;){const t=e[i];if("number"==typeof t)break;if(t===n){if(null===s)return void(null!==r&&(e[i+1]=r));if(s===e[i+1])return void(e[i+2]=r)}i++,null!==s&&i++,null!==r&&i++}-1!==o&&(e.splice(o,0,t),i=o+1),e.splice(i++,0,n),null!==s&&e.splice(i++,0,s),null!==r&&e.splice(i++,0,r)}function Cn(e){return-1!==e}function kn(e){return 32767&e}function In(e){return e>>16}function An(e,t){let n=In(e),s=t;for(;n>0;)s=s[15],n--;return s}function Nn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():function(e){return"string"==typeof e?e:null==e?"":""+e}(e)}const Pn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Oe))();function On(e){return e instanceof Function?e():e}let Dn=!0;function Fn(e){const t=Dn;return Dn=e,t}let Rn=0;function jn(e,t){const n=Vn(e,t);if(-1!==n)return n;const s=t[1];s.firstCreatePass&&(e.injectorIndex=t.length,Mn(s.data,e),Mn(t,null),Mn(s.blueprint,null));const r=Hn(e,t),i=e.injectorIndex;if(Cn(r)){const e=kn(r),n=An(r,t),s=n[1].data;for(let r=0;r<8;r++)t[i+r]=n[e+r]|s[e+r]}return t[i+8]=r,i}function Mn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Vn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Hn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=t[6],s=1;for(;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,s++;return n?n.injectorIndex|s<<16:-1}function Ln(e,t,n){!function(e,t,n){let s;"string"==typeof n?s=n.charCodeAt(0)||0:n.hasOwnProperty(He)&&(s=n[He]),null==s&&(s=n[He]=Rn++);const r=255&s,i=1<<r,o=64&r,a=32&r,l=t.data;128&r?o?a?l[e+7]|=i:l[e+6]|=i:a?l[e+5]|=i:l[e+4]|=i:o?a?l[e+3]|=i:l[e+2]|=i:a?l[e+1]|=i:l[e]|=i}(e,t,n)}function zn(e,t,n,s=he.Default,r){if(null!==e){const r=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(He)?e[He]:void 0;return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof r){on(t,e);try{const e=r();if(null!=e||s&he.Optional)return e;throw new Error(`No provider for ${Nn(n)}!`)}finally{hn()}}else if("number"==typeof r){if(-1===r)return new Kn(e,t);let i=null,o=Vn(e,t),a=-1,l=s&he.Host?t[16][6]:null;for((-1===o||s&he.SkipSelf)&&(a=-1===o?Hn(e,t):t[o+8],Zn(s,!1)?(i=t[1],o=kn(a),t=An(a,t)):o=-1);-1!==o;){a=t[o+8];const e=t[1];if(Wn(r,o,e.data)){const e=qn(o,t,n,i,s,l);if(e!==Bn)return e}Zn(s,t[1].data[o+8]===l)&&Wn(r,o,t)?(i=e,o=kn(a),t=An(a,t)):o=-1}}}if(s&he.Optional&&void 0===r&&(r=null),0==(s&(he.Self|he.Host))){const e=t[9],i=Ue(void 0);try{return e?e.get(n,r,s&he.Optional):Je(n,r,s&he.Optional)}finally{Ue(i)}}if(s&he.Optional)return r;throw new Error(`NodeInjector: NOT_FOUND [${Nn(n)}]`)}const Bn={};function qn(e,t,n,s,r,i){const o=t[1],a=o.data[e+8],l=Qn(a,o,n,null==s?Tt(a)&&Dn:s!=o&&3===a.type,r&he.Host&&i===a);return null!==l?$n(t,o,l,a):Bn}function Qn(e,t,n,s,r){const i=e.providerIndexes,o=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,u=r?a+c:e.directiveEnd;for(let h=s?a:a+c;h<u;h++){const e=o[h];if(h<l&&n===e||h>=l&&e.type===n)return h}if(r){const e=o[l];if(e&&kt(e)&&e.type===n)return l}return null}function $n(e,t,n,s){let r=e[n];const i=t.data;if(r instanceof bn){const o=r;if(o.resolving)throw new Error("Circular dep for "+Nn(i[n]));const a=Fn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=Ue(o.injectImpl)),on(e,s);try{r=e[n]=o.factory(void 0,i,e,s),t.firstCreatePass&&n>=s.directiveStart&&function(e,t,n){const{ngOnChanges:s,ngOnInit:r,ngDoCheck:i}=t.type.prototype;if(s){const s=((o=t).type.prototype.ngOnChanges&&(o.setInput=Pt),Nt);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}var o;r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{o.injectImpl&&Ue(l),Fn(a),o.resolving=!1,hn()}}return r}function Wn(e,t,n){const s=64&e,r=32&e;let i;return i=128&e?s?r?n[t+7]:n[t+6]:r?n[t+5]:n[t+4]:s?r?n[t+3]:n[t+2]:r?n[t+1]:n[t],!!(i&1<<e)}function Zn(e,t){return!(e&he.Self||e&he.Host&&t)}class Kn{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return zn(this._tNode,this._lView,e,void 0,t)}}function Un(e){return e.ngDebugContext}function Gn(e){return e.ngOriginalError}function Yn(e,...t){e.error(...t)}class Jn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),s=function(e){return e.ngErrorLogger||Yn}(e);s(this._console,"ERROR",e),t&&s(this._console,"ORIGINAL ERROR",t),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Un(e)?Un(e):this._findContext(Gn(e)):null}_findOriginalError(e){let t=Gn(e);for(;t&&Gn(t);)t=Gn(t);return t}}let Xn=!0,es=!1;function ts(){return es=!0,Xn}function ns(e,t){e.__ngContext__=t}function ss(e){throw new Error("Multiple components match node with tagname "+e.tagName)}function rs(){throw new Error("Cannot mix multi providers and regular providers")}function is(e,t,n){let s=e.length;for(;;){const r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const n=t.length;if(r+n===s||e.charCodeAt(r+n)<=32)return r}n=r+1}}const os="ng-template";function as(e,t,n){let s=0;for(;s<e.length;){let r=e[s++];if(n&&"class"===r){if(r=e[s],-1!==is(r.toLowerCase(),t,0))return!0}else if(1===r){for(;s<e.length&&"string"==typeof(r=e[s++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function ls(e){return 0===e.type&&e.tagName!==os}function cs(e,t,n){return t===(0!==e.type||n?e.tagName:os)}function us(e,t,n){let s=4;const r=e.attrs||[],i=function(e){for(let n=0;n<e.length;n++)if(3===(t=e[n])||4===t||6===t)return n;var t;return e.length}(r);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&s){if(s=2|1&s,""!==l&&!cs(e,l,n)||""===l&&1===t.length){if(hs(s))return!1;o=!0}}else{const c=8&s?l:t[++a];if(8&s&&null!==e.attrs){if(!as(e.attrs,c,n)){if(hs(s))return!1;o=!0}continue}const u=ds(8&s?"class":l,r,ls(e),n);if(-1===u){if(hs(s))return!1;o=!0;continue}if(""!==c){let e;e=u>i?"":r[u+1].toLowerCase();const t=8&s?e:null;if(t&&-1!==is(t,c,0)||2&s&&c!==e){if(hs(s))return!1;o=!0}}}}else{if(!o&&!hs(s)&&!hs(l))return!1;if(o&&hs(l))continue;o=!1,s=l|1&s}}return hs(s)||o}function hs(e){return 0==(1&e)}function ds(e,t,n,s){if(null===t)return-1;let r=0;if(s||!n){let n=!1;for(;r<t.length;){const s=t[r];if(s===e)return r;if(3===s||6===s)n=!0;else{if(1===s||2===s){let e=t[++r];for(;"string"==typeof e;)e=t[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const s=e[n];if("number"==typeof s)return-1;if(s===t)return n;n++}return-1}(t,e)}function ps(e,t,n=!1){for(let s=0;s<t.length;s++)if(us(e,t[s],n))return!0;return!1}function fs(e,t){return e?":not("+t.trim()+")":t}function ms(e){let t=e[0],n=1,s=2,r="",i=!1;for(;n<e.length;){let o=e[n];if("string"==typeof o)if(2&s){const t=e[++n];r+="["+o+(t.length>0?'="'+t+'"':"")+"]"}else 8&s?r+="."+o:4&s&&(r+=" "+o);else""===r||hs(o)||(t+=fs(i,r),r=""),s=o,i=i||!hs(s);n++}return""!==r&&(t+=fs(i,r)),t}const ys={};function gs(e){const t=e[3];return Et(t)?t[3]:t}function _s(e){return ws(e[13])}function vs(e){return ws(e[4])}function ws(e){for(;null!==e&&!Et(e);)e=e[4];return e}function bs(e,t,n,s){if(!s)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&yn(t,s,n)}else{const s=e.preOrderHooks;null!==s&&gn(t,s,0,n)}fn(n)}function Ss(e,t){const n=e.contentQueries;if(null!==n)for(let s=0;s<n.length;s+=2){const r=n[s],i=n[s+1];if(-1!==i){const n=e.data[i];rn(r),n.contentQueries(2,t[i],i)}}}function Es(e,t,n){return Ft(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function xs(e,t,n,s,r,i,o,a,l,c){const u=t.blueprint.slice();return u[0]=r,u[2]=140|s,Qt(u),u[3]=u[15]=e,u[8]=n,u[10]=o||e&&e[10],u[11]=a||e&&e[11],u[12]=l||e&&e[12]||null,u[9]=c||e&&e[9]||null,u[6]=i,u[16]=2==t.type?e[16]:u,u}function Ts(e,t,n,s,r,i){const o=n+wt,a=e.data[o]||function(e,t,n,s,r,i){const o=Gt(),a=Jt(),l=a?o:o&&o.parent,c=e.data[n]=Ds(0,l&&l!==t?l:null,s,n,r,i);return null===e.firstChild&&(e.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(e,t,o,s,r,i);return Yt(a,!0),a}function Cs(e,t,n){an(t,t[6]);try{const s=e.viewQuery;null!==s&&Js(1,s,n);const r=e.template;null!==r&&As(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Ss(e,t),e.staticViewQueries&&Js(2,e.viewQuery,n);const i=e.components;null!==i&&function(e,t){for(let n=0;n<t.length;n++)Zs(e,t[n])}(t,i)}catch(s){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),s}finally{t[2]&=-5,dn()}}function ks(e,t,n,s){const r=t[2];if(256==(256&r))return;an(t,t[6]);const i=Xt();try{Qt(t),Wt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&As(e,t,n,2,s);const o=3==(3&r);if(!i)if(o){const n=e.preOrderCheckHooks;null!==n&&yn(t,n,null)}else{const n=e.preOrderHooks;null!==n&&gn(t,n,0,null),_n(t,0)}if(function(e){for(let t=_s(e);null!==t;t=vs(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],s=n[3];0==(1024&n[2])&&$t(s,1),n[2]|=1024}}}(t),function(e){for(let t=_s(e);null!==t;t=vs(t))for(let e=bt;e<t.length;e++){const n=t[e],s=n[1];Bt(n)&&ks(s,n,s.template,n[8])}}(t),null!==e.contentQueries&&Ss(e,t),!i)if(o){const n=e.contentCheckHooks;null!==n&&yn(t,n)}else{const n=e.contentHooks;null!==n&&gn(t,n,1),_n(t,1)}!function(e,t){try{const n=e.expandoInstructions;if(null!==n){let s=e.expandoStartIndex,r=-1,i=-1;for(let e=0;e<n.length;e++){const o=n[e];"number"==typeof o?o<=0?(i=0-o,fn(i),s+=9+n[++e],r=s):s+=o:(null!==o&&(tn(s,r),o(2,t[r])),r++)}}}finally{fn(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)Ws(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&Js(2,l,s),!i)if(o){const n=e.viewCheckHooks;null!==n&&yn(t,n)}else{const n=e.viewHooks;null!==n&&gn(t,n,2),_n(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),i||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,$t(t[3],-1))}finally{dn()}}function Is(e,t,n,s){const r=t[10],i=!Xt(),o=zt(t);try{i&&!o&&r.begin&&r.begin(),o&&Cs(e,t,s),ks(e,t,n,s)}finally{i&&!o&&r.end&&r.end()}}function As(e,t,n,s,r){const i=pn();try{fn(-1),2&s&&t.length>wt&&bs(e,t,0,Xt()),n(s,r)}finally{fn(i)}}function Ns(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ps(1,-1,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Ps(e,t,n,s,r,i,o,a,l,c){const u=wt+s,h=u+r,d=function(e,t){const n=[];for(let s=0;s<t;s++)n.push(s<e?null:ys);return n}(u,h),p="function"==typeof c?c():c;return d[1]={type:e,id:t,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,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 i?i():i,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function Os(e,t,n,s){const r=er(t);r.push(n),e.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(e).push(s,r.length-1)}function Ds(e,t,n,s,r,i){return{type:n,index:s,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:r,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Fs(e,t,n){for(let s in e)if(e.hasOwnProperty(s)){const r=e[s];(n=null===n?{}:n).hasOwnProperty(s)?n[s].push(t,r):n[s]=[t,r]}return n}function Rs(e,t){const n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function js(e,t,n){for(let s=0;s<n;s++)t.push(ys),e.blueprint.push(ys),e.data.push(null)}function Ms(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Vs(e,t,n){const s=wt-t.index,r=e.data.length-(1048575&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(s,r,n)}function Hs(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Ls(e,t,n){if(n){if(t.exportAs)for(let s=0;s<t.exportAs.length;s++)n[t.exportAs[s]]=e;kt(t)&&(n[""]=e)}}function zs(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Bs(e,t,n){e.data.push(n);const s=n.factory||(n.factory=_t(n.type)),r=new bn(s,kt(n),null);e.blueprint.push(r),t.push(r)}function qs(e,t,n){const s=Mt(t,e),r=Ns(n),i=e[10],o=Ks(e,xs(e,r,null,n.onPush?64:16,s,t,i,i.createRenderer(s,n)));e[t.index]=o}function Qs(e,t,n,s,r,i){const o=i[t];if(null!==o){const e=s.setInput;for(let t=0;t<o.length;){const r=o[t++],i=o[t++],a=o[t++];null!==e?s.setInput(n,a,r,i):n[i]=a}}}function $s(e,t){let n=null,s=0;for(;s<t.length;){const r=t[s];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[s+1])),s+=2}else s+=2;else s+=4}return n}function Ws(e,t){const n=Ht(t,e);if(Bt(n)){const e=n[1];80&n[2]?ks(e,n,e.template,n[8]):n[5]>0&&function e(t){for(let s=_s(t);null!==s;s=vs(s))for(let t=bt;t<s.length;t++){const n=s[t];if(1024&n[2]){const e=n[1];ks(e,n,e.template,n[8])}else n[5]>0&&e(n)}const n=t[1].components;if(null!==n)for(let s=0;s<n.length;s++){const r=Ht(n[s],t);Bt(r)&&r[5]>0&&e(r)}}(n)}}function Zs(e,t){const n=Ht(t,e),s=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(s,n),Cs(s,n,n[8])}function Ks(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Us(e){for(;e;){e[2]|=64;const t=gs(e);if(It(e)&&!t)return e;e=t}return null}function Gs(e,t,n){const s=t[10];s.begin&&s.begin();try{ks(e,t,e.template,n)}catch(r){throw tr(t,r),r}finally{s.end&&s.end()}}function Ys(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],s=Lt(n),r=s[1];Is(r,s,r.template,n)}}(e[8])}function Js(e,t,n){rn(0),t(e,n)}const Xs=(()=>Promise.resolve(null))();function er(e){return e[7]||(e[7]=[])}function tr(e,t){const n=e[9],s=n?n.get(Jn,null):null;s&&s.handleError(t)}function nr(e,t,n,s,r){for(let i=0;i<n.length;){const o=n[i++],a=n[i++],l=t[o],c=e.data[o];null!==c.setInput?c.setInput(l,r,s,a):l[a]=r}}function sr(e,t){const n=t[3];return-1===e.index?Et(n)?n:null:n}function rr(e,t){const n=sr(e,t);return n?mr(t[11],n[7]):null}function ir(e,t,n,s,r){if(null!=s){let i,o=!1;Et(s)?i=s:St(s)&&(o=!0,s=s[0]);const a=jt(s);0===e&&null!==n?null==r?pr(t,n,a):dr(t,n,a,r||null):1===e&&null!==n?dr(t,n,a,r||null):2===e?function(e,t,n){const s=mr(e,t);s&&function(e,t,n,s){Ft(e)?e.removeChild(t,n,s):t.removeChild(n)}(e,s,t,n)}(t,a,o):3===e&&t.destroyNode(a),null!=i&&function(e,t,n,s,r){const i=n[7];i!==jt(n)&&ir(t,e,s,i,r);for(let o=bt;o<n.length;o++){const r=n[o];vr(r[1],r,e,t,s,i)}}(t,e,i,n,r)}}function or(e,t,n,s){const r=rr(e.node,t);r&&vr(e,t,t[11],n?1:2,r,s)}function ar(e,t){const n=e[9],s=n.indexOf(t);1024&t[2]&&$t(t[3],-1),n.splice(s,1)}function lr(e,t){if(e.length<=bt)return;const n=bt+t,s=e[n];if(s){const r=s[17];null!==r&&r!==e&&ar(r,s),t>0&&(e[n-1][4]=s[4]);const i=rt(e,bt+t);or(s[1],s,!1,null);const o=i[19];null!==o&&o.detachView(i[1]),s[3]=null,s[4]=null,s[2]&=-129}return s}function cr(e,t){if(!(256&t[2])){const n=t[11];Ft(n)&&n.destroyNode&&vr(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return hr(e[1],e);for(;t;){let n=null;if(St(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)St(t)&&hr(t[1],t),t=ur(t,e);null===t&&(t=e),St(t)&&hr(t[1],t),n=t&&t[4]}t=n}}(t)}}function ur(e,t){let n;return St(e)&&(n=e[6])&&2===n.type?sr(n,e):e[3]===t?null:e[3]}function hr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let s=0;s<n.length;s+=2){const e=t[n[s]];if(!(e instanceof bn)){const t=n[s+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2)t[n+1].call(e[t[n]]);else t.call(e)}}}(e,t),function(e,t){const n=e.cleanup;if(null!==n){const e=t[7];for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const r=n[s+1],i="function"==typeof r?r(t):jt(t[r]),o=e[n[s+2]],a=n[s+3];"boolean"==typeof a?i.removeEventListener(n[s],o,a):a>=0?e[a]():e[-a].unsubscribe(),s+=2}else n[s].call(e[n[s+1]]);t[7]=null}}(e,t);const n=t[6];n&&3===n.type&&Ft(t[11])&&t[11].destroy();const s=t[17];if(null!==s&&Et(t[3])){s!==t[3]&&ar(s,t);const n=t[19];null!==n&&n.detachView(e)}}}function dr(e,t,n,s){Ft(e)?e.insertBefore(t,n,s):t.insertBefore(n,s,!0)}function pr(e,t,n){Ft(e)?e.appendChild(t,n):t.appendChild(n)}function fr(e,t,n,s){null!==s?dr(e,t,n,s):pr(e,t,n)}function mr(e,t){return Ft(e)?e.parentNode(t):t.parentNode}function yr(e,t,n,s){const r=function(e,t,n){let s=t.parent;for(;null!=s&&(4===s.type||5===s.type);)s=(t=s).parent;if(null==s){const e=n[6];return 2===e.type?rr(e,n):n[0]}if(t&&5===t.type&&4&t.flags)return Mt(t,n).parentNode;if(2&s.flags){const t=e.data,n=t[t[s.index].directiveStart].encapsulation;if(n!==ot.ShadowDom&&n!==ot.Native)return null}return Mt(s,n)}(e,s,t);if(null!=r){const e=t[11],i=function(e,t){if(2===e.type){const n=sr(e,t);return null===n?null:gr(n.indexOf(t,bt)-bt,n)}return 4===e.type||5===e.type?Mt(e,t):null}(s.parent||t[6],t);if(Array.isArray(n))for(let t=0;t<n.length;t++)fr(e,r,n[t],i);else fr(e,r,n,i)}}function gr(e,t){const n=bt+e+1;if(n<t.length){const e=t[n],s=e[1].firstChild;if(null!==s)return function e(t,n){if(null!==n){const s=n.type;if(3===s)return Mt(n,t);if(0===s)return gr(-1,t[n.index]);if(4===s||5===s){const s=n.child;if(null!==s)return e(t,s);{const e=t[n.index];return Et(e)?gr(-1,e):jt(e)}}{const s=t[16],r=s[6],i=gs(s),o=r.projection[n.projection];return null!=o?e(i,o):e(t,n.next)}}return null}(e,s)}return t[7]}function _r(e,t,n,s,r,i,o){for(;null!=n;){const a=s[n.index],l=n.type;o&&0===t&&(a&&ns(jt(a),s),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(_r(e,t,n.child,s,r,i,!1),ir(t,e,r,a,i)):1===l?wr(e,t,s,n,r,i):ir(t,e,r,a,i)),n=o?n.projectionNext:n.next}}function vr(e,t,n,s,r,i){_r(n,s,e.node.child,t,r,i,!1)}function wr(e,t,n,s,r,i){const o=n[16],a=o[6].projection[s.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)ir(t,e,r,a[l],i);else _r(e,t,a,o[3],r,i,!0)}function br(e,t,n){Ft(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Sr(e,t,n){Ft(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}class Er{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const e=this._lView;return null==e[0]?function e(t,n,s,r,i=!1){for(;null!==s;){const o=n[s.index];if(null!==o&&r.push(jt(o)),Et(o))for(let t=bt;t<o.length;t++){const n=o[t],s=n[1].firstChild;null!==s&&e(n[1],n,s,r)}const a=s.type;if(4===a||5===a)e(t,n,s.child,r);else if(1===a){const t=n[16],i=t[6].projection[s.projection];if(Array.isArray(i))r.push(...i);else{const n=gs(t);e(n[1],n,i,r,!0)}}s=i?s.projectionNext:s.next}return r}(e[1],e,e[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 e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}cr(this._lView[1],this._lView)}onDestroy(e){Os(this._lView[1],this._lView,null,e)}markForCheck(){Us(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Gs(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){en(!0);try{Gs(e,t,n)}finally{en(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,vr(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class xr extends Er{constructor(e){super(e),this._view=e}detectChanges(){Ys(this._view)}checkNoChanges(){!function(e){en(!0);try{Ys(e)}finally{en(!1)}}(this._view)}get context(){return null}}let Tr,Cr,kr;function Ir(e,t,n){return Tr||(Tr=class extends e{}),new Tr(Mt(t,n))}function Ar(e,t,n,s){return Cr||(Cr=class extends e{constructor(e,t,n){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=xs(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];const s=this._declarationView[19];return null!==s&&(n[19]=s.createEmbeddedView(t)),Cs(t,n,e),new Er(n)}}),0===n.type?new Cr(s,n,Ir(t,n,s)):null}function Nr(e,t,n,s){let r;kr||(kr=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n}get element(){return Ir(t,this._hostTNode,this._hostView)}get injector(){return new Kn(this._hostTNode,this._hostView)}get parentInjector(){const e=Hn(this._hostTNode,this._hostView),t=An(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){const e=n.parent.injectorIndex;let t=n.parent;for(;null!=t.parent&&e==t.parent.injectorIndex;)t=t.parent;return t}let s=In(e),r=t,i=t[6];for(;s>1;)r=r[15],i=r[6],s--;return i}(e,this._hostView,this._hostTNode);return Cn(e)&&null!=n?new Kn(n,t):new Kn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}get length(){return this._lContainer.length-bt}createEmbeddedView(e,t,n){const s=e.createEmbeddedView(t||{});return this.insert(s,n),s}createComponent(e,t,n,s,r){const i=n||this.parentInjector;if(!r&&null==e.ngModule&&i){const e=i.get(tt,null);e&&(r=e)}const o=e.create(i,s,void 0,r);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,s=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Et(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],s=new kr(t,t[6],t[3]);s.detach(s.indexOf(e))}}const r=this._adjustIndex(t);return function(e,t,n,s){const r=bt+s,i=n.length;s>0&&(n[r-1][4]=t),s<i-bt?(t[4]=n[r],st(n,bt+s,t)):(n.push(t),t[4]=null),t[3]=n;const o=t[17];null!==o&&n!==o&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(s,n,this._lContainer,r),or(s,n,!0,gr(r,this._lContainer)),e.attachToViewContainerRef(this),st(this._lContainer[8],r,e),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}indexOf(e){const t=this._lContainer[8];return null!==t?t.indexOf(e):-1}remove(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=lr(this._lContainer,t);n&&(rt(this._lContainer[8],t),cr(n[1],n))}detach(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=lr(this._lContainer,t);return n&&null!=rt(this._lContainer[8],t)?new Er(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const i=s[n.index];if(Et(i))r=i;else{let e;if(4===n.type)e=jt(i);else if(e=s[11].createComment(""),It(s)){const t=s[11],r=Mt(n,s);dr(t,mr(t,r),e,function(e,t){return Ft(e)?e.nextSibling(t):t.nextSibling}(t,r))}else yr(s[1],s,e,n);s[n.index]=r=new Array(i,!0,!1,s,null,0,n,e,null,null),Ks(s,r)}return new kr(r,n,s)}const Pr=new Le("Set Injector scope."),Or={},Dr={},Fr=[];let Rr=void 0;function jr(){return void 0===Rr&&(Rr=new et),Rr}function Mr(e,t=null,n=null,s){return new Vr(e,n,t||jr(),s)}class Vr{constructor(e,t,n,s=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];t&&nt(t,n=>this.processProvider(n,e,t)),nt([e],e=>this.processInjectorType(e,[],r)),this.records.set(ze,Lr(void 0,this));const i=this.records.get(Pr);this.scope=null!=i?i.value:null,this.source=s||("object"==typeof e?null:Ee(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Be,n=he.Default){this.assertNotDestroyed();const s=Ke(this);try{if(!(n&he.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Le)&&me(e);t=n&&this.injectableDefInScope(n)?Lr(Hr(e),Or):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&he.Self?jr():this.parent).get(e,t=n&he.Optional&&t===Be?null:t)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(Ee(e)),s)throw i;return function(e,t,n,s){const r=e.ngTempTokenPath;throw t[Qe]&&r.unshift(t[Qe]),e.message=function(e,t,n,s=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=Ee(t);if(Array.isArray(t))r=t.map(Ee).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let s=t[n];e.push(n+":"+("string"==typeof s?JSON.stringify(s):Ee(s)))}r=`{${e.join(", ")}}`}return`${n}${s?"("+s+")":""}[${r}]: ${e.replace(qe,"\n ")}`}("\n"+e.message,r,n,s),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(i,e,"R3InjectorError",this.source)}throw i}finally{Ke(s)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(Ee(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=ke(e)))return!1;let s=ge(e);const r=null==s&&e.ngModule||void 0,i=void 0===r?e:r,o=-1!==n.indexOf(i);if(void 0!==r&&(s=ge(r)),null==s)return!1;if(null!=s.imports&&!o){let e;n.push(i);try{nt(s.imports,s=>{this.processInjectorType(s,t,n)&&(void 0===e&&(e=[]),e.push(s))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:s}=e[t];nt(s,e=>this.processProvider(e,n,s||Fr))}}this.injectorDefTypes.add(i),this.records.set(i,Lr(s.factory,Or));const a=s.providers;if(null!=a&&!o){const t=e;nt(a,e=>this.processProvider(e,t,a))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,n){let s=Br(e=ke(e))?e:ke(e&&e.provide);const r=function(e,t,n){return zr(e)?Lr(void 0,e.useValue):Lr(function(e,t,n){let s=void 0;if(Br(e)){const t=ke(e);return _t(t)||Hr(t)}if(zr(e))s=()=>ke(e.useValue);else if((r=e)&&r.useFactory)s=()=>e.useFactory(...Xe(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))s=()=>Ye(ke(e.useExisting));else{const r=ke(e&&(e.useClass||e.provide));if(r||function(e,t,n){let s="";throw e&&t&&(s=` - only instances of Provider and Type are allowed, got: [${t.map(e=>e==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${Ee(e)}'`+s)}(t,n,e),!function(e){return!!e.deps}(e))return _t(r)||Hr(r);s=()=>new r(...Xe(e.deps))}var r;return s}(e,t,n),Or)}(e,t,n);if(Br(e)||!0!==e.multi){const e=this.records.get(s);e&&void 0!==e.multi&&rs()}else{let t=this.records.get(s);t?void 0===t.multi&&rs():(t=Lr(void 0,Or,!0),t.factory=()=>Xe(t.multi),this.records.set(s,t)),s=e,t.multi.push(e)}this.records.set(s,r)}hydrate(e,t){var n;return t.value===Dr?function(e){throw new Error("Cannot instantiate cyclic dependency! "+e)}(Ee(e)):t.value===Or&&(t.value=Dr,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function Hr(e){const t=me(e),n=null!==t?t.factory:_t(e);if(null!==n)return n;const s=ge(e);if(null!==s)return s.factory;if(e instanceof Le)throw new Error(`Token ${Ee(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=function(e,t){const n=[];for(let s=0;s<e;s++)n.push("?");return n}(t);throw new Error(`Can't resolve all parameters for ${Ee(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[_e]||e[be]||e[we]&&e[we]());if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function Lr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function zr(e){return null!==e&&"object"==typeof e&&$e in e}function Br(e){return"function"==typeof e}const qr=function(e,t,n){return function(e,t=null,n=null,s){const r=Mr(e,t,n,s);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)};let Qr=(()=>{class e{static create(e,t){return Array.isArray(e)?qr(e,t,""):qr(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=Be,e.NULL=new et,e.\u0275prov=pe({token:e,providedIn:"any",factory:()=>Ye(ze)}),e.__NG_ELEMENT_ID__=-1,e})();function $r(e,t,n){let s=n?e.styles:null,r=n?e.classes:null,i=0;if(null!==t)for(let o=0;o<t.length;o++){const e=t[o];"number"==typeof e?i=e:1==i?r=xe(r,e):2==i&&(s=xe(s,e+": "+t[++o]+";"))}n?e.styles=s:e.stylesWithoutHost=s,n?e.classes=r:e.classesWithoutHost=r}let Wr=null;function Zr(){if(!Wr){const e=Oe.Symbol;if(e&&e.iterator)Wr=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Wr=n)}}}return Wr}function Kr(e){return!!Ur(e)&&(Array.isArray(e)||!(e instanceof Map)&&Zr()in e)}function Ur(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Gr(e,t=he.Default){const n=Kt();return null==n?Ye(e,t):zn(Gt(),n,ke(e),t)}function Yr(e,t,n){const s=Kt();return function(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}(s,Wt.lFrame.bindingIndex++,t)&&function(e,t,n,s,r,i,o,a){const l=Mt(t,n);let c,u=t.inputs;var h;null!=u&&(c=u[s])?(nr(e,n,c,s,r),Tt(t)&&function(e,t){const n=Ht(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3===t.type&&(s="class"===(h=s)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,r=null!=o?o(r,t.tagName||"",s):r,Ft(i)?i.setProperty(l,s,r):En(s)||(l.setProperty?l.setProperty(s,r):l[s]=r))}(Ut(),function(){const e=Wt.lFrame;return Vt(e.tView,e.selectedIndex)}(),s,e,t,s[11],n),Yr}function Jr(e,t,n,s,r){const i=r?"class":"style";nr(e,n,t.inputs[i],i,s)}function Xr(e,t,n,s){const r=Kt(),i=Ut(),o=wt+e,a=r[11],l=r[o]=Es(t,a,Wt.lFrame.currentNamespace),c=i.firstCreatePass?function(e,t,n,s,r,i,o){const a=t.consts,l=qt(a,i),c=Ts(t,n[6],e,3,r,l);return function(e,t,n,s){let r=!1;if(Zt()){const i=function(e,t,n){const s=e.directiveRegistry;let r=null;if(s)for(let i=0;i<s.length;i++){const o=s[i];ps(n,o.selectors,!1)&&(r||(r=[]),Ln(jn(n,t),e,o.type),kt(o)?(2&n.flags&&ss(n),Hs(e,n),r.unshift(o)):r.push(o))}return r}(e,t,n),o=null===s?null:{"":-1};if(null!==i){let s=0;r=!0,zs(n,e.data.length,i.length);for(let e=0;e<i.length;e++){const t=i[e];t.providersResolver&&t.providersResolver(t)}Vs(e,n,i.length);let a=!1,l=!1;for(let r=0;r<i.length;r++){const c=i[r];n.mergedAttrs=xn(n.mergedAttrs,c.hostAttrs),Bs(e,t,c),Ls(e.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!a&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-wt),a=!0),l||!u.ngOnChanges&&!u.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-wt),l=!0),Rs(e,c),s+=c.hostVars}!function(e,t){const n=t.directiveEnd,s=e.data,r=t.attrs,i=[];let o=null,a=null;for(let l=t.directiveStart;l<n;l++){const e=s[l],n=e.inputs,c=null===r||ls(t)?null:$s(n,r);i.push(c),o=Fs(n,l,o),a=Fs(e.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=i,t.inputs=o,t.outputs=a}(e,n),js(e,t,s)}o&&function(e,t,n){if(t){const s=e.localNames=[];for(let e=0;e<t.length;e+=2){const r=n[t[e+1]];if(null==r)throw new Error(`Export of name '${t[e+1]}' not found!`);s.push(t[e],r)}}}(n,s,o)}n.mergedAttrs=xn(n.mergedAttrs,n.attrs)}(t,n,c,qt(a,o)),null!==c.attrs&&$r(c,c.attrs,!1),null!==c.mergedAttrs&&$r(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(e,i,r,0,t,n,s):i.data[o];Yt(c,!0);const u=c.mergedAttrs;null!==u&&Sn(a,l,u);const h=c.classes;null!==h&&Sr(a,l,h);const d=c.styles;null!==d&&br(a,l,d),yr(i,r,l,c),0===Wt.lFrame.elementDepthCount&&ns(l,r),Wt.lFrame.elementDepthCount++,Ct(c)&&(function(e,t,n){Zt()&&(function(e,t,n,s){const r=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||jn(n,t),ns(s,t);const o=n.initialInputs;for(let a=r;a<i;a++){const s=e.data[a],i=kt(s);i&&qs(t,n,s);const l=$n(t,e,a,n);ns(l,t),null!==o&&Qs(0,a-r,l,s,0,o),i&&(Ht(n.index,t)[8]=l)}}(e,t,n,Mt(n,t)),128==(128&n.flags)&&function(e,t,n){const s=n.directiveStart,r=n.directiveEnd,i=e.expandoInstructions,o=e.firstCreatePass,a=n.index-wt,l=Wt.lFrame.currentDirectiveIndex;try{fn(a);for(let n=s;n<r;n++){const s=e.data[n],r=t[n];nn(n),null!==s.hostBindings||0!==s.hostVars||null!==s.hostAttrs?Ms(s,r):o&&i.push(null)}}finally{fn(-1),nn(l)}}(e,t,n))}(i,r,c),function(e,t,n){if(xt(t)){const s=t.directiveEnd;for(let r=t.directiveStart;r<s;r++){const t=e.data[r];t.contentQueries&&t.contentQueries(1,n[r],r)}}}(i,c,r)),null!==s&&function(e,t,n=Mt){const s=t.localNames;if(null!==s){let r=t.index+1;for(let i=0;i<s.length;i+=2){const o=s[i+1],a=-1===o?n(t,e):e[o];e[r++]=a}}}(r,c)}function ei(){let e=Gt();Jt()?Wt.lFrame.isParent=!1:(e=e.parent,Yt(e,!1));const t=e;Wt.lFrame.elementDepthCount--;const n=Ut();n.firstCreatePass&&(mn(n,e),xt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Jr(n,t,Kt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Jr(n,t,Kt(),t.stylesWithoutHost,!1)}function ti(e,t,n,s){Xr(e,t,n,s),ei()}function ni(e){return!!e&&"function"==typeof e.then}function si(e,t,n=!1,s){const r=Kt(),i=Ut(),o=Gt();return function(e,t,n,s,r,i,o=!1,a){const l=Ct(s),c=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),u=er(t);let h=!0;if(3===s.type){const d=Mt(s,t),p=a?a(d):at,f=p.target||d,m=u.length,y=a?e=>a(jt(e[s.index])).target:s.index;if(Ft(n)){let o=null;if(!a&&l&&(o=function(e,t,n,s){const r=e.cleanup;if(null!=r)for(let i=0;i<r.length-1;i+=2){const e=r[i];if(e===n&&r[i+1]===s){const e=t[7],n=r[i+2];return e.length>n?e[n]:null}"string"==typeof e&&(i+=2)}return null}(e,t,r,s.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=ii(s,t,i,!1);const e=n.listen(p.name||f,r,i);u.push(i,e),c&&c.push(r,y,m,m+1)}}else i=ii(s,t,i,!0),f.addEventListener(r,i,o),u.push(i),c&&c.push(r,y,m,o)}const d=s.outputs;let p;if(h&&null!==d&&(p=d[r])){const e=p.length;if(e)for(let n=0;n<e;n+=2){const e=t[p[n]][p[n+1]].subscribe(i),o=u.length;u.push(i,e),c&&c.push(r,s.index,o,-(o+1))}}}(i,r,r[11],o,e,t,n,s),si}function ri(e,t,n){try{return!1!==t(n)}catch(s){return tr(e,s),!1}}function ii(e,t,n,s){return function r(i){if(i===Function)return n;const o=2&e.flags?Ht(e.index,t):t;0==(32&t[2])&&Us(o);let a=ri(t,n,i),l=r.__ngNextListenerFn__;for(;l;)a=ri(t,l,i)&&a,l=l.__ngNextListenerFn__;return s&&!1===a&&(i.preventDefault(),i.returnValue=!1),a}}function oi(e,t){const n=Lt(e)[1],s=n.data.length-1;mn(n,{directiveStart:s,directiveEnd:s+1})}class ai{}class li{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${Ee(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let ci=(()=>{class e{}return e.NULL=new li,e})(),ui=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>hi(e),e})();const hi=function(e){return Ir(e,Gt(),Kt())};class di{}var pi=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let fi=(()=>{class e{}return e.\u0275prov=pe({token:e,providedIn:"root",factory:()=>null}),e})();class mi{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const yi=new mi("10.1.0");class gi{constructor(){}supports(e){return Kr(e)}create(e){return new vi(e)}}const _i=(e,t)=>t;class vi{constructor(e){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=e||_i}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,s=0,r=null;for(;t||n;){const i=!n||t&&t.currentIndex<Ei(n,s,r)?t:n,o=Ei(i,s,r),a=i.currentIndex;if(i===n)s--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)s++;else{r||(r=[]);const e=o-s,t=a-s;if(e!=t){for(let n=0;n<e;n++){const s=n<r.length?r[n]:r[n]=0,i=s+n;t<=i&&i<e&&(r[n]=s+1)}r[i.previousIndex]=t-e}}o!==a&&e(i,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Kr(e))throw new Error(`Error trying to diff '${Ee(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,s,r=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],s=this._trackByFn(t,n),null!==r&&Object.is(r.trackById,s)?(i&&(r=this._verifyReinsertion(r,n,s,t)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,s,t),i=!0),r=r._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Zr()]();let s;for(;!(s=n.next()).done;)t(s.value)}}(e,e=>{s=this._trackByFn(t,e),null!==r&&Object.is(r.trackById,s)?(i&&(r=this._verifyReinsertion(r,e,s,t)),Object.is(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,s,t),i=!0),r=r._next,t++}),this.length=t;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,s){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,s)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,s)):e=this._addAfter(new wi(t,n),r,s),e}_verifyReinsertion(e,t,n,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,s):e.currentIndex!=s&&(e.currentIndex=s,this._addToMoves(e,s)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}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(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const s=e._prevRemoved,r=e._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const s=null===t?this._itHead:t._next;return e._next=s,e._prev=t,null===s?this._itTail=e:s._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Si),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Si),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class wi{constructor(e,t){this.item=e,this.trackById=t,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 bi{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class Si{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new bi,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ei(e,t,n){const s=e.previousIndex;if(null===s)return s;let r=0;return n&&s<n.length&&(r=n[s]),s+t+r}class xi{constructor(){}supports(e){return e instanceof Map||Ur(e)}create(){return new Ti}}class Ti{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Ur(e)))throw new Error(`Error trying to diff '${Ee(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const s=n._prev,r=n._next;return s&&(s._next=r),r&&(r._prev=s),n._next=null,n._prev=null,n}const n=new Ci(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class Ci{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let ki=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ue,new le]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=pe({token:e,providedIn:"root",factory:()=>new e([new gi])}),e})(),Ii=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ue,new le]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=pe({token:e,providedIn:"root",factory:()=>new e([new xi])}),e})();const Ai=[new xi],Ni=new ki([new gi]),Pi=new Ii(Ai);let Oi=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Di(e,ui),e})();const Di=function(e,t){return Ar(e,t,Gt(),Kt())};let Fi=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Ri(e,ui),e})();const Ri=function(e,t){return Nr(e,t,Gt(),Kt())},ji={};class Mi extends ci{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=gt(e);return new Li(t,this.ngModule)}}function Vi(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const Hi=new Le("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Pn});class Li extends ai{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(ms).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Vi(this.componentDef.inputs)}get outputs(){return Vi(this.componentDef.outputs)}create(e,t,n,s){const r=(s=s||this.ngModule)?function(e,t){return{get:(n,s,r)=>{const i=e.get(n,ji,r);return i!==ji||s===ji?i:t.get(n,s,r)}}}(e,s.injector):e,i=r.get(di,Rt),o=r.get(fi,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(Ft(e))return e.selectRootElement(t,n===ot.ShadowDom);let s="string"==typeof t?e.querySelector(t):t;return s.textContent="",s}(a,n,this.componentDef.encapsulation):Es(l,i.createRenderer(null,this.componentDef),function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Pn,clean:Xs,playerHandler:null,flags:0},d=Ps(0,-1,null,1,0,null,null,null,null,null),p=xs(null,d,h,u,null,null,i,a,o,r);let f,m;an(p,null);try{const e=function(e,t,n,s,r,i){const o=n[1];n[20]=e;const a=Ts(o,null,0,3,null,null),l=a.mergedAttrs=t.hostAttrs;null!==l&&($r(a,l,!0),null!==e&&(Sn(r,e,l),null!==a.classes&&Sr(r,e,a.classes),null!==a.styles&&br(r,e,a.styles)));const c=s.createRenderer(e,t),u=xs(n,Ns(t),null,t.onPush?64:16,n[20],a,s,c,void 0);return o.firstCreatePass&&(Ln(jn(a,n),o,t.type),Hs(o,a),zs(a,n.length,1)),Ks(n,u),n[20]=u}(c,this.componentDef,p,i,a);if(c)if(n)Sn(a,c,["ng-version",yi.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let s=1,r=2;for(;s<e.length;){let i=e[s];if("string"==typeof i)2===r?""!==i&&t.push(i,e[++s]):8===r&&n.push(i);else{if(!hs(r))break;r=i}s++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&Sn(a,c,e),t&&t.length>0&&Sr(a,c,t.join(" "))}if(m=Vt(d,0),void 0!==t){const e=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const s=t[n];e.push(null!=s?Array.from(s):null)}}f=function(e,t,n,s,r){const i=n[1],o=function(e,t,n){const s=Gt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Vs(e,s,1),Bs(e,t,n));const r=$n(t,e,t.length-1,s);ns(r,t);const i=Mt(s,t);return i&&ns(i,t),r}(i,n,t);s.components.push(o),e[8]=o,r&&r.forEach(e=>e(o,t)),t.contentQueries&&t.contentQueries(1,o,n.length-1);const a=Gt();if(i.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){fn(a.index-wt);const e=n[1];Rs(e,t),js(e,n,t.hostVars),Ms(t,o)}return o}(e,this.componentDef,p,h,[oi]),Cs(d,p,null)}finally{dn()}const y=new zi(this.componentType,f,Ir(ui,m,p),p,m);return d.node.child=m,y}}class zi extends class{}{constructor(e,t,n,s,r){super(),this.location=n,this._rootLView=s,this._tNode=r,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new xr(s),function(e,t,n,s){let r=e.node;null==r&&(e.node=r=Ds(0,null,2,-1,null,null)),s[6]=r}(s[1],0,0,s),this.componentType=e}get injector(){return new Kn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const Bi=void 0;var qi=["en",[["a","p"],["AM","PM"],Bi],[["AM","PM"],Bi,Bi],[["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"]],Bi,[["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"]],Bi,[["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}",Bi,"{1} 'at' {0}",Bi],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Qi={};function $i(e){return e in Qi||(Qi[e]=Oe.ng&&Oe.ng.common&&Oe.ng.common.locales&&Oe.ng.common.locales[e]),Qi[e]}var Wi=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});const Zi="en-US";let Ki=Zi;function Ui(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,s){throw new Error("ASSERTION ERROR: "+e+` [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(Ki=e.toLowerCase().replace(/_/g,"-"))}const Gi=new Map;class Yi extends tt{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Mi(this);const n=vt(e),s=e[Me]||null;s&&Ui(s),this._bootstrapComponents=On(n.bootstrap),this._r3Injector=Mr(e,t,[{provide:tt,useValue:this},{provide:ci,useValue:this.componentFactoryResolver}],Ee(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Qr.THROW_IF_NOT_FOUND,n=he.Default){return e===Qr||e===tt||e===ze?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Ji extends class{}{constructor(e){super(),this.moduleType=e,null!==vt(e)&&function e(t){if(null!==t.\u0275mod.id){const e=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${Ee(t)} vs ${Ee(t.name)}`)})(e,Gi.get(e),t),Gi.set(e,t)}let n=t.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(t=>e(t))}(e)}create(e){return new Yi(this.moduleType,e)}}const Xi=class extends T{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let s,r=e=>null,i=()=>null;e&&"object"==typeof e?(s=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(r=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(i=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(s,r,i);return e instanceof h&&e.add(o),o}};function eo(){return this._results[Zr()]()}class to{constructor(){this.dirty=!0,this._results=[],this.changes=new Xi,this.length=0;const e=Zr(),t=to.prototype;t[e]||(t[e]=eo)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let s=0;s<t.length;s++){let r=t[s];Array.isArray(r)?(n===t&&(n=t.slice(0,s)),e(r,n)):n!==t&&n.push(r)}return n}(e),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 no{constructor(e){this.queryList=e,this.matches=null}clone(){return new no(this.queryList)}setDirty(){this.queryList.setDirty()}}class so{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,s=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);s.push(this.queries[n.indexInDeclarationView].clone())}return new so(s)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==uo(e,t).matches&&this.queries[t].setDirty()}}class ro{constructor(e,t,n,s=null){this.predicate=e,this.descendants=t,this.isStatic=n,this.read=s}}class io{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const s=null!==t?t.length:0,r=this.getByIndex(n).embeddedTView(e,s);r&&(r.indexInDeclarationView=n,null!==t?t.push(r):t=[r])}return null!==t?new io(t):null}template(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class oo{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new oo(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let s=0;s<n.length;s++){const r=n[s];this.matchTNodeWithReadOption(e,t,ao(t,r)),this.matchTNodeWithReadOption(e,t,Qn(t,e,r,!1,!1))}else n===Oi?0===t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Qn(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const s=this.metadata.read;if(null!==s)if(s===ui||s===Fi||s===Oi&&0===t.type)this.addMatch(t.index,-2);else{const n=Qn(t,e,s,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function ao(e,t){const n=e.localNames;if(null!==n)for(let s=0;s<n.length;s+=2)if(n[s]===t)return n[s+1];return null}function lo(e,t,n,s){return-1===n?function(e,t){return 3===e.type||4===e.type?Ir(ui,e,t):0===e.type?Ar(Oi,ui,e,t):null}(t,e):-2===n?function(e,t,n){return n===ui?Ir(ui,t,e):n===Oi?Ar(Oi,ui,t,e):n===Fi?Nr(Fi,ui,t,e):void 0}(e,t,s):$n(e,e[1],n,t)}function co(e,t,n,s){const r=t[19].queries[s];if(null===r.matches){const s=e.data,i=n.matches,o=[];for(let e=0;e<i.length;e+=2){const r=i[e];o.push(r<0?null:lo(t,s[r],i[e+1],n.metadata.read))}r.matches=o}return r.matches}function uo(e,t){return e.queries.getByIndex(t)}const ho=new Le("Application Initializer");let po=(()=>{class e{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();ni(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(Ye(ho,8))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const fo=new Le("AppId"),mo={provide:fo,useFactory:function(){return`${yo()}${yo()}${yo()}`},deps:[]};function yo(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const go=new Le("Platform Initializer"),_o=new Le("Platform ID"),vo=new Le("appBootstrapListener");let wo=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const bo=new Le("LocaleId"),So=new Le("DefaultCurrencyCode");class Eo{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const xo=function(e){return new Ji(e)},To=xo,Co=function(e){return Promise.resolve(xo(e))},ko=function(e){const t=xo(e),n=On(vt(e).declarations).reduce((e,t)=>{const n=gt(t);return n&&e.push(new Li(n)),e},[]);return new Eo(t,n)},Io=ko,Ao=function(e){return Promise.resolve(ko(e))};let No=(()=>{class e{constructor(){this.compileModuleSync=To,this.compileModuleAsync=Co,this.compileModuleAndAllComponentsSync=Io,this.compileModuleAndAllComponentsAsync=Ao}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const Po=(()=>Promise.resolve(0))();function Oo(e){"undefined"==typeof Zone?Po.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Do{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Xi(!1),this.onMicrotaskEmpty=new Xi(!1),this.onStable=new Xi(!1),this.onError=new Xi(!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)),e&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=t,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let e=Oe.requestAnimationFrame,t=Oe.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const s=t[Zone.__symbol__("OriginalDelegate")];s&&(t=s)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Oe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Mo(e),jo(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Mo(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,s,r,i,o,a)=>{try{return Vo(e),n.invokeTask(r,i,o,a)}finally{t&&"eventTask"===i.type&&t(),Ho(e)}},onInvoke:(t,n,s,r,i,o,a)=>{try{return Vo(e),t.invoke(s,r,i,o,a)}finally{Ho(e)}},onHasTask:(t,n,s,r)=>{t.hasTask(s,r),n===s&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,Mo(e),jo(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,s,r)=>(t.handleError(s,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Do.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Do.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,s){const r=this._inner,i=r.scheduleEventTask("NgZoneEvent: "+s,e,Ro,Fo,Fo);try{return r.runTask(i,t,n)}finally{r.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function Fo(){}const Ro={};function jo(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Mo(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function Vo(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ho(e){e._nesting--,jo(e)}class Lo{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Xi,this.onMicrotaskEmpty=new Xi,this.onStable=new Xi,this.onError=new Xi}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,s){return e.apply(t,n)}}let zo=(()=>{class e{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:()=>{Do.assertNotInAngularZone(),Oo(()=>{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())Oo(()=>{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(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.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,t,n){let s=-1;t&&t>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==s),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:n})}whenStable(e,t,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(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(Ye(Do))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),Bo=(()=>{class e{constructor(){this._applications=new Map,$o.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}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,t=!0){return $o.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class qo{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let Qo,$o=new qo;const Wo=new Le("AllowMultipleToken");function Zo(e,t,n=[]){const s="Platform: "+t,r=new Le(s);return(t=[])=>{let i=Ko();if(!i||i.injector.get(Wo,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0},{provide:Pr,useValue:"platform"});!function(e){if(Qo&&!Qo.destroyed&&!Qo.injector.get(Wo,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Qo=e.get(Uo);const t=e.get(go,null);t&&t.forEach(e=>e())}(Qr.create({providers:e,name:s}))}return function(e){const t=Ko();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Ko(){return Qo&&!Qo.destroyed?Qo:null}let Uo=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new Lo:("zone.js"===e?void 0:e)||new Do({enableLongStackTrace:ts(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),s=[{provide:Do,useValue:n}];return n.run(()=>{const t=Qr.create({providers:s,parent:this.injector,name:e.moduleType.name}),r=e.create(t),i=r.injector.get(Jn,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>Jo(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{i.handleError(e)}})),function(e,t,n){try{const s=n();return ni(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(s){throw t.runOutsideAngular(()=>e.handleError(s)),s}}(i,n,()=>{const e=r.injector.get(po);return e.runInitializers(),e.donePromise.then(()=>(Ui(r.injector.get(bo,Zi)||Zi),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=Go({},t);return function(e,t,n){const s=new Ji(n);return Promise.resolve(s)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Yo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${Ee(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(Ye(Qr))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();function Go(e,t){return Array.isArray(t)?t.reduce(Go,e):Object.assign(Object.assign({},e),t)}let Yo=(()=>{class e{constructor(e,t,n,s,r,i){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=s,this._componentFactoryResolver=r,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ts(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new w(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new w(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Do.assertNotInAngularZone(),Oo(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Do.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=K(o,a.pipe(e=>U()(te(se)(e))))}bootstrap(e,t){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=e instanceof ai?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(tt),r=n.create(Qr.NULL,[],t||n.selector,s);r.onDestroy(()=>{this._unloadComponent(r)});const i=r.injector.get(zo,null);return i&&r.injector.get(Bo).registerApplication(r.location.nativeElement,i),this._loadComponent(r),ts()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Jo(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(vo,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Jo(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(Ye(Do),Ye(wo),Ye(Qr),Ye(Jn),Ye(ci),Ye(po))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();function Jo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Xo=Zo(null,"core",[{provide:_o,useValue:"unknown"},{provide:Uo,deps:[Qr]},{provide:Bo,deps:[]},{provide:wo,deps:[]}]),ea=[{provide:Yo,useClass:Yo,deps:[Do,wo,Qr,Jn,ci,po]},{provide:Hi,deps:[Do],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:po,useClass:po,deps:[[new le,ho]]},{provide:No,useClass:No,deps:[]},mo,{provide:ki,useFactory:function(){return Ni},deps:[]},{provide:Ii,useFactory:function(){return Pi},deps:[]},{provide:bo,useFactory:function(e){return Ui(e=e||"undefined"!=typeof $localize&&$localize.locale||Zi),e},deps:[[new ae(bo),new le,new ue]]},{provide:So,useValue:"USD"}];let ta=(()=>{class e{constructor(e){}}return e.\u0275mod=ft({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)(Ye(Yo))},providers:ea}),e})();function na(...e){let t=e[e.length-1];return k(t)?(e.pop(),M(e,t)):Z(e)}class sa extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class ra extends sa{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,s=void 0;try{this.work(e)}catch(r){n=!0,s=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),s}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let ia=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class oa extends ia{constructor(e,t=ia.now){super(e,()=>oa.delegate&&oa.delegate!==this?oa.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return oa.delegate&&oa.delegate!==this?oa.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}class aa{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new la(e,this.compare,this.keySelector))}}class la extends f{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(s){return this.destination.error(s)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(s){return this.destination.error(s)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}class ca{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new ua(e,this.predicate,this.thisArg))}}class ua extends f{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}function ha(e){return t=>t.lift(new da(e))}class da{constructor(e){this.notifier=e}call(e,t){const n=new pa(e),s=z(this.notifier,new H(n));return s&&!n.seenValue?(n.add(s),t.subscribe(n)):n}}class pa extends L{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function fa(...e){return W(1)(na(...e))}function ma(...e){const t=e[e.length-1];return k(t)?(e.pop(),n=>fa(e,n,t)):t=>fa(e,t)}function ya(e,t){return"function"==typeof t?n=>n.pipe(ya((n,s)=>V(e(n,s)).pipe(I((e,r)=>t(n,e,s,r))))):t=>t.lift(new ga(e))}class ga{constructor(e){this.project=e}call(e,t){return t.subscribe(new _a(e,this.project))}}class _a extends L{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(s){return void this.destination.error(s)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new H(this),s=this.destination;s.add(n),this.innerSubscription=z(e,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}class va extends ra{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}class wa extends oa{}const ba=new wa(va),Sa=new w(e=>e.complete());function Ea(e){return e?function(e){return new w(t=>e.schedule(()=>t.complete()))}(e):Sa}let xa=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return na(this.value);case"E":return e=this.error,new w(t=>t.error(e));case"C":return Ea()}var e;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class Ta extends f{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Ta.dispatch,this.delay,new Ca(e,this.destination)))}_next(e){this.scheduleMessage(xa.createNext(e))}_error(e){this.scheduleMessage(xa.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(xa.createComplete()),this.unsubscribe()}}class Ca{constructor(e,t){this.notification=e,this.destination=t}}class ka extends T{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new Ia(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=n.length;let i;if(this.closed)throw new S;if(this.isStopped||this.hasError?i=h.EMPTY:(this.observers.push(e),i=new E(this,e)),s&&e.add(e=new Ta(e,s)),t)for(let o=0;o<r&&!e.closed;o++)e.next(n[o]);else for(let o=0;o<r&&!e.closed;o++)e.next(n[o].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),i}_getNow(){return(this.scheduler||ba).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,s=this._events,r=s.length;let i=0;for(;i<r&&!(e-s[i].time<n);)i++;return r>t&&(i=Math.max(i,r-t)),i>0&&s.splice(0,i),s}}class Ia{constructor(e,t){this.time=e,this.value=t}}let Aa=null;function Na(){return Aa}const Pa=new Le("DocumentToken");var Oa=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({});class Da{}let Fa,Ra=(()=>{class e extends Da{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=$i(t);if(n)return n;const s=t.split("-")[0];if(n=$i(s),n)return n;if("en"===s)return qi;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[Wi.PluralCase]}(t||this.locale)(e)){case Oa.Zero:return"zero";case Oa.One:return"one";case Oa.Two:return"two";case Oa.Few:return"few";case Oa.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(Ye(bo))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),ja=(()=>{class e{}return e.\u0275mod=ft({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},providers:[{provide:Da,useClass:Ra}]}),e})();function Ma(e){return"browser"===e}try{Fa="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Rh){Fa=!1}let Va=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Ma(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Fa)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return e.\u0275fac=function(t){return new(t||e)(Ye(_o))},e.\u0275prov=pe({factory:function(){return new e(Ye(_o))},token:e,providedIn:"root"}),e})();const Ha=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();function La(e){return t=>0===e?Ea():t.lift(new za(e))}class za{constructor(e){if(this.total=e,this.total<0)throw new Ha}call(e,t){return t.subscribe(new Ba(e,this.total))}}class Ba extends f{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}const qa=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let Qa=(()=>{class e{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._platform?this._platform.isBrowser:"undefined"!=typeof window,t="cdk-overlay-container";if(e||qa){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const n=this._document.createElement("div");n.classList.add(t),qa?n.setAttribute("platform","test"):e||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}return e.\u0275fac=function(t){return new(t||e)(Ye(Pa),Ye(Va))},e.\u0275prov=pe({factory:function(){return new e(Ye(Pa),Ye(Va))},token:e,providedIn:"root"}),e})();const $a=(()=>{const e=Element.prototype;return e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector})(),Wa={schedule(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)},scheduleBeforeRender(e){if("undefined"==typeof window)return Wa.schedule(e,0);if(void 0===window.requestAnimationFrame)return Wa.schedule(e,16);const t=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(t)}};function Za(e,t,n){let s=n;return function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some((t,n)=>!("*"===t||!function(e,t){return $a.call(e,t)}(e,t)||(s=n,0))),s}class Ka{constructor(e,t){this.componentFactory=t.get(ci).resolveComponentFactory(e)}create(e){return new Ua(this.componentFactory,e)}}class Ua{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new ka(1),this.events=this.eventEmitters.pipe(ya(e=>K(...e))),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(Do),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=Wa.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{var n,s;null!==this.componentRef?((n=t)!==(s=this.getInputValue(e))&&(n==n||s==s)||void 0===t&&this.unchangedInputs.has(e))&&(this.recordInputChange(e,t),this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=Qr.create({providers:[],parent:this.injector}),n=function(e,t){const n=e.childNodes,s=t.map(()=>[]);let r=-1;t.some((e,t)=>"*"===e&&(r=t,!0));for(let i=0,o=n.length;i<o;++i){const e=n[i],o=Za(e,t,r);-1!==o&&s[o].push(e)}return s}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Yo).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.implementsOnChanges&&this.unchangedInputs.add(e),this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:t,templateName:n})=>e.instance[t].pipe(I(e=>({name:n,value:e}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Wa.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[e];if(n)return void(n.currentValue=t);const s=this.unchangedInputs.has(e);this.unchangedInputs.delete(e);const r=s?void 0:this.getInputValue(e);this.inputChanges[e]=new At(r,t,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class Ga extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Ya(e,t){e.forEach(({propName:e})=>{Object.defineProperty(t,e,{get(){return this.ngElementStrategy.getInputValue(e)},set(t){this.ngElementStrategy.setInputValue(e,t)},configurable:!0,enumerable:!0})})}class Ja extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new Ja,Aa||(Aa=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=el||(el=document.querySelector("base"),el)?el.getAttribute("href"):null;return null==t?null:(n=t,Xa||(Xa=document.createElement("a")),Xa.setAttribute("href",n),"/"===Xa.pathname.charAt(0)?Xa.pathname:"/"+Xa.pathname);var n}resetBaseElement(){el=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[s,r]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(s.trim()===t)return decodeURIComponent(r)}return null}(document.cookie,e)}}let Xa,el=null;const tl=new Le("TRANSITION_ID"),nl=[{provide:ho,useFactory:function(e,t,n){return()=>{n.get(po).donePromise.then(()=>{const n=Na();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[tl,Pa,Qr],multi:!0}];class sl{static init(){var e;e=new sl,$o=e}addToWindow(e){Oe.getAngularTestability=(t,n=!0)=>{const s=e.findTestabilityInTree(t,n);if(null==s)throw new Error("Could not find testability for element.");return s},Oe.getAllAngularTestabilities=()=>e.getAllTestabilities(),Oe.getAllAngularRootElements=()=>e.getAllRootElements(),Oe.frameworkStabilizers||(Oe.frameworkStabilizers=[]),Oe.frameworkStabilizers.push(e=>{const t=Oe.getAllAngularTestabilities();let n=t.length,s=!1;const r=function(t){s=s||t,n--,0==n&&e(s)};t.forEach((function(e){e.whenStable(r)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const s=e.getTestability(t);return null!=s?s:n?Na().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const rl=new Le("EventManagerPlugins");let il=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let s=0;s<n.length;s++){const t=n[s];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error("No event manager plugin found for event "+e)}}return e.\u0275fac=function(t){return new(t||e)(Ye(rl),Ye(Do))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class ol{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const s=Na().getGlobalEventTarget(this._doc,e);if(!s)throw new Error(`Unsupported event target ${s} for event ${t}`);return this.addEventListener(s,t,n)}}let al=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),ll=(()=>{class e extends al{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Na().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(Ye(Pa))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const cl={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/"},ul=/%COMP%/g;function hl(e,t,n){for(let s=0;s<t.length;s++){let r=t[s];Array.isArray(r)?hl(e,r,n):(r=r.replace(ul,e),n.push(r))}return n}function dl(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let pl=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new fl(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case ot.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new ml(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case ot.Native:case ot.ShadowDom:return new yl(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=hl(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(Ye(il),Ye(ll),Ye(fo))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class fl{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(cl[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,s){if(s){t=s+":"+t;const r=cl[s];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const s=cl[n];s?e.removeAttributeNS(s,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,s){s&pi.DashCase?e.style.setProperty(t,n,s&pi.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&pi.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,dl(n)):this.eventManager.addEventListener(e,t,dl(n))}}class ml extends fl{constructor(e,t,n,s){super(e),this.component=n;const r=hl(s+"-"+n.id,n.styles,[]);t.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(ul,s+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(ul,s+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class yl extends fl{constructor(e,t,n,s){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=s,this.shadowRoot=s.encapsulation===ot.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const r=hl(s.id,s.styles,[]);for(let i=0;i<r.length;i++){const e=document.createElement("style");e.textContent=r[i],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let gl=(()=>{class e extends ol{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(Ye(Pa))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const _l=["alt","control","meta","shift"],vl={"\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"},wl={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"},bl={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Sl=(()=>{class e extends ol{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,s){const r=e.parseEventName(n),i=e.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Na().onAndCancel(t,r.domEventName,i))}static parseEventName(t){const n=t.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const r=e._normalizeKey(n.pop());let i="";if(_l.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=s,o.fullKey=i,o}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&wl.hasOwnProperty(t)&&(t=wl[t]))}return vl[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),_l.forEach(s=>{s!=n&&(0,bl[s])(e)&&(t+=s+".")}),t+=n,t}static eventCallback(t,n,s){return r=>{e.getEventFullKey(r)===t&&s.runGuarded(()=>n(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(Ye(Pa))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const El=Zo(Xo,"browser",[{provide:_o,useValue:"browser"},{provide:go,useValue:function(){Ja.makeCurrent(),sl.init()},multi:!0},{provide:Pa,useFactory:function(){return function(e){Dt=e}(document),document},deps:[]}]),xl=[[],{provide:Pr,useValue:"root"},{provide:Jn,useFactory:function(){return new Jn},deps:[]},{provide:rl,useClass:gl,multi:!0,deps:[Pa,Do,_o]},{provide:rl,useClass:Sl,multi:!0,deps:[Pa]},[],{provide:pl,useClass:pl,deps:[il,ll,fo]},{provide:di,useExisting:pl},{provide:al,useExisting:ll},{provide:ll,useClass:ll,deps:[Pa]},{provide:zo,useClass:zo,deps:[Do]},{provide:il,useClass:il,deps:[rl,Do]},[]];let Tl=(()=>{class e{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(t){return{ngModule:e,providers:[{provide:fo,useValue:t.appId},{provide:tl,useExisting:fo},nl]}}}return e.\u0275mod=ft({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)(Ye(e,12))},providers:xl,imports:[ja,ta]}),e})();"undefined"!=typeof window&&window;class Cl{}const kl="*";function Il(e,t=null){return{type:2,steps:e,options:t}}function Al(e){return{type:6,styles:e,offset:null}}function Nl(e){Promise.resolve(null).then(e)}class Pl{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Nl(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){}getPosition(){return 0}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Ol{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,s=0;const r=this.players.length;0==r?Nl(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==r&&this._onFinish()}),e.onDestroy(()=>{++n==r&&this._onDestroy()}),e.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}function Dl(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Fl(e){switch(e.length){case 0:return new Pl;case 1:return e[0];default:return new Ol(e)}}function Rl(e,t,n,s,r={},i={}){const o=[],a=[];let l=-1,c=null;if(s.forEach(e=>{const n=e.offset,s=n==l,u=s&&c||{};Object.keys(e).forEach(n=>{let s=n,a=e[n];if("offset"!==n)switch(s=t.normalizePropertyName(s,o),a){case"!":a=r[n];break;case kl:a=i[n];break;default:a=t.normalizeStyleValue(n,s,a,o)}u[s]=a}),s||a.push(u),c=u,l=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return a}function jl(e,t,n,s){switch(t){case"start":e.onStart(()=>s(n&&Ml(n,"start",e)));break;case"done":e.onDone(()=>s(n&&Ml(n,"done",e)));break;case"destroy":e.onDestroy(()=>s(n&&Ml(n,"destroy",e)))}}function Ml(e,t,n){const s=n.totalTime,r=Vl(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==s?e.totalTime:s,!!n.disabled),i=e._data;return null!=i&&(r._data=i),r}function Vl(e,t,n,s,r="",i=0,o){return{element:e,triggerName:t,fromState:n,toState:s,phaseName:r,totalTime:i,disabled:!!o}}function Hl(e,t,n){let s;return e instanceof Map?(s=e.get(t),s||e.set(t,s=n)):(s=e[t],s||(s=e[t]=n)),s}function Ll(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let zl=(e,t)=>!1,Bl=(e,t)=>!1,ql=(e,t,n)=>[];const Ql=Dl();(Ql||"undefined"!=typeof Element)&&(zl=(e,t)=>e.contains(t),Bl=(()=>{if(Ql||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):Bl}})(),ql=(e,t,n)=>{let s=[];if(n)s.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&s.push(n)}return s});let $l=null,Wl=!1;function Zl(e){$l||($l=("undefined"!=typeof document?document.body:null)||{},Wl=!!$l.style&&"WebkitAppearance"in $l.style);let t=!0;return $l.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in $l.style,!t&&Wl)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in $l.style),t}const Kl=Bl,Ul=zl,Gl=ql;function Yl(e){const t={};return Object.keys(e).forEach(n=>{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[s]=e[n]}),t}let Jl=(()=>{class e{validateStyleProperty(e){return Zl(e)}matchesElement(e,t){return Kl(e,t)}containsElement(e,t){return Ul(e,t)}query(e,t,n){return Gl(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,s,r,i=[],o){return new Pl(n,s)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),Xl=(()=>{class e{}return e.NOOP=new Jl,e})();const ec="ng-enter",tc="ng-leave",nc="ng-trigger",sc=".ng-trigger",rc="ng-animating",ic=".ng-animating";function oc(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:ac(parseFloat(t[1]),t[2])}function ac(e,t){switch(t){case"s":return 1e3*e;default:return e}}function lc(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let s,r=0,i="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};s=ac(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=ac(parseFloat(o),n[4]));const a=n[5];a&&(i=a)}else s=e;if(!n){let n=!1,i=t.length;s<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(i,0,`The provided timing value "${e}" is invalid.`)}return{duration:s,delay:r,easing:i}}(e,t,n)}function cc(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function uc(e,t,n={}){if(t)for(let s in e)n[s]=e[s];else cc(e,n);return n}function hc(e,t,n){return n?t+":"+n+";":""}function dc(e){let t="";for(let n=0;n<e.style.length;n++){const s=e.style.item(n);t+=hc(0,s,e.style.getPropertyValue(s))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=hc(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function pc(e,t,n){e.style&&(Object.keys(t).forEach(s=>{const r=bc(s);n&&!n.hasOwnProperty(s)&&(n[s]=e.style[r]),e.style[r]=t[s]}),Dl()&&dc(e))}function fc(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=bc(t);e.style[n]=""}),Dl()&&dc(e))}function mc(e){return Array.isArray(e)?1==e.length?e[0]:Il(e):e}const yc=new RegExp("{{\\s*(.+?)\\s*}}","g");function gc(e){let t=[];if("string"==typeof e){let n;for(;n=yc.exec(e);)t.push(n[1]);yc.lastIndex=0}return t}function _c(e,t,n){const s=e.toString(),r=s.replace(yc,(e,s)=>{let r=t[s];return t.hasOwnProperty(s)||(n.push("Please provide a value for the animation param "+s),r=""),r.toString()});return r==s?e:r}function vc(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const wc=/-+([a-z0-9])/g;function bc(e){return e.replace(wc,(...e)=>e[1].toUpperCase())}function Sc(e,t){return 0===e||0===t}function Ec(e,t,n){const s=Object.keys(n);if(s.length&&t.length){let i=t[0],o=[];if(s.forEach(e=>{i.hasOwnProperty(e)||o.push(e),i[e]=n[e]}),o.length)for(var r=1;r<t.length;r++){let n=t[r];o.forEach((function(t){n[t]=Tc(e,t)}))}}return t}function xc(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function Tc(e,t){return window.getComputedStyle(e)[t]}const Cc="*";function kc(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const s=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof s)return void t.push(s);e=s}const s=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const r=s[1],i=s[2],o=s[3];t.push(Nc(r,o)),"<"!=i[0]||r==Cc&&o==Cc||t.push(Nc(o,r))}(e,n,t)):n.push(e),n}const Ic=new Set(["true","1"]),Ac=new Set(["false","0"]);function Nc(e,t){const n=Ic.has(e)||Ac.has(e),s=Ic.has(t)||Ac.has(t);return(r,i)=>{let o=e==Cc||e==r,a=t==Cc||t==i;return!o&&n&&"boolean"==typeof r&&(o=r?Ic.has(e):Ac.has(e)),!a&&s&&"boolean"==typeof i&&(a=i?Ic.has(t):Ac.has(t)),o&&a}}const Pc=new RegExp("s*:selfs*,?","g");function Oc(e,t,n){return new Dc(e).build(t,n)}class Dc{constructor(e){this._driver=e}build(e,t){const n=new Fc(t);return this._resetContextStyleTimingState(n),xc(this,mc(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0;const r=[],i=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,s=n.name;s.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,r.push(this.visitState(n,t))}),n.name=s}else if(1==e.type){const r=this.visitTransition(e,t);n+=r.queryCount,s+=r.depCount,i.push(r)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:r,transitions:i,queryCount:n,depCount:s,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){const r=new Set,i=s||{};if(n.styles.forEach(e=>{if(Rc(e)){const t=e;Object.keys(t).forEach(e=>{gc(t[e]).forEach(e=>{i.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=vc(r.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=xc(this,mc(e.animation),t);return{type:1,matchers:kc(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:jc(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>xc(this,e,t)),options:jc(e.options)}}visitGroup(e,t){const n=t.currentTime;let s=0;const r=e.steps.map(e=>{t.currentTime=n;const r=xc(this,e,t);return s=Math.max(s,t.currentTime),r});return t.currentTime=s,{type:3,steps:r,options:jc(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Mc(lc(e,t).duration,0,"");const s=e;if(s.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=Mc(0,0,"");return e.dynamic=!0,e.strValue=s,e}return n=n||lc(s,t),Mc(n.duration,n.delay,n.easing)}(e.timings,t.errors);let s;t.currentAnimateTimings=n;let r=e.styles?e.styles:Al({});if(5==r.type)s=this.visitKeyframes(r,t);else{let r=e.styles,i=!1;if(!r){i=!0;const e={};n.easing&&(e.easing=n.easing),r=Al(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(r,t);o.isEmptyStep=i,s=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==kl?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let s=!1,r=null;return n.forEach(e=>{if(Rc(e)){const t=e,n=t.easing;if(n&&(r=n,delete t.easing),!s)for(let e in t)if(t[e].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let s=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=t.collectedStyles[t.currentQuerySelector],o=i[n];let a=!0;o&&(r!=s&&r>=o.startTime&&s<=o.endTime&&(t.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 "${r}ms" and "${s}ms"`),a=!1),r=o.startTime),a&&(i[n]={startTime:r,endTime:s}),t.options&&function(e,t,n){const s=t.params||{},r=gc(e);r.length&&r.forEach(e=>{s.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const r=[];let i=!1,o=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(Rc(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(Rc(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=l&&(s++,c=n.offset=l),o=o||c<0||c>1,i=i||c<a,a=c,r.push(c),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),i&&t.errors.push("Please ensure that all keyframe offsets are in order");const c=e.steps.length;let u=0;s>0&&s<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(u=1/(c-1));const h=c-1,d=t.currentTime,p=t.currentAnimateTimings,f=p.duration;return l.forEach((e,s)=>{const i=u>0?s==h?1:u*s:r[s],o=i*f;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=i,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:xc(this,mc(e.animation),t),options:jc(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:jc(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:jc(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;const[r,i]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(Pc,"")),[e=e.replace(/@\*/g,sc).replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,ic),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,Hl(t.collectedStyles,t.currentQuerySelector,{});const o=xc(this,mc(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:i,animation:o,originalSelector:e.selector,options:jc(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:lc(e.timings,t.errors,!0);return{type:12,animation:xc(this,mc(e.animation),t),timings:n,options:null}}}class Fc{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Rc(e){return!Array.isArray(e)&&"object"==typeof e}function jc(e){var t;return e?(e=cc(e)).params&&(e.params=(t=e.params)?cc(t):null):e={},e}function Mc(e,t,n){return{duration:e,delay:t,easing:n}}function Vc(e,t,n,s,r,i,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:s,duration:r,delay:i,totalTime:r+i,easing:o,subTimeline:a}}class Hc{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const Lc=new RegExp(":enter","g"),zc=new RegExp(":leave","g");function Bc(e,t,n,s,r,i={},o={},a,l,c=[]){return(new qc).buildKeyframes(e,t,n,s,r,i,o,a,l,c)}class qc{buildKeyframes(e,t,n,s,r,i,o,a,l,c=[]){l=l||new Hc;const u=new $c(e,t,l,s,r,c,[]);u.options=a,u.currentTimeline.setStyles([i],null,u.errors,a),xc(this,n,u);const h=u.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(o).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,u.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[Vc(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,i=this._visitSubInstructions(n,s,s.options);r!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime;const r=null!=n.duration?oc(n.duration):null,i=null!=n.delay?oc(n.delay):null;return 0!==r&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,r,i);s=Math.max(s,n.duration+n.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),xc(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let s=t;const r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Qc);const e=oc(r.delay);s.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>xc(this,e,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let s=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?oc(e.options.delay):0;e.steps.forEach(i=>{const o=t.createSubContext(e.options);r&&o.delayNextStep(r),xc(this,i,o),s=Math.max(s,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return lc(t.params?_c(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,s=t.currentTimeline.duration,r=n.duration,i=t.createSubContext().currentTimeline;i.easing=n.easing,e.styles.forEach(e=>{i.forwardTime((e.offset||0)*r),i.setStyles(e.styles,e.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?oc(s.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Qc);let i=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,s)=>{t.currentQueryIndex=s;const o=t.createSubContext(e.options,n);r&&o.delayNextStep(r),n===t.element&&(a=o.currentTimeline),xc(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(i),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,s=t.currentTimeline,r=e.timings,i=Math.abs(r.duration),o=i*(t.currentQueryTotal-1);let a=i*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;xc(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const Qc={};class $c{constructor(e,t,n,s,r,i,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Qc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Wc(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let s=this.options;null!=n.duration&&(s.duration=oc(n.duration)),null!=n.delay&&(s.delay=oc(n.delay));const r=n.params;if(r){let e=s.params;e||(e=this.options.params={}),Object.keys(r).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=_c(r[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const s=t||this.element,r=new $c(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Qc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const s={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Zc(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,r,i){let o=[];if(s&&o.push(this.element),e.length>0){e=(e=e.replace(Lc,"."+this._enterClassName)).replace(zc,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return r||0!=o.length||i.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class Wc{constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new Wc(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||kl,this._currentKeyframe[e]=kl}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&(this._previousKeyframe.easing=t);const r=s&&s.params||{},i=function(e,t){const n={};let s;return e.forEach(e=>{"*"===e?(s=s||Object.keys(t),s.forEach(e=>{n[e]=kl})):uc(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(i).forEach(e=>{const t=_c(i[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:kl),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],s=e._styleSummary[t];(!n||s.time>n.time)&&this._updateStyle(t,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((r,i)=>{const o=uc(r,!0);Object.keys(o).forEach(n=>{const s=o[n];"!"==s?e.add(n):s==kl&&t.add(n)}),n||(o.offset=i/this.duration),s.push(o)});const r=e.size?vc(e.values()):[],i=t.size?vc(t.values()):[];if(n){const e=s[0],t=cc(e);e.offset=0,t.offset=1,s=[e,t]}return Vc(this.element,s,r,i,this.duration,this.startTime,this.easing,!1)}}class Zc extends Wc{constructor(e,t,n,s,r,i,o=!1){super(e,t,i.delay),this.element=t,this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],i=n+t,o=t/i,a=uc(e[0],!1);a.offset=0,r.push(a);const l=uc(e[0],!1);l.offset=Kc(o),r.push(l);const c=e.length-1;for(let s=1;s<=c;s++){let o=uc(e[s],!1);o.offset=Kc((t+o.offset*n)/i),r.push(o)}n=i,t=0,s="",e=r}return Vc(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}}function Kc(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class Uc{}class Gc extends Uc{normalizePropertyName(e,t){return bc(e)}normalizeStyleValue(e,t,n,s){let r="";const i=n.toString().trim();if(Yc[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&s.push(`Please provide a CSS unit value for ${e}:${n}`)}return i+r}}const Yc=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("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 Jc(e,t,n,s,r,i,o,a,l,c,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:i,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const Xc={};class eu{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return function(e,t,n,s,r){return e.some(e=>e(t,n,s,r))}(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){const s=this._stateStyles["*"],r=this._stateStyles[e],i=s?s.buildStyles(t,n):{};return r?r.buildStyles(t,n):i}build(e,t,n,s,r,i,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||Xc,d=this.buildStyles(n,o&&o.params||Xc,u),p=a&&a.params||Xc,f=this.buildStyles(s,p,u),m=new Set,y=new Map,g=new Map,_="void"===s,v={params:Object.assign(Object.assign({},h),p)},w=c?[]:Bc(e,t,this.ast.animation,r,i,d,f,v,l,u);let b=0;if(w.forEach(e=>{b=Math.max(e.duration+e.delay,b)}),u.length)return Jc(t,this._triggerName,n,s,_,d,f,[],[],y,g,b,u);w.forEach(e=>{const n=e.element,s=Hl(y,n,{});e.preStyleProps.forEach(e=>s[e]=!0);const r=Hl(g,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&m.add(n)});const S=vc(m.values());return Jc(t,this._triggerName,n,s,_,d,f,w,S,y,g,b)}}class tu{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},s=cc(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(s[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const r=e;Object.keys(r).forEach(e=>{let i=r[e];i.length>1&&(i=_c(i,s,t)),n[e]=i})}}),n}}class nu{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new tu(e.style,e.options&&e.options.params||{})}),su(this.states,"true","1"),su(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new eu(e,t,this.states))}),this.fallbackTransition=new eu(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(r=>r.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function su(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const ru=new Hc;class iu{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],s=Oc(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=s}_buildPlayer(e,t,n){const s=e.element,r=Rl(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const s=[],r=this._animations[e];let i;const o=new Map;if(r?(i=Bc(this._driver,t,r,ec,tc,{},{},n,ru,s),i.forEach(e=>{const t=Hl(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),i=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,kl)})});const a=Fl(i.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}listen(e,t,n,s){const r=Vl(t,"","","");return jl(this._getPlayer(e),n,r,s),()=>{}}command(e,t,n,s){if("register"==n)return void this.register(e,s[0]);if("create"==n)return void this.create(e,t,s[0]||{});const r=this._getPlayer(e);switch(n){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(e)}}}const ou="ng-animate-queued",au="ng-animate-disabled",lu=".ng-animate-disabled",cu=[],uu={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},hu={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class du{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(s=n?e.value:e)?s:null,n){const t=cc(e);delete t.value,this.options=t}else this.options={};var s;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const pu="void",fu=new du(pu);class mu{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Su(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var r;const i=Hl(this._elementListeners,e,[]),o={name:t,phase:n,callback:s};i.push(o);const a=Hl(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Su(e,nc),Su(e,"ng-trigger-"+t),a[t]=fu),()=>{this._engine.afterFlush(()=>{const e=i.indexOf(o);e>=0&&i.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,s=!0){const r=this._getTrigger(t),i=new gu(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Su(e,nc),Su(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new du(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=fu),l.value!==pu&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!=s.length)return!1;for(let r=0;r<n.length;r++){const s=n[r];if(!t.hasOwnProperty(s)||e[s]!==t[s])return!1}return!0}(a.params,l.params)){const t=[],n=r.matchStyles(a.value,a.params,t),s=r.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{fc(e,n),pc(e,s)})}return}const c=Hl(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=r.matchTransition(a.value,l.value,e,l.params),h=!1;if(!u){if(!s)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:l,player:i,isFallbackTransition:h}),h||(Su(e,ou),i.onStart(()=>{Eu(e,ou)})),i.onDone(()=>{let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(i);e>=0&&n.splice(e,1)}}),this.players.push(i),c.push(i),i}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,sc,!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,s){const r=this._engine.statesByElement.get(e);if(r){const i=[];if(Object.keys(r).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,pu,s);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Fl(i).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const s=t.name;if(n.has(s))return;n.add(s);const r=this._triggers[s].fallbackTransition,i=this._engine.statesByElement.get(e)[s]||fu,o=new du(pu),a=new gu(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:r,fromState:i,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)s=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{const s=e.__ng_removed;s&&s!==uu||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Su(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const r=n.element,i=this._elementListeners.get(r);i&&i.forEach(t=>{if(t.name==n.triggerName){const s=Vl(r,n.triggerName,n.fromState.value,n.toState.value);s._data=e,jl(n.player,t.phase,s,t.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,s=t.transition.ast.depCount;return 0==n||0==s?n-s:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class yu{constructor(e,t,n){this.bodyNode=e,this.driver=t,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=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new mu(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let s=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),s=!0;break}s||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let s=0;s<e.length;s++){const r=n[e[s]].namespaceId;if(r){const e=this._fetchNamespace(r);e&&t.add(e)}}}return t}trigger(e,t,n,s){if(_u(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,n,s),!0}return!1}insertNode(e,t,n,s){if(!_u(t))return;const r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(t,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Su(e,au)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Eu(e,au))}removeNode(e,t,n,s){if(_u(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,s)}}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,n,s){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,s,r){return _u(t)?this._fetchNamespace(e).listen(t,n,s,r):()=>{}}_buildInstruction(e,t,n,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,sc,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,ic,!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Fl(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=uu,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,lu)&&this.markElementAsDisabled(e,!1),this.driver.query(e,lu,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Su(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}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(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?Fl(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))}_flushAnimations(e,t){const n=new Hc,s=[],r=new Map,i=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)c.add(t[n])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=bu(h,this.collectedEnterElements),p=new Map;let f=0;d.forEach((e,t)=>{const n=ec+f++;p.set(t,n),e.forEach(e=>Su(e,n))});const m=[],y=new Set,g=new Set;for(let N=0;N<this.collectedLeaveElements.length;N++){const e=this.collectedLeaveElements[N],t=e.__ng_removed;t&&t.setForRemoval&&(m.push(e),y.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>y.add(e)):g.add(e))}const _=new Map,v=bu(h,Array.from(y));v.forEach((e,t)=>{const n=tc+f++;_.set(t,n),e.forEach(e=>Su(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>Eu(e,n))}),v.forEach((e,t)=>{const n=_.get(t);e.forEach(e=>Eu(e,n))}),m.forEach(e=>{this.processLeaveNode(e)})});const w=[],b=[];for(let N=this._namespaceList.length-1;N>=0;N--)this._namespaceList[N].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(w.push(t),this.collectedEnterElements.length){const e=r.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const c=!u||!this.driver.containsElement(u,r),h=_.get(r),d=p.get(r),f=this._buildInstruction(e,n,d,h,c);if(f.errors&&f.errors.length)b.push(f);else{if(c)return t.onStart(()=>fc(r,f.fromStyles)),t.onDestroy(()=>pc(r,f.toStyles)),void s.push(t);if(e.isFallbackTransition)return t.onStart(()=>fc(r,f.fromStyles)),t.onDestroy(()=>pc(r,f.toStyles)),void s.push(t);f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,f.timelines),i.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(e=>Hl(o,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let s=l.get(t);s||l.set(t,s=new Set),n.forEach(e=>s.add(e))})}});if(b.length){const e=[];b.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),w.forEach(e=>e.destroy()),this.reportError(e)}const S=new Map,E=new Map;i.forEach(e=>{const t=e.element;n.has(t)&&(E.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,S))}),s.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{Hl(S,t,[]).push(e),e.destroy()})});const x=m.filter(e=>Tu(e,a,l)),T=new Map;wu(T,this.driver,g,l,kl).forEach(e=>{Tu(e,a,l)&&x.push(e)});const C=new Map;d.forEach((e,t)=>{wu(C,this.driver,new Set(e),a,"!")}),x.forEach(e=>{const t=T.get(e),n=C.get(e);T.set(e,Object.assign(Object.assign({},t),n))});const k=[],I=[],A={};i.forEach(e=>{const{element:t,player:i,instruction:o}=e;if(n.has(t)){if(c.has(t))return i.onDestroy(()=>pc(t,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void s.push(i);let e=A;if(E.size>1){let n=t;const s=[];for(;n=n.parentNode;){const t=E.get(n);if(t){e=t;break}s.push(n)}s.forEach(t=>E.set(t,e))}const n=this._buildAnimation(i.namespaceId,o,S,r,C,T);if(i.setRealPlayer(n),e===A)k.push(i);else{const t=this.playersByElement.get(e);t&&t.length&&(i.parentPlayer=Fl(t)),s.push(i)}}else fc(t,o.fromStyles),i.onDestroy(()=>pc(t,o.toStyles)),I.push(i),c.has(t)&&s.push(i)}),I.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=Fl(t);e.setRealPlayer(n)}}),s.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let N=0;N<m.length;N++){const e=m[N],t=e.__ng_removed;if(Eu(e,tc),t&&t.hasAnimation)continue;let n=[];if(o.size){let t=o.get(e);t&&t.length&&n.push(...t);let s=this.driver.query(e,ic,!0);for(let e=0;e<s.length;e++){let t=o.get(s[e]);t&&t.length&&n.push(...t)}}const s=n.filter(e=>!e.destroyed);s.length?xu(this,e,s):this.processLeaveNode(e)}return m.length=0,k.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),k}elementContainsData(e,t){let n=!1;const s=t.__ng_removed;return s&&s.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,r){let i=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(i=t)}else{const t=this.playersByElement.get(e);if(t){const e=!r||r==pu;t.forEach(t=>{t.queued||(e||t.triggerName==s)&&i.push(t)})}}return(n||s)&&(i=i.filter(e=>!(n&&n!=e.namespaceId||s&&s!=e.triggerName))),i}_beforeAnimationBuild(e,t,n){const s=t.element,r=t.isRemovalTransition?void 0:e,i=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==s,l=Hl(n,e,[]);this._getPreviousPlayers(e,a,r,i,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}fc(s,t.fromStyles)}_buildAnimation(e,t,n,s,r,i){const o=t.triggerName,a=t.element,l=[],c=new Set,u=new Set,h=t.timelines.map(t=>{const h=t.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Pl(t.duration,t.delay);const p=h!==a,f=function(e){const t=[];return function e(t,n){for(let s=0;s<t.length;s++){const r=t[s];r instanceof Ol?e(r.players,n):n.push(r)}}(e,t),t}((n.get(h)||cu).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===h),m=r.get(h),y=i.get(h),g=Rl(0,this._normalizer,0,t.keyframes,m,y),_=this._buildPlayer(t,g,f);if(t.subTimeline&&s&&u.add(h),p){const t=new gu(e,o,h);t.setRealPlayer(_),l.push(t)}return _});l.forEach(e=>{Hl(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let s;if(e instanceof Map){if(s=e.get(t),s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&e.delete(t)}}else if(s=e[t],s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&delete e[t]}return s}(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>Su(e,rc));const d=Fl(h);return d.onDestroy(()=>{c.forEach(e=>Eu(e,rc)),pc(a,t.toStyles)}),u.forEach(e=>{Hl(s,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Pl(e.duration,e.delay)}}class gu{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Pl,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>jl(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Hl(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function _u(e){return e&&1===e.nodeType}function vu(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function wu(e,t,n,s,r){const i=[];n.forEach(e=>i.push(vu(e)));const o=[];s.forEach((n,s)=>{const i={};n.forEach(e=>{const n=i[e]=t.computeStyle(s,e,r);n&&0!=n.length||(s.__ng_removed=hu,o.push(s))}),e.set(s,i)});let a=0;return n.forEach(e=>vu(e,i[a++])),o}function bu(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const s=new Set(t),r=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let i=r.get(t);if(i)return i;const o=t.parentNode;return i=n.has(o)?o:s.has(o)?1:e(o),r.set(t,i),i}(e);1!==t&&n.get(t).push(e)}),n}function Su(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Eu(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function xu(e,t,n){Fl(n).onDone(()=>e.processLeaveNode(t))}function Tu(e,t,n){const s=n.get(e);if(!s)return!1;let r=t.get(e);return r?s.forEach(e=>r.add(e)):t.set(e,s),n.delete(e),!0}class Cu{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new yu(e,t,n),this._timelineEngine=new iu(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,s,r){const i=e+"-"+s;let o=this._triggerCache[i];if(!o){const e=[],t=Oc(this._driver,r,e);if(e.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new nu(e,t)}(s,t),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(t,s,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n,s){this._transitionEngine.removeNode(e,t,s||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if("@"==n.charAt(0)){const[e,r]=Ll(n);this._timelineEngine.command(e,t,r,s)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,r){if("@"==n.charAt(0)){const[e,s]=Ll(n);return this._timelineEngine.listen(e,t,s,r)}return this._transitionEngine.listen(e,t,n,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ku(e,t){let n=null,s=null;return Array.isArray(t)&&t.length?(n=Au(t[0]),t.length>1&&(s=Au(t[t.length-1]))):t&&(n=Au(t)),n||s?new Iu(e,n,s):null}let Iu=(()=>{class e{constructor(t,n,s){this._element=t,this._startStyles=n,this._endStyles=s,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&pc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(pc(this._element,this._initialStyles),this._endStyles&&(pc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(fc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(fc(this._element,this._endStyles),this._endStyles=null),pc(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Au(e){let t=null;const n=Object.keys(e);for(let s=0;s<n.length;s++){const r=n[s];Nu(r)&&(t=t||{},t[r]=e[r])}return t}function Nu(e){return"display"===e||"position"===e}const Pu="animation",Ou="animationend";class Du{constructor(e,t,n,s,r,i,o){this._element=e,this._name=t,this._duration=n,this._delay=s,this._easing=r,this._fillMode=i,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e=>this._handleCallback(e)}apply(){!function(e,t){const n=Hu(e,"").trim();n.length&&(function(e,t){let n=0;for(let s=0;s<e.length;s++)","===e.charAt(s)&&n++}(n),t=`${n}, ${t}`),Vu(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Mu(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Fu(this._element,this._name,"paused")}resume(){Fu(this._element,this._name,"running")}setPosition(e){const t=Ru(this._element,this._name);this._position=e*this._duration,Vu(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Mu(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=Hu(e,"").split(","),s=ju(n,t);s>=0&&(n.splice(s,1),Vu(e,"",n.join(",")))}(this._element,this._name))}}function Fu(e,t,n){Vu(e,"PlayState",n,Ru(e,t))}function Ru(e,t){const n=Hu(e,"");return n.indexOf(",")>0?ju(n.split(","),t):ju([n],t)}function ju(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Mu(e,t,n){n?e.removeEventListener(Ou,t):e.addEventListener(Ou,t)}function Vu(e,t,n,s){const r=Pu+t;if(null!=s){const t=e.style[r];if(t.length){const e=t.split(",");e[s]=n,n=e.join(",")}}e.style[r]=n}function Hu(e,t){return e.style[Pu+t]}class Lu{constructor(e,t,n,s,r,i,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=s,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||"linear",this.totalTime=s+r,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}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 Du(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:Tc(this.element,n))})}this.currentSnapshot=e}}class zu extends Pl{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=Yl(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class Bu{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return Zl(e)}matchesElement(e,t){return Kl(e,t)}containsElement(e,t){return Ul(e,t)}query(e,t,n){return Gl(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>Yl(e));let s=`@keyframes ${t} {\n`,r="";n.forEach(e=>{r=" ";const t=parseFloat(e.offset);s+=`${r}${100*t}% {\n`,r+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(s+=`${r}animation-timing-function: ${n};\n`));default:return void(s+=`${r}${t}: ${n};\n`)}}),s+=r+"}\n"}),s+="}\n";const i=document.createElement("style");return i.innerHTML=s,i}animate(e,t,n,s,r,i=[],o){o&&this._notifyFaultyScrubber();const a=i.filter(e=>e instanceof Lu),l={};Sc(n,s)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Ec(e,t,l));if(0==n)return new zu(e,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(h);const d=ku(e,t),p=new Lu(e,t,u,n,s,r,c,d);return p.onDestroy(()=>{var e;(e=h).parentNode.removeChild(e)}),p}_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 qu{constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:Tc(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Qu{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test($u().toString()),this._cssKeyframesDriver=new Bu}validateStyleProperty(e){return Zl(e)}matchesElement(e,t){return Kl(e,t)}containsElement(e,t){return Ul(e,t)}query(e,t,n){return Gl(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,s,r,i=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,s,r,i);const a={duration:n,delay:s,fill:0==s?"both":"forwards"};r&&(a.easing=r);const l={},c=i.filter(e=>e instanceof qu);Sc(n,s)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=ku(e,t=Ec(e,t=t.map(e=>uc(e,!1)),l));return new qu(e,t,a,u)}}function $u(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Wu=(()=>{class e extends Cl{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:ot.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Il(e):e;return Uu(this._renderer,null,t,"register",[n]),new Zu(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(Ye(di),Ye(Pa))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class Zu extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new Ku(this._id,e,t||{},this._renderer)}}class Ku{constructor(e,t,n,s){this.id=e,this.element=t,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return Uu(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){return 0}}function Uu(e,t,n,s,r){return e.setProperty(t,`@@${n}:${s}`,r)}const Gu="@",Yu="@.disabled";let Ju=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new Xu("",n,this.engine),this._rendererCache.set(n,e)),e}const s=t.id,r=t.id+"-"+this._currentId;this._currentId++,this.engine.register(r,e);const i=t=>{Array.isArray(t)?t.forEach(i):this.engine.registerTrigger(s,r,e,t.name,t)};return t.data.animation.forEach(i),new eh(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,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 e.\u0275fac=function(t){return new(t||e)(Ye(di),Ye(Cu),Ye(Do))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();class Xu{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==Gu&&t==Yu?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class eh extends Xu{constructor(e,t,n,s){super(t,n,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==Gu?"."==t.charAt(1)&&t==Yu?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==Gu){const s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let r=t.substr(1),i="";return r.charAt(0)!=Gu&&([r,i]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,s,r,i,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let th=(()=>{class e extends Cu{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(Ye(Pa),Ye(Xl),Ye(Uc))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})();const nh=[{provide:Xl,useFactory:function(){return"function"==typeof $u()?new Qu:new Bu}},{provide:new Le("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:Cl,useClass:Wu},{provide:Uc,useFactory:function(){return new Gc}},{provide:Cu,useClass:th},{provide:di,useFactory:function(e,t,n){return new Ju(e,t,n)},deps:[pl,Cu,Do]}];let sh=(()=>{class e{}return e.\u0275mod=ft({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},providers:nh,imports:[Tl]}),e})();class rh extends T{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new S;return this._value}next(e){super.next(this._value=e)}}class ih extends f{notifyNext(e,t,n,s,r){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class oh extends f{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function ah(e,t,n,s,r=new oh(e,n,s)){if(!r.closed)return t instanceof w?t.subscribe(r):j(t)(r)}const lh={};function ch(...e){let t=void 0,n=void 0;return k(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&l(e[0])&&(e=e[0]),Z(e,n).lift(new uh(t))}class uh{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new hh(e,this.resultSelector))}}class hh extends ih{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(lh),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++)this.add(ah(this,e[n],void 0,n))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n){const s=this.values,r=this.toRespond?s[n]===lh?--this.toRespond:this.toRespond:0;s[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function dh(){}class ph{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new fh(e,this.nextOrObserver,this.error,this.complete))}}class fh extends f{constructor(e,t,n,r){super(e),this._tapNext=dh,this._tapError=dh,this._tapComplete=dh,this._tapError=n||dh,this._tapComplete=r||dh,s(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||dh,this._tapError=t.error||dh,this._tapComplete=t.complete||dh)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function mh(...e){return t=>{let n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new yh(e,n))}}class yh{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new gh(e,this.observables,this.project))}}class gh extends ih{constructor(e,t,n){super(e),this.observables=t,this.project=n,this.toRespond=[];const s=t.length;this.values=new Array(s);for(let r=0;r<s;r++)this.toRespond.push(r);for(let r=0;r<s;r++)this.add(ah(this,t[r],void 0,r))}notifyNext(e,t,n){this.values[n]=t;const s=this.toRespond;if(s.length>0){const e=s.indexOf(n);-1!==e&&s.splice(e,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}class _h{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new vh(e,this.accumulator,this.seed,this.hasSeed))}}class vh extends f{constructor(e,t,n,s){super(e),this.accumulator=t,this._seed=n,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(s){this.destination.error(s)}this.seed=n,this.destination.next(n)}}class wh{constructor(e){this.predicate=e}call(e,t){return t.subscribe(new bh(e,this.predicate))}}class bh extends f{constructor(e,t){super(e),this.predicate=t,this.skipping=!0,this.index=0}_next(e){const t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)}tryCallPredicate(e){try{const t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(t){this.destination.error(t)}}}const Sh=["youtubeContainer"];let Eh=(()=>{class e{constructor(e,t){this._ngZone=e,this._youtubeContainer=new T,this._destroyed=new T,this._playerChanges=new rh(void 0),this._videoId=new rh(void 0),this._height=new rh(390),this._width=new rh(640),this._startSeconds=new rh(void 0),this._endSeconds=new rh(void 0),this._suggestedQuality=new rh(void 0),this._playerVars=new rh(void 0),this.ready=this._getLazyEmitter("onReady"),this.stateChange=this._getLazyEmitter("onStateChange"),this.error=this._getLazyEmitter("onError"),this.apiChange=this._getLazyEmitter("onApiChange"),this.playbackQualityChange=this._getLazyEmitter("onPlaybackQualityChange"),this.playbackRateChange=this._getLazyEmitter("onPlaybackRateChange"),this._isBrowser=Ma(t)}get videoId(){return this._videoId.value}set videoId(e){this._videoId.next(e)}get height(){return this._height.value}set height(e){this._height.next(e||390)}get width(){return this._width.value}set width(e){this._width.next(e||640)}set startSeconds(e){this._startSeconds.next(e)}set endSeconds(e){this._endSeconds.next(e)}set suggestedQuality(e){this._suggestedQuality.next(e)}get playerVars(){return this._playerVars.value}set playerVars(e){this._playerVars.next(e)}ngOnInit(){if(!this._isBrowser)return;let e=na(!0);if(!window.YT||!window.YT.Player){const t=new T;this._existingApiReadyCallback=window.onYouTubeIframeAPIReady,window.onYouTubeIframeAPIReady=()=>{this._existingApiReadyCallback&&this._existingApiReadyCallback(),this._ngZone.run(()=>t.next(!0))},e=t.pipe(La(1),ma(!1))}const t=function(e,t,n,s,r,i,o){const a=ch([t,i]).pipe(mh(ch([s,r])),I(([e,t])=>{const[n,s]=e,[r,i]=t;return n?{videoId:n,playerVars:s,width:r,height:i}:void 0}));return ch([e,a,na(o)]).pipe(_(function(...e){let t=null;return"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&l(e[0])&&(e=e[0].slice()),n=>n.lift.call(V([n,...e]),new uh(t))}(n),(c=([e,t])=>!t,e=>e.lift(new wh(c))),I(([e])=>e)),function(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(s){return s.lift(new _h(e,t,n))}}(xh,void 0),e=>e.lift(new aa(undefined,undefined)));var c}(this._youtubeContainer,this._videoId,e,this._width,this._height,this._playerVars,this._ngZone).pipe((s=e=>{this._playerChanges.next(e)},function(e){return e.lift(new ph(s,void 0,void 0))}),(n=e=>{Th(e)||e.destroy()},$(e=>e?Th(e)?na(e):new w(t=>{let s=!1,r=!1;const i=e=>{r=!0,s||(e.target.removeEventListener("onReady",i),t.next(e.target))};return e.addEventListener("onReady",i),()=>{s=!0,r||n(e)}}).pipe(La(1),ma(void 0)):na(void 0))),ha(this._destroyed),te(new T));var n,s;t.subscribe(e=>{this._player=e,e&&this._pendingPlayerState&&this._initializePlayer(e,this._pendingPlayerState),this._pendingPlayerState=void 0}),function(e,t,n){ch([e,t,n]).subscribe(([e,t,n])=>e&&e.setSize(t,n))}(t,this._width,this._height),function(e,t){ch([e,t]).subscribe(([e,t])=>e&&t&&e.setPlaybackQuality(t))}(t,this._suggestedQuality),function(e,t,n,s,r,i){const o=ch([n,s]).pipe(I(([e,t])=>({startSeconds:e,endSeconds:t}))),a=o.pipe(Ch(e,e=>!!e&&!function(e){const t=e.getPlayerState();return-1!==t&&5!==t}(e))),l=t.pipe(Ch(e,(e,t)=>!!e&&e.videoId!==t));K(e.pipe(Ch(ch([t,o]),([e,t],n)=>!(!n||e==n.videoId&&!t.startSeconds&&!t.endSeconds))),l,a).pipe(mh(ch([e,t,o,r])),I(([e,t])=>t),ha(i)).subscribe(([e,t,n,s])=>{t&&e&&(e.videoId=t,e.cueVideoById(Object.assign({videoId:t,suggestedQuality:s},n)))})}(t,this._videoId,this._startSeconds,this._endSeconds,this._suggestedQuality,this._destroyed),t.connect()}createEventsBoundInZone(){return{}}ngAfterViewInit(){this._youtubeContainer.next(this.youtubeContainer.nativeElement)}ngOnDestroy(){this._player&&(this._player.destroy(),window.onYouTubeIframeAPIReady=this._existingApiReadyCallback),this._playerChanges.complete(),this._videoId.complete(),this._height.complete(),this._width.complete(),this._startSeconds.complete(),this._endSeconds.complete(),this._suggestedQuality.complete(),this._youtubeContainer.complete(),this._playerVars.complete(),this._destroyed.next(),this._destroyed.complete()}playVideo(){this._player?this._player.playVideo():this._getPendingState().playbackState=1}pauseVideo(){this._player?this._player.pauseVideo():this._getPendingState().playbackState=2}stopVideo(){this._player?this._player.stopVideo():this._getPendingState().playbackState=5}seekTo(e,t){this._player?this._player.seekTo(e,t):this._getPendingState().seek={seconds:e,allowSeekAhead:t}}mute(){this._player?this._player.mute():this._getPendingState().muted=!0}unMute(){this._player?this._player.unMute():this._getPendingState().muted=!1}isMuted(){return this._player?this._player.isMuted():!!this._pendingPlayerState&&!!this._pendingPlayerState.muted}setVolume(e){this._player?this._player.setVolume(e):this._getPendingState().volume=e}getVolume(){return this._player?this._player.getVolume():this._pendingPlayerState&&null!=this._pendingPlayerState.volume?this._pendingPlayerState.volume:0}setPlaybackRate(e){if(this._player)return this._player.setPlaybackRate(e);this._getPendingState().playbackRate=e}getPlaybackRate(){return this._player?this._player.getPlaybackRate():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackRate?this._pendingPlayerState.playbackRate:0}getAvailablePlaybackRates(){return this._player?this._player.getAvailablePlaybackRates():[]}getVideoLoadedFraction(){return this._player?this._player.getVideoLoadedFraction():0}getPlayerState(){if(this._isBrowser&&window.YT)return this._player?this._player.getPlayerState():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackState?this._pendingPlayerState.playbackState:-1}getCurrentTime(){return this._player?this._player.getCurrentTime():this._pendingPlayerState&&this._pendingPlayerState.seek?this._pendingPlayerState.seek.seconds:0}getPlaybackQuality(){return this._player?this._player.getPlaybackQuality():"default"}getAvailableQualityLevels(){return this._player?this._player.getAvailableQualityLevels():[]}getDuration(){return this._player?this._player.getDuration():0}getVideoUrl(){return this._player?this._player.getVideoUrl():""}getVideoEmbedCode(){return this._player?this._player.getVideoEmbedCode():""}_getPendingState(){return this._pendingPlayerState||(this._pendingPlayerState={}),this._pendingPlayerState}_initializePlayer(e,t){const{playbackState:n,playbackRate:s,volume:r,muted:i,seek:o}=t;switch(n){case 1:e.playVideo();break;case 2:e.pauseVideo();break;case 5:e.stopVideo()}null!=s&&e.setPlaybackRate(s),null!=r&&e.setVolume(r),null!=i&&(i?e.mute():e.unMute()),null!=o&&e.seekTo(o.seconds,o.allowSeekAhead)}_getLazyEmitter(e){return this._playerChanges.pipe(ya(t=>t?function e(t,n,r){return r?e(t,n).pipe(I(e=>l(e)?r(...e):r(e))):new w(e=>{const r=(...t)=>e.next(1===t.length?t[0]:t);let i;try{i=t(r)}catch(o){return void e.error(o)}if(s(n))return()=>n(r,i)})}(n=>{t.addEventListener(e,n)},n=>{try{t.removeEventListener&&t.removeEventListener(e,n)}catch(Rh){}}):na()),e=>new w(t=>e.subscribe({next:e=>this._ngZone.run(()=>t.next(e)),error:e=>t.error(e),complete:()=>t.complete()})),ha(this._destroyed))}}return e.\u0275fac=function(t){return new(t||e)(Gr(Do),Gr(_o))},e.\u0275cmp=ut({type:e,selectors:[["youtube-player"]],viewQuery:function(e,t){var n,s,r,i,o,a;1&e&&(i=Sh,o=!0,function(e,t,n,s,r,i){e.firstCreatePass&&function(e,t,n){null===e.queries&&(e.queries=new io),e.queries.track(new oo(t,-1))}(e,new ro(n,s,!1,r)),function(e,t){const n=new to;Os(e,t,n,n.destroy),null===t[19]&&(t[19]=new so),t[19].queries.push(new no(n))}(e,t)}(Ut(),Kt(),i,o,a)),2&e&&function(e){const t=Kt(),n=Ut(),s=sn();rn(s+1);const r=uo(n,s);if(e.dirty&&zt(t)===r.metadata.isStatic){if(null===r.matches)e.reset([]);else{const i=r.crossesNgTemplate?function e(t,n,s,r){const i=t.queries.getByIndex(s),o=i.matches;if(null!==o){const a=co(t,n,i,s);for(let t=0;t<o.length;t+=2){const s=o[t];if(s>0)r.push(a[t/2]);else{const i=o[t+1],a=n[-s];for(let t=bt;t<a.length;t++){const n=a[t];n[17]===n[3]&&e(n[1],n,i,r)}if(null!==a[9]){const t=a[9];for(let n=0;n<t.length;n++){const s=t[n];e(s[1],s,i,r)}}}}}return r}(n,t,s,[]):co(n,t,r,s);e.reset(i),e.notifyOnChanges()}return!0}return!1}((s=Kt(),r=sn(),n=s[19].queries[r].queryList))&&(t.youtubeContainer=n.first)},inputs:{videoId:"videoId",height:"height",width:"width",startSeconds:"startSeconds",endSeconds:"endSeconds",suggestedQuality:"suggestedQuality",playerVars:"playerVars",showBeforeIframeApiLoads:"showBeforeIframeApiLoads"},outputs:{ready:"ready",stateChange:"stateChange",error:"error",apiChange:"apiChange",playbackQualityChange:"playbackQualityChange",playbackRateChange:"playbackRateChange"},decls:2,vars:0,consts:[["youtubeContainer",""]],template:function(e,t){1&e&&ti(0,"div",null,0)},encapsulation:2,changeDetection:0}),e})();function xh(e,[t,n,s]){if(e&&n&&e.playerVars!==n.playerVars)e.destroy();else{if(!n)return void(e&&e.destroy());if(e)return e}const r=s.runOutsideAngular(()=>new YT.Player(t,n));return r.videoId=n.videoId,r.playerVars=n.playerVars,r}function Th(e){return"getPlayerStatus"in e}function Ch(e,t){return _(mh(e),(n=([e,n])=>t(n,e),function(e){return e.lift(new ca(n,undefined))}),I(([e])=>e));var n}let kh=(()=>{class e{}return e.\u0275mod=ft({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)}}),e})();var Ih=n("5vqC");class Ah{constructor(e,t,n,s,r){this.element=e,this.newWidth=t,this.newHeight=n,this.oldWidth=s,this.oldHeight=r}}let Nh=(()=>{class e{constructor(e){this.element=e,this.resized=new Xi}ngOnInit(){Ih.ResizeSensor&&(this.resizeSensor=new Ih.ResizeSensor(this.element.nativeElement,()=>this.onResized()))}ngOnDestroy(){this.resizeSensor&&this.resizeSensor.detach()}onResized(){const e=this.element.nativeElement.clientWidth,t=this.element.nativeElement.clientHeight;if(e===this.oldWidth&&t===this.oldHeight)return;const n=new Ah(this.element,e,t,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.emit(n)}}return e.\u0275fac=function(t){return new(t||e)(Gr(ui))},e.\u0275dir=yt({type:e,selectors:[["","resized",""]],outputs:{resized:"resized"}}),e})(),Ph=(()=>{class e{}return e.\u0275mod=ft({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},imports:[[]]}),e})(),Oh=(()=>{class e{constructor(e){this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container",t=this._document.querySelectorAll("."+e);if(null==t?void 0:t.length)this._containerElement=t[0];else{const t=this._document.createElement("div");t.classList.add(e),this._document.body.appendChild(t),this._containerElement=t}}}return e.\u0275fac=function(t){return new(t||e)(Ye(Pa))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e})(),Dh=(()=>{class e{constructor(){}ngOnInit(){if(!window.youtubeApiLoaded){const e=document.createElement("script");e.src="https://www.youtube.com/iframe_api",document.body.appendChild(e),window.youtubeApiLoaded=!0}}onResized(e){this.width=e.newWidth-20,this.height=e.newHeight-20}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ut({type:e,selectors:[["drayman-youtube-player-internal"]],inputs:{videoId:"videoId",startSeconds:"startSeconds",endSeconds:"endSeconds",playerVars:"playerVars"},decls:3,vars:6,consts:[[2,"width","100%","height","100%","margin","10px",3,"resized"],["chartContainer",""],[3,"videoId","startSeconds","endSeconds","playerVars","width","height"]],template:function(e,t){1&e&&(Xr(0,"div",0,1),si("resized",(function(e){return t.onResized(e)})),ti(2,"youtube-player",2),ei()),2&e&&(2,bs(Ut(),Kt(),pn()+2,Xt()),Yr("videoId",t.videoId)("startSeconds",t.startSeconds)("endSeconds",t.endSeconds)("playerVars",t.playerVars)("width",t.width)("height",t.height))},directives:[Nh,Eh],styles:[""]}),e})(),Fh=(()=>{class e{constructor(e){this.injector=e}ngDoBootstrap(){const e=function(e,t){const n=function(e,t){return t.get(ci).resolveComponentFactory(e).inputs}(e,t.injector),s=t.strategyFactory||new Ka(e,t.injector),r=function(e){const t={};return e.forEach(({propName:e,templateName:n})=>{var s;t[(s=n,s.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()))]=e}),t}(n);class i extends Ga{constructor(e){super(),this.injector=e}get ngElementStrategy(){if(!this._ngElementStrategy){const e=this._ngElementStrategy=s.create(this.injector||t.injector),r=n.filter(({propName:e})=>this.hasOwnProperty(e)).map(({propName:e})=>[e,this[e]]);this instanceof i?r.forEach(([e])=>delete this[e]):Ya(n,this),r.forEach(([t,n])=>e.setInputValue(t,n))}return this._ngElementStrategy}attributeChangedCallback(e,t,n,s){this.ngElementStrategy.setInputValue(r[e],n)}connectedCallback(){let e=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),e=!0),this.ngElementStrategy.connect(this),e||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(e=>{const t=function(e,t,n){if("function"!=typeof CustomEvent){const s=e.createEvent("CustomEvent");return s.initCustomEvent(t,!1,!1,n),s}return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,e.name,e.value);this.dispatchEvent(t)})}}return i.observedAttributes=Object.keys(r),Object.defineProperty(i.prototype,"ngElementStrategy",{enumerable:!0}),Ya(n,i.prototype),i}(Dh,{injector:this.injector});customElements.define("drayman-youtube-player",e)}}return e.\u0275mod=ft({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)(Ye(Qr))},providers:[{provide:Qa,useClass:Oh}],imports:[[Tl,sh,kh,Ph]]}),e})();(function(){if(es)throw new Error("Cannot enable prod mode after platform setup.");Xn=!1})(),El().bootstrapModule(Fh).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}});
|
|
1
|
+
(()=>{var dv={289:(We,Ot,me)=>{We.exports={ResizeSensor:me(294),ElementQueries:me(322)}},322:function(We,Ot,me){"use strict";var Gt,Me;"undefined"!=typeof window&&window,Gt=[me(294)],void 0!==(Me=function(ft){var je=function(){var O,Ae={},ct=[];function _r(v){v||(v=document.documentElement);var E=window.getComputedStyle(v,null).fontSize;return parseFloat(E)||16}function ye(v,E){var F=E.split(/\d/),R=F[F.length-1];switch(E=parseFloat(E),R){case"px":default:return E;case"em":return E*_r(v);case"rem":return E*_r();case"vw":return E*document.documentElement.clientWidth/100;case"vh":return E*document.documentElement.clientHeight/100;case"vmin":case"vmax":var te=document.documentElement.clientWidth/100,Ee=document.documentElement.clientHeight/100;return E*(0,Math["vmin"===R?"min":"max"])(te,Ee)}}function Y(v,E){this.element=v;var F,R,te,Ee,qe,de,He,$e,Nt=["min-width","min-height","max-width","max-height"];this.call=function(){for(F in te=function A(v){if(!v.getBoundingClientRect)return{width:v.offsetWidth,height:v.offsetHeight};var E=v.getBoundingClientRect();return{width:Math.round(E.width),height:Math.round(E.height)}}(this.element),de={},Ae[E])!Ae[E].hasOwnProperty(F)||(Ee=ye(this.element,(R=Ae[E][F]).value),qe="width"===R.property?te.width:te.height,He="","min"===R.mode&&qe>=Ee&&(He+=R.value),"max"===R.mode&&qe<=Ee&&(He+=R.value),de[$e=R.mode+"-"+R.property]||(de[$e]=""),He&&-1===(" "+de[$e]+" ").indexOf(" "+He+" ")&&(de[$e]+=" "+He));for(var yt in Nt)!Nt.hasOwnProperty(yt)||(de[Nt[yt]]?this.element.setAttribute(Nt[yt],de[Nt[yt]].substr(1)):this.element.removeAttribute(Nt[yt]))}}function pt(v,E){v.elementQueriesSetupInformation||(v.elementQueriesSetupInformation=new Y(v,E)),v.elementQueriesSensor||(v.elementQueriesSensor=new ft(v,function(){v.elementQueriesSetupInformation.call()}))}function gt(v,E,F,R){if(void 0===Ae[v]){Ae[v]=[];var te=ct.length;O.innerHTML+="\n"+v+" {animation: 0.1s element-queries;}",O.innerHTML+="\n"+v+" > .resize-sensor {min-width: "+te+"px;}",ct.push(v)}Ae[v].push({mode:E,property:F,value:R})}function L(v){var E;if(document.querySelectorAll&&(E=v?v.querySelectorAll.bind(v):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 mt(v){var E=[],F=[],R=[],te=0,Ee=-1,qe=[];for(var de in v.children)if(v.children.hasOwnProperty(de)&&v.children[de].tagName&&"img"===v.children[de].tagName.toLowerCase()){E.push(v.children[de]);var He=v.children[de].getAttribute("min-width")||v.children[de].getAttribute("data-min-width"),$e=v.children[de].getAttribute("data-src")||v.children[de].getAttribute("url");R.push($e),F.push({minWidth:He}),He?v.children[de].style.display="none":(te=E.length-1,v.children[de].style.display="block")}function yt(){var tt,oe=!1;for(tt in E)!E.hasOwnProperty(tt)||F[tt].minWidth&&v.offsetWidth>F[tt].minWidth&&(oe=tt);if(oe||(oe=te),Ee!==oe)if(qe[oe])E[Ee].style.display="none",E[oe].style.display="block",Ee=oe;else{var Fn=new Image;Fn.onload=function(){E[oe].src=R[oe],E[Ee].style.display="none",E[oe].style.display="block",qe[oe]=!0,Ee=oe},Fn.src=R[oe]}else E[oe].src=R[oe]}Ee=te,v.resizeSensorInstance=new ft(v,yt),yt()}var et=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,ii=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function Fe(v){var E,F,R,te;for(v=v.replace(/'/g,'"');null!==(E=et.exec(v));)for(F=E[1]+E[3],R=E[2];null!==(te=ii.exec(R));)gt(F,te[1],te[2],te[3])}function cn(v){var E="";if(v)if("string"==typeof v)(-1!==(v=v.toLowerCase()).indexOf("min-width")||-1!==v.indexOf("max-width"))&&Fe(v);else for(var F=0,R=v.length;F<R;F++)1===v[F].type?(-1!==(E=v[F].selectorText||v[F].cssText).indexOf("min-height")||-1!==E.indexOf("max-height")||-1!==E.indexOf("min-width")||-1!==E.indexOf("max-width"))&&Fe(E):4===v[F].type?cn(v[F].cssRules||v[F].rules):3===v[F].type&&v[F].styleSheet.hasOwnProperty("cssRules")&&cn(v[F].styleSheet.cssRules)}var Nn=!1;this.init=function(){var v="animationstart";void 0!==document.documentElement.style.webkitAnimationName?v="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?v="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(v="oanimationstart"),document.body.addEventListener(v,function(R){var te=R.target,Ee=te&&window.getComputedStyle(te,null),qe=Ee&&Ee.getPropertyValue("animation-name");if(qe&&-1!==qe.indexOf("element-queries")){te.elementQueriesSensor=new ft(te,function(){te.elementQueriesSetupInformation&&te.elementQueriesSetupInformation.call()});var $e=window.getComputedStyle(te.resizeSensor,null).getPropertyValue("min-width");$e=parseInt($e.replace("px","")),pt(R.target,ct[$e])}}),Nn||((O=document.createElement("style")).type="text/css",O.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",O.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(O),Nn=!0);for(var E=0,F=document.styleSheets.length;E<F;E++)try{document.styleSheets[E].href&&0===document.styleSheets[E].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[E].href),cn(document.styleSheets[E].cssRules||document.styleSheets[E].rules||document.styleSheets[E].cssText)}catch(R){}!function X(){for(var E=L()("[data-responsive-image],[responsive-image]"),F=0,R=E.length;F<R;F++)mt(E[F])}()},this.findElementQueriesElements=function(v){!function Ge(v){var E=L(v);for(var F in Ae)if(Ae.hasOwnProperty(F))for(var R=E(F,v),te=0,Ee=R.length;te<Ee;te++)pt(R[te],F)}(v)},this.update=function(){this.init()}};je.update=function(){je.instance.update()},je.detach=function(O){O.elementQueriesSetupInformation?(O.elementQueriesSensor.detach(),delete O.elementQueriesSetupInformation,delete O.elementQueriesSensor):O.resizeSensorInstance&&(O.resizeSensorInstance.detach(),delete O.resizeSensorInstance)},je.init=function(){je.instance||(je.instance=new je),je.instance.init()};return je.findElementQueriesElements=function(O){je.instance.findElementQueriesElements(O)},je.listen=function(){!function(O){if(document.addEventListener)document.addEventListener("DOMContentLoaded",O,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var Ae=setInterval(function(){/loaded|complete/i.test(document.readyState)&&(O(),clearInterval(Ae))},10);else window.onload=O}(je.init)},je}.apply(Ot,Gt))&&(We.exports=Me)},294:function(We,Ot,me){"use strict";var Gt;"undefined"!=typeof window&&window,void 0!==(Gt=function(){if("undefined"==typeof window)return null;var Me="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),ft=Me.requestAnimationFrame||Me.mozRequestAnimationFrame||Me.webkitRequestAnimationFrame||function(A){return Me.setTimeout(A,20)},je=Me.cancelAnimationFrame||Me.mozCancelAnimationFrame||Me.webkitCancelAnimationFrame||function(A){Me.clearTimeout(A)};function ln(A,ye){var Y=Object.prototype.toString.call(A),pt="[object Array]"===Y||"[object NodeList]"===Y||"[object HTMLCollection]"===Y||"[object Object]"===Y||"undefined"!=typeof jQuery&&A instanceof jQuery||"undefined"!=typeof Elements&&A instanceof Elements,gt=0,L=A.length;if(pt)for(;gt<L;gt++)ye(A[gt]);else ye(A)}function O(A){if(!A.getBoundingClientRect)return{width:A.offsetWidth,height:A.offsetHeight};var ye=A.getBoundingClientRect();return{width:Math.round(ye.width),height:Math.round(ye.height)}}function Ae(A,ye){Object.keys(ye).forEach(function(Y){A.style[Y]=ye[Y]})}var ct=function(A,ye){var Y=0;function pt(){var Ge,mt,L=[];this.add=function(X){L.push(X)},this.call=function(X){for(Ge=0,mt=L.length;Ge<mt;Ge++)L[Ge].call(this,X)},this.remove=function(X){var et=[];for(Ge=0,mt=L.length;Ge<mt;Ge++)L[Ge]!==X&&et.push(L[Ge]);L=et},this.length=function(){return L.length}}function gt(L,Ge){if(L){if(L.resizedAttached)return void L.resizedAttached.add(Ge);L.resizedAttached=new pt,L.resizedAttached.add(Ge),L.resizeSensor=document.createElement("div"),L.resizeSensor.dir="ltr",L.resizeSensor.className="resize-sensor";var mt={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},X={position:"absolute",left:"0px",top:"0px",transition:"0s"};Ae(L.resizeSensor,mt);var et=document.createElement("div");et.className="resize-sensor-expand",Ae(et,mt);var ii=document.createElement("div");Ae(ii,X),et.appendChild(ii);var Fe=document.createElement("div");Fe.className="resize-sensor-shrink",Ae(Fe,mt);var cn=document.createElement("div");Ae(cn,X),Ae(cn,{width:"200%",height:"200%"}),Fe.appendChild(cn),L.resizeSensor.appendChild(et),L.resizeSensor.appendChild(Fe),L.appendChild(L.resizeSensor);var Nn=window.getComputedStyle(L),v=Nn?Nn.getPropertyValue("position"):null;"absolute"!==v&&"relative"!==v&&"fixed"!==v&&"sticky"!==v&&(L.style.position="relative");var E=!1,F=0,R=O(L),te=0,Ee=0,qe=!0;Y=0;var He=function(){if(qe){if(0===L.offsetWidth&&0===L.offsetHeight)return void(Y||(Y=ft(function(){Y=0,He()})));qe=!1}var oe,tt;tt=L.offsetHeight,ii.style.width=(oe=L.offsetWidth)+10+"px",ii.style.height=tt+10+"px",et.scrollLeft=oe+10,et.scrollTop=tt+10,Fe.scrollLeft=oe+10,Fe.scrollTop=tt+10};L.resizeSensor.resetSensor=He;var $e=function(){F=0,E&&(te=R.width,Ee=R.height,L.resizedAttached&&L.resizedAttached.call(R))},Nt=function(){R=O(L),(E=R.width!==te||R.height!==Ee)&&!F&&(F=ft($e)),He()},yt=function(oe,tt,Fn){oe.attachEvent?oe.attachEvent("on"+tt,Fn):oe.addEventListener(tt,Fn)};yt(et,"scroll",Nt),yt(Fe,"scroll",Nt),Y=ft(function(){Y=0,He()})}}ln(A,function(L){gt(L,ye)}),this.detach=function(L){Y||(je(Y),Y=0),ct.detach(A,L)},this.reset=function(){A.resizeSensor.resetSensor()}};if(ct.reset=function(A){ln(A,function(ye){ye.resizeSensor.resetSensor()})},ct.detach=function(A,ye){ln(A,function(Y){!Y||Y.resizedAttached&&"function"==typeof ye&&(Y.resizedAttached.remove(ye),Y.resizedAttached.length())||Y.resizeSensor&&(Y.contains(Y.resizeSensor)&&Y.removeChild(Y.resizeSensor),delete Y.resizeSensor,delete Y.resizedAttached)})},"undefined"!=typeof MutationObserver){var _r=new MutationObserver(function(A){for(var ye in A)if(A.hasOwnProperty(ye))for(var Y=A[ye].addedNodes,pt=0;pt<Y.length;pt++)Y[pt].resizeSensor&&ct.reset(Y[pt])});document.addEventListener("DOMContentLoaded",function(A){_r.observe(document.body,{childList:!0,subtree:!0})})}return ct}.call(Ot,me,Ot,We))&&(We.exports=Gt)}},dd={};function hd(We){var Ot=dd[We];if(void 0!==Ot)return Ot.exports;var me=dd[We]={exports:{}};return dv[We].call(me.exports,me,me.exports,hd),me.exports}(()=>{"use strict";function We(n){return"function"==typeof n}let Ot=!1;const me={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Ot&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Ot=n},get useDeprecatedSynchronousErrorHandling(){return Ot}};function Ke(n){setTimeout(()=>{throw n},0)}const Gt={closed:!0,next(n){},error(n){if(me.useDeprecatedSynchronousErrorHandling)throw n;Ke(n)},complete(){}},Me=Array.isArray||(n=>n&&"number"==typeof n.length);function ft(n){return null!==n&&"object"==typeof n}const ln=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class O{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof O)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(We(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof ln?Ae(o.errors):[o]}}if(Me(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(ft(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof ln?e=e.concat(Ae(c.errors)):e.push(c)}}}if(e)throw new ln(e)}add(e){let t=e;if(!e)return O.EMPTY;switch(typeof e){case"function":t=new O(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof O)){const s=t;t=new O,t._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=t;if(null===i)t._parentOrParents=this;else if(i instanceof O){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}var n;function Ae(n){return n.reduce((e,t)=>e.concat(t instanceof ln?t.errors:t),[])}O.EMPTY=((n=new O).closed=!0,n);const ct="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class A extends O{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Gt;break;case 1:if(!e){this.destination=Gt;break}if("object"==typeof e){e instanceof A?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new ye(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new ye(this,e,t,i)}}[ct](){return this}static create(e,t,i){const r=new A(e,t,i);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class ye extends A{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;We(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==Gt&&(o=Object.create(t),We(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;me.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:i}=me;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):Ke(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;Ke(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);me.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(i){if(this.unsubscribe(),me.useDeprecatedSynchronousErrorHandling)throw i;Ke(i)}}__tryOrSetError(e,t,i){if(!me.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return me.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Ke(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const gt="function"==typeof Symbol&&Symbol.observable||"@@observable";function L(n){return n}function Ge(...n){return mt(n)}function mt(n){return 0===n.length?L:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}let X=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const{operator:s}=this,o=function pt(n,e,t){if(n){if(n instanceof A)return n;if(n[ct])return n[ct]()}return n||e||t?new A(n,e,t):new A(Gt)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||me.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),me.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){me.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function Y(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof A?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=et(i))((r,s)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[gt](){return this}pipe(...t){return 0===t.length?this:mt(t)(this)}toPromise(t){return new(t=et(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function et(n){if(n||(n=me.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Fe=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class cn extends O{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class Nn extends A{constructor(e){super(e),this.destination=e}}let v=(()=>{class n extends X{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ct](){return new Nn(this)}lift(t){const i=new E(this,this);return i.operator=t,i}next(t){if(this.closed)throw new Fe;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(t)}}error(t){if(this.closed)throw new Fe;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new Fe;this.isStopped=!0;const{observers:t}=this,i=t.length,r=t.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new Fe;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new Fe;return this.hasError?(t.error(this.thrownError),O.EMPTY):this.isStopped?(t.complete(),O.EMPTY):(this.observers.push(t),new cn(this,t))}asObservable(){const t=new X;return t.source=this,t}}return n.create=(e,t)=>new E(e,t),n})();class E extends v{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):O.EMPTY}}function F(n){return n&&"function"==typeof n.schedule}function R(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new te(n,e))}}class te{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new Ee(e,this.project,this.thisArg))}}class Ee extends A{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const qe=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},$e=function He(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),tt=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Fn(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Da=n=>{if(n&&"function"==typeof n[gt])return(n=>e=>{const t=n[gt]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(tt(n))return qe(n);if(Fn(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Ke),e))(n);if(n&&"function"==typeof n[$e])return(n=>e=>{const t=n[$e]();for(;;){let i;try{i=t.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${ft(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function wa(n,e){return new X(t=>{const i=new O;let r=0;return i.add(e.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function Ea(n,e){return e?function yv(n,e){if(null!=n){if(function gv(n){return n&&"function"==typeof n[gt]}(n))return function hv(n,e){return new X(t=>{const i=new O;return i.add(e.schedule(()=>{const r=n[gt]();i.add(r.subscribe({next(s){i.add(e.schedule(()=>t.next(s)))},error(s){i.add(e.schedule(()=>t.error(s)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(Fn(n))return function fv(n,e){return new X(t=>{const i=new O;return i.add(e.schedule(()=>n.then(r=>{i.add(e.schedule(()=>{t.next(r),i.add(e.schedule(()=>t.complete()))}))},r=>{i.add(e.schedule(()=>t.error(r)))}))),i})}(n,e);if(tt(n))return wa(n,e);if(function mv(n){return n&&"function"==typeof n[$e]}(n)||"string"==typeof n)return function pv(n,e){if(!n)throw new Error("Iterable cannot be null");return new X(t=>{const i=new O;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[$e](),i.add(e.schedule(function(){if(t.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(s),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof X?n:new X(Da(n))}class ms extends A{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class ys extends A{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function _s(n,e){if(!e.closed)return n instanceof X?n.subscribe(e):Da(n)(e)}function ba(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(ba((r,s)=>Ea(n(r,s)).pipe(R((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new _v(n,t)))}class _v{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new vv(e,this.project,this.concurrent))}}class vv extends ys{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new ms(this),i=this.destination;i.add(t);const r=_s(e,t);r!==t&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const Dv=ba;function fd(n=Number.POSITIVE_INFINITY){return ba(L,n)}function Ca(n,e){return e?wa(n,e):new X(qe(n))}function vs(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return F(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof X?n[0]:fd(e)(Ca(n,t))}function pd(){return function(e){return e.lift(new wv(e))}}class wv{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new Ev(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class Ev extends A{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class bv extends X{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new O,e.add(this.source.subscribe(new Sv(this.getSubject(),this))),e.closed&&(this._connection=null,e=O.EMPTY)),e}refCount(){return pd()(this)}}const Cv=(()=>{const n=bv.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class Sv extends Nn{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function Sa(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new Tv(r,e));const s=Object.create(i,Cv);return s.source=i,s.subjectFactory=r,s}}class Tv{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(e);return s.add(t.subscribe(r)),s}}function Mv(){return new v}function ae(n){for(let e in n)if(n[e]===ae)return e;throw Error("Could not find renamed property on target object.")}function ie(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ie).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function Ta(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const Pv=ae({__forward_ref__:ae});function Ma(n){return n.__forward_ref__=Ma,n.toString=function(){return ie(this())},n}function U(n){return function gd(n){return"function"==typeof n&&n.hasOwnProperty(Pv)&&n.__forward_ref__===Ma}(n)?n():n}class I extends Error{constructor(e,t){super(function Aa(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function Qe(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():function V(n){return"string"==typeof n?n:null==n?"":String(n)}(n)}function Ds(n,e){const t=e?` in ${e}`:"";throw new I(-201,`No provider for ${Qe(n)} found${t}`)}function vt(n,e){null==n&&function re(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function B(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Cn(n){return{providers:n.providers||[],imports:n.imports||[]}}function Pa(n){return md(n,ws)||md(n,_d)}function md(n,e){return n.hasOwnProperty(e)?n[e]:null}function yd(n){return n&&(n.hasOwnProperty(Ra)||n.hasOwnProperty(Lv))?n[Ra]:null}const ws=ae({\u0275prov:ae}),Ra=ae({\u0275inj:ae}),_d=ae({ngInjectableDef:ae}),Lv=ae({ngInjectorDef:ae});var $=(()=>(($=$||{})[$.Default=0]="Default",$[$.Host=1]="Host",$[$.Self=2]="Self",$[$.SkipSelf=4]="SkipSelf",$[$.Optional=8]="Optional",$))();let xa;function kn(n){const e=xa;return xa=n,e}function vd(n,e,t){const i=Pa(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&$.Optional?null:void 0!==e?e:void Ds(ie(n),"Injector")}function Ln(n){return{toString:n}.toString()}var qt=(()=>((qt=qt||{})[qt.OnPush=0]="OnPush",qt[qt.Default=1]="Default",qt))(),Qt=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Qt||(Qt={})),Qt))();const Bv="undefined"!=typeof globalThis&&globalThis,jv="undefined"!=typeof window&&window,Hv="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,se=Bv||"undefined"!=typeof global&&global||jv||Hv,Si={},le=[],Es=ae({\u0275cmp:ae}),Oa=ae({\u0275dir:ae}),Na=ae({\u0275pipe:ae}),Dd=ae({\u0275mod:ae}),Sn=ae({\u0275fac:ae}),vr=ae({__NG_ELEMENT_ID__:ae});let $v=0;function bs(n){return Ln(()=>{const t={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===qt.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||le,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Qt.Emulated,id:"c",styles:n.styles||le,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=$v++,i.inputs=Cd(n.inputs,t),i.outputs=Cd(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(wd):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Ed):null,i})}function wd(n){return Ye(n)||function Bn(n){return n[Oa]||null}(n)}function Ed(n){return function ri(n){return n[Na]||null}(n)}const bd={};function Vn(n){return Ln(()=>{const e={type:n.type,bootstrap:n.bootstrap||le,declarations:n.declarations||le,imports:n.imports||le,exports:n.exports||le,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(bd[n.id]=n.type),e})}function Cd(n,e){if(null==n)return Si;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),t[r]=i,e&&(e[r]=s)}return t}const Dt=bs;function Ye(n){return n[Es]||null}function Ft(n,e){const t=n[Dd]||null;if(!t&&!0===e)throw new Error(`Type ${ie(n)} does not have '\u0275mod' property.`);return t}const z=11;function un(n){return Array.isArray(n)&&"object"==typeof n[1]}function Kt(n){return Array.isArray(n)&&!0===n[1]}function La(n){return 0!=(8&n.flags)}function Ts(n){return 2==(2&n.flags)}function Ms(n){return 1==(1&n.flags)}function Zt(n){return null!==n.template}function Qv(n){return 0!=(512&n[2])}function li(n,e){return n.hasOwnProperty(Sn)?n[Sn]:null}class Id{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Td(n){return n.type.prototype.ngOnChanges&&(n.setInput=Xv),Zv}function Zv(){const n=Ad(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===Si)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function Xv(n,e,t,i){const r=Ad(n)||function Jv(n,e){return n[Md]=e}(n,{previous:Si,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new Id(l&&l.currentValue,e,o===Si),n[i]=e}const Md="__ngSimpleChanges__";function Ad(n){return n[Md]||null}let $a;function Ce(n){return!!n.listen}const Pd={createRenderer:(n,e)=>function za(){return void 0!==$a?$a:"undefined"!=typeof document?document:void 0}()};function Pe(n){for(;Array.isArray(n);)n=n[0];return n}function Et(n,e){return Pe(e[n.index])}function Ua(n,e){return n.data[e]}function bt(n,e){const t=e[n];return un(t)?t:t[0]}function Rd(n){return 4==(4&n[2])}function Wa(n){return 128==(128&n[2])}function jn(n,e){return null==e?null:n[e]}function xd(n){n[18]=0}function Ga(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const j={lFrame:Hd(null),bindingsEnabled:!0};function Nd(){return j.bindingsEnabled}function _(){return j.lFrame.lView}function ee(){return j.lFrame.tView}function ke(){let n=Fd();for(;null!==n&&64===n.type;)n=n.parent;return n}function Fd(){return j.lFrame.currentTNode}function dn(n,e){const t=j.lFrame;t.currentTNode=n,t.isParent=e}function qa(){return j.lFrame.isParent}function yD(n,e){const t=j.lFrame;t.bindingIndex=t.bindingRootIndex=n,Ya(e)}function Ya(n){j.lFrame.currentDirectiveIndex=n}function Vd(){return j.lFrame.currentQueryIndex}function Za(n){j.lFrame.currentQueryIndex=n}function vD(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function Bd(n,e,t){if(t&$.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&$.Host||(r=vD(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=j.lFrame=jd();return i.currentTNode=e,i.lView=n,!0}function xs(n){const e=jd(),t=n[1];j.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function jd(){const n=j.lFrame,e=null===n?null:n.child;return null===e?Hd(n):e}function Hd(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function $d(){const n=j.lFrame;return j.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const zd=$d;function Os(){const n=$d();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function rt(){return j.lFrame.selectedIndex}function Hn(n){j.lFrame.selectedIndex=n}function Ns(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function Fs(n,e,t){Ud(n,e,3,t)}function ks(n,e,t,i){(3&n[2])===t&&Ud(n,e,t,i)}function Xa(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function Ud(n,e,t,i){const s=null!=i?i:-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(MD(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function MD(n,e,t,i){const r=t[i]<0,s=t[i+1],a=n[r?-t[i]:t[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Cr{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function Ls(n,e,t){const i=Ce(n);let r=0;for(;r<t.length;){const s=t[r];if("number"==typeof s){if(0!==s)break;r++;const o=t[r++],a=t[r++],l=t[r++];i?n.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=t[++r];el(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Wd(n){return 3===n||4===n||6===n}function el(n){return 64===n.charCodeAt(0)}function Vs(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||Gd(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function Gd(n,e,t,i,r){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function qd(n){return-1!==n}function xi(n){return 32767&n}function Oi(n,e){let t=function OD(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let tl=!0;function Bs(n){const e=tl;return tl=n,e}let ND=0;function Ir(n,e){const t=il(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,nl(i.data,n),nl(e,null),nl(i.blueprint,null));const r=js(n,e),s=n.injectorIndex;if(qd(r)){const o=xi(r),a=Oi(r,e),l=a[1].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function nl(n,e){n.push(0,0,0,0,0,0,0,0,e)}function il(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function js(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function Hs(n,e,t){!function FD(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(vr)&&(i=t[vr]),null==i&&(i=t[vr]=ND++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Kd(n,e,t){if(t&$.Optional)return n;Ds(e,"NodeInjector")}function Zd(n,e,t,i){if(t&$.Optional&&void 0===i&&(i=null),0==(t&($.Self|$.Host))){const r=n[9],s=kn(void 0);try{return r?r.get(e,i,t&$.Optional):vd(e,i,t&$.Optional)}finally{kn(s)}}return Kd(i,e,t)}function Xd(n,e,t,i=$.Default,r){if(null!==n){const s=function BD(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(vr)?n[vr]:void 0;return"number"==typeof e?e>=0?255&e:LD:e}(t);if("function"==typeof s){if(!Bd(e,n,i))return i&$.Host?Kd(r,t,i):Zd(e,t,i,r);try{const o=s(i);if(null!=o||i&$.Optional)return o;Ds(t)}finally{zd()}}else if("number"==typeof s){let o=null,a=il(n,e),l=-1,c=i&$.Host?e[16][6]:null;for((-1===a||i&$.SkipSelf)&&(l=-1===a?js(n,e):e[a+8],-1!==l&&th(i,!1)?(o=e[1],a=xi(l),e=Oi(l,e)):a=-1);-1!==a;){const u=e[1];if(eh(s,a,u.data)){const d=VD(a,e,t,o,i,c);if(d!==Jd)return d}l=e[a+8],-1!==l&&th(i,e[1].data[a+8]===c)&&eh(s,a,e)?(o=u,a=xi(l),e=Oi(l,e)):a=-1}}}return Zd(e,t,i,r)}const Jd={};function LD(){return new Ni(ke(),_())}function VD(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=$s(a,o,t,null==i?Ts(a)&&tl:i!=o&&0!=(3&a.type),r&$.Host&&s===a);return null!==u?Tr(e,o,u,a):Jd}function $s(n,e,t,i,r){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&t===p||f>=l&&p.type===t)return f}if(r){const f=o[l];if(f&&Zt(f)&&f.type===t)return l}return null}function Tr(n,e,t,i){let r=n[t];const s=e.data;if(function AD(n){return n instanceof Cr}(r)){const o=r;o.resolving&&function Rv(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new I(-200,`Circular dependency in DI detected for ${n}${t}`)}(Qe(s[t]));const a=Bs(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?kn(o.injectImpl):null;Bd(n,i,$.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function TD(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=Td(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&kn(l),Bs(a),o.resolving=!1,zd()}}return r}function eh(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function th(n,e){return!(n&$.Self||n&$.Host&&e)}class Ni{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return Xd(this._tNode,this._lView,e,i,t)}}class K{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=B({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Vt(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),Vt(i,e)):e!==n&&e.push(i)}return e}function hn(n,e){n.forEach(t=>Array.isArray(t)?hn(t,e):e(t))}function ih(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function zs(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}const Rr={},Ws="ngTempTokenPath",ZD=/\n/gm,lh="__source",JD=ae({provide:String,useValue:ae});let xr;function ch(n){const e=xr;return xr=n,e}function ew(n,e=$.Default){if(void 0===xr)throw new I(203,"");return null===xr?vd(n,void 0,e):xr.get(n,e&$.Optional?null:void 0,e)}function w(n,e=$.Default){return(function Vv(){return xa}()||ew)(U(n),e)}const dh=w;function dl(n){const e=[];for(let t=0;t<n.length;t++){const i=U(n[t]);if(Array.isArray(i)){if(0===i.length)throw new I(900,"");let r,s=$.Default;for(let o=0;o<i.length;o++){const a=i[o],l=tw(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(w(r,s))}else e.push(w(i))}return e}function tw(n){return n.__NG_DI_FLAG__}var St=(()=>((St=St||{})[St.Important=1]="Important",St[St.DashCase=2]="DashCase",St))();const _h="__ngContext__";function Xe(n,e){n[_h]=e}function gl(n){const e=function Fr(n){return n[_h]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function yl(n,e){return undefined(n,e)}function kr(n){const e=n[3];return Kt(e)?e[3]:e}function _l(n){return Sh(n[13])}function vl(n){return Sh(n[4])}function Sh(n){for(;null!==n&&!Kt(n);)n=n[4];return n}function Hi(n,e,t,i,r){if(null!=i){let s,o=!1;Kt(i)?s=i:un(i)&&(o=!0,i=i[0]);const a=Pe(i);0===n&&null!==t?null==r?Rh(e,t,a):ci(e,t,a,r||null,!0):1===n&&null!==t?ci(e,t,a,r||null,!0):2===n?function Il(n,e,t){const i=Ys(n,e);i&&function xw(n,e,t,i){Ce(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function Fw(n,e,t,i,r){const s=t[7];s!==Pe(t)&&Hi(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];Lr(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function wl(n,e,t){if(Ce(n))return n.createElement(e,t);{const i=null!==t?function iD(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?n.createElement(e):n.createElementNS(i,e)}}function Th(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Ga(r,-1)),t.splice(i,1)}function El(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&Th(r,i),e>0&&(n[t-1][4]=i[4]);const s=zs(n,10+e);!function Cw(n,e){Lr(n,e,e[z],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Mh(n,e){if(!(256&e[2])){const t=e[z];Ce(t)&&t.destroyNode&&Lr(n,e,t,3,null,null),function Tw(n){let e=n[13];if(!e)return bl(n[1],n);for(;e;){let t=null;if(un(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)un(e)&&bl(e[1],e),e=e[3];null===e&&(e=n),un(e)&&bl(e[1],e),t=e&&e[4]}e=t}}(e)}}function bl(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function Rw(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof Cr)){const s=t[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,e),function Pw(n,e){const t=n.cleanup,i=e[7];let r=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):Pe(e[o]),l=i[r=t[s+2]],c=t[s+3];"boolean"==typeof c?a.removeEventListener(t[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=t[s+1]];t[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();e[7]=null}}(n,e),1===e[1].type&&Ce(e[z])&&e[z].destroy();const t=e[17];if(null!==t&&Kt(e[3])){t!==e[3]&&Th(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function Ah(n,e,t){return function Ph(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Qt.None||r===Qt.Emulated)return null}return Et(i,t)}(n,e.parent,t)}function ci(n,e,t,i,r){Ce(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function Rh(n,e,t){Ce(n)?n.appendChild(e,t):e.appendChild(t)}function xh(n,e,t,i,r){null!==i?ci(n,e,t,i,r):Rh(n,e,t)}function Ys(n,e){return Ce(n)?n.parentNode(e):e.parentNode}let Fh=function Nh(n,e,t){return 40&n.type?Et(n,t):null};function Ks(n,e,t,i){const r=Ah(n,i,e),s=e[z],a=function Oh(n,e,t){return Fh(n,e,t)}(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)xh(s,r,t[l],a,!1);else xh(s,r,t,a,!1)}function Zs(n,e){if(null!==e){const t=e.type;if(3&t)return Et(e,n);if(4&t)return Sl(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return Zs(n,i);{const r=n[e.index];return Kt(r)?Sl(-1,r):Pe(r)}}if(32&t)return yl(e,n)()||Pe(n[e.index]);{const i=Lh(n,e);return null!==i?Array.isArray(i)?i[0]:Zs(kr(n[16]),i):Zs(n,e.next)}}return null}function Lh(n,e){return null!==e?n[16][6].projection[e.projection]:null}function Sl(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return Zs(i,r)}return e[7]}function Tl(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&Xe(Pe(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)Tl(n,e,t.child,i,r,s,!1),Hi(e,n,r,a,s);else if(32&l){const c=yl(t,i);let u;for(;u=c();)Hi(e,n,r,u,s);Hi(e,n,r,a,s)}else 16&l?Vh(n,e,i,t,r,s):Hi(e,n,r,a,s);t=o?t.projectionNext:t.next}}function Lr(n,e,t,i,r,s){Tl(t,i,n.firstChild,e,r,s,!1)}function Vh(n,e,t,i,r,s){const o=t[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Hi(e,n,r,l[c],s);else Tl(n,e,l,o[3],r,s,!0)}function Bh(n,e,t){Ce(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function Ml(n,e,t){Ce(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function kl(n){return n.ngOriginalError}function fE(n,...e){n.error(...e)}class Hr{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function hE(n){return n&&n.ngErrorLogger||fE}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&kl(e);for(;t&&kl(t);)t=kl(t);return t||null}}const DE=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(se))();function pn(n){return n instanceof Function?n():n}function ef(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=e.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}t=r+1}}const tf="ng-template";function CE(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==ef(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function nf(n){return 4===n.type&&n.value!==tf}function SE(n,e,t){return e===(4!==n.type||t?n.value:tf)}function IE(n,e,t){let i=4;const r=n.attrs||[],s=function AE(n){for(let e=0;e<n.length;e++)if(Wd(n[e]))return e;return n.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!SE(n,l,t)||""===l&&1===e.length){if(Xt(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!CE(n.attrs,c,t)){if(Xt(i))return!1;o=!0}continue}const d=TE(8&i?"class":l,r,nf(n),t);if(-1===d){if(Xt(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==ef(f,c,0)||2&i&&c!==h){if(Xt(i))return!1;o=!0}}}}else{if(!o&&!Xt(i)&&!Xt(l))return!1;if(o&&Xt(l))continue;o=!1,i=l|1&i}}return Xt(i)||o}function Xt(n){return 0==(1&n)}function TE(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let s=!1;for(;r<e.length;){const o=e[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function PE(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const i=n[t];if("number"==typeof i)return-1;if(i===e)return t;t++}return-1}(e,n)}function rf(n,e,t=!1){for(let i=0;i<e.length;i++)if(IE(n,e[i],t))return!0;return!1}function sf(n,e){return n?":not("+e.trim()+")":e}function xE(n){let e=n[0],t=1,i=2,r="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&i){const a=n[++t];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Xt(o)&&(e+=sf(s,r),r=""),i=o,s=s||!Xt(i);t++}return""!==r&&(e+=sf(s,r)),e}const H={};function lf(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&Fs(e,s,t)}else{const s=n.preOrderHooks;null!==s&&ks(e,s,0,t)}Hn(t)}function vf(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],s=t[i+1];if(-1!==s){const o=n.data[s];Za(r),o.contentQueries(2,e[s],s)}}}function $r(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,xd(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[z]=a||n&&n[z],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==e.type?n[16]:u,u}function zi(n,e,t,i,r){let s=n.data[e];if(null===s)s=function Ql(n,e,t,i,r){const s=Fd(),o=qa(),l=n.data[e]=function KE(n,e,t,i,r,s){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,e,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,e,t,i,r),function mD(){return j.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function br(){const n=j.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return dn(s,!0),s}function Ui(n,e,t,i){if(0===t)return-1;const r=e.length;for(let s=0;s<t;s++)e.push(i),n.blueprint.push(i),n.data.push(null);return r}function zr(n,e,t){xs(e);try{const i=n.viewQuery;null!==i&&ic(1,i,t);const r=n.template;null!==r&&Df(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&vf(n,e),n.staticViewQueries&&ic(2,n.viewQuery,t);const s=n.components;null!==s&&function qE(n,e){for(let t=0;t<e.length;t++)pb(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,Os()}}function Wi(n,e,t,i){const r=e[2];if(256!=(256&r)){xs(e);try{xd(e),function kd(n){return j.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Df(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&Fs(e,c,null)}else{const c=n.preOrderHooks;null!==c&&ks(e,c,0,null),Xa(e,0)}if(function hb(n){for(let e=_l(n);null!==e;e=vl(e)){if(!e[2])continue;const t=e[9];for(let i=0;i<t.length;i++){const r=t[i],s=r[3];0==(1024&r[2])&&Ga(s,1),r[2]|=1024}}}(e),function db(n){for(let e=_l(n);null!==e;e=vl(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];Wa(i)&&Wi(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&vf(n,e),o){const c=n.contentCheckHooks;null!==c&&Fs(e,c)}else{const c=n.contentHooks;null!==c&&ks(e,c,1),Xa(e,1)}!function WE(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)Hn(~r);else{const s=r,o=t[++i],a=t[++i];yD(o,s),a(2,e[s])}}}finally{Hn(-1)}}(n,e);const a=n.components;null!==a&&function GE(n,e){for(let t=0;t<e.length;t++)fb(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&ic(2,l,i),o){const c=n.viewCheckHooks;null!==c&&Fs(e,c)}else{const c=n.viewHooks;null!==c&&ks(e,c,2),Xa(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,Ga(e[3],-1))}finally{Os()}}}function QE(n,e,t,i){const r=e[10],o=Rd(e);try{!o&&r.begin&&r.begin(),o&&zr(n,e,i),Wi(n,e,t,i)}finally{!o&&r.end&&r.end()}}function Df(n,e,t,i,r){const s=rt(),o=2&i;try{Hn(-1),o&&e.length>20&&lf(n,e,20,!1),t(i,r)}finally{Hn(s)}}function Ef(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=so(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function so(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function YE(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:H);return t}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Sf(n,e,t,i){const r=Ff(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&kf(n).push(i,r.length-1))}function If(n,e,t){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(e,r):t[i]=[e,r]}return t}function Mf(n,e,t,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function nb(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function Af(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function Pf(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function ab(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Zt(e)&&(t[""]=n)}}function Rf(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function xf(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=li(r.type)),o=new Cr(s,Zt(r),null);n.blueprint[i]=o,t[i]=o,Mf(n,e,0,i,Ui(n,t,r.hostVars,H),r)}function lb(n,e,t){const i=Et(e,n),r=Ef(t),s=n[10],o=oo(n,$r(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function cb(n,e,t,i,r,s){const o=s[e];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(t,d,c,u):t[u]=d}}}function ub(n,e){let t=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,n[r],e[i+1])),i+=2}else i+=2;else i+=4}return t}function fb(n,e){const t=bt(e,n);if(Wa(t)){const i=t[1];80&t[2]?Wi(i,t,i.template,t[8]):t[5]>0&&Jl(t)}}function Jl(n){for(let i=_l(n);null!==i;i=vl(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];Wi(o,s,o.template,s[8])}else s[5]>0&&Jl(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=bt(t[i],n);Wa(r)&&r[5]>0&&Jl(r)}}function pb(n,e){const t=bt(e,n),i=t[1];(function gb(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),zr(i,t,t[8])}function oo(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function ec(n){for(;n;){n[2]|=64;const e=kr(n);if(Qv(n)&&!e)return n;n=e}return null}function Nf(n){!function tc(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=gl(t),r=i[1];QE(r,i,r.template,t)}}(n[8])}function ic(n,e,t){Za(0),e(n,t)}const yb=(()=>Promise.resolve(null))();function Ff(n){return n[7]||(n[7]=[])}function kf(n){return n.cleanup||(n.cleanup=[])}function Vf(n,e){const t=n[9],i=t?t.get(Hr,null):null;i&&i.handleError(e)}function Bf(n,e,t,i,r){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=e[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function ao(n,e,t){let i=t?n.styles:null,r=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?r=Ta(r,a):2==s&&(i=Ta(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const rc=new K("INJECTOR",-1);class jf{get(e,t=Rr){if(t===Rr){const i=new Error(`NullInjectorError: No provider for ${ie(e)}!`);throw i.name="NullInjectorError",i}return t}}const sc=new K("Set Injector scope."),Ur={},Db={};let oc;function Hf(){return void 0===oc&&(oc=new jf),oc}function $f(n,e=null,t=null,i){const r=zf(n,e,t,i);return r._resolveInjectorDefTypes(),r}function zf(n,e=null,t=null,i){return new wb(n,t,e||Hf(),i)}class wb{constructor(e,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&hn(t,a=>this.processProvider(a,e,t)),hn([e],a=>this.processInjectorType(a,[],s)),this.records.set(rc,Gi(void 0,this));const o=this.records.get(sc);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:ie(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Rr,i=$.Default){this.assertNotDestroyed();const r=ch(this),s=kn(void 0);try{if(!(i&$.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function Ab(n){return"function"==typeof n||"object"==typeof n&&n instanceof K}(e)&&Pa(e);a=l&&this.injectableDefInScope(l)?Gi(ac(e),Ur):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&$.Self?Hf():this.parent).get(e,t=i&$.Optional&&t===Rr?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[Ws]=o[Ws]||[]).unshift(ie(e)),r)throw o;return function nw(n,e,t,i){const r=n[Ws];throw e[lh]&&r.unshift(e[lh]),n.message=function iw(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=ie(e);if(Array.isArray(e))r=e.map(ie).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):ie(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(ZD,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[Ws]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{kn(s),ch(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(ie(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processInjectorType(e,t,i){if(!(e=U(e)))return!1;let r=yd(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=yd(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{hn(r.imports,d=>{this.processInjectorType(d,t,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];hn(f,p=>this.processProvider(p,h,f||le))}}this.injectorDefTypes.add(o);const l=li(o)||(()=>new o);this.records.set(o,Gi(l,Ur));const c=r.providers;if(null!=c&&!a){const u=e;hn(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,i){let r=qi(e=U(e))?e:U(e&&e.provide);const s=function bb(n,e,t){return Wf(n)?Gi(void 0,n.useValue):Gi(function Uf(n,e,t){let i;if(qi(n)){const r=U(n);return li(r)||ac(r)}if(Wf(n))i=()=>U(n.useValue);else if(function Sb(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...dl(n.deps||[]));else if(function Cb(n){return!(!n||!n.useExisting)}(n))i=()=>w(U(n.useExisting));else{const r=U(n&&(n.useClass||n.provide));if(!function Tb(n){return!!n.deps}(n))return li(r)||ac(r);i=()=>new r(...dl(n.deps))}return i}(n),Ur)}(e);if(qi(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Gi(void 0,Ur,!0),o.factory=()=>dl(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===Ur&&(t.value=Db,t.value=t.factory()),"object"==typeof t.value&&t.value&&function Mb(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=U(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function ac(n){const e=Pa(n),t=null!==e?e.factory:li(n);if(null!==t)return t;if(n instanceof K)throw new I(204,!1);if(n instanceof Function)return function Eb(n){const e=n.length;if(e>0)throw function Pr(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}(e,"?"),new I(204,!1);const t=function Fv(n){const e=n&&(n[ws]||n[_d]);if(e){const t=function kv(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" 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 "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new I(204,!1)}function Gi(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function Wf(n){return null!==n&&"object"==typeof n&&JD in n}function qi(n){return"function"==typeof n}let dt=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return $f({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return $f({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=Rr,n.NULL=new jf,n.\u0275prov=B({token:n,providedIn:"any",factory:()=>w(rc)}),n.__NG_ELEMENT_ID__=-1,n})();function Lb(n,e){Ns(gl(n)[1],ke())}let lo=null;function Qi(){if(!lo){const n=se.Symbol;if(n&&n.iterator)lo=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(lo=i)}}}return lo}function G(n,e=$.Default){const t=_();return null===t?w(n,e):Xd(ke(),t,U(n),e)}function mc(n,e,t){const i=_();return function Je(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}(i,function Ri(){return j.lFrame.bindingIndex++}(),e)&&function It(n,e,t,i,r,s,o,a){const l=Et(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(Bf(n,t,u,i,r),Ts(e)&&function JE(n,e){const t=bt(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function XE(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,e.value||"",i):r,Ce(s)?s.setProperty(l,i,r):el(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(ee(),function _e(){const n=j.lFrame;return Ua(n.tView,n.selectedIndex)}(),i,n,e,i[z],t,!1),mc}function yc(n,e,t,i,r){const o=r?"class":"style";Bf(n,t,e.inputs[o],o,i)}function ho(n,e,t,i){const r=_(),s=ee(),o=20+n,a=r[z],l=r[o]=wl(a,e,function ID(){return j.lFrame.currentNamespace}()),c=s.firstCreatePass?function _C(n,e,t,i,r,s,o){const a=e.consts,c=zi(e,n,2,r,jn(a,s));return function Zl(n,e,t,i){let r=!1;if(Nd()){const s=function sb(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];rf(t,o.selectors,!1)&&(r||(r=[]),Hs(Ir(t,e),n,o.type),Zt(o)?(Pf(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,Rf(t,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=Ui(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=Vs(t.mergedAttrs,d.hostAttrs),xf(n,t,e,c,d),ab(c,d,o),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),c++}!function ZE(n,e){const i=e.directiveEnd,r=n.data,s=e.attrs,o=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||nf(e)?null:ub(d,s);o.push(h),a=If(d,c,a),l=If(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(n,t)}o&&function ob(n,e,t){if(e){const i=n.localNames=[];for(let r=0;r<e.length;r+=2){const s=t[e[r+1]];if(null==s)throw new I(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=Vs(t.mergedAttrs,t.attrs),r}(e,t,c,jn(a,o)),null!==c.attrs&&ao(c,c.attrs,!1),null!==c.mergedAttrs&&ao(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];dn(c,!0);const u=c.mergedAttrs;null!==u&&Ls(a,l,u);const d=c.classes;null!==d&&Ml(a,l,d);const h=c.styles;return null!==h&&Bh(a,l,h),64!=(64&c.flags)&&Ks(s,r,l,c),0===function cD(){return j.lFrame.elementDepthCount}()&&Xe(l,r),function uD(){j.lFrame.elementDepthCount++}(),Ms(c)&&(function Yl(n,e,t){!Nd()||(function ib(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||Ir(t,e),Xe(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Zt(l);c&&lb(e,t,l);const u=Tr(e,n,a,t);Xe(u,e),null!==o&&cb(0,a-r,u,l,0,o),c&&(bt(t.index,e)[8]=u)}}(n,e,t,Et(t,e)),128==(128&t.flags)&&function rb(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function _D(){return j.lFrame.currentDirectiveIndex}();try{Hn(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];Ya(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Af(c,u)}}finally{Hn(-1),Ya(a)}}(n,e,t))}(s,r,c),function wf(n,e,t){if(La(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}(s,c,r)),null!==i&&function Kl(n,e,t=Et){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?t(e,n):n[o];n[r++]=a}}}(r,c),ho}function fo(){let n=ke();qa()?function Qa(){j.lFrame.isParent=!1}():(n=n.parent,dn(n,!1));const e=n;!function dD(){j.lFrame.elementDepthCount--}();const t=ee();return t.firstCreatePass&&(Ns(t,n),La(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function RD(n){return 0!=(16&n.flags)}(e)&&yc(t,e,_(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function xD(n){return 0!=(32&n.flags)}(e)&&yc(t,e,_(),e.stylesWithoutHost,!1),fo}function po(n,e,t,i){return ho(n,e,t,i),fo(),po}function Dc(n){return!!n&&"function"==typeof n.then}const wC=function Ip(n){return!!n&&"function"==typeof n.subscribe};function wc(n,e,t,i){const r=_(),s=ee(),o=ke();return function Mp(n,e,t,i,r,s,o,a){const l=Ms(i),u=n.firstCreatePass&&kf(n),d=e[8],h=Ff(e);let f=!0;if(3&i.type||a){const y=Et(i,e),D=a?a(y):y,m=h.length,b=a?M=>a(Pe(M[i.index])):i.index;if(Ce(t)){let M=null;if(!a&&l&&(M=function EC(n,e,t,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===t&&r[s+1]===i){const a=e[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,r,i.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=s,M.__ngLastListenerFn__=s,f=!1;else{s=Ec(i,e,d,s,!1);const q=t.listen(D,r,s);h.push(s,q),u&&u.push(r,b,m,m+1)}}else s=Ec(i,e,d,s,!0),D.addEventListener(r,s,o),h.push(s),u&&u.push(r,b,m,o)}else s=Ec(i,e,d,s,!1);const p=i.outputs;let g;if(f&&null!==p&&(g=p[r])){const y=g.length;if(y)for(let D=0;D<y;D+=2){const ge=e[g[D]][g[D+1]].subscribe(s),De=h.length;h.push(s,ge),u&&u.push(r,i.index,De,-(De+1))}}}(s,r,r[z],o,n,e,!!t,i),wc}function Ap(n,e,t,i){try{return!1!==t(i)}catch(r){return Vf(n,r),!1}}function Ec(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?bt(n.index,e):e;0==(32&e[2])&&ec(a);let l=Ap(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=Ap(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}const mo="en-US";let Eg=mo;class qg{}class g0{resolveComponentFactory(e){throw function p0(n){const e=Error(`No component factory found for ${ie(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let fi=(()=>{class n{}return n.NULL=new g0,n})();function m0(){return lr(ke(),_())}function lr(n,e){return new vn(Et(n,e))}let vn=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=m0,n})();function y0(n){return n instanceof vn?n.nativeElement:n}class Xr{}let D0=(()=>{class n{}return n.\u0275prov=B({token:n,providedIn:"root",factory:()=>null}),n})();class wo{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const w0=new wo("13.4.0"),xc={};function Eo(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(Pe(s)),Kt(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&Eo(l[1],l,c,i)}const o=t.type;if(8&o)Eo(n,e,t.child,i);else if(32&o){const a=yl(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Lh(e,t);if(Array.isArray(a))i.push(...a);else{const l=kr(e[16]);Eo(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class Jr{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return Eo(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(Kt(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(El(e,i),zs(t,i))}this._attachedToViewContainer=!1}Mh(this._lView[1],this._lView)}onDestroy(e){Sf(this._lView[1],this._lView,null,e)}markForCheck(){ec(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function nc(n,e,t){const i=e[10];i.begin&&i.begin();try{Wi(n,e,n.template,t)}catch(r){throw Vf(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Iw(n,e){Lr(n,e,e[z],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new I(902,"");this._appRef=e}}class E0 extends Jr{constructor(e){super(e),this._view=e}detectChanges(){Nf(this._view)}checkNoChanges(){}get context(){return null}}class Kg extends fi{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=Ye(e);return new Oc(t,this.ngModule)}}function Zg(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class Oc extends qg{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function OE(n){return n.map(xE).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Zg(this.componentDef.inputs)}get outputs(){return Zg(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function C0(n,e){return{get:(t,i,r)=>{const s=n.get(t,xc,r);return s!==xc||i===xc?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(Xr,Pd),a=s.get(D0,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function Cf(n,e,t){if(Ce(n))return n.selectRootElement(e,t===Qt.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):wl(o.createRenderer(null,this.componentDef),c,function b0(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function np(n,e){return{components:[],scheduler:n||DE,clean:yb,playerHandler:e||null,flags:0}}(),f=so(0,null,null,1,0,null,null,null,null,null),p=$r(null,f,h,d,null,null,o,l,a,s);let g,y;xs(p);try{const D=function ep(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=zi(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(ao(l,c,!0),null!==n&&(Ls(r,n,c),null!==l.classes&&Ml(r,n,l.classes),null!==l.styles&&Bh(r,n,l.styles)));const u=i.createRenderer(n,e),d=$r(t,Ef(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(Hs(Ir(l,t),o,e.type),Pf(o,l),Rf(l,t.length,1)),oo(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)Ls(l,u,["ng-version",w0.full]);else{const{attrs:m,classes:b}=function NE(n){const e=[],t=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&e.push(s,n[++i]):8===r&&t.push(s);else{if(!Xt(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);m&&Ls(l,u,m),b&&b.length>0&&Ml(l,u,b.join(" "))}if(y=Ua(f,20),void 0!==t){const m=y.projection=[];for(let b=0;b<this.ngContentSelectors.length;b++){const M=t[b];m.push(null!=M?Array.from(M):null)}}g=function tp(n,e,t,i,r){const s=t[1],o=function tb(n,e,t){const i=ke();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),xf(n,i,e,Ui(n,e,1,null),t));const r=Tr(e,n,i.directiveStart,i);Xe(r,e);const s=Et(i,e);return s&&Xe(s,e),r}(s,t,e);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,e)),e.contentQueries){const l=ke();e.contentQueries(1,o,l.directiveStart)}const a=ke();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Hn(a.index),Mf(t[1],a,0,a.directiveStart,a.directiveEnd,e),Af(e,o)),o}(D,this.componentDef,p,h,[Lb]),zr(f,p,null)}finally{Os()}return new I0(this.componentType,g,lr(y,p),p,y)}}class I0 extends class f0{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new E0(r),this.componentType=e}get injector(){return new Ni(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class cr{}const ur=new Map;class em extends cr{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Kg(this);const i=Ft(e);this._bootstrapComponents=pn(i.bootstrap),this._r3Injector=zf(e,t,[{provide:cr,useValue:this},{provide:fi,useValue:this.componentFactoryResolver}],ie(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=dt.THROW_IF_NOT_FOUND,i=$.Default){return e===dt||e===cr||e===rc?this:this._r3Injector.get(e,t,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Nc extends class M0{}{constructor(e){super(),this.moduleType=e,null!==Ft(e)&&function A0(n){const e=new Set;!function t(i){const r=Ft(i,!0),s=r.id;null!==s&&(function Xg(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${ie(e)} vs ${ie(e.name)}`)}(s,ur.get(s),i),ur.set(s,i));const o=pn(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new em(this.moduleType,e)}}function Fc(n){return e=>{setTimeout(n,void 0,e)}}const jt=class q0 extends v{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){var r,s,o;let a=e,l=t||(()=>null),c=i;if(e&&"object"==typeof e){const d=e;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=Fc(l),a&&(a=Fc(a)),c&&(c=Fc(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof O&&e.add(u),u}};function Q0(){return this._results[Qi()]()}class kc{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Qi(),i=kc.prototype;i[t]||(i[t]=Q0)}get changes(){return this._changes||(this._changes=new jt)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const i=this;i.dirty=!1;const r=Vt(e);(this._changesDetected=!function $D(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=e[i];if(t&&(r=t(r),s=t(s)),s!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Pn=(()=>{class n{}return n.__NG_ELEMENT_ID__=Z0,n})();const Y0=Pn,K0=class extends Y0{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=$r(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(t)),zr(t,i,e),new Jr(i)}};function Z0(){return bo(ke(),_())}function bo(n,e){return 4&n.type?new K0(e,n,lr(n,e)):null}let Dn=(()=>{class n{}return n.__NG_ELEMENT_ID__=X0,n})();function X0(){return lm(ke(),_())}const J0=Dn,om=class extends J0{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return lr(this._hostTNode,this._hostLView)}get injector(){return new Ni(this._hostTNode,this._hostLView)}get parentInjector(){const e=js(this._hostTNode,this._hostLView);if(qd(e)){const t=Oi(e,this._hostLView),i=xi(e);return new Ni(t[1].data[i+8],t)}return new Ni(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=am(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){const r=e.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(e,t,i,r,s){const o=e&&!function Ar(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new Oc(Ye(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(cr,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function lD(n){return Kt(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new om(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function Mw(n,e,t,i){const r=10+i,s=t.length;i>0&&(t[r-1][4]=e),i<s-10?(e[4]=t[r],ih(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function Aw(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(r,i,o,s);const a=Sl(s,o),l=i[z],c=Ys(l,o[7]);return null!==c&&function Sw(n,e,t,i,r,s){i[0]=r,i[6]=e,Lr(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),ih(Lc(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=am(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=El(this._lContainer,t);i&&(zs(Lc(this._lContainer),t),Mh(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=El(this._lContainer,t);return i&&null!=zs(Lc(this._lContainer),t)?new Jr(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function am(n){return n[8]}function Lc(n){return n[8]||(n[8]=[])}function lm(n,e){let t;const i=e[n.index];if(Kt(i))t=i;else{let r;if(8&n.type)r=Pe(i);else{const s=e[z];r=s.createComment("");const o=Et(n,e);ci(s,Ys(s,o),r,function Ow(n,e){return Ce(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=function Of(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}(i,e,r,n),oo(e,t)}return new om(t,n,e)}class Vc{constructor(e){this.queryList=e,this.matches=null}clone(){return new Vc(this.queryList)}setDirty(){this.queryList.setDirty()}}class Bc{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let s=0;s<i;s++){const o=t.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Bc(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==mm(e,t).matches&&this.queries[t].setDirty()}}class cm{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class jc{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,s=this.getByIndex(i).embeddedTView(e,r);s&&(s.indexInDeclarationView=i,null!==t?t.push(s):t=[s])}return null!==t?new jc(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Hc{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new Hc(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(e,t,nI(t,s)),this.matchTNodeWithReadOption(e,t,$s(t,e,s,!1,!1))}else i===Pn?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,$s(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===vn||r===Dn||r===Pn&&4&t.type)this.addMatch(t.index,-2);else{const s=$s(t,e,r,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function nI(n,e){const t=n.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===e)return t[i+1];return null}function rI(n,e,t,i){return-1===t?function iI(n,e){return 11&n.type?lr(n,e):4&n.type?bo(n,e):null}(e,n):-2===t?function sI(n,e,t){return t===vn?lr(e,n):t===Pn?bo(e,n):t===Dn?lm(e,n):void 0}(n,e,i):Tr(n,n[1],t,e)}function um(n,e,t,i){const r=e[19].queries[i];if(null===r.matches){const s=n.data,o=t.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:rI(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function $c(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=um(n,e,r,t);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=e[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&$c(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];$c(f[1],f,c,i)}}}}}return i}function dm(n){const e=_(),t=ee(),i=Vd();Za(i+1);const r=mm(t,i);if(n.dirty&&Rd(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?$c(t,e,i,[]):um(t,e,r,i);n.reset(s,y0),n.notifyOnChanges()}return!0}return!1}function hm(n,e,t){const i=ee();i.firstCreatePass&&(function gm(n,e,t){null===n.queries&&(n.queries=new jc),n.queries.track(new Hc(e,t))}(i,new cm(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),function pm(n,e,t){const i=new kc(4==(4&t));Sf(n,e,i,i.destroy),null===e[19]&&(e[19]=new Bc),e[19].queries.push(new Vc(i))}(i,_(),e)}function mm(n,e){return n.queries.getByIndex(e)}function Io(...n){}const Om=new K("Application Initializer");let Qc=(()=>{class n{constructor(t){this.appInits=t,this.resolve=Io,this.reject=Io,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Dc(s))t.push(s);else if(wC(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(w(Om,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const is=new K("AppId",{providedIn:"root",factory:function Nm(){return`${Yc()}${Yc()}${Yc()}`}});function Yc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Fm=new K("Platform Initializer"),To=new K("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),II=new K("appBootstrapListener"),Gn=new K("LocaleId",{providedIn:"root",factory:()=>dh(Gn,$.Optional|$.SkipSelf)||function TI(){return"undefined"!=typeof $localize&&$localize.locale||mo}()}),RI=(()=>Promise.resolve(0))();function Kc(n){"undefined"==typeof Zone?RI.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class fe{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new jt(!1),this.onMicrotaskEmpty=new jt(!1),this.onStable=new jt(!1),this.onError=new jt(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function xI(){let n=se.requestAnimationFrame,e=se.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function FI(n){const e=()=>{!function NI(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(se,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Xc(n),n.isCheckStableRunning=!0,Zc(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Xc(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return km(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),Lm(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return km(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),Lm(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Xc(n),Zc(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,i,r,s)=>(t.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!fe.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(fe.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,OI,Io,Io);try{return s.runTask(o,t,i)}finally{s.cancelTask(o)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const OI={};function Zc(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Xc(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function km(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Lm(n){n._nesting--,Zc(n)}class kI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new jt,this.onMicrotaskEmpty=new jt,this.onStable=new jt,this.onError=new jt}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}let Jc=(()=>{class n{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:()=>{fe.assertNotInAngularZone(),Kc(()=>{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())Kc(()=>{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(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.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,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(w(fe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),LI=(()=>{class n{constructor(){this._applications=new Map,eu.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}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,i=!0){return eu.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class VI{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let eu=new VI,pi=null;const Vm=new K("AllowMultipleToken"),Bm=new K("PlatformOnDestroy");function jm(n,e,t=[]){const i=`Platform: ${e}`,r=new K(i);return(s=[])=>{let o=tu();if(!o||o.injector.get(Vm,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function $I(n){if(pi&&!pi.get(Vm,!1))throw new I(400,"");pi=n;const e=n.get(Hm),t=n.get(Fm,null);t&&t.forEach(i=>i())}(function UI(n=[],e){return dt.create({name:e,providers:[{provide:sc,useValue:"platform"},{provide:Bm,useValue:()=>pi=null},...n]})}(a,i))}return function zI(n){const e=tu();if(!e)throw new I(401,"");return e}()}}function tu(){var n;return null!==(n=null==pi?void 0:pi.get(Hm))&&void 0!==n?n:null}let Hm=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function WI(n,e){let t;return t="noop"===n?new kI:("zone.js"===n?void 0:n)||new fe({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:fe,useValue:a}];return a.run(()=>{const c=dt.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(Hr,null);if(!d)throw new I(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{nu(this._modules,u),h.unsubscribe()})}),function GI(n,e,t){try{const i=t();return Dc(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(Qc);return h.runInitializers(),h.donePromise.then(()=>(function mS(n){vt(n,"Expected localeId to be defined"),"string"==typeof n&&(Eg=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Gn,mo)||mo),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=$m({},i);return function jI(n,e,t){const i=new Nc(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(Mo);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new I(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new I(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(Bm,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(w(dt))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function $m(n,e){return Array.isArray(e)?e.reduce($m,n):Object.assign(Object.assign({},n),e)}let Mo=(()=>{class n{constructor(t,i,r,s){this._zone=t,this._injector=i,this._exceptionHandler=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new X(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new X(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{fe.assertNotInAngularZone(),Kc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{fe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=vs(o,a.pipe(function Av(){return n=>pd()(Sa(Mv)(n))}()))}bootstrap(t,i){if(!this._initStatus.done)throw new I(405,"");let r;r=t instanceof qg?t:this._injector.get(fi).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function HI(n){return n.isBoundToModule}(r)?void 0:this._injector.get(cr),a=r.create(dt.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Jc,null),u=c&&a.injector.get(LI);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),nu(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new I(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;nu(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(II,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(w(fe),w(dt),w(Hr),w(Qc))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function nu(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let Um=!0,qm=(()=>{class n{}return n.__NG_ELEMENT_ID__=YI,n})();function YI(n){return function KI(n,e,t){if(Ts(n)&&!t){const i=bt(n.index,e);return new Jr(i,i)}return 47&n.type?new Jr(e[16],e):null}(ke(),_(),16==(16&n))}const cT=jm(null,"core",[]);let uT=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(w(Mo))},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({}),n})(),xo=null;function qn(){return xo}const pe=new K("DocumentToken"),_y="browser";function vy(n){return n===_y}let dA=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({}),n})();class bu extends class gA extends class fT{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function hT(n){xo||(xo=n)}(new bu)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function mA(){return cs=cs||document.querySelector("base"),cs?cs.getAttribute("href"):null}();return null==t?null:function yA(n){Uo=Uo||document.createElement("a"),Uo.setAttribute("href",n);const e=Uo.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){cs=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function rM(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let Uo,cs=null;const Ty=new K("TRANSITION_ID"),vA=[{provide:Om,useFactory:function _A(n,e,t){return()=>{t.get(Qc).donePromise.then(()=>{const i=qn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[Ty,pe,dt],multi:!0}];class Cu{static init(){!function BI(n){eu=n}(new Cu)}addToWindow(e){se.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},se.getAllAngularTestabilities=()=>e.getAllTestabilities(),se.getAllAngularRootElements=()=>e.getAllRootElements(),se.frameworkStabilizers||(se.frameworkStabilizers=[]),se.frameworkStabilizers.push(i=>{const r=se.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:i?qn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let DA=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const Wo=new K("EventManagerPlugins");let Go=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(w(Wo),w(fe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class My{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=qn().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let Ay=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),us=(()=>{class n extends Ay{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(Py),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Py))}}return n.\u0275fac=function(t){return new(t||n)(w(pe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();function Py(n){qn().remove(n)}const Su={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/"},Iu=/%COMP%/g;function qo(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?qo(n,r,t):(r=r.replace(Iu,n),t.push(r))}return t}function Oy(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Qo=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Tu(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case Qt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new IA(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case Qt.ShadowDom:return new TA(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=qo(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(w(Go),w(us),w(is))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class Tu{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(Su[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,i){e&&e.insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const s=Su[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=Su[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(St.DashCase|St.Important)?e.style.setProperty(t,i,r&St.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&St.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Oy(i)):this.eventManager.addEventListener(e,t,Oy(i))}}class IA extends Tu{constructor(e,t,i,r){super(e),this.component=i;const s=qo(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function bA(n){return"_ngcontent-%COMP%".replace(Iu,n)}(r+"-"+i.id),this.hostAttr=function CA(n){return"_nghost-%COMP%".replace(Iu,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class TA extends Tu{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=qo(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let MA=(()=>{class n extends My{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(w(pe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const Fy=["alt","control","meta","shift"],PA={"\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"},ky={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"},RA={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let xA=(()=>{class n extends My{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>qn().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(Fy.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(t){let i="",r=function OA(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&ky.hasOwnProperty(e)&&(e=ky[e]))}return PA[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Fy.forEach(s=>{s!=r&&RA[s](t)&&(i+=s+".")}),i+=r,i}static eventCallback(t,i,r){return s=>{n.getEventFullKey(s)===t&&r.runGuarded(()=>i(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(w(pe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const LA=jm(cT,"browser",[{provide:To,useValue:_y},{provide:Fm,useValue:function NA(){bu.makeCurrent(),Cu.init()},multi:!0},{provide:pe,useFactory:function kA(){return function rD(n){$a=n}(document),document},deps:[]}]),VA=[{provide:sc,useValue:"root"},{provide:Hr,useFactory:function FA(){return new Hr},deps:[]},{provide:Wo,useClass:MA,multi:!0,deps:[pe,fe,To]},{provide:Wo,useClass:xA,multi:!0,deps:[pe]},{provide:Qo,useClass:Qo,deps:[Go,us,is]},{provide:Xr,useExisting:Qo},{provide:Ay,useExisting:us},{provide:us,useClass:us,deps:[pe]},{provide:Jc,useClass:Jc,deps:[fe]},{provide:Go,useClass:Go,deps:[Wo,fe]},{provide:class fA{},useClass:DA,deps:[]}];let Ly=(()=>{class n{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(t){return{ngModule:n,providers:[{provide:is,useValue:t.appId},{provide:Ty,useExisting:is},vA]}}}return n.\u0275fac=function(t){return new(t||n)(w(n,12))},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({providers:VA,imports:[dA,uT]}),n})();function Yn(...n){let e=n[n.length-1];return F(e)?(n.pop(),wa(n,e)):Ca(n)}"undefined"!=typeof window&&window;class eP extends O{constructor(e,t){super()}schedule(e,t=0){return this}}class Yo extends eP{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let zy=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,r){return new this.SchedulerAction(this,t).schedule(r,i)}}return n.now=()=>Date.now(),n})();class on extends zy{constructor(e,t=zy.now){super(e,()=>on.delegate&&on.delegate!==this?on.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return on.delegate&&on.delegate!==this?on.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}new class nP extends on{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class tP extends Yo{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let rP=1;const sP=Promise.resolve(),Ko={};function Uy(n){return n in Ko&&(delete Ko[n],!0)}const Wy={setImmediate(n){const e=rP++;return Ko[e]=!0,sP.then(()=>Uy(e)&&n()),e},clearImmediate(n){Uy(n)}};new class aP extends on{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class oP extends Yo{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=Wy.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(Wy.clearImmediate(t),e.scheduled=void 0)}});new on(Yo);class pP{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new gP(e,this.predicate,this.thisArg))}}class gP extends A{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}let Au;try{Au="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Au=!1}let ds=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?vy(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Au)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(t){return new(t||n)(w(To))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Xy(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const xP=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),OP=new X(n=>n.complete());function e_(n){return n?function NP(n){return new X(e=>n.schedule(()=>e.complete()))}(n):OP}function xu(n){return e=>0===n?e_():e.lift(new FP(n))}class FP{constructor(e){if(this.total=e,this.total<0)throw new xP}call(e,t){return t.subscribe(new kP(e,this.total))}}class kP extends A{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}function Xo(n){return e=>e.lift(new LP(n))}class LP{constructor(e){this.notifier=e}call(e,t){const i=new VP(e),r=_s(this.notifier,new ms(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class VP extends ys{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let Nu=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Xy()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(t),Xy()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(t){return new(t||n)(w(pe),w(ds))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const rR=new class iR extends on{}(class nR extends Yo{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}});function oR({error:n,subscriber:e}){e.error(n)}class zt{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return Yn(this.value);case"E":return function sR(n,e){return new X(e?t=>e.schedule(oR,0,{error:n,subscriber:t}):t=>t.error(n))}(this.error);case"C":return e_()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new zt("N",e):zt.undefinedValueNotification}static createError(e){return new zt("E",void 0,e)}static createComplete(){return zt.completeNotification}}zt.completeNotification=new zt("C"),zt.undefinedValueNotification=new zt("N",void 0);class Jo extends A{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Jo.dispatch,this.delay,new lR(e,this.destination)))}_next(e){this.scheduleMessage(zt.createNext(e))}_error(e){this.scheduleMessage(zt.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(zt.createComplete()),this.unsubscribe()}}class lR{constructor(e,t){this.notification=e,this.destination=t}}class cR extends v{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new uR(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new Fe;if(this.isStopped||this.hasError?o=O.EMPTY:(this.observers.push(e),o=new cn(this,e)),r&&e.add(e=new Jo(e,r)),t)for(let a=0;a<s&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||rR).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(e-r[o].time<i);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&r.splice(0,o),r}}class uR{constructor(e,t){this.time=e,this.value=t}}function Fu(n,e){return"function"==typeof e?t=>t.pipe(Fu((i,r)=>Ea(n(i,r)).pipe(R((s,o)=>e(i,s,r,o))))):t=>t.lift(new dR(n))}class dR{constructor(e){this.project=e}call(e,t){return t.subscribe(new hR(e,this.project))}}class hR extends ys{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new ms(this),r=this.destination;r.add(i),this.innerSubscription=_s(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const ea={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return ea.schedule(n,0);if(void 0===window.requestAnimationFrame)return ea.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let ku;function wR(n,e,t){let i=t;return function pR(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function mR(n,e){if(!ku){const t=Element.prototype;ku=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&ku.call(n,e)}(n,r)||(i=s,0))),i}class bR{constructor(e,t){this.componentFactory=t.get(fi).resolveComponentFactory(e)}create(e){return new CR(this.componentFactory,e)}}class CR{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new cR(1),this.events=this.eventEmitters.pipe(Fu(i=>vs(...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(fe),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=ea.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function yR(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=dt.create({providers:[],parent:this.injector}),i=function DR(n,e){const t=n.childNodes,i=e.map(()=>[]);let r=-1;e.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],l=wR(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(qm),this.implementsOnChanges=function gR(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Mo).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe(R(o=>({name:r,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=ea.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const r=this.unchangedInputs.has(e),s=r?void 0:this.getInputValue(e);this.inputChanges[e]=new Id(s,t,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class SR extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class c_{}const xn="*";function u_(n,e=null){return{type:2,steps:n,options:e}}function d_(n){return{type:6,styles:n,offset:null}}function h_(n){Promise.resolve(null).then(n)}class fs{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){h_(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class f_{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,r=0;const s=this.players.length;0==s?h_(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const J=!1;function p_(n){return new I(3e3,J)}function ax(){return"undefined"!=typeof window&&void 0!==window.document}function Vu(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Kn(n){switch(n.length){case 0:return new fs;case 1:return n[0];default:return new f_(n)}}function g_(n,e,t,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(p=>{let g=p,y=u[p];if("offset"!==p)switch(g=e.normalizePropertyName(g,o),y){case"!":y=r[p];break;case xn:y=s[p];break;default:y=e.normalizeStyleValue(p,g,y,o)}f[g]=y}),h||a.push(f),c=f,l=d}),o.length)throw function KR(n){return new I(3502,J)}();return a}function Bu(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&ju(t,"start",n)));break;case"done":n.onDone(()=>i(t&&ju(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&ju(t,"destroy",n)))}}function ju(n,e,t){const i=t.totalTime,s=Hu(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==i?n.totalTime:i,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function Hu(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Tt(n,e,t){let i;return n instanceof Map?(i=n.get(e),i||n.set(e,i=t)):(i=n[e],i||(i=n[e]=t)),i}function m_(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let $u=(n,e)=>!1,y_=(n,e,t)=>[],__=null;function zu(n){const e=n.parentNode||n.host;return e===__?null:e}(Vu()||"undefined"!=typeof Element)&&(ax()?(__=(()=>document.documentElement)(),$u=(n,e)=>{for(;e;){if(e===n)return!0;e=zu(e)}return!1}):$u=(n,e)=>n.contains(e),y_=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let vi=null,v_=!1;function D_(n){vi||(vi=function cx(){return"undefined"!=typeof document?document.body:null}()||{},v_=!!vi.style&&"WebkitAppearance"in vi.style);let e=!0;return vi.style&&!function lx(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in vi.style,!e&&v_&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in vi.style)),e}const w_=$u,E_=y_;let b_=(()=>{class n{validateStyleProperty(t){return D_(t)}matchesElement(t,i){return!1}containsElement(t,i){return w_(t,i)}getParentElement(t){return zu(t)}query(t,i,r){return E_(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new fs(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),Uu=(()=>{class n{}return n.NOOP=new b_,n})();const Wu="ng-enter",na="ng-leave",ia="ng-trigger",ra=".ng-trigger",S_="ng-animating",Gu=".ng-animating";function Di(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:qu(parseFloat(e[1]),e[2])}function qu(n,e){return"s"===e?1e3*n:n}function sa(n,e,t){return n.hasOwnProperty("duration")?n:function hx(n,e,t){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(p_()),{duration:0,delay:0,easing:""};r=qu(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=qu(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function MR(){return new I(3100,J)}()),a=!0),s<0&&(e.push(function AR(){return new I(3101,J)}()),a=!0),a&&e.splice(l,0,p_())}return{duration:r,delay:s,easing:o}}(n,e,t)}function fr(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function Zn(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else fr(n,t);return t}function T_(n,e,t){return t?e+":"+t+";":""}function M_(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=T_(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=T_(0,gx(t),n.style[t]));n.setAttribute("style",e)}function wn(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=Yu(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),Vu()&&M_(n))}function wi(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=Yu(t);n.style[i]=""}),Vu()&&M_(n))}function ps(n){return Array.isArray(n)?1==n.length?n[0]:u_(n):n}const Qu=new RegExp("{{\\s*(.+?)\\s*}}","g");function A_(n){let e=[];if("string"==typeof n){let t;for(;t=Qu.exec(n);)e.push(t[1]);Qu.lastIndex=0}return e}function oa(n,e,t){const i=n.toString(),r=i.replace(Qu,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function RR(n){return new I(3003,J)}()),a=""),a.toString()});return r==i?n:r}function aa(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const px=/-+([a-z0-9])/g;function Yu(n){return n.replace(px,(...e)=>e[1].toUpperCase())}function gx(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Mt(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function xR(n){return new I(3004,J)}()}}function P_(n,e){return window.getComputedStyle(n)[e]}function wx(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function Ex(n,e,t){if(":"==n[0]){const l=function bx(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(function GR(n){return new I(3016,J)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function WR(n){return new I(3015,J)}()),e;const r=i[1],s=i[2],o=i[3];e.push(R_(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(R_(o,r))}(i,t,e)):t.push(n),t}const da=new Set(["true","1"]),ha=new Set(["false","0"]);function R_(n,e){const t=da.has(n)||ha.has(n),i=da.has(e)||ha.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?da.has(n):ha.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?da.has(e):ha.has(e)),o&&a}}const Cx=new RegExp("s*:selfs*,?","g");function Ku(n,e,t,i){return new Sx(n).build(e,t,i)}class Sx{constructor(e){this._driver=e}build(e,t,i){const r=new Mx(t);this._resetContextStyleTimingState(r);const s=Mt(this,ps(e),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function NR(){return new I(3006,J)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(function FR(){return new I(3007,J)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(fa(a)){const l=a;Object.keys(l).forEach(c=>{A_(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(aa(s.values()),t.errors.push(function kR(n,e){return new I(3008,J)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=Mt(this,ps(e.animation),t);return{type:1,matchers:wx(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Ei(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>Mt(this,i,t)),options:Ei(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=Mt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:Ei(e.options)}}visitAnimate(e,t){const i=function Px(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Zu(sa(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Zu(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=sa(t,e);return Zu(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:d_({});if(5==s.type)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=d_(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==xn?i.push(o):t.errors.push(function LR(n){return new I(3002,J)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(fa(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void t.unsupportedCSSPropertiesFound.add(a);const l=t.collectedStyles[t.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(t.errors.push(function VR(n,e,t,i,r){return new I(3010,J)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function fx(n,e,t){const i=e.params||{},r=A_(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function PR(n){return new I(3001,J)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function BR(){return new I(3011,J)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(D=>{const m=this._makeStyleAst(D,t);let b=null!=m.offset?m.offset:function Ax(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(fa(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(fa(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(m.styles),M=0;return null!=b&&(s++,M=m.offset=b),l=l||M<0||M>1,a=a||M<c,c=M,o.push(M),m});l&&t.errors.push(function jR(){return new I(3012,J)}()),a&&t.errors.push(function HR(){return new I(3200,J)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function $R(){return new I(3202,J)}()):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,g=t.currentAnimateTimings,y=g.duration;return u.forEach((D,m)=>{const b=h>0?m==f?1:h*m:o[m],M=b*y;t.currentTime=p+g.delay+M,g.duration=M,this._validateStyleAst(D,t),D.offset=b,i.styles.push(D)}),i}visitReference(e,t){return{type:8,animation:Mt(this,ps(e.animation),t),options:Ei(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Ei(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Ei(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function Ix(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(Cx,"")),n=n.replace(/@\*/g,ra).replace(/@\w+/g,t=>ra+"-"+t.substr(1)).replace(/:animating/g,Gu),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,Tt(t.collectedStyles,t.currentQuerySelector,{});const a=Mt(this,ps(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Ei(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function zR(){return new I(3013,J)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:sa(e.timings,t.errors,!0);return{type:12,animation:Mt(this,ps(e.animation),t),timings:i,options:null}}}class Mx{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function fa(n){return!Array.isArray(n)&&"object"==typeof n}function Ei(n){return n?(n=fr(n)).params&&(n.params=function Tx(n){return n?fr(n):null}(n.params)):n={},n}function Zu(n,e,t){return{duration:n,delay:e,easing:t}}function Xu(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class pa{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const Ox=new RegExp(":enter","g"),Fx=new RegExp(":leave","g");function Ju(n,e,t,i,r,s={},o={},a,l,c=[]){return(new kx).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class kx{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new pa;const d=new ed(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Mt(this,i,d);const h=d.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let p=h.length-1;p>=0;p--){const g=h[p];if(g.element===t){f=g;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[Xu(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime;const o=null!=i.duration?Di(i.duration):null,a=null!=i.delay?Di(i.delay):null;return 0!==o&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Mt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ga);const o=Di(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Mt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?Di(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Mt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return sa(t.params?oa(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?Di(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ga);let o=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),Mt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Mt(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const ga={};class ed{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ga,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ma(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=Di(i.duration)),null!=i.delay&&(r.delay=Di(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=oa(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){const r=t||this.element,s=new ed(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=ga,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},s=new Lx(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(Ox,"."+this._enterClassName)).replace(Fx,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function UR(n){return new I(3014,J)}()),a}}class ma{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new ma(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||xn,this._currentKeyframe[t]=xn}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function Vx(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=xn})):Zn(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=oa(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:xn),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(i=>{this._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const i=this._styleSummary[t],r=e._styleSummary[t];(!i||r.time>i.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Zn(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==xn&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?aa(e.values()):[],o=t.size?aa(t.values()):[];if(i){const a=r[0],l=fr(a);a.offset=0,l.offset=1,r=[a,l]}return Xu(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class Lx extends ma{constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=i+t,a=t/o,l=Zn(e[0],!1);l.offset=0,s.push(l);const c=Zn(e[0],!1);c.offset=N_(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=Zn(e[d],!1);h.offset=N_((t+h.offset*i)/o),s.push(h)}i=o,t=0,r="",e=s}return Xu(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function N_(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class td{}class Bx extends td{normalizePropertyName(e,t){return Yu(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(jx[t]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function OR(n,e){return new I(3005,J)}())}return o+s}}const jx=(()=>function Hx(n){const e={};return n.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 F_(n,e,t,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const nd={};class k_{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function $x(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(t,i):{};return s?s.buildStyles(t,i):o}build(e,t,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||nd,p=this.buildStyles(i,a&&a.params||nd,d),g=l&&l.params||nd,y=this.buildStyles(r,g,d),D=new Set,m=new Map,b=new Map,M="void"===r,q={params:Object.assign(Object.assign({},h),g)},ge=u?[]:Ju(e,t,this.ast.animation,s,o,p,y,q,c,d);let De=0;if(ge.forEach(Pt=>{De=Math.max(Pt.duration+Pt.delay,De)}),d.length)return F_(t,this._triggerName,i,r,M,p,y,[],[],m,b,De,d);ge.forEach(Pt=>{const Rt=Pt.element,gr=Tt(m,Rt,{});Pt.preStyleProps.forEach(an=>gr[an]=!0);const On=Tt(b,Rt,{});Pt.postStyleProps.forEach(an=>On[an]=!0),Rt!==t&&D.add(Rt)});const At=aa(D.values());return F_(t,this._triggerName,i,r,M,p,y,ge,At,m,b,De)}}class zx{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=fr(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=oa(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class Wx{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states={},t.states.forEach(r=>{this.states[r.name]=new zx(r.style,r.options&&r.options.params||{},i)}),L_(this.states,"true","1"),L_(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new k_(e,r,this.states))}),this.fallbackTransition=function Gx(n,e,t){return new k_(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function L_(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const qx=new pa;class Qx{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(e,t){const i=[],s=Ku(this._driver,t,i,[]);if(i.length)throw function ZR(n){return new I(3503,J)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=g_(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],s=this._animations[e];let o;const a=new Map;if(s?(o=Ju(this._driver,t,s,Wu,na,{},{},i,qx,r),o.forEach(u=>{const d=Tt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function XR(){return new I(3300,J)}()),o=[]),r.length)throw function JR(n){return new I(3504,J)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,xn)})});const c=Kn(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[e]=c,c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw function ex(n){return new I(3301,J)}();return t}listen(e,t,i,r){const s=Hu(t,"","","");return Bu(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const V_="ng-animate-queued",id="ng-animate-disabled",Jx=[],B_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},eO={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ut="__ng_removed";class rd{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function rO(n){return null!=n?n:null}(i?e.value:e),i){const s=fr(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const gs="void",sd=new rd(gs);class tO{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Wt(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function tx(n,e){return new I(3302,J)}();if(null==i||0==i.length)throw function nx(n){return new I(3303,J)}();if(!function sO(n){return"start"==n||"done"==n}(i))throw function ix(n,e){return new I(3400,J)}();const s=Tt(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=Tt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Wt(e,ia),Wt(e,ia+"-"+t),a[t]=sd),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw function rx(n){return new I(3401,J)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new od(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Wt(e,ia),Wt(e,ia+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new rd(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=sd),c.value!==gs&&l.value===c.value){if(!function lO(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){const s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,c.params)){const g=[],y=s.matchStyles(l.value,l.params,g),D=s.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{wi(e,y),wn(e,D)})}return}const h=Tt(this._engine.playersByElement,e,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let f=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(Wt(e,V_),o.onStart(()=>{pr(e,V_)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);const y=this._engine.playersByElement.get(e);if(y){let D=y.indexOf(o);D>=0&&y.splice(D,1)}}),this.players.push(o),h.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,i)=>{delete t[e]}),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,ra,!0);i.forEach(r=>{if(r[Ut])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(e,l,gs,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&Kn(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const r=new Set;t.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||sd,u=new rd(gs),d=new od(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const s=e[Ut];(!s||s===B_)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Wt(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Hu(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Bu(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class nO{constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new tO(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,t)){i.splice(a+1,0,e),o=!0;break}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&t.add(a)}}}return t}trigger(e,t,i,r){if(ya(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!ya(t))return;const s=t[Ut];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Wt(e,id)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),pr(e,id))}removeNode(e,t,i,r){if(ya(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[Ut]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return ya(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,ra,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Gu,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Kn(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[Ut];if(i&&i.setForRemoval){if(e[Ut]=B_,i.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains(id))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Wt(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{t=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?Kn(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function sx(n){return new I(3402,J)}()}_flushAnimations(e,t){const i=new pa,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(T=>{u.add(T);const P=this.driver.query(T,".ng-animate-queued",!0);for(let k=0;k<P.length;k++)u.add(P[k])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=$_(h,this.collectedEnterElements),p=new Map;let g=0;f.forEach((T,P)=>{const k=Wu+g++;p.set(P,k),T.forEach(ne=>Wt(ne,k))});const y=[],D=new Set,m=new Set;for(let T=0;T<this.collectedLeaveElements.length;T++){const P=this.collectedLeaveElements[T],k=P[Ut];k&&k.setForRemoval&&(y.push(P),D.add(P),k.hasAnimation?this.driver.query(P,".ng-star-inserted",!0).forEach(ne=>D.add(ne)):m.add(P))}const b=new Map,M=$_(h,Array.from(D));M.forEach((T,P)=>{const k=na+g++;b.set(P,k),T.forEach(ne=>Wt(ne,k))}),e.push(()=>{f.forEach((T,P)=>{const k=p.get(P);T.forEach(ne=>pr(ne,k))}),M.forEach((T,P)=>{const k=b.get(P);T.forEach(ne=>pr(ne,k))}),y.forEach(T=>{this.processLeaveNode(T)})});const q=[],ge=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(k=>{const ne=k.player,Ue=k.element;if(q.push(ne),this.collectedEnterElements.length){const lt=Ue[Ut];if(lt&<.setForMove){if(lt.previousTriggersValues&<.previousTriggersValues.has(k.triggerName)){const bi=lt.previousTriggersValues.get(k.triggerName),ni=this.statesByElement.get(k.element);ni&&ni[k.triggerName]&&(ni[k.triggerName].value=bi)}return void ne.destroy()}}const En=!d||!this.driver.containsElement(d,Ue),xt=b.get(Ue),ti=p.get(Ue),we=this._buildInstruction(k,i,ti,xt,En);if(we.errors&&we.errors.length)return void ge.push(we);if(En)return ne.onStart(()=>wi(Ue,we.fromStyles)),ne.onDestroy(()=>wn(Ue,we.toStyles)),void r.push(ne);if(k.isFallbackTransition)return ne.onStart(()=>wi(Ue,we.fromStyles)),ne.onDestroy(()=>wn(Ue,we.toStyles)),void r.push(ne);const uv=[];we.timelines.forEach(lt=>{lt.stretchStartingKeyframe=!0,this.disabledNodes.has(lt.element)||uv.push(lt)}),we.timelines=uv,i.append(Ue,we.timelines),o.push({instruction:we,player:ne,element:Ue}),we.queriedElements.forEach(lt=>Tt(a,lt,[]).push(ne)),we.preStyleProps.forEach((lt,bi)=>{const ni=Object.keys(lt);if(ni.length){let Ci=l.get(bi);Ci||l.set(bi,Ci=new Set),ni.forEach(ud=>Ci.add(ud))}}),we.postStyleProps.forEach((lt,bi)=>{const ni=Object.keys(lt);let Ci=c.get(bi);Ci||c.set(bi,Ci=new Set),ni.forEach(ud=>Ci.add(ud))})});if(ge.length){const T=[];ge.forEach(P=>{T.push(function ox(n,e){return new I(3505,J)}())}),q.forEach(P=>P.destroy()),this.reportError(T)}const De=new Map,At=new Map;o.forEach(T=>{const P=T.element;i.has(P)&&(At.set(P,P),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,De))}),r.forEach(T=>{const P=T.element;this._getPreviousPlayers(P,!1,T.namespaceId,T.triggerName,null).forEach(ne=>{Tt(De,P,[]).push(ne),ne.destroy()})});const Pt=y.filter(T=>U_(T,l,c)),Rt=new Map;H_(Rt,this.driver,m,c,xn).forEach(T=>{U_(T,l,c)&&Pt.push(T)});const On=new Map;f.forEach((T,P)=>{H_(On,this.driver,new Set(T),l,"!")}),Pt.forEach(T=>{const P=Rt.get(T),k=On.get(T);Rt.set(T,Object.assign(Object.assign({},P),k))});const an=[],mr=[],yr={};o.forEach(T=>{const{element:P,player:k,instruction:ne}=T;if(i.has(P)){if(u.has(P))return k.onDestroy(()=>wn(P,ne.toStyles)),k.disabled=!0,k.overrideTotalTime(ne.totalTime),void r.push(k);let Ue=yr;if(At.size>1){let xt=P;const ti=[];for(;xt=xt.parentNode;){const we=At.get(xt);if(we){Ue=we;break}ti.push(xt)}ti.forEach(we=>At.set(we,Ue))}const En=this._buildAnimation(k.namespaceId,ne,De,s,On,Rt);if(k.setRealPlayer(En),Ue===yr)an.push(k);else{const xt=this.playersByElement.get(Ue);xt&&xt.length&&(k.parentPlayer=Kn(xt)),r.push(k)}}else wi(P,ne.fromStyles),k.onDestroy(()=>wn(P,ne.toStyles)),mr.push(k),u.has(P)&&r.push(k)}),mr.forEach(T=>{const P=s.get(T.element);if(P&&P.length){const k=Kn(P);T.setRealPlayer(k)}}),r.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T<y.length;T++){const P=y[T],k=P[Ut];if(pr(P,na),k&&k.hasAnimation)continue;let ne=[];if(a.size){let En=a.get(P);En&&En.length&&ne.push(...En);let xt=this.driver.query(P,Gu,!0);for(let ti=0;ti<xt.length;ti++){let we=a.get(xt[ti]);we&&we.length&&ne.push(...we)}}const Ue=ne.filter(En=>!En.destroyed);Ue.length?oO(this,P,Ue):this.processLeaveNode(P)}return y.length=0,an.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();const P=this.players.indexOf(T);this.players.splice(P,1)}),T.play()}),an}elementContainsData(e,t){let i=!1;const r=t[Ut];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==gs;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==s,d=Tt(i,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}wi(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{const g=p.element;u.add(g);const y=g[Ut];if(y&&y.removedBeforeQueried)return new fs(p.duration,p.delay);const D=g!==l,m=function aO(n){const e=[];return z_(n,e),e}((i.get(g)||Jx).map(De=>De.getRealPlayer())).filter(De=>!!De.element&&De.element===g),b=s.get(g),M=o.get(g),q=g_(0,this._normalizer,0,p.keyframes,b,M),ge=this._buildPlayer(p,q,m);if(p.subTimeline&&r&&d.add(g),D){const De=new od(e,a,g);De.setRealPlayer(ge),c.push(De)}return ge});c.forEach(p=>{Tt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function iO(n,e,t){let i;if(n instanceof Map){if(i=n.get(e),i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}}else if(i=n[e],i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&delete n[e]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Wt(p,S_));const f=Kn(h);return f.onDestroy(()=>{u.forEach(p=>pr(p,S_)),wn(l,t.toStyles)}),d.forEach(p=>{Tt(r,p,[]).push(f)}),f}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new fs(e.duration,e.delay)}}class od{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new fs,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(i=>Bu(e,t,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Tt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function ya(n){return n&&1===n.nodeType}function j_(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function H_(n,e,t,i,r){const s=[];t.forEach(l=>s.push(j_(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=e.computeStyle(c,d,r);(!h||0==h.length)&&(c[Ut]=eO,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>j_(l,s[a++])),o}function $_(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function Wt(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function pr(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function oO(n,e,t){Kn(t).onDone(()=>n.processLeaveNode(e))}function z_(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof f_?z_(i.players,e):e.push(i)}}function U_(n,e,t){const i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}class _a{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new nO(e,t,i),this._timelineEngine=new Qx(e,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){const o=e+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=Ku(this._driver,s,l,[]);if(l.length)throw function YR(n,e){return new I(3404,J)}();a=function Ux(n,e,t){return new Wx(n,e,t)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i,r){this._transitionEngine.removeNode(e,t,r||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if("@"==i.charAt(0)){const[s,o]=m_(i);this._timelineEngine.command(s,t,o,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if("@"==i.charAt(0)){const[o,a]=m_(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let uO=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&wn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(wn(this._element,this._initialStyles),this._endStyles&&(wn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(wi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wi(this._element,this._endStyles),this._endStyles=null),wn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ad(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];dO(r)&&(e=e||{},e[r]=n[r])}return e}function dO(n){return"display"===n||"position"===n}class W_{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,i){return e.animate(t,i)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(i=>{"offset"!=i&&(e[i]=this._finished?t[i]:P_(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class hO{validateStyleProperty(e){return D_(e)}matchesElement(e,t){return!1}containsElement(e,t){return w_(e,t)}getParentElement(e){return zu(e)}query(e,t,i){return E_(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(h=>h instanceof W_);(function mx(n,e){return 0===n||0===e})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),t=function yx(n,e,t){const i=Object.keys(t);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=t[a]}),o.length)for(var r=1;r<e.length;r++){let a=e[r];o.forEach(function(l){a[l]=P_(n,l)})}}return e}(e,t=t.map(h=>Zn(h,!1)),c);const d=function cO(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=ad(e[0]),e.length>1&&(i=ad(e[e.length-1]))):e&&(t=ad(e)),t||i?new uO(n,t,i):null}(e,t);return new W_(e,t,l,d)}}let fO=(()=>{class n extends c_{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Qt.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?u_(t):t;return G_(this._renderer,null,i,"register",[r]),new pO(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(w(Xr),w(pe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class pO extends class TR{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new gO(this._id,e,t||{},this._renderer)}}class gO{constructor(e,t,i,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return G_(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function G_(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const q_="@.disabled";let mO=(()=>{class n{constructor(t,i,r){this.delegate=t,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(t,i){const s=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new Q_("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,t,u.name,u)};return i.data.animation.forEach(l),new yO(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&t<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(t){return new(t||n)(w(Xr),w(_a),w(fe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class Q_{constructor(e,t,i){this.namespaceId=e,this.delegate=t,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==q_?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class yO extends Q_{constructor(e,t,i,r){super(t,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==q_?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.substr(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function _O(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function vO(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}let DO=(()=>{class n extends _a{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(w(pe),w(Uu),w(td))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const Y_=new K("AnimationModuleType"),K_=[{provide:c_,useClass:fO},{provide:td,useFactory:function wO(){return new Bx}},{provide:_a,useClass:DO},{provide:Xr,useFactory:function EO(n,e,t){return new mO(n,e,t)},deps:[Qo,_a,fe]}],Z_=[{provide:Uu,useFactory:()=>new hO},{provide:Y_,useValue:"BrowserAnimations"},...K_],bO=[{provide:Uu,useClass:b_},{provide:Y_,useValue:"NoopAnimations"},...K_];let CO=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?bO:Z_}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({providers:Z_,imports:[Ly]}),n})();class Xn extends v{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Fe;return this._value}next(e){super.next(this._value=e)}}function X_(n,e,t){return t?X_(n,e).pipe(R(i=>Me(i)?t(...i):t(i))):new X(i=>{const r=(...o)=>i.next(1===o.length?o[0]:o);let s;try{s=n(r)}catch(o){return void i.error(o)}if(We(e))return()=>e(r,s)})}class J_ extends A{notifyNext(e,t,i,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class SO extends A{constructor(e,t,i){super(),this.parent=e,this.outerValue=t,this.outerIndex=i,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function ev(n,e,t,i,r=new SO(n,t,i)){if(!r.closed)return e instanceof X?e.subscribe(r):Da(e)(r)}const tv={};function Jn(...n){let e,t;return F(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Me(n[0])&&(n=n[0]),Ca(n,t).lift(new nv(e))}class nv{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new IO(e,this.resultSelector))}}class IO extends J_{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(tv),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let i=0;i<t;i++)this.add(ev(this,e[i],void 0,i))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,i){const r=this.values,o=this.toRespond?r[i]===tv?--this.toRespond:this.toRespond:0;r[i]=t,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}function iv(...n){return function TO(){return fd(1)}()(Yn(...n))}function rv(...n){const e=n[n.length-1];return F(e)?(n.pop(),t=>iv(n,t,e)):t=>iv(n,t)}function ei(){}class AO{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new PO(e,this.nextOrObserver,this.error,this.complete))}}class PO extends A{constructor(e,t,i,r){super(e),this._tapNext=ei,this._tapError=ei,this._tapComplete=ei,this._tapError=i||ei,this._tapComplete=r||ei,We(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||ei,this._tapError=t.error||ei,this._tapComplete=t.complete||ei)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function ld(...n){return e=>{let t;return"function"==typeof n[n.length-1]&&(t=n.pop()),e.lift(new xO(n,t))}}class xO{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new OO(e,this.observables,this.project))}}class OO extends J_{constructor(e,t,i){super(e),this.observables=t,this.project=i,this.toRespond=[];const r=t.length;this.values=new Array(r);for(let s=0;s<r;s++)this.toRespond.push(s);for(let s=0;s<r;s++)this.add(ev(this,t[s],void 0,s))}notifyNext(e,t,i){this.values[i]=t;const r=this.toRespond;if(r.length>0){const s=r.indexOf(i);-1!==s&&r.splice(s,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}class FO{constructor(e,t,i=!1){this.accumulator=e,this.seed=t,this.hasSeed=i}call(e,t){return t.subscribe(new kO(e,this.accumulator,this.seed,this.hasSeed))}}class kO extends A{constructor(e,t,i,r){super(e),this.accumulator=t,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let i;try{i=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}class VO{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new BO(e,this.compare,this.keySelector))}}class BO extends A{constructor(e,t,i){super(e),this.keySelector=i,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:r}=this;t=r?r(e):e}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}class $O{constructor(e){this.predicate=e}call(e,t){return t.subscribe(new zO(e,this.predicate))}}class zO extends A{constructor(e,t){super(e),this.predicate=t,this.skipping=!0,this.index=0}_next(e){const t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)}tryCallPredicate(e){try{const t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(t){this.destination.error(t)}}}const UO=["youtubeContainer"];let av=(()=>{class n{constructor(t,i){this._ngZone=t,this._youtubeContainer=new v,this._destroyed=new v,this._playerChanges=new Xn(void 0),this._videoId=new Xn(void 0),this._height=new Xn(390),this._width=new Xn(640),this._startSeconds=new Xn(void 0),this._endSeconds=new Xn(void 0),this._suggestedQuality=new Xn(void 0),this._playerVars=new Xn(void 0),this.ready=this._getLazyEmitter("onReady"),this.stateChange=this._getLazyEmitter("onStateChange"),this.error=this._getLazyEmitter("onError"),this.apiChange=this._getLazyEmitter("onApiChange"),this.playbackQualityChange=this._getLazyEmitter("onPlaybackQualityChange"),this.playbackRateChange=this._getLazyEmitter("onPlaybackRateChange"),this._isBrowser=vy(i)}get videoId(){return this._videoId.value}set videoId(t){this._videoId.next(t)}get height(){return this._height.value}set height(t){this._height.next(t||390)}get width(){return this._width.value}set width(t){this._width.next(t||640)}set startSeconds(t){this._startSeconds.next(t)}set endSeconds(t){this._endSeconds.next(t)}set suggestedQuality(t){this._suggestedQuality.next(t)}get playerVars(){return this._playerVars.value}set playerVars(t){this._playerVars.next(t)}ngOnInit(){if(!this._isBrowser)return;let t=Yn(!0);if(!window.YT){if(this.showBeforeIframeApiLoads)throw new Error("Namespace YT not found, cannot construct embedded youtube player. Please install the YouTube Player API Reference for iframe Embeds: https://developers.google.com/youtube/iframe_api_reference");const r=new v;this._existingApiReadyCallback=window.onYouTubeIframeAPIReady,window.onYouTubeIframeAPIReady=()=>{this._existingApiReadyCallback&&this._existingApiReadyCallback(),this._ngZone.run(()=>r.next(!0))},t=r.pipe(xu(1),rv(!1))}const i=function QO(n,e,t,i,r,s,o){const a=Jn([e,s]).pipe(ld(Jn([i,r])),R(([l,c])=>{const[u,d]=l,[h,f]=c;return u?{videoId:u,playerVars:d,width:h,height:f}:void 0}));return Jn([n,a,Yn(o)]).pipe(function YO(n){return Ge(function jO(...n){let e=null;return"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Me(n[0])&&(n=n[0].slice()),t=>t.lift.call(Ea([t,...n]),new nv(e))}(n),function HO(n){return e=>e.lift(new $O(n))}(([e,t])=>!t),R(([e])=>e))}(t),function NO(n,e){let t=!1;return arguments.length>=2&&(t=!0),function(r){return r.lift(new FO(n,e,t))}}(KO,void 0),function LO(n,e){return t=>t.lift(new VO(n,e))}())}(this._youtubeContainer,this._videoId,t,this._width,this._height,this._playerVars,this._ngZone).pipe(function MO(n,e,t){return function(r){return r.lift(new AO(n,e,t))}}(r=>{this._playerChanges.next(r)}),function qO(n){return Dv(e=>e?lv(e)?Yn(e):new X(t=>{let i=!1,r=!1;const s=o=>{r=!0,i||(o.target.removeEventListener("onReady",s),t.next(o.target))};return e.addEventListener("onReady",s),()=>{i=!0,r||n(e)}}).pipe(xu(1),rv(void 0)):Yn(void 0))}(r=>{lv(r)||r.destroy()}),Xo(this._destroyed),function RO(n){return n?Sa(()=>new v,n):Sa(new v)}());i.subscribe(r=>{this._player=r,r&&this._pendingPlayerState&&this._initializePlayer(r,this._pendingPlayerState),this._pendingPlayerState=void 0}),function WO(n,e,t){Jn([n,e,t]).subscribe(([i,r,s])=>i&&i.setSize(r,s))}(i,this._width,this._height),function GO(n,e){Jn([n,e]).subscribe(([t,i])=>t&&i&&t.setPlaybackQuality(i))}(i,this._suggestedQuality),function ZO(n,e,t,i,r,s){const o=Jn([t,i]).pipe(R(([u,d])=>({startSeconds:u,endSeconds:d}))),a=o.pipe(cd(n,u=>!!u&&!function XO(n){const e=n.getPlayerState();return-1!==e&&5!==e}(u))),l=e.pipe(cd(n,(u,d)=>!!u&&u.videoId!==d));vs(n.pipe(cd(Jn([e,o]),([u,d],h)=>!(!h||u==h.videoId&&!d.startSeconds&&!d.endSeconds))),l,a).pipe(ld(Jn([n,e,o,r])),R(([u,d])=>d),Xo(s)).subscribe(([u,d,h,f])=>{!d||!u||(u.videoId=d,u.cueVideoById(Object.assign({videoId:d,suggestedQuality:f},h)))})}(i,this._videoId,this._startSeconds,this._endSeconds,this._suggestedQuality,this._destroyed),i.connect()}createEventsBoundInZone(){return{}}ngAfterViewInit(){this._youtubeContainer.next(this.youtubeContainer.nativeElement)}ngOnDestroy(){this._player&&(this._player.destroy(),window.onYouTubeIframeAPIReady=this._existingApiReadyCallback),this._playerChanges.complete(),this._videoId.complete(),this._height.complete(),this._width.complete(),this._startSeconds.complete(),this._endSeconds.complete(),this._suggestedQuality.complete(),this._youtubeContainer.complete(),this._playerVars.complete(),this._destroyed.next(),this._destroyed.complete()}playVideo(){this._player?this._player.playVideo():this._getPendingState().playbackState=1}pauseVideo(){this._player?this._player.pauseVideo():this._getPendingState().playbackState=2}stopVideo(){this._player?this._player.stopVideo():this._getPendingState().playbackState=5}seekTo(t,i){this._player?this._player.seekTo(t,i):this._getPendingState().seek={seconds:t,allowSeekAhead:i}}mute(){this._player?this._player.mute():this._getPendingState().muted=!0}unMute(){this._player?this._player.unMute():this._getPendingState().muted=!1}isMuted(){return this._player?this._player.isMuted():!!this._pendingPlayerState&&!!this._pendingPlayerState.muted}setVolume(t){this._player?this._player.setVolume(t):this._getPendingState().volume=t}getVolume(){return this._player?this._player.getVolume():this._pendingPlayerState&&null!=this._pendingPlayerState.volume?this._pendingPlayerState.volume:0}setPlaybackRate(t){if(this._player)return this._player.setPlaybackRate(t);this._getPendingState().playbackRate=t}getPlaybackRate(){return this._player?this._player.getPlaybackRate():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackRate?this._pendingPlayerState.playbackRate:0}getAvailablePlaybackRates(){return this._player?this._player.getAvailablePlaybackRates():[]}getVideoLoadedFraction(){return this._player?this._player.getVideoLoadedFraction():0}getPlayerState(){if(this._isBrowser&&window.YT)return this._player?this._player.getPlayerState():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackState?this._pendingPlayerState.playbackState:-1}getCurrentTime(){return this._player?this._player.getCurrentTime():this._pendingPlayerState&&this._pendingPlayerState.seek?this._pendingPlayerState.seek.seconds:0}getPlaybackQuality(){return this._player?this._player.getPlaybackQuality():"default"}getAvailableQualityLevels(){return this._player?this._player.getAvailableQualityLevels():[]}getDuration(){return this._player?this._player.getDuration():0}getVideoUrl(){return this._player?this._player.getVideoUrl():""}getVideoEmbedCode(){return this._player?this._player.getVideoEmbedCode():""}_getPendingState(){return this._pendingPlayerState||(this._pendingPlayerState={}),this._pendingPlayerState}_initializePlayer(t,i){const{playbackState:r,playbackRate:s,volume:o,muted:a,seek:l}=i;switch(r){case 1:t.playVideo();break;case 2:t.pauseVideo();break;case 5:t.stopVideo()}null!=s&&t.setPlaybackRate(s),null!=o&&t.setVolume(o),null!=a&&(a?t.mute():t.unMute()),null!=l&&t.seekTo(l.seconds,l.allowSeekAhead)}_getLazyEmitter(t){return this._playerChanges.pipe(Fu(i=>i?X_(r=>{i.addEventListener(t,r)},r=>{try{i.removeEventListener&&i.removeEventListener(t,r)}catch(s){}}):Yn()),i=>new X(r=>i.subscribe({next:s=>this._ngZone.run(()=>r.next(s)),error:s=>r.error(s),complete:()=>r.complete()})),Xo(this._destroyed))}}return n.\u0275fac=function(t){return new(t||n)(G(fe),G(To))},n.\u0275cmp=bs({type:n,selectors:[["youtube-player"]],viewQuery:function(t,i){if(1&t&&hm(UO,5),2&t){let r;dm(r=function fm(){return function aI(n,e){return n[19].queries[e].queryList}(_(),Vd())}())&&(i.youtubeContainer=r.first)}},inputs:{videoId:"videoId",height:"height",width:"width",startSeconds:"startSeconds",endSeconds:"endSeconds",suggestedQuality:"suggestedQuality",playerVars:"playerVars",showBeforeIframeApiLoads:"showBeforeIframeApiLoads"},outputs:{ready:"ready",stateChange:"stateChange",error:"error",apiChange:"apiChange",playbackQualityChange:"playbackQualityChange",playbackRateChange:"playbackRateChange"},decls:2,vars:0,consts:[["youtubeContainer",""]],template:function(t,i){1&t&&po(0,"div",null,0)},encapsulation:2,changeDetection:0}),n})();function KO(n,[e,t,i]){if(n&&t&&n.playerVars!==t.playerVars)n.destroy();else{if(!t)return void(n&&n.destroy());if(n)return n}const r=i.runOutsideAngular(()=>new YT.Player(e,t));return r.videoId=t.videoId,r.playerVars=t.playerVars,r}function lv(n){return"getPlayerStatus"in n}function cd(n,e){return Ge(ld(n),function Yy(n,e){return function(i){return i.lift(new pP(n,e))}}(([t,i])=>e(i,t)),R(([t])=>t))}let JO=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({}),n})();var cv=hd(289);class eN{constructor(e,t,i,r,s){this.element=e,this.newWidth=t,this.newHeight=i,this.oldWidth=r,this.oldHeight=s}}let tN=(()=>{class n{constructor(t){this.element=t,this.resized=new jt}ngOnInit(){cv.ResizeSensor&&(this.resizeSensor=new cv.ResizeSensor(this.element.nativeElement,()=>this.onResized()))}ngOnDestroy(){this.resizeSensor&&this.resizeSensor.detach()}onResized(){const t=this.element.nativeElement.clientWidth,i=this.element.nativeElement.clientHeight;if(t===this.oldWidth&&i===this.oldHeight)return;const r=new eN(this.element,t,i,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.emit(r)}}return n.\u0275fac=function(t){return new(t||n)(G(vn))},n.\u0275dir=Dt({type:n,selectors:[["","resized",""]],outputs:{resized:"resized"}}),n})(),nN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({imports:[[]]}),n})(),iN=(()=>{class n{constructor(t){this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container",i=this._document.querySelectorAll(`.${t}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(t),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(t){return new(t||n)(w(pe))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),rN=(()=>{class n{constructor(){}ngOnInit(){if(!window.youtubeApiLoaded){const t=document.createElement("script");t.src="https://www.youtube.com/iframe_api",document.body.appendChild(t),window.youtubeApiLoaded=!0}}onResized(t){this.width=t.newWidth-20,this.height=t.newHeight-20}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=bs({type:n,selectors:[["drayman-youtube-player-internal"]],inputs:{videoId:"videoId",startSeconds:"startSeconds",endSeconds:"endSeconds",playerVars:"playerVars"},decls:3,vars:6,consts:[[2,"width","100%","height","100%","margin","10px",3,"resized"],["chartContainer",""],[3,"videoId","startSeconds","endSeconds","playerVars","width","height"]],template:function(t,i){1&t&&(ho(0,"div",0,1),wc("resized",function(s){return i.onResized(s)}),po(2,"youtube-player",2),fo()),2&t&&(function af(n){lf(ee(),_(),rt()+n,!1)}(2),mc("videoId",i.videoId)("startSeconds",i.startSeconds)("endSeconds",i.endSeconds)("playerVars",i.playerVars)("width",i.width)("height",i.height))},directives:[tN,av],styles:[""]}),n})(),sN=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=function IR(n,e){const t=function vR(n,e){return e.get(fi).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new bR(n,e.injector),r=function _R(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function fR(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends SR{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.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(r[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 s.observedAttributes=Object.keys(r),t.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(rN,{injector:this.injector});customElements.define("drayman-youtube-player",t)}}return n.\u0275fac=function(t){return new(t||n)(w(dt))},n.\u0275mod=Vn({type:n}),n.\u0275inj=Cn({providers:[{provide:Nu,useClass:iN}],imports:[[Ly,CO,JO,nN]]}),n})();(function QI(){Um=!1})(),LA().bootstrapModule(sN).catch(n=>console.error(n))})()})();
|