@drayman/elements 1.35.0 → 1.36.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/dist/grid/main.js +1 -1
- package/package.json +1 -1
package/dist/grid/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var KC={289:(dt,ln,Te)=>{dt.exports={ResizeSensor:Te(294),ElementQueries:Te(322)}},322:function(dt,ln,Te){"use strict";var wn,ze;"undefined"!=typeof window&&window,wn=[Te(294)],void 0!==(ze=function(Ot){var tt=function(){var R,$e={},Rt=[];function Ts(y){y||(y=document.documentElement);var D=window.getComputedStyle(y,null).fontSize;return parseFloat(D)||16}function Ie(y,D){var H=D.split(/\d/),A=H[H.length-1];switch(D=parseFloat(D),A){case"px":default:return D;case"em":return D*Ts(y);case"rem":return D*Ts();case"vw":return D*document.documentElement.clientWidth/100;case"vh":return D*document.documentElement.clientHeight/100;case"vmin":case"vmax":var se=document.documentElement.clientWidth/100,ke=document.documentElement.clientHeight/100;return D*(0,Math["vmin"===A?"min":"max"])(se,ke)}}function ee(y,D){this.element=y;var H,A,se,ke,at,Ce,nt,it,cn=["min-width","min-height","max-width","max-height"];this.call=function(){for(H in se=function k(y){if(!y.getBoundingClientRect)return{width:y.offsetWidth,height:y.offsetHeight};var D=y.getBoundingClientRect();return{width:Math.round(D.width),height:Math.round(D.height)}}(this.element),Ce={},$e[D])!$e[D].hasOwnProperty(H)||(ke=Ie(this.element,(A=$e[D][H]).value),at="width"===A.property?se.width:se.height,nt="","min"===A.mode&&at>=ke&&(nt+=A.value),"max"===A.mode&&at<=ke&&(nt+=A.value),Ce[it=A.mode+"-"+A.property]||(Ce[it]=""),nt&&-1===(" "+Ce[it]+" ").indexOf(" "+nt+" ")&&(Ce[it]+=" "+nt));for(var jt in cn)!cn.hasOwnProperty(jt)||(Ce[cn[jt]]?this.element.setAttribute(cn[jt],Ce[cn[jt]].substr(1)):this.element.removeAttribute(cn[jt]))}}function Bt(y,D){y.elementQueriesSetupInformation||(y.elementQueriesSetupInformation=new ee(y,D)),y.elementQueriesSensor||(y.elementQueriesSensor=new Ot(y,function(){y.elementQueriesSetupInformation.call()}))}function Vt(y,D,H,A){if(void 0===$e[y]){$e[y]=[];var se=Rt.length;R.innerHTML+="\n"+y+" {animation: 0.1s element-queries;}",R.innerHTML+="\n"+y+" > .resize-sensor {min-width: "+se+"px;}",Rt.push(y)}$e[y].push({mode:D,property:H,value:A})}function z(y){var D;if(document.querySelectorAll&&(D=y?y.querySelectorAll.bind(y):document.querySelectorAll.bind(document)),!D&&"undefined"!=typeof $$&&(D=$$),!D&&"undefined"!=typeof jQuery&&(D=jQuery),!D)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return D}function Ht(y){var D=[],H=[],A=[],se=0,ke=-1,at=[];for(var Ce in y.children)if(y.children.hasOwnProperty(Ce)&&y.children[Ce].tagName&&"img"===y.children[Ce].tagName.toLowerCase()){D.push(y.children[Ce]);var nt=y.children[Ce].getAttribute("min-width")||y.children[Ce].getAttribute("data-min-width"),it=y.children[Ce].getAttribute("data-src")||y.children[Ce].getAttribute("url");A.push(it),H.push({minWidth:nt}),nt?y.children[Ce].style.display="none":(se=D.length-1,y.children[Ce].style.display="block")}function jt(){var bt,me=!1;for(bt in D)!D.hasOwnProperty(bt)||H[bt].minWidth&&y.offsetWidth>H[bt].minWidth&&(me=bt);if(me||(me=se),ke!==me)if(at[me])D[ke].style.display="none",D[me].style.display="block",ke=me;else{var wi=new Image;wi.onload=function(){D[me].src=A[me],D[ke].style.display="none",D[me].style.display="block",at[me]=!0,ke=me},wi.src=A[me]}else D[me].src=A[me]}ke=se,y.resizeSensorInstance=new Ot(y,jt),jt()}var vt=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,ji=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function Ye(y){var D,H,A,se;for(y=y.replace(/'/g,'"');null!==(D=vt.exec(y));)for(H=D[1]+D[3],A=D[2];null!==(se=ji.exec(A));)Vt(H,se[1],se[2],se[3])}function Hn(y){var D="";if(y)if("string"==typeof y)(-1!==(y=y.toLowerCase()).indexOf("min-width")||-1!==y.indexOf("max-width"))&&Ye(y);else for(var H=0,A=y.length;H<A;H++)1===y[H].type?(-1!==(D=y[H].selectorText||y[H].cssText).indexOf("min-height")||-1!==D.indexOf("max-height")||-1!==D.indexOf("min-width")||-1!==D.indexOf("max-width"))&&Ye(D):4===y[H].type?Hn(y[H].cssRules||y[H].rules):3===y[H].type&&y[H].styleSheet.hasOwnProperty("cssRules")&&Hn(y[H].styleSheet.cssRules)}var bi=!1;this.init=function(){var y="animationstart";void 0!==document.documentElement.style.webkitAnimationName?y="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?y="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(y="oanimationstart"),document.body.addEventListener(y,function(A){var se=A.target,ke=se&&window.getComputedStyle(se,null),at=ke&&ke.getPropertyValue("animation-name");if(at&&-1!==at.indexOf("element-queries")){se.elementQueriesSensor=new Ot(se,function(){se.elementQueriesSetupInformation&&se.elementQueriesSetupInformation.call()});var it=window.getComputedStyle(se.resizeSensor,null).getPropertyValue("min-width");it=parseInt(it.replace("px","")),Bt(A.target,Rt[it])}}),bi||((R=document.createElement("style")).type="text/css",R.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",R.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(R),bi=!0);for(var D=0,H=document.styleSheets.length;D<H;D++)try{document.styleSheets[D].href&&0===document.styleSheets[D].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[D].href),Hn(document.styleSheets[D].cssRules||document.styleSheets[D].rules||document.styleSheets[D].cssText)}catch(A){}!function Z(){for(var D=z()("[data-responsive-image],[responsive-image]"),H=0,A=D.length;H<A;H++)Ht(D[H])}()},this.findElementQueriesElements=function(y){!function yt(y){var D=z(y);for(var H in $e)if($e.hasOwnProperty(H))for(var A=D(H,y),se=0,ke=A.length;se<ke;se++)Bt(A[se],H)}(y)},this.update=function(){this.init()}};tt.update=function(){tt.instance.update()},tt.detach=function(R){R.elementQueriesSetupInformation?(R.elementQueriesSensor.detach(),delete R.elementQueriesSetupInformation,delete R.elementQueriesSensor):R.resizeSensorInstance&&(R.resizeSensorInstance.detach(),delete R.resizeSensorInstance)},tt.init=function(){tt.instance||(tt.instance=new tt),tt.instance.init()};return tt.findElementQueriesElements=function(R){tt.instance.findElementQueriesElements(R)},tt.listen=function(){!function(R){if(document.addEventListener)document.addEventListener("DOMContentLoaded",R,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var $e=setInterval(function(){/loaded|complete/i.test(document.readyState)&&(R(),clearInterval($e))},10);else window.onload=R}(tt.init)},tt}.apply(ln,wn))&&(dt.exports=ze)},294:function(dt,ln,Te){"use strict";var wn;"undefined"!=typeof window&&window,void 0!==(wn=function(){if("undefined"==typeof window)return null;var ze="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Ot=ze.requestAnimationFrame||ze.mozRequestAnimationFrame||ze.webkitRequestAnimationFrame||function(k){return ze.setTimeout(k,20)},tt=ze.cancelAnimationFrame||ze.mozCancelAnimationFrame||ze.webkitCancelAnimationFrame||function(k){ze.clearTimeout(k)};function Vn(k,Ie){var ee=Object.prototype.toString.call(k),Bt="[object Array]"===ee||"[object NodeList]"===ee||"[object HTMLCollection]"===ee||"[object Object]"===ee||"undefined"!=typeof jQuery&&k instanceof jQuery||"undefined"!=typeof Elements&&k instanceof Elements,Vt=0,z=k.length;if(Bt)for(;Vt<z;Vt++)Ie(k[Vt]);else Ie(k)}function R(k){if(!k.getBoundingClientRect)return{width:k.offsetWidth,height:k.offsetHeight};var Ie=k.getBoundingClientRect();return{width:Math.round(Ie.width),height:Math.round(Ie.height)}}function $e(k,Ie){Object.keys(Ie).forEach(function(ee){k.style[ee]=Ie[ee]})}var Rt=function(k,Ie){var ee=0;function Bt(){var yt,Ht,z=[];this.add=function(Z){z.push(Z)},this.call=function(Z){for(yt=0,Ht=z.length;yt<Ht;yt++)z[yt].call(this,Z)},this.remove=function(Z){var vt=[];for(yt=0,Ht=z.length;yt<Ht;yt++)z[yt]!==Z&&vt.push(z[yt]);z=vt},this.length=function(){return z.length}}function Vt(z,yt){if(z){if(z.resizedAttached)return void z.resizedAttached.add(yt);z.resizedAttached=new Bt,z.resizedAttached.add(yt),z.resizeSensor=document.createElement("div"),z.resizeSensor.dir="ltr",z.resizeSensor.className="resize-sensor";var Ht={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},Z={position:"absolute",left:"0px",top:"0px",transition:"0s"};$e(z.resizeSensor,Ht);var vt=document.createElement("div");vt.className="resize-sensor-expand",$e(vt,Ht);var ji=document.createElement("div");$e(ji,Z),vt.appendChild(ji);var Ye=document.createElement("div");Ye.className="resize-sensor-shrink",$e(Ye,Ht);var Hn=document.createElement("div");$e(Hn,Z),$e(Hn,{width:"200%",height:"200%"}),Ye.appendChild(Hn),z.resizeSensor.appendChild(vt),z.resizeSensor.appendChild(Ye),z.appendChild(z.resizeSensor);var bi=window.getComputedStyle(z),y=bi?bi.getPropertyValue("position"):null;"absolute"!==y&&"relative"!==y&&"fixed"!==y&&"sticky"!==y&&(z.style.position="relative");var D=!1,H=0,A=R(z),se=0,ke=0,at=!0;ee=0;var nt=function(){if(at){if(0===z.offsetWidth&&0===z.offsetHeight)return void(ee||(ee=Ot(function(){ee=0,nt()})));at=!1}var me,bt;bt=z.offsetHeight,ji.style.width=(me=z.offsetWidth)+10+"px",ji.style.height=bt+10+"px",vt.scrollLeft=me+10,vt.scrollTop=bt+10,Ye.scrollLeft=me+10,Ye.scrollTop=bt+10};z.resizeSensor.resetSensor=nt;var it=function(){H=0,D&&(se=A.width,ke=A.height,z.resizedAttached&&z.resizedAttached.call(A))},cn=function(){A=R(z),(D=A.width!==se||A.height!==ke)&&!H&&(H=Ot(it)),nt()},jt=function(me,bt,wi){me.attachEvent?me.attachEvent("on"+bt,wi):me.addEventListener(bt,wi)};jt(vt,"scroll",cn),jt(Ye,"scroll",cn),ee=Ot(function(){ee=0,nt()})}}Vn(k,function(z){Vt(z,Ie)}),this.detach=function(z){ee||(tt(ee),ee=0),Rt.detach(k,z)},this.reset=function(){k.resizeSensor.resetSensor()}};if(Rt.reset=function(k){Vn(k,function(Ie){Ie.resizeSensor.resetSensor()})},Rt.detach=function(k,Ie){Vn(k,function(ee){!ee||ee.resizedAttached&&"function"==typeof Ie&&(ee.resizedAttached.remove(Ie),ee.resizedAttached.length())||ee.resizeSensor&&(ee.contains(ee.resizeSensor)&&ee.removeChild(ee.resizeSensor),delete ee.resizeSensor,delete ee.resizedAttached)})},"undefined"!=typeof MutationObserver){var Ts=new MutationObserver(function(k){for(var Ie in k)if(k.hasOwnProperty(Ie))for(var ee=k[Ie].addedNodes,Bt=0;Bt<ee.length;Bt++)ee[Bt].resizeSensor&&Rt.reset(ee[Bt])});document.addEventListener("DOMContentLoaded",function(k){Ts.observe(document.body,{childList:!0,subtree:!0})})}return Rt}.call(ln,Te,ln,dt))&&(dt.exports=wn)}},Nf={};function Lf(dt){var ln=Nf[dt];if(void 0!==ln)return ln.exports;var Te=Nf[dt]={exports:{}};return KC[dt].call(Te.exports,Te,Te.exports,Lf),Te.exports}(()=>{"use strict";function dt(n){return"function"==typeof n}let ln=!1;const Te={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 ln&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ln=n},get useDeprecatedSynchronousErrorHandling(){return ln}};function ht(n){setTimeout(()=>{throw n},0)}const wn={closed:!0,next(n){},error(n){if(Te.useDeprecatedSynchronousErrorHandling)throw n;ht(n)},complete(){}},ze=Array.isArray||(n=>n&&"number"==typeof n.length);function Ot(n){return null!==n&&"object"==typeof n}const Vn=(()=>{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 R{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 R)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(dt(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof Vn?$e(o.errors):[o]}}if(ze(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(Ot(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof Vn?e=e.concat($e(c.errors)):e.push(c)}}}if(e)throw new Vn(e)}add(e){let t=e;if(!e)return R.EMPTY;switch(typeof e){case"function":t=new R(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof R)){const s=t;t=new R,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 R){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 $e(n){return n.reduce((e,t)=>e.concat(t instanceof Vn?t.errors:t),[])}R.EMPTY=((n=new R).closed=!0,n);const Rt="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class k extends R{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=wn;break;case 1:if(!e){this.destination=wn;break}if("object"==typeof e){e instanceof k?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Ie(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Ie(this,e,t,i)}}[Rt](){return this}static create(e,t,i){const r=new k(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 Ie extends k{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;dt(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==wn&&(o=Object.create(t),dt(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;Te.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}=Te;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):ht(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;ht(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);Te.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(),Te.useDeprecatedSynchronousErrorHandling)throw i;ht(i)}}__tryOrSetError(e,t,i){if(!Te.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return Te.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(ht(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Vt="function"==typeof Symbol&&Symbol.observable||"@@observable";function z(n){return n}let Z=(()=>{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 Bt(n,e,t){if(n){if(n instanceof k)return n;if(n[Rt])return n[Rt]()}return n||e||t?new k(n,e,t):new k(wn)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||Te.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Te.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){Te.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function ee(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof k?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=vt(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)}[Vt](){return this}pipe(...t){return 0===t.length?this:function Ht(n){return 0===n.length?z:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=vt(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function vt(n){if(n||(n=Te.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Ye=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Hn extends R{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 bi extends k{constructor(e){super(e),this.destination=e}}let y=(()=>{class n extends Z{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Rt](){return new bi(this)}lift(t){const i=new D(this,this);return i.operator=t,i}next(t){if(this.closed)throw new Ye;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 Ye;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 Ye;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 Ye;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new Ye;return this.hasError?(t.error(this.thrownError),R.EMPTY):this.isStopped?(t.complete(),R.EMPTY):(this.observers.push(t),new Hn(this,t))}asObservable(){const t=new Z;return t.source=this,t}}return n.create=(e,t)=>new D(e,t),n})();class D extends y{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):R.EMPTY}}function H(n){return n&&"function"==typeof n.schedule}function A(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 se(n,e))}}class se{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new ke(e,this.project,this.thisArg))}}class ke extends k{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 at=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},it=function nt(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),bt=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function wi(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const uc=n=>{if(n&&"function"==typeof n[Vt])return(n=>e=>{const t=n[Vt]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(bt(n))return at(n);if(wi(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,ht),e))(n);if(n&&"function"==typeof n[it])return(n=>e=>{const t=n[it]();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 ${Ot(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function dc(n,e){return new Z(t=>{const i=new R;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 hc(n,e){return e?function tE(n,e){if(null!=n){if(function JC(n){return n&&"function"==typeof n[Vt]}(n))return function XC(n,e){return new Z(t=>{const i=new R;return i.add(e.schedule(()=>{const r=n[Vt]();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(wi(n))return function QC(n,e){return new Z(t=>{const i=new R;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(bt(n))return dc(n,e);if(function eE(n){return n&&"function"==typeof n[it]}(n)||"string"==typeof n)return function ZC(n,e){if(!n)throw new Error("Iterable cannot be null");return new Z(t=>{const i=new R;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[it](),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 Z?n:new Z(uc(n))}class Is extends k{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 xs extends k{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function As(n,e){if(!e.closed)return n instanceof Z?n.subscribe(e):uc(n)(e)}function Ko(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(Ko((r,s)=>hc(n(r,s)).pipe(A((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new nE(n,t)))}class nE{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new iE(e,this.project,this.concurrent))}}class iE extends xs{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 Is(this),i=this.destination;i.add(t);const r=As(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()}}function Bf(n=Number.POSITIVE_INFINITY){return Ko(z,n)}function fc(n,e){return e?dc(n,e):new Z(at(n))}function zi(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return H(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 Z?n[0]:Bf(e)(fc(n,t))}function Vf(){return function(e){return e.lift(new rE(e))}}class rE{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new sE(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class sE extends k{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 oE extends Z{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 R,e.add(this.source.subscribe(new lE(this.getSubject(),this))),e.closed&&(this._connection=null,e=R.EMPTY)),e}refCount(){return Vf()(this)}}const aE=(()=>{const n=oE.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 lE extends bi{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()}}}class dE{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 hE(){return new y}function Hf(){return n=>Vf()(function uE(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new dE(r,e));const s=Object.create(i,aE);return s.source=i,s.subjectFactory=r,s}}(hE)(n))}function ge(n){for(let e in n)if(n[e]===ge)return e;throw Error("Could not find renamed property on target object.")}function pc(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function de(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(de).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 mc(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const fE=ge({__forward_ref__:ge});function gc(n){return n.__forward_ref__=gc,n.toString=function(){return de(this())},n}function X(n){return jf(n)?n():n}function jf(n){return"function"==typeof n&&n.hasOwnProperty(fE)&&n.__forward_ref__===gc}class T extends Error{constructor(e,t){super(function _c(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function U(n){return"string"==typeof n?n:null==n?"":String(n)}function lt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():U(n)}function Xo(n,e){const t=e?` in ${e}`:"";throw new T(-201,`No provider for ${lt(n)} found${t}`)}function $t(n,e){null==n&&function he(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function P(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function we(n){return{providers:n.providers||[],imports:n.imports||[]}}function yc(n){return zf(n,Qo)||zf(n,Uf)}function zf(n,e){return n.hasOwnProperty(e)?n[e]:null}function $f(n){return n&&(n.hasOwnProperty(vc)||n.hasOwnProperty(bE))?n[vc]:null}const Qo=ge({\u0275prov:ge}),vc=ge({\u0275inj:ge}),Uf=ge({ngInjectableDef:ge}),bE=ge({ngInjectorDef:ge});var q=(()=>((q=q||{})[q.Default=0]="Default",q[q.Host=1]="Host",q[q.Self=2]="Self",q[q.SkipSelf=4]="SkipSelf",q[q.Optional=8]="Optional",q))();let bc;function Ci(n){const e=bc;return bc=n,e}function Wf(n,e,t){const i=yc(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&q.Optional?null:void 0!==e?e:void Xo(de(n),"Injector")}function Ei(n){return{toString:n}.toString()}var Cn=(()=>((Cn=Cn||{})[Cn.OnPush=0]="OnPush",Cn[Cn.Default=1]="Default",Cn))(),En=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(En||(En={})),En))();const CE="undefined"!=typeof globalThis&&globalThis,EE="undefined"!=typeof window&&window,DE="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,pe=CE||"undefined"!=typeof global&&global||EE||DE,vr={},_e=[],Zo=ge({\u0275cmp:ge}),wc=ge({\u0275dir:ge}),Cc=ge({\u0275pipe:ge}),Gf=ge({\u0275mod:ge}),ai=ge({\u0275fac:ge}),Os=ge({__NG_ELEMENT_ID__:ge});let SE=0;function jn(n){return Ei(()=>{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===Cn.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||_e,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||En.Emulated,id:"c",styles:n.styles||_e,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=SE++,i.inputs=Xf(n.inputs,t),i.outputs=Xf(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(qf):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Yf):null,i})}function qf(n){return ct(n)||function Di(n){return n[wc]||null}(n)}function Yf(n){return function $i(n){return n[Cc]||null}(n)}const Kf={};function Ee(n){return Ei(()=>{const e={type:n.type,bootstrap:n.bootstrap||_e,declarations:n.declarations||_e,imports:n.imports||_e,exports:n.exports||_e,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Kf[n.id]=n.type),e})}function Xf(n,e){if(null==n)return vr;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 ye=jn;function kt(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function ct(n){return n[Zo]||null}function un(n,e){const t=n[Gf]||null;if(!t&&!0===e)throw new Error(`Type ${de(n)} does not have '\u0275mod' property.`);return t}const K=11;function zn(n){return Array.isArray(n)&&"object"==typeof n[1]}function Sn(n){return Array.isArray(n)&&!0===n[1]}function Sc(n){return 0!=(8&n.flags)}function na(n){return 2==(2&n.flags)}function ia(n){return 1==(1&n.flags)}function Mn(n){return null!==n.template}function OE(n){return 0!=(512&n[2])}function qi(n,e){return n.hasOwnProperty(ai)?n[ai]:null}class Zf{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Yi(){return Jf}function Jf(n){return n.type.prototype.ngOnChanges&&(n.setInput=FE),PE}function PE(){const n=tp(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===vr)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function FE(n,e,t,i){const r=tp(n)||function NE(n,e){return n[ep]=e}(n,{previous:vr,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new Zf(l&&l.currentValue,e,o===vr),n[i]=e}Yi.ngInherit=!0;const ep="__ngSimpleChanges__";function tp(n){return n[ep]||null}let Ac;function Oc(){return void 0!==Ac?Ac:"undefined"!=typeof document?document:void 0}function Fe(n){return!!n.listen}const np={createRenderer:(n,e)=>Oc()};function Ue(n){for(;Array.isArray(n);)n=n[0];return n}function ra(n,e){return Ue(e[n])}function Wt(n,e){return Ue(e[n.index])}function Rc(n,e){return n.data[e]}function Dr(n,e){return n[e]}function Gt(n,e){const t=e[n];return zn(t)?t:t[0]}function ip(n){return 4==(4&n[2])}function kc(n){return 128==(128&n[2])}function Si(n,e){return null==e?null:n[e]}function rp(n){n[18]=0}function Pc(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 W={lFrame:fp(null),bindingsEnabled:!0};function op(){return W.bindingsEnabled}function C(){return W.lFrame.lView}function re(){return W.lFrame.tView}function Ne(n){return W.lFrame.contextLView=n,n[8]}function Ke(){let n=ap();for(;null!==n&&64===n.type;)n=n.parent;return n}function ap(){return W.lFrame.currentTNode}function $n(n,e){const t=W.lFrame;t.currentTNode=n,t.isParent=e}function Fc(){return W.lFrame.isParent}function Nc(){W.lFrame.isParent=!1}function Sr(){return W.lFrame.bindingIndex++}function ci(n){const e=W.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function JE(n,e){const t=W.lFrame;t.bindingIndex=t.bindingRootIndex=n,Lc(e)}function Lc(n){W.lFrame.currentDirectiveIndex=n}function up(){return W.lFrame.currentQueryIndex}function Vc(n){W.lFrame.currentQueryIndex=n}function tD(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function dp(n,e,t){if(t&q.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&q.Host||(r=tD(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=W.lFrame=hp();return i.currentTNode=e,i.lView=n,!0}function oa(n){const e=hp(),t=n[1];W.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function hp(){const n=W.lFrame,e=null===n?null:n.child;return null===e?fp(n):e}function fp(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 pp(){const n=W.lFrame;return W.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const mp=pp;function aa(){const n=pp();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 Et(){return W.lFrame.selectedIndex}function Mi(n){W.lFrame.selectedIndex=n}function xe(){const n=W.lFrame;return Rc(n.tView,n.selectedIndex)}function la(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 ca(n,e,t){_p(n,e,3,t)}function ua(n,e,t,i){(3&n[2])===t&&_p(n,e,t,i)}function Hc(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function _p(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)&&(cD(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function cD(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 Ns{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function da(n,e,t){const i=Fe(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];zc(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function yp(n){return 3===n||4===n||6===n}function zc(n){return 64===n.charCodeAt(0)}function ha(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||vp(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function vp(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 bp(n){return-1!==n}function Mr(n){return 32767&n}function Tr(n,e){let t=function pD(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let $c=!0;function fa(n){const e=$c;return $c=n,e}let mD=0;function Bs(n,e){const t=Wc(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,Uc(i.data,n),Uc(e,null),Uc(i.blueprint,null));const r=pa(n,e),s=n.injectorIndex;if(bp(r)){const o=Mr(r),a=Tr(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 Uc(n,e){n.push(0,0,0,0,0,0,0,0,e)}function Wc(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function pa(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 ma(n,e,t){!function gD(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Os)&&(i=t[Os]),null==i&&(i=t[Os]=mD++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Ep(n,e,t){if(t&q.Optional)return n;Xo(e,"NodeInjector")}function Dp(n,e,t,i){if(t&q.Optional&&void 0===i&&(i=null),0==(t&(q.Self|q.Host))){const r=n[9],s=Ci(void 0);try{return r?r.get(e,i,t&q.Optional):Wf(e,i,t&q.Optional)}finally{Ci(s)}}return Ep(i,e,t)}function Sp(n,e,t,i=q.Default,r){if(null!==n){const s=function bD(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(Os)?n[Os]:void 0;return"number"==typeof e?e>=0?255&e:yD:e}(t);if("function"==typeof s){if(!dp(e,n,i))return i&q.Host?Ep(r,t,i):Dp(e,t,i,r);try{const o=s(i);if(null!=o||i&q.Optional)return o;Xo(t)}finally{mp()}}else if("number"==typeof s){let o=null,a=Wc(n,e),l=-1,c=i&q.Host?e[16][6]:null;for((-1===a||i&q.SkipSelf)&&(l=-1===a?pa(n,e):e[a+8],-1!==l&&Ip(i,!1)?(o=e[1],a=Mr(l),e=Tr(l,e)):a=-1);-1!==a;){const u=e[1];if(Tp(s,a,u.data)){const d=vD(a,e,t,o,i,c);if(d!==Mp)return d}l=e[a+8],-1!==l&&Ip(i,e[1].data[a+8]===c)&&Tp(s,a,e)?(o=u,a=Mr(l),e=Tr(l,e)):a=-1}}}return Dp(e,t,i,r)}const Mp={};function yD(){return new Ir(Ke(),C())}function vD(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=ga(a,o,t,null==i?na(a)&&$c:i!=o&&0!=(3&a.type),r&q.Host&&s===a);return null!==u?Vs(e,o,u,a):Mp}function ga(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&&Mn(f)&&f.type===t)return l}return null}function Vs(n,e,t,i){let r=n[t];const s=e.data;if(function uD(n){return n instanceof Ns}(r)){const o=r;o.resolving&&function pE(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new T(-200,`Circular dependency in DI detected for ${n}${t}`)}(lt(s[t]));const a=fa(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Ci(o.injectImpl):null;dp(n,i,q.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function lD(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=Jf(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&&Ci(l),fa(a),o.resolving=!1,mp()}}return r}function Tp(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function Ip(n,e){return!(n&q.Self||n&q.Host&&e)}class Ir{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return Sp(this._tNode,this._lView,e,i,t)}}function Gc(n){return Ei(()=>{const e=n.prototype.constructor,t=e[ai]||qc(e),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[ai]||qc(r);if(s&&s!==t)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function qc(n){return jf(n)?()=>{const e=qc(X(n));return e&&e()}:qi(n)}const Ar="__parameters__";function Rr(n,e,t){return Ei(()=>{const i=function Yc(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Ar)?l[Ar]:Object.defineProperty(l,Ar,{value:[]})[Ar];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class O{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=P({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function fn(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)),fn(i,e)):e!==n&&e.push(i)}return e}function Un(n,e){n.forEach(t=>Array.isArray(t)?Un(t,e):e(t))}function Ap(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function ya(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function zs(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function qt(n,e,t){let i=kr(n,e);return i>=0?n[1|i]=t:(i=~i,function DD(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function Xc(n,e){const t=kr(n,e);if(t>=0)return n[1|t]}function kr(n,e){return function kp(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<t];if(e===o)return s<<t;o>e?r=s:i=s+1}return~(r<<t)}(n,e,1)}const $s={},Zc="__NG_DI_FLAG__",ba="ngTempTokenPath",OD=/\n/gm,Fp="__source",kD=ge({provide:String,useValue:ge});let Us;function Np(n){const e=Us;return Us=n,e}function PD(n,e=q.Default){if(void 0===Us)throw new T(203,"");return null===Us?Wf(n,void 0,e):Us.get(n,e&q.Optional?null:void 0,e)}function w(n,e=q.Default){return(function wE(){return bc}()||PD)(X(n),e)}const wa=w;function Jc(n){const e=[];for(let t=0;t<n.length;t++){const i=X(n[t]);if(Array.isArray(i)){if(0===i.length)throw new T(900,"");let r,s=q.Default;for(let o=0;o<i.length;o++){const a=i[o],l=FD(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 Ws(n,e){return n[Zc]=e,n.prototype[Zc]=e,n}function FD(n){return n[Zc]}const Ki=Ws(Rr("Optional"),8),Gs=Ws(Rr("SkipSelf"),4);var Yt=(()=>((Yt=Yt||{})[Yt.Important=1]="Important",Yt[Yt.DashCase=2]="DashCase",Yt))();const Up="__ngContext__";function pt(n,e){n[Up]=e}function iu(n){const e=function Ys(n){return n[Up]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function su(n,e){return undefined(n,e)}function Ks(n){const e=n[3];return Sn(e)?e[3]:e}function ou(n){return Qp(n[13])}function au(n){return Qp(n[4])}function Qp(n){for(;null!==n&&!Sn(n);)n=n[4];return n}function Fr(n,e,t,i,r){if(null!=i){let s,o=!1;Sn(i)?s=i:zn(i)&&(o=!0,i=i[0]);const a=Ue(i);0===n&&null!==t?null==r?im(e,t,a):Xi(e,t,a,r||null,!0):1===n&&null!==t?Xi(e,t,a,r||null,!0):2===n?function pu(n,e,t){const i=Ea(n,e);i&&function f0(n,e,t,i){Fe(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function g0(n,e,t,i,r){const s=t[7];s!==Ue(t)&&Fr(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];Xs(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function cu(n,e,t){if(Fe(n))return n.createElement(e,t);{const i=null!==t?function HE(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 Jp(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Pc(r,-1)),t.splice(i,1)}function uu(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&Jp(r,i),e>0&&(n[t-1][4]=i[4]);const s=ya(n,10+e);!function s0(n,e){Xs(n,e,e[K],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function em(n,e){if(!(256&e[2])){const t=e[K];Fe(t)&&t.destroyNode&&Xs(n,e,t,3,null,null),function l0(n){let e=n[13];if(!e)return du(n[1],n);for(;e;){let t=null;if(zn(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)zn(e)&&du(e[1],e),e=e[3];null===e&&(e=n),zn(e)&&du(e[1],e),t=e&&e[4]}e=t}}(e)}}function du(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function h0(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 Ns)){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 d0(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):Ue(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&&Fe(e[K])&&e[K].destroy();const t=e[17];if(null!==t&&Sn(e[3])){t!==e[3]&&Jp(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function tm(n,e,t){return function nm(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===En.None||r===En.Emulated)return null}return Wt(i,t)}(n,e.parent,t)}function Xi(n,e,t,i,r){Fe(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function im(n,e,t){Fe(n)?n.appendChild(e,t):e.appendChild(t)}function rm(n,e,t,i,r){null!==i?Xi(n,e,t,i,r):im(n,e,t)}function Ea(n,e){return Fe(n)?n.parentNode(e):e.parentNode}function sm(n,e,t){return am(n,e,t)}let Ma,Ta,am=function om(n,e,t){return 40&n.type?Wt(n,t):null};function Da(n,e,t,i){const r=tm(n,i,e),s=e[K],a=sm(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)rm(s,r,t[l],a,!1);else rm(s,r,t,a,!1)}function Sa(n,e){if(null!==e){const t=e.type;if(3&t)return Wt(e,n);if(4&t)return fu(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return Sa(n,i);{const r=n[e.index];return Sn(r)?fu(-1,r):Ue(r)}}if(32&t)return su(e,n)()||Ue(n[e.index]);{const i=cm(n,e);return null!==i?Array.isArray(i)?i[0]:Sa(Ks(n[16]),i):Sa(n,e.next)}}return null}function cm(n,e){return null!==e?n[16][6].projection[e.projection]:null}function fu(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return Sa(i,r)}return e[7]}function mu(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&pt(Ue(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)mu(n,e,t.child,i,r,s,!1),Fr(e,n,r,a,s);else if(32&l){const c=su(t,i);let u;for(;u=c();)Fr(e,n,r,u,s);Fr(e,n,r,a,s)}else 16&l?um(n,e,i,t,r,s):Fr(e,n,r,a,s);t=o?t.projectionNext:t.next}}function Xs(n,e,t,i,r,s){mu(t,i,n.firstChild,e,r,s,!1)}function um(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++)Fr(e,n,r,l[c],s);else mu(n,e,l,o[3],r,s,!0)}function dm(n,e,t){Fe(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function gu(n,e,t){Fe(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function Qi(n){var e;return(null===(e=function _u(){if(void 0===Ma&&(Ma=null,pe.trustedTypes))try{Ma=pe.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Ma}())||void 0===e?void 0:e.createHTML(n))||n}function hm(n){var e;return(null===(e=function yu(){if(void 0===Ta&&(Ta=null,pe.trustedTypes))try{Ta=pe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Ta}())||void 0===e?void 0:e.createHTML(n))||n}class Zi{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class w0 extends Zi{getTypeName(){return"HTML"}}class C0 extends Zi{getTypeName(){return"Style"}}class E0 extends Zi{getTypeName(){return"Script"}}class D0 extends Zi{getTypeName(){return"URL"}}class S0 extends Zi{getTypeName(){return"ResourceURL"}}function Kt(n){return n instanceof Zi?n.changingThisBreaksApplicationSecurity:n}function Wn(n,e){const t=mm(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}function mm(n){return n instanceof Zi&&n.getTypeName()||null}class O0{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Qi(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class R0{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Qi(e),t;const i=this.inertDocument.createElement("body");return i.innerHTML=Qi(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const o=t.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&e.removeAttribute(o)}let i=e.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const P0=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,F0=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Qs(n){return(n=String(n)).match(P0)||n.match(F0)?n:"unsafe:"+n}function _m(n){return(n=String(n)).split(",").map(e=>Qs(e.trim())).join(", ")}function Gn(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function Zs(...n){const e={};for(const t of n)for(const i in t)t.hasOwnProperty(i)&&(e[i]=!0);return e}const ym=Gn("area,br,col,hr,img,wbr"),vm=Gn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),bm=Gn("rp,rt"),vu=Zs(ym,Zs(vm,Gn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Zs(bm,Gn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Zs(bm,vm)),bu=Gn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wu=Gn("srcset"),wm=Zs(bu,wu,Gn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Gn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),N0=Gn("script,style,template");class L0{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!vu.hasOwnProperty(t))return this.sanitizedSomething=!0,!N0.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=e.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!wm.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;bu[a]&&(l=Qs(l)),wu[a]&&(l=_m(l)),this.buf.push(" ",o,'="',Cm(l),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();vu.hasOwnProperty(t)&&!ym.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Cm(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const B0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,V0=/([^\#-~ |!])/g;function Cm(n){return n.replace(/&/g,"&").replace(B0,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(V0,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Ia;function Em(n,e){let t=null;try{Ia=Ia||function gm(n){const e=new R0(n);return function k0(){try{return!!(new window.DOMParser).parseFromString(Qi(""),"text/html")}catch(n){return!1}}()?new O0(e):e}(n);let i=e?String(e):"";t=Ia.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=t.innerHTML,t=Ia.getInertBodyElement(i)}while(i!==s);return Qi((new L0).sanitizeChildren(Cu(t)||t))}finally{if(t){const i=Cu(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Cu(n){return"content"in n&&function H0(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var le=(()=>((le=le||{})[le.NONE=0]="NONE",le[le.HTML=1]="HTML",le[le.STYLE=2]="STYLE",le[le.SCRIPT=3]="SCRIPT",le[le.URL=4]="URL",le[le.RESOURCE_URL=5]="RESOURCE_URL",le))();function Eu(n){const e=function Js(){const n=C();return n&&n[12]}();return e?hm(e.sanitize(le.HTML,n)||""):Wn(n,"HTML")?hm(Kt(n)):Em(Oc(),U(n))}function Su(n){return n.ngOriginalError}function X0(n,...e){n.error(...e)}class Ii{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function K0(n){return n&&n.ngErrorLogger||X0}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Su(e);for(;t&&Su(t);)t=Su(t);return t||null}}const iS=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(pe))();function qn(n){return n instanceof Function?n():n}function Tm(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 Im="ng-template";function aS(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==Tm(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 xm(n){return 4===n.type&&n.value!==Im}function lS(n,e,t){return e===(4!==n.type||t?n.value:Im)}function cS(n,e,t){let i=4;const r=n.attrs||[],s=function hS(n){for(let e=0;e<n.length;e++)if(yp(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&&!lS(n,l,t)||""===l&&1===e.length){if(Tn(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!aS(n.attrs,c,t)){if(Tn(i))return!1;o=!0}continue}const d=uS(8&i?"class":l,r,xm(n),t);if(-1===d){if(Tn(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!==Tm(f,c,0)||2&i&&c!==h){if(Tn(i))return!1;o=!0}}}}else{if(!o&&!Tn(i)&&!Tn(l))return!1;if(o&&Tn(l))continue;o=!1,i=l|1&i}}return Tn(i)||o}function Tn(n){return 0==(1&n)}function uS(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 fS(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 Am(n,e,t=!1){for(let i=0;i<e.length;i++)if(cS(n,e[i],t))return!0;return!1}function pS(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function Om(n,e){return n?":not("+e.trim()+")":e}function mS(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&&!Tn(o)&&(e+=Om(s,r),r=""),i=o,s=s||!Tn(i);t++}return""!==r&&(e+=Om(s,r)),e}const G={};function B(n){Rm(re(),C(),Et()+n,!1)}function Rm(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&ca(e,s,t)}else{const s=n.preOrderHooks;null!==s&&ua(e,s,0,t)}Mi(t)}function xa(n,e){return n<<17|e<<2}function In(n){return n>>17&32767}function Mu(n){return 2|n}function ui(n){return(131068&n)>>2}function Tu(n,e){return-131069&n|e<<2}function Iu(n){return 1|n}function $m(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];Vc(r),o.contentQueries(2,e[s],s)}}}function eo(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,rp(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[K]=a||n&&n[K],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 Lr(n,e,t,i,r){let s=n.data[e];if(null===s)s=function Lu(n,e,t,i,r){const s=ap(),o=Fc(),l=n.data[e]=function kS(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 ZE(){return W.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function Fs(){const n=W.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return $n(s,!0),s}function Br(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 to(n,e,t){oa(e);try{const i=n.viewQuery;null!==i&&Gu(1,i,t);const r=n.template;null!==r&&Um(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&$m(n,e),n.staticViewQueries&&Gu(2,n.viewQuery,t);const s=n.components;null!==s&&function AS(n,e){for(let t=0;t<e.length;t++)QS(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,aa()}}function Vr(n,e,t,i){const r=e[2];if(256!=(256&r)){oa(e);try{rp(e),function lp(n){return W.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Um(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&ca(e,c,null)}else{const c=n.preOrderHooks;null!==c&&ua(e,c,0,null),Hc(e,0)}if(function KS(n){for(let e=ou(n);null!==e;e=au(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])&&Pc(s,1),r[2]|=1024}}}(e),function YS(n){for(let e=ou(n);null!==e;e=au(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];kc(i)&&Vr(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&$m(n,e),o){const c=n.contentCheckHooks;null!==c&&ca(e,c)}else{const c=n.contentHooks;null!==c&&ua(e,c,1),Hc(e,1)}!function IS(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)Mi(~r);else{const s=r,o=t[++i],a=t[++i];JE(o,s),a(2,e[s])}}}finally{Mi(-1)}}(n,e);const a=n.components;null!==a&&function xS(n,e){for(let t=0;t<e.length;t++)XS(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&Gu(2,l,i),o){const c=n.viewCheckHooks;null!==c&&ca(e,c)}else{const c=n.viewHooks;null!==c&&ua(e,c,2),Hc(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,Pc(e[3],-1))}finally{aa()}}}function OS(n,e,t,i){const r=e[10],o=ip(e);try{!o&&r.begin&&r.begin(),o&&to(n,e,i),Vr(n,e,t,i)}finally{!o&&r.end&&r.end()}}function Um(n,e,t,i,r){const s=Et(),o=2&i;try{Mi(-1),o&&e.length>20&&Rm(n,e,20,!1),t(i,r)}finally{Mi(s)}}function Wm(n,e,t){if(Sc(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)}}}function Bu(n,e,t){!op()||(function HS(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||Bs(t,e),pt(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Mn(l);c&&WS(e,t,l);const u=Vs(e,n,a,t);pt(u,e),null!==o&&GS(0,a-r,u,l,0,o),c&&(Gt(t.index,e)[8]=u)}}(n,e,t,Wt(t,e)),128==(128&t.flags)&&function jS(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function eD(){return W.lFrame.currentDirectiveIndex}();try{Mi(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];Lc(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Jm(c,u)}}finally{Mi(-1),Lc(a)}}(n,e,t))}function Vu(n,e,t=Wt){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}}}function Gm(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=Ra(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function Ra(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function RS(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:G);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 Km(n,e,t,i){const r=sg(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&og(n).push(i,r.length-1))}function Xm(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 Hu(n,e,t,i){let r=!1;if(op()){const s=function zS(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Am(t,o.selectors,!1)&&(r||(r=[]),ma(Bs(t,e),n,o.type),Mn(o)?(eg(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,tg(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=Br(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=ha(t.mergedAttrs,d.hostAttrs),ng(n,t,e,c,d),US(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 PS(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||xm(e)?null:qS(d,s);o.push(h),a=Xm(d,c,a),l=Xm(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 $S(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 T(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=ha(t.mergedAttrs,t.attrs),r}function Zm(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 VS(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 Jm(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function eg(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function US(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Mn(e)&&(t[""]=n)}}function tg(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function ng(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=qi(r.type)),o=new Ns(s,Mn(r),null);n.blueprint[i]=o,t[i]=o,Zm(n,e,0,i,Br(n,t,r.hostVars,G),r)}function WS(n,e,t){const i=Wt(e,n),r=Gm(t),s=n[10],o=ka(n,eo(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function Yn(n,e,t,i,r,s){const o=Wt(n,e);!function ju(n,e,t,i,r,s,o){if(null==s)Fe(n)?n.removeAttribute(e,r,t):e.removeAttribute(r);else{const a=null==o?U(s):o(s,i||"",r);Fe(n)?n.setAttribute(e,r,a,t):t?e.setAttributeNS(t,r,a):e.setAttribute(r,a)}}(e[K],o,s,n.value,t,i,r)}function GS(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 qS(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 ig(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}function XS(n,e){const t=Gt(e,n);if(kc(t)){const i=t[1];80&t[2]?Vr(i,t,i.template,t[8]):t[5]>0&&zu(t)}}function zu(n){for(let i=ou(n);null!==i;i=au(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];Vr(o,s,o.template,s[8])}else s[5]>0&&zu(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=Gt(t[i],n);kc(r)&&r[5]>0&&zu(r)}}function QS(n,e){const t=Gt(e,n),i=t[1];(function ZS(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),to(i,t,t[8])}function ka(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function $u(n){for(;n;){n[2]|=64;const e=Ks(n);if(OE(n)&&!e)return n;n=e}return null}function rg(n){!function Uu(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=iu(t),r=i[1];OS(r,i,r.template,t)}}(n[8])}function Gu(n,e,t){Vc(0),e(n,t)}const eM=(()=>Promise.resolve(null))();function sg(n){return n[7]||(n[7]=[])}function og(n){return n.cleanup||(n.cleanup=[])}function lg(n,e){const t=n[9],i=t?t.get(Ii,null):null;i&&i.handleError(e)}function cg(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 di(n,e,t){const i=ra(e,n);!function Zp(n,e,t){Fe(n)?n.setValue(e,t):e.textContent=t}(n[K],i,t)}function Pa(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=mc(r,a):2==s&&(i=mc(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const qu=new O("INJECTOR",-1);class ug{get(e,t=$s){if(t===$s){const i=new Error(`NullInjectorError: No provider for ${de(e)}!`);throw i.name="NullInjectorError",i}return t}}const Yu=new O("Set Injector scope."),no={},iM={};let Ku;function dg(){return void 0===Ku&&(Ku=new ug),Ku}function hg(n,e=null,t=null,i){const r=fg(n,e,t,i);return r._resolveInjectorDefTypes(),r}function fg(n,e=null,t=null,i){return new rM(n,t,e||dg(),i)}class rM{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&&Un(t,a=>this.processProvider(a,e,t)),Un([e],a=>this.processInjectorType(a,[],s)),this.records.set(qu,Hr(void 0,this));const o=this.records.get(Yu);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:de(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=$s,i=q.Default){this.assertNotDestroyed();const r=Np(this),s=Ci(void 0);try{if(!(i&q.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function hM(n){return"function"==typeof n||"object"==typeof n&&n instanceof O}(e)&&yc(e);a=l&&this.injectableDefInScope(l)?Hr(Xu(e),no):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&q.Self?dg():this.parent).get(e,t=i&q.Optional&&t===$s?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[ba]=o[ba]||[]).unshift(de(e)),r)throw o;return function ND(n,e,t,i){const r=n[ba];throw e[Fp]&&r.unshift(e[Fp]),n.message=function LD(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=de(e);if(Array.isArray(e))r=e.map(de).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):de(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(OD,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[ba]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{Ci(s),Np(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(de(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new T(205,!1)}processInjectorType(e,t,i){if(!(e=X(e)))return!1;let r=$f(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=$f(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{Un(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];Un(f,p=>this.processProvider(p,h,f||_e))}}this.injectorDefTypes.add(o);const l=qi(o)||(()=>new o);this.records.set(o,Hr(l,no));const c=r.providers;if(null!=c&&!a){const u=e;Un(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,i){let r=jr(e=X(e))?e:X(e&&e.provide);const s=function oM(n,e,t){return mg(n)?Hr(void 0,n.useValue):Hr(pg(n),no)}(e);if(jr(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Hr(void 0,no,!0),o.factory=()=>Jc(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===no&&(t.value=iM,t.value=t.factory()),"object"==typeof t.value&&t.value&&function dM(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=X(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function Xu(n){const e=yc(n),t=null!==e?e.factory:qi(n);if(null!==t)return t;if(n instanceof O)throw new T(204,!1);if(n instanceof Function)return function sM(n){const e=n.length;if(e>0)throw zs(e,"?"),new T(204,!1);const t=function yE(n){const e=n&&(n[Qo]||n[Uf]);if(e){const t=function vE(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 T(204,!1)}function pg(n,e,t){let i;if(jr(n)){const r=X(n);return qi(r)||Xu(r)}if(mg(n))i=()=>X(n.useValue);else if(function lM(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Jc(n.deps||[]));else if(function aM(n){return!(!n||!n.useExisting)}(n))i=()=>w(X(n.useExisting));else{const r=X(n&&(n.useClass||n.provide));if(!function uM(n){return!!n.deps}(n))return qi(r)||Xu(r);i=()=>new r(...Jc(n.deps))}return i}function Hr(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function mg(n){return null!==n&&"object"==typeof n&&kD in n}function jr(n){return"function"==typeof n}let mt=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return hg({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return hg({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=$s,n.NULL=new ug,n.\u0275prov=P({token:n,providedIn:"any",factory:()=>w(qu)}),n.__NG_ELEMENT_ID__=-1,n})();function bM(n,e){la(iu(n)[1],Ke())}function Kn(n){let e=function Tg(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(Mn(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new T(903,"");r=e.\u0275dir}if(r){if(t){i.push(r);const o=n;o.inputs=Ju(n.inputs),o.declaredInputs=Ju(n.declaredInputs),o.outputs=Ju(n.outputs);const a=r.hostBindings;a&&DM(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&CM(n,l),c&&EM(n,c),pc(n.inputs,r.inputs),pc(n.declaredInputs,r.declaredInputs),pc(n.outputs,r.outputs),Mn(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===Kn&&(t=!1)}}e=Object.getPrototypeOf(e)}!function wM(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=ha(r.hostAttrs,t=ha(t,r.hostAttrs))}}(i)}function Ju(n){return n===vr?{}:n===_e?[]:n}function CM(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function EM(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,s)=>{e(i,r,s),t(i,r,s)}:e}function DM(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let Fa=null;function zr(){if(!Fa){const n=pe.Symbol;if(n&&n.iterator)Fa=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&&(Fa=i)}}}return Fa}function io(n){return!!ed(n)&&(Array.isArray(n)||!(n instanceof Map)&&zr()in n)}function ed(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function gt(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function Qe(n,e,t,i){const r=C();return gt(r,Sr(),e)&&(re(),Yn(xe(),r,n,e,t,i)),Qe}function oe(n,e,t,i,r,s,o,a){const l=C(),c=re(),u=n+20,d=c.firstCreatePass?function OM(n,e,t,i,r,s,o,a,l){const c=e.consts,u=Lr(e,n,4,o||null,Si(c,a));Hu(e,t,u,Si(c,l)),la(e,u);const d=u.tViews=Ra(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,t,i,r,s,o):c.data[u];$n(d,!1);const h=l[K].createComment("");Da(c,l,h,d),pt(h,l),ka(l,l[u]=ig(h,l,h,d)),ia(d)&&Bu(c,l,d),null!=o&&Vu(l,d,a)}function st(n){return Dr(function QE(){return W.lFrame.contextLView}(),20+n)}function v(n,e=q.Default){const t=C();return null===t?w(n,e):Sp(Ke(),t,X(n),e)}function F(n,e,t){const i=C();return gt(i,Sr(),e)&&function Xt(n,e,t,i,r,s,o,a){const l=Wt(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(cg(n,t,u,i,r),na(e)&&function NS(n,e){const t=Gt(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function FS(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,Fe(s)?s.setProperty(l,i,r):zc(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(re(),xe(),i,n,e,i[K],t,!1),F}function sd(n,e,t,i,r){const o=r?"class":"style";cg(n,t,e.inputs[o],o,i)}function ce(n,e,t,i){const r=C(),s=re(),o=20+n,a=r[K],l=r[o]=cu(a,e,function aD(){return W.lFrame.currentNamespace}()),c=s.firstCreatePass?function ZM(n,e,t,i,r,s,o){const a=e.consts,c=Lr(e,n,2,r,Si(a,s));return Hu(e,t,c,Si(a,o)),null!==c.attrs&&Pa(c,c.attrs,!1),null!==c.mergedAttrs&&Pa(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];$n(c,!0);const u=c.mergedAttrs;null!==u&&da(a,l,u);const d=c.classes;null!==d&&gu(a,l,d);const h=c.styles;return null!==h&&dm(a,l,h),64!=(64&c.flags)&&Da(s,r,l,c),0===function GE(){return W.lFrame.elementDepthCount}()&&pt(l,r),function qE(){W.lFrame.elementDepthCount++}(),ia(c)&&(Bu(s,r,c),Wm(s,c,r)),null!==i&&Vu(r,c),ce}function fe(){let n=Ke();Fc()?Nc():(n=n.parent,$n(n,!1));const e=n;!function YE(){W.lFrame.elementDepthCount--}();const t=re();return t.firstCreatePass&&(la(t,n),Sc(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function hD(n){return 0!=(16&n.flags)}(e)&&sd(t,e,C(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function fD(n){return 0!=(32&n.flags)}(e)&&sd(t,e,C(),e.stylesWithoutHost,!1),fe}function An(n,e,t,i){return ce(n,e,t,i),fe(),An}function St(n,e,t){const i=C(),r=re(),s=n+20,o=r.firstCreatePass?function JM(n,e,t,i,r){const s=e.consts,o=Si(s,i),a=Lr(e,n,8,"ng-container",o);return null!==o&&Pa(a,o,!0),Hu(e,t,a,Si(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,t):r.data[s];$n(o,!0);const a=i[s]=i[K].createComment("");return Da(r,i,a,o),pt(a,i),ia(o)&&(Bu(r,i,o),Wm(r,o,i)),null!=t&&Vu(i,o),St}function Mt(){let n=Ke();const e=re();return Fc()?Nc():(n=n.parent,$n(n,!1)),e.firstCreatePass&&(la(e,n),Sc(n)&&e.queries.elementEnd(n)),Mt}function Qn(n,e,t){return St(n,e,t),Mt(),Qn}function Qt(){return C()}function od(n){return!!n&&"function"==typeof n.then}function Yg(n){return!!n&&"function"==typeof n.subscribe}const eT=Yg;function Le(n,e,t,i){const r=C(),s=re(),o=Ke();return function Xg(n,e,t,i,r,s,o,a){const l=ia(i),u=n.firstCreatePass&&og(n),d=e[8],h=sg(e);let f=!0;if(3&i.type||a){const _=Wt(i,e),b=a?a(_):_,g=h.length,E=a?x=>a(Ue(x[i.index])):i.index;if(Fe(t)){let x=null;if(!a&&l&&(x=function tT(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!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=s,x.__ngLastListenerFn__=s,f=!1;else{s=ad(i,e,d,s,!1);const Y=t.listen(b,r,s);h.push(s,Y),u&&u.push(r,E,g,g+1)}}else s=ad(i,e,d,s,!0),b.addEventListener(r,s,o),h.push(s),u&&u.push(r,E,g,o)}else s=ad(i,e,d,s,!1);const p=i.outputs;let m;if(f&&null!==p&&(m=p[r])){const _=m.length;if(_)for(let b=0;b<_;b+=2){const Me=e[m[b]][m[b+1]].subscribe(s),Oe=h.length;h.push(s,Me),u&&u.push(r,i.index,Oe,-(Oe+1))}}}(s,r,r[K],o,n,e,!!t,i),Le}function Qg(n,e,t,i){try{return!1!==t(i)}catch(r){return lg(n,r),!1}}function ad(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?Gt(n.index,e):e;0==(32&e[2])&&$u(a);let l=Qg(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=Qg(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function $(n=1){return function nD(n){return(W.lFrame.contextLView=function iD(n,e){for(;n>0;)e=e[15],n--;return e}(n,W.lFrame.contextLView))[8]}(n)}function nT(n,e){let t=null;const i=function dS(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?Am(n,s,!0):pS(i,s))return r}else t=r}return t}function Jr(n){const e=C()[16][6];if(!e.projection){const i=e.projection=zs(n?n.length:1,null),r=i.slice();let s=e.child;for(;null!==s;){const o=n?nT(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function er(n,e=0,t){const i=C(),r=re(),s=Lr(r,20+n,16,null,t||null);null===s.projection&&(s.projection=e),Nc(),64!=(64&s.flags)&&function m0(n,e,t){um(e[K],0,e,t,tm(n,t,e),sm(t.parent||e[6],t,e))}(r,i,s)}function a_(n,e,t,i,r){const s=n[t+1],o=null===e;let a=i?In(s):ui(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];sT(n[a],e)&&(l=!0,n[a+1]=i?Iu(u):Mu(u)),a=i?In(u):ui(u)}l&&(n[t+1]=i?Mu(s):Iu(s))}function sT(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&kr(n,e)>=0}const Ze={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function l_(n){return n.substring(Ze.key,Ze.keyEnd)}function oT(n){return n.substring(Ze.value,Ze.valueEnd)}function u_(n,e){const t=Ze.textEnd;let i=Ze.key=es(n,e,t);return t===i?-1:(i=Ze.keyEnd=function uT(n,e,t){let i;for(;e<t&&(45===(i=n.charCodeAt(e))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(n,i,t),i=h_(n,i,t),i=Ze.value=es(n,i,t),i=Ze.valueEnd=function dT(n,e,t){let i=-1,r=-1,s=-1,o=e,a=o;for(;o<t;){const l=n.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=f_(n,l,o,t):e===o-4&&85===s&&82===r&&76===i&&40===l?a=o=f_(n,41,o,t):l>32&&(a=o),s=r,r=i,i=-33&l}return a}(n,i,t),h_(n,i,t))}function es(n,e,t){for(;e<t&&n.charCodeAt(e)<=32;)e++;return e}function h_(n,e,t,i){return(e=es(n,e,t))<t&&e++,e}function f_(n,e,t,i){let r=-1,s=t;for(;s<i;){const o=n.charCodeAt(s++);if(o==e&&92!==r)return s;r=92==o&&92===r?0:o}throw new Error}function ts(n,e,t){return On(n,e,t,!1),ts}function Zn(n,e){return On(n,e,null,!0),Zn}function _t(n){!function Rn(n,e,t,i){const r=re(),s=ci(2);r.firstUpdatePass&&m_(r,null,s,i);const o=C();if(t!==G&>(o,s,t)){const a=r.data[Et()];if(v_(a,i)&&!p_(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=mc(l,t||"")),sd(r,a,o,t,i)}else!function vT(n,e,t,i,r,s,o,a){r===G&&(r=_e);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,f=c<s.length?s[c+1]:void 0;let m,p=null;u===d?(l+=2,c+=2,h!==f&&(p=d,m=f)):null===d||null!==u&&u<d?(l+=2,p=u):(c+=2,p=d,m=f),null!==p&&__(n,e,t,i,p,m,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,a,o,o[K],o[s+1],o[s+1]=function yT(n,e,t){if(null==t||""===t)return _e;const i=[],r=Kt(t);if(Array.isArray(r))for(let s=0;s<r.length;s++)n(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&n(i,s,r[s]);else"string"==typeof r&&e(i,r);return i}(n,e,t),i,s)}}(g_,hT,n,!1)}function hT(n,e){for(let t=function lT(n){return function d_(n){Ze.key=0,Ze.keyEnd=0,Ze.value=0,Ze.valueEnd=0,Ze.textEnd=n.length}(n),u_(n,es(n,0,Ze.textEnd))}(e);t>=0;t=u_(e,t))g_(n,l_(e),oT(e))}function On(n,e,t,i){const r=C(),s=re(),o=ci(2);s.firstUpdatePass&&m_(s,n,o,i),e!==G&>(r,o,e)&&__(s,s.data[Et()],r,r[K],n,r[o+1]=function bT(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=de(Kt(n)))),n}(e,t),i,o)}function p_(n,e){return e>=n.expandoStartIndex}function m_(n,e,t,i){const r=n.data;if(null===r[t+1]){const s=r[Et()],o=p_(n,t);v_(s,i)&&null===e&&!o&&(e=!1),e=function pT(n,e,t,i){const r=function Bc(n){const e=W.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=so(t=cd(null,n,e,t,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==r)if(t=cd(r,n,e,t,i),null===s){let l=function mT(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==ui(i))return n[In(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=cd(null,n,e,l[1],i),l=so(l,e.attrs,i),function gT(n,e,t,i){n[In(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else s=function _T(n,e,t){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=so(i,n[s].hostAttrs,t);return so(i,e.attrs,t)}(n,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),t}(r,s,e,i),function iT(n,e,t,i,r,s){let o=s?e.classBindings:e.styleBindings,a=In(o),l=ui(o);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||kr(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=In(n[a+1]);n[i+1]=xa(h,a),0!==h&&(n[h+1]=Tu(n[h+1],i)),n[a+1]=function yS(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=xa(a,0),0!==a&&(n[a+1]=Tu(n[a+1],i)),a=i;else n[i+1]=xa(l,0),0===a?a=i:n[l+1]=Tu(n[l+1],i),l=i;c&&(n[i+1]=Mu(n[i+1])),a_(n,u,i,!0),a_(n,u,i,!1),function rT(n,e,t,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&kr(s,e)>=0&&(t[i+1]=Iu(t[i+1]))}(e,u,n,i,s),o=xa(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,t,o,i)}}function cd(n,e,t,i,r){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],i=so(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function so(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),qt(n,o,!!t||e[++s]))}return void 0===n?null:n}function g_(n,e,t){qt(n,e,Kt(t))}function __(n,e,t,i,r,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];Ba(function Fm(n){return 1==(1&n)}(c)?y_(l,e,t,r,ui(c),o):void 0)||(Ba(s)||function Pm(n){return 2==(2&n)}(c)&&(s=y_(l,null,t,r,a,o)),function _0(n,e,t,i,r){const s=Fe(n);if(e)r?s?n.addClass(t,i):t.classList.add(i):s?n.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:Yt.DashCase;if(null==r)s?n.removeStyle(t,i,o):t.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=Yt.Important),s?n.setStyle(t,i,r,o):t.style.setProperty(i,r,a?"important":"")}}}(i,o,ra(Et(),t),r,s))}function y_(n,e,t,i,r,s){const o=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===G&&(h=d?_e:void 0);let f=d?Xc(h,i):u===i?h:void 0;if(c&&!Ba(f)&&(f=Xc(l,i)),Ba(f)&&(a=f,o))return a;const p=n[r+1];r=o?In(p):ui(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=Xc(l,i))}return a}function Ba(n){return void 0!==n}function v_(n,e){return 0!=(n.flags&(e?16:32))}function ns(n,e=""){const t=C(),i=re(),r=n+20,s=i.firstCreatePass?Lr(i,r,1,e,null):i.data[r],o=t[r]=function lu(n,e){return Fe(n)?n.createText(e):n.createTextNode(e)}(t[K],e);Da(i,t,o,s),$n(s,!1)}function tr(n){return ud("",n,""),tr}function ud(n,e,t){const i=C(),r=function Ur(n,e,t,i){return gt(n,Sr(),t)?e+U(t)+i:G}(i,n,e,t);return r!==G&&di(i,Et(),r),ud}const Va="en-US";let j_=Va;function fd(n,e,t,i,r){if(n=X(n),Array.isArray(n))for(let s=0;s<n.length;s++)fd(n[s],e,t,i,r);else{const s=re(),o=C();let a=jr(n)?n:X(n.provide),l=pg(n);const c=Ke(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(jr(n)||!n.multi){const f=new Ns(l,r,v),p=md(a,e,r?u:u+h,d);-1===p?(ma(Bs(c,o),s,a),pd(s,n,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(f),o.push(f)):(t[p]=f,o[p]=f)}else{const f=md(a,e,u+h,d),p=md(a,e,u,u+h),m=f>=0&&t[f],_=p>=0&&t[p];if(r&&!_||!r&&!m){ma(Bs(c,o),s,a);const b=function VI(n,e,t,i,r){const s=new Ns(n,t,v);return s.multi=[],s.index=e,s.componentProviders=0,dy(s,r,i&&!t),s}(r?BI:LI,t.length,r,i,l);!r&&_&&(t[p].providerFactory=b),pd(s,n,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(b),o.push(b)}else pd(s,n,f>-1?f:p,dy(t[r?p:f],l,!r&&i));!r&&i&&_&&t[p].componentProviders++}}}function pd(n,e,t,i){const r=jr(e),s=function cM(n){return!!n.useClass}(e);if(r||s){const l=(s?X(e.useClass):e).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&e.multi){const u=c.indexOf(t);-1===u?c.push(t,[i,l]):c[u+1].push(i,l)}else c.push(t,l)}}}function dy(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function md(n,e,t,i){for(let r=t;r<i;r++)if(e[r]===n)return r;return-1}function LI(n,e,t,i){return gd(this.multi,[])}function BI(n,e,t,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Vs(t,t[1],this.providerFactory.index,i);s=a.slice(0,o),gd(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],gd(r,s);return s}function gd(n,e){for(let t=0;t<n.length;t++)e.push((0,n[t])());return e}function _d(n,e=[]){return t=>{t.providersResolver=(i,r)=>function NI(n,e,t){const i=re();if(i.firstCreatePass){const r=Mn(n);fd(t,i.data,i.blueprint,r,!0),fd(e,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,e)}}class hy{}class zI{resolveComponentFactory(e){throw function jI(n){const e=Error(`No component factory found for ${de(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let hi=(()=>{class n{}return n.NULL=new zI,n})();function $I(){return ss(Ke(),C())}function ss(n,e){return new Se(Wt(n,e))}let Se=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=$I,n})();function UI(n){return n instanceof Se?n.nativeElement:n}class uo{}let ho=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function GI(){const n=C(),t=Gt(Ke().index,n);return function WI(n){return n[K]}(zn(t)?t:n)}(),n})(),qI=(()=>{class n{}return n.\u0275prov=P({token:n,providedIn:"root",factory:()=>null}),n})();class os{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 os("13.4.0"),yd={};function Ua(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(Ue(s)),Sn(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&Ua(l[1],l,c,i)}const o=t.type;if(8&o)Ua(n,e,t.child,i);else if(32&o){const a=su(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=cm(e,t);if(Array.isArray(a))i.push(...a);else{const l=Ks(e[16]);Ua(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class fo{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 Ua(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(Sn(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(uu(e,i),ya(t,i))}this._attachedToViewContainer=!1}em(this._lView[1],this._lView)}onDestroy(e){Km(this._lView[1],this._lView,null,e)}markForCheck(){$u(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Wu(n,e,t){const i=e[10];i.begin&&i.begin();try{Vr(n,e,n.template,t)}catch(r){throw lg(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new T(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function a0(n,e){Xs(n,e,e[K],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new T(902,"");this._appRef=e}}class KI extends fo{constructor(e){super(e),this._view=e}detectChanges(){rg(this._view)}checkNoChanges(){}get context(){return null}}class py extends hi{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=ct(e);return new vd(t,this.ngModule)}}function my(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class vd extends hy{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function gS(n){return n.map(mS).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return my(this.componentDef.inputs)}get outputs(){return my(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function QI(n,e){return{get:(t,i,r)=>{const s=n.get(t,yd,r);return s!==yd||i===yd?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(uo,np),a=s.get(qI,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function Ym(n,e,t){if(Fe(n))return n.selectRootElement(e,t===En.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):cu(o.createRenderer(null,this.componentDef),c,function XI(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function Mg(n,e){return{components:[],scheduler:n||iS,clean:eM,playerHandler:e||null,flags:0}}(),f=Ra(0,null,null,1,0,null,null,null,null,null),p=eo(null,f,h,d,null,null,o,l,a,s);let m,_;oa(p);try{const b=function Dg(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=Lr(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(Pa(l,c,!0),null!==n&&(da(r,n,c),null!==l.classes&&gu(r,n,l.classes),null!==l.styles&&dm(r,n,l.styles)));const u=i.createRenderer(n,e),d=eo(t,Gm(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(ma(Bs(l,t),o,e.type),eg(o,l),tg(l,t.length,1)),ka(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)da(l,u,["ng-version",YI.full]);else{const{attrs:g,classes:E}=function _S(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(!Tn(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);g&&da(l,u,g),E&&E.length>0&&gu(l,u,E.join(" "))}if(_=Rc(f,20),void 0!==t){const g=_.projection=[];for(let E=0;E<this.ngContentSelectors.length;E++){const x=t[E];g.push(null!=x?Array.from(x):null)}}m=function Sg(n,e,t,i,r){const s=t[1],o=function BS(n,e,t){const i=Ke();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),ng(n,i,e,Br(n,e,1,null),t));const r=Vs(e,n,i.directiveStart,i);pt(r,e);const s=Wt(i,e);return s&&pt(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||(Mi(a.index),Zm(t[1],a,0,a.directiveStart,a.directiveEnd,e),Jm(e,o)),o}(b,this.componentDef,p,h,[bM]),to(f,p,null)}finally{aa()}return new JI(this.componentType,m,ss(_,p),p,_)}}class JI extends class HI{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new KI(r),this.componentType=e}get injector(){return new Ir(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class as{}const ls=new Map;class yy extends as{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new py(this);const i=un(e);this._bootstrapComponents=qn(i.bootstrap),this._r3Injector=fg(e,t,[{provide:as,useValue:this},{provide:hi,useValue:this.componentFactoryResolver}],de(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=mt.THROW_IF_NOT_FOUND,i=q.Default){return e===mt||e===as||e===qu?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 bd extends class tx{}{constructor(e){super(),this.moduleType=e,null!==un(e)&&function nx(n){const e=new Set;!function t(i){const r=un(i,!0),s=r.id;null!==s&&(function gy(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${de(e)} vs ${de(e.name)}`)}(s,ls.get(s),i),ls.set(s,i));const o=qn(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new yy(this.moduleType,e)}}function vy(n,e,t,i,r,s){const o=e+t;return gt(n,o,r)?function Xn(n,e,t){return n[e]=t}(n,o+1,s?i.call(s,r):i(r)):function po(n,e){const t=n[e];return t===G?void 0:t}(n,o+1)}function Sy(n,e,t){const i=n+20,r=C(),s=Dr(r,i);return function mo(n,e){return n[1].data[e].pure}(r,i)?vy(r,function Ct(){const n=W.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}(),e,s.transform,t,s):s.transform(t)}function wd(n){return e=>{setTimeout(n,void 0,e)}}const Ve=class yx extends y{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=wd(l),a&&(a=wd(a)),c&&(c=wd(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof R&&e.add(u),u}};function vx(){return this._results[zr()]()}class cs{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=zr(),i=cs.prototype;i[t]||(i[t]=vx)}get changes(){return this._changes||(this._changes=new Ve)}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=fn(e);(this._changesDetected=!function CD(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 kn=(()=>{class n{}return n.__NG_ELEMENT_ID__=Cx,n})();const bx=kn,wx=class extends bx{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=eo(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)),to(t,i,e),new fo(i)}};function Cx(){return Wa(Ke(),C())}function Wa(n,e){return 4&n.type?new wx(e,n,ss(n,e)):null}let It=(()=>{class n{}return n.__NG_ELEMENT_ID__=Ex,n})();function Ex(){return Iy(Ke(),C())}const Dx=It,My=class extends Dx{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return ss(this._hostTNode,this._hostLView)}get injector(){return new Ir(this._hostTNode,this._hostLView)}get parentInjector(){const e=pa(this._hostTNode,this._hostLView);if(bp(e)){const t=Tr(e,this._hostLView),i=Mr(e);return new Ir(t[1].data[i+8],t)}return new Ir(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Ty(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 js(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 vd(ct(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(as,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 WE(n){return Sn(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new My(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function c0(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],Ap(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function u0(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=fu(s,o),l=i[K],c=Ea(l,o[7]);return null!==c&&function o0(n,e,t,i,r,s){i[0]=r,i[6]=e,Xs(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),Ap(Cd(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=Ty(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=uu(this._lContainer,t);i&&(ya(Cd(this._lContainer),t),em(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=uu(this._lContainer,t);return i&&null!=ya(Cd(this._lContainer),t)?new fo(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function Ty(n){return n[8]}function Cd(n){return n[8]||(n[8]=[])}function Iy(n,e){let t;const i=e[n.index];if(Sn(i))t=i;else{let r;if(8&n.type)r=Ue(i);else{const s=e[K];r=s.createComment("");const o=Wt(n,e);Xi(s,Ea(s,o),r,function p0(n,e){return Fe(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=ig(i,e,r,n),ka(e,t)}return new My(t,n,e)}class Ed{constructor(e){this.queryList=e,this.matches=null}clone(){return new Ed(this.queryList)}setDirty(){this.queryList.setDirty()}}class Dd{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 Dd(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!==ky(e,t).matches&&this.queries[t].setDirty()}}class xy{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class Sd{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 Sd(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 Md{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 Md(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,Tx(t,s)),this.matchTNodeWithReadOption(e,t,ga(t,e,s,!1,!1))}else i===kn?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,ga(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Se||r===It||r===kn&&4&t.type)this.addMatch(t.index,-2);else{const s=ga(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 Tx(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 xx(n,e,t,i){return-1===t?function Ix(n,e){return 11&n.type?ss(n,e):4&n.type?Wa(n,e):null}(e,n):-2===t?function Ax(n,e,t){return t===Se?ss(e,n):t===kn?Wa(e,n):t===It?Iy(e,n):void 0}(n,e,i):Vs(n,n[1],t,e)}function Ay(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:xx(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function Td(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=Ay(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]&&Td(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];Td(f[1],f,c,i)}}}}}return i}function ei(n){const e=C(),t=re(),i=up();Vc(i+1);const r=ky(t,i);if(n.dirty&&ip(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?Td(t,e,i,[]):Ay(t,e,r,i);n.reset(s,UI),n.notifyOnChanges()}return!0}return!1}function ir(n,e,t){const i=re();i.firstCreatePass&&(Ry(i,new xy(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),Oy(i,C(),e)}function Ga(n,e,t,i){const r=re();if(r.firstCreatePass){const s=Ke();Ry(r,new xy(e,t,i),s.index),function Rx(n,e){const t=n.contentQueries||(n.contentQueries=[]);e!==(t.length?t[t.length-1]:-1)&&t.push(n.queries.length-1,e)}(r,n),2==(2&t)&&(r.staticContentQueries=!0)}Oy(r,C(),t)}function ti(){return function Ox(n,e){return n[19].queries[e].queryList}(C(),up())}function Oy(n,e,t){const i=new cs(4==(4&t));Km(n,e,i,i.destroy),null===e[19]&&(e[19]=new Dd),e[19].queries.push(new Ed(i))}function Ry(n,e,t){null===n.queries&&(n.queries=new Sd),n.queries.track(new Md(e,t))}function ky(n,e){return n.queries.getByIndex(e)}function Py(n,e){return Wa(n,e)}function Ka(...n){}const kd=new O("Application Initializer");let Pd=(()=>{class n{constructor(t){this.appInits=t,this.resolve=Ka,this.reject=Ka,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(od(s))t.push(s);else if(eT(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(kd,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _o=new O("AppId",{providedIn:"root",factory:function Qy(){return`${Fd()}${Fd()}${Fd()}`}});function Fd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Zy=new O("Platform Initializer"),Xa=new O("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Kx=new O("appBootstrapListener"),fi=new O("LocaleId",{providedIn:"root",factory:()=>wa(fi,q.Optional|q.SkipSelf)||function Xx(){return"undefined"!=typeof $localize&&$localize.locale||Va}()}),eA=(()=>Promise.resolve(0))();function Nd(n){"undefined"==typeof Zone?eA.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ue{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ve(!1),this.onMicrotaskEmpty=new Ve(!1),this.onStable=new Ve(!1),this.onError=new Ve(!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 tA(){let n=pe.requestAnimationFrame,e=pe.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 rA(n){const e=()=>{!function iA(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(pe,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Bd(n),n.isCheckStableRunning=!0,Ld(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Bd(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return Jy(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),ev(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return Jy(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),ev(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Bd(n),Ld(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(!ue.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ue.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,nA,Ka,Ka);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 nA={};function Ld(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 Bd(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Jy(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function ev(n){n._nesting--,Ld(n)}class sA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ve,this.onMicrotaskEmpty=new Ve,this.onStable=new Ve,this.onError=new Ve}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 Vd=(()=>{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:()=>{ue.assertNotInAngularZone(),Nd(()=>{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())Nd(()=>{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(ue))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})(),oA=(()=>{class n{constructor(){this._applications=new Map,Hd.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 Hd.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class aA{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let Hd=new aA,rr=null;const tv=new O("AllowMultipleToken"),nv=new O("PlatformOnDestroy");function iv(n,e,t=[]){const i=`Platform: ${e}`,r=new O(i);return(s=[])=>{let o=jd();if(!o||o.injector.get(tv,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function dA(n){if(rr&&!rr.get(tv,!1))throw new T(400,"");rr=n;const e=n.get(rv),t=n.get(Zy,null);t&&t.forEach(i=>i())}(function fA(n=[],e){return mt.create({name:e,providers:[{provide:Yu,useValue:"platform"},{provide:nv,useValue:()=>rr=null},...n]})}(a,i))}return function hA(n){const e=jd();if(!e)throw new T(401,"");return e}()}}function jd(){var n;return null!==(n=null==rr?void 0:rr.get(rv))&&void 0!==n?n:null}let rv=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function pA(n,e){let t;return t="noop"===n?new sA:("zone.js"===n?void 0:n)||new ue({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:ue,useValue:a}];return a.run(()=>{const c=mt.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(Ii,null);if(!d)throw new T(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{zd(this._modules,u),h.unsubscribe()})}),function mA(n,e,t){try{const i=t();return od(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(Pd);return h.runInitializers(),h.donePromise.then(()=>(function WT(n){$t(n,"Expected localeId to be defined"),"string"==typeof n&&(j_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(fi,Va)||Va),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=sv({},i);return function cA(n,e,t){const i=new bd(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(yo);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new T(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 T(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(nv,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(w(mt))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function sv(n,e){return Array.isArray(e)?e.reduce(sv,n):Object.assign(Object.assign({},n),e)}let yo=(()=>{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 Z(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new Z(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{ue.assertNotInAngularZone(),Nd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{ue.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=zi(o,a.pipe(Hf()))}bootstrap(t,i){if(!this._initStatus.done)throw new T(405,"");let r;r=t instanceof hy?t:this._injector.get(hi).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function uA(n){return n.isBoundToModule}(r)?void 0:this._injector.get(as),a=r.create(mt.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Vd,null),u=c&&a.injector.get(oA);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),zd(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new T(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;zd(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Kx,[]).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(ue),w(mt),w(Ii),w(Pd))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function zd(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let av=!0,Oi=(()=>{class n{}return n.__NG_ELEMENT_ID__=yA,n})();function yA(n){return function vA(n,e,t){if(na(n)&&!t){const i=Gt(n.index,e);return new fo(i,i)}return 47&n.type?new fo(e[16],e):null}(Ke(),C(),16==(16&n))}class hv{constructor(){}supports(e){return io(e)}create(e){return new SA(e)}}const DA=(n,e)=>e;class SA{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||DA}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,s=null;for(;t||i;){const o=!i||t&&t.currentIndex<pv(i,r,s)?t:i,a=pv(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&e(o,a,l)}}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=[]),!io(e))throw new T(900,"");return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,s,o,t=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),i=!0),t=t._next}else r=0,function AM(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[zr()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{o=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),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;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=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new MA(t,i),s,r),e}_verifyReinsertion(e,t,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),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,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new fv),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._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 fv),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 MA{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 TA{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 i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class fv{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new TA,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.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 pv(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}class mv{constructor(){}supports(e){return e instanceof Map||ed(e)}create(){return new IA}}class IA{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||ed(e)))throw new T(900,"")}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,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._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 r=this._records.get(e);this._maybeAddToChanges(r,t);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new xA(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,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(i=>t(e[i],i))}}class xA{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function gv(){return new Ja([new hv])}let Ja=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||gv()),deps:[[n,new Gs,new Ki]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new T(901,"")}}return n.\u0275prov=P({token:n,providedIn:"root",factory:gv}),n})();function _v(){return new vo([new mv])}let vo=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||_v()),deps:[[n,new Gs,new Ki]]}}find(t){const i=this.factories.find(s=>s.supports(t));if(i)return i;throw new T(901,"")}}return n.\u0275prov=P({token:n,providedIn:"root",factory:_v}),n})();const RA=iv(null,"core",[]);let kA=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(w(yo))},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({}),n})(),el=null;function Ri(){return el}const te=new O("DocumentToken");let bo=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:function(){return function LA(){return w(yv)}()},providedIn:"platform"}),n})(),yv=(()=>{class n extends bo{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ri().getBaseHref(this._doc)}onPopState(t){const i=Ri().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Ri().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,i,r){vv()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){vv()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(w(te))},n.\u0275prov=P({token:n,factory:function(){return function BA(){return new yv(w(te))}()},providedIn:"platform"}),n})();function vv(){return!!window.history.pushState}function bv(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function wv(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function or(n){return n&&"?"!==n[0]?"?"+n:n}let qd=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:function(){return function VA(n){const e=w(te).location;return new jA(w(bo),e&&e.origin||"")}()},providedIn:"root"}),n})();const HA=new O("appBaseHref");let jA=(()=>{class n extends qd{constructor(t,i){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return bv(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+or(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,s){const o=this.prepareExternalUrl(r+or(s));this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,s){const o=this.prepareExternalUrl(r+or(s));this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return n.\u0275fac=function(t){return new(t||n)(w(bo),w(HA,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})(),Cv=(()=>{class n{constructor(t,i){this._subject=new Ve,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=wv(Ev(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+or(i))}normalize(t){return n.stripTrailingSlash(function $A(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,Ev(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+or(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+or(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return n.normalizeQueryParams=or,n.joinWithSlash=bv,n.stripTrailingSlash=wv,n.\u0275fac=function(t){return new(t||n)(w(qd),w(bo))},n.\u0275prov=P({token:n,factory:function(){return function zA(){return new Cv(w(qd),w(bo))}()},providedIn:"root"}),n})();function Ev(n){return n.replace(/\/index.html$/,"")}let Eo=(()=>{class n{constructor(t,i,r,s){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(io(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${de(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(t){return new(t||n)(v(Ja),v(vo),v(Se),v(ho))},n.\u0275dir=ye({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class IO{constructor(e,t,i,r){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Rv=(()=>{class n{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new IO(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),kv(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{kv(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(v(It),v(kn),v(Ja))},n.\u0275dir=ye({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function kv(n,e){n.context.$implicit=e.item}let Do=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new xO,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Pv("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Pv("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(v(It),v(kn))},n.\u0275dir=ye({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class xO{constructor(){this.$implicit=null,this.ngIf=null}}function Pv(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${de(e)}'.`)}const Fv="browser";class sh{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Mo=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const i=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=ye({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),oh=(()=>{class n{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new sh(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(v(It),v(kn),v(Mo,9))},n.\u0275dir=ye({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),Hv=(()=>{class n{constructor(t,i,r){r._addDefault(new sh(t,i))}}return n.\u0275fac=function(t){return new(t||n)(v(It),v(kn),v(Mo,9))},n.\u0275dir=ye({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),ah=(()=>{class n{constructor(t,i,r){this._ngEl=t,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,i){const[r,s]=t.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(vo),v(ho))},n.\u0275dir=ye({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),zv=(()=>{class n{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(t){return new(t||n)(v(It))},n.\u0275dir=ye({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Yi]}),n})();class aR{createSubscription(e,t){return e.subscribe({next:t,error:i=>{throw i}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class lR{createSubscription(e,t){return e.then(t,i=>{throw i})}dispose(e){}onDestroy(e){}}const cR=new lR,uR=new aR;let $v=(()=>{class n{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(od(t))return cR;if(Yg(t))return uR;throw function Fn(n,e){return new T(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(t){return new(t||n)(v(Oi,16))},n.\u0275pipe=kt({name:"async",type:n,pure:!1}),n})(),hl=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({}),n})();class uh extends class AR extends class NA{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function FA(n){el||(el=n)}(new uh)}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 OR(){return To=To||document.querySelector("base"),To?To.getAttribute("href"):null}();return null==t?null:function RR(n){fl=fl||document.createElement("a"),fl.setAttribute("href",n);const e=fl.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){To=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function MO(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 fl,To=null;const Gv=new O("TRANSITION_ID"),PR=[{provide:kd,useFactory:function kR(n,e,t){return()=>{t.get(Pd).donePromise.then(()=>{const i=Ri(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[Gv,te,mt],multi:!0}];class dh{static init(){!function lA(n){Hd=n}(new dh)}addToWindow(e){pe.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},pe.getAllAngularTestabilities=()=>e.getAllTestabilities(),pe.getAllAngularRootElements=()=>e.getAllRootElements(),pe.frameworkStabilizers||(pe.frameworkStabilizers=[]),pe.frameworkStabilizers.push(i=>{const r=pe.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?Ri().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let FR=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const pl=new O("EventManagerPlugins");let ml=(()=>{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(pl),w(ue))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();class qv{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=Ri().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let Yv=(()=>{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=P({token:n,factory:n.\u0275fac}),n})(),Io=(()=>{class n extends Yv{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(Kv),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Kv))}}return n.\u0275fac=function(t){return new(t||n)(w(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();function Kv(n){Ri().remove(n)}const hh={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/"},fh=/%COMP%/g;function gl(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?gl(n,r,t):(r=r.replace(fh,n),t.push(r))}return t}function Zv(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let _l=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ph(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case En.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new jR(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case En.ShadowDom:return new zR(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=gl(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(ml),w(Io),w(_o))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();class ph{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(hh[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=hh[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=hh[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&(Yt.DashCase|Yt.Important)?e.style.setProperty(t,i,r&Yt.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&Yt.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,Zv(i)):this.eventManager.addEventListener(e,t,Zv(i))}}class jR extends ph{constructor(e,t,i,r){super(e),this.component=i;const s=gl(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function BR(n){return"_ngcontent-%COMP%".replace(fh,n)}(r+"-"+i.id),this.hostAttr=function VR(n){return"_nghost-%COMP%".replace(fh,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 zR extends ph{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=gl(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 $R=(()=>{class n extends qv{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(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const eb=["alt","control","meta","shift"],WR={"\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"},tb={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"},GR={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let qR=(()=>{class n extends qv{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(()=>Ri().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(eb.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 YR(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&&tb.hasOwnProperty(e)&&(e=tb[e]))}return WR[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),eb.forEach(s=>{s!=r&&GR[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(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const ZR=iv(RA,"browser",[{provide:Xa,useValue:Fv},{provide:Zy,useValue:function KR(){uh.makeCurrent(),dh.init()},multi:!0},{provide:te,useFactory:function QR(){return function jE(n){Ac=n}(document),document},deps:[]}]),JR=[{provide:Yu,useValue:"root"},{provide:Ii,useFactory:function XR(){return new Ii},deps:[]},{provide:pl,useClass:$R,multi:!0,deps:[te,ue,Xa]},{provide:pl,useClass:qR,multi:!0,deps:[te]},{provide:_l,useClass:_l,deps:[ml,Io,_o]},{provide:uo,useExisting:_l},{provide:Yv,useExisting:Io},{provide:Io,useClass:Io,deps:[te]},{provide:Vd,useClass:Vd,deps:[ue]},{provide:ml,useClass:ml,deps:[pl,ue]},{provide:class IR{},useClass:FR,deps:[]}];let mh=(()=>{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:_o,useValue:t.appId},{provide:Gv,useExisting:_o},PR]}}}return n.\u0275fac=function(t){return new(t||n)(w(n,12))},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:JR,imports:[hl,kA]}),n})();"undefined"!=typeof window&&window;let yl=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:function(t){let i=null;return i=t?new(t||n):w(rb),i},providedIn:"root"}),n})(),rb=(()=>{class n extends yl{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case le.NONE:return i;case le.HTML:return Wn(i,"HTML")?Kt(i):Em(this._doc,String(i)).toString();case le.STYLE:return Wn(i,"Style")?Kt(i):i;case le.SCRIPT:if(Wn(i,"Script"))return Kt(i);throw new Error("unsafe value used in a script context");case le.URL:return mm(i),Wn(i,"URL")?Kt(i):Qs(String(i));case le.RESOURCE_URL:if(Wn(i,"ResourceURL"))return Kt(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function M0(n){return new w0(n)}(t)}bypassSecurityTrustStyle(t){return function T0(n){return new C0(n)}(t)}bypassSecurityTrustScript(t){return function I0(n){return new E0(n)}(t)}bypassSecurityTrustUrl(t){return function x0(n){return new D0(n)}(t)}bypassSecurityTrustResourceUrl(t){return function A0(n){return new S0(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(w(te))},n.\u0275prov=P({token:n,factory:function(t){let i=null;return i=t?new t:function ck(n){return new rb(n.get(te))}(w(mt)),i},providedIn:"root"}),n})();function ds(n){return null!=n&&"false"!=`${n}`}function sb(n,e=0){return function uk(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}function vl(n){return Array.isArray(n)?n:[n]}function qe(n){return null==n?"":"string"==typeof n?n:`${n}px`}function hs(n){return n instanceof Se?n.nativeElement:n}function Ft(...n){let e=n[n.length-1];return H(e)?(n.pop(),dc(n,e)):fc(n)}function _h(n,e,t,i){return dt(t)&&(i=t,t=void 0),i?_h(n,e,t).pipe(A(r=>ze(r)?i(...r):i(r))):new Z(r=>{ob(n,e,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,t)})}function ob(n,e,t,i,r){let s;if(function fk(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(e,t,r),s=()=>o.removeEventListener(e,t,r)}else if(function hk(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(e,t),s=()=>o.off(e,t)}else if(function dk(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(e,t),s=()=>o.removeListener(e,t)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)ob(n[o],e,t,i,r)}i.add(s)}class pk extends R{constructor(e,t){super()}schedule(e,t=0){return this}}class bl extends pk{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 ab=(()=>{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 Nn extends ab{constructor(e,t=ab.now){super(e,()=>Nn.delegate&&Nn.delegate!==this?Nn.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return Nn.delegate&&Nn.delegate!==this?Nn.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 gk extends Nn{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 mk extends bl{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 yk=1;const vk=Promise.resolve(),wl={};function lb(n){return n in wl&&(delete wl[n],!0)}const cb={setImmediate(n){const e=yk++;return wl[e]=!0,vk.then(()=>lb(e)&&n()),e},clearImmediate(n){lb(n)}},yh=new class wk extends Nn{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 bk extends bl{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=cb.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&&(cb.clearImmediate(t),e.scheduled=void 0)}}),Cl=new Nn(bl);class Ek{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new Dk(e,this.durationSelector))}}class Dk extends xs{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:r}=this;t=r(e)}catch(r){return this.destination.error(r)}const i=As(t,new Is(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function ub(n){return!ze(n)&&n-parseFloat(n)+1>=0}function Mk(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}function db(n,e=Cl){return function Ck(n){return function(t){return t.lift(new Ek(n))}}(()=>function Sk(n=0,e,t){let i=-1;return ub(e)?i=Number(e)<1?1:Number(e):H(e)&&(t=e),H(t)||(t=Cl),new Z(r=>{const s=ub(n)?n:+n-t.now();return t.schedule(Mk,s,{index:0,period:i,subscriber:r})})}(n,e))}function mi(n,e){return function(i){return i.lift(new Tk(n,e))}}class Tk{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Ik(e,this.predicate,this.thisArg))}}class Ik extends k{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)}}function Nt(n){return e=>e.lift(new xk(n))}class xk{constructor(e){this.notifier=e}call(e,t){const i=new Ak(e),r=As(this.notifier,new Is(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class Ak extends xs{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let vh;try{vh="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){vh=!1}let xo,El,ar,wh,Ln=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function kO(n){return n===Fv}(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&&!vh)&&"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(Xa))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({}),n})();function Ao(n){return function Ok(){if(null==xo&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>xo=!0}))}finally{xo=xo||!1}return xo}()?n:!!n.capture}function fb(){if(null==ar){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ar=!1,ar;if("scrollBehavior"in document.documentElement.style)ar=!0;else{const n=Element.prototype.scrollTo;ar=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return ar}function Oo(){if("object"!=typeof document||!document)return 0;if(null==El){const n=document.createElement("div"),e=n.style;n.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const t=document.createElement("div"),i=t.style;i.width="2px",i.height="1px",n.appendChild(t),document.body.appendChild(n),El=0,0===n.scrollLeft&&(n.scrollLeft=1,El=0===n.scrollLeft?1:2),n.remove()}return El}function lr(n){return n.composedPath?n.composedPath()[0]:n.target}function Ch(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const Pk=new O("cdk-dir-doc",{providedIn:"root",factory:function Fk(){return wa(te)}}),Nk=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Dl=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new Ve,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function Lk(n){const e=(null==n?void 0:n.toLowerCase())||"";return"auto"===e&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?Nk.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(w(Pk,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ro=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({}),n})(),Eh=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new y,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new Z(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(db(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ft()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(mi(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,t)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=hs(i),s=t.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>_h(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(w(ue),w(Ln),w(te,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pb=(()=>{class n{constructor(t,i,r,s){this.elementRef=t,this.scrollDispatcher=i,this.ngZone=r,this.dir=s,this._destroyed=new y,this._elementScrolled=new Z(o=>this.ngZone.runOutsideAngular(()=>_h(this.elementRef.nativeElement,"scroll").pipe(Nt(this._destroyed)).subscribe(o)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=r?t.end:t.start),null==t.right&&(t.right=r?t.start:t.end),null!=t.bottom&&(t.top=i.scrollHeight-i.clientHeight-t.bottom),r&&0!=Oo()?(null!=t.left&&(t.right=i.scrollWidth-i.clientWidth-t.left),2==Oo()?t.left=t.right:1==Oo()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=i.scrollWidth-i.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const i=this.elementRef.nativeElement;fb()?i.scrollTo(t):(null!=t.top&&(i.scrollTop=t.top),null!=t.left&&(i.scrollLeft=t.left))}measureScrollOffset(t){const i="left",r="right",s=this.elementRef.nativeElement;if("top"==t)return s.scrollTop;if("bottom"==t)return s.scrollHeight-s.clientHeight-s.scrollTop;const o=this.dir&&"rtl"==this.dir.value;return"start"==t?t=o?r:i:"end"==t&&(t=o?i:r),o&&2==Oo()?t==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:o&&1==Oo()?t==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:t==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(Eh),v(ue),v(Dl,8))},n.\u0275dir=ye({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),mb=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new y,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,s=r.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(db(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(w(Ln),w(ue),w(te,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Sl=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({}),n})(),Dh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({imports:[[Ro,bh,Sl],Ro,Sl]}),n})();class Sh{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class gb extends Sh{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class Mh extends Sh{constructor(e,t,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class Hk extends Sh{constructor(e){super(),this.element=e instanceof Se?e.nativeElement:e}}class _b extends class jk{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof gb?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Mh?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof Hk?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(e,t,i,r,s){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(e){const i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let zk=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({}),n})();const $k=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),Uk=new Z(n=>n.complete());function yb(n){return n?function Wk(n){return new Z(e=>n.schedule(()=>e.complete()))}(n):Uk}function gi(n){return e=>0===n?yb():e.lift(new Gk(n))}class Gk{constructor(e){if(this.total=e,this.total<0)throw new $k}call(e,t){return t.subscribe(new qk(e,this.total))}}class qk extends k{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()))}}const vb=fb();class Yk{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=qe(-this._previousScrollPosition.left),e.style.top=qe(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,i=e.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),vb&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),vb&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class Kk{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class bb{enable(){}disable(){}attach(){}}function Th(n,e){return e.some(t=>n.bottom<t.top||n.top>t.bottom||n.right<t.left||n.left>t.right)}function wb(n,e){return e.some(t=>n.top<t.top||n.bottom>t.bottom||n.left<t.left||n.right>t.right)}class Xk{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Th(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Qk=(()=>{class n{constructor(t,i,r,s){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new bb,this.close=o=>new Kk(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new Yk(this._viewportRuler,this._document),this.reposition=o=>new Xk(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(t){return new(t||n)(w(Eh),w(mb),w(ue),w(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Cb{constructor(e){if(this.scrollStrategy=new bb,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class Zk{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}class Jk{constructor(e,t,i,r,s,o,a,l,c){this._portalOutlet=e,this._host=t,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new y,this._attachments=new y,this._detachments=new y,this._locationChanges=R.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new y,this._outsidePointerEvents=new y,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(gi(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){var e;const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(e=this._host)||void 0===e||e.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=qe(this._config.width),e.height=qe(this._config.height),e.minWidth=qe(this._config.minWidth),e.minHeight=qe(this._config.minHeight),e.maxWidth=qe(this._config.maxWidth),e.maxHeight=qe(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(!e)return;let t;const i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),this._disposeBackdrop(e)),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(e,t,i){const r=vl(t||[]).filter(s=>!!s);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(Nt(zi(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.remove(),this._backdropElement===e&&(this._backdropElement=null))}}let Ml=(()=>{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||Ch()){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),Ch()?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(te),w(Ln))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Eb="cdk-overlay-connected-position-bounding-box",eP=/([A-Za-z%]+)$/;class tP{constructor(e,t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new y,this._resizeSubscription=R.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(Eb),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?s.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:t})}if(s.length){let a=null,l=-1;for(const c of s){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&cr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Eb),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let r,s;if("center"==i.originX)r=e.left+e.width/2;else{const o=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==i.originX?o:a}return t.left<0&&(r-=t.left),s="center"==i.originY?e.top+e.height/2:"top"==i.originY?e.top:e.bottom,t.top<0&&(s-=t.top),{x:r,y:s}}_getOverlayPoint(e,t,i){let r,s;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,s="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,t,i,r){const s=Sb(t);let{x:o,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-i.height,p=this._subtractOverflows(s.width,0-o,o+s.width-i.width),m=this._subtractOverflows(s.height,h,f),_=p*m;return{visibleArea:_,isCompletelyWithinViewport:s.width*s.height===_,fitsInViewportVertically:m===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,s=i.right-t.x,o=Db(this._overlayRef.getConfig().minHeight),a=Db(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=s;return(e.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=Sb(t),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),a=Math.max(e.y+r.height-s.height,0),l=Math.max(s.top-i.top-e.y,0),c=Math.max(s.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:e.x<this._viewportMargin?s.left-i.left-e.x:0,d=r.height<=s.height?l||-a:e.y<this._viewportMargin?s.top-i.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new Zk(e,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=e.overlayY;i="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(e,t){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===t.overlayY)o=e.y,s=i.height-o+this._viewportMargin;else if("bottom"===t.overlayY)a=i.height-e.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;s=2*f,o=e.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)d=e.x,u=i.right-e.x;else{const f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=qe(i.height),r.top=qe(i.top),r.bottom=qe(i.bottom),r.width=qe(i.width),r.left=qe(i.left),r.right=qe(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=qe(s)),o&&(r.maxWidth=qe(o))}this._lastBoundingBoxSize=i,cr(this._boundingBox.style,r)}_resetBoundingBoxStyles(){cr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){cr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();cr(i,this._getExactOverlayY(t,e,u)),cr(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=qe(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=qe(o.maxWidth):s&&(i.maxWidth="")),cr(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=qe(s.y),r}_getExactOverlayX(e,t,i){let o,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=qe(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:wb(e,i),isOriginOutsideView:Th(e,i),isOverlayClipped:wb(t,i),isOverlayOutsideView:Th(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&vl(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof Se)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function cr(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Db(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(eP);return t&&"px"!==t?null:parseFloat(e)}return n||null}function Sb(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Mb="cdk-global-overlay-wrapper";class nP{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Mb),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=l?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,l?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(Mb),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let iP=(()=>{class n{constructor(t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new nP}flexibleConnectedTo(t){return new tP(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(w(mb),w(te),w(Ln),w(Ml))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Tb=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(w(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rP=(()=>{class n extends Tb{constructor(t){super(t),this._keydownListener=i=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){r[s]._keydownEvents.next(i);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(t){return new(t||n)(w(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sP=(()=>{class n extends Tb{constructor(t,i){super(t),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=lr(r)},this._clickListener=r=>{const s=lr(r),o="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(s)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(r)}}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(t){return new(t||n)(w(te),w(Ln))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),oP=0,ps=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new Cb(t);return o.direction=o.direction||this._directionality.value,new Jk(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+oP++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(yo)),new _b(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(w(Qk),w(Ml),w(hi),w(iP),w(rP),w(mt),w(ue),w(te),w(Dl),w(Cv),w(sP))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const cP={provide:new O("cdk-connected-overlay-scroll-strategy"),deps:[ps],useFactory:function lP(n){return()=>n.scrollStrategies.reposition()}};let Ib=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:[ps,cP],imports:[[Ro,zk,Dh],Dh]}),n})();const hP=new class dP extends Nn{}(class uP extends bl{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 xb(n,e){return new Z(e?t=>e.schedule(fP,0,{error:n,subscriber:t}):t=>t.error(n))}function fP({error:n,subscriber:e}){e.error(n)}class Lt{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 Ft(this.value);case"E":return xb(this.error);case"C":return yb()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new Lt("N",e):Lt.undefinedValueNotification}static createError(e){return new Lt("E",void 0,e)}static createComplete(){return Lt.completeNotification}}Lt.completeNotification=new Lt("C"),Lt.undefinedValueNotification=new Lt("N",void 0);class Tl extends k{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(Tl.dispatch,this.delay,new mP(e,this.destination)))}_next(e){this.scheduleMessage(Lt.createNext(e))}_error(e){this.scheduleMessage(Lt.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(Lt.createComplete()),this.unsubscribe()}}class mP{constructor(e,t){this.notification=e,this.destination=t}}class Ab extends y{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 gP(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 Ye;if(this.isStopped||this.hasError?o=R.EMPTY:(this.observers.push(e),o=new Hn(this,e)),r&&e.add(e=new Tl(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||hP).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 gP{constructor(e,t){this.time=e,this.value=t}}function ko(n,e){return"function"==typeof e?t=>t.pipe(ko((i,r)=>hc(n(i,r)).pipe(A((s,o)=>e(i,s,r,o))))):t=>t.lift(new _P(n))}class _P{constructor(e){this.project=e}call(e,t){return t.subscribe(new yP(e,this.project))}}class yP extends xs{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 Is(this),r=this.destination;r.add(i),this.innerSubscription=As(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 Il={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return Il.schedule(n,0);if(void 0===window.requestAnimationFrame)return Il.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let Ih;function TP(n,e,t){let i=t;return function bP(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function CP(n,e){if(!Ih){const t=Element.prototype;Ih=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&Ih.call(n,e)}(n,r)||(i=s,0))),i}class xP{constructor(e,t){this.componentFactory=t.get(hi).resolveComponentFactory(e)}create(e){return new AP(this.componentFactory,e)}}class AP{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new Ab(1),this.events=this.eventEmitters.pipe(ko(i=>zi(...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(ue),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=Il.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 EP(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=mt.create({providers:[],parent:this.injector}),i=function MP(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=TP(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(Oi),this.implementsOnChanges=function wP(n){return"function"==typeof n}(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.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(A(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=Il.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 Zf(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 OP extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Ob(n,e){const t=function SP(n,e){return e.get(hi).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new xP(n,e.injector),r=function DP(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function vP(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends OP{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}class Rb{}const _i="*";function xh(n,e){return{type:7,name:n,definitions:e,options:{}}}function Po(n,e=null){return{type:4,styles:e,timings:n}}function kb(n,e=null){return{type:2,steps:n,options:e}}function Zt(n){return{type:6,styles:n,offset:null}}function xl(n,e,t){return{type:0,name:n,styles:e,options:t}}function kP(n){return{type:5,steps:n}}function Fo(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function Pb(n){Promise.resolve(null).then(n)}class No{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(){Pb(()=>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 Fb{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?Pb(()=>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 ie=!1;function Nb(n){return new T(3e3,ie)}function fF(){return"undefined"!=typeof window&&void 0!==window.document}function Oh(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Pi(n){switch(n.length){case 0:return new No;case 1:return n[0];default:return new Fb(n)}}function Lb(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 m=p,_=u[p];if("offset"!==p)switch(m=e.normalizePropertyName(m,o),_){case"!":_=r[p];break;case _i:_=s[p];break;default:_=e.normalizeStyleValue(p,m,_,o)}f[m]=_}),h||a.push(f),c=f,l=d}),o.length)throw function nF(n){return new T(3502,ie)}();return a}function Rh(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&kh(t,"start",n)));break;case"done":n.onDone(()=>i(t&&kh(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&kh(t,"destroy",n)))}}function kh(n,e,t){const i=t.totalTime,s=Ph(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 Ph(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Jt(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 Bb(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let Fh=(n,e)=>!1,Vb=(n,e,t)=>[],Hb=null;function Nh(n){const e=n.parentNode||n.host;return e===Hb?null:e}(Oh()||"undefined"!=typeof Element)&&(fF()?(Hb=(()=>document.documentElement)(),Fh=(n,e)=>{for(;e;){if(e===n)return!0;e=Nh(e)}return!1}):Fh=(n,e)=>n.contains(e),Vb=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let ur=null,jb=!1;function zb(n){ur||(ur=function mF(){return"undefined"!=typeof document?document.body:null}()||{},jb=!!ur.style&&"WebkitAppearance"in ur.style);let e=!0;return ur.style&&!function pF(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in ur.style,!e&&jb&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in ur.style)),e}const $b=Fh,Ub=Vb;let Wb=(()=>{class n{validateStyleProperty(t){return zb(t)}matchesElement(t,i){return!1}containsElement(t,i){return $b(t,i)}getParentElement(t){return Nh(t)}query(t,i,r){return Ub(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new No(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})(),Lh=(()=>{class n{}return n.NOOP=new Wb,n})();const Bh="ng-enter",Ol="ng-leave",Rl="ng-trigger",kl=".ng-trigger",qb="ng-animating",Vh=".ng-animating";function dr(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Hh(parseFloat(e[1]),e[2])}function Hh(n,e){return"s"===e?1e3*n:n}function Pl(n,e,t){return n.hasOwnProperty("duration")?n:function yF(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(Nb()),{duration:0,delay:0,easing:""};r=Hh(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Hh(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 PP(){return new T(3100,ie)}()),a=!0),s<0&&(e.push(function FP(){return new T(3101,ie)}()),a=!0),a&&e.splice(l,0,Nb())}return{duration:r,delay:s,easing:o}}(n,e,t)}function ms(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function Fi(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else ms(n,t);return t}function Kb(n,e,t){return t?e+":"+t+";":""}function Xb(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=Kb(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=Kb(0,wF(t),n.style[t]));n.setAttribute("style",e)}function ni(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=zh(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),Oh()&&Xb(n))}function hr(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=zh(t);n.style[i]=""}),Oh()&&Xb(n))}function Lo(n){return Array.isArray(n)?1==n.length?n[0]:kb(n):n}const jh=new RegExp("{{\\s*(.+?)\\s*}}","g");function Qb(n){let e=[];if("string"==typeof n){let t;for(;t=jh.exec(n);)e.push(t[1]);jh.lastIndex=0}return e}function Fl(n,e,t){const i=n.toString(),r=i.replace(jh,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function LP(n){return new T(3003,ie)}()),a=""),a.toString()});return r==i?n:r}function Nl(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const bF=/-+([a-z0-9])/g;function zh(n){return n.replace(bF,(...e)=>e[1].toUpperCase())}function wF(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function en(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 BP(n){return new T(3004,ie)}()}}function Zb(n,e){return window.getComputedStyle(n)[e]}function TF(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function IF(n,e,t){if(":"==n[0]){const l=function xF(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 ZP(n){return new T(3016,ie)}()),"* => *"}}(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 QP(n){return new T(3015,ie)}()),e;const r=i[1],s=i[2],o=i[3];e.push(Jb(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(Jb(o,r))}(i,t,e)):t.push(n),t}const Hl=new Set(["true","1"]),jl=new Set(["false","0"]);function Jb(n,e){const t=Hl.has(n)||jl.has(n),i=Hl.has(e)||jl.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?Hl.has(n):jl.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Hl.has(e):jl.has(e)),o&&a}}const AF=new RegExp("s*:selfs*,?","g");function $h(n,e,t,i){return new OF(n).build(e,t,i)}class OF{constructor(e){this._driver=e}build(e,t,i){const r=new PF(t);this._resetContextStyleTimingState(r);const s=en(this,Lo(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 HP(){return new T(3006,ie)}()),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 jP(){return new T(3007,ie)}())}),{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(zl(a)){const l=a;Object.keys(l).forEach(c=>{Qb(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(Nl(s.values()),t.errors.push(function zP(n,e){return new T(3008,ie)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=en(this,Lo(e.animation),t);return{type:1,matchers:TF(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:fr(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>en(this,i,t)),options:fr(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=en(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:fr(e.options)}}visitAnimate(e,t){const i=function NF(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Uh(Pl(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Uh(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=Pl(t,e);return Uh(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:Zt({});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=Zt(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==_i?i.push(o):t.errors.push(function $P(n){return new T(3002,ie)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(zl(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 UP(n,e,t,i,r){return new T(3010,ie)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function vF(n,e,t){const i=e.params||{},r=Qb(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function NP(n){return new T(3001,ie)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function WP(){return new T(3011,ie)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(b=>{const g=this._makeStyleAst(b,t);let E=null!=g.offset?g.offset:function FF(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(zl(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(zl(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(g.styles),x=0;return null!=E&&(s++,x=g.offset=E),l=l||x<0||x>1,a=a||x<c,c=x,o.push(x),g});l&&t.errors.push(function GP(){return new T(3012,ie)}()),a&&t.errors.push(function qP(){return new T(3200,ie)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function YP(){return new T(3202,ie)}()):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,m=t.currentAnimateTimings,_=m.duration;return u.forEach((b,g)=>{const E=h>0?g==f?1:h*g:o[g],x=E*_;t.currentTime=p+m.delay+x,m.duration=x,this._validateStyleAst(b,t),b.offset=E,i.styles.push(b)}),i}visitReference(e,t){return{type:8,animation:en(this,Lo(e.animation),t),options:fr(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:fr(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:fr(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function RF(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(AF,"")),n=n.replace(/@\*/g,kl).replace(/@\w+/g,t=>kl+"-"+t.substr(1)).replace(/:animating/g,Vh),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,Jt(t.collectedStyles,t.currentQuerySelector,{});const a=en(this,Lo(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:fr(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function KP(){return new T(3013,ie)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:Pl(e.timings,t.errors,!0);return{type:12,animation:en(this,Lo(e.animation),t),timings:i,options:null}}}class PF{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 zl(n){return!Array.isArray(n)&&"object"==typeof n}function fr(n){return n?(n=ms(n)).params&&(n.params=function kF(n){return n?ms(n):null}(n.params)):n={},n}function Uh(n,e,t){return{duration:n,delay:e,easing:t}}function Wh(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 $l{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 VF=new RegExp(":enter","g"),jF=new RegExp(":leave","g");function Gh(n,e,t,i,r,s={},o={},a,l,c=[]){return(new zF).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class zF{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new $l;const d=new qh(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),en(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 m=h[p];if(m.element===t){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[Wh(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?dr(i.duration):null,a=null!=i.delay?dr(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),en(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=Ul);const o=dr(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>en(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?dr(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),en(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 Pl(t.params?Fl(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?dr(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ul);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),en(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;en(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Ul={};class qh{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=Ul,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Wl(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=dr(i.duration)),null!=i.delay&&(r.delay=dr(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]=Fl(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 qh(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=Ul,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 $F(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(VF,"."+this._enterClassName)).replace(jF,"."+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 XP(n){return new T(3014,ie)}()),a}}class Wl{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 Wl(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]||_i,this._currentKeyframe[t]=_i}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function UF(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=_i})):Fi(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Fl(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:_i),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=Fi(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==_i&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?Nl(e.values()):[],o=t.size?Nl(t.values()):[];if(i){const a=r[0],l=ms(a);a.offset=0,l.offset=1,r=[a,l]}return Wh(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class $F extends Wl{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=Fi(e[0],!1);l.offset=0,s.push(l);const c=Fi(e[0],!1);c.offset=nw(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=Fi(e[d],!1);h.offset=nw((t+h.offset*i)/o),s.push(h)}i=o,t=0,r="",e=s}return Wh(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function nw(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class Yh{}class WF extends Yh{normalizePropertyName(e,t){return zh(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(GF[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 VP(n,e){return new T(3005,ie)}())}return o+s}}const GF=(()=>function qF(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 iw(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 Kh={};class rw{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function YF(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||Kh,p=this.buildStyles(i,a&&a.params||Kh,d),m=l&&l.params||Kh,_=this.buildStyles(r,m,d),b=new Set,g=new Map,E=new Map,x="void"===r,Y={params:Object.assign(Object.assign({},h),m)},Me=u?[]:Gh(e,t,this.ast.animation,s,o,p,_,Y,c,d);let Oe=0;if(Me.forEach(sn=>{Oe=Math.max(sn.duration+sn.delay,Oe)}),d.length)return iw(t,this._triggerName,i,r,x,p,_,[],[],g,E,Oe,d);Me.forEach(sn=>{const on=sn.element,Ds=Jt(g,on,{});sn.preStyleProps.forEach(Bn=>Ds[Bn]=!0);const vi=Jt(E,on,{});sn.postStyleProps.forEach(Bn=>vi[Bn]=!0),on!==t&&b.add(on)});const rn=Nl(b.values());return iw(t,this._triggerName,i,r,x,p,_,Me,rn,g,E,Oe)}}class KF{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=ms(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=Fl(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class QF{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 KF(r.style,r.options&&r.options.params||{},i)}),sw(this.states,"true","1"),sw(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new rw(e,r,this.states))}),this.fallbackTransition=function ZF(n,e,t){return new rw(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 sw(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const JF=new $l;class eN{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=$h(this._driver,t,i,[]);if(i.length)throw function iF(n){return new T(3503,ie)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=Lb(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=Gh(this._driver,t,s,Bh,Ol,{},{},i,JF,r),o.forEach(u=>{const d=Jt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function rF(){return new T(3300,ie)}()),o=[]),r.length)throw function sF(n){return new T(3504,ie)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,_i)})});const c=Pi(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 oF(n){return new T(3301,ie)}();return t}listen(e,t,i,r){const s=Ph(t,"","","");return Rh(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 ow="ng-animate-queued",Xh="ng-animate-disabled",sN=[],aw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},oN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},_n="__ng_removed";class Qh{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function uN(n){return null!=n?n:null}(i?e.value:e),i){const s=ms(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 Bo="void",Zh=new Qh(Bo);class aN{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,yn(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function aF(n,e){return new T(3302,ie)}();if(null==i||0==i.length)throw function lF(n){return new T(3303,ie)}();if(!function dN(n){return"start"==n||"done"==n}(i))throw function cF(n,e){return new T(3400,ie)}();const s=Jt(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=Jt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(yn(e,Rl),yn(e,Rl+"-"+t),a[t]=Zh),()=>{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 uF(n){return new T(3401,ie)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new Jh(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(yn(e,Rl),yn(e,Rl+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new Qh(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=Zh),c.value!==Bo&&l.value===c.value){if(!function pN(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 m=[],_=s.matchStyles(l.value,l.params,m),b=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{hr(e,_),ni(e,b)})}return}const h=Jt(this._engine.playersByElement,e,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.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||(yn(e,ow),o.onStart(()=>{gs(e,ow)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const _=this._engine.playersByElement.get(e);if(_){let b=_.indexOf(o);b>=0&&_.splice(b,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,kl,!0);i.forEach(r=>{if(r[_n])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,Bo,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&Pi(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]||Zh,u=new Qh(Bo),d=new Jh(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[_n];(!s||s===aw)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){yn(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=Ph(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Rh(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 lN{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 aN(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(Gl(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!Gl(t))return;const s=t[_n];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),yn(e,Xh)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),gs(e,Xh))}removeNode(e,t,i,r){if(Gl(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[_n]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return Gl(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,kl,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Vh,!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 Pi(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[_n];if(i&&i.setForRemoval){if(e[_n]=aw,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(Xh))&&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++)yn(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?Pi(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function dF(n){return new T(3402,ie)}()}_flushAnimations(e,t){const i=new $l,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(I=>{u.add(I);const N=this.driver.query(I,".ng-animate-queued",!0);for(let j=0;j<N.length;j++)u.add(N[j])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=uw(h,this.collectedEnterElements),p=new Map;let m=0;f.forEach((I,N)=>{const j=Bh+m++;p.set(N,j),I.forEach(ae=>yn(ae,j))});const _=[],b=new Set,g=new Set;for(let I=0;I<this.collectedLeaveElements.length;I++){const N=this.collectedLeaveElements[I],j=N[_n];j&&j.setForRemoval&&(_.push(N),b.add(N),j.hasAnimation?this.driver.query(N,".ng-star-inserted",!0).forEach(ae=>b.add(ae)):g.add(N))}const E=new Map,x=uw(h,Array.from(b));x.forEach((I,N)=>{const j=Ol+m++;E.set(N,j),I.forEach(ae=>yn(ae,j))}),e.push(()=>{f.forEach((I,N)=>{const j=p.get(N);I.forEach(ae=>gs(ae,j))}),x.forEach((I,N)=>{const j=E.get(N);I.forEach(ae=>gs(ae,j))}),_.forEach(I=>{this.processLeaveNode(I)})});const Y=[],Me=[];for(let I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(t).forEach(j=>{const ae=j.player,ot=j.element;if(Y.push(ae),this.collectedEnterElements.length){const At=ot[_n];if(At&&At.setForMove){if(At.previousTriggersValues&&At.previousTriggersValues.has(j.triggerName)){const _r=At.previousTriggersValues.get(j.triggerName),Hi=this.statesByElement.get(j.element);Hi&&Hi[j.triggerName]&&(Hi[j.triggerName].value=_r)}return void ae.destroy()}}const si=!d||!this.driver.containsElement(d,ot),an=E.get(ot),Vi=p.get(ot),Re=this._buildInstruction(j,i,Vi,an,si);if(Re.errors&&Re.errors.length)return void Me.push(Re);if(si)return ae.onStart(()=>hr(ot,Re.fromStyles)),ae.onDestroy(()=>ni(ot,Re.toStyles)),void r.push(ae);if(j.isFallbackTransition)return ae.onStart(()=>hr(ot,Re.fromStyles)),ae.onDestroy(()=>ni(ot,Re.toStyles)),void r.push(ae);const YC=[];Re.timelines.forEach(At=>{At.stretchStartingKeyframe=!0,this.disabledNodes.has(At.element)||YC.push(At)}),Re.timelines=YC,i.append(ot,Re.timelines),o.push({instruction:Re,player:ae,element:ot}),Re.queriedElements.forEach(At=>Jt(a,At,[]).push(ae)),Re.preStyleProps.forEach((At,_r)=>{const Hi=Object.keys(At);if(Hi.length){let yr=l.get(_r);yr||l.set(_r,yr=new Set),Hi.forEach(Ff=>yr.add(Ff))}}),Re.postStyleProps.forEach((At,_r)=>{const Hi=Object.keys(At);let yr=c.get(_r);yr||c.set(_r,yr=new Set),Hi.forEach(Ff=>yr.add(Ff))})});if(Me.length){const I=[];Me.forEach(N=>{I.push(function hF(n,e){return new T(3505,ie)}())}),Y.forEach(N=>N.destroy()),this.reportError(I)}const Oe=new Map,rn=new Map;o.forEach(I=>{const N=I.element;i.has(N)&&(rn.set(N,N),this._beforeAnimationBuild(I.player.namespaceId,I.instruction,Oe))}),r.forEach(I=>{const N=I.element;this._getPreviousPlayers(N,!1,I.namespaceId,I.triggerName,null).forEach(ae=>{Jt(Oe,N,[]).push(ae),ae.destroy()})});const sn=_.filter(I=>hw(I,l,c)),on=new Map;cw(on,this.driver,g,c,_i).forEach(I=>{hw(I,l,c)&&sn.push(I)});const vi=new Map;f.forEach((I,N)=>{cw(vi,this.driver,new Set(I),l,"!")}),sn.forEach(I=>{const N=on.get(I),j=vi.get(I);on.set(I,Object.assign(Object.assign({},N),j))});const Bn=[],Ss=[],Ms={};o.forEach(I=>{const{element:N,player:j,instruction:ae}=I;if(i.has(N)){if(u.has(N))return j.onDestroy(()=>ni(N,ae.toStyles)),j.disabled=!0,j.overrideTotalTime(ae.totalTime),void r.push(j);let ot=Ms;if(rn.size>1){let an=N;const Vi=[];for(;an=an.parentNode;){const Re=rn.get(an);if(Re){ot=Re;break}Vi.push(an)}Vi.forEach(Re=>rn.set(Re,ot))}const si=this._buildAnimation(j.namespaceId,ae,Oe,s,vi,on);if(j.setRealPlayer(si),ot===Ms)Bn.push(j);else{const an=this.playersByElement.get(ot);an&&an.length&&(j.parentPlayer=Pi(an)),r.push(j)}}else hr(N,ae.fromStyles),j.onDestroy(()=>ni(N,ae.toStyles)),Ss.push(j),u.has(N)&&r.push(j)}),Ss.forEach(I=>{const N=s.get(I.element);if(N&&N.length){const j=Pi(N);I.setRealPlayer(j)}}),r.forEach(I=>{I.parentPlayer?I.syncPlayerEvents(I.parentPlayer):I.destroy()});for(let I=0;I<_.length;I++){const N=_[I],j=N[_n];if(gs(N,Ol),j&&j.hasAnimation)continue;let ae=[];if(a.size){let si=a.get(N);si&&si.length&&ae.push(...si);let an=this.driver.query(N,Vh,!0);for(let Vi=0;Vi<an.length;Vi++){let Re=a.get(an[Vi]);Re&&Re.length&&ae.push(...Re)}}const ot=ae.filter(si=>!si.destroyed);ot.length?hN(this,N,ot):this.processLeaveNode(N)}return _.length=0,Bn.forEach(I=>{this.players.push(I),I.onDone(()=>{I.destroy();const N=this.players.indexOf(I);this.players.splice(N,1)}),I.play()}),Bn}elementContainsData(e,t){let i=!1;const r=t[_n];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==Bo;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=Jt(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)})}hr(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 m=p.element;u.add(m);const _=m[_n];if(_&&_.removedBeforeQueried)return new No(p.duration,p.delay);const b=m!==l,g=function fN(n){const e=[];return dw(n,e),e}((i.get(m)||sN).map(Oe=>Oe.getRealPlayer())).filter(Oe=>!!Oe.element&&Oe.element===m),E=s.get(m),x=o.get(m),Y=Lb(0,this._normalizer,0,p.keyframes,E,x),Me=this._buildPlayer(p,Y,g);if(p.subTimeline&&r&&d.add(m),b){const Oe=new Jh(e,a,m);Oe.setRealPlayer(Me),c.push(Oe)}return Me});c.forEach(p=>{Jt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function cN(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=>yn(p,qb));const f=Pi(h);return f.onDestroy(()=>{u.forEach(p=>gs(p,qb)),ni(l,t.toStyles)}),d.forEach(p=>{Jt(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 No(e.duration,e.delay)}}class Jh{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new No,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=>Rh(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){Jt(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 Gl(n){return n&&1===n.nodeType}function lw(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function cw(n,e,t,i,r){const s=[];t.forEach(l=>s.push(lw(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[_n]=oN,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>lw(l,s[a++])),o}function uw(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 yn(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function gs(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function hN(n,e,t){Pi(t).onDone(()=>n.processLeaveNode(e))}function dw(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof Fb?dw(i.players,e):e.push(i)}}function hw(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 ql{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new lN(e,t,i),this._timelineEngine=new eN(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=$h(this._driver,s,l,[]);if(l.length)throw function tF(n,e){return new T(3404,ie)}();a=function XF(n,e,t){return new QF(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]=Bb(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]=Bb(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 gN=(()=>{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&&ni(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ni(this._element,this._initialStyles),this._endStyles&&(ni(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(hr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(hr(this._element,this._endStyles),this._endStyles=null),ni(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ef(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];_N(r)&&(e=e||{},e[r]=n[r])}return e}function _N(n){return"display"===n||"position"===n}class fw{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]:Zb(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class yN{validateStyleProperty(e){return zb(e)}matchesElement(e,t){return!1}containsElement(e,t){return $b(e,t)}getParentElement(e){return Nh(e)}query(e,t,i){return Ub(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 fw);(function CF(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 EF(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]=Zb(n,l)})}}return e}(e,t=t.map(h=>Fi(h,!1)),c);const d=function mN(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=ef(e[0]),e.length>1&&(i=ef(e[e.length-1]))):e&&(t=ef(e)),t||i?new gN(n,t,i):null}(e,t);return new fw(e,t,l,d)}}let vN=(()=>{class n extends Rb{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:En.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?kb(t):t;return pw(this._renderer,null,i,"register",[r]),new bN(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(w(uo),w(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();class bN extends class RP{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new wN(this._id,e,t||{},this._renderer)}}class wN{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 pw(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 pw(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const mw="@.disabled";let CN=(()=>{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 gw("",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 EN(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(uo),w(ql),w(ue))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();class gw{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==mw?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 EN extends gw{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==mw?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 DN(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 SN(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 MN=(()=>{class n extends ql{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(w(te),w(Lh),w(Yh))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const Kl=new O("AnimationModuleType"),_w=[{provide:Rb,useClass:vN},{provide:Yh,useFactory:function TN(){return new WF}},{provide:ql,useClass:MN},{provide:uo,useFactory:function IN(n,e,t){return new CN(n,e,t)},deps:[_l,ql,ue]}],yw=[{provide:Lh,useFactory:()=>new yN},{provide:Kl,useValue:"BrowserAnimations"},..._w],xN=[{provide:Lh,useClass:Wb},{provide:Kl,useValue:"NoopAnimations"},..._w];let vw=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?xN:yw}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:yw,imports:[mh]}),n})();var bw=Lf(289);class AN{constructor(e,t,i,r,s){this.element=e,this.newWidth=t,this.newHeight=i,this.oldWidth=r,this.oldHeight=s}}let ON=(()=>{class n{constructor(t){this.element=t,this.resized=new Ve}ngOnInit(){bw.ResizeSensor&&(this.resizeSensor=new bw.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 AN(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)(v(Se))},n.\u0275dir=ye({type:n,selectors:[["","resized",""]],outputs:{resized:"resized"}}),n})(),RN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({imports:[[]]}),n})(),ww=(()=>{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(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();class kN extends y{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 Ye;return this._value}next(e){super.next(this._value=e)}}function rf(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function yi(){}function tn(n,e,t){return function(r){return r.lift(new YN(n,e,t))}}class YN{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new KN(e,this.nextOrObserver,this.error,this.complete))}}class KN extends k{constructor(e,t,i,r){super(e),this._tapNext=yi,this._tapError=yi,this._tapComplete=yi,this._tapError=i||yi,this._tapComplete=r||yi,dt(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||yi,this._tapError=t.error||yi,this._tapComplete=t.complete||yi)}_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 Xl(n,e=Cl){return t=>t.lift(new XN(n,e))}class XN{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new QN(e,this.dueTime,this.scheduler))}}class QN extends k{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ZN,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function ZN(n){n.debouncedNext()}function Mw(n){return e=>e.lift(new JN(n))}class JN{constructor(e){this.total=e}call(e,t){return t.subscribe(new e1(e,this.total))}}class e1 extends k{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}class n1{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new r1(e,this.compare,this.keySelector))}}class r1 extends k{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))}}let s1=(()=>{class n{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),o1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:[s1]}),n})();function Ql(n,e){return(n.getAttribute(e)||"").match(/\S+/g)||[]}const Iw="cdk-describedby-message-container",xw="cdk-describedby-message",Zl="cdk-describedby-host";let c1=0;const ii=new Map;let nn=null,u1=(()=>{class n{constructor(t){this._document=t}describe(t,i,r){if(!this._canBeDescribed(t,i))return;const s=sf(i,r);"string"!=typeof i?(Aw(i),ii.set(s,{messageElement:i,referenceCount:0})):ii.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(t,s)||this._addMessageReference(t,s)}removeDescription(t,i,r){if(!i||!this._isElementNode(t))return;const s=sf(i,r);if(this._isElementDescribedByMessage(t,s)&&this._removeMessageReference(t,s),"string"==typeof i){const o=ii.get(s);o&&0===o.referenceCount&&this._deleteMessageElement(s)}nn&&0===nn.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll(`[${Zl}]`);for(let i=0;i<t.length;i++)this._removeCdkDescribedByReferenceIds(t[i]),t[i].removeAttribute(Zl);nn&&this._deleteMessagesContainer(),ii.clear()}_createMessageElement(t,i){const r=this._document.createElement("div");Aw(r),r.textContent=t,i&&r.setAttribute("role",i),this._createMessagesContainer(),nn.appendChild(r),ii.set(sf(t,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(t){var i;const r=ii.get(t);null===(i=null==r?void 0:r.messageElement)||void 0===i||i.remove(),ii.delete(t)}_createMessagesContainer(){if(!nn){const t=this._document.getElementById(Iw);null==t||t.remove(),nn=this._document.createElement("div"),nn.id=Iw,nn.style.visibility="hidden",nn.classList.add("cdk-visually-hidden"),this._document.body.appendChild(nn)}}_deleteMessagesContainer(){nn&&(nn.remove(),nn=null)}_removeCdkDescribedByReferenceIds(t){const i=Ql(t,"aria-describedby").filter(r=>0!=r.indexOf(xw));t.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(t,i){const r=ii.get(i);(function a1(n,e,t){const i=Ql(n,e);i.some(r=>r.trim()==t.trim())||(i.push(t.trim()),n.setAttribute(e,i.join(" ")))})(t,"aria-describedby",r.messageElement.id),t.setAttribute(Zl,""),r.referenceCount++}_removeMessageReference(t,i){const r=ii.get(i);r.referenceCount--,function l1(n,e,t){const r=Ql(n,e).filter(s=>s!=t.trim());r.length?n.setAttribute(e,r.join(" ")):n.removeAttribute(e)}(t,"aria-describedby",r.messageElement.id),t.removeAttribute(Zl)}_isElementDescribedByMessage(t,i){const r=Ql(t,"aria-describedby"),s=ii.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(t,i){if(!this._isElementNode(t))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=t.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(t){return new(t||n)(w(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function sf(n,e){return"string"==typeof n?`${e||""}/${n}`:n}function Aw(n){n.id||(n.id=`${xw}-${c1++}`)}class h1 extends class d1{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new y,this._typeaheadSubscription=R.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new y,this.change=new y,e instanceof cs&&e.changes.subscribe(t=>{if(this._activeItem){const r=t.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(tn(t=>this._pressedLetters.push(t)),Xl(e),mi(()=>this._pressedLetters.length>0),A(()=>this._pressedLetters.join(""))).subscribe(t=>{const i=this._getItemsArray();for(let r=1;r<i.length+1;r++){const s=(this._activeItemIndex+r)%i.length,o=i[s];if(!this._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}setActiveItem(e){const t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||rf(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),i="number"==typeof e?e:t.indexOf(e),r=t[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let i=1;i<=t.length;i++){const r=(this._activeItemIndex+e*i+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(!i[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof cs?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}function af(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function lf(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const y1=new O("cdk-input-modality-detector-options"),v1={ignoreKeys:[18,17,224,91,16]},_s=Ao({passive:!0,capture:!0});let b1=(()=>{class n{constructor(t,i,r,s){this._platform=t,this._mostRecentTarget=null,this._modality=new kN(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=lr(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(af(o)?"keyboard":"mouse"),this._mostRecentTarget=lr(o))},this._onTouchstart=o=>{lf(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=lr(o))},this._options=Object.assign(Object.assign({},v1),s),this.modalityDetected=this._modality.pipe(Mw(1)),this.modalityChanged=this.modalityDetected.pipe(function t1(n,e){return t=>t.lift(new n1(n,e))}()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,_s),r.addEventListener("mousedown",this._onMousedown,_s),r.addEventListener("touchstart",this._onTouchstart,_s)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,_s),document.removeEventListener("mousedown",this._onMousedown,_s),document.removeEventListener("touchstart",this._onTouchstart,_s))}}return n.\u0275fac=function(t){return new(t||n)(w(Ln),w(ue),w(te),w(y1,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const C1=new O("cdk-focus-monitor-default-options"),Jl=Ao({passive:!0,capture:!0});let ec=(()=>{class n{constructor(t,i,r,s,o){this._ngZone=t,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new y,this._rootNodeFocusAndBlurListener=a=>{const l=lr(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(t,i=!1){const r=hs(t);if(!this._platform.isBrowser||1!==r.nodeType)return Ft(null);const s=function kk(n){if(function Rk(){if(null==wh){const n="undefined"!=typeof document?document.head:null;wh=!(!n||!n.createShadowRoot&&!n.attachShadow)}return wh}()){const e=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new y,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=hs(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const s=hs(t);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),s=lr(t);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(t,i){this._ngZone.run(()=>t.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Jl),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Jl)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Nt(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Jl),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Jl),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,s)=>{(s===t||r.checkChildren&&s.contains(t))&&i.push([s,r])}),i}}return n.\u0275fac=function(t){return new(t||n)(w(ue),w(Ln),w(b1),w(te,8),w(C1,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const kw="cdk-high-contrast-black-on-white",Pw="cdk-high-contrast-white-on-black",cf="cdk-high-contrast-active";let Fw=(()=>{class n{constructor(t,i){this._platform=t,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(cf),t.remove(kw),t.remove(Pw),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(t.add(cf),t.add(kw)):2===i&&(t.add(cf),t.add(Pw))}}}return n.\u0275fac=function(t){return new(t||n)(w(Ln),w(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),E1=(()=>{class n{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(t){return new(t||n)(w(Fw))},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({imports:[[bh,o1]]}),n})();const S1=new O("mat-sanity-checks",{providedIn:"root",factory:function D1(){return!0}});let ri=(()=>{class n{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!Ch()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(w(Fw),w(S1,8),w(te))},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({imports:[[Ro],Ro]}),n})();function Lw(n){return class extends n{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=ds(e)}}}function Bw(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const i=t||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function Vw(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=ds(e)}}}class T1{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Hw={enterDuration:225,exitDuration:150},uf=Ao({passive:!0}),jw=["mousedown","touchstart"],zw=["mouseup","mouseleave","touchend","touchcancel"];class x1{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=hs(i))}fadeInRipple(e,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Hw),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const o=i.radius||function O1(n,e,t){const i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),a=e-r.left,l=t-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function A1(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new T1(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,r=Object.assign(Object.assign({},Hw),e.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=hs(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(jw))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(zw),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=af(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!lf(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,uf)})})}_removeTriggerEvents(){this._triggerElement&&(jw.forEach(e=>{this._triggerElement.removeEventListener(e,this,uf)}),this._pointerUpEventsRegistered&&zw.forEach(e=>{this._triggerElement.removeEventListener(e,this,uf)}))}}const R1=new O("mat-ripple-global-options");let df=(()=>{class n{constructor(t,i,r,s,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new x1(this,i,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(ue),v(Ln),v(R1,8),v(Kl,8))},n.\u0275dir=ye({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,i){2&t&&Zn("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),$w=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({imports:[[ri,bh],ri]}),n})();const k1=["mat-button",""],P1=["*"],N1=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],L1=Bw(Lw(Vw(class{constructor(n){this._elementRef=n}})));let B1=(()=>{class n extends L1{constructor(t,i,r){super(t),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of N1)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,i){t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(ec),v(Kl,8))},n.\u0275cmp=jn({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,i){if(1&t&&ir(df,5),2&t){let r;ei(r=ti())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,i){2&t&&(Qe("disabled",i.disabled||null),Zn("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Kn],attrs:k1,ngContentSelectors:P1,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,i){1&t&&(Jr(),ce(0,"span",0),er(1),fe(),An(2,"span",1)(3,"span",2)),2&t&&(B(2),Zn("mat-button-ripple-round",i.isRoundButton||i.isIconButton),F("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[df],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),V1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({imports:[[$w,ri],ri]}),n})();function tc(n,e){return new Z(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=hc(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>t.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),t.complete())}}))}})}function Uw(n){return function(t){const i=new j1(n),r=t.lift(i);return i.caught=r}}class j1{constructor(e){this.selector=e}call(e,t){return t.subscribe(new z1(e,this.selector,this.caught))}}class z1 extends xs{constructor(e,t,i){super(e),this.selector=t,this.caught=i}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new Is(this);this.add(i);const r=As(t,i);r!==i&&this.add(r)}}}class U1{constructor(e){this.callback=e}call(e,t){return t.subscribe(new W1(e,this.callback))}}class W1 extends k{constructor(e,t){super(e),this.add(new R(t))}}class q1{}class Ni{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),s=r.toLowerCase(),o=t.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let i=e[t];const r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Ni?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Ni;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Ni?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const s=e.value;if(s){let o=this.headers.get(t);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class Y1{encodeKey(e){return Ww(e)}encodeValue(e){return Ww(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const X1=/%(\d[a-f0-9])/gi,Q1={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Ww(n){return encodeURIComponent(n).replace(X1,(e,t)=>{var i;return null!==(i=Q1[t])&&void 0!==i?i:e})}function Gw(n){return`${n}`}class Li{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Y1,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function K1(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],l=t.get(o)||[];l.push(a),t.set(o,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const i=e.fromObject[t];this.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(i=>{const r=e[i];Array.isArray(r)?r.forEach(s=>{t.push({param:i,value:s,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Li({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(Gw(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let i=this.map.get(e.param)||[];const r=i.indexOf(Gw(e.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class Z1{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function qw(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function Yw(n){return"undefined"!=typeof Blob&&n instanceof Blob}function Kw(n){return"undefined"!=typeof FormData&&n instanceof FormData}class Ho{constructor(e,t,i,r){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function J1(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Ni),this.context||(this.context=new Z1),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+o}}else this.params=new Li,this.urlWithParams=t}serializeBody(){return null===this.body?null:qw(this.body)||Yw(this.body)||Kw(this.body)||function eL(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Li?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Kw(this.body)?null:Yw(this.body)?this.body.type||null:qw(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Li?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var t;const i=e.method||this.method,r=e.url||this.url,s=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,l=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let c=e.headers||this.headers,u=e.params||this.params;const d=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((h,f)=>h.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new Ho(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var ut=(()=>((ut=ut||{})[ut.Sent=0]="Sent",ut[ut.UploadProgress=1]="UploadProgress",ut[ut.ResponseHeader=2]="ResponseHeader",ut[ut.DownloadProgress=3]="DownloadProgress",ut[ut.Response=4]="Response",ut[ut.User=5]="User",ut))();class hf extends class tL{constructor(e,t=200,i="OK"){this.headers=e.headers||new Ni,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(e={}){super(e),this.type=ut.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new hf({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function ff(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Qw=(()=>{class n{constructor(t){this.handler=t}request(t,i,r={}){let s;if(t instanceof Ho)s=t;else{let l,c;l=r.headers instanceof Ni?r.headers:new Ni(r.headers),r.params&&(c=r.params instanceof Li?r.params:new Li({fromObject:r.params})),s=new Ho(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=Ft(s).pipe(function G1(n,e){return Ko(n,e,1)}(l=>this.handler.handle(l)));if(t instanceof Ho||"events"===r.observe)return o;const a=o.pipe(mi(l=>l instanceof hf));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(A(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(A(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(A(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(A(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new Li).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,ff(r,i))}post(t,i,r={}){return this.request("POST",t,ff(r,i))}put(t,i,r={}){return this.request("PUT",t,ff(r,i))}}return n.\u0275fac=function(t){return new(t||n)(w(q1))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const iL=["*"];let nc;function jo(n){var e;return(null===(e=function rL(){if(void 0===nc&&(nc=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(nc=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return nc}())||void 0===e?void 0:e.createHTML(n))||n}function Zw(n){return Error(`Unable to find icon with the name "${n}"`)}function Jw(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function eC(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class pr{constructor(e,t,i){this.url=e,this.svgText=t,this.options=i}}let zo=(()=>{class n{constructor(t,i,r,s){this._httpClient=t,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(t,i,r){return this.addSvgIconInNamespace("",t,i,r)}addSvgIconLiteral(t,i,r){return this.addSvgIconLiteralInNamespace("",t,i,r)}addSvgIconInNamespace(t,i,r,s){return this._addSvgIconConfig(t,i,new pr(r,null,s))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,s){const o=this._sanitizer.sanitize(le.HTML,r);if(!o)throw eC(r);const a=jo(o);return this._addSvgIconConfig(t,i,new pr("",a,s))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,r){return this._addSvgIconSetConfig(t,new pr(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const s=this._sanitizer.sanitize(le.HTML,i);if(!s)throw eC(i);const o=jo(s);return this._addSvgIconSetConfig(t,new pr("",o,r))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const i=this._sanitizer.sanitize(le.RESOURCE_URL,t);if(!i)throw Jw(t);const r=this._cachedIconsByUrl.get(i);return r?Ft(ic(r)):this._loadSvgIconFromConfig(new pr(t,null)).pipe(tn(s=>this._cachedIconsByUrl.set(i,s)),A(s=>ic(s)))}getNamedSvgIcon(t,i=""){const r=tC(i,t);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,t),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(t,o):xb(Zw(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Ft(ic(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(A(i=>ic(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);return r?Ft(r):function H1(...n){if(1===n.length){const e=n[0];if(ze(e))return tc(e,null);if(Ot(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return tc(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return tc(n=1===n.length&&ze(n[0])?n[0]:n,null).pipe(A(t=>e(...t)))}return tc(n,null)}(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(Uw(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(le.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Ft(null)})))).pipe(A(()=>{const o=this._extractIconWithNameFromAnySet(t,i);if(!o)throw Zw(t);return o}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(t)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,t,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(tn(i=>t.svgText=i),A(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Ft(null):this._fetchIcon(t).pipe(tn(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const s=t.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(jo("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString(jo("<svg></svg>")),r=t.attributes;for(let s=0;s<r.length;s++){const{name:o,value:a}=r[s];"id"!==o&&i.setAttribute(o,a)}for(let s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(t.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(t,i){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),i&&i.viewBox&&t.setAttribute("viewBox",i.viewBox),t}_fetchIcon(t){var i;const{url:r,options:s}=t,o=null!==(i=null==s?void 0:s.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function sL(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==r)throw Error(`Cannot fetch icon from URL "${r}".`);const a=this._sanitizer.sanitize(le.RESOURCE_URL,r);if(!a)throw Jw(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(A(u=>jo(u)),function $1(n){return e=>e.lift(new U1(n))}(()=>this._inProgressUrlFetches.delete(a)),Hf());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(tC(t,i),r),this}_addSvgIconSetConfig(t,i){const r=this._iconSetConfigs.get(t);return r?r.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){const i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let r=0;r<this._resolvers.length;r++){const s=this._resolvers[r](i,t);if(s)return aL(s)?new pr(s.url,null,s.options):new pr(s,null)}}}return n.\u0275fac=function(t){return new(t||n)(w(Qw,8),w(yl),w(te,8),w(Ii))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ic(n){return n.cloneNode(!0)}function tC(n,e){return n+":"+e}function aL(n){return!(!n.url||!n.options)}const lL=Bw(class{constructor(n){this._elementRef=n}}),cL=new O("mat-icon-location",{providedIn:"root",factory:function uL(){const n=wa(te),e=n?n.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),nC=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],dL=nC.map(n=>`[${n}]`).join(", "),hL=/^url\(['"]?#(.*?)['"]?\)$/;let fL=(()=>{class n extends lL{constructor(t,i,r,s,o){super(t),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=R.EMPTY,r||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=ds(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const i=t.querySelectorAll("style");for(let s=0;s<i.length;s++)i[s].textContent+=" ";const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=t.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),i&&t.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${t}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(dL),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)nC.forEach(o=>{const a=i[s],l=a.getAttribute(o),c=l?l.match(hL):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[i,r]=this._splitIconName(t);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(gi(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(zo),function _a(n){return function _D(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const s=t[r];if(yp(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(s===e)return t[r+1];r+=2}}}return null}(Ke(),n)}("aria-hidden"),v(cL),v(Ii))},n.\u0275cmp=jn({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,i){2&t&&(Qe("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),Zn("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Kn],ngContentSelectors:iL,decls:1,vars:0,template:function(t,i){1&t&&(Jr(),er(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),pL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({imports:[[ri],ri]}),n})();class mL extends k{notifyNext(e,t,i,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class gL extends k{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 _L(n,e,t,i,r=new gL(n,t,i)){if(!r.closed)return e instanceof Z?e.subscribe(r):uc(e)(r)}const iC={};class vL{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new bL(e,this.resultSelector))}}class bL extends mL{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(iC),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(_L(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]===iC?--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 pf(...n){return function wL(){return Bf(1)}()(Ft(...n))}function rc(...n){const e=n[n.length-1];return H(e)?(n.pop(),t=>pf(n,t,e)):t=>pf(n,t)}const rC=new Set;let ys,CL=(()=>{class n{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):DL}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function EL(n){if(!rC.has(n))try{ys||(ys=document.createElement("style"),ys.setAttribute("type","text/css"),document.head.appendChild(ys)),ys.sheet&&(ys.sheet.insertRule(`@media ${n} {body{ }}`,0),rC.add(n))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return n.\u0275fac=function(t){return new(t||n)(w(Ln))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function DL(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let SL=(()=>{class n{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new y}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return sC(vl(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let s=function yL(...n){let e,t;return H(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&ze(n[0])&&(n=n[0]),fc(n,t).lift(new vL(e))}(sC(vl(t)).map(o=>this._registerQuery(o).observable));return s=pf(s.pipe(gi(1)),s.pipe(Mw(1),Xl(0))),s.pipe(A(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),s={observable:new Z(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(rc(i),A(({matches:o})=>({query:t,matches:o})),Nt(this._destroySubject)),mql:i};return this._queries.set(t,s),s}}return n.\u0275fac=function(t){return new(t||n)(w(CL),w(ue))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function sC(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}const TL={tooltipState:xh("state",[xl("initial, void, hidden",Zt({opacity:0,transform:"scale(0)"})),xl("visible",Zt({transform:"scale(1)"})),Fo("* => visible",Po("200ms cubic-bezier(0, 0, 0.2, 1)",kP([Zt({opacity:0,transform:"scale(0)",offset:0}),Zt({opacity:.5,transform:"scale(0.99)",offset:.5}),Zt({opacity:1,transform:"scale(1)",offset:1})]))),Fo("* => hidden",Po("100ms cubic-bezier(0, 0, 0.2, 1)",Zt({opacity:0})))])},oC="tooltip-panel",aC=Ao({passive:!0}),lC=new O("mat-tooltip-scroll-strategy"),OL={provide:lC,deps:[ps],useFactory:function AL(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},RL=new O("mat-tooltip-default-options",{providedIn:"root",factory:function kL(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let PL=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h,f){this._overlay=t,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=s,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new y,this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(Nt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(t){var i;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=ds(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=sb(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=sb(t)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Nt(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{t.removeEventListener(i,r,aC)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new gb(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Nt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return i.positionChanges.pipe(Nt(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${oC}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Nt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Nt(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Nt(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!rf(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const i=t.getConfig().positionStrategy,r=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),s.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),s.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={originX:"end",originY:"center"});const{x:s,y:o}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:s,originY:o}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={overlayX:"start",overlayY:"center"});const{x:s,y:o}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(gi(1),Nt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){const{overlayY:i,originX:r,originY:s}=t;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===s?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${oC}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,aC)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(t.clientX,t.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const i=this._elementRef.nativeElement,r=i.style;("on"===t||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===t||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(t){!function qg(){throw new Error("invalid")}()},n.\u0275dir=ye({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),FL=(()=>{class n extends PL{constructor(t,i,r,s,o,a,l,c,u,d,h,f){super(t,i,r,s,o,a,l,c,u,d,h,f),this._tooltipComponent=LL}}return n.\u0275fac=function(t){return new(t||n)(v(ps),v(Se),v(Eh),v(It),v(ue),v(Ln),v(u1),v(ec),v(lC),v(Dl,8),v(RL,8),v(te))},n.\u0275dir=ye({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Kn]}),n})(),NL=(()=>{class n{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new y}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const i=t.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(t){return new(t||n)(v(Oi))},n.\u0275dir=ye({type:n}),n})(),LL=(()=>{class n extends NL{constructor(t,i){super(t),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(t){return new(t||n)(v(Oi),v(SL))},n.\u0275cmp=jn({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,i){2&t&&ts("zoom","visible"===i._visibility?1:null)},features:[Kn],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,i){if(1&t&&(ce(0,"div",0),Le("@state.start",function(){return i._animationStart()})("@state.done",function(s){return i._animationDone(s)}),function Dy(n,e){const t=re();let i;const r=n+20;t.firstCreatePass?(i=function fx(n,e){if(e)for(let t=e.length-1;t>=0;t--){const i=e[t];if(n===i.name)return i}}(e,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(r,i.onDestroy)):i=t.data[r];const s=i.factory||(i.factory=qi(i.type)),o=Ci(v);try{const a=fa(!1),l=s();return fa(a),function RM(n,e,t,i){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=i}(t,C(),r,l),l}finally{Ci(o)}}(1,"async"),ns(2),fe()),2&t){let r;Zn("mat-tooltip-handset",null==(r=Sy(1,5,i._isHandset))?null:r.matches),F("ngClass",i.tooltipClass)("@state",i._visibility),B(2),tr(i.message)}},directives:[Eo],pipes:[$v],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[TL.tooltipState]},changeDetection:0}),n})(),BL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:[OL],imports:[[E1,hl,Ib,ri],ri,Sl]}),n})();const VL=new Z(yi);function cC(n){return Boolean(n.parentElement&&"picture"===n.parentElement.nodeName.toLowerCase())}function $o(n){return"img"===n.nodeName.toLowerCase()}function uC(n,e,t){return $o(n)?t&&"srcset"in n?n.srcset=e:n.src=e:n.style.backgroundImage=`url('${e}')`,n}function mf(n){return e=>{const t=e.parentElement.getElementsByTagName("source");for(let i=0;i<t.length;i++){const r=t[i].getAttribute(n);r&&("srcset"in t[i]?t[i].srcset=r:t[i].src=r)}}}const zL=mf("defaultImage"),dC=mf("lazyLoad"),$L=mf("errorImage");function gf(n){return(e,t,i)=>{$o(e)&&cC(e)&&n(e),t&&uC(e,t,i)}}const UL=gf(zL),WL=gf(dC),GL=gf($L);function hC(n,e){n.className=n.className.replace(e,"")}function _f(n,e){n.className.includes(e)||(n.className+=` ${e}`)}class fC extends class KL extends class qL{constructor(){this.navigator=function jL(){return"undefined"!=typeof window?window.navigator:void 0}()}setPlatformId(e){this.platformId=e}onDestroy(e){}onAttributeChange(e){}}{setup(e){UL(e.element,e.defaultImagePath,e.useSrcset),e.imagePath&&_f(e.element,"ng-lazyloading"),function YL(n,e){return n.className&&n.className.includes(e)}(e.element,"ng-lazyloaded")&&hC(e.element,"ng-lazyloaded")}finally(e){_f(e.element,"ng-lazyloaded"),hC(e.element,"ng-lazyloading")}loadImage(e){if(this.skipLazyLoading(e))return[e.imagePath];const{element:t,useSrcset:i,imagePath:r,decode:s}=e;let o;return $o(t)&&cC(t)?(o=t.parentNode.cloneNode(!0).getElementsByTagName("img")[0],dC(o),uC(o,r,i)):(o=new Image,$o(t)&&t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),$o(t)&&t.sizes&&(o.sizes=t.sizes),i&&"srcset"in o?o.srcset=r:o.src=r),s&&o.decode?o.decode().then(()=>r):new Promise((a,l)=>{o.onload=()=>a(r),o.onerror=()=>l(null)})}setErrorImage(e,t){const{element:i,useSrcset:r,errorImagePath:s}=t;GL(i,s,r),_f(i,"ng-failed-lazyloaded")}setLoadedImage(e,t){const{element:i,useSrcset:r}=t;WL(i,e,r)}isDisabled(){return function PO(n){return"server"===n}(this.platformId)&&!this.isBot()}skipLazyLoading(e){return this.isBot(e)}isBot(e){var t;return!!(null===(t=this.navigator)||void 0===t?void 0:t.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(this.navigator.userAgent)}}{constructor(){super(...arguments),this.observers=new WeakMap,this.intersectionSubject=new y,this.uniqKey={}}getObservable(e){if(this.skipLazyLoading(e))return Ft({isIntersecting:!0});if(e.customObservable)return e.customObservable;const t=e.scrollContainer||this.uniqKey,i={root:e.scrollContainer||null};e.offset&&(i.rootMargin=`${e.offset}px`);let r=this.observers.get(t);return r||(r=new IntersectionObserver(s=>this.loadingCallback(s),i),this.observers.set(t,r)),r.observe(e.element),Z.create(s=>{const o=this.intersectionSubject.pipe(mi(a=>a.target===e.element)).subscribe(s);return()=>{o.unsubscribe(),r.unobserve(e.element)}})}isVisible(e){return e.isIntersecting}loadingCallback(e){e.forEach(t=>this.intersectionSubject.next(t))}}const yf=new O("LazyLoadImageHooks");let QL=(()=>{class n{constructor(t,i,r,s){this.onStateChange=new Ve,this.elementRef=t,this.ngZone=i,this.propertyChanges$=new Ab,this.hooks=s,this.hooks.setPlatformId(r),this.uid=Math.random().toString(36).substr(2,9)}ngOnChanges(){!0===this.debug&&!this.debugSubscription&&(this.debugSubscription=this.onStateChange.subscribe(t=>console.log(t))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange,id:this.uid})}ngAfterContentInit(){if(this.hooks.isDisabled())return null;this.ngZone.runOutsideAngular(()=>{this.loadSubscription=this.propertyChanges$.pipe(tn(t=>this.hooks.onAttributeChange(t)),tn(t=>t.onStateChange.emit({reason:"setup"})),tn(t=>this.hooks.setup(t)),ko(t=>t.imagePath?this.hooks.getObservable(t).pipe(function XL(n,e){return t=>t.pipe(tn(i=>e.onStateChange.emit({reason:"observer-emit",data:i})),mi(i=>n.isVisible(i,e)),gi(1),tn(()=>e.onStateChange.emit({reason:"start-loading"})),Ko(()=>n.loadImage(e)),tn(()=>e.onStateChange.emit({reason:"mount-image"})),tn(i=>n.setLoadedImage(i,e)),tn(()=>e.onStateChange.emit({reason:"loading-succeeded"})),A(()=>!0),Uw(i=>(e.onStateChange.emit({reason:"loading-failed",data:i}),n.setErrorImage(i,e),Ft(!1))),tn(()=>{e.onStateChange.emit({reason:"finally"}),n.finally(e)}))}(this.hooks,t)):function HL(){return VL}())).subscribe({next:()=>null})})}ngOnDestroy(){var t,i;this.propertyChanges$.pipe(gi(1)).subscribe({next:r=>this.hooks.onDestroy(r)}).unsubscribe(),null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(i=this.debugSubscription)||void 0===i||i.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(ue),v(Xa),v(yf))},n.\u0275dir=ye({type:n,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange"},features:[Yi]}),n})(),ZL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:[{provide:yf,useClass:fC}]}),n})();class vn{constructor(e,t,i,r){this.left=e,this.top=t,this.right=i,this.bottom=r}static fromElement(e){const{left:t,top:i,right:r,bottom:s}=e.getBoundingClientRect();return 0===t&&0===i&&0===r&&0===s?vn.empty:new vn(t,i,r,s)}static fromWindow(e){return new vn(0,0,e.innerWidth,e.innerHeight)}inflate(e){this.left-=e,this.top-=e,this.right+=e,this.bottom+=e}intersectsWith(e){return e.left<this.right&&this.left<e.right&&e.top<this.bottom&&this.top<e.bottom}getIntersectionWith(e){const t=Math.max(this.left,e.left),i=Math.max(this.top,e.top),r=Math.min(this.right,e.right),s=Math.min(this.bottom,e.bottom);return r>=t&&s>=i?new vn(t,i,r,s):vn.empty}}vn.empty=new vn(0,0,0,0);var Uo="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,JL=function(){for(var n=["Edge","Trident","Firefox"],e=0;e<n.length;e+=1)if(Uo&&navigator.userAgent.indexOf(n[e])>=0)return 1;return 0}(),iB=Uo&&window.Promise?function eB(n){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,n()}))}}:function tB(n){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,n()},JL))}};function pC(n){return n&&"[object Function]"==={}.toString.call(n)}function mr(n,e){if(1!==n.nodeType)return[];var i=n.ownerDocument.defaultView.getComputedStyle(n,null);return e?i[e]:i}function vf(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function Wo(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var e=mr(n);return/(auto|scroll|overlay)/.test(e.overflow+e.overflowY+e.overflowX)?n:Wo(vf(n))}function mC(n){return n&&n.referenceNode?n.referenceNode:n}var gC=Uo&&!(!window.MSInputMethodContext||!document.documentMode),_C=Uo&&/MSIE 10/.test(navigator.userAgent);function bs(n){return 11===n?gC:10===n?_C:gC||_C}function ws(n){if(!n)return document.documentElement;for(var e=bs(10)?document.body:null,t=n.offsetParent||null;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;var i=t&&t.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===mr(t,"position")?ws(t):t:n?n.ownerDocument.documentElement:document.documentElement}function bf(n){return null!==n.parentNode?bf(n.parentNode):n}function sc(n,e){if(!(n&&n.nodeType&&e&&e.nodeType))return document.documentElement;var t=n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=t?n:e,r=t?e:n,s=document.createRange();s.setStart(i,0),s.setEnd(r,0);var o=s.commonAncestorContainer;if(n!==o&&e!==o||i.contains(r))return function rB(n){var e=n.nodeName;return"BODY"!==e&&("HTML"===e||ws(n.firstElementChild)===n)}(o)?o:ws(o);var a=bf(n);return a.host?sc(a.host,e):sc(n,bf(e).host)}function Cs(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",t="top"===e?"scrollTop":"scrollLeft",i=n.nodeName;if("BODY"===i||"HTML"===i){var r=n.ownerDocument.documentElement,s=n.ownerDocument.scrollingElement||r;return s[t]}return n[t]}function sB(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Cs(e,"top"),r=Cs(e,"left"),s=t?-1:1;return n.top+=i*s,n.bottom+=i*s,n.left+=r*s,n.right+=r*s,n}function yC(n,e){var t="x"===e?"Left":"Top",i="Left"===t?"Right":"Bottom";return parseFloat(n["border"+t+"Width"])+parseFloat(n["border"+i+"Width"])}function vC(n,e,t,i){return Math.max(e["offset"+n],e["scroll"+n],t["client"+n],t["offset"+n],t["scroll"+n],bs(10)?parseInt(t["offset"+n])+parseInt(i["margin"+("Height"===n?"Top":"Left")])+parseInt(i["margin"+("Height"===n?"Bottom":"Right")]):0)}function bC(n){var e=n.body,t=n.documentElement,i=bs(10)&&getComputedStyle(t);return{height:vC("Height",e,t,i),width:vC("Width",e,t,i)}}var oB=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")},aB=function(){function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),Es=function(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n},bn=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n};function Bi(n){return bn({},n,{right:n.left+n.width,bottom:n.top+n.height})}function wf(n){var e={};try{if(bs(10)){e=n.getBoundingClientRect();var t=Cs(n,"top"),i=Cs(n,"left");e.top+=t,e.left+=i,e.bottom+=t,e.right+=i}else e=n.getBoundingClientRect()}catch(d){}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===n.nodeName?bC(n.ownerDocument):{},l=n.offsetWidth-(s.width||n.clientWidth||r.width),c=n.offsetHeight-(s.height||n.clientHeight||r.height);if(l||c){var u=mr(n);l-=yC(u,"x"),c-=yC(u,"y"),r.width-=l,r.height-=c}return Bi(r)}function Cf(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=bs(10),r="HTML"===e.nodeName,s=wf(n),o=wf(e),a=Wo(n),l=mr(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);t&&r&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=Bi({top:s.top-o.top-c,left:s.left-o.left-u,width:s.width,height:s.height});if(d.marginTop=0,d.marginLeft=0,!i&&r){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-h,d.bottom-=c-h,d.left-=u-f,d.right-=u-f,d.marginTop=h,d.marginLeft=f}return(i&&!t?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(d=sB(d,e)),d}function lB(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.ownerDocument.documentElement,i=Cf(n,t),r=Math.max(t.clientWidth,window.innerWidth||0),s=Math.max(t.clientHeight,window.innerHeight||0),o=e?0:Cs(t),a=e?0:Cs(t,"left"),l={top:o-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:s};return Bi(l)}function wC(n){var e=n.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===mr(n,"position"))return!0;var t=vf(n);return!!t&&wC(t)}function CC(n){if(!n||!n.parentElement||bs())return document.documentElement;for(var e=n.parentElement;e&&"none"===mr(e,"transform");)e=e.parentElement;return e||document.documentElement}function Ef(n,e,t,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},o=r?CC(n):sc(n,mC(e));if("viewport"===i)s=lB(o,r);else{var a=void 0;"scrollParent"===i?"BODY"===(a=Wo(vf(e))).nodeName&&(a=n.ownerDocument.documentElement):a="window"===i?n.ownerDocument.documentElement:i;var l=Cf(a,o,r);if("HTML"!==a.nodeName||wC(o))s=l;else{var c=bC(n.ownerDocument),u=c.height,d=c.width;s.top+=l.top-l.marginTop,s.bottom=u+l.top,s.left+=l.left-l.marginLeft,s.right=d+l.left}}var h="number"==typeof(t=t||0);return s.left+=h?t:t.left||0,s.top+=h?t:t.top||0,s.right-=h?t:t.right||0,s.bottom-=h?t:t.bottom||0,s}function cB(n){return n.width*n.height}function EC(n,e,t,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===n.indexOf("auto"))return n;var o=Ef(t,i,s,r),a={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},l=Object.keys(a).map(function(h){return bn({key:h},a[h],{area:cB(a[h])})}).sort(function(h,f){return f.area-h.area}),c=l.filter(function(h){return h.width>=t.clientWidth&&h.height>=t.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=n.split("-")[1];return u+(d?"-"+d:"")}function DC(n,e,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=i?CC(e):sc(e,mC(t));return Cf(t,r,i)}function SC(n){var t=n.ownerDocument.defaultView.getComputedStyle(n),i=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function oc(n){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(t){return e[t]})}function MC(n,e,t){t=t.split("-")[0];var i=SC(n),r={width:i.width,height:i.height},s=-1!==["right","left"].indexOf(t),o=s?"top":"left",a=s?"left":"top",l=s?"height":"width",c=s?"width":"height";return r[o]=e[o]+e[l]/2-i[l]/2,r[a]=t===a?e[a]-i[c]:e[oc(a)],r}function Go(n,e){return Array.prototype.find?n.find(e):n.filter(e)[0]}function TC(n,e,t){var i=void 0===t?n:n.slice(0,function uB(n,e,t){if(Array.prototype.findIndex)return n.findIndex(function(r){return r[e]===t});var i=Go(n,function(r){return r[e]===t});return n.indexOf(i)}(n,"name",t));return i.forEach(function(r){r.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=r.function||r.fn;r.enabled&&pC(s)&&(e.offsets.popper=Bi(e.offsets.popper),e.offsets.reference=Bi(e.offsets.reference),e=s(e,r))}),e}function dB(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=DC(this.state,this.popper,this.reference,this.options.positionFixed),n.placement=EC(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.positionFixed=this.options.positionFixed,n.offsets.popper=MC(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",n=TC(this.modifiers,n),this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function IC(n,e){return n.some(function(t){return t.enabled&&t.name===e})}function Df(n){for(var e=[!1,"ms","Webkit","Moz","O"],t=n.charAt(0).toUpperCase()+n.slice(1),i=0;i<e.length;i++){var r=e[i],s=r?""+r+t:n;if(void 0!==document.body.style[s])return s}return null}function hB(){return this.state.isDestroyed=!0,IC(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Df("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function xC(n){var e=n.ownerDocument;return e?e.defaultView:window}function AC(n,e,t,i){var r="BODY"===n.nodeName,s=r?n.ownerDocument.defaultView:n;s.addEventListener(e,t,{passive:!0}),r||AC(Wo(s.parentNode),e,t,i),i.push(s)}function fB(n,e,t,i){t.updateBound=i,xC(n).addEventListener("resize",t.updateBound,{passive:!0});var r=Wo(n);return AC(r,"scroll",t.updateBound,t.scrollParents),t.scrollElement=r,t.eventsEnabled=!0,t}function pB(){this.state.eventsEnabled||(this.state=fB(this.reference,0,this.state,this.scheduleUpdate))}function gB(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function mB(n,e){return xC(n).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function Sf(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function Mf(n,e){Object.keys(e).forEach(function(t){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&Sf(e[t])&&(i="px"),n.style[t]=e[t]+i})}var wB=Uo&&/Firefox/i.test(navigator.userAgent);function OC(n,e,t){var i=Go(n,function(a){return a.name===e}),r=!!i&&n.some(function(a){return a.name===t&&a.enabled&&a.order<i.order});if(!r){var s="`"+e+"`";console.warn("`"+t+"` modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return r}var RC=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Tf=RC.slice(3);function kC(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=Tf.indexOf(n),i=Tf.slice(t+1).concat(Tf.slice(0,t));return e?i.reverse():i}var PB={shift:{order:100,enabled:!0,fn:function OB(n){var e=n.placement,t=e.split("-")[0],i=e.split("-")[1];if(i){var r=n.offsets,s=r.reference,o=r.popper,a=-1!==["bottom","top"].indexOf(t),l=a?"left":"top",c=a?"width":"height",u={start:Es({},l,s[l]),end:Es({},l,s[l]+s[c]-o[c])};n.offsets.popper=bn({},o,u[i])}return n}},offset:{order:200,enabled:!0,fn:function xB(n,e){var l,t=e.offset,r=n.offsets,s=r.popper,o=r.reference,a=n.placement.split("-")[0];return l=Sf(+t)?[+t,0]:function IB(n,e,t,i){var r=[0,0],s=-1!==["right","left"].indexOf(i),o=n.split(/(\+|\-)/).map(function(u){return u.trim()}),a=o.indexOf(Go(o,function(u){return-1!==u.search(/,|\s/)}));o[a]&&-1===o[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[o.slice(0,a).concat([o[a].split(l)[0]]),[o[a].split(l)[1]].concat(o.slice(a+1))]:[o];return c=c.map(function(u,d){var h=(1===d?!s:s)?"height":"width",f=!1;return u.reduce(function(p,m){return""===p[p.length-1]&&-1!==["+","-"].indexOf(m)?(p[p.length-1]=m,f=!0,p):f?(p[p.length-1]+=m,f=!1,p):p.concat(m)},[]).map(function(p){return function TB(n,e,t,i){var r=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+r[1],o=r[2];return s?0===o.indexOf("%")?Bi("%p"===o?t:i)[e]/100*s:"vh"===o||"vw"===o?("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s:s:n}(p,h,e,t)})}),c.forEach(function(u,d){u.forEach(function(h,f){Sf(h)&&(r[d]+=h*("-"===u[f-1]?-1:1))})}),r}(t,s,o,a),"left"===a?(s.top+=l[0],s.left-=l[1]):"right"===a?(s.top+=l[0],s.left+=l[1]):"top"===a?(s.left+=l[0],s.top-=l[1]):"bottom"===a&&(s.left+=l[0],s.top+=l[1]),n.popper=s,n},offset:0},preventOverflow:{order:300,enabled:!0,fn:function AB(n,e){var t=e.boundariesElement||ws(n.instance.popper);n.instance.reference===t&&(t=ws(t));var i=Df("transform"),r=n.instance.popper.style,s=r.top,o=r.left,a=r[i];r.top="",r.left="",r[i]="";var l=Ef(n.instance.popper,n.instance.reference,e.padding,t,n.positionFixed);r.top=s,r.left=o,r[i]=a,e.boundaries=l;var u=n.offsets.popper,d={primary:function(f){var p=u[f];return u[f]<l[f]&&!e.escapeWithReference&&(p=Math.max(u[f],l[f])),Es({},f,p)},secondary:function(f){var p="right"===f?"left":"top",m=u[p];return u[f]>l[f]&&!e.escapeWithReference&&(m=Math.min(u[p],l[f]-("right"===f?u.width:u.height))),Es({},p,m)}};return e.priority.forEach(function(h){var f=-1!==["left","top"].indexOf(h)?"primary":"secondary";u=bn({},u,d[f](h))}),n.offsets.popper=u,n},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function MB(n){var e=n.offsets,t=e.popper,i=e.reference,r=n.placement.split("-")[0],s=Math.floor,o=-1!==["top","bottom"].indexOf(r),a=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return t[a]<s(i[l])&&(n.offsets.popper[l]=s(i[l])-t[c]),t[l]>s(i[a])&&(n.offsets.popper[l]=s(i[a])),n}},arrow:{order:500,enabled:!0,fn:function EB(n,e){var t;if(!OC(n.instance.modifiers,"arrow","keepTogether"))return n;var i=e.element;if("string"==typeof i){if(!(i=n.instance.popper.querySelector(i)))return n}else if(!n.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var r=n.placement.split("-")[0],s=n.offsets,o=s.popper,a=s.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=SC(i)[c];a[f]-p<o[d]&&(n.offsets.popper[d]-=o[d]-(a[f]-p)),a[d]+p>o[f]&&(n.offsets.popper[d]+=a[d]+p-o[f]),n.offsets.popper=Bi(n.offsets.popper);var m=a[d]+a[c]/2-p/2,_=mr(n.instance.popper),b=parseFloat(_["margin"+u]),g=parseFloat(_["border"+u+"Width"]),E=m-n.offsets.popper[d]-b-g;return E=Math.max(Math.min(o[c]-p,E),0),n.arrowElement=i,n.offsets.arrow=(Es(t={},d,Math.round(E)),Es(t,h,""),t),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function SB(n,e){if(IC(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var t=Ef(n.instance.popper,n.instance.reference,e.padding,e.boundariesElement,n.positionFixed),i=n.placement.split("-")[0],r=oc(i),s=n.placement.split("-")[1]||"",o=[];switch(e.behavior){case"flip":o=[i,r];break;case"clockwise":o=kC(i);break;case"counterclockwise":o=kC(i,!0);break;default:o=e.behavior}return o.forEach(function(a,l){if(i!==a||o.length===l+1)return n;i=n.placement.split("-")[0],r=oc(i);var c=n.offsets.popper,u=n.offsets.reference,d=Math.floor,h="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)<d(u.right)||"top"===i&&d(c.bottom)>d(u.top)||"bottom"===i&&d(c.top)<d(u.bottom),f=d(c.left)<d(t.left),p=d(c.right)>d(t.right),m=d(c.top)<d(t.top),_=d(c.bottom)>d(t.bottom),b="left"===i&&f||"right"===i&&p||"top"===i&&m||"bottom"===i&&_,g=-1!==["top","bottom"].indexOf(i),Y=!!e.flipVariations&&(g&&"start"===s&&f||g&&"end"===s&&p||!g&&"start"===s&&m||!g&&"end"===s&&_)||!!e.flipVariationsByContent&&(g&&"start"===s&&p||g&&"end"===s&&f||!g&&"start"===s&&_||!g&&"end"===s&&m);(h||b||Y)&&(n.flipped=!0,(h||b)&&(i=o[l+1]),Y&&(s=function DB(n){return"end"===n?"start":"start"===n?"end":n}(s)),n.placement=i+(s?"-"+s:""),n.offsets.popper=bn({},n.offsets.popper,MC(n.instance.popper,n.offsets.reference,n.placement)),n=TC(n.instance.modifiers,n,"flip"))}),n},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function kB(n){var e=n.placement,t=e.split("-")[0],i=n.offsets,r=i.popper,s=i.reference,o=-1!==["left","right"].indexOf(t),a=-1===["top","left"].indexOf(t);return r[o?"left":"top"]=s[t]-(a?r[o?"width":"height"]:0),n.placement=oc(e),n.offsets.popper=Bi(r),n}},hide:{order:800,enabled:!0,fn:function RB(n){if(!OC(n.instance.modifiers,"hide","preventOverflow"))return n;var e=n.offsets.reference,t=Go(n.instance.modifiers,function(i){return"preventOverflow"===i.name}).boundaries;if(e.bottom<t.top||e.left>t.right||e.top>t.bottom||e.right<t.left){if(!0===n.hide)return n;n.hide=!0,n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1,n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function CB(n,e){var t=e.x,i=e.y,r=n.offsets.popper,s=Go(n.instance.modifiers,function(E){return"applyStyle"===E.name}).gpuAcceleration;void 0!==s&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var p,m,o=void 0!==s?s:e.gpuAcceleration,a=ws(n.instance.popper),l=wf(a),c={position:r.position},u=function bB(n,e){var t=n.offsets,i=t.popper,s=Math.round,o=Math.floor,a=function(b){return b},l=s(t.reference.width),c=s(i.width),u=-1!==["left","right"].indexOf(n.placement),d=-1!==n.placement.indexOf("-"),p=e?u||d||l%2==c%2?s:o:a,m=e?s:a;return{left:p(l%2==1&&c%2==1&&!d&&e?i.left-1:i.left),top:m(i.top),bottom:m(i.bottom),right:p(i.right)}}(n,window.devicePixelRatio<2||!wB),d="bottom"===t?"top":"bottom",h="right"===i?"left":"right",f=Df("transform");if(m="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+u.bottom:-l.height+u.bottom:u.top,p="right"===h?"HTML"===a.nodeName?-a.clientWidth+u.right:-l.width+u.right:u.left,o&&f)c[f]="translate3d("+p+"px, "+m+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var b="right"===h?-1:1;c[d]=m*("bottom"===d?-1:1),c[h]=p*b,c.willChange=d+", "+h}return n.attributes=bn({},{"x-placement":n.placement},n.attributes),n.styles=bn({},c,n.styles),n.arrowStyles=bn({},n.offsets.arrow,n.arrowStyles),n},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function yB(n){return Mf(n.instance.popper,n.styles),function _B(n,e){Object.keys(e).forEach(function(t){!1!==e[t]?n.setAttribute(t,e[t]):n.removeAttribute(t)})}(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&Mf(n.arrowElement,n.arrowStyles),n},onLoad:function vB(n,e,t,i,r){var s=DC(r,e,n,t.positionFixed),o=EC(t.placement,s,e,n,t.modifiers.flip.boundariesElement,t.modifiers.flip.padding);return e.setAttribute("x-placement",o),Mf(e,{position:t.positionFixed?"fixed":"absolute"}),t},gpuAcceleration:void 0}},FB={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:PB},ac=function(){function n(e,t){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oB(this,n),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=iB(this.update.bind(this)),this.options=bn({},n.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(bn({},n.Defaults.modifiers,r.modifiers)).forEach(function(o){i.options.modifiers[o]=bn({},n.Defaults.modifiers[o]||{},r.modifiers?r.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return bn({name:o},i.options.modifiers[o])}).sort(function(o,a){return o.order-a.order}),this.modifiers.forEach(function(o){o.enabled&&pC(o.onLoad)&&o.onLoad(i.reference,i.popper,i.options,o,i.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return aB(n,[{key:"update",value:function(){return dB.call(this)}},{key:"destroy",value:function(){return hB.call(this)}},{key:"enableEventListeners",value:function(){return pB.call(this)}},{key:"disableEventListeners",value:function(){return gB.call(this)}}]),n}();ac.Utils=("undefined"!=typeof window?window:global).PopperUtils,ac.placements=RC,ac.Defaults=FB;const NB=ac,LB=["popperViewRef"];function BB(n,e){1&n&&(ce(0,"div",5),er(1),fe()),2&n&&F("innerHTML",$().text,Eu)}function VB(n,e){1&n&&(ce(0,"div",6),er(1,1),fe())}const PC=["*","*"];let gr=(()=>{class n{}return n.CLICK="click",n.HOVER="hover",n.MOUSEDOWN="mousedown",n.NONE="none",n})(),FC=(()=>{class n{}return n.Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.TopStart="top-start",n.BottomStart="bottom-start",n.LeftStart="left-start",n.RightStart="right-start",n.TopEnd="top-end",n.BottomEnd="bottom-end",n.LeftEnd="left-end",n.RightEnd="right-end",n.Auto="auto",n.AutoStart="auto-start",n.AutoEnd="auto-end",n})(),NC=(()=>{class n{constructor(t,i,r,s){this.elemRef=t,this.renderer=i,this.viewRef=r,this.CDR=s,this.popperOptions={disableAnimation:!1,disableDefaultStyling:!1,placement:FC.Auto,boundariesElement:"",trigger:gr.HOVER,positionFixed:!1,appendToBody:!1,popperModifiers:{}},this.isMouseOver=!1,this.onHidden=new Ve,this.displayType="none",this.opacity=0,this.ariaHidden="true",this.arrowColor=null,this.state=!0}onMouseOver(){this.isMouseOver=!0}showOnLeave(){this.isMouseOver=!1,(this.popperOptions.trigger===gr.HOVER||this.popperOptions.hideOnMouseLeave)&&this.hide()}onDocumentResize(){this.update()}ngOnDestroy(){this.clean(),this.popperOptions.appendTo&&this.elemRef&&this.elemRef.nativeElement&&this.elemRef.nativeElement.parentNode&&(this.viewRef.detach(),this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement))}clean(){this.toggleVisibility(!1),this.popperInstance&&(this.popperInstance.disableEventListeners(),this.popperInstance.destroy())}show(){if(!this.referenceObject)return;const t=this.popperOptions.appendTo&&document.querySelector(this.popperOptions.appendTo);t&&this.elemRef.nativeElement.parentNode!==t&&(this.elemRef.nativeElement.parentNode&&this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement),t.appendChild(this.elemRef.nativeElement));let i={placement:this.popperOptions.placement,positionFixed:this.popperOptions.positionFixed,modifiers:{arrow:{element:this.popperViewRef.nativeElement.querySelector(".ngxp__arrow")}}};this.onUpdate&&(i.onUpdate=this.onUpdate);let r=this.popperOptions.boundariesElement&&document.querySelector(this.popperOptions.boundariesElement);i.modifiers&&r&&(i.modifiers.preventOverflow={boundariesElement:r}),i.modifiers&&void 0!==this.popperOptions.preventOverflow&&(i.modifiers.preventOverflow=i.modifiers.preventOverflow||{},i.modifiers.preventOverflow.enabled=this.popperOptions.preventOverflow,i.modifiers.preventOverflow.enabled||(i.modifiers.hide={enabled:!1})),this.determineArrowColor(),i.modifiers=Object.assign(i.modifiers,this.popperOptions.popperModifiers),this.popperInstance=new NB(this.referenceObject,this.popperViewRef.nativeElement,i),this.popperInstance.enableEventListeners(),this.scheduleUpdate(),this.toggleVisibility(!0),this.globalResize=this.renderer.listen("document","resize",this.onDocumentResize.bind(this))}determineArrowColor(){["background-color","backgroundColor"].some(t=>!(!this.popperOptions.styles||!this.popperOptions.styles.hasOwnProperty(t)||(this.arrowColor=this.popperOptions.styles[t],0)))}update(){this.popperInstance&&this.popperInstance.update()}scheduleUpdate(){this.popperInstance&&this.popperInstance.scheduleUpdate()}hide(){this.popperInstance&&this.popperInstance.destroy(),this.toggleVisibility(!1),this.onHidden.emit()}toggleVisibility(t){t?(this.opacity=1,this.displayType="block",this.ariaHidden="false",this.state=!0):(this.opacity=0,this.displayType="none",this.ariaHidden="true",this.state=!1),this.CDR.destroyed||this.CDR.detectChanges()}extractAppliedClassListExpr(t){if(!t||"string"!=typeof t)return null;try{return t.replace(/ /,"").split(",").reduce((i,r)=>(i[r]=!0,i),{})}catch(i){return null}}clearGlobalResize(){this.globalResize&&"function"==typeof this.globalResize&&this.globalResize()}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(ho),v(It),v(Oi))},n.\u0275cmp=jn({type:n,selectors:[["popper-content"]],viewQuery:function(t,i){if(1&t&&ir(LB,5),2&t){let r;ei(r=ti())&&(i.popperViewRef=r.first)}},hostBindings:function(t,i){1&t&&Le("mouseover",function(){return i.onMouseOver()})("mouseleave",function(){return i.showOnLeave()})},ngContentSelectors:PC,decls:5,vars:20,consts:[[3,"ngStyle","ngClass"],["popperViewRef",""],["class","ngxp__inner",3,"innerHTML",4,"ngIf"],["class","ngxp__inner",4,"ngIf"],[1,"ngxp__arrow",3,"ngClass"],[1,"ngxp__inner",3,"innerHTML"],[1,"ngxp__inner"]],template:function(t,i){1&t&&(Jr(PC),ce(0,"div",0,1),oe(2,BB,2,1,"div",2),oe(3,VB,2,0,"div",3),An(4,"div",4),fe()),2&t&&(ts("display",i.displayType)("opacity",i.opacity),Zn("ngxp__container",!i.popperOptions.disableDefaultStyling)("ngxp__animation",!i.popperOptions.disableAnimation),F("ngStyle",i.popperOptions.styles)("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyClass)),Qe("aria-hidden",i.ariaHidden)("aria-describedby",i.popperOptions.ariaDescribe||null)("role",i.popperOptions.ariaRole),B(2),F("ngIf",i.text),B(1),F("ngIf",!i.text),B(1),ts("border-color",i.arrowColor),Zn("__force-arrow",i.arrowColor),F("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyArrowClass)))},directives:[ah,Eo,Do],styles:[".ngxp__container{display:none;position:absolute;border-radius:3px;border:1px solid grey;box-shadow:0 0 2px rgba(0,0,0,.5);padding:10px}.ngxp__container.ngxp__animation{-webkit-animation:150ms ease-out ngxp-fadeIn;animation:150ms ease-out ngxp-fadeIn}.ngxp__container>.ngxp__arrow{border-color:grey;width:0;height:0;border-style:solid;position:absolute;margin:5px}.ngxp__container[x-placement^=bottom],.ngxp__container[x-placement^=left],.ngxp__container[x-placement^=right],.ngxp__container[x-placement^=top]{display:block}.ngxp__container[x-placement^=top]{margin-bottom:5px}.ngxp__container[x-placement^=top]>.ngxp__arrow{border-width:5px 5px 0;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=top]>.ngxp__arrow.__force-arrow{border-right-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=bottom]{margin-top:5px}.ngxp__container[x-placement^=bottom]>.ngxp__arrow{border-width:0 5px 5px;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=bottom]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-right-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=right]{margin-left:5px}.ngxp__container[x-placement^=right]>.ngxp__arrow{border-width:5px 5px 5px 0;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=right]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=left]{margin-right:5px}.ngxp__container[x-placement^=left]>.ngxp__arrow{border-width:5px 0 5px 5px;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=left]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-right-color:transparent!important}@-webkit-keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}@keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}"],encapsulation:2,changeDetection:0}),n})();class et{constructor(e,t,i,r,s,o={}){this.viewContainerRef=e,this.changeDetectorRef=t,this.resolver=i,this.elementRef=r,this.renderer=s,this.popperDefaults=o,this.popperContentClass=NC,this.shown=!1,this.subscriptions=[],this.eventListeners=[],this.globalEventListeners=[],this.hideTimeout=0,this.timeoutAfterShow=0,this.popperOnShown=new Ve,this.popperOnHidden=new Ve,this.popperOnUpdate=new Ve,et.baseOptions=Object.assign({},et.baseOptions,this.popperDefaults)}hideOnClickOutsideHandler(e){this.disabled||!this.hideOnClickOutside||e.srcElement&&e.srcElement===this.popperContent.elemRef.nativeElement||this.popperContent.elemRef.nativeElement.contains(e.srcElement)||this.scheduledHide(e,this.hideTimeout)}hideOnScrollHandler(e){this.disabled||!this.hideOnScroll||this.scheduledHide(e,this.hideTimeout)}applyTriggerListeners(){switch(this.showTrigger){case gr.CLICK:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"click",this.toggle.bind(this)));break;case gr.MOUSEDOWN:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mousedown",this.toggle.bind(this)));break;case gr.HOVER:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseenter",this.scheduledShow.bind(this,this.showDelay))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout)))}this.showTrigger!==gr.HOVER&&this.hideOnMouseLeave&&(this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout))))}static assignDefined(e,...t){for(const i of t)for(const r of Object.keys(i)){const s=i[r];void 0!==s&&(e[r]=s)}return e}ngOnInit(){if(this.hideOnClickOutside=void 0===this.hideOnClickOutside?this.closeOnClickOutside:this.hideOnClickOutside,"string"==typeof this.content){const t=this.content;this.popperContent=this.constructContent(),this.popperContent.text=t}else this.popperContent=this.content;const e=this.popperContent;e.referenceObject=this.getRefElement(),this.setContentProperties(e),this.setDefaults(),this.applyTriggerListeners(),this.showOnStart&&this.scheduledShow()}ngOnChanges(e){e.popperDisabled&&e.popperDisabled.currentValue&&this.hide(),e.content&&!e.content.firstChange&&"string"==typeof e.content.currentValue&&(this.popperContent.text=e.content.currentValue),e.applyClass&&!e.applyClass.firstChange&&"string"==typeof e.applyClass.currentValue&&(this.popperContent.popperOptions.applyClass=e.applyClass.currentValue),e.applyArrowClass&&!e.applyArrowClass.firstChange&&"string"==typeof e.applyArrowClass.currentValue&&(this.popperContent.popperOptions.applyArrowClass=e.applyArrowClass.currentValue)}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe&&e.unsubscribe()),this.subscriptions.length=0,this.clearEventListeners(),this.clearGlobalEventListeners(),clearTimeout(this.scheduledShowTimeout),clearTimeout(this.scheduledHideTimeout),this.popperContent&&this.popperContent.clean()}toggle(){this.disabled||(this.shown?this.scheduledHide(null,this.hideTimeout):this.scheduledShow())}show(){if(this.shown)return void this.overrideHideTimeout();this.shown=!0;const e=this.popperContent,t=this.getRefElement();e.referenceObject!==t&&(e.referenceObject=t),this.setContentProperties(e),e.show(),this.popperOnShown.emit(this),this.timeoutAfterShow>0&&this.scheduledHide(null,this.timeoutAfterShow),this.globalEventListeners.push(this.renderer.listen("document","touchend",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen("document","click",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen(this.getScrollParent(this.getRefElement()),"scroll",this.hideOnScrollHandler.bind(this)))}hide(){if(!this.disabled){if(!this.shown)return void this.overrideShowTimeout();this.shown=!1,this.popperContentRef?this.popperContentRef.instance.hide():this.popperContent.hide(),this.popperOnHidden.emit(this),this.clearGlobalEventListeners()}}scheduledShow(e=this.showDelay){this.disabled||(this.overrideHideTimeout(),this.scheduledShowTimeout=setTimeout(()=>{this.show(),this.applyChanges()},e))}scheduledHide(e=null,t=this.hideTimeout){this.disabled||(this.overrideShowTimeout(),this.scheduledHideTimeout=setTimeout(()=>{const i=e?e.toElement:null,r=!!this.popperContent.popperViewRef&&this.popperContent.popperViewRef.nativeElement;!r||r===i||r.contains(i)||this.content.isMouseOver||(this.hide(),this.applyChanges())},t))}getRefElement(){return this.targetElement||this.viewContainerRef.element.nativeElement}applyChanges(){this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()}setDefaults(){this.showDelay=void 0===this.showDelay?et.baseOptions.showDelay:this.showDelay,this.showTrigger=void 0===this.showTrigger?et.baseOptions.trigger:this.showTrigger,this.hideOnClickOutside=void 0===this.hideOnClickOutside?et.baseOptions.hideOnClickOutside:this.hideOnClickOutside,this.hideOnScroll=void 0===this.hideOnScroll?et.baseOptions.hideOnScroll:this.hideOnScroll,this.hideOnMouseLeave=void 0===this.hideOnMouseLeave?et.baseOptions.hideOnMouseLeave:this.hideOnMouseLeave,this.ariaRole=void 0===this.ariaRole?et.baseOptions.ariaRole:this.ariaRole,this.ariaDescribe=void 0===this.ariaDescribe?et.baseOptions.ariaDescribe:this.ariaDescribe,this.styles=void 0===this.styles?Object.assign({},et.baseOptions.styles):this.styles}clearEventListeners(){this.eventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.eventListeners.length=0}clearGlobalEventListeners(){this.globalEventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.globalEventListeners.length=0}overrideShowTimeout(){this.scheduledShowTimeout&&(clearTimeout(this.scheduledShowTimeout),this.scheduledHideTimeout=0)}overrideHideTimeout(){this.scheduledHideTimeout&&(clearTimeout(this.scheduledHideTimeout),this.scheduledHideTimeout=0)}constructContent(){const e=this.resolver.resolveComponentFactory(this.popperContentClass);return this.popperContentRef=this.viewContainerRef.createComponent(e),this.popperContentRef.instance}setContentProperties(e){e.popperOptions=et.assignDefined(e.popperOptions,et.baseOptions,{showDelay:this.showDelay,disableAnimation:this.disableAnimation,disableDefaultStyling:this.disableStyle,placement:this.placement,boundariesElement:this.boundariesElement,trigger:this.showTrigger,positionFixed:this.positionFixed,popperModifiers:this.popperModifiers,ariaDescribe:this.ariaDescribe,ariaRole:this.ariaRole,applyClass:this.applyClass,applyArrowClass:this.applyArrowClass,hideOnMouseLeave:this.hideOnMouseLeave,styles:this.styles,appendTo:this.appendTo,preventOverflow:this.preventOverflow}),e.onUpdate=this.onPopperUpdate.bind(this),this.subscriptions.push(e.onHidden.subscribe(this.hide.bind(this)))}getScrollParent(e){const i=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return e?"visible"!==i&&"hidden"!==i&&e.scrollHeight>=e.clientHeight?e:this.getScrollParent(e.parentNode)||document:null}onPopperUpdate(e){this.popperOnUpdate.emit(e)}}et.\u0275fac=function(e){return new(e||et)(v(It),v(Oi),v(hi),v(Se),v(ho),v("popperDefaults"))},et.\u0275dir=ye({type:et,selectors:[["","popper",""]],inputs:{hideTimeout:["popperTimeout","hideTimeout"],timeoutAfterShow:["popperTimeoutAfterShow","timeoutAfterShow"],hideOnClickOutside:["popperHideOnClickOutside","hideOnClickOutside"],showDelay:["popperDelay","showDelay"],showTrigger:["popperTrigger","showTrigger"],hideOnScroll:["popperHideOnScroll","hideOnScroll"],hideOnMouseLeave:["popperHideOnMouseLeave","hideOnMouseLeave"],ariaRole:["popperAriaRole","ariaRole"],ariaDescribe:["popperAriaDescribeBy","ariaDescribe"],styles:["popperStyles","styles"],content:["popper","content"],disabled:["popperDisabled","disabled"],placement:["popperPlacement","placement"],targetElement:["popperTarget","targetElement"],boundariesElement:["popperBoundaries","boundariesElement"],showOnStart:["popperShowOnStart","showOnStart"],closeOnClickOutside:["popperCloseOnClickOutside","closeOnClickOutside"],positionFixed:["popperPositionFixed","positionFixed"],popperModifiers:"popperModifiers",disableStyle:["popperDisableStyle","disableStyle"],disableAnimation:["popperDisableAnimation","disableAnimation"],applyClass:["popperApplyClass","applyClass"],applyArrowClass:["popperApplyArrowClass","applyArrowClass"],appendTo:["popperAppendTo","appendTo"],preventOverflow:["popperPreventOverflow","preventOverflow"]},outputs:{popperOnShown:"popperOnShown",popperOnHidden:"popperOnHidden",popperOnUpdate:"popperOnUpdate"},exportAs:["popper"],features:[Yi]}),et.baseOptions={showDelay:0,placement:FC.Auto,hideOnClickOutside:!0,hideOnMouseLeave:!1,hideOnScroll:!1,showTrigger:gr.HOVER,appendTo:void 0,ariaRole:"popper",ariaDescribe:"",styles:{}};let HB=(()=>{class n{ngDoBootstrap(){}static forRoot(t={}){return{ngModule:n,providers:[{provide:"popperDefaults",useValue:t}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({imports:[[hl]]}),n})();function jB(n,e){1&n&&Qn(0)}function zB(n,e){if(1&n){const t=Qt();St(0),ce(1,"button",7),Le("click",function(r){return Ne(t),$().emitClick(r)}),oe(2,jB,1,0,"ng-container",8),fe(),Mt()}if(2&n){const t=$(),i=st(12),r=st(10);B(1),F("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Qe("ref",t.buttonRef)("aria-label",t.label+" raised button"),B(1),F("ngTemplateOutlet",r)}}function $B(n,e){1&n&&Qn(0)}function UB(n,e){if(1&n){const t=Qt();St(0),ce(1,"button",9),Le("click",function(r){return Ne(t),$().emitClick(r)}),oe(2,$B,1,0,"ng-container",8),fe(),Mt()}if(2&n){const t=$(),i=st(12),r=st(10);B(1),F("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Qe("ref",t.buttonRef)("aria-label",t.label+" stroked button"),B(1),F("ngTemplateOutlet",r)}}function WB(n,e){1&n&&Qn(0)}function GB(n,e){if(1&n){const t=Qt();St(0),ce(1,"button",10),Le("click",function(r){return Ne(t),$().emitClick(r)}),oe(2,WB,1,0,"ng-container",8),fe(),Mt()}if(2&n){const t=$(),i=st(12),r=st(10);B(1),F("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Qe("ref",t.buttonRef)("aria-label",t.label+" flat button"),B(1),F("ngTemplateOutlet",r)}}function qB(n,e){1&n&&Qn(0)}function YB(n,e){if(1&n){const t=Qt();St(0),ce(1,"button",11),Le("click",function(r){return Ne(t),$().emitClick(r)}),oe(2,qB,1,0,"ng-container",8),fe(),Mt()}if(2&n){const t=$(),i=st(12),r=st(10);B(1),F("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Qe("ref",t.buttonRef)("aria-label",t.label+" icon button"),B(1),F("ngTemplateOutlet",r)}}function KB(n,e){1&n&&Qn(0)}function XB(n,e){if(1&n){const t=Qt();St(0),ce(1,"button",12),Le("click",function(r){return Ne(t),$().emitClick(r)}),oe(2,KB,1,0,"ng-container",8),fe(),Mt()}if(2&n){const t=$(),i=st(12),r=st(10);B(1),F("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Qe("ref",t.buttonRef)("aria-label",t.label+" fab button"),B(1),F("ngTemplateOutlet",r)}}function QB(n,e){1&n&&Qn(0)}function ZB(n,e){if(1&n){const t=Qt();St(0),ce(1,"button",13),Le("click",function(r){return Ne(t),$().emitClick(r)}),oe(2,QB,1,0,"ng-container",8),fe(),Mt()}if(2&n){const t=$(),i=st(12),r=st(10);B(1),F("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Qe("ref",t.buttonRef)("aria-label",t.label+" mini fab button"),B(1),F("ngTemplateOutlet",r)}}function JB(n,e){1&n&&Qn(0)}function eV(n,e){if(1&n){const t=Qt();St(0),ce(1,"button",14),Le("click",function(r){return Ne(t),$().emitClick(r)}),oe(2,JB,1,0,"ng-container",8),fe(),Mt()}if(2&n){const t=$(),i=st(12),r=st(10);B(1),F("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),Qe("ref",t.buttonRef)("aria-label",t.label+" unstyled button"),B(1),F("ngTemplateOutlet",r)}}function tV(n,e){1&n&&Qn(0)}function nV(n,e){if(1&n){const t=Qt();St(0),ce(1,"button",15),Le("click",function(r){return Ne(t),$().emitClick(r)}),oe(2,tV,1,0,"ng-container",8),fe(),Mt()}if(2&n){const t=$(),i=st(12),r=st(10);B(1),F("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup))("popperAppendTo","body"),Qe("ref",t.buttonRef)("aria-label",t.label+" basic button"),B(1),F("ngTemplateOutlet",r)}}function iV(n,e){if(1&n&&(ce(0,"mat-icon",18),ns(1),fe()),2&n){const t=$(2);F("ngStyle",t.buttonIconStyle),B(1),tr(t.icon)}}function rV(n,e){if(1&n&&(ce(0,"div"),ns(1),fe()),2&n){const t=$(2);B(1),tr(t.label||"Button")}}function sV(n,e){if(1&n&&(oe(0,iV,2,2,"mat-icon",16),oe(1,rV,2,1,"div",17)),2&n){const t=$();F("ngIf",t.icon),B(1),F("ngIf",!t.icon)}}function oV(n,e){1&n&&An(0,"img",19),2&n&&F("lazyLoad",$().imgUrl)}function aV(n,e){if(1&n&&(ce(0,"div"),ns(1),fe()),2&n){const t=$();_t(t.popup.style),B(1),tr(t.popup.text)}}let LC=(()=>{class n{emitClick(t){this.onClick&&(t.stopPropagation(),this.onClick())}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=jn({type:n,selectors:[["drayman-button-internal"]],inputs:{onClick:"onClick",label:"label",view:"view",icon:"icon",tooltip:"tooltip",disabled:"disabled",imgUrl:"imgUrl",popup:"popup",buttonStyle:"buttonStyle",buttonIconStyle:"buttonIconStyle",buttonRef:"buttonRef"},decls:15,vars:10,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["button",""],["thumbnailContent",""],["style","width: 150px; z-index: 1001;",3,"lazyLoad",4,"ngIf"],[3,"style",4,"ngIf"],["type","button","mat-raised-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],[4,"ngTemplateOutlet"],["type","button","mat-stroked-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-flat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-icon-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-mini-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","popperAppendTo","click"],[3,"ngStyle",4,"ngIf"],[4,"ngIf"],[3,"ngStyle"],[2,"width","150px","z-index","1001",3,"lazyLoad"]],template:function(t,i){1&t&&(St(0,0),oe(1,zB,3,8,"ng-container",1),oe(2,UB,3,8,"ng-container",1),oe(3,GB,3,8,"ng-container",1),oe(4,YB,3,8,"ng-container",1),oe(5,XB,3,8,"ng-container",1),oe(6,ZB,3,8,"ng-container",1),oe(7,eV,3,8,"ng-container",1),oe(8,nV,3,9,"ng-container",2),Mt(),oe(9,sV,2,2,"ng-template",null,3,Py),ce(11,"popper-content",null,4),oe(13,oV,1,1,"img",5),oe(14,aV,2,3,"div",6),fe()),2&t&&(F("ngSwitch",i.view),B(1),F("ngSwitchCase","raised"),B(1),F("ngSwitchCase","stroked"),B(1),F("ngSwitchCase","flat"),B(1),F("ngSwitchCase","icon"),B(1),F("ngSwitchCase","fab"),B(1),F("ngSwitchCase","miniFab"),B(1),F("ngSwitchCase","unstyled"),B(6),F("ngIf",i.imgUrl),B(1),F("ngIf",i.popup))},directives:[Mo,oh,B1,FL,ah,et,zv,Hv,Do,fL,NC,QL],styles:[""]}),n})();"function"==typeof SuppressedError&&SuppressedError;class OV extends fC{loadImage({imagePath:e}){return function BC(n,e,t,i){return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function r(s){return s instanceof t?s:new t(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){const i=yield(yield fetch(e)).blob();if(i.size)return URL.createObjectURL(i)})}}let RV=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=Ob(LC,{injector:this.injector});customElements.define("drayman-button",t)}}return n.\u0275fac=function(t){return new(t||n)(w(mt))},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:[{provide:yf,useClass:OV},{provide:Ml,useClass:ww},{provide:kd,multi:!0,useFactory:e=>()=>{e.setDefaultFontSetClass("material-symbols-rounded")},deps:[zo]}],imports:[[mh,vw,V1,BL,pL,ZL,HB.forRoot({disableDefaultStyling:!0,applyArrowClass:"hidden",showDelay:500,trigger:"hover",hideOnClickOutside:!1,styles:{position:"relative",background:"#fff",padding:"5px 5px 0 5px","z-index":"1001","border-radius":"2px","box-shadow":"0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)"},placement:"right"})]]}),n})();function HC(n,e=Cl){const i=function kV(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-e.now():Math.abs(n);return r=>r.lift(new PV(i,e))}class PV{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new kf(e,this.delay,this.scheduler))}}class kf extends k{constructor(e,t,i){super(e),this.delay=t,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,i=t.queue,r=e.scheduler,s=e.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const o=Math.max(0,i[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(kf.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,i=new FV(t.now()+this.delay,e);this.queue.push(i),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(Lt.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(Lt.createComplete()),this.unsubscribe()}}class FV{constructor(e,t){this.time=e,this.notification=t}}const NV=["mat-menu-item",""];function LV(n,e){1&n&&(function gp(){W.lFrame.currentNamespace="svg"}(),ce(0,"svg",2),An(1,"polygon",3),fe())}const jC=["*"];function BV(n,e){if(1&n){const t=Qt();ce(0,"div",0),Le("keydown",function(r){return Ne(t),$()._handleKeydown(r)})("click",function(){return Ne(t),$().closed.emit("click")})("@transformMenu.start",function(r){return Ne(t),$()._onAnimationStart(r)})("@transformMenu.done",function(r){return Ne(t),$()._onAnimationDone(r)}),ce(1,"div",1),er(2),fe()()}if(2&n){const t=$();F("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),Qe("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const lc={transformMenu:xh("transformMenu",[xl("void",Zt({opacity:0,transform:"scale(0.8)"})),Fo("void => enter",Po("120ms cubic-bezier(0, 0, 0.2, 1)",Zt({opacity:1,transform:"scale(1)"}))),Fo("* => void",Po("100ms 25ms linear",Zt({opacity:0})))]),fadeInItems:xh("fadeInItems",[xl("showing",Zt({opacity:1})),Fo("void => *",[Zt({opacity:0}),Po("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},zC=new O("MatMenuContent");let VV=(()=>{class n{constructor(t,i,r,s,o,a,l){this._template=t,this._componentFactoryResolver=i,this._appRef=r,this._injector=s,this._viewContainerRef=o,this._document=a,this._changeDetectorRef=l,this._attached=new y}attach(t={}){var i;this._portal||(this._portal=new Mh(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new _b(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const r=this._template.elementRef.nativeElement;r.parentNode.insertBefore(this._outlet.outletElement,r),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return n.\u0275fac=function(t){return new(t||n)(v(kn),v(hi),v(yo),v(mt),v(It),v(te),v(Oi))},n.\u0275dir=ye({type:n}),n})(),HV=(()=>{class n extends VV{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Gc(n)))(i||n)}}(),n.\u0275dir=ye({type:n,selectors:[["ng-template","matMenuContent",""]],features:[_d([{provide:zC,useExisting:n}]),Kn]}),n})();const Pf=new O("MAT_MENU_PANEL"),jV=Vw(Lw(class{}));let cc=(()=>{class n extends jV{constructor(t,i,r,s,o){var a;super(),this._elementRef=t,this._focusMonitor=r,this._parentMenu=s,this._changeDetectorRef=o,this.role="menuitem",this._hovered=new y,this._focused=new y,this._highlighted=!1,this._triggersSubmenu=!1,null===(a=null==s?void 0:s.addItem)||void 0===a||a.call(s,this)}focus(t,i){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t;const i=this._elementRef.nativeElement.cloneNode(!0),r=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s<r.length;s++)r[s].remove();return(null===(t=i.textContent)||void 0===t?void 0:t.trim())||""}_setHighlighted(t){var i;this._highlighted=t,null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(te),v(ec),v(Pf,8),v(Oi))},n.\u0275cmp=jn({type:n,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,i){1&t&&Le("click",function(s){return i._checkDisabled(s)})("mouseenter",function(){return i._handleMouseEnter()}),2&t&&(Qe("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled.toString())("disabled",i.disabled||null),Zn("mat-menu-item",!0)("mat-menu-item-highlighted",i._highlighted)("mat-menu-item-submenu-trigger",i._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[Kn],attrs:NV,ngContentSelectors:jC,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(t,i){1&t&&(Jr(),er(0),An(1,"div",0),oe(2,LV,2,0,"svg",1)),2&t&&(B(1),F("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),B(1),F("ngIf",i._triggersSubmenu))},directives:[df,Do],encapsulation:2,changeDetection:0}),n})();const $C=new O("mat-menu-default-options",{providedIn:"root",factory:function zV(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let $V=0,Yo=(()=>{class n{constructor(t,i,r){this._elementRef=t,this._ngZone=i,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new cs,this._tabSubscription=R.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new y,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Ve,this.close=this.closed,this.panelId="mat-menu-panel-"+$V++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=ds(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=ds(t)}set panelClass(t){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new h1(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(rc(this._directDescendantItems),ko(t=>zi(...t.map(i=>i._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(rc(this._directDescendantItems),ko(i=>zi(...i.map(r=>r._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const i=t.keyCode,r=this._keyManager;switch(i){case 27:rf(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(t)}t.stopPropagation()}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(gi(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const i=this._keyManager;if(i.setFocusOrigin(t).setFirstItemActive(),!i.activeItem&&this._directDescendantItems.length){let r=this._directDescendantItems.first._getHostElement().parentElement;for(;r;){if("menu"===r.getAttribute("role")){r.focus();break}r=r.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const i=Math.min(this._baseElevation+t,24),r=`${this._elevationPrefix}${i}`,s=Object.keys(this._classList).find(o=>o.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(t=this.xPosition,i=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===t,r["mat-menu-after"]="after"===t,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(rc(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(ue),v($C))},n.\u0275dir=ye({type:n,contentQueries:function(t,i,r){if(1&t&&(Ga(r,zC,5),Ga(r,cc,5),Ga(r,cc,4)),2&t){let s;ei(s=ti())&&(i.lazyContent=s.first),ei(s=ti())&&(i._allItems=s),ei(s=ti())&&(i.items=s)}},viewQuery:function(t,i){if(1&t&&ir(kn,5),2&t){let r;ei(r=ti())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),UV=(()=>{class n extends Yo{constructor(t,i,r){super(t,i,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(ue),v($C))},n.\u0275cmp=jn({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,i){2&t&&Qe("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[_d([{provide:Pf,useExisting:n}]),Kn],ngContentSelectors:jC,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,i){1&t&&(Jr(),oe(0,BV,3,6,"ng-template"))},directives:[Eo],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[lc.transformMenu,lc.fadeInItems]},changeDetection:0}),n})();const UC=new O("mat-menu-scroll-strategy"),GV={provide:UC,deps:[ps],useFactory:function WV(n){return()=>n.scrollStrategies.reposition()}},GC=Ao({passive:!0});let qV=(()=>{class n{constructor(t,i,r,s,o,a,l,c){this._overlay=t,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=R.EMPTY,this._hoverSubscription=R.EMPTY,this._menuCloseSubscription=R.EMPTY,this._handleTouchStart=u=>{lf(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Ve,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ve,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=o instanceof Yo?o:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,GC),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,GC),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),i=t.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Yo&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,i){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,i):this._element.nativeElement.focus(i)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===t||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Yo?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(mi(r=>"void"===r.toState),gi(1),Nt(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,i=this.menu.parentMenu;for(;i;)t++,i=i.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Cb({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(i=>{this.menu.setPositionClasses("start"===i.connectionPair.overlayX?"after":"before","top"===i.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[i,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[s,o]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,l]=[s,o],[c,u]=[i,r],d=0;this.triggersSubmenu()?(u=i="before"===this.menu.xPosition?"start":"end",r=c="end"===i?"start":"end",d="bottom"===s?8:-8):this.menu.overlapTrigger||(a="top"===s?"bottom":"top",l="top"===o?"bottom":"top"),t.withPositions([{originX:i,originY:a,overlayX:c,overlayY:s,offsetY:d},{originX:r,originY:a,overlayX:u,overlayY:s,offsetY:d},{originX:i,originY:l,overlayX:c,overlayY:o,offsetY:-d},{originX:r,originY:l,overlayX:u,overlayY:o,offsetY:-d}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return zi(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Ft(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(mi(o=>o!==this._menuItemInstance),mi(()=>this._menuOpen)):Ft(),i)}_handleMousedown(t){af(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const i=t.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(mi(t=>t===this._menuItemInstance&&!t.disabled),HC(0,yh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Yo&&this.menu._isAnimating?this.menu._animationDone.pipe(gi(1),HC(0,yh),Nt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Mh(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(t){return new(t||n)(v(ps),v(Se),v(It),v(UC),v(Pf,8),v(cc,10),v(Dl,8),v(ec))},n.\u0275dir=ye({type:n,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(t,i){1&t&&Le("click",function(s){return i._handleClick(s)})("mousedown",function(s){return i._handleMousedown(s)})("keydown",function(s){return i._handleKeydown(s)}),2&t&&Qe("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),qC=(()=>{class n extends qV{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Gc(n)))(i||n)}}(),n.\u0275dir=ye({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Kn]}),n})(),YV=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:[GV],imports:[[hl,ri,$w,Ib],Sl,ri]}),n})(),KV=(()=>{class n{constructor(t,i){this.el=t,this.renderer=i,this.resize=new Ve,this.onMouseMove=this.onMouseMove.bind(this),this.onMouseUp=this.onMouseUp.bind(this)}onMouseDown(t){!this.enableResize||(this.startX=t.clientX,this.startWidth=this.el.nativeElement.parentElement.offsetWidth,window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp))}onMouseMove(t){this.resize.emit(this.startWidth+(t.clientX-this.startX))}onMouseUp(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp)}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(ho))},n.\u0275dir=ye({type:n,selectors:[["","appResizable",""]],hostBindings:function(t,i){1&t&&Le("mousedown",function(s){return i.onMouseDown(s)})},inputs:{enableResize:"enableResize"},outputs:{resize:"resize"}}),n})();const XV=["container"];function QV(n,e){if(1&n&&(St(0),An(1,"div",12),Mt()),2&n){const t=$().$implicit,i=$().$implicit,r=$();B(1),_t(i.hovered&&t.hoverStyle?t.hoverStyle:t.style),F("innerHTML",r.getSanitizedString(t.value),Eu)}}function ZV(n,e){if(1&n&&(St(0),ce(1,"div"),An(2,"drayman-button-internal",13),fe(),Mt()),2&n){const t=$().$implicit,i=$().$implicit,r=$();B(1),_t(i.hovered&&t.hoverStyle?t.hoverStyle:t.style),B(1),F("buttonRef",t.value.ref)("label",t.value.label)("onClick",r.emitContentButtonClick.bind(r,i,t.value))("view",t.value.view)("icon",t.value.icon)("tooltip",t.value.tooltip)("disabled",t.value.disabled)("imgUrl",t.value.imgUrl)("popup",t.value.popup)("buttonStyle",t.value.buttonStyle)("options",t.value)}}function JV(n,e){if(1&n&&(St(0)(1,10),oe(2,QV,2,3,"ng-container",11),oe(3,ZV,3,13,"ng-container",11),Mt()()),2&n){const t=e.$implicit;B(1),F("ngSwitch",t.type),B(1),F("ngSwitchCase","text"),B(1),F("ngSwitchCase","button")}}function eH(n,e){if(1&n){const t=Qt();ce(0,"div",14),Le("resize",function(r){Ne(t);const s=$().index;return $().onResize(r,s)}),An(1,"div",15),fe()}if(2&n){const t=$().$implicit;F("ngClass",0===t.row?"resizable-gutter":null)("enableResize",0===t.row)}}function tH(n,e){if(1&n){const t=Qt();ce(0,"div",7),Le("mouseenter",function(){return Ne(t).$implicit.hovered=!0})("contextmenu",function(r){const o=Ne(t).$implicit;return $().oncontextmenu(r,o)})("click",function(r){const o=Ne(t).$implicit;return $().emitCellClick(r,o)})("mousedown",function(r){const o=Ne(t).$implicit;return $().onMouseDown(r,o)})("mouseup",function(r){const o=Ne(t).$implicit;return $().onMouseUp(r,o)})("mouseover",function(r){const o=Ne(t).$implicit;return $().onMouseOver(r,o)})("mouseleave",function(r){const o=Ne(t).$implicit;return $().onMouseLeave(r,o),o.hovered=!1}),ce(1,"div"),oe(2,JV,4,3,"ng-container",8),fe(),oe(3,eH,2,2,"div",9),fe()}if(2&n){const t=e.$implicit,i=$();_t(i.getCellStyle(t)),Qe("ref",t.ref),B(1),_t(t.contentStyle),B(1),F("ngForOf",t.content)("ngForTrackBy",i.cellItemTrackByFn.bind(i,t)),B(1),F("ngIf",i.columnWidths)}}function nH(n,e){if(1&n){const t=Qt();ce(0,"button",17),Le("click",function(r){const o=Ne(t).$implicit;return $(2).emitContextMenuItemClick(r,o)}),ns(1),fe()}if(2&n){const t=e.$implicit;B(1),tr(t.label)}}function iH(n,e){1&n&&oe(0,nH,2,1,"button",16),2&n&&F("ngForOf",e.items)}let rH=(()=>{class n{constructor(t,i){this.elementRef=t,this.sanitizer=i,this.selectedCells=[],this.scrollTo=({row:r})=>{this.cellHeight&&this.scrollable.scrollTo({top:r*this.cellHeight})},this.grid=[],this.scrollDirection="vertical",this.scrollbarWidth="narrow",this.resized$=new y,this.selectedCellsChanged$=new y,this._selectedCells=[],this.pendingSelectedCells=[],this.hoveredRow=-1,this.menuTopLeftPosition={x:"0",y:"0"}}onWheel(t){"horizontal"===this.scrollDirection&&(t.preventDefault(),this.containerRef.nativeElement.scrollLeft+=t.deltaY)}get scrollbarWidthClass(){return"narrow"===this.scrollbarWidth?null:`scrollbar-${this.scrollbarWidth}`}cellTrackByFn(t,i){return i.row+"-"+i.col}cellItemTrackByFn(t,i,r){return t.row+"-"+t.col+"-"+i}getCellStyle(t){var i,r,s;const o=t.rowSpan?t.row+t.rowSpan:t.row+1,a=t.colSpan?t.col+t.colSpan:t.col+1;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.cellStyle),this.hoveredRow===t.row?this.rowHoverStyle:{}),[...this.pendingSelectedCells,...this._selectedCells].find(l=>l.selectionGroup===t.selectionGroup)?Object.assign({},null===(i=this.selectionMode)||void 0===i?void 0:i.similarGroupCellStyle):{}),[...this.pendingSelectedCells,...this._selectedCells].length&&![...this.pendingSelectedCells,...this._selectedCells].find(l=>l.selectionGroup===t.selectionGroup)?Object.assign({},null===(r=this.selectionMode)||void 0===r?void 0:r.otherGroupCellStyle):{}),[...this.pendingSelectedCells,...this._selectedCells].find(l=>l.row===t.row&&l.col===t.col)?Object.assign(Object.assign({},null===(s=this.selectionMode)||void 0===s?void 0:s.cellStyle),t.selectionCellStyle):{}),{gridArea:`${t.row+1}/${t.col+1}/${o+1}/${a+1}`})}ngOnDestroy(){}getSanitizedString(t){return this.sanitizer.bypassSecurityTrustHtml(t)}oncontextmenu(t,i){var r;t.ctrlKey?(t.preventDefault(),this.emitCellClick(t,i,!0)):(null===(r=i.contextMenuItems)||void 0===r?void 0:r.length)&&(t.preventDefault(),this.menuTopLeftPosition.x=t.clientX+"px",this.menuTopLeftPosition.y=t.clientY+"px",this.matMenuTrigger.menuData={items:i.contextMenuItems.map(s=>({label:s,cell:i}))},this.matMenuTrigger.openMenu())}emitContextMenuItemClick(t,i){var r;null===(r=this.onContextMenuItemClick)||void 0===r||r.call(this,i)}emitCellClick(t,i,r=!1){var s,o,a;t.ctrlKey&&(t.preventDefault(),r=!0),(null===(s=this.selectionMode)||void 0===s?void 0:s.enabled)?this.pendingSelectedCells.length||(r?(this._selectedCells=[i],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!0})):this._selectedCells.find(c=>c.row===i.row&&c.col===i.col)?(this._selectedCells=this._selectedCells.filter(c=>!(c.row===i.row&&c.col===i.col)),this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1})):!i.disableSelect&&(!this._selectedCells.length||(null===(o=this._selectedCells[0])||void 0===o?void 0:o.selectionGroup)===i.selectionGroup)&&(this._selectedCells.push(i),this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1}))):null===(a=this.onCellClick)||void 0===a||a.call(this,{cell:i})}onMouseLeave(t,i){this.hoveredRow=-1}onMouseDown(t,i){var r,s;((null===(r=this.selectionMode)||void 0===r?void 0:r.enabled)&&!this._selectedCells.length||(null===(s=this._selectedCells[0])||void 0===s?void 0:s.selectionGroup)===i.selectionGroup)&&(this.ctrl=t.ctrlKey,this.startSelectionCell=i)}onMouseUp(t,i){this.startSelectionCell=null,this.pendingSelectedCells.length&&(this._selectedCells=[...this.ctrl?[]:this._selectedCells,...this.pendingSelectedCells],this.pendingSelectedCells=[],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!!this.ctrl}))}onMouseOver(t,i){if(this.hoveredRow=i.row,this.startSelectionCell){const r=Math.min(i.col,this.startSelectionCell.col),s=Math.max(i.col,this.startSelectionCell.col),o=Math.min(i.row,this.startSelectionCell.row),a=Math.max(i.row,this.startSelectionCell.row);this.pendingSelectedCells=this.grid.filter(l=>{var c;return!l.disableSelect&&l.col>=r&&l.col<=s&&l.row>=o&&l.row<=a&&l.selectionGroup===(null===(c=this.startSelectionCell)||void 0===c?void 0:c.selectionGroup)})}}onGridMouseLeave(t){this.startSelectionCell=null,this.pendingSelectedCells.length&&(this._selectedCells=[...this._selectedCells,...this.pendingSelectedCells],this.pendingSelectedCells=[],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1}))}emitContentButtonClick(t,i){var r;null===(r=this.onContentButtonClick)||void 0===r||r.call(this,{cell:t,button:i})}onResized(t){t.oldHeight&&t.oldWidth&&this.resized$.next()}ngAfterViewInit(){zi(this.scrollable.elementScrolled(),this.resized$).pipe(Xl(50)).subscribe(t=>{var i;null===(i=this.onScroll)||void 0===i||i.call(this,{currentCol:this.getCurrentColumn(this.scrollable.measureScrollOffset("left")),visibleColCount:this.getVisibleColumnCount(this.scrollable.getElementRef().nativeElement.clientWidth,this.getCurrentColumn(this.scrollable.measureScrollOffset("left")),this.scrollable.measureScrollOffset("left")),currentRow:this.cellHeight?Math.floor(this.scrollable.measureScrollOffset("top")/this.cellHeight):0,visibleRowCount:this.cellHeight?Math.ceil(this.scrollable.getElementRef().nativeElement.clientHeight/this.cellHeight):this.rowCount})}),this.selectedCellsChanged$.pipe(Xl(250)).subscribe(t=>{var i;null===(i=this.onSelectedCellsChange)||void 0===i||i.call(this,Object.assign(Object.assign({},t),{selectedCells:t.selectedCells.filter((r,s)=>t.selectedCells.findIndex(o=>o.row===r.row&&o.col===r.col)===s)}))})}getCurrentColumn(t){if(this.columnWidths&&this.columnWidths.length>0){let i=0;for(let r=0;r<this.columnWidths.length;r++)if(i+=this.columnWidths[r],t<i)return r;return this.columnWidths.length-1}return this.cellWidth?Math.floor(t/this.cellWidth):0}getVisibleColumnCount(t,i,r){if(this.columnWidths&&this.columnWidths.length>0){let s=0;for(let c=0;c<i;c++)s+=this.columnWidths[c];let o=Math.max(0,s+this.columnWidths[i]-r),a=t-o,l=o>0?1:0;for(let c=i+1;c<this.columnWidths.length&&a>0;c++)a-=this.columnWidths[c],l++;return l}return this.cellWidth?Math.ceil(t/this.cellWidth):this.columnCount}onResize(t,i){var r;this.columnWidths&&(this.columnWidths=[...this.columnWidths.slice(0,i),t,...this.columnWidths.slice(i+1)],null===(r=this.onColumnWidthChange)||void 0===r||r.call(this,{columnWidths:this.columnWidths,changedWidthIndex:i}))}ngOnInit(){}ngOnChanges(t){this.selectedCells&&(this._selectedCells=[...this.selectedCells])}get gridStyle(){const t=(this.cellHeight||0)*(this.rowCount||0);return{gridTemplateColumns:this.columnWidths?this.columnWidths.map(r=>`${r}px`).join(" "):`repeat(${this.columnCount}, ${this.cellWidth?`${this.cellWidth}px`:"auto"})`,gridTemplateRows:`repeat(${this.rowCount}, ${this.cellHeight?`${this.cellHeight}px`:"auto"})`,width:this.columnWidths?`${this.columnWidths.reduce((r,s)=>r+s,0)}px`:this.cellWidth?this.columnCount*this.cellWidth+"px":"100%",height:t?`${t}px`:"100%",display:"grid",userSelect:"none"}}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(yl))},n.\u0275cmp=jn({type:n,selectors:[["drayman-grid-internal"]],viewQuery:function(t,i){if(1&t&&(ir(qC,7),ir(XV,5),ir(pb,5)),2&t){let r;ei(r=ti())&&(i.matMenuTrigger=r.first),ei(r=ti())&&(i.containerRef=r.first),ei(r=ti())&&(i.scrollable=r.first)}},hostBindings:function(t,i){1&t&&Le("wheel",function(s){return i.onWheel(s)})},inputs:{selectionMode:"selectionMode",selectedCells:"selectedCells",rowHoverStyle:"rowHoverStyle",onSelectedCellsChange:"onSelectedCellsChange",scrollTo:"scrollTo",onLoad:"onLoad",onContentButtonClick:"onContentButtonClick",onCellClick:"onCellClick",onContextMenuItemClick:"onContextMenuItemClick",onColumnWidthChange:"onColumnWidthChange",grid:"grid",scrollDirection:"scrollDirection",gridRef:"gridRef",onScroll:"onScroll",cellHeight:"cellHeight",cellWidth:"cellWidth",columnWidths:"columnWidths",columnCount:"columnCount",rowCount:"rowCount",scrollbarWidth:"scrollbarWidth"},features:[Yi],decls:8,vars:11,consts:[["cdkScrollable","",1,"wrapper",3,"ngClass","resized"],["container",""],[3,"mouseleave"],["tabindex","-1",3,"style","mouseenter","contextmenu","click","mousedown","mouseup","mouseover","mouseleave",4,"ngFor","ngForOf","ngForTrackBy"],[2,"visibility","hidden","position","fixed",3,"matMenuTriggerFor"],["rightMenu","matMenu"],["matMenuContent",""],["tabindex","-1",3,"mouseenter","contextmenu","click","mousedown","mouseup","mouseover","mouseleave"],[4,"ngFor","ngForOf","ngForTrackBy"],["appResizable","",3,"ngClass","enableResize","resize",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"innerHTML"],[3,"buttonRef","label","onClick","view","icon","tooltip","disabled","imgUrl","popup","buttonStyle","options"],["appResizable","",3,"ngClass","enableResize","resize"],["resizable-gutter-inside",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"]],template:function(t,i){if(1&t&&(ce(0,"div",0,1),Le("resized",function(s){return i.onResized(s)}),ce(2,"div",2),Le("mouseleave",function(s){return i.onGridMouseLeave(s)}),oe(3,tH,4,8,"div",3),fe()(),An(4,"div",4),ce(5,"mat-menu",null,5),oe(7,iH,1,1,"ng-template",6),fe()),2&t){const r=st(6);F("ngClass",i.scrollbarWidthClass),B(2),_t(i.gridStyle),Qe("ref",i.gridRef),B(1),F("ngForOf",i.grid)("ngForTrackBy",i.cellTrackByFn),B(1),ts("left",i.menuTopLeftPosition.x)("top",i.menuTopLeftPosition.y),F("matMenuTriggerFor",r)}},directives:[pb,Eo,ON,Rv,Mo,oh,LC,Do,KV,qC,UV,HV,cc],styles:['.wrapper[_ngcontent-%COMP%]{width:100%;height:100%;overflow:auto}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.scrollbar-medium[_ngcontent-%COMP%]::-webkit-scrollbar{width:14px;height:14px}.scrollbar-wide[_ngcontent-%COMP%]::-webkit-scrollbar{width:16px;height:16px}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f0f0f000}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#88888840}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#888888}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:window-inactive{background:var(--component-A-color)}.resizable-gutter[_ngcontent-%COMP%]{width:10px;height:100%;position:absolute;right:0;top:0;bottom:0;cursor:col-resize;z-index:1;background-color:transparent}.resizable-gutter[_ngcontent-%COMP%]:before{content:"";display:block;background-color:#ccc;width:5px;height:100%;position:absolute;right:0;opacity:0;transition:opacity .3s ease}.resizable-gutter[_ngcontent-%COMP%]:hover:before{opacity:1}']}),n})(),sH=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=Ob(rH,{injector:this.injector});customElements.define("drayman-grid",t)}}return n.\u0275fac=function(t){return new(t||n)(w(mt))},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:[{provide:Ml,useClass:ww}],imports:[[mh,vw,Dh,RN,RV,YV]]}),n})();(function _A(){av=!1})(),ZR().bootstrapModule(sH).catch(n=>console.error(n))})()})();
|
|
1
|
+
(()=>{var QC={289:(dt,ln,Te)=>{dt.exports={ResizeSensor:Te(294),ElementQueries:Te(322)}},322:function(dt,ln,Te){"use strict";var wn,ze;"undefined"!=typeof window&&window,wn=[Te(294)],void 0!==(ze=function(Ot){var tt=function(){var R,$e={},Rt=[];function Ts(y){y||(y=document.documentElement);var D=window.getComputedStyle(y,null).fontSize;return parseFloat(D)||16}function Ie(y,D){var H=D.split(/\d/),A=H[H.length-1];switch(D=parseFloat(D),A){case"px":default:return D;case"em":return D*Ts(y);case"rem":return D*Ts();case"vw":return D*document.documentElement.clientWidth/100;case"vh":return D*document.documentElement.clientHeight/100;case"vmin":case"vmax":var se=document.documentElement.clientWidth/100,ke=document.documentElement.clientHeight/100;return D*(0,Math["vmin"===A?"min":"max"])(se,ke)}}function ee(y,D){this.element=y;var H,A,se,ke,at,Ce,nt,it,cn=["min-width","min-height","max-width","max-height"];this.call=function(){for(H in se=function k(y){if(!y.getBoundingClientRect)return{width:y.offsetWidth,height:y.offsetHeight};var D=y.getBoundingClientRect();return{width:Math.round(D.width),height:Math.round(D.height)}}(this.element),Ce={},$e[D])!$e[D].hasOwnProperty(H)||(ke=Ie(this.element,(A=$e[D][H]).value),at="width"===A.property?se.width:se.height,nt="","min"===A.mode&&at>=ke&&(nt+=A.value),"max"===A.mode&&at<=ke&&(nt+=A.value),Ce[it=A.mode+"-"+A.property]||(Ce[it]=""),nt&&-1===(" "+Ce[it]+" ").indexOf(" "+nt+" ")&&(Ce[it]+=" "+nt));for(var jt in cn)!cn.hasOwnProperty(jt)||(Ce[cn[jt]]?this.element.setAttribute(cn[jt],Ce[cn[jt]].substr(1)):this.element.removeAttribute(cn[jt]))}}function Bt(y,D){y.elementQueriesSetupInformation||(y.elementQueriesSetupInformation=new ee(y,D)),y.elementQueriesSensor||(y.elementQueriesSensor=new Ot(y,function(){y.elementQueriesSetupInformation.call()}))}function Vt(y,D,H,A){if(void 0===$e[y]){$e[y]=[];var se=Rt.length;R.innerHTML+="\n"+y+" {animation: 0.1s element-queries;}",R.innerHTML+="\n"+y+" > .resize-sensor {min-width: "+se+"px;}",Rt.push(y)}$e[y].push({mode:D,property:H,value:A})}function z(y){var D;if(document.querySelectorAll&&(D=y?y.querySelectorAll.bind(y):document.querySelectorAll.bind(document)),!D&&"undefined"!=typeof $$&&(D=$$),!D&&"undefined"!=typeof jQuery&&(D=jQuery),!D)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return D}function Ht(y){var D=[],H=[],A=[],se=0,ke=-1,at=[];for(var Ce in y.children)if(y.children.hasOwnProperty(Ce)&&y.children[Ce].tagName&&"img"===y.children[Ce].tagName.toLowerCase()){D.push(y.children[Ce]);var nt=y.children[Ce].getAttribute("min-width")||y.children[Ce].getAttribute("data-min-width"),it=y.children[Ce].getAttribute("data-src")||y.children[Ce].getAttribute("url");A.push(it),H.push({minWidth:nt}),nt?y.children[Ce].style.display="none":(se=D.length-1,y.children[Ce].style.display="block")}function jt(){var bt,me=!1;for(bt in D)!D.hasOwnProperty(bt)||H[bt].minWidth&&y.offsetWidth>H[bt].minWidth&&(me=bt);if(me||(me=se),ke!==me)if(at[me])D[ke].style.display="none",D[me].style.display="block",ke=me;else{var wi=new Image;wi.onload=function(){D[me].src=A[me],D[ke].style.display="none",D[me].style.display="block",at[me]=!0,ke=me},wi.src=A[me]}else D[me].src=A[me]}ke=se,y.resizeSensorInstance=new Ot(y,jt),jt()}var vt=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,ji=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function Ke(y){var D,H,A,se;for(y=y.replace(/'/g,'"');null!==(D=vt.exec(y));)for(H=D[1]+D[3],A=D[2];null!==(se=ji.exec(A));)Vt(H,se[1],se[2],se[3])}function Hn(y){var D="";if(y)if("string"==typeof y)(-1!==(y=y.toLowerCase()).indexOf("min-width")||-1!==y.indexOf("max-width"))&&Ke(y);else for(var H=0,A=y.length;H<A;H++)1===y[H].type?(-1!==(D=y[H].selectorText||y[H].cssText).indexOf("min-height")||-1!==D.indexOf("max-height")||-1!==D.indexOf("min-width")||-1!==D.indexOf("max-width"))&&Ke(D):4===y[H].type?Hn(y[H].cssRules||y[H].rules):3===y[H].type&&y[H].styleSheet.hasOwnProperty("cssRules")&&Hn(y[H].styleSheet.cssRules)}var bi=!1;this.init=function(){var y="animationstart";void 0!==document.documentElement.style.webkitAnimationName?y="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?y="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(y="oanimationstart"),document.body.addEventListener(y,function(A){var se=A.target,ke=se&&window.getComputedStyle(se,null),at=ke&&ke.getPropertyValue("animation-name");if(at&&-1!==at.indexOf("element-queries")){se.elementQueriesSensor=new Ot(se,function(){se.elementQueriesSetupInformation&&se.elementQueriesSetupInformation.call()});var it=window.getComputedStyle(se.resizeSensor,null).getPropertyValue("min-width");it=parseInt(it.replace("px","")),Bt(A.target,Rt[it])}}),bi||((R=document.createElement("style")).type="text/css",R.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",R.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(R),bi=!0);for(var D=0,H=document.styleSheets.length;D<H;D++)try{document.styleSheets[D].href&&0===document.styleSheets[D].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[D].href),Hn(document.styleSheets[D].cssRules||document.styleSheets[D].rules||document.styleSheets[D].cssText)}catch(A){}!function Z(){for(var D=z()("[data-responsive-image],[responsive-image]"),H=0,A=D.length;H<A;H++)Ht(D[H])}()},this.findElementQueriesElements=function(y){!function yt(y){var D=z(y);for(var H in $e)if($e.hasOwnProperty(H))for(var A=D(H,y),se=0,ke=A.length;se<ke;se++)Bt(A[se],H)}(y)},this.update=function(){this.init()}};tt.update=function(){tt.instance.update()},tt.detach=function(R){R.elementQueriesSetupInformation?(R.elementQueriesSensor.detach(),delete R.elementQueriesSetupInformation,delete R.elementQueriesSensor):R.resizeSensorInstance&&(R.resizeSensorInstance.detach(),delete R.resizeSensorInstance)},tt.init=function(){tt.instance||(tt.instance=new tt),tt.instance.init()};return tt.findElementQueriesElements=function(R){tt.instance.findElementQueriesElements(R)},tt.listen=function(){!function(R){if(document.addEventListener)document.addEventListener("DOMContentLoaded",R,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var $e=setInterval(function(){/loaded|complete/i.test(document.readyState)&&(R(),clearInterval($e))},10);else window.onload=R}(tt.init)},tt}.apply(ln,wn))&&(dt.exports=ze)},294:function(dt,ln,Te){"use strict";var wn;"undefined"!=typeof window&&window,void 0!==(wn=function(){if("undefined"==typeof window)return null;var ze="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Ot=ze.requestAnimationFrame||ze.mozRequestAnimationFrame||ze.webkitRequestAnimationFrame||function(k){return ze.setTimeout(k,20)},tt=ze.cancelAnimationFrame||ze.mozCancelAnimationFrame||ze.webkitCancelAnimationFrame||function(k){ze.clearTimeout(k)};function Vn(k,Ie){var ee=Object.prototype.toString.call(k),Bt="[object Array]"===ee||"[object NodeList]"===ee||"[object HTMLCollection]"===ee||"[object Object]"===ee||"undefined"!=typeof jQuery&&k instanceof jQuery||"undefined"!=typeof Elements&&k instanceof Elements,Vt=0,z=k.length;if(Bt)for(;Vt<z;Vt++)Ie(k[Vt]);else Ie(k)}function R(k){if(!k.getBoundingClientRect)return{width:k.offsetWidth,height:k.offsetHeight};var Ie=k.getBoundingClientRect();return{width:Math.round(Ie.width),height:Math.round(Ie.height)}}function $e(k,Ie){Object.keys(Ie).forEach(function(ee){k.style[ee]=Ie[ee]})}var Rt=function(k,Ie){var ee=0;function Bt(){var yt,Ht,z=[];this.add=function(Z){z.push(Z)},this.call=function(Z){for(yt=0,Ht=z.length;yt<Ht;yt++)z[yt].call(this,Z)},this.remove=function(Z){var vt=[];for(yt=0,Ht=z.length;yt<Ht;yt++)z[yt]!==Z&&vt.push(z[yt]);z=vt},this.length=function(){return z.length}}function Vt(z,yt){if(z){if(z.resizedAttached)return void z.resizedAttached.add(yt);z.resizedAttached=new Bt,z.resizedAttached.add(yt),z.resizeSensor=document.createElement("div"),z.resizeSensor.dir="ltr",z.resizeSensor.className="resize-sensor";var Ht={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},Z={position:"absolute",left:"0px",top:"0px",transition:"0s"};$e(z.resizeSensor,Ht);var vt=document.createElement("div");vt.className="resize-sensor-expand",$e(vt,Ht);var ji=document.createElement("div");$e(ji,Z),vt.appendChild(ji);var Ke=document.createElement("div");Ke.className="resize-sensor-shrink",$e(Ke,Ht);var Hn=document.createElement("div");$e(Hn,Z),$e(Hn,{width:"200%",height:"200%"}),Ke.appendChild(Hn),z.resizeSensor.appendChild(vt),z.resizeSensor.appendChild(Ke),z.appendChild(z.resizeSensor);var bi=window.getComputedStyle(z),y=bi?bi.getPropertyValue("position"):null;"absolute"!==y&&"relative"!==y&&"fixed"!==y&&"sticky"!==y&&(z.style.position="relative");var D=!1,H=0,A=R(z),se=0,ke=0,at=!0;ee=0;var nt=function(){if(at){if(0===z.offsetWidth&&0===z.offsetHeight)return void(ee||(ee=Ot(function(){ee=0,nt()})));at=!1}var me,bt;bt=z.offsetHeight,ji.style.width=(me=z.offsetWidth)+10+"px",ji.style.height=bt+10+"px",vt.scrollLeft=me+10,vt.scrollTop=bt+10,Ke.scrollLeft=me+10,Ke.scrollTop=bt+10};z.resizeSensor.resetSensor=nt;var it=function(){H=0,D&&(se=A.width,ke=A.height,z.resizedAttached&&z.resizedAttached.call(A))},cn=function(){A=R(z),(D=A.width!==se||A.height!==ke)&&!H&&(H=Ot(it)),nt()},jt=function(me,bt,wi){me.attachEvent?me.attachEvent("on"+bt,wi):me.addEventListener(bt,wi)};jt(vt,"scroll",cn),jt(Ke,"scroll",cn),ee=Ot(function(){ee=0,nt()})}}Vn(k,function(z){Vt(z,Ie)}),this.detach=function(z){ee||(tt(ee),ee=0),Rt.detach(k,z)},this.reset=function(){k.resizeSensor.resetSensor()}};if(Rt.reset=function(k){Vn(k,function(Ie){Ie.resizeSensor.resetSensor()})},Rt.detach=function(k,Ie){Vn(k,function(ee){!ee||ee.resizedAttached&&"function"==typeof Ie&&(ee.resizedAttached.remove(Ie),ee.resizedAttached.length())||ee.resizeSensor&&(ee.contains(ee.resizeSensor)&&ee.removeChild(ee.resizeSensor),delete ee.resizeSensor,delete ee.resizedAttached)})},"undefined"!=typeof MutationObserver){var Ts=new MutationObserver(function(k){for(var Ie in k)if(k.hasOwnProperty(Ie))for(var ee=k[Ie].addedNodes,Bt=0;Bt<ee.length;Bt++)ee[Bt].resizeSensor&&Rt.reset(ee[Bt])});document.addEventListener("DOMContentLoaded",function(k){Ts.observe(document.body,{childList:!0,subtree:!0})})}return Rt}.call(ln,Te,ln,dt))&&(dt.exports=wn)}},Nf={};function Lf(dt){var ln=Nf[dt];if(void 0!==ln)return ln.exports;var Te=Nf[dt]={exports:{}};return QC[dt].call(Te.exports,Te,Te.exports,Lf),Te.exports}(()=>{"use strict";function dt(n){return"function"==typeof n}let ln=!1;const Te={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 ln&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ln=n},get useDeprecatedSynchronousErrorHandling(){return ln}};function ht(n){setTimeout(()=>{throw n},0)}const wn={closed:!0,next(n){},error(n){if(Te.useDeprecatedSynchronousErrorHandling)throw n;ht(n)},complete(){}},ze=Array.isArray||(n=>n&&"number"==typeof n.length);function Ot(n){return null!==n&&"object"==typeof n}const Vn=(()=>{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 R{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 R)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(dt(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof Vn?$e(o.errors):[o]}}if(ze(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(Ot(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof Vn?e=e.concat($e(c.errors)):e.push(c)}}}if(e)throw new Vn(e)}add(e){let t=e;if(!e)return R.EMPTY;switch(typeof e){case"function":t=new R(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof R)){const s=t;t=new R,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 R){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 $e(n){return n.reduce((e,t)=>e.concat(t instanceof Vn?t.errors:t),[])}R.EMPTY=((n=new R).closed=!0,n);const Rt="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class k extends R{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=wn;break;case 1:if(!e){this.destination=wn;break}if("object"==typeof e){e instanceof k?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Ie(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Ie(this,e,t,i)}}[Rt](){return this}static create(e,t,i){const r=new k(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 Ie extends k{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;dt(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==wn&&(o=Object.create(t),dt(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;Te.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}=Te;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):ht(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;ht(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);Te.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(),Te.useDeprecatedSynchronousErrorHandling)throw i;ht(i)}}__tryOrSetError(e,t,i){if(!Te.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return Te.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(ht(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Vt="function"==typeof Symbol&&Symbol.observable||"@@observable";function z(n){return n}let Z=(()=>{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 Bt(n,e,t){if(n){if(n instanceof k)return n;if(n[Rt])return n[Rt]()}return n||e||t?new k(n,e,t):new k(wn)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||Te.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Te.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){Te.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function ee(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof k?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=vt(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)}[Vt](){return this}pipe(...t){return 0===t.length?this:function Ht(n){return 0===n.length?z:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=vt(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function vt(n){if(n||(n=Te.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Ke=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Hn extends R{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 bi extends k{constructor(e){super(e),this.destination=e}}let y=(()=>{class n extends Z{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Rt](){return new bi(this)}lift(t){const i=new D(this,this);return i.operator=t,i}next(t){if(this.closed)throw new Ke;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 Ke;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 Ke;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 Ke;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new Ke;return this.hasError?(t.error(this.thrownError),R.EMPTY):this.isStopped?(t.complete(),R.EMPTY):(this.observers.push(t),new Hn(this,t))}asObservable(){const t=new Z;return t.source=this,t}}return n.create=(e,t)=>new D(e,t),n})();class D extends y{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):R.EMPTY}}function H(n){return n&&"function"==typeof n.schedule}function A(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 se(n,e))}}class se{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new ke(e,this.project,this.thisArg))}}class ke extends k{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 at=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},it=function nt(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),bt=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function wi(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const uc=n=>{if(n&&"function"==typeof n[Vt])return(n=>e=>{const t=n[Vt]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(bt(n))return at(n);if(wi(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,ht),e))(n);if(n&&"function"==typeof n[it])return(n=>e=>{const t=n[it]();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 ${Ot(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function dc(n,e){return new Z(t=>{const i=new R;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 hc(n,e){return e?function iE(n,e){if(null!=n){if(function tE(n){return n&&"function"==typeof n[Vt]}(n))return function ZC(n,e){return new Z(t=>{const i=new R;return i.add(e.schedule(()=>{const r=n[Vt]();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(wi(n))return function JC(n,e){return new Z(t=>{const i=new R;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(bt(n))return dc(n,e);if(function nE(n){return n&&"function"==typeof n[it]}(n)||"string"==typeof n)return function eE(n,e){if(!n)throw new Error("Iterable cannot be null");return new Z(t=>{const i=new R;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[it](),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 Z?n:new Z(uc(n))}class Is extends k{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 xs extends k{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function As(n,e){if(!e.closed)return n instanceof Z?n.subscribe(e):uc(n)(e)}function Ko(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(Ko((r,s)=>hc(n(r,s)).pipe(A((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new rE(n,t)))}class rE{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new sE(e,this.project,this.concurrent))}}class sE extends xs{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 Is(this),i=this.destination;i.add(t);const r=As(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()}}function Bf(n=Number.POSITIVE_INFINITY){return Ko(z,n)}function fc(n,e){return e?dc(n,e):new Z(at(n))}function zi(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return H(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 Z?n[0]:Bf(e)(fc(n,t))}function Vf(){return function(e){return e.lift(new oE(e))}}class oE{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new aE(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class aE extends k{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 lE extends Z{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 R,e.add(this.source.subscribe(new uE(this.getSubject(),this))),e.closed&&(this._connection=null,e=R.EMPTY)),e}refCount(){return Vf()(this)}}const cE=(()=>{const n=lE.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 uE extends bi{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()}}}class fE{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 pE(){return new y}function Hf(){return n=>Vf()(function hE(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new fE(r,e));const s=Object.create(i,cE);return s.source=i,s.subjectFactory=r,s}}(pE)(n))}function ge(n){for(let e in n)if(n[e]===ge)return e;throw Error("Could not find renamed property on target object.")}function pc(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function de(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(de).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 mc(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const mE=ge({__forward_ref__:ge});function gc(n){return n.__forward_ref__=gc,n.toString=function(){return de(this())},n}function X(n){return jf(n)?n():n}function jf(n){return"function"==typeof n&&n.hasOwnProperty(mE)&&n.__forward_ref__===gc}class T extends Error{constructor(e,t){super(function _c(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function U(n){return"string"==typeof n?n:null==n?"":String(n)}function lt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():U(n)}function Xo(n,e){const t=e?` in ${e}`:"";throw new T(-201,`No provider for ${lt(n)} found${t}`)}function $t(n,e){null==n&&function he(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function P(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function we(n){return{providers:n.providers||[],imports:n.imports||[]}}function yc(n){return zf(n,Qo)||zf(n,Uf)}function zf(n,e){return n.hasOwnProperty(e)?n[e]:null}function $f(n){return n&&(n.hasOwnProperty(vc)||n.hasOwnProperty(CE))?n[vc]:null}const Qo=ge({\u0275prov:ge}),vc=ge({\u0275inj:ge}),Uf=ge({ngInjectableDef:ge}),CE=ge({ngInjectorDef:ge});var q=(()=>((q=q||{})[q.Default=0]="Default",q[q.Host=1]="Host",q[q.Self=2]="Self",q[q.SkipSelf=4]="SkipSelf",q[q.Optional=8]="Optional",q))();let bc;function Ci(n){const e=bc;return bc=n,e}function Wf(n,e,t){const i=yc(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&q.Optional?null:void 0!==e?e:void Xo(de(n),"Injector")}function Ei(n){return{toString:n}.toString()}var Cn=(()=>((Cn=Cn||{})[Cn.OnPush=0]="OnPush",Cn[Cn.Default=1]="Default",Cn))(),En=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(En||(En={})),En))();const DE="undefined"!=typeof globalThis&&globalThis,SE="undefined"!=typeof window&&window,ME="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,pe=DE||"undefined"!=typeof global&&global||SE||ME,vr={},_e=[],Zo=ge({\u0275cmp:ge}),wc=ge({\u0275dir:ge}),Cc=ge({\u0275pipe:ge}),Gf=ge({\u0275mod:ge}),ai=ge({\u0275fac:ge}),Os=ge({__NG_ELEMENT_ID__:ge});let TE=0;function jn(n){return Ei(()=>{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===Cn.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||_e,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||En.Emulated,id:"c",styles:n.styles||_e,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=TE++,i.inputs=Xf(n.inputs,t),i.outputs=Xf(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(qf):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Yf):null,i})}function qf(n){return ct(n)||function Di(n){return n[wc]||null}(n)}function Yf(n){return function $i(n){return n[Cc]||null}(n)}const Kf={};function Ee(n){return Ei(()=>{const e={type:n.type,bootstrap:n.bootstrap||_e,declarations:n.declarations||_e,imports:n.imports||_e,exports:n.exports||_e,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Kf[n.id]=n.type),e})}function Xf(n,e){if(null==n)return vr;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 ye=jn;function kt(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function ct(n){return n[Zo]||null}function un(n,e){const t=n[Gf]||null;if(!t&&!0===e)throw new Error(`Type ${de(n)} does not have '\u0275mod' property.`);return t}const K=11;function zn(n){return Array.isArray(n)&&"object"==typeof n[1]}function Sn(n){return Array.isArray(n)&&!0===n[1]}function Sc(n){return 0!=(8&n.flags)}function na(n){return 2==(2&n.flags)}function ia(n){return 1==(1&n.flags)}function Mn(n){return null!==n.template}function kE(n){return 0!=(512&n[2])}function qi(n,e){return n.hasOwnProperty(ai)?n[ai]:null}class Zf{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Yi(){return Jf}function Jf(n){return n.type.prototype.ngOnChanges&&(n.setInput=LE),NE}function NE(){const n=tp(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===vr)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function LE(n,e,t,i){const r=tp(n)||function BE(n,e){return n[ep]=e}(n,{previous:vr,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new Zf(l&&l.currentValue,e,o===vr),n[i]=e}Yi.ngInherit=!0;const ep="__ngSimpleChanges__";function tp(n){return n[ep]||null}let Ac;function Oc(){return void 0!==Ac?Ac:"undefined"!=typeof document?document:void 0}function Fe(n){return!!n.listen}const np={createRenderer:(n,e)=>Oc()};function Ue(n){for(;Array.isArray(n);)n=n[0];return n}function ra(n,e){return Ue(e[n])}function Wt(n,e){return Ue(e[n.index])}function Rc(n,e){return n.data[e]}function Dr(n,e){return n[e]}function Gt(n,e){const t=e[n];return zn(t)?t:t[0]}function ip(n){return 4==(4&n[2])}function kc(n){return 128==(128&n[2])}function Si(n,e){return null==e?null:n[e]}function rp(n){n[18]=0}function Pc(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 W={lFrame:fp(null),bindingsEnabled:!0};function op(){return W.bindingsEnabled}function C(){return W.lFrame.lView}function re(){return W.lFrame.tView}function Ne(n){return W.lFrame.contextLView=n,n[8]}function Xe(){let n=ap();for(;null!==n&&64===n.type;)n=n.parent;return n}function ap(){return W.lFrame.currentTNode}function $n(n,e){const t=W.lFrame;t.currentTNode=n,t.isParent=e}function Fc(){return W.lFrame.isParent}function Nc(){W.lFrame.isParent=!1}function Sr(){return W.lFrame.bindingIndex++}function ci(n){const e=W.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function tD(n,e){const t=W.lFrame;t.bindingIndex=t.bindingRootIndex=n,Lc(e)}function Lc(n){W.lFrame.currentDirectiveIndex=n}function up(){return W.lFrame.currentQueryIndex}function Vc(n){W.lFrame.currentQueryIndex=n}function iD(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function dp(n,e,t){if(t&q.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&q.Host||(r=iD(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=W.lFrame=hp();return i.currentTNode=e,i.lView=n,!0}function oa(n){const e=hp(),t=n[1];W.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function hp(){const n=W.lFrame,e=null===n?null:n.child;return null===e?fp(n):e}function fp(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 pp(){const n=W.lFrame;return W.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const mp=pp;function aa(){const n=pp();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 Et(){return W.lFrame.selectedIndex}function Mi(n){W.lFrame.selectedIndex=n}function xe(){const n=W.lFrame;return Rc(n.tView,n.selectedIndex)}function la(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 ca(n,e,t){_p(n,e,3,t)}function ua(n,e,t,i){(3&n[2])===t&&_p(n,e,t,i)}function Hc(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function _p(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)&&(dD(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function dD(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 Ns{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function da(n,e,t){const i=Fe(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];zc(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function yp(n){return 3===n||4===n||6===n}function zc(n){return 64===n.charCodeAt(0)}function ha(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||vp(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function vp(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 bp(n){return-1!==n}function Mr(n){return 32767&n}function Tr(n,e){let t=function gD(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let $c=!0;function fa(n){const e=$c;return $c=n,e}let _D=0;function Bs(n,e){const t=Wc(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,Uc(i.data,n),Uc(e,null),Uc(i.blueprint,null));const r=pa(n,e),s=n.injectorIndex;if(bp(r)){const o=Mr(r),a=Tr(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 Uc(n,e){n.push(0,0,0,0,0,0,0,0,e)}function Wc(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function pa(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 ma(n,e,t){!function yD(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Os)&&(i=t[Os]),null==i&&(i=t[Os]=_D++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Ep(n,e,t){if(t&q.Optional)return n;Xo(e,"NodeInjector")}function Dp(n,e,t,i){if(t&q.Optional&&void 0===i&&(i=null),0==(t&(q.Self|q.Host))){const r=n[9],s=Ci(void 0);try{return r?r.get(e,i,t&q.Optional):Wf(e,i,t&q.Optional)}finally{Ci(s)}}return Ep(i,e,t)}function Sp(n,e,t,i=q.Default,r){if(null!==n){const s=function CD(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(Os)?n[Os]:void 0;return"number"==typeof e?e>=0?255&e:bD:e}(t);if("function"==typeof s){if(!dp(e,n,i))return i&q.Host?Ep(r,t,i):Dp(e,t,i,r);try{const o=s(i);if(null!=o||i&q.Optional)return o;Xo(t)}finally{mp()}}else if("number"==typeof s){let o=null,a=Wc(n,e),l=-1,c=i&q.Host?e[16][6]:null;for((-1===a||i&q.SkipSelf)&&(l=-1===a?pa(n,e):e[a+8],-1!==l&&Ip(i,!1)?(o=e[1],a=Mr(l),e=Tr(l,e)):a=-1);-1!==a;){const u=e[1];if(Tp(s,a,u.data)){const d=wD(a,e,t,o,i,c);if(d!==Mp)return d}l=e[a+8],-1!==l&&Ip(i,e[1].data[a+8]===c)&&Tp(s,a,e)?(o=u,a=Mr(l),e=Tr(l,e)):a=-1}}}return Dp(e,t,i,r)}const Mp={};function bD(){return new Ir(Xe(),C())}function wD(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=ga(a,o,t,null==i?na(a)&&$c:i!=o&&0!=(3&a.type),r&q.Host&&s===a);return null!==u?Vs(e,o,u,a):Mp}function ga(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&&Mn(f)&&f.type===t)return l}return null}function Vs(n,e,t,i){let r=n[t];const s=e.data;if(function hD(n){return n instanceof Ns}(r)){const o=r;o.resolving&&function gE(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new T(-200,`Circular dependency in DI detected for ${n}${t}`)}(lt(s[t]));const a=fa(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Ci(o.injectImpl):null;dp(n,i,q.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function uD(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=Jf(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&&Ci(l),fa(a),o.resolving=!1,mp()}}return r}function Tp(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function Ip(n,e){return!(n&q.Self||n&q.Host&&e)}class Ir{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return Sp(this._tNode,this._lView,e,i,t)}}function Gc(n){return Ei(()=>{const e=n.prototype.constructor,t=e[ai]||qc(e),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[ai]||qc(r);if(s&&s!==t)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function qc(n){return jf(n)?()=>{const e=qc(X(n));return e&&e()}:qi(n)}const Ar="__parameters__";function Rr(n,e,t){return Ei(()=>{const i=function Yc(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Ar)?l[Ar]:Object.defineProperty(l,Ar,{value:[]})[Ar];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class O{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=P({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function fn(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)),fn(i,e)):e!==n&&e.push(i)}return e}function Un(n,e){n.forEach(t=>Array.isArray(t)?Un(t,e):e(t))}function Ap(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function ya(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function zs(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function qt(n,e,t){let i=kr(n,e);return i>=0?n[1|i]=t:(i=~i,function MD(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function Xc(n,e){const t=kr(n,e);if(t>=0)return n[1|t]}function kr(n,e){return function kp(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<t];if(e===o)return s<<t;o>e?r=s:i=s+1}return~(r<<t)}(n,e,1)}const $s={},Zc="__NG_DI_FLAG__",ba="ngTempTokenPath",kD=/\n/gm,Fp="__source",FD=ge({provide:String,useValue:ge});let Us;function Np(n){const e=Us;return Us=n,e}function ND(n,e=q.Default){if(void 0===Us)throw new T(203,"");return null===Us?Wf(n,void 0,e):Us.get(n,e&q.Optional?null:void 0,e)}function w(n,e=q.Default){return(function EE(){return bc}()||ND)(X(n),e)}const wa=w;function Jc(n){const e=[];for(let t=0;t<n.length;t++){const i=X(n[t]);if(Array.isArray(i)){if(0===i.length)throw new T(900,"");let r,s=q.Default;for(let o=0;o<i.length;o++){const a=i[o],l=LD(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 Ws(n,e){return n[Zc]=e,n.prototype[Zc]=e,n}function LD(n){return n[Zc]}const Ki=Ws(Rr("Optional"),8),Gs=Ws(Rr("SkipSelf"),4);var Yt=(()=>((Yt=Yt||{})[Yt.Important=1]="Important",Yt[Yt.DashCase=2]="DashCase",Yt))();const Up="__ngContext__";function pt(n,e){n[Up]=e}function iu(n){const e=function Ys(n){return n[Up]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function su(n,e){return undefined(n,e)}function Ks(n){const e=n[3];return Sn(e)?e[3]:e}function ou(n){return Qp(n[13])}function au(n){return Qp(n[4])}function Qp(n){for(;null!==n&&!Sn(n);)n=n[4];return n}function Fr(n,e,t,i,r){if(null!=i){let s,o=!1;Sn(i)?s=i:zn(i)&&(o=!0,i=i[0]);const a=Ue(i);0===n&&null!==t?null==r?im(e,t,a):Xi(e,t,a,r||null,!0):1===n&&null!==t?Xi(e,t,a,r||null,!0):2===n?function pu(n,e,t){const i=Ea(n,e);i&&function m0(n,e,t,i){Fe(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function y0(n,e,t,i,r){const s=t[7];s!==Ue(t)&&Fr(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];Xs(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function cu(n,e,t){if(Fe(n))return n.createElement(e,t);{const i=null!==t?function zE(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 Jp(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Pc(r,-1)),t.splice(i,1)}function uu(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&Jp(r,i),e>0&&(n[t-1][4]=i[4]);const s=ya(n,10+e);!function a0(n,e){Xs(n,e,e[K],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function em(n,e){if(!(256&e[2])){const t=e[K];Fe(t)&&t.destroyNode&&Xs(n,e,t,3,null,null),function u0(n){let e=n[13];if(!e)return du(n[1],n);for(;e;){let t=null;if(zn(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)zn(e)&&du(e[1],e),e=e[3];null===e&&(e=n),zn(e)&&du(e[1],e),t=e&&e[4]}e=t}}(e)}}function du(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function p0(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 Ns)){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 f0(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):Ue(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&&Fe(e[K])&&e[K].destroy();const t=e[17];if(null!==t&&Sn(e[3])){t!==e[3]&&Jp(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function tm(n,e,t){return function nm(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===En.None||r===En.Emulated)return null}return Wt(i,t)}(n,e.parent,t)}function Xi(n,e,t,i,r){Fe(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function im(n,e,t){Fe(n)?n.appendChild(e,t):e.appendChild(t)}function rm(n,e,t,i,r){null!==i?Xi(n,e,t,i,r):im(n,e,t)}function Ea(n,e){return Fe(n)?n.parentNode(e):e.parentNode}function sm(n,e,t){return am(n,e,t)}let Ma,Ta,am=function om(n,e,t){return 40&n.type?Wt(n,t):null};function Da(n,e,t,i){const r=tm(n,i,e),s=e[K],a=sm(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)rm(s,r,t[l],a,!1);else rm(s,r,t,a,!1)}function Sa(n,e){if(null!==e){const t=e.type;if(3&t)return Wt(e,n);if(4&t)return fu(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return Sa(n,i);{const r=n[e.index];return Sn(r)?fu(-1,r):Ue(r)}}if(32&t)return su(e,n)()||Ue(n[e.index]);{const i=cm(n,e);return null!==i?Array.isArray(i)?i[0]:Sa(Ks(n[16]),i):Sa(n,e.next)}}return null}function cm(n,e){return null!==e?n[16][6].projection[e.projection]:null}function fu(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return Sa(i,r)}return e[7]}function mu(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&pt(Ue(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)mu(n,e,t.child,i,r,s,!1),Fr(e,n,r,a,s);else if(32&l){const c=su(t,i);let u;for(;u=c();)Fr(e,n,r,u,s);Fr(e,n,r,a,s)}else 16&l?um(n,e,i,t,r,s):Fr(e,n,r,a,s);t=o?t.projectionNext:t.next}}function Xs(n,e,t,i,r,s){mu(t,i,n.firstChild,e,r,s,!1)}function um(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++)Fr(e,n,r,l[c],s);else mu(n,e,l,o[3],r,s,!0)}function dm(n,e,t){Fe(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function gu(n,e,t){Fe(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function Qi(n){var e;return(null===(e=function _u(){if(void 0===Ma&&(Ma=null,pe.trustedTypes))try{Ma=pe.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Ma}())||void 0===e?void 0:e.createHTML(n))||n}function hm(n){var e;return(null===(e=function yu(){if(void 0===Ta&&(Ta=null,pe.trustedTypes))try{Ta=pe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Ta}())||void 0===e?void 0:e.createHTML(n))||n}class Zi{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class E0 extends Zi{getTypeName(){return"HTML"}}class D0 extends Zi{getTypeName(){return"Style"}}class S0 extends Zi{getTypeName(){return"Script"}}class M0 extends Zi{getTypeName(){return"URL"}}class T0 extends Zi{getTypeName(){return"ResourceURL"}}function Kt(n){return n instanceof Zi?n.changingThisBreaksApplicationSecurity:n}function Wn(n,e){const t=mm(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}function mm(n){return n instanceof Zi&&n.getTypeName()||null}class k0{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Qi(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class P0{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Qi(e),t;const i=this.inertDocument.createElement("body");return i.innerHTML=Qi(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const o=t.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&e.removeAttribute(o)}let i=e.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const N0=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,L0=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Qs(n){return(n=String(n)).match(N0)||n.match(L0)?n:"unsafe:"+n}function _m(n){return(n=String(n)).split(",").map(e=>Qs(e.trim())).join(", ")}function Gn(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function Zs(...n){const e={};for(const t of n)for(const i in t)t.hasOwnProperty(i)&&(e[i]=!0);return e}const ym=Gn("area,br,col,hr,img,wbr"),vm=Gn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),bm=Gn("rp,rt"),vu=Zs(ym,Zs(vm,Gn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Zs(bm,Gn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Zs(bm,vm)),bu=Gn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wu=Gn("srcset"),wm=Zs(bu,wu,Gn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Gn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),B0=Gn("script,style,template");class V0{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!vu.hasOwnProperty(t))return this.sanitizedSomething=!0,!B0.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=e.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!wm.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;bu[a]&&(l=Qs(l)),wu[a]&&(l=_m(l)),this.buf.push(" ",o,'="',Cm(l),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();vu.hasOwnProperty(t)&&!ym.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Cm(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const H0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,j0=/([^\#-~ |!])/g;function Cm(n){return n.replace(/&/g,"&").replace(H0,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(j0,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Ia;function Em(n,e){let t=null;try{Ia=Ia||function gm(n){const e=new P0(n);return function F0(){try{return!!(new window.DOMParser).parseFromString(Qi(""),"text/html")}catch(n){return!1}}()?new k0(e):e}(n);let i=e?String(e):"";t=Ia.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=t.innerHTML,t=Ia.getInertBodyElement(i)}while(i!==s);return Qi((new V0).sanitizeChildren(Cu(t)||t))}finally{if(t){const i=Cu(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Cu(n){return"content"in n&&function z0(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var le=(()=>((le=le||{})[le.NONE=0]="NONE",le[le.HTML=1]="HTML",le[le.STYLE=2]="STYLE",le[le.SCRIPT=3]="SCRIPT",le[le.URL=4]="URL",le[le.RESOURCE_URL=5]="RESOURCE_URL",le))();function Eu(n){const e=function Js(){const n=C();return n&&n[12]}();return e?hm(e.sanitize(le.HTML,n)||""):Wn(n,"HTML")?hm(Kt(n)):Em(Oc(),U(n))}function Su(n){return n.ngOriginalError}function Z0(n,...e){n.error(...e)}class Ii{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function Q0(n){return n&&n.ngErrorLogger||Z0}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Su(e);for(;t&&Su(t);)t=Su(t);return t||null}}const sS=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(pe))();function qn(n){return n instanceof Function?n():n}function Tm(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 Im="ng-template";function cS(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==Tm(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 xm(n){return 4===n.type&&n.value!==Im}function uS(n,e,t){return e===(4!==n.type||t?n.value:Im)}function dS(n,e,t){let i=4;const r=n.attrs||[],s=function pS(n){for(let e=0;e<n.length;e++)if(yp(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&&!uS(n,l,t)||""===l&&1===e.length){if(Tn(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!cS(n.attrs,c,t)){if(Tn(i))return!1;o=!0}continue}const d=hS(8&i?"class":l,r,xm(n),t);if(-1===d){if(Tn(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!==Tm(f,c,0)||2&i&&c!==h){if(Tn(i))return!1;o=!0}}}}else{if(!o&&!Tn(i)&&!Tn(l))return!1;if(o&&Tn(l))continue;o=!1,i=l|1&i}}return Tn(i)||o}function Tn(n){return 0==(1&n)}function hS(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 mS(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 Am(n,e,t=!1){for(let i=0;i<e.length;i++)if(dS(n,e[i],t))return!0;return!1}function gS(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function Om(n,e){return n?":not("+e.trim()+")":e}function _S(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&&!Tn(o)&&(e+=Om(s,r),r=""),i=o,s=s||!Tn(i);t++}return""!==r&&(e+=Om(s,r)),e}const G={};function B(n){Rm(re(),C(),Et()+n,!1)}function Rm(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&ca(e,s,t)}else{const s=n.preOrderHooks;null!==s&&ua(e,s,0,t)}Mi(t)}function xa(n,e){return n<<17|e<<2}function In(n){return n>>17&32767}function Mu(n){return 2|n}function ui(n){return(131068&n)>>2}function Tu(n,e){return-131069&n|e<<2}function Iu(n){return 1|n}function $m(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];Vc(r),o.contentQueries(2,e[s],s)}}}function eo(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,rp(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[K]=a||n&&n[K],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 Lr(n,e,t,i,r){let s=n.data[e];if(null===s)s=function Lu(n,e,t,i,r){const s=ap(),o=Fc(),l=n.data[e]=function FS(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 eD(){return W.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function Fs(){const n=W.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return $n(s,!0),s}function Br(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 to(n,e,t){oa(e);try{const i=n.viewQuery;null!==i&&Gu(1,i,t);const r=n.template;null!==r&&Um(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&$m(n,e),n.staticViewQueries&&Gu(2,n.viewQuery,t);const s=n.components;null!==s&&function RS(n,e){for(let t=0;t<e.length;t++)JS(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,aa()}}function Vr(n,e,t,i){const r=e[2];if(256!=(256&r)){oa(e);try{rp(e),function lp(n){return W.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Um(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&ca(e,c,null)}else{const c=n.preOrderHooks;null!==c&&ua(e,c,0,null),Hc(e,0)}if(function QS(n){for(let e=ou(n);null!==e;e=au(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])&&Pc(s,1),r[2]|=1024}}}(e),function XS(n){for(let e=ou(n);null!==e;e=au(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];kc(i)&&Vr(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&$m(n,e),o){const c=n.contentCheckHooks;null!==c&&ca(e,c)}else{const c=n.contentHooks;null!==c&&ua(e,c,1),Hc(e,1)}!function AS(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)Mi(~r);else{const s=r,o=t[++i],a=t[++i];tD(o,s),a(2,e[s])}}}finally{Mi(-1)}}(n,e);const a=n.components;null!==a&&function OS(n,e){for(let t=0;t<e.length;t++)ZS(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&Gu(2,l,i),o){const c=n.viewCheckHooks;null!==c&&ca(e,c)}else{const c=n.viewHooks;null!==c&&ua(e,c,2),Hc(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,Pc(e[3],-1))}finally{aa()}}}function kS(n,e,t,i){const r=e[10],o=ip(e);try{!o&&r.begin&&r.begin(),o&&to(n,e,i),Vr(n,e,t,i)}finally{!o&&r.end&&r.end()}}function Um(n,e,t,i,r){const s=Et(),o=2&i;try{Mi(-1),o&&e.length>20&&Rm(n,e,20,!1),t(i,r)}finally{Mi(s)}}function Wm(n,e,t){if(Sc(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)}}}function Bu(n,e,t){!op()||(function zS(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||Bs(t,e),pt(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Mn(l);c&&qS(e,t,l);const u=Vs(e,n,a,t);pt(u,e),null!==o&&YS(0,a-r,u,l,0,o),c&&(Gt(t.index,e)[8]=u)}}(n,e,t,Wt(t,e)),128==(128&t.flags)&&function $S(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function nD(){return W.lFrame.currentDirectiveIndex}();try{Mi(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];Lc(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Jm(c,u)}}finally{Mi(-1),Lc(a)}}(n,e,t))}function Vu(n,e,t=Wt){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}}}function Gm(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=Ra(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function Ra(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function PS(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:G);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 Km(n,e,t,i){const r=sg(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&og(n).push(i,r.length-1))}function Xm(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 Hu(n,e,t,i){let r=!1;if(op()){const s=function US(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Am(t,o.selectors,!1)&&(r||(r=[]),ma(Bs(t,e),n,o.type),Mn(o)?(eg(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,tg(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=Br(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=ha(t.mergedAttrs,d.hostAttrs),ng(n,t,e,c,d),GS(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 NS(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||xm(e)?null:KS(d,s);o.push(h),a=Xm(d,c,a),l=Xm(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 WS(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 T(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=ha(t.mergedAttrs,t.attrs),r}function Zm(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 jS(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 Jm(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function eg(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function GS(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Mn(e)&&(t[""]=n)}}function tg(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function ng(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=qi(r.type)),o=new Ns(s,Mn(r),null);n.blueprint[i]=o,t[i]=o,Zm(n,e,0,i,Br(n,t,r.hostVars,G),r)}function qS(n,e,t){const i=Wt(e,n),r=Gm(t),s=n[10],o=ka(n,eo(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function Yn(n,e,t,i,r,s){const o=Wt(n,e);!function ju(n,e,t,i,r,s,o){if(null==s)Fe(n)?n.removeAttribute(e,r,t):e.removeAttribute(r);else{const a=null==o?U(s):o(s,i||"",r);Fe(n)?n.setAttribute(e,r,a,t):t?e.setAttributeNS(t,r,a):e.setAttribute(r,a)}}(e[K],o,s,n.value,t,i,r)}function YS(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 KS(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 ig(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}function ZS(n,e){const t=Gt(e,n);if(kc(t)){const i=t[1];80&t[2]?Vr(i,t,i.template,t[8]):t[5]>0&&zu(t)}}function zu(n){for(let i=ou(n);null!==i;i=au(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];Vr(o,s,o.template,s[8])}else s[5]>0&&zu(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=Gt(t[i],n);kc(r)&&r[5]>0&&zu(r)}}function JS(n,e){const t=Gt(e,n),i=t[1];(function eM(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),to(i,t,t[8])}function ka(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function $u(n){for(;n;){n[2]|=64;const e=Ks(n);if(kE(n)&&!e)return n;n=e}return null}function rg(n){!function Uu(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=iu(t),r=i[1];kS(r,i,r.template,t)}}(n[8])}function Gu(n,e,t){Vc(0),e(n,t)}const nM=(()=>Promise.resolve(null))();function sg(n){return n[7]||(n[7]=[])}function og(n){return n.cleanup||(n.cleanup=[])}function lg(n,e){const t=n[9],i=t?t.get(Ii,null):null;i&&i.handleError(e)}function cg(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 di(n,e,t){const i=ra(e,n);!function Zp(n,e,t){Fe(n)?n.setValue(e,t):e.textContent=t}(n[K],i,t)}function Pa(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=mc(r,a):2==s&&(i=mc(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const qu=new O("INJECTOR",-1);class ug{get(e,t=$s){if(t===$s){const i=new Error(`NullInjectorError: No provider for ${de(e)}!`);throw i.name="NullInjectorError",i}return t}}const Yu=new O("Set Injector scope."),no={},sM={};let Ku;function dg(){return void 0===Ku&&(Ku=new ug),Ku}function hg(n,e=null,t=null,i){const r=fg(n,e,t,i);return r._resolveInjectorDefTypes(),r}function fg(n,e=null,t=null,i){return new oM(n,t,e||dg(),i)}class oM{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&&Un(t,a=>this.processProvider(a,e,t)),Un([e],a=>this.processInjectorType(a,[],s)),this.records.set(qu,Hr(void 0,this));const o=this.records.get(Yu);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:de(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=$s,i=q.Default){this.assertNotDestroyed();const r=Np(this),s=Ci(void 0);try{if(!(i&q.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function pM(n){return"function"==typeof n||"object"==typeof n&&n instanceof O}(e)&&yc(e);a=l&&this.injectableDefInScope(l)?Hr(Xu(e),no):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&q.Self?dg():this.parent).get(e,t=i&q.Optional&&t===$s?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[ba]=o[ba]||[]).unshift(de(e)),r)throw o;return function BD(n,e,t,i){const r=n[ba];throw e[Fp]&&r.unshift(e[Fp]),n.message=function VD(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=de(e);if(Array.isArray(e))r=e.map(de).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):de(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(kD,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[ba]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{Ci(s),Np(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(de(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new T(205,!1)}processInjectorType(e,t,i){if(!(e=X(e)))return!1;let r=$f(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=$f(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{Un(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];Un(f,p=>this.processProvider(p,h,f||_e))}}this.injectorDefTypes.add(o);const l=qi(o)||(()=>new o);this.records.set(o,Hr(l,no));const c=r.providers;if(null!=c&&!a){const u=e;Un(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,i){let r=jr(e=X(e))?e:X(e&&e.provide);const s=function lM(n,e,t){return mg(n)?Hr(void 0,n.useValue):Hr(pg(n),no)}(e);if(jr(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Hr(void 0,no,!0),o.factory=()=>Jc(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===no&&(t.value=sM,t.value=t.factory()),"object"==typeof t.value&&t.value&&function fM(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=X(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function Xu(n){const e=yc(n),t=null!==e?e.factory:qi(n);if(null!==t)return t;if(n instanceof O)throw new T(204,!1);if(n instanceof Function)return function aM(n){const e=n.length;if(e>0)throw zs(e,"?"),new T(204,!1);const t=function bE(n){const e=n&&(n[Qo]||n[Uf]);if(e){const t=function wE(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 T(204,!1)}function pg(n,e,t){let i;if(jr(n)){const r=X(n);return qi(r)||Xu(r)}if(mg(n))i=()=>X(n.useValue);else if(function uM(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Jc(n.deps||[]));else if(function cM(n){return!(!n||!n.useExisting)}(n))i=()=>w(X(n.useExisting));else{const r=X(n&&(n.useClass||n.provide));if(!function hM(n){return!!n.deps}(n))return qi(r)||Xu(r);i=()=>new r(...Jc(n.deps))}return i}function Hr(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function mg(n){return null!==n&&"object"==typeof n&&FD in n}function jr(n){return"function"==typeof n}let mt=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return hg({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return hg({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=$s,n.NULL=new ug,n.\u0275prov=P({token:n,providedIn:"any",factory:()=>w(qu)}),n.__NG_ELEMENT_ID__=-1,n})();function CM(n,e){la(iu(n)[1],Xe())}function Kn(n){let e=function Tg(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(Mn(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new T(903,"");r=e.\u0275dir}if(r){if(t){i.push(r);const o=n;o.inputs=Ju(n.inputs),o.declaredInputs=Ju(n.declaredInputs),o.outputs=Ju(n.outputs);const a=r.hostBindings;a&&MM(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&DM(n,l),c&&SM(n,c),pc(n.inputs,r.inputs),pc(n.declaredInputs,r.declaredInputs),pc(n.outputs,r.outputs),Mn(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===Kn&&(t=!1)}}e=Object.getPrototypeOf(e)}!function EM(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=ha(r.hostAttrs,t=ha(t,r.hostAttrs))}}(i)}function Ju(n){return n===vr?{}:n===_e?[]:n}function DM(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function SM(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,s)=>{e(i,r,s),t(i,r,s)}:e}function MM(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let Fa=null;function zr(){if(!Fa){const n=pe.Symbol;if(n&&n.iterator)Fa=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&&(Fa=i)}}}return Fa}function io(n){return!!ed(n)&&(Array.isArray(n)||!(n instanceof Map)&&zr()in n)}function ed(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function gt(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function We(n,e,t,i){const r=C();return gt(r,Sr(),e)&&(re(),Yn(xe(),r,n,e,t,i)),We}function oe(n,e,t,i,r,s,o,a){const l=C(),c=re(),u=n+20,d=c.firstCreatePass?function kM(n,e,t,i,r,s,o,a,l){const c=e.consts,u=Lr(e,n,4,o||null,Si(c,a));Hu(e,t,u,Si(c,l)),la(e,u);const d=u.tViews=Ra(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,t,i,r,s,o):c.data[u];$n(d,!1);const h=l[K].createComment("");Da(c,l,h,d),pt(h,l),ka(l,l[u]=ig(h,l,h,d)),ia(d)&&Bu(c,l,d),null!=o&&Vu(l,d,a)}function st(n){return Dr(function JE(){return W.lFrame.contextLView}(),20+n)}function v(n,e=q.Default){const t=C();return null===t?w(n,e):Sp(Xe(),t,X(n),e)}function F(n,e,t){const i=C();return gt(i,Sr(),e)&&function Xt(n,e,t,i,r,s,o,a){const l=Wt(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(cg(n,t,u,i,r),na(e)&&function BS(n,e){const t=Gt(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function LS(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,Fe(s)?s.setProperty(l,i,r):zc(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(re(),xe(),i,n,e,i[K],t,!1),F}function sd(n,e,t,i,r){const o=r?"class":"style";cg(n,t,e.inputs[o],o,i)}function ce(n,e,t,i){const r=C(),s=re(),o=20+n,a=r[K],l=r[o]=cu(a,e,function cD(){return W.lFrame.currentNamespace}()),c=s.firstCreatePass?function eT(n,e,t,i,r,s,o){const a=e.consts,c=Lr(e,n,2,r,Si(a,s));return Hu(e,t,c,Si(a,o)),null!==c.attrs&&Pa(c,c.attrs,!1),null!==c.mergedAttrs&&Pa(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];$n(c,!0);const u=c.mergedAttrs;null!==u&&da(a,l,u);const d=c.classes;null!==d&&gu(a,l,d);const h=c.styles;return null!==h&&dm(a,l,h),64!=(64&c.flags)&&Da(s,r,l,c),0===function YE(){return W.lFrame.elementDepthCount}()&&pt(l,r),function KE(){W.lFrame.elementDepthCount++}(),ia(c)&&(Bu(s,r,c),Wm(s,c,r)),null!==i&&Vu(r,c),ce}function fe(){let n=Xe();Fc()?Nc():(n=n.parent,$n(n,!1));const e=n;!function XE(){W.lFrame.elementDepthCount--}();const t=re();return t.firstCreatePass&&(la(t,n),Sc(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function pD(n){return 0!=(16&n.flags)}(e)&&sd(t,e,C(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function mD(n){return 0!=(32&n.flags)}(e)&&sd(t,e,C(),e.stylesWithoutHost,!1),fe}function An(n,e,t,i){return ce(n,e,t,i),fe(),An}function St(n,e,t){const i=C(),r=re(),s=n+20,o=r.firstCreatePass?function tT(n,e,t,i,r){const s=e.consts,o=Si(s,i),a=Lr(e,n,8,"ng-container",o);return null!==o&&Pa(a,o,!0),Hu(e,t,a,Si(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,t):r.data[s];$n(o,!0);const a=i[s]=i[K].createComment("");return Da(r,i,a,o),pt(a,i),ia(o)&&(Bu(r,i,o),Wm(r,o,i)),null!=t&&Vu(i,o),St}function Mt(){let n=Xe();const e=re();return Fc()?Nc():(n=n.parent,$n(n,!1)),e.firstCreatePass&&(la(e,n),Sc(n)&&e.queries.elementEnd(n)),Mt}function Qn(n,e,t){return St(n,e,t),Mt(),Qn}function Qt(){return C()}function od(n){return!!n&&"function"==typeof n.then}function Yg(n){return!!n&&"function"==typeof n.subscribe}const nT=Yg;function Le(n,e,t,i){const r=C(),s=re(),o=Xe();return function Xg(n,e,t,i,r,s,o,a){const l=ia(i),u=n.firstCreatePass&&og(n),d=e[8],h=sg(e);let f=!0;if(3&i.type||a){const _=Wt(i,e),b=a?a(_):_,g=h.length,E=a?x=>a(Ue(x[i.index])):i.index;if(Fe(t)){let x=null;if(!a&&l&&(x=function iT(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!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=s,x.__ngLastListenerFn__=s,f=!1;else{s=ad(i,e,d,s,!1);const Y=t.listen(b,r,s);h.push(s,Y),u&&u.push(r,E,g,g+1)}}else s=ad(i,e,d,s,!0),b.addEventListener(r,s,o),h.push(s),u&&u.push(r,E,g,o)}else s=ad(i,e,d,s,!1);const p=i.outputs;let m;if(f&&null!==p&&(m=p[r])){const _=m.length;if(_)for(let b=0;b<_;b+=2){const Me=e[m[b]][m[b+1]].subscribe(s),Oe=h.length;h.push(s,Me),u&&u.push(r,i.index,Oe,-(Oe+1))}}}(s,r,r[K],o,n,e,!!t,i),Le}function Qg(n,e,t,i){try{return!1!==t(i)}catch(r){return lg(n,r),!1}}function ad(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?Gt(n.index,e):e;0==(32&e[2])&&$u(a);let l=Qg(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=Qg(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function $(n=1){return function rD(n){return(W.lFrame.contextLView=function sD(n,e){for(;n>0;)e=e[15],n--;return e}(n,W.lFrame.contextLView))[8]}(n)}function rT(n,e){let t=null;const i=function fS(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?Am(n,s,!0):gS(i,s))return r}else t=r}return t}function Jr(n){const e=C()[16][6];if(!e.projection){const i=e.projection=zs(n?n.length:1,null),r=i.slice();let s=e.child;for(;null!==s;){const o=n?rT(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function er(n,e=0,t){const i=C(),r=re(),s=Lr(r,20+n,16,null,t||null);null===s.projection&&(s.projection=e),Nc(),64!=(64&s.flags)&&function _0(n,e,t){um(e[K],0,e,t,tm(n,t,e),sm(t.parent||e[6],t,e))}(r,i,s)}function a_(n,e,t,i,r){const s=n[t+1],o=null===e;let a=i?In(s):ui(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];aT(n[a],e)&&(l=!0,n[a+1]=i?Iu(u):Mu(u)),a=i?In(u):ui(u)}l&&(n[t+1]=i?Mu(s):Iu(s))}function aT(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&kr(n,e)>=0}const Ze={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function l_(n){return n.substring(Ze.key,Ze.keyEnd)}function lT(n){return n.substring(Ze.value,Ze.valueEnd)}function u_(n,e){const t=Ze.textEnd;let i=Ze.key=es(n,e,t);return t===i?-1:(i=Ze.keyEnd=function hT(n,e,t){let i;for(;e<t&&(45===(i=n.charCodeAt(e))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(n,i,t),i=h_(n,i,t),i=Ze.value=es(n,i,t),i=Ze.valueEnd=function fT(n,e,t){let i=-1,r=-1,s=-1,o=e,a=o;for(;o<t;){const l=n.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=f_(n,l,o,t):e===o-4&&85===s&&82===r&&76===i&&40===l?a=o=f_(n,41,o,t):l>32&&(a=o),s=r,r=i,i=-33&l}return a}(n,i,t),h_(n,i,t))}function es(n,e,t){for(;e<t&&n.charCodeAt(e)<=32;)e++;return e}function h_(n,e,t,i){return(e=es(n,e,t))<t&&e++,e}function f_(n,e,t,i){let r=-1,s=t;for(;s<i;){const o=n.charCodeAt(s++);if(o==e&&92!==r)return s;r=92==o&&92===r?0:o}throw new Error}function ts(n,e,t){return On(n,e,t,!1),ts}function Zn(n,e){return On(n,e,null,!0),Zn}function _t(n){!function Rn(n,e,t,i){const r=re(),s=ci(2);r.firstUpdatePass&&m_(r,null,s,i);const o=C();if(t!==G&>(o,s,t)){const a=r.data[Et()];if(v_(a,i)&&!p_(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=mc(l,t||"")),sd(r,a,o,t,i)}else!function wT(n,e,t,i,r,s,o,a){r===G&&(r=_e);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,f=c<s.length?s[c+1]:void 0;let m,p=null;u===d?(l+=2,c+=2,h!==f&&(p=d,m=f)):null===d||null!==u&&u<d?(l+=2,p=u):(c+=2,p=d,m=f),null!==p&&__(n,e,t,i,p,m,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,a,o,o[K],o[s+1],o[s+1]=function bT(n,e,t){if(null==t||""===t)return _e;const i=[],r=Kt(t);if(Array.isArray(r))for(let s=0;s<r.length;s++)n(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&n(i,s,r[s]);else"string"==typeof r&&e(i,r);return i}(n,e,t),i,s)}}(g_,pT,n,!1)}function pT(n,e){for(let t=function uT(n){return function d_(n){Ze.key=0,Ze.keyEnd=0,Ze.value=0,Ze.valueEnd=0,Ze.textEnd=n.length}(n),u_(n,es(n,0,Ze.textEnd))}(e);t>=0;t=u_(e,t))g_(n,l_(e),lT(e))}function On(n,e,t,i){const r=C(),s=re(),o=ci(2);s.firstUpdatePass&&m_(s,n,o,i),e!==G&>(r,o,e)&&__(s,s.data[Et()],r,r[K],n,r[o+1]=function CT(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=de(Kt(n)))),n}(e,t),i,o)}function p_(n,e){return e>=n.expandoStartIndex}function m_(n,e,t,i){const r=n.data;if(null===r[t+1]){const s=r[Et()],o=p_(n,t);v_(s,i)&&null===e&&!o&&(e=!1),e=function gT(n,e,t,i){const r=function Bc(n){const e=W.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=so(t=cd(null,n,e,t,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==r)if(t=cd(r,n,e,t,i),null===s){let l=function _T(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==ui(i))return n[In(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=cd(null,n,e,l[1],i),l=so(l,e.attrs,i),function yT(n,e,t,i){n[In(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else s=function vT(n,e,t){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=so(i,n[s].hostAttrs,t);return so(i,e.attrs,t)}(n,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),t}(r,s,e,i),function sT(n,e,t,i,r,s){let o=s?e.classBindings:e.styleBindings,a=In(o),l=ui(o);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||kr(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=In(n[a+1]);n[i+1]=xa(h,a),0!==h&&(n[h+1]=Tu(n[h+1],i)),n[a+1]=function bS(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=xa(a,0),0!==a&&(n[a+1]=Tu(n[a+1],i)),a=i;else n[i+1]=xa(l,0),0===a?a=i:n[l+1]=Tu(n[l+1],i),l=i;c&&(n[i+1]=Mu(n[i+1])),a_(n,u,i,!0),a_(n,u,i,!1),function oT(n,e,t,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&kr(s,e)>=0&&(t[i+1]=Iu(t[i+1]))}(e,u,n,i,s),o=xa(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,t,o,i)}}function cd(n,e,t,i,r){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],i=so(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function so(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),qt(n,o,!!t||e[++s]))}return void 0===n?null:n}function g_(n,e,t){qt(n,e,Kt(t))}function __(n,e,t,i,r,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];Ba(function Fm(n){return 1==(1&n)}(c)?y_(l,e,t,r,ui(c),o):void 0)||(Ba(s)||function Pm(n){return 2==(2&n)}(c)&&(s=y_(l,null,t,r,a,o)),function v0(n,e,t,i,r){const s=Fe(n);if(e)r?s?n.addClass(t,i):t.classList.add(i):s?n.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:Yt.DashCase;if(null==r)s?n.removeStyle(t,i,o):t.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=Yt.Important),s?n.setStyle(t,i,r,o):t.style.setProperty(i,r,a?"important":"")}}}(i,o,ra(Et(),t),r,s))}function y_(n,e,t,i,r,s){const o=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===G&&(h=d?_e:void 0);let f=d?Xc(h,i):u===i?h:void 0;if(c&&!Ba(f)&&(f=Xc(l,i)),Ba(f)&&(a=f,o))return a;const p=n[r+1];r=o?In(p):ui(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=Xc(l,i))}return a}function Ba(n){return void 0!==n}function v_(n,e){return 0!=(n.flags&(e?16:32))}function ns(n,e=""){const t=C(),i=re(),r=n+20,s=i.firstCreatePass?Lr(i,r,1,e,null):i.data[r],o=t[r]=function lu(n,e){return Fe(n)?n.createText(e):n.createTextNode(e)}(t[K],e);Da(i,t,o,s),$n(s,!1)}function tr(n){return ud("",n,""),tr}function ud(n,e,t){const i=C(),r=function Ur(n,e,t,i){return gt(n,Sr(),t)?e+U(t)+i:G}(i,n,e,t);return r!==G&&di(i,Et(),r),ud}const Va="en-US";let j_=Va;function fd(n,e,t,i,r){if(n=X(n),Array.isArray(n))for(let s=0;s<n.length;s++)fd(n[s],e,t,i,r);else{const s=re(),o=C();let a=jr(n)?n:X(n.provide),l=pg(n);const c=Xe(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(jr(n)||!n.multi){const f=new Ns(l,r,v),p=md(a,e,r?u:u+h,d);-1===p?(ma(Bs(c,o),s,a),pd(s,n,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(f),o.push(f)):(t[p]=f,o[p]=f)}else{const f=md(a,e,u+h,d),p=md(a,e,u,u+h),m=f>=0&&t[f],_=p>=0&&t[p];if(r&&!_||!r&&!m){ma(Bs(c,o),s,a);const b=function jI(n,e,t,i,r){const s=new Ns(n,t,v);return s.multi=[],s.index=e,s.componentProviders=0,dy(s,r,i&&!t),s}(r?HI:VI,t.length,r,i,l);!r&&_&&(t[p].providerFactory=b),pd(s,n,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(b),o.push(b)}else pd(s,n,f>-1?f:p,dy(t[r?p:f],l,!r&&i));!r&&i&&_&&t[p].componentProviders++}}}function pd(n,e,t,i){const r=jr(e),s=function dM(n){return!!n.useClass}(e);if(r||s){const l=(s?X(e.useClass):e).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&e.multi){const u=c.indexOf(t);-1===u?c.push(t,[i,l]):c[u+1].push(i,l)}else c.push(t,l)}}}function dy(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function md(n,e,t,i){for(let r=t;r<i;r++)if(e[r]===n)return r;return-1}function VI(n,e,t,i){return gd(this.multi,[])}function HI(n,e,t,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Vs(t,t[1],this.providerFactory.index,i);s=a.slice(0,o),gd(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],gd(r,s);return s}function gd(n,e){for(let t=0;t<n.length;t++)e.push((0,n[t])());return e}function _d(n,e=[]){return t=>{t.providersResolver=(i,r)=>function BI(n,e,t){const i=re();if(i.firstCreatePass){const r=Mn(n);fd(t,i.data,i.blueprint,r,!0),fd(e,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,e)}}class hy{}class UI{resolveComponentFactory(e){throw function $I(n){const e=Error(`No component factory found for ${de(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let hi=(()=>{class n{}return n.NULL=new UI,n})();function WI(){return ss(Xe(),C())}function ss(n,e){return new Se(Wt(n,e))}let Se=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=WI,n})();function GI(n){return n instanceof Se?n.nativeElement:n}class uo{}let ho=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function YI(){const n=C(),t=Gt(Xe().index,n);return function qI(n){return n[K]}(zn(t)?t:n)}(),n})(),KI=(()=>{class n{}return n.\u0275prov=P({token:n,providedIn:"root",factory:()=>null}),n})();class os{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const XI=new os("13.4.0"),yd={};function Ua(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(Ue(s)),Sn(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&Ua(l[1],l,c,i)}const o=t.type;if(8&o)Ua(n,e,t.child,i);else if(32&o){const a=su(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=cm(e,t);if(Array.isArray(a))i.push(...a);else{const l=Ks(e[16]);Ua(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class fo{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 Ua(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(Sn(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(uu(e,i),ya(t,i))}this._attachedToViewContainer=!1}em(this._lView[1],this._lView)}onDestroy(e){Km(this._lView[1],this._lView,null,e)}markForCheck(){$u(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Wu(n,e,t){const i=e[10];i.begin&&i.begin();try{Vr(n,e,n.template,t)}catch(r){throw lg(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new T(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function c0(n,e){Xs(n,e,e[K],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new T(902,"");this._appRef=e}}class QI extends fo{constructor(e){super(e),this._view=e}detectChanges(){rg(this._view)}checkNoChanges(){}get context(){return null}}class py extends hi{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=ct(e);return new vd(t,this.ngModule)}}function my(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class vd extends hy{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function yS(n){return n.map(_S).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return my(this.componentDef.inputs)}get outputs(){return my(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function JI(n,e){return{get:(t,i,r)=>{const s=n.get(t,yd,r);return s!==yd||i===yd?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(uo,np),a=s.get(KI,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function Ym(n,e,t){if(Fe(n))return n.selectRootElement(e,t===En.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):cu(o.createRenderer(null,this.componentDef),c,function ZI(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function Mg(n,e){return{components:[],scheduler:n||sS,clean:nM,playerHandler:e||null,flags:0}}(),f=Ra(0,null,null,1,0,null,null,null,null,null),p=eo(null,f,h,d,null,null,o,l,a,s);let m,_;oa(p);try{const b=function Dg(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=Lr(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(Pa(l,c,!0),null!==n&&(da(r,n,c),null!==l.classes&&gu(r,n,l.classes),null!==l.styles&&dm(r,n,l.styles)));const u=i.createRenderer(n,e),d=eo(t,Gm(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(ma(Bs(l,t),o,e.type),eg(o,l),tg(l,t.length,1)),ka(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)da(l,u,["ng-version",XI.full]);else{const{attrs:g,classes:E}=function vS(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(!Tn(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);g&&da(l,u,g),E&&E.length>0&&gu(l,u,E.join(" "))}if(_=Rc(f,20),void 0!==t){const g=_.projection=[];for(let E=0;E<this.ngContentSelectors.length;E++){const x=t[E];g.push(null!=x?Array.from(x):null)}}m=function Sg(n,e,t,i,r){const s=t[1],o=function HS(n,e,t){const i=Xe();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),ng(n,i,e,Br(n,e,1,null),t));const r=Vs(e,n,i.directiveStart,i);pt(r,e);const s=Wt(i,e);return s&&pt(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=Xe();e.contentQueries(1,o,l.directiveStart)}const a=Xe();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Mi(a.index),Zm(t[1],a,0,a.directiveStart,a.directiveEnd,e),Jm(e,o)),o}(b,this.componentDef,p,h,[CM]),to(f,p,null)}finally{aa()}return new tx(this.componentType,m,ss(_,p),p,_)}}class tx extends class zI{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new QI(r),this.componentType=e}get injector(){return new Ir(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class as{}const ls=new Map;class yy extends as{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new py(this);const i=un(e);this._bootstrapComponents=qn(i.bootstrap),this._r3Injector=fg(e,t,[{provide:as,useValue:this},{provide:hi,useValue:this.componentFactoryResolver}],de(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=mt.THROW_IF_NOT_FOUND,i=q.Default){return e===mt||e===as||e===qu?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 bd extends class ix{}{constructor(e){super(),this.moduleType=e,null!==un(e)&&function rx(n){const e=new Set;!function t(i){const r=un(i,!0),s=r.id;null!==s&&(function gy(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${de(e)} vs ${de(e.name)}`)}(s,ls.get(s),i),ls.set(s,i));const o=qn(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new yy(this.moduleType,e)}}function vy(n,e,t,i,r,s){const o=e+t;return gt(n,o,r)?function Xn(n,e,t){return n[e]=t}(n,o+1,s?i.call(s,r):i(r)):function po(n,e){const t=n[e];return t===G?void 0:t}(n,o+1)}function Sy(n,e,t){const i=n+20,r=C(),s=Dr(r,i);return function mo(n,e){return n[1].data[e].pure}(r,i)?vy(r,function Ct(){const n=W.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}(),e,s.transform,t,s):s.transform(t)}function wd(n){return e=>{setTimeout(n,void 0,e)}}const Ve=class bx extends y{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=wd(l),a&&(a=wd(a)),c&&(c=wd(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof R&&e.add(u),u}};function wx(){return this._results[zr()]()}class cs{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=zr(),i=cs.prototype;i[t]||(i[t]=wx)}get changes(){return this._changes||(this._changes=new Ve)}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=fn(e);(this._changesDetected=!function DD(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 kn=(()=>{class n{}return n.__NG_ELEMENT_ID__=Dx,n})();const Cx=kn,Ex=class extends Cx{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=eo(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)),to(t,i,e),new fo(i)}};function Dx(){return Wa(Xe(),C())}function Wa(n,e){return 4&n.type?new Ex(e,n,ss(n,e)):null}let It=(()=>{class n{}return n.__NG_ELEMENT_ID__=Sx,n})();function Sx(){return Iy(Xe(),C())}const Mx=It,My=class extends Mx{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return ss(this._hostTNode,this._hostLView)}get injector(){return new Ir(this._hostTNode,this._hostLView)}get parentInjector(){const e=pa(this._hostTNode,this._hostLView);if(bp(e)){const t=Tr(e,this._hostLView),i=Mr(e);return new Ir(t[1].data[i+8],t)}return new Ir(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Ty(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 js(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 vd(ct(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(as,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 qE(n){return Sn(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new My(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function d0(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],Ap(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function h0(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=fu(s,o),l=i[K],c=Ea(l,o[7]);return null!==c&&function l0(n,e,t,i,r,s){i[0]=r,i[6]=e,Xs(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),Ap(Cd(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=Ty(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=uu(this._lContainer,t);i&&(ya(Cd(this._lContainer),t),em(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=uu(this._lContainer,t);return i&&null!=ya(Cd(this._lContainer),t)?new fo(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function Ty(n){return n[8]}function Cd(n){return n[8]||(n[8]=[])}function Iy(n,e){let t;const i=e[n.index];if(Sn(i))t=i;else{let r;if(8&n.type)r=Ue(i);else{const s=e[K];r=s.createComment("");const o=Wt(n,e);Xi(s,Ea(s,o),r,function g0(n,e){return Fe(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=ig(i,e,r,n),ka(e,t)}return new My(t,n,e)}class Ed{constructor(e){this.queryList=e,this.matches=null}clone(){return new Ed(this.queryList)}setDirty(){this.queryList.setDirty()}}class Dd{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 Dd(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!==ky(e,t).matches&&this.queries[t].setDirty()}}class xy{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class Sd{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 Sd(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 Md{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 Md(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,xx(t,s)),this.matchTNodeWithReadOption(e,t,ga(t,e,s,!1,!1))}else i===kn?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,ga(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Se||r===It||r===kn&&4&t.type)this.addMatch(t.index,-2);else{const s=ga(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 xx(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 Ox(n,e,t,i){return-1===t?function Ax(n,e){return 11&n.type?ss(n,e):4&n.type?Wa(n,e):null}(e,n):-2===t?function Rx(n,e,t){return t===Se?ss(e,n):t===kn?Wa(e,n):t===It?Iy(e,n):void 0}(n,e,i):Vs(n,n[1],t,e)}function Ay(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:Ox(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function Td(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=Ay(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]&&Td(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];Td(f[1],f,c,i)}}}}}return i}function ei(n){const e=C(),t=re(),i=up();Vc(i+1);const r=ky(t,i);if(n.dirty&&ip(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?Td(t,e,i,[]):Ay(t,e,r,i);n.reset(s,GI),n.notifyOnChanges()}return!0}return!1}function ir(n,e,t){const i=re();i.firstCreatePass&&(Ry(i,new xy(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),Oy(i,C(),e)}function Ga(n,e,t,i){const r=re();if(r.firstCreatePass){const s=Xe();Ry(r,new xy(e,t,i),s.index),function Px(n,e){const t=n.contentQueries||(n.contentQueries=[]);e!==(t.length?t[t.length-1]:-1)&&t.push(n.queries.length-1,e)}(r,n),2==(2&t)&&(r.staticContentQueries=!0)}Oy(r,C(),t)}function ti(){return function kx(n,e){return n[19].queries[e].queryList}(C(),up())}function Oy(n,e,t){const i=new cs(4==(4&t));Km(n,e,i,i.destroy),null===e[19]&&(e[19]=new Dd),e[19].queries.push(new Ed(i))}function Ry(n,e,t){null===n.queries&&(n.queries=new Sd),n.queries.track(new Md(e,t))}function ky(n,e){return n.queries.getByIndex(e)}function Py(n,e){return Wa(n,e)}function Ka(...n){}const kd=new O("Application Initializer");let Pd=(()=>{class n{constructor(t){this.appInits=t,this.resolve=Ka,this.reject=Ka,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(od(s))t.push(s);else if(nT(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(kd,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _o=new O("AppId",{providedIn:"root",factory:function Qy(){return`${Fd()}${Fd()}${Fd()}`}});function Fd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Zy=new O("Platform Initializer"),Xa=new O("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Qx=new O("appBootstrapListener"),fi=new O("LocaleId",{providedIn:"root",factory:()=>wa(fi,q.Optional|q.SkipSelf)||function Zx(){return"undefined"!=typeof $localize&&$localize.locale||Va}()}),nA=(()=>Promise.resolve(0))();function Nd(n){"undefined"==typeof Zone?nA.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ue{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ve(!1),this.onMicrotaskEmpty=new Ve(!1),this.onStable=new Ve(!1),this.onError=new Ve(!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 iA(){let n=pe.requestAnimationFrame,e=pe.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 oA(n){const e=()=>{!function sA(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(pe,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Bd(n),n.isCheckStableRunning=!0,Ld(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Bd(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return Jy(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),ev(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return Jy(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),ev(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Bd(n),Ld(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(!ue.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ue.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,rA,Ka,Ka);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 rA={};function Ld(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 Bd(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Jy(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function ev(n){n._nesting--,Ld(n)}class aA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ve,this.onMicrotaskEmpty=new Ve,this.onStable=new Ve,this.onError=new Ve}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 Vd=(()=>{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:()=>{ue.assertNotInAngularZone(),Nd(()=>{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())Nd(()=>{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(ue))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})(),lA=(()=>{class n{constructor(){this._applications=new Map,Hd.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 Hd.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class cA{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let Hd=new cA,rr=null;const tv=new O("AllowMultipleToken"),nv=new O("PlatformOnDestroy");function iv(n,e,t=[]){const i=`Platform: ${e}`,r=new O(i);return(s=[])=>{let o=jd();if(!o||o.injector.get(tv,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function fA(n){if(rr&&!rr.get(tv,!1))throw new T(400,"");rr=n;const e=n.get(rv),t=n.get(Zy,null);t&&t.forEach(i=>i())}(function mA(n=[],e){return mt.create({name:e,providers:[{provide:Yu,useValue:"platform"},{provide:nv,useValue:()=>rr=null},...n]})}(a,i))}return function pA(n){const e=jd();if(!e)throw new T(401,"");return e}()}}function jd(){var n;return null!==(n=null==rr?void 0:rr.get(rv))&&void 0!==n?n:null}let rv=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function gA(n,e){let t;return t="noop"===n?new aA:("zone.js"===n?void 0:n)||new ue({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:ue,useValue:a}];return a.run(()=>{const c=mt.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(Ii,null);if(!d)throw new T(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{zd(this._modules,u),h.unsubscribe()})}),function _A(n,e,t){try{const i=t();return od(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(Pd);return h.runInitializers(),h.donePromise.then(()=>(function qT(n){$t(n,"Expected localeId to be defined"),"string"==typeof n&&(j_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(fi,Va)||Va),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=sv({},i);return function dA(n,e,t){const i=new bd(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(yo);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new T(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 T(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(nv,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(w(mt))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function sv(n,e){return Array.isArray(e)?e.reduce(sv,n):Object.assign(Object.assign({},n),e)}let yo=(()=>{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 Z(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new Z(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{ue.assertNotInAngularZone(),Nd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{ue.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=zi(o,a.pipe(Hf()))}bootstrap(t,i){if(!this._initStatus.done)throw new T(405,"");let r;r=t instanceof hy?t:this._injector.get(hi).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function hA(n){return n.isBoundToModule}(r)?void 0:this._injector.get(as),a=r.create(mt.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Vd,null),u=c&&a.injector.get(lA);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),zd(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new T(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;zd(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Qx,[]).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(ue),w(mt),w(Ii),w(Pd))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function zd(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let av=!0,Oi=(()=>{class n{}return n.__NG_ELEMENT_ID__=bA,n})();function bA(n){return function wA(n,e,t){if(na(n)&&!t){const i=Gt(n.index,e);return new fo(i,i)}return 47&n.type?new fo(e[16],e):null}(Xe(),C(),16==(16&n))}class hv{constructor(){}supports(e){return io(e)}create(e){return new TA(e)}}const MA=(n,e)=>e;class TA{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||MA}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,s=null;for(;t||i;){const o=!i||t&&t.currentIndex<pv(i,r,s)?t:i,a=pv(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&e(o,a,l)}}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=[]),!io(e))throw new T(900,"");return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,s,o,t=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),i=!0),t=t._next}else r=0,function RM(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[zr()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{o=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),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;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=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new IA(t,i),s,r),e}_verifyReinsertion(e,t,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),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,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new fv),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._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 fv),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 IA{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 xA{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 i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class fv{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new xA,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.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 pv(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}class mv{constructor(){}supports(e){return e instanceof Map||ed(e)}create(){return new AA}}class AA{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||ed(e)))throw new T(900,"")}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,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._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 r=this._records.get(e);this._maybeAddToChanges(r,t);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new OA(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,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(i=>t(e[i],i))}}class OA{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function gv(){return new Ja([new hv])}let Ja=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||gv()),deps:[[n,new Gs,new Ki]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new T(901,"")}}return n.\u0275prov=P({token:n,providedIn:"root",factory:gv}),n})();function _v(){return new vo([new mv])}let vo=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||_v()),deps:[[n,new Gs,new Ki]]}}find(t){const i=this.factories.find(s=>s.supports(t));if(i)return i;throw new T(901,"")}}return n.\u0275prov=P({token:n,providedIn:"root",factory:_v}),n})();const PA=iv(null,"core",[]);let FA=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(w(yo))},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({}),n})(),el=null;function Ri(){return el}const te=new O("DocumentToken");let bo=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:function(){return function VA(){return w(yv)}()},providedIn:"platform"}),n})(),yv=(()=>{class n extends bo{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ri().getBaseHref(this._doc)}onPopState(t){const i=Ri().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Ri().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,i,r){vv()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){vv()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(w(te))},n.\u0275prov=P({token:n,factory:function(){return function HA(){return new yv(w(te))}()},providedIn:"platform"}),n})();function vv(){return!!window.history.pushState}function bv(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function wv(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function or(n){return n&&"?"!==n[0]?"?"+n:n}let qd=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:function(){return function jA(n){const e=w(te).location;return new $A(w(bo),e&&e.origin||"")}()},providedIn:"root"}),n})();const zA=new O("appBaseHref");let $A=(()=>{class n extends qd{constructor(t,i){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return bv(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+or(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,s){const o=this.prepareExternalUrl(r+or(s));this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,s){const o=this.prepareExternalUrl(r+or(s));this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return n.\u0275fac=function(t){return new(t||n)(w(bo),w(zA,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})(),Cv=(()=>{class n{constructor(t,i){this._subject=new Ve,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=wv(Ev(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+or(i))}normalize(t){return n.stripTrailingSlash(function WA(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,Ev(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+or(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+or(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return n.normalizeQueryParams=or,n.joinWithSlash=bv,n.stripTrailingSlash=wv,n.\u0275fac=function(t){return new(t||n)(w(qd),w(bo))},n.\u0275prov=P({token:n,factory:function(){return function UA(){return new Cv(w(qd),w(bo))}()},providedIn:"root"}),n})();function Ev(n){return n.replace(/\/index.html$/,"")}let Eo=(()=>{class n{constructor(t,i,r,s){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(io(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${de(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(t){return new(t||n)(v(Ja),v(vo),v(Se),v(ho))},n.\u0275dir=ye({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class AO{constructor(e,t,i,r){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Rv=(()=>{class n{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new AO(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),kv(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{kv(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(v(It),v(kn),v(Ja))},n.\u0275dir=ye({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function kv(n,e){n.context.$implicit=e.item}let Do=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new OO,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Pv("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Pv("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(v(It),v(kn))},n.\u0275dir=ye({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class OO{constructor(){this.$implicit=null,this.ngIf=null}}function Pv(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${de(e)}'.`)}const Fv="browser";class sh{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Mo=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const i=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=ye({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),oh=(()=>{class n{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new sh(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(v(It),v(kn),v(Mo,9))},n.\u0275dir=ye({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),Hv=(()=>{class n{constructor(t,i,r){r._addDefault(new sh(t,i))}}return n.\u0275fac=function(t){return new(t||n)(v(It),v(kn),v(Mo,9))},n.\u0275dir=ye({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),ah=(()=>{class n{constructor(t,i,r){this._ngEl=t,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,i){const[r,s]=t.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(vo),v(ho))},n.\u0275dir=ye({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),zv=(()=>{class n{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(t){return new(t||n)(v(It))},n.\u0275dir=ye({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Yi]}),n})();class cR{createSubscription(e,t){return e.subscribe({next:t,error:i=>{throw i}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class uR{createSubscription(e,t){return e.then(t,i=>{throw i})}dispose(e){}onDestroy(e){}}const dR=new uR,hR=new cR;let $v=(()=>{class n{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(od(t))return dR;if(Yg(t))return hR;throw function Fn(n,e){return new T(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(t){return new(t||n)(v(Oi,16))},n.\u0275pipe=kt({name:"async",type:n,pure:!1}),n})(),hl=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({}),n})();class uh extends class RR extends class BA{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function LA(n){el||(el=n)}(new uh)}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 kR(){return To=To||document.querySelector("base"),To?To.getAttribute("href"):null}();return null==t?null:function PR(n){fl=fl||document.createElement("a"),fl.setAttribute("href",n);const e=fl.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){To=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function IO(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 fl,To=null;const Gv=new O("TRANSITION_ID"),NR=[{provide:kd,useFactory:function FR(n,e,t){return()=>{t.get(Pd).donePromise.then(()=>{const i=Ri(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[Gv,te,mt],multi:!0}];class dh{static init(){!function uA(n){Hd=n}(new dh)}addToWindow(e){pe.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},pe.getAllAngularTestabilities=()=>e.getAllTestabilities(),pe.getAllAngularRootElements=()=>e.getAllRootElements(),pe.frameworkStabilizers||(pe.frameworkStabilizers=[]),pe.frameworkStabilizers.push(i=>{const r=pe.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?Ri().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let LR=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const pl=new O("EventManagerPlugins");let ml=(()=>{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(pl),w(ue))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();class qv{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=Ri().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let Yv=(()=>{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=P({token:n,factory:n.\u0275fac}),n})(),Io=(()=>{class n extends Yv{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(Kv),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Kv))}}return n.\u0275fac=function(t){return new(t||n)(w(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();function Kv(n){Ri().remove(n)}const hh={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/"},fh=/%COMP%/g;function gl(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?gl(n,r,t):(r=r.replace(fh,n),t.push(r))}return t}function Zv(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let _l=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ph(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case En.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new $R(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case En.ShadowDom:return new UR(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=gl(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(ml),w(Io),w(_o))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();class ph{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(hh[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=hh[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=hh[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&(Yt.DashCase|Yt.Important)?e.style.setProperty(t,i,r&Yt.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&Yt.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,Zv(i)):this.eventManager.addEventListener(e,t,Zv(i))}}class $R extends ph{constructor(e,t,i,r){super(e),this.component=i;const s=gl(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function HR(n){return"_ngcontent-%COMP%".replace(fh,n)}(r+"-"+i.id),this.hostAttr=function jR(n){return"_nghost-%COMP%".replace(fh,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 UR extends ph{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=gl(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 WR=(()=>{class n extends qv{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(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const eb=["alt","control","meta","shift"],qR={"\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"},tb={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"},YR={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let KR=(()=>{class n extends qv{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(()=>Ri().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(eb.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 XR(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&&tb.hasOwnProperty(e)&&(e=tb[e]))}return qR[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),eb.forEach(s=>{s!=r&&YR[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(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const ek=iv(PA,"browser",[{provide:Xa,useValue:Fv},{provide:Zy,useValue:function QR(){uh.makeCurrent(),dh.init()},multi:!0},{provide:te,useFactory:function JR(){return function $E(n){Ac=n}(document),document},deps:[]}]),tk=[{provide:Yu,useValue:"root"},{provide:Ii,useFactory:function ZR(){return new Ii},deps:[]},{provide:pl,useClass:WR,multi:!0,deps:[te,ue,Xa]},{provide:pl,useClass:KR,multi:!0,deps:[te]},{provide:_l,useClass:_l,deps:[ml,Io,_o]},{provide:uo,useExisting:_l},{provide:Yv,useExisting:Io},{provide:Io,useClass:Io,deps:[te]},{provide:Vd,useClass:Vd,deps:[ue]},{provide:ml,useClass:ml,deps:[pl,ue]},{provide:class AR{},useClass:LR,deps:[]}];let mh=(()=>{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:_o,useValue:t.appId},{provide:Gv,useExisting:_o},NR]}}}return n.\u0275fac=function(t){return new(t||n)(w(n,12))},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:tk,imports:[hl,FA]}),n})();"undefined"!=typeof window&&window;let yl=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:function(t){let i=null;return i=t?new(t||n):w(rb),i},providedIn:"root"}),n})(),rb=(()=>{class n extends yl{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case le.NONE:return i;case le.HTML:return Wn(i,"HTML")?Kt(i):Em(this._doc,String(i)).toString();case le.STYLE:return Wn(i,"Style")?Kt(i):i;case le.SCRIPT:if(Wn(i,"Script"))return Kt(i);throw new Error("unsafe value used in a script context");case le.URL:return mm(i),Wn(i,"URL")?Kt(i):Qs(String(i));case le.RESOURCE_URL:if(Wn(i,"ResourceURL"))return Kt(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function I0(n){return new E0(n)}(t)}bypassSecurityTrustStyle(t){return function x0(n){return new D0(n)}(t)}bypassSecurityTrustScript(t){return function A0(n){return new S0(n)}(t)}bypassSecurityTrustUrl(t){return function O0(n){return new M0(n)}(t)}bypassSecurityTrustResourceUrl(t){return function R0(n){return new T0(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(w(te))},n.\u0275prov=P({token:n,factory:function(t){let i=null;return i=t?new t:function dk(n){return new rb(n.get(te))}(w(mt)),i},providedIn:"root"}),n})();function ds(n){return null!=n&&"false"!=`${n}`}function sb(n,e=0){return function hk(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}function vl(n){return Array.isArray(n)?n:[n]}function Ye(n){return null==n?"":"string"==typeof n?n:`${n}px`}function hs(n){return n instanceof Se?n.nativeElement:n}function Ft(...n){let e=n[n.length-1];return H(e)?(n.pop(),dc(n,e)):fc(n)}function _h(n,e,t,i){return dt(t)&&(i=t,t=void 0),i?_h(n,e,t).pipe(A(r=>ze(r)?i(...r):i(r))):new Z(r=>{ob(n,e,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,t)})}function ob(n,e,t,i,r){let s;if(function mk(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(e,t,r),s=()=>o.removeEventListener(e,t,r)}else if(function pk(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(e,t),s=()=>o.off(e,t)}else if(function fk(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(e,t),s=()=>o.removeListener(e,t)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)ob(n[o],e,t,i,r)}i.add(s)}class gk extends R{constructor(e,t){super()}schedule(e,t=0){return this}}class bl extends gk{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 ab=(()=>{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 Nn extends ab{constructor(e,t=ab.now){super(e,()=>Nn.delegate&&Nn.delegate!==this?Nn.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return Nn.delegate&&Nn.delegate!==this?Nn.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 yk extends Nn{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 _k extends bl{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 bk=1;const wk=Promise.resolve(),wl={};function lb(n){return n in wl&&(delete wl[n],!0)}const cb={setImmediate(n){const e=bk++;return wl[e]=!0,wk.then(()=>lb(e)&&n()),e},clearImmediate(n){lb(n)}},yh=new class Ek extends Nn{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 Ck extends bl{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=cb.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&&(cb.clearImmediate(t),e.scheduled=void 0)}}),Cl=new Nn(bl);class Sk{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new Mk(e,this.durationSelector))}}class Mk extends xs{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:r}=this;t=r(e)}catch(r){return this.destination.error(r)}const i=As(t,new Is(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function ub(n){return!ze(n)&&n-parseFloat(n)+1>=0}function Ik(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}function db(n,e=Cl){return function Dk(n){return function(t){return t.lift(new Sk(n))}}(()=>function Tk(n=0,e,t){let i=-1;return ub(e)?i=Number(e)<1?1:Number(e):H(e)&&(t=e),H(t)||(t=Cl),new Z(r=>{const s=ub(n)?n:+n-t.now();return t.schedule(Ik,s,{index:0,period:i,subscriber:r})})}(n,e))}function mi(n,e){return function(i){return i.lift(new xk(n,e))}}class xk{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Ak(e,this.predicate,this.thisArg))}}class Ak extends k{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)}}function Nt(n){return e=>e.lift(new Ok(n))}class Ok{constructor(e){this.notifier=e}call(e,t){const i=new Rk(e),r=As(this.notifier,new Is(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class Rk extends xs{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let vh;try{vh="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){vh=!1}let xo,El,ar,wh,Ln=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function FO(n){return n===Fv}(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&&!vh)&&"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(Xa))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({}),n})();function Ao(n){return function kk(){if(null==xo&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>xo=!0}))}finally{xo=xo||!1}return xo}()?n:!!n.capture}function fb(){if(null==ar){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ar=!1,ar;if("scrollBehavior"in document.documentElement.style)ar=!0;else{const n=Element.prototype.scrollTo;ar=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return ar}function Oo(){if("object"!=typeof document||!document)return 0;if(null==El){const n=document.createElement("div"),e=n.style;n.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const t=document.createElement("div"),i=t.style;i.width="2px",i.height="1px",n.appendChild(t),document.body.appendChild(n),El=0,0===n.scrollLeft&&(n.scrollLeft=1,El=0===n.scrollLeft?1:2),n.remove()}return El}function lr(n){return n.composedPath?n.composedPath()[0]:n.target}function Ch(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const Nk=new O("cdk-dir-doc",{providedIn:"root",factory:function Lk(){return wa(te)}}),Bk=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Dl=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new Ve,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function Vk(n){const e=(null==n?void 0:n.toLowerCase())||"";return"auto"===e&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?Bk.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(w(Nk,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ro=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({}),n})(),Eh=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new y,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new Z(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(db(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ft()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(mi(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,t)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=hs(i),s=t.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>_h(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(w(ue),w(Ln),w(te,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pb=(()=>{class n{constructor(t,i,r,s){this.elementRef=t,this.scrollDispatcher=i,this.ngZone=r,this.dir=s,this._destroyed=new y,this._elementScrolled=new Z(o=>this.ngZone.runOutsideAngular(()=>_h(this.elementRef.nativeElement,"scroll").pipe(Nt(this._destroyed)).subscribe(o)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=r?t.end:t.start),null==t.right&&(t.right=r?t.start:t.end),null!=t.bottom&&(t.top=i.scrollHeight-i.clientHeight-t.bottom),r&&0!=Oo()?(null!=t.left&&(t.right=i.scrollWidth-i.clientWidth-t.left),2==Oo()?t.left=t.right:1==Oo()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=i.scrollWidth-i.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const i=this.elementRef.nativeElement;fb()?i.scrollTo(t):(null!=t.top&&(i.scrollTop=t.top),null!=t.left&&(i.scrollLeft=t.left))}measureScrollOffset(t){const i="left",r="right",s=this.elementRef.nativeElement;if("top"==t)return s.scrollTop;if("bottom"==t)return s.scrollHeight-s.clientHeight-s.scrollTop;const o=this.dir&&"rtl"==this.dir.value;return"start"==t?t=o?r:i:"end"==t&&(t=o?i:r),o&&2==Oo()?t==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:o&&1==Oo()?t==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:t==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(Eh),v(ue),v(Dl,8))},n.\u0275dir=ye({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),mb=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new y,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,s=r.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(db(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(w(Ln),w(ue),w(te,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Sl=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({}),n})(),Dh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({imports:[[Ro,bh,Sl],Ro,Sl]}),n})();class Sh{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class gb extends Sh{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class Mh extends Sh{constructor(e,t,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class zk extends Sh{constructor(e){super(),this.element=e instanceof Se?e.nativeElement:e}}class _b extends class $k{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof gb?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Mh?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof zk?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(e,t,i,r,s){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(e){const i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let Uk=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({}),n})();const Wk=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),Gk=new Z(n=>n.complete());function yb(n){return n?function qk(n){return new Z(e=>n.schedule(()=>e.complete()))}(n):Gk}function gi(n){return e=>0===n?yb():e.lift(new Yk(n))}class Yk{constructor(e){if(this.total=e,this.total<0)throw new Wk}call(e,t){return t.subscribe(new Kk(e,this.total))}}class Kk extends k{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()))}}const vb=fb();class Xk{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Ye(-this._previousScrollPosition.left),e.style.top=Ye(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,i=e.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),vb&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),vb&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class Qk{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class bb{enable(){}disable(){}attach(){}}function Th(n,e){return e.some(t=>n.bottom<t.top||n.top>t.bottom||n.right<t.left||n.left>t.right)}function wb(n,e){return e.some(t=>n.top<t.top||n.bottom>t.bottom||n.left<t.left||n.right>t.right)}class Zk{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Th(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Jk=(()=>{class n{constructor(t,i,r,s){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new bb,this.close=o=>new Qk(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new Xk(this._viewportRuler,this._document),this.reposition=o=>new Zk(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(t){return new(t||n)(w(Eh),w(mb),w(ue),w(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Cb{constructor(e){if(this.scrollStrategy=new bb,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class eP{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}class tP{constructor(e,t,i,r,s,o,a,l,c){this._portalOutlet=e,this._host=t,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new y,this._attachments=new y,this._detachments=new y,this._locationChanges=R.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new y,this._outsidePointerEvents=new y,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(gi(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){var e;const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(e=this._host)||void 0===e||e.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Ye(this._config.width),e.height=Ye(this._config.height),e.minWidth=Ye(this._config.minWidth),e.minHeight=Ye(this._config.minHeight),e.maxWidth=Ye(this._config.maxWidth),e.maxHeight=Ye(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(!e)return;let t;const i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),this._disposeBackdrop(e)),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(e,t,i){const r=vl(t||[]).filter(s=>!!s);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(Nt(zi(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.remove(),this._backdropElement===e&&(this._backdropElement=null))}}let Ml=(()=>{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||Ch()){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),Ch()?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(te),w(Ln))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Eb="cdk-overlay-connected-position-bounding-box",nP=/([A-Za-z%]+)$/;class iP{constructor(e,t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new y,this._resizeSubscription=R.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(Eb),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?s.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:t})}if(s.length){let a=null,l=-1;for(const c of s){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&cr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Eb),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let r,s;if("center"==i.originX)r=e.left+e.width/2;else{const o=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==i.originX?o:a}return t.left<0&&(r-=t.left),s="center"==i.originY?e.top+e.height/2:"top"==i.originY?e.top:e.bottom,t.top<0&&(s-=t.top),{x:r,y:s}}_getOverlayPoint(e,t,i){let r,s;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,s="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,t,i,r){const s=Sb(t);let{x:o,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-i.height,p=this._subtractOverflows(s.width,0-o,o+s.width-i.width),m=this._subtractOverflows(s.height,h,f),_=p*m;return{visibleArea:_,isCompletelyWithinViewport:s.width*s.height===_,fitsInViewportVertically:m===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,s=i.right-t.x,o=Db(this._overlayRef.getConfig().minHeight),a=Db(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=s;return(e.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=Sb(t),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),a=Math.max(e.y+r.height-s.height,0),l=Math.max(s.top-i.top-e.y,0),c=Math.max(s.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:e.x<this._viewportMargin?s.left-i.left-e.x:0,d=r.height<=s.height?l||-a:e.y<this._viewportMargin?s.top-i.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new eP(e,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=e.overlayY;i="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(e,t){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===t.overlayY)o=e.y,s=i.height-o+this._viewportMargin;else if("bottom"===t.overlayY)a=i.height-e.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;s=2*f,o=e.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)d=e.x,u=i.right-e.x;else{const f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Ye(i.height),r.top=Ye(i.top),r.bottom=Ye(i.bottom),r.width=Ye(i.width),r.left=Ye(i.left),r.right=Ye(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=Ye(s)),o&&(r.maxWidth=Ye(o))}this._lastBoundingBoxSize=i,cr(this._boundingBox.style,r)}_resetBoundingBoxStyles(){cr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){cr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();cr(i,this._getExactOverlayY(t,e,u)),cr(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=Ye(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=Ye(o.maxWidth):s&&(i.maxWidth="")),cr(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=Ye(s.y),r}_getExactOverlayX(e,t,i){let o,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Ye(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:wb(e,i),isOriginOutsideView:Th(e,i),isOverlayClipped:wb(t,i),isOverlayOutsideView:Th(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&vl(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof Se)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function cr(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Db(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(nP);return t&&"px"!==t?null:parseFloat(e)}return n||null}function Sb(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Mb="cdk-global-overlay-wrapper";class rP{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Mb),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=l?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,l?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(Mb),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let sP=(()=>{class n{constructor(t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new rP}flexibleConnectedTo(t){return new iP(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(w(mb),w(te),w(Ln),w(Ml))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Tb=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(w(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),oP=(()=>{class n extends Tb{constructor(t){super(t),this._keydownListener=i=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){r[s]._keydownEvents.next(i);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(t){return new(t||n)(w(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aP=(()=>{class n extends Tb{constructor(t,i){super(t),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=lr(r)},this._clickListener=r=>{const s=lr(r),o="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(s)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(r)}}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(t){return new(t||n)(w(te),w(Ln))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lP=0,ps=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new Cb(t);return o.direction=o.direction||this._directionality.value,new tP(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+lP++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(yo)),new _b(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(w(Jk),w(Ml),w(hi),w(sP),w(oP),w(mt),w(ue),w(te),w(Dl),w(Cv),w(aP))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const dP={provide:new O("cdk-connected-overlay-scroll-strategy"),deps:[ps],useFactory:function uP(n){return()=>n.scrollStrategies.reposition()}};let Ib=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:[ps,dP],imports:[[Ro,Uk,Dh],Dh]}),n})();const pP=new class fP extends Nn{}(class hP extends bl{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 xb(n,e){return new Z(e?t=>e.schedule(mP,0,{error:n,subscriber:t}):t=>t.error(n))}function mP({error:n,subscriber:e}){e.error(n)}class Lt{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 Ft(this.value);case"E":return xb(this.error);case"C":return yb()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new Lt("N",e):Lt.undefinedValueNotification}static createError(e){return new Lt("E",void 0,e)}static createComplete(){return Lt.completeNotification}}Lt.completeNotification=new Lt("C"),Lt.undefinedValueNotification=new Lt("N",void 0);class Tl extends k{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(Tl.dispatch,this.delay,new _P(e,this.destination)))}_next(e){this.scheduleMessage(Lt.createNext(e))}_error(e){this.scheduleMessage(Lt.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(Lt.createComplete()),this.unsubscribe()}}class _P{constructor(e,t){this.notification=e,this.destination=t}}class Ab extends y{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 yP(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 Ke;if(this.isStopped||this.hasError?o=R.EMPTY:(this.observers.push(e),o=new Hn(this,e)),r&&e.add(e=new Tl(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||pP).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 yP{constructor(e,t){this.time=e,this.value=t}}function ko(n,e){return"function"==typeof e?t=>t.pipe(ko((i,r)=>hc(n(i,r)).pipe(A((s,o)=>e(i,s,r,o))))):t=>t.lift(new vP(n))}class vP{constructor(e){this.project=e}call(e,t){return t.subscribe(new bP(e,this.project))}}class bP extends xs{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 Is(this),r=this.destination;r.add(i),this.innerSubscription=As(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 Il={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return Il.schedule(n,0);if(void 0===window.requestAnimationFrame)return Il.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let Ih;function xP(n,e,t){let i=t;return function CP(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function DP(n,e){if(!Ih){const t=Element.prototype;Ih=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&Ih.call(n,e)}(n,r)||(i=s,0))),i}class OP{constructor(e,t){this.componentFactory=t.get(hi).resolveComponentFactory(e)}create(e){return new RP(this.componentFactory,e)}}class RP{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new Ab(1),this.events=this.eventEmitters.pipe(ko(i=>zi(...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(ue),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=Il.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 SP(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=mt.create({providers:[],parent:this.injector}),i=function IP(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=xP(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(Oi),this.implementsOnChanges=function EP(n){return"function"==typeof n}(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.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(A(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=Il.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 Zf(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 kP extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Ob(n,e){const t=function TP(n,e){return e.get(hi).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new OP(n,e.injector),r=function MP(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function wP(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends kP{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}class Rb{}const _i="*";function xh(n,e){return{type:7,name:n,definitions:e,options:{}}}function Po(n,e=null){return{type:4,styles:e,timings:n}}function kb(n,e=null){return{type:2,steps:n,options:e}}function Zt(n){return{type:6,styles:n,offset:null}}function xl(n,e,t){return{type:0,name:n,styles:e,options:t}}function FP(n){return{type:5,steps:n}}function Fo(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function Pb(n){Promise.resolve(null).then(n)}class No{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(){Pb(()=>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 Fb{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?Pb(()=>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 ie=!1;function Nb(n){return new T(3e3,ie)}function mF(){return"undefined"!=typeof window&&void 0!==window.document}function Oh(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Pi(n){switch(n.length){case 0:return new No;case 1:return n[0];default:return new Fb(n)}}function Lb(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 m=p,_=u[p];if("offset"!==p)switch(m=e.normalizePropertyName(m,o),_){case"!":_=r[p];break;case _i:_=s[p];break;default:_=e.normalizeStyleValue(p,m,_,o)}f[m]=_}),h||a.push(f),c=f,l=d}),o.length)throw function rF(n){return new T(3502,ie)}();return a}function Rh(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&kh(t,"start",n)));break;case"done":n.onDone(()=>i(t&&kh(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&kh(t,"destroy",n)))}}function kh(n,e,t){const i=t.totalTime,s=Ph(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 Ph(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Jt(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 Bb(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let Fh=(n,e)=>!1,Vb=(n,e,t)=>[],Hb=null;function Nh(n){const e=n.parentNode||n.host;return e===Hb?null:e}(Oh()||"undefined"!=typeof Element)&&(mF()?(Hb=(()=>document.documentElement)(),Fh=(n,e)=>{for(;e;){if(e===n)return!0;e=Nh(e)}return!1}):Fh=(n,e)=>n.contains(e),Vb=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let ur=null,jb=!1;function zb(n){ur||(ur=function _F(){return"undefined"!=typeof document?document.body:null}()||{},jb=!!ur.style&&"WebkitAppearance"in ur.style);let e=!0;return ur.style&&!function gF(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in ur.style,!e&&jb&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in ur.style)),e}const $b=Fh,Ub=Vb;let Wb=(()=>{class n{validateStyleProperty(t){return zb(t)}matchesElement(t,i){return!1}containsElement(t,i){return $b(t,i)}getParentElement(t){return Nh(t)}query(t,i,r){return Ub(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new No(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})(),Lh=(()=>{class n{}return n.NOOP=new Wb,n})();const Bh="ng-enter",Ol="ng-leave",Rl="ng-trigger",kl=".ng-trigger",qb="ng-animating",Vh=".ng-animating";function dr(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Hh(parseFloat(e[1]),e[2])}function Hh(n,e){return"s"===e?1e3*n:n}function Pl(n,e,t){return n.hasOwnProperty("duration")?n:function bF(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(Nb()),{duration:0,delay:0,easing:""};r=Hh(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Hh(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 NP(){return new T(3100,ie)}()),a=!0),s<0&&(e.push(function LP(){return new T(3101,ie)}()),a=!0),a&&e.splice(l,0,Nb())}return{duration:r,delay:s,easing:o}}(n,e,t)}function ms(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function Fi(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else ms(n,t);return t}function Kb(n,e,t){return t?e+":"+t+";":""}function Xb(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=Kb(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=Kb(0,EF(t),n.style[t]));n.setAttribute("style",e)}function ni(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=zh(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),Oh()&&Xb(n))}function hr(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=zh(t);n.style[i]=""}),Oh()&&Xb(n))}function Lo(n){return Array.isArray(n)?1==n.length?n[0]:kb(n):n}const jh=new RegExp("{{\\s*(.+?)\\s*}}","g");function Qb(n){let e=[];if("string"==typeof n){let t;for(;t=jh.exec(n);)e.push(t[1]);jh.lastIndex=0}return e}function Fl(n,e,t){const i=n.toString(),r=i.replace(jh,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function VP(n){return new T(3003,ie)}()),a=""),a.toString()});return r==i?n:r}function Nl(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const CF=/-+([a-z0-9])/g;function zh(n){return n.replace(CF,(...e)=>e[1].toUpperCase())}function EF(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function en(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 HP(n){return new T(3004,ie)}()}}function Zb(n,e){return window.getComputedStyle(n)[e]}function xF(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function AF(n,e,t){if(":"==n[0]){const l=function OF(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 eF(n){return new T(3016,ie)}()),"* => *"}}(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 JP(n){return new T(3015,ie)}()),e;const r=i[1],s=i[2],o=i[3];e.push(Jb(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(Jb(o,r))}(i,t,e)):t.push(n),t}const Hl=new Set(["true","1"]),jl=new Set(["false","0"]);function Jb(n,e){const t=Hl.has(n)||jl.has(n),i=Hl.has(e)||jl.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?Hl.has(n):jl.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Hl.has(e):jl.has(e)),o&&a}}const RF=new RegExp("s*:selfs*,?","g");function $h(n,e,t,i){return new kF(n).build(e,t,i)}class kF{constructor(e){this._driver=e}build(e,t,i){const r=new NF(t);this._resetContextStyleTimingState(r);const s=en(this,Lo(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 zP(){return new T(3006,ie)}()),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 $P(){return new T(3007,ie)}())}),{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(zl(a)){const l=a;Object.keys(l).forEach(c=>{Qb(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(Nl(s.values()),t.errors.push(function UP(n,e){return new T(3008,ie)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=en(this,Lo(e.animation),t);return{type:1,matchers:xF(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:fr(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>en(this,i,t)),options:fr(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=en(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:fr(e.options)}}visitAnimate(e,t){const i=function BF(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Uh(Pl(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Uh(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=Pl(t,e);return Uh(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:Zt({});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=Zt(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==_i?i.push(o):t.errors.push(function WP(n){return new T(3002,ie)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(zl(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 GP(n,e,t,i,r){return new T(3010,ie)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function wF(n,e,t){const i=e.params||{},r=Qb(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function BP(n){return new T(3001,ie)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function qP(){return new T(3011,ie)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(b=>{const g=this._makeStyleAst(b,t);let E=null!=g.offset?g.offset:function LF(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(zl(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(zl(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(g.styles),x=0;return null!=E&&(s++,x=g.offset=E),l=l||x<0||x>1,a=a||x<c,c=x,o.push(x),g});l&&t.errors.push(function YP(){return new T(3012,ie)}()),a&&t.errors.push(function KP(){return new T(3200,ie)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function XP(){return new T(3202,ie)}()):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,m=t.currentAnimateTimings,_=m.duration;return u.forEach((b,g)=>{const E=h>0?g==f?1:h*g:o[g],x=E*_;t.currentTime=p+m.delay+x,m.duration=x,this._validateStyleAst(b,t),b.offset=E,i.styles.push(b)}),i}visitReference(e,t){return{type:8,animation:en(this,Lo(e.animation),t),options:fr(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:fr(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:fr(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function PF(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(RF,"")),n=n.replace(/@\*/g,kl).replace(/@\w+/g,t=>kl+"-"+t.substr(1)).replace(/:animating/g,Vh),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,Jt(t.collectedStyles,t.currentQuerySelector,{});const a=en(this,Lo(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:fr(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function QP(){return new T(3013,ie)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:Pl(e.timings,t.errors,!0);return{type:12,animation:en(this,Lo(e.animation),t),timings:i,options:null}}}class NF{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 zl(n){return!Array.isArray(n)&&"object"==typeof n}function fr(n){return n?(n=ms(n)).params&&(n.params=function FF(n){return n?ms(n):null}(n.params)):n={},n}function Uh(n,e,t){return{duration:n,delay:e,easing:t}}function Wh(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 $l{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 jF=new RegExp(":enter","g"),$F=new RegExp(":leave","g");function Gh(n,e,t,i,r,s={},o={},a,l,c=[]){return(new UF).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class UF{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new $l;const d=new qh(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),en(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 m=h[p];if(m.element===t){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[Wh(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?dr(i.duration):null,a=null!=i.delay?dr(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),en(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=Ul);const o=dr(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>en(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?dr(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),en(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 Pl(t.params?Fl(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?dr(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ul);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),en(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;en(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Ul={};class qh{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=Ul,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Wl(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=dr(i.duration)),null!=i.delay&&(r.delay=dr(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]=Fl(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 qh(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=Ul,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 WF(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(jF,"."+this._enterClassName)).replace($F,"."+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 ZP(n){return new T(3014,ie)}()),a}}class Wl{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 Wl(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]||_i,this._currentKeyframe[t]=_i}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function GF(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=_i})):Fi(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Fl(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:_i),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=Fi(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==_i&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?Nl(e.values()):[],o=t.size?Nl(t.values()):[];if(i){const a=r[0],l=ms(a);a.offset=0,l.offset=1,r=[a,l]}return Wh(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class WF extends Wl{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=Fi(e[0],!1);l.offset=0,s.push(l);const c=Fi(e[0],!1);c.offset=nw(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=Fi(e[d],!1);h.offset=nw((t+h.offset*i)/o),s.push(h)}i=o,t=0,r="",e=s}return Wh(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function nw(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class Yh{}class qF extends Yh{normalizePropertyName(e,t){return zh(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(YF[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 jP(n,e){return new T(3005,ie)}())}return o+s}}const YF=(()=>function KF(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 iw(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 Kh={};class rw{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function XF(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||Kh,p=this.buildStyles(i,a&&a.params||Kh,d),m=l&&l.params||Kh,_=this.buildStyles(r,m,d),b=new Set,g=new Map,E=new Map,x="void"===r,Y={params:Object.assign(Object.assign({},h),m)},Me=u?[]:Gh(e,t,this.ast.animation,s,o,p,_,Y,c,d);let Oe=0;if(Me.forEach(sn=>{Oe=Math.max(sn.duration+sn.delay,Oe)}),d.length)return iw(t,this._triggerName,i,r,x,p,_,[],[],g,E,Oe,d);Me.forEach(sn=>{const on=sn.element,Ds=Jt(g,on,{});sn.preStyleProps.forEach(Bn=>Ds[Bn]=!0);const vi=Jt(E,on,{});sn.postStyleProps.forEach(Bn=>vi[Bn]=!0),on!==t&&b.add(on)});const rn=Nl(b.values());return iw(t,this._triggerName,i,r,x,p,_,Me,rn,g,E,Oe)}}class QF{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=ms(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=Fl(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class JF{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 QF(r.style,r.options&&r.options.params||{},i)}),sw(this.states,"true","1"),sw(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new rw(e,r,this.states))}),this.fallbackTransition=function eN(n,e,t){return new rw(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 sw(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const tN=new $l;class nN{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=$h(this._driver,t,i,[]);if(i.length)throw function sF(n){return new T(3503,ie)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=Lb(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=Gh(this._driver,t,s,Bh,Ol,{},{},i,tN,r),o.forEach(u=>{const d=Jt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function oF(){return new T(3300,ie)}()),o=[]),r.length)throw function aF(n){return new T(3504,ie)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,_i)})});const c=Pi(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 lF(n){return new T(3301,ie)}();return t}listen(e,t,i,r){const s=Ph(t,"","","");return Rh(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 ow="ng-animate-queued",Xh="ng-animate-disabled",aN=[],aw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},_n="__ng_removed";class Qh{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function hN(n){return null!=n?n:null}(i?e.value:e),i){const s=ms(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 Bo="void",Zh=new Qh(Bo);class cN{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,yn(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function cF(n,e){return new T(3302,ie)}();if(null==i||0==i.length)throw function uF(n){return new T(3303,ie)}();if(!function fN(n){return"start"==n||"done"==n}(i))throw function dF(n,e){return new T(3400,ie)}();const s=Jt(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=Jt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(yn(e,Rl),yn(e,Rl+"-"+t),a[t]=Zh),()=>{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 hF(n){return new T(3401,ie)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new Jh(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(yn(e,Rl),yn(e,Rl+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new Qh(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=Zh),c.value!==Bo&&l.value===c.value){if(!function gN(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 m=[],_=s.matchStyles(l.value,l.params,m),b=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{hr(e,_),ni(e,b)})}return}const h=Jt(this._engine.playersByElement,e,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.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||(yn(e,ow),o.onStart(()=>{gs(e,ow)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const _=this._engine.playersByElement.get(e);if(_){let b=_.indexOf(o);b>=0&&_.splice(b,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,kl,!0);i.forEach(r=>{if(r[_n])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,Bo,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&Pi(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]||Zh,u=new Qh(Bo),d=new Jh(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[_n];(!s||s===aw)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){yn(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=Ph(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Rh(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 uN{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 cN(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(Gl(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!Gl(t))return;const s=t[_n];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),yn(e,Xh)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),gs(e,Xh))}removeNode(e,t,i,r){if(Gl(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[_n]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return Gl(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,kl,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Vh,!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 Pi(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[_n];if(i&&i.setForRemoval){if(e[_n]=aw,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(Xh))&&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++)yn(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?Pi(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function fF(n){return new T(3402,ie)}()}_flushAnimations(e,t){const i=new $l,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(I=>{u.add(I);const N=this.driver.query(I,".ng-animate-queued",!0);for(let j=0;j<N.length;j++)u.add(N[j])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=uw(h,this.collectedEnterElements),p=new Map;let m=0;f.forEach((I,N)=>{const j=Bh+m++;p.set(N,j),I.forEach(ae=>yn(ae,j))});const _=[],b=new Set,g=new Set;for(let I=0;I<this.collectedLeaveElements.length;I++){const N=this.collectedLeaveElements[I],j=N[_n];j&&j.setForRemoval&&(_.push(N),b.add(N),j.hasAnimation?this.driver.query(N,".ng-star-inserted",!0).forEach(ae=>b.add(ae)):g.add(N))}const E=new Map,x=uw(h,Array.from(b));x.forEach((I,N)=>{const j=Ol+m++;E.set(N,j),I.forEach(ae=>yn(ae,j))}),e.push(()=>{f.forEach((I,N)=>{const j=p.get(N);I.forEach(ae=>gs(ae,j))}),x.forEach((I,N)=>{const j=E.get(N);I.forEach(ae=>gs(ae,j))}),_.forEach(I=>{this.processLeaveNode(I)})});const Y=[],Me=[];for(let I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(t).forEach(j=>{const ae=j.player,ot=j.element;if(Y.push(ae),this.collectedEnterElements.length){const At=ot[_n];if(At&&At.setForMove){if(At.previousTriggersValues&&At.previousTriggersValues.has(j.triggerName)){const _r=At.previousTriggersValues.get(j.triggerName),Hi=this.statesByElement.get(j.element);Hi&&Hi[j.triggerName]&&(Hi[j.triggerName].value=_r)}return void ae.destroy()}}const si=!d||!this.driver.containsElement(d,ot),an=E.get(ot),Vi=p.get(ot),Re=this._buildInstruction(j,i,Vi,an,si);if(Re.errors&&Re.errors.length)return void Me.push(Re);if(si)return ae.onStart(()=>hr(ot,Re.fromStyles)),ae.onDestroy(()=>ni(ot,Re.toStyles)),void r.push(ae);if(j.isFallbackTransition)return ae.onStart(()=>hr(ot,Re.fromStyles)),ae.onDestroy(()=>ni(ot,Re.toStyles)),void r.push(ae);const XC=[];Re.timelines.forEach(At=>{At.stretchStartingKeyframe=!0,this.disabledNodes.has(At.element)||XC.push(At)}),Re.timelines=XC,i.append(ot,Re.timelines),o.push({instruction:Re,player:ae,element:ot}),Re.queriedElements.forEach(At=>Jt(a,At,[]).push(ae)),Re.preStyleProps.forEach((At,_r)=>{const Hi=Object.keys(At);if(Hi.length){let yr=l.get(_r);yr||l.set(_r,yr=new Set),Hi.forEach(Ff=>yr.add(Ff))}}),Re.postStyleProps.forEach((At,_r)=>{const Hi=Object.keys(At);let yr=c.get(_r);yr||c.set(_r,yr=new Set),Hi.forEach(Ff=>yr.add(Ff))})});if(Me.length){const I=[];Me.forEach(N=>{I.push(function pF(n,e){return new T(3505,ie)}())}),Y.forEach(N=>N.destroy()),this.reportError(I)}const Oe=new Map,rn=new Map;o.forEach(I=>{const N=I.element;i.has(N)&&(rn.set(N,N),this._beforeAnimationBuild(I.player.namespaceId,I.instruction,Oe))}),r.forEach(I=>{const N=I.element;this._getPreviousPlayers(N,!1,I.namespaceId,I.triggerName,null).forEach(ae=>{Jt(Oe,N,[]).push(ae),ae.destroy()})});const sn=_.filter(I=>hw(I,l,c)),on=new Map;cw(on,this.driver,g,c,_i).forEach(I=>{hw(I,l,c)&&sn.push(I)});const vi=new Map;f.forEach((I,N)=>{cw(vi,this.driver,new Set(I),l,"!")}),sn.forEach(I=>{const N=on.get(I),j=vi.get(I);on.set(I,Object.assign(Object.assign({},N),j))});const Bn=[],Ss=[],Ms={};o.forEach(I=>{const{element:N,player:j,instruction:ae}=I;if(i.has(N)){if(u.has(N))return j.onDestroy(()=>ni(N,ae.toStyles)),j.disabled=!0,j.overrideTotalTime(ae.totalTime),void r.push(j);let ot=Ms;if(rn.size>1){let an=N;const Vi=[];for(;an=an.parentNode;){const Re=rn.get(an);if(Re){ot=Re;break}Vi.push(an)}Vi.forEach(Re=>rn.set(Re,ot))}const si=this._buildAnimation(j.namespaceId,ae,Oe,s,vi,on);if(j.setRealPlayer(si),ot===Ms)Bn.push(j);else{const an=this.playersByElement.get(ot);an&&an.length&&(j.parentPlayer=Pi(an)),r.push(j)}}else hr(N,ae.fromStyles),j.onDestroy(()=>ni(N,ae.toStyles)),Ss.push(j),u.has(N)&&r.push(j)}),Ss.forEach(I=>{const N=s.get(I.element);if(N&&N.length){const j=Pi(N);I.setRealPlayer(j)}}),r.forEach(I=>{I.parentPlayer?I.syncPlayerEvents(I.parentPlayer):I.destroy()});for(let I=0;I<_.length;I++){const N=_[I],j=N[_n];if(gs(N,Ol),j&&j.hasAnimation)continue;let ae=[];if(a.size){let si=a.get(N);si&&si.length&&ae.push(...si);let an=this.driver.query(N,Vh,!0);for(let Vi=0;Vi<an.length;Vi++){let Re=a.get(an[Vi]);Re&&Re.length&&ae.push(...Re)}}const ot=ae.filter(si=>!si.destroyed);ot.length?pN(this,N,ot):this.processLeaveNode(N)}return _.length=0,Bn.forEach(I=>{this.players.push(I),I.onDone(()=>{I.destroy();const N=this.players.indexOf(I);this.players.splice(N,1)}),I.play()}),Bn}elementContainsData(e,t){let i=!1;const r=t[_n];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==Bo;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=Jt(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)})}hr(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 m=p.element;u.add(m);const _=m[_n];if(_&&_.removedBeforeQueried)return new No(p.duration,p.delay);const b=m!==l,g=function mN(n){const e=[];return dw(n,e),e}((i.get(m)||aN).map(Oe=>Oe.getRealPlayer())).filter(Oe=>!!Oe.element&&Oe.element===m),E=s.get(m),x=o.get(m),Y=Lb(0,this._normalizer,0,p.keyframes,E,x),Me=this._buildPlayer(p,Y,g);if(p.subTimeline&&r&&d.add(m),b){const Oe=new Jh(e,a,m);Oe.setRealPlayer(Me),c.push(Oe)}return Me});c.forEach(p=>{Jt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function dN(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=>yn(p,qb));const f=Pi(h);return f.onDestroy(()=>{u.forEach(p=>gs(p,qb)),ni(l,t.toStyles)}),d.forEach(p=>{Jt(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 No(e.duration,e.delay)}}class Jh{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new No,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=>Rh(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){Jt(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 Gl(n){return n&&1===n.nodeType}function lw(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function cw(n,e,t,i,r){const s=[];t.forEach(l=>s.push(lw(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[_n]=lN,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>lw(l,s[a++])),o}function uw(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 yn(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function gs(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function pN(n,e,t){Pi(t).onDone(()=>n.processLeaveNode(e))}function dw(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof Fb?dw(i.players,e):e.push(i)}}function hw(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 ql{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new uN(e,t,i),this._timelineEngine=new nN(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=$h(this._driver,s,l,[]);if(l.length)throw function iF(n,e){return new T(3404,ie)}();a=function ZF(n,e,t){return new JF(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]=Bb(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]=Bb(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 yN=(()=>{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&&ni(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ni(this._element,this._initialStyles),this._endStyles&&(ni(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(hr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(hr(this._element,this._endStyles),this._endStyles=null),ni(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ef(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];vN(r)&&(e=e||{},e[r]=n[r])}return e}function vN(n){return"display"===n||"position"===n}class fw{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]:Zb(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class bN{validateStyleProperty(e){return zb(e)}matchesElement(e,t){return!1}containsElement(e,t){return $b(e,t)}getParentElement(e){return Nh(e)}query(e,t,i){return Ub(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 fw);(function DF(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 SF(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]=Zb(n,l)})}}return e}(e,t=t.map(h=>Fi(h,!1)),c);const d=function _N(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=ef(e[0]),e.length>1&&(i=ef(e[e.length-1]))):e&&(t=ef(e)),t||i?new yN(n,t,i):null}(e,t);return new fw(e,t,l,d)}}let wN=(()=>{class n extends Rb{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:En.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?kb(t):t;return pw(this._renderer,null,i,"register",[r]),new CN(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(w(uo),w(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();class CN extends class PP{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new EN(this._id,e,t||{},this._renderer)}}class EN{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 pw(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 pw(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const mw="@.disabled";let DN=(()=>{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 gw("",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 SN(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(uo),w(ql),w(ue))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();class gw{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==mw?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 SN extends gw{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==mw?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 MN(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 TN(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 IN=(()=>{class n extends ql{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(w(te),w(Lh),w(Yh))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const Kl=new O("AnimationModuleType"),_w=[{provide:Rb,useClass:wN},{provide:Yh,useFactory:function xN(){return new qF}},{provide:ql,useClass:IN},{provide:uo,useFactory:function AN(n,e,t){return new DN(n,e,t)},deps:[_l,ql,ue]}],yw=[{provide:Lh,useFactory:()=>new bN},{provide:Kl,useValue:"BrowserAnimations"},..._w],ON=[{provide:Lh,useClass:Wb},{provide:Kl,useValue:"NoopAnimations"},..._w];let vw=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?ON:yw}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:yw,imports:[mh]}),n})();var bw=Lf(289);class RN{constructor(e,t,i,r,s){this.element=e,this.newWidth=t,this.newHeight=i,this.oldWidth=r,this.oldHeight=s}}let kN=(()=>{class n{constructor(t){this.element=t,this.resized=new Ve}ngOnInit(){bw.ResizeSensor&&(this.resizeSensor=new bw.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 RN(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)(v(Se))},n.\u0275dir=ye({type:n,selectors:[["","resized",""]],outputs:{resized:"resized"}}),n})(),PN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({imports:[[]]}),n})(),ww=(()=>{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(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();class FN extends y{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 Ke;return this._value}next(e){super.next(this._value=e)}}function rf(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function yi(){}function tn(n,e,t){return function(r){return r.lift(new XN(n,e,t))}}class XN{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new QN(e,this.nextOrObserver,this.error,this.complete))}}class QN extends k{constructor(e,t,i,r){super(e),this._tapNext=yi,this._tapError=yi,this._tapComplete=yi,this._tapError=i||yi,this._tapComplete=r||yi,dt(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||yi,this._tapError=t.error||yi,this._tapComplete=t.complete||yi)}_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 Xl(n,e=Cl){return t=>t.lift(new ZN(n,e))}class ZN{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new JN(e,this.dueTime,this.scheduler))}}class JN extends k{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(e1,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function e1(n){n.debouncedNext()}function Mw(n){return e=>e.lift(new t1(n))}class t1{constructor(e){this.total=e}call(e,t){return t.subscribe(new n1(e,this.total))}}class n1 extends k{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}class s1{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new o1(e,this.compare,this.keySelector))}}class o1 extends k{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))}}let a1=(()=>{class n{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),l1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:[a1]}),n})();function Ql(n,e){return(n.getAttribute(e)||"").match(/\S+/g)||[]}const Iw="cdk-describedby-message-container",xw="cdk-describedby-message",Zl="cdk-describedby-host";let d1=0;const ii=new Map;let nn=null,h1=(()=>{class n{constructor(t){this._document=t}describe(t,i,r){if(!this._canBeDescribed(t,i))return;const s=sf(i,r);"string"!=typeof i?(Aw(i),ii.set(s,{messageElement:i,referenceCount:0})):ii.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(t,s)||this._addMessageReference(t,s)}removeDescription(t,i,r){if(!i||!this._isElementNode(t))return;const s=sf(i,r);if(this._isElementDescribedByMessage(t,s)&&this._removeMessageReference(t,s),"string"==typeof i){const o=ii.get(s);o&&0===o.referenceCount&&this._deleteMessageElement(s)}nn&&0===nn.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll(`[${Zl}]`);for(let i=0;i<t.length;i++)this._removeCdkDescribedByReferenceIds(t[i]),t[i].removeAttribute(Zl);nn&&this._deleteMessagesContainer(),ii.clear()}_createMessageElement(t,i){const r=this._document.createElement("div");Aw(r),r.textContent=t,i&&r.setAttribute("role",i),this._createMessagesContainer(),nn.appendChild(r),ii.set(sf(t,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(t){var i;const r=ii.get(t);null===(i=null==r?void 0:r.messageElement)||void 0===i||i.remove(),ii.delete(t)}_createMessagesContainer(){if(!nn){const t=this._document.getElementById(Iw);null==t||t.remove(),nn=this._document.createElement("div"),nn.id=Iw,nn.style.visibility="hidden",nn.classList.add("cdk-visually-hidden"),this._document.body.appendChild(nn)}}_deleteMessagesContainer(){nn&&(nn.remove(),nn=null)}_removeCdkDescribedByReferenceIds(t){const i=Ql(t,"aria-describedby").filter(r=>0!=r.indexOf(xw));t.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(t,i){const r=ii.get(i);(function c1(n,e,t){const i=Ql(n,e);i.some(r=>r.trim()==t.trim())||(i.push(t.trim()),n.setAttribute(e,i.join(" ")))})(t,"aria-describedby",r.messageElement.id),t.setAttribute(Zl,""),r.referenceCount++}_removeMessageReference(t,i){const r=ii.get(i);r.referenceCount--,function u1(n,e,t){const r=Ql(n,e).filter(s=>s!=t.trim());r.length?n.setAttribute(e,r.join(" ")):n.removeAttribute(e)}(t,"aria-describedby",r.messageElement.id),t.removeAttribute(Zl)}_isElementDescribedByMessage(t,i){const r=Ql(t,"aria-describedby"),s=ii.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(t,i){if(!this._isElementNode(t))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=t.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(t){return new(t||n)(w(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function sf(n,e){return"string"==typeof n?`${e||""}/${n}`:n}function Aw(n){n.id||(n.id=`${xw}-${d1++}`)}class p1 extends class f1{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new y,this._typeaheadSubscription=R.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new y,this.change=new y,e instanceof cs&&e.changes.subscribe(t=>{if(this._activeItem){const r=t.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(tn(t=>this._pressedLetters.push(t)),Xl(e),mi(()=>this._pressedLetters.length>0),A(()=>this._pressedLetters.join(""))).subscribe(t=>{const i=this._getItemsArray();for(let r=1;r<i.length+1;r++){const s=(this._activeItemIndex+r)%i.length,o=i[s];if(!this._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}setActiveItem(e){const t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||rf(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),i="number"==typeof e?e:t.indexOf(e),r=t[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let i=1;i<=t.length;i++){const r=(this._activeItemIndex+e*i+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(!i[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof cs?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}function af(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function lf(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const b1=new O("cdk-input-modality-detector-options"),w1={ignoreKeys:[18,17,224,91,16]},_s=Ao({passive:!0,capture:!0});let C1=(()=>{class n{constructor(t,i,r,s){this._platform=t,this._mostRecentTarget=null,this._modality=new FN(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=lr(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(af(o)?"keyboard":"mouse"),this._mostRecentTarget=lr(o))},this._onTouchstart=o=>{lf(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=lr(o))},this._options=Object.assign(Object.assign({},w1),s),this.modalityDetected=this._modality.pipe(Mw(1)),this.modalityChanged=this.modalityDetected.pipe(function r1(n,e){return t=>t.lift(new s1(n,e))}()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,_s),r.addEventListener("mousedown",this._onMousedown,_s),r.addEventListener("touchstart",this._onTouchstart,_s)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,_s),document.removeEventListener("mousedown",this._onMousedown,_s),document.removeEventListener("touchstart",this._onTouchstart,_s))}}return n.\u0275fac=function(t){return new(t||n)(w(Ln),w(ue),w(te),w(b1,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const D1=new O("cdk-focus-monitor-default-options"),Jl=Ao({passive:!0,capture:!0});let ec=(()=>{class n{constructor(t,i,r,s,o){this._ngZone=t,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new y,this._rootNodeFocusAndBlurListener=a=>{const l=lr(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(t,i=!1){const r=hs(t);if(!this._platform.isBrowser||1!==r.nodeType)return Ft(null);const s=function Fk(n){if(function Pk(){if(null==wh){const n="undefined"!=typeof document?document.head:null;wh=!(!n||!n.createShadowRoot&&!n.attachShadow)}return wh}()){const e=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new y,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=hs(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const s=hs(t);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),s=lr(t);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(t,i){this._ngZone.run(()=>t.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Jl),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Jl)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Nt(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Jl),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Jl),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,s)=>{(s===t||r.checkChildren&&s.contains(t))&&i.push([s,r])}),i}}return n.\u0275fac=function(t){return new(t||n)(w(ue),w(Ln),w(C1),w(te,8),w(D1,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const kw="cdk-high-contrast-black-on-white",Pw="cdk-high-contrast-white-on-black",cf="cdk-high-contrast-active";let Fw=(()=>{class n{constructor(t,i){this._platform=t,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(cf),t.remove(kw),t.remove(Pw),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(t.add(cf),t.add(kw)):2===i&&(t.add(cf),t.add(Pw))}}}return n.\u0275fac=function(t){return new(t||n)(w(Ln),w(te))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),S1=(()=>{class n{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(t){return new(t||n)(w(Fw))},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({imports:[[bh,l1]]}),n})();const T1=new O("mat-sanity-checks",{providedIn:"root",factory:function M1(){return!0}});let ri=(()=>{class n{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!Ch()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(w(Fw),w(T1,8),w(te))},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({imports:[[Ro],Ro]}),n})();function Lw(n){return class extends n{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=ds(e)}}}function Bw(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const i=t||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function Vw(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=ds(e)}}}class x1{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Hw={enterDuration:225,exitDuration:150},uf=Ao({passive:!0}),jw=["mousedown","touchstart"],zw=["mouseup","mouseleave","touchend","touchcancel"];class O1{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=hs(i))}fadeInRipple(e,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Hw),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const o=i.radius||function k1(n,e,t){const i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),a=e-r.left,l=t-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function R1(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new x1(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,r=Object.assign(Object.assign({},Hw),e.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=hs(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(jw))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(zw),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=af(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!lf(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,uf)})})}_removeTriggerEvents(){this._triggerElement&&(jw.forEach(e=>{this._triggerElement.removeEventListener(e,this,uf)}),this._pointerUpEventsRegistered&&zw.forEach(e=>{this._triggerElement.removeEventListener(e,this,uf)}))}}const P1=new O("mat-ripple-global-options");let df=(()=>{class n{constructor(t,i,r,s,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new O1(this,i,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(ue),v(Ln),v(P1,8),v(Kl,8))},n.\u0275dir=ye({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,i){2&t&&Zn("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),$w=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({imports:[[ri,bh],ri]}),n})();const F1=["mat-button",""],N1=["*"],B1=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],V1=Bw(Lw(Vw(class{constructor(n){this._elementRef=n}})));let H1=(()=>{class n extends V1{constructor(t,i,r){super(t),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of B1)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,i){t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(ec),v(Kl,8))},n.\u0275cmp=jn({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,i){if(1&t&&ir(df,5),2&t){let r;ei(r=ti())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,i){2&t&&(We("disabled",i.disabled||null),Zn("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Kn],attrs:F1,ngContentSelectors:N1,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,i){1&t&&(Jr(),ce(0,"span",0),er(1),fe(),An(2,"span",1)(3,"span",2)),2&t&&(B(2),Zn("mat-button-ripple-round",i.isRoundButton||i.isIconButton),F("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[df],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),j1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({imports:[[$w,ri],ri]}),n})();function tc(n,e){return new Z(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=hc(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>t.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),t.complete())}}))}})}function Uw(n){return function(t){const i=new $1(n),r=t.lift(i);return i.caught=r}}class $1{constructor(e){this.selector=e}call(e,t){return t.subscribe(new U1(e,this.selector,this.caught))}}class U1 extends xs{constructor(e,t,i){super(e),this.selector=t,this.caught=i}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new Is(this);this.add(i);const r=As(t,i);r!==i&&this.add(r)}}}class G1{constructor(e){this.callback=e}call(e,t){return t.subscribe(new q1(e,this.callback))}}class q1 extends k{constructor(e,t){super(e),this.add(new R(t))}}class K1{}class Ni{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),s=r.toLowerCase(),o=t.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let i=e[t];const r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Ni?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Ni;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Ni?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const s=e.value;if(s){let o=this.headers.get(t);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class X1{encodeKey(e){return Ww(e)}encodeValue(e){return Ww(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const Z1=/%(\d[a-f0-9])/gi,J1={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Ww(n){return encodeURIComponent(n).replace(Z1,(e,t)=>{var i;return null!==(i=J1[t])&&void 0!==i?i:e})}function Gw(n){return`${n}`}class Li{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new X1,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Q1(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],l=t.get(o)||[];l.push(a),t.set(o,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const i=e.fromObject[t];this.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(i=>{const r=e[i];Array.isArray(r)?r.forEach(s=>{t.push({param:i,value:s,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Li({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(Gw(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let i=this.map.get(e.param)||[];const r=i.indexOf(Gw(e.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class eL{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function qw(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function Yw(n){return"undefined"!=typeof Blob&&n instanceof Blob}function Kw(n){return"undefined"!=typeof FormData&&n instanceof FormData}class Ho{constructor(e,t,i,r){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function tL(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Ni),this.context||(this.context=new eL),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+o}}else this.params=new Li,this.urlWithParams=t}serializeBody(){return null===this.body?null:qw(this.body)||Yw(this.body)||Kw(this.body)||function nL(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Li?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Kw(this.body)?null:Yw(this.body)?this.body.type||null:qw(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Li?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var t;const i=e.method||this.method,r=e.url||this.url,s=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,l=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let c=e.headers||this.headers,u=e.params||this.params;const d=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((h,f)=>h.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new Ho(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var ut=(()=>((ut=ut||{})[ut.Sent=0]="Sent",ut[ut.UploadProgress=1]="UploadProgress",ut[ut.ResponseHeader=2]="ResponseHeader",ut[ut.DownloadProgress=3]="DownloadProgress",ut[ut.Response=4]="Response",ut[ut.User=5]="User",ut))();class hf extends class iL{constructor(e,t=200,i="OK"){this.headers=e.headers||new Ni,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(e={}){super(e),this.type=ut.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new hf({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function ff(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Qw=(()=>{class n{constructor(t){this.handler=t}request(t,i,r={}){let s;if(t instanceof Ho)s=t;else{let l,c;l=r.headers instanceof Ni?r.headers:new Ni(r.headers),r.params&&(c=r.params instanceof Li?r.params:new Li({fromObject:r.params})),s=new Ho(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=Ft(s).pipe(function Y1(n,e){return Ko(n,e,1)}(l=>this.handler.handle(l)));if(t instanceof Ho||"events"===r.observe)return o;const a=o.pipe(mi(l=>l instanceof hf));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(A(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(A(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(A(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(A(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new Li).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,ff(r,i))}post(t,i,r={}){return this.request("POST",t,ff(r,i))}put(t,i,r={}){return this.request("PUT",t,ff(r,i))}}return n.\u0275fac=function(t){return new(t||n)(w(K1))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const sL=["*"];let nc;function jo(n){var e;return(null===(e=function oL(){if(void 0===nc&&(nc=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(nc=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return nc}())||void 0===e?void 0:e.createHTML(n))||n}function Zw(n){return Error(`Unable to find icon with the name "${n}"`)}function Jw(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function eC(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class pr{constructor(e,t,i){this.url=e,this.svgText=t,this.options=i}}let zo=(()=>{class n{constructor(t,i,r,s){this._httpClient=t,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(t,i,r){return this.addSvgIconInNamespace("",t,i,r)}addSvgIconLiteral(t,i,r){return this.addSvgIconLiteralInNamespace("",t,i,r)}addSvgIconInNamespace(t,i,r,s){return this._addSvgIconConfig(t,i,new pr(r,null,s))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,s){const o=this._sanitizer.sanitize(le.HTML,r);if(!o)throw eC(r);const a=jo(o);return this._addSvgIconConfig(t,i,new pr("",a,s))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,r){return this._addSvgIconSetConfig(t,new pr(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const s=this._sanitizer.sanitize(le.HTML,i);if(!s)throw eC(i);const o=jo(s);return this._addSvgIconSetConfig(t,new pr("",o,r))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const i=this._sanitizer.sanitize(le.RESOURCE_URL,t);if(!i)throw Jw(t);const r=this._cachedIconsByUrl.get(i);return r?Ft(ic(r)):this._loadSvgIconFromConfig(new pr(t,null)).pipe(tn(s=>this._cachedIconsByUrl.set(i,s)),A(s=>ic(s)))}getNamedSvgIcon(t,i=""){const r=tC(i,t);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,t),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(t,o):xb(Zw(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Ft(ic(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(A(i=>ic(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);return r?Ft(r):function z1(...n){if(1===n.length){const e=n[0];if(ze(e))return tc(e,null);if(Ot(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return tc(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return tc(n=1===n.length&&ze(n[0])?n[0]:n,null).pipe(A(t=>e(...t)))}return tc(n,null)}(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(Uw(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(le.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Ft(null)})))).pipe(A(()=>{const o=this._extractIconWithNameFromAnySet(t,i);if(!o)throw Zw(t);return o}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(t)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,t,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(tn(i=>t.svgText=i),A(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Ft(null):this._fetchIcon(t).pipe(tn(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const s=t.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(jo("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString(jo("<svg></svg>")),r=t.attributes;for(let s=0;s<r.length;s++){const{name:o,value:a}=r[s];"id"!==o&&i.setAttribute(o,a)}for(let s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(t.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(t,i){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),i&&i.viewBox&&t.setAttribute("viewBox",i.viewBox),t}_fetchIcon(t){var i;const{url:r,options:s}=t,o=null!==(i=null==s?void 0:s.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function aL(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==r)throw Error(`Cannot fetch icon from URL "${r}".`);const a=this._sanitizer.sanitize(le.RESOURCE_URL,r);if(!a)throw Jw(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(A(u=>jo(u)),function W1(n){return e=>e.lift(new G1(n))}(()=>this._inProgressUrlFetches.delete(a)),Hf());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(tC(t,i),r),this}_addSvgIconSetConfig(t,i){const r=this._iconSetConfigs.get(t);return r?r.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){const i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let r=0;r<this._resolvers.length;r++){const s=this._resolvers[r](i,t);if(s)return cL(s)?new pr(s.url,null,s.options):new pr(s,null)}}}return n.\u0275fac=function(t){return new(t||n)(w(Qw,8),w(yl),w(te,8),w(Ii))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ic(n){return n.cloneNode(!0)}function tC(n,e){return n+":"+e}function cL(n){return!(!n.url||!n.options)}const uL=Bw(class{constructor(n){this._elementRef=n}}),dL=new O("mat-icon-location",{providedIn:"root",factory:function hL(){const n=wa(te),e=n?n.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),nC=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],fL=nC.map(n=>`[${n}]`).join(", "),pL=/^url\(['"]?#(.*?)['"]?\)$/;let mL=(()=>{class n extends uL{constructor(t,i,r,s,o){super(t),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=R.EMPTY,r||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=ds(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const i=t.querySelectorAll("style");for(let s=0;s<i.length;s++)i[s].textContent+=" ";const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=t.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),i&&t.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${t}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(fL),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)nC.forEach(o=>{const a=i[s],l=a.getAttribute(o),c=l?l.match(pL):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[i,r]=this._splitIconName(t);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(gi(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(zo),function _a(n){return function vD(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const s=t[r];if(yp(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(s===e)return t[r+1];r+=2}}}return null}(Xe(),n)}("aria-hidden"),v(dL),v(Ii))},n.\u0275cmp=jn({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,i){2&t&&(We("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),Zn("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Kn],ngContentSelectors:sL,decls:1,vars:0,template:function(t,i){1&t&&(Jr(),er(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),gL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({imports:[[ri],ri]}),n})();class _L extends k{notifyNext(e,t,i,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class yL extends k{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 vL(n,e,t,i,r=new yL(n,t,i)){if(!r.closed)return e instanceof Z?e.subscribe(r):uc(e)(r)}const iC={};class wL{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new CL(e,this.resultSelector))}}class CL extends _L{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(iC),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(vL(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]===iC?--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 pf(...n){return function EL(){return Bf(1)}()(Ft(...n))}function rc(...n){const e=n[n.length-1];return H(e)?(n.pop(),t=>pf(n,t,e)):t=>pf(n,t)}const rC=new Set;let ys,DL=(()=>{class n{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ML}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function SL(n){if(!rC.has(n))try{ys||(ys=document.createElement("style"),ys.setAttribute("type","text/css"),document.head.appendChild(ys)),ys.sheet&&(ys.sheet.insertRule(`@media ${n} {body{ }}`,0),rC.add(n))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return n.\u0275fac=function(t){return new(t||n)(w(Ln))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ML(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let TL=(()=>{class n{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new y}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return sC(vl(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let s=function bL(...n){let e,t;return H(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&ze(n[0])&&(n=n[0]),fc(n,t).lift(new wL(e))}(sC(vl(t)).map(o=>this._registerQuery(o).observable));return s=pf(s.pipe(gi(1)),s.pipe(Mw(1),Xl(0))),s.pipe(A(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),s={observable:new Z(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(rc(i),A(({matches:o})=>({query:t,matches:o})),Nt(this._destroySubject)),mql:i};return this._queries.set(t,s),s}}return n.\u0275fac=function(t){return new(t||n)(w(DL),w(ue))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function sC(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}const xL={tooltipState:xh("state",[xl("initial, void, hidden",Zt({opacity:0,transform:"scale(0)"})),xl("visible",Zt({transform:"scale(1)"})),Fo("* => visible",Po("200ms cubic-bezier(0, 0, 0.2, 1)",FP([Zt({opacity:0,transform:"scale(0)",offset:0}),Zt({opacity:.5,transform:"scale(0.99)",offset:.5}),Zt({opacity:1,transform:"scale(1)",offset:1})]))),Fo("* => hidden",Po("100ms cubic-bezier(0, 0, 0.2, 1)",Zt({opacity:0})))])},oC="tooltip-panel",aC=Ao({passive:!0}),lC=new O("mat-tooltip-scroll-strategy"),kL={provide:lC,deps:[ps],useFactory:function RL(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},PL=new O("mat-tooltip-default-options",{providedIn:"root",factory:function FL(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let NL=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h,f){this._overlay=t,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=s,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new y,this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(Nt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(t){var i;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=ds(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=sb(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=sb(t)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Nt(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{t.removeEventListener(i,r,aC)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new gb(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Nt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return i.positionChanges.pipe(Nt(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${oC}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Nt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Nt(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Nt(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!rf(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const i=t.getConfig().positionStrategy,r=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),s.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),s.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={originX:"end",originY:"center"});const{x:s,y:o}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:s,originY:o}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={overlayX:"start",overlayY:"center"});const{x:s,y:o}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(gi(1),Nt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){const{overlayY:i,originX:r,originY:s}=t;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===s?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${oC}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,aC)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(t.clientX,t.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const i=this._elementRef.nativeElement,r=i.style;("on"===t||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===t||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(t){!function qg(){throw new Error("invalid")}()},n.\u0275dir=ye({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),cC=(()=>{class n extends NL{constructor(t,i,r,s,o,a,l,c,u,d,h,f){super(t,i,r,s,o,a,l,c,u,d,h,f),this._tooltipComponent=BL}}return n.\u0275fac=function(t){return new(t||n)(v(ps),v(Se),v(Eh),v(It),v(ue),v(Ln),v(h1),v(ec),v(lC),v(Dl,8),v(PL,8),v(te))},n.\u0275dir=ye({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Kn]}),n})(),LL=(()=>{class n{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new y}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const i=t.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(t){return new(t||n)(v(Oi))},n.\u0275dir=ye({type:n}),n})(),BL=(()=>{class n extends LL{constructor(t,i){super(t),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(t){return new(t||n)(v(Oi),v(TL))},n.\u0275cmp=jn({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,i){2&t&&ts("zoom","visible"===i._visibility?1:null)},features:[Kn],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,i){if(1&t&&(ce(0,"div",0),Le("@state.start",function(){return i._animationStart()})("@state.done",function(s){return i._animationDone(s)}),function Dy(n,e){const t=re();let i;const r=n+20;t.firstCreatePass?(i=function mx(n,e){if(e)for(let t=e.length-1;t>=0;t--){const i=e[t];if(n===i.name)return i}}(e,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(r,i.onDestroy)):i=t.data[r];const s=i.factory||(i.factory=qi(i.type)),o=Ci(v);try{const a=fa(!1),l=s();return fa(a),function PM(n,e,t,i){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=i}(t,C(),r,l),l}finally{Ci(o)}}(1,"async"),ns(2),fe()),2&t){let r;Zn("mat-tooltip-handset",null==(r=Sy(1,5,i._isHandset))?null:r.matches),F("ngClass",i.tooltipClass)("@state",i._visibility),B(2),tr(i.message)}},directives:[Eo],pipes:[$v],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[xL.tooltipState]},changeDetection:0}),n})(),uC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:[kL],imports:[[S1,hl,Ib,ri],ri,Sl]}),n})();const VL=new Z(yi);function dC(n){return Boolean(n.parentElement&&"picture"===n.parentElement.nodeName.toLowerCase())}function $o(n){return"img"===n.nodeName.toLowerCase()}function hC(n,e,t){return $o(n)?t&&"srcset"in n?n.srcset=e:n.src=e:n.style.backgroundImage=`url('${e}')`,n}function mf(n){return e=>{const t=e.parentElement.getElementsByTagName("source");for(let i=0;i<t.length;i++){const r=t[i].getAttribute(n);r&&("srcset"in t[i]?t[i].srcset=r:t[i].src=r)}}}const zL=mf("defaultImage"),fC=mf("lazyLoad"),$L=mf("errorImage");function gf(n){return(e,t,i)=>{$o(e)&&dC(e)&&n(e),t&&hC(e,t,i)}}const UL=gf(zL),WL=gf(fC),GL=gf($L);function pC(n,e){n.className=n.className.replace(e,"")}function _f(n,e){n.className.includes(e)||(n.className+=` ${e}`)}class mC extends class KL extends class qL{constructor(){this.navigator=function jL(){return"undefined"!=typeof window?window.navigator:void 0}()}setPlatformId(e){this.platformId=e}onDestroy(e){}onAttributeChange(e){}}{setup(e){UL(e.element,e.defaultImagePath,e.useSrcset),e.imagePath&&_f(e.element,"ng-lazyloading"),function YL(n,e){return n.className&&n.className.includes(e)}(e.element,"ng-lazyloaded")&&pC(e.element,"ng-lazyloaded")}finally(e){_f(e.element,"ng-lazyloaded"),pC(e.element,"ng-lazyloading")}loadImage(e){if(this.skipLazyLoading(e))return[e.imagePath];const{element:t,useSrcset:i,imagePath:r,decode:s}=e;let o;return $o(t)&&dC(t)?(o=t.parentNode.cloneNode(!0).getElementsByTagName("img")[0],fC(o),hC(o,r,i)):(o=new Image,$o(t)&&t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),$o(t)&&t.sizes&&(o.sizes=t.sizes),i&&"srcset"in o?o.srcset=r:o.src=r),s&&o.decode?o.decode().then(()=>r):new Promise((a,l)=>{o.onload=()=>a(r),o.onerror=()=>l(null)})}setErrorImage(e,t){const{element:i,useSrcset:r,errorImagePath:s}=t;GL(i,s,r),_f(i,"ng-failed-lazyloaded")}setLoadedImage(e,t){const{element:i,useSrcset:r}=t;WL(i,e,r)}isDisabled(){return function NO(n){return"server"===n}(this.platformId)&&!this.isBot()}skipLazyLoading(e){return this.isBot(e)}isBot(e){var t;return!!(null===(t=this.navigator)||void 0===t?void 0:t.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(this.navigator.userAgent)}}{constructor(){super(...arguments),this.observers=new WeakMap,this.intersectionSubject=new y,this.uniqKey={}}getObservable(e){if(this.skipLazyLoading(e))return Ft({isIntersecting:!0});if(e.customObservable)return e.customObservable;const t=e.scrollContainer||this.uniqKey,i={root:e.scrollContainer||null};e.offset&&(i.rootMargin=`${e.offset}px`);let r=this.observers.get(t);return r||(r=new IntersectionObserver(s=>this.loadingCallback(s),i),this.observers.set(t,r)),r.observe(e.element),Z.create(s=>{const o=this.intersectionSubject.pipe(mi(a=>a.target===e.element)).subscribe(s);return()=>{o.unsubscribe(),r.unobserve(e.element)}})}isVisible(e){return e.isIntersecting}loadingCallback(e){e.forEach(t=>this.intersectionSubject.next(t))}}const yf=new O("LazyLoadImageHooks");let QL=(()=>{class n{constructor(t,i,r,s){this.onStateChange=new Ve,this.elementRef=t,this.ngZone=i,this.propertyChanges$=new Ab,this.hooks=s,this.hooks.setPlatformId(r),this.uid=Math.random().toString(36).substr(2,9)}ngOnChanges(){!0===this.debug&&!this.debugSubscription&&(this.debugSubscription=this.onStateChange.subscribe(t=>console.log(t))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange,id:this.uid})}ngAfterContentInit(){if(this.hooks.isDisabled())return null;this.ngZone.runOutsideAngular(()=>{this.loadSubscription=this.propertyChanges$.pipe(tn(t=>this.hooks.onAttributeChange(t)),tn(t=>t.onStateChange.emit({reason:"setup"})),tn(t=>this.hooks.setup(t)),ko(t=>t.imagePath?this.hooks.getObservable(t).pipe(function XL(n,e){return t=>t.pipe(tn(i=>e.onStateChange.emit({reason:"observer-emit",data:i})),mi(i=>n.isVisible(i,e)),gi(1),tn(()=>e.onStateChange.emit({reason:"start-loading"})),Ko(()=>n.loadImage(e)),tn(()=>e.onStateChange.emit({reason:"mount-image"})),tn(i=>n.setLoadedImage(i,e)),tn(()=>e.onStateChange.emit({reason:"loading-succeeded"})),A(()=>!0),Uw(i=>(e.onStateChange.emit({reason:"loading-failed",data:i}),n.setErrorImage(i,e),Ft(!1))),tn(()=>{e.onStateChange.emit({reason:"finally"}),n.finally(e)}))}(this.hooks,t)):function HL(){return VL}())).subscribe({next:()=>null})})}ngOnDestroy(){var t,i;this.propertyChanges$.pipe(gi(1)).subscribe({next:r=>this.hooks.onDestroy(r)}).unsubscribe(),null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(i=this.debugSubscription)||void 0===i||i.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(ue),v(Xa),v(yf))},n.\u0275dir=ye({type:n,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange"},features:[Yi]}),n})(),ZL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:[{provide:yf,useClass:mC}]}),n})();class vn{constructor(e,t,i,r){this.left=e,this.top=t,this.right=i,this.bottom=r}static fromElement(e){const{left:t,top:i,right:r,bottom:s}=e.getBoundingClientRect();return 0===t&&0===i&&0===r&&0===s?vn.empty:new vn(t,i,r,s)}static fromWindow(e){return new vn(0,0,e.innerWidth,e.innerHeight)}inflate(e){this.left-=e,this.top-=e,this.right+=e,this.bottom+=e}intersectsWith(e){return e.left<this.right&&this.left<e.right&&e.top<this.bottom&&this.top<e.bottom}getIntersectionWith(e){const t=Math.max(this.left,e.left),i=Math.max(this.top,e.top),r=Math.min(this.right,e.right),s=Math.min(this.bottom,e.bottom);return r>=t&&s>=i?new vn(t,i,r,s):vn.empty}}vn.empty=new vn(0,0,0,0);var Uo="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,JL=function(){for(var n=["Edge","Trident","Firefox"],e=0;e<n.length;e+=1)if(Uo&&navigator.userAgent.indexOf(n[e])>=0)return 1;return 0}(),iB=Uo&&window.Promise?function eB(n){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,n()}))}}:function tB(n){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,n()},JL))}};function gC(n){return n&&"[object Function]"==={}.toString.call(n)}function mr(n,e){if(1!==n.nodeType)return[];var i=n.ownerDocument.defaultView.getComputedStyle(n,null);return e?i[e]:i}function vf(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function Wo(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var e=mr(n);return/(auto|scroll|overlay)/.test(e.overflow+e.overflowY+e.overflowX)?n:Wo(vf(n))}function _C(n){return n&&n.referenceNode?n.referenceNode:n}var yC=Uo&&!(!window.MSInputMethodContext||!document.documentMode),vC=Uo&&/MSIE 10/.test(navigator.userAgent);function bs(n){return 11===n?yC:10===n?vC:yC||vC}function ws(n){if(!n)return document.documentElement;for(var e=bs(10)?document.body:null,t=n.offsetParent||null;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;var i=t&&t.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===mr(t,"position")?ws(t):t:n?n.ownerDocument.documentElement:document.documentElement}function bf(n){return null!==n.parentNode?bf(n.parentNode):n}function sc(n,e){if(!(n&&n.nodeType&&e&&e.nodeType))return document.documentElement;var t=n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=t?n:e,r=t?e:n,s=document.createRange();s.setStart(i,0),s.setEnd(r,0);var o=s.commonAncestorContainer;if(n!==o&&e!==o||i.contains(r))return function rB(n){var e=n.nodeName;return"BODY"!==e&&("HTML"===e||ws(n.firstElementChild)===n)}(o)?o:ws(o);var a=bf(n);return a.host?sc(a.host,e):sc(n,bf(e).host)}function Cs(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",t="top"===e?"scrollTop":"scrollLeft",i=n.nodeName;if("BODY"===i||"HTML"===i){var r=n.ownerDocument.documentElement,s=n.ownerDocument.scrollingElement||r;return s[t]}return n[t]}function sB(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Cs(e,"top"),r=Cs(e,"left"),s=t?-1:1;return n.top+=i*s,n.bottom+=i*s,n.left+=r*s,n.right+=r*s,n}function bC(n,e){var t="x"===e?"Left":"Top",i="Left"===t?"Right":"Bottom";return parseFloat(n["border"+t+"Width"])+parseFloat(n["border"+i+"Width"])}function wC(n,e,t,i){return Math.max(e["offset"+n],e["scroll"+n],t["client"+n],t["offset"+n],t["scroll"+n],bs(10)?parseInt(t["offset"+n])+parseInt(i["margin"+("Height"===n?"Top":"Left")])+parseInt(i["margin"+("Height"===n?"Bottom":"Right")]):0)}function CC(n){var e=n.body,t=n.documentElement,i=bs(10)&&getComputedStyle(t);return{height:wC("Height",e,t,i),width:wC("Width",e,t,i)}}var oB=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")},aB=function(){function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),Es=function(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n},bn=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n};function Bi(n){return bn({},n,{right:n.left+n.width,bottom:n.top+n.height})}function wf(n){var e={};try{if(bs(10)){e=n.getBoundingClientRect();var t=Cs(n,"top"),i=Cs(n,"left");e.top+=t,e.left+=i,e.bottom+=t,e.right+=i}else e=n.getBoundingClientRect()}catch(d){}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===n.nodeName?CC(n.ownerDocument):{},l=n.offsetWidth-(s.width||n.clientWidth||r.width),c=n.offsetHeight-(s.height||n.clientHeight||r.height);if(l||c){var u=mr(n);l-=bC(u,"x"),c-=bC(u,"y"),r.width-=l,r.height-=c}return Bi(r)}function Cf(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=bs(10),r="HTML"===e.nodeName,s=wf(n),o=wf(e),a=Wo(n),l=mr(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);t&&r&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=Bi({top:s.top-o.top-c,left:s.left-o.left-u,width:s.width,height:s.height});if(d.marginTop=0,d.marginLeft=0,!i&&r){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-h,d.bottom-=c-h,d.left-=u-f,d.right-=u-f,d.marginTop=h,d.marginLeft=f}return(i&&!t?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(d=sB(d,e)),d}function lB(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.ownerDocument.documentElement,i=Cf(n,t),r=Math.max(t.clientWidth,window.innerWidth||0),s=Math.max(t.clientHeight,window.innerHeight||0),o=e?0:Cs(t),a=e?0:Cs(t,"left"),l={top:o-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:s};return Bi(l)}function EC(n){var e=n.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===mr(n,"position"))return!0;var t=vf(n);return!!t&&EC(t)}function DC(n){if(!n||!n.parentElement||bs())return document.documentElement;for(var e=n.parentElement;e&&"none"===mr(e,"transform");)e=e.parentElement;return e||document.documentElement}function Ef(n,e,t,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},o=r?DC(n):sc(n,_C(e));if("viewport"===i)s=lB(o,r);else{var a=void 0;"scrollParent"===i?"BODY"===(a=Wo(vf(e))).nodeName&&(a=n.ownerDocument.documentElement):a="window"===i?n.ownerDocument.documentElement:i;var l=Cf(a,o,r);if("HTML"!==a.nodeName||EC(o))s=l;else{var c=CC(n.ownerDocument),u=c.height,d=c.width;s.top+=l.top-l.marginTop,s.bottom=u+l.top,s.left+=l.left-l.marginLeft,s.right=d+l.left}}var h="number"==typeof(t=t||0);return s.left+=h?t:t.left||0,s.top+=h?t:t.top||0,s.right-=h?t:t.right||0,s.bottom-=h?t:t.bottom||0,s}function cB(n){return n.width*n.height}function SC(n,e,t,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===n.indexOf("auto"))return n;var o=Ef(t,i,s,r),a={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},l=Object.keys(a).map(function(h){return bn({key:h},a[h],{area:cB(a[h])})}).sort(function(h,f){return f.area-h.area}),c=l.filter(function(h){return h.width>=t.clientWidth&&h.height>=t.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=n.split("-")[1];return u+(d?"-"+d:"")}function MC(n,e,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=i?DC(e):sc(e,_C(t));return Cf(t,r,i)}function TC(n){var t=n.ownerDocument.defaultView.getComputedStyle(n),i=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function oc(n){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(t){return e[t]})}function IC(n,e,t){t=t.split("-")[0];var i=TC(n),r={width:i.width,height:i.height},s=-1!==["right","left"].indexOf(t),o=s?"top":"left",a=s?"left":"top",l=s?"height":"width",c=s?"width":"height";return r[o]=e[o]+e[l]/2-i[l]/2,r[a]=t===a?e[a]-i[c]:e[oc(a)],r}function Go(n,e){return Array.prototype.find?n.find(e):n.filter(e)[0]}function xC(n,e,t){var i=void 0===t?n:n.slice(0,function uB(n,e,t){if(Array.prototype.findIndex)return n.findIndex(function(r){return r[e]===t});var i=Go(n,function(r){return r[e]===t});return n.indexOf(i)}(n,"name",t));return i.forEach(function(r){r.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=r.function||r.fn;r.enabled&&gC(s)&&(e.offsets.popper=Bi(e.offsets.popper),e.offsets.reference=Bi(e.offsets.reference),e=s(e,r))}),e}function dB(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=MC(this.state,this.popper,this.reference,this.options.positionFixed),n.placement=SC(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.positionFixed=this.options.positionFixed,n.offsets.popper=IC(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",n=xC(this.modifiers,n),this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function AC(n,e){return n.some(function(t){return t.enabled&&t.name===e})}function Df(n){for(var e=[!1,"ms","Webkit","Moz","O"],t=n.charAt(0).toUpperCase()+n.slice(1),i=0;i<e.length;i++){var r=e[i],s=r?""+r+t:n;if(void 0!==document.body.style[s])return s}return null}function hB(){return this.state.isDestroyed=!0,AC(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Df("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function OC(n){var e=n.ownerDocument;return e?e.defaultView:window}function RC(n,e,t,i){var r="BODY"===n.nodeName,s=r?n.ownerDocument.defaultView:n;s.addEventListener(e,t,{passive:!0}),r||RC(Wo(s.parentNode),e,t,i),i.push(s)}function fB(n,e,t,i){t.updateBound=i,OC(n).addEventListener("resize",t.updateBound,{passive:!0});var r=Wo(n);return RC(r,"scroll",t.updateBound,t.scrollParents),t.scrollElement=r,t.eventsEnabled=!0,t}function pB(){this.state.eventsEnabled||(this.state=fB(this.reference,0,this.state,this.scheduleUpdate))}function gB(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function mB(n,e){return OC(n).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function Sf(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function Mf(n,e){Object.keys(e).forEach(function(t){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&Sf(e[t])&&(i="px"),n.style[t]=e[t]+i})}var wB=Uo&&/Firefox/i.test(navigator.userAgent);function kC(n,e,t){var i=Go(n,function(a){return a.name===e}),r=!!i&&n.some(function(a){return a.name===t&&a.enabled&&a.order<i.order});if(!r){var s="`"+e+"`";console.warn("`"+t+"` modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return r}var PC=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Tf=PC.slice(3);function FC(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=Tf.indexOf(n),i=Tf.slice(t+1).concat(Tf.slice(0,t));return e?i.reverse():i}var PB={shift:{order:100,enabled:!0,fn:function OB(n){var e=n.placement,t=e.split("-")[0],i=e.split("-")[1];if(i){var r=n.offsets,s=r.reference,o=r.popper,a=-1!==["bottom","top"].indexOf(t),l=a?"left":"top",c=a?"width":"height",u={start:Es({},l,s[l]),end:Es({},l,s[l]+s[c]-o[c])};n.offsets.popper=bn({},o,u[i])}return n}},offset:{order:200,enabled:!0,fn:function xB(n,e){var l,t=e.offset,r=n.offsets,s=r.popper,o=r.reference,a=n.placement.split("-")[0];return l=Sf(+t)?[+t,0]:function IB(n,e,t,i){var r=[0,0],s=-1!==["right","left"].indexOf(i),o=n.split(/(\+|\-)/).map(function(u){return u.trim()}),a=o.indexOf(Go(o,function(u){return-1!==u.search(/,|\s/)}));o[a]&&-1===o[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[o.slice(0,a).concat([o[a].split(l)[0]]),[o[a].split(l)[1]].concat(o.slice(a+1))]:[o];return c=c.map(function(u,d){var h=(1===d?!s:s)?"height":"width",f=!1;return u.reduce(function(p,m){return""===p[p.length-1]&&-1!==["+","-"].indexOf(m)?(p[p.length-1]=m,f=!0,p):f?(p[p.length-1]+=m,f=!1,p):p.concat(m)},[]).map(function(p){return function TB(n,e,t,i){var r=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+r[1],o=r[2];return s?0===o.indexOf("%")?Bi("%p"===o?t:i)[e]/100*s:"vh"===o||"vw"===o?("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s:s:n}(p,h,e,t)})}),c.forEach(function(u,d){u.forEach(function(h,f){Sf(h)&&(r[d]+=h*("-"===u[f-1]?-1:1))})}),r}(t,s,o,a),"left"===a?(s.top+=l[0],s.left-=l[1]):"right"===a?(s.top+=l[0],s.left+=l[1]):"top"===a?(s.left+=l[0],s.top-=l[1]):"bottom"===a&&(s.left+=l[0],s.top+=l[1]),n.popper=s,n},offset:0},preventOverflow:{order:300,enabled:!0,fn:function AB(n,e){var t=e.boundariesElement||ws(n.instance.popper);n.instance.reference===t&&(t=ws(t));var i=Df("transform"),r=n.instance.popper.style,s=r.top,o=r.left,a=r[i];r.top="",r.left="",r[i]="";var l=Ef(n.instance.popper,n.instance.reference,e.padding,t,n.positionFixed);r.top=s,r.left=o,r[i]=a,e.boundaries=l;var u=n.offsets.popper,d={primary:function(f){var p=u[f];return u[f]<l[f]&&!e.escapeWithReference&&(p=Math.max(u[f],l[f])),Es({},f,p)},secondary:function(f){var p="right"===f?"left":"top",m=u[p];return u[f]>l[f]&&!e.escapeWithReference&&(m=Math.min(u[p],l[f]-("right"===f?u.width:u.height))),Es({},p,m)}};return e.priority.forEach(function(h){var f=-1!==["left","top"].indexOf(h)?"primary":"secondary";u=bn({},u,d[f](h))}),n.offsets.popper=u,n},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function MB(n){var e=n.offsets,t=e.popper,i=e.reference,r=n.placement.split("-")[0],s=Math.floor,o=-1!==["top","bottom"].indexOf(r),a=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return t[a]<s(i[l])&&(n.offsets.popper[l]=s(i[l])-t[c]),t[l]>s(i[a])&&(n.offsets.popper[l]=s(i[a])),n}},arrow:{order:500,enabled:!0,fn:function EB(n,e){var t;if(!kC(n.instance.modifiers,"arrow","keepTogether"))return n;var i=e.element;if("string"==typeof i){if(!(i=n.instance.popper.querySelector(i)))return n}else if(!n.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var r=n.placement.split("-")[0],s=n.offsets,o=s.popper,a=s.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=TC(i)[c];a[f]-p<o[d]&&(n.offsets.popper[d]-=o[d]-(a[f]-p)),a[d]+p>o[f]&&(n.offsets.popper[d]+=a[d]+p-o[f]),n.offsets.popper=Bi(n.offsets.popper);var m=a[d]+a[c]/2-p/2,_=mr(n.instance.popper),b=parseFloat(_["margin"+u]),g=parseFloat(_["border"+u+"Width"]),E=m-n.offsets.popper[d]-b-g;return E=Math.max(Math.min(o[c]-p,E),0),n.arrowElement=i,n.offsets.arrow=(Es(t={},d,Math.round(E)),Es(t,h,""),t),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function SB(n,e){if(AC(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var t=Ef(n.instance.popper,n.instance.reference,e.padding,e.boundariesElement,n.positionFixed),i=n.placement.split("-")[0],r=oc(i),s=n.placement.split("-")[1]||"",o=[];switch(e.behavior){case"flip":o=[i,r];break;case"clockwise":o=FC(i);break;case"counterclockwise":o=FC(i,!0);break;default:o=e.behavior}return o.forEach(function(a,l){if(i!==a||o.length===l+1)return n;i=n.placement.split("-")[0],r=oc(i);var c=n.offsets.popper,u=n.offsets.reference,d=Math.floor,h="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)<d(u.right)||"top"===i&&d(c.bottom)>d(u.top)||"bottom"===i&&d(c.top)<d(u.bottom),f=d(c.left)<d(t.left),p=d(c.right)>d(t.right),m=d(c.top)<d(t.top),_=d(c.bottom)>d(t.bottom),b="left"===i&&f||"right"===i&&p||"top"===i&&m||"bottom"===i&&_,g=-1!==["top","bottom"].indexOf(i),Y=!!e.flipVariations&&(g&&"start"===s&&f||g&&"end"===s&&p||!g&&"start"===s&&m||!g&&"end"===s&&_)||!!e.flipVariationsByContent&&(g&&"start"===s&&p||g&&"end"===s&&f||!g&&"start"===s&&_||!g&&"end"===s&&m);(h||b||Y)&&(n.flipped=!0,(h||b)&&(i=o[l+1]),Y&&(s=function DB(n){return"end"===n?"start":"start"===n?"end":n}(s)),n.placement=i+(s?"-"+s:""),n.offsets.popper=bn({},n.offsets.popper,IC(n.instance.popper,n.offsets.reference,n.placement)),n=xC(n.instance.modifiers,n,"flip"))}),n},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function kB(n){var e=n.placement,t=e.split("-")[0],i=n.offsets,r=i.popper,s=i.reference,o=-1!==["left","right"].indexOf(t),a=-1===["top","left"].indexOf(t);return r[o?"left":"top"]=s[t]-(a?r[o?"width":"height"]:0),n.placement=oc(e),n.offsets.popper=Bi(r),n}},hide:{order:800,enabled:!0,fn:function RB(n){if(!kC(n.instance.modifiers,"hide","preventOverflow"))return n;var e=n.offsets.reference,t=Go(n.instance.modifiers,function(i){return"preventOverflow"===i.name}).boundaries;if(e.bottom<t.top||e.left>t.right||e.top>t.bottom||e.right<t.left){if(!0===n.hide)return n;n.hide=!0,n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1,n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function CB(n,e){var t=e.x,i=e.y,r=n.offsets.popper,s=Go(n.instance.modifiers,function(E){return"applyStyle"===E.name}).gpuAcceleration;void 0!==s&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var p,m,o=void 0!==s?s:e.gpuAcceleration,a=ws(n.instance.popper),l=wf(a),c={position:r.position},u=function bB(n,e){var t=n.offsets,i=t.popper,s=Math.round,o=Math.floor,a=function(b){return b},l=s(t.reference.width),c=s(i.width),u=-1!==["left","right"].indexOf(n.placement),d=-1!==n.placement.indexOf("-"),p=e?u||d||l%2==c%2?s:o:a,m=e?s:a;return{left:p(l%2==1&&c%2==1&&!d&&e?i.left-1:i.left),top:m(i.top),bottom:m(i.bottom),right:p(i.right)}}(n,window.devicePixelRatio<2||!wB),d="bottom"===t?"top":"bottom",h="right"===i?"left":"right",f=Df("transform");if(m="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+u.bottom:-l.height+u.bottom:u.top,p="right"===h?"HTML"===a.nodeName?-a.clientWidth+u.right:-l.width+u.right:u.left,o&&f)c[f]="translate3d("+p+"px, "+m+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var b="right"===h?-1:1;c[d]=m*("bottom"===d?-1:1),c[h]=p*b,c.willChange=d+", "+h}return n.attributes=bn({},{"x-placement":n.placement},n.attributes),n.styles=bn({},c,n.styles),n.arrowStyles=bn({},n.offsets.arrow,n.arrowStyles),n},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function yB(n){return Mf(n.instance.popper,n.styles),function _B(n,e){Object.keys(e).forEach(function(t){!1!==e[t]?n.setAttribute(t,e[t]):n.removeAttribute(t)})}(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&Mf(n.arrowElement,n.arrowStyles),n},onLoad:function vB(n,e,t,i,r){var s=MC(r,e,n,t.positionFixed),o=SC(t.placement,s,e,n,t.modifiers.flip.boundariesElement,t.modifiers.flip.padding);return e.setAttribute("x-placement",o),Mf(e,{position:t.positionFixed?"fixed":"absolute"}),t},gpuAcceleration:void 0}},FB={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:PB},ac=function(){function n(e,t){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oB(this,n),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=iB(this.update.bind(this)),this.options=bn({},n.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(bn({},n.Defaults.modifiers,r.modifiers)).forEach(function(o){i.options.modifiers[o]=bn({},n.Defaults.modifiers[o]||{},r.modifiers?r.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return bn({name:o},i.options.modifiers[o])}).sort(function(o,a){return o.order-a.order}),this.modifiers.forEach(function(o){o.enabled&&gC(o.onLoad)&&o.onLoad(i.reference,i.popper,i.options,o,i.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return aB(n,[{key:"update",value:function(){return dB.call(this)}},{key:"destroy",value:function(){return hB.call(this)}},{key:"enableEventListeners",value:function(){return pB.call(this)}},{key:"disableEventListeners",value:function(){return gB.call(this)}}]),n}();ac.Utils=("undefined"!=typeof window?window:global).PopperUtils,ac.placements=PC,ac.Defaults=FB;const NB=ac,LB=["popperViewRef"];function BB(n,e){1&n&&(ce(0,"div",5),er(1),fe()),2&n&&F("innerHTML",$().text,Eu)}function VB(n,e){1&n&&(ce(0,"div",6),er(1,1),fe())}const NC=["*","*"];let gr=(()=>{class n{}return n.CLICK="click",n.HOVER="hover",n.MOUSEDOWN="mousedown",n.NONE="none",n})(),LC=(()=>{class n{}return n.Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.TopStart="top-start",n.BottomStart="bottom-start",n.LeftStart="left-start",n.RightStart="right-start",n.TopEnd="top-end",n.BottomEnd="bottom-end",n.LeftEnd="left-end",n.RightEnd="right-end",n.Auto="auto",n.AutoStart="auto-start",n.AutoEnd="auto-end",n})(),BC=(()=>{class n{constructor(t,i,r,s){this.elemRef=t,this.renderer=i,this.viewRef=r,this.CDR=s,this.popperOptions={disableAnimation:!1,disableDefaultStyling:!1,placement:LC.Auto,boundariesElement:"",trigger:gr.HOVER,positionFixed:!1,appendToBody:!1,popperModifiers:{}},this.isMouseOver=!1,this.onHidden=new Ve,this.displayType="none",this.opacity=0,this.ariaHidden="true",this.arrowColor=null,this.state=!0}onMouseOver(){this.isMouseOver=!0}showOnLeave(){this.isMouseOver=!1,(this.popperOptions.trigger===gr.HOVER||this.popperOptions.hideOnMouseLeave)&&this.hide()}onDocumentResize(){this.update()}ngOnDestroy(){this.clean(),this.popperOptions.appendTo&&this.elemRef&&this.elemRef.nativeElement&&this.elemRef.nativeElement.parentNode&&(this.viewRef.detach(),this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement))}clean(){this.toggleVisibility(!1),this.popperInstance&&(this.popperInstance.disableEventListeners(),this.popperInstance.destroy())}show(){if(!this.referenceObject)return;const t=this.popperOptions.appendTo&&document.querySelector(this.popperOptions.appendTo);t&&this.elemRef.nativeElement.parentNode!==t&&(this.elemRef.nativeElement.parentNode&&this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement),t.appendChild(this.elemRef.nativeElement));let i={placement:this.popperOptions.placement,positionFixed:this.popperOptions.positionFixed,modifiers:{arrow:{element:this.popperViewRef.nativeElement.querySelector(".ngxp__arrow")}}};this.onUpdate&&(i.onUpdate=this.onUpdate);let r=this.popperOptions.boundariesElement&&document.querySelector(this.popperOptions.boundariesElement);i.modifiers&&r&&(i.modifiers.preventOverflow={boundariesElement:r}),i.modifiers&&void 0!==this.popperOptions.preventOverflow&&(i.modifiers.preventOverflow=i.modifiers.preventOverflow||{},i.modifiers.preventOverflow.enabled=this.popperOptions.preventOverflow,i.modifiers.preventOverflow.enabled||(i.modifiers.hide={enabled:!1})),this.determineArrowColor(),i.modifiers=Object.assign(i.modifiers,this.popperOptions.popperModifiers),this.popperInstance=new NB(this.referenceObject,this.popperViewRef.nativeElement,i),this.popperInstance.enableEventListeners(),this.scheduleUpdate(),this.toggleVisibility(!0),this.globalResize=this.renderer.listen("document","resize",this.onDocumentResize.bind(this))}determineArrowColor(){["background-color","backgroundColor"].some(t=>!(!this.popperOptions.styles||!this.popperOptions.styles.hasOwnProperty(t)||(this.arrowColor=this.popperOptions.styles[t],0)))}update(){this.popperInstance&&this.popperInstance.update()}scheduleUpdate(){this.popperInstance&&this.popperInstance.scheduleUpdate()}hide(){this.popperInstance&&this.popperInstance.destroy(),this.toggleVisibility(!1),this.onHidden.emit()}toggleVisibility(t){t?(this.opacity=1,this.displayType="block",this.ariaHidden="false",this.state=!0):(this.opacity=0,this.displayType="none",this.ariaHidden="true",this.state=!1),this.CDR.destroyed||this.CDR.detectChanges()}extractAppliedClassListExpr(t){if(!t||"string"!=typeof t)return null;try{return t.replace(/ /,"").split(",").reduce((i,r)=>(i[r]=!0,i),{})}catch(i){return null}}clearGlobalResize(){this.globalResize&&"function"==typeof this.globalResize&&this.globalResize()}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(ho),v(It),v(Oi))},n.\u0275cmp=jn({type:n,selectors:[["popper-content"]],viewQuery:function(t,i){if(1&t&&ir(LB,5),2&t){let r;ei(r=ti())&&(i.popperViewRef=r.first)}},hostBindings:function(t,i){1&t&&Le("mouseover",function(){return i.onMouseOver()})("mouseleave",function(){return i.showOnLeave()})},ngContentSelectors:NC,decls:5,vars:20,consts:[[3,"ngStyle","ngClass"],["popperViewRef",""],["class","ngxp__inner",3,"innerHTML",4,"ngIf"],["class","ngxp__inner",4,"ngIf"],[1,"ngxp__arrow",3,"ngClass"],[1,"ngxp__inner",3,"innerHTML"],[1,"ngxp__inner"]],template:function(t,i){1&t&&(Jr(NC),ce(0,"div",0,1),oe(2,BB,2,1,"div",2),oe(3,VB,2,0,"div",3),An(4,"div",4),fe()),2&t&&(ts("display",i.displayType)("opacity",i.opacity),Zn("ngxp__container",!i.popperOptions.disableDefaultStyling)("ngxp__animation",!i.popperOptions.disableAnimation),F("ngStyle",i.popperOptions.styles)("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyClass)),We("aria-hidden",i.ariaHidden)("aria-describedby",i.popperOptions.ariaDescribe||null)("role",i.popperOptions.ariaRole),B(2),F("ngIf",i.text),B(1),F("ngIf",!i.text),B(1),ts("border-color",i.arrowColor),Zn("__force-arrow",i.arrowColor),F("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyArrowClass)))},directives:[ah,Eo,Do],styles:[".ngxp__container{display:none;position:absolute;border-radius:3px;border:1px solid grey;box-shadow:0 0 2px rgba(0,0,0,.5);padding:10px}.ngxp__container.ngxp__animation{-webkit-animation:150ms ease-out ngxp-fadeIn;animation:150ms ease-out ngxp-fadeIn}.ngxp__container>.ngxp__arrow{border-color:grey;width:0;height:0;border-style:solid;position:absolute;margin:5px}.ngxp__container[x-placement^=bottom],.ngxp__container[x-placement^=left],.ngxp__container[x-placement^=right],.ngxp__container[x-placement^=top]{display:block}.ngxp__container[x-placement^=top]{margin-bottom:5px}.ngxp__container[x-placement^=top]>.ngxp__arrow{border-width:5px 5px 0;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=top]>.ngxp__arrow.__force-arrow{border-right-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=bottom]{margin-top:5px}.ngxp__container[x-placement^=bottom]>.ngxp__arrow{border-width:0 5px 5px;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=bottom]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-right-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=right]{margin-left:5px}.ngxp__container[x-placement^=right]>.ngxp__arrow{border-width:5px 5px 5px 0;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=right]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=left]{margin-right:5px}.ngxp__container[x-placement^=left]>.ngxp__arrow{border-width:5px 0 5px 5px;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=left]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-right-color:transparent!important}@-webkit-keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}@keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}"],encapsulation:2,changeDetection:0}),n})();class et{constructor(e,t,i,r,s,o={}){this.viewContainerRef=e,this.changeDetectorRef=t,this.resolver=i,this.elementRef=r,this.renderer=s,this.popperDefaults=o,this.popperContentClass=BC,this.shown=!1,this.subscriptions=[],this.eventListeners=[],this.globalEventListeners=[],this.hideTimeout=0,this.timeoutAfterShow=0,this.popperOnShown=new Ve,this.popperOnHidden=new Ve,this.popperOnUpdate=new Ve,et.baseOptions=Object.assign({},et.baseOptions,this.popperDefaults)}hideOnClickOutsideHandler(e){this.disabled||!this.hideOnClickOutside||e.srcElement&&e.srcElement===this.popperContent.elemRef.nativeElement||this.popperContent.elemRef.nativeElement.contains(e.srcElement)||this.scheduledHide(e,this.hideTimeout)}hideOnScrollHandler(e){this.disabled||!this.hideOnScroll||this.scheduledHide(e,this.hideTimeout)}applyTriggerListeners(){switch(this.showTrigger){case gr.CLICK:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"click",this.toggle.bind(this)));break;case gr.MOUSEDOWN:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mousedown",this.toggle.bind(this)));break;case gr.HOVER:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseenter",this.scheduledShow.bind(this,this.showDelay))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout)))}this.showTrigger!==gr.HOVER&&this.hideOnMouseLeave&&(this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout))))}static assignDefined(e,...t){for(const i of t)for(const r of Object.keys(i)){const s=i[r];void 0!==s&&(e[r]=s)}return e}ngOnInit(){if(this.hideOnClickOutside=void 0===this.hideOnClickOutside?this.closeOnClickOutside:this.hideOnClickOutside,"string"==typeof this.content){const t=this.content;this.popperContent=this.constructContent(),this.popperContent.text=t}else this.popperContent=this.content;const e=this.popperContent;e.referenceObject=this.getRefElement(),this.setContentProperties(e),this.setDefaults(),this.applyTriggerListeners(),this.showOnStart&&this.scheduledShow()}ngOnChanges(e){e.popperDisabled&&e.popperDisabled.currentValue&&this.hide(),e.content&&!e.content.firstChange&&"string"==typeof e.content.currentValue&&(this.popperContent.text=e.content.currentValue),e.applyClass&&!e.applyClass.firstChange&&"string"==typeof e.applyClass.currentValue&&(this.popperContent.popperOptions.applyClass=e.applyClass.currentValue),e.applyArrowClass&&!e.applyArrowClass.firstChange&&"string"==typeof e.applyArrowClass.currentValue&&(this.popperContent.popperOptions.applyArrowClass=e.applyArrowClass.currentValue)}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe&&e.unsubscribe()),this.subscriptions.length=0,this.clearEventListeners(),this.clearGlobalEventListeners(),clearTimeout(this.scheduledShowTimeout),clearTimeout(this.scheduledHideTimeout),this.popperContent&&this.popperContent.clean()}toggle(){this.disabled||(this.shown?this.scheduledHide(null,this.hideTimeout):this.scheduledShow())}show(){if(this.shown)return void this.overrideHideTimeout();this.shown=!0;const e=this.popperContent,t=this.getRefElement();e.referenceObject!==t&&(e.referenceObject=t),this.setContentProperties(e),e.show(),this.popperOnShown.emit(this),this.timeoutAfterShow>0&&this.scheduledHide(null,this.timeoutAfterShow),this.globalEventListeners.push(this.renderer.listen("document","touchend",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen("document","click",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen(this.getScrollParent(this.getRefElement()),"scroll",this.hideOnScrollHandler.bind(this)))}hide(){if(!this.disabled){if(!this.shown)return void this.overrideShowTimeout();this.shown=!1,this.popperContentRef?this.popperContentRef.instance.hide():this.popperContent.hide(),this.popperOnHidden.emit(this),this.clearGlobalEventListeners()}}scheduledShow(e=this.showDelay){this.disabled||(this.overrideHideTimeout(),this.scheduledShowTimeout=setTimeout(()=>{this.show(),this.applyChanges()},e))}scheduledHide(e=null,t=this.hideTimeout){this.disabled||(this.overrideShowTimeout(),this.scheduledHideTimeout=setTimeout(()=>{const i=e?e.toElement:null,r=!!this.popperContent.popperViewRef&&this.popperContent.popperViewRef.nativeElement;!r||r===i||r.contains(i)||this.content.isMouseOver||(this.hide(),this.applyChanges())},t))}getRefElement(){return this.targetElement||this.viewContainerRef.element.nativeElement}applyChanges(){this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()}setDefaults(){this.showDelay=void 0===this.showDelay?et.baseOptions.showDelay:this.showDelay,this.showTrigger=void 0===this.showTrigger?et.baseOptions.trigger:this.showTrigger,this.hideOnClickOutside=void 0===this.hideOnClickOutside?et.baseOptions.hideOnClickOutside:this.hideOnClickOutside,this.hideOnScroll=void 0===this.hideOnScroll?et.baseOptions.hideOnScroll:this.hideOnScroll,this.hideOnMouseLeave=void 0===this.hideOnMouseLeave?et.baseOptions.hideOnMouseLeave:this.hideOnMouseLeave,this.ariaRole=void 0===this.ariaRole?et.baseOptions.ariaRole:this.ariaRole,this.ariaDescribe=void 0===this.ariaDescribe?et.baseOptions.ariaDescribe:this.ariaDescribe,this.styles=void 0===this.styles?Object.assign({},et.baseOptions.styles):this.styles}clearEventListeners(){this.eventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.eventListeners.length=0}clearGlobalEventListeners(){this.globalEventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.globalEventListeners.length=0}overrideShowTimeout(){this.scheduledShowTimeout&&(clearTimeout(this.scheduledShowTimeout),this.scheduledHideTimeout=0)}overrideHideTimeout(){this.scheduledHideTimeout&&(clearTimeout(this.scheduledHideTimeout),this.scheduledHideTimeout=0)}constructContent(){const e=this.resolver.resolveComponentFactory(this.popperContentClass);return this.popperContentRef=this.viewContainerRef.createComponent(e),this.popperContentRef.instance}setContentProperties(e){e.popperOptions=et.assignDefined(e.popperOptions,et.baseOptions,{showDelay:this.showDelay,disableAnimation:this.disableAnimation,disableDefaultStyling:this.disableStyle,placement:this.placement,boundariesElement:this.boundariesElement,trigger:this.showTrigger,positionFixed:this.positionFixed,popperModifiers:this.popperModifiers,ariaDescribe:this.ariaDescribe,ariaRole:this.ariaRole,applyClass:this.applyClass,applyArrowClass:this.applyArrowClass,hideOnMouseLeave:this.hideOnMouseLeave,styles:this.styles,appendTo:this.appendTo,preventOverflow:this.preventOverflow}),e.onUpdate=this.onPopperUpdate.bind(this),this.subscriptions.push(e.onHidden.subscribe(this.hide.bind(this)))}getScrollParent(e){const i=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return e?"visible"!==i&&"hidden"!==i&&e.scrollHeight>=e.clientHeight?e:this.getScrollParent(e.parentNode)||document:null}onPopperUpdate(e){this.popperOnUpdate.emit(e)}}et.\u0275fac=function(e){return new(e||et)(v(It),v(Oi),v(hi),v(Se),v(ho),v("popperDefaults"))},et.\u0275dir=ye({type:et,selectors:[["","popper",""]],inputs:{hideTimeout:["popperTimeout","hideTimeout"],timeoutAfterShow:["popperTimeoutAfterShow","timeoutAfterShow"],hideOnClickOutside:["popperHideOnClickOutside","hideOnClickOutside"],showDelay:["popperDelay","showDelay"],showTrigger:["popperTrigger","showTrigger"],hideOnScroll:["popperHideOnScroll","hideOnScroll"],hideOnMouseLeave:["popperHideOnMouseLeave","hideOnMouseLeave"],ariaRole:["popperAriaRole","ariaRole"],ariaDescribe:["popperAriaDescribeBy","ariaDescribe"],styles:["popperStyles","styles"],content:["popper","content"],disabled:["popperDisabled","disabled"],placement:["popperPlacement","placement"],targetElement:["popperTarget","targetElement"],boundariesElement:["popperBoundaries","boundariesElement"],showOnStart:["popperShowOnStart","showOnStart"],closeOnClickOutside:["popperCloseOnClickOutside","closeOnClickOutside"],positionFixed:["popperPositionFixed","positionFixed"],popperModifiers:"popperModifiers",disableStyle:["popperDisableStyle","disableStyle"],disableAnimation:["popperDisableAnimation","disableAnimation"],applyClass:["popperApplyClass","applyClass"],applyArrowClass:["popperApplyArrowClass","applyArrowClass"],appendTo:["popperAppendTo","appendTo"],preventOverflow:["popperPreventOverflow","preventOverflow"]},outputs:{popperOnShown:"popperOnShown",popperOnHidden:"popperOnHidden",popperOnUpdate:"popperOnUpdate"},exportAs:["popper"],features:[Yi]}),et.baseOptions={showDelay:0,placement:LC.Auto,hideOnClickOutside:!0,hideOnMouseLeave:!1,hideOnScroll:!1,showTrigger:gr.HOVER,appendTo:void 0,ariaRole:"popper",ariaDescribe:"",styles:{}};let HB=(()=>{class n{ngDoBootstrap(){}static forRoot(t={}){return{ngModule:n,providers:[{provide:"popperDefaults",useValue:t}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({imports:[[hl]]}),n})();function jB(n,e){1&n&&Qn(0)}function zB(n,e){if(1&n){const t=Qt();St(0),ce(1,"button",7),Le("click",function(r){return Ne(t),$().emitClick(r)}),oe(2,jB,1,0,"ng-container",8),fe(),Mt()}if(2&n){const t=$(),i=st(12),r=st(10);B(1),F("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" raised button"),B(1),F("ngTemplateOutlet",r)}}function $B(n,e){1&n&&Qn(0)}function UB(n,e){if(1&n){const t=Qt();St(0),ce(1,"button",9),Le("click",function(r){return Ne(t),$().emitClick(r)}),oe(2,$B,1,0,"ng-container",8),fe(),Mt()}if(2&n){const t=$(),i=st(12),r=st(10);B(1),F("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" stroked button"),B(1),F("ngTemplateOutlet",r)}}function WB(n,e){1&n&&Qn(0)}function GB(n,e){if(1&n){const t=Qt();St(0),ce(1,"button",10),Le("click",function(r){return Ne(t),$().emitClick(r)}),oe(2,WB,1,0,"ng-container",8),fe(),Mt()}if(2&n){const t=$(),i=st(12),r=st(10);B(1),F("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" flat button"),B(1),F("ngTemplateOutlet",r)}}function qB(n,e){1&n&&Qn(0)}function YB(n,e){if(1&n){const t=Qt();St(0),ce(1,"button",11),Le("click",function(r){return Ne(t),$().emitClick(r)}),oe(2,qB,1,0,"ng-container",8),fe(),Mt()}if(2&n){const t=$(),i=st(12),r=st(10);B(1),F("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" icon button"),B(1),F("ngTemplateOutlet",r)}}function KB(n,e){1&n&&Qn(0)}function XB(n,e){if(1&n){const t=Qt();St(0),ce(1,"button",12),Le("click",function(r){return Ne(t),$().emitClick(r)}),oe(2,KB,1,0,"ng-container",8),fe(),Mt()}if(2&n){const t=$(),i=st(12),r=st(10);B(1),F("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" fab button"),B(1),F("ngTemplateOutlet",r)}}function QB(n,e){1&n&&Qn(0)}function ZB(n,e){if(1&n){const t=Qt();St(0),ce(1,"button",13),Le("click",function(r){return Ne(t),$().emitClick(r)}),oe(2,QB,1,0,"ng-container",8),fe(),Mt()}if(2&n){const t=$(),i=st(12),r=st(10);B(1),F("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" mini fab button"),B(1),F("ngTemplateOutlet",r)}}function JB(n,e){1&n&&Qn(0)}function eV(n,e){if(1&n){const t=Qt();St(0),ce(1,"button",14),Le("click",function(r){return Ne(t),$().emitClick(r)}),oe(2,JB,1,0,"ng-container",8),fe(),Mt()}if(2&n){const t=$(),i=st(12),r=st(10);B(1),F("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" unstyled button"),B(1),F("ngTemplateOutlet",r)}}function tV(n,e){1&n&&Qn(0)}function nV(n,e){if(1&n){const t=Qt();St(0),ce(1,"button",15),Le("click",function(r){return Ne(t),$().emitClick(r)}),oe(2,tV,1,0,"ng-container",8),fe(),Mt()}if(2&n){const t=$(),i=st(12),r=st(10);B(1),F("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup))("popperAppendTo","body"),We("ref",t.buttonRef)("aria-label",t.label+" basic button"),B(1),F("ngTemplateOutlet",r)}}function iV(n,e){if(1&n&&(ce(0,"mat-icon",18),ns(1),fe()),2&n){const t=$(2);F("ngStyle",t.buttonIconStyle),B(1),tr(t.icon)}}function rV(n,e){if(1&n&&(ce(0,"div"),ns(1),fe()),2&n){const t=$(2);B(1),tr(t.label||"Button")}}function sV(n,e){if(1&n&&(oe(0,iV,2,2,"mat-icon",16),oe(1,rV,2,1,"div",17)),2&n){const t=$();F("ngIf",t.icon),B(1),F("ngIf",!t.icon)}}function oV(n,e){1&n&&An(0,"img",19),2&n&&F("lazyLoad",$().imgUrl)}function aV(n,e){if(1&n&&(ce(0,"div"),ns(1),fe()),2&n){const t=$();_t(t.popup.style),B(1),tr(t.popup.text)}}let VC=(()=>{class n{emitClick(t){this.onClick&&(t.stopPropagation(),this.onClick())}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=jn({type:n,selectors:[["drayman-button-internal"]],inputs:{onClick:"onClick",label:"label",view:"view",icon:"icon",tooltip:"tooltip",disabled:"disabled",imgUrl:"imgUrl",popup:"popup",buttonStyle:"buttonStyle",buttonIconStyle:"buttonIconStyle",buttonRef:"buttonRef"},decls:15,vars:10,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["button",""],["thumbnailContent",""],["style","width: 150px; z-index: 1001;",3,"lazyLoad",4,"ngIf"],[3,"style",4,"ngIf"],["type","button","mat-raised-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],[4,"ngTemplateOutlet"],["type","button","mat-stroked-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-flat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-icon-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-mini-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","popperAppendTo","click"],[3,"ngStyle",4,"ngIf"],[4,"ngIf"],[3,"ngStyle"],[2,"width","150px","z-index","1001",3,"lazyLoad"]],template:function(t,i){1&t&&(St(0,0),oe(1,zB,3,8,"ng-container",1),oe(2,UB,3,8,"ng-container",1),oe(3,GB,3,8,"ng-container",1),oe(4,YB,3,8,"ng-container",1),oe(5,XB,3,8,"ng-container",1),oe(6,ZB,3,8,"ng-container",1),oe(7,eV,3,8,"ng-container",1),oe(8,nV,3,9,"ng-container",2),Mt(),oe(9,sV,2,2,"ng-template",null,3,Py),ce(11,"popper-content",null,4),oe(13,oV,1,1,"img",5),oe(14,aV,2,3,"div",6),fe()),2&t&&(F("ngSwitch",i.view),B(1),F("ngSwitchCase","raised"),B(1),F("ngSwitchCase","stroked"),B(1),F("ngSwitchCase","flat"),B(1),F("ngSwitchCase","icon"),B(1),F("ngSwitchCase","fab"),B(1),F("ngSwitchCase","miniFab"),B(1),F("ngSwitchCase","unstyled"),B(6),F("ngIf",i.imgUrl),B(1),F("ngIf",i.popup))},directives:[Mo,oh,H1,cC,ah,et,zv,Hv,Do,mL,BC,QL],styles:[""]}),n})();"function"==typeof SuppressedError&&SuppressedError;class OV extends mC{loadImage({imagePath:e}){return function HC(n,e,t,i){return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function r(s){return s instanceof t?s:new t(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){const i=yield(yield fetch(e)).blob();if(i.size)return URL.createObjectURL(i)})}}let RV=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=Ob(VC,{injector:this.injector});customElements.define("drayman-button",t)}}return n.\u0275fac=function(t){return new(t||n)(w(mt))},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:[{provide:yf,useClass:OV},{provide:Ml,useClass:ww},{provide:kd,multi:!0,useFactory:e=>()=>{e.setDefaultFontSetClass("material-symbols-rounded")},deps:[zo]}],imports:[[mh,vw,j1,uC,gL,ZL,HB.forRoot({disableDefaultStyling:!0,applyArrowClass:"hidden",showDelay:500,trigger:"hover",hideOnClickOutside:!1,styles:{position:"relative",background:"#fff",padding:"5px 5px 0 5px","z-index":"1001","border-radius":"2px","box-shadow":"0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)"},placement:"right"})]]}),n})();function zC(n,e=Cl){const i=function kV(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-e.now():Math.abs(n);return r=>r.lift(new PV(i,e))}class PV{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new kf(e,this.delay,this.scheduler))}}class kf extends k{constructor(e,t,i){super(e),this.delay=t,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,i=t.queue,r=e.scheduler,s=e.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const o=Math.max(0,i[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(kf.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,i=new FV(t.now()+this.delay,e);this.queue.push(i),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(Lt.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(Lt.createComplete()),this.unsubscribe()}}class FV{constructor(e,t){this.time=e,this.notification=t}}const NV=["mat-menu-item",""];function LV(n,e){1&n&&(function gp(){W.lFrame.currentNamespace="svg"}(),ce(0,"svg",2),An(1,"polygon",3),fe())}const $C=["*"];function BV(n,e){if(1&n){const t=Qt();ce(0,"div",0),Le("keydown",function(r){return Ne(t),$()._handleKeydown(r)})("click",function(){return Ne(t),$().closed.emit("click")})("@transformMenu.start",function(r){return Ne(t),$()._onAnimationStart(r)})("@transformMenu.done",function(r){return Ne(t),$()._onAnimationDone(r)}),ce(1,"div",1),er(2),fe()()}if(2&n){const t=$();F("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),We("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const lc={transformMenu:xh("transformMenu",[xl("void",Zt({opacity:0,transform:"scale(0.8)"})),Fo("void => enter",Po("120ms cubic-bezier(0, 0, 0.2, 1)",Zt({opacity:1,transform:"scale(1)"}))),Fo("* => void",Po("100ms 25ms linear",Zt({opacity:0})))]),fadeInItems:xh("fadeInItems",[xl("showing",Zt({opacity:1})),Fo("void => *",[Zt({opacity:0}),Po("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},UC=new O("MatMenuContent");let VV=(()=>{class n{constructor(t,i,r,s,o,a,l){this._template=t,this._componentFactoryResolver=i,this._appRef=r,this._injector=s,this._viewContainerRef=o,this._document=a,this._changeDetectorRef=l,this._attached=new y}attach(t={}){var i;this._portal||(this._portal=new Mh(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new _b(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const r=this._template.elementRef.nativeElement;r.parentNode.insertBefore(this._outlet.outletElement,r),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return n.\u0275fac=function(t){return new(t||n)(v(kn),v(hi),v(yo),v(mt),v(It),v(te),v(Oi))},n.\u0275dir=ye({type:n}),n})(),HV=(()=>{class n extends VV{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Gc(n)))(i||n)}}(),n.\u0275dir=ye({type:n,selectors:[["ng-template","matMenuContent",""]],features:[_d([{provide:UC,useExisting:n}]),Kn]}),n})();const Pf=new O("MAT_MENU_PANEL"),jV=Vw(Lw(class{}));let cc=(()=>{class n extends jV{constructor(t,i,r,s,o){var a;super(),this._elementRef=t,this._focusMonitor=r,this._parentMenu=s,this._changeDetectorRef=o,this.role="menuitem",this._hovered=new y,this._focused=new y,this._highlighted=!1,this._triggersSubmenu=!1,null===(a=null==s?void 0:s.addItem)||void 0===a||a.call(s,this)}focus(t,i){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t;const i=this._elementRef.nativeElement.cloneNode(!0),r=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s<r.length;s++)r[s].remove();return(null===(t=i.textContent)||void 0===t?void 0:t.trim())||""}_setHighlighted(t){var i;this._highlighted=t,null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(te),v(ec),v(Pf,8),v(Oi))},n.\u0275cmp=jn({type:n,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,i){1&t&&Le("click",function(s){return i._checkDisabled(s)})("mouseenter",function(){return i._handleMouseEnter()}),2&t&&(We("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled.toString())("disabled",i.disabled||null),Zn("mat-menu-item",!0)("mat-menu-item-highlighted",i._highlighted)("mat-menu-item-submenu-trigger",i._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[Kn],attrs:NV,ngContentSelectors:$C,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(t,i){1&t&&(Jr(),er(0),An(1,"div",0),oe(2,LV,2,0,"svg",1)),2&t&&(B(1),F("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),B(1),F("ngIf",i._triggersSubmenu))},directives:[df,Do],encapsulation:2,changeDetection:0}),n})();const WC=new O("mat-menu-default-options",{providedIn:"root",factory:function zV(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let $V=0,Yo=(()=>{class n{constructor(t,i,r){this._elementRef=t,this._ngZone=i,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new cs,this._tabSubscription=R.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new y,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Ve,this.close=this.closed,this.panelId="mat-menu-panel-"+$V++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=ds(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=ds(t)}set panelClass(t){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new p1(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(rc(this._directDescendantItems),ko(t=>zi(...t.map(i=>i._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(rc(this._directDescendantItems),ko(i=>zi(...i.map(r=>r._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const i=t.keyCode,r=this._keyManager;switch(i){case 27:rf(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(t)}t.stopPropagation()}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(gi(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const i=this._keyManager;if(i.setFocusOrigin(t).setFirstItemActive(),!i.activeItem&&this._directDescendantItems.length){let r=this._directDescendantItems.first._getHostElement().parentElement;for(;r;){if("menu"===r.getAttribute("role")){r.focus();break}r=r.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const i=Math.min(this._baseElevation+t,24),r=`${this._elevationPrefix}${i}`,s=Object.keys(this._classList).find(o=>o.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(t=this.xPosition,i=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===t,r["mat-menu-after"]="after"===t,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(rc(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(ue),v(WC))},n.\u0275dir=ye({type:n,contentQueries:function(t,i,r){if(1&t&&(Ga(r,UC,5),Ga(r,cc,5),Ga(r,cc,4)),2&t){let s;ei(s=ti())&&(i.lazyContent=s.first),ei(s=ti())&&(i._allItems=s),ei(s=ti())&&(i.items=s)}},viewQuery:function(t,i){if(1&t&&ir(kn,5),2&t){let r;ei(r=ti())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),UV=(()=>{class n extends Yo{constructor(t,i,r){super(t,i,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(ue),v(WC))},n.\u0275cmp=jn({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,i){2&t&&We("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[_d([{provide:Pf,useExisting:n}]),Kn],ngContentSelectors:$C,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,i){1&t&&(Jr(),oe(0,BV,3,6,"ng-template"))},directives:[Eo],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[lc.transformMenu,lc.fadeInItems]},changeDetection:0}),n})();const GC=new O("mat-menu-scroll-strategy"),GV={provide:GC,deps:[ps],useFactory:function WV(n){return()=>n.scrollStrategies.reposition()}},YC=Ao({passive:!0});let qV=(()=>{class n{constructor(t,i,r,s,o,a,l,c){this._overlay=t,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=R.EMPTY,this._hoverSubscription=R.EMPTY,this._menuCloseSubscription=R.EMPTY,this._handleTouchStart=u=>{lf(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Ve,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ve,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=o instanceof Yo?o:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,YC),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,YC),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),i=t.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Yo&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,i){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,i):this._element.nativeElement.focus(i)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===t||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Yo?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(mi(r=>"void"===r.toState),gi(1),Nt(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,i=this.menu.parentMenu;for(;i;)t++,i=i.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Cb({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(i=>{this.menu.setPositionClasses("start"===i.connectionPair.overlayX?"after":"before","top"===i.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[i,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[s,o]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,l]=[s,o],[c,u]=[i,r],d=0;this.triggersSubmenu()?(u=i="before"===this.menu.xPosition?"start":"end",r=c="end"===i?"start":"end",d="bottom"===s?8:-8):this.menu.overlapTrigger||(a="top"===s?"bottom":"top",l="top"===o?"bottom":"top"),t.withPositions([{originX:i,originY:a,overlayX:c,overlayY:s,offsetY:d},{originX:r,originY:a,overlayX:u,overlayY:s,offsetY:d},{originX:i,originY:l,overlayX:c,overlayY:o,offsetY:-d},{originX:r,originY:l,overlayX:u,overlayY:o,offsetY:-d}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return zi(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Ft(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(mi(o=>o!==this._menuItemInstance),mi(()=>this._menuOpen)):Ft(),i)}_handleMousedown(t){af(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const i=t.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(mi(t=>t===this._menuItemInstance&&!t.disabled),zC(0,yh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Yo&&this.menu._isAnimating?this.menu._animationDone.pipe(gi(1),zC(0,yh),Nt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Mh(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(t){return new(t||n)(v(ps),v(Se),v(It),v(GC),v(Pf,8),v(cc,10),v(Dl,8),v(ec))},n.\u0275dir=ye({type:n,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(t,i){1&t&&Le("click",function(s){return i._handleClick(s)})("mousedown",function(s){return i._handleMousedown(s)})("keydown",function(s){return i._handleKeydown(s)}),2&t&&We("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),KC=(()=>{class n extends qV{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Gc(n)))(i||n)}}(),n.\u0275dir=ye({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Kn]}),n})(),YV=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:[GV],imports:[[hl,ri,$w,Ib],Sl,ri]}),n})(),KV=(()=>{class n{constructor(t,i){this.el=t,this.renderer=i,this.resize=new Ve,this.onMouseMove=this.onMouseMove.bind(this),this.onMouseUp=this.onMouseUp.bind(this)}onMouseDown(t){!this.enableResize||(this.startX=t.clientX,this.startWidth=this.el.nativeElement.parentElement.offsetWidth,window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp))}onMouseMove(t){this.resize.emit(this.startWidth+(t.clientX-this.startX))}onMouseUp(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp)}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(ho))},n.\u0275dir=ye({type:n,selectors:[["","appResizable",""]],hostBindings:function(t,i){1&t&&Le("mousedown",function(s){return i.onMouseDown(s)})},inputs:{enableResize:"enableResize"},outputs:{resize:"resize"}}),n})();const XV=["container"];function QV(n,e){if(1&n&&(St(0),An(1,"div",12),Mt()),2&n){const t=$().$implicit,i=$().$implicit,r=$();B(1),_t(i.hovered&&t.hoverStyle?t.hoverStyle:t.style),F("matTooltip",t.tooltip)("innerHTML",r.getSanitizedString(t.value),Eu),We("title",t.value)}}function ZV(n,e){if(1&n&&(St(0),ce(1,"div"),An(2,"drayman-button-internal",13),fe(),Mt()),2&n){const t=$().$implicit,i=$().$implicit,r=$();B(1),_t(i.hovered&&t.hoverStyle?t.hoverStyle:t.style),B(1),F("buttonRef",t.value.ref)("label",t.value.label)("onClick",r.emitContentButtonClick.bind(r,i,t.value))("view",t.value.view)("icon",t.value.icon)("tooltip",t.value.tooltip)("disabled",t.value.disabled)("imgUrl",t.value.imgUrl)("popup",t.value.popup)("buttonStyle",t.value.buttonStyle)("options",t.value)}}function JV(n,e){if(1&n&&(St(0)(1,10),oe(2,QV,2,5,"ng-container",11),oe(3,ZV,3,13,"ng-container",11),Mt()()),2&n){const t=e.$implicit;B(1),F("ngSwitch",t.type),B(1),F("ngSwitchCase","text"),B(1),F("ngSwitchCase","button")}}function eH(n,e){if(1&n){const t=Qt();ce(0,"div",14),Le("resize",function(r){Ne(t);const s=$().index;return $().onResize(r,s)}),An(1,"div",15),fe()}if(2&n){const t=$().$implicit;F("ngClass",0===t.row?"resizable-gutter":null)("enableResize",0===t.row)}}function tH(n,e){if(1&n){const t=Qt();ce(0,"div",7),Le("mouseenter",function(){return Ne(t).$implicit.hovered=!0})("contextmenu",function(r){const o=Ne(t).$implicit;return $().oncontextmenu(r,o)})("click",function(r){const o=Ne(t).$implicit;return $().emitCellClick(r,o)})("mousedown",function(r){const o=Ne(t).$implicit;return $().onMouseDown(r,o)})("mouseup",function(r){const o=Ne(t).$implicit;return $().onMouseUp(r,o)})("mouseover",function(r){const o=Ne(t).$implicit;return $().onMouseOver(r,o)})("mouseleave",function(r){const o=Ne(t).$implicit;return $().onMouseLeave(r,o),o.hovered=!1}),ce(1,"div"),oe(2,JV,4,3,"ng-container",8),fe(),oe(3,eH,2,2,"div",9),fe()}if(2&n){const t=e.$implicit,i=$();_t(i.getCellStyle(t)),We("ref",t.ref),B(1),_t(t.contentStyle),B(1),F("ngForOf",t.content)("ngForTrackBy",i.cellItemTrackByFn.bind(i,t)),B(1),F("ngIf",i.columnWidths)}}function nH(n,e){if(1&n){const t=Qt();ce(0,"button",17),Le("click",function(r){const o=Ne(t).$implicit;return $(2).emitContextMenuItemClick(r,o)}),ns(1),fe()}if(2&n){const t=e.$implicit;B(1),tr(t.label)}}function iH(n,e){1&n&&oe(0,nH,2,1,"button",16),2&n&&F("ngForOf",e.items)}let rH=(()=>{class n{constructor(t,i){this.elementRef=t,this.sanitizer=i,this.selectedCells=[],this.scrollTo=({row:r})=>{this.cellHeight&&this.scrollable.scrollTo({top:r*this.cellHeight})},this.grid=[],this.scrollDirection="vertical",this.scrollbarWidth="narrow",this.resized$=new y,this.selectedCellsChanged$=new y,this._selectedCells=[],this.pendingSelectedCells=[],this.hoveredRow=-1,this.menuTopLeftPosition={x:"0",y:"0"}}onWheel(t){"horizontal"===this.scrollDirection&&(t.preventDefault(),this.containerRef.nativeElement.scrollLeft+=t.deltaY)}get scrollbarWidthClass(){return"narrow"===this.scrollbarWidth?null:`scrollbar-${this.scrollbarWidth}`}cellTrackByFn(t,i){return i.row+"-"+i.col}cellItemTrackByFn(t,i,r){return t.row+"-"+t.col+"-"+i}getCellStyle(t){var i,r,s;const o=t.rowSpan?t.row+t.rowSpan:t.row+1,a=t.colSpan?t.col+t.colSpan:t.col+1;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.cellStyle),this.hoveredRow===t.row?this.rowHoverStyle:{}),[...this.pendingSelectedCells,...this._selectedCells].find(l=>l.selectionGroup===t.selectionGroup)?Object.assign({},null===(i=this.selectionMode)||void 0===i?void 0:i.similarGroupCellStyle):{}),[...this.pendingSelectedCells,...this._selectedCells].length&&![...this.pendingSelectedCells,...this._selectedCells].find(l=>l.selectionGroup===t.selectionGroup)?Object.assign({},null===(r=this.selectionMode)||void 0===r?void 0:r.otherGroupCellStyle):{}),[...this.pendingSelectedCells,...this._selectedCells].find(l=>l.row===t.row&&l.col===t.col)?Object.assign(Object.assign({},null===(s=this.selectionMode)||void 0===s?void 0:s.cellStyle),t.selectionCellStyle):{}),{gridArea:`${t.row+1}/${t.col+1}/${o+1}/${a+1}`})}ngOnDestroy(){}getSanitizedString(t){return this.sanitizer.bypassSecurityTrustHtml(t)}oncontextmenu(t,i){var r;t.ctrlKey?(t.preventDefault(),this.emitCellClick(t,i,!0)):(null===(r=i.contextMenuItems)||void 0===r?void 0:r.length)&&(t.preventDefault(),this.menuTopLeftPosition.x=t.clientX+"px",this.menuTopLeftPosition.y=t.clientY+"px",this.matMenuTrigger.menuData={items:i.contextMenuItems.map(s=>({label:s,cell:i}))},this.matMenuTrigger.openMenu())}emitContextMenuItemClick(t,i){var r;null===(r=this.onContextMenuItemClick)||void 0===r||r.call(this,i)}emitCellClick(t,i,r=!1){var s,o,a;t.ctrlKey&&(t.preventDefault(),r=!0),(null===(s=this.selectionMode)||void 0===s?void 0:s.enabled)?this.pendingSelectedCells.length||(r?(this._selectedCells=[i],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!0})):this._selectedCells.find(c=>c.row===i.row&&c.col===i.col)?(this._selectedCells=this._selectedCells.filter(c=>!(c.row===i.row&&c.col===i.col)),this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1})):!i.disableSelect&&(!this._selectedCells.length||(null===(o=this._selectedCells[0])||void 0===o?void 0:o.selectionGroup)===i.selectionGroup)&&(this._selectedCells.push(i),this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1}))):null===(a=this.onCellClick)||void 0===a||a.call(this,{cell:i})}onMouseLeave(t,i){this.hoveredRow=-1}onMouseDown(t,i){var r,s;((null===(r=this.selectionMode)||void 0===r?void 0:r.enabled)&&!this._selectedCells.length||(null===(s=this._selectedCells[0])||void 0===s?void 0:s.selectionGroup)===i.selectionGroup)&&(this.ctrl=t.ctrlKey,this.startSelectionCell=i)}onMouseUp(t,i){this.startSelectionCell=null,this.pendingSelectedCells.length&&(this._selectedCells=[...this.ctrl?[]:this._selectedCells,...this.pendingSelectedCells],this.pendingSelectedCells=[],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!!this.ctrl}))}onMouseOver(t,i){if(this.hoveredRow=i.row,this.startSelectionCell){const r=Math.min(i.col,this.startSelectionCell.col),s=Math.max(i.col,this.startSelectionCell.col),o=Math.min(i.row,this.startSelectionCell.row),a=Math.max(i.row,this.startSelectionCell.row);this.pendingSelectedCells=this.grid.filter(l=>{var c;return!l.disableSelect&&l.col>=r&&l.col<=s&&l.row>=o&&l.row<=a&&l.selectionGroup===(null===(c=this.startSelectionCell)||void 0===c?void 0:c.selectionGroup)})}}onGridMouseLeave(t){this.startSelectionCell=null,this.pendingSelectedCells.length&&(this._selectedCells=[...this._selectedCells,...this.pendingSelectedCells],this.pendingSelectedCells=[],this.selectedCellsChanged$.next({selectedCells:this._selectedCells,clearPrevious:!1}))}emitContentButtonClick(t,i){var r;null===(r=this.onContentButtonClick)||void 0===r||r.call(this,{cell:t,button:i})}onResized(t){t.oldHeight&&t.oldWidth&&this.resized$.next()}ngAfterViewInit(){zi(this.scrollable.elementScrolled(),this.resized$).pipe(Xl(50)).subscribe(t=>{var i;null===(i=this.onScroll)||void 0===i||i.call(this,{currentCol:this.getCurrentColumn(this.scrollable.measureScrollOffset("left")),visibleColCount:this.getVisibleColumnCount(this.scrollable.getElementRef().nativeElement.clientWidth,this.getCurrentColumn(this.scrollable.measureScrollOffset("left")),this.scrollable.measureScrollOffset("left")),currentRow:this.cellHeight?Math.floor(this.scrollable.measureScrollOffset("top")/this.cellHeight):0,visibleRowCount:this.cellHeight?Math.ceil(this.scrollable.getElementRef().nativeElement.clientHeight/this.cellHeight):this.rowCount})}),this.selectedCellsChanged$.pipe(Xl(250)).subscribe(t=>{var i;null===(i=this.onSelectedCellsChange)||void 0===i||i.call(this,Object.assign(Object.assign({},t),{selectedCells:t.selectedCells.filter((r,s)=>t.selectedCells.findIndex(o=>o.row===r.row&&o.col===r.col)===s)}))})}getCurrentColumn(t){if(this.columnWidths&&this.columnWidths.length>0){let i=0;for(let r=0;r<this.columnWidths.length;r++)if(i+=this.columnWidths[r],t<i)return r;return this.columnWidths.length-1}return this.cellWidth?Math.floor(t/this.cellWidth):0}getVisibleColumnCount(t,i,r){if(this.columnWidths&&this.columnWidths.length>0){let s=0;for(let c=0;c<i;c++)s+=this.columnWidths[c];let o=Math.max(0,s+this.columnWidths[i]-r),a=t-o,l=o>0?1:0;for(let c=i+1;c<this.columnWidths.length&&a>0;c++)a-=this.columnWidths[c],l++;return l}return this.cellWidth?Math.ceil(t/this.cellWidth):this.columnCount}onResize(t,i){var r;this.columnWidths&&(this.columnWidths=[...this.columnWidths.slice(0,i),t,...this.columnWidths.slice(i+1)],null===(r=this.onColumnWidthChange)||void 0===r||r.call(this,{columnWidths:this.columnWidths,changedWidthIndex:i}))}ngOnInit(){}ngOnChanges(t){this.selectedCells&&(this._selectedCells=[...this.selectedCells])}get gridStyle(){const t=(this.cellHeight||0)*(this.rowCount||0);return{gridTemplateColumns:this.columnWidths?this.columnWidths.map(r=>`${r}px`).join(" "):`repeat(${this.columnCount}, ${this.cellWidth?`${this.cellWidth}px`:"auto"})`,gridTemplateRows:`repeat(${this.rowCount}, ${this.cellHeight?`${this.cellHeight}px`:"auto"})`,width:this.columnWidths?`${this.columnWidths.reduce((r,s)=>r+s,0)}px`:this.cellWidth?this.columnCount*this.cellWidth+"px":"100%",height:t?`${t}px`:"100%",display:"grid",userSelect:"none"}}}return n.\u0275fac=function(t){return new(t||n)(v(Se),v(yl))},n.\u0275cmp=jn({type:n,selectors:[["drayman-grid-internal"]],viewQuery:function(t,i){if(1&t&&(ir(KC,7),ir(XV,5),ir(pb,5)),2&t){let r;ei(r=ti())&&(i.matMenuTrigger=r.first),ei(r=ti())&&(i.containerRef=r.first),ei(r=ti())&&(i.scrollable=r.first)}},hostBindings:function(t,i){1&t&&Le("wheel",function(s){return i.onWheel(s)})},inputs:{selectionMode:"selectionMode",selectedCells:"selectedCells",rowHoverStyle:"rowHoverStyle",onSelectedCellsChange:"onSelectedCellsChange",scrollTo:"scrollTo",onLoad:"onLoad",onContentButtonClick:"onContentButtonClick",onCellClick:"onCellClick",onContextMenuItemClick:"onContextMenuItemClick",onColumnWidthChange:"onColumnWidthChange",grid:"grid",scrollDirection:"scrollDirection",gridRef:"gridRef",onScroll:"onScroll",cellHeight:"cellHeight",cellWidth:"cellWidth",columnWidths:"columnWidths",columnCount:"columnCount",rowCount:"rowCount",scrollbarWidth:"scrollbarWidth"},features:[Yi],decls:8,vars:11,consts:[["cdkScrollable","",1,"wrapper",3,"ngClass","resized"],["container",""],[3,"mouseleave"],["tabindex","-1",3,"style","mouseenter","contextmenu","click","mousedown","mouseup","mouseover","mouseleave",4,"ngFor","ngForOf","ngForTrackBy"],[2,"visibility","hidden","position","fixed",3,"matMenuTriggerFor"],["rightMenu","matMenu"],["matMenuContent",""],["tabindex","-1",3,"mouseenter","contextmenu","click","mousedown","mouseup","mouseover","mouseleave"],[4,"ngFor","ngForOf","ngForTrackBy"],["appResizable","",3,"ngClass","enableResize","resize",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"matTooltip","innerHTML"],[3,"buttonRef","label","onClick","view","icon","tooltip","disabled","imgUrl","popup","buttonStyle","options"],["appResizable","",3,"ngClass","enableResize","resize"],["resizable-gutter-inside",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"]],template:function(t,i){if(1&t&&(ce(0,"div",0,1),Le("resized",function(s){return i.onResized(s)}),ce(2,"div",2),Le("mouseleave",function(s){return i.onGridMouseLeave(s)}),oe(3,tH,4,8,"div",3),fe()(),An(4,"div",4),ce(5,"mat-menu",null,5),oe(7,iH,1,1,"ng-template",6),fe()),2&t){const r=st(6);F("ngClass",i.scrollbarWidthClass),B(2),_t(i.gridStyle),We("ref",i.gridRef),B(1),F("ngForOf",i.grid)("ngForTrackBy",i.cellTrackByFn),B(1),ts("left",i.menuTopLeftPosition.x)("top",i.menuTopLeftPosition.y),F("matMenuTriggerFor",r)}},directives:[pb,Eo,kN,Rv,Mo,oh,cC,VC,Do,KV,KC,UV,HV,cc],styles:['.wrapper[_ngcontent-%COMP%]{width:100%;height:100%;overflow:auto}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.scrollbar-medium[_ngcontent-%COMP%]::-webkit-scrollbar{width:14px;height:14px}.scrollbar-wide[_ngcontent-%COMP%]::-webkit-scrollbar{width:16px;height:16px}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f0f0f000}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#88888840}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#888888}.wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:window-inactive{background:var(--component-A-color)}.resizable-gutter[_ngcontent-%COMP%]{width:10px;height:100%;position:absolute;right:0;top:0;bottom:0;cursor:col-resize;z-index:1;background-color:transparent}.resizable-gutter[_ngcontent-%COMP%]:before{content:"";display:block;background-color:#ccc;width:5px;height:100%;position:absolute;right:0;opacity:0;transition:opacity .3s ease}.resizable-gutter[_ngcontent-%COMP%]:hover:before{opacity:1}']}),n})(),sH=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=Ob(rH,{injector:this.injector});customElements.define("drayman-grid",t)}}return n.\u0275fac=function(t){return new(t||n)(w(mt))},n.\u0275mod=Ee({type:n}),n.\u0275inj=we({providers:[{provide:Ml,useClass:ww}],imports:[[mh,vw,Dh,PN,RV,YV,uC]]}),n})();(function vA(){av=!1})(),ek().bootstrapModule(sH).catch(n=>console.error(n))})()})();
|