From 328045911885060934bc87eb55151fb02d2b799d Mon Sep 17 00:00:00 2001 From: hwellmann Date: Sun, 11 Aug 2024 12:10:55 +0000 Subject: [PATCH] Release: "simplified letter-spacing" --- tunebook/index.html | 4 +-- .../{main-ZVVB2TTV.js => main-DW4D6GED.js} | 36 +++++++++---------- tunebook/ngsw.json | 12 +++---- ...tyles-NNCQOTZE.css => styles-LIZGWOEL.css} | 2 +- 4 files changed, 27 insertions(+), 27 deletions(-) rename tunebook/{main-ZVVB2TTV.js => main-DW4D6GED.js} (98%) rename tunebook/{styles-NNCQOTZE.css => styles-LIZGWOEL.css} (97%) diff --git a/tunebook/index.html b/tunebook/index.html index ee67631..7e08295 100644 --- a/tunebook/index.html +++ b/tunebook/index.html @@ -24,11 +24,11 @@ } })(); - + - + \ No newline at end of file diff --git a/tunebook/main-ZVVB2TTV.js b/tunebook/main-DW4D6GED.js similarity index 98% rename from tunebook/main-ZVVB2TTV.js rename to tunebook/main-DW4D6GED.js index d5d6d7a..8522d2c 100644 --- a/tunebook/main-ZVVB2TTV.js +++ b/tunebook/main-DW4D6GED.js @@ -1,4 +1,4 @@ -var j9=Object.create;var vb=Object.defineProperty,H9=Object.defineProperties,z9=Object.getOwnPropertyDescriptor,U9=Object.getOwnPropertyDescriptors,q9=Object.getOwnPropertyNames,tp=Object.getOwnPropertySymbols,$9=Object.getPrototypeOf,bb=Object.prototype.hasOwnProperty,wE=Object.prototype.propertyIsEnumerable;var yE=(t,e,n)=>e in t?vb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,X=(t,e)=>{for(var n in e||={})bb.call(e,n)&&yE(t,n,e[n]);if(tp)for(var n of tp(e))wE.call(e,n)&&yE(t,n,e[n]);return t},mt=(t,e)=>H9(t,U9(e));var CE=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,n)=>(typeof require<"u"?require:e)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var _b=(t,e)=>{var n={};for(var i in t)bb.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&tp)for(var i of tp(t))e.indexOf(i)<0&&wE.call(t,i)&&(n[i]=t[i]);return n};var j=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var W9=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of q9(e))!bb.call(t,r)&&r!==n&&vb(t,r,{get:()=>e[r],enumerable:!(i=z9(e,r))||i.enumerable});return t};var Pr=(t,e,n)=>(n=t!=null?j9($9(t)):{},W9(e||!t||!t.__esModule?vb(n,"default",{value:t,enumerable:!0}):n,t));var Re=(t,e,n)=>new Promise((i,r)=>{var o=c=>{try{a(n.next(c))}catch(l){r(l)}},s=c=>{try{a(n.throw(c))}catch(l){r(l)}},a=c=>c.done?i(c.value):Promise.resolve(c.value).then(o,s);a((n=n.apply(t,e)).next())});var kw=j(()=>{var MT;(function(t){(function(e){var n=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),i=r(t);typeof n.Reflect>"u"?n.Reflect=t:i=r(n.Reflect,i),e(i);function r(o,s){return function(a,c){typeof o[a]!="function"&&Object.defineProperty(o,a,{configurable:!0,writable:!0,value:c}),s&&s(a,c)}}})(function(e){var n=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",r=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",o=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",s=typeof Object.create=="function",a={__proto__:[]}instanceof Array,c=!s&&!a,l={create:s?function(){return V(Object.create(null))}:a?function(){return V({__proto__:null})}:function(){return V({})},has:c?function(k,N){return n.call(k,N)}:function(k,N){return N in k},get:c?function(k,N){return n.call(k,N)?k[N]:void 0}:function(k,N){return k[N]}},u=Object.getPrototypeOf(Function),d=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",h=!d&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Vn(),f=!d&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:xi(),p=!d&&typeof WeakMap=="function"?WeakMap:Le(),m=new p;function v(k,N,O,$){if(ye(O)){if(!Ce(k))throw new TypeError;if(!At(N))throw new TypeError;return Q(k,N)}else{if(!Ce(k))throw new TypeError;if(!Pe(N))throw new TypeError;if(!Pe($)&&!ye($)&&!Ae($))throw new TypeError;return Ae($)&&($=void 0),O=Mt(O),G(k,N,O,$)}}e("decorate",v);function b(k,N){function O($,de){if(!Pe($))throw new TypeError;if(!ye(de)&&!pt(de))throw new TypeError;w(k,N,$,de)}return O}e("metadata",b);function C(k,N,O,$){if(!Pe(O))throw new TypeError;return ye($)||($=Mt($)),w(k,N,O,$)}e("defineMetadata",C);function E(k,N,O){if(!Pe(N))throw new TypeError;return ye(O)||(O=Mt(O)),Y(k,N,O)}e("hasMetadata",E);function _(k,N,O){if(!Pe(N))throw new TypeError;return ye(O)||(O=Mt(O)),Z(k,N,O)}e("hasOwnMetadata",_);function y(k,N,O){if(!Pe(N))throw new TypeError;return ye(O)||(O=Mt(O)),ae(k,N,O)}e("getMetadata",y);function x(k,N,O){if(!Pe(N))throw new TypeError;return ye(O)||(O=Mt(O)),S(k,N,O)}e("getOwnMetadata",x);function F(k,N){if(!Pe(k))throw new TypeError;return ye(N)||(N=Mt(N)),M(k,N)}e("getMetadataKeys",F);function L(k,N){if(!Pe(k))throw new TypeError;return ye(N)||(N=Mt(N)),T(k,N)}e("getOwnMetadataKeys",L);function P(k,N,O){if(!Pe(N))throw new TypeError;ye(O)||(O=Mt(O));var $=W(N,O,!1);if(ye($)||!$.delete(k))return!1;if($.size>0)return!0;var de=m.get(N);return de.delete(O),de.size>0||m.delete(N),!0}e("deleteMetadata",P);function Q(k,N){for(var O=k.length-1;O>=0;--O){var $=k[O],de=$(N);if(!ye(de)&&!Ae(de)){if(!At(de))throw new TypeError;N=de}}return N}function G(k,N,O,$){for(var de=k.length-1;de>=0;--de){var qe=k[de],ue=qe(N,O,$);if(!ye(ue)&&!Ae(ue)){if(!Pe(ue))throw new TypeError;$=ue}}return $}function W(k,N,O){var $=m.get(k);if(ye($)){if(!O)return;$=new h,m.set(k,$)}var de=$.get(N);if(ye(de)){if(!O)return;de=new h,$.set(N,de)}return de}function Y(k,N,O){var $=Z(k,N,O);if($)return!0;var de=Ji(N);return Ae(de)?!1:Y(k,de,O)}function Z(k,N,O){var $=W(N,O,!1);return ye($)?!1:it($.has(k))}function ae(k,N,O){var $=Z(k,N,O);if($)return S(k,N,O);var de=Ji(N);if(!Ae(de))return ae(k,de,O)}function S(k,N,O){var $=W(N,O,!1);if(!ye($))return $.get(k)}function w(k,N,O,$){var de=W(O,$,!0);de.set(k,N)}function M(k,N){var O=T(k,N),$=Ji(k);if($===null)return O;var de=M($,N);if(de.length<=0)return O;if(O.length<=0)return de;for(var qe=new f,ue=[],he=0,fe=O;he=0&&he=this._keys.length?(this._index=-1,this._keys=N,this._values=N):this._index++,{value:fe,done:!1}}return{value:void 0,done:!0}},ue.prototype.throw=function(he){throw this._index>=0&&(this._index=-1,this._keys=N,this._values=N),he},ue.prototype.return=function(he){return this._index>=0&&(this._index=-1,this._keys=N,this._values=N),{value:he,done:!0}},ue}();return function(){function ue(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return Object.defineProperty(ue.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ue.prototype.has=function(he){return this._find(he,!1)>=0},ue.prototype.get=function(he){var fe=this._find(he,!1);return fe>=0?this._values[fe]:void 0},ue.prototype.set=function(he,fe){var Ke=this._find(he,!0);return this._values[Ke]=fe,this},ue.prototype.delete=function(he){var fe=this._find(he,!1);if(fe>=0){for(var Ke=this._keys.length,je=fe+1;je{Object.defineProperty(n0,"__esModule",{value:!0});n0.getFunctionName=function(t){if(t.name!=="")return t.name;var e=t.toString().substring(9);return e=e.substring(0,e.indexOf("(")),e&&e.trim()?e:"anonymous"};n0.isArray=function(t){return typeof t=="object"&&t instanceof Array}});var Tw=j(o0=>{Object.defineProperty(o0,"__esModule",{value:!0});var pq=bc(),TT=new Set;TT.add("isMatch");var Mw=new Map,mq=function(t){if(t instanceof pq.LogFilter){var e=new t;TT.forEach(function(n){if(!e[n]||!(e[n]instanceof Function))throw new Error("Invalid filter: missing/invalid method: "+n)})}};o0.addFilter=function(t,e){return mq(t),Mw.has(e)||Mw.set(e,t),t};o0.getFilter=function(t){return Mw.get(t)}});var Aw=j(s0=>{Object.defineProperty(s0,"__esModule",{value:!0});var gq;(function(t){t.ALLOW="ALLOW",t.NEUTRAL="NEUTRAL",t.DENY="DENY"})(gq=s0.LogFilterAction||(s0.LogFilterAction={}))});var AT=j(Rw=>{Object.defineProperty(Rw,"__esModule",{value:!0});var vq=Tw(),a0=Aw(),bq=function(){function t(e,n){this._config=n,this._appender=new e(n.config),this._appender.setLayout(n.layout),this._isPassThrough=!n||!n.filters||n.filters.length===0,this._isPassThrough?this._filters=[]:this._filters=n.filters.map(function(i){return{filter:i.filter instanceof Function?new i.filter(i.config):new(vq.getFilter(i.filter))(i.config),config:i.config,onMatch:i.onMatch,onMismatch:i.onMismatch}})}return Object.defineProperty(t.prototype,"appender",{get:function(){return this._appender},enumerable:!0,configurable:!0}),t.prototype.append=function(e){this.isMatch(e)&&this._appender.append(e)},t.prototype.isMatch=function(e){return this._isPassThrough||this._isMatch(e)},t.prototype._isMatch=function(e){for(var n,i=this._filters.length,r=0;r{Object.defineProperty(c0,"__esModule",{value:!0});var _q;(function(t){t[t.OFF=0]="OFF",t[t.FATAL=100]="FATAL",t[t.ERROR=200]="ERROR",t[t.WARN=300]="WARN",t[t.INFO=400]="INFO",t[t.DEBUG=500]="DEBUG",t[t.TRACE=600]="TRACE",t[t.ALL=2147483647]="ALL"})(_q=c0.LogLevel||(c0.LogLevel={}))});var OT=j(Dn=>{Object.defineProperty(Dn,"__esModule",{value:!0});var yq=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,wq=/[^-+\dA-Z]/g;Dn.padLeft=function(t,e,n){n===void 0&&(n=" ");for(var i=String(t);i.length0?"-":"+")+Dn.padLeft(Math.floor(Math.abs(n)/60)*100+Math.abs(n)%60,4,"0")}};function xq(t){if(Ow[t]instanceof Array)return Ow[t];for(var e=[],n=/(.)\1+|(.)/,i=t,r,o;r=i.match(n);)o=r[0],e.push(Cq[o]||o),i=i.substring(o.length);return Ow[t]=e,e}Dn.formatDate=function(t,e){t instanceof Date||(t=new Date(t)),e=String(e||RT.DEFAULT);var n=e.slice(0,4)==="UTC:";return n&&(e=e.slice(4)),xq(e).map(function(i){return i instanceof Function?i(t,n):i}).join("")}});var FT=j((Mbe,NT)=>{NT.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}});var PT=j((Tbe,Nw)=>{typeof Object.create=="function"?Nw.exports=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Nw.exports=function(e,n){e.super_=n;var i=function(){};i.prototype=n.prototype,e.prototype=new i,e.prototype.constructor=e}});var jT=j(Ht=>{var Dq=/%[sdj%]/g;Ht.format=function(t){if(!g0(t)){for(var e=[],n=0;n=r)return a;switch(a){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch{return"[Circular]"}default:return a}}),s=i[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),jw(e)?n.showHidden=e:e&&Ht._extend(n,e),Is(n.showHidden)&&(n.showHidden=!1),Is(n.depth)&&(n.depth=2),Is(n.colors)&&(n.colors=!1),Is(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Eq),p0(n,t,n.depth)}Ht.inspect=Ca;Ca.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Ca.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Eq(t,e){var n=Ca.styles[e];return n?"\x1B["+Ca.colors[n][0]+"m"+t+"\x1B["+Ca.colors[n][1]+"m":t}function Sq(t,e){return t}function Iq(t){var e={};return t.forEach(function(n,i){e[n]=!0}),e}function p0(t,e,n){if(t.customInspect&&e&&f0(e.inspect)&&e.inspect!==Ht.inspect&&!(e.constructor&&e.constructor.prototype===e)){var i=e.inspect(n,t);return g0(i)||(i=p0(t,i,n)),i}var r=kq(t,e);if(r)return r;var o=Object.keys(e),s=Iq(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),h0(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Pw(e);if(o.length===0){if(f0(e)){var a=e.name?": "+e.name:"";return t.stylize("[Function"+a+"]","special")}if(u0(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Bw(e))return t.stylize(Date.prototype.toString.call(e),"date");if(h0(e))return Pw(e)}var c="",l=!1,u=["{","}"];if(LT(e)&&(l=!0,u=["[","]"]),f0(e)){var d=e.name?": "+e.name:"";c=" [Function"+d+"]"}if(u0(e)&&(c=" "+RegExp.prototype.toString.call(e)),Bw(e)&&(c=" "+Date.prototype.toUTCString.call(e)),h0(e)&&(c=" "+Pw(e)),o.length===0&&(!l||e.length==0))return u[0]+c+u[1];if(n<0)return u0(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var h;return l?h=Mq(t,e,n,s,o):h=o.map(function(f){return Vw(t,e,n,s,f,l)}),t.seen.pop(),Tq(h,c,u)}function kq(t,e){if(Is(e))return t.stylize("undefined","undefined");if(g0(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(VT(e))return t.stylize(""+e,"number");if(jw(e))return t.stylize(""+e,"boolean");if(m0(e))return t.stylize("null","null")}function Pw(t){return"["+Error.prototype.toString.call(t)+"]"}function Mq(t,e,n,i,r){for(var o=[],s=0,a=e.length;se in t?vb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,X=(t,e)=>{for(var n in e||={})bb.call(e,n)&&yE(t,n,e[n]);if(tp)for(var n of tp(e))wE.call(e,n)&&yE(t,n,e[n]);return t},mt=(t,e)=>H9(t,U9(e));var CE=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,n)=>(typeof require<"u"?require:e)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var _b=(t,e)=>{var n={};for(var i in t)bb.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&tp)for(var i of tp(t))e.indexOf(i)<0&&wE.call(t,i)&&(n[i]=t[i]);return n};var j=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var W9=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of q9(e))!bb.call(t,r)&&r!==n&&vb(t,r,{get:()=>e[r],enumerable:!(i=z9(e,r))||i.enumerable});return t};var Pr=(t,e,n)=>(n=t!=null?j9($9(t)):{},W9(e||!t||!t.__esModule?vb(n,"default",{value:t,enumerable:!0}):n,t));var Re=(t,e,n)=>new Promise((i,r)=>{var o=c=>{try{a(n.next(c))}catch(l){r(l)}},s=c=>{try{a(n.throw(c))}catch(l){r(l)}},a=c=>c.done?i(c.value):Promise.resolve(c.value).then(o,s);a((n=n.apply(t,e)).next())});var kw=j(()=>{var MT;(function(t){(function(e){var n=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),i=r(t);typeof n.Reflect>"u"?n.Reflect=t:i=r(n.Reflect,i),e(i);function r(o,s){return function(a,c){typeof o[a]!="function"&&Object.defineProperty(o,a,{configurable:!0,writable:!0,value:c}),s&&s(a,c)}}})(function(e){var n=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",r=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",o=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",s=typeof Object.create=="function",a={__proto__:[]}instanceof Array,c=!s&&!a,l={create:s?function(){return V(Object.create(null))}:a?function(){return V({__proto__:null})}:function(){return V({})},has:c?function(k,N){return n.call(k,N)}:function(k,N){return N in k},get:c?function(k,N){return n.call(k,N)?k[N]:void 0}:function(k,N){return k[N]}},u=Object.getPrototypeOf(Function),d=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",h=!d&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Vn(),f=!d&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:xi(),p=!d&&typeof WeakMap=="function"?WeakMap:Le(),m=new p;function v(k,N,O,$){if(ye(O)){if(!Ce(k))throw new TypeError;if(!At(N))throw new TypeError;return Q(k,N)}else{if(!Ce(k))throw new TypeError;if(!Pe(N))throw new TypeError;if(!Pe($)&&!ye($)&&!Ae($))throw new TypeError;return Ae($)&&($=void 0),O=Tt(O),G(k,N,O,$)}}e("decorate",v);function b(k,N){function O($,de){if(!Pe($))throw new TypeError;if(!ye(de)&&!pt(de))throw new TypeError;w(k,N,$,de)}return O}e("metadata",b);function C(k,N,O,$){if(!Pe(O))throw new TypeError;return ye($)||($=Tt($)),w(k,N,O,$)}e("defineMetadata",C);function E(k,N,O){if(!Pe(N))throw new TypeError;return ye(O)||(O=Tt(O)),Y(k,N,O)}e("hasMetadata",E);function _(k,N,O){if(!Pe(N))throw new TypeError;return ye(O)||(O=Tt(O)),Z(k,N,O)}e("hasOwnMetadata",_);function y(k,N,O){if(!Pe(N))throw new TypeError;return ye(O)||(O=Tt(O)),ae(k,N,O)}e("getMetadata",y);function x(k,N,O){if(!Pe(N))throw new TypeError;return ye(O)||(O=Tt(O)),S(k,N,O)}e("getOwnMetadata",x);function F(k,N){if(!Pe(k))throw new TypeError;return ye(N)||(N=Tt(N)),M(k,N)}e("getMetadataKeys",F);function L(k,N){if(!Pe(k))throw new TypeError;return ye(N)||(N=Tt(N)),T(k,N)}e("getOwnMetadataKeys",L);function P(k,N,O){if(!Pe(N))throw new TypeError;ye(O)||(O=Tt(O));var $=W(N,O,!1);if(ye($)||!$.delete(k))return!1;if($.size>0)return!0;var de=m.get(N);return de.delete(O),de.size>0||m.delete(N),!0}e("deleteMetadata",P);function Q(k,N){for(var O=k.length-1;O>=0;--O){var $=k[O],de=$(N);if(!ye(de)&&!Ae(de)){if(!At(de))throw new TypeError;N=de}}return N}function G(k,N,O,$){for(var de=k.length-1;de>=0;--de){var qe=k[de],ue=qe(N,O,$);if(!ye(ue)&&!Ae(ue)){if(!Pe(ue))throw new TypeError;$=ue}}return $}function W(k,N,O){var $=m.get(k);if(ye($)){if(!O)return;$=new h,m.set(k,$)}var de=$.get(N);if(ye(de)){if(!O)return;de=new h,$.set(N,de)}return de}function Y(k,N,O){var $=Z(k,N,O);if($)return!0;var de=Ji(N);return Ae(de)?!1:Y(k,de,O)}function Z(k,N,O){var $=W(N,O,!1);return ye($)?!1:it($.has(k))}function ae(k,N,O){var $=Z(k,N,O);if($)return S(k,N,O);var de=Ji(N);if(!Ae(de))return ae(k,de,O)}function S(k,N,O){var $=W(N,O,!1);if(!ye($))return $.get(k)}function w(k,N,O,$){var de=W(O,$,!0);de.set(k,N)}function M(k,N){var O=T(k,N),$=Ji(k);if($===null)return O;var de=M($,N);if(de.length<=0)return O;if(O.length<=0)return de;for(var qe=new f,ue=[],he=0,fe=O;he=0&&he=this._keys.length?(this._index=-1,this._keys=N,this._values=N):this._index++,{value:fe,done:!1}}return{value:void 0,done:!0}},ue.prototype.throw=function(he){throw this._index>=0&&(this._index=-1,this._keys=N,this._values=N),he},ue.prototype.return=function(he){return this._index>=0&&(this._index=-1,this._keys=N,this._values=N),{value:he,done:!0}},ue}();return function(){function ue(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return Object.defineProperty(ue.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ue.prototype.has=function(he){return this._find(he,!1)>=0},ue.prototype.get=function(he){var fe=this._find(he,!1);return fe>=0?this._values[fe]:void 0},ue.prototype.set=function(he,fe){var Ke=this._find(he,!0);return this._values[Ke]=fe,this},ue.prototype.delete=function(he){var fe=this._find(he,!1);if(fe>=0){for(var Ke=this._keys.length,je=fe+1;je{Object.defineProperty(n0,"__esModule",{value:!0});n0.getFunctionName=function(t){if(t.name!=="")return t.name;var e=t.toString().substring(9);return e=e.substring(0,e.indexOf("(")),e&&e.trim()?e:"anonymous"};n0.isArray=function(t){return typeof t=="object"&&t instanceof Array}});var Tw=j(o0=>{Object.defineProperty(o0,"__esModule",{value:!0});var pq=bc(),TT=new Set;TT.add("isMatch");var Mw=new Map,mq=function(t){if(t instanceof pq.LogFilter){var e=new t;TT.forEach(function(n){if(!e[n]||!(e[n]instanceof Function))throw new Error("Invalid filter: missing/invalid method: "+n)})}};o0.addFilter=function(t,e){return mq(t),Mw.has(e)||Mw.set(e,t),t};o0.getFilter=function(t){return Mw.get(t)}});var Aw=j(s0=>{Object.defineProperty(s0,"__esModule",{value:!0});var gq;(function(t){t.ALLOW="ALLOW",t.NEUTRAL="NEUTRAL",t.DENY="DENY"})(gq=s0.LogFilterAction||(s0.LogFilterAction={}))});var AT=j(Rw=>{Object.defineProperty(Rw,"__esModule",{value:!0});var vq=Tw(),a0=Aw(),bq=function(){function t(e,n){this._config=n,this._appender=new e(n.config),this._appender.setLayout(n.layout),this._isPassThrough=!n||!n.filters||n.filters.length===0,this._isPassThrough?this._filters=[]:this._filters=n.filters.map(function(i){return{filter:i.filter instanceof Function?new i.filter(i.config):new(vq.getFilter(i.filter))(i.config),config:i.config,onMatch:i.onMatch,onMismatch:i.onMismatch}})}return Object.defineProperty(t.prototype,"appender",{get:function(){return this._appender},enumerable:!0,configurable:!0}),t.prototype.append=function(e){this.isMatch(e)&&this._appender.append(e)},t.prototype.isMatch=function(e){return this._isPassThrough||this._isMatch(e)},t.prototype._isMatch=function(e){for(var n,i=this._filters.length,r=0;r{Object.defineProperty(c0,"__esModule",{value:!0});var _q;(function(t){t[t.OFF=0]="OFF",t[t.FATAL=100]="FATAL",t[t.ERROR=200]="ERROR",t[t.WARN=300]="WARN",t[t.INFO=400]="INFO",t[t.DEBUG=500]="DEBUG",t[t.TRACE=600]="TRACE",t[t.ALL=2147483647]="ALL"})(_q=c0.LogLevel||(c0.LogLevel={}))});var OT=j(Dn=>{Object.defineProperty(Dn,"__esModule",{value:!0});var yq=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,wq=/[^-+\dA-Z]/g;Dn.padLeft=function(t,e,n){n===void 0&&(n=" ");for(var i=String(t);i.length0?"-":"+")+Dn.padLeft(Math.floor(Math.abs(n)/60)*100+Math.abs(n)%60,4,"0")}};function xq(t){if(Ow[t]instanceof Array)return Ow[t];for(var e=[],n=/(.)\1+|(.)/,i=t,r,o;r=i.match(n);)o=r[0],e.push(Cq[o]||o),i=i.substring(o.length);return Ow[t]=e,e}Dn.formatDate=function(t,e){t instanceof Date||(t=new Date(t)),e=String(e||RT.DEFAULT);var n=e.slice(0,4)==="UTC:";return n&&(e=e.slice(4)),xq(e).map(function(i){return i instanceof Function?i(t,n):i}).join("")}});var FT=j((Mbe,NT)=>{NT.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}});var PT=j((Tbe,Nw)=>{typeof Object.create=="function"?Nw.exports=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Nw.exports=function(e,n){e.super_=n;var i=function(){};i.prototype=n.prototype,e.prototype=new i,e.prototype.constructor=e}});var jT=j(Ht=>{var Dq=/%[sdj%]/g;Ht.format=function(t){if(!g0(t)){for(var e=[],n=0;n=r)return a;switch(a){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch{return"[Circular]"}default:return a}}),s=i[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),jw(e)?n.showHidden=e:e&&Ht._extend(n,e),Is(n.showHidden)&&(n.showHidden=!1),Is(n.depth)&&(n.depth=2),Is(n.colors)&&(n.colors=!1),Is(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Eq),p0(n,t,n.depth)}Ht.inspect=Ca;Ca.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Ca.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Eq(t,e){var n=Ca.styles[e];return n?"\x1B["+Ca.colors[n][0]+"m"+t+"\x1B["+Ca.colors[n][1]+"m":t}function Sq(t,e){return t}function Iq(t){var e={};return t.forEach(function(n,i){e[n]=!0}),e}function p0(t,e,n){if(t.customInspect&&e&&f0(e.inspect)&&e.inspect!==Ht.inspect&&!(e.constructor&&e.constructor.prototype===e)){var i=e.inspect(n,t);return g0(i)||(i=p0(t,i,n)),i}var r=kq(t,e);if(r)return r;var o=Object.keys(e),s=Iq(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),h0(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Pw(e);if(o.length===0){if(f0(e)){var a=e.name?": "+e.name:"";return t.stylize("[Function"+a+"]","special")}if(u0(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Bw(e))return t.stylize(Date.prototype.toString.call(e),"date");if(h0(e))return Pw(e)}var c="",l=!1,u=["{","}"];if(LT(e)&&(l=!0,u=["[","]"]),f0(e)){var d=e.name?": "+e.name:"";c=" [Function"+d+"]"}if(u0(e)&&(c=" "+RegExp.prototype.toString.call(e)),Bw(e)&&(c=" "+Date.prototype.toUTCString.call(e)),h0(e)&&(c=" "+Pw(e)),o.length===0&&(!l||e.length==0))return u[0]+c+u[1];if(n<0)return u0(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var h;return l?h=Mq(t,e,n,s,o):h=o.map(function(f){return Vw(t,e,n,s,f,l)}),t.seen.pop(),Tq(h,c,u)}function kq(t,e){if(Is(e))return t.stylize("undefined","undefined");if(g0(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(VT(e))return t.stylize(""+e,"number");if(jw(e))return t.stylize(""+e,"boolean");if(m0(e))return t.stylize("null","null")}function Pw(t){return"["+Error.prototype.toString.call(t)+"]"}function Mq(t,e,n,i,r){for(var o=[],s=0,a=e.length;s-1&&(o?a=a.split(` `).map(function(l){return" "+l}).join(` `).substr(2):a=` @@ -10,13 +10,13 @@ var j9=Object.create;var vb=Object.defineProperty,H9=Object.defineProperties,z9= `)+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function LT(t){return Array.isArray(t)}Ht.isArray=LT;function jw(t){return typeof t=="boolean"}Ht.isBoolean=jw;function m0(t){return t===null}Ht.isNull=m0;function Aq(t){return t==null}Ht.isNullOrUndefined=Aq;function VT(t){return typeof t=="number"}Ht.isNumber=VT;function g0(t){return typeof t=="string"}Ht.isString=g0;function Rq(t){return typeof t=="symbol"}Ht.isSymbol=Rq;function Is(t){return t===void 0}Ht.isUndefined=Is;function u0(t){return Ql(t)&&Hw(t)==="[object RegExp]"}Ht.isRegExp=u0;function Ql(t){return typeof t=="object"&&t!==null}Ht.isObject=Ql;function Bw(t){return Ql(t)&&Hw(t)==="[object Date]"}Ht.isDate=Bw;function h0(t){return Ql(t)&&(Hw(t)==="[object Error]"||t instanceof Error)}Ht.isError=h0;function f0(t){return typeof t=="function"}Ht.isFunction=f0;function Oq(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}Ht.isPrimitive=Oq;Ht.isBuffer=FT();function Hw(t){return Object.prototype.toString.call(t)}function Lw(t){return t<10?"0"+t.toString(10):t.toString(10)}var Nq=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Fq(){var t=new Date,e=[Lw(t.getHours()),Lw(t.getMinutes()),Lw(t.getSeconds())].join(":");return[t.getDate(),Nq[t.getMonth()],e].join(" ")}Ht.log=function(){console.log("%s - %s",Fq(),Ht.format.apply(Ht,arguments))};Ht.inherits=PT();Ht._extend=function(t,e){if(!e||!Ql(e))return t;for(var n=Object.keys(e),i=n.length;i--;)t[n[i]]=e[n[i]];return t};function BT(t,e){return Object.prototype.hasOwnProperty.call(t,e)}});var UT=j((Rbe,oh)=>{"use strict";var Pq=process.platform==="win32",Zr=jT();function v0(t,e){for(var n=[],i=0;i=0&&!t[i];i--);return n===0&&i===e?t:n>i?[]:t.slice(n,i+1)}var HT=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,Lq=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,fi={};function b0(t){var e=HT.exec(t),n=(e[1]||"")+(e[2]||""),i=e[3]||"",r=Lq.exec(i),o=r[1],s=r[2],a=r[3];return[n,o,s,a]}function zw(t){var e=HT.exec(t),n=e[1]||"",i=!!n&&n[1]!==":";return{device:n,isUnc:i,isAbsolute:i||!!e[2],tail:e[3]}}function zT(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}fi.resolve=function(){for(var t="",e="",n=!1,i=arguments.length-1;i>=-1;i--){var r;if(i>=0?r=arguments[i]:t?(r=process.env["="+t],(!r||r.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(r=t+"\\")):r=process.cwd(),Zr.isString(r)){if(!r)continue}else throw new TypeError("Arguments to path.resolve must be strings");var o=zw(r),s=o.device,a=o.isUnc,c=o.isAbsolute,l=o.tail;if(!(s&&t&&s.toLowerCase()!==t.toLowerCase())&&(t||(t=s),n||(e=l+"\\"+e,n=c),t&&n))break}return a&&(t=zT(t)),e=v0(e.split(/[\\\/]+/),!n).join("\\"),t+(n?"\\":"")+e||"."};fi.normalize=function(t){var e=zw(t),n=e.device,i=e.isUnc,r=e.isAbsolute,o=e.tail,s=/[\\\/]$/.test(o);return o=v0(o.split(/[\\\/]+/),!r).join("\\"),!o&&!r&&(o="."),o&&s&&(o+="\\"),i&&(n=zT(n)),n+(r?"\\":"")+o};fi.isAbsolute=function(t){return zw(t).isAbsolute};fi.join=function(){for(var t=[],e=0;e=-1&&!e;n--){var i=n>=0?arguments[n]:process.cwd();if(Zr.isString(i)){if(!i)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=i+"/"+t,e=i[0]==="/"}return t=v0(t.split("/"),!e).join("/"),(e?"/":"")+t||"."};yi.normalize=function(t){var e=yi.isAbsolute(t),n=t&&t[t.length-1]==="/";return t=v0(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&n&&(t+="/"),(e?"/":"")+t};yi.isAbsolute=function(t){return t.charAt(0)==="/"};yi.join=function(){for(var t="",e=0;e{Object.defineProperty(Ww,"__esModule",{value:!0});var Kl=nh(),Bq=r0(),qT=OT();function jq(t,e){return s$(i$(t),e)}Ww.format=jq;var qw=new Map,Uw={"c|logger":Hq,"d|date":zq,"ex|exception|throwable":Uq,"F|file":qq,"K|map|MAP":Gq,"L|line":$q,column:Wq,"m|msg|message":Yq,"M|method":Xq,marker:Qq,markerSimpleName:Kq,n:Zq,"p|level":Jq,"r|relative":e$,"sn|sequenceNumber":t$};function Hq(t){return t.logger}function zq(t,e){return qT.formatDate(t.date,qT.DateTimeFormat[e[0]]||e[0])}function Uq(t){var e="";if(t.error!=null)if(t.error.stack){var n=t.error.stack.split(/\n/g);e+=n.reduce(function(i,r){return i+(" "+r+` `)})}else t.error.message!=null&&t.error.message!==""&&(e+=" "+t.error.name+": "+t.error.message+` `);return e}function qq(t){return t.file||$w(t),t.file}function $q(t){return t.lineNumber||$w(t),""+t.lineNumber}function Wq(t){return t.column||$w(t),""+t.column}function Gq(t,e){var n=null;if(t.properties){n=[];for(var i in t.properties)e[0]?e[0]===i&&n.push(t.properties[i]):n.push("{"+i+","+t.properties[i]+"}");return"{"+n.join(",")+"}"}return n}function Yq(t){return t.message}function WT(t){if(t.hasParents()){var e=t.getParents().map(function(n){return WT(n)});return t.name+"[ "+e+" ]"}else return""+t.name}function Qq(t){return t.marker?WT(t.marker):""}function Kq(t){return t.marker?t.marker.name:""}function Xq(t){return Bq.getFunctionName(t.method)}function Zq(){return` -`}function Jq(t){switch(t.level){case Kl.LogLevel.FATAL:return"FATAL";case Kl.LogLevel.ERROR:return"ERROR";case Kl.LogLevel.WARN:return"WARN";case Kl.LogLevel.INFO:return"INFO";case Kl.LogLevel.DEBUG:return"DEBUG";case Kl.LogLevel.TRACE:default:return"TRACE"}}function e$(t){return""+t.relative}function t$(t){return""+t.sequence}function i$(t){return qw.has(t)?qw.get(t):n$(t)}function n$(t){var e=t.match(/(%\w+({[\w-]+}|)|.)/g).map(function(n){return r$(n)});return qw.set(t,e),e}function r$(t){var e=/%(\w+)(?:{([\w-]+)})*/g.exec(t);if(e==null)return t;if(e.length<3)return{formatter:$T(e[1]),params:[]};var n=$T(e[1]);if(!n)return null;var i=o$(e[2]);return{formatter:n,params:i}}function $T(t){var e;for(var n in Uw)if(Uw.hasOwnProperty(n)&&(e=new RegExp("^("+n+")$"),e.exec(t)))return Uw[n];return null}function o$(t){return t?t.split(","):[]}function s$(t,e){for(var n,i="",r=t.length,o=0;o{Object.defineProperty(Gw,"__esModule",{value:!0});var a$=GT(),c$=function(){function t(e){}return t.prototype.isActive=function(){return this.active===!0},t.prototype.append=function(e){},t.prototype.getLogLevel=function(){return this.logLevel},t.prototype.setLogLevel=function(e){this.logLevel=e},t.prototype.setLayout=function(e){this.layout=e},t.prototype.getLayout=function(){return this.layout},t.prototype.format=function(e){return a$.format(this.getLayout(),e)},t}();Gw.LogAppender=c$});var C0=j(Jr=>{Object.defineProperty(Jr,"__esModule",{value:!0});var l$=r0(),YT=AT(),d$=y0(),_c=new Set;_c.add("append");_c.add("isActive");_c.add("setLogLevel");_c.add("setLayout");_c.add("getLayout");_c.add("format");var sh=new Map,w0=new Map,u$=function(t){t instanceof d$.LogAppender&&_c.forEach(function(e){if(!t.prototype[e]||!(t.prototype[e]instanceof Function))throw new Error("Invalid appender: missing/invalid method: "+e)})};Jr.getAppenderName=function(t){return t.name||l$.getFunctionName(t)};Jr.addAppender=function(t,e){u$(t);var n=e||Jr.getAppenderName(t);return sh.has(n)||sh.set(n,t),t};Jr.registerAppender=function(t){var e=Jr.getAppenderName(t);return sh.has(e)&&Jr.addAppender(t),sh.set(e,t),t};Jr.getAppender=function(t){return sh.get(t)};Jr.getLoggerAppenderInstances=function(t){if(t&&t.length>0)return t.map(function(n){if(w0.has(n)){var i=w0.get(n);return new YT.AppenderWrapper(i.appender,i)}throw new Error("Invalid appender reference '"+n+"'")});var e=[];return w0.forEach(function(n){return e.push(new YT.AppenderWrapper(n.appender,n))}),e};Jr.setLoggerAppenderConfig=function(t,e){w0.set(t,e)}});var Qw=j(Yw=>{Object.defineProperty(Yw,"__esModule",{value:!0});var h$=C0();function f$(t){return function(e){return h$.addAppender(e,t),e}}Yw.Appender=f$});var Kw=j(x0=>{Object.defineProperty(x0,"__esModule",{value:!0});var St,QT=!0;x0.useVirtualConsole=function(t){QT=t};x0.getVirtualConsole=function(t){if(!QT)return console;var e=function(){function n(){this.isVirtual=!0,this.memory={}}return n.prototype.assert=function(i,r){for(var o=[],s=2;s{var p$=yc&&yc.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)r.hasOwnProperty(o)&&(i[o]=r[o])},t(e,n)};return function(e,n){t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),m$=yc&&yc.__decorate||function(t,e,n,i){var r=arguments.length,o=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};Object.defineProperty(yc,"__esModule",{value:!0});var Xl=nh(),g$=Qw(),ah=Kw(),v$=y0(),b$=function(t){p$(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.append=function(n){n.level<=this.getLogLevel()&&this._appendToConsole(n)},e.prototype._appendToConsole=function(n){var i=this.format(n);switch(n.level){case Xl.LogLevel.FATAL:case Xl.LogLevel.ERROR:{n.error?ah.getVirtualConsole().error(i,n.error):ah.getVirtualConsole().error(i);break}case Xl.LogLevel.WARN:{ah.getVirtualConsole().warn(i);break}case Xl.LogLevel.INFO:{ah.getVirtualConsole().info(i);break}case Xl.LogLevel.DEBUG:case Xl.LogLevel.TRACE:{ah.getVirtualConsole().debug(i);break}default:break}},e=m$([g$.Appender("Console")],e),e}(v$.LogAppender);yc.ConsoleAppender=b$});var Jw=j(Zw=>{Object.defineProperty(Zw,"__esModule",{value:!0});var _$=function(){function t(e){this._parents=new Set,this._name=e}return t.getMarker=function(e){return t._markers.hasOwnProperty(e)||(t._markers[e]=new t(e)),t._markers[e]},Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t.prototype.getParents=function(){var e=[];return this._parents.forEach(function(n){return e.push(n)}),e},t.prototype.hasParents=function(){return this._parents.size>0},t.prototype.remove=function(e){return this._parents.delete(e),this},t.prototype.setParents=function(){for(var e=[],n=0;n{Object.defineProperty(eC,"__esModule",{value:!0});var Zl=bc(),y$=Jw(),w$=function(){function t(e,n){this._appenders=n,this._logContext=e,this._logSequence=0,this._relative=new Date().getTime()}return t.prototype.log=function(e,n){for(var i=this,r=[],o=2;o{Object.defineProperty(ch,"__esModule",{value:!0});var C$=C0(),x$=D0();ch.MAIN_LOGGER="main";var tC=new Map;ch.addLogger=function(t,e){tC.set(t,e)};ch.getLogger=function(t,e){if(tC.has(t))return tC.get(t);var n=C$.getLoggerAppenderInstances(e.appenders).map(function(i){return i.appender.setLogLevel(e.level),i.appender.setLayout(e.layout),i});return new x$.Logger(t,n)}});var iA=j(Jl=>{var lh=Jl&&Jl.__assign||function(){return lh=Object.assign||function(t){for(var e,n=1,i=arguments.length;n{Object.defineProperty(sC,"__esModule",{value:!0});var M$=Tw();function T$(t){return function(e){return M$.addFilter(e,t),e}}sC.Filter=T$});var rA=j(I0=>{Object.defineProperty(I0,"__esModule",{value:!0});var A$=bc();kw();var nA=Symbol("logMarker");function R$(t){return function(e,n){Reflect.defineMetadata(nA,t,e,n)}}I0.LogMarker=R$;function O$(t,e){for(var n=[],i=2;i{Object.defineProperty(aC,"__esModule",{value:!0});var N$=function(){function t(e){this.configuration=e}return t}();aC.LogFilter=N$});var oA=j(wc=>{var F$=wc&&wc.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)r.hasOwnProperty(o)&&(i[o]=r[o])},t(e,n)};return function(e,n){t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),P$=wc&&wc.__decorate||function(t,e,n,i){var r=arguments.length,o=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};Object.defineProperty(wc,"__esModule",{value:!0});var L$=S0(),V$=k0(),B$=function(t){F$(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.isMatch=function(n){return n.marker?n.marker.name===this.configuration.marker||this._isParentMarkerMatch(n.marker):!1},e.prototype._isParentMarkerMatch=function(n){var i=this;return n.hasParents()?n.getParents().every(function(r){return r.name===i.configuration.marker||i._isParentMarkerMatch(r)}):!1},e=P$([L$.Filter("Marker")],e),e}(V$.LogFilter);wc.MarkerFilter=B$});var sA=j(Cc=>{var j$=Cc&&Cc.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)r.hasOwnProperty(o)&&(i[o]=r[o])},t(e,n)};return function(e,n){t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),H$=Cc&&Cc.__decorate||function(t,e,n,i){var r=arguments.length,o=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};Object.defineProperty(Cc,"__esModule",{value:!0});var z$=S0(),U$=k0(),q$=function(t){j$(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.isMatch=function(n){return n.level<=this.configuration.level},e=H$([z$.Filter("Threshold")],e),e}(U$.LogFilter);Cc.ThresholdFilter=q$});var bc=j(Li=>{function $$(t){for(var e in t)Li.hasOwnProperty(e)||(Li[e]=t[e])}Object.defineProperty(Li,"__esModule",{value:!0});kw();$$(iA());var W$=D0();Li.Logger=W$.Logger;var G$=nh();Li.LogLevel=G$.LogLevel;var Y$=y0();Li.LogAppender=Y$.LogAppender;var Q$=Xw();Li.ConsoleAppender=Q$.ConsoleAppender;var K$=Jw();Li.Marker=K$.Marker;var X$=Qw();Li.Appender=X$.Appender;var Z$=S0();Li.Filter=Z$.Filter;var aA=rA();Li.Log=aA.Log;Li.LogMarker=aA.LogMarker;var J$=Aw();Li.LogFilterAction=J$.LogFilterAction;var eW=k0();Li.LogFilter=eW.LogFilter;var tW=oA();Li.MarkerFilter=tW.MarkerFilter;var iW=sA();Li.ThresholdFilter=iW.ThresholdFilter});var C4=j((ike,w4)=>{var Hte="6.4.1";w4.exports=Hte});var bv=j((nke,x4)=>{var zte=function(t,e){var n=this;if(e||(e={}),n.qpm=e.qpm?parseInt(e.qpm,10):null,!n.qpm){var i=t.metaText?t.metaText.tempo:null;n.qpm=t.getBpm(i)}n.extraMeasuresAtBeginning=e.extraMeasuresAtBeginning?parseInt(e.extraMeasuresAtBeginning,10):0,n.beatCallback=e.beatCallback,n.eventCallback=e.eventCallback,n.lineEndCallback=e.lineEndCallback,n.lineEndAnticipation=e.lineEndAnticipation?parseInt(e.lineEndAnticipation,10):0,n.beatSubdivisions=e.beatSubdivisions?parseInt(e.beatSubdivisions,10):1,n.joggerTimer=null,n.replaceTarget=function(o){n.noteTimings=o.setTiming(n.qpm,n.extraMeasuresAtBeginning),o.noteTimings.length===0&&(n.noteTimings=o.setTiming(0,0)),n.lineEndCallback&&(n.lineEndTimings=Ute(o.noteTimings,n.lineEndAnticipation)),n.startTime=null,n.currentBeat=0,n.currentEvent=0,n.currentLine=0,n.currentTime=0,n.isPaused=!1,n.isRunning=!1,n.pausedPercent=null,n.justUnpaused=!1,n.newSeekPercent=0,n.lastTimestamp=0,n.noteTimings.length!==0&&(n.millisecondsPerBeat=1e3/(n.qpm/60)/n.beatSubdivisions,n.lastMoment=n.noteTimings[n.noteTimings.length-1].milliseconds,n.totalBeats=Math.round(n.lastMoment/n.millisecondsPerBeat))},n.replaceTarget(t),n.doTiming=function(o){if(n.lastTimestamp!==o&&(n.lastTimestamp=o,n.startTime||(n.startTime=o),!n.isPaused&&n.isRunning)){for(n.currentTime=o-n.startTime,n.currentTime+=16;n.noteTimings.length>n.currentEvent&&n.noteTimings[n.currentEvent].millisecondsn.currentLine&&n.lineEndTimings[n.currentLine].milliseconds=n.lastMoment)if(n.eventCallback){var u=n.eventCallback(null);n.shouldStop(u).then(function(d){d&&n.stop()})}else n.stop()}},n.shouldStop=function(o){return new Promise(function(s){if(!o)return s(!0);if(o==="continue")return s(!1);o.then&&o.then(function(a){s(a!=="continue")})})},n.doBeatCallback=function(o){if(n.beatCallback){for(var s=n.currentEvent;s=0&&n.noteTimings[s].left===null;)s--;c=n.noteTimings[s]}var l={},u={};if(c){l.top=c.top,l.height=c.height;var d=Math.max(0,o-n.startTime-c.milliseconds),h=a-c.milliseconds,f=c.endX-c.left,p=h?d*f/h:0;l.left=c.left+p,n.currentEvent===0&&c.milliseconds>o-n.startTime&&(l.left=void 0),u={timestamp:o,startTime:n.startTime,ev:c,endMs:a,offMs:d,offPx:p,gapMs:h,gapPx:f}}else u={timestamp:o,startTime:n.startTime};var m=n.startTime;if(n.beatCallback(n.currentBeat/n.beatSubdivisions,n.totalBeats/n.beatSubdivisions,n.lastMoment,l,u),m!==n.startTime)return o-n.startTime;n.currentBeat++}return null};var r=60;n.animationJogger=function(){n.isRunning&&(n.doTiming(performance.now()),n.joggerTimer=setTimeout(n.animationJogger,r))},n.start=function(o,s){if(n.isRunning=!0,n.isPaused&&(n.isPaused=!1,o===void 0&&(n.justUnpaused=!0)),o)n.setProgress(o,s);else if(o===0)n.reset();else if(n.pausedPercent!==null){var a=performance.now();n.currentTime=n.lastMoment*n.pausedPercent,n.startTime=a-n.currentTime,n.pausedPercent=null,n.reportNext=!0}requestAnimationFrame(n.doTiming),n.joggerTimer=setTimeout(n.animationJogger,r)},n.pause=function(){n.isPaused=!0;var o=performance.now();n.pausedPercent=(o-n.startTime)/n.lastMoment,n.isRunning=!1,n.joggerTimer&&(clearTimeout(n.joggerTimer),n.joggerTimer=null)},n.currentMillisecond=function(){return n.currentTime},n.reset=function(){n.currentBeat=0,n.currentEvent=0,n.currentLine=0,n.startTime=null,n.pausedPercent=null},n.stop=function(){n.pause(),n.reset()},n.setProgress=function(o,s){var a;switch(s){case"seconds":n.currentTime=o*1e3,n.currentTime<0&&(n.currentTime=0),n.currentTime>n.lastMoment&&(n.currentTime=n.lastMoment),a=n.currentTime/n.lastMoment;break;case"beats":n.currentTime=o*n.millisecondsPerBeat*n.beatSubdivisions,n.currentTime<0&&(n.currentTime=0),n.currentTime>n.lastMoment&&(n.currentTime=n.lastMoment),a=n.currentTime/n.lastMoment;break;default:a=o,a<0&&(a=0),a>1&&(a=1),n.currentTime=n.lastMoment*a;break}n.isRunning||(n.pausedPercent=a);var c=performance.now();n.startTime=c-n.currentTime;var l=n.currentEvent;for(n.currentEvent=0;n.noteTimings.length>n.currentEvent&&n.noteTimings[n.currentEvent].millisecondsn.currentLine&&n.lineEndTimings[n.currentLine].milliseconds+n.lineEndAnticipation=0&&n.noteTimings[n.currentEvent].type==="event"&&n.eventCallback(n.noteTimings[n.currentEvent]),n.lineEndCallback&&n.lineEndCallback(n.lineEndTimings[n.currentLine],n.noteTimings[n.currentEvent],{line:n.currentLine,endTimings:n.lineEndTimings}),n.joggerTimer=setTimeout(n.animationJogger,r)}};function Ute(t,e){for(var n=[],i=null,r=0;r{var qte=bv(),_v={};(function(){"use strict";var t,e;_v.startAnimation=function(n,i,r){t&&(t.stop(),t=void 0),r.showCursor&&(e=n.querySelector(".abcjs-cursor"),e||(e=document.createElement("DIV"),e.className="abcjs-cursor cursor",e.style.position="absolute",n.appendChild(e),n.style.position="relative"));function o(h){for(var f=0;f{var Dr={};Dr.clone=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e};Dr.cloneArray=function(t){for(var e=[],n=0;n=0&&t.lastIndexOf(e)===n};Dr.last=function(t){return t.length===0?null:t[t.length-1]};S4.exports=Dr});var Sf=j((ske,k4)=>{var I4=fn(),Qc={};(function(){"use strict";var t,e,n,i,r;Qc.initialize=function(S,w,M,T,J){t=S,e=w,n=M,i=T,r=J,o()};function o(){n.annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},n.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},n.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},n.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},n.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},n.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},n.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},n.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},n.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},n.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},n.wordsfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},i.formatting.composerfont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},i.formatting.subtitlefont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},i.formatting.tempofont={face:'"Times New Roman"',size:15,weight:"bold",style:"normal",decoration:"none"},i.formatting.titlefont={face:'"Times New Roman"',size:20,weight:"normal",style:"normal",decoration:"none"},i.formatting.footerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},i.formatting.headerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},i.formatting.voicefont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},i.formatting.tablabelfont={face:'"Trebuchet MS"',size:16,weight:"normal",style:"normal",decoration:"none"},i.formatting.tabnumberfont={face:'"Arial"',size:11,weight:"normal",style:"normal",decoration:"none"},i.formatting.tabgracefont={face:'"Arial"',size:8,weight:"normal",style:"normal",decoration:"none"},i.formatting.annotationfont=n.annotationfont,i.formatting.gchordfont=n.gchordfont,i.formatting.historyfont=n.historyfont,i.formatting.infofont=n.infofont,i.formatting.measurefont=n.measurefont,i.formatting.partsfont=n.partsfont,i.formatting.repeatfont=n.repeatfont,i.formatting.textfont=n.textfont,i.formatting.tripletfont=n.tripletfont,i.formatting.vocalfont=n.vocalfont,i.formatting.wordsfont=n.wordsfont}var s={gchordfont:!0,measurefont:!0,partsfont:!0,annotationfont:!0,composerfont:!0,historyfont:!0,infofont:!0,subtitlefont:!0,textfont:!0,titlefont:!0,voicefont:!0},a=function(S){switch(S){case"Arial-Italic":return{face:"Arial",weight:"normal",style:"italic",decoration:"none"};case"Arial-Bold":return{face:"Arial",weight:"bold",style:"normal",decoration:"none"};case"Bookman-Demi":return{face:"Bookman,serif",weight:"bold",style:"normal",decoration:"none"};case"Bookman-DemiItalic":return{face:"Bookman,serif",weight:"bold",style:"italic",decoration:"none"};case"Bookman-Light":return{face:"Bookman,serif",weight:"normal",style:"normal",decoration:"none"};case"Bookman-LightItalic":return{face:"Bookman,serif",weight:"normal",style:"italic",decoration:"none"};case"Courier":return{face:'"Courier New"',weight:"normal",style:"normal",decoration:"none"};case"Courier-Oblique":return{face:'"Courier New"',weight:"normal",style:"italic",decoration:"none"};case"Courier-Bold":return{face:'"Courier New"',weight:"bold",style:"normal",decoration:"none"};case"Courier-BoldOblique":return{face:'"Courier New"',weight:"bold",style:"italic",decoration:"none"};case"AvantGarde-Book":return{face:"AvantGarde,Arial",weight:"normal",style:"normal",decoration:"none"};case"AvantGarde-BookOblique":return{face:"AvantGarde,Arial",weight:"normal",style:"italic",decoration:"none"};case"AvantGarde-Demi":case"Avant-Garde-Demi":return{face:"AvantGarde,Arial",weight:"bold",style:"normal",decoration:"none"};case"AvantGarde-DemiOblique":return{face:"AvantGarde,Arial",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Oblique":return{face:"Helvetica",weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Bold":return{face:"Helvetica",weight:"bold",style:"normal",decoration:"none"};case"Helvetica-BoldOblique":return{face:"Helvetica",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Narrow":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"normal",decoration:"none"};case"Helvetica-Narrow-Oblique":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Narrow-Bold":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"normal",decoration:"none"};case"Helvetica-Narrow-BoldOblique":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"italic",decoration:"none"};case"Palatino-Roman":return{face:"Palatino",weight:"normal",style:"normal",decoration:"none"};case"Palatino-Italic":return{face:"Palatino",weight:"normal",style:"italic",decoration:"none"};case"Palatino-Bold":return{face:"Palatino",weight:"bold",style:"normal",decoration:"none"};case"Palatino-BoldItalic":return{face:"Palatino",weight:"bold",style:"italic",decoration:"none"};case"NewCenturySchlbk-Roman":return{face:'"New Century",serif',weight:"normal",style:"normal",decoration:"none"};case"NewCenturySchlbk-Italic":return{face:'"New Century",serif',weight:"normal",style:"italic",decoration:"none"};case"NewCenturySchlbk-Bold":return{face:'"New Century",serif',weight:"bold",style:"normal",decoration:"none"};case"NewCenturySchlbk-BoldItalic":return{face:'"New Century",serif',weight:"bold",style:"italic",decoration:"none"};case"Times":case"Times-Roman":case"Times-Narrow":case"Times-Courier":case"Times-New-Roman":return{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none"};case"Times-Italic":case"Times-Italics":return{face:'"Times New Roman"',weight:"normal",style:"italic",decoration:"none"};case"Times-Bold":return{face:'"Times New Roman"',weight:"bold",style:"normal",decoration:"none"};case"Times-BoldItalic":return{face:'"Times New Roman"',weight:"bold",style:"italic",decoration:"none"};case"ZapfChancery-MediumItalic":return{face:'"Zapf Chancery",cursive,serif',weight:"normal",style:"normal",decoration:"none"};default:return null}},c=function(S,w,M,T,J){function ye(){var Qt=parseInt(S[0].token);return S.shift(),w?S.length===0?{face:w.face,weight:w.weight,style:w.style,decoration:w.decoration,size:Qt}:S.length===1&&S[0].token==="box"&&s[J]?{face:w.face,weight:w.weight,style:w.style,decoration:w.decoration,size:Qt,box:!0}:(e("Extra parameters in font definition.",M,T),{face:w.face,weight:w.weight,style:w.style,decoration:w.decoration,size:Qt}):(e("Can't set just the size of the font since there is no default value.",M,T),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:Qt})}if(S[0].token==="*"){if(S.shift(),S[0].type==="number")return ye();e("Expected font size number after *.",M,T)}if(S[0].type==="number")return ye();for(var Ae=[],Qe,Pe="normal",kt="normal",ci="none",it=!1,ti="face",Mt=!1;S.length;){var Ce=S.shift(),xt=Ce.token.toLowerCase();switch(ti){case"face":Mt||xt!=="utf"&&Ce.type!=="number"&&xt!=="bold"&&xt!=="italic"&&xt!=="underline"&&xt!=="box"?Ae.length>0&&Ce.token==="-"?(Mt=!0,Ae[Ae.length-1]=Ae[Ae.length-1]+Ce.token):Mt?(Mt=!1,Ae[Ae.length-1]=Ae[Ae.length-1]+Ce.token):Ae.push(Ce.token):Ce.type==="number"?(Qe?e("Font size specified twice in font definition.",M,T):Qe=Ce.token,ti="modifier"):xt==="bold"?Pe="bold":xt==="italic"?kt="italic":xt==="underline"?ci="underline":xt==="box"?(s[J]?it=!0:e(`This font style doesn't support "box"`,M,T),ti="finished"):xt==="utf"?(Ce=S.shift(),ti="size"):e("Unknown parameter "+Ce.token+" in font definition.",M,T);break;case"size":Ce.type==="number"?Qe?e("Font size specified twice in font definition.",M,T):Qe=Ce.token:e("Expected font size in font definition.",M,T),ti="modifier";break;case"modifier":xt==="bold"?Pe="bold":xt==="italic"?kt="italic":xt==="underline"?ci="underline":xt==="box"?(s[J]?it=!0:e(`This font style doesn't support "box"`,M,T),ti="finished"):e("Unknown parameter "+Ce.token+" in font definition.",M,T);break;case"finished":e('Extra characters found after "box" in font definition.',M,T);break}}Qe===void 0?w?Qe=w.size:(e("Must specify the size of the font since there is no default value.",M,T),Qe=12):Qe=parseFloat(Qe),Ae=Ae.join(" "),Ae===""&&(w?Ae=w.face:(e("Must specify the name of the font since there is no default value.",M,T),Ae="sans-serif"));var At=a(Ae),pt={};return At?(pt.face=At.face,pt.weight=At.weight,pt.style=At.style,pt.decoration=At.decoration,pt.size=Qe,it&&(pt.box=!0),pt):(pt.face=Ae,pt.weight=Pe,pt.style=kt,pt.decoration=ci,pt.size=Qe,it&&(pt.box=!0),pt)},l=function(S,w,M){return w.length===0?'Directive "'+S+'" requires a font as a parameter.':(n[S]=c(w,n[S],M,0,S),n.is_in_header&&(i.formatting[S]=n[S]),null)},u=function(S,w,M){return w.length===0?'Directive "'+S+'" requires a font as a parameter.':(i.formatting[S]=c(w,i.formatting[S],M,0,S),null)},d=function(S,w){var M="";w.forEach(function(J){M+=J.token});var T=parseFloat(M);if(isNaN(T)||T===0)return'Directive "'+S+'" requires a number as a parameter.';i.formatting.scale=T},h=["acoustic-bass-drum","bass-drum-1","side-stick","acoustic-snare","hand-clap","electric-snare","low-floor-tom","closed-hi-hat","high-floor-tom","pedal-hi-hat","low-tom","open-hi-hat","low-mid-tom","hi-mid-tom","crash-cymbal-1","high-tom","ride-cymbal-1","chinese-cymbal","ride-bell","tambourine","splash-cymbal","cowbell","crash-cymbal-2","vibraslap","ride-cymbal-2","hi-bongo","low-bongo","mute-hi-conga","open-hi-conga","low-conga","high-timbale","low-timbale","high-agogo","low-agogo","cabasa","maracas","short-whistle","long-whistle","short-guiro","long-guiro","claves","hi-wood-block","low-wood-block","mute-cuica","open-cuica","mute-triangle","open-triangle"],f=function(S){var w=S.split(/\s+/);if(w.length!==2&&w.length!==3)return{error:'Expected parameters "abc-note", "drum-sound", and optionally "note-head"'};var M=w[0],T=parseInt(w[1],10);if((isNaN(T)||T<35||T>81)&&w[1]&&(T=h.indexOf(w[1].toLowerCase())+35),isNaN(T)||T<35||T>81)return{error:'Expected drum name, received "'+w[1]+'"'};var J={sound:T};return w.length===3&&(J.noteHead=w[2]),{key:M,value:J}},p=function(S,w){var M=t.getMeasurement(w);return M.used===0||w.length!==0?{error:'Directive "'+S+'" requires a measurement as a parameter.'}:M.value},m=function(S,w){var M=t.getMeasurement(w);return M.used===0||w.length!==0?'Directive "'+S+'" requires a measurement as a parameter.':(i.formatting[S]=M.value,null)},v=function(S,w,M,T,J){if(M.length!==1||M[0].type!=="number")return'Directive "'+w+'" requires a number as a parameter.';var ye=M[0].intt;return T!==void 0&&yeJ?'Directive "'+w+'" requires a number less than or equal to '+J+" as a parameter.":(n[S]=ye,null)},b=function(S,w,M){if(M.length===1&&(M[0].token==="true"||M[0].token==="false"))return n[S]=M[0].token==="true",null;var T=v(S,w,M,0,1);return T!==null?T:(n[S]=n[S]===1,null)},C=function(S,w,M,T){if(M.length!==1)return'Directive "'+w+'" requires one of [ '+T.join(", ")+" ] as a parameter.";for(var J=M[0].token,ye=!1,Ae=0;!ye&&Ae=0)S.length!==0&&e("Unexpected parameter in MIDI "+T,M,0);else if(_.indexOf(T)>=0)S.length!==1?e("Expected one parameter in MIDI "+T,M,0):J.push(S[0].token);else if(y.indexOf(T)>=0)S.length!==1?e("Expected one parameter in MIDI "+T,M,0):S[0].type!=="number"?e("Expected one integer parameter in MIDI "+T,M,0):J.push(S[0].intt);else if(x.indexOf(T)>=0)S.length!==1&&S.length!==2?e("Expected one or two parameters in MIDI "+T,M,0):S[0].type!=="number"||S.length===2&&S[1].type!=="number"?e("Expected integer parameter in MIDI "+T,M,0):(J.push(S[0].intt),S.length===2&&J.push(S[1].intt));else if(F.indexOf(T)>=0)S.length!==2?e("Expected two parameters in MIDI "+T,M,0):S[0].type!=="number"||S[1].type!=="number"?e("Expected two integer parameters in MIDI "+T,M,0):(J.push(S[0].intt),J.push(S[1].intt));else if(Q.indexOf(T)>=0)S.length!==2?e("Expected two parameters in MIDI "+T,M,0):S[0].type!=="alpha"||S[1].type!=="number"?e("Expected one string and one integer parameters in MIDI "+T,M,0):(J.push(S[0].token),J.push(S[1].intt));else if(T==="drummap")S.length===2&&S[0].type==="alpha"&&S[1].type==="number"?(w.formatting||(w.formatting={}),w.formatting.midi||(w.formatting.midi={}),w.formatting.midi.drummap||(w.formatting.midi.drummap={}),w.formatting.midi.drummap[S[0].token]=S[1].intt,J=w.formatting.midi.drummap):S.length===3&&S[0].type==="punct"&&S[1].type==="alpha"&&S[2].type==="number"?(w.formatting||(w.formatting={}),w.formatting.midi||(w.formatting.midi={}),w.formatting.midi.drummap||(w.formatting.midi.drummap={}),w.formatting.midi.drummap[S[0].token+S[1].token]=S[2].intt,J=w.formatting.midi.drummap):e("Expected one note name and one integer parameter in MIDI "+T,M,0);else if(G.indexOf(T)>=0)S.length!==3||S[0].type!=="number"||S[1].token!=="/"||S[2].type!=="number"?e("Expected fraction parameter in MIDI "+T,M,0):(J.push(S[0].intt),J.push(S[2].intt));else if(L.indexOf(T)>=0)S.length!==4?e("Expected four parameters in MIDI "+T,M,0):S[0].type!=="number"||S[1].type!=="number"||S[2].type!=="number"||S[3].type!=="number"?e("Expected four integer parameters in MIDI "+T,M,0):(J.push(S[0].intt),J.push(S[1].intt),J.push(S[2].intt),J.push(S[3].intt));else if(P.indexOf(T)>=0)S.length!==5?e("Expected five parameters in MIDI "+T,M,0):S[0].type!=="number"||S[1].type!=="number"||S[2].type!=="number"||S[3].type!=="number"||S[4].type!=="number"?e("Expected five integer parameters in MIDI "+T,M,0):(J.push(S[0].intt),J.push(S[1].intt),J.push(S[2].intt),J.push(S[3].intt),J.push(S[4].intt));else if(x.indexOf(T)>=0)S.length!==1||S.length!==4?e("Expected one or two parameters in MIDI "+T,M,0):S[0].type!=="number"?e("Expected integer parameter in MIDI "+T,M,0):S.length===4?(S[1].token!=="octave"&&e("Expected octave parameter in MIDI "+T,M,0),S[2].token!=="="&&e("Expected octave parameter in MIDI "+T,M,0),S[3].type!=="number"&&e("Expected integer parameter for octave in MIDI "+T,M,0)):(J.push(S[0].intt),S.length===4&&J.push(S[3].intt));else if(W.indexOf(T)>=0)if(S.length<2)e("Expected string parameter and at least one integer parameter in MIDI "+T,M,0);else if(S[0].type!=="alpha")e("Expected string parameter and at least one integer parameter in MIDI "+T,M,0);else{var ye=S.shift();for(J.push(ye.token);S.length>0;)ye=S.shift(),ye.type!=="number"&&e("Expected integer parameter in MIDI "+T,M,0),J.push(ye.intt)}r.hasBeginMusic()?r.appendElement("midi",-1,-1,{cmd:T,params:J}):(w.formatting.midi===void 0&&(w.formatting.midi={}),w.formatting.midi[T]=J)};Qc.parseFontChangeLine=function(S){S=S.replace(/\$\$/g,"");var w=S.split("$");if(w.length>1&&n.setfont){var M=[];w[0]!==""&&M.push({text:w[0]});for(var T=1;T0&&n.ignoredDecorations.push(M.substring(0,M.indexOf(" "))),e("Decoration redefinition ignored",S,0);break;case"text":var At=t.translateString(M);r.addText(Qc.parseFontChangeLine(At),{startChar:n.iChar,endChar:n.iChar+M.length+7});break;case"center":var pt=t.translateString(M);r.addCentered(Qc.parseFontChangeLine(pt));break;case"font":break;case"setfont":var Qt=t.tokenize(M,0,M.length);if(Qt.length>=4&&Qt[0].token==="-"&&Qt[1].type==="number"){var _o=parseInt(Qt[1].token);_o>=1&&_o<=9&&(n.setfont||(n.setfont=[]),Qt.shift(),Qt.shift(),n.setfont[_o]=c(Qt,n.setfont[_o],S,0,"setfont"))}break;case"gchordfont":case"partsfont":case"tripletfont":case"vocalfont":case"textfont":case"annotationfont":case"historyfont":case"infofont":case"measurefont":case"repeatfont":case"wordsfont":return l(T,w,S);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return u(T,w,S);case"barlabelfont":case"barnumberfont":case"barnumfont":return l("measurefont",w,S);case"staves":case"score":n.score_is_present=!0;for(var Fr=function(ji,Hi,ll,vu,ep){(Hi||n.staves.length===0)&&n.staves.push({index:n.staves.length,numVoices:0});var or=I4.last(n.staves);ll!==void 0&&or.bracket===void 0&&(or.bracket=ll),vu!==void 0&&or.brace===void 0&&(or.brace=vu),ep&&(or.connectBarLines="end"),n.voices[ji]===void 0&&(n.voices[ji]={staffNum:or.index,index:or.numVoices},or.numVoices++)},Ln=!1,Ci=!1,Ji=!1,Vn=!1,xi=!1,Le=!1,V=!1,k,N=function(){if(V=!0,k){var ji="start";k.staffNum>0&&(n.staves[k.staffNum-1].connectBarLines==="start"||n.staves[k.staffNum-1].connectBarLines==="continue")&&(ji="continue"),n.staves[k.staffNum].connectBarLines=ji}};w.length;){var O=w.shift();switch(O.token){case"(":Ln?e("Can't nest parenthesis in %%score",S,O.start):(Ln=!0,Vn=!0);break;case")":!Ln||Vn?e("Unexpected close parenthesis in %%score",S,O.start):Ln=!1;break;case"[":Ci?e("Can't nest brackets in %%score",S,O.start):(Ci=!0,xi=!0);break;case"]":!Ci||xi?e("Unexpected close bracket in %%score",S,O.start):(Ci=!1,n.staves[k.staffNum].bracket="end");break;case"{":Ji?e("Can't nest braces in %%score",S,O.start):(Ji=!0,Le=!0);break;case"}":!Ji||Le?e("Unexpected close brace in %%score",S,O.start):(Ji=!1,n.staves[k.staffNum].brace="end");break;case"|":N();break;default:for(var $="";(O.type==="alpha"||O.type==="number")&&($+=O.token,O.continueId);)O=w.shift();var de=!Ln||Vn,qe=xi?"start":Ci?"continue":void 0,ue=Le?"start":Ji?"continue":void 0;Fr($,de,qe,ue,V),Vn=!1,xi=!1,Le=!1,V=!1,k=n.voices[$],T==="staves"&&N();break}}break;case"newpage":var he=t.getInt(M);r.addNewPage(he.digits===0?-1:he.value);break;case"abc":var fe=M.split(" ");switch(fe[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var Ke=fe.shift();r.addMetaText(T+Ke,fe.join(" "),{startChar:n.iChar,endChar:n.iChar+M.length+5});break;default:return"Unknown directive: "+T+fe[0]}break;case"header":case"footer":var je=t.getMeat(M,0,M.length);je=M.substring(je.start,je.end),je[0]==='"'&&je[je.length-1]==='"'&&(je=je.substring(1,je.length-1));var Be=je.split(" "),Ot={};Be.length===1?Ot={left:"",center:Be[0],right:""}:Be.length===2?Ot={left:Be[0],center:Be[1],right:""}:Ot={left:Be[0],center:Be[1],right:Be[2]},Be.length>3&&e("Too many tabs in "+T+": "+Be.length+" found.",M,0),r.addMetaTextObj(T,Ot,{startChar:n.iChar,endChar:n.iChar+S.length});break;case"midi":var mn=t.tokenize(M,0,M.length,!0);mn.length>0&&mn[0].token==="="&&mn.shift(),mn.length===0?e("Expected midi command",M,0):Y(mn,i,M);break;case"percmap":var gt=f(M);gt.error?e(gt.error,S,8):(i.formatting.percmap||(i.formatting.percmap={}),i.formatting.percmap[gt.key]=gt.value);break;case"map":case"playtempo":case"auquality":case"continuous":case"nobarcheck":i.formatting[T]=M;break;default:return"Unknown directive: "+T}return null},Qc.globalFormatting=function(S){for(var w in S)if(S.hasOwnProperty(w)){var M=""+S[w],T=t.tokenize(M,0,M.length),J;switch(w){case"titlefont":case"gchordfont":case"composerfont":case"footerfont":case"headerfont":case"historyfont":case"infofont":case"measurefont":case"partsfont":case"repeatfont":case"subtitlefont":case"tempofont":case"textfont":case"voicefont":case"tripletfont":case"vocalfont":case"wordsfont":case"annotationfont":case"tablabelfont":case"tabnumberfont":case"tabgracefont":l(w,T,M);break;case"scale":d(w,T);break;case"partsbox":J=b("partsBox",w,T),J!==null&&e(J),n.partsfont.box=n.partsBox;break;case"freegchord":J=b("freegchord",w,T),J!==null&&e(J);break;case"fontboxpadding":(T.length!==1||T[0].type!=="number")&&e('Directive "'+w+'" requires a number as a parameter.'),i.formatting.fontboxpadding=T[0].floatt;break;case"stafftopmargin":(T.length!==1||T[0].type!=="number")&&e('Directive "'+w+'" requires a number as a parameter.'),i.formatting.stafftopmargin=T[0].floatt;break;case"stretchlast":var ye=ae(T);if(ye.value!==void 0&&(i.formatting.stretchlast=ye.value),ye.error)return ye.error;break;default:e("Formatting directive unrecognized: ",w,0)}}};function ae(S){if(S.length===0)return{value:1};if(S.length===1)if(S[0].type==="number"){if(S[0].floatt>=0||S[0].floatt<=1)return{value:S[0].floatt}}else{if(S[0].token==="false")return{value:0};if(S[0].token==="true")return{value:1}}return{error:"Directive stretchlast requires zero or one parameter: false, true, or number between 0 and 1 (received "+S[0].token+")"}}})();k4.exports=Qc});var A4=j((ake,T4)=>{var UD={},M4=["C,,,","D,,,","E,,,","F,,,","G,,,","A,,,","B,,,","C,,","D,,","E,,","F,,","G,,","A,,","B,,","C,","D,","E,","F,","G,","A,","B,","C","D","E","F","G","A","B","c","d","e","f","g","a","b","c'","d'","e'","f'","g'","a'","b'","c''","d''","e''","f''","g''","a''","b''","c'''","d'''","e'''","f'''","g'''","a'''","b'''"];UD.pitchIndex=function(t){return M4.indexOf(t)};UD.noteName=function(t){return M4[t]};T4.exports=UD});var qD=j((cke,R4)=>{var yv=["C","C\u266F","D","D\u266F","E","F","F\u266F","G","G\u266F","A","A\u266F","B"],wv=["C","D\u266D","D","E\u266D","E","F","G\u266D","G","A\u266D","A","B\u266D","B"],Cv=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],xv=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"];function $te(t,e,n,i){if(!e||e%12===0)return t;for(;e<0;)e+=12;e>11&&(e=e%12);var r=t.match(/^([A-G][b#♭♯]?)([^\/]+)?\/?([A-G][b#♭♯]?)?(.+)?/);if(!r)return t;var o=r[1],s=r[2],a=r[3],c=r[4],l=yv.indexOf(o);if(l<0&&(l=wv.indexOf(o)),l<0&&(l=Cv.indexOf(o)),l<0&&(l=xv.indexOf(o)),l<0)return t;if(l+=e,l=l%12,n?i?t=xv[l]:t=wv[l]:i?t=Cv[l]:t=yv[l],s&&(t+=s),a){var l=yv.indexOf(a);l<0&&(l=wv.indexOf(a)),l<0&&(l=Cv.indexOf(a)),l<0&&(l=xv.indexOf(a)),t+="/",l>=0?(l+=e,l=l%12,n?i?t+=xv[l]:t+=wv[l]:i?t+=Cv[l]:t+=yv[l]):t+=a}return c&&(t+=c),t}R4.exports=$te});var $D=j((lke,O4)=>{var Kc={C:{modes:["CMaj","Amin","Am","GMix","DDor","EPhr","FLyd","BLoc"],stepsFromC:0},Db:{modes:["DbMaj","Bbmin","Bbm","AbMix","EbDor","FPhr","GbLyd","CLoc"],stepsFromC:1},D:{modes:["DMaj","Bmin","Bm","AMix","EDor","F#Phr","GLyd","C#Loc"],stepsFromC:2},Eb:{modes:["EbMaj","Cmin","Cm","BbMix","FDor","GPhr","AbLyd","DLoc"],stepsFromC:3},E:{modes:["EMaj","C#min","C#m","BMix","F#Dor","G#Phr","ALyd","D#Loc"],stepsFromC:4},F:{modes:["FMaj","Dmin","Dm","CMix","GDor","APhr","BbLyd","ELoc"],stepsFromC:5},Gb:{modes:["GbMaj","Ebmin","Ebm","DbMix","AbDor","BbPhr","CbLyd","FLoc"],stepsFromC:6},G:{modes:["GMaj","Emin","Em","DMix","ADor","BPhr","CLyd","F#Loc"],stepsFromC:7},Ab:{modes:["AbMaj","Fmin","Fm","EbMix","BbDor","CPhr","DbLyd","GLoc"],stepsFromC:8},A:{modes:["AMaj","F#min","F#m","EMix","BDor","C#Phr","DLyd","G#Loc"],stepsFromC:9},Bb:{modes:["BbMaj","Gmin","Gm","FMix","CDor","DPhr","EbLyd","ALoc"],stepsFromC:10},B:{modes:["BMaj","G#min","G#m","F#Mix","C#Dor","D#Phr","ELyd","A#Loc"],stepsFromC:11},"C#":{modes:["C#Maj","A#min","A#m","G#Mix","D#Dor","E#Phr","F#Lyd","B#Loc"],stepsFromC:1},"F#":{modes:["F#Maj","D#min","D#m","C#Mix","G#Dor","A#Phr","BLyd","E#Loc"],stepsFromC:6},Cb:{modes:["CbMaj","Abmin","Abm","GbMix","DbDor","EbPhr","FbLyd","BbLoc"],stepsFromC:11}},If=null;function Wte(){If={};for(var t=Object.keys(Kc),e=0;e{var{relativeMajor:Kte}=$D(),Xc={acc:"sharp",note:"f"},Zd={acc:"sharp",note:"c"},kf={acc:"sharp",note:"g"},Dv={acc:"sharp",note:"d"},WD={acc:"sharp",note:"A"},N4={acc:"sharp",note:"e"},Xte={acc:"sharp",note:"B"},Er={acc:"flat",note:"B"},Zo={acc:"flat",note:"e"},$a={acc:"flat",note:"A"},Mf={acc:"flat",note:"d"},GD={acc:"flat",note:"G"},F4={acc:"flat",note:"c"},Zte={acc:"flat",note:"F"},Jte={"C#":[Xc,Zd,kf,Dv,WD,N4,Xte],"F#":[Xc,Zd,kf,Dv,WD,N4],B:[Xc,Zd,kf,Dv,WD],E:[Xc,Zd,kf,Dv],A:[Xc,Zd,kf],D:[Xc,Zd],G:[Xc],C:[],F:[Er],Bb:[Er,Zo],Eb:[Er,Zo,$a],Cm:[Er,Zo,$a],Ab:[Er,Zo,$a,Mf],Db:[Er,Zo,$a,Mf,GD],Gb:[Er,Zo,$a,Mf,GD,F4],Cb:[Er,Zo,$a,Mf,GD,F4,Zte],"A#":[Er,Zo],"B#":[],"D#":[Er,Zo,$a],"E#":[Er],"G#":[Er,Zo,$a,Mf],none:[]};function eie(t){var e=Jte[Kte(t)];return e?JSON.parse(JSON.stringify(e)):null}P4.exports=eie});var XD=j((uke,B4)=>{var L4=A4(),tie=qD(),QD=YD(),Ev={},iie={C:0,"C#":1,Db:1,D:2,"D#":3,Eb:3,E:4,F:5,"F#":6,Gb:6,G:7,"G#":8,Ab:8,A:9,"A#":10,Bb:10,B:11},nie=["C","Db","D","Eb","E","F","F#","G","Ab","A","Bb","B"],rie=["C","C#","D","D#","E","F","F#","G","G#","A","Bb","B"];Ev.keySignature=function(t,e,n,i,r){if(t.clef.type==="perc"||t.clef.type==="none")return{accidentals:QD(e),root:n,acc:i};r||(r=0),t.localTransposeVerticalMovement=0,t.localTransposePreferFlats=!1;var o=QD(e);if(!o)return t.key;if(t.localTranspose=(t.globalTranspose?t.globalTranspose:0)+r,!t.localTranspose)return{accidentals:o,root:n,acc:i};if(t.globalTransposeOrigKeySig=o,t.localTranspose%12===0)return t.localTransposeVerticalMovement=t.localTranspose/12*7,{accidentals:o,root:n,acc:i};var s=e[0];e[1]==="b"||e[1]==="#"?(s+=e[1],e=e.substr(2)):e=e.substr(1);var a=iie[s],c=a!==void 0;c||(a=0,s="C",e="");for(var l=a+t.localTranspose;l<0;)l+=12;l>11&&(l=l%12);var u=e[0]==="m"?rie[l]:nie[l],d=u+e,h=QD(d);h.length>0&&h[0].acc==="flat"&&(t.localTransposePreferFlats=!0);var f=d.charCodeAt(0)-s.charCodeAt(0);return t.localTranspose>0?(f<0||f===0&&(s[1]==="#"||d[1]==="b"))&&(f+=7):t.localTranspose<0&&(f>0||f===0&&(s[1]==="b"||d[1]==="#"))&&(f-=7),t.localTranspose>0?t.localTransposeVerticalMovement=f+Math.floor(t.localTranspose/12)*7:t.localTransposeVerticalMovement=f+Math.ceil(t.localTranspose/12)*7,c?{accidentals:h,root:u[0],acc:u.length>1?u[1]:""}:{accidentals:[],root:n,acc:i}};Ev.chordName=function(t,e){return tie(e,t.localTranspose,t.localTransposePreferFlats,t.freegchord)};var V4=["c","d","e","f","g","a","b"];function oie(t,e,n,i,r){for(var o=V4[(t+49)%7],s=0,a=0;a2&&(e++,f-=u==="b"||u==="e"?1:2),[e,f]}var KD={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},sie={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"},aie={"-2":"__","-1":"_",0:"=",1:"^",2:"^^"};Ev.note=function(t,e){if(!(!t.localTranspose||t.clef.type==="perc")){var n=e.pitch;if(t.localTransposeVerticalMovement&&(e.pitch=e.pitch+t.localTransposeVerticalMovement,e.name)){var i=e.accidental?e.name.substring(1):e.name,r=e.accidental?e.name[0]:"",o=L4.pitchIndex(i);e.name=r+L4.noteName(o+t.localTransposeVerticalMovement)}if(e.accidental){var s=oie(n,e.pitch,e.accidental,t.globalTransposeOrigKeySig,t.targetKey);e.pitch=s[0],e.accidental=sie[s[1]],e.name&&(e.name=aie[s[1]]+e.name.replace(/[_^=]/g,""))}}};B4.exports=Ev});var Sv=j((hke,z4)=>{var j4=fn(),H4=Sf(),cie=XD(),Fn={};(function(){var t,e,n,i,r;Fn.initialize=function(d,h,f,p,m){t=d,e=h,n=f,i=p,r=m},Fn.standardKey=function(d,h,f,p){return cie.keySignature(n,d,h,f,p)};var o={treble:{clef:"treble",pitch:4,mid:0},"treble+8":{clef:"treble+8",pitch:4,mid:0},"treble-8":{clef:"treble-8",pitch:4,mid:0},"treble^8":{clef:"treble+8",pitch:4,mid:0},treble_8:{clef:"treble-8",pitch:4,mid:0},treble1:{clef:"treble",pitch:2,mid:2},treble2:{clef:"treble",pitch:4,mid:0},treble3:{clef:"treble",pitch:6,mid:-2},treble4:{clef:"treble",pitch:8,mid:-4},treble5:{clef:"treble",pitch:10,mid:-6},perc:{clef:"perc",pitch:6,mid:0},none:{clef:"none",mid:0},bass:{clef:"bass",pitch:8,mid:-12},"bass+8":{clef:"bass+8",pitch:8,mid:-12},"bass-8":{clef:"bass-8",pitch:8,mid:-12},"bass^8":{clef:"bass+8",pitch:8,mid:-12},bass_8:{clef:"bass-8",pitch:8,mid:-12},"bass+16":{clef:"bass",pitch:8,mid:-12},"bass-16":{clef:"bass",pitch:8,mid:-12},"bass^16":{clef:"bass",pitch:8,mid:-12},bass_16:{clef:"bass",pitch:8,mid:-12},bass1:{clef:"bass",pitch:2,mid:-6},bass2:{clef:"bass",pitch:4,mid:-8},bass3:{clef:"bass",pitch:6,mid:-10},bass4:{clef:"bass",pitch:8,mid:-12},bass5:{clef:"bass",pitch:10,mid:-14},tenor:{clef:"alto",pitch:8,mid:-8},tenor1:{clef:"alto",pitch:2,mid:-2},tenor2:{clef:"alto",pitch:4,mid:-4},tenor3:{clef:"alto",pitch:6,mid:-6},tenor4:{clef:"alto",pitch:8,mid:-8},tenor5:{clef:"alto",pitch:10,mid:-10},alto:{clef:"alto",pitch:6,mid:-6},alto1:{clef:"alto",pitch:2,mid:-2},alto2:{clef:"alto",pitch:4,mid:-4},alto3:{clef:"alto",pitch:6,mid:-6},alto4:{clef:"alto",pitch:8,mid:-8},alto5:{clef:"alto",pitch:10,mid:-10},"alto+8":{clef:"alto+8",pitch:6,mid:-6},"alto-8":{clef:"alto-8",pitch:6,mid:-6},"alto^8":{clef:"alto+8",pitch:6,mid:-6},alto_8:{clef:"alto-8",pitch:6,mid:-6}},s=function(d,h){var f=o[d],p=f?f.mid:0;return p+h};Fn.fixClef=function(d){var h=o[d.type];h&&(d.clefPos=h.pitch,d.type=h.clef)},Fn.deepCopyKey=function(d){var h={accidentals:[],root:d.root,acc:d.acc,mode:d.mode};return d.accidentals.forEach(function(f){h.accidentals.push(j4.clone(f))}),h};var a={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};Fn.addPosToKey=function(d,h){var f=d.verticalPos;h.accidentals.forEach(function(p){var m=a[p.note];m=m-f,p.verticalPos=m}),h.impliedNaturals&&h.impliedNaturals.forEach(function(p){var m=a[p.note];m=m-f,p.verticalPos=m}),f<-10?(h.accidentals.forEach(function(p){p.verticalPos-=7,(p.verticalPos>=11||p.verticalPos===10&&p.acc==="flat")&&(p.verticalPos-=7),p.note==="A"&&p.acc==="sharp"&&(p.verticalPos-=7),(p.note==="G"||p.note==="F")&&p.acc==="flat"&&(p.verticalPos-=7)}),h.impliedNaturals&&h.impliedNaturals.forEach(function(p){p.verticalPos-=7,(p.verticalPos>=11||p.verticalPos===10&&p.acc==="flat")&&(p.verticalPos-=7),p.note==="A"&&p.acc==="sharp"&&(p.verticalPos-=7),(p.note==="G"||p.note==="F")&&p.acc==="flat"&&(p.verticalPos-=7)})):f<-4?(h.accidentals.forEach(function(p){p.verticalPos-=7,f===-8&&(p.note==="f"||p.note==="g")&&p.acc==="sharp"&&(p.verticalPos-=7)}),h.impliedNaturals&&h.impliedNaturals.forEach(function(p){p.verticalPos-=7,f===-8&&(p.note==="f"||p.note==="g")&&p.acc==="sharp"&&(p.verticalPos-=7)})):f>=7&&(h.accidentals.forEach(function(p){p.verticalPos+=7}),h.impliedNaturals&&h.impliedNaturals.forEach(function(p){p.verticalPos+=7}))},Fn.fixKey=function(d,h){var f=j4.clone(h);return Fn.addPosToKey(d,f),f};var c=function(d){var h=0,f=d[h++];(f==="^"||f==="_")&&(f=d[h++]);var p=a[f];for(p===void 0&&(p=6);h0){p.foundKey=!0;var v="",b="";f[0].token.length>1?f[0].token=f[0].token.substring(1):f.shift();var C=m.token;if(f.length>0){var E=t.getSharpFlat(f[0].token);if(E.len>0&&(f[0].token.length>1?f[0].token=f[0].token.substring(1):f.shift(),C+=E.token,v=E.token),f.length>0){var _=t.getMode(f[0].token);_.len>0&&(f.shift(),C+=_.token,b=_.token)}if(Fn.standardKey(C,m.token,v,0)===void 0)return e("Unsupported key signature: "+C,d,0),p}var y=Fn.deepCopyKey(n.key),x=!h&&n.globalTranspose?-n.globalTranspose:0,F;if(h&&(F=n.globalTransposeOrigKeySig),n.key=Fn.deepCopyKey(Fn.standardKey(C,m.token,v,x)),h&&(n.globalTransposeOrigKeySig=F),n.key.mode=b,y){for(var L,P=0;P0;)switch(f[0].token){case"m":case"middle":if(f.shift(),f.length===0)return e("Expected = after middle",d,0),p;if(ae=f.shift(),ae.token!=="="){e("Expected = after middle",d,ae.start);break}if(f.length===0)return e("Expected parameter after middle=",d,0),p;var S=t.getPitchFromTokens(f);S.warn&&e(S.warn,d,0),S.position&&(n.clef.verticalPos=S.position-6);break;case"transpose":if(f.shift(),f.length===0)return e("Expected = after transpose",d,0),p;if(ae=f.shift(),ae.token!=="="){e("Expected = after transpose",d,ae.start);break}if(f.length===0)return e("Expected parameter after transpose=",d,0),p;if(f[0].type!=="number"){e("Expected number after transpose",d,f[0].start);break}n.clef.transpose=f[0].intt,f.shift();break;case"stafflines":if(f.shift(),f.length===0)return e("Expected = after stafflines",d,0),p;if(ae=f.shift(),ae.token!=="="){e("Expected = after stafflines",d,ae.start);break}if(f.length===0)return e("Expected parameter after stafflines=",d,0),p;if(f[0].type!=="number"){e("Expected number after stafflines",d,f[0].start);break}n.clef.stafflines=f[0].intt,f.shift();break;case"staffscale":if(f.shift(),f.length===0)return e("Expected = after staffscale",d,0),p;if(ae=f.shift(),ae.token!=="="){e("Expected = after staffscale",d,ae.start);break}if(f.length===0)return e("Expected parameter after staffscale=",d,0),p;if(f[0].type!=="number"){e("Expected number after staffscale",d,f[0].start);break}n.clef.staffscale=f[0].floatt,f.shift();break;case"octave":if(f.shift(),f.length===0)return e("Expected = after octave",d,0),p;if(ae=f.shift(),ae.token!=="="){e("Expected = after octave",d,ae.start);break}if(f.length===0)return e("Expected parameter after octave=",d,0),p;if(f[0].type!=="number"){e("Expected number after octave",d,f[0].start);break}n.octave=f[0].intt,f.shift();break;case"style":if(f.shift(),f.length===0)return e("Expected = after style",d,0),p;if(ae=f.shift(),ae.token!=="="){e("Expected = after style",d,ae.start);break}if(f.length===0)return e("Expected parameter after style=",d,0),p;switch(f[0].token){case"normal":case"harmonic":case"rhythm":case"x":case"triangle":n.style=f[0].token,f.shift();break;default:e("error parsing style element: "+f[0].token,d,f[0].start);break}break;case"clef":if(f.shift(),f.length===0)return e("Expected = after clef",d,0),p;if(ae=f.shift(),ae.token!=="="){e("Expected = after clef",d,ae.start);break}if(f.length===0)return e("Expected parameter after clef=",d,0),p;case"treble":case"bass":case"alto":case"tenor":case"perc":case"none":var w=f.shift();switch(w.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":w.token="alto";break;case"F":w.token="bass";break;case"G":w.token="treble";break;case"c":w.token="alto";break;case"f":w.token="bass";break;case"g":w.token="treble";break;default:e("Expected clef name. Found "+w.token,d,w.start);break}f.length>0&&f[0].type==="number"&&(w.token+=f[0].token,f.shift()),f.length>1&&(f[0].token==="-"||f[0].token==="+"||f[0].token==="^"||f[0].token==="_")&&f[1].token==="8"&&(w.token+=f[0].token+f[1].token,f.shift(),f.shift()),n.clef={type:w.token,verticalPos:s(w.token,0)},n.currentVoice&&n.currentVoice.transpose!==void 0&&(n.clef.transpose=n.currentVoice.transpose),p.foundClef=!0;break;default:e("Unknown parameter: "+f[0].token,d,f[0].start),f.shift()}return p};var u=function(d){n.currentVoice=n.voices[d],r.setCurrentVoice(n.currentVoice.staffNum,n.currentVoice.index)};Fn.parseVoice=function(d,h,f){var p=t.getMeat(d,h,f),m=p.start,v=p.end,b=t.getToken(d,m,v);if(b.length===0){e("Expected a voice id",d,m);return}var C=!1;n.voices[b]===void 0&&(n.voices[b]={},C=!0,n.score_is_present&&e("Can't have an unknown V: id when the %score directive is present",d,m)),m+=b.length,m+=t.eatWhiteSpace(d,m);for(var E={startStaff:C},_=function(S){var w=t.getVoiceToken(d,m,v);w.warn!==void 0?e("Expected value for "+S+" in voice: "+w.warn,d,m):w.err!==void 0?e("Expected value for "+S+" in voice: "+w.err,d,m):w.token.length===0&&d[m]!=='"'?e("Expected value for "+S+" in voice",d,m):E[S]=w.token,m+=w.len},y=function(S,w,M){var T=t.getVoiceToken(d,m,v);T.warn!==void 0?e("Expected value for "+w+" in voice: "+T.warn,d,m):T.err!==void 0?e("Expected value for "+w+" in voice: "+T.err,d,m):T.token.length===0&&d[m]!=='"'?e("Expected value for "+w+" in voice",d,m):(M==="number"&&(T.token=parseFloat(T.token)),n.voices[S][w]=T.token),m+=T.len},x=function(S,w){var M=t.getVoiceToken(d,m,v);if(M.warn!==void 0)e("Expected value for "+S+" in voice: "+M.warn,d,m);else if(M.err!==void 0)e("Expected value for "+S+" in voice: "+M.err,d,m);else if(M.token.length===0&&d[m]!=='"')e("Expected value for "+S+" in voice",d,m);else return w==="number"&&(M.token=parseFloat(M.token)),M.token;m+=M.len},F=function(S,w){var M={_B:2,_E:9,_b:-10,_e:-3},T=t.getVoiceToken(d,m,v);if(T.warn!==void 0)e("Expected one of (_B, _E, _b, _e) for "+w+" in voice: "+T.warn,d,m);else if(T.token.length===0&&d[m]!=='"')e("Expected one of (_B, _E, _b, _e) for "+w+" in voice",d,m);else{var J=M[T.token];J?n.voices[S][w]=J:e("Expected one of (_B, _E, _b, _e) for "+w+" in voice",d,m)}m+=T.len};m{var Iv=fn(),Jo=Sf(),es=Sv(),lie=function(t,e,n,i,r){this.reset=function(a,c,l,u){es.initialize(a,c,l,u,r),Jo.initialize(a,c,l,u,r)},this.reset(t,e,n,i),this.setTitle=function(a,c){n.hasMainTitle?r.addSubtitle(a,{startChar:n.iChar,endChar:n.iChar+c+2}):(r.addMetaText("title",a,{startChar:n.iChar,endChar:n.iChar+c+2}),n.hasMainTitle=!0)},this.setMeter=function(a){if(a=t.stripComment(a),a==="C")return n.havent_set_length===!0&&(n.default_length=.125,n.havent_set_length=!1),{type:"common_time"};if(a==="C|")return n.havent_set_length===!0&&(n.default_length=.125,n.havent_set_length=!1),{type:"cut_time"};if(a==="o")return n.havent_set_length===!0&&(n.default_length=.125,n.havent_set_length=!1),{type:"tempus_perfectum"};if(a==="c")return n.havent_set_length===!0&&(n.default_length=.125,n.havent_set_length=!1),{type:"tempus_imperfectum"};if(a==="o.")return n.havent_set_length===!0&&(n.default_length=.125,n.havent_set_length=!1),{type:"tempus_perfectum_prolatio"};if(a==="c.")return n.havent_set_length===!0&&(n.default_length=.125,n.havent_set_length=!1),{type:"tempus_imperfectum_prolatio"};if(a.length===0||a.toLowerCase()==="none")return n.havent_set_length===!0&&(n.default_length=.125,n.havent_set_length=!1),null;var c=t.tokenize(a,0,a.length);try{var l=function(){var m={value:0,num:""},v=c.shift();for(v.token==="("&&(v=c.shift());;){if(v.type!=="number")throw"Expected top number of meter";if(m.value+=parseInt(v.token),m.num+=v.token,c.length===0||c[0].token==="/")return m;if(v=c.shift(),v.token===")"){if(c.length===0||c[0].token==="/")return m;throw"Unexpected paren in meter"}if(v.token!=="."&&v.token!=="+"||(m.num+=v.token,c.length===0))throw"Expected top number of meter";v=c.shift()}return m},u=function(){var m=l();if(c.length===0)return m;var v=c.shift();if(v.token!=="/")throw"Expected slash in meter";if(v=c.shift(),v.type!=="number")throw"Expected bottom number of meter";return m.den=v.token,m.value=m.value/parseInt(m.den),m};if(c.length===0)throw"Expected meter definition in M: line";for(var d={type:"specified",value:[]},h=0;;){var f=u();h+=f.value;var p={num:f.num};if(f.den!==void 0&&(p.den=f.den),d.value.push(p),c.length===0)break}return n.havent_set_length===!0&&(n.default_length=h<.75?.0625:.125,n.havent_set_length=!1),d}catch(m){e(m,a,0)}return null},this.calcTempo=function(a){var c=.25;n.meter&&n.meter.type==="specified"?c=1/parseInt(n.meter.value[0].den):n.origMeter&&n.origMeter.type==="specified"&&(c=1/parseInt(n.origMeter.value[0].den));for(var l=0;l0&&(n.default_length=h/f,n.havent_set_length=!1)}else d.length===1&&d[0]==="1"&&(n.default_length=1,n.havent_set_length=!1)};var o={larghissimo:20,adagissimo:24,sostenuto:28,grave:32,largo:40,lento:50,larghetto:60,adagio:68,adagietto:74,andante:80,andantino:88,"marcia moderato":84,"andante moderato":100,moderato:112,allegretto:116,"allegro moderato":120,allegro:126,animato:132,agitato:140,veloce:148,"mosso vivo":156,vivace:164,vivacissimo:172,allegrissimo:176,presto:184,prestissimo:210};this.setTempo=function(a,c,l,u){try{var d=t.tokenize(a,c,l);if(d.length===0)throw"Missing parameter in Q: field";var h={startChar:u+c-2,endChar:u+l},f=!0,p=d.shift();if(p.type==="quote"&&(h.preString=p.token,p=d.shift(),d.length===0))return o[h.preString.toLowerCase()]&&(h.bpm=o[h.preString.toLowerCase()],h.suppressBpm=!0),{type:"immediate",tempo:h};if(p.type==="alpha"&&p.token==="C"){if(d.length===0)throw"Missing tempo after C in Q: field";if(p=d.shift(),p.type==="punct"&&p.token==="="){if(d.length===0)throw"Missing tempo after = in Q: field";if(p=d.shift(),p.type!=="number")throw"Expected number after = in Q: field";h.duration=[1],h.bpm=parseInt(p.token)}else if(p.type==="number"){if(h.duration=[parseInt(p.token)],d.length===0)throw"Missing = after duration in Q: field";if(p=d.shift(),p.type!=="punct"||p.token!=="=")throw"Expected = after duration in Q: field";if(d.length===0)throw"Missing tempo after = in Q: field";if(p=d.shift(),p.type!=="number")throw"Expected number after = in Q: field";h.bpm=parseInt(p.token)}else throw"Expected number or equal after C in Q: field"}else if(p.type==="number"){var m=parseInt(p.token);if(d.length===0||d[0].type==="quote")h.duration=[1],h.bpm=m;else{if(f=!1,p=d.shift(),p.type!=="punct"&&p.token!=="/"||(p=d.shift(),p.type!=="number"))throw"Expected fraction in Q: field";var v=parseInt(p.token);for(h.duration=[m/v];d.length>0&&d[0].token!=="="&&d[0].type!=="quote";){if(p=d.shift(),p.type!=="number"||(m=parseInt(p.token),p=d.shift(),p.type!=="punct"&&p.token!=="/")||(p=d.shift(),p.type!=="number"))throw"Expected fraction in Q: field";v=parseInt(p.token),h.duration.push(m/v)}if(p=d.shift(),p.type!=="punct"&&p.token!=="=")throw"Expected = in Q: field";if(p=d.shift(),p.type!=="number")throw"Expected tempo in Q: field";h.bpm=parseInt(p.token)}}else throw"Unknown value in Q: field";if(d.length!==0&&(p=d.shift(),p.type==="quote"&&(h.postString=p.token,p=d.shift()),d.length!==0))throw"Unexpected string at end of Q: field";return n.printTempo===!1&&(h.suppress=!0),{type:f?"delaySet":"immediate",tempo:h}}catch(b){return e(b,a,c),{type:"none"}}},this.letter_to_inline_header=function(a,c,l){var u=t.eatWhiteSpace(a,c);if(c+=u,a.length>=c+5&&a[c]==="["&&a[c+2]===":"){var d=a.indexOf("]",c),h=n.iChar+c,f=n.iChar+d+1;switch(a.substring(c,c+3)){case"[I:":var p=Jo.addDirective(a.substring(c+3,d));return p&&e(p,a,c),[d-c+1+u];case"[M:":var m=this.setMeter(a.substring(c+3,d));return r.hasBeginMusic()&&m?r.appendStartingElement("meter",h,f,m):n.meter=m,[d-c+1+u];case"[K:":var v=es.parseKey(a.substring(c+3,d),!0);return v.foundClef&&r.hasBeginMusic()&&r.appendStartingElement("clef",h,f,n.clef),v.foundKey&&r.hasBeginMusic()&&r.appendStartingElement("key",h,f,es.fixKey(n.clef,n.key)),[d-c+1+u];case"[P:":var b=Jo.parseFontChangeLine(a.substring(c+3,d));return l||i.lines.length<=i.lineNum?n.partForNextLine={title:b,startChar:h,endChar:f}:r.appendElement("part",h,f,{title:b}),[d-c+1+u];case"[L:":return this.setDefaultLength(a,c+3,d),[d-c+1+u];case"[Q:":if(d>0){var C=this.setTempo(a,c+3,d,n.iChar);return C.type==="delaySet"?r.hasBeginMusic()?r.appendElement("tempo",h,f,this.calcTempo(C.tempo)):n.tempoForNextLine=["tempo",h,f,this.calcTempo(C.tempo)]:C.type==="immediate"&&(!l&&r.hasBeginMusic()?r.appendElement("tempo",h,f,C.tempo):n.tempoForNextLine=["tempo",h,f,C.tempo]),[d-c+1+u,a[c+1],a.substring(c+3,d)]}break;case"[V:":if(d>0)return es.parseVoice(a,c+3,d),[d-c+1+u,a[c+1],a.substring(c+3,d)];break;case"[r:":return[d-c+1+u];default:}}return[0]},this.letter_to_body_header=function(a,c){if(a.length>=c+3)switch(a.substring(c,c+2)){case"I:":var l=Jo.addDirective(a.substring(c+2));return l&&e(l,a,c),[a.length];case"M:":var u=this.setMeter(a.substring(c+2));return r.hasBeginMusic()&&u&&r.appendStartingElement("meter",n.iChar+c,n.iChar+a.length,u),[a.length];case"K:":var d=es.parseKey(a.substring(c+2),r.hasBeginMusic());return d.foundClef&&r.hasBeginMusic()&&r.appendStartingElement("clef",n.iChar+c,n.iChar+a.length,n.clef),d.foundKey&&r.hasBeginMusic()&&r.appendStartingElement("key",n.iChar+c,n.iChar+a.length,es.fixKey(n.clef,n.key)),[a.length];case"P:":return r.hasBeginMusic()&&r.appendElement("part",n.iChar+c,n.iChar+a.length,{title:a.substring(c+2)}),[a.length];case"L:":return this.setDefaultLength(a,c+2,a.length),[a.length];case"Q:":var h=a.indexOf("",c+2);h===-1&&(h=a.length);var f=this.setTempo(a,c+2,h,n.iChar);return f.type==="delaySet"?r.appendElement("tempo",n.iChar+c,n.iChar+a.length,this.calcTempo(f.tempo)):f.type==="immediate"&&r.appendElement("tempo",n.iChar+c,n.iChar+a.length,f.tempo),[h,a[c],Iv.strip(a.substring(c+2))];case"V:":return es.parseVoice(a,c+2,a.length),[a.length,a[c],Iv.strip(a.substring(c+2))];default:}return[0]};var s={A:"author",B:"book",C:"composer",D:"discography",F:"url",G:"group",I:"instruction",N:"notes",O:"origin",R:"rhythm",S:"source",W:"unalignedWords",Z:"transcription"};this.parseHeader=function(a){var c=s[a[0]],l=a.length-2,u=t.translateString(t.stripComment(a.substring(2)));if(c==="unalignedWords"||c==="notes")r.addMetaTextArray(c,Jo.parseFontChangeLine(u),{startChar:n.iChar,endChar:n.iChar+a.length});else if(c!==void 0)r.addMetaText(c,Jo.parseFontChangeLine(u),{startChar:n.iChar,endChar:n.iChar+a.length});else{var d=n.iChar,h=d+a.length;switch(a[0]){case"H":for(r.addMetaTextArray("history",Jo.parseFontChangeLine(u),{startChar:n.iChar,endChar:n.iChar+a.length}),a=t.peekLine();a&&a[1]!==":";)t.nextLine(),r.addMetaTextArray("history",Jo.parseFontChangeLine(t.translateString(t.stripComment(a))),{startChar:n.iChar,endChar:n.iChar+a.length}),a=t.peekLine();break;case"K":this.resolveTempo();var f=es.parseKey(a.substring(2),!1);!n.is_in_header&&r.hasBeginMusic()&&(f.foundClef&&r.appendStartingElement("clef",d,h,n.clef),f.foundKey&&r.appendStartingElement("key",d,h,es.fixKey(n.clef,n.key))),n.is_in_header=!1;break;case"L":this.setDefaultLength(a,2,a.length);break;case"M":n.origMeter=n.meter=this.setMeter(a.substring(2));break;case"P":n.is_in_header?r.addMetaText("partOrder",Jo.parseFontChangeLine(u),{startChar:n.iChar,endChar:n.iChar+a.length}):n.partForNextLine={title:u,startChar:d,endChar:h};break;case"Q":var p=this.setTempo(a,2,a.length,n.iChar);p.type==="delaySet"?n.tempo=p.tempo:p.type==="immediate"&&(i.metaText.tempo?n.tempoForNextLine=["tempo",d,h,p.tempo]:i.metaText.tempo=p.tempo);break;case"T":n.titlecaps&&(u=u.toUpperCase()),this.setTitle(Jo.parseFontChangeLine(t.theReverser(u)),l);break;case"U":this.addUserDefinition(a,2,a.length);break;case"V":if(es.parseVoice(a,2,a.length),!n.is_in_header)return{newline:!0};break;case"s":return{symbols:!0};case"w":return{words:!0};case"X":break;case"E":case"m":e("Ignored header",a,0);break;default:return{regular:!0}}}return{}}};U4.exports=lie});var $4=j((pke,Sr)=>{Sr.exports.legalAccents=["trill","lowermordent","uppermordent","mordent","pralltriller","accent","fermata","invertedfermata","tenuto","0","1","2","3","4","5","+","wedge","open","thumb","snap","turn","roll","breath","shortphrase","mediumphrase","longphrase","segno","coda","D.S.","D.C.","fine","beambr1","beambr2","slide","marcato","upbow","downbow","/","//","///","////","trem1","trem2","trem3","trem4","turnx","invertedturn","invertedturnx","trill(","trill)","arpeggio","xstem","mark","umarcato","style=normal","style=harmonic","style=rhythm","style=x","style=triangle","D.C.alcoda","D.C.alfine","D.S.alcoda","D.S.alfine","editorial","courtesy"];Sr.exports.volumeDecorations=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"];Sr.exports.dynamicDecorations=["crescendo(","crescendo)","diminuendo(","diminuendo)","glissando(","glissando)","~(","~)"];Sr.exports.accentPseudonyms=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]];Sr.exports.accentDynamicPseudonyms=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]];Sr.exports.nonDecorations="ABCDEFGabcdefgxyzZ[]|^_{";Sr.exports.durations=[.5,.75,.875,.9375,.96875,.984375,.25,.375,.4375,.46875,.484375,.4921875,.125,.1875,.21875,.234375,.2421875,.24609375,.0625,.09375,.109375,.1171875,.12109375,.123046875,.03125,.046875,.0546875,.05859375,.060546875,.0615234375,.015625,.0234375,.02734375,.029296875,.0302734375,.03076171875];Sr.exports.pitches={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};Sr.exports.rests={x:"invisible",X:"invisible-multimeasure",y:"spacer",z:"rest",Z:"multimeasure"};Sr.exports.accMap={dblflat:"__",flat:"_",natural:"=",sharp:"^",dblsharp:"^^",quarterflat:"_/",quartersharp:"^/"};Sr.exports.tripletQ={2:3,3:2,4:3,5:2,6:2,7:2,8:3,9:2}});var s5=j((mke,o5)=>{var W4=fn(),G4=Sv(),n5=XD(),di,Ii,H,lo,ts,Af,{legalAccents:Y4,volumeDecorations:Q4,dynamicDecorations:K4,accentPseudonyms:X4,accentDynamicPseudonyms:Z4,nonDecorations:die,durations:uie,pitches:hie,rests:fie,accMap:J4,tripletQ:pie}=$4(),JD=function(t,e,n,i,r,o){di=t,Ii=e,H=n,lo=i,ts=r,Af=o,this.lineContinuation=!1},e5=function(t,e,n){if(t.inTie[e]===void 0)return!1;var i=t.currentVoice?t.currentVoice.staffNum*100+t.currentVoice.index:0;return!!(t.inTie[e][i]&&(n.pitches!==void 0||n.rest.type!=="spacer"))},ne={};JD.prototype.parseMusic=function(t){Af.resolveTempo(),H.is_in_header=!1;for(var e=0,n=H.iChar;di.isWhiteSpace(t[e])&&e0&&(e+=o[0],o[1]==="V"&&this.startNewLine());for(var s=0;e0)e+=c[0],c[1]==="V"&&(i=!0);else{(!ts.hasBeginMusic()||i&&!this.lineContinuation)&&(this.startNewLine(),i=!1);for(var l;;)if(l=di.eatWhiteSpace(t,e),l>0&&(e+=l),e>0&&t[e-1]===""&&(l=Af.letter_to_body_header(t,e),l[0]>0&&(l[1]==="V"&&this.startNewLine(),e=l[0],H.start_new_line=!1)),l=bie(t,e),l[0]>0&&(e+=l[0]),l=mie(t,e),l[0]>0){ne.chord||(ne.chord=[]);var u=di.translateString(l[1]);u=u.replace(/;/g,` +`}function Jq(t){switch(t.level){case Kl.LogLevel.FATAL:return"FATAL";case Kl.LogLevel.ERROR:return"ERROR";case Kl.LogLevel.WARN:return"WARN";case Kl.LogLevel.INFO:return"INFO";case Kl.LogLevel.DEBUG:return"DEBUG";case Kl.LogLevel.TRACE:default:return"TRACE"}}function e$(t){return""+t.relative}function t$(t){return""+t.sequence}function i$(t){return qw.has(t)?qw.get(t):n$(t)}function n$(t){var e=t.match(/(%\w+({[\w-]+}|)|.)/g).map(function(n){return r$(n)});return qw.set(t,e),e}function r$(t){var e=/%(\w+)(?:{([\w-]+)})*/g.exec(t);if(e==null)return t;if(e.length<3)return{formatter:$T(e[1]),params:[]};var n=$T(e[1]);if(!n)return null;var i=o$(e[2]);return{formatter:n,params:i}}function $T(t){var e;for(var n in Uw)if(Uw.hasOwnProperty(n)&&(e=new RegExp("^("+n+")$"),e.exec(t)))return Uw[n];return null}function o$(t){return t?t.split(","):[]}function s$(t,e){for(var n,i="",r=t.length,o=0;o{Object.defineProperty(Gw,"__esModule",{value:!0});var a$=GT(),c$=function(){function t(e){}return t.prototype.isActive=function(){return this.active===!0},t.prototype.append=function(e){},t.prototype.getLogLevel=function(){return this.logLevel},t.prototype.setLogLevel=function(e){this.logLevel=e},t.prototype.setLayout=function(e){this.layout=e},t.prototype.getLayout=function(){return this.layout},t.prototype.format=function(e){return a$.format(this.getLayout(),e)},t}();Gw.LogAppender=c$});var C0=j(Jr=>{Object.defineProperty(Jr,"__esModule",{value:!0});var l$=r0(),YT=AT(),d$=y0(),_c=new Set;_c.add("append");_c.add("isActive");_c.add("setLogLevel");_c.add("setLayout");_c.add("getLayout");_c.add("format");var sh=new Map,w0=new Map,u$=function(t){t instanceof d$.LogAppender&&_c.forEach(function(e){if(!t.prototype[e]||!(t.prototype[e]instanceof Function))throw new Error("Invalid appender: missing/invalid method: "+e)})};Jr.getAppenderName=function(t){return t.name||l$.getFunctionName(t)};Jr.addAppender=function(t,e){u$(t);var n=e||Jr.getAppenderName(t);return sh.has(n)||sh.set(n,t),t};Jr.registerAppender=function(t){var e=Jr.getAppenderName(t);return sh.has(e)&&Jr.addAppender(t),sh.set(e,t),t};Jr.getAppender=function(t){return sh.get(t)};Jr.getLoggerAppenderInstances=function(t){if(t&&t.length>0)return t.map(function(n){if(w0.has(n)){var i=w0.get(n);return new YT.AppenderWrapper(i.appender,i)}throw new Error("Invalid appender reference '"+n+"'")});var e=[];return w0.forEach(function(n){return e.push(new YT.AppenderWrapper(n.appender,n))}),e};Jr.setLoggerAppenderConfig=function(t,e){w0.set(t,e)}});var Qw=j(Yw=>{Object.defineProperty(Yw,"__esModule",{value:!0});var h$=C0();function f$(t){return function(e){return h$.addAppender(e,t),e}}Yw.Appender=f$});var Kw=j(x0=>{Object.defineProperty(x0,"__esModule",{value:!0});var It,QT=!0;x0.useVirtualConsole=function(t){QT=t};x0.getVirtualConsole=function(t){if(!QT)return console;var e=function(){function n(){this.isVirtual=!0,this.memory={}}return n.prototype.assert=function(i,r){for(var o=[],s=2;s{var p$=yc&&yc.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)r.hasOwnProperty(o)&&(i[o]=r[o])},t(e,n)};return function(e,n){t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),m$=yc&&yc.__decorate||function(t,e,n,i){var r=arguments.length,o=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};Object.defineProperty(yc,"__esModule",{value:!0});var Xl=nh(),g$=Qw(),ah=Kw(),v$=y0(),b$=function(t){p$(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.append=function(n){n.level<=this.getLogLevel()&&this._appendToConsole(n)},e.prototype._appendToConsole=function(n){var i=this.format(n);switch(n.level){case Xl.LogLevel.FATAL:case Xl.LogLevel.ERROR:{n.error?ah.getVirtualConsole().error(i,n.error):ah.getVirtualConsole().error(i);break}case Xl.LogLevel.WARN:{ah.getVirtualConsole().warn(i);break}case Xl.LogLevel.INFO:{ah.getVirtualConsole().info(i);break}case Xl.LogLevel.DEBUG:case Xl.LogLevel.TRACE:{ah.getVirtualConsole().debug(i);break}default:break}},e=m$([g$.Appender("Console")],e),e}(v$.LogAppender);yc.ConsoleAppender=b$});var Jw=j(Zw=>{Object.defineProperty(Zw,"__esModule",{value:!0});var _$=function(){function t(e){this._parents=new Set,this._name=e}return t.getMarker=function(e){return t._markers.hasOwnProperty(e)||(t._markers[e]=new t(e)),t._markers[e]},Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t.prototype.getParents=function(){var e=[];return this._parents.forEach(function(n){return e.push(n)}),e},t.prototype.hasParents=function(){return this._parents.size>0},t.prototype.remove=function(e){return this._parents.delete(e),this},t.prototype.setParents=function(){for(var e=[],n=0;n{Object.defineProperty(eC,"__esModule",{value:!0});var Zl=bc(),y$=Jw(),w$=function(){function t(e,n){this._appenders=n,this._logContext=e,this._logSequence=0,this._relative=new Date().getTime()}return t.prototype.log=function(e,n){for(var i=this,r=[],o=2;o{Object.defineProperty(ch,"__esModule",{value:!0});var C$=C0(),x$=D0();ch.MAIN_LOGGER="main";var tC=new Map;ch.addLogger=function(t,e){tC.set(t,e)};ch.getLogger=function(t,e){if(tC.has(t))return tC.get(t);var n=C$.getLoggerAppenderInstances(e.appenders).map(function(i){return i.appender.setLogLevel(e.level),i.appender.setLayout(e.layout),i});return new x$.Logger(t,n)}});var iA=j(Jl=>{var lh=Jl&&Jl.__assign||function(){return lh=Object.assign||function(t){for(var e,n=1,i=arguments.length;n{Object.defineProperty(sC,"__esModule",{value:!0});var M$=Tw();function T$(t){return function(e){return M$.addFilter(e,t),e}}sC.Filter=T$});var rA=j(I0=>{Object.defineProperty(I0,"__esModule",{value:!0});var A$=bc();kw();var nA=Symbol("logMarker");function R$(t){return function(e,n){Reflect.defineMetadata(nA,t,e,n)}}I0.LogMarker=R$;function O$(t,e){for(var n=[],i=2;i{Object.defineProperty(aC,"__esModule",{value:!0});var N$=function(){function t(e){this.configuration=e}return t}();aC.LogFilter=N$});var oA=j(wc=>{var F$=wc&&wc.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)r.hasOwnProperty(o)&&(i[o]=r[o])},t(e,n)};return function(e,n){t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),P$=wc&&wc.__decorate||function(t,e,n,i){var r=arguments.length,o=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};Object.defineProperty(wc,"__esModule",{value:!0});var L$=S0(),V$=k0(),B$=function(t){F$(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.isMatch=function(n){return n.marker?n.marker.name===this.configuration.marker||this._isParentMarkerMatch(n.marker):!1},e.prototype._isParentMarkerMatch=function(n){var i=this;return n.hasParents()?n.getParents().every(function(r){return r.name===i.configuration.marker||i._isParentMarkerMatch(r)}):!1},e=P$([L$.Filter("Marker")],e),e}(V$.LogFilter);wc.MarkerFilter=B$});var sA=j(Cc=>{var j$=Cc&&Cc.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)r.hasOwnProperty(o)&&(i[o]=r[o])},t(e,n)};return function(e,n){t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),H$=Cc&&Cc.__decorate||function(t,e,n,i){var r=arguments.length,o=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};Object.defineProperty(Cc,"__esModule",{value:!0});var z$=S0(),U$=k0(),q$=function(t){j$(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.isMatch=function(n){return n.level<=this.configuration.level},e=H$([z$.Filter("Threshold")],e),e}(U$.LogFilter);Cc.ThresholdFilter=q$});var bc=j(Li=>{function $$(t){for(var e in t)Li.hasOwnProperty(e)||(Li[e]=t[e])}Object.defineProperty(Li,"__esModule",{value:!0});kw();$$(iA());var W$=D0();Li.Logger=W$.Logger;var G$=nh();Li.LogLevel=G$.LogLevel;var Y$=y0();Li.LogAppender=Y$.LogAppender;var Q$=Xw();Li.ConsoleAppender=Q$.ConsoleAppender;var K$=Jw();Li.Marker=K$.Marker;var X$=Qw();Li.Appender=X$.Appender;var Z$=S0();Li.Filter=Z$.Filter;var aA=rA();Li.Log=aA.Log;Li.LogMarker=aA.LogMarker;var J$=Aw();Li.LogFilterAction=J$.LogFilterAction;var eW=k0();Li.LogFilter=eW.LogFilter;var tW=oA();Li.MarkerFilter=tW.MarkerFilter;var iW=sA();Li.ThresholdFilter=iW.ThresholdFilter});var C4=j((ike,w4)=>{var Hte="6.4.1";w4.exports=Hte});var bv=j((nke,x4)=>{var zte=function(t,e){var n=this;if(e||(e={}),n.qpm=e.qpm?parseInt(e.qpm,10):null,!n.qpm){var i=t.metaText?t.metaText.tempo:null;n.qpm=t.getBpm(i)}n.extraMeasuresAtBeginning=e.extraMeasuresAtBeginning?parseInt(e.extraMeasuresAtBeginning,10):0,n.beatCallback=e.beatCallback,n.eventCallback=e.eventCallback,n.lineEndCallback=e.lineEndCallback,n.lineEndAnticipation=e.lineEndAnticipation?parseInt(e.lineEndAnticipation,10):0,n.beatSubdivisions=e.beatSubdivisions?parseInt(e.beatSubdivisions,10):1,n.joggerTimer=null,n.replaceTarget=function(o){n.noteTimings=o.setTiming(n.qpm,n.extraMeasuresAtBeginning),o.noteTimings.length===0&&(n.noteTimings=o.setTiming(0,0)),n.lineEndCallback&&(n.lineEndTimings=Ute(o.noteTimings,n.lineEndAnticipation)),n.startTime=null,n.currentBeat=0,n.currentEvent=0,n.currentLine=0,n.currentTime=0,n.isPaused=!1,n.isRunning=!1,n.pausedPercent=null,n.justUnpaused=!1,n.newSeekPercent=0,n.lastTimestamp=0,n.noteTimings.length!==0&&(n.millisecondsPerBeat=1e3/(n.qpm/60)/n.beatSubdivisions,n.lastMoment=n.noteTimings[n.noteTimings.length-1].milliseconds,n.totalBeats=Math.round(n.lastMoment/n.millisecondsPerBeat))},n.replaceTarget(t),n.doTiming=function(o){if(n.lastTimestamp!==o&&(n.lastTimestamp=o,n.startTime||(n.startTime=o),!n.isPaused&&n.isRunning)){for(n.currentTime=o-n.startTime,n.currentTime+=16;n.noteTimings.length>n.currentEvent&&n.noteTimings[n.currentEvent].millisecondsn.currentLine&&n.lineEndTimings[n.currentLine].milliseconds=n.lastMoment)if(n.eventCallback){var u=n.eventCallback(null);n.shouldStop(u).then(function(d){d&&n.stop()})}else n.stop()}},n.shouldStop=function(o){return new Promise(function(s){if(!o)return s(!0);if(o==="continue")return s(!1);o.then&&o.then(function(a){s(a!=="continue")})})},n.doBeatCallback=function(o){if(n.beatCallback){for(var s=n.currentEvent;s=0&&n.noteTimings[s].left===null;)s--;c=n.noteTimings[s]}var l={},u={};if(c){l.top=c.top,l.height=c.height;var d=Math.max(0,o-n.startTime-c.milliseconds),h=a-c.milliseconds,f=c.endX-c.left,p=h?d*f/h:0;l.left=c.left+p,n.currentEvent===0&&c.milliseconds>o-n.startTime&&(l.left=void 0),u={timestamp:o,startTime:n.startTime,ev:c,endMs:a,offMs:d,offPx:p,gapMs:h,gapPx:f}}else u={timestamp:o,startTime:n.startTime};var m=n.startTime;if(n.beatCallback(n.currentBeat/n.beatSubdivisions,n.totalBeats/n.beatSubdivisions,n.lastMoment,l,u),m!==n.startTime)return o-n.startTime;n.currentBeat++}return null};var r=60;n.animationJogger=function(){n.isRunning&&(n.doTiming(performance.now()),n.joggerTimer=setTimeout(n.animationJogger,r))},n.start=function(o,s){if(n.isRunning=!0,n.isPaused&&(n.isPaused=!1,o===void 0&&(n.justUnpaused=!0)),o)n.setProgress(o,s);else if(o===0)n.reset();else if(n.pausedPercent!==null){var a=performance.now();n.currentTime=n.lastMoment*n.pausedPercent,n.startTime=a-n.currentTime,n.pausedPercent=null,n.reportNext=!0}requestAnimationFrame(n.doTiming),n.joggerTimer=setTimeout(n.animationJogger,r)},n.pause=function(){n.isPaused=!0;var o=performance.now();n.pausedPercent=(o-n.startTime)/n.lastMoment,n.isRunning=!1,n.joggerTimer&&(clearTimeout(n.joggerTimer),n.joggerTimer=null)},n.currentMillisecond=function(){return n.currentTime},n.reset=function(){n.currentBeat=0,n.currentEvent=0,n.currentLine=0,n.startTime=null,n.pausedPercent=null},n.stop=function(){n.pause(),n.reset()},n.setProgress=function(o,s){var a;switch(s){case"seconds":n.currentTime=o*1e3,n.currentTime<0&&(n.currentTime=0),n.currentTime>n.lastMoment&&(n.currentTime=n.lastMoment),a=n.currentTime/n.lastMoment;break;case"beats":n.currentTime=o*n.millisecondsPerBeat*n.beatSubdivisions,n.currentTime<0&&(n.currentTime=0),n.currentTime>n.lastMoment&&(n.currentTime=n.lastMoment),a=n.currentTime/n.lastMoment;break;default:a=o,a<0&&(a=0),a>1&&(a=1),n.currentTime=n.lastMoment*a;break}n.isRunning||(n.pausedPercent=a);var c=performance.now();n.startTime=c-n.currentTime;var l=n.currentEvent;for(n.currentEvent=0;n.noteTimings.length>n.currentEvent&&n.noteTimings[n.currentEvent].millisecondsn.currentLine&&n.lineEndTimings[n.currentLine].milliseconds+n.lineEndAnticipation=0&&n.noteTimings[n.currentEvent].type==="event"&&n.eventCallback(n.noteTimings[n.currentEvent]),n.lineEndCallback&&n.lineEndCallback(n.lineEndTimings[n.currentLine],n.noteTimings[n.currentEvent],{line:n.currentLine,endTimings:n.lineEndTimings}),n.joggerTimer=setTimeout(n.animationJogger,r)}};function Ute(t,e){for(var n=[],i=null,r=0;r{var qte=bv(),_v={};(function(){"use strict";var t,e;_v.startAnimation=function(n,i,r){t&&(t.stop(),t=void 0),r.showCursor&&(e=n.querySelector(".abcjs-cursor"),e||(e=document.createElement("DIV"),e.className="abcjs-cursor cursor",e.style.position="absolute",n.appendChild(e),n.style.position="relative"));function o(h){for(var f=0;f{var Dr={};Dr.clone=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e};Dr.cloneArray=function(t){for(var e=[],n=0;n=0&&t.lastIndexOf(e)===n};Dr.last=function(t){return t.length===0?null:t[t.length-1]};S4.exports=Dr});var Sf=j((ske,k4)=>{var I4=fn(),Qc={};(function(){"use strict";var t,e,n,i,r;Qc.initialize=function(S,w,M,T,J){t=S,e=w,n=M,i=T,r=J,o()};function o(){n.annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},n.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},n.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},n.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},n.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},n.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},n.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},n.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},n.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},n.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},n.wordsfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},i.formatting.composerfont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},i.formatting.subtitlefont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},i.formatting.tempofont={face:'"Times New Roman"',size:15,weight:"bold",style:"normal",decoration:"none"},i.formatting.titlefont={face:'"Times New Roman"',size:20,weight:"normal",style:"normal",decoration:"none"},i.formatting.footerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},i.formatting.headerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},i.formatting.voicefont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},i.formatting.tablabelfont={face:'"Trebuchet MS"',size:16,weight:"normal",style:"normal",decoration:"none"},i.formatting.tabnumberfont={face:'"Arial"',size:11,weight:"normal",style:"normal",decoration:"none"},i.formatting.tabgracefont={face:'"Arial"',size:8,weight:"normal",style:"normal",decoration:"none"},i.formatting.annotationfont=n.annotationfont,i.formatting.gchordfont=n.gchordfont,i.formatting.historyfont=n.historyfont,i.formatting.infofont=n.infofont,i.formatting.measurefont=n.measurefont,i.formatting.partsfont=n.partsfont,i.formatting.repeatfont=n.repeatfont,i.formatting.textfont=n.textfont,i.formatting.tripletfont=n.tripletfont,i.formatting.vocalfont=n.vocalfont,i.formatting.wordsfont=n.wordsfont}var s={gchordfont:!0,measurefont:!0,partsfont:!0,annotationfont:!0,composerfont:!0,historyfont:!0,infofont:!0,subtitlefont:!0,textfont:!0,titlefont:!0,voicefont:!0},a=function(S){switch(S){case"Arial-Italic":return{face:"Arial",weight:"normal",style:"italic",decoration:"none"};case"Arial-Bold":return{face:"Arial",weight:"bold",style:"normal",decoration:"none"};case"Bookman-Demi":return{face:"Bookman,serif",weight:"bold",style:"normal",decoration:"none"};case"Bookman-DemiItalic":return{face:"Bookman,serif",weight:"bold",style:"italic",decoration:"none"};case"Bookman-Light":return{face:"Bookman,serif",weight:"normal",style:"normal",decoration:"none"};case"Bookman-LightItalic":return{face:"Bookman,serif",weight:"normal",style:"italic",decoration:"none"};case"Courier":return{face:'"Courier New"',weight:"normal",style:"normal",decoration:"none"};case"Courier-Oblique":return{face:'"Courier New"',weight:"normal",style:"italic",decoration:"none"};case"Courier-Bold":return{face:'"Courier New"',weight:"bold",style:"normal",decoration:"none"};case"Courier-BoldOblique":return{face:'"Courier New"',weight:"bold",style:"italic",decoration:"none"};case"AvantGarde-Book":return{face:"AvantGarde,Arial",weight:"normal",style:"normal",decoration:"none"};case"AvantGarde-BookOblique":return{face:"AvantGarde,Arial",weight:"normal",style:"italic",decoration:"none"};case"AvantGarde-Demi":case"Avant-Garde-Demi":return{face:"AvantGarde,Arial",weight:"bold",style:"normal",decoration:"none"};case"AvantGarde-DemiOblique":return{face:"AvantGarde,Arial",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Oblique":return{face:"Helvetica",weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Bold":return{face:"Helvetica",weight:"bold",style:"normal",decoration:"none"};case"Helvetica-BoldOblique":return{face:"Helvetica",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Narrow":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"normal",decoration:"none"};case"Helvetica-Narrow-Oblique":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Narrow-Bold":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"normal",decoration:"none"};case"Helvetica-Narrow-BoldOblique":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"italic",decoration:"none"};case"Palatino-Roman":return{face:"Palatino",weight:"normal",style:"normal",decoration:"none"};case"Palatino-Italic":return{face:"Palatino",weight:"normal",style:"italic",decoration:"none"};case"Palatino-Bold":return{face:"Palatino",weight:"bold",style:"normal",decoration:"none"};case"Palatino-BoldItalic":return{face:"Palatino",weight:"bold",style:"italic",decoration:"none"};case"NewCenturySchlbk-Roman":return{face:'"New Century",serif',weight:"normal",style:"normal",decoration:"none"};case"NewCenturySchlbk-Italic":return{face:'"New Century",serif',weight:"normal",style:"italic",decoration:"none"};case"NewCenturySchlbk-Bold":return{face:'"New Century",serif',weight:"bold",style:"normal",decoration:"none"};case"NewCenturySchlbk-BoldItalic":return{face:'"New Century",serif',weight:"bold",style:"italic",decoration:"none"};case"Times":case"Times-Roman":case"Times-Narrow":case"Times-Courier":case"Times-New-Roman":return{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none"};case"Times-Italic":case"Times-Italics":return{face:'"Times New Roman"',weight:"normal",style:"italic",decoration:"none"};case"Times-Bold":return{face:'"Times New Roman"',weight:"bold",style:"normal",decoration:"none"};case"Times-BoldItalic":return{face:'"Times New Roman"',weight:"bold",style:"italic",decoration:"none"};case"ZapfChancery-MediumItalic":return{face:'"Zapf Chancery",cursive,serif',weight:"normal",style:"normal",decoration:"none"};default:return null}},c=function(S,w,M,T,J){function ye(){var Qt=parseInt(S[0].token);return S.shift(),w?S.length===0?{face:w.face,weight:w.weight,style:w.style,decoration:w.decoration,size:Qt}:S.length===1&&S[0].token==="box"&&s[J]?{face:w.face,weight:w.weight,style:w.style,decoration:w.decoration,size:Qt,box:!0}:(e("Extra parameters in font definition.",M,T),{face:w.face,weight:w.weight,style:w.style,decoration:w.decoration,size:Qt}):(e("Can't set just the size of the font since there is no default value.",M,T),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:Qt})}if(S[0].token==="*"){if(S.shift(),S[0].type==="number")return ye();e("Expected font size number after *.",M,T)}if(S[0].type==="number")return ye();for(var Ae=[],Qe,Pe="normal",Mt="normal",ci="none",it=!1,ti="face",Tt=!1;S.length;){var Ce=S.shift(),Dt=Ce.token.toLowerCase();switch(ti){case"face":Tt||Dt!=="utf"&&Ce.type!=="number"&&Dt!=="bold"&&Dt!=="italic"&&Dt!=="underline"&&Dt!=="box"?Ae.length>0&&Ce.token==="-"?(Tt=!0,Ae[Ae.length-1]=Ae[Ae.length-1]+Ce.token):Tt?(Tt=!1,Ae[Ae.length-1]=Ae[Ae.length-1]+Ce.token):Ae.push(Ce.token):Ce.type==="number"?(Qe?e("Font size specified twice in font definition.",M,T):Qe=Ce.token,ti="modifier"):Dt==="bold"?Pe="bold":Dt==="italic"?Mt="italic":Dt==="underline"?ci="underline":Dt==="box"?(s[J]?it=!0:e(`This font style doesn't support "box"`,M,T),ti="finished"):Dt==="utf"?(Ce=S.shift(),ti="size"):e("Unknown parameter "+Ce.token+" in font definition.",M,T);break;case"size":Ce.type==="number"?Qe?e("Font size specified twice in font definition.",M,T):Qe=Ce.token:e("Expected font size in font definition.",M,T),ti="modifier";break;case"modifier":Dt==="bold"?Pe="bold":Dt==="italic"?Mt="italic":Dt==="underline"?ci="underline":Dt==="box"?(s[J]?it=!0:e(`This font style doesn't support "box"`,M,T),ti="finished"):e("Unknown parameter "+Ce.token+" in font definition.",M,T);break;case"finished":e('Extra characters found after "box" in font definition.',M,T);break}}Qe===void 0?w?Qe=w.size:(e("Must specify the size of the font since there is no default value.",M,T),Qe=12):Qe=parseFloat(Qe),Ae=Ae.join(" "),Ae===""&&(w?Ae=w.face:(e("Must specify the name of the font since there is no default value.",M,T),Ae="sans-serif"));var At=a(Ae),pt={};return At?(pt.face=At.face,pt.weight=At.weight,pt.style=At.style,pt.decoration=At.decoration,pt.size=Qe,it&&(pt.box=!0),pt):(pt.face=Ae,pt.weight=Pe,pt.style=Mt,pt.decoration=ci,pt.size=Qe,it&&(pt.box=!0),pt)},l=function(S,w,M){return w.length===0?'Directive "'+S+'" requires a font as a parameter.':(n[S]=c(w,n[S],M,0,S),n.is_in_header&&(i.formatting[S]=n[S]),null)},u=function(S,w,M){return w.length===0?'Directive "'+S+'" requires a font as a parameter.':(i.formatting[S]=c(w,i.formatting[S],M,0,S),null)},d=function(S,w){var M="";w.forEach(function(J){M+=J.token});var T=parseFloat(M);if(isNaN(T)||T===0)return'Directive "'+S+'" requires a number as a parameter.';i.formatting.scale=T},h=["acoustic-bass-drum","bass-drum-1","side-stick","acoustic-snare","hand-clap","electric-snare","low-floor-tom","closed-hi-hat","high-floor-tom","pedal-hi-hat","low-tom","open-hi-hat","low-mid-tom","hi-mid-tom","crash-cymbal-1","high-tom","ride-cymbal-1","chinese-cymbal","ride-bell","tambourine","splash-cymbal","cowbell","crash-cymbal-2","vibraslap","ride-cymbal-2","hi-bongo","low-bongo","mute-hi-conga","open-hi-conga","low-conga","high-timbale","low-timbale","high-agogo","low-agogo","cabasa","maracas","short-whistle","long-whistle","short-guiro","long-guiro","claves","hi-wood-block","low-wood-block","mute-cuica","open-cuica","mute-triangle","open-triangle"],f=function(S){var w=S.split(/\s+/);if(w.length!==2&&w.length!==3)return{error:'Expected parameters "abc-note", "drum-sound", and optionally "note-head"'};var M=w[0],T=parseInt(w[1],10);if((isNaN(T)||T<35||T>81)&&w[1]&&(T=h.indexOf(w[1].toLowerCase())+35),isNaN(T)||T<35||T>81)return{error:'Expected drum name, received "'+w[1]+'"'};var J={sound:T};return w.length===3&&(J.noteHead=w[2]),{key:M,value:J}},p=function(S,w){var M=t.getMeasurement(w);return M.used===0||w.length!==0?{error:'Directive "'+S+'" requires a measurement as a parameter.'}:M.value},m=function(S,w){var M=t.getMeasurement(w);return M.used===0||w.length!==0?'Directive "'+S+'" requires a measurement as a parameter.':(i.formatting[S]=M.value,null)},v=function(S,w,M,T,J){if(M.length!==1||M[0].type!=="number")return'Directive "'+w+'" requires a number as a parameter.';var ye=M[0].intt;return T!==void 0&&yeJ?'Directive "'+w+'" requires a number less than or equal to '+J+" as a parameter.":(n[S]=ye,null)},b=function(S,w,M){if(M.length===1&&(M[0].token==="true"||M[0].token==="false"))return n[S]=M[0].token==="true",null;var T=v(S,w,M,0,1);return T!==null?T:(n[S]=n[S]===1,null)},C=function(S,w,M,T){if(M.length!==1)return'Directive "'+w+'" requires one of [ '+T.join(", ")+" ] as a parameter.";for(var J=M[0].token,ye=!1,Ae=0;!ye&&Ae=0)S.length!==0&&e("Unexpected parameter in MIDI "+T,M,0);else if(_.indexOf(T)>=0)S.length!==1?e("Expected one parameter in MIDI "+T,M,0):J.push(S[0].token);else if(y.indexOf(T)>=0)S.length!==1?e("Expected one parameter in MIDI "+T,M,0):S[0].type!=="number"?e("Expected one integer parameter in MIDI "+T,M,0):J.push(S[0].intt);else if(x.indexOf(T)>=0)S.length!==1&&S.length!==2?e("Expected one or two parameters in MIDI "+T,M,0):S[0].type!=="number"||S.length===2&&S[1].type!=="number"?e("Expected integer parameter in MIDI "+T,M,0):(J.push(S[0].intt),S.length===2&&J.push(S[1].intt));else if(F.indexOf(T)>=0)S.length!==2?e("Expected two parameters in MIDI "+T,M,0):S[0].type!=="number"||S[1].type!=="number"?e("Expected two integer parameters in MIDI "+T,M,0):(J.push(S[0].intt),J.push(S[1].intt));else if(Q.indexOf(T)>=0)S.length!==2?e("Expected two parameters in MIDI "+T,M,0):S[0].type!=="alpha"||S[1].type!=="number"?e("Expected one string and one integer parameters in MIDI "+T,M,0):(J.push(S[0].token),J.push(S[1].intt));else if(T==="drummap")S.length===2&&S[0].type==="alpha"&&S[1].type==="number"?(w.formatting||(w.formatting={}),w.formatting.midi||(w.formatting.midi={}),w.formatting.midi.drummap||(w.formatting.midi.drummap={}),w.formatting.midi.drummap[S[0].token]=S[1].intt,J=w.formatting.midi.drummap):S.length===3&&S[0].type==="punct"&&S[1].type==="alpha"&&S[2].type==="number"?(w.formatting||(w.formatting={}),w.formatting.midi||(w.formatting.midi={}),w.formatting.midi.drummap||(w.formatting.midi.drummap={}),w.formatting.midi.drummap[S[0].token+S[1].token]=S[2].intt,J=w.formatting.midi.drummap):e("Expected one note name and one integer parameter in MIDI "+T,M,0);else if(G.indexOf(T)>=0)S.length!==3||S[0].type!=="number"||S[1].token!=="/"||S[2].type!=="number"?e("Expected fraction parameter in MIDI "+T,M,0):(J.push(S[0].intt),J.push(S[2].intt));else if(L.indexOf(T)>=0)S.length!==4?e("Expected four parameters in MIDI "+T,M,0):S[0].type!=="number"||S[1].type!=="number"||S[2].type!=="number"||S[3].type!=="number"?e("Expected four integer parameters in MIDI "+T,M,0):(J.push(S[0].intt),J.push(S[1].intt),J.push(S[2].intt),J.push(S[3].intt));else if(P.indexOf(T)>=0)S.length!==5?e("Expected five parameters in MIDI "+T,M,0):S[0].type!=="number"||S[1].type!=="number"||S[2].type!=="number"||S[3].type!=="number"||S[4].type!=="number"?e("Expected five integer parameters in MIDI "+T,M,0):(J.push(S[0].intt),J.push(S[1].intt),J.push(S[2].intt),J.push(S[3].intt),J.push(S[4].intt));else if(x.indexOf(T)>=0)S.length!==1||S.length!==4?e("Expected one or two parameters in MIDI "+T,M,0):S[0].type!=="number"?e("Expected integer parameter in MIDI "+T,M,0):S.length===4?(S[1].token!=="octave"&&e("Expected octave parameter in MIDI "+T,M,0),S[2].token!=="="&&e("Expected octave parameter in MIDI "+T,M,0),S[3].type!=="number"&&e("Expected integer parameter for octave in MIDI "+T,M,0)):(J.push(S[0].intt),S.length===4&&J.push(S[3].intt));else if(W.indexOf(T)>=0)if(S.length<2)e("Expected string parameter and at least one integer parameter in MIDI "+T,M,0);else if(S[0].type!=="alpha")e("Expected string parameter and at least one integer parameter in MIDI "+T,M,0);else{var ye=S.shift();for(J.push(ye.token);S.length>0;)ye=S.shift(),ye.type!=="number"&&e("Expected integer parameter in MIDI "+T,M,0),J.push(ye.intt)}r.hasBeginMusic()?r.appendElement("midi",-1,-1,{cmd:T,params:J}):(w.formatting.midi===void 0&&(w.formatting.midi={}),w.formatting.midi[T]=J)};Qc.parseFontChangeLine=function(S){S=S.replace(/\$\$/g,"");var w=S.split("$");if(w.length>1&&n.setfont){var M=[];w[0]!==""&&M.push({text:w[0]});for(var T=1;T0&&n.ignoredDecorations.push(M.substring(0,M.indexOf(" "))),e("Decoration redefinition ignored",S,0);break;case"text":var At=t.translateString(M);r.addText(Qc.parseFontChangeLine(At),{startChar:n.iChar,endChar:n.iChar+M.length+7});break;case"center":var pt=t.translateString(M);r.addCentered(Qc.parseFontChangeLine(pt));break;case"font":break;case"setfont":var Qt=t.tokenize(M,0,M.length);if(Qt.length>=4&&Qt[0].token==="-"&&Qt[1].type==="number"){var _o=parseInt(Qt[1].token);_o>=1&&_o<=9&&(n.setfont||(n.setfont=[]),Qt.shift(),Qt.shift(),n.setfont[_o]=c(Qt,n.setfont[_o],S,0,"setfont"))}break;case"gchordfont":case"partsfont":case"tripletfont":case"vocalfont":case"textfont":case"annotationfont":case"historyfont":case"infofont":case"measurefont":case"repeatfont":case"wordsfont":return l(T,w,S);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return u(T,w,S);case"barlabelfont":case"barnumberfont":case"barnumfont":return l("measurefont",w,S);case"staves":case"score":n.score_is_present=!0;for(var Fr=function(ji,Hi,ll,vu,ep){(Hi||n.staves.length===0)&&n.staves.push({index:n.staves.length,numVoices:0});var or=I4.last(n.staves);ll!==void 0&&or.bracket===void 0&&(or.bracket=ll),vu!==void 0&&or.brace===void 0&&(or.brace=vu),ep&&(or.connectBarLines="end"),n.voices[ji]===void 0&&(n.voices[ji]={staffNum:or.index,index:or.numVoices},or.numVoices++)},Ln=!1,Ci=!1,Ji=!1,Vn=!1,xi=!1,Le=!1,V=!1,k,N=function(){if(V=!0,k){var ji="start";k.staffNum>0&&(n.staves[k.staffNum-1].connectBarLines==="start"||n.staves[k.staffNum-1].connectBarLines==="continue")&&(ji="continue"),n.staves[k.staffNum].connectBarLines=ji}};w.length;){var O=w.shift();switch(O.token){case"(":Ln?e("Can't nest parenthesis in %%score",S,O.start):(Ln=!0,Vn=!0);break;case")":!Ln||Vn?e("Unexpected close parenthesis in %%score",S,O.start):Ln=!1;break;case"[":Ci?e("Can't nest brackets in %%score",S,O.start):(Ci=!0,xi=!0);break;case"]":!Ci||xi?e("Unexpected close bracket in %%score",S,O.start):(Ci=!1,n.staves[k.staffNum].bracket="end");break;case"{":Ji?e("Can't nest braces in %%score",S,O.start):(Ji=!0,Le=!0);break;case"}":!Ji||Le?e("Unexpected close brace in %%score",S,O.start):(Ji=!1,n.staves[k.staffNum].brace="end");break;case"|":N();break;default:for(var $="";(O.type==="alpha"||O.type==="number")&&($+=O.token,O.continueId);)O=w.shift();var de=!Ln||Vn,qe=xi?"start":Ci?"continue":void 0,ue=Le?"start":Ji?"continue":void 0;Fr($,de,qe,ue,V),Vn=!1,xi=!1,Le=!1,V=!1,k=n.voices[$],T==="staves"&&N();break}}break;case"newpage":var he=t.getInt(M);r.addNewPage(he.digits===0?-1:he.value);break;case"abc":var fe=M.split(" ");switch(fe[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var Ke=fe.shift();r.addMetaText(T+Ke,fe.join(" "),{startChar:n.iChar,endChar:n.iChar+M.length+5});break;default:return"Unknown directive: "+T+fe[0]}break;case"header":case"footer":var je=t.getMeat(M,0,M.length);je=M.substring(je.start,je.end),je[0]==='"'&&je[je.length-1]==='"'&&(je=je.substring(1,je.length-1));var Be=je.split(" "),Ot={};Be.length===1?Ot={left:"",center:Be[0],right:""}:Be.length===2?Ot={left:Be[0],center:Be[1],right:""}:Ot={left:Be[0],center:Be[1],right:Be[2]},Be.length>3&&e("Too many tabs in "+T+": "+Be.length+" found.",M,0),r.addMetaTextObj(T,Ot,{startChar:n.iChar,endChar:n.iChar+S.length});break;case"midi":var mn=t.tokenize(M,0,M.length,!0);mn.length>0&&mn[0].token==="="&&mn.shift(),mn.length===0?e("Expected midi command",M,0):Y(mn,i,M);break;case"percmap":var gt=f(M);gt.error?e(gt.error,S,8):(i.formatting.percmap||(i.formatting.percmap={}),i.formatting.percmap[gt.key]=gt.value);break;case"map":case"playtempo":case"auquality":case"continuous":case"nobarcheck":i.formatting[T]=M;break;default:return"Unknown directive: "+T}return null},Qc.globalFormatting=function(S){for(var w in S)if(S.hasOwnProperty(w)){var M=""+S[w],T=t.tokenize(M,0,M.length),J;switch(w){case"titlefont":case"gchordfont":case"composerfont":case"footerfont":case"headerfont":case"historyfont":case"infofont":case"measurefont":case"partsfont":case"repeatfont":case"subtitlefont":case"tempofont":case"textfont":case"voicefont":case"tripletfont":case"vocalfont":case"wordsfont":case"annotationfont":case"tablabelfont":case"tabnumberfont":case"tabgracefont":l(w,T,M);break;case"scale":d(w,T);break;case"partsbox":J=b("partsBox",w,T),J!==null&&e(J),n.partsfont.box=n.partsBox;break;case"freegchord":J=b("freegchord",w,T),J!==null&&e(J);break;case"fontboxpadding":(T.length!==1||T[0].type!=="number")&&e('Directive "'+w+'" requires a number as a parameter.'),i.formatting.fontboxpadding=T[0].floatt;break;case"stafftopmargin":(T.length!==1||T[0].type!=="number")&&e('Directive "'+w+'" requires a number as a parameter.'),i.formatting.stafftopmargin=T[0].floatt;break;case"stretchlast":var ye=ae(T);if(ye.value!==void 0&&(i.formatting.stretchlast=ye.value),ye.error)return ye.error;break;default:e("Formatting directive unrecognized: ",w,0)}}};function ae(S){if(S.length===0)return{value:1};if(S.length===1)if(S[0].type==="number"){if(S[0].floatt>=0||S[0].floatt<=1)return{value:S[0].floatt}}else{if(S[0].token==="false")return{value:0};if(S[0].token==="true")return{value:1}}return{error:"Directive stretchlast requires zero or one parameter: false, true, or number between 0 and 1 (received "+S[0].token+")"}}})();k4.exports=Qc});var A4=j((ake,T4)=>{var UD={},M4=["C,,,","D,,,","E,,,","F,,,","G,,,","A,,,","B,,,","C,,","D,,","E,,","F,,","G,,","A,,","B,,","C,","D,","E,","F,","G,","A,","B,","C","D","E","F","G","A","B","c","d","e","f","g","a","b","c'","d'","e'","f'","g'","a'","b'","c''","d''","e''","f''","g''","a''","b''","c'''","d'''","e'''","f'''","g'''","a'''","b'''"];UD.pitchIndex=function(t){return M4.indexOf(t)};UD.noteName=function(t){return M4[t]};T4.exports=UD});var qD=j((cke,R4)=>{var yv=["C","C\u266F","D","D\u266F","E","F","F\u266F","G","G\u266F","A","A\u266F","B"],wv=["C","D\u266D","D","E\u266D","E","F","G\u266D","G","A\u266D","A","B\u266D","B"],Cv=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],xv=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"];function $te(t,e,n,i){if(!e||e%12===0)return t;for(;e<0;)e+=12;e>11&&(e=e%12);var r=t.match(/^([A-G][b#♭♯]?)([^\/]+)?\/?([A-G][b#♭♯]?)?(.+)?/);if(!r)return t;var o=r[1],s=r[2],a=r[3],c=r[4],l=yv.indexOf(o);if(l<0&&(l=wv.indexOf(o)),l<0&&(l=Cv.indexOf(o)),l<0&&(l=xv.indexOf(o)),l<0)return t;if(l+=e,l=l%12,n?i?t=xv[l]:t=wv[l]:i?t=Cv[l]:t=yv[l],s&&(t+=s),a){var l=yv.indexOf(a);l<0&&(l=wv.indexOf(a)),l<0&&(l=Cv.indexOf(a)),l<0&&(l=xv.indexOf(a)),t+="/",l>=0?(l+=e,l=l%12,n?i?t+=xv[l]:t+=wv[l]:i?t+=Cv[l]:t+=yv[l]):t+=a}return c&&(t+=c),t}R4.exports=$te});var $D=j((lke,O4)=>{var Kc={C:{modes:["CMaj","Amin","Am","GMix","DDor","EPhr","FLyd","BLoc"],stepsFromC:0},Db:{modes:["DbMaj","Bbmin","Bbm","AbMix","EbDor","FPhr","GbLyd","CLoc"],stepsFromC:1},D:{modes:["DMaj","Bmin","Bm","AMix","EDor","F#Phr","GLyd","C#Loc"],stepsFromC:2},Eb:{modes:["EbMaj","Cmin","Cm","BbMix","FDor","GPhr","AbLyd","DLoc"],stepsFromC:3},E:{modes:["EMaj","C#min","C#m","BMix","F#Dor","G#Phr","ALyd","D#Loc"],stepsFromC:4},F:{modes:["FMaj","Dmin","Dm","CMix","GDor","APhr","BbLyd","ELoc"],stepsFromC:5},Gb:{modes:["GbMaj","Ebmin","Ebm","DbMix","AbDor","BbPhr","CbLyd","FLoc"],stepsFromC:6},G:{modes:["GMaj","Emin","Em","DMix","ADor","BPhr","CLyd","F#Loc"],stepsFromC:7},Ab:{modes:["AbMaj","Fmin","Fm","EbMix","BbDor","CPhr","DbLyd","GLoc"],stepsFromC:8},A:{modes:["AMaj","F#min","F#m","EMix","BDor","C#Phr","DLyd","G#Loc"],stepsFromC:9},Bb:{modes:["BbMaj","Gmin","Gm","FMix","CDor","DPhr","EbLyd","ALoc"],stepsFromC:10},B:{modes:["BMaj","G#min","G#m","F#Mix","C#Dor","D#Phr","ELyd","A#Loc"],stepsFromC:11},"C#":{modes:["C#Maj","A#min","A#m","G#Mix","D#Dor","E#Phr","F#Lyd","B#Loc"],stepsFromC:1},"F#":{modes:["F#Maj","D#min","D#m","C#Mix","G#Dor","A#Phr","BLyd","E#Loc"],stepsFromC:6},Cb:{modes:["CbMaj","Abmin","Abm","GbMix","DbDor","EbPhr","FbLyd","BbLoc"],stepsFromC:11}},If=null;function Wte(){If={};for(var t=Object.keys(Kc),e=0;e{var{relativeMajor:Kte}=$D(),Xc={acc:"sharp",note:"f"},Zd={acc:"sharp",note:"c"},kf={acc:"sharp",note:"g"},Dv={acc:"sharp",note:"d"},WD={acc:"sharp",note:"A"},N4={acc:"sharp",note:"e"},Xte={acc:"sharp",note:"B"},Er={acc:"flat",note:"B"},Zo={acc:"flat",note:"e"},$a={acc:"flat",note:"A"},Mf={acc:"flat",note:"d"},GD={acc:"flat",note:"G"},F4={acc:"flat",note:"c"},Zte={acc:"flat",note:"F"},Jte={"C#":[Xc,Zd,kf,Dv,WD,N4,Xte],"F#":[Xc,Zd,kf,Dv,WD,N4],B:[Xc,Zd,kf,Dv,WD],E:[Xc,Zd,kf,Dv],A:[Xc,Zd,kf],D:[Xc,Zd],G:[Xc],C:[],F:[Er],Bb:[Er,Zo],Eb:[Er,Zo,$a],Cm:[Er,Zo,$a],Ab:[Er,Zo,$a,Mf],Db:[Er,Zo,$a,Mf,GD],Gb:[Er,Zo,$a,Mf,GD,F4],Cb:[Er,Zo,$a,Mf,GD,F4,Zte],"A#":[Er,Zo],"B#":[],"D#":[Er,Zo,$a],"E#":[Er],"G#":[Er,Zo,$a,Mf],none:[]};function eie(t){var e=Jte[Kte(t)];return e?JSON.parse(JSON.stringify(e)):null}P4.exports=eie});var XD=j((uke,B4)=>{var L4=A4(),tie=qD(),QD=YD(),Ev={},iie={C:0,"C#":1,Db:1,D:2,"D#":3,Eb:3,E:4,F:5,"F#":6,Gb:6,G:7,"G#":8,Ab:8,A:9,"A#":10,Bb:10,B:11},nie=["C","Db","D","Eb","E","F","F#","G","Ab","A","Bb","B"],rie=["C","C#","D","D#","E","F","F#","G","G#","A","Bb","B"];Ev.keySignature=function(t,e,n,i,r){if(t.clef.type==="perc"||t.clef.type==="none")return{accidentals:QD(e),root:n,acc:i};r||(r=0),t.localTransposeVerticalMovement=0,t.localTransposePreferFlats=!1;var o=QD(e);if(!o)return t.key;if(t.localTranspose=(t.globalTranspose?t.globalTranspose:0)+r,!t.localTranspose)return{accidentals:o,root:n,acc:i};if(t.globalTransposeOrigKeySig=o,t.localTranspose%12===0)return t.localTransposeVerticalMovement=t.localTranspose/12*7,{accidentals:o,root:n,acc:i};var s=e[0];e[1]==="b"||e[1]==="#"?(s+=e[1],e=e.substr(2)):e=e.substr(1);var a=iie[s],c=a!==void 0;c||(a=0,s="C",e="");for(var l=a+t.localTranspose;l<0;)l+=12;l>11&&(l=l%12);var u=e[0]==="m"?rie[l]:nie[l],d=u+e,h=QD(d);h.length>0&&h[0].acc==="flat"&&(t.localTransposePreferFlats=!0);var f=d.charCodeAt(0)-s.charCodeAt(0);return t.localTranspose>0?(f<0||f===0&&(s[1]==="#"||d[1]==="b"))&&(f+=7):t.localTranspose<0&&(f>0||f===0&&(s[1]==="b"||d[1]==="#"))&&(f-=7),t.localTranspose>0?t.localTransposeVerticalMovement=f+Math.floor(t.localTranspose/12)*7:t.localTransposeVerticalMovement=f+Math.ceil(t.localTranspose/12)*7,c?{accidentals:h,root:u[0],acc:u.length>1?u[1]:""}:{accidentals:[],root:n,acc:i}};Ev.chordName=function(t,e){return tie(e,t.localTranspose,t.localTransposePreferFlats,t.freegchord)};var V4=["c","d","e","f","g","a","b"];function oie(t,e,n,i,r){for(var o=V4[(t+49)%7],s=0,a=0;a2&&(e++,f-=u==="b"||u==="e"?1:2),[e,f]}var KD={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},sie={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"},aie={"-2":"__","-1":"_",0:"=",1:"^",2:"^^"};Ev.note=function(t,e){if(!(!t.localTranspose||t.clef.type==="perc")){var n=e.pitch;if(t.localTransposeVerticalMovement&&(e.pitch=e.pitch+t.localTransposeVerticalMovement,e.name)){var i=e.accidental?e.name.substring(1):e.name,r=e.accidental?e.name[0]:"",o=L4.pitchIndex(i);e.name=r+L4.noteName(o+t.localTransposeVerticalMovement)}if(e.accidental){var s=oie(n,e.pitch,e.accidental,t.globalTransposeOrigKeySig,t.targetKey);e.pitch=s[0],e.accidental=sie[s[1]],e.name&&(e.name=aie[s[1]]+e.name.replace(/[_^=]/g,""))}}};B4.exports=Ev});var Sv=j((hke,z4)=>{var j4=fn(),H4=Sf(),cie=XD(),Fn={};(function(){var t,e,n,i,r;Fn.initialize=function(d,h,f,p,m){t=d,e=h,n=f,i=p,r=m},Fn.standardKey=function(d,h,f,p){return cie.keySignature(n,d,h,f,p)};var o={treble:{clef:"treble",pitch:4,mid:0},"treble+8":{clef:"treble+8",pitch:4,mid:0},"treble-8":{clef:"treble-8",pitch:4,mid:0},"treble^8":{clef:"treble+8",pitch:4,mid:0},treble_8:{clef:"treble-8",pitch:4,mid:0},treble1:{clef:"treble",pitch:2,mid:2},treble2:{clef:"treble",pitch:4,mid:0},treble3:{clef:"treble",pitch:6,mid:-2},treble4:{clef:"treble",pitch:8,mid:-4},treble5:{clef:"treble",pitch:10,mid:-6},perc:{clef:"perc",pitch:6,mid:0},none:{clef:"none",mid:0},bass:{clef:"bass",pitch:8,mid:-12},"bass+8":{clef:"bass+8",pitch:8,mid:-12},"bass-8":{clef:"bass-8",pitch:8,mid:-12},"bass^8":{clef:"bass+8",pitch:8,mid:-12},bass_8:{clef:"bass-8",pitch:8,mid:-12},"bass+16":{clef:"bass",pitch:8,mid:-12},"bass-16":{clef:"bass",pitch:8,mid:-12},"bass^16":{clef:"bass",pitch:8,mid:-12},bass_16:{clef:"bass",pitch:8,mid:-12},bass1:{clef:"bass",pitch:2,mid:-6},bass2:{clef:"bass",pitch:4,mid:-8},bass3:{clef:"bass",pitch:6,mid:-10},bass4:{clef:"bass",pitch:8,mid:-12},bass5:{clef:"bass",pitch:10,mid:-14},tenor:{clef:"alto",pitch:8,mid:-8},tenor1:{clef:"alto",pitch:2,mid:-2},tenor2:{clef:"alto",pitch:4,mid:-4},tenor3:{clef:"alto",pitch:6,mid:-6},tenor4:{clef:"alto",pitch:8,mid:-8},tenor5:{clef:"alto",pitch:10,mid:-10},alto:{clef:"alto",pitch:6,mid:-6},alto1:{clef:"alto",pitch:2,mid:-2},alto2:{clef:"alto",pitch:4,mid:-4},alto3:{clef:"alto",pitch:6,mid:-6},alto4:{clef:"alto",pitch:8,mid:-8},alto5:{clef:"alto",pitch:10,mid:-10},"alto+8":{clef:"alto+8",pitch:6,mid:-6},"alto-8":{clef:"alto-8",pitch:6,mid:-6},"alto^8":{clef:"alto+8",pitch:6,mid:-6},alto_8:{clef:"alto-8",pitch:6,mid:-6}},s=function(d,h){var f=o[d],p=f?f.mid:0;return p+h};Fn.fixClef=function(d){var h=o[d.type];h&&(d.clefPos=h.pitch,d.type=h.clef)},Fn.deepCopyKey=function(d){var h={accidentals:[],root:d.root,acc:d.acc,mode:d.mode};return d.accidentals.forEach(function(f){h.accidentals.push(j4.clone(f))}),h};var a={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};Fn.addPosToKey=function(d,h){var f=d.verticalPos;h.accidentals.forEach(function(p){var m=a[p.note];m=m-f,p.verticalPos=m}),h.impliedNaturals&&h.impliedNaturals.forEach(function(p){var m=a[p.note];m=m-f,p.verticalPos=m}),f<-10?(h.accidentals.forEach(function(p){p.verticalPos-=7,(p.verticalPos>=11||p.verticalPos===10&&p.acc==="flat")&&(p.verticalPos-=7),p.note==="A"&&p.acc==="sharp"&&(p.verticalPos-=7),(p.note==="G"||p.note==="F")&&p.acc==="flat"&&(p.verticalPos-=7)}),h.impliedNaturals&&h.impliedNaturals.forEach(function(p){p.verticalPos-=7,(p.verticalPos>=11||p.verticalPos===10&&p.acc==="flat")&&(p.verticalPos-=7),p.note==="A"&&p.acc==="sharp"&&(p.verticalPos-=7),(p.note==="G"||p.note==="F")&&p.acc==="flat"&&(p.verticalPos-=7)})):f<-4?(h.accidentals.forEach(function(p){p.verticalPos-=7,f===-8&&(p.note==="f"||p.note==="g")&&p.acc==="sharp"&&(p.verticalPos-=7)}),h.impliedNaturals&&h.impliedNaturals.forEach(function(p){p.verticalPos-=7,f===-8&&(p.note==="f"||p.note==="g")&&p.acc==="sharp"&&(p.verticalPos-=7)})):f>=7&&(h.accidentals.forEach(function(p){p.verticalPos+=7}),h.impliedNaturals&&h.impliedNaturals.forEach(function(p){p.verticalPos+=7}))},Fn.fixKey=function(d,h){var f=j4.clone(h);return Fn.addPosToKey(d,f),f};var c=function(d){var h=0,f=d[h++];(f==="^"||f==="_")&&(f=d[h++]);var p=a[f];for(p===void 0&&(p=6);h0){p.foundKey=!0;var v="",b="";f[0].token.length>1?f[0].token=f[0].token.substring(1):f.shift();var C=m.token;if(f.length>0){var E=t.getSharpFlat(f[0].token);if(E.len>0&&(f[0].token.length>1?f[0].token=f[0].token.substring(1):f.shift(),C+=E.token,v=E.token),f.length>0){var _=t.getMode(f[0].token);_.len>0&&(f.shift(),C+=_.token,b=_.token)}if(Fn.standardKey(C,m.token,v,0)===void 0)return e("Unsupported key signature: "+C,d,0),p}var y=Fn.deepCopyKey(n.key),x=!h&&n.globalTranspose?-n.globalTranspose:0,F;if(h&&(F=n.globalTransposeOrigKeySig),n.key=Fn.deepCopyKey(Fn.standardKey(C,m.token,v,x)),h&&(n.globalTransposeOrigKeySig=F),n.key.mode=b,y){for(var L,P=0;P0;)switch(f[0].token){case"m":case"middle":if(f.shift(),f.length===0)return e("Expected = after middle",d,0),p;if(ae=f.shift(),ae.token!=="="){e("Expected = after middle",d,ae.start);break}if(f.length===0)return e("Expected parameter after middle=",d,0),p;var S=t.getPitchFromTokens(f);S.warn&&e(S.warn,d,0),S.position&&(n.clef.verticalPos=S.position-6);break;case"transpose":if(f.shift(),f.length===0)return e("Expected = after transpose",d,0),p;if(ae=f.shift(),ae.token!=="="){e("Expected = after transpose",d,ae.start);break}if(f.length===0)return e("Expected parameter after transpose=",d,0),p;if(f[0].type!=="number"){e("Expected number after transpose",d,f[0].start);break}n.clef.transpose=f[0].intt,f.shift();break;case"stafflines":if(f.shift(),f.length===0)return e("Expected = after stafflines",d,0),p;if(ae=f.shift(),ae.token!=="="){e("Expected = after stafflines",d,ae.start);break}if(f.length===0)return e("Expected parameter after stafflines=",d,0),p;if(f[0].type!=="number"){e("Expected number after stafflines",d,f[0].start);break}n.clef.stafflines=f[0].intt,f.shift();break;case"staffscale":if(f.shift(),f.length===0)return e("Expected = after staffscale",d,0),p;if(ae=f.shift(),ae.token!=="="){e("Expected = after staffscale",d,ae.start);break}if(f.length===0)return e("Expected parameter after staffscale=",d,0),p;if(f[0].type!=="number"){e("Expected number after staffscale",d,f[0].start);break}n.clef.staffscale=f[0].floatt,f.shift();break;case"octave":if(f.shift(),f.length===0)return e("Expected = after octave",d,0),p;if(ae=f.shift(),ae.token!=="="){e("Expected = after octave",d,ae.start);break}if(f.length===0)return e("Expected parameter after octave=",d,0),p;if(f[0].type!=="number"){e("Expected number after octave",d,f[0].start);break}n.octave=f[0].intt,f.shift();break;case"style":if(f.shift(),f.length===0)return e("Expected = after style",d,0),p;if(ae=f.shift(),ae.token!=="="){e("Expected = after style",d,ae.start);break}if(f.length===0)return e("Expected parameter after style=",d,0),p;switch(f[0].token){case"normal":case"harmonic":case"rhythm":case"x":case"triangle":n.style=f[0].token,f.shift();break;default:e("error parsing style element: "+f[0].token,d,f[0].start);break}break;case"clef":if(f.shift(),f.length===0)return e("Expected = after clef",d,0),p;if(ae=f.shift(),ae.token!=="="){e("Expected = after clef",d,ae.start);break}if(f.length===0)return e("Expected parameter after clef=",d,0),p;case"treble":case"bass":case"alto":case"tenor":case"perc":case"none":var w=f.shift();switch(w.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":w.token="alto";break;case"F":w.token="bass";break;case"G":w.token="treble";break;case"c":w.token="alto";break;case"f":w.token="bass";break;case"g":w.token="treble";break;default:e("Expected clef name. Found "+w.token,d,w.start);break}f.length>0&&f[0].type==="number"&&(w.token+=f[0].token,f.shift()),f.length>1&&(f[0].token==="-"||f[0].token==="+"||f[0].token==="^"||f[0].token==="_")&&f[1].token==="8"&&(w.token+=f[0].token+f[1].token,f.shift(),f.shift()),n.clef={type:w.token,verticalPos:s(w.token,0)},n.currentVoice&&n.currentVoice.transpose!==void 0&&(n.clef.transpose=n.currentVoice.transpose),p.foundClef=!0;break;default:e("Unknown parameter: "+f[0].token,d,f[0].start),f.shift()}return p};var u=function(d){n.currentVoice=n.voices[d],r.setCurrentVoice(n.currentVoice.staffNum,n.currentVoice.index)};Fn.parseVoice=function(d,h,f){var p=t.getMeat(d,h,f),m=p.start,v=p.end,b=t.getToken(d,m,v);if(b.length===0){e("Expected a voice id",d,m);return}var C=!1;n.voices[b]===void 0&&(n.voices[b]={},C=!0,n.score_is_present&&e("Can't have an unknown V: id when the %score directive is present",d,m)),m+=b.length,m+=t.eatWhiteSpace(d,m);for(var E={startStaff:C},_=function(S){var w=t.getVoiceToken(d,m,v);w.warn!==void 0?e("Expected value for "+S+" in voice: "+w.warn,d,m):w.err!==void 0?e("Expected value for "+S+" in voice: "+w.err,d,m):w.token.length===0&&d[m]!=='"'?e("Expected value for "+S+" in voice",d,m):E[S]=w.token,m+=w.len},y=function(S,w,M){var T=t.getVoiceToken(d,m,v);T.warn!==void 0?e("Expected value for "+w+" in voice: "+T.warn,d,m):T.err!==void 0?e("Expected value for "+w+" in voice: "+T.err,d,m):T.token.length===0&&d[m]!=='"'?e("Expected value for "+w+" in voice",d,m):(M==="number"&&(T.token=parseFloat(T.token)),n.voices[S][w]=T.token),m+=T.len},x=function(S,w){var M=t.getVoiceToken(d,m,v);if(M.warn!==void 0)e("Expected value for "+S+" in voice: "+M.warn,d,m);else if(M.err!==void 0)e("Expected value for "+S+" in voice: "+M.err,d,m);else if(M.token.length===0&&d[m]!=='"')e("Expected value for "+S+" in voice",d,m);else return w==="number"&&(M.token=parseFloat(M.token)),M.token;m+=M.len},F=function(S,w){var M={_B:2,_E:9,_b:-10,_e:-3},T=t.getVoiceToken(d,m,v);if(T.warn!==void 0)e("Expected one of (_B, _E, _b, _e) for "+w+" in voice: "+T.warn,d,m);else if(T.token.length===0&&d[m]!=='"')e("Expected one of (_B, _E, _b, _e) for "+w+" in voice",d,m);else{var J=M[T.token];J?n.voices[S][w]=J:e("Expected one of (_B, _E, _b, _e) for "+w+" in voice",d,m)}m+=T.len};m{var Iv=fn(),Jo=Sf(),es=Sv(),lie=function(t,e,n,i,r){this.reset=function(a,c,l,u){es.initialize(a,c,l,u,r),Jo.initialize(a,c,l,u,r)},this.reset(t,e,n,i),this.setTitle=function(a,c){n.hasMainTitle?r.addSubtitle(a,{startChar:n.iChar,endChar:n.iChar+c+2}):(r.addMetaText("title",a,{startChar:n.iChar,endChar:n.iChar+c+2}),n.hasMainTitle=!0)},this.setMeter=function(a){if(a=t.stripComment(a),a==="C")return n.havent_set_length===!0&&(n.default_length=.125,n.havent_set_length=!1),{type:"common_time"};if(a==="C|")return n.havent_set_length===!0&&(n.default_length=.125,n.havent_set_length=!1),{type:"cut_time"};if(a==="o")return n.havent_set_length===!0&&(n.default_length=.125,n.havent_set_length=!1),{type:"tempus_perfectum"};if(a==="c")return n.havent_set_length===!0&&(n.default_length=.125,n.havent_set_length=!1),{type:"tempus_imperfectum"};if(a==="o.")return n.havent_set_length===!0&&(n.default_length=.125,n.havent_set_length=!1),{type:"tempus_perfectum_prolatio"};if(a==="c.")return n.havent_set_length===!0&&(n.default_length=.125,n.havent_set_length=!1),{type:"tempus_imperfectum_prolatio"};if(a.length===0||a.toLowerCase()==="none")return n.havent_set_length===!0&&(n.default_length=.125,n.havent_set_length=!1),null;var c=t.tokenize(a,0,a.length);try{var l=function(){var m={value:0,num:""},v=c.shift();for(v.token==="("&&(v=c.shift());;){if(v.type!=="number")throw"Expected top number of meter";if(m.value+=parseInt(v.token),m.num+=v.token,c.length===0||c[0].token==="/")return m;if(v=c.shift(),v.token===")"){if(c.length===0||c[0].token==="/")return m;throw"Unexpected paren in meter"}if(v.token!=="."&&v.token!=="+"||(m.num+=v.token,c.length===0))throw"Expected top number of meter";v=c.shift()}return m},u=function(){var m=l();if(c.length===0)return m;var v=c.shift();if(v.token!=="/")throw"Expected slash in meter";if(v=c.shift(),v.type!=="number")throw"Expected bottom number of meter";return m.den=v.token,m.value=m.value/parseInt(m.den),m};if(c.length===0)throw"Expected meter definition in M: line";for(var d={type:"specified",value:[]},h=0;;){var f=u();h+=f.value;var p={num:f.num};if(f.den!==void 0&&(p.den=f.den),d.value.push(p),c.length===0)break}return n.havent_set_length===!0&&(n.default_length=h<.75?.0625:.125,n.havent_set_length=!1),d}catch(m){e(m,a,0)}return null},this.calcTempo=function(a){var c=.25;n.meter&&n.meter.type==="specified"?c=1/parseInt(n.meter.value[0].den):n.origMeter&&n.origMeter.type==="specified"&&(c=1/parseInt(n.origMeter.value[0].den));for(var l=0;l0&&(n.default_length=h/f,n.havent_set_length=!1)}else d.length===1&&d[0]==="1"&&(n.default_length=1,n.havent_set_length=!1)};var o={larghissimo:20,adagissimo:24,sostenuto:28,grave:32,largo:40,lento:50,larghetto:60,adagio:68,adagietto:74,andante:80,andantino:88,"marcia moderato":84,"andante moderato":100,moderato:112,allegretto:116,"allegro moderato":120,allegro:126,animato:132,agitato:140,veloce:148,"mosso vivo":156,vivace:164,vivacissimo:172,allegrissimo:176,presto:184,prestissimo:210};this.setTempo=function(a,c,l,u){try{var d=t.tokenize(a,c,l);if(d.length===0)throw"Missing parameter in Q: field";var h={startChar:u+c-2,endChar:u+l},f=!0,p=d.shift();if(p.type==="quote"&&(h.preString=p.token,p=d.shift(),d.length===0))return o[h.preString.toLowerCase()]&&(h.bpm=o[h.preString.toLowerCase()],h.suppressBpm=!0),{type:"immediate",tempo:h};if(p.type==="alpha"&&p.token==="C"){if(d.length===0)throw"Missing tempo after C in Q: field";if(p=d.shift(),p.type==="punct"&&p.token==="="){if(d.length===0)throw"Missing tempo after = in Q: field";if(p=d.shift(),p.type!=="number")throw"Expected number after = in Q: field";h.duration=[1],h.bpm=parseInt(p.token)}else if(p.type==="number"){if(h.duration=[parseInt(p.token)],d.length===0)throw"Missing = after duration in Q: field";if(p=d.shift(),p.type!=="punct"||p.token!=="=")throw"Expected = after duration in Q: field";if(d.length===0)throw"Missing tempo after = in Q: field";if(p=d.shift(),p.type!=="number")throw"Expected number after = in Q: field";h.bpm=parseInt(p.token)}else throw"Expected number or equal after C in Q: field"}else if(p.type==="number"){var m=parseInt(p.token);if(d.length===0||d[0].type==="quote")h.duration=[1],h.bpm=m;else{if(f=!1,p=d.shift(),p.type!=="punct"&&p.token!=="/"||(p=d.shift(),p.type!=="number"))throw"Expected fraction in Q: field";var v=parseInt(p.token);for(h.duration=[m/v];d.length>0&&d[0].token!=="="&&d[0].type!=="quote";){if(p=d.shift(),p.type!=="number"||(m=parseInt(p.token),p=d.shift(),p.type!=="punct"&&p.token!=="/")||(p=d.shift(),p.type!=="number"))throw"Expected fraction in Q: field";v=parseInt(p.token),h.duration.push(m/v)}if(p=d.shift(),p.type!=="punct"&&p.token!=="=")throw"Expected = in Q: field";if(p=d.shift(),p.type!=="number")throw"Expected tempo in Q: field";h.bpm=parseInt(p.token)}}else throw"Unknown value in Q: field";if(d.length!==0&&(p=d.shift(),p.type==="quote"&&(h.postString=p.token,p=d.shift()),d.length!==0))throw"Unexpected string at end of Q: field";return n.printTempo===!1&&(h.suppress=!0),{type:f?"delaySet":"immediate",tempo:h}}catch(b){return e(b,a,c),{type:"none"}}},this.letter_to_inline_header=function(a,c,l){var u=t.eatWhiteSpace(a,c);if(c+=u,a.length>=c+5&&a[c]==="["&&a[c+2]===":"){var d=a.indexOf("]",c),h=n.iChar+c,f=n.iChar+d+1;switch(a.substring(c,c+3)){case"[I:":var p=Jo.addDirective(a.substring(c+3,d));return p&&e(p,a,c),[d-c+1+u];case"[M:":var m=this.setMeter(a.substring(c+3,d));return r.hasBeginMusic()&&m?r.appendStartingElement("meter",h,f,m):n.meter=m,[d-c+1+u];case"[K:":var v=es.parseKey(a.substring(c+3,d),!0);return v.foundClef&&r.hasBeginMusic()&&r.appendStartingElement("clef",h,f,n.clef),v.foundKey&&r.hasBeginMusic()&&r.appendStartingElement("key",h,f,es.fixKey(n.clef,n.key)),[d-c+1+u];case"[P:":var b=Jo.parseFontChangeLine(a.substring(c+3,d));return l||i.lines.length<=i.lineNum?n.partForNextLine={title:b,startChar:h,endChar:f}:r.appendElement("part",h,f,{title:b}),[d-c+1+u];case"[L:":return this.setDefaultLength(a,c+3,d),[d-c+1+u];case"[Q:":if(d>0){var C=this.setTempo(a,c+3,d,n.iChar);return C.type==="delaySet"?r.hasBeginMusic()?r.appendElement("tempo",h,f,this.calcTempo(C.tempo)):n.tempoForNextLine=["tempo",h,f,this.calcTempo(C.tempo)]:C.type==="immediate"&&(!l&&r.hasBeginMusic()?r.appendElement("tempo",h,f,C.tempo):n.tempoForNextLine=["tempo",h,f,C.tempo]),[d-c+1+u,a[c+1],a.substring(c+3,d)]}break;case"[V:":if(d>0)return es.parseVoice(a,c+3,d),[d-c+1+u,a[c+1],a.substring(c+3,d)];break;case"[r:":return[d-c+1+u];default:}}return[0]},this.letter_to_body_header=function(a,c){if(a.length>=c+3)switch(a.substring(c,c+2)){case"I:":var l=Jo.addDirective(a.substring(c+2));return l&&e(l,a,c),[a.length];case"M:":var u=this.setMeter(a.substring(c+2));return r.hasBeginMusic()&&u&&r.appendStartingElement("meter",n.iChar+c,n.iChar+a.length,u),[a.length];case"K:":var d=es.parseKey(a.substring(c+2),r.hasBeginMusic());return d.foundClef&&r.hasBeginMusic()&&r.appendStartingElement("clef",n.iChar+c,n.iChar+a.length,n.clef),d.foundKey&&r.hasBeginMusic()&&r.appendStartingElement("key",n.iChar+c,n.iChar+a.length,es.fixKey(n.clef,n.key)),[a.length];case"P:":return r.hasBeginMusic()&&r.appendElement("part",n.iChar+c,n.iChar+a.length,{title:a.substring(c+2)}),[a.length];case"L:":return this.setDefaultLength(a,c+2,a.length),[a.length];case"Q:":var h=a.indexOf("",c+2);h===-1&&(h=a.length);var f=this.setTempo(a,c+2,h,n.iChar);return f.type==="delaySet"?r.appendElement("tempo",n.iChar+c,n.iChar+a.length,this.calcTempo(f.tempo)):f.type==="immediate"&&r.appendElement("tempo",n.iChar+c,n.iChar+a.length,f.tempo),[h,a[c],Iv.strip(a.substring(c+2))];case"V:":return es.parseVoice(a,c+2,a.length),[a.length,a[c],Iv.strip(a.substring(c+2))];default:}return[0]};var s={A:"author",B:"book",C:"composer",D:"discography",F:"url",G:"group",I:"instruction",N:"notes",O:"origin",R:"rhythm",S:"source",W:"unalignedWords",Z:"transcription"};this.parseHeader=function(a){var c=s[a[0]],l=a.length-2,u=t.translateString(t.stripComment(a.substring(2)));if(c==="unalignedWords"||c==="notes")r.addMetaTextArray(c,Jo.parseFontChangeLine(u),{startChar:n.iChar,endChar:n.iChar+a.length});else if(c!==void 0)r.addMetaText(c,Jo.parseFontChangeLine(u),{startChar:n.iChar,endChar:n.iChar+a.length});else{var d=n.iChar,h=d+a.length;switch(a[0]){case"H":for(r.addMetaTextArray("history",Jo.parseFontChangeLine(u),{startChar:n.iChar,endChar:n.iChar+a.length}),a=t.peekLine();a&&a[1]!==":";)t.nextLine(),r.addMetaTextArray("history",Jo.parseFontChangeLine(t.translateString(t.stripComment(a))),{startChar:n.iChar,endChar:n.iChar+a.length}),a=t.peekLine();break;case"K":this.resolveTempo();var f=es.parseKey(a.substring(2),!1);!n.is_in_header&&r.hasBeginMusic()&&(f.foundClef&&r.appendStartingElement("clef",d,h,n.clef),f.foundKey&&r.appendStartingElement("key",d,h,es.fixKey(n.clef,n.key))),n.is_in_header=!1;break;case"L":this.setDefaultLength(a,2,a.length);break;case"M":n.origMeter=n.meter=this.setMeter(a.substring(2));break;case"P":n.is_in_header?r.addMetaText("partOrder",Jo.parseFontChangeLine(u),{startChar:n.iChar,endChar:n.iChar+a.length}):n.partForNextLine={title:u,startChar:d,endChar:h};break;case"Q":var p=this.setTempo(a,2,a.length,n.iChar);p.type==="delaySet"?n.tempo=p.tempo:p.type==="immediate"&&(i.metaText.tempo?n.tempoForNextLine=["tempo",d,h,p.tempo]:i.metaText.tempo=p.tempo);break;case"T":n.titlecaps&&(u=u.toUpperCase()),this.setTitle(Jo.parseFontChangeLine(t.theReverser(u)),l);break;case"U":this.addUserDefinition(a,2,a.length);break;case"V":if(es.parseVoice(a,2,a.length),!n.is_in_header)return{newline:!0};break;case"s":return{symbols:!0};case"w":return{words:!0};case"X":break;case"E":case"m":e("Ignored header",a,0);break;default:return{regular:!0}}}return{}}};U4.exports=lie});var $4=j((pke,Sr)=>{Sr.exports.legalAccents=["trill","lowermordent","uppermordent","mordent","pralltriller","accent","fermata","invertedfermata","tenuto","0","1","2","3","4","5","+","wedge","open","thumb","snap","turn","roll","breath","shortphrase","mediumphrase","longphrase","segno","coda","D.S.","D.C.","fine","beambr1","beambr2","slide","marcato","upbow","downbow","/","//","///","////","trem1","trem2","trem3","trem4","turnx","invertedturn","invertedturnx","trill(","trill)","arpeggio","xstem","mark","umarcato","style=normal","style=harmonic","style=rhythm","style=x","style=triangle","D.C.alcoda","D.C.alfine","D.S.alcoda","D.S.alfine","editorial","courtesy"];Sr.exports.volumeDecorations=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"];Sr.exports.dynamicDecorations=["crescendo(","crescendo)","diminuendo(","diminuendo)","glissando(","glissando)","~(","~)"];Sr.exports.accentPseudonyms=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]];Sr.exports.accentDynamicPseudonyms=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]];Sr.exports.nonDecorations="ABCDEFGabcdefgxyzZ[]|^_{";Sr.exports.durations=[.5,.75,.875,.9375,.96875,.984375,.25,.375,.4375,.46875,.484375,.4921875,.125,.1875,.21875,.234375,.2421875,.24609375,.0625,.09375,.109375,.1171875,.12109375,.123046875,.03125,.046875,.0546875,.05859375,.060546875,.0615234375,.015625,.0234375,.02734375,.029296875,.0302734375,.03076171875];Sr.exports.pitches={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};Sr.exports.rests={x:"invisible",X:"invisible-multimeasure",y:"spacer",z:"rest",Z:"multimeasure"};Sr.exports.accMap={dblflat:"__",flat:"_",natural:"=",sharp:"^",dblsharp:"^^",quarterflat:"_/",quartersharp:"^/"};Sr.exports.tripletQ={2:3,3:2,4:3,5:2,6:2,7:2,8:3,9:2}});var s5=j((mke,o5)=>{var W4=fn(),G4=Sv(),n5=XD(),di,Ii,H,lo,ts,Af,{legalAccents:Y4,volumeDecorations:Q4,dynamicDecorations:K4,accentPseudonyms:X4,accentDynamicPseudonyms:Z4,nonDecorations:die,durations:uie,pitches:hie,rests:fie,accMap:J4,tripletQ:pie}=$4(),JD=function(t,e,n,i,r,o){di=t,Ii=e,H=n,lo=i,ts=r,Af=o,this.lineContinuation=!1},e5=function(t,e,n){if(t.inTie[e]===void 0)return!1;var i=t.currentVoice?t.currentVoice.staffNum*100+t.currentVoice.index:0;return!!(t.inTie[e][i]&&(n.pitches!==void 0||n.rest.type!=="spacer"))},ne={};JD.prototype.parseMusic=function(t){Af.resolveTempo(),H.is_in_header=!1;for(var e=0,n=H.iChar;di.isWhiteSpace(t[e])&&e0&&(e+=o[0],o[1]==="V"&&this.startNewLine());for(var s=0;e0)e+=c[0],c[1]==="V"&&(i=!0);else{(!ts.hasBeginMusic()||i&&!this.lineContinuation)&&(this.startNewLine(),i=!1);for(var l;;)if(l=di.eatWhiteSpace(t,e),l>0&&(e+=l),e>0&&t[e-1]===""&&(l=Af.letter_to_body_header(t,e),l[0]>0&&(l[1]==="V"&&this.startNewLine(),e=l[0],H.start_new_line=!1)),l=bie(t,e),l[0]>0&&(e+=l[0]),l=mie(t,e),l[0]>0){ne.chord||(ne.chord=[]);var u=di.translateString(l[1]);u=u.replace(/;/g,` `);for(var d=!1,h=0;h0&&(ne.force_end_beam_last=!0),e+=f}else if(die.indexOf(t[e])===-1?l=i5(t,e):l=[0],l[0]>0)l[1]===null?e+10&&(l[1].indexOf("style=")===0?ne.style=l[1].substr(6):(ne.decoration===void 0&&(ne.decoration=[]),l[1]==="beambr1"?ne.beambr=1:l[1]==="beambr2"?ne.beambr=2:ne.decoration.push(l[1]))),e+=l[0];else if(l=gie(t,e),l[0]>0)ne.gracenotes=l[1],e+=l[0];else break;if(l=_ie(t,e),l[0]>0){s=0,ne.gracenotes!==void 0&&(ne.rest={type:"spacer"},ne.duration=.125,H.addFormattingOptions(ne,lo.formatting,"note"),ts.appendElement("note",n+e,n+e+l[0],ne),H.measureNotEmpty=!0,ne={});var p={type:l[1]};if(p.type.length===0)Ii("Unknown bar type",t,e);else{if(H.inEnding&&p.type!=="bar_thin"&&(p.endEnding=!0,H.inEnding=!1),l[2]&&(p.startEnding=l[2],H.inEnding&&(p.endEnding=!0),H.inEnding=!0,l[1]==="bar_right_repeat"?H.restoreStartEndingHoldOvers():H.duplicateStartEndingHoldOvers()),ne.decoration!==void 0&&(p.decoration=ne.decoration),ne.chord!==void 0&&(p.chord=ne.chord),p.startEnding&&H.barFirstEndingNum===void 0?H.barFirstEndingNum=H.currBarNumber:p.startEnding&&p.endEnding&&H.barFirstEndingNum?H.currBarNumber=H.barFirstEndingNum:p.endEnding&&(H.barFirstEndingNum=void 0),p.type!=="bar_invisible"&&H.measureNotEmpty){var m=H.currentVoice===void 0||H.currentVoice.staffNum===0&&H.currentVoice.index===0;m&&(H.currBarNumber++,H.barNumbers&&H.currBarNumber%H.barNumbers===0&&(p.barNumber=H.currBarNumber))}H.addFormattingOptions(ne,lo.formatting,"bar"),ts.appendElement("bar",n+a,n+e+l[0],p),H.measureNotEmpty=!1,ne={}}e+=l[0]}else if(t[e]==="&")l=vie(t,e),l[0]>0&&(ts.appendElement("overlay",n,n+1,{}),e+=1,s++);else{if(l=yie(t,e),l.consumed>0&&(l.startSlur!==void 0&&(ne.startSlur=l.startSlur),l.dottedSlur&&(ne.dottedSlur=!0),l.triplet!==void 0&&(r>0?Ii("Can't nest triplets",t,e):(ne.startTriplet=l.triplet,ne.tripletMultiplier=l.tripletQ/l.triplet,ne.tripletR=l.num_notes,r=l.num_notes===void 0?l.triplet:l.num_notes)),e+=l.consumed),t[e]==="["){var v=e;e++;for(var b=null,C=!1,E=!1;!E;){var _=i5(t,e);_[0]>0&&(e+=_[0]);var y=ZD(t,e,{},!1);if(y!==null&&y.pitch!==void 0)_[0]>0&&_[1].indexOf("style=")!==0&&(ne.decoration===void 0&&(ne.decoration=[]),ne.decoration.push(_[1])),y.end_beam&&(ne.end_beam=!0,delete y.end_beam),ne.pitches===void 0?(ne.duration=y.duration,ne.pitches=[y]):ne.pitches.push(y),delete y.duration,_[0]>0&&_[1].indexOf("style=")===0&&(ne.pitches[ne.pitches.length-1].style=_[1].substr(6)),H.inTieChord[ne.pitches.length]&&(y.endTie=!0,H.inTieChord[ne.pitches.length]=void 0),y.startTie&&(H.inTieChord[ne.pitches.length]=!0),e=y.endChar,delete y.endChar;else if(t[e]===" ")Ii("Spaces are not allowed in chords",t,e),e++;else{if(e0&&!(ne.rest&&ne.rest.type==="spacer")&&(r--,r===0&&(ne.endTriplet=!0));for(var x=!1;e":case"<":var F=r5(t,e);e+=F[0]-1,H.next_note_duration=F[2],b?b=b*F[1]:b=F[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var L=di.getFraction(t,e);b=L.value,e=L.index;var P=t[e];P===" "&&(C=!0),P==="-"||P===")"||P===" "||P==="<"||P===">"?e--:x=!0;break;default:x=!0;break}x||e++}}else Ii("Expected ']' to end the chords",t,e);ne.pitches!==void 0&&(b!==null&&(ne.duration=ne.duration*b,C&&Rf(ne)),H.addFormattingOptions(ne,lo.formatting,"note"),ts.appendElement("note",n+a,n+e,ne),H.measureNotEmpty=!0,ne={}),E=!0}}}else{var Q={},G=ZD(t,e,Q,!0);Q.endTie!==void 0&&Tf(H,s,!0),G!==null&&(G.pitch!==void 0?(ne.pitches=[{}],G.accidental!==void 0&&(ne.pitches[0].accidental=G.accidental),ne.pitches[0].pitch=G.pitch,ne.pitches[0].name=G.name,(G.midipitch||G.midipitch===0)&&(ne.pitches[0].midipitch=G.midipitch),G.endSlur!==void 0&&(ne.pitches[0].endSlur=G.endSlur),G.endTie!==void 0&&(ne.pitches[0].endTie=G.endTie),G.startSlur!==void 0&&(ne.pitches[0].startSlur=G.startSlur),ne.startSlur!==void 0&&(ne.pitches[0].startSlur=ne.startSlur),ne.dottedSlur!==void 0&&(ne.pitches[0].dottedSlur=!0),G.startTie!==void 0&&(ne.pitches[0].startTie=G.startTie),ne.startTie!==void 0&&(ne.pitches[0].startTie=ne.startTie)):(ne.rest=G.rest,G.endSlur!==void 0&&(ne.endSlur=G.endSlur),G.endTie!==void 0&&(ne.rest.endTie=G.endTie),G.startSlur!==void 0&&(ne.startSlur=G.startSlur),G.startTie!==void 0&&(ne.rest.startTie=G.startTie),ne.startTie!==void 0&&(ne.rest.startTie=ne.startTie)),G.chord!==void 0&&(ne.chord=G.chord),G.duration!==void 0&&(ne.duration=G.duration),G.decoration!==void 0&&(ne.decoration=G.decoration),G.graceNotes!==void 0&&(ne.graceNotes=G.graceNotes),delete ne.startSlur,delete ne.dottedSlur,e5(H,s,ne)&&(ne.pitches!==void 0?ne.pitches[0].endTie=!0:ne.rest.type!=="spacer"&&(ne.rest.endTie=!0),Tf(H,s,!1)),(G.startTie||ne.startTie)&&Tf(H,s,!0),e=G.endChar,r>0&&!(G.rest&&G.rest.type==="spacer")&&(r--,r===0&&(ne.endTriplet=!0)),G.end_beam&&Rf(ne),ne.rest&&ne.rest.type==="rest"&&ne.duration===1&&t5(H)<=1&&(ne.rest.type="whole",ne.duration=t5(H)),ne.duration<1&&uie.indexOf(ne.duration)===-1&&ne.duration!==0&&(!ne.rest||ne.rest.type!=="spacer")&&Ii("Duration not representable: "+t.substring(a,e),t,e),H.addFormattingOptions(ne,lo.formatting,"note"),ts.appendElement("note",n+a,n+e,ne),H.measureNotEmpty=!0,ne={})}e===a&&(t[e]!==" "&&t[e]!=="`"&&Ii("Unknown character ignored",t,e),e++)}}}this.lineContinuation=t.indexOf("")>=0||o[0]>0,this.lineContinuation||(ne={})}};var Tf=function(t,e,n){var i=t.currentVoice?t.currentVoice.staffNum*100+t.currentVoice.index:0;t.inTie[e]===void 0&&(t.inTie[e]=[]),t.inTie[e][i]=n},mie=function(t,e){if(t[e]==='"'){var n=di.getBrackettedSubstring(t,e,5);if(n[2]||Ii("Missing the closing quote while parsing the chord symbol",t,e),n[0]>0&&n[1].length>0&&n[1][0]==="^")n[1]=n[1].substring(1),n[2]="above";else if(n[0]>0&&n[1].length>0&&n[1][0]==="_")n[1]=n[1].substring(1),n[2]="below";else if(n[0]>0&&n[1].length>0&&n[1][0]==="<")n[1]=n[1].substring(1),n[2]="left";else if(n[0]>0&&n[1].length>0&&n[1][0]===">")n[1]=n[1].substring(1),n[2]="right";else if(n[0]>0&&n[1].length>0&&n[1][0]==="@"){n[1]=n[1].substring(1);var i=di.getFloat(n[1]);i.digits===0&&Ii("Missing first position in absolutely positioned annotation.",t,e),n[1]=n[1].substring(i.digits),n[1][0]!==","&&Ii("Missing comma absolutely positioned annotation.",t,e),n[1]=n[1].substring(1);var r=di.getFloat(n[1]);r.digits===0&&Ii("Missing second position in absolutely positioned annotation.",t,e),n[1]=n[1].substring(r.digits);var o=di.skipWhiteSpace(n[1]);n[1]=n[1].substring(o),n[2]=null,n[3]={x:i.value,y:r.value}}else H.freegchord!==!0&&(n[1]=n[1].replace(/([ABCDEFG0-9])b/g,"$1\u266D"),n[1]=n[1].replace(/([ABCDEFG0-9])#/g,"$1\u266F"),n[1]=n[1].replace(/^([ABCDEFG])([♯♭]?)o([^A-Za-z])/g,"$1$2\xB0$3"),n[1]=n[1].replace(/^([ABCDEFG])([♯♭]?)o$/g,"$1$2\xB0"),n[1]=n[1].replace(/^([ABCDEFG])([♯♭]?)0([^A-Za-z])/g,"$1$2\xF8$3"),n[1]=n[1].replace(/^([ABCDEFG])([♯♭]?)\^([^A-Za-z])/g,"$1$2\u2206$3")),n[2]="default",n[1]=n5.chordName(H,n[1]);return n}return[0,""]},gie=function(t,e){if(t[e]==="{"){var n=di.getBrackettedSubstring(t,e,1,"}");n[2]||Ii("Missing the closing '}' while parsing grace note",t,e),t[e+n[0]]===")"&&(n[0]++,n[1]+=")");for(var i=[],r=0,o=!1;r0&&(i[i.length-1].endBeam=!0):Ii("Unknown character '"+n[1][r]+"' while parsing grace note",t,e),r++)}if(i.length)return[n[0],i]}return[0]};function vie(t,e){if(t[e]==="&"){for(var n=e;t[e]&&t[e]!==":"&&t[e]!=="|";)e++;return[e-n,t.substring(n+1,e)]}return[0]}function t5(t){var e=t.origMeter;return!e||e.type!=="specified"||!e.value||e.value.length===0?1:parseInt(e.value[0].num,10)/parseInt(e.value[0].den,10)}var i5=function(t,e){var n=H.macros[t[e]];if(n!==void 0)return(n[0]==="!"||n[0]==="+")&&(n=n.substring(1)),(n[n.length-1]==="!"||n[n.length-1]==="+")&&(n=n.substring(0,n.length-1)),Y4.includes(n)?[1,n]:Q4.includes(n)?(H.volumePosition==="hidden"&&(n=""),[1,n]):K4.includes(n)?(H.dynamicPosition==="hidden"&&(n=""),[1,n]):(H.ignoredDecorations.includes(n)||Ii("Unknown macro: "+n,t,e),[1,""]);switch(t[e]){case".":if(t[e+1]==="("||t[e+1]==="-")break;return[1,"staccato"];case"u":return[1,"upbow"];case"v":return[1,"downbow"];case"~":return[1,"irishroll"];case"!":case"+":var i=di.getBrackettedSubstring(t,e,5);if(i[1].length>1&&(i[1][0]==="^"||i[1][0]==="_")&&(i[1]=i[1].substring(1)),Y4.includes(i[1]))return i;if(Q4.includes(i[1]))return H.volumePosition==="hidden"&&(i[1]=""),i;if(K4.includes(i[1]))return H.dynamicPosition==="hidden"&&(i[1]=""),i;var r=X4.findIndex(function(o){return i[1]===o[0]});return r>=0?(i[1]=X4[r][1],i):(r=Z4.findIndex(function(o){return i[1]===o[0]}),r>=0?(i[1]=Z4[r][1],H.dynamicPosition==="hidden"&&(i[1]=""),i):t[e]==="!"&&(i[0]===1||t[e+i[0]-1]!=="!")?[1,null]:(Ii("Unknown decoration: "+i[1],t,e),i[1]="",i));case"H":return[1,"fermata"];case"J":return[1,"slide"];case"L":return[1,"accent"];case"M":return[1,"mordent"];case"O":return[1,"coda"];case"P":return[1,"pralltriller"];case"R":return[1,"roll"];case"S":return[1,"segno"];case"T":return[1,"trill"]}return[0,0]},bie=function(t,e){for(var n=e;di.isWhiteSpace(t[e]);)e++;return[e-n]},_ie=function(t,e){var n=di.getBarLine(t,e);if(n.len===0)return[0,""];if(n.warn)return Ii(n.warn,t,e),[n.len,""];for(var i=0;i="2"&&t[e+1]<="9"?(n.triplet!==void 0?Ii("Can't nest triplets",t,e):(n.triplet=t[e+1]-"0",n.tripletQ=pie[n.triplet],n.num_notes=n.triplet,e+2="1"&&t[e+4]<="9"?(n.num_notes=t[e+4]-"0",e+=3):Ii("expected number after the two colons after the triplet to mark the duration",t,e):e+3="1"&&t[e+3]<="9"?(n.tripletQ=t[e+3]-"0",e+4="1"&&t[e+5]<="9"&&(n.num_notes=t[e+5]-"0",e+=4):e+=2):Ii("expected number after the triplet to mark the duration",t,e))),e++):n.startSlur===void 0?n.startSlur=1:n.startSlur++),e++;return n.consumed=e-i,n};JD.prototype.startNewLine=function(){var t={startChar:-1,endChar:-1};H.partForNextLine.title&&(t.part=H.partForNextLine),t.clef=H.currentVoice&&H.staves[H.currentVoice.staffNum].clef!==void 0?W4.clone(H.staves[H.currentVoice.staffNum].clef):W4.clone(H.clef);var e=H.currentVoice?H.currentVoice.scoreTranspose:0;if(t.key=G4.standardKey(H.key.root+H.key.acc+H.key.mode,H.key.root,H.key.acc,e),t.key.mode=H.key.mode,H.key.impliedNaturals&&(t.key.impliedNaturals=H.key.impliedNaturals),H.key.explicitAccidentals)for(var n=0;n=0?(n.duration=lo.getBarLength(),n.rest.text=1,s="Zduration"):(i&&H.next_note_duration!==0?(n.duration=H.default_length*H.next_note_duration,H.next_note_duration=0,a=!0):n.duration=H.default_length,s="duration");else return r(s)?(n.endChar=e,n):null;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"0":case"/":if(s==="octave"||s==="duration"){var l=di.getFraction(t,e);for(n.duration=n.duration*l.value,n.endChar=l.index;l.index"))e--,s="broken_rhythm";else return n}else return null;break;case">":case"<":if(r(s))if(i){var d=r5(t,e);e+=d[0]-1,H.next_note_duration=d[2],n.duration=d[1]*n.duration,s="end_slur"}else return n.endChar=e,n;else return null;break;default:return r(s)?(n.endChar=e,n):null}if(e++,e===t.length)return r(s)?(n.endChar=e,n):null}return null},r5=function(t,e){switch(t[e]){case">":return e"&&t[e+2]===">"?[3,1.875,.125]:e"?[2,1.75,.25]:[1,1.5,.5];case"<":return e{var Xi=fn(),e2=function(t,e){this.lineIndex=0,this.lines=t,this.multilineVars=e,this.skipWhiteSpace=function(d){for(var h=0;h=d.length};this.eatWhiteSpace=function(d,h){for(var f=h;f="a"&&m[v]<="z"||m[v]>="A"&&m[v]<="Z");)v++;return v},f=this.skipWhiteSpace(d);if(n(d,f))return{len:0};var p=d.substring(f,f+3).toLowerCase();switch((p.length>1&&p[1]===" "||p[1]==="^"||p[1]==="_"||p[1]==="=")&&(p=p[0]),p){case"mix":return{len:h(d,f),token:"Mix"};case"dor":return{len:h(d,f),token:"Dor"};case"phr":return{len:h(d,f),token:"Phr"};case"lyd":return{len:h(d,f),token:"Lyd"};case"loc":return{len:h(d,f),token:"Loc"};case"aeo":return{len:h(d,f),token:"m"};case"maj":return{len:h(d,f),token:""};case"ion":return{len:h(d,f),token:""};case"min":return{len:h(d,f),token:"m"};case"m":return{len:h(d,f),token:"m"}}return{len:0}},this.getClef=function(d,h){var f=d,p=this.skipWhiteSpace(d);if(n(d,p))return{len:0};var m=!1,v=d.substring(p);if(Xi.startsWith(v,"clef=")&&(m=!0,v=v.substring(5),p+=5),v.length===0&&m)return{len:p+5,warn:"No clef specified: "+f};var b=this.skipWhiteSpace(v);if(n(v,b))return{len:0};b>0&&(p+=b,v=v.substring(b));var C=null;if(Xi.startsWith(v,"treble"))C="treble";else if(Xi.startsWith(v,"bass3"))C="bass3";else if(Xi.startsWith(v,"bass"))C="bass";else if(Xi.startsWith(v,"tenor"))C="tenor";else if(Xi.startsWith(v,"alto2"))C="alto2";else if(Xi.startsWith(v,"alto1"))C="alto1";else if(Xi.startsWith(v,"alto"))C="alto";else if(!h&&m&&Xi.startsWith(v,"none"))C="none";else if(Xi.startsWith(v,"perc"))C="perc";else if(!h&&m&&Xi.startsWith(v,"C"))C="tenor";else if(!h&&m&&Xi.startsWith(v,"F"))C="bass";else if(!h&&m&&Xi.startsWith(v,"G"))C="treble";else return{len:p+5,warn:"Unknown clef specified: "+f};return v=v.substring(C.length),b=this.isMatch(v,"+8"),b>0?C+="+8":(b=this.isMatch(v,"-8"),b>0&&(C+="-8")),{len:p+C.length,token:C,explicit:m}},this.getBarLine=function(d,h){switch(d[h]){case"]":switch(++h,d[h]){case"|":return{len:2,token:"bar_thick_thin"};case"[":return++h,d[h]>="1"&&d[h]<="9"||d[h]==='"'?{len:2,token:"bar_invisible"}:{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}break;case":":switch(++h,d[h]){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(++h,d[h]){case"]":switch(++h,d[h]){case"|":return++h,d[h]===":"?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:3,token:"bar_right_repeat"}}break;case"|":return++h,d[h]===":"?{len:4,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:2,token:"bar_right_repeat"}}break;default:return{len:1,warn:"Unknown bar symbol"}}break;case"[":if(++h,d[h]==="|")switch(++h,d[h]){case":":return{len:3,token:"bar_left_repeat"};case"]":return{len:3,token:"bar_invisible"};default:return{len:2,token:"bar_thick_thin"}}else return d[h]>="1"&&d[h]<="9"||d[h]==='"'?{len:1,token:"bar_invisible"}:{len:0};break;case"|":switch(++h,d[h]){case"]":return{len:2,token:"bar_thin_thick"};case"|":return++h,d[h]===":"?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var f=0;d[h+f]===":";)f++;return{len:1+f,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}break}return{len:0}},this.getTokenOf=function(d,h){for(var f=0;f0;){var f;if(d[0].token==="^"){if(f="sharp",d.shift(),d.length===0)return{accs:h,warn:"Expected note name after "+f};switch(d[0].token){case"^":f="dblsharp",d.shift();break;case"/":f="quartersharp",d.shift();break}}else if(d[0].token==="=")f="natural",d.shift();else if(d[0].token==="_"){if(f="flat",d.shift(),d.length===0)return{accs:h,warn:"Expected note name after "+f};switch(d[0].token){case"_":f="dblflat",d.shift();break;case"/":f="quarterflat",d.shift();break}}else return{accs:h};if(d.length===0)return{accs:h,warn:"Expected note name after "+f};switch(d[0].token[0]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":h===void 0&&(h=[]),h.push({acc:f,note:d[0].token[0]}),d[0].token.length===1?d.shift():d[0].token=d[0].token.substring(1);break;default:return{accs:h,warn:"Expected note name after "+f+" Found: "+d[0].token}}}return{accs:h}},this.getKeyAccidental=function(d){var h={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},f=this.skipWhiteSpace(d);if(n(d,f))return{len:0};var p=null;switch(d[f]){case"^":case"_":case"=":p=d[f];break;default:return{len:0}}if(f++,n(d,f))return{len:1,warn:"Expected note name after accidental"};switch(d[f]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:f+1,token:{acc:h[p],note:d[f]}};case"^":case"_":case"/":if(p+=d[f],f++,n(d,f))return{len:2,warn:"Expected note name after accidental"};switch(d[f]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:f+1,token:{acc:h[p],note:d[f]}};default:return{len:2,warn:"Expected note name after accidental"}}break;default:return{len:1,warn:"Expected note name after accidental"}}},this.isWhiteSpace=function(d){return d===" "||d===" "||d===""},this.getMeat=function(d,h,f){var p=d.indexOf("%",h);for(p>=0&&p="A"&&d<="Z"||d>="a"&&d<="z"},r=function(d){return d>="0"&&d<="9"};this.tokenize=function(d,h,f,p){var m=this.getMeat(d,h,f);h=m.start,f=m.end;for(var v=[],b;h=f?{len:1,err:"Missing close quote"}:{len:m-h+1,token:this.translateString(d.substring(p+1,m))}}else{for(var v=p;v=0?Xi.strip(d.substring(0,h)):Xi.strip(d)},this.getInt=function(d){var h=parseInt(d);if(isNaN(h))return{digits:0};var f=""+h,p=d.indexOf(f);return{value:h,digits:p+f.length}},this.getFloat=function(d){var h=parseFloat(d);if(isNaN(h))return{digits:0};var f=""+h,p=d.indexOf(f);return{value:h,digits:p+f.length}},this.getMeasurement=function(d){if(d.length===0)return{used:0};var h=1,f="";if(d[0].token==="-")d.shift(),f="-",h++;else if(d[0].type!=="number")return{used:0};if(f+=d.shift().token,d.length===0)return{used:1,value:parseInt(f)};var p=d.shift();if(p.token==="."){if(h++,d.length===0)return{used:h,value:parseInt(f)};if(d[0].type==="number"&&(p=d.shift(),f=f+"."+p.token,h++,d.length===0))return{used:h,value:parseFloat(f)};p=d.shift()}switch(p.token){case"pt":return{used:h+1,value:parseFloat(f)};case"px":return{used:h+1,value:parseFloat(f)};case"cm":return{used:h+1,value:parseFloat(f)/2.54*72};case"in":return{used:h+1,value:parseFloat(f)*72};default:return d.unshift(p),{used:h,value:parseFloat(f)}}};var u=function(d){return d=d.replace(/\\n/g,` -`),d=d.replace(/\\"/g,'"'),d};this.getBrackettedSubstring=function(d,h,f,p){for(var m=p||d[h],v=h+1,b=!1;vd.length-1&&(v=d.length-1),[v-h+1,u(d.substring(h+1,v)),!1])}};e2.prototype.peekLine=function(){return this.lines[this.lineIndex]};e2.prototype.nextLine=function(){if(this.lineIndex>0&&(this.multilineVars.iChar+=this.lines[this.lineIndex-1].length+1),this.lineIndex{function wie(t,e,n){if(!(!e||t.lines.length===0)){var i=t.deline({lineBreaks:!1}),r=xie(i,e);t.lines=Cie(i,r,n),t.lineBreaks=r}}function Cie(t,e,n){for(var i=[],r=[],o=[],s=1,a=0;a0&&(i[c.line].staff[c.staff].barNumber=s);for(var u=Object.keys(l),d=0;d=0;p--)if(f[p].el_type==="key"){r[c.staff]={root:f[p].root,acc:f[p].acc,mode:f[p].mode,accidentals:f[p].accidentals.filter(function(v){return v.acc!=="natural"})};break}for(p=f.length-1;p>=0;p--)if(f[p].el_type==="stem"){o[c.staff*10+c.voice]={direction:f[p].direction};break}if(n!==void 0&&c.staff===0&&c.voice===0)for(p=0;p0?(n.push(o-1),i.push(Math.round(r-s)),r=s):oo&&do?(c.push(d-1),a++,s=Math.max(s,o),o=Math.abs(n-e[a]),r.push(i-h),i=h):o=f}r.push(i)}function Sie(t,e,n,i){for(var r=Math.ceil(t.total/e),o=Math.floor(t.total/r),s=[],a=0;ae&&(s=!0),a%n===n-1&&(a!==t.length-1&&i.push(a),r.push(Math.round(o)),o=0);return{failed:s,totals:r,lineBreaks:i}}function kie(t,e,n){var i={lineBreaks:t,staffwidth:e};for(var r in n)n.hasOwnProperty(r)&&r!=="wrap"&&r!=="staffwidth"&&(i[r]=n[r]);return{revisedParams:i}}function Mie(t,e,n){if(e.length===0||n.staffwidth0&&d.measureWidths.length<25&&(E=Sie(d,f,b,v),v.attempts.push({type:"Optimize",failed:E.failed,reason:E.reason,lineBreaks:E.lineBreaks,totals:E.totals}),E.failed||(b=E.lineBreaks))}c.push(b),l.push(v)}var _=n.staffwidth,y=kie(c,_,n);return y.explanation=l,y.reParse=!0,y}l5.exports={wrapLines:wie,calcLineWraps:Mie}});var pn=j((bke,d5)=>{var js={};js.FONTEM=360;js.FONTSIZE=30;js.STEP=js.FONTSIZE*93/720;js.SPACE=10;js.TOPNOTE=15;js.STAVEHEIGHT=100;js.INDENT=50;d5.exports=js});var i2=j((_ke,h5)=>{var u5,Of=fn();(function(){"use strict";var t=1,e=128;u5=function(f,p){p=p||{};var m,v=p.program||0,b=p.midiTranspose||0;f.visualTranspose&&(b-=f.visualTranspose);var C=p.channel||0,E=!1,_=p.drum||"",y=p.drumBars||1,x=p.drumIntro||0,F=_!=="",L=!!p.drumOff,P=[],Q=!1,G=50;v=parseInt(v,10),b=parseInt(b,10),C=parseInt(C,10),C===10&&(v=e),_=_.split(" "),y=parseInt(y,10),x=parseInt(x,10);var W=f.formatting.bagpipes;W&&(v=71);var Y=[];if(f.formatting.midi){var Z=f.formatting.midi;Z.program&&Z.program.length>0&&(v=Z.program[0],Z.program.length>1&&(v=Z.program[1],C=Z.program[0]),E=!0),Z.transpose&&(b=Z.transpose[0]),Z.channel&&(C=Z.channel[0],E=!0),Z.drum&&(_=Z.drum),Z.drumbars&&(y=Z.drumbars[0]),Z.drumon&&(F=!0),C===10&&(v=e),Z.beat&&Y.push({el_type:"beat",beats:Z.beat}),Z.nobeataccents&&Y.push({el_type:"beataccents",value:!1})}p.qpm?m=parseInt(p.qpm,10):f.metaText.tempo?m=a(f.metaText.tempo,f.getBeatLength()):p.defaultQpm?m=p.defaultQpm:m=180;var ae=[];W&&ae.push({el_type:"bagpipes"}),ae.push({el_type:"instrument",program:v}),C&&ae.push({el_type:"channel",channel:C}),b&&ae.push({el_type:"transpose",transpose:b}),ae.push({el_type:"tempo",qpm:m});for(var S=0;S=0?Hi="pppp":gt.decoration.indexOf("ppp")>=0?Hi="ppp":gt.decoration.indexOf("pp")>=0?Hi="pp":gt.decoration.indexOf("p")>=0?Hi="p":gt.decoration.indexOf("mp")>=0?Hi="mp":gt.decoration.indexOf("mf")>=0?Hi="mf":gt.decoration.indexOf("f")>=0?Hi="f":gt.decoration.indexOf("ff")>=0?Hi="ff":gt.decoration.indexOf("fff")>=0?Hi="fff":gt.decoration.indexOf("ffff")>=0&&(Hi="ffff"),Hi&&(Ae=ji[Hi].slice(0),w[Ce].push({el_type:"beat",beats:Ae.slice(0)}),M[pt]=!1,T[pt]=!1),gt.decoration.indexOf("crescendo(")>=0){var ll=n(Qt,xi,"crescendo)"),vu=Math.min(127,Ae[0]+G),ep=i(Qt,xi+ll+1,Object.keys(ji));ep&&(vu=ji[ep][0]),ll>0?M[pt]=Math.floor((vu-Ae[0])/ll):M[pt]=!1,T[pt]=!1}else if(gt.decoration.indexOf("crescendo)")>=0)M[pt]=!1;else if(gt.decoration.indexOf("diminuendo(")>=0){var or=n(Qt,xi,"diminuendo)"),bE=Math.max(15,Ae[0]-G),_E=i(Qt,xi+or+1,Object.keys(ji));_E&&(bE=ji[_E][0]),M[pt]=!1,or>0?T[pt]=Math.floor((bE-Ae[0])/or):T[pt]=!1}else gt.decoration.indexOf("diminuendo)")>=0&&(T[pt]=!1)};for(var Mt=ti.staff,Ce=0,xt=0;xt=0?w[Ce].push({el_type:"transpose",transpose:-12}):At.clef.type.indexOf("+8")>=0&&w[Ce].push({el_type:"transpose",transpose:12})),f.formatting.midi&&f.formatting.midi.drumoff&&(w[Ce].push({el_type:"bar"}),w[Ce].push({el_type:"drum",params:{pattern:"",on:!1}}));var Ln=0,Ci=0,Ji=0,Vn=0;Ae=[105,95,85,1];for(var xi=0;xi=0?w[Ce].push({el_type:"transpose",transpose:-12}):Le.type.indexOf("+8")>=0&&w[Ce].push({el_type:"transpose",transpose:12}));break;case"tempo":m=a(Le,f.getBeatLength()),w[Ce].push({el_type:"tempo",qpm:m,timing:J[Ce]}),ye[""+J[Ce]]={el_type:"tempo",qpm:m,timing:J[Ce]};break;case"bar":Ln>0&&w[Ce].push({el_type:"bar"}),mn(Le),Ln=0;var O=Le.type==="bar_right_repeat"||Le.type==="bar_dbl_repeat",$=Le.startEnding==="1",de=Le.type==="bar_left_repeat"||Le.type==="bar_dbl_repeat"||Le.type==="bar_right_repeat";if(O){var qe=Qe[Ce];qe||(qe=0);var ue=Pe[Ce];ue||(ue=w[Ce].length);for(var he=qe;heOt;)Ot++;if(w[Be].length>Ot){for(var N=0;N0&&w[0].length>0&&(w[0][0].pickupLength=f.getPickupLength()),w};function n(f,p,m){for(var v=0,b=p+1;b=0)return v;return v}function i(f,p,m){for(var v=Math.min(f.length,p+3),b=p;b=0)return f[b].decoration[C]}return null}function r(f,p){if(!(!p||p.length===0))for(var m=Object.keys(p),v=0;v=0&&C!==p[""+_.timing].qpm&&(C=p[""+_.timing].qpm,_.el_type==="tempo"?(_.qpm=p[""+_.timing].qpm,E++):(f[v].splice(E,0,{el_type:"tempo",qpm:p[""+_.timing].qpm,timing:_.timing}),E+=2))}}function o(f){for(var p=0;p=0&&m[v].el_type!=="bar";)m[v].noChordVoice=!0,v--}function s(f,p){if(!(!f||f.length<=p||!f[p].title))return f[p].title.join(" ")}function a(f,p){var m=.25;f.duration&&(m=f.duration[0]);var v=60;return f.bpm&&(v=f.bpm),m*v/p}function c(f){var p;switch(f.type){case"common_time":p={el_type:"meter",num:4,den:4};break;case"cut_time":p={el_type:"meter",num:2,den:2};break;case"specified":p={el_type:"meter",num:f.value[0].num,den:f.value[0].den};break;default:p={el_type:"meter"}}return t=p.num/p.den,p}function l(f){for(var p=[],m=0;m=0;m--)if(f[m].el_type===p.el_type){JSON.stringify(f[m])!==JSON.stringify(p)&&f.push(p);return}f.push(p)}})();h5.exports=u5});var g5=j((yke,m5)=>{var Tie=fn(),ui=function(e,n,i,r){this.chordTrack=[],this.chordTrackFinished=!1,this.chordChannel=e,this.currentChords=[],this.lastChord,this.chordLastBar,this.chordsOff=!!n,this.gChordTacet=this.chordsOff,this.hasRhythmHead=!1,this.transpose=0,this.lastBarTime=0,this.meter=r,this.tempoChangeFactor=1,this.bassInstrument=i.bassprog&&i.bassprog.length===1?i.bassprog[0]:0,this.chordInstrument=i.chordprog&&i.chordprog.length===1?i.chordprog[0]:0,this.boomVolume=i.bassvol&&i.bassvol.length===1?i.bassvol[0]:64,this.chickVolume=i.chordvol&&i.chordvol.length===1?i.chordvol[0]:48,this.overridePattern=i.gchord?p5(i.gchord[0]):void 0};ui.prototype.setMeter=function(t){this.meter=t};ui.prototype.setTempoChangeFactor=function(t){this.tempoChangeFactor=t};ui.prototype.setLastBarTime=function(t){this.lastBarTime=t};ui.prototype.setTranspose=function(t){this.transpose=t};ui.prototype.setRhythmHead=function(t,e){this.hasRhythmHead=t;var n=[];if(t&&this.lastChord&&this.lastChord.chick)for(var i=0;i0&&!this.chordTrackFinished&&(this.resolveChords(this.lastBarTime,n2(t.time)),this.currentChords=[]),this.chordLastBar=this.lastChord};ui.prototype.gChordOn=function(t){this.chordsOff||(this.gChordTacet=t.tacet)};ui.prototype.paramChange=function(t){switch(t.el_type){case"gchord":this.overridePattern=p5(t.param);break;case"bassprog":this.bassInstrument=t.param;break;case"chordprog":this.chordInstrument=t.param;break;case"bassvol":this.boomVolume=t.param;break;case"chordvol":this.chickVolume=t.param;break;default:console.log("unhandled midi param",t)}};ui.prototype.finish=function(){this.chordTrackEmpty()||(this.chordTrackFinished=!0)};ui.prototype.addTrack=function(t){this.chordTrackEmpty()||t.push(this.chordTrack)};ui.prototype.findChord=function(t){if(this.gChordTacet)return"break";if(this.chordTrackFinished||!t.chord||t.chord.length===0)return null;for(var e=0;e=0)return"break"}return null};ui.prototype.interpretChord=function(t){if(t.length!==0){if(t==="break")return{chick:[]};var e=t.substring(0,1);if(e==="("){if(t=t.substring(1,t.length-2),t.length===0)return;e=t.substring(0,1)}var n=this.basses[e];if(n){for(var i=this.transpose;i<-8;)i+=12;for(;i>8;)i-=12;n+=i;var r=n-5,o;t.length===1&&(o=this.chordNotes(n,""));var s=t.substring(1),a=s.substring(0,1);a==="b"||a==="\u266D"?(n--,r--,s=s.substring(1)):(a==="#"||a==="\u266F")&&(n++,r++,s=s.substring(1));var c=s.split("/");if(o=this.chordNotes(n,c[0]),o.length>=3){var l=o[2]-o[0];r=r+l-7}if(c.length===2){var u=this.basses[c[1].substring(0,1)];if(u){var d=c[1].substring(1),h={"#":1,"\u266F":1,b:-1,"\u266D":-1}[d]||0;n=this.basses[c[1].substring(0,1)]+h+i,r=n}}return{boom:n,boom2:r,chick:o}}}};ui.prototype.chordNotes=function(t,e){var n=this.chordIntervals[e];n||(e.slice(0,2).toLowerCase()==="ma"||e[0]==="M"?n=this.chordIntervals.M:e[0]==="m"||e[0]==="-"?n=this.chordIntervals.m:n=this.chordIntervals.M),t+=12;for(var i=[],r=0;r0&&c[d-1]&&c[d]&&c[d-1].boom!==c[d].boom&&(h=!0);var p=l[d],m=p.indexOf("boom")>=0,v=!m&&d!==0&&l[0].indexOf("boom")>=0&&(!c[d-1]||c[d-1].boom!==c[d].boom),b=Aie(c[d],p,h,v);m&&(h=!1);for(var C=0;C=0?r.push(n?t.boom:t.boom2):i&&r.push(t.boom),e.indexOf("chick")>=0)for(var o=0;o3?r.push(t.chick[2]):r.push(t.chick[0]+12);break;case"TOP":t.chick.length>4?r.push(t.chick[2]):r.push(t.chick[1]+12);break;case"do":r.push(t.chick[0]+12);break;case"mi":r.push(t.chick[1]+12);break;case"sol":r.push(t.chick[2]+12);break;case"ti":t.chick.length>3?r.push(t.chick[2]+12):r.push(t.chick[0]+24);break;case"top":t.chick.length>4?r.push(t.chick[2]+12):r.push(t.chick[1]+24);break}return r}function p5(t){for(var e=[],n=0;n{var Nie={f0:"_C",n0:"=C",s0:"^C",x0:"C",f1:"_D",n1:"=D",s1:"^D",x1:"D",f2:"_E",n2:"=E",s2:"^E",x2:"E",f3:"_F",n3:"=F",s3:"^F",x3:"F",f4:"_G",n4:"=G",s4:"^G",x4:"G",f5:"_A",n5:"=A",s5:"^A",x5:"A",f6:"_B",n6:"=B",s6:"^B",x6:"B",f7:"_c",n7:"=c",s7:"^c",x7:"c",f8:"_d",n8:"=d",s8:"^d",x8:"d",f9:"_e",n9:"=e",s9:"^e",x9:"e",f10:"_f",n10:"=f",s10:"^f",x10:"f",f11:"_g",n11:"=g",s11:"^g",x11:"g",f12:"_a",n12:"=a",s12:"^a",x12:"a",f13:"_b",n13:"=b",s13:"^b",x13:"b",f14:"_c'",n14:"=c'",s14:"^c'",x14:"c'",f15:"_d'",n15:"=d'",s15:"^d'",x15:"d'",f16:"_e'",n16:"=e'",s16:"^e'",x16:"e'"};function Fie(t){var e=(t.accidental?t.accidental[0]:"x")+t.verticalPos;return Nie[e]}v5.exports=Fie});var w5=j((Cke,y5)=>{var _5,Pie=g5(),b5=r2();(function(){"use strict";var t,e,n,i,r,o,s,a=1,c,l,u,d,h,f,p,m={num:4,den:4},v=128,b,C=!0,E=105,_=95,y=85,x=.25,F,L,P=0,Q,G,W={},Y,Z=0,ae,S=0,w=-.001,M=.4;_5=function(V,k,N,O){k||(k={}),O||(O={}),t=[],e=[0,0,0,0,0,0,0],i=!1,r=[],o=k.qpm,s=void 0,a=1,c=void 0,l=void 0,u=void 0,h=void 0,f=0,ae=N,m={num:4,den:4},C=!0,E=105,_=95,y=85,x=.25,F=void 0,L=void 0,P=0,Q=[],G=!1,W={},Y=1,V.length>0&&V[0].length>0&&(Z=V[0][0].pickupLength),k.bassprog!==void 0&&!O.bassprog&&(O.bassprog=[k.bassprog]),k.bassvol!==void 0&&!O.bassvol&&(O.bassvol=[k.bassvol]),k.chordprog!==void 0&&!O.chordprog&&(O.chordprog=[k.chordprog]),k.chordvol!==void 0&&!O.chordvol&&(O.chordvol=[k.chordvol]),k.gchord!==void 0&&!O.gchord&&(O.gchord=[k.gchord]),p=new Pie(V.length,k.chordsOff,O,m),Ae(V,k);for(var $=0;$=0)&&(qe=!0);for(var ue=0;ue0&&u[u.length-1].cmd==="program")u[u.length-1].instrument=he.program;else{var fe;for(fe=u.length-1;fe>=0&&u[fe].cmd!=="program";fe--);(fe<0||u[fe].instrument!==he.program)&&u.push({cmd:"program",channel:0,instrument:he.program})}break;case"channel":T(he.channel);break;case"drum":W=Ji(he.params),Vn();break;case"gchordOn":p.gChordOn(he);break;case"beat":E=he.beats[0],_=he.beats[1],y=he.beats[2];break;case"vol":F=he.volume;break;case"volinc":L=he.volume;break;case"beataccents":C=he.value;break;case"gchord":case"bassprog":case"chordprog":case"bassvol":case"chordvol":p.paramChange(he);break;default:console.log("MIDI creation. Unknown el_type: "+he.el_type+` -`);break}}u[0].instrument===void 0&&(u[0].instrument=c||0),h&&u.unshift(h),r.push(u),p.finish(),Q.length>0&&(G=!0)}return k.detuneOctave&&Le(r,parseInt(k.detuneOctave,10)),p.addTrack(r),Q.length>0&&r.push(Q),{tempo:o,instrument:c,tracks:r,totalDuration:f}};function T(V){for(var k=u.length-1;k>=0;k--)if(u[k].cmd==="program"){u[k].channel=V;return}}function J(V){return V/1e6}function ye(V){return Math.round(V*a*1e6)/1e6}function Ae(V,k){for(var N=0;NV)N=y;else{var O=Pe(b,Qe(m),V);O===0?N=E:parseInt(O,10)===O?N=_:N=y}return L&&(N+=L,L=void 0),N<0&&(N=0),N>127&&(N=127),k?0:N}function ci(V,k){var N={};if(V.decoration)for(var O=0;O0;)u.push({cmd:"note",pitch:k.pitch+he,volume:k.volume,start:$,duration:ue,gap:0,instrument:l,style:"decoration"}),he=he===1?0:1,qe-=ue,$+=ue;break;case"mordent":u.push({cmd:"note",pitch:k.pitch,volume:k.volume,start:$,duration:ue,gap:0,instrument:l,style:"decoration"}),qe-=ue,$+=ue,u.push({cmd:"note",pitch:k.pitch+1,volume:k.volume,start:$,duration:ue,gap:0,instrument:l,style:"decoration"}),qe-=ue,$+=ue,u.push({cmd:"note",pitch:k.pitch,volume:k.volume,start:$,duration:qe,gap:0,instrument:l});break;case"lowermordent":u.push({cmd:"note",pitch:k.pitch,volume:k.volume,start:$,duration:ue,gap:0,instrument:l,style:"decoration"}),qe-=ue,$+=ue,u.push({cmd:"note",pitch:k.pitch-1,volume:k.volume,start:$,duration:ue,gap:0,instrument:l,style:"decoration"}),qe-=ue,$+=ue,u.push({cmd:"note",pitch:k.pitch,volume:k.volume,start:$,duration:qe,gap:0,instrument:l});break;case"turn":ue=k.duration/5,u.push({cmd:"note",pitch:k.pitch,volume:k.volume,start:$,duration:ue,gap:0,instrument:l,style:"decoration"}),u.push({cmd:"note",pitch:k.pitch+1,volume:k.volume,start:$+ue,duration:ue,gap:0,instrument:l,style:"decoration"}),u.push({cmd:"note",pitch:k.pitch,volume:k.volume,start:$+ue*2,duration:ue,gap:0,instrument:l,style:"decoration"}),u.push({cmd:"note",pitch:k.pitch+1,volume:k.volume,start:$+ue*3,duration:ue,gap:0,instrument:l,style:"decoration"}),u.push({cmd:"note",pitch:k.pitch,volume:k.volume,start:$+ue*4,duration:ue,gap:0,instrument:l});break;case"roll":for(;qe>0;)u.push({cmd:"note",pitch:k.pitch,volume:k.volume,start:$,duration:ue,gap:0,instrument:l,style:"decoration"}),qe-=ue*2,$+=ue*2;break}}function ti(V,k){var N=kt(J(V.time),k);p.processChord(V);var O;if(V.gracenotes&&V.pitches&&V.pitches.length>0&&V.pitches[0]&&(O=pt(V.gracenotes,V.pitches[0].duration),V.elem&&(V.elem.midiGraceNotePitches=Qt(O,J(V.time),N*2/3,l))),V.elem){var $=J(V.time),de=$/x/o*60*1e3;if(V.elem.currentTrackMilliseconds===void 0)V.elem.currentTrackMilliseconds=de,V.elem.currentTrackWholeNotes=$;else if(V.elem.currentTrackMilliseconds.length===void 0)V.elem.currentTrackMilliseconds!==de&&(V.elem.currentTrackMilliseconds=[V.elem.currentTrackMilliseconds,de],V.elem.currentTrackWholeNotes=[V.elem.currentTrackWholeNotes,$]);else{for(var qe=!1,ue=0;ue0?gt.endType="tenuto":he&&(gt.endType=he),gt.endType){case"tenuto":gt.gap=w;break;case"staccato":var ji=gt.duration*M;gt.gap=o/60*ji;break;default:gt.gap=S;break}u.push(gt)}}}d=u.length-1}var Hi=Mt(V);f=Math.max(f,J(V.time)+ye(Hi))}function Mt(V){return V.pitches&&V.pitches.length>0&&V.pitches[0]?V.pitches[0].duration:V.elem?V.elem.duration:V.duration}var Ce=[0,2,4,5,7,9,11];function xt(V){if(V.midipitch!==void 0)return V.midipitch;var k=V.pitch;if(V.accidental)switch(V.accidental){case"sharp":t[k]=1;break;case"flat":t[k]=-1;break;case"natural":t[k]=0;break;case"dblsharp":t[k]=2;break;case"dblflat":t[k]=-2;break;case"quartersharp":t[k]=.25;break;case"quarterflat":t[k]=-.25;break}var N=Ln(k)*12+Ce[Ci(k)]+60;return t[k]!==void 0?N+=t[k]:N+=e[Ci(k)],N+=n,N}function At(V){var k=[0,0,0,0,0,0,0];if(!V.accidentals)return k;for(var N=0;N=0?(V.pitch=Math.round(V.pitch),V.cents=-50):k.indexOf(".25")>=0&&(V.pitch=Math.round(V.pitch),V.cents=50),V}function Ln(V){return Math.floor(V/7)}function Ci(V){return V=V%7,V<0&&(V+=7),V}function Ji(V){if(V.pattern.length===0||V.on===!1)return{on:!1};for(var k=V.pattern[0],N=[],O="",$=0,de=0;de1){ue=ue.sort(function(Be,Ot){return Be.pitch-Ot.pitch});var he=ue[ue.length-1],fe=he.pitch%12,Ke=!1;for($=0;!Ke&&${function Lie(t,e){e||(e={});for(var n=!!e.lineBreaks,i=[],r=!1,o=[],s=[],a=[],c=[],l=[],u=[],d=[],h=0;h{var E5=fn(),S5=pn(),zie=i2(),Uie=w5(),qie=D5(),$ie=function(){this.reset=function(){this.version="1.1.0",this.media="screen",this.metaText={},this.metaTextInfo={},this.formatting={},this.lines=[],this.staffNum=0,this.voiceNum=0,this.lineNum=0,this.runningFonts={},delete this.visualTranspose},this.reset();function t(s,a,c,l){for(var u=0;u=a&&(c-=a),h[p].el_type==="bar")return c}return c}this.getPickupLength=function(){var s=this.getBarLength(),a=e(this.lines,s);return a<1e-8||s-a<1e-8?0:a},this.getBarLength=function(){var s=this.getMeterFraction();return s.num/s.den},this.getTotalTime=function(){return this.totalTime},this.getTotalBeats=function(){return this.totalBeats},this.millisecondsPerMeasure=function(s){var a;if(s)a=s;else{var c=this.metaText?this.metaText.tempo:null;a=this.getBpm(c)}a<=0&&(a=1);var l=this.getBeatsPerMeasure(),u=l/a;return u*6e4},this.getBeatsPerMeasure=function(){var s=this.getBeatLength(),a=this.getBarLength();return a/s},this.getMeter=function(){for(var s=0;ss)return p}}return null};function n(s){for(var a,c,l,u,d=s.length-1;d>=0;d--){var h=s[d];h.type==="bar"?(h.top=l,h.nextTop=a,a=l,h.bottom=u,h.nextBottom=c,c=u):h.type==="event"&&(l=h.top,u=h.top+h.height)}}function i(s){var a=[];for(var c in s)s.hasOwnProperty(c)&&a.push(s[c]);return a=a.sort(function(l,u){var d=l.milliseconds-u.milliseconds;return d!==0?d:l.type==="bar"?-1:1}),a}this.addElementToEvents=function(s,a,c,l,u,d,h,f,p,m){if(a.hint)return{isTiedState:void 0,duration:0};var v=a.durationClass?a.durationClass:a.duration;if(a.abcelem.rest&&a.abcelem.rest.type==="spacer"&&(v=0),v>0){for(var b=[],C=0;C0){var d=u.staffs[0],h=d.absoluteY,f=h-d.top*S5.STEP,p=u.staffs[u.staffs.length-1];h=p.absoluteY;for(var m=h-p.bottom*S5.STEP,v=m-f,b=u.voices,C=0;C0&&d["event"+E]&&(Y="event"+E),E=Math.round(C*1e3),G.type==="bar"){var Z=G.abcelem.type,ae=Z==="bar_right_repeat"||Z==="bar_dbl_repeat",S=G.abcelem.startEnding==="1",w=Z==="bar_left_repeat"||Z==="bar_dbl_repeat"||Z==="bar_right_repeat";if(ae){P>0&&(d[Y].endX=G.x),y===-1&&(y=P);var M=0;L=-1;for(var T=_;Tl.left&&(l.endX=Math.min(l.endX,d)):l.endX=d}}var h=a[a.length-1];h.endX=s[h.line].staffGroup.w}}this.getBpm=function(s){var a;if(s){a=s.bpm;var c=this.getBeatLength(),l=s.duration&&s.duration.length>0?s.duration[0]:c;a=a*l/c}if(!a){a=180;var u=this.getMeterFraction();u&&u.num!==3&&u.num%3===0&&(a=120)}return a},this.setTiming=function(s,a){if(a=a||0,!this.engraver||!this.engraver.staffgroups)return console.log("setTiming cannot be called before the tune is drawn."),this.noteTimings=[],this.noteTimings;var c=this.metaText?this.metaText.tempo:null,l=this.getBpm(c),u=1;s?c&&(u=s/l):s=l;var d=this.getBeatLength(),h=s/60,f=this.getBarLength(),p=f/d*a/h;p&&(p-=this.getPickupLength()/d/h);var m=d*h;return this.noteTimings=this.setupEvents(p,m,s,u),this.noteTimings.length>0?(this.totalTime=this.noteTimings[this.noteTimings.length-1].milliseconds/1e3,this.totalBeats=this.totalTime*h):(this.totalTime=void 0,this.totalBeats=void 0),this.noteTimings},this.setUpAudio=function(s){s||(s={});var a=zie(this,s);return Uie(a,s,this.formatting.percmap,this.formatting.midi)},this.deline=function(s){return qie(this.lines,s)},this.findSelectableElement=function(s){return this.engraver&&this.engraver.selectables?this.engraver.findSelectableElement(s):null},this.getSelectableArray=function(){return this.engraver&&this.engraver.selectables?this.engraver.selectables:[]}};I5.exports=$ie});var T5=j((Ske,M5)=>{var Wie=Sv(),Jc=fn(),Eke=Sf(),Gie=function(t){var e=this;this.setVisualTranspose=function(r){r&&(t.visualTranspose=r)},this.resolveOverlays=function(){for(var r=!1,o=[],s=0;s=t.lines[E].staff[0].voices.length&&t.lines[E].staff[0].voices.push([{el_type:"note",duration:o[E],rest:{type:"invisible"},startChar:C.startChar,endChar:C.endChar}])}else C.el_type==="bar"?(p?(p=!1,u[d].snip.push({start:v,len:b-v}),u[d].voice.push(C)):(f>0&&u[d].voice.push({el_type:"note",duration:f,rest:{type:"invisible"},startChar:C.startChar,endChar:C.endChar}),u[d].voice.push(C)),f=0):C.el_type==="note"?p?u[d].voice.push(C):(f+=C.duration,o[s]+=C.duration):(C.el_type==="scale"||C.el_type==="stem"||C.el_type==="overlay"||C.el_type==="style"||C.el_type==="transpose"||C.el_type==="color")&&u[d].voice.push(C)}u[d].hasOverlay&&u[d].snip.length===0&&u[d].snip.push({start:v,len:h.length-v})}for(d=0;d=0;y--){var x=_.snip[y];l.voices[d].splice(x.start,x.len),l.voices[d].splice(x.start+1,0,{el_type:"stem",direction:"auto"});var F=n(l.voices[d],x.start);l.voices[d].splice(F,0,{el_type:"stem",direction:"up"})}for(y=0;y0&&r[s].el_type!=="bar";s--);return s}function i(r){for(var o=!0,s=0;s=x&&Qx;){if(y[x].staff)return y[x];x++}return null}for(t.lineNum=0;t.lineNum0&&C[C.length-1].barNumber){var _=v(t.lines,t.lineNum);_&&(_.staff[0].barNumber=C[C.length-1].barNumber),delete C[C.length-1].barNumber}}}return delete t.staffNum,delete t.voiceNum,delete t.lineNum,delete t.potentialStartBeam,delete t.potentialEndBeam,delete t.vskipPending,s},t.reset(),this.getLastNote=function(){if(t.lines[t.lineNum]&&t.lines[t.lineNum].staff&&t.lines[t.lineNum].staff[t.staffNum]&&t.lines[t.lineNum].staff[t.staffNum].voices[t.voiceNum])for(var r=t.lines[t.lineNum].staff[t.staffNum].voices[t.voiceNum].length-1;r>=0;r--){var o=t.lines[t.lineNum].staff[t.staffNum].voices[t.voiceNum][r];if(o.el_type==="note")return o}return null},this.addTieToLastNote=function(r){var o=this.getLastNote();return o&&o.pitches&&o.pitches.length>0?(o.pitches[0].startTie={},r&&(o.pitches[0].startTie.style="dotted"),!0):!1},this.getDuration=function(r){return r.duration?r.duration:0},this.closeLine=function(){t.potentialStartBeam&&t.potentialEndBeam&&(t.potentialStartBeam.startBeam=!0,t.potentialEndBeam.endBeam=!0),delete t.potentialStartBeam,delete t.potentialEndBeam},this.appendElement=function(r,o,s,a){var c=t,l=function(f){var p=c.lines[c.lineNum].staff[c.staffNum];if(p){if(f.pitches!==void 0){var m=p.workingClef.verticalPos;f.pitches.forEach(function(b){b.verticalPos=b.pitch-m})}if(f.gracenotes!==void 0){var v=p.workingClef.verticalPos;f.gracenotes.forEach(function(b){b.verticalPos=b.pitch-v})}p.voices[c.voiceNum].push(f)}};a.el_type=r,o!==null&&(a.startChar=o),s!==null&&(a.endChar=s);var u=function(){c.potentialStartBeam.startBeam=!0,a.endBeam=!0,delete c.potentialStartBeam,delete c.potentialEndBeam},d=function(){c.potentialStartBeam!==void 0&&c.potentialEndBeam!==void 0&&(c.potentialStartBeam.startBeam=!0,c.potentialEndBeam.endBeam=!0),delete c.potentialStartBeam,delete c.potentialEndBeam};if(r==="note"){var h=e.getDuration(a);h>=.25||a.force_end_beam_last&&c.potentialStartBeam!==void 0?d():a.end_beam&&c.potentialStartBeam!==void 0?a.rest===void 0?u():d():a.rest===void 0&&(c.potentialStartBeam===void 0?a.end_beam||(c.potentialStartBeam=a,delete c.potentialEndBeam):c.potentialEndBeam=a)}else d();delete a.end_beam,delete a.force_end_beam_last,l(a)},this.appendStartingElement=function(r,o,s,a){this.closeLine();var c;r==="key"&&(c=a.impliedNaturals,delete a.impliedNaturals,delete a.explicitAccidentals);var l=Jc.clone(a);if(t.lines[t.lineNum]&&t.lines[t.lineNum].staff){t.lines[t.lineNum].staff.length<=t.staffNum&&(t.lines[t.lineNum].staff[t.staffNum]={},t.lines[t.lineNum].staff[t.staffNum].clef=Jc.clone(t.lines[t.lineNum].staff[0].clef),t.lines[t.lineNum].staff[t.staffNum].key=Jc.clone(t.lines[t.lineNum].staff[0].key),t.lines[t.lineNum].staff[0].meter&&(t.lines[t.lineNum].staff[t.staffNum].meter=Jc.clone(t.lines[t.lineNum].staff[0].meter)),t.lines[t.lineNum].staff[t.staffNum].workingClef=Jc.clone(t.lines[t.lineNum].staff[0].workingClef),t.lines[t.lineNum].staff[t.staffNum].voices=[[]]),r==="clef"&&(t.lines[t.lineNum].staff[t.staffNum].workingClef=l);for(var u=t.lines[t.lineNum].staff[t.staffNum].voices[t.voiceNum],d=0;d0){if(u.voices[0]!==void 0){for(var d=!1,h=0;h0){var s=o[o.length-1];if(s.el_type==="bar")s.barNumber!==void 0&&(s.barNumber=r);else return r-1}return r},this.hasBeginMusic=function(){for(var r=0;r=0;o--)if(t.lines[o].staff!==void 0)return!1;return!0},this.getCurrentVoice=function(){var r=t.lines[t.lineNum];if(!r)return null;var o=r.staff[t.staffNum];return o&&o.voices[t.voiceNum]!==void 0?o.voices[t.voiceNum]:null},this.setCurrentVoice=function(r,o){t.staffNum=r,t.voiceNum=o;for(var s=0;sd.length-1&&(v=d.length-1),[v-h+1,u(d.substring(h+1,v)),!1])}};e2.prototype.peekLine=function(){return this.lines[this.lineIndex]};e2.prototype.nextLine=function(){if(this.lineIndex>0&&(this.multilineVars.iChar+=this.lines[this.lineIndex-1].length+1),this.lineIndex{function wie(t,e,n){if(!(!e||t.lines.length===0)){var i=t.deline({lineBreaks:!1}),r=xie(i,e);t.lines=Cie(i,r,n),t.lineBreaks=r}}function Cie(t,e,n){for(var i=[],r=[],o=[],s=1,a=0;a0&&(i[c.line].staff[c.staff].barNumber=s);for(var u=Object.keys(l),d=0;d=0;p--)if(f[p].el_type==="key"){r[c.staff]={root:f[p].root,acc:f[p].acc,mode:f[p].mode,accidentals:f[p].accidentals.filter(function(v){return v.acc!=="natural"})};break}for(p=f.length-1;p>=0;p--)if(f[p].el_type==="stem"){o[c.staff*10+c.voice]={direction:f[p].direction};break}if(n!==void 0&&c.staff===0&&c.voice===0)for(p=0;p0?(n.push(o-1),i.push(Math.round(r-s)),r=s):oo&&do?(c.push(d-1),a++,s=Math.max(s,o),o=Math.abs(n-e[a]),r.push(i-h),i=h):o=f}r.push(i)}function Sie(t,e,n,i){for(var r=Math.ceil(t.total/e),o=Math.floor(t.total/r),s=[],a=0;ae&&(s=!0),a%n===n-1&&(a!==t.length-1&&i.push(a),r.push(Math.round(o)),o=0);return{failed:s,totals:r,lineBreaks:i}}function kie(t,e,n){var i={lineBreaks:t,staffwidth:e};for(var r in n)n.hasOwnProperty(r)&&r!=="wrap"&&r!=="staffwidth"&&(i[r]=n[r]);return{revisedParams:i}}function Mie(t,e,n){if(e.length===0||n.staffwidth0&&d.measureWidths.length<25&&(E=Sie(d,f,b,v),v.attempts.push({type:"Optimize",failed:E.failed,reason:E.reason,lineBreaks:E.lineBreaks,totals:E.totals}),E.failed||(b=E.lineBreaks))}c.push(b),l.push(v)}var _=n.staffwidth,y=kie(c,_,n);return y.explanation=l,y.reParse=!0,y}l5.exports={wrapLines:wie,calcLineWraps:Mie}});var pn=j((bke,d5)=>{var js={};js.FONTEM=360;js.FONTSIZE=30;js.STEP=js.FONTSIZE*93/720;js.SPACE=10;js.TOPNOTE=15;js.STAVEHEIGHT=100;js.INDENT=50;d5.exports=js});var i2=j((_ke,h5)=>{var u5,Of=fn();(function(){"use strict";var t=1,e=128;u5=function(f,p){p=p||{};var m,v=p.program||0,b=p.midiTranspose||0;f.visualTranspose&&(b-=f.visualTranspose);var C=p.channel||0,E=!1,_=p.drum||"",y=p.drumBars||1,x=p.drumIntro||0,F=_!=="",L=!!p.drumOff,P=[],Q=!1,G=50;v=parseInt(v,10),b=parseInt(b,10),C=parseInt(C,10),C===10&&(v=e),_=_.split(" "),y=parseInt(y,10),x=parseInt(x,10);var W=f.formatting.bagpipes;W&&(v=71);var Y=[];if(f.formatting.midi){var Z=f.formatting.midi;Z.program&&Z.program.length>0&&(v=Z.program[0],Z.program.length>1&&(v=Z.program[1],C=Z.program[0]),E=!0),Z.transpose&&(b=Z.transpose[0]),Z.channel&&(C=Z.channel[0],E=!0),Z.drum&&(_=Z.drum),Z.drumbars&&(y=Z.drumbars[0]),Z.drumon&&(F=!0),C===10&&(v=e),Z.beat&&Y.push({el_type:"beat",beats:Z.beat}),Z.nobeataccents&&Y.push({el_type:"beataccents",value:!1})}p.qpm?m=parseInt(p.qpm,10):f.metaText.tempo?m=a(f.metaText.tempo,f.getBeatLength()):p.defaultQpm?m=p.defaultQpm:m=180;var ae=[];W&&ae.push({el_type:"bagpipes"}),ae.push({el_type:"instrument",program:v}),C&&ae.push({el_type:"channel",channel:C}),b&&ae.push({el_type:"transpose",transpose:b}),ae.push({el_type:"tempo",qpm:m});for(var S=0;S=0?Hi="pppp":gt.decoration.indexOf("ppp")>=0?Hi="ppp":gt.decoration.indexOf("pp")>=0?Hi="pp":gt.decoration.indexOf("p")>=0?Hi="p":gt.decoration.indexOf("mp")>=0?Hi="mp":gt.decoration.indexOf("mf")>=0?Hi="mf":gt.decoration.indexOf("f")>=0?Hi="f":gt.decoration.indexOf("ff")>=0?Hi="ff":gt.decoration.indexOf("fff")>=0?Hi="fff":gt.decoration.indexOf("ffff")>=0&&(Hi="ffff"),Hi&&(Ae=ji[Hi].slice(0),w[Ce].push({el_type:"beat",beats:Ae.slice(0)}),M[pt]=!1,T[pt]=!1),gt.decoration.indexOf("crescendo(")>=0){var ll=n(Qt,xi,"crescendo)"),vu=Math.min(127,Ae[0]+G),ep=i(Qt,xi+ll+1,Object.keys(ji));ep&&(vu=ji[ep][0]),ll>0?M[pt]=Math.floor((vu-Ae[0])/ll):M[pt]=!1,T[pt]=!1}else if(gt.decoration.indexOf("crescendo)")>=0)M[pt]=!1;else if(gt.decoration.indexOf("diminuendo(")>=0){var or=n(Qt,xi,"diminuendo)"),bE=Math.max(15,Ae[0]-G),_E=i(Qt,xi+or+1,Object.keys(ji));_E&&(bE=ji[_E][0]),M[pt]=!1,or>0?T[pt]=Math.floor((bE-Ae[0])/or):T[pt]=!1}else gt.decoration.indexOf("diminuendo)")>=0&&(T[pt]=!1)};for(var Tt=ti.staff,Ce=0,Dt=0;Dt=0?w[Ce].push({el_type:"transpose",transpose:-12}):At.clef.type.indexOf("+8")>=0&&w[Ce].push({el_type:"transpose",transpose:12})),f.formatting.midi&&f.formatting.midi.drumoff&&(w[Ce].push({el_type:"bar"}),w[Ce].push({el_type:"drum",params:{pattern:"",on:!1}}));var Ln=0,Ci=0,Ji=0,Vn=0;Ae=[105,95,85,1];for(var xi=0;xi=0?w[Ce].push({el_type:"transpose",transpose:-12}):Le.type.indexOf("+8")>=0&&w[Ce].push({el_type:"transpose",transpose:12}));break;case"tempo":m=a(Le,f.getBeatLength()),w[Ce].push({el_type:"tempo",qpm:m,timing:J[Ce]}),ye[""+J[Ce]]={el_type:"tempo",qpm:m,timing:J[Ce]};break;case"bar":Ln>0&&w[Ce].push({el_type:"bar"}),mn(Le),Ln=0;var O=Le.type==="bar_right_repeat"||Le.type==="bar_dbl_repeat",$=Le.startEnding==="1",de=Le.type==="bar_left_repeat"||Le.type==="bar_dbl_repeat"||Le.type==="bar_right_repeat";if(O){var qe=Qe[Ce];qe||(qe=0);var ue=Pe[Ce];ue||(ue=w[Ce].length);for(var he=qe;heOt;)Ot++;if(w[Be].length>Ot){for(var N=0;N0&&w[0].length>0&&(w[0][0].pickupLength=f.getPickupLength()),w};function n(f,p,m){for(var v=0,b=p+1;b=0)return v;return v}function i(f,p,m){for(var v=Math.min(f.length,p+3),b=p;b=0)return f[b].decoration[C]}return null}function r(f,p){if(!(!p||p.length===0))for(var m=Object.keys(p),v=0;v=0&&C!==p[""+_.timing].qpm&&(C=p[""+_.timing].qpm,_.el_type==="tempo"?(_.qpm=p[""+_.timing].qpm,E++):(f[v].splice(E,0,{el_type:"tempo",qpm:p[""+_.timing].qpm,timing:_.timing}),E+=2))}}function o(f){for(var p=0;p=0&&m[v].el_type!=="bar";)m[v].noChordVoice=!0,v--}function s(f,p){if(!(!f||f.length<=p||!f[p].title))return f[p].title.join(" ")}function a(f,p){var m=.25;f.duration&&(m=f.duration[0]);var v=60;return f.bpm&&(v=f.bpm),m*v/p}function c(f){var p;switch(f.type){case"common_time":p={el_type:"meter",num:4,den:4};break;case"cut_time":p={el_type:"meter",num:2,den:2};break;case"specified":p={el_type:"meter",num:f.value[0].num,den:f.value[0].den};break;default:p={el_type:"meter"}}return t=p.num/p.den,p}function l(f){for(var p=[],m=0;m=0;m--)if(f[m].el_type===p.el_type){JSON.stringify(f[m])!==JSON.stringify(p)&&f.push(p);return}f.push(p)}})();h5.exports=u5});var g5=j((yke,m5)=>{var Tie=fn(),ui=function(e,n,i,r){this.chordTrack=[],this.chordTrackFinished=!1,this.chordChannel=e,this.currentChords=[],this.lastChord,this.chordLastBar,this.chordsOff=!!n,this.gChordTacet=this.chordsOff,this.hasRhythmHead=!1,this.transpose=0,this.lastBarTime=0,this.meter=r,this.tempoChangeFactor=1,this.bassInstrument=i.bassprog&&i.bassprog.length===1?i.bassprog[0]:0,this.chordInstrument=i.chordprog&&i.chordprog.length===1?i.chordprog[0]:0,this.boomVolume=i.bassvol&&i.bassvol.length===1?i.bassvol[0]:64,this.chickVolume=i.chordvol&&i.chordvol.length===1?i.chordvol[0]:48,this.overridePattern=i.gchord?p5(i.gchord[0]):void 0};ui.prototype.setMeter=function(t){this.meter=t};ui.prototype.setTempoChangeFactor=function(t){this.tempoChangeFactor=t};ui.prototype.setLastBarTime=function(t){this.lastBarTime=t};ui.prototype.setTranspose=function(t){this.transpose=t};ui.prototype.setRhythmHead=function(t,e){this.hasRhythmHead=t;var n=[];if(t&&this.lastChord&&this.lastChord.chick)for(var i=0;i0&&!this.chordTrackFinished&&(this.resolveChords(this.lastBarTime,n2(t.time)),this.currentChords=[]),this.chordLastBar=this.lastChord};ui.prototype.gChordOn=function(t){this.chordsOff||(this.gChordTacet=t.tacet)};ui.prototype.paramChange=function(t){switch(t.el_type){case"gchord":this.overridePattern=p5(t.param);break;case"bassprog":this.bassInstrument=t.param;break;case"chordprog":this.chordInstrument=t.param;break;case"bassvol":this.boomVolume=t.param;break;case"chordvol":this.chickVolume=t.param;break;default:console.log("unhandled midi param",t)}};ui.prototype.finish=function(){this.chordTrackEmpty()||(this.chordTrackFinished=!0)};ui.prototype.addTrack=function(t){this.chordTrackEmpty()||t.push(this.chordTrack)};ui.prototype.findChord=function(t){if(this.gChordTacet)return"break";if(this.chordTrackFinished||!t.chord||t.chord.length===0)return null;for(var e=0;e=0)return"break"}return null};ui.prototype.interpretChord=function(t){if(t.length!==0){if(t==="break")return{chick:[]};var e=t.substring(0,1);if(e==="("){if(t=t.substring(1,t.length-2),t.length===0)return;e=t.substring(0,1)}var n=this.basses[e];if(n){for(var i=this.transpose;i<-8;)i+=12;for(;i>8;)i-=12;n+=i;var r=n-5,o;t.length===1&&(o=this.chordNotes(n,""));var s=t.substring(1),a=s.substring(0,1);a==="b"||a==="\u266D"?(n--,r--,s=s.substring(1)):(a==="#"||a==="\u266F")&&(n++,r++,s=s.substring(1));var c=s.split("/");if(o=this.chordNotes(n,c[0]),o.length>=3){var l=o[2]-o[0];r=r+l-7}if(c.length===2){var u=this.basses[c[1].substring(0,1)];if(u){var d=c[1].substring(1),h={"#":1,"\u266F":1,b:-1,"\u266D":-1}[d]||0;n=this.basses[c[1].substring(0,1)]+h+i,r=n}}return{boom:n,boom2:r,chick:o}}}};ui.prototype.chordNotes=function(t,e){var n=this.chordIntervals[e];n||(e.slice(0,2).toLowerCase()==="ma"||e[0]==="M"?n=this.chordIntervals.M:e[0]==="m"||e[0]==="-"?n=this.chordIntervals.m:n=this.chordIntervals.M),t+=12;for(var i=[],r=0;r0&&c[d-1]&&c[d]&&c[d-1].boom!==c[d].boom&&(h=!0);var p=l[d],m=p.indexOf("boom")>=0,v=!m&&d!==0&&l[0].indexOf("boom")>=0&&(!c[d-1]||c[d-1].boom!==c[d].boom),b=Aie(c[d],p,h,v);m&&(h=!1);for(var C=0;C=0?r.push(n?t.boom:t.boom2):i&&r.push(t.boom),e.indexOf("chick")>=0)for(var o=0;o3?r.push(t.chick[2]):r.push(t.chick[0]+12);break;case"TOP":t.chick.length>4?r.push(t.chick[2]):r.push(t.chick[1]+12);break;case"do":r.push(t.chick[0]+12);break;case"mi":r.push(t.chick[1]+12);break;case"sol":r.push(t.chick[2]+12);break;case"ti":t.chick.length>3?r.push(t.chick[2]+12):r.push(t.chick[0]+24);break;case"top":t.chick.length>4?r.push(t.chick[2]+12):r.push(t.chick[1]+24);break}return r}function p5(t){for(var e=[],n=0;n{var Nie={f0:"_C",n0:"=C",s0:"^C",x0:"C",f1:"_D",n1:"=D",s1:"^D",x1:"D",f2:"_E",n2:"=E",s2:"^E",x2:"E",f3:"_F",n3:"=F",s3:"^F",x3:"F",f4:"_G",n4:"=G",s4:"^G",x4:"G",f5:"_A",n5:"=A",s5:"^A",x5:"A",f6:"_B",n6:"=B",s6:"^B",x6:"B",f7:"_c",n7:"=c",s7:"^c",x7:"c",f8:"_d",n8:"=d",s8:"^d",x8:"d",f9:"_e",n9:"=e",s9:"^e",x9:"e",f10:"_f",n10:"=f",s10:"^f",x10:"f",f11:"_g",n11:"=g",s11:"^g",x11:"g",f12:"_a",n12:"=a",s12:"^a",x12:"a",f13:"_b",n13:"=b",s13:"^b",x13:"b",f14:"_c'",n14:"=c'",s14:"^c'",x14:"c'",f15:"_d'",n15:"=d'",s15:"^d'",x15:"d'",f16:"_e'",n16:"=e'",s16:"^e'",x16:"e'"};function Fie(t){var e=(t.accidental?t.accidental[0]:"x")+t.verticalPos;return Nie[e]}v5.exports=Fie});var w5=j((Cke,y5)=>{var _5,Pie=g5(),b5=r2();(function(){"use strict";var t,e,n,i,r,o,s,a=1,c,l,u,d,h,f,p,m={num:4,den:4},v=128,b,C=!0,E=105,_=95,y=85,x=.25,F,L,P=0,Q,G,W={},Y,Z=0,ae,S=0,w=-.001,M=.4;_5=function(V,k,N,O){k||(k={}),O||(O={}),t=[],e=[0,0,0,0,0,0,0],i=!1,r=[],o=k.qpm,s=void 0,a=1,c=void 0,l=void 0,u=void 0,h=void 0,f=0,ae=N,m={num:4,den:4},C=!0,E=105,_=95,y=85,x=.25,F=void 0,L=void 0,P=0,Q=[],G=!1,W={},Y=1,V.length>0&&V[0].length>0&&(Z=V[0][0].pickupLength),k.bassprog!==void 0&&!O.bassprog&&(O.bassprog=[k.bassprog]),k.bassvol!==void 0&&!O.bassvol&&(O.bassvol=[k.bassvol]),k.chordprog!==void 0&&!O.chordprog&&(O.chordprog=[k.chordprog]),k.chordvol!==void 0&&!O.chordvol&&(O.chordvol=[k.chordvol]),k.gchord!==void 0&&!O.gchord&&(O.gchord=[k.gchord]),p=new Pie(V.length,k.chordsOff,O,m),Ae(V,k);for(var $=0;$=0)&&(qe=!0);for(var ue=0;ue0&&u[u.length-1].cmd==="program")u[u.length-1].instrument=he.program;else{var fe;for(fe=u.length-1;fe>=0&&u[fe].cmd!=="program";fe--);(fe<0||u[fe].instrument!==he.program)&&u.push({cmd:"program",channel:0,instrument:he.program})}break;case"channel":T(he.channel);break;case"drum":W=Ji(he.params),Vn();break;case"gchordOn":p.gChordOn(he);break;case"beat":E=he.beats[0],_=he.beats[1],y=he.beats[2];break;case"vol":F=he.volume;break;case"volinc":L=he.volume;break;case"beataccents":C=he.value;break;case"gchord":case"bassprog":case"chordprog":case"bassvol":case"chordvol":p.paramChange(he);break;default:console.log("MIDI creation. Unknown el_type: "+he.el_type+` +`);break}}u[0].instrument===void 0&&(u[0].instrument=c||0),h&&u.unshift(h),r.push(u),p.finish(),Q.length>0&&(G=!0)}return k.detuneOctave&&Le(r,parseInt(k.detuneOctave,10)),p.addTrack(r),Q.length>0&&r.push(Q),{tempo:o,instrument:c,tracks:r,totalDuration:f}};function T(V){for(var k=u.length-1;k>=0;k--)if(u[k].cmd==="program"){u[k].channel=V;return}}function J(V){return V/1e6}function ye(V){return Math.round(V*a*1e6)/1e6}function Ae(V,k){for(var N=0;NV)N=y;else{var O=Pe(b,Qe(m),V);O===0?N=E:parseInt(O,10)===O?N=_:N=y}return L&&(N+=L,L=void 0),N<0&&(N=0),N>127&&(N=127),k?0:N}function ci(V,k){var N={};if(V.decoration)for(var O=0;O0;)u.push({cmd:"note",pitch:k.pitch+he,volume:k.volume,start:$,duration:ue,gap:0,instrument:l,style:"decoration"}),he=he===1?0:1,qe-=ue,$+=ue;break;case"mordent":u.push({cmd:"note",pitch:k.pitch,volume:k.volume,start:$,duration:ue,gap:0,instrument:l,style:"decoration"}),qe-=ue,$+=ue,u.push({cmd:"note",pitch:k.pitch+1,volume:k.volume,start:$,duration:ue,gap:0,instrument:l,style:"decoration"}),qe-=ue,$+=ue,u.push({cmd:"note",pitch:k.pitch,volume:k.volume,start:$,duration:qe,gap:0,instrument:l});break;case"lowermordent":u.push({cmd:"note",pitch:k.pitch,volume:k.volume,start:$,duration:ue,gap:0,instrument:l,style:"decoration"}),qe-=ue,$+=ue,u.push({cmd:"note",pitch:k.pitch-1,volume:k.volume,start:$,duration:ue,gap:0,instrument:l,style:"decoration"}),qe-=ue,$+=ue,u.push({cmd:"note",pitch:k.pitch,volume:k.volume,start:$,duration:qe,gap:0,instrument:l});break;case"turn":ue=k.duration/5,u.push({cmd:"note",pitch:k.pitch,volume:k.volume,start:$,duration:ue,gap:0,instrument:l,style:"decoration"}),u.push({cmd:"note",pitch:k.pitch+1,volume:k.volume,start:$+ue,duration:ue,gap:0,instrument:l,style:"decoration"}),u.push({cmd:"note",pitch:k.pitch,volume:k.volume,start:$+ue*2,duration:ue,gap:0,instrument:l,style:"decoration"}),u.push({cmd:"note",pitch:k.pitch+1,volume:k.volume,start:$+ue*3,duration:ue,gap:0,instrument:l,style:"decoration"}),u.push({cmd:"note",pitch:k.pitch,volume:k.volume,start:$+ue*4,duration:ue,gap:0,instrument:l});break;case"roll":for(;qe>0;)u.push({cmd:"note",pitch:k.pitch,volume:k.volume,start:$,duration:ue,gap:0,instrument:l,style:"decoration"}),qe-=ue*2,$+=ue*2;break}}function ti(V,k){var N=Mt(J(V.time),k);p.processChord(V);var O;if(V.gracenotes&&V.pitches&&V.pitches.length>0&&V.pitches[0]&&(O=pt(V.gracenotes,V.pitches[0].duration),V.elem&&(V.elem.midiGraceNotePitches=Qt(O,J(V.time),N*2/3,l))),V.elem){var $=J(V.time),de=$/x/o*60*1e3;if(V.elem.currentTrackMilliseconds===void 0)V.elem.currentTrackMilliseconds=de,V.elem.currentTrackWholeNotes=$;else if(V.elem.currentTrackMilliseconds.length===void 0)V.elem.currentTrackMilliseconds!==de&&(V.elem.currentTrackMilliseconds=[V.elem.currentTrackMilliseconds,de],V.elem.currentTrackWholeNotes=[V.elem.currentTrackWholeNotes,$]);else{for(var qe=!1,ue=0;ue0?gt.endType="tenuto":he&&(gt.endType=he),gt.endType){case"tenuto":gt.gap=w;break;case"staccato":var ji=gt.duration*M;gt.gap=o/60*ji;break;default:gt.gap=S;break}u.push(gt)}}}d=u.length-1}var Hi=Tt(V);f=Math.max(f,J(V.time)+ye(Hi))}function Tt(V){return V.pitches&&V.pitches.length>0&&V.pitches[0]?V.pitches[0].duration:V.elem?V.elem.duration:V.duration}var Ce=[0,2,4,5,7,9,11];function Dt(V){if(V.midipitch!==void 0)return V.midipitch;var k=V.pitch;if(V.accidental)switch(V.accidental){case"sharp":t[k]=1;break;case"flat":t[k]=-1;break;case"natural":t[k]=0;break;case"dblsharp":t[k]=2;break;case"dblflat":t[k]=-2;break;case"quartersharp":t[k]=.25;break;case"quarterflat":t[k]=-.25;break}var N=Ln(k)*12+Ce[Ci(k)]+60;return t[k]!==void 0?N+=t[k]:N+=e[Ci(k)],N+=n,N}function At(V){var k=[0,0,0,0,0,0,0];if(!V.accidentals)return k;for(var N=0;N=0?(V.pitch=Math.round(V.pitch),V.cents=-50):k.indexOf(".25")>=0&&(V.pitch=Math.round(V.pitch),V.cents=50),V}function Ln(V){return Math.floor(V/7)}function Ci(V){return V=V%7,V<0&&(V+=7),V}function Ji(V){if(V.pattern.length===0||V.on===!1)return{on:!1};for(var k=V.pattern[0],N=[],O="",$=0,de=0;de1){ue=ue.sort(function(Be,Ot){return Be.pitch-Ot.pitch});var he=ue[ue.length-1],fe=he.pitch%12,Ke=!1;for($=0;!Ke&&${function Lie(t,e){e||(e={});for(var n=!!e.lineBreaks,i=[],r=!1,o=[],s=[],a=[],c=[],l=[],u=[],d=[],h=0;h{var E5=fn(),S5=pn(),zie=i2(),Uie=w5(),qie=D5(),$ie=function(){this.reset=function(){this.version="1.1.0",this.media="screen",this.metaText={},this.metaTextInfo={},this.formatting={},this.lines=[],this.staffNum=0,this.voiceNum=0,this.lineNum=0,this.runningFonts={},delete this.visualTranspose},this.reset();function t(s,a,c,l){for(var u=0;u=a&&(c-=a),h[p].el_type==="bar")return c}return c}this.getPickupLength=function(){var s=this.getBarLength(),a=e(this.lines,s);return a<1e-8||s-a<1e-8?0:a},this.getBarLength=function(){var s=this.getMeterFraction();return s.num/s.den},this.getTotalTime=function(){return this.totalTime},this.getTotalBeats=function(){return this.totalBeats},this.millisecondsPerMeasure=function(s){var a;if(s)a=s;else{var c=this.metaText?this.metaText.tempo:null;a=this.getBpm(c)}a<=0&&(a=1);var l=this.getBeatsPerMeasure(),u=l/a;return u*6e4},this.getBeatsPerMeasure=function(){var s=this.getBeatLength(),a=this.getBarLength();return a/s},this.getMeter=function(){for(var s=0;ss)return p}}return null};function n(s){for(var a,c,l,u,d=s.length-1;d>=0;d--){var h=s[d];h.type==="bar"?(h.top=l,h.nextTop=a,a=l,h.bottom=u,h.nextBottom=c,c=u):h.type==="event"&&(l=h.top,u=h.top+h.height)}}function i(s){var a=[];for(var c in s)s.hasOwnProperty(c)&&a.push(s[c]);return a=a.sort(function(l,u){var d=l.milliseconds-u.milliseconds;return d!==0?d:l.type==="bar"?-1:1}),a}this.addElementToEvents=function(s,a,c,l,u,d,h,f,p,m){if(a.hint)return{isTiedState:void 0,duration:0};var v=a.durationClass?a.durationClass:a.duration;if(a.abcelem.rest&&a.abcelem.rest.type==="spacer"&&(v=0),v>0){for(var b=[],C=0;C0){var d=u.staffs[0],h=d.absoluteY,f=h-d.top*S5.STEP,p=u.staffs[u.staffs.length-1];h=p.absoluteY;for(var m=h-p.bottom*S5.STEP,v=m-f,b=u.voices,C=0;C0&&d["event"+E]&&(Y="event"+E),E=Math.round(C*1e3),G.type==="bar"){var Z=G.abcelem.type,ae=Z==="bar_right_repeat"||Z==="bar_dbl_repeat",S=G.abcelem.startEnding==="1",w=Z==="bar_left_repeat"||Z==="bar_dbl_repeat"||Z==="bar_right_repeat";if(ae){P>0&&(d[Y].endX=G.x),y===-1&&(y=P);var M=0;L=-1;for(var T=_;Tl.left&&(l.endX=Math.min(l.endX,d)):l.endX=d}}var h=a[a.length-1];h.endX=s[h.line].staffGroup.w}}this.getBpm=function(s){var a;if(s){a=s.bpm;var c=this.getBeatLength(),l=s.duration&&s.duration.length>0?s.duration[0]:c;a=a*l/c}if(!a){a=180;var u=this.getMeterFraction();u&&u.num!==3&&u.num%3===0&&(a=120)}return a},this.setTiming=function(s,a){if(a=a||0,!this.engraver||!this.engraver.staffgroups)return console.log("setTiming cannot be called before the tune is drawn."),this.noteTimings=[],this.noteTimings;var c=this.metaText?this.metaText.tempo:null,l=this.getBpm(c),u=1;s?c&&(u=s/l):s=l;var d=this.getBeatLength(),h=s/60,f=this.getBarLength(),p=f/d*a/h;p&&(p-=this.getPickupLength()/d/h);var m=d*h;return this.noteTimings=this.setupEvents(p,m,s,u),this.noteTimings.length>0?(this.totalTime=this.noteTimings[this.noteTimings.length-1].milliseconds/1e3,this.totalBeats=this.totalTime*h):(this.totalTime=void 0,this.totalBeats=void 0),this.noteTimings},this.setUpAudio=function(s){s||(s={});var a=zie(this,s);return Uie(a,s,this.formatting.percmap,this.formatting.midi)},this.deline=function(s){return qie(this.lines,s)},this.findSelectableElement=function(s){return this.engraver&&this.engraver.selectables?this.engraver.findSelectableElement(s):null},this.getSelectableArray=function(){return this.engraver&&this.engraver.selectables?this.engraver.selectables:[]}};I5.exports=$ie});var T5=j((Ske,M5)=>{var Wie=Sv(),Jc=fn(),Eke=Sf(),Gie=function(t){var e=this;this.setVisualTranspose=function(r){r&&(t.visualTranspose=r)},this.resolveOverlays=function(){for(var r=!1,o=[],s=0;s=t.lines[E].staff[0].voices.length&&t.lines[E].staff[0].voices.push([{el_type:"note",duration:o[E],rest:{type:"invisible"},startChar:C.startChar,endChar:C.endChar}])}else C.el_type==="bar"?(p?(p=!1,u[d].snip.push({start:v,len:b-v}),u[d].voice.push(C)):(f>0&&u[d].voice.push({el_type:"note",duration:f,rest:{type:"invisible"},startChar:C.startChar,endChar:C.endChar}),u[d].voice.push(C)),f=0):C.el_type==="note"?p?u[d].voice.push(C):(f+=C.duration,o[s]+=C.duration):(C.el_type==="scale"||C.el_type==="stem"||C.el_type==="overlay"||C.el_type==="style"||C.el_type==="transpose"||C.el_type==="color")&&u[d].voice.push(C)}u[d].hasOverlay&&u[d].snip.length===0&&u[d].snip.push({start:v,len:h.length-v})}for(d=0;d=0;y--){var x=_.snip[y];l.voices[d].splice(x.start,x.len),l.voices[d].splice(x.start+1,0,{el_type:"stem",direction:"auto"});var F=n(l.voices[d],x.start);l.voices[d].splice(F,0,{el_type:"stem",direction:"up"})}for(y=0;y0&&r[s].el_type!=="bar";s--);return s}function i(r){for(var o=!0,s=0;s=x&&Qx;){if(y[x].staff)return y[x];x++}return null}for(t.lineNum=0;t.lineNum0&&C[C.length-1].barNumber){var _=v(t.lines,t.lineNum);_&&(_.staff[0].barNumber=C[C.length-1].barNumber),delete C[C.length-1].barNumber}}}return delete t.staffNum,delete t.voiceNum,delete t.lineNum,delete t.potentialStartBeam,delete t.potentialEndBeam,delete t.vskipPending,s},t.reset(),this.getLastNote=function(){if(t.lines[t.lineNum]&&t.lines[t.lineNum].staff&&t.lines[t.lineNum].staff[t.staffNum]&&t.lines[t.lineNum].staff[t.staffNum].voices[t.voiceNum])for(var r=t.lines[t.lineNum].staff[t.staffNum].voices[t.voiceNum].length-1;r>=0;r--){var o=t.lines[t.lineNum].staff[t.staffNum].voices[t.voiceNum][r];if(o.el_type==="note")return o}return null},this.addTieToLastNote=function(r){var o=this.getLastNote();return o&&o.pitches&&o.pitches.length>0?(o.pitches[0].startTie={},r&&(o.pitches[0].startTie.style="dotted"),!0):!1},this.getDuration=function(r){return r.duration?r.duration:0},this.closeLine=function(){t.potentialStartBeam&&t.potentialEndBeam&&(t.potentialStartBeam.startBeam=!0,t.potentialEndBeam.endBeam=!0),delete t.potentialStartBeam,delete t.potentialEndBeam},this.appendElement=function(r,o,s,a){var c=t,l=function(f){var p=c.lines[c.lineNum].staff[c.staffNum];if(p){if(f.pitches!==void 0){var m=p.workingClef.verticalPos;f.pitches.forEach(function(b){b.verticalPos=b.pitch-m})}if(f.gracenotes!==void 0){var v=p.workingClef.verticalPos;f.gracenotes.forEach(function(b){b.verticalPos=b.pitch-v})}p.voices[c.voiceNum].push(f)}};a.el_type=r,o!==null&&(a.startChar=o),s!==null&&(a.endChar=s);var u=function(){c.potentialStartBeam.startBeam=!0,a.endBeam=!0,delete c.potentialStartBeam,delete c.potentialEndBeam},d=function(){c.potentialStartBeam!==void 0&&c.potentialEndBeam!==void 0&&(c.potentialStartBeam.startBeam=!0,c.potentialEndBeam.endBeam=!0),delete c.potentialStartBeam,delete c.potentialEndBeam};if(r==="note"){var h=e.getDuration(a);h>=.25||a.force_end_beam_last&&c.potentialStartBeam!==void 0?d():a.end_beam&&c.potentialStartBeam!==void 0?a.rest===void 0?u():d():a.rest===void 0&&(c.potentialStartBeam===void 0?a.end_beam||(c.potentialStartBeam=a,delete c.potentialEndBeam):c.potentialEndBeam=a)}else d();delete a.end_beam,delete a.force_end_beam_last,l(a)},this.appendStartingElement=function(r,o,s,a){this.closeLine();var c;r==="key"&&(c=a.impliedNaturals,delete a.impliedNaturals,delete a.explicitAccidentals);var l=Jc.clone(a);if(t.lines[t.lineNum]&&t.lines[t.lineNum].staff){t.lines[t.lineNum].staff.length<=t.staffNum&&(t.lines[t.lineNum].staff[t.staffNum]={},t.lines[t.lineNum].staff[t.staffNum].clef=Jc.clone(t.lines[t.lineNum].staff[0].clef),t.lines[t.lineNum].staff[t.staffNum].key=Jc.clone(t.lines[t.lineNum].staff[0].key),t.lines[t.lineNum].staff[0].meter&&(t.lines[t.lineNum].staff[t.staffNum].meter=Jc.clone(t.lines[t.lineNum].staff[0].meter)),t.lines[t.lineNum].staff[t.staffNum].workingClef=Jc.clone(t.lines[t.lineNum].staff[0].workingClef),t.lines[t.lineNum].staff[t.staffNum].voices=[[]]),r==="clef"&&(t.lines[t.lineNum].staff[t.staffNum].workingClef=l);for(var u=t.lines[t.lineNum].staff[t.staffNum].voices[t.voiceNum],d=0;d0){if(u.voices[0]!==void 0){for(var d=!1,h=0;h0){var s=o[o.length-1];if(s.el_type==="bar")s.barNumber!==void 0&&(s.barNumber=r);else return r-1}return r},this.hasBeginMusic=function(){for(var r=0;r=0;o--)if(t.lines[o].staff!==void 0)return!1;return!0},this.getCurrentVoice=function(){var r=t.lines[t.lineNum];if(!r)return null;var o=r.staff[t.staffNum];return o&&o.voices[t.voiceNum]!==void 0?o.voices[t.voiceNum]:null},this.setCurrentVoice=function(r,o){t.staffNum=r,t.voiceNum=o;for(var s=0;s{var Hs=fn(),A5=Sf(),Qie=q4(),Kie=s5(),Xie=c5(),Zie=t2(),Jie=o2(),ene=T5(),tne=function(){"use strict";var t=new Jie,e=new ene(t),n,i="",r="";this.getTune=function(){var _={formatting:t.formatting,lines:t.lines,media:t.media,metaText:t.metaText,metaTextInfo:t.metaTextInfo,version:t.version,addElementToEvents:t.addElementToEvents,addUsefulCallbackInfo:t.addUsefulCallbackInfo,getTotalTime:t.getTotalTime,getTotalBeats:t.getTotalBeats,getBarLength:t.getBarLength,getBeatLength:t.getBeatLength,getBeatsPerMeasure:t.getBeatsPerMeasure,getBpm:t.getBpm,getMeter:t.getMeter,getMeterFraction:t.getMeterFraction,getPickupLength:t.getPickupLength,getKeySignature:t.getKeySignature,getElementFromChar:t.getElementFromChar,makeVoicesArray:t.makeVoicesArray,millisecondsPerMeasure:t.millisecondsPerMeasure,setupEvents:t.setupEvents,setTiming:t.setTiming,setUpAudio:t.setUpAudio,deline:t.deline,findSelectableElement:t.findSelectableElement,getSelectableArray:t.getSelectableArray};return t.lineBreaks&&(_.lineBreaks=t.lineBreaks),t.visualTranspose&&(_.visualTranspose=t.visualTranspose),_};function o(_,y,x){_.positioning||(_.positioning={}),_.positioning[y]=x}function s(_,y,x){_.fonts||(_.fonts={}),_.fonts[y]=x}var a={reset:function(){for(var _ in this)this.hasOwnProperty(_)&&typeof this[_]!="function"&&delete this[_];this.iChar=0,this.key={accidentals:[],root:"none",acc:"",mode:""},this.meter=null,this.origMeter=null,this.hasMainTitle=!1,this.default_length=.125,this.clef={type:"treble",verticalPos:0},this.octave=0,this.next_note_duration=0,this.start_new_line=!0,this.is_in_header=!0,this.partForNextLine={},this.tempoForNextLine=[],this.havent_set_length=!0,this.voices={},this.staves=[],this.macros={},this.currBarNumber=1,this.barCounter={},this.ignoredDecorations=[],this.score_is_present=!1,this.inEnding=!1,this.inTie=[],this.inTieChord={},this.vocalPosition="auto",this.dynamicPosition="auto",this.chordPosition="auto",this.ornamentPosition="auto",this.volumePosition="auto",this.openSlurs=[],this.freegchord=!1,this.endingHoldOver={}},differentFont:function(_,y){return this[_].decoration!==y[_].decoration||this[_].face!==y[_].face||this[_].size!==y[_].size||this[_].style!==y[_].style||this[_].weight!==y[_].weight},addFormattingOptions:function(_,y,x){x==="note"?(this.vocalPosition!=="auto"&&o(_,"vocalPosition",this.vocalPosition),this.dynamicPosition!=="auto"&&o(_,"dynamicPosition",this.dynamicPosition),this.chordPosition!=="auto"&&o(_,"chordPosition",this.chordPosition),this.ornamentPosition!=="auto"&&o(_,"ornamentPosition",this.ornamentPosition),this.volumePosition!=="auto"&&o(_,"volumePosition",this.volumePosition),this.differentFont("annotationfont",y)&&s(_,"annotationfont",this.annotationfont),this.differentFont("gchordfont",y)&&s(_,"gchordfont",this.gchordfont),this.differentFont("vocalfont",y)&&s(_,"vocalfont",this.vocalfont),this.differentFont("tripletfont",y)&&s(_,"tripletfont",this.tripletfont)):x==="bar"&&(this.dynamicPosition!=="auto"&&o(_,"dynamicPosition",this.dynamicPosition),this.chordPosition!=="auto"&&o(_,"chordPosition",this.chordPosition),this.ornamentPosition!=="auto"&&o(_,"ornamentPosition",this.ornamentPosition),this.volumePosition!=="auto"&&o(_,"volumePosition",this.volumePosition),this.differentFont("measurefont",y)&&s(_,"measurefont",this.measurefont),this.differentFont("repeatfont",y)&&s(_,"repeatfont",this.repeatfont))},duplicateStartEndingHoldOvers:function(){this.endingHoldOver={inTie:[],inTieChord:{}};for(var _=0;_/g,">")},d=function(_,y,x){y||(y=" ");var F=y[x];(F===" "||!F)&&(F="SPACE");var L=u(y.substring(x-64,x))+''+F+""+u(y.substring(x+1).substring(0,64));c("Music Line:"+n.lineIndex+":"+(x+1)+": "+_+": "+L),l({message:_,line:y,startChar:a.iChar+x,column:x})},h,f;this.getWarnings=function(){return a.warnings},this.getWarningObjects=function(){return a.warningObjects};var p=function(_,y){if(y.indexOf("")>=0){i+=y;return}if(y=i+y,i="",!_){d("Can't add words before the first line of music",_,0);return}y=Hs.strip(y),y[y.length-1]!=="-"&&(y=y+" ");for(var x=[],F=0,L=!1,P=function(Y){var Z=Hs.strip(y.substring(F,Y));if(Z=Z.replace(/\\([-_*|~])/g,"$1"),F=Y+1,Z.length>0){L&&(Z=Z.replace(/~/g," "));var ae=y[Y];return ae!=="_"&&ae!=="-"&&(ae=" "),x.push({syllable:n.translateString(Z),divider:ae}),L=!1,!0}return!1},Q=!1,G=0;G0&&(Hs.last(x).divider="-",x.push({skip:!0,to:"next"}));break;case"_":Q||(P(G),x.push({skip:!0,to:"slur"}));break;case"*":Q||(P(G),x.push({skip:!0,to:"next"}));break;case"|":Q||(P(G),x.push({skip:!0,to:"bar"}));break;case"~":Q||(L=!0);break}Q=y[G]==="\\"}var W=!1;_.forEach(function(Y){if(x.length!==0){if(x[0].skip){switch(x[0].to){case"next":Y.el_type==="note"&&Y.pitches!==null&&!W&&x.shift();break;case"slur":Y.el_type==="note"&&Y.pitches!==null&&x.shift();break;case"bar":Y.el_type==="bar"&&x.shift();break}Y.el_type!=="bar"&&(Y.lyric===void 0?Y.lyric=[{syllable:"",divider:" "}]:Y.lyric.push({syllable:"",divider:" "}))}else if(Y.el_type==="note"&&Y.rest===void 0&&!W){var Z=x.shift();Z.syllable&&(Z.syllable=Z.syllable.replace(/ +/g,"\xA0")),Y.lyric===void 0?Y.lyric=[Z]:Y.lyric.push(Z)}}})},m=function(_,y){if(y.indexOf("")>=0){r+=y;return}if(y=r+y,r="",!_){d("Can't add symbols before the first line of music",_,0);return}y=Hs.strip(y),y[y.length-1]!=="-"&&(y=y+" ");for(var x=[],F=0,L=!1,P=function(W){var Y=Hs.strip(y.substring(F,W));if(F=W+1,Y.length>0){L&&(Y=Y.replace(/~/g," "));var Z=y[W];return Z!=="_"&&Z!=="-"&&(Z=" "),x.push({syllable:n.translateString(Y),divider:Z}),L=!1,!0}return!1},Q=0;Q0&&(Hs.last(x).divider="-",x.push({skip:!0,to:"next"}));break;case"_":P(Q),x.push({skip:!0,to:"slur"});break;case"*":P(Q),x.push({skip:!0,to:"next"});break;case"|":P(Q),x.push({skip:!0,to:"bar"});break;case"~":L=!0;break}var G=!1;_.forEach(function(W){if(x.length!==0){if(x[0].skip)switch(x[0].to){case"next":W.el_type==="note"&&W.pitches!==null&&!G&&x.shift();break;case"slur":W.el_type==="note"&&W.pitches!==null&&x.shift();break;case"bar":W.el_type==="bar"&&x.shift();break}else if(W.el_type==="note"&&W.rest===void 0&&!G){var Y=x.shift();W.lyric===void 0?W.lyric=[Y]:W.lyric.push(Y)}}})},v=function(_){if(Hs.startsWith(_,"%%")){var y=A5.addDirective(_.substring(2));y&&d(y,_,2);return}var x=_.indexOf("%");if(x>=0&&(_=_.substring(0,x)),_=_.replace(/\s+$/,""),_.length!==0){if(i){p(e.getCurrentVoice(),_.substring(2));return}if(r){m(e.getCurrentVoice(),_.substring(2));return}if(_.length<2||_[1]!==":"||f.lineContinuation){f.parseMusic(_);return}var F=h.parseHeader(_);F.regular&&f.parseMusic(_),F.newline&&f.startNewLine(),F.words&&p(e.getCurrentVoice(),_.substring(2)),F.symbols&&m(e.getCurrentVoice(),_.substring(2))}};function b(_,y){_.push({el_type:"hint"});for(var x=0;x `),s){var b=e.warpTitle?e.warpTitle:"Change the playback speed.",C=e.warpAria?e.warpAria:b,E=e.bpm?e.bpm:"BPM";c+=' ( '+E+`) `}c+='
CSS required: load abcjs-audio.css
',c+=` -`,t.innerHTML=c}function Qf(t,e,n,i,r){var o=!0;if(Kf()?o=Kf().state==="suspended":AL(),!$ce())throw{status:"NotSupported",message:"This browser does not support audio."};(o||r)&&n&&n.classList.add("abcjs-loading"),o?Kf().resume().then(function(){i?i().then(function(s){nE(t,e,n,r)}):nE(t,e,n,r)}):nE(t,e,n,r)}function nE(t,e,n,i){i?t(e).then(function(){n&&n.classList.remove("abcjs-loading")}):(t(e),n&&n.classList.remove("abcjs-loading"))}function ele(t){var e=!!t.options.loopHandler,n=!!t.options.restartHandler,i=!!t.options.playHandler||!!t.options.playPromiseHandler,r=!!t.options.progressHandler,o=!!t.options.warpHandler,s=t.parent.querySelector(".abcjs-midi-start");e&&t.parent.querySelector(".abcjs-midi-loop").addEventListener("click",function(a){Qf(t.options.loopHandler,a,s,t.options.afterResume)}),n&&t.parent.querySelector(".abcjs-midi-reset").addEventListener("click",function(a){Qf(t.options.restartHandler,a,s,t.options.afterResume)}),i&&s.addEventListener("click",function(a){Qf(t.options.playPromiseHandler||t.options.playHandler,a,s,t.options.afterResume,!!t.options.playPromiseHandler)}),r&&t.parent.querySelector(".abcjs-midi-progress-background").addEventListener("click",function(a){Qf(t.options.progressHandler,a,s,t.options.afterResume)}),o&&t.parent.querySelector(".abcjs-midi-tempo").addEventListener("change",function(a){Qf(t.options.warpHandler,a,s,t.options.afterResume)})}RL.exports=Zce});var FL=j((LTe,NL)=>{var tle=iE(),ile=Xv(),nle=ol();function rle(t,e,n,i,r){for(var o=new tle,s=0;s{var ole=rE(),sle=Xv(),ale=bv(),PL=ol();function cle(){var t=this;t.warp=100,t.cursorControl=null,t.visualObj=null,t.timer=null,t.midiBuffer=null,t.options=null,t.currentTempo=null,t.control=null,t.isLooping=!1,t.isStarted=!1,t.isLoaded=!1,t.isLoading=!1,t.load=function(n,i,r){r||(r={}),r.displayPlay===void 0&&(r.displayPlay=!0),r.displayProgress===void 0&&(r.displayProgress=!0),t.control=new ole(n,{loopHandler:r.displayLoop?t.toggleLoop:void 0,restartHandler:r.displayRestart?t.restart:void 0,playPromiseHandler:r.displayPlay?t.play:void 0,progressHandler:r.displayProgress?t.randomAccess:void 0,warpHandler:r.displayWarp?t.onWarp:void 0,afterResume:t.init}),t.cursorControl=i,t.disable(!0)},t.disable=function(n){t.control&&t.control.disable(n)},t.setTune=function(n,i,r){return t.visualObj=n,t.disable(!1),t.options=r||{},t.control&&(t.pause(),t.setProgress(0,1),t.control.resetAll(),t.restart(),t.isStarted=!1),t.isLooping=!1,i?t.go():Promise.resolve({status:"no-audio-context"})},t.go=function(){t.isLoading=!0;var n=t.visualObj.millisecondsPerMeasure()*100/t.warp;t.currentTempo=Math.round(t.visualObj.getBeatsPerMeasure()/n*6e4),t.control&&t.control.setTempo(t.currentTempo),t.percent=0;var i;return t.midiBuffer||(t.midiBuffer=new sle),PL().resume().then(function(r){return t.midiBuffer.init({visualObj:t.visualObj,options:t.options,millisecondsPerMeasure:n})}).then(function(r){return i=r,t.midiBuffer.prime()}).then(function(){var r=16;return t.cursorControl&&t.cursorControl.beatSubdivisions!==void 0&&parseInt(t.cursorControl.beatSubdivisions,10)>=1&&parseInt(t.cursorControl.beatSubdivisions,10)<=64&&(r=parseInt(t.cursorControl.beatSubdivisions,10)),t.timer=new ale(t.visualObj,{beatCallback:t.beatCallback,eventCallback:t.eventCallback,lineEndCallback:t.lineEndCallback,qpm:t.currentTempo,extraMeasuresAtBeginning:t.cursorControl?t.cursorControl.extraMeasuresAtBeginning:void 0,lineEndAnticipation:t.cursorControl?t.cursorControl.lineEndAnticipation:0,beatSubdivisions:r}),t.cursorControl&&t.cursorControl.onReady&&typeof t.cursorControl.onReady=="function"&&t.cursorControl.onReady(t),t.isLoaded=!0,t.isLoading=!1,Promise.resolve({status:"created",notesStatus:i})})},t.destroy=function(){t.timer&&(t.timer.reset(),t.timer.stop(),t.timer=null),t.midiBuffer&&(t.midiBuffer.stop(),t.midiBuffer=null),t.setProgress(0,1),t.control&&t.control.resetAll()},t.play=function(){return t.runWhenReady(t._play,void 0)};function e(n){return new Promise(function(i){setTimeout(i,n)})}t.runWhenReady=function(n,i){return t.visualObj?t.isLoading?e(500).then(function(){return t.isLoading?t.runWhenReady(n,i):n(i)}):t.isLoaded?n(i):t.go().then(function(){return n(i)}):Promise.resolve({status:"loading"})},t._play=function(){return PL().resume().then(function(){return t.isStarted=!t.isStarted,t.isStarted?(t.cursorControl&&t.cursorControl.onStart&&typeof t.cursorControl.onStart=="function"&&t.cursorControl.onStart(),t.midiBuffer.start(),t.timer.start(t.percent),t.control&&t.control.pushPlay(!0)):t.pause(),Promise.resolve({status:"ok"})})},t.pause=function(){t.timer&&(t.timer.pause(),t.midiBuffer.pause(),t.control&&t.control.pushPlay(!1))},t.toggleLoop=function(){t.isLooping=!t.isLooping,t.control&&t.control.pushLoop(t.isLooping)},t.restart=function(){t.timer&&(t.timer.setProgress(0),t.midiBuffer.seek(0))},t.randomAccess=function(n){return t.runWhenReady(t._randomAccess,n)},t._randomAccess=function(n){var i=n.target.classList.contains("abcjs-midi-progress-indicator")?n.target.parentNode:n.target,r=(n.x-i.getBoundingClientRect().left)/i.offsetWidth;return r<0&&(r=0),r>1&&(r=1),t.seek(r),Promise.resolve({status:"ok"})},t.seek=function(n,i){t.timer&&t.midiBuffer&&(t.timer.setProgress(n,i),t.midiBuffer.seek(n,i))},t.setWarp=function(n){if(parseInt(n,10)>0){t.warp=parseInt(n,10);var i=t.isStarted,r=t.percent;return t.destroy(),t.isStarted=!1,t.go().then(function(){return t.setProgress(r,t.midiBuffer.duration*1e3),t.control&&t.control.setWarp(t.currentTempo,t.warp),i?t.play().then(function(){return t.seek(r),Promise.resolve()}):(t.seek(r),Promise.resolve())})}return Promise.resolve()},t.onWarp=function(n){var i=n.target.value;return t.setWarp(i)},t.setProgress=function(n,i){t.percent=n,t.control&&t.control.setProgress(n,i)},t.finished=function(){if(t.timer.reset(),t.isLooping)return t.timer.start(0),t.midiBuffer.finished(),t.midiBuffer.start(),"continue";t.timer.stop(),t.isStarted&&(t.control&&t.control.pushPlay(!1),t.isStarted=!1,t.midiBuffer.finished(),t.cursorControl&&t.cursorControl.onFinished&&typeof t.cursorControl.onFinished=="function"&&t.cursorControl.onFinished(),t.setProgress(0,1))},t.beatCallback=function(n,i,r,o){var s=n/i;t.setProgress(s,r),t.cursorControl&&t.cursorControl.onBeat&&typeof t.cursorControl.onBeat=="function"&&t.cursorControl.onBeat(n,i,r,o)},t.eventCallback=function(n){if(n)t.cursorControl&&t.cursorControl.onEvent&&typeof t.cursorControl.onEvent=="function"&&t.cursorControl.onEvent(n);else return t.finished()},t.lineEndCallback=function(n,i){t.cursorControl&&t.cursorControl.onLineEnd&&typeof t.cursorControl.onLineEnd=="function"&&t.cursorControl.onLineEnd(n,i)},t.getUrl=function(){return t.midiBuffer.download()},t.download=function(n){var i=t.getUrl(),r=document.createElement("a");document.body.appendChild(r),r.setAttribute("style","display: none;"),r.href=i,r.download=n||"output.wav",r.click(),window.URL.revokeObjectURL(i),document.body.removeChild(r)}}LL.exports=cle});var sE=j((BTe,BL)=>{var lle=tE(),VL;(function(){"use strict";function t(u,d){for(var h in d)d.hasOwnProperty(h)&&u.setAttribute(h,d[h]);return u}function e(){this.trackstrings="",this.trackcount=0,this.noteOnAndChannel="%90",this.noteOffAndChannel="%80"}e.prototype.setTempo=function(u){this.trackcount===0&&(this.startTrack(),this.track+="%00%FF%51%03"+a(Math.round(6e7/u),6),this.endTrack())},e.prototype.setGlobalInfo=function(u,d,h,f){if(this.trackcount===0){this.startTrack();var p=Math.round(6e7/u);this.track+="%00%FF%51%03"+a(p,6),h&&(this.track+=r(h)),f&&(this.track+=o(f)),d&&(this.track+=i(d,"%01")),this.endTrack()}},e.prototype.startTrack=function(){this.noteWarped={},this.track="",this.trackName="",this.trackInstrument="",this.silencelength=0,this.trackcount++,this.instrument&&this.setInstrument(this.instrument)},e.prototype.endTrack=function(){this.track=this.trackName+this.trackInstrument+this.track;var u=a(this.track.length/3+4,8);this.track="MTrk"+u+this.track+"%00%FF%2F%00",this.trackstrings+=this.track},e.prototype.setText=function(u,d){switch(u){case"name":this.trackName=i(d,"%03");break}},e.prototype.setInstrument=function(u){this.trackInstrument="%00%C0"+a(u,2),this.instrument=u},e.prototype.setChannel=function(u,d){this.channel=u;var h="%00%B"+this.channel.toString(16);this.track+=h+"%79%00",this.track+=h+"%40%00",this.track+=h+"%5B%30",d||(d=0),d=Math.round((d+1)*64),this.track+=h+"%0A"+a(d,2),this.track+=h+"%07%64",this.noteOnAndChannel="%9"+this.channel.toString(16),this.noteOffAndChannel="%8"+this.channel.toString(16)};var n=4096;e.prototype.startNote=function(u,d,h){if(this.track+=l(this.silencelength),this.silencelength=0,h){this.track+="%e"+this.channel.toString(16);var f=Math.round(lle(h)*n);this.track+=c(8192+f),this.track+=l(0),this.noteWarped[u]=!0}this.track+=this.noteOnAndChannel,this.track+="%"+u.toString(16)+a(d,2)},e.prototype.endNote=function(u){this.track+=l(this.silencelength),this.silencelength=0,this.noteWarped[u]&&(this.track+="%e"+this.channel.toString(16),this.track+=c(8192),this.track+=l(0),this.noteWarped[u]=!1),this.track+=this.noteOffAndChannel,this.track+="%"+u.toString(16)+"%00"},e.prototype.addRest=function(u){this.silencelength+=u,this.silencelength<0&&(this.silencelength=0)},e.prototype.getData=function(){return"data:audio/midi,MThd%00%00%00%06%00%01"+a(this.trackcount,4)+"%01%e0"+this.trackstrings},e.prototype.embed=function(u,d){var h=this.getData(),f=t(document.createElement("a"),{href:h});if(f.innerHTML="download midi",u.insertBefore(f,u.firstChild),!d){var p=t(document.createElement("embed"),{src:h,type:"video/quicktime",controller:"true",autoplay:"false",loop:"false",enablejavascript:"true",style:"display:block; height: 20px;"});u.insertBefore(p,u.firstChild)}};function i(u,d){for(var h="",f=0;fd&&(h=h.substring(0,d)),s(h)}function c(u){u=Math.round(u);var d=u%128,h=u-d;return a(h*2+d,4)}function l(u){var d=0,h=[];for(u=Math.round(u);u!==0;)h.push(u&127),u=u>>7;for(var f=h.length-1;f>=0;f--){d=d<<8;var p=h[f];f!==0&&(p=p|128),d=d|p}var m=d.toString(16).length;return m+=m%2,a(d,m)}VL=function(){return new e}})();BL.exports=VL});var zL=j((jTe,HL)=>{var dle=sE(),jL;(function(){"use strict";var t=1920;jL=function(n,i){i===void 0&&(i={});var r=n.setUpAudio(i),o=dle(),s=n.metaText?n.metaText.title:void 0;s&&s.length>128&&(s=s.substring(0,124)+"...");var a=n.getKeySignature(),c=n.getMeterFraction(),l=r.tempo/60;o.setGlobalInfo(r.tempo,s,a,c);for(var u=0;uu&&(p=i.pan[u]),f.instrument===128?(o.setChannel(9,p),o.setInstrument(0)):(o.setChannel(f.channel,p),o.setInstrument(f.instrument));break;case"note":var m=f.gap*l,v=f.start,b=v+f.duration-m;d[v]||(d[v]=[]),d[v].push({pitch:f.pitch,volume:f.volume,cents:f.cents}),d[b]||(d[b]=[]),d[b].push({pitch:f.pitch,volume:0});break;default:console.log("MIDI create Unknown: "+f.cmd)}}e(o,d,t),o.endTrack()}return o.getData()};function e(n,i,r){for(var o=Object.keys(i),s=0;sa){var u=(o[c]-a)*r;n.addRest(u),a=o[c]}for(var d=0;d{var ule=Ff(),hle=zL(),fle=function(t,e){var n={};if(e)for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.generateInline=!1;function r(o,s,a){var c=hle(s,n);switch(n.midiOutputType){case"encoded":return c;case"binary":var l=c.replace("data:audio/midi,","");l=l.replace(/MThd/g,"%4d%54%68%64"),l=l.replace(/MTrk/g,"%4d%54%72%6b");for(var u=new ArrayBuffer(l.length/3),d=new Uint8Array(u),h=0;h';e.preTextDownload&&(o+=e.preTextDownload);var s=t.metaText&&t.metaText.title?t.metaText.title:"Untitled",a;e.downloadLabel&&ple(e.downloadLabel)?a=e.downloadLabel(t,i):e.downloadLabel?a=e.downloadLabel.replace(/%T/,s):a='Download MIDI for "'+s+'"',s=s.toLowerCase().replace(/'/g,"").replace(/\W/g,"_").replace(/__/g,"_");var c=e.fileName?e.fileName:s+".midi";return o+=''+a+"",e.postTextDownload&&(o+=e.postTextDownload),o+""};UL.exports=fle});var cE=j((zTe,$L)=>{try{typeof window.CustomEvent!="function"&&(aE=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n},aE.prototype=window.Event.prototype,window.CustomEvent=aE)}catch{}var aE,Ka=function(t){typeof t=="string"?this.textarea=document.getElementById(t):this.textarea=t,this.initialText=this.textarea.value,this.isDragging=!1};Ka.prototype.addSelectionListener=function(t){this.textarea.onmousemove=function(e){this.isDragging&&t.fireSelectionChanged()}};Ka.prototype.addChangeListener=function(t){this.changelistener=t,this.textarea.onkeyup=function(){t.fireChanged()},this.textarea.onmousedown=function(){this.isDragging=!0,t.fireSelectionChanged()},this.textarea.onmouseup=function(){this.isDragging=!1,t.fireChanged()},this.textarea.onchange=function(){t.fireChanged()}};Ka.prototype.getSelection=function(){return{start:this.textarea.selectionStart,end:this.textarea.selectionEnd}};Ka.prototype.setSelection=function(t,e){if(this.textarea.setSelectionRange)this.textarea.setSelectionRange(t,e);else if(this.textarea.createTextRange){var n=this.textarea.createTextRange();n.collapse(!0),n.moveEnd("character",e),n.moveStart("character",t),n.select()}this.textarea.focus()};Ka.prototype.getString=function(){return this.textarea.value};Ka.prototype.setString=function(t){this.textarea.value=t,this.initialText=this.getString(),this.changelistener&&this.changelistener.fireChanged()};Ka.prototype.getElem=function(){return this.textarea};$L.exports=Ka});var YL=j((UTe,GL)=>{var WL=fn(),gle=oE(),vle=Yf(),ble=Z2(),_le=cE();function yle(t){var e={},n;if(t.abcjsParams)for(n in t.abcjsParams)t.abcjsParams.hasOwnProperty(n)&&(e[n]=t.abcjsParams[n]);if(t.midi_options)for(n in t.midi_options)t.midi_options.hasOwnProperty(n)&&(e[n]=t.midi_options[n]);if(t.parser_options)for(n in t.parser_options)t.parser_options.hasOwnProperty(n)&&(e[n]=t.parser_options[n]);if(t.render_options)for(n in t.render_options)t.render_options.hasOwnProperty(n)&&(e[n]=t.render_options[n]);return e.tablature&&t.warnings_id&&(e.tablature.warnings_id=t.warnings_id),e}var Zi=function(t,e){this.abcjsParams=yle(e),e.indicate_changed&&(this.indicate_changed=!0),typeof t=="string"?this.editarea=new _le(t):this.editarea=t,this.editarea.addSelectionListener(this),this.editarea.addChangeListener(this),e.canvas_id?this.div=e.canvas_id:e.paper_id?this.div=e.paper_id:(this.div=document.createElement("DIV"),this.editarea.getElem().parentNode.insertBefore(this.div,this.editarea.getElem())),typeof this.div=="string"&&(this.div=document.getElementById(this.div)),e.selectionChangeCallback&&(this.selectionChangeCallback=e.selectionChangeCallback),this.clientClickListener=this.abcjsParams.clickListener,this.abcjsParams.clickListener=this.highlight.bind(this),e.synth&&vle()&&(this.synth={el:e.synth.el,cursorControl:e.synth.cursorControl,options:e.synth.options}),e.generate_midi&&(this.generate_midi=e.generate_midi,this.abcjsParams.generateDownload&&(typeof e.midi_download_id=="string"?this.downloadMidi=document.getElementById(e.midi_download_id):e.midi_download_id&&(this.downloadMidi=e.midi_download_id)),this.abcjsParams.generateInline!==!1&&(typeof e.midi_id=="string"?this.inlineMidi=document.getElementById(e.midi_id):e.midi_id&&(this.inlineMidi=e.midi_id))),e.warnings_id?typeof e.warnings_id=="string"?this.warningsdiv=document.getElementById(e.warnings_id):this.warningsdiv=e.warnings_id:e.generate_warnings&&(this.warningsdiv=document.createElement("div"),this.div.parentNode.insertBefore(this.warningsdiv,this.div)),this.onchangeCallback=e.onchange,this.currentAbc="",this.tunes=[],this.bReentry=!1,this.parseABC(),this.modelChanged(),this.addClassName=function(n,i){var r=function(o,s){var a=o.className;return a.length>0&&(a===s||new RegExp("(^|\\s)"+s+"(\\s|$)").test(a))};return r(n,i)||(n.className+=(n.className?" ":"")+i),n},this.removeClassName=function(n,i){return n.className=WL.strip(n.className.replace(new RegExp("(^|\\s+)"+i+"(\\s+|$)")," ")),n},this.setReadOnly=function(n){var i="abc_textarea_readonly",r=this.editarea.getElem();n?(r.setAttribute("readonly","yes"),this.addClassName(r,i)):(r.removeAttribute("readonly"),this.removeClassName(r,i))}};Zi.prototype.redrawMidi=function(){if(this.generate_midi&&!this.midiPause){var t=new window.CustomEvent("generateMidi",{detail:{tunes:this.tunes,abcjsParams:this.abcjsParams,downloadMidiEl:this.downloadMidi,inlineMidiEl:this.inlineMidi,engravingEl:this.div}});window.dispatchEvent(t)}if(this.synth){var e=this.synth.synthControl;this.synth.synthControl||(this.synth.synthControl=new gle,this.synth.synthControl.load(this.synth.el,this.synth.cursorControl,this.synth.options)),this.synth.synthControl.setTune(this.tunes[0],e,this.synth.options)}};Zi.prototype.modelChanged=function(){if(!this.bReentry){this.bReentry=!0;try{this.timerId=null,this.synth&&this.synth.synthControl&&this.synth.synthControl.disable(!0),this.tunes=ble(this.div,this.currentAbc,this.abcjsParams),this.tunes.length>0&&(this.warnings=this.tunes[0].warnings),this.redrawMidi()}catch(t){console.error("ABCJS error: ",t),this.warnings||(this.warnings=[]),this.warnings.push(t.message)}this.warningsdiv&&(this.warningsdiv.innerHTML=this.warnings?this.warnings.join("
"):"No errors"),this.updateSelection(),this.bReentry=!1}};Zi.prototype.paramChanged=function(t){if(t)for(var e in t)t.hasOwnProperty(e)&&(this.abcjsParams[e]=t[e]);this.currentAbc="",this.fireChanged()};Zi.prototype.synthParamChanged=function(t){if(this.synth){if(this.synth.options={},t)for(var e in t)t.hasOwnProperty(e)&&(this.synth.options[e]=t[e]);this.currentAbc="",this.fireChanged()}};Zi.prototype.parseABC=function(){var t=this.editarea.getString();return t===this.currentAbc?(this.updateSelection(),!1):(this.currentAbc=t,!0)};Zi.prototype.updateSelection=function(){var t=this.editarea.getSelection();try{this.tunes.length>0&&this.tunes[0].engraver&&this.tunes[0].engraver.rangeHighlight(t.start,t.end)}catch{}this.selectionChangeCallback&&this.selectionChangeCallback(t.start,t.end)};Zi.prototype.fireSelectionChanged=function(){this.updateSelection()};Zi.prototype.setDirtyStyle=function(t){if(this.indicate_changed!==void 0){var e=function(o,s){var a=function(c,l){var u=c.className;return u.length>0&&(u===l||new RegExp("(^|\\s)"+l+"(\\s|$)").test(u))};return a(o,s)||(o.className+=(o.className?" ":"")+s),o},n=function(o,s){return o.className=WL.strip(o.className.replace(new RegExp("(^|\\s+)"+s+"(\\s+|$)")," ")),o},i="abc_textarea_dirty",r=this.editarea.getElem();t?e(r,i):n(r,i)}};Zi.prototype.fireChanged=function(){if(!this.bIsPaused&&this.parseABC()){var t=this;this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){t.modelChanged()},300);var e=this.isDirty();this.wasDirty!==e&&(this.wasDirty=e,this.setDirtyStyle(e)),this.onchangeCallback&&this.onchangeCallback(this)}};Zi.prototype.setNotDirty=function(){this.editarea.initialText=this.editarea.getString(),this.wasDirty=!1,this.setDirtyStyle(!1)};Zi.prototype.isDirty=function(){return this.indicate_changed===void 0?!1:this.editarea.initialText!==this.editarea.getString()};Zi.prototype.highlight=function(t,e,n,i,r,o){this.editarea.setSelection(t.startChar,t.endChar),this.selectionChangeCallback&&this.selectionChangeCallback(t.startChar,t.endChar),this.clientClickListener&&this.clientClickListener(t,e,n,i,r,o)};Zi.prototype.pause=function(t){this.bIsPaused=t,t||this.fireChanged()};Zi.prototype.millisecondsPerMeasure=function(){return!this.synth||!this.synth.synthControl||!this.synth.synthControl.visualObj?0:this.synth.synthControl.visualObj.millisecondsPerMeasure()};Zi.prototype.pauseMidi=function(t){this.midiPause=t,t||this.redrawMidi()};GL.exports=Zi});var Gs=j((qTe,XL)=>{var wle=C4(),QL=E4(),KL=Ff(),Cle=i2(),xle=E6(),Rr={};Rr.signature="abcjs-basic v"+wle;Object.keys(QL).forEach(function(t){Rr[t]=QL[t]});Object.keys(KL).forEach(function(t){Rr[t]=KL[t]});Rr.renderAbc=Z2();Rr.tuneMetrics=J8();Rr.TimingCallbacks=bv();var Dle=Us();Rr.setGlyph=Dle.setSymbol;Rr.strTranspose=xle;var Ele=Xv(),Sle=Yv(),Ile=Qv(),kle=iE(),Mle=rE(),Tle=Gf(),Ale=ol(),Rle=Yf(),Ole=FL(),Nle=oE(),Fle=qL(),Ple=sE();Rr.synth={CreateSynth:Ele,instrumentIndexToName:Sle,pitchToNoteName:Ile,SynthController:Nle,SynthSequence:kle,CreateSynthControl:Mle,registerAudioContext:Tle,activeAudioContext:Ale,supportsAudio:Rle,playEvent:Ole,getMidiFile:Fle,sequence:Cle,midiRenderer:Ple};Rr.Editor=YL();Rr.EditArea=cE();XL.exports=Rr});function xE(t,e){return Object.is(t,e)}var Di=null,bu=!1,ip=1,sr=Symbol("SIGNAL");function Dt(t){let e=Di;return Di=t,e}function DE(){return Di}function G9(){return bu}var dl={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function xb(t){if(bu)throw new Error("");if(Di===null)return;Di.consumerOnSignalRead(t);let e=Di.nextProducerIndex++;if(cp(Di),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function op(t){cp(t);for(let e=0;e0}function cp(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function TE(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function AE(t){return t.producerNode!==void 0}function Db(t){let e=Object.create(Q9);e.computation=t;let n=()=>{if(EE(e),xb(e),e.value===np)throw e.error;return e.value};return n[sr]=e,n}var yb=Symbol("UNSET"),wb=Symbol("COMPUTING"),np=Symbol("ERRORED"),Q9=mt(X({},dl),{value:yb,dirty:!0,error:null,equal:xE,producerMustRecompute(t){return t.value===yb||t.value===wb},producerRecomputeValue(t){if(t.value===wb)throw new Error("Detected cycle in computations.");let e=t.value;t.value=wb;let n=yu(t),i;try{i=t.computation()}catch(r){i=np,t.error=r}finally{rp(t,n)}if(e!==yb&&e!==np&&i!==np&&t.equal(e,i)){t.value=e;return}t.value=i,t.version++}});function K9(){throw new Error}var RE=K9;function OE(){RE()}function NE(t){RE=t}var X9=null;function FE(t){let e=Object.create(LE);e.value=t;let n=()=>(xb(e),e.value);return n[sr]=e,n}function Eb(t,e){IE()||OE(),t.equal(t.value,e)||(t.value=e,Z9(t))}function PE(t,e){IE()||OE(),Eb(t,e(t.value))}var LE=mt(X({},dl),{equal:xE,value:void 0});function Z9(t){t.version++,Y9(),SE(t),X9?.()}function VE(t,e,n){let i=Object.create(J9);n&&(i.consumerAllowSignalWrites=!0),i.fn=t,i.schedule=e;let r=c=>{i.cleanupFn=c};function o(c){return c.fn===null&&c.schedule===null}function s(c){o(c)||(sp(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Cb)}let a=()=>{if(i.fn===null)return;if(G9())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!op(i))return;i.hasRun=!0;let c=yu(i);try{i.cleanupFn(),i.cleanupFn=Cb,i.fn(r)}finally{rp(i,c)}};return i.ref={notify:()=>kE(i),run:a,cleanup:()=>i.cleanupFn(),destroy:()=>s(i),[sr]:i},i.ref}var Cb=()=>{},J9=mt(X({},dl),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:Cb});function os(t){return typeof t=="function"}var Sb=!1,gn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){let e=new Error;console.warn(`DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: +`,t.innerHTML=c}function Qf(t,e,n,i,r){var o=!0;if(Kf()?o=Kf().state==="suspended":AL(),!$ce())throw{status:"NotSupported",message:"This browser does not support audio."};(o||r)&&n&&n.classList.add("abcjs-loading"),o?Kf().resume().then(function(){i?i().then(function(s){nE(t,e,n,r)}):nE(t,e,n,r)}):nE(t,e,n,r)}function nE(t,e,n,i){i?t(e).then(function(){n&&n.classList.remove("abcjs-loading")}):(t(e),n&&n.classList.remove("abcjs-loading"))}function ele(t){var e=!!t.options.loopHandler,n=!!t.options.restartHandler,i=!!t.options.playHandler||!!t.options.playPromiseHandler,r=!!t.options.progressHandler,o=!!t.options.warpHandler,s=t.parent.querySelector(".abcjs-midi-start");e&&t.parent.querySelector(".abcjs-midi-loop").addEventListener("click",function(a){Qf(t.options.loopHandler,a,s,t.options.afterResume)}),n&&t.parent.querySelector(".abcjs-midi-reset").addEventListener("click",function(a){Qf(t.options.restartHandler,a,s,t.options.afterResume)}),i&&s.addEventListener("click",function(a){Qf(t.options.playPromiseHandler||t.options.playHandler,a,s,t.options.afterResume,!!t.options.playPromiseHandler)}),r&&t.parent.querySelector(".abcjs-midi-progress-background").addEventListener("click",function(a){Qf(t.options.progressHandler,a,s,t.options.afterResume)}),o&&t.parent.querySelector(".abcjs-midi-tempo").addEventListener("change",function(a){Qf(t.options.warpHandler,a,s,t.options.afterResume)})}RL.exports=Zce});var FL=j((LTe,NL)=>{var tle=iE(),ile=Xv(),nle=ol();function rle(t,e,n,i,r){for(var o=new tle,s=0;s{var ole=rE(),sle=Xv(),ale=bv(),PL=ol();function cle(){var t=this;t.warp=100,t.cursorControl=null,t.visualObj=null,t.timer=null,t.midiBuffer=null,t.options=null,t.currentTempo=null,t.control=null,t.isLooping=!1,t.isStarted=!1,t.isLoaded=!1,t.isLoading=!1,t.load=function(n,i,r){r||(r={}),r.displayPlay===void 0&&(r.displayPlay=!0),r.displayProgress===void 0&&(r.displayProgress=!0),t.control=new ole(n,{loopHandler:r.displayLoop?t.toggleLoop:void 0,restartHandler:r.displayRestart?t.restart:void 0,playPromiseHandler:r.displayPlay?t.play:void 0,progressHandler:r.displayProgress?t.randomAccess:void 0,warpHandler:r.displayWarp?t.onWarp:void 0,afterResume:t.init}),t.cursorControl=i,t.disable(!0)},t.disable=function(n){t.control&&t.control.disable(n)},t.setTune=function(n,i,r){return t.visualObj=n,t.disable(!1),t.options=r||{},t.control&&(t.pause(),t.setProgress(0,1),t.control.resetAll(),t.restart(),t.isStarted=!1),t.isLooping=!1,i?t.go():Promise.resolve({status:"no-audio-context"})},t.go=function(){t.isLoading=!0;var n=t.visualObj.millisecondsPerMeasure()*100/t.warp;t.currentTempo=Math.round(t.visualObj.getBeatsPerMeasure()/n*6e4),t.control&&t.control.setTempo(t.currentTempo),t.percent=0;var i;return t.midiBuffer||(t.midiBuffer=new sle),PL().resume().then(function(r){return t.midiBuffer.init({visualObj:t.visualObj,options:t.options,millisecondsPerMeasure:n})}).then(function(r){return i=r,t.midiBuffer.prime()}).then(function(){var r=16;return t.cursorControl&&t.cursorControl.beatSubdivisions!==void 0&&parseInt(t.cursorControl.beatSubdivisions,10)>=1&&parseInt(t.cursorControl.beatSubdivisions,10)<=64&&(r=parseInt(t.cursorControl.beatSubdivisions,10)),t.timer=new ale(t.visualObj,{beatCallback:t.beatCallback,eventCallback:t.eventCallback,lineEndCallback:t.lineEndCallback,qpm:t.currentTempo,extraMeasuresAtBeginning:t.cursorControl?t.cursorControl.extraMeasuresAtBeginning:void 0,lineEndAnticipation:t.cursorControl?t.cursorControl.lineEndAnticipation:0,beatSubdivisions:r}),t.cursorControl&&t.cursorControl.onReady&&typeof t.cursorControl.onReady=="function"&&t.cursorControl.onReady(t),t.isLoaded=!0,t.isLoading=!1,Promise.resolve({status:"created",notesStatus:i})})},t.destroy=function(){t.timer&&(t.timer.reset(),t.timer.stop(),t.timer=null),t.midiBuffer&&(t.midiBuffer.stop(),t.midiBuffer=null),t.setProgress(0,1),t.control&&t.control.resetAll()},t.play=function(){return t.runWhenReady(t._play,void 0)};function e(n){return new Promise(function(i){setTimeout(i,n)})}t.runWhenReady=function(n,i){return t.visualObj?t.isLoading?e(500).then(function(){return t.isLoading?t.runWhenReady(n,i):n(i)}):t.isLoaded?n(i):t.go().then(function(){return n(i)}):Promise.resolve({status:"loading"})},t._play=function(){return PL().resume().then(function(){return t.isStarted=!t.isStarted,t.isStarted?(t.cursorControl&&t.cursorControl.onStart&&typeof t.cursorControl.onStart=="function"&&t.cursorControl.onStart(),t.midiBuffer.start(),t.timer.start(t.percent),t.control&&t.control.pushPlay(!0)):t.pause(),Promise.resolve({status:"ok"})})},t.pause=function(){t.timer&&(t.timer.pause(),t.midiBuffer.pause(),t.control&&t.control.pushPlay(!1))},t.toggleLoop=function(){t.isLooping=!t.isLooping,t.control&&t.control.pushLoop(t.isLooping)},t.restart=function(){t.timer&&(t.timer.setProgress(0),t.midiBuffer.seek(0))},t.randomAccess=function(n){return t.runWhenReady(t._randomAccess,n)},t._randomAccess=function(n){var i=n.target.classList.contains("abcjs-midi-progress-indicator")?n.target.parentNode:n.target,r=(n.x-i.getBoundingClientRect().left)/i.offsetWidth;return r<0&&(r=0),r>1&&(r=1),t.seek(r),Promise.resolve({status:"ok"})},t.seek=function(n,i){t.timer&&t.midiBuffer&&(t.timer.setProgress(n,i),t.midiBuffer.seek(n,i))},t.setWarp=function(n){if(parseInt(n,10)>0){t.warp=parseInt(n,10);var i=t.isStarted,r=t.percent;return t.destroy(),t.isStarted=!1,t.go().then(function(){return t.setProgress(r,t.midiBuffer.duration*1e3),t.control&&t.control.setWarp(t.currentTempo,t.warp),i?t.play().then(function(){return t.seek(r),Promise.resolve()}):(t.seek(r),Promise.resolve())})}return Promise.resolve()},t.onWarp=function(n){var i=n.target.value;return t.setWarp(i)},t.setProgress=function(n,i){t.percent=n,t.control&&t.control.setProgress(n,i)},t.finished=function(){if(t.timer.reset(),t.isLooping)return t.timer.start(0),t.midiBuffer.finished(),t.midiBuffer.start(),"continue";t.timer.stop(),t.isStarted&&(t.control&&t.control.pushPlay(!1),t.isStarted=!1,t.midiBuffer.finished(),t.cursorControl&&t.cursorControl.onFinished&&typeof t.cursorControl.onFinished=="function"&&t.cursorControl.onFinished(),t.setProgress(0,1))},t.beatCallback=function(n,i,r,o){var s=n/i;t.setProgress(s,r),t.cursorControl&&t.cursorControl.onBeat&&typeof t.cursorControl.onBeat=="function"&&t.cursorControl.onBeat(n,i,r,o)},t.eventCallback=function(n){if(n)t.cursorControl&&t.cursorControl.onEvent&&typeof t.cursorControl.onEvent=="function"&&t.cursorControl.onEvent(n);else return t.finished()},t.lineEndCallback=function(n,i){t.cursorControl&&t.cursorControl.onLineEnd&&typeof t.cursorControl.onLineEnd=="function"&&t.cursorControl.onLineEnd(n,i)},t.getUrl=function(){return t.midiBuffer.download()},t.download=function(n){var i=t.getUrl(),r=document.createElement("a");document.body.appendChild(r),r.setAttribute("style","display: none;"),r.href=i,r.download=n||"output.wav",r.click(),window.URL.revokeObjectURL(i),document.body.removeChild(r)}}LL.exports=cle});var sE=j((BTe,BL)=>{var lle=tE(),VL;(function(){"use strict";function t(u,d){for(var h in d)d.hasOwnProperty(h)&&u.setAttribute(h,d[h]);return u}function e(){this.trackstrings="",this.trackcount=0,this.noteOnAndChannel="%90",this.noteOffAndChannel="%80"}e.prototype.setTempo=function(u){this.trackcount===0&&(this.startTrack(),this.track+="%00%FF%51%03"+a(Math.round(6e7/u),6),this.endTrack())},e.prototype.setGlobalInfo=function(u,d,h,f){if(this.trackcount===0){this.startTrack();var p=Math.round(6e7/u);this.track+="%00%FF%51%03"+a(p,6),h&&(this.track+=r(h)),f&&(this.track+=o(f)),d&&(this.track+=i(d,"%01")),this.endTrack()}},e.prototype.startTrack=function(){this.noteWarped={},this.track="",this.trackName="",this.trackInstrument="",this.silencelength=0,this.trackcount++,this.instrument&&this.setInstrument(this.instrument)},e.prototype.endTrack=function(){this.track=this.trackName+this.trackInstrument+this.track;var u=a(this.track.length/3+4,8);this.track="MTrk"+u+this.track+"%00%FF%2F%00",this.trackstrings+=this.track},e.prototype.setText=function(u,d){switch(u){case"name":this.trackName=i(d,"%03");break}},e.prototype.setInstrument=function(u){this.trackInstrument="%00%C0"+a(u,2),this.instrument=u},e.prototype.setChannel=function(u,d){this.channel=u;var h="%00%B"+this.channel.toString(16);this.track+=h+"%79%00",this.track+=h+"%40%00",this.track+=h+"%5B%30",d||(d=0),d=Math.round((d+1)*64),this.track+=h+"%0A"+a(d,2),this.track+=h+"%07%64",this.noteOnAndChannel="%9"+this.channel.toString(16),this.noteOffAndChannel="%8"+this.channel.toString(16)};var n=4096;e.prototype.startNote=function(u,d,h){if(this.track+=l(this.silencelength),this.silencelength=0,h){this.track+="%e"+this.channel.toString(16);var f=Math.round(lle(h)*n);this.track+=c(8192+f),this.track+=l(0),this.noteWarped[u]=!0}this.track+=this.noteOnAndChannel,this.track+="%"+u.toString(16)+a(d,2)},e.prototype.endNote=function(u){this.track+=l(this.silencelength),this.silencelength=0,this.noteWarped[u]&&(this.track+="%e"+this.channel.toString(16),this.track+=c(8192),this.track+=l(0),this.noteWarped[u]=!1),this.track+=this.noteOffAndChannel,this.track+="%"+u.toString(16)+"%00"},e.prototype.addRest=function(u){this.silencelength+=u,this.silencelength<0&&(this.silencelength=0)},e.prototype.getData=function(){return"data:audio/midi,MThd%00%00%00%06%00%01"+a(this.trackcount,4)+"%01%e0"+this.trackstrings},e.prototype.embed=function(u,d){var h=this.getData(),f=t(document.createElement("a"),{href:h});if(f.innerHTML="download midi",u.insertBefore(f,u.firstChild),!d){var p=t(document.createElement("embed"),{src:h,type:"video/quicktime",controller:"true",autoplay:"false",loop:"false",enablejavascript:"true",style:"display:block; height: 20px;"});u.insertBefore(p,u.firstChild)}};function i(u,d){for(var h="",f=0;fd&&(h=h.substring(0,d)),s(h)}function c(u){u=Math.round(u);var d=u%128,h=u-d;return a(h*2+d,4)}function l(u){var d=0,h=[];for(u=Math.round(u);u!==0;)h.push(u&127),u=u>>7;for(var f=h.length-1;f>=0;f--){d=d<<8;var p=h[f];f!==0&&(p=p|128),d=d|p}var m=d.toString(16).length;return m+=m%2,a(d,m)}VL=function(){return new e}})();BL.exports=VL});var zL=j((jTe,HL)=>{var dle=sE(),jL;(function(){"use strict";var t=1920;jL=function(n,i){i===void 0&&(i={});var r=n.setUpAudio(i),o=dle(),s=n.metaText?n.metaText.title:void 0;s&&s.length>128&&(s=s.substring(0,124)+"...");var a=n.getKeySignature(),c=n.getMeterFraction(),l=r.tempo/60;o.setGlobalInfo(r.tempo,s,a,c);for(var u=0;uu&&(p=i.pan[u]),f.instrument===128?(o.setChannel(9,p),o.setInstrument(0)):(o.setChannel(f.channel,p),o.setInstrument(f.instrument));break;case"note":var m=f.gap*l,v=f.start,b=v+f.duration-m;d[v]||(d[v]=[]),d[v].push({pitch:f.pitch,volume:f.volume,cents:f.cents}),d[b]||(d[b]=[]),d[b].push({pitch:f.pitch,volume:0});break;default:console.log("MIDI create Unknown: "+f.cmd)}}e(o,d,t),o.endTrack()}return o.getData()};function e(n,i,r){for(var o=Object.keys(i),s=0;sa){var u=(o[c]-a)*r;n.addRest(u),a=o[c]}for(var d=0;d{var ule=Ff(),hle=zL(),fle=function(t,e){var n={};if(e)for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.generateInline=!1;function r(o,s,a){var c=hle(s,n);switch(n.midiOutputType){case"encoded":return c;case"binary":var l=c.replace("data:audio/midi,","");l=l.replace(/MThd/g,"%4d%54%68%64"),l=l.replace(/MTrk/g,"%4d%54%72%6b");for(var u=new ArrayBuffer(l.length/3),d=new Uint8Array(u),h=0;h';e.preTextDownload&&(o+=e.preTextDownload);var s=t.metaText&&t.metaText.title?t.metaText.title:"Untitled",a;e.downloadLabel&&ple(e.downloadLabel)?a=e.downloadLabel(t,i):e.downloadLabel?a=e.downloadLabel.replace(/%T/,s):a='Download MIDI for "'+s+'"',s=s.toLowerCase().replace(/'/g,"").replace(/\W/g,"_").replace(/__/g,"_");var c=e.fileName?e.fileName:s+".midi";return o+=''+a+"",e.postTextDownload&&(o+=e.postTextDownload),o+""};UL.exports=fle});var cE=j((zTe,$L)=>{try{typeof window.CustomEvent!="function"&&(aE=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n},aE.prototype=window.Event.prototype,window.CustomEvent=aE)}catch{}var aE,Ka=function(t){typeof t=="string"?this.textarea=document.getElementById(t):this.textarea=t,this.initialText=this.textarea.value,this.isDragging=!1};Ka.prototype.addSelectionListener=function(t){this.textarea.onmousemove=function(e){this.isDragging&&t.fireSelectionChanged()}};Ka.prototype.addChangeListener=function(t){this.changelistener=t,this.textarea.onkeyup=function(){t.fireChanged()},this.textarea.onmousedown=function(){this.isDragging=!0,t.fireSelectionChanged()},this.textarea.onmouseup=function(){this.isDragging=!1,t.fireChanged()},this.textarea.onchange=function(){t.fireChanged()}};Ka.prototype.getSelection=function(){return{start:this.textarea.selectionStart,end:this.textarea.selectionEnd}};Ka.prototype.setSelection=function(t,e){if(this.textarea.setSelectionRange)this.textarea.setSelectionRange(t,e);else if(this.textarea.createTextRange){var n=this.textarea.createTextRange();n.collapse(!0),n.moveEnd("character",e),n.moveStart("character",t),n.select()}this.textarea.focus()};Ka.prototype.getString=function(){return this.textarea.value};Ka.prototype.setString=function(t){this.textarea.value=t,this.initialText=this.getString(),this.changelistener&&this.changelistener.fireChanged()};Ka.prototype.getElem=function(){return this.textarea};$L.exports=Ka});var YL=j((UTe,GL)=>{var WL=fn(),gle=oE(),vle=Yf(),ble=Z2(),_le=cE();function yle(t){var e={},n;if(t.abcjsParams)for(n in t.abcjsParams)t.abcjsParams.hasOwnProperty(n)&&(e[n]=t.abcjsParams[n]);if(t.midi_options)for(n in t.midi_options)t.midi_options.hasOwnProperty(n)&&(e[n]=t.midi_options[n]);if(t.parser_options)for(n in t.parser_options)t.parser_options.hasOwnProperty(n)&&(e[n]=t.parser_options[n]);if(t.render_options)for(n in t.render_options)t.render_options.hasOwnProperty(n)&&(e[n]=t.render_options[n]);return e.tablature&&t.warnings_id&&(e.tablature.warnings_id=t.warnings_id),e}var Zi=function(t,e){this.abcjsParams=yle(e),e.indicate_changed&&(this.indicate_changed=!0),typeof t=="string"?this.editarea=new _le(t):this.editarea=t,this.editarea.addSelectionListener(this),this.editarea.addChangeListener(this),e.canvas_id?this.div=e.canvas_id:e.paper_id?this.div=e.paper_id:(this.div=document.createElement("DIV"),this.editarea.getElem().parentNode.insertBefore(this.div,this.editarea.getElem())),typeof this.div=="string"&&(this.div=document.getElementById(this.div)),e.selectionChangeCallback&&(this.selectionChangeCallback=e.selectionChangeCallback),this.clientClickListener=this.abcjsParams.clickListener,this.abcjsParams.clickListener=this.highlight.bind(this),e.synth&&vle()&&(this.synth={el:e.synth.el,cursorControl:e.synth.cursorControl,options:e.synth.options}),e.generate_midi&&(this.generate_midi=e.generate_midi,this.abcjsParams.generateDownload&&(typeof e.midi_download_id=="string"?this.downloadMidi=document.getElementById(e.midi_download_id):e.midi_download_id&&(this.downloadMidi=e.midi_download_id)),this.abcjsParams.generateInline!==!1&&(typeof e.midi_id=="string"?this.inlineMidi=document.getElementById(e.midi_id):e.midi_id&&(this.inlineMidi=e.midi_id))),e.warnings_id?typeof e.warnings_id=="string"?this.warningsdiv=document.getElementById(e.warnings_id):this.warningsdiv=e.warnings_id:e.generate_warnings&&(this.warningsdiv=document.createElement("div"),this.div.parentNode.insertBefore(this.warningsdiv,this.div)),this.onchangeCallback=e.onchange,this.currentAbc="",this.tunes=[],this.bReentry=!1,this.parseABC(),this.modelChanged(),this.addClassName=function(n,i){var r=function(o,s){var a=o.className;return a.length>0&&(a===s||new RegExp("(^|\\s)"+s+"(\\s|$)").test(a))};return r(n,i)||(n.className+=(n.className?" ":"")+i),n},this.removeClassName=function(n,i){return n.className=WL.strip(n.className.replace(new RegExp("(^|\\s+)"+i+"(\\s+|$)")," ")),n},this.setReadOnly=function(n){var i="abc_textarea_readonly",r=this.editarea.getElem();n?(r.setAttribute("readonly","yes"),this.addClassName(r,i)):(r.removeAttribute("readonly"),this.removeClassName(r,i))}};Zi.prototype.redrawMidi=function(){if(this.generate_midi&&!this.midiPause){var t=new window.CustomEvent("generateMidi",{detail:{tunes:this.tunes,abcjsParams:this.abcjsParams,downloadMidiEl:this.downloadMidi,inlineMidiEl:this.inlineMidi,engravingEl:this.div}});window.dispatchEvent(t)}if(this.synth){var e=this.synth.synthControl;this.synth.synthControl||(this.synth.synthControl=new gle,this.synth.synthControl.load(this.synth.el,this.synth.cursorControl,this.synth.options)),this.synth.synthControl.setTune(this.tunes[0],e,this.synth.options)}};Zi.prototype.modelChanged=function(){if(!this.bReentry){this.bReentry=!0;try{this.timerId=null,this.synth&&this.synth.synthControl&&this.synth.synthControl.disable(!0),this.tunes=ble(this.div,this.currentAbc,this.abcjsParams),this.tunes.length>0&&(this.warnings=this.tunes[0].warnings),this.redrawMidi()}catch(t){console.error("ABCJS error: ",t),this.warnings||(this.warnings=[]),this.warnings.push(t.message)}this.warningsdiv&&(this.warningsdiv.innerHTML=this.warnings?this.warnings.join("
"):"No errors"),this.updateSelection(),this.bReentry=!1}};Zi.prototype.paramChanged=function(t){if(t)for(var e in t)t.hasOwnProperty(e)&&(this.abcjsParams[e]=t[e]);this.currentAbc="",this.fireChanged()};Zi.prototype.synthParamChanged=function(t){if(this.synth){if(this.synth.options={},t)for(var e in t)t.hasOwnProperty(e)&&(this.synth.options[e]=t[e]);this.currentAbc="",this.fireChanged()}};Zi.prototype.parseABC=function(){var t=this.editarea.getString();return t===this.currentAbc?(this.updateSelection(),!1):(this.currentAbc=t,!0)};Zi.prototype.updateSelection=function(){var t=this.editarea.getSelection();try{this.tunes.length>0&&this.tunes[0].engraver&&this.tunes[0].engraver.rangeHighlight(t.start,t.end)}catch{}this.selectionChangeCallback&&this.selectionChangeCallback(t.start,t.end)};Zi.prototype.fireSelectionChanged=function(){this.updateSelection()};Zi.prototype.setDirtyStyle=function(t){if(this.indicate_changed!==void 0){var e=function(o,s){var a=function(c,l){var u=c.className;return u.length>0&&(u===l||new RegExp("(^|\\s)"+l+"(\\s|$)").test(u))};return a(o,s)||(o.className+=(o.className?" ":"")+s),o},n=function(o,s){return o.className=WL.strip(o.className.replace(new RegExp("(^|\\s+)"+s+"(\\s+|$)")," ")),o},i="abc_textarea_dirty",r=this.editarea.getElem();t?e(r,i):n(r,i)}};Zi.prototype.fireChanged=function(){if(!this.bIsPaused&&this.parseABC()){var t=this;this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){t.modelChanged()},300);var e=this.isDirty();this.wasDirty!==e&&(this.wasDirty=e,this.setDirtyStyle(e)),this.onchangeCallback&&this.onchangeCallback(this)}};Zi.prototype.setNotDirty=function(){this.editarea.initialText=this.editarea.getString(),this.wasDirty=!1,this.setDirtyStyle(!1)};Zi.prototype.isDirty=function(){return this.indicate_changed===void 0?!1:this.editarea.initialText!==this.editarea.getString()};Zi.prototype.highlight=function(t,e,n,i,r,o){this.editarea.setSelection(t.startChar,t.endChar),this.selectionChangeCallback&&this.selectionChangeCallback(t.startChar,t.endChar),this.clientClickListener&&this.clientClickListener(t,e,n,i,r,o)};Zi.prototype.pause=function(t){this.bIsPaused=t,t||this.fireChanged()};Zi.prototype.millisecondsPerMeasure=function(){return!this.synth||!this.synth.synthControl||!this.synth.synthControl.visualObj?0:this.synth.synthControl.visualObj.millisecondsPerMeasure()};Zi.prototype.pauseMidi=function(t){this.midiPause=t,t||this.redrawMidi()};GL.exports=Zi});var Gs=j((qTe,XL)=>{var wle=C4(),QL=E4(),KL=Ff(),Cle=i2(),xle=E6(),Rr={};Rr.signature="abcjs-basic v"+wle;Object.keys(QL).forEach(function(t){Rr[t]=QL[t]});Object.keys(KL).forEach(function(t){Rr[t]=KL[t]});Rr.renderAbc=Z2();Rr.tuneMetrics=J8();Rr.TimingCallbacks=bv();var Dle=Us();Rr.setGlyph=Dle.setSymbol;Rr.strTranspose=xle;var Ele=Xv(),Sle=Yv(),Ile=Qv(),kle=iE(),Mle=rE(),Tle=Gf(),Ale=ol(),Rle=Yf(),Ole=FL(),Nle=oE(),Fle=qL(),Ple=sE();Rr.synth={CreateSynth:Ele,instrumentIndexToName:Sle,pitchToNoteName:Ile,SynthController:Nle,SynthSequence:kle,CreateSynthControl:Mle,registerAudioContext:Tle,activeAudioContext:Ale,supportsAudio:Rle,playEvent:Ole,getMidiFile:Fle,sequence:Cle,midiRenderer:Ple};Rr.Editor=YL();Rr.EditArea=cE();XL.exports=Rr});function xE(t,e){return Object.is(t,e)}var Di=null,bu=!1,ip=1,sr=Symbol("SIGNAL");function Et(t){let e=Di;return Di=t,e}function DE(){return Di}function G9(){return bu}var dl={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function xb(t){if(bu)throw new Error("");if(Di===null)return;Di.consumerOnSignalRead(t);let e=Di.nextProducerIndex++;if(cp(Di),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function op(t){cp(t);for(let e=0;e0}function cp(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function TE(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function AE(t){return t.producerNode!==void 0}function Db(t){let e=Object.create(Q9);e.computation=t;let n=()=>{if(EE(e),xb(e),e.value===np)throw e.error;return e.value};return n[sr]=e,n}var yb=Symbol("UNSET"),wb=Symbol("COMPUTING"),np=Symbol("ERRORED"),Q9=mt(X({},dl),{value:yb,dirty:!0,error:null,equal:xE,producerMustRecompute(t){return t.value===yb||t.value===wb},producerRecomputeValue(t){if(t.value===wb)throw new Error("Detected cycle in computations.");let e=t.value;t.value=wb;let n=yu(t),i;try{i=t.computation()}catch(r){i=np,t.error=r}finally{rp(t,n)}if(e!==yb&&e!==np&&i!==np&&t.equal(e,i)){t.value=e;return}t.value=i,t.version++}});function K9(){throw new Error}var RE=K9;function OE(){RE()}function NE(t){RE=t}var X9=null;function FE(t){let e=Object.create(LE);e.value=t;let n=()=>(xb(e),e.value);return n[sr]=e,n}function Eb(t,e){IE()||OE(),t.equal(t.value,e)||(t.value=e,Z9(t))}function PE(t,e){IE()||OE(),Eb(t,e(t.value))}var LE=mt(X({},dl),{equal:xE,value:void 0});function Z9(t){t.version++,Y9(),SE(t),X9?.()}function VE(t,e,n){let i=Object.create(J9);n&&(i.consumerAllowSignalWrites=!0),i.fn=t,i.schedule=e;let r=c=>{i.cleanupFn=c};function o(c){return c.fn===null&&c.schedule===null}function s(c){o(c)||(sp(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Cb)}let a=()=>{if(i.fn===null)return;if(G9())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!op(i))return;i.hasRun=!0;let c=yu(i);try{i.cleanupFn(),i.cleanupFn=Cb,i.fn(r)}finally{rp(i,c)}};return i.ref={notify:()=>kE(i),run:a,cleanup:()=>i.cleanupFn(),destroy:()=>s(i),[sr]:i},i.ref}var Cb=()=>{},J9=mt(X({},dl),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:Cb});function os(t){return typeof t=="function"}var Sb=!1,gn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){let e=new Error;console.warn(`DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: `+e.stack)}else Sb&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Sb=t},get useDeprecatedSynchronousErrorHandling(){return Sb}};function ss(t){setTimeout(()=>{throw t},0)}var ul={closed:!0,next(t){},error(t){if(gn.useDeprecatedSynchronousErrorHandling)throw t;ss(t)},complete(){}};var Lr=Array.isArray||(t=>t&&typeof t.length=="number");function hl(t){return t!==null&&typeof t=="object"}var e7=(()=>{function t(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription: ${e.map((n,i)=>`${i+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t})(),wu=e7;var Me=class t{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(n!==null)for(let s=0;se.concat(n instanceof wu?n.errors:n),[])}var ec=typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();var Xe=class t extends Me{constructor(e,n,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=ul;break;case 1:if(!e){this.destination=ul;break}if(typeof e=="object"){e instanceof t?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new lp(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new lp(this,e,n,i);break}}[ec](){return this}static create(e,n,i){let r=new t(e,n,i);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){let{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}},lp=class extends Xe{constructor(e,n,i,r){super(),this._parentSubscriber=e;let o,s=this;os(n)?o=n:n&&(o=n.next,i=n.error,r=n.complete,n!==ul&&(s=Object.create(n),os(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){let{_parentSubscriber:n}=this;!gn.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?this.__tryOrUnsub(this._next,e):this.__tryOrSetError(n,this._next,e)&&this.unsubscribe()}}error(e){if(!this.isStopped){let{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:i}=gn;if(this._error)!i||!n.syncErrorThrowable?(this.__tryOrUnsub(this._error,e),this.unsubscribe()):(this.__tryOrSetError(n,this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)i?(n.syncErrorValue=e,n.syncErrorThrown=!0):ss(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;ss(e)}}}complete(){if(!this.isStopped){let{_parentSubscriber:e}=this;if(this._complete){let n=()=>this._complete.call(this._context);!gn.useDeprecatedSynchronousErrorHandling||!e.syncErrorThrowable?(this.__tryOrUnsub(n),this.unsubscribe()):(this.__tryOrSetError(e,n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,n){try{e.call(this._context,n)}catch(i){if(this.unsubscribe(),gn.useDeprecatedSynchronousErrorHandling)throw i;ss(i)}}__tryOrSetError(e,n,i){if(!gn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,i)}catch(r){return gn.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(ss(r),!0)}return!1}_unsubscribe(){let{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}};function jE(t){for(;t;){let{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;n&&n instanceof Xe?t=n:t=null}return!0}function HE(t,e,n){if(t){if(t instanceof Xe)return t;if(t[ec])return t[ec]()}return!t&&!e&&!n?new Xe(ul):new Xe(t,e,n)}var yo=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Xs(t){return t}function Ib(...t){return kb(t)}function kb(t){return t.length===0?Xs:t.length===1?t[0]:function(n){return t.reduce((i,r)=>r(i),n)}}var $e=(()=>{class t{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){let i=new t;return i.source=this,i.operator=n,i}subscribe(n,i,r){let{operator:o}=this,s=HE(n,i,r);if(o?s.add(o.call(s,this.source)):s.add(this.source||gn.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),gn.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(n){try{return this._subscribe(n)}catch(i){gn.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=i),jE(n)?n.error(i):console.warn(i)}}forEach(n,i){return i=zE(i),new i((r,o)=>{let s;s=this.subscribe(a=>{try{n(a)}catch(c){o(c),s&&s.unsubscribe()}},o,r)})}_subscribe(n){let{source:i}=this;return i&&i.subscribe(n)}[yo](){return this}pipe(...n){return n.length===0?this:kb(n)(this)}toPromise(n){return n=zE(n),new n((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=e=>new t(e),t})();function zE(t){if(t||(t=gn.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var t7=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})(),wo=t7;var fl=class extends Me{constructor(e,n){super(),this.subject=e,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;let e=this.subject,n=e.observers;if(this.subject=null,!n||n.length===0||e.isStopped||e.closed)return;let i=n.indexOf(this.subscriber);i!==-1&&n.splice(i,1)}};var Cu=class extends Xe{constructor(e){super(e),this.destination=e}},K=(()=>{class t extends $e{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ec](){return new Cu(this)}lift(n){let i=new dp(this,this);return i.operator=n,i}next(n){if(this.closed)throw new wo;if(!this.isStopped){let{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew dp(e,n),t})(),dp=class extends K{constructor(e,n){super(),this.destination=e,this.source=n}next(e){let{destination:n}=this;n&&n.next&&n.next(e)}error(e){let{destination:n}=this;n&&n.error&&this.destination.error(e)}complete(){let{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){let{source:n}=this;return n?this.source.subscribe(e):Me.EMPTY}};function Zs(){return function(e){return e.lift(new Mb(e))}}var Mb=class{constructor(e){this.connectable=e}call(e,n){let{connectable:i}=this;i._refCount++;let r=new Tb(e,i),o=n.subscribe(r);return r.closed||(r.connection=i.connect()),o}},Tb=class extends Xe{constructor(e,n){super(e),this.connectable=n}_unsubscribe(){let{connectable:e}=this;if(!e){this.connection=null;return}this.connectable=null;let n=e._refCount;if(n<=0){this.connection=null;return}if(e._refCount=n-1,n>1){this.connection=null;return}let{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}};var as=class extends $e{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let 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 Me,e.add(this.source.subscribe(new Ab(this.getSubject(),this))),e.closed&&(this._connection=null,e=Me.EMPTY)),e}refCount(){return Zs()(this)}},UE=(()=>{let t=as.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})(),Ab=class extends Cu{constructor(e,n){super(e),this.connectable=n}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){let e=this.connectable;if(e){this.connectable=null;let n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}};var Vt=class extends K{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let n=super._subscribe(e);return n&&!n.closed&&e.next(this._value),n}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new wo;return this._value}next(e){super.next(this._value=e)}};var up=class extends Me{constructor(e,n){super()}schedule(e,n=0){return this}};var Co=class extends up{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){if(this.closed)return this;this.state=e;let i=this.id,r=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(r,i,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(r,this.id,n),this}requestAsyncId(e,n,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,n,i=0){if(i!==null&&this.delay===i&&this.pending===!1)return n;clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let i=this._execute(e,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let i=!1,r;try{this.work(e)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){let e=this.id,n=this.scheduler,i=n.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,r!==-1&&i.splice(r,1),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null}};var hp=class extends Co{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}schedule(e,n=0){return n>0?super.schedule(e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)}execute(e,n){return n>0||this.closed?super.execute(e,n):this._execute(e,n)}requestAsyncId(e,n,i=0){return i!==null&&i>0||i===null&&this.delay>0?super.requestAsyncId(e,n,i):e.flush(this)}};var Rb=(()=>{class t{constructor(n,i=t.now){this.SchedulerAction=n,this.now=i}schedule(n,i=0,r){return new this.SchedulerAction(this,n).schedule(r,i)}}return t.now=()=>Date.now(),t})();var xo=class t extends Rb{constructor(e,n=Rb.now){super(e,()=>t.delegate&&t.delegate!==this?t.delegate.now():n()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,n=0,i){return t.delegate&&t.delegate!==this?t.delegate.schedule(e,n,i):super.schedule(e,n,i)}flush(e){let{actions:n}=this;if(this.active){n.push(e);return}let i;this.active=!0;do if(i=e.execute(e.state,e.delay))break;while(e=n.shift());if(this.active=!1,i){for(;e=n.shift();)e.unsubscribe();throw i}}};var fp=class extends xo{};var i7=new fp(hp),qE=i7;var vn=new $e(t=>t.complete());function Js(t){return t?n7(t):vn}function n7(t){return new $e(e=>t.schedule(()=>e.complete()))}function Vr(t){return t&&typeof t.schedule=="function"}var pp=t=>e=>{for(let n=0,i=t.length;n{let i=new Me,r=0;return i.add(e.schedule(function(){if(r===t.length){n.complete();return}n.next(t[r++]),n.closed||i.add(this.schedule())})),i})}function ml(t,e){return e?pl(t,e):new $e(pp(t))}function we(...t){let e=t[t.length-1];return Vr(e)?(t.pop(),pl(t,e)):ml(t)}function ar(t,e){return e?new $e(n=>e.schedule(r7,0,{error:t,subscriber:n})):new $e(n=>n.error(t))}function r7({error:t,subscriber:e}){e.error(t)}var Bn=class t{constructor(e,n,i){this.kind=e,this.value=n,this.error=i,this.hasValue=e==="N"}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,n,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return n&&n(this.error);case"C":return i&&i()}}accept(e,n,i){return e&&typeof e.next=="function"?this.observe(e):this.do(e,n,i)}toObservable(){switch(this.kind){case"N":return we(this.value);case"E":return ar(this.error);case"C":return Js()}throw new Error("unexpected notification kind value")}static createNext(e){return typeof e<"u"?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}};Bn.completeNotification=new Bn("C");Bn.undefinedValueNotification=new Bn("N",void 0);var mp=class t extends Xe{constructor(e,n,i=0){super(e),this.scheduler=n,this.delay=i}static dispatch(e){let{notification:n,destination:i}=e;n.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new Ob(e,this.destination)))}_next(e){this.scheduleMessage(Bn.createNext(e))}_error(e){this.scheduleMessage(Bn.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(Bn.createComplete()),this.unsubscribe()}},Ob=class{constructor(e,n){this.notification=e,this.destination=n}};var bi=class extends K{constructor(e=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){let n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new Nb(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){let n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length,s;if(this.closed)throw new wo;if(this.isStopped||this.hasError?s=Me.EMPTY:(this.observers.push(e),s=new fl(this,e)),r&&e.add(e=new mp(e,r)),n)for(let a=0;an&&(s=Math.max(s,o-n)),s>0&&r.splice(0,s),r}},Nb=class{constructor(e,n){this.time=e,this.value=n}};var o7=1,s7=Promise.resolve(),Fb={};function $E(t){return t in Fb?(delete Fb[t],!0):!1}var Pb={setImmediate(t){let e=o7++;return Fb[e]=!0,s7.then(()=>$E(e)&&t()),e},clearImmediate(t){$E(t)}};var gp=class extends Co{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,i=0){return i!==null&&i>0?super.requestAsyncId(e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=Pb.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,n,i=0){if(i!==null&&i>0||i===null&&this.delay>0)return super.recycleAsyncId(e,n,i);e.actions.length===0&&(Pb.clearImmediate(n),e.scheduled=void 0)}};var vp=class extends xo{flush(e){this.active=!0,this.scheduled=void 0;let{actions:n}=this,i,r=-1,o=n.length;e=e||n.shift();do if(i=e.execute(e.state,e.delay))break;while(++r0?super.requestAsyncId(e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,n,i=0){if(i!==null&&i>0||i===null&&this.delay>0)return super.recycleAsyncId(e,n,i);e.actions.length===0&&(cancelAnimationFrame(n),e.scheduled=void 0)}};var yp=class extends xo{flush(e){this.active=!0,this.scheduled=void 0;let{actions:n}=this,i,r=-1,o=n.length;e=e||n.shift();do if(i=e.execute(e.state,e.delay))break;while(++r{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})(),wp=a7;var c7=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),ls=c7;function Te(t,e){return function(i){if(typeof t!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Vb(t,e))}}var Vb=class{constructor(e,n){this.project=e,this.thisArg=n}call(e,n){return n.subscribe(new Bb(e,this.project,this.thisArg))}},Bb=class extends Xe{constructor(e,n,i){super(e),this.project=n,this.count=0,this.thisArg=i||this}_next(e){let n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(i){this.destination.error(i);return}this.destination.next(n)}};var Cp=class extends Xe{notifyNext(e,n,i,r,o){this.destination.next(n)}notifyError(e,n){this.destination.error(e)}notifyComplete(e){this.destination.complete()}};var xp=class extends Xe{constructor(e,n,i){super(),this.parent=e,this.outerValue=n,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()}};var WE=t=>e=>(t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,ss),e);function l7(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ea=l7();var GE=t=>e=>{let n=t[ea]();do{let i;try{i=n.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}while(!0);return typeof n.return=="function"&&e.add(()=>{n.return&&n.return()}),e};var YE=t=>e=>{let n=t[yo]();if(typeof n.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)};var Dp=t=>t&&typeof t.length=="number"&&typeof t!="function";function Ep(t){return!!t&&typeof t.subscribe!="function"&&typeof t.then=="function"}var vl=t=>{if(t&&typeof t[yo]=="function")return YE(t);if(Dp(t))return pp(t);if(Ep(t))return WE(t);if(t&&typeof t[ea]=="function")return GE(t);{let n=`You provided ${hl(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function QE(t,e,n,i,r=new xp(t,n,i)){if(!r.closed)return e instanceof $e?e.subscribe(r):vl(e)(r)}var KE={};function jr(...t){let e,n;return Vr(t[t.length-1])&&(n=t.pop()),typeof t[t.length-1]=="function"&&(e=t.pop()),t.length===1&&Lr(t[0])&&(t=t[0]),ml(t,n).lift(new jb(e))}var jb=class{constructor(e){this.resultSelector=e}call(e,n){return n.subscribe(new Hb(e,this.resultSelector))}},Hb=class extends Cp{constructor(e,n){super(e),this.resultSelector=n,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(KE),this.observables.push(e)}_complete(){let e=this.observables,n=e.length;if(n===0)this.destination.complete();else{this.active=n,this.toRespond=n;for(let i=0;i{let i=new Me;return i.add(e.schedule(()=>{let r=t[yo]();i.add(r.subscribe({next(o){i.add(e.schedule(()=>n.next(o)))},error(o){i.add(e.schedule(()=>n.error(o)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}function ZE(t,e){return new $e(n=>{let i=new Me;return i.add(e.schedule(()=>t.then(r=>{i.add(e.schedule(()=>{n.next(r),i.add(e.schedule(()=>n.complete()))}))},r=>{i.add(e.schedule(()=>n.error(r)))}))),i})}function JE(t,e){if(!t)throw new Error("Iterable cannot be null");return new $e(n=>{let i=new Me,r;return i.add(()=>{r&&typeof r.return=="function"&&r.return()}),i.add(e.schedule(()=>{r=t[ea](),i.add(e.schedule(function(){if(n.closed)return;let o,s;try{let a=r.next();o=a.value,s=a.done}catch(a){n.error(a);return}s?n.complete():(n.next(o),this.schedule())}))})),i})}function eS(t){return t&&typeof t[yo]=="function"}function tS(t){return t&&typeof t[ea]=="function"}function iS(t,e){if(t!=null){if(eS(t))return XE(t,e);if(Ep(t))return ZE(t,e);if(Dp(t))return pl(t,e);if(tS(t)||typeof t=="string")return JE(t,e)}throw new TypeError((t!==null&&typeof t||t)+" is not observable")}function Kt(t,e){return e?iS(t,e):t instanceof $e?t:new $e(vl(t))}var cr=class extends Xe{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()}};var lr=class extends Xe{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}};function Do(t,e){if(e.closed)return;if(t instanceof $e)return t.subscribe(e);let n;try{n=vl(t)(e)}catch(i){e.error(i)}return n}function Ei(t,e,n=Number.POSITIVE_INFINITY){return typeof e=="function"?i=>i.pipe(Ei((r,o)=>Kt(t(r,o)).pipe(Te((s,a)=>e(r,s,o,a))),n)):(typeof e=="number"&&(n=e),i=>i.lift(new zb(t,n)))}var zb=class{constructor(e,n=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=n}call(e,n){return n.subscribe(new Ub(e,this.project,this.concurrent))}},Ub=class extends lr{constructor(e,n,i=Number.POSITIVE_INFINITY){super(e),this.project=n,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()}};function ta(t=Number.POSITIVE_INFINITY){return Ei(Xs,t)}function nS(){return ta(1)}function Eo(...t){return nS()(we(...t))}function en(t){return new $e(e=>{let n;try{n=t()}catch(r){e.error(r);return}return(n?Kt(n):Js()).subscribe(e)})}function tc(...t){if(t.length===1){let e=t[0];if(Lr(e))return Sp(e,null);if(hl(e)&&Object.getPrototypeOf(e)===Object.prototype){let n=Object.keys(e);return Sp(n.map(i=>e[i]),n)}}if(typeof t[t.length-1]=="function"){let e=t.pop();return t=t.length===1&&Lr(t[0])?t[0]:t,Sp(t,null).pipe(Te(n=>e(...n)))}return Sp(t,null)}function Sp(t,e){return new $e(n=>{let i=t.length;if(i===0){n.complete();return}let r=new Array(i),o=0,s=0;for(let a=0;a{l||(l=!0,s++),r[a]=u},error:u=>n.error(u),complete:()=>{o++,(o===i||!l)&&(s===i&&n.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),n.complete())}}))}})}function tn(t,e,n,i){return os(n)&&(i=n,n=void 0),i?tn(t,e,n).pipe(Te(r=>Lr(r)?i(...r):i(r))):new $e(r=>{function o(s){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(s)}rS(t,e,o,r,n)})}function rS(t,e,n,i,r){let o;if(h7(t)){let s=t;t.addEventListener(e,n,r),o=()=>s.removeEventListener(e,n,r)}else if(u7(t)){let s=t;t.on(e,n),o=()=>s.off(e,n)}else if(d7(t)){let s=t;t.addListener(e,n),o=()=>s.removeListener(e,n)}else if(t&&t.length)for(let s=0,a=t.length;s=0}function qb(t=0,e=bn){return(!xu(t)||t<0)&&(t=0),(!e||typeof e.schedule!="function")&&(e=bn),new $e(n=>(n.add(e.schedule(f7,t,{subscriber:n,counter:0,period:t})),n))}function f7(t){let{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}function yt(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return Vr(i)?(n=t.pop(),t.length>1&&typeof t[t.length-1]=="number"&&(e=t.pop())):typeof i=="number"&&(e=t.pop()),n===null&&t.length===1&&t[0]instanceof $e?t[0]:ta(e)(ml(t,n))}var ic=new $e(Br);function We(t,e){return function(i){return i.lift(new $b(t,e))}}var $b=class{constructor(e,n){this.predicate=e,this.thisArg=n}call(e,n){return n.subscribe(new Wb(e,this.predicate,this.thisArg))}},Wb=class extends Xe{constructor(e,n,i){super(e),this.predicate=n,this.thisArg=i,this.count=0}_next(e){let n;try{n=this.predicate.call(this.thisArg,e,this.count++)}catch(i){this.destination.error(i);return}n&&this.destination.next(e)}};function Du(t=0,e,n){let i=-1;return xu(e)?i=Number(e)<1&&1||Number(e):Vr(e)&&(n=e),Vr(n)||(n=bn),new $e(r=>{let o=xu(t)?t:+t-n.now();return n.schedule(p7,o,{index:0,period:i,subscriber:r})})}function p7(t){let{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(n===-1)return i.complete();t.index=e+1,this.schedule(t,n)}}function oS(t){return function(n){return n.lift(new Gb(t))}}var Gb=class{constructor(e){this.durationSelector=e}call(e,n){return n.subscribe(new Yb(e,this.durationSelector))}},Yb=class extends lr{constructor(e,n){super(e),this.durationSelector=n,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let n;try{let{durationSelector:r}=this;n=r(e)}catch(r){return this.destination.error(r)}let i=Do(n,new cr(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){let{value:e,hasValue:n,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),n&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}};function Eu(t,e=bn){return oS(()=>Du(t,e))}function ds(t){return function(n){let i=new Qb(t),r=n.lift(i);return i.caught=r}}var Qb=class{constructor(e){this.selector=e}call(e,n){return n.subscribe(new Kb(e,this.selector,this.caught))}},Kb=class extends lr{constructor(e,n,i){super(e),this.selector=n,this.caught=i}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(o){super.error(o);return}this._unsubscribeAndRecycle();let i=new cr(this);this.add(i);let r=Do(n,i);r!==i&&this.add(r)}}};function us(t,e){return Ei(t,e,1)}function Hr(t,e=bn){return n=>n.lift(new Xb(t,e))}var Xb=class{constructor(e,n){this.dueTime=e,this.scheduler=n}call(e,n){return n.subscribe(new Zb(e,this.dueTime,this.scheduler))}},Zb=class extends Xe{constructor(e,n,i){super(e),this.dueTime=n,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(m7,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){let{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){let e=this.debouncedSubscription;e!==null&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}};function m7(t){t.debouncedNext()}function ia(t=null){return e=>e.lift(new Jb(t))}var Jb=class{constructor(e){this.defaultValue=e}call(e,n){return n.subscribe(new e_(e,this.defaultValue))}},e_=class extends Xe{constructor(e,n){super(e),this.defaultValue=n,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}};function sS(t){return t instanceof Date&&!isNaN(+t)}function na(t,e=bn){let i=sS(t)?+t-e.now():Math.abs(t);return r=>r.lift(new t_(i,e))}var t_=class{constructor(e,n){this.delay=e,this.scheduler=n}call(e,n){return n.subscribe(new i_(e,this.delay,this.scheduler))}},i_=class t extends Xe{constructor(e,n,i){super(e),this.delay=n,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){let n=e.source,i=n.queue,r=e.scheduler,o=e.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(o);if(i.length>0){let s=Math.max(0,i[0].time-r.now());this.schedule(e,s)}else this.unsubscribe(),n.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(this.errored===!0)return;let n=this.scheduler,i=new n_(n.now()+this.delay,e);this.queue.push(i),this.active===!1&&this._schedule(n)}_next(e){this.scheduleNotification(Bn.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(Bn.createComplete()),this.unsubscribe()}},n_=class{constructor(e,n){this.time=e,this.notification=n}};function hs(t,e){return n=>n.lift(new r_(t,e))}var r_=class{constructor(e,n){this.compare=e,this.keySelector=n}call(e,n){return n.subscribe(new o_(e,this.compare,this.keySelector))}},o_=class extends Xe{constructor(e,n,i){super(e),this.keySelector=i,this.hasKey=!1,typeof n=="function"&&(this.compare=n)}compare(e,n){return e===n}_next(e){let n;try{let{keySelector:r}=this;n=r?r(e):e}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{let{compare:r}=this;i=r(this.key,n)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=n,this.destination.next(e))}};function Ip(t=g7){return e=>e.lift(new s_(t))}var s_=class{constructor(e){this.errorFactory=e}call(e,n){return n.subscribe(new a_(e,this.errorFactory))}},a_=class extends Xe{constructor(e,n){super(e),this.errorFactory=n,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(n){e=n}this.destination.error(e)}}};function g7(){return new ls}function wt(t){return e=>t===0?Js():e.lift(new c_(t))}var c_=class{constructor(e){if(this.total=e,this.total<0)throw new wp}call(e,n){return n.subscribe(new l_(e,this.total))}},l_=class extends Xe{constructor(e,n){super(e),this.total=n,this.count=0}_next(e){let n=this.total,i=++this.count;i<=n&&(this.destination.next(e),i===n&&(this.destination.complete(),this.unsubscribe()))}};function So(t){return e=>e.lift(new d_(t))}var d_=class{constructor(e){this.callback=e}call(e,n){return n.subscribe(new u_(e,this.callback))}},u_=class extends Xe{constructor(e,n){super(e),this.add(new Me(n))}};function Io(t,e){let n=arguments.length>=2;return i=>i.pipe(t?We((r,o)=>t(r,o,i)):Xs,wt(1),n?ia(e):Ip(()=>new ls))}function bl(t){return function(n){return t===0?Js():n.lift(new h_(t))}}var h_=class{constructor(e){if(this.total=e,this.total<0)throw new wp}call(e,n){return n.subscribe(new f_(e,this.total))}},f_=class extends Xe{constructor(e,n){super(e),this.total=n,this.ring=new Array,this.count=0}_next(e){let n=this.ring,i=this.total,r=this.count++;if(n.length0){let i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(t?We((r,o)=>t(r,o,i)):Xs,bl(1),n?ia(e):Ip(()=>new ls))}function _l(t){return e=>e.lift(new m_(t))}var m_=class{constructor(e){this.value=e}call(e,n){return n.subscribe(new g_(e,this.value))}},g_=class extends Xe{constructor(e,n){super(e),this.value=n}_next(e){this.destination.next(this.value)}};function __(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new v_(t,e,n))}}var v_=class{constructor(e,n,i=!1){this.accumulator=e,this.seed=n,this.hasSeed=i}call(e,n){return n.subscribe(new b_(e,this.accumulator,this.seed,this.hasSeed))}},b_=class extends Xe{constructor(e,n,i,r){super(e),this.accumulator=n,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(!this.hasSeed)this.seed=e,this.destination.next(e);else return this._tryNext(e)}_tryNext(e){let n=this.index++,i;try{i=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}};function Su(t,e){return function(i){let r;if(typeof t=="function"?r=t:r=function(){return t},typeof e=="function")return i.lift(new y_(r,e));let o=Object.create(i,UE);return o.source=i,o.subjectFactory=r,o}}var y_=class{constructor(e,n){this.subjectFactory=e,this.selector=n}call(e,n){let{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(e);return o.add(n.subscribe(r)),o}};function x_(){return t=>t.lift(new w_)}var w_=class{call(e,n){return n.subscribe(new C_(e))}},C_=class extends Xe{constructor(e){super(e),this.hasPrev=!1}_next(e){let n;this.hasPrev?n=[this.prev,e]:this.hasPrev=!0,this.prev=e,n&&this.destination.next(n)}};function D_(t){return t?Su(()=>new K,t):Su(new K)}function v7(){return new K}function E_(){return t=>Zs()(Su(v7)(t))}function Iu(t,e,n){let i;return t&&typeof t=="object"?i=t:i={bufferSize:t,windowTime:e,refCount:!1,scheduler:n},r=>r.lift(b7(i))}function b7({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:i}){let r,o=0,s,a=!1,c=!1;return function(u){o++;let d;!r||a?(a=!1,r=new bi(t,e,i),d=r.subscribe(this),s=u.subscribe({next(h){r.next(h)},error(h){a=!0,r.error(h)},complete(){c=!0,s=void 0,r.complete()}}),c&&(s=void 0)):d=r.subscribe(this),this.add(()=>{o--,d.unsubscribe(),d=void 0,s&&!c&&n&&o===0&&(s.unsubscribe(),s=void 0,r=void 0)})}}function ku(t){return e=>e.lift(new S_(t))}var S_=class{constructor(e){this.total=e}call(e,n){return n.subscribe(new I_(e,this.total))}},I_=class extends Xe{constructor(e,n){super(e),this.total=n,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}};function Bt(...t){let e=t[t.length-1];return Vr(e)?(t.pop(),n=>Eo(t,n,e)):n=>Eo(t,n)}function Nt(t,e){return typeof e=="function"?n=>n.pipe(Nt((i,r)=>Kt(t(i,r)).pipe(Te((o,s)=>e(i,o,r,s))))):n=>n.lift(new k_(t))}var k_=class{constructor(e){this.project=e}call(e,n){return n.subscribe(new M_(e,this.project))}},M_=class extends lr{constructor(e,n){super(e),this.project=n,this.index=0}_next(e){let n,i=this.index++;try{n=this.project(e,i)}catch(r){this.destination.error(r);return}this._innerSub(n)}_innerSub(e){let n=this.innerSubscription;n&&n.unsubscribe();let i=new cr(this),r=this.destination;r.add(i),this.innerSubscription=Do(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){let{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)}};function ot(t){return e=>e.lift(new T_(t))}var T_=class{constructor(e){this.notifier=e}call(e,n){let i=new A_(e),r=Do(this.notifier,new cr(i));return r&&!i.seenValue?(i.add(r),n.subscribe(i)):i}},A_=class extends lr{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}};function N_(t,e=!1){return n=>n.lift(new R_(t,e))}var R_=class{constructor(e,n){this.predicate=e,this.inclusive=n}call(e,n){return n.subscribe(new O_(e,this.predicate,this.inclusive))}},O_=class extends Xe{constructor(e,n,i){super(e),this.predicate=n,this.inclusive=i,this.index=0}_next(e){let n=this.destination,i;try{i=this.predicate(e,this.index++)}catch(r){n.error(r);return}this.nextOrComplete(e,i)}nextOrComplete(e,n){let i=this.destination;n?i.next(e):(this.inclusive&&i.next(e),i.complete())}};function Wt(t,e,n){return function(r){return r.lift(new F_(t,e,n))}}var F_=class{constructor(e,n,i){this.nextOrObserver=e,this.error=n,this.complete=i}call(e,n){return n.subscribe(new P_(e,this.nextOrObserver,this.error,this.complete))}},P_=class extends Xe{constructor(e,n,i,r){super(e),this._tapNext=Br,this._tapError=Br,this._tapComplete=Br,this._tapError=i||Br,this._tapComplete=r||Br,os(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||Br,this._tapError=n.error||Br,this._tapComplete=n.complete||Br)}_next(e){try{this._tapNext.call(this._context,e)}catch(n){this.destination.error(n);return}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(n){this.destination.error(n);return}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()}};var aS={leading:!0,trailing:!1};function B_(t,e=bn,n=aS){return i=>i.lift(new L_(t,e,n.leading,n.trailing))}var L_=class{constructor(e,n,i,r){this.duration=e,this.scheduler=n,this.leading=i,this.trailing=r}call(e,n){return n.subscribe(new V_(e,this.duration,this.scheduler,this.leading,this.trailing))}},V_=class extends Xe{constructor(e,n,i,r,o){super(e),this.duration=n,this.scheduler=i,this.leading=r,this.trailing=o,this._hasTrailingValue=!1,this._trailingValue=null}_next(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(_7,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){let e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}};function _7(t){let{subscriber:e}=t;e.clearThrottle()}var ZS="https://g.co/ng/security#xss",ge=class extends Error{constructor(e,n){super(pm(e,n)),this.code=e}};function pm(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function ju(t){return{toString:t}.toString()}var kp="__parameters__";function y7(t){return function(...n){if(t){let i=t(...n);for(let r in i)this[r]=i[r]}}}function s1(t,e,n){return ju(()=>{let i=y7(e);function r(...o){if(this instanceof r)return i.apply(this,o),this;let s=new r(...o);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(kp)?c[kp]:Object.defineProperty(c,kp,{value:[]})[kp];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var jn=globalThis;function Gt(t){for(let e in t)if(t[e]===Gt)return e;throw Error("Could not find renamed property on target object.")}function w7(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function rn(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(rn).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` + `)}`:"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t})(),wu=e7;var Me=class t{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(n!==null)for(let s=0;se.concat(n instanceof wu?n.errors:n),[])}var ec=typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();var Xe=class t extends Me{constructor(e,n,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=ul;break;case 1:if(!e){this.destination=ul;break}if(typeof e=="object"){e instanceof t?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new lp(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new lp(this,e,n,i);break}}[ec](){return this}static create(e,n,i){let r=new t(e,n,i);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){let{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}},lp=class extends Xe{constructor(e,n,i,r){super(),this._parentSubscriber=e;let o,s=this;os(n)?o=n:n&&(o=n.next,i=n.error,r=n.complete,n!==ul&&(s=Object.create(n),os(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){let{_parentSubscriber:n}=this;!gn.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?this.__tryOrUnsub(this._next,e):this.__tryOrSetError(n,this._next,e)&&this.unsubscribe()}}error(e){if(!this.isStopped){let{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:i}=gn;if(this._error)!i||!n.syncErrorThrowable?(this.__tryOrUnsub(this._error,e),this.unsubscribe()):(this.__tryOrSetError(n,this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)i?(n.syncErrorValue=e,n.syncErrorThrown=!0):ss(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;ss(e)}}}complete(){if(!this.isStopped){let{_parentSubscriber:e}=this;if(this._complete){let n=()=>this._complete.call(this._context);!gn.useDeprecatedSynchronousErrorHandling||!e.syncErrorThrowable?(this.__tryOrUnsub(n),this.unsubscribe()):(this.__tryOrSetError(e,n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,n){try{e.call(this._context,n)}catch(i){if(this.unsubscribe(),gn.useDeprecatedSynchronousErrorHandling)throw i;ss(i)}}__tryOrSetError(e,n,i){if(!gn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,i)}catch(r){return gn.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(ss(r),!0)}return!1}_unsubscribe(){let{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}};function jE(t){for(;t;){let{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;n&&n instanceof Xe?t=n:t=null}return!0}function HE(t,e,n){if(t){if(t instanceof Xe)return t;if(t[ec])return t[ec]()}return!t&&!e&&!n?new Xe(ul):new Xe(t,e,n)}var yo=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Xs(t){return t}function Ib(...t){return kb(t)}function kb(t){return t.length===0?Xs:t.length===1?t[0]:function(n){return t.reduce((i,r)=>r(i),n)}}var $e=(()=>{class t{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){let i=new t;return i.source=this,i.operator=n,i}subscribe(n,i,r){let{operator:o}=this,s=HE(n,i,r);if(o?s.add(o.call(s,this.source)):s.add(this.source||gn.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),gn.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(n){try{return this._subscribe(n)}catch(i){gn.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=i),jE(n)?n.error(i):console.warn(i)}}forEach(n,i){return i=zE(i),new i((r,o)=>{let s;s=this.subscribe(a=>{try{n(a)}catch(c){o(c),s&&s.unsubscribe()}},o,r)})}_subscribe(n){let{source:i}=this;return i&&i.subscribe(n)}[yo](){return this}pipe(...n){return n.length===0?this:kb(n)(this)}toPromise(n){return n=zE(n),new n((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=e=>new t(e),t})();function zE(t){if(t||(t=gn.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var t7=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})(),wo=t7;var fl=class extends Me{constructor(e,n){super(),this.subject=e,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;let e=this.subject,n=e.observers;if(this.subject=null,!n||n.length===0||e.isStopped||e.closed)return;let i=n.indexOf(this.subscriber);i!==-1&&n.splice(i,1)}};var Cu=class extends Xe{constructor(e){super(e),this.destination=e}},K=(()=>{class t extends $e{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ec](){return new Cu(this)}lift(n){let i=new dp(this,this);return i.operator=n,i}next(n){if(this.closed)throw new wo;if(!this.isStopped){let{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew dp(e,n),t})(),dp=class extends K{constructor(e,n){super(),this.destination=e,this.source=n}next(e){let{destination:n}=this;n&&n.next&&n.next(e)}error(e){let{destination:n}=this;n&&n.error&&this.destination.error(e)}complete(){let{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){let{source:n}=this;return n?this.source.subscribe(e):Me.EMPTY}};function Zs(){return function(e){return e.lift(new Mb(e))}}var Mb=class{constructor(e){this.connectable=e}call(e,n){let{connectable:i}=this;i._refCount++;let r=new Tb(e,i),o=n.subscribe(r);return r.closed||(r.connection=i.connect()),o}},Tb=class extends Xe{constructor(e,n){super(e),this.connectable=n}_unsubscribe(){let{connectable:e}=this;if(!e){this.connection=null;return}this.connectable=null;let n=e._refCount;if(n<=0){this.connection=null;return}if(e._refCount=n-1,n>1){this.connection=null;return}let{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}};var as=class extends $e{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let 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 Me,e.add(this.source.subscribe(new Ab(this.getSubject(),this))),e.closed&&(this._connection=null,e=Me.EMPTY)),e}refCount(){return Zs()(this)}},UE=(()=>{let t=as.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})(),Ab=class extends Cu{constructor(e,n){super(e),this.connectable=n}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){let e=this.connectable;if(e){this.connectable=null;let n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}};var Lt=class extends K{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let n=super._subscribe(e);return n&&!n.closed&&e.next(this._value),n}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new wo;return this._value}next(e){super.next(this._value=e)}};var up=class extends Me{constructor(e,n){super()}schedule(e,n=0){return this}};var Co=class extends up{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){if(this.closed)return this;this.state=e;let i=this.id,r=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(r,i,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(r,this.id,n),this}requestAsyncId(e,n,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,n,i=0){if(i!==null&&this.delay===i&&this.pending===!1)return n;clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let i=this._execute(e,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let i=!1,r;try{this.work(e)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){let e=this.id,n=this.scheduler,i=n.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,r!==-1&&i.splice(r,1),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null}};var hp=class extends Co{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}schedule(e,n=0){return n>0?super.schedule(e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)}execute(e,n){return n>0||this.closed?super.execute(e,n):this._execute(e,n)}requestAsyncId(e,n,i=0){return i!==null&&i>0||i===null&&this.delay>0?super.requestAsyncId(e,n,i):e.flush(this)}};var Rb=(()=>{class t{constructor(n,i=t.now){this.SchedulerAction=n,this.now=i}schedule(n,i=0,r){return new this.SchedulerAction(this,n).schedule(r,i)}}return t.now=()=>Date.now(),t})();var xo=class t extends Rb{constructor(e,n=Rb.now){super(e,()=>t.delegate&&t.delegate!==this?t.delegate.now():n()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,n=0,i){return t.delegate&&t.delegate!==this?t.delegate.schedule(e,n,i):super.schedule(e,n,i)}flush(e){let{actions:n}=this;if(this.active){n.push(e);return}let i;this.active=!0;do if(i=e.execute(e.state,e.delay))break;while(e=n.shift());if(this.active=!1,i){for(;e=n.shift();)e.unsubscribe();throw i}}};var fp=class extends xo{};var i7=new fp(hp),qE=i7;var vn=new $e(t=>t.complete());function Js(t){return t?n7(t):vn}function n7(t){return new $e(e=>t.schedule(()=>e.complete()))}function Vr(t){return t&&typeof t.schedule=="function"}var pp=t=>e=>{for(let n=0,i=t.length;n{let i=new Me,r=0;return i.add(e.schedule(function(){if(r===t.length){n.complete();return}n.next(t[r++]),n.closed||i.add(this.schedule())})),i})}function ml(t,e){return e?pl(t,e):new $e(pp(t))}function we(...t){let e=t[t.length-1];return Vr(e)?(t.pop(),pl(t,e)):ml(t)}function ar(t,e){return e?new $e(n=>e.schedule(r7,0,{error:t,subscriber:n})):new $e(n=>n.error(t))}function r7({error:t,subscriber:e}){e.error(t)}var Bn=class t{constructor(e,n,i){this.kind=e,this.value=n,this.error=i,this.hasValue=e==="N"}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,n,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return n&&n(this.error);case"C":return i&&i()}}accept(e,n,i){return e&&typeof e.next=="function"?this.observe(e):this.do(e,n,i)}toObservable(){switch(this.kind){case"N":return we(this.value);case"E":return ar(this.error);case"C":return Js()}throw new Error("unexpected notification kind value")}static createNext(e){return typeof e<"u"?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}};Bn.completeNotification=new Bn("C");Bn.undefinedValueNotification=new Bn("N",void 0);var mp=class t extends Xe{constructor(e,n,i=0){super(e),this.scheduler=n,this.delay=i}static dispatch(e){let{notification:n,destination:i}=e;n.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new Ob(e,this.destination)))}_next(e){this.scheduleMessage(Bn.createNext(e))}_error(e){this.scheduleMessage(Bn.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(Bn.createComplete()),this.unsubscribe()}},Ob=class{constructor(e,n){this.notification=e,this.destination=n}};var bi=class extends K{constructor(e=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){let n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new Nb(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){let n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length,s;if(this.closed)throw new wo;if(this.isStopped||this.hasError?s=Me.EMPTY:(this.observers.push(e),s=new fl(this,e)),r&&e.add(e=new mp(e,r)),n)for(let a=0;an&&(s=Math.max(s,o-n)),s>0&&r.splice(0,s),r}},Nb=class{constructor(e,n){this.time=e,this.value=n}};var o7=1,s7=Promise.resolve(),Fb={};function $E(t){return t in Fb?(delete Fb[t],!0):!1}var Pb={setImmediate(t){let e=o7++;return Fb[e]=!0,s7.then(()=>$E(e)&&t()),e},clearImmediate(t){$E(t)}};var gp=class extends Co{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,i=0){return i!==null&&i>0?super.requestAsyncId(e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=Pb.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,n,i=0){if(i!==null&&i>0||i===null&&this.delay>0)return super.recycleAsyncId(e,n,i);e.actions.length===0&&(Pb.clearImmediate(n),e.scheduled=void 0)}};var vp=class extends xo{flush(e){this.active=!0,this.scheduled=void 0;let{actions:n}=this,i,r=-1,o=n.length;e=e||n.shift();do if(i=e.execute(e.state,e.delay))break;while(++r0?super.requestAsyncId(e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,n,i=0){if(i!==null&&i>0||i===null&&this.delay>0)return super.recycleAsyncId(e,n,i);e.actions.length===0&&(cancelAnimationFrame(n),e.scheduled=void 0)}};var yp=class extends xo{flush(e){this.active=!0,this.scheduled=void 0;let{actions:n}=this,i,r=-1,o=n.length;e=e||n.shift();do if(i=e.execute(e.state,e.delay))break;while(++r{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})(),wp=a7;var c7=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),ls=c7;function Te(t,e){return function(i){if(typeof t!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Vb(t,e))}}var Vb=class{constructor(e,n){this.project=e,this.thisArg=n}call(e,n){return n.subscribe(new Bb(e,this.project,this.thisArg))}},Bb=class extends Xe{constructor(e,n,i){super(e),this.project=n,this.count=0,this.thisArg=i||this}_next(e){let n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(i){this.destination.error(i);return}this.destination.next(n)}};var Cp=class extends Xe{notifyNext(e,n,i,r,o){this.destination.next(n)}notifyError(e,n){this.destination.error(e)}notifyComplete(e){this.destination.complete()}};var xp=class extends Xe{constructor(e,n,i){super(),this.parent=e,this.outerValue=n,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()}};var WE=t=>e=>(t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,ss),e);function l7(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ea=l7();var GE=t=>e=>{let n=t[ea]();do{let i;try{i=n.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}while(!0);return typeof n.return=="function"&&e.add(()=>{n.return&&n.return()}),e};var YE=t=>e=>{let n=t[yo]();if(typeof n.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)};var Dp=t=>t&&typeof t.length=="number"&&typeof t!="function";function Ep(t){return!!t&&typeof t.subscribe!="function"&&typeof t.then=="function"}var vl=t=>{if(t&&typeof t[yo]=="function")return YE(t);if(Dp(t))return pp(t);if(Ep(t))return WE(t);if(t&&typeof t[ea]=="function")return GE(t);{let n=`You provided ${hl(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function QE(t,e,n,i,r=new xp(t,n,i)){if(!r.closed)return e instanceof $e?e.subscribe(r):vl(e)(r)}var KE={};function jr(...t){let e,n;return Vr(t[t.length-1])&&(n=t.pop()),typeof t[t.length-1]=="function"&&(e=t.pop()),t.length===1&&Lr(t[0])&&(t=t[0]),ml(t,n).lift(new jb(e))}var jb=class{constructor(e){this.resultSelector=e}call(e,n){return n.subscribe(new Hb(e,this.resultSelector))}},Hb=class extends Cp{constructor(e,n){super(e),this.resultSelector=n,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(KE),this.observables.push(e)}_complete(){let e=this.observables,n=e.length;if(n===0)this.destination.complete();else{this.active=n,this.toRespond=n;for(let i=0;i{let i=new Me;return i.add(e.schedule(()=>{let r=t[yo]();i.add(r.subscribe({next(o){i.add(e.schedule(()=>n.next(o)))},error(o){i.add(e.schedule(()=>n.error(o)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}function ZE(t,e){return new $e(n=>{let i=new Me;return i.add(e.schedule(()=>t.then(r=>{i.add(e.schedule(()=>{n.next(r),i.add(e.schedule(()=>n.complete()))}))},r=>{i.add(e.schedule(()=>n.error(r)))}))),i})}function JE(t,e){if(!t)throw new Error("Iterable cannot be null");return new $e(n=>{let i=new Me,r;return i.add(()=>{r&&typeof r.return=="function"&&r.return()}),i.add(e.schedule(()=>{r=t[ea](),i.add(e.schedule(function(){if(n.closed)return;let o,s;try{let a=r.next();o=a.value,s=a.done}catch(a){n.error(a);return}s?n.complete():(n.next(o),this.schedule())}))})),i})}function eS(t){return t&&typeof t[yo]=="function"}function tS(t){return t&&typeof t[ea]=="function"}function iS(t,e){if(t!=null){if(eS(t))return XE(t,e);if(Ep(t))return ZE(t,e);if(Dp(t))return pl(t,e);if(tS(t)||typeof t=="string")return JE(t,e)}throw new TypeError((t!==null&&typeof t||t)+" is not observable")}function Kt(t,e){return e?iS(t,e):t instanceof $e?t:new $e(vl(t))}var cr=class extends Xe{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()}};var lr=class extends Xe{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}};function Do(t,e){if(e.closed)return;if(t instanceof $e)return t.subscribe(e);let n;try{n=vl(t)(e)}catch(i){e.error(i)}return n}function Ei(t,e,n=Number.POSITIVE_INFINITY){return typeof e=="function"?i=>i.pipe(Ei((r,o)=>Kt(t(r,o)).pipe(Te((s,a)=>e(r,s,o,a))),n)):(typeof e=="number"&&(n=e),i=>i.lift(new zb(t,n)))}var zb=class{constructor(e,n=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=n}call(e,n){return n.subscribe(new Ub(e,this.project,this.concurrent))}},Ub=class extends lr{constructor(e,n,i=Number.POSITIVE_INFINITY){super(e),this.project=n,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()}};function ta(t=Number.POSITIVE_INFINITY){return Ei(Xs,t)}function nS(){return ta(1)}function Eo(...t){return nS()(we(...t))}function en(t){return new $e(e=>{let n;try{n=t()}catch(r){e.error(r);return}return(n?Kt(n):Js()).subscribe(e)})}function tc(...t){if(t.length===1){let e=t[0];if(Lr(e))return Sp(e,null);if(hl(e)&&Object.getPrototypeOf(e)===Object.prototype){let n=Object.keys(e);return Sp(n.map(i=>e[i]),n)}}if(typeof t[t.length-1]=="function"){let e=t.pop();return t=t.length===1&&Lr(t[0])?t[0]:t,Sp(t,null).pipe(Te(n=>e(...n)))}return Sp(t,null)}function Sp(t,e){return new $e(n=>{let i=t.length;if(i===0){n.complete();return}let r=new Array(i),o=0,s=0;for(let a=0;a{l||(l=!0,s++),r[a]=u},error:u=>n.error(u),complete:()=>{o++,(o===i||!l)&&(s===i&&n.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),n.complete())}}))}})}function tn(t,e,n,i){return os(n)&&(i=n,n=void 0),i?tn(t,e,n).pipe(Te(r=>Lr(r)?i(...r):i(r))):new $e(r=>{function o(s){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(s)}rS(t,e,o,r,n)})}function rS(t,e,n,i,r){let o;if(h7(t)){let s=t;t.addEventListener(e,n,r),o=()=>s.removeEventListener(e,n,r)}else if(u7(t)){let s=t;t.on(e,n),o=()=>s.off(e,n)}else if(d7(t)){let s=t;t.addListener(e,n),o=()=>s.removeListener(e,n)}else if(t&&t.length)for(let s=0,a=t.length;s=0}function qb(t=0,e=bn){return(!xu(t)||t<0)&&(t=0),(!e||typeof e.schedule!="function")&&(e=bn),new $e(n=>(n.add(e.schedule(f7,t,{subscriber:n,counter:0,period:t})),n))}function f7(t){let{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}function yt(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return Vr(i)?(n=t.pop(),t.length>1&&typeof t[t.length-1]=="number"&&(e=t.pop())):typeof i=="number"&&(e=t.pop()),n===null&&t.length===1&&t[0]instanceof $e?t[0]:ta(e)(ml(t,n))}var ic=new $e(Br);function We(t,e){return function(i){return i.lift(new $b(t,e))}}var $b=class{constructor(e,n){this.predicate=e,this.thisArg=n}call(e,n){return n.subscribe(new Wb(e,this.predicate,this.thisArg))}},Wb=class extends Xe{constructor(e,n,i){super(e),this.predicate=n,this.thisArg=i,this.count=0}_next(e){let n;try{n=this.predicate.call(this.thisArg,e,this.count++)}catch(i){this.destination.error(i);return}n&&this.destination.next(e)}};function Du(t=0,e,n){let i=-1;return xu(e)?i=Number(e)<1&&1||Number(e):Vr(e)&&(n=e),Vr(n)||(n=bn),new $e(r=>{let o=xu(t)?t:+t-n.now();return n.schedule(p7,o,{index:0,period:i,subscriber:r})})}function p7(t){let{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(n===-1)return i.complete();t.index=e+1,this.schedule(t,n)}}function oS(t){return function(n){return n.lift(new Gb(t))}}var Gb=class{constructor(e){this.durationSelector=e}call(e,n){return n.subscribe(new Yb(e,this.durationSelector))}},Yb=class extends lr{constructor(e,n){super(e),this.durationSelector=n,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let n;try{let{durationSelector:r}=this;n=r(e)}catch(r){return this.destination.error(r)}let i=Do(n,new cr(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){let{value:e,hasValue:n,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),n&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}};function Eu(t,e=bn){return oS(()=>Du(t,e))}function ds(t){return function(n){let i=new Qb(t),r=n.lift(i);return i.caught=r}}var Qb=class{constructor(e){this.selector=e}call(e,n){return n.subscribe(new Kb(e,this.selector,this.caught))}},Kb=class extends lr{constructor(e,n,i){super(e),this.selector=n,this.caught=i}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(o){super.error(o);return}this._unsubscribeAndRecycle();let i=new cr(this);this.add(i);let r=Do(n,i);r!==i&&this.add(r)}}};function us(t,e){return Ei(t,e,1)}function Hr(t,e=bn){return n=>n.lift(new Xb(t,e))}var Xb=class{constructor(e,n){this.dueTime=e,this.scheduler=n}call(e,n){return n.subscribe(new Zb(e,this.dueTime,this.scheduler))}},Zb=class extends Xe{constructor(e,n,i){super(e),this.dueTime=n,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(m7,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){let{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){let e=this.debouncedSubscription;e!==null&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}};function m7(t){t.debouncedNext()}function ia(t=null){return e=>e.lift(new Jb(t))}var Jb=class{constructor(e){this.defaultValue=e}call(e,n){return n.subscribe(new e_(e,this.defaultValue))}},e_=class extends Xe{constructor(e,n){super(e),this.defaultValue=n,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}};function sS(t){return t instanceof Date&&!isNaN(+t)}function na(t,e=bn){let i=sS(t)?+t-e.now():Math.abs(t);return r=>r.lift(new t_(i,e))}var t_=class{constructor(e,n){this.delay=e,this.scheduler=n}call(e,n){return n.subscribe(new i_(e,this.delay,this.scheduler))}},i_=class t extends Xe{constructor(e,n,i){super(e),this.delay=n,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){let n=e.source,i=n.queue,r=e.scheduler,o=e.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(o);if(i.length>0){let s=Math.max(0,i[0].time-r.now());this.schedule(e,s)}else this.unsubscribe(),n.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(this.errored===!0)return;let n=this.scheduler,i=new n_(n.now()+this.delay,e);this.queue.push(i),this.active===!1&&this._schedule(n)}_next(e){this.scheduleNotification(Bn.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(Bn.createComplete()),this.unsubscribe()}},n_=class{constructor(e,n){this.time=e,this.notification=n}};function hs(t,e){return n=>n.lift(new r_(t,e))}var r_=class{constructor(e,n){this.compare=e,this.keySelector=n}call(e,n){return n.subscribe(new o_(e,this.compare,this.keySelector))}},o_=class extends Xe{constructor(e,n,i){super(e),this.keySelector=i,this.hasKey=!1,typeof n=="function"&&(this.compare=n)}compare(e,n){return e===n}_next(e){let n;try{let{keySelector:r}=this;n=r?r(e):e}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{let{compare:r}=this;i=r(this.key,n)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=n,this.destination.next(e))}};function Ip(t=g7){return e=>e.lift(new s_(t))}var s_=class{constructor(e){this.errorFactory=e}call(e,n){return n.subscribe(new a_(e,this.errorFactory))}},a_=class extends Xe{constructor(e,n){super(e),this.errorFactory=n,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(n){e=n}this.destination.error(e)}}};function g7(){return new ls}function wt(t){return e=>t===0?Js():e.lift(new c_(t))}var c_=class{constructor(e){if(this.total=e,this.total<0)throw new wp}call(e,n){return n.subscribe(new l_(e,this.total))}},l_=class extends Xe{constructor(e,n){super(e),this.total=n,this.count=0}_next(e){let n=this.total,i=++this.count;i<=n&&(this.destination.next(e),i===n&&(this.destination.complete(),this.unsubscribe()))}};function So(t){return e=>e.lift(new d_(t))}var d_=class{constructor(e){this.callback=e}call(e,n){return n.subscribe(new u_(e,this.callback))}},u_=class extends Xe{constructor(e,n){super(e),this.add(new Me(n))}};function Io(t,e){let n=arguments.length>=2;return i=>i.pipe(t?We((r,o)=>t(r,o,i)):Xs,wt(1),n?ia(e):Ip(()=>new ls))}function bl(t){return function(n){return t===0?Js():n.lift(new h_(t))}}var h_=class{constructor(e){if(this.total=e,this.total<0)throw new wp}call(e,n){return n.subscribe(new f_(e,this.total))}},f_=class extends Xe{constructor(e,n){super(e),this.total=n,this.ring=new Array,this.count=0}_next(e){let n=this.ring,i=this.total,r=this.count++;if(n.length0){let i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(t?We((r,o)=>t(r,o,i)):Xs,bl(1),n?ia(e):Ip(()=>new ls))}function _l(t){return e=>e.lift(new m_(t))}var m_=class{constructor(e){this.value=e}call(e,n){return n.subscribe(new g_(e,this.value))}},g_=class extends Xe{constructor(e,n){super(e),this.value=n}_next(e){this.destination.next(this.value)}};function __(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new v_(t,e,n))}}var v_=class{constructor(e,n,i=!1){this.accumulator=e,this.seed=n,this.hasSeed=i}call(e,n){return n.subscribe(new b_(e,this.accumulator,this.seed,this.hasSeed))}},b_=class extends Xe{constructor(e,n,i,r){super(e),this.accumulator=n,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(!this.hasSeed)this.seed=e,this.destination.next(e);else return this._tryNext(e)}_tryNext(e){let n=this.index++,i;try{i=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}};function Su(t,e){return function(i){let r;if(typeof t=="function"?r=t:r=function(){return t},typeof e=="function")return i.lift(new y_(r,e));let o=Object.create(i,UE);return o.source=i,o.subjectFactory=r,o}}var y_=class{constructor(e,n){this.subjectFactory=e,this.selector=n}call(e,n){let{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(e);return o.add(n.subscribe(r)),o}};function x_(){return t=>t.lift(new w_)}var w_=class{call(e,n){return n.subscribe(new C_(e))}},C_=class extends Xe{constructor(e){super(e),this.hasPrev=!1}_next(e){let n;this.hasPrev?n=[this.prev,e]:this.hasPrev=!0,this.prev=e,n&&this.destination.next(n)}};function D_(t){return t?Su(()=>new K,t):Su(new K)}function v7(){return new K}function E_(){return t=>Zs()(Su(v7)(t))}function Iu(t,e,n){let i;return t&&typeof t=="object"?i=t:i={bufferSize:t,windowTime:e,refCount:!1,scheduler:n},r=>r.lift(b7(i))}function b7({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:i}){let r,o=0,s,a=!1,c=!1;return function(u){o++;let d;!r||a?(a=!1,r=new bi(t,e,i),d=r.subscribe(this),s=u.subscribe({next(h){r.next(h)},error(h){a=!0,r.error(h)},complete(){c=!0,s=void 0,r.complete()}}),c&&(s=void 0)):d=r.subscribe(this),this.add(()=>{o--,d.unsubscribe(),d=void 0,s&&!c&&n&&o===0&&(s.unsubscribe(),s=void 0,r=void 0)})}}function ku(t){return e=>e.lift(new S_(t))}var S_=class{constructor(e){this.total=e}call(e,n){return n.subscribe(new I_(e,this.total))}},I_=class extends Xe{constructor(e,n){super(e),this.total=n,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}};function Vt(...t){let e=t[t.length-1];return Vr(e)?(t.pop(),n=>Eo(t,n,e)):n=>Eo(t,n)}function Nt(t,e){return typeof e=="function"?n=>n.pipe(Nt((i,r)=>Kt(t(i,r)).pipe(Te((o,s)=>e(i,o,r,s))))):n=>n.lift(new k_(t))}var k_=class{constructor(e){this.project=e}call(e,n){return n.subscribe(new M_(e,this.project))}},M_=class extends lr{constructor(e,n){super(e),this.project=n,this.index=0}_next(e){let n,i=this.index++;try{n=this.project(e,i)}catch(r){this.destination.error(r);return}this._innerSub(n)}_innerSub(e){let n=this.innerSubscription;n&&n.unsubscribe();let i=new cr(this),r=this.destination;r.add(i),this.innerSubscription=Do(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){let{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)}};function ot(t){return e=>e.lift(new T_(t))}var T_=class{constructor(e){this.notifier=e}call(e,n){let i=new A_(e),r=Do(this.notifier,new cr(i));return r&&!i.seenValue?(i.add(r),n.subscribe(i)):i}},A_=class extends lr{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}};function N_(t,e=!1){return n=>n.lift(new R_(t,e))}var R_=class{constructor(e,n){this.predicate=e,this.inclusive=n}call(e,n){return n.subscribe(new O_(e,this.predicate,this.inclusive))}},O_=class extends Xe{constructor(e,n,i){super(e),this.predicate=n,this.inclusive=i,this.index=0}_next(e){let n=this.destination,i;try{i=this.predicate(e,this.index++)}catch(r){n.error(r);return}this.nextOrComplete(e,i)}nextOrComplete(e,n){let i=this.destination;n?i.next(e):(this.inclusive&&i.next(e),i.complete())}};function Wt(t,e,n){return function(r){return r.lift(new F_(t,e,n))}}var F_=class{constructor(e,n,i){this.nextOrObserver=e,this.error=n,this.complete=i}call(e,n){return n.subscribe(new P_(e,this.nextOrObserver,this.error,this.complete))}},P_=class extends Xe{constructor(e,n,i,r){super(e),this._tapNext=Br,this._tapError=Br,this._tapComplete=Br,this._tapError=i||Br,this._tapComplete=r||Br,os(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||Br,this._tapError=n.error||Br,this._tapComplete=n.complete||Br)}_next(e){try{this._tapNext.call(this._context,e)}catch(n){this.destination.error(n);return}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(n){this.destination.error(n);return}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()}};var aS={leading:!0,trailing:!1};function B_(t,e=bn,n=aS){return i=>i.lift(new L_(t,e,n.leading,n.trailing))}var L_=class{constructor(e,n,i,r){this.duration=e,this.scheduler=n,this.leading=i,this.trailing=r}call(e,n){return n.subscribe(new V_(e,this.duration,this.scheduler,this.leading,this.trailing))}},V_=class extends Xe{constructor(e,n,i,r,o){super(e),this.duration=n,this.scheduler=i,this.leading=r,this.trailing=o,this._hasTrailingValue=!1,this._trailingValue=null}_next(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(_7,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){let e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}};function _7(t){let{subscriber:e}=t;e.clearThrottle()}var ZS="https://g.co/ng/security#xss",ge=class extends Error{constructor(e,n){super(pm(e,n)),this.code=e}};function pm(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function ju(t){return{toString:t}.toString()}var kp="__parameters__";function y7(t){return function(...n){if(t){let i=t(...n);for(let r in i)this[r]=i[r]}}}function s1(t,e,n){return ju(()=>{let i=y7(e);function r(...o){if(this instanceof r)return i.apply(this,o),this;let s=new r(...o);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(kp)?c[kp]:Object.defineProperty(c,kp,{value:[]})[kp];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var jn=globalThis;function Gt(t){for(let e in t)if(t[e]===Gt)return e;throw Error("Could not find renamed property on target object.")}function w7(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function rn(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(rn).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` `);return n===-1?e:e.substring(0,n)}function J_(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var C7=Gt({__forward_ref__:Gt});function li(t){return t.__forward_ref__=li,t.toString=function(){return rn(this())},t}function Oi(t){return JS(t)?t():t}function JS(t){return typeof t=="function"&&t.hasOwnProperty(C7)&&t.__forward_ref__===li}function U(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function be(t){return{providers:t.providers||[],imports:t.imports||[]}}function mm(t){return cS(t,tI)||cS(t,iI)}function eI(t){return mm(t)!==null}function cS(t,e){return t.hasOwnProperty(e)?t[e]:null}function x7(t){let e=t&&(t[tI]||t[iI]);return e||null}function lS(t){return t&&(t.hasOwnProperty(dS)||t.hasOwnProperty(D7))?t[dS]:null}var tI=Gt({\u0275prov:Gt}),dS=Gt({\u0275inj:Gt}),iI=Gt({ngInjectableDef:Gt}),D7=Gt({ngInjectorDef:Gt}),q=class{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=U({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function nI(t){return t&&!!t.\u0275providers}var E7=Gt({\u0275cmp:Gt}),S7=Gt({\u0275dir:Gt}),I7=Gt({\u0275pipe:Gt}),k7=Gt({\u0275mod:Gt}),Hp=Gt({\u0275fac:Gt}),Tu=Gt({__NG_ELEMENT_ID__:Gt}),uS=Gt({__NG_ENV_ID__:Gt});function El(t){return typeof t=="string"?t:t==null?"":String(t)}function M7(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():El(t)}function T7(t,e){let n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new ge(-200,t)}function a1(t,e){throw new ge(-201,!1)}var _t=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(_t||{}),ey;function rI(){return ey}function dr(t){let e=ey;return ey=t,e}function oI(t,e,n){let i=mm(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(n&_t.Optional)return null;if(e!==void 0)return e;a1(t,"Injector")}var A7={},Ru=A7,ty="__NG_DI_FLAG__",zp="ngTempTokenPath",R7="ngTokenPath",O7=/\n/gm,N7="\u0275",hS="__source",xl;function F7(){return xl}function ra(t){let e=xl;return xl=t,e}function P7(t,e=_t.Default){if(xl===void 0)throw new ge(-203,!1);return xl===null?oI(t,void 0,e):xl.get(t,e&_t.Optional?null:void 0,e)}function R(t,e=_t.Default){return(rI()||P7)(Oi(t),e)}function B(t,e=_t.Default){return R(t,gm(e))}function gm(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function iy(t){let e=[];for(let n=0;n ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):rn(a)))}r=`{${o.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(O7,` - `)}`}var sI=c1(s1("Inject",t=>({token:t})),-1),Gr=c1(s1("Optional"),8);var fa=c1(s1("SkipSelf"),4);function Sl(t,e){let n=t.hasOwnProperty(Hp);return n?t[Hp]:null}function j7(t,e,n){if(t.length!==e.length)return!1;for(let i=0;iArray.isArray(n)?l1(n,e):e(n))}function aI(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Up(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function z7(t,e){let n=[];for(let i=0;ie;){let o=r-2;t[r]=t[o],r--}t[e]=n,t[e+1]=i}}function vm(t,e,n){let i=Hu(t,e);return i>=0?t[i|1]=n:(i=~i,U7(t,i,e,n)),i}function j_(t,e){let n=Hu(t,e);if(n>=0)return t[n|1]}function Hu(t,e){return q7(t,e,1)}function q7(t,e,n){let i=0,r=t.length>>n;for(;r!==i;){let o=i+(r-i>>1),s=t[o<e?r=o:i=o+1}return~(r<e){s=o-1;break}}}for(;o-1){let o;for(;++ro?d="":d=r[u+1].toLowerCase(),i&2&&l!==d){if(zr(i))return!1;s=!0}}}}return zr(i)||s}function zr(t){return(t&1)===0}function K7(t,e,n,i){if(e===null)return-1;let r=0;if(i||!n){let o=!1;for(;r-1)for(n++;n0?'="'+a+'"':"")+"]"}else i&8?r+="."+s:i&4&&(r+=" "+s);else r!==""&&!zr(s)&&(e+=pS(o,r),r=""),i=s,o=o||!zr(i);n++}return r!==""&&(e+=pS(o,r)),e}function iV(t){return t.map(tV).join(",")}function nV(t){let e=[],n=[],i=1,r=2;for(;i{let e=vI(t),n=mt(X({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===dI.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||To.Emulated,styles:t.styles||nn,_:null,schemas:t.schemas||null,tView:null,id:""});bI(n);let i=t.dependencies;return n.directiveDefs=gS(i,!1),n.pipeDefs=gS(i,!0),n.id=sV(n),n})}function rV(t){return ca(t)||u1(t)}function oV(t){return t!==null}function _e(t){return ju(()=>({type:t.type,bootstrap:t.bootstrap||nn,declarations:t.declarations||nn,imports:t.imports||nn,exports:t.exports||nn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function mS(t,e){if(t==null)return fs;let n={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,s,a=aa.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),e?(n[o]=a!==aa.None?[i,a]:i,e[o]=s):n[o]=i}return n}function te(t){return ju(()=>{let e=vI(t);return bI(e),e})}function ca(t){return t[E7]||null}function u1(t){return t[S7]||null}function pI(t){return t[I7]||null}function mI(t){let e=ca(t)||u1(t)||pI(t);return e!==null?e.standalone:!1}function gI(t,e){let n=t[k7]||null;if(!n&&e===!0)throw new Error(`Type ${rn(t)} does not have '\u0275mod' property.`);return n}function vI(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||fs,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||nn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:mS(t.inputs,e),outputs:mS(t.outputs),debugInfo:null}}function bI(t){t.features?.forEach(e=>e(t))}function gS(t,e){if(!t)return null;let n=e?pI:rV;return()=>(typeof t=="function"?t():t).map(i=>n(i)).filter(oV)}function sV(t){let e=0,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of n)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Ll(t){return{\u0275providers:t}}function aV(...t){return{\u0275providers:_I(!0,t),\u0275fromNgModule:!0}}function _I(t,...e){let n=[],i=new Set,r,o=s=>{n.push(s)};return l1(e,s=>{let a=s;ry(a,o,[],i)&&(r||=[],r.push(a))}),r!==void 0&&yI(r,o),n}function yI(t,e){for(let n=0;n{e(o,i)})}}function ry(t,e,n,i){if(t=Oi(t),!t)return!1;let r=null,o=lS(t),s=!o&&ca(t);if(!o&&!s){let c=t.ngModule;if(o=lS(c),o)r=c;else return!1}else{if(s&&!s.standalone)return!1;r=t}let a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)ry(l,e,n,i)}}else if(o){if(o.imports!=null&&!a){i.add(r);let l;try{l1(o.imports,u=>{ry(u,e,n,i)&&(l||=[],l.push(u))})}finally{}l!==void 0&&yI(l,e)}if(!a){let l=Sl(r)||(()=>new r);e({provide:r,useFactory:l,deps:nn},r),e({provide:lI,useValue:r,multi:!0},r),e({provide:Il,useValue:()=>R(r),multi:!0},r)}let c=o.providers;if(c!=null&&!a){let l=t;h1(c,u=>{e(u,l)})}}else return!1;return r!==t&&t.providers!==void 0}function h1(t,e){for(let n of t)nI(n)&&(n=n.\u0275providers),Array.isArray(n)?h1(n,e):e(n)}var cV=Gt({provide:String,useValue:Gt});function wI(t){return t!==null&&typeof t=="object"&&cV in t}function lV(t){return!!(t&&t.useExisting)}function dV(t){return!!(t&&t.useFactory)}function kl(t){return typeof t=="function"}function uV(t){return!!t.useClass}var bm=new q(""),Fp={},hV={},H_;function f1(){return H_===void 0&&(H_=new qp),H_}var Fi=class{},Nu=class extends Fi{get destroyed(){return this._destroyed}constructor(e,n,i,r){super(),this.parent=n,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,sy(e,s=>this.processProvider(s)),this.records.set(cI,yl(void 0,this)),r.has("environment")&&this.records.set(Fi,yl(void 0,this));let o=this.records.get(bm);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(lI,nn,_t.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=Dt(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of n)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Dt(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let n=ra(this),i=dr(void 0),r;try{return e()}finally{ra(n),dr(i)}}get(e,n=Ru,i=_t.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(uS))return e[uS](this);i=gm(i);let r,o=ra(this),s=dr(void 0);try{if(!(i&_t.SkipSelf)){let c=this.records.get(e);if(c===void 0){let l=vV(e)&&mm(e);l&&this.injectableDefInScope(l)?c=yl(oy(e),Fp):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=i&_t.Self?f1():this.parent;return n=i&_t.Optional&&n===Ru?null:n,a.get(e,n)}catch(a){if(a.name==="NullInjectorError"){if((a[zp]=a[zp]||[]).unshift(rn(e)),o)throw a;return V7(a,e,"R3InjectorError",this.source)}else throw a}finally{dr(s),ra(o)}}resolveInjectorInitializers(){let e=Dt(null),n=ra(this),i=dr(void 0),r;try{let o=this.get(Il,nn,_t.Self);for(let s of o)s()}finally{ra(n),dr(i),Dt(e)}}toString(){let e=[],n=this.records;for(let i of n.keys())e.push(rn(i));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ge(205,!1)}processProvider(e){e=Oi(e);let n=kl(e)?e:Oi(e&&e.provide),i=pV(e);if(!kl(e)&&e.multi===!0){let r=this.records.get(n);r||(r=yl(void 0,Fp,!0),r.factory=()=>iy(r.multi),this.records.set(n,r)),n=e,r.multi.push(e)}this.records.set(n,i)}hydrate(e,n){let i=Dt(null);try{return n.value===Fp&&(n.value=hV,n.value=n.factory()),typeof n.value=="object"&&n.value&&gV(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{Dt(i)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=Oi(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};function oy(t){let e=mm(t),n=e!==null?e.factory:Sl(t);if(n!==null)return n;if(t instanceof q)throw new ge(204,!1);if(t instanceof Function)return fV(t);throw new ge(204,!1)}function fV(t){if(t.length>0)throw new ge(204,!1);let n=x7(t);return n!==null?()=>n.factory(t):()=>new t}function pV(t){if(wI(t))return yl(void 0,t.useValue);{let e=CI(t);return yl(e,Fp)}}function CI(t,e,n){let i;if(kl(t)){let r=Oi(t);return Sl(r)||oy(r)}else if(wI(t))i=()=>Oi(t.useValue);else if(dV(t))i=()=>t.useFactory(...iy(t.deps||[]));else if(lV(t))i=()=>R(Oi(t.useExisting));else{let r=Oi(t&&(t.useClass||t.provide));if(mV(t))i=()=>new r(...iy(t.deps));else return Sl(r)||oy(r)}return i}function yl(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function mV(t){return!!t.deps}function gV(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function vV(t){return typeof t=="function"||typeof t=="object"&&t instanceof q}function sy(t,e){for(let n of t)Array.isArray(n)?sy(n,e):n&&nI(n)?sy(n.\u0275providers,e):e(n)}function zn(t,e){t instanceof Nu&&t.assertNotDestroyed();let n,i=ra(t),r=dr(void 0);try{return e()}finally{ra(i),dr(r)}}function xI(){return rI()!==void 0||F7()!=null}function p1(t){if(!xI())throw new ge(-203,!1)}function bV(t){let e=jn.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function _V(t){return typeof t=="function"}var Oo=0,ft=1,rt=2,qi=3,qr=4,yn=5,Ml=6,$p=7,zi=8,Tl=9,Ao=10,Xt=11,Fu=12,vS=13,Vl=14,Hn=15,oc=16,wl=17,ps=18,_m=19,DI=20,oa=21,Pp=22,ur=23,on=25,m1=1;var sc=7,Wp=8,Al=9,Ui=10,Gp=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Gp||{});function sa(t){return Array.isArray(t)&&typeof t[m1]=="object"}function bs(t){return Array.isArray(t)&&t[m1]===!0}function g1(t){return(t.flags&4)!==0}function ym(t){return t.componentOffset>-1}function wm(t){return(t.flags&1)===1}function ms(t){return!!t.template}function ay(t){return(t[rt]&512)!==0}var cy=class{constructor(e,n,i){this.previousValue=e,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}};function EI(t,e,n,i){e!==null?e.applyValueToInputSignal(e,i):t[n]=i}function lt(){return SI}function SI(t){return t.type.prototype.ngOnChanges&&(t.setInput=wV),yV}lt.ngInherit=!0;function yV(){let t=kI(this),e=t?.current;if(e){let n=t.previous;if(n===fs)t.previous=e;else for(let i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}}function wV(t,e,n,i,r){let o=this.declaredInputs[i],s=kI(t)||CV(t,{previous:fs,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new cy(l&&l.currentValue,n,c===fs),EI(t,e,r,n)}var II="__ngSimpleChanges__";function kI(t){return t[II]||null}function CV(t,e){return t[II]=e}var bS=null;var ko=function(t,e,n){bS?.(t,e,n)},MI="svg",xV="math";function Ro(t){for(;Array.isArray(t);)t=t[Oo];return t}function DV(t){for(;Array.isArray(t);){if(typeof t[m1]=="object")return t;t=t[Oo]}return null}function TI(t,e){return Ro(e[t])}function fr(t,e){return Ro(e[t.index])}function v1(t,e){return t.data[e]}function EV(t,e){return t[e]}function pa(t,e){let n=e[t];return sa(n)?n:n[Oo]}function SV(t){return(t[rt]&4)===4}function b1(t){return(t[rt]&128)===128}function IV(t){return bs(t[qi])}function la(t,e){return e==null?null:t[e]}function AI(t){t[wl]=0}function RI(t){t[rt]&1024||(t[rt]|=1024,b1(t)&&Cm(t))}function kV(t,e){for(;t>0;)e=e[Vl],t--;return e}function Pu(t){return!!(t[rt]&9216||t[ur]?.dirty)}function ly(t){t[Ao].changeDetectionScheduler?.notify(7),t[rt]&64&&(t[rt]|=1024),Pu(t)&&Cm(t)}function Cm(t){t[Ao].changeDetectionScheduler?.notify(0);let e=ac(t);for(;e!==null&&!(e[rt]&8192||(e[rt]|=8192,!b1(e)));)e=ac(e)}function OI(t,e){if((t[rt]&256)===256)throw new ge(911,!1);t[oa]===null&&(t[oa]=[]),t[oa].push(e)}function MV(t,e){if(t[oa]===null)return;let n=t[oa].indexOf(e);n!==-1&&t[oa].splice(n,1)}function ac(t){let e=t[qi];return bs(e)?e[qi]:e}var vt={lFrame:HI(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var NI=!1;function TV(){return vt.lFrame.elementDepthCount}function AV(){vt.lFrame.elementDepthCount++}function RV(){vt.lFrame.elementDepthCount--}function FI(){return vt.bindingsEnabled}function PI(){return vt.skipHydrationRootTNode!==null}function OV(t){return vt.skipHydrationRootTNode===t}function NV(){vt.skipHydrationRootTNode=null}function ut(){return vt.lFrame.lView}function Zt(){return vt.lFrame.tView}function Se(t){return vt.lFrame.contextLView=t,t[zi]}function Ie(t){return vt.lFrame.contextLView=null,t}function ki(){let t=LI();for(;t!==null&&t.type===64;)t=t.parent;return t}function LI(){return vt.lFrame.currentTNode}function FV(){let t=vt.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function fc(t,e){let n=vt.lFrame;n.currentTNode=t,n.isParent=e}function _1(){return vt.lFrame.isParent}function y1(){vt.lFrame.isParent=!1}function PV(){return vt.lFrame.contextLView}function VI(){return NI}function _S(t){NI=t}function LV(){return vt.lFrame.bindingIndex}function VV(t){return vt.lFrame.bindingIndex=t}function ma(){return vt.lFrame.bindingIndex++}function w1(t){let e=vt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function BV(){return vt.lFrame.inI18n}function jV(t,e){let n=vt.lFrame;n.bindingIndex=n.bindingRootIndex=t,dy(e)}function HV(){return vt.lFrame.currentDirectiveIndex}function dy(t){vt.lFrame.currentDirectiveIndex=t}function C1(t){let e=vt.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function x1(){return vt.lFrame.currentQueryIndex}function xm(t){vt.lFrame.currentQueryIndex=t}function zV(t){let e=t[ft];return e.type===2?e.declTNode:e.type===1?t[yn]:null}function BI(t,e,n){if(n&_t.SkipSelf){let r=e,o=t;for(;r=r.parent,r===null&&!(n&_t.Host);)if(r=zV(o),r===null||(o=o[Vl],r.type&10))break;if(r===null)return!1;e=r,t=o}let i=vt.lFrame=jI();return i.currentTNode=e,i.lView=t,!0}function D1(t){let e=jI(),n=t[ft];vt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function jI(){let t=vt.lFrame,e=t===null?null:t.child;return e===null?HI(t):e}function HI(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function zI(){let t=vt.lFrame;return vt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var UI=zI;function E1(){let t=zI();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function UV(t){return(vt.lFrame.contextLView=kV(t,vt.lFrame.contextLView))[zi]}function _s(){return vt.lFrame.selectedIndex}function cc(t){vt.lFrame.selectedIndex=t}function pc(){let t=vt.lFrame;return v1(t.tView,t.selectedIndex)}function No(){vt.lFrame.currentNamespace=MI}function S1(){qV()}function qV(){vt.lFrame.currentNamespace=null}function $V(){return vt.lFrame.currentNamespace}var qI=!0;function Dm(){return qI}function Em(t){qI=t}function WV(t,e,n){let{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(i){let s=SI(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}r&&(n.preOrderHooks??=[]).push(0-t,r),o&&((n.preOrderHooks??=[]).push(t,o),(n.preOrderCheckHooks??=[]).push(t,o))}function Sm(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[c]<0&&(t[wl]+=65536),(a>14>16&&(t[rt]&3)===e&&(t[rt]+=16384,yS(a,o)):yS(a,o)}var Dl=-1,lc=class{constructor(e,n,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}};function YV(t){return t instanceof lc}function QV(t){return(t.flags&8)!==0}function KV(t){return(t.flags&16)!==0}var U_={},uy=class{constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,i){i=gm(i);let r=this.injector.get(e,U_,i);return r!==U_||n===U_?r:this.parentInjector.get(e,n,i)}};function WI(t){return t!==Dl}function Yp(t){return t&32767}function XV(t){return t>>16}function Qp(t,e){let n=XV(t),i=e;for(;n>0;)i=i[Vl],n--;return i}var hy=!0;function wS(t){let e=hy;return hy=t,e}var ZV=256,GI=ZV-1,YI=5,JV=0,Mo={};function eB(t,e,n){let i;typeof n=="string"?i=n.charCodeAt(0)||0:n.hasOwnProperty(Tu)&&(i=n[Tu]),i==null&&(i=n[Tu]=JV++);let r=i&GI,o=1<>YI)]|=o}function Kp(t,e){let n=QI(t,e);if(n!==-1)return n;let i=e[ft];i.firstCreatePass&&(t.injectorIndex=e.length,q_(i.data,t),q_(e,null),q_(i.blueprint,null));let r=I1(t,e),o=t.injectorIndex;if(WI(r)){let s=Yp(r),a=Qp(r,e),c=a[ft].data;for(let l=0;l<8;l++)e[o+l]=a[s+l]|c[s+l]}return e[o+8]=r,o}function q_(t,e){t.push(0,0,0,0,0,0,0,0,e)}function QI(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function I1(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;r!==null;){if(i=ek(r),i===null)return Dl;if(n++,r=r[Vl],i.injectorIndex!==-1)return i.injectorIndex|n<<16}return Dl}function fy(t,e,n){eB(t,e,n)}function tB(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let n=t.attrs;if(n){let i=n.length,r=0;for(;r>20,d=i?a:a+u,h=r?a+u:l;for(let f=d;f=c&&p.type===n)return f}if(r){let f=s[c];if(f&&ms(f)&&f.type===n)return c}return null}function dc(t,e,n,i){let r=t[n],o=e.data;if(YV(r)){let s=r;s.resolving&&T7(M7(o[n]));let a=wS(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?dr(s.injectImpl):null,u=BI(t,i,_t.Default);try{r=t[n]=s.factory(void 0,o,t,i),e.firstCreatePass&&n>=i.directiveStart&&WV(n,o[n],e)}finally{l!==null&&dr(l),wS(a),s.resolving=!1,UI()}}return r}function nB(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Tu)?t[Tu]:void 0;return typeof e=="number"?e>=0?e&GI:rB:e}function CS(t,e,n){let i=1<>YI)]&i)}function xS(t,e){return!(t&_t.Self)&&!(t&_t.Host&&e)}var rc=class{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,i){return ZI(this._tNode,this._lView,e,gm(i),n)}};function rB(){return new rc(ki(),ut())}function Ft(t){return ju(()=>{let e=t.prototype.constructor,n=e[Hp]||py(e),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[Hp]||py(r);if(o&&o!==n)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function py(t){return JS(t)?()=>{let e=py(Oi(t));return e&&e()}:Sl(t)}function oB(t,e,n,i,r){let o=t,s=e;for(;o!==null&&s!==null&&s[rt]&2048&&!(s[rt]&512);){let a=JI(o,s,n,i|_t.Self,Mo);if(a!==Mo)return a;let c=o.parent;if(!c){let l=s[DI];if(l){let u=l.get(n,Mo,i);if(u!==Mo)return u}c=ek(s),s=s[Vl]}o=c}return r}function ek(t){let e=t[ft],n=e.type;return n===2?e.declTNode:n===1?t[yn]:null}function wn(t){return tB(ki(),t)}function DS(t,e=null,n=null,i){let r=tk(t,e,n,i);return r.resolveInjectorInitializers(),r}function tk(t,e=null,n=null,i,r=new Set){let o=[n||nn,aV(t)];return i=i||(typeof t=="object"?void 0:rn(t)),new Nu(o,e||f1(),i||null,r)}var nc=class nc{static create(e,n){if(Array.isArray(e))return DS({name:""},n,e,"");{let i=e.name??"";return DS({name:i},e.parent,e.providers,i)}}};nc.THROW_IF_NOT_FOUND=Ru,nc.NULL=new qp,nc.\u0275prov=U({token:nc,providedIn:"any",factory:()=>R(cI)}),nc.__NG_ELEMENT_ID__=-1;var Je=nc;var sB=new q("");sB.__NG_ELEMENT_ID__=t=>{let e=ki();if(e===null)throw new ge(204,!1);if(e.type&2)return e.value;if(t&_t.Optional)return null;throw new ge(204,!1)};var aB="ngOriginalError";function $_(t){return t[aB]}var Im=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=cB,e.__NG_ENV_ID__=i=>i;let t=e;return t})(),my=class extends Im{constructor(e){super(),this._lView=e}onDestroy(e){return OI(this._lView,e),()=>MV(this._lView,e)}};function cB(){return new my(ut())}var Fo=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Vt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=U({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var gy=class extends K{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,xI()&&(this.destroyRef=B(Im,{optional:!0})??void 0,this.pendingTasks=B(Fo,{optional:!0})??void 0)}emit(e){let n=Dt(null);try{super.next(e)}finally{Dt(n)}}subscribe(e,n,i){let r=e,o=n||(()=>null),s=i;if(e&&typeof e=="object"){let c=e;r=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:r,error:o,complete:s});return e instanceof Me&&e.add(a),a}wrapInTimeout(e){return n=>{let i=this.pendingTasks?.add();setTimeout(()=>{e(n),i!==void 0&&this.pendingTasks?.remove(i)})}}},oe=gy;function Xp(...t){}function ik(t){let e,n;function i(){t=Xp;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),i()})),()=>i()}function ES(t){return queueMicrotask(()=>t()),()=>{t=Xp}}var ee=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new oe(!1),this.onMicrotaskEmpty=new oe(!1),this.onStable=new oe(!1),this.onError=new oe(!1),typeof Zone>"u")throw new ge(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&n,r.shouldCoalesceRunChangeDetection=i,r.callbackScheduled=!1,uB(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ge(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ge(909,!1)}run(e,n,i){return this._inner.run(e,n,i)}runTask(e,n,i,r){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,lB,Xp,Xp);try{return o.runTask(s,n,i)}finally{o.cancelTask(s)}}runGuarded(e,n,i){return this._inner.runGuarded(e,n,i)}runOutsideAngular(e){return this._outer.run(e)}},lB={};function k1(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function dB(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{ik(()=>{t.callbackScheduled=!1,vy(t),t.isCheckStableRunning=!0,k1(t),t.isCheckStableRunning=!1})}),vy(t))}function uB(t){let e=()=>{dB(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,o,s,a)=>{if(hB(a))return n.invokeTask(r,o,s,a);try{return SS(t),n.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),IS(t)}},onInvoke:(n,i,r,o,s,a,c)=>{try{return SS(t),n.invoke(r,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!fB(a)&&e(),IS(t)}},onHasTask:(n,i,r,o)=>{n.hasTask(r,o),i===r&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,vy(t),k1(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,i,r,o)=>(n.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function vy(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function SS(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function IS(t){t._nesting--,k1(t)}var Zp=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new oe,this.onMicrotaskEmpty=new oe,this.onStable=new oe,this.onError=new oe}run(e,n,i){return e.apply(n,i)}runGuarded(e,n,i){return e.apply(n,i)}runOutsideAngular(e){return e()}runTask(e,n,i,r){return e.apply(n,i)}};function hB(t){return nk(t,"__ignore_ng_zone__")}function fB(t){return nk(t,"__scheduler_tick__")}function nk(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function pB(t="zone.js",e){return t==="noop"?new Zp:t==="zone.js"?new ee(e):t}var _n=class{constructor(){this._console=console}handleError(e){let n=this._findOriginalError(e);this._console.error("ERROR",e),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&$_(e);for(;n&&$_(n);)n=$_(n);return n||null}},mB=new q("",{providedIn:"root",factory:()=>{let t=B(ee),e=B(_n);return n=>t.runOutsideAngular(()=>e.handleError(n))}});function gB(){return Bl(ki(),ut())}function Bl(t,e){return new ce(fr(t,e))}var ce=(()=>{let e=class e{constructor(i){this.nativeElement=i}};e.__NG_ELEMENT_ID__=gB;let t=e;return t})();function rk(t){return t instanceof ce?t.nativeElement:t}function vB(){return this._results[Symbol.iterator]()}var $r=class t{get changes(){return this._changes??=new oe}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=t.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=vB)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){this.dirty=!1;let i=H7(e);(this._changesDetected=!j7(this._results,i,n))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function ok(t){return(t.flags&128)===128}var sk=new Map,bB=0;function _B(){return bB++}function yB(t){sk.set(t[_m],t)}function wB(t){sk.delete(t[_m])}var kS="__ngContext__";function da(t,e){sa(e)?(t[kS]=e[_m],yB(e)):t[kS]=e}function ak(t){return lk(t[Fu])}function ck(t){return lk(t[qr])}function lk(t){for(;t!==null&&!bs(t);)t=t[qr];return t}var by;function dk(t){by=t}function CB(){if(by!==void 0)return by;if(typeof document<"u")return document;throw new ge(210,!1)}var jl=new q("",{providedIn:"root",factory:()=>xB}),xB="ng",M1=new q(""),sn=new q("",{providedIn:"platform",factory:()=>"unknown"});var jt=new q(""),zu=new q("",{providedIn:"root",factory:()=>CB().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var DB="h",EB="b";var SB=()=>null;function T1(t,e,n=!1){return SB(t,e,n)}var uk=!1,IB=new q("",{providedIn:"root",factory:()=>uk});var Mp;function kB(){if(Mp===void 0&&(Mp=null,jn.trustedTypes))try{Mp=jn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Mp}function km(t){return kB()?.createHTML(t)||t}var Tp;function MB(){if(Tp===void 0&&(Tp=null,jn.trustedTypes))try{Tp=jn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Tp}function MS(t){return MB()?.createScriptURL(t)||t}var gs=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ZS})`}},_y=class extends gs{getTypeName(){return"HTML"}},yy=class extends gs{getTypeName(){return"Style"}},wy=class extends gs{getTypeName(){return"Script"}},Cy=class extends gs{getTypeName(){return"URL"}},xy=class extends gs{getTypeName(){return"ResourceURL"}};function Yr(t){return t instanceof gs?t.changingThisBreaksApplicationSecurity:t}function ga(t,e){let n=TB(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${ZS})`)}return n===e}function TB(t){return t instanceof gs&&t.getTypeName()||null}function hk(t){return new _y(t)}function fk(t){return new yy(t)}function pk(t){return new wy(t)}function mk(t){return new Cy(t)}function gk(t){return new xy(t)}function AB(t){let e=new Ey(t);return RB()?new Dy(e):e}var Dy=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let n=new window.DOMParser().parseFromString(km(e),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(e):(n.removeChild(n.firstChild),n)}catch{return null}}},Ey=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let n=this.inertDocument.createElement("template");return n.innerHTML=km(e),n}};function RB(){try{return!!new window.DOMParser().parseFromString(km(""),"text/html")}catch{return!1}}var OB=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Mm(t){return t=String(t),t.match(OB)?t:"unsafe:"+t}function ys(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function Uu(...t){let e={};for(let n of t)for(let i in n)n.hasOwnProperty(i)&&(e[i]=!0);return e}var vk=ys("area,br,col,hr,img,wbr"),bk=ys("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_k=ys("rp,rt"),NB=Uu(_k,bk),FB=Uu(bk,ys("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")),PB=Uu(_k,ys("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")),TS=Uu(vk,FB,PB,NB),yk=ys("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),LB=ys("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,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),VB=ys("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"),BB=Uu(yk,LB,VB),jB=ys("script,style,template"),Sy=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let n=e.firstChild,i=!0,r=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild){r.push(n),n=UB(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=zB(n);if(o){n=o;break}n=r.pop()}}return this.buf.join("")}startElement(e){let n=AS(e).toLowerCase();if(!TS.hasOwnProperty(n))return this.sanitizedSomething=!0,!jB.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let i=e.attributes;for(let r=0;r"),!0}endElement(e){let n=AS(e).toLowerCase();TS.hasOwnProperty(n)&&!vk.hasOwnProperty(n)&&(this.buf.push(""))}chars(e){this.buf.push(RS(e))}};function HB(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function zB(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw wk(e);return e}function UB(t){let e=t.firstChild;if(e&&HB(t,e))throw wk(e);return e}function AS(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function wk(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var qB=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$B=/([^\#-~ |!])/g;function RS(t){return t.replace(/&/g,"&").replace(qB,function(e){let n=e.charCodeAt(0),i=e.charCodeAt(1);return"&#"+((n-55296)*1024+(i-56320)+65536)+";"}).replace($B,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Ap;function Ck(t,e){let n=null;try{Ap=Ap||AB(t);let i=e?String(e):"";n=Ap.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=Ap.getInertBodyElement(i)}while(i!==o);let a=new Sy().sanitizeChildren(OS(n)||n);return km(a)}finally{if(n){let i=OS(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function OS(t){return"content"in t&&WB(t)?t.content:null}function WB(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var $i=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}($i||{});function A1(t){let e=Dk();return e?e.sanitize($i.URL,t)||"":ga(t,"URL")?Yr(t):Mm(El(t))}function GB(t){let e=Dk();if(e)return MS(e.sanitize($i.RESOURCE_URL,t)||"");if(ga(t,"ResourceURL"))return MS(Yr(t));throw new ge(904,!1)}function YB(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?GB:A1}function xk(t,e,n){return YB(e,n)(t)}function Dk(){let t=ut();return t&&t[Ao].sanitizer}var QB=/^>|^->||--!>|)/g,XB="\u200B$1\u200B";function ZB(t){return t.replace(QB,e=>e.replace(KB,XB))}function Ek(t){return t instanceof Function?t():t}function Sk(t){return(t??B(Je)).get(sn)==="browser"}var vs=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(vs||{}),JB;function R1(t,e){return JB(t,e)}function Cl(t,e,n,i,r){if(i!=null){let o,s=!1;bs(i)?o=i:sa(i)&&(s=!0,i=i[Oo]);let a=Ro(i);t===0&&n!==null?r==null?Ak(e,n,a):Jp(e,n,a,r||null,!0):t===1&&n!==null?Jp(e,n,a,r||null,!0):t===2?pj(e,a,s):t===3&&e.destroyNode(a),o!=null&&gj(e,t,o,n,r)}}function ej(t,e){return t.createText(e)}function tj(t,e,n){t.setValue(e,n)}function ij(t,e){return t.createComment(ZB(e))}function Ik(t,e,n){return t.createElement(e,n)}function nj(t,e){kk(t,e),e[Oo]=null,e[yn]=null}function rj(t,e,n,i,r,o){i[Oo]=r,i[yn]=e,Rm(t,i,n,1,r,o)}function kk(t,e){e[Ao].changeDetectionScheduler?.notify(8),Rm(t,e,e[Xt],2,null,null)}function oj(t){let e=t[Fu];if(!e)return W_(t[ft],t);for(;e;){let n=null;if(sa(e))n=e[Fu];else{let i=e[Ui];i&&(n=i)}if(!n){for(;e&&!e[qr]&&e!==t;)sa(e)&&W_(e[ft],e),e=e[qi];e===null&&(e=t),sa(e)&&W_(e[ft],e),n=e&&e[qr]}e=n}}function sj(t,e,n,i){let r=Ui+i,o=n.length;i>0&&(n[r-1][qr]=e),i0&&(t[n-1][qr]=i[qr]);let o=Up(t,Ui+e);nj(i[ft],i);let s=o[ps];s!==null&&s.detachView(o[ft]),i[qi]=null,i[qr]=null,i[rt]&=-129}return i}function Tm(t,e){if(!(e[rt]&256)){let n=e[Xt];n.destroyNode&&Rm(t,e,n,3,null,null),oj(e)}}function W_(t,e){if(e[rt]&256)return;let n=Dt(null);try{e[rt]&=-129,e[rt]|=256,e[ur]&&sp(e[ur]),cj(t,e),aj(t,e),e[ft].type===1&&e[Xt].destroy();let i=e[oc];if(i!==null&&bs(e[qi])){i!==e[qi]&&O1(i,e);let r=e[ps];r!==null&&r.detachView(t)}wB(e)}finally{Dt(n)}}function aj(t,e){let n=t.cleanup,i=e[$p];if(n!==null)for(let o=0;o=0?i[s]():i[-s].unsubscribe(),o+=2}else{let s=i[n[o+1]];n[o].call(s)}i!==null&&(e[$p]=null);let r=e[oa];if(r!==null){e[oa]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[i.directiveStart+r];if(o===To.None||o===To.Emulated)return null}return fr(i,n)}}function Jp(t,e,n,i,r){t.insertBefore(e,n,i,r)}function Ak(t,e,n){t.appendChild(e,n)}function NS(t,e,n,i,r){i!==null?Jp(t,e,n,i,r):Ak(t,e,n)}function dj(t,e,n,i){t.removeChild(e,n,i)}function N1(t,e){return t.parentNode(e)}function uj(t,e){return t.nextSibling(e)}function Rk(t,e,n){return fj(t,e,n)}function hj(t,e,n){return t.type&40?fr(t,n):null}var fj=hj,FS;function Am(t,e,n,i){let r=Tk(t,i,e),o=e[Xt],s=i.parent||e[yn],a=Rk(s,i,e);if(r!=null)if(Array.isArray(n))for(let c=0;con&&Lk(t,e,on,!1),ko(s?2:0,r),n(i,r)}finally{cc(o),ko(s?3:1,r)}}function P1(t,e,n){if(g1(e)){let i=Dt(null);try{let r=e.directiveStart,o=e.directiveEnd;for(let s=r;snull;function Ej(t,e,n,i){let r=Wk(e);r.push(n),t.firstCreatePass&&Gk(t).push(i,r.length-1)}function Sj(t,e,n,i,r,o){let s=e?e.injectorIndex:-1,a=0;return PI()&&(a|=128),{type:n,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function PS(t,e,n,i,r){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;i??={};let a,c=aa.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=o;if(r!==null){if(!r.hasOwnProperty(o))continue;l=r[o]}t===0?LS(i,n,l,a,c):LS(i,n,l,a)}return i}function LS(t,e,n,i,r){let o;t.hasOwnProperty(n)?(o=t[n]).push(e,i):o=t[n]=[e,i],r!==void 0&&o.push(r)}function Ij(t,e,n){let i=e.directiveStart,r=e.directiveEnd,o=t.data,s=e.attrs,a=[],c=null,l=null;for(let u=i;u0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function Rj(t,e,n,i){let r=n.directiveStart,o=n.directiveEnd;ym(n)&&Bj(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||Kp(n,e),da(i,e);let s=n.initialInputs;for(let a=r;a{Cm(t.lView)},consumerOnSignalRead(){this.lView[ur]=this}});function Zj(t){let e=t[ur]??Object.create(Jj);return e.lView=t,e}var Jj=mt(X({},dl),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=ac(t.lView);for(;e&&!eM(e[ft]);)e=ac(e);e&&RI(e)},consumerOnSignalRead(){this.lView[ur]=this}});function eM(t){return t.type!==2}var eH=100;function tM(t,e=!0,n=0){let i=t[Ao],r=i.rendererFactory,o=!1;o||r.begin?.();try{tH(t,n)}catch(s){throw e&&Qk(t,s),s}finally{o||(r.end?.(),i.inlineEffectRunner?.flush())}}function tH(t,e){let n=VI();try{_S(!0),Ty(t,e);let i=0;for(;Pu(t);){if(i===eH)throw new ge(103,!1);i++,Ty(t,1)}}finally{_S(n)}}function iH(t,e,n,i){let r=e[rt];if((r&256)===256)return;let o=!1,s=!1;!o&&e[Ao].inlineEffectRunner?.flush(),D1(e);let a=!0,c=null,l=null;o||(eM(t)?(l=Yj(e),c=yu(l)):DE()===null?(a=!1,l=Zj(e),c=yu(l)):e[ur]&&(sp(e[ur]),e[ur]=null));try{AI(e),VV(t.bindingStartIndex),n!==null&&jk(t,e,n,2,i);let u=(r&3)===3;if(!o)if(u){let f=t.preOrderCheckHooks;f!==null&&Lp(e,f,null)}else{let f=t.preOrderHooks;f!==null&&Vp(e,f,0,null),z_(e,0)}if(s||nH(e),iM(e,0),t.contentQueries!==null&&$k(t,e),!o)if(u){let f=t.contentCheckHooks;f!==null&&Lp(e,f)}else{let f=t.contentHooks;f!==null&&Vp(e,f,1),z_(e,1)}_j(t,e);let d=t.components;d!==null&&rM(e,d,0);let h=t.viewQuery;if(h!==null&&My(2,h,i),!o)if(u){let f=t.viewCheckHooks;f!==null&&Lp(e,f)}else{let f=t.viewHooks;f!==null&&Vp(e,f,2),z_(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Pp]){for(let f of e[Pp])f();e[Pp]=null}o||(e[rt]&=-73)}catch(u){throw o||Cm(e),u}finally{l!==null&&(rp(l,c),a&&Kj(l)),E1()}}function iM(t,e){for(let n=ak(t);n!==null;n=ck(n))for(let i=Ui;i-1&&(Lu(e,i),Up(n,i))}this._attachedToViewContainer=!1}Tm(this._lView[ft],this._lView)}onDestroy(e){OI(this._lView,e)}markForCheck(){U1(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[rt]&=-129}reattach(){ly(this._lView),this._lView[rt]|=128}detectChanges(){this._lView[rt]|=1024,tM(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ge(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=ay(this._lView),n=this._lView[oc];n!==null&&!e&&O1(n,this._lView),kk(this._lView[ft],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new ge(902,!1);this._appRef=e;let n=ay(this._lView),i=this._lView[oc];i!==null&&!n&&Mk(i,this._lView),ly(this._lView)}},Rt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=aH;let t=e;return t})(),oH=Rt,sH=class extends oH{constructor(e,n,i){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,i){let r=qu(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:i});return new uc(r)}};function aH(){return Fm(ki(),ut())}function Fm(t,e){return t.type&4?new sH(e,t,Bl(t,e)):null}var Dve=new RegExp(`^(\\d+)*(${EB}|${DB})*(.*)`);var cH=()=>null;function Ol(t,e){return cH(t,e)}var Nl=class{},oM=new q("",{providedIn:"root",factory:()=>!1});var sM=new q(""),Ay=class{},tm=class{};function lH(t){let e=Error(`No component factory found for ${rn(t)}.`);return e[dH]=t,e}var dH="ngComponent";var Ry=class{resolveComponentFactory(e){throw lH(e)}},iw=class iw{};iw.NULL=new Ry;var Wr=iw,ua=class{},va=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>uH();let t=e;return t})();function uH(){let t=ut(),e=ki(),n=pa(e.index,t);return(sa(n)?n:t)[Xt]}var hH=(()=>{let e=class e{};e.\u0275prov=U({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var VS=new Set;function Qr(t){VS.has(t)||(VS.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Ni=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Ni||{}),aM={destroy(){}};function Wu(t,e){!e&&p1(Wu);let n=e?.injector??B(Je);return Sk(n)?(Qr("NgAfterRender"),cM(t,n,!1,e?.phase??Ni.MixedReadWrite)):aM}function ri(t,e){!e&&p1(ri);let n=e?.injector??B(Je);return Sk(n)?(Qr("NgAfterNextRender"),cM(t,n,!0,e?.phase??Ni.MixedReadWrite)):aM}function fH(t,e){if(t instanceof Function)switch(e){case Ni.EarlyRead:return{earlyRead:t};case Ni.Write:return{write:t};case Ni.MixedReadWrite:return{mixedReadWrite:t};case Ni.Read:return{read:t}}return t}function cM(t,e,n,i){let r=fH(t,i),o=e.get(q1),s=o.handler??=new Ny,a=[],c=[],l=()=>{for(let f of c)s.unregister(f);u()},u=e.get(Im).onDestroy(l),d=0,h=(f,p)=>{if(!p)return;let m=n?(...b)=>(d--,d<1&&l(),p(...b)):p,v=zn(e,()=>new Oy(f,a,m));s.register(v),c.push(v),d++};return h(Ni.EarlyRead,r.earlyRead),h(Ni.Write,r.write),h(Ni.MixedReadWrite,r.mixedReadWrite),h(Ni.Read,r.read),{destroy:l}}var Oy=class{constructor(e,n,i){this.phase=e,this.pipelinedArgs=n,this.callbackFn=i,this.zone=B(ee),this.errorHandler=B(_n,{optional:!0}),B(Nl,{optional:!0})?.notify(6)}invoke(){try{let e=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,e)}catch(e){this.errorHandler?.handleError(e)}}},Ny=class{constructor(){this.executingCallbacks=!1,this.buckets={[Ni.EarlyRead]:new Set,[Ni.Write]:new Set,[Ni.MixedReadWrite]:new Set,[Ni.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let n of e)n.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},q1=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let i=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let r of i)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=U({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function im(t,e,n){let i=n?t.styles:null,r=n?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&Fk(t,n,o.join(" "))}}function yH(t,e,n){let i=t.projection=[];for(let r=0;r{let e=class e{};e.__NG_ELEMENT_ID__=CH;let t=e;return t})();function CH(){let t=ki();return dM(t,ut())}var xH=qt,lM=class extends xH{constructor(e,n,i){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=i}get element(){return Bl(this._hostTNode,this._hostLView)}get injector(){return new rc(this._hostTNode,this._hostLView)}get parentInjector(){let e=I1(this._hostTNode,this._hostLView);if(WI(e)){let n=Qp(e,this._hostLView),i=Yp(e),r=n[ft].data[i+8];return new rc(r,n)}else return new rc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=jS(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-Ui}createEmbeddedView(e,n,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let s=Ol(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,r,Rl(this._hostTNode,s)),a}createComponent(e,n,i,r,o){let s=e&&!_V(e),a;if(s)a=n;else{let p=n||{};a=p.index,i=p.injector,r=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}let c=s?e:new Fl(ca(e)),l=i||this.parentInjector;if(!o&&c.ngModule==null){let m=(s?l:this.parentInjector).get(Fi,null);m&&(o=m)}let u=ca(c.componentType??{}),d=Ol(this._lContainer,u?.id??null),h=d?.firstChild??null,f=c.create(l,r,h,o);return this.insertImpl(f.hostView,a,Rl(this._hostTNode,d)),f}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,i){let r=e._lView;if(IV(r)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=r[qi],l=new lM(c,c[yn],c[qi]);l.detach(l.indexOf(e))}}let o=this._adjustIndex(n),s=this._lContainer;return $u(s,r,o,i),e.attachToViewContainerRef(),aI(G_(s),o,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=jS(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),i=Lu(this._lContainer,n);i&&(Up(G_(this._lContainer),n),Tm(i[ft],i))}detach(e){let n=this._adjustIndex(e,-1),i=Lu(this._lContainer,n);return i&&Up(G_(this._lContainer),n)!=null?new uc(i):null}_adjustIndex(e,n=0){return e??this.length+n}};function jS(t){return t[Wp]}function G_(t){return t[Wp]||(t[Wp]=[])}function dM(t,e){let n,i=e[t.index];return bs(i)?n=i:(n=qk(i,e,null,t),e[t.index]=n,Nm(e,n)),EH(n,e,t,i),new lM(n,t,e)}function DH(t,e){let n=t[Xt],i=n.createComment(""),r=fr(e,t),o=N1(n,r);return Jp(n,o,i,uj(n,r),!1),i}var EH=kH,SH=()=>!1;function IH(t,e,n){return SH(t,e,n)}function kH(t,e,n,i){if(t[sc])return;let r;n.type&8?r=Ro(i):r=DH(e,n),t[sc]=r}var Py=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Ly=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let n=e.queries;if(n!==null){let i=e.contentQueries!==null?e.contentQueries[0]:n.length,r=[];for(let o=0;o0)i.push(s[a/2]);else{let l=o[a+1],u=e[-c];for(let d=Ui;de.trim())}function pM(t,e,n){t.queries===null&&(t.queries=new Vy),t.queries.track(new By(e,n))}function FH(t,e){let n=t.contentQueries||(t.contentQueries=[]),i=n.length?n[n.length-1]:-1;e!==i&&n.push(t.queries.length-1,e)}function W1(t,e){return t.queries.getByIndex(e)}function mM(t,e){let n=t[ft],i=W1(n,e);return i.crossesNgTemplate?jy(n,t,e,[]):uM(n,t,i,e)}function Pm(t){return typeof t=="function"&&t[sr]!==void 0}function Kr(t,e){Qr("NgSignals");let n=FE(t),i=n[sr];return e?.equal&&(i.equal=e.equal),n.set=r=>Eb(i,r),n.update=r=>PE(i,r),n.asReadonly=PH.bind(n),n}function PH(){let t=this[sr];if(t.readonlyFn===void 0){let e=()=>this();e[sr]=t,t.readonlyFn=e}return t.readonlyFn}function gM(t){return Pm(t)&&typeof t.set=="function"}function vM(t,e){let n,i=Db(()=>{n._dirtyCounter();let r=jH(n,t);if(e&&r===void 0)throw new ge(-951,!1);return r});return n=i[sr],n._dirtyCounter=Kr(0),n._flatValue=void 0,i}function LH(){return vM(!0,!1)}function VH(){return vM(!0,!0)}function BH(t,e){let n=t[sr];n._lView=ut(),n._queryIndex=e,n._queryList=$1(n._lView,e),n._queryList.onDirty(()=>n._dirtyCounter.update(i=>i+1))}function jH(t,e){let n=t._lView,i=t._queryIndex;if(n===void 0||i===void 0||n[rt]&4)return e?void 0:nn;let r=$1(n,i),o=mM(n,i);return r.reset(o,rk),e?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}function HS(t,e){return LH()}function HH(t,e){return VH()}var bM=(HS.required=HH,HS);function zH(t){let e=[],n=new Map;function i(r){let o=n.get(r);if(!o){let s=t(r);n.set(r,o=s.then(WH))}return o}return om.forEach((r,o)=>{let s=[];r.templateUrl&&s.push(i(r.templateUrl).then(l=>{r.template=l}));let a=typeof r.styles=="string"?[r.styles]:r.styles||[];if(r.styles=a,r.styleUrl&&r.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(r.styleUrls?.length){let l=r.styles.length,u=r.styleUrls;r.styleUrls.forEach((d,h)=>{a.push(""),s.push(i(d).then(f=>{a[l+h]=f,u.splice(u.indexOf(d),1),u.length==0&&(r.styleUrls=void 0)}))})}else r.styleUrl&&s.push(i(r.styleUrl).then(l=>{a.push(l),r.styleUrl=void 0}));let c=Promise.all(s).then(()=>GH(o));e.push(c)}),qH(),Promise.all(e).then(()=>{})}var om=new Map,UH=new Set;function qH(){let t=om;return om=new Map,t}function $H(){return om.size===0}function WH(t){return typeof t=="string"?t:t.text()}function GH(t){UH.delete(t)}function YH(t){return Object.getPrototypeOf(t.prototype).constructor}function He(t){let e=YH(t.type),n=!0,i=[t];for(;e;){let r;if(ms(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new ge(903,!1);r=e.\u0275dir}if(r){if(n){i.push(r);let s=t;s.inputs=Rp(t.inputs),s.inputTransforms=Rp(t.inputTransforms),s.declaredInputs=Rp(t.declaredInputs),s.outputs=Rp(t.outputs);let a=r.hostBindings;a&&JH(t,a);let c=r.viewQuery,l=r.contentQueries;if(c&&XH(t,c),l&&ZH(t,l),QH(t,r),w7(t.outputs,r.outputs),ms(r)&&r.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let s=0;s=0;i--){let r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Ou(r.hostAttrs,n=Ou(n,r.hostAttrs))}}function Rp(t){return t===fs?{}:t===nn?[]:t}function XH(t,e){let n=t.viewQuery;n?t.viewQuery=(i,r)=>{e(i,r),n(i,r)}:t.viewQuery=e}function ZH(t,e){let n=t.contentQueries;n?t.contentQueries=(i,r,o)=>{e(i,r,o),n(i,r,o)}:t.contentQueries=e}function JH(t,e){let n=t.hostBindings;n?t.hostBindings=(i,r)=>{e(i,r),n(i,r)}:t.hostBindings=e}function _M(t){let e=n=>{let i=(Array.isArray(t)?t:t()).map(r=>typeof r=="function"?{directive:Oi(r),inputs:fs,outputs:fs}:{directive:Oi(r.directive),inputs:zS(r.inputs),outputs:zS(r.outputs)});n.hostDirectives===null?(n.findHostDirectiveDefs=yM,n.hostDirectives=i):n.hostDirectives.unshift(...i)};return e.ngInherit=!0,e}function yM(t,e,n){if(t.hostDirectives!==null)for(let i of t.hostDirectives){let r=u1(i.directive);ez(r.declaredInputs,i.inputs),yM(r,e,n),n.set(r,i),e.push(r)}}function zS(t){if(t===void 0||t.length===0)return fs;let e={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},am=class extends Vu{constructor(e){super(),this.moduleType=e}create(e){return new sm(this.moduleType,e,[])}};function tz(t,e,n){return new sm(t,e,n)}var Hy=class extends ha{constructor(e){super(),this.componentFactoryResolver=new nm(this),this.instance=null;let n=new Nu([...e.providers,{provide:ha,useValue:this},{provide:Wr,useValue:this.componentFactoryResolver}],e.parent||f1(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Lm(t,e,n=null){return new Hy({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}function wM(t){return nz(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function iz(t,e){if(Array.isArray(t))for(let n=0;n>17&32767}function lz(t){return(t&2)==2}function dz(t,e){return t&131071|e<<17}function zy(t){return t|2}function Pl(t){return(t&131068)>>2}function Y_(t,e){return t&-131069|e<<2}function uz(t){return(t&1)===1}function Uy(t){return t|1}function hz(t,e,n,i,r,o){let s=o?e.classBindings:e.styleBindings,a=hc(s),c=Pl(s);t[i]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||Hu(d,u)>0)&&(l=!0)}else u=n;if(r)if(c!==0){let h=hc(t[a+1]);t[i+1]=Op(h,a),h!==0&&(t[h+1]=Y_(t[h+1],i)),t[a+1]=dz(t[a+1],i)}else t[i+1]=Op(a,0),a!==0&&(t[a+1]=Y_(t[a+1],i)),a=i;else t[i+1]=Op(c,0),a===0?a=i:t[c+1]=Y_(t[c+1],i),c=i;l&&(t[i+1]=zy(t[i+1])),US(t,u,i,!0),US(t,u,i,!1),fz(e,u,t,i,o),s=Op(a,c),o?e.classBindings=s:e.styleBindings=s}function fz(t,e,n,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Hu(o,e)>=0&&(n[i+1]=Uy(n[i+1]))}function US(t,e,n,i){let r=t[n+1],o=e===null,s=i?hc(r):Pl(r),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],l=t[s+1];pz(c,e)&&(a=!0,t[s+1]=i?Uy(l):zy(l)),s=i?hc(l):Pl(l)}a&&(t[n+1]=i?zy(r):Uy(r))}function pz(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Hu(t,e)>=0:!1}var Ur={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function mz(t){return t.substring(Ur.key,Ur.keyEnd)}function gz(t){return vz(t),xM(t,DM(t,0,Ur.textEnd))}function xM(t,e){let n=Ur.textEnd;return n===e?-1:(e=Ur.keyEnd=bz(t,Ur.key=e,n),DM(t,e,n))}function vz(t){Ur.key=0,Ur.keyEnd=0,Ur.value=0,Ur.valueEnd=0,Ur.textEnd=t.length}function DM(t,e,n){for(;e32;)e++;return e}function ie(t,e,n){let i=ut(),r=ma();if(hr(i,r,e)){let o=Zt(),s=pc();Ul(o,s,i,t,e,i[Xt],n,!1)}return ie}function qy(t,e,n,i,r){let o=e.inputs,s=r?"class":"style";H1(t,n,o[s],s,i)}function hi(t,e,n){return SM(t,e,n,!1),hi}function Oe(t,e){return SM(t,e,null,!0),Oe}function _i(t){IM(Dz,EM,t,!0)}function EM(t,e){for(let n=gz(e);n>=0;n=xM(e,n))vm(t,mz(e),!0)}function SM(t,e,n,i){let r=ut(),o=Zt(),s=w1(2);if(o.firstUpdatePass&&MM(o,t,s,i),e!==Un&&hr(r,s,e)){let a=o.data[_s()];TM(o,a,r,r[Xt],t,r[s+1]=Sz(e,n),i,s)}}function IM(t,e,n,i){let r=Zt(),o=w1(2);r.firstUpdatePass&&MM(r,null,o,i);let s=ut();if(n!==Un&&hr(s,o,n)){let a=r.data[_s()];if(AM(a,i)&&!kM(r,o)){let c=i?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=J_(c,n||"")),qy(r,a,s,n,i)}else Ez(r,a,s,s[Xt],s[o+1],s[o+1]=xz(t,e,n),i,o)}}function kM(t,e){return e>=t.expandoStartIndex}function MM(t,e,n,i){let r=t.data;if(r[n+1]===null){let o=r[_s()],s=kM(t,n);AM(o,i)&&e===null&&!s&&(e=!1),e=_z(r,o,e,i),hz(r,o,e,n,s,i)}}function _z(t,e,n,i){let r=C1(t),o=i?e.residualClasses:e.residualStyles;if(r===null)(i?e.classBindings:e.styleBindings)===0&&(n=Q_(null,t,e,n,i),n=Bu(n,e.attrs,i),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==r)if(n=Q_(r,t,e,n,i),o===null){let c=yz(t,e,i);c!==void 0&&Array.isArray(c)&&(c=Q_(null,t,e,c[1],i),c=Bu(c,e.attrs,i),wz(t,e,i,c))}else o=Cz(t,e,i)}return o!==void 0&&(i?e.residualClasses=o:e.residualStyles=o),n}function yz(t,e,n){let i=n?e.classBindings:e.styleBindings;if(Pl(i)!==0)return t[hc(i)]}function wz(t,e,n,i){let r=n?e.classBindings:e.styleBindings;t[hc(r)]=i}function Cz(t,e,n){let i,r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let c=t[r],l=Array.isArray(c),u=l?c[1]:c,d=u===null,h=n[r+1];h===Un&&(h=d?nn:void 0);let f=d?j_(h,i):u===i?h:void 0;if(l&&!lm(f)&&(f=j_(c,i)),lm(f)&&(a=f,s))return a;let p=t[r+1];r=s?hc(p):Pl(p)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(a=j_(c,i))}return a}function lm(t){return t!==void 0}function Sz(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=rn(Yr(t)))),t}function AM(t,e){return(t.flags&(e?8:16))!==0}function RM(t,e,n){let i=ut(),r=G1(i,t,e,n);IM(vm,EM,r,!0)}var $y=class{destroy(e){}updateValue(e,n){}swap(e,n){let i=Math.min(e,n),r=Math.max(e,n),o=this.detach(r);if(r-i>1){let s=this.detach(i);this.attach(i,o),this.attach(r,s)}else this.attach(i,o)}move(e,n){this.attach(n,this.detach(e))}};function K_(t,e,n,i,r){return t===n&&Object.is(e,i)?1:Object.is(r(t,e),r(n,i))?-1:0}function Iz(t,e,n){let i,r,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let c=e.length-1;for(;o<=s&&o<=c;){let l=t.at(o),u=e[o],d=K_(o,l,o,u,n);if(d!==0){d<0&&t.updateValue(o,u),o++;continue}let h=t.at(s),f=e[c],p=K_(s,h,c,f,n);if(p!==0){p<0&&t.updateValue(s,f),s--,c--;continue}let m=n(o,l),v=n(s,h),b=n(o,u);if(Object.is(b,v)){let C=n(c,f);Object.is(C,m)?(t.swap(o,s),t.updateValue(s,f),c--,s--):t.move(s,o),t.updateValue(o,u),o++;continue}if(i??=new dm,r??=WS(t,o,s,n),Wy(t,i,o,b))t.updateValue(o,u),o++,s++;else if(r.has(b))i.set(m,t.detach(o)),s--;else{let C=t.create(o,e[o]);t.attach(o,C),o++,s++}}for(;o<=c;)$S(t,i,n,o,e[o]),o++}else if(e!=null){let c=e[Symbol.iterator](),l=c.next();for(;!l.done&&o<=s;){let u=t.at(o),d=l.value,h=K_(o,u,o,d,n);if(h!==0)h<0&&t.updateValue(o,d),o++,l=c.next();else{i??=new dm,r??=WS(t,o,s,n);let f=n(o,d);if(Wy(t,i,o,f))t.updateValue(o,d),o++,s++,l=c.next();else if(!r.has(f))t.attach(o,t.create(o,d)),o++,s++,l=c.next();else{let p=n(o,u);i.set(p,t.detach(o)),s--}}}for(;!l.done;)$S(t,i,n,t.length,l.value),l=c.next()}for(;o<=s;)t.destroy(t.detach(s--));i?.forEach(c=>{t.destroy(c)})}function Wy(t,e,n,i){return e!==void 0&&e.has(i)?(t.attach(n,e.get(i)),e.delete(i),!0):!1}function $S(t,e,n,i,r){if(Wy(t,e,i,n(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o)}}function WS(t,e,n,i){let r=new Set;for(let o=e;o<=n;o++)r.add(i(o,t.at(o)));return r}var dm=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let n=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(e,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,n){if(this.kvMap.has(e)){let i=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,n)}else this.kvMap.set(e,n)}forEach(e){for(let[n,i]of this.kvMap)if(e(i,n),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),e(i,n)}}};function tt(t,e){Qr("NgControlFlow");let n=ut(),i=ma(),r=n[i]!==Un?n[i]:-1,o=r!==-1?um(n,on+r):void 0,s=0;if(hr(n,i,t)){let a=Dt(null);try{if(o!==void 0&&Zk(o,s),t!==-1){let c=on+t,l=um(n,c),u=Ky(n[ft],c),d=Ol(l,u.tView.ssrId),h=qu(n,u,e,{dehydratedView:d});$u(l,h,s,Rl(u,d))}}finally{Dt(a)}}else if(o!==void 0){let a=Xk(o,s);a!==void 0&&(a[zi]=e)}}var Gy=class{constructor(e,n,i){this.lContainer=e,this.$implicit=n,this.$index=i}get $count(){return this.lContainer.length-Ui}};function OM(t){return t}var Yy=class{constructor(e,n,i){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=i}};function ql(t,e,n,i,r,o,s,a,c,l,u,d,h){Qr("NgControlFlow");let f=ut(),p=Zt(),m=c!==void 0,v=ut(),b=a?s.bind(v[Hn][zi]):s,C=new Yy(m,b);v[on+t]=C,cm(f,p,t+1,e,n,i,r,la(p.consts,o)),m&&cm(f,p,t+2,c,l,u,d,la(p.consts,h))}var Qy=class extends $y{constructor(e,n,i){super(),this.lContainer=e,this.hostLView=n,this.templateTNode=i,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Ui}at(e){return this.getLView(e)[zi].$implicit}attach(e,n){let i=n[Ml];this.needsIndexUpdate||=e!==this.length,$u(this.lContainer,n,e,Rl(this.templateTNode,i))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,kz(this.lContainer,e)}create(e,n){let i=Ol(this.lContainer,this.templateTNode.tView.ssrId),r=qu(this.hostLView,this.templateTNode,new Gy(this.lContainer,n,e),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(e){Tm(e[ft],e),this.operationsCounter?.recordDestroy()}updateValue(e,n){this.getLView(e)[zi].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Em(!0),Ik(i,r,$V()));function Rz(t,e,n,i,r){let o=e.consts,s=la(o,i),a=zl(e,t,8,"ng-container",s);s!==null&&im(a,s,!0);let c=la(o,r);return j1(e,n,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function Po(t,e,n){let i=ut(),r=Zt(),o=t+on,s=r.firstCreatePass?Rz(o,r,i,e,n):r.data[o];fc(s,!0);let a=Oz(r,i,s,t);return i[o]=a,Dm()&&Am(r,i,a,s),da(a,i),wm(s)&&(L1(r,i,s),P1(r,s,i)),n!=null&&V1(i,s),Po}function Lo(){let t=ki(),e=Zt();return _1()?y1():(t=t.parent,fc(t,!1)),e.firstCreatePass&&(Sm(e,t),g1(t)&&e.queries.elementEnd(t)),Lo}function an(t,e,n){return Po(t,e,n),Lo(),an}var Oz=(t,e,n,i)=>(Em(!0),ij(e[Xt],""));function st(){return ut()}function pr(t,e,n){let i=ut(),r=ma();if(hr(i,r,e)){let o=Zt(),s=pc();Ul(o,s,i,t,e,i[Xt],n,!0)}return pr}function mc(t,e,n){let i=ut(),r=ma();if(hr(i,r,e)){let o=Zt(),s=pc(),a=C1(o.data),c=Yk(a,s,i);Ul(o,s,i,t,e,c,n,!0)}return mc}var hm="en-US";var Nz=hm;function Fz(t){typeof t=="string"&&(Nz=t.toLowerCase().replace(/_/g,"-"))}var Pz=(t,e,n)=>{};function le(t,e,n,i){let r=ut(),o=Zt(),s=ki();return Y1(o,r,r[Xt],s,t,e,i),le}function gc(t,e){let n=ki(),i=ut(),r=Zt(),o=C1(r.data),s=Yk(o,n,i);return Y1(r,i,s,n,t,e),gc}function Lz(t,e,n,i){let r=t.cleanup;if(r!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function Y1(t,e,n,i,r,o,s){let a=wm(i),l=t.firstCreatePass&&Gk(t),u=e[zi],d=Wk(e),h=!0;if(i.type&3||s){let m=fr(i,e),v=s?s(m):m,b=d.length,C=s?_=>s(Ro(_[i.index])):i.index,E=null;if(!s&&a&&(E=Lz(t,e,r,i.index)),E!==null){let _=E.__ngLastListenerFn__||E;_.__ngNextListenerFn__=o,E.__ngLastListenerFn__=o,h=!1}else{o=YS(i,e,u,o),Pz(m,r,o);let _=n.listen(v,r,o);d.push(o,_),l&&l.push(r,C,b,b+1)}}else o=YS(i,e,u,o);let f=i.outputs,p;if(h&&f!==null&&(p=f[r])){let m=p.length;if(m)for(let v=0;v-1?pa(t.index,e):e;U1(s,5);let a=GS(e,n,i,o),c=r.__ngNextListenerFn__;for(;c;)a=GS(e,n,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function se(t=1){return UV(t)}function Vz(t,e){let n=null,i=X7(t);for(let r=0;r(Em(!0),ej(e[Xt],i));function Pt(t){return Tt("",t,""),Pt}function Tt(t,e,n){let i=ut(),r=G1(i,t,e,n);return r!==Un&&Kk(i,_s(),r),Tt}function K1(t,e,n,i,r){let o=ut(),s=CM(o,t,e,n,i,r);return s!==Un&&Kk(o,_s(),s),K1}function ii(t,e,n){gM(e)&&(e=e());let i=ut(),r=ma();if(hr(i,r,e)){let o=Zt(),s=pc();Ul(o,s,i,t,e,i[Xt],n,!1)}return ii}function oi(t,e){let n=gM(t);return n&&t.set(e),n}function ni(t,e){let n=ut(),i=Zt(),r=ki();return Y1(i,n,n[Xt],r,t,e),ni}function Hz(t,e,n){let i=Zt();if(i.firstCreatePass){let r=ms(t);Xy(n,i.data,i.blueprint,r,!0),Xy(e,i.data,i.blueprint,r,!1)}}function Xy(t,e,n,i,r){if(t=Oi(t),Array.isArray(t))for(let o=0;o>20;if(kl(t)||!t.multi){let f=new lc(l,r,g),p=Z_(c,e,r?u:u+h,d);p===-1?(fy(Kp(a,s),o,c),X_(o,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{let f=Z_(c,e,u+h,d),p=Z_(c,e,u,u+h),m=f>=0&&n[f],v=p>=0&&n[p];if(r&&!v||!r&&!m){fy(Kp(a,s),o,c);let b=qz(r?Uz:zz,n.length,r,i,l);!r&&v&&(n[p].providerFactory=b),X_(o,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),n.push(b),s.push(b)}else{let b=PM(n[r?p:f],l,!r&&i);X_(o,t,f>-1?f:p,b)}!r&&i&&v&&n[p].componentProviders++}}}function X_(t,e,n,i){let r=kl(e),o=uV(e);if(r||o){let c=(o?Oi(e.useClass):e).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){let u=l.indexOf(n);u===-1?l.push(n,[i,c]):l[u+1].push(i,c)}else l.push(n,c)}}}function PM(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Z_(t,e,n,i){for(let r=n;r{n.providersResolver=(i,r)=>Hz(i,r?r(t):t,e)}}var $z=(()=>{let e=class e{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){let r=_I(!1,i.type),o=r.length>0?Lm([r],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,o)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(let i of this.cachedInjectors.values())i!==null&&i.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=U({token:e,providedIn:"environment",factory:()=>new e(R(Fi))});let t=e;return t})();function Ne(t){Qr("NgStandalone"),t.getStandaloneInjector=e=>e.get($z).getOrCreateStandaloneInjector(t)}function X1(t,e){return Fm(t,e)}var Np=null;function Wz(t){Np!==null&&(t.defaultEncapsulation!==Np.defaultEncapsulation||t.preserveWhitespaces!==Np.preserveWhitespaces)||(Np=t)}var Vm=(()=>{let e=class e{log(i){console.log(i)}warn(i){console.warn(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Z1=new q(""),Gu=new q(""),Bm=(()=>{let e=class e{constructor(i,r,o){this._ngZone=i,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,J1||(Gz(o),o.addToWindow(r)),this._watchAngularEvents(),i.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ee.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb()}});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(i)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,r,o){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),i()},r)),this._callbacks.push({doneCb:i,timeoutId:s,updateCb:o})}whenStable(i,r,o){if(o&&!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(i,r,o),this._runCallbacksIfReady()}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,r,o){return[]}};e.\u0275fac=function(r){return new(r||e)(R(ee),R(jm),R(Gu))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),jm=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(i,r){this._applications.set(i,r)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,r=!0){return J1?.findTestabilityInTree(this,i,r)??null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function Gz(t){J1=t}var J1;function vc(t){return!!t&&typeof t.then=="function"}function LM(t){return!!t&&typeof t.subscribe=="function"}var Wl=new q(""),VM=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r}),this.appInits=B(Wl,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let i=[];for(let o of this.appInits){let s=o();if(vc(s))i.push(s);else if(LM(s)){let a=new Promise((c,l)=>{s.subscribe({complete:c,error:l})});i.push(a)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{r()}).catch(o=>{this.reject(o)}),i.length===0&&r(),this.initialized=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Hm=new q("");function Yz(){NE(()=>{throw new ge(600,!1)})}function Qz(t){return t.isBoundToModule}var Kz=10;function Xz(t,e,n){try{let i=n();return vc(i)?i.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}function BM(t,e){return Array.isArray(e)?e.reduce(BM,t):X(X({},t),e)}var Cn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=B(mB),this.afterRenderEffectManager=B(q1),this.zonelessEnabled=B(oM),this.externalTestViews=new Set,this.beforeRender=new K,this.afterTick=new K,this.componentTypes=[],this.components=[],this.isStable=B(Fo).hasPendingTasks.pipe(Te(i=>!i)),this._injector=B(Fi)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,r){let o=i instanceof tm;if(!this._injector.get(VM).done){let f=!o&&mI(i),p=!1;throw new ge(405,p)}let a;o?a=i:a=this._injector.get(Wr).resolveComponentFactory(i),this.componentTypes.push(a.componentType);let c=Qz(a)?void 0:this._injector.get(ha),l=r||a.selector,u=a.create(Je.NULL,[],l,c),d=u.location.nativeElement,h=u.injector.get(Z1,null);return h?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),jp(this.components,u),h?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){this._tick(!0)}_tick(i){if(this._runningTick)throw new ge(101,!1);let r=Dt(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(i)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,Dt(r),this.afterTick.next()}}detectChangesInAttachedViews(i){let r=null;this._injector.destroyed||(r=this._injector.get(ua,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;oPu(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>Pu(c))))break}}attachView(i){let r=i;this._views.push(r),r.attachToAppRef(this)}detachView(i){let r=i;jp(this._views,r),r.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);let r=this._injector.get(Hm,[]);[...this._bootstrapListeners,...r].forEach(o=>o(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>jp(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new ge(406,!1);let i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function jp(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function Zz(t,e,n,i){if(!n&&!Pu(t))return;tM(t,e,n&&!i?0:1)}var Jy=class{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}},zm=(()=>{let e=class e{compileModuleSync(i){return new am(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){let r=this.compileModuleSync(i),o=gI(i),s=Ek(o.declarations).reduce((a,c)=>{let l=ca(c);return l&&a.push(new Fl(l)),a},[]);return new Jy(r,s)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Jz=new q("");function eU(t,e,n){let i=new am(n);return Promise.resolve(i)}function QS(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var tU=(()=>{let e=class e{constructor(){this.zone=B(ee),this.changeDetectionScheduler=B(Nl),this.applicationRef=B(Cn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function iU({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new ee(jM()),[{provide:ee,useFactory:t},{provide:Il,multi:!0,useFactory:()=>{let n=B(tU,{optional:!0});return()=>n.initialize()}},{provide:Il,multi:!0,useFactory:()=>{let n=B(nU);return()=>{n.initialize()}}},e===!0?{provide:sM,useValue:!0}:[]]}function jM(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var nU=(()=>{let e=class e{constructor(){this.subscription=new Me,this.initialized=!1,this.zone=B(ee),this.pendingTasks=B(Fo)}initialize(){if(this.initialized)return;this.initialized=!0;let i=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(i=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ee.assertNotInAngularZone(),queueMicrotask(()=>{i!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(i),i=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ee.assertInAngularZone(),i??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var rU=(()=>{let e=class e{constructor(){this.appRef=B(Cn),this.taskService=B(Fo),this.ngZone=B(ee),this.zonelessEnabled=B(oM),this.disableScheduling=B(sM,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Me,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Zp||!this.zoneIsDefined)}notify(i){if(!this.zonelessEnabled&&i===5)return;switch(i){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?ES:ik;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&ee.isInAngularZone())}tick(i){if(this.runningTick||this.appRef.destroyed)return;let r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(i)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(r),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,ES(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let i=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(i)}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function oU(){return typeof $localize<"u"&&$localize.locale||hm}var Yu=new q("",{providedIn:"root",factory:()=>B(Yu,_t.Optional|_t.SkipSelf)||oU()});var HM=new q(""),zM=(()=>{let e=class e{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,r){let o=pB(r?.ngZone,jM({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{let s=r?.ignoreChangesOutsideZone,a=tz(i.moduleType,this.injector,[...iU({ngZoneFactory:()=>o,ignoreChangesOutsideZone:s}),{provide:Nl,useExisting:rU}]),c=a.injector.get(_n,null);return o.runOutsideAngular(()=>{let l=o.onError.subscribe({next:u=>{c.handleError(u)}});a.onDestroy(()=>{jp(this._modules,a),l.unsubscribe()})}),Xz(c,o,()=>{let l=a.injector.get(VM);return l.runInitializers(),l.donePromise.then(()=>{let u=a.injector.get(Yu,hm);return Fz(u||hm),this._moduleDoBootstrap(a),a})})})}bootstrapModule(i,r=[]){let o=BM({},r);return eU(this.injector,o,i).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(i){let r=i.injector.get(Cn);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(o=>r.bootstrap(o));else if(i.instance.ngDoBootstrap)i.instance.ngDoBootstrap(r);else throw new ge(-403,!1);this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ge(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let i=this._injector.get(HM,null);i&&(i.forEach(r=>r()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(r){return new(r||e)(R(Je))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),Au=null,UM=new q("");function sU(t){if(Au&&!Au.get(UM,!1))throw new ge(400,!1);Yz(),Au=t;let e=t.get(zM);return lU(t),e}function ew(t,e,n=[]){let i=`Platform: ${e}`,r=new q(i);return(o=[])=>{let s=qM();if(!s||s.injector.get(UM,!1)){let a=[...n,...o,{provide:r,useValue:!0}];t?t(a):sU(aU(a,i))}return cU(r)}}function aU(t=[],e){return Je.create({name:e,providers:[{provide:bm,useValue:"platform"},{provide:HM,useValue:new Set([()=>Au=null])},...t]})}function cU(t){let e=qM();if(!e)throw new ge(401,!1);return e}function qM(){return Au?.get(zM)??null}function lU(t){t.get(M1,null)?.forEach(n=>n())}var Ge=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=dU;let t=e;return t})();function dU(t){return uU(ki(),ut(),(t&16)===16)}function uU(t,e,n){if(ym(t)&&!n){let i=pa(t.index,e);return new uc(i,i)}else if(t.type&175){let i=e[Hn];return new uc(i,e)}return null}var e1=class{constructor(){}supports(e){return wM(e)}create(e){return new t1(e)}},hU=(t,e)=>e,t1=class{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||hU}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,i=this._removalsHead,r=0,o=null;for(;n||i;){let s=!i||n&&n.currentIndex{s=this._trackByFn(r,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,r),i=!0):(i&&(n=this._verifyReinsertion(n,a,s,r)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,r++}),this.length=r;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,i,r){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,o,r)):(e=this._linkedRecords===null?null:this._linkedRecords.get(i,r),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,o,r)):e=this._addAfter(new i1(n,i),o,r)),e}_verifyReinsertion(e,n,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let r=e._prevRemoved,o=e._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,n,i),this._addToMoves(e,i),e}_moveAfter(e,n,i){return this._unlink(e),this._insertAfter(e,n,i),this._addToMoves(e,i),e}_addAfter(e,n,i){return this._insertAfter(e,n,i),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,n,i){let r=n===null?this._itHead:n._next;return e._next=r,e._prev=n,r===null?this._itTail=e:r._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new fm),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,i=e._next;return n===null?this._itHead=i:n._next=i,i===null?this._itTail=n:i._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new fm),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},i1=class{constructor(e,n){this.item=e,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},n1=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(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,n){let i;for(i=this._head;i!==null;i=i._nextDup)if((n===null||n<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){let n=e._prevDup,i=e._nextDup;return n===null?this._head=i:n._nextDup=i,i===null?this._tail=n:i._prevDup=n,this._head===null}},fm=class{constructor(){this.map=new Map}put(e){let n=e.trackById,i=this.map.get(n);i||(i=new n1,this.map.set(n,i)),i.add(e)}get(e,n){let i=e,r=this.map.get(i);return r?r.get(e,n):null}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function KS(t,e,n){let i=t.previousIndex;if(i===null)return i;let r=0;return n&&i{let e=class e{constructor(i){this.factories=i}static create(i,r){if(r!=null){let o=r.factories.slice();i=i.concat(o)}return new e(i)}static extend(i){return{provide:e,useFactory:r=>e.create(i,r||XS()),deps:[[e,new fa,new Gr]]}}find(i){let r=this.factories.find(o=>o.supports(i));if(r!=null)return r;throw new ge(901,!1)}};e.\u0275prov=U({token:e,providedIn:"root",factory:XS});let t=e;return t})();var $M=ew(null,"core",[]),WM=(()=>{let e=class e{constructor(i){}};e.\u0275fac=function(r){return new(r||e)(R(Cn))},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})();var GM=new q("");function Ee(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Si(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function Cs(t,e){Qr("NgSignals");let n=Db(t);return e?.equal&&(n[sr].equal=e.equal),n}function mr(t){let e=Dt(null);try{return t()}finally{Dt(e)}}var fU=new q("",{providedIn:"root",factory:()=>B(pU)}),pU=(()=>{let e=class e{};e.\u0275prov=U({token:e,providedIn:"root",factory:()=>new r1});let t=e;return t})(),r1=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=B(Fo),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(e){let n=e.creationZone;this.queues.has(n)||this.queues.set(n,new Set);let i=this.queues.get(n);i.has(e)||(this.queuedEffectCount++,i.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,n]of this.queues)e===null?this.flushQueue(n):e.run(()=>this.flushQueue(n))}flushQueue(e){for(let n of e)e.delete(n),this.queuedEffectCount--,n.run()}},o1=class{constructor(e,n,i,r,o,s){this.scheduler=e,this.effectFn=n,this.creationZone=i,this.injector=o,this.watcher=VE(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(n){this.injector.get(_n,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function tw(t,e){Qr("NgSignals"),!e?.injector&&p1(tw);let n=e?.injector??B(Je),i=e?.manualCleanup!==!0?n.get(Im):null,r=new o1(n.get(fU),t,typeof Zone>"u"?null:Zone.current,i,n,e?.allowSignalWrites??!1),o=n.get(Ge,null,{optional:!0});return!o||!(o._lView[rt]&8)?r.watcher.notify():(o._lView[Pp]??=[]).push(r.watcher.notify),r}function YM(t){let e=ca(t);if(!e)return null;let n=new Fl(e);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var eT=null;function Vo(){return eT}function tT(t){eT??=t}var Um=class{};var Fe=new q(""),cw=(()=>{let e=class e{historyGo(i){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:()=>B(gU),providedIn:"platform"});let t=e;return t})(),iT=new q(""),gU=(()=>{let e=class e extends cw{constructor(){super(),this._doc=B(Fe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Vo().getBaseHref(this._doc)}onPopState(i){let r=Vo().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",i,!1),()=>r.removeEventListener("popstate",i)}onHashChange(i){let r=Vo().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",i,!1),()=>r.removeEventListener("hashchange",i)}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(i){this._location.pathname=i}pushState(i,r,o){this._history.pushState(i,r,o)}replaceState(i,r,o){this._history.replaceState(i,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(i=0){this._history.go(i)}getState(){return this._history.state}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function lw(t,e){if(t.length==0)return e;if(e.length==0)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,n==2?t+e.substring(1):n==1?t+e:t+"/"+e}function QM(t){let e=t.match(/#|\?|$/),n=e&&e.index||t.length,i=n-(t[n-1]==="/"?1:0);return t.slice(0,i)+t.slice(n)}function xs(t){return t&&t[0]!=="?"?"?"+t:t}var Ds=(()=>{let e=class e{historyGo(i){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:()=>B(dw),providedIn:"root"});let t=e;return t})(),nT=new q(""),dw=(()=>{let e=class e extends Ds{constructor(i,r){super(),this._platformLocation=i,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??B(Fe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(i){this._removeListenerFns.push(this._platformLocation.onPopState(i),this._platformLocation.onHashChange(i))}getBaseHref(){return this._baseHref}prepareExternalUrl(i){return lw(this._baseHref,i)}path(i=!1){let r=this._platformLocation.pathname+xs(this._platformLocation.search),o=this._platformLocation.hash;return o&&i?`${r}${o}`:r}pushState(i,r,o,s){let a=this.prepareExternalUrl(o+xs(s));this._platformLocation.pushState(i,r,a)}replaceState(i,r,o,s){let a=this.prepareExternalUrl(o+xs(s));this._platformLocation.replaceState(i,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(i=0){this._platformLocation.historyGo?.(i)}};e.\u0275fac=function(r){return new(r||e)(R(cw),R(nT,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),rT=(()=>{let e=class e extends Ds{constructor(i,r){super(),this._platformLocation=i,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(i){this._removeListenerFns.push(this._platformLocation.onPopState(i),this._platformLocation.onHashChange(i))}getBaseHref(){return this._baseHref}path(i=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(i){let r=lw(this._baseHref,i);return r.length>0?"#"+r:r}pushState(i,r,o,s){let a=this.prepareExternalUrl(o+xs(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(i,r,a)}replaceState(i,r,o,s){let a=this.prepareExternalUrl(o+xs(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(i,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(i=0){this._platformLocation.historyGo?.(i)}};e.\u0275fac=function(r){return new(r||e)(R(cw),R(nT,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),Bo=(()=>{let e=class e{constructor(i){this._subject=new oe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=i;let r=this._locationStrategy.getBaseHref();this._basePath=_U(QM(KM(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(i=!1){return this.normalize(this._locationStrategy.path(i))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(i,r=""){return this.path()==this.normalize(i+xs(r))}normalize(i){return e.stripTrailingSlash(bU(this._basePath,KM(i)))}prepareExternalUrl(i){return i&&i[0]!=="/"&&(i="/"+i),this._locationStrategy.prepareExternalUrl(i)}go(i,r="",o=null){this._locationStrategy.pushState(o,"",i,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+xs(r)),o)}replaceState(i,r="",o=null){this._locationStrategy.replaceState(o,"",i,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+xs(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(i=0){this._locationStrategy.historyGo?.(i)}onUrlChange(i){return this._urlChangeListeners.push(i),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(i);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(i="",r){this._urlChangeListeners.forEach(o=>o(i,r))}subscribe(i,r,o){return this._subject.subscribe({next:i,error:r,complete:o})}};e.normalizeQueryParams=xs,e.joinWithSlash=lw,e.stripTrailingSlash=QM,e.\u0275fac=function(r){return new(r||e)(R(Ds))},e.\u0275prov=U({token:e,factory:()=>vU(),providedIn:"root"});let t=e;return t})();function vU(){return new Bo(R(Ds))}function bU(t,e){if(!t||!e.startsWith(t))return e;let n=e.substring(t.length);return n===""||["/",";","?","#"].includes(n[0])?n:e}function KM(t){return t.replace(/\/index.html$/,"")}function _U(t){if(new RegExp("^(https?:)?//").test(t)){let[,n]=t.split(/\/\/[^\/]+/);return n}return t}function $m(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let i=n.indexOf("="),[r,o]=i==-1?[n,""]:[n.slice(0,i),n.slice(i+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}var nw=/\s+/,XM=[],Wm=(()=>{let e=class e{constructor(i,r){this._ngEl=i,this._renderer=r,this.initialClasses=XM,this.stateMap=new Map}set klass(i){this.initialClasses=i!=null?i.trim().split(nw):XM}set ngClass(i){this.rawClass=typeof i=="string"?i.trim().split(nw):i}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let i=this.rawClass;if(Array.isArray(i)||i instanceof Set)for(let r of i)this._updateState(r,!0);else if(i!=null)for(let r of Object.keys(i))this._updateState(r,!!i[r]);this._applyStateDiff()}_updateState(i,r){let o=this.stateMap.get(i);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(i,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let i of this.stateMap){let r=i[0],o=i[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(i,r){i=i.trim(),i.length>0&&i.split(nw).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(va))},e.\u0275dir=te({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var rw=class{constructor(e,n,i,r){this.$implicit=e,this.ngForOf=n,this.index=i,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},xn=(()=>{let e=class e{set ngForOf(i){this._ngForOf=i,this._ngForOfDirty=!0}set ngForTrackBy(i){this._trackByFn=i}get ngForTrackBy(){return this._trackByFn}constructor(i,r,o){this._viewContainer=i,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(i){i&&(this._template=i)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let i=this._ngForOf;if(!this._differ&&i)if(0)try{}catch{}else this._differ=this._differs.find(i).create(this.ngForTrackBy)}if(this._differ){let i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}_applyChanges(i){let r=this._viewContainer;i.forEachOperation((o,s,a)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new rw(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)r.remove(s===null?void 0:s);else if(s!==null){let c=r.get(s);r.move(c,a),ZM(c,o)}});for(let o=0,s=r.length;o{let s=r.get(o.currentIndex);ZM(s,o)})}static ngTemplateContextGuard(i,r){return!0}};e.\u0275fac=function(r){return new(r||e)(g(qt),g(Rt),g(Xr))},e.\u0275dir=te({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function ZM(t,e){t.context.$implicit=e.item}var jo=(()=>{let e=class e{constructor(i,r){this._viewContainer=i,this._context=new ow,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(i){this._context.$implicit=this._context.ngIf=i,this._updateView()}set ngIfThen(i){JM("ngIfThen",i),this._thenTemplateRef=i,this._thenViewRef=null,this._updateView()}set ngIfElse(i){JM("ngIfElse",i),this._elseTemplateRef=i,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(i,r){return!0}};e.\u0275fac=function(r){return new(r||e)(g(qt),g(Rt))},e.\u0275dir=te({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),ow=class{constructor(){this.$implicit=null,this.ngIf=null}};function JM(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${rn(e)}'.`)}var uw=(()=>{let e=class e{constructor(i){this._viewContainerRef=i,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(i){if(this._shouldRecreateView(i)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(i){return!!i.ngTemplateOutlet||!!i.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(i,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(i,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}};e.\u0275fac=function(r){return new(r||e)(g(qt))},e.\u0275dir=te({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[lt]});let t=e;return t})();var Wi=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})(),hw="browser",yU="server";function Yl(t){return t===hw}function Gm(t){return t===yU}var oT=(()=>{let e=class e{};e.\u0275prov=U({token:e,providedIn:"root",factory:()=>Yl(B(sn))?new sw(B(Fe),window):new aw});let t=e;return t})(),sw=class{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let n=wU(this.document,e);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let n=e.getBoundingClientRect(),i=n.left+this.window.pageXOffset,r=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}};function wU(t,e){let n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}r=i.nextNode()}}return null}var aw=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Gl=class{};var Ku=class{},Qm=class{},Es=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(n=>{let i=n.indexOf(":");if(i>0){let r=n.slice(0,i),o=r.toLowerCase(),s=n.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,i)=>{this.setHeaderEntries(i,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,i])=>{this.setHeaderEntries(n,i)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?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(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(e.name,n);let r=(e.op==="a"?this.headers.get(n):void 0)||[];r.push(...i),this.headers.set(n,r);break;case"d":let o=e.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(e,n){let i=(Array.isArray(n)?n:[n]).map(o=>o.toString()),r=e.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var pw=class{encodeKey(e){return sT(e)}encodeValue(e){return sT(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function CU(t,e){let n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var xU=/%(\d[a-f0-9])/gi,DU={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function sT(t){return encodeURIComponent(t).replace(xU,(e,n)=>DU[n]??e)}function Ym(t){return`${t}`}var ya=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new pw,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=CU(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let i=e.fromObject[n],r=Array.isArray(i)?i.map(Ym):[Ym(i)];this.map.set(n,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(i=>{let r=e[i];Array.isArray(r)?r.forEach(o=>{n.push({param:i,value:o,op:"a"})}):n.push({param:i,value:r,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(i=>n+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(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":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(Ym(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let i=this.map.get(e.param)||[],r=i.indexOf(Ym(e.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var mw=class{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),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 EU(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function aT(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function cT(t){return typeof Blob<"u"&&t instanceof Blob}function lT(t){return typeof FormData<"u"&&t instanceof FormData}function SU(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Qu=class t{constructor(e,n,i,r){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(EU(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Es,this.context??=new mw,!this.params)this.params=new ya,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":ah.set(f,e.setHeaders[f]),l)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new t(n,i,s,{params:u,headers:l,context:d,reportProgress:c,responseType:r,withCredentials:a,transferCache:o})}},wa=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(wa||{}),Xu=class{constructor(e,n=200,i="OK"){this.headers=e.headers||new Es,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Km=class t extends Xu{constructor(e={}){super(e),this.type=wa.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Zu=class t extends Xu{constructor(e={}){super(e),this.type=wa.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},_a=class extends Xu{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},pT=200,IU=204;function fw(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Ss=(()=>{let e=class e{constructor(i){this.handler=i}request(i,r,o={}){let s;if(i instanceof Qu)s=i;else{let l;o.headers instanceof Es?l=o.headers:l=new Es(o.headers);let u;o.params&&(o.params instanceof ya?u=o.params:u=new ya({fromObject:o.params})),s=new Qu(i,r,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=we(s).pipe(us(l=>this.handler.handle(l)));if(i instanceof Qu||o.observe==="events")return a;let c=a.pipe(We(l=>l instanceof Zu));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(Te(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return c.pipe(Te(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return c.pipe(Te(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return c.pipe(Te(l=>l.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(i,r={}){return this.request("DELETE",i,r)}get(i,r={}){return this.request("GET",i,r)}head(i,r={}){return this.request("HEAD",i,r)}jsonp(i,r){return this.request("JSONP",i,{params:new ya().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(i,r={}){return this.request("OPTIONS",i,r)}patch(i,r,o={}){return this.request("PATCH",i,fw(o,r))}post(i,r,o={}){return this.request("POST",i,fw(o,r))}put(i,r,o={}){return this.request("PUT",i,fw(o,r))}};e.\u0275fac=function(r){return new(r||e)(R(Ku))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),kU=/^\)\]\}',?\n/,MU="X-Request-URL";function dT(t){if(t.url)return t.url;let e=MU.toLocaleLowerCase();return t.headers.get(e)}var TU=(()=>{let e=class e{constructor(){this.fetchImpl=B(gw,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=B(ee)}handle(i){return new $e(r=>{let o=new AbortController;return this.doRequest(i,o.signal,r).then(vw,s=>r.error(new _a({error:s}))),()=>o.abort()})}doRequest(i,r,o){return Re(this,null,function*(){let s=this.createRequestInit(i),a;try{let p=this.ngZone.runOutsideAngular(()=>this.fetchImpl(i.urlWithParams,X({signal:r},s)));AU(p),o.next({type:wa.Sent}),a=yield p}catch(p){o.error(new _a({error:p,status:p.status??0,statusText:p.statusText,url:i.urlWithParams,headers:p.headers}));return}let c=new Es(a.headers),l=a.statusText,u=dT(a)??i.urlWithParams,d=a.status,h=null;if(i.reportProgress&&o.next(new Km({headers:c,status:d,statusText:l,url:u})),a.body){let p=a.headers.get("content-length"),m=[],v=a.body.getReader(),b=0,C,E,_=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Re(this,null,function*(){for(;;){let{done:x,value:F}=yield v.read();if(x)break;if(m.push(F),b+=F.length,i.reportProgress){E=i.responseType==="text"?(E??"")+(C??=new TextDecoder).decode(F,{stream:!0}):void 0;let L=()=>o.next({type:wa.DownloadProgress,total:p?+p:void 0,loaded:b,partialText:E});_?_.run(L):L()}}}));let y=this.concatChunks(m,b);try{let x=a.headers.get("Content-Type")??"";h=this.parseBody(i,y,x)}catch(x){o.error(new _a({error:x,headers:new Es(a.headers),status:a.status,statusText:a.statusText,url:dT(a)??i.urlWithParams}));return}}d===0&&(d=h?pT:0),d>=200&&d<300?(o.next(new Zu({body:h,headers:c,status:d,statusText:l,url:u})),o.complete()):o.error(new _a({error:h,headers:c,status:d,statusText:l,url:u}))})}parseBody(i,r,o){switch(i.responseType){case"json":let s=new TextDecoder().decode(r).replace(kU,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(i){let r={},o=i.withCredentials?"include":void 0;if(i.headers.forEach((s,a)=>r[s]=a.join(",")),i.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!i.headers.has("Content-Type")){let s=i.detectContentTypeHeader();s!==null&&(r["Content-Type"]=s)}return{body:i.serializeBody(),method:i.method,headers:r,credentials:o}}concatChunks(i,r){let o=new Uint8Array(r),s=0;for(let a of i)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),gw=class{};function vw(){}function AU(t){t.then(vw,vw)}function mT(t,e){return e(t)}function RU(t,e){return(n,i)=>e.intercept(n,{handle:r=>t(r,i)})}function OU(t,e,n){return(i,r)=>zn(n,()=>e(i,o=>t(o,r)))}var NU=new q(""),bw=new q(""),FU=new q(""),gT=new q("",{providedIn:"root",factory:()=>!0});function PU(){let t=null;return(e,n)=>{t===null&&(t=(B(NU,{optional:!0})??[]).reduceRight(RU,mT));let i=B(Fo);if(B(gT)){let o=i.add();return t(e,n).pipe(So(()=>i.remove(o)))}else return t(e,n)}}var uT=(()=>{let e=class e extends Ku{constructor(i,r){super(),this.backend=i,this.injector=r,this.chain=null,this.pendingTasks=B(Fo),this.contributeToStability=B(gT)}handle(i){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(bw),...this.injector.get(FU,[])]));this.chain=r.reduceRight((o,s)=>OU(o,s,this.injector),mT)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(i,o=>this.backend.handle(o)).pipe(So(()=>this.pendingTasks.remove(r)))}else return this.chain(i,r=>this.backend.handle(r))}};e.\u0275fac=function(r){return new(r||e)(R(Qm),R(Fi))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();var LU=/^\)\]\}',?\n/;function VU(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var hT=(()=>{let e=class e{constructor(i){this.xhrFactory=i}handle(i){if(i.method==="JSONP")throw new ge(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Kt(r.\u0275loadImpl()):we(null)).pipe(Nt(()=>new $e(s=>{let a=r.build();if(a.open(i.method,i.urlWithParams),i.withCredentials&&(a.withCredentials=!0),i.headers.forEach((v,b)=>a.setRequestHeader(v,b.join(","))),i.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!i.headers.has("Content-Type")){let v=i.detectContentTypeHeader();v!==null&&a.setRequestHeader("Content-Type",v)}if(i.responseType){let v=i.responseType.toLowerCase();a.responseType=v!=="json"?v:"text"}let c=i.serializeBody(),l=null,u=()=>{if(l!==null)return l;let v=a.statusText||"OK",b=new Es(a.getAllResponseHeaders()),C=VU(a)||i.url;return l=new Km({headers:b,status:a.status,statusText:v,url:C}),l},d=()=>{let{headers:v,status:b,statusText:C,url:E}=u(),_=null;b!==IU&&(_=typeof a.response>"u"?a.responseText:a.response),b===0&&(b=_?pT:0);let y=b>=200&&b<300;if(i.responseType==="json"&&typeof _=="string"){let x=_;_=_.replace(LU,"");try{_=_!==""?JSON.parse(_):null}catch(F){_=x,y&&(y=!1,_={error:F,text:_})}}y?(s.next(new Zu({body:_,headers:v,status:b,statusText:C,url:E||void 0})),s.complete()):s.error(new _a({error:_,headers:v,status:b,statusText:C,url:E||void 0}))},h=v=>{let{url:b}=u(),C=new _a({error:v,status:a.status||0,statusText:a.statusText||"Unknown Error",url:b||void 0});s.error(C)},f=!1,p=v=>{f||(s.next(u()),f=!0);let b={type:wa.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(b.total=v.total),i.responseType==="text"&&a.responseText&&(b.partialText=a.responseText),s.next(b)},m=v=>{let b={type:wa.UploadProgress,loaded:v.loaded};v.lengthComputable&&(b.total=v.total),s.next(b)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),i.reportProgress&&(a.addEventListener("progress",p),c!==null&&a.upload&&a.upload.addEventListener("progress",m)),a.send(c),s.next({type:wa.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),i.reportProgress&&(a.removeEventListener("progress",p),c!==null&&a.upload&&a.upload.removeEventListener("progress",m)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(R(Gl))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),vT=new q(""),BU="XSRF-TOKEN",jU=new q("",{providedIn:"root",factory:()=>BU}),HU="X-XSRF-TOKEN",zU=new q("",{providedIn:"root",factory:()=>HU}),Xm=class{},UU=(()=>{let e=class e{constructor(i,r,o){this.doc=i,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let i=this.doc.cookie||"";return i!==this.lastCookieString&&(this.parseCount++,this.lastToken=$m(i,this.cookieName),this.lastCookieString=i),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(R(Fe),R(sn),R(jU))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();function qU(t,e){let n=t.url.toLowerCase();if(!B(vT)||t.method==="GET"||t.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(t);let i=B(Xm).getToken(),r=B(zU);return i!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),e(t)}var bT=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(bT||{});function $U(t,e){return{\u0275kind:t,\u0275providers:e}}function _T(...t){let e=[Ss,hT,uT,{provide:Ku,useExisting:uT},{provide:Qm,useFactory:()=>B(TU,{optional:!0})??B(hT)},{provide:bw,useValue:qU,multi:!0},{provide:vT,useValue:!0},{provide:Xm,useClass:UU}];for(let n of t)e.push(...n.\u0275providers);return Ll(e)}var fT=new q("");function yT(){return $U(bT.LegacyInterceptors,[{provide:fT,useFactory:PU},{provide:bw,useExisting:fT,multi:!0}])}var ww=class extends Um{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Cw=class t extends ww{static makeCurrent(){tT(new t)}onAndCancel(e,n,i){return e.addEventListener(n,i),()=>{e.removeEventListener(n,i)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=WU();return n==null?null:GU(n)}resetBaseElement(){Ju=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return $m(document.cookie,e)}},Ju=null;function WU(){return Ju=Ju||document.querySelector("base"),Ju?Ju.getAttribute("href"):null}function GU(t){return new URL(t,document.baseURI).pathname}var xw=class{addToWindow(e){jn.getAngularTestability=(i,r=!0)=>{let o=e.findTestabilityInTree(i,r);if(o==null)throw new ge(5103,!1);return o},jn.getAllAngularTestabilities=()=>e.getAllTestabilities(),jn.getAllAngularRootElements=()=>e.getAllRootElements();let n=i=>{let r=jn.getAllAngularTestabilities(),o=r.length,s=function(){o--,o==0&&i()};r.forEach(a=>{a.whenStable(s)})};jn.frameworkStabilizers||(jn.frameworkStabilizers=[]),jn.frameworkStabilizers.push(n)}findTestabilityInTree(e,n,i){if(n==null)return null;let r=e.getTestability(n);return r??(i?Vo().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null)}},YU=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),Jm=new q(""),xT=(()=>{let e=class e{constructor(i,r){this._zone=r,this._eventNameToPlugin=new Map,i.forEach(o=>{o.manager=this}),this._plugins=i.slice().reverse()}addEventListener(i,r,o){return this._findPluginFor(r).addEventListener(i,r,o)}getZone(){return this._zone}_findPluginFor(i){let r=this._eventNameToPlugin.get(i);if(r)return r;if(r=this._plugins.find(s=>s.supports(i)),!r)throw new ge(5101,!1);return this._eventNameToPlugin.set(i,r),r}};e.\u0275fac=function(r){return new(r||e)(R(Jm),R(ee))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),eh=class{constructor(e){this._doc=e}},_w="ng-app-id",DT=(()=>{let e=class e{constructor(i,r,o,s={}){this.doc=i,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Gm(s),this.resetHostNodes()}addStyles(i){for(let r of i)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(i){for(let r of i)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let i=this.styleNodesInDOM;i&&(i.forEach(r=>r.remove()),i.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(i){this.hostNodes.add(i);for(let r of this.getAllStyles())this.addStyleToHost(i,r)}removeHost(i){this.hostNodes.delete(i)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(i){for(let r of this.hostNodes)this.addStyleToHost(r,i)}onStyleRemoved(i){let r=this.styleRef;r.get(i)?.elements?.forEach(o=>o.remove()),r.delete(i)}collectServerRenderedStyles(){let i=this.doc.head?.querySelectorAll(`style[${_w}="${this.appId}"]`);if(i?.length){let r=new Map;return i.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(i,r){let o=this.styleRef;if(o.has(i)){let s=o.get(i);return s.usage+=r,s.usage}return o.set(i,{usage:r,elements:[]}),r}getStyleElement(i,r){let o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===i)return o.delete(r),s.removeAttribute(_w),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(_w,this.appId),i.appendChild(a),a}}addStyleToHost(i,r){let o=this.getStyleElement(i,r),s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){let i=this.hostNodes;i.clear(),i.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(R(Fe),R(jl),R(zu,8),R(sn))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),yw={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/Math/MathML"},Ew=/%COMP%/g,ET="%COMP%",QU=`_nghost-${ET}`,KU=`_ngcontent-${ET}`,XU=!0,ZU=new q("",{providedIn:"root",factory:()=>XU});function JU(t){return KU.replace(Ew,t)}function eq(t){return QU.replace(Ew,t)}function ST(t,e){return e.map(n=>n.replace(Ew,t))}var e0=(()=>{let e=class e{constructor(i,r,o,s,a,c,l,u=null){this.eventManager=i,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=Gm(c),this.defaultRenderer=new th(i,a,l,this.platformIsServer)}createRenderer(i,r){if(!i||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===To.ShadowDom&&(r=mt(X({},r),{encapsulation:To.Emulated}));let o=this.getOrCreateRenderer(i,r);return o instanceof t0?o.applyToHost(i):o instanceof ih&&o.applyStyles(),o}getOrCreateRenderer(i,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let a=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case To.Emulated:s=new t0(l,u,r,this.appId,d,a,c,h);break;case To.ShadowDom:return new Dw(l,u,i,r,a,c,this.nonce,h);default:s=new ih(l,u,r,d,a,c,h);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(R(xT),R(DT),R(jl),R(ZU),R(Fe),R(sn),R(ee),R(zu))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),th=class{constructor(e,n,i,r){this.eventManager=e,this.doc=n,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,n){return n?this.doc.createElementNS(yw[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(wT(e)?e.content:e).appendChild(n)}insertBefore(e,n,i){e&&(wT(e)?e.content:e).insertBefore(n,i)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let i=typeof e=="string"?this.doc.querySelector(e):e;if(!i)throw new ge(-5104,!1);return n||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,i,r){if(r){n=r+":"+n;let o=yw[r];o?e.setAttributeNS(o,n,i):e.setAttribute(n,i)}else e.setAttribute(n,i)}removeAttribute(e,n,i){if(i){let r=yw[i];r?e.removeAttributeNS(r,n):e.removeAttribute(`${i}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,i,r){r&(vs.DashCase|vs.Important)?e.style.setProperty(n,i,r&vs.Important?"important":""):e.style[n]=i}removeStyle(e,n,i){i&vs.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,i){e!=null&&(e[n]=i)}setValue(e,n){e.nodeValue=n}listen(e,n,i){if(typeof e=="string"&&(e=Vo().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${n}`);return this.eventManager.addEventListener(e,n,this.decoratePreventDefault(i))}decoratePreventDefault(e){return n=>{if(n==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(n)):e(n))===!1&&n.preventDefault()}}};function wT(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Dw=class extends th{constructor(e,n,i,r,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=n,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=ST(r.id,r.styles);for(let u of l){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,i){return super.insertBefore(this.nodeOrShadowRoot(e),n,i)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},ih=class extends th{constructor(e,n,i,r,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=r,this.styles=c?ST(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},t0=class extends ih{constructor(e,n,i,r,o,s,a,c){let l=r+"-"+i.id;super(e,n,i,o,s,a,c,l),this.contentAttr=JU(l),this.hostAttr=eq(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){let i=super.createElement(e,n);return super.setAttribute(i,this.contentAttr,""),i}},tq=(()=>{let e=class e extends eh{constructor(i){super(i)}supports(i){return!0}addEventListener(i,r,o){return i.addEventListener(r,o,!1),()=>this.removeEventListener(i,r,o)}removeEventListener(i,r,o){return i.removeEventListener(r,o)}};e.\u0275fac=function(r){return new(r||e)(R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),iq=(()=>{let e=class e extends eh{constructor(i){super(i),this.delegate=B(GM,{optional:!0})}supports(i){return this.delegate?this.delegate.supports(i):!1}addEventListener(i,r,o){return this.delegate.addEventListener(i,r,o)}removeEventListener(i,r,o){return this.delegate.removeEventListener(i,r,o)}};e.\u0275fac=function(r){return new(r||e)(R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),CT=["alt","control","meta","shift"],nq={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},rq={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},oq=(()=>{let e=class e extends eh{constructor(i){super(i)}supports(i){return e.parseEventName(i)!=null}addEventListener(i,r,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Vo().onAndCancel(i,s.domEventName,a))}static parseEventName(i){let r=i.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(r.pop()),a="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),a="code."),CT.forEach(u=>{let d=r.indexOf(u);d>-1&&(r.splice(d,1),a+=u+".")}),a+=s,r.length!=0||s.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(i,r){let o=nq[i.key]||i.key,s="";return r.indexOf("code.")>-1&&(o=i.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),CT.forEach(a=>{if(a!==o){let c=rq[a];c(i)&&(s+=a+".")}}),s+=o,s===r)}static eventCallback(i,r,o){return s=>{e.matchEventFullKeyCode(s,i)&&o.runGuarded(()=>r(s))}}static _normalizeKey(i){return i==="esc"?"escape":i}};e.\u0275fac=function(r){return new(r||e)(R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();function sq(){Cw.makeCurrent()}function aq(){return new _n}function cq(){return dk(document),document}var lq=[{provide:sn,useValue:hw},{provide:M1,useValue:sq,multi:!0},{provide:Fe,useFactory:cq,deps:[]}],IT=ew($M,"browser",lq),dq=new q(""),uq=[{provide:Gu,useClass:xw,deps:[]},{provide:Z1,useClass:Bm,deps:[ee,jm,Gu]},{provide:Bm,useClass:Bm,deps:[ee,jm,Gu]}],hq=[{provide:bm,useValue:"root"},{provide:_n,useFactory:aq,deps:[]},{provide:Jm,useClass:tq,multi:!0,deps:[Fe,ee,sn]},{provide:Jm,useClass:oq,multi:!0,deps:[Fe]},{provide:Jm,useClass:iq,multi:!0},e0,DT,xT,{provide:ua,useExisting:e0},{provide:Gl,useClass:YU,deps:[]},[]],i0=(()=>{let e=class e{constructor(i){}static withServerTransition(i){return{ngModule:e,providers:[{provide:jl,useValue:i.appId}]}}};e.\u0275fac=function(r){return new(r||e)(R(dq,12))},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[...hq,...uq],imports:[Wi,WM]});let t=e;return t})();var kT=(()=>{let e=class e{constructor(i){this._doc=i}getTitle(){return this._doc.title}setTitle(i){this._doc.title=i||""}};e.\u0275fac=function(r){return new(r||e)(R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Sw=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=R(fq),o},providedIn:"root"});let t=e;return t})(),fq=(()=>{let e=class e extends Sw{constructor(i){super(),this._doc=i}sanitize(i,r){if(r==null)return null;switch(i){case $i.NONE:return r;case $i.HTML:return ga(r,"HTML")?Yr(r):Ck(this._doc,String(r)).toString();case $i.STYLE:return ga(r,"Style")?Yr(r):r;case $i.SCRIPT:if(ga(r,"Script"))return Yr(r);throw new ge(5200,!1);case $i.URL:return ga(r,"URL")?Yr(r):Mm(String(r));case $i.RESOURCE_URL:if(ga(r,"ResourceURL"))return Yr(r);throw new ge(5201,!1);default:throw new ge(5202,!1)}}bypassSecurityTrustHtml(i){return hk(i)}bypassSecurityTrustStyle(i){return fk(i)}bypassSecurityTrustScript(i){return pk(i)}bypassSecurityTrustUrl(i){return mk(i)}bypassSecurityTrustResourceUrl(i){return gk(i)}};e.\u0275fac=function(r){return new(r||e)(R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var gb=Pr(bc());function wi(t){return t!=null&&`${t}`!="false"}function En(t,e=0){return cC(t)?Number(t):arguments.length===2?e:0}function cC(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function ed(t){return Array.isArray(t)?t:[t]}function pi(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Sn(t){return t instanceof ce?t.nativeElement:t}function cA(t,e=/\s+/){let n=[];if(t!=null){let i=Array.isArray(t)?t:`${t}`.split(e);for(let r of i){let o=`${r}`.trim();o&&n.push(o)}}return n}var dC;try{dC=typeof Intl<"u"&&Intl.v8BreakIterator}catch{dC=!1}var et=(()=>{let e=class e{constructor(i){this._platformId=i,this.isBrowser=this._platformId?Yl(this._platformId):typeof document=="object"&&!!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||dC)&&typeof CSS<"u"&&!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}};e.\u0275fac=function(r){return new(r||e)(R(sn))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var td,lA=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function uC(){if(td)return td;if(typeof document!="object"||!document)return td=new Set(lA),td;let t=document.createElement("input");return td=new Set(lA.filter(e=>(t.setAttribute("type",e),t.type===e))),td}var dh;function nW(){if(dh==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dh=!0}))}finally{dh=dh||!1}return dh}function In(t){return nW()?t:!!t.capture}var eo=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(eo||{}),M0,xc;function T0(){if(xc==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return xc=!1,xc;if("scrollBehavior"in document.documentElement.style)xc=!0;else{let t=Element.prototype.scrollTo;t?xc=!/\{\s*\[native code\]\s*\}/.test(t.toString()):xc=!1}}return xc}function id(){if(typeof document!="object"||!document)return eo.NORMAL;if(M0==null){let t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),M0=eo.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,M0=t.scrollLeft===0?eo.NEGATED:eo.INVERTED),t.remove()}return M0}var lC;function rW(){if(lC==null){let t=typeof document<"u"?document.head:null;lC=!!(t&&(t.createShadowRoot||t.attachShadow))}return lC}function dA(t){if(rW()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function xa(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function cn(t){return t.composedPath?t.composedPath()[0]:t.target}function uh(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var fA=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})(),uA=new Set,Dc,oW=(()=>{let e=class e{constructor(i,r){this._platform=i,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):aW}matchMedia(i){return(this._platform.WEBKIT||this._platform.BLINK)&&sW(i,this._nonce),this._matchMedia(i)}};e.\u0275fac=function(r){return new(r||e)(R(et),R(zu,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function sW(t,e){if(!uA.has(t))try{Dc||(Dc=document.createElement("style"),e&&Dc.setAttribute("nonce",e),Dc.setAttribute("type","text/css"),document.head.appendChild(Dc)),Dc.sheet&&(Dc.sheet.insertRule(`@media ${t} {body{ }}`,0),uA.add(t))}catch(n){console.error(n)}}function aW(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var Da=(()=>{let e=class e{constructor(i,r){this._mediaMatcher=i,this._zone=r,this._queries=new Map,this._destroySubject=new K}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(i){return hA(ed(i)).some(o=>this._registerQuery(o).mql.matches)}observe(i){let o=hA(ed(i)).map(a=>this._registerQuery(a).observable),s=jr(o);return s=Eo(s.pipe(wt(1)),s.pipe(ku(1),Hr(0))),s.pipe(Te(a=>{let c={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:u})=>{c.matches=c.matches||l,c.breakpoints[u]=l}),c}))}_registerQuery(i){if(this._queries.has(i))return this._queries.get(i);let r=this._mediaMatcher.matchMedia(i),s={observable:new $e(a=>{let c=l=>this._zone.run(()=>a.next(l));return r.addListener(c),()=>{r.removeListener(c)}}).pipe(Bt(r),Te(({matches:a})=>({query:i,matches:a})),ot(this._destroySubject)),mql:r};return this._queries.set(i,s),s}};e.\u0275fac=function(r){return new(r||e)(R(oW),R(ee))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function hA(t){return t.map(e=>e.split(",")).reduce((e,n)=>e.concat(n)).map(e=>e.trim())}var nd={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var cW=new q("cdk-dir-doc",{providedIn:"root",factory:lW});function lW(){return B(Fe)}var dW=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function uW(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?dW.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var $t=(()=>{let e=class e{constructor(i){if(this.value="ltr",this.change=new oe,i){let r=i.body?i.body.dir:null,o=i.documentElement?i.documentElement.dir:null;this.value=uW(r||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(r){return new(r||e)(R(cW,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Ea=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})();var hh=class{};function sd(t){return t&&typeof t.connect=="function"&&!(t instanceof as)}var A0=class extends hh{constructor(e){super(),this._data=e}connect(){return cs(this._data)?this._data:we(this._data)}disconnect(){}},zo=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(zo||{}),Sa=new q("_ViewRepeater"),rd=class{applyChanges(e,n,i,r,o){e.forEachOperation((s,a,c)=>{let l,u;if(s.previousIndex==null){let d=i(s,a,c);l=n.createEmbeddedView(d.templateRef,d.context,d.index),u=zo.INSERTED}else c==null?(n.remove(a),u=zo.REMOVED):(l=n.get(a),n.move(l,c),u=zo.MOVED);o&&o({context:l?.context,operation:u,record:s})})}detach(){}},od=class{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(e,n,i,r,o){e.forEachOperation((s,a,c)=>{let l,u;if(s.previousIndex==null){let d=()=>i(s,a,c);l=this._insertView(d,c,n,r(s)),u=l?zo.INSERTED:zo.REPLACED}else c==null?(this._detachAndCacheView(a,n),u=zo.REMOVED):(l=this._moveView(a,c,n,r(s)),u=zo.MOVED);o&&o({context:l?.context,operation:u,record:s})})}detach(){for(let e of this._viewCache)e.destroy();this._viewCache=[]}_insertView(e,n,i,r){let o=this._insertViewFromCache(n,i);if(o){o.context.$implicit=r;return}let s=e();return i.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(e,n){let i=n.detach(e);this._maybeCacheView(i,n)}_moveView(e,n,i,r){let o=i.get(e);return i.move(o,n),o.context.$implicit=r,o}_maybeCacheView(e,n){if(this._viewCache.lengththis._markSelected(o)):this._markSelected(n[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(i=>this._markSelected(i));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}deselect(...e){this._verifyValueAssignment(e),e.forEach(i=>this._unmarkSelected(i));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}setSelection(...e){this._verifyValueAssignment(e);let n=this.selected,i=new Set(e);e.forEach(o=>this._markSelected(o)),n.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let n=this._hasQueuedChanges();return e&&this._emitChangeEvent(),n}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,n){if(this.compareWith){n=n??this._selection;for(let i of n)if(this.compareWith(e,i))return i;return e}else return e}};var O0=(()=>{let e=class e{constructor(){this._listeners=[]}notify(i,r){for(let o of this._listeners)o(i,r)}listen(i){return this._listeners.push(i),()=>{this._listeners=this._listeners.filter(r=>i!==r)}}ngOnDestroy(){this._listeners=[]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var hW=["contentWrapper"],fW=["*"],hC=new q("VIRTUAL_SCROLL_STRATEGY"),N0=class{constructor(e,n,i){this._scrolledIndexChange=new K,this.scrolledIndexChange=this._scrolledIndexChange.pipe(hs()),this._viewport=null,this._itemSize=e,this._minBufferPx=n,this._maxBufferPx=i}attach(e){this._viewport=e,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(e,n,i){i0?o/this._itemSize:0;if(n.end>r){let c=Math.ceil(i/this._itemSize),l=Math.max(0,Math.min(s,r-c));s!=l&&(s=l,o=l*this._itemSize,n.start=Math.floor(s)),n.end=Math.max(0,Math.min(r,n.start+c))}let a=o-n.start*this._itemSize;if(a0&&(n.end=Math.min(r,n.end+l),n.start=Math.max(0,Math.floor(s-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(n),this._viewport.setRenderedContentOffset(this._itemSize*n.start),this._scrolledIndexChange.next(Math.floor(s))}};var pW=20,to=(()=>{let e=class e{constructor(i,r,o){this._ngZone=i,this._platform=r,this._scrolled=new K,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(i){this.scrollContainers.has(i)||this.scrollContainers.set(i,i.elementScrolled().subscribe(()=>this._scrolled.next(i)))}deregister(i){let r=this.scrollContainers.get(i);r&&(r.unsubscribe(),this.scrollContainers.delete(i))}scrolled(i=pW){return this._platform.isBrowser?new $e(r=>{this._globalSubscription||this._addGlobalListener();let o=i>0?this._scrolled.pipe(Eu(i)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):we()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((i,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(i,r){let o=this.getAncestorScrollContainers(i);return this.scrolled(r).pipe(We(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(i){let r=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,i)&&r.push(s)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(i,r){let o=Sn(r),s=i.getElementRef().nativeElement;do if(o==s)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let i=this._getWindow();return tn(i.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(r){return new(r||e)(R(ee),R(et),R(Fe,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Wn=(()=>{let e=class e{constructor(i,r,o,s){this.elementRef=i,this.scrollDispatcher=r,this.ngZone=o,this.dir=s,this._destroyed=new K,this._elementScrolled=new $e(a=>this.ngZone.runOutsideAngular(()=>tn(this.elementRef.nativeElement,"scroll").pipe(ot(this._destroyed)).subscribe(a)))}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(i){let r=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";i.left==null&&(i.left=o?i.end:i.start),i.right==null&&(i.right=o?i.start:i.end),i.bottom!=null&&(i.top=r.scrollHeight-r.clientHeight-i.bottom),o&&id()!=eo.NORMAL?(i.left!=null&&(i.right=r.scrollWidth-r.clientWidth-i.left),id()==eo.INVERTED?i.left=i.right:id()==eo.NEGATED&&(i.left=i.right?-i.right:i.right)):i.right!=null&&(i.left=r.scrollWidth-r.clientWidth-i.right),this._applyScrollToOptions(i)}_applyScrollToOptions(i){let r=this.elementRef.nativeElement;T0()?r.scrollTo(i):(i.top!=null&&(r.scrollTop=i.top),i.left!=null&&(r.scrollLeft=i.left))}measureScrollOffset(i){let r="left",o="right",s=this.elementRef.nativeElement;if(i=="top")return s.scrollTop;if(i=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let a=this.dir&&this.dir.value=="rtl";return i=="start"?i=a?o:r:i=="end"&&(i=a?r:o),a&&id()==eo.INVERTED?i==r?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:a&&id()==eo.NEGATED?i==r?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:i==r?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(to),g(ee),g($t,8))},e.\u0275dir=te({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let t=e;return t})(),mW=20,Gn=(()=>{let e=class e{constructor(i,r,o){this._platform=i,this._change=new K,this._changeListener=s=>{this._change.next(s)},this._document=o,r.runOutsideAngular(()=>{if(i.isBrowser){let s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let i=this._getWindow();i.removeEventListener("resize",this._changeListener),i.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let i={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),i}getViewportRect(){let i=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:i.top,left:i.left,bottom:i.top+o,right:i.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let i=this._document,r=this._getWindow(),o=i.documentElement,s=o.getBoundingClientRect(),a=-s.top||i.body.scrollTop||r.scrollY||o.scrollTop||0,c=-s.left||i.body.scrollLeft||r.scrollX||o.scrollLeft||0;return{top:a,left:c}}change(i=mW){return i>0?this._change.pipe(Eu(i)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let i=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:i.innerWidth,height:i.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(r){return new(r||e)(R(et),R(ee),R(Fe,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),gA=new q("VIRTUAL_SCROLLABLE"),gW=(()=>{let e=class e extends Wn{constructor(i,r,o,s){super(i,r,o,s)}measureViewportSize(i){let r=this.elementRef.nativeElement;return i==="horizontal"?r.clientWidth:r.clientHeight}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(to),g(ee),g($t,8))},e.\u0275dir=te({type:e,features:[He]});let t=e;return t})();function vW(t,e){return t.start==e.start&&t.end==e.end}var bW=typeof requestAnimationFrame<"u"?Lb:gl,fC=(()=>{let e=class e extends gW{get orientation(){return this._orientation}set orientation(i){this._orientation!==i&&(this._orientation=i,this._calculateSpacerSize())}constructor(i,r,o,s,a,c,l,u){super(i,c,o,a),this.elementRef=i,this._changeDetectorRef=r,this._scrollStrategy=s,this.scrollable=u,this._platform=B(et),this._detachedSubject=new K,this._renderedRangeSubject=new K,this._orientation="vertical",this.appendOnly=!1,this.scrolledIndexChange=new $e(d=>this._scrollStrategy.scrolledIndexChange.subscribe(h=>Promise.resolve().then(()=>this.ngZone.run(()=>d.next(h))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Me.EMPTY,this._injector=B(Je),this._isDestroyed=!1,this._viewportChanges=l.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Bt(null),Eu(0,bW),ot(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=!0,super.ngOnDestroy()}attach(i){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=i,this._forOf.dataStream.pipe(ot(this._detachedSubject)).subscribe(r=>{let o=r.length;o!==this._dataLength&&(this._dataLength=o,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(i){return this.getElementRef().nativeElement.getBoundingClientRect()[i]}setTotalContentSize(i){this._totalContentSize!==i&&(this._totalContentSize=i,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(i){vW(this._renderedRange,i)||(this.appendOnly&&(i={start:0,end:Math.max(this._renderedRange.end,i.end)}),this._renderedRangeSubject.next(this._renderedRange=i),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(i,r="to-start"){i=this.appendOnly&&r==="to-start"?0:i;let o=this.dir&&this.dir.value=="rtl",s=this.orientation=="horizontal",a=s?"X":"Y",l=`translate${a}(${Number((s&&o?-1:1)*i)}px)`;this._renderedContentOffset=i,r==="to-end"&&(l+=` translate${a}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=l&&(this._renderedContentTransform=l,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(i,r="auto"){let o={behavior:r};this.orientation==="horizontal"?o.start=i:o.top=i,this.scrollable.scrollTo(o)}scrollToIndex(i,r="auto"){this._scrollStrategy.scrollToIndex(i,r)}measureScrollOffset(i){let r;return this.scrollable==this?r=o=>super.measureScrollOffset(o):r=o=>this.scrollable.measureScrollOffset(o),Math.max(0,r(i??(this.orientation==="horizontal"?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(i){let r,o="left",s="right",a=this.dir?.value=="rtl";i=="start"?r=a?s:o:i=="end"?r=a?o:s:i?r=i:r=this.orientation==="horizontal"?"left":"top";let c=this.scrollable.measureBoundingClientRectWithScrollOffset(r);return this.elementRef.nativeElement.getBoundingClientRect()[r]-c}measureRenderedContentSize(){let i=this._contentWrapper.nativeElement;return this.orientation==="horizontal"?i.offsetWidth:i.offsetHeight}measureRangeSize(i){return this._forOf?this._forOf.measureRangeSize(i,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(i){i&&this._runAfterChangeDetection.push(i),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,ri(()=>{this._isChangeDetectionPending=!1;let i=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(let r of i)r()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight=this.orientation==="horizontal"?"":`${this._totalContentSize}px`,this._totalContentWidth=this.orientation==="horizontal"?`${this._totalContentSize}px`:""}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Ge),g(ee),g(hC,8),g($t,8),g(to),g(Gn),g(gA,8))},e.\u0275cmp=re({type:e,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(r,o){if(r&1&&ze(hW,7),r&2){let s;pe(s=me())&&(o._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(r,o){r&2&&Oe("cdk-virtual-scroll-orientation-horizontal",o.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",o.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",Ee]},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[Ye([{provide:Wn,useFactory:(i,r)=>i||r,deps:[[new Gr,new sI(gA)],e]}]),nt,He,Ne],ngContentSelectors:fW,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(r,o){r&1&&(at(),D(0,"div",1,0),ke(2),I(),xe(3,"div",2)),r&2&&(A(3),hi("width",o._totalContentWidth)("height",o._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0});let t=e;return t})();function vA(t,e,n){let i=n;if(!i.getBoundingClientRect)return 0;let r=i.getBoundingClientRect();return t==="horizontal"?e==="start"?r.left:r.right:e==="start"?r.top:r.bottom}var bA=(()=>{let e=class e{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(i){this._cdkVirtualForOf=i,sd(i)?this._dataSourceChanges.next(i):this._dataSourceChanges.next(new A0(cs(i)?i:Array.from(i||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(i){this._needsUpdate=!0,this._cdkVirtualForTrackBy=i?(r,o)=>i(r+(this._renderedRange?this._renderedRange.start:0),o):void 0}set cdkVirtualForTemplate(i){i&&(this._needsUpdate=!0,this._template=i)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(i){this._viewRepeater.viewCacheSize=En(i)}constructor(i,r,o,s,a,c){this._viewContainerRef=i,this._template=r,this._differs=o,this._viewRepeater=s,this._viewport=a,this.viewChange=new K,this._dataSourceChanges=new K,this.dataStream=this._dataSourceChanges.pipe(Bt(null),x_(),Nt(([l,u])=>this._changeDataSource(l,u)),Iu(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new K,this.dataStream.subscribe(l=>{this._data=l,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(ot(this._destroyed)).subscribe(l=>{this._renderedRange=l,this.viewChange.observers.length&&c.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(i,r){if(i.start>=i.end)return 0;i.startthis._renderedRange.end;let o=i.start-this._renderedRange.start,s=i.end-i.start,a,c;for(let l=0;l-1;l--){let u=this._viewContainerRef.get(l+o);if(u&&u.rootNodes.length){c=u.rootNodes[u.rootNodes.length-1];break}}return a&&c?vA(r,"end",c)-vA(r,"start",a):0}ngDoCheck(){if(this._differ&&this._needsUpdate){let i=this._differ.diff(this._renderedItems);i?this._applyChanges(i):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((i,r)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(i,r):r)),this._needsUpdate=!0)}_changeDataSource(i,r){return i&&i.disconnect(this),this._needsUpdate=!0,r?r.connect(this):we()}_updateContext(){let i=this._data.length,r=this._viewContainerRef.length;for(;r--;){let o=this._viewContainerRef.get(r);o.context.index=this._renderedRange.start+r,o.context.count=i,this._updateComputedContextProperties(o.context),o.detectChanges()}}_applyChanges(i){this._viewRepeater.applyChanges(i,this._viewContainerRef,(s,a,c)=>this._getEmbeddedViewArgs(s,c),s=>s.item),i.forEachIdentityChange(s=>{let a=this._viewContainerRef.get(s.currentIndex);a.context.$implicit=s.item});let r=this._data.length,o=this._viewContainerRef.length;for(;o--;){let s=this._viewContainerRef.get(o);s.context.index=this._renderedRange.start+o,s.context.count=r,this._updateComputedContextProperties(s.context)}}_updateComputedContextProperties(i){i.first=i.index===0,i.last=i.index===i.count-1,i.even=i.index%2===0,i.odd=!i.even}_getEmbeddedViewArgs(i,r){return{templateRef:this._template,context:{$implicit:i.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:r}}};e.\u0275fac=function(r){return new(r||e)(g(qt),g(Rt),g(Xr),g(Sa),g(fC,4),g(ee))},e.\u0275dir=te({type:e,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[Ye([{provide:Sa,useClass:od}])]});let t=e;return t})();var $n=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})(),Ec=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ea,$n,Ea,$n]});let t=e;return t})();var EA=(()=>{let e=class e{constructor(i,r){this._renderer=i,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(i,r){this._renderer.setProperty(this._elementRef.nativeElement,i,r)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}};e.\u0275fac=function(r){return new(r||e)(g(va),g(ce))},e.\u0275dir=te({type:e});let t=e;return t})(),SA=(()=>{let e=class e extends EA{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,features:[He]});let t=e;return t})(),Uo=new q("");var _W={provide:Uo,useExisting:li(()=>Gi),multi:!0};function yW(){let t=Vo()?Vo().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var wW=new q(""),Gi=(()=>{let e=class e extends EA{constructor(i,r,o){super(i,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!yW())}writeValue(i){let r=i??"";this.setProperty("value",r)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}};e.\u0275fac=function(r){return new(r||e)(g(va),g(ce),g(wW,8))},e.\u0275dir=te({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&le("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Ye([_W]),He]});let t=e;return t})();function ka(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function IA(t){return t!=null&&typeof t.length=="number"}var ld=new q(""),$0=new q(""),CW=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ma=class{static min(e){return xW(e)}static max(e){return DW(e)}static required(e){return EW(e)}static requiredTrue(e){return SW(e)}static email(e){return IW(e)}static minLength(e){return kW(e)}static maxLength(e){return MW(e)}static pattern(e){return TW(e)}static nullValidator(e){return kA(e)}static compose(e){return NA(e)}static composeAsync(e){return FA(e)}};function xW(t){return e=>{if(ka(e.value)||ka(t))return null;let n=parseFloat(e.value);return!isNaN(n)&&n{if(ka(e.value)||ka(t))return null;let n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}function EW(t){return ka(t.value)?{required:!0}:null}function SW(t){return t.value===!0?null:{required:!0}}function IW(t){return ka(t.value)||CW.test(t.value)?null:{email:!0}}function kW(t){return e=>ka(e.value)||!IA(e.value)?null:e.value.lengthIA(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function TW(t){if(!t)return kA;let e,n;return typeof t=="string"?(n="",t.charAt(0)!=="^"&&(n+="^"),n+=t,t.charAt(t.length-1)!=="$"&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),i=>{if(ka(i.value))return null;let r=i.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}function kA(t){return null}function MA(t){return t!=null}function TA(t){return vc(t)?Kt(t):t}function AA(t){let e={};return t.forEach(n=>{e=n!=null?X(X({},e),n):e}),Object.keys(e).length===0?null:e}function RA(t,e){return e.map(n=>n(t))}function AW(t){return!t.validate}function OA(t){return t.map(e=>AW(e)?e:n=>e.validate(n))}function NA(t){if(!t)return null;let e=t.filter(MA);return e.length==0?null:function(n){return AA(RA(n,e))}}function vC(t){return t!=null?NA(OA(t)):null}function FA(t){if(!t)return null;let e=t.filter(MA);return e.length==0?null:function(n){let i=RA(n,e).map(TA);return tc(i).pipe(Te(AA))}}function bC(t){return t!=null?FA(OA(t)):null}function _A(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function PA(t){return t._rawValidators}function LA(t){return t._rawAsyncValidators}function pC(t){return t?Array.isArray(t)?t:[t]:[]}function P0(t,e){return Array.isArray(t)?t.includes(e):t===e}function yA(t,e){let n=pC(e);return pC(t).forEach(r=>{P0(n,r)||n.push(r)}),n}function wA(t,e){return pC(e).filter(n=>!P0(t,n))}var L0=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=vC(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=bC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},Ta=class extends L0{get formDirective(){return null}get path(){return null}},vr=class extends L0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},V0=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},RW={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},iye=mt(X({},RW),{"[class.ng-submitted]":"isSubmitted"}),kn=(()=>{let e=class e extends V0{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(g(vr,2))},e.\u0275dir=te({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Oe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[He]});let t=e;return t})(),Ra=(()=>{let e=class e extends V0{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(g(Ta,10))},e.\u0275dir=te({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&Oe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[He]});let t=e;return t})();var fh="VALID",F0="INVALID",ad="PENDING",ph="DISABLED",Aa=class{},B0=class extends Aa{constructor(e,n){super(),this.value=e,this.source=n}},gh=class extends Aa{constructor(e,n){super(),this.pristine=e,this.source=n}},vh=class extends Aa{constructor(e,n){super(),this.touched=e,this.source=n}},cd=class extends Aa{constructor(e,n){super(),this.status=e,this.source=n}},mC=class extends Aa{constructor(e){super(),this.source=e}},gC=class extends Aa{constructor(e){super(),this.source=e}};function VA(t){return(W0(t)?t.validators:t)||null}function OW(t){return Array.isArray(t)?vC(t):t||null}function BA(t,e){return(W0(e)?e.asyncValidators:t)||null}function NW(t){return Array.isArray(t)?bC(t):t||null}function W0(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function FW(t,e,n){let i=t.controls;if(!(e?Object.keys(i):i).length)throw new ge(1e3,"");if(!i[n])throw new ge(1001,"")}function PW(t,e,n){t._forEachChild((i,r)=>{if(n[r]===void 0)throw new ge(1002,"")})}var j0=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Cs(()=>this.statusReactive()),this.statusReactive=Kr(void 0),this._pristine=Cs(()=>this.pristineReactive()),this.pristineReactive=Kr(!0),this._touched=Cs(()=>this.touchedReactive()),this.touchedReactive=Kr(!1),this._events=new K,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return mr(this.statusReactive)}set status(e){mr(()=>this.statusReactive.set(e))}get valid(){return this.status===fh}get invalid(){return this.status===F0}get pending(){return this.status==ad}get disabled(){return this.status===ph}get enabled(){return this.status!==ph}get pristine(){return mr(this.pristineReactive)}set pristine(e){mr(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return mr(this.touchedReactive)}set touched(e){mr(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(yA(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(yA(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(wA(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(wA(e,this._rawAsyncValidators))}hasValidator(e){return P0(this._rawValidators,e)}hasAsyncValidator(e){return P0(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let n=this.touched===!1;this.touched=!0;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(mt(X({},e),{sourceControl:i})),n&&e.emitEvent!==!1&&this._events.next(new vh(!0,i))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(e))}markAsUntouched(e={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:i})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i),n&&e.emitEvent!==!1&&this._events.next(new vh(!1,i))}markAsDirty(e={}){let n=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(mt(X({},e),{sourceControl:i})),n&&e.emitEvent!==!1&&this._events.next(new gh(!1,i))}markAsPristine(e={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),n&&e.emitEvent!==!1&&this._events.next(new gh(!0,i))}markAsPending(e={}){this.status=ad;let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new cd(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(mt(X({},e),{sourceControl:n}))}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=ph,this.errors=null,this._forEachChild(r=>{r.disable(mt(X({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new B0(this.value,i)),this._events.next(new cd(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(mt(X({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=fh,this._forEachChild(i=>{i.enable(mt(X({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(mt(X({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e,n){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===fh||this.status===ad)&&this._runAsyncValidator(i,e.emitEvent)}let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new B0(this.value,n)),this._events.next(new cd(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(mt(X({},e),{sourceControl:n}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ph:fh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,n){if(this.asyncValidator){this.status=ad,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let i=TA(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:n,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((i,r)=>i&&i._find(r),this)}getError(e,n){let i=n?this.get(n):this;return i&&i.errors?i.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,n,i){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||i)&&this._events.next(new cd(this.status,n)),this._parent&&this._parent._updateControlsErrors(e,n,i)}_initObservables(){this.valueChanges=new oe,this.statusChanges=new oe}_calculateStatus(){return this._allControlsDisabled()?ph:this.errors?F0:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ad)?ad:this._anyControlsHaveStatus(F0)?F0:fh}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,n){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&this._events.next(new gh(this.pristine,n))}_updateTouched(e={},n){this.touched=this._anyControlsTouched(),this._events.next(new vh(this.touched,n)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){W0(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=OW(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=NW(this._rawAsyncValidators)}},H0=class extends j0{constructor(e,n,i){super(VA(n),BA(i,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,i={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){PW(this,!0,e),Object.keys(e).forEach(i=>{FW(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(Object.keys(e).forEach(i=>{let r=this.controls[i];r&&r.patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((i,r)=>{i.reset(e?e[r]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,i)=>(e[i]=n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,i)=>i._syncPendingControls()?!0:n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{let i=this.controls[n];i&&e(i,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[n,i]of Object.entries(this.controls))if(this.contains(n)&&e(i))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(n,i,r)=>((i.enabled||this.disabled)&&(n[r]=i.value),n))}_reduceChildren(e,n){let i=e;return this._forEachChild((r,o)=>{i=n(i,r,o)}),i}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var dd=new q("CallSetDisabledState",{providedIn:"root",factory:()=>G0}),G0="always";function LW(t,e){return[...e.path,t]}function bh(t,e,n=G0){_C(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),BW(t,e),HW(t,e),jW(t,e),VW(t,e)}function z0(t,e,n=!0){let i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),q0(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function U0(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function VW(t,e){if(e.valueAccessor.setDisabledState){let n=i=>{e.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function _C(t,e){let n=PA(t);e.validator!==null?t.setValidators(_A(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let i=LA(t);e.asyncValidator!==null?t.setAsyncValidators(_A(i,e.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();U0(e._rawValidators,r),U0(e._rawAsyncValidators,r)}function q0(t,e){let n=!1;if(t!==null){if(e.validator!==null){let r=PA(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.validator);o.length!==r.length&&(n=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let r=LA(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.asyncValidator);o.length!==r.length&&(n=!0,t.setAsyncValidators(o))}}}let i=()=>{};return U0(e._rawValidators,i),U0(e._rawAsyncValidators,i),n}function BW(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&jA(t,e)})}function jW(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&jA(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function jA(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function HW(t,e){let n=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function HA(t,e){t==null,_C(t,e)}function zW(t,e){return q0(t,e)}function zA(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function UW(t){return Object.getPrototypeOf(t.constructor)===SA}function UA(t,e){t._syncPendingControls(),e.forEach(n=>{let i=n.control;i.updateOn==="submit"&&i._pendingChange&&(n.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function qA(t,e){if(!e)return null;Array.isArray(e);let n,i,r;return e.forEach(o=>{o.constructor===Gi?n=o:UW(o)?i=o:r=o}),r||i||n||null}function qW(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}var $W={provide:Ta,useExisting:li(()=>Yn)},mh=Promise.resolve(),Yn=(()=>{let e=class e extends Ta{get submitted(){return mr(this.submittedReactive)}constructor(i,r,o){super(),this.callSetDisabledState=o,this._submitted=Cs(()=>this.submittedReactive()),this.submittedReactive=Kr(!1),this._directives=new Set,this.ngSubmit=new oe,this.form=new H0({},vC(i),bC(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(i){mh.then(()=>{let r=this._findContainer(i.path);i.control=r.registerControl(i.name,i.control),bh(i.control,i,this.callSetDisabledState),i.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(i)})}getControl(i){return this.form.get(i.path)}removeControl(i){mh.then(()=>{let r=this._findContainer(i.path);r&&r.removeControl(i.name),this._directives.delete(i)})}addFormGroup(i){mh.then(()=>{let r=this._findContainer(i.path),o=new H0({});HA(o,i),r.registerControl(i.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(i){mh.then(()=>{let r=this._findContainer(i.path);r&&r.removeControl(i.name)})}getFormGroup(i){return this.form.get(i.path)}updateModel(i,r){mh.then(()=>{this.form.get(i.path).setValue(r)})}setValue(i){this.control.setValue(i)}onSubmit(i){return this.submittedReactive.set(!0),UA(this.form,this._directives),this.ngSubmit.emit(i),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(i){return i.pop(),i.length?this.form.get(i):this.form}};e.\u0275fac=function(r){return new(r||e)(g(ld,10),g($0,10),g(dd,8))},e.\u0275dir=te({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&le("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ye([$W]),He]});let t=e;return t})();function CA(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function xA(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var yC=class extends j0{constructor(e=null,n,i){super(VA(n),BA(i,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),W0(n)&&(n.nonNullable||n.initialValueIsDefault)&&(xA(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){CA(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){CA(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){xA(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},Sc=yC,WW=t=>t instanceof yC;var GW={provide:vr,useExisting:li(()=>io)},DA=Promise.resolve(),io=(()=>{let e=class e extends vr{constructor(i,r,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new yC,this._registered=!1,this.name="",this.update=new oe,this._parent=i,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=qA(this,s)}ngOnChanges(i){if(this._checkForErrors(),!this._registered||"name"in i){if(this._registered&&(this._checkName(),this.formDirective)){let r=i.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in i&&this._updateDisabled(i),zA(i,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){bh(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(i){DA.then(()=>{this.control.setValue(i,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(i){let r=i.isDisabled.currentValue,o=r!==0&&Ee(r);DA.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(i){return this._parent?LW(i,this._parent):[i]}};e.\u0275fac=function(r){return new(r||e)(g(Ta,9),g(ld,10),g($0,10),g(Uo,10),g(Ge,8),g(dd,8))},e.\u0275dir=te({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ye([GW]),He,lt]});let t=e;return t})(),Oa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),YW={provide:Uo,useExisting:li(()=>wC),multi:!0},wC=(()=>{let e=class e extends SA{writeValue(i){let r=i??"";this.setProperty("value",r)}registerOnChange(i){this.onChange=r=>{i(r==""?null:parseFloat(r))}}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&&le("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[Ye([YW]),He]});let t=e;return t})();var $A=new q(""),QW={provide:vr,useExisting:li(()=>_h)},_h=(()=>{let e=class e extends vr{set isDisabled(i){}constructor(i,r,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new oe,this._ngModelWarningSent=!1,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=qA(this,o)}ngOnChanges(i){if(this._isControlChanged(i)){let r=i.form.previousValue;r&&z0(r,this,!1),bh(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}zA(i,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&z0(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_isControlChanged(i){return i.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(g(ld,10),g($0,10),g(Uo,10),g($A,8),g(dd,8))},e.\u0275dir=te({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ye([QW]),He,lt]});let t=e;return t})(),KW={provide:Ta,useExisting:li(()=>yh)},yh=(()=>{let e=class e extends Ta{get submitted(){return mr(this._submittedReactive)}set submitted(i){this._submittedReactive.set(i)}constructor(i,r,o){super(),this.callSetDisabledState=o,this._submitted=Cs(()=>this._submittedReactive()),this._submittedReactive=Kr(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new oe,this._setValidators(i),this._setAsyncValidators(r)}ngOnChanges(i){this._checkFormPresent(),i.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(q0(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(i){let r=this.form.get(i.path);return bh(r,i,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(i),r}getControl(i){return this.form.get(i.path)}removeControl(i){z0(i.control||null,i,!1),qW(this.directives,i)}addFormGroup(i){this._setUpFormContainer(i)}removeFormGroup(i){this._cleanUpFormContainer(i)}getFormGroup(i){return this.form.get(i.path)}addFormArray(i){this._setUpFormContainer(i)}removeFormArray(i){this._cleanUpFormContainer(i)}getFormArray(i){return this.form.get(i.path)}updateModel(i,r){this.form.get(i.path).setValue(r)}onSubmit(i){return this._submittedReactive.set(!0),UA(this.form,this.directives),this.ngSubmit.emit(i),this.form._events.next(new mC(this.control)),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this._submittedReactive.set(!1),this.form._events.next(new gC(this.form))}_updateDomValue(){this.directives.forEach(i=>{let r=i.control,o=this.form.get(i.path);r!==o&&(z0(r||null,i),WW(o)&&(bh(o,i,this.callSetDisabledState),i.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(i){let r=this.form.get(i.path);HA(r,i),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(i){if(this.form){let r=this.form.get(i.path);r&&zW(r,i)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_C(this.form,this),this._oldForm&&q0(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(g(ld,10),g($0,10),g(dd,8))},e.\u0275dir=te({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&le("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ye([KW]),He,lt]});let t=e;return t})();var WA=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})();var GA=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:dd,useValue:i.callSetDisabledState??G0}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[WA]});let t=e;return t})(),YA=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:$A,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:dd,useValue:i.callSetDisabledState??G0}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[WA]});let t=e;return t})();function zt(t,...e){return e.length?e.some(n=>t[n]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function XW(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let e=0;e{let e=class e{create(i){return typeof MutationObserver>"u"?null:new MutationObserver(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ZW=(()=>{let e=class e{constructor(i){this._mutationObserverFactory=i,this._observedElements=new Map,this._ngZone=B(ee)}ngOnDestroy(){this._observedElements.forEach((i,r)=>this._cleanupObserver(r))}observe(i){let r=Sn(i);return new $e(o=>{let a=this._observeElement(r).pipe(Te(c=>c.filter(l=>!XW(l))),We(c=>!!c.length)).subscribe(c=>{this._ngZone.run(()=>{o.next(c)})});return()=>{a.unsubscribe(),this._unobserveElement(r)}})}_observeElement(i){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(i))this._observedElements.get(i).count++;else{let r=new K,o=this._mutationObserverFactory.create(s=>r.next(s));o&&o.observe(i,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(i,{observer:o,stream:r,count:1})}return this._observedElements.get(i).stream})}_unobserveElement(i){this._observedElements.has(i)&&(this._observedElements.get(i).count--,this._observedElements.get(i).count||this._cleanupObserver(i))}_cleanupObserver(i){if(this._observedElements.has(i)){let{observer:r,stream:o}=this._observedElements.get(i);r&&r.disconnect(),o.complete(),this._observedElements.delete(i)}}};e.\u0275fac=function(r){return new(r||e)(R(QA))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),KA=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(i){this._debounce=En(i),this._subscribe()}constructor(i,r){this._contentObserver=i,this._elementRef=r,this.event=new oe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let i=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?i.pipe(Hr(this.debounce)):i).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(g(ZW),g(ce))},e.\u0275dir=te({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Ee],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[nt]});let t=e;return t})(),ud=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[QA]});let t=e;return t})();var t3=" ";function gd(t,e,n){let i=X0(t,e);n=n.trim(),!i.some(r=>r.trim()===n)&&(i.push(n),t.setAttribute(e,i.join(t3)))}function Na(t,e,n){let i=X0(t,e);n=n.trim();let r=i.filter(o=>o!==n);r.length?t.setAttribute(e,r.join(t3)):t.removeAttribute(e)}function X0(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var i3="cdk-describedby-message",Y0="cdk-describedby-host",DC=0,n3=(()=>{let e=class e{constructor(i,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${DC++}`,this._document=i,this._id=B(jl)+"-"+DC++}describe(i,r,o){if(!this._canBeDescribed(i,r))return;let s=CC(r,o);typeof r!="string"?(XA(r,this._id),this._messageRegistry.set(s,{messageElement:r,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(r,o),this._isElementDescribedByMessage(i,s)||this._addMessageReference(i,s)}removeDescription(i,r,o){if(!r||!this._isElementNode(i))return;let s=CC(r,o);if(this._isElementDescribedByMessage(i,s)&&this._removeMessageReference(i,s),typeof r=="string"){let a=this._messageRegistry.get(s);a&&a.referenceCount===0&&this._deleteMessageElement(s)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let i=this._document.querySelectorAll(`[${Y0}="${this._id}"]`);for(let r=0;ro.indexOf(i3)!=0);i.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(i,r){let o=this._messageRegistry.get(r);gd(i,"aria-describedby",o.messageElement.id),i.setAttribute(Y0,this._id),o.referenceCount++}_removeMessageReference(i,r){let o=this._messageRegistry.get(r);o.referenceCount--,Na(i,"aria-describedby",o.messageElement.id),i.removeAttribute(Y0)}_isElementDescribedByMessage(i,r){let o=X0(i,"aria-describedby"),s=this._messageRegistry.get(r),a=s&&s.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(i,r){if(!this._isElementNode(i))return!1;if(r&&typeof r=="object")return!0;let o=r==null?"":`${r}`.trim(),s=i.getAttribute("aria-label");return o?!s||s.trim()!==o:!1}_isElementNode(i){return i.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(r){return new(r||e)(R(Fe),R(et))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function CC(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function XA(t,e){t.id||(t.id=`${i3}-${e}-${DC++}`)}var Z0=class{constructor(e,n){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new K,this._typeaheadSubscription=Me.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new K,this.change=new K,e instanceof $r?this._itemChangesSubscription=e.changes.subscribe(i=>this._itemsChanged(i.toArray())):Pm(e)&&(this._effectRef=tw(()=>this._itemsChanged(e()),{injector:n}))}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(Wt(n=>this._pressedLetters.push(n)),Hr(e),We(()=>this._pressedLetters.length>0),Te(()=>this._pressedLetters.join(""))).subscribe(n=>{let i=this._getItemsArray();for(let r=1;r!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(n){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n)));return}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._getItemsArray().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){let n=this._getItemsArray(),i=typeof e=="number"?e:n.indexOf(e),r=n[i];this._activeItem=r??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let n=this._getItemsArray();for(let i=1;i<=n.length;i++){let r=(this._activeItemIndex+e*i+n.length)%n.length,o=n[r];if(!this._skipPredicateFn(o)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,n){let i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(e+=n,!i[e])return;this.setActiveItem(e)}}_getItemsArray(){return Pm(this._items)?this._items():this._items instanceof $r?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let n=e.indexOf(this._activeItem);n>-1&&n!==this._activeItemIndex&&(this._activeItemIndex=n)}}},fd=class extends Z0{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},J0=class extends Z0{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)}};var kc=(()=>{let e=class e{constructor(i){this._platform=i}isDisabled(i){return i.hasAttribute("disabled")}isVisible(i){return cG(i)&&getComputedStyle(i).visibility==="visible"}isTabbable(i){if(!this._platform.isBrowser)return!1;let r=aG(gG(i));if(r&&(ZA(r)===-1||!this.isVisible(r)))return!1;let o=i.nodeName.toLowerCase(),s=ZA(i);return i.hasAttribute("contenteditable")?s!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!pG(i)?!1:o==="audio"?i.hasAttribute("controls")?s!==-1:!1:o==="video"?s===-1?!1:s!==null?!0:this._platform.FIREFOX||i.hasAttribute("controls"):i.tabIndex>=0}isFocusable(i,r){return mG(i)&&!this.isDisabled(i)&&(r?.ignoreVisibility||this.isVisible(i))}};e.\u0275fac=function(r){return new(r||e)(R(et))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function aG(t){try{return t.frameElement}catch{return null}}function cG(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function lG(t){let e=t.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function dG(t){return hG(t)&&t.type=="hidden"}function uG(t){return fG(t)&&t.hasAttribute("href")}function hG(t){return t.nodeName.toLowerCase()=="input"}function fG(t){return t.nodeName.toLowerCase()=="a"}function r3(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let e=t.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function ZA(t){if(!r3(t))return null;let e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function pG(t){let e=t.nodeName.toLowerCase(),n=e==="input"&&t.type;return n==="text"||n==="password"||e==="select"||e==="textarea"}function mG(t){return dG(t)?!1:lG(t)||uG(t)||t.hasAttribute("contenteditable")||r3(t)}function gG(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var EC=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,n,i,r,o=!1,s){this._element=e,this._checker=n,this._ngZone=i,this._document=r,this._injector=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let e=this._startAnchor,n=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),n&&(n.removeEventListener("focus",this.endAnchorListener),n.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(n=>{this._executeOnStable(()=>n(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(n=>{this._executeOnStable(()=>n(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(n=>{this._executeOnStable(()=>n(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let n=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(!this._checker.isFocusable(n)){let i=this._getFirstTabbableElement(n);return i?.focus(e),!!i}return n.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let n=this._getRegionBoundary("start");return n&&n.focus(e),!!n}focusLastTabbableElement(e){let n=this._getRegionBoundary("end");return n&&n.focus(e),!!n}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let n=e.children;for(let i=0;i=0;i--){let r=n[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[i]):null;if(r)return r}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,n){e?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._injector?ri(e,{injector:this._injector}):setTimeout(e)}},Mc=(()=>{let e=class e{constructor(i,r,o){this._checker=i,this._ngZone=r,this._injector=B(Je),this._document=o}create(i,r=!1){return new EC(i,this._checker,this._ngZone,this._document,r,this._injector)}};e.\u0275fac=function(r){return new(r||e)(R(kc),R(ee),R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),o3=(()=>{let e=class e{get enabled(){return this.focusTrap?.enabled||!1}set enabled(i){this.focusTrap&&(this.focusTrap.enabled=i)}constructor(i,r,o){this._elementRef=i,this._focusTrapFactory=r,this._previouslyFocusedElement=null,B(et).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(i){let r=i.autoCapture;r&&!r.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=xa(),this.focusTrap?.focusInitialElementWhenReady()}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Mc),g(Fe))},e.\u0275dir=te({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",Ee],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",Ee]},exportAs:["cdkTrapFocus"],standalone:!0,features:[nt,lt]});let t=e;return t})();function xh(t){return t.buttons===0||t.detail===0}function Dh(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var vG=new q("cdk-input-modality-detector-options"),bG={ignoreKeys:[18,17,224,91,16]},s3=650,hd=In({passive:!0,capture:!0}),_G=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(i,r,o,s){this._platform=i,this._mostRecentTarget=null,this._modality=new Vt(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=cn(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(Dh(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=cn(a)},this._options=X(X({},bG),s),this.modalityDetected=this._modality.pipe(ku(1)),this.modalityChanged=this.modalityDetected.pipe(hs()),i.isBrowser&&r.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,hd),o.addEventListener("mousedown",this._onMousedown,hd),o.addEventListener("touchstart",this._onTouchstart,hd)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,hd),document.removeEventListener("mousedown",this._onMousedown,hd),document.removeEventListener("touchstart",this._onTouchstart,hd))}};e.\u0275fac=function(r){return new(r||e)(R(et),R(ee),R(Fe),R(vG,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),yG=new q("liveAnnouncerElement",{providedIn:"root",factory:wG});function wG(){return null}var CG=new q("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),xG=0,eg=(()=>{let e=class e{constructor(i,r,o,s){this._ngZone=r,this._defaultOptions=s,this._document=o,this._liveElement=i||this._createLiveElement()}announce(i,...r){let o=this._defaultOptions,s,a;return r.length===1&&typeof r[0]=="number"?a=r[0]:[s,a]=r,this.clear(),clearTimeout(this._previousTimeout),s||(s=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",s),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=i,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let i="cdk-live-announcer-element",r=this._document.getElementsByClassName(i),o=this._document.createElement("div");for(let s=0;s .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let e=class e{constructor(i,r,o,s,a){this._ngZone=i,this._platform=r,this._inputModalityDetector=o,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 K,this._rootNodeFocusAndBlurListener=c=>{let l=cn(c);for(let u=l;u;u=u.parentElement)c.type==="focus"?this._onFocus(c,u):this._onBlur(c,u)},this._document=s,this._detectionMode=a?.detectionMode||K0.IMMEDIATE}monitor(i,r=!1){let o=Sn(i);if(!this._platform.isBrowser||o.nodeType!==1)return we();let s=dA(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return r&&(a.checkChildren=!0),a.subject;let c={checkChildren:r,subject:new K,rootNode:s};return this._elementInfo.set(o,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(i){let r=Sn(i),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(i,r,o){let s=Sn(i),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([c,l])=>this._originChanged(c,r,l)):(this._setOrigin(r),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((i,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(i){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(i)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:i&&this._isLastInteractionFromInputLabel(i)?"mouse":"program"}_shouldBeAttributedToTouch(i){return this._detectionMode===K0.EVENTUAL||!!i?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(i,r){i.classList.toggle("cdk-focused",!!r),i.classList.toggle("cdk-touch-focused",r==="touch"),i.classList.toggle("cdk-keyboard-focused",r==="keyboard"),i.classList.toggle("cdk-mouse-focused",r==="mouse"),i.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(i,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=i,this._originFromTouchInteraction=i==="touch"&&r,this._detectionMode===K0.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?s3:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(i,r){let o=this._elementInfo.get(r),s=cn(i);!o||!o.checkChildren&&r!==s||this._originChanged(r,this._getFocusOrigin(s),o)}_onBlur(i,r){let o=this._elementInfo.get(r);!o||o.checkChildren&&i.relatedTarget instanceof Node&&r.contains(i.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null))}_emitOrigin(i,r){i.subject.observers.length&&this._ngZone.run(()=>i.subject.next(r))}_registerGlobalListeners(i){if(!this._platform.isBrowser)return;let r=i.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,Q0),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,Q0)}),this._rootNodeFocusListenerCount.set(r,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ot(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(i){let r=i.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Q0),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Q0),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(i,r,o){this._setClasses(i,r),this._emitOrigin(o,r),this._lastFocusOrigin=r}_getClosestElementsInfo(i){let r=[];return this._elementInfo.forEach((o,s)=>{(s===i||o.checkChildren&&s.contains(i))&&r.push([s,o])}),r}_isLastInteractionFromInputLabel(i){let{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!r||r===i||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA"||i.disabled)return!1;let s=i.labels;if(s){for(let a=0;a{let e=class e{constructor(i,r){this._elementRef=i,this._focusMonitor=r,this._focusOrigin=null,this.cdkFocusChange=new oe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let i=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(i,i.nodeType===1&&i.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(r=>{this._focusOrigin=r,this.cdkFocusChange.emit(r)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Yi))},e.\u0275dir=te({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let t=e;return t})(),Ic=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(Ic||{}),JA="cdk-high-contrast-black-on-white",e3="cdk-high-contrast-white-on-black",xC="cdk-high-contrast-active",kC=(()=>{let e=class e{constructor(i,r){this._platform=i,this._document=r,this._breakpointSubscription=B(Da).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Ic.NONE;let i=this._document.createElement("div");i.style.backgroundColor="rgb(1,2,3)",i.style.position="absolute",this._document.body.appendChild(i);let r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(i):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(i.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Ic.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Ic.BLACK_ON_WHITE}return Ic.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let i=this._document.body.classList;i.remove(xC,JA,e3),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===Ic.BLACK_ON_WHITE?i.add(xC,JA):r===Ic.WHITE_ON_BLACK&&i.add(xC,e3)}}};e.\u0275fac=function(r){return new(r||e)(R(et),R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),tg=(()=>{let e=class e{constructor(i){i._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(r){return new(r||e)(R(kC))},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[ud]});let t=e;return t})();var EG=["text"],SG=[[["mat-icon"]],"*"],IG=["mat-icon","*"];function kG(t,e){if(t&1&&xe(0,"mat-pseudo-checkbox",1),t&2){let n=se();ie("disabled",n.disabled)("state",n.selected?"checked":"unchecked")}}function MG(t,e){if(t&1&&xe(0,"mat-pseudo-checkbox",3),t&2){let n=se();ie("disabled",n.disabled)}}function TG(t,e){if(t&1&&(D(0,"span",4),z(1),I()),t&2){let n=se();A(),Tt("(",n.group.label,")")}}var v3=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let t=e;return t})(),b3=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let t=e;return t})();function AG(){return!0}var RG=new q("mat-sanity-checks",{providedIn:"root",factory:AG}),Ze=(()=>{let e=class e{constructor(i,r,o){this._sanityChecks=r,this._document=o,this._hasDoneGlobalChecks=!1,i._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(i){return uh()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[i]}};e.\u0275fac=function(r){return new(r||e)(R(kC),R(RG,8),R(Fe))},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ea,Ea]});let t=e;return t})();var Tc=class{constructor(e,n,i,r,o){this._defaultMatcher=e,this.ngControl=n,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,n=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,n)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var c3=new q("MAT_DATE_LOCALE",{providedIn:"root",factory:OG});function OG(){return B(Yu)}var Vi=class{constructor(){this._localeChanges=new K,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return e==null||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,n){return this.getYear(e)-this.getYear(n)||this.getMonth(e)-this.getMonth(n)||this.getDate(e)-this.getDate(n)}sameDate(e,n){if(e&&n){let i=this.isValid(e),r=this.isValid(n);return i&&r?!this.compareDate(e,n):i==r}return e==n}clampDate(e,n,i){return n&&this.compareDate(e,n)<0?n:i&&this.compareDate(e,i)>0?i:e}},Fa=new q("mat-date-formats"),NG=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function MC(t,e){let n=Array(t);for(let i=0;i{let e=class e extends Vi{constructor(i){super(),this.useUtcForDisplay=!1,this._matDateLocale=B(c3,{optional:!0}),i!==void 0&&(this._matDateLocale=i),super.setLocale(this._matDateLocale)}getYear(i){return i.getFullYear()}getMonth(i){return i.getMonth()}getDate(i){return i.getDate()}getDayOfWeek(i){return i.getDay()}getMonthNames(i){let r=new Intl.DateTimeFormat(this.locale,{month:i,timeZone:"utc"});return MC(12,o=>this._format(r,new Date(2017,o,1)))}getDateNames(){let i=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return MC(31,r=>this._format(i,new Date(2017,0,r+1)))}getDayOfWeekNames(i){let r=new Intl.DateTimeFormat(this.locale,{weekday:i,timeZone:"utc"});return MC(7,o=>this._format(r,new Date(2017,0,o+1)))}getYearName(i){let r=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(r,i)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(i){return this.getDate(this._createDateWithOverflow(this.getYear(i),this.getMonth(i)+1,0))}clone(i){return new Date(i.getTime())}createDate(i,r,o){let s=this._createDateWithOverflow(i,r,o);return s.getMonth()!=r,s}today(){return new Date}parse(i,r){return typeof i=="number"?new Date(i):i?new Date(Date.parse(i)):null}format(i,r){if(!this.isValid(i))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,mt(X({},r),{timeZone:"utc"}));return this._format(o,i)}addCalendarYears(i,r){return this.addCalendarMonths(i,r*12)}addCalendarMonths(i,r){let o=this._createDateWithOverflow(this.getYear(i),this.getMonth(i)+r,this.getDate(i));return this.getMonth(o)!=((this.getMonth(i)+r)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(i,r){return this._createDateWithOverflow(this.getYear(i),this.getMonth(i),this.getDate(i)+r)}toIso8601(i){return[i.getUTCFullYear(),this._2digit(i.getUTCMonth()+1),this._2digit(i.getUTCDate())].join("-")}deserialize(i){if(typeof i=="string"){if(!i)return null;if(NG.test(i)){let r=new Date(i);if(this.isValid(r))return r}}return super.deserialize(i)}isDateInstance(i){return i instanceof Date}isValid(i){return!isNaN(i.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(i,r,o){let s=new Date;return s.setFullYear(i,r,o),s.setHours(0,0,0,0),s}_2digit(i){return("00"+i).slice(-2)}_format(i,r){let o=new Date;return o.setUTCFullYear(r.getFullYear(),r.getMonth(),r.getDate()),o.setUTCHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()),i.format(o)}};e.\u0275fac=function(r){return new(r||e)(R(c3,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),PG={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};var _3=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[LG()]});let t=e;return t})();function LG(t=PG){return[{provide:Vi,useClass:FG},{provide:Fa,useValue:t}]}var kh=(()=>{let e=class e{isErrorState(i,r){return!!(i&&i.invalid&&(i.touched||r&&r.submitted))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var un=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(un||{}),RC=class{constructor(e,n,i,r=!1){this._renderer=e,this.element=n,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=un.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},l3=In({passive:!0,capture:!0}),OC=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let n=cn(e);n&&this._events.get(e.type)?.forEach((i,r)=>{(r===n||r.contains(n))&&i.forEach(o=>o.handleEvent(e))})}}addHandler(e,n,i,r){let o=this._events.get(n);if(o){let s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(n,new Map([[i,new Set([r])]])),e.runOutsideAngular(()=>{document.addEventListener(n,this._delegateEventHandler,l3)})}removeHandler(e,n,i){let r=this._events.get(e);if(!r)return;let o=r.get(n);o&&(o.delete(i),o.size===0&&r.delete(n),r.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,l3)))}},d3={enterDuration:225,exitDuration:150},VG=800,u3=In({passive:!0,capture:!0}),h3=["mousedown","touchstart"],f3=["mouseup","mouseleave","touchend","touchcancel"],Eh=class Eh{constructor(e,n,i,r){this._target=e,this._ngZone=n,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Sn(i))}fadeInRipple(e,n,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=X(X({},d3),i.animation);i.centered&&(e=r.left+r.width/2,n=r.top+r.height/2);let s=i.radius||BG(e,n,r),a=e-r.left,c=n-r.top,l=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${a-s}px`,u.style.top=`${c-s}px`,u.style.height=`${s*2}px`,u.style.width=`${s*2}px`,i.color!=null&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(u);let d=window.getComputedStyle(u),h=d.transitionProperty,f=d.transitionDuration,p=h==="none"||f==="0s"||f==="0s, 0s"||r.width===0&&r.height===0,m=new RC(this,u,i,p);u.style.transform="scale3d(1, 1, 1)",m.state=un.FADING_IN,i.persistent||(this._mostRecentTransientRipple=m);let v=null;return!p&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let b=()=>{v&&(v.fallbackTimer=null),clearTimeout(E),this._finishRippleTransition(m)},C=()=>this._destroyRipple(m),E=setTimeout(C,l+100);u.addEventListener("transitionend",b),u.addEventListener("transitioncancel",C),v={onTransitionEnd:b,onTransitionCancel:C,fallbackTimer:E}}),this._activeRipples.set(m,v),(p||!l)&&this._finishRippleTransition(m),m}fadeOutRipple(e){if(e.state===un.FADING_OUT||e.state===un.HIDDEN)return;let n=e.element,i=X(X({},d3),e.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",e.state=un.FADING_OUT,(e._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let n=Sn(e);!this._platform.isBrowser||!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,h3.forEach(i=>{Eh._eventManager.addHandler(this._ngZone,i,n,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{f3.forEach(n=>{this._triggerElement.addEventListener(n,this,u3)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===un.FADING_IN?this._startFadeOutTransition(e):e.state===un.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let n=e===this._mostRecentTransientRipple,{persistent:i}=e.config;e.state=un.VISIBLE,!i&&(!n||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let n=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=un.HIDDEN,n!==null&&(e.element.removeEventListener("transitionend",n.onTransitionEnd),e.element.removeEventListener("transitioncancel",n.onTransitionCancel),n.fallbackTimer!==null&&clearTimeout(n.fallbackTimer)),e.element.remove()}_onMousedown(e){let n=xh(e),i=this._lastTouchStartEvent&&Date.now(){let n=e.state===un.VISIBLE||e.config.terminateOnPointerUp&&e.state===un.FADING_IN;!e.config.persistent&&n&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(h3.forEach(n=>Eh._eventManager.removeHandler(n,e,this)),this._pointerUpEventsRegistered&&(f3.forEach(n=>e.removeEventListener(n,this,u3)),this._pointerUpEventsRegistered=!1))}};Eh._eventManager=new OC;var Sh=Eh;function BG(t,e,n){let i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}var Ac=new q("mat-ripple-global-options"),Rc=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){i&&this.fadeOutAllNonPersistent(),this._disabled=i,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(i){this._trigger=i,this._setupTriggerEventsIfEnabled()}constructor(i,r,o,s,a){this._elementRef=i,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new Sh(this,r,i,o)}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:X(X(X({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{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(i,r=0,o){return typeof i=="number"?this._rippleRenderer.fadeInRipple(i,r,X(X({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,X(X({},this.rippleConfig),i))}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(ee),g(et),g(Ac,8),g(jt,8))},e.\u0275dir=te({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,o){r&2&&Oe("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let t=e;return t})(),As=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,Ze]});let t=e;return t})(),jG=(()=>{let e=class e{constructor(i){this._animationMode=i,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(r){return new(r||e)(g(jt,8))},e.\u0275cmp=re({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(r,o){r&2&&Oe("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[Ne],decls:0,vars:0,template:function(r,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let t=e;return t})(),NC=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze]});let t=e;return t})(),Mh=new q("MAT_OPTION_PARENT_COMPONENT");var Th=new q("MatOptgroup");var HG=0,Ih=class{constructor(e,n=!1){this.source=e,this.isUserInput=n}},qo=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(i){this._disabled=i}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(i,r,o,s){this._element=i,this._changeDetectorRef=r,this._parent=o,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${HG++}`,this.onSelectionChange=new oe,this._stateChanges=new K}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(i=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),i&&this._emitSelectionChangeEvent())}deselect(i=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),i&&this._emitSelectionChangeEvent())}focus(i,r){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(r)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(i){(i.keyCode===13||i.keyCode===32)&&!zt(i)&&(this._selectViaInteraction(),i.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let i=this.viewValue;i!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=i)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(i=!1){this.onSelectionChange.emit(new Ih(this,i))}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Ge),g(Mh,8),g(Th,8))},e.\u0275cmp=re({type:e,selectors:[["mat-option"]],viewQuery:function(r,o){if(r&1&&ze(EG,7),r&2){let s;pe(s=me())&&(o._text=s.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(r,o){r&1&&le("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),r&2&&(pr("id",o.id),Ve("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),Oe("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Ee]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[nt,Ne],ngContentSelectors:IG,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(r,o){r&1&&(at(SG),ve(0,kG,1,2,"mat-pseudo-checkbox",1),ke(1),D(2,"span",2,0),ke(4,1),I(),ve(5,MG,1,1,"mat-pseudo-checkbox",3)(6,TG,2,1,"span",4),xe(7,"div",5)),r&2&&(tt(o.multiple?0:-1),A(5),tt(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),A(),tt(o.group&&o.group._inert?6:-1),A(),ie("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[jG,Rc],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight)}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=e;return t})();function ng(t,e,n){if(n.length){let i=e.toArray(),r=n.toArray(),o=0;for(let s=0;sn+i?Math.max(0,t-i+e):n}var vd=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[As,Ze,NC]});let t=e;return t})(),p3={capture:!0},m3=["focus","mousedown","mouseenter","touchstart"],TC="mat-ripple-loader-uninitialized",AC="mat-ripple-loader-class-name",g3="mat-ripple-loader-centered",ig="mat-ripple-loader-disabled",y3=(()=>{let e=class e{constructor(){this._document=B(Fe,{optional:!0}),this._animationMode=B(jt,{optional:!0}),this._globalRippleOptions=B(Ac,{optional:!0}),this._platform=B(et),this._ngZone=B(ee),this._hosts=new Map,this._onInteraction=i=>{let r=cn(i);if(r instanceof HTMLElement){let o=r.closest(`[${TC}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let i of m3)this._document?.addEventListener(i,this._onInteraction,p3)})}ngOnDestroy(){let i=this._hosts.keys();for(let r of i)this.destroyRipple(r);for(let r of m3)this._document?.removeEventListener(r,this._onInteraction,p3)}configureRipple(i,r){i.setAttribute(TC,this._globalRippleOptions?.namespace??""),(r.className||!i.hasAttribute(AC))&&i.setAttribute(AC,r.className||""),r.centered&&i.setAttribute(g3,""),r.disabled&&i.setAttribute(ig,"")}getRipple(i){return this._hosts.get(i)||this._createRipple(i)}setDisabled(i,r){let o=this._hosts.get(i);if(o){o.disabled=r;return}r?i.setAttribute(ig,""):i.removeAttribute(ig)}_createRipple(i){if(!this._document)return;let r=this._hosts.get(i);if(r)return r;i.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",i.getAttribute(AC)),i.append(o);let s=new Rc(new ce(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return s._isInitialized=!0,s.trigger=i,s.centered=i.hasAttribute(g3),s.disabled=i.hasAttribute(ig),this.attachRipple(i,s),s}attachRipple(i,r){i.removeAttribute(TC),this._hosts.set(i,r)}destroyRipple(i){let r=this._hosts.get(i);r&&(r.ngOnDestroy(),this._hosts.delete(i))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Ah=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},br=class extends Ah{constructor(e,n,i,r,o){super(),this.component=e,this.viewContainerRef=n,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}},Ki=class extends Ah{constructor(e,n,i,r){super(),this.templateRef=e,this.viewContainerRef=n,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,n=this.context){return this.context=n,super.attach(e)}detach(){return this.context=void 0,super.detach()}},FC=class extends Ah{constructor(e){super(),this.element=e instanceof ce?e.nativeElement:e}},Pa=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof br)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Ki)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof FC)return this._attachedPortal=e,this.attachDomPortal(e)}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)}};var Rh=class extends Pa{constructor(e,n,i,r,o){super(),this.outletElement=e,this._componentFactoryResolver=n,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let c=this._document.createComment("dom-portal");a.parentNode.insertBefore(c,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}attachComponentPortal(e){let i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector||Je.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=n.indexOf(i);r!==-1&&n.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var Qn=(()=>{let e=class e extends Pa{constructor(i,r,o){super(),this._componentFactoryResolver=i,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new oe,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let c=this._document.createComment("dom-portal");s.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}get portal(){return this._attachedPortal}set portal(i){this.hasAttached()&&!i&&!this._isInitialized||(this.hasAttached()&&super.detach(),i&&super.attach(i),this._attachedPortal=i||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(i){i.setAttachedHost(this);let r=i.viewContainerRef!=null?i.viewContainerRef:this._viewContainerRef,s=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component),a=r.createComponent(s,r.length,i.injector||r.injector,i.projectableNodes||void 0);return r!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=i,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(i){i.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=i,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){let i=this._viewContainerRef.element.nativeElement;return i.nodeType===i.ELEMENT_NODE?i:i.parentNode}};e.\u0275fac=function(r){return new(r||e)(g(Wr),g(qt),g(Fe))},e.\u0275dir=te({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[He]});let t=e;return t})();var Kn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})();var w3=T0(),PC=class{constructor(e,n){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=pi(-this._previousScrollPosition.left),e.style.top=pi(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,n=this._document.body,i=e.style,r=n.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),w3&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),w3&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let n=this._document.body,i=this._viewportRuler.getViewportSize();return n.scrollHeight>i.height||n.scrollWidth>i.width}};var LC=class{constructor(e,n,i,r){this._scrollDispatcher=e,this._ngZone=n,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,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(We(n=>!n||!this._overlayRef.overlayElement.contains(n.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let n=this._viewportRuler.getViewportScrollPosition().top;Math.abs(n-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}},og=class{enable(){}disable(){}attach(){}};function VC(t,e){return e.some(n=>{let i=t.bottomn.bottom,o=t.rightn.right;return i||r||o||s})}function C3(t,e){return e.some(n=>{let i=t.topn.bottom,o=t.leftn.right;return i||r||o||s})}var BC=class{constructor(e,n,i,r){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let n=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();VC(n,[{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}},zG=(()=>{let e=class e{constructor(i,r,o,s){this._scrollDispatcher=i,this._viewportRuler=r,this._ngZone=o,this.noop=()=>new og,this.close=a=>new LC(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new PC(this._viewportRuler,this._document),this.reposition=a=>new BC(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=s}};e.\u0275fac=function(r){return new(r||e)(R(to),R(Gn),R(ee),R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Tn=class{constructor(e){if(this.scrollStrategy=new og,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let n=Object.keys(e);for(let i of n)e[i]!==void 0&&(this[i]=e[i])}}};var jC=class{constructor(e,n){this.connectionPair=e,this.scrollableViewProperties=n}};var k3=(()=>{let e=class e{constructor(i){this._attachedOverlays=[],this._document=i}ngOnDestroy(){this.detach()}add(i){this.remove(i),this._attachedOverlays.push(i)}remove(i){let r=this._attachedOverlays.indexOf(i);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(r){return new(r||e)(R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),UG=(()=>{let e=class e extends k3{constructor(i,r){super(i),this._ngZone=r,this._keydownListener=o=>{let s=this._attachedOverlays;for(let a=s.length-1;a>-1;a--)if(s[a]._keydownEvents.observers.length>0){let c=s[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(o)):c.next(o);break}}}add(i){super.add(i),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(r){return new(r||e)(R(Fe),R(ee,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qG=(()=>{let e=class e extends k3{constructor(i,r,o){super(i),this._platform=r,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=cn(s)},this._clickListener=s=>{let a=cn(s),c=s.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let l=this._attachedOverlays.slice();for(let u=l.length-1;u>-1;u--){let d=l[u];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(x3(d.overlayElement,a)||x3(d.overlayElement,c))break;let h=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(s)):h.next(s)}}}add(i){if(super.add(i),!this._isAttached){let r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let i=this._document.body;i.removeEventListener("pointerdown",this._pointerDownListener,!0),i.removeEventListener("click",this._clickListener,!0),i.removeEventListener("auxclick",this._clickListener,!0),i.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(i.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(i){i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(r){return new(r||e)(R(Fe),R(et),R(ee,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function x3(t,e){let n=typeof ShadowRoot<"u"&&ShadowRoot,i=e;for(;i;){if(i===t)return!0;i=n&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var _d=(()=>{let e=class e{constructor(i,r){this._platform=r,this._document=i}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let i="cdk-overlay-container";if(this._platform.isBrowser||uh()){let o=this._document.querySelectorAll(`.${i}[platform="server"], .${i}[platform="test"]`);for(let s=0;sthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new K,this._outsidePointerEvents=new K,this._renders=new K,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=mr(()=>Wu(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let n=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),ri(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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),typeof n?.onDestroy=="function"&&n.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),n}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.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=X(X({},this._config),e),this._updateElementSize()}setDirection(e){this._config=mt(X({},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(){let e=this._config.direction;return e?typeof e=="string"?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;let e=this._pane.style;e.width=pi(this._config.width),e.height=pi(this._config.height),e.minWidth=pi(this._config.minWidth),e.minHeight=pi(this._config.minHeight),e.maxWidth=pi(this._config.maxWidth),e.maxHeight=pi(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?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(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,n,i){let r=ed(n||[]).filter(o=>!!o);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(ot(yt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(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(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},D3="cdk-overlay-connected-position-bounding-box",$G=/([A-Za-z%]+)$/,Oh=class{get positions(){return this._preferredPositions}constructor(e,n,i,r,o){this._viewportRuler=n,this._document=i,this._platform=r,this._overlayContainer=o,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 K,this._resizeSubscription=Me.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(D3),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){this.reapplyLastPosition();return}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();let e=this._originRect,n=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],s;for(let a of this._preferredPositions){let c=this._getOriginPoint(e,r,a),l=this._getOverlayPoint(c,n,a),u=this._getOverlayFit(l,n,i,a);if(u.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(u,l,i)){o.push({position:a,origin:c,overlayRect:n,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!s||s.overlayFit.visibleAreac&&(c=u,a=l)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Oc(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(D3),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,n)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(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,n,i){let r;if(i.originX=="center")r=e.left+e.width/2;else{let s=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r=i.originX=="start"?s:a}n.left<0&&(r-=n.left);let o;return i.originY=="center"?o=e.top+e.height/2:o=i.originY=="top"?e.top:e.bottom,n.top<0&&(o-=n.top),{x:r,y:o}}_getOverlayPoint(e,n,i){let r;i.overlayX=="center"?r=-n.width/2:i.overlayX==="start"?r=this._isRtl()?-n.width:0:r=this._isRtl()?0:-n.width;let o;return i.overlayY=="center"?o=-n.height/2:o=i.overlayY=="top"?0:-n.height,{x:e.x+r,y:e.y+o}}_getOverlayFit(e,n,i,r){let o=S3(n),{x:s,y:a}=e,c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(s+=c),l&&(a+=l);let u=0-s,d=s+o.width-i.width,h=0-a,f=a+o.height-i.height,p=this._subtractOverflows(o.width,u,d),m=this._subtractOverflows(o.height,h,f),v=p*m;return{visibleArea:v,isCompletelyWithinViewport:o.width*o.height===v,fitsInViewportVertically:m===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(e,n,i){if(this._hasFlexibleDimensions){let r=i.bottom-n.y,o=i.right-n.x,s=E3(this._overlayRef.getConfig().minHeight),a=E3(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportVertically||s!=null&&s<=r,l=e.fitsInViewportHorizontally||a!=null&&a<=o;return c&&l}return!1}_pushOverlayOnScreen(e,n,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let r=S3(n),o=this._viewportRect,s=Math.max(e.x+r.width-o.width,0),a=Math.max(e.y+r.height-o.height,0),c=Math.max(o.top-i.top-e.y,0),l=Math.max(o.left-i.left-e.x,0),u=0,d=0;return r.width<=o.width?u=l||-s:u=e.xp&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-p/2)}let c=n.overlayX==="start"&&!r||n.overlayX==="end"&&r,l=n.overlayX==="end"&&!r||n.overlayX==="start"&&r,u,d,h;if(l)h=i.width-e.x+this._viewportMargin*2,u=e.x-this._viewportMargin;else if(c)d=e.x,u=i.right-e.x;else{let f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=f*2,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_setBoundingBoxStyles(e,n){let i=this._calculateBoundingBoxRect(e,n);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=pi(i.height),r.top=pi(i.top),r.bottom=pi(i.bottom),r.width=pi(i.width),r.left=pi(i.left),r.right=pi(i.right),n.overlayX==="center"?r.alignItems="center":r.alignItems=n.overlayX==="end"?"flex-end":"flex-start",n.overlayY==="center"?r.justifyContent="center":r.justifyContent=n.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=pi(o)),s&&(r.maxWidth=pi(s))}this._lastBoundingBoxSize=i,Oc(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Oc(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Oc(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,n){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){let u=this._viewportRuler.getViewportScrollPosition();Oc(i,this._getExactOverlayY(n,e,u)),Oc(i,this._getExactOverlayX(n,e,u))}else i.position="static";let a="",c=this._getOffset(n,"x"),l=this._getOffset(n,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=pi(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=pi(s.maxWidth):o&&(i.maxWidth="")),Oc(this._pane.style,i)}_getExactOverlayY(e,n,i){let r={top:"",bottom:""},o=this._getOverlayPoint(n,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),e.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;r.bottom=`${s-(o.y+this._overlayRect.height)}px`}else r.top=pi(o.y);return r}_getExactOverlayX(e,n,i){let r={left:"",right:""},o=this._getOverlayPoint(n,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let s;if(this._isRtl()?s=e.overlayX==="end"?"left":"right":s=e.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;r.right=`${a-(o.x+this._overlayRect.width)}px`}else r.left=pi(o.x);return r}_getScrollVisibility(){let e=this._getOriginRect(),n=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:C3(e,i),isOriginOutsideView:VC(e,i),isOverlayClipped:C3(n,i),isOverlayOutsideView:VC(n,i)}}_subtractOverflows(e,...n){return n.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,n=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+n-this._viewportMargin,width:e-2*this._viewportMargin,height:n-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,n){return n==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&ed(e).forEach(n=>{n!==""&&this._appliedPanelClasses.indexOf(n)===-1&&(this._appliedPanelClasses.push(n),this._pane.classList.add(n))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof ce)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let n=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+n,height:i,width:n}}};function Oc(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function E3(t){if(typeof t!="number"&&t!=null){let[e,n]=t.split($G);return!n||n==="px"?parseFloat(e):null}return t||null}function S3(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function WG(t,e){return t===e?!0:t.isOriginClipped===e.isOriginClipped&&t.isOriginOutsideView===e.isOriginOutsideView&&t.isOverlayClipped===e.isOverlayClipped&&t.isOverlayOutsideView===e.isOverlayOutsideView}var I3="cdk-global-overlay-wrapper",HC=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let n=e.getConfig();this._overlayRef=e,this._width&&!n.width&&e.updateSize({width:this._width}),this._height&&!n.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(I3),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="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._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,c=(r==="100%"||r==="100vw")&&(!s||s==="100%"||s==="100vw"),l=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),u=this._xPosition,d=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",f="",p="",m="";c?m="flex-start":u==="center"?(m="center",h?p=d:f=d):h?u==="left"||u==="end"?(m="flex-end",f=d):(u==="right"||u==="start")&&(m="flex-start",p=d):u==="left"||u==="start"?(m="flex-start",f=d):(u==="right"||u==="end")&&(m="flex-end",p=d),e.position=this._cssPosition,e.marginLeft=c?"0":f,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=c?"0":p,n.justifyContent=m,n.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,i=n.style;n.classList.remove(I3),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},GG=(()=>{let e=class e{constructor(i,r,o,s){this._viewportRuler=i,this._document=r,this._platform=o,this._overlayContainer=s}global(){return new HC}flexibleConnectedTo(i){return new Oh(i,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(r){return new(r||e)(R(Gn),R(Fe),R(et),R(_d))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),YG=0,Lt=(()=>{let e=class e{constructor(i,r,o,s,a,c,l,u,d,h,f,p){this.scrollStrategies=i,this._overlayContainer=r,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=a,this._injector=c,this._ngZone=l,this._document=u,this._directionality=d,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=p}create(i){let r=this._createHostElement(),o=this._createPaneElement(r),s=this._createPortalOutlet(o),a=new Tn(i);return a.direction=a.direction||this._directionality.value,new Rs(s,r,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Fi))}position(){return this._positionBuilder}_createPaneElement(i){let r=this._document.createElement("div");return r.id=`cdk-overlay-${YG++}`,r.classList.add("cdk-overlay-pane"),i.appendChild(r),r}_createHostElement(){let i=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalOutlet(i){return this._appRef||(this._appRef=this._injector.get(Cn)),new Rh(i,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(r){return new(r||e)(R(zG),R(_d),R(Wr),R(GG),R(UG),R(Je),R(ee),R(Fe),R($t),R(Bo),R(qG),R(jt,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),QG=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],M3=new q("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=B(Lt);return()=>t.scrollStrategies.reposition()}}),Nh=(()=>{let e=class e{constructor(i){this.elementRef=i}};e.\u0275fac=function(r){return new(r||e)(g(ce))},e.\u0275dir=te({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let t=e;return t})(),zC=(()=>{let e=class e{get offsetX(){return this._offsetX}set offsetX(i){this._offsetX=i,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(i){this._offsetY=i,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(i){this._disposeOnNavigation=i}constructor(i,r,o,s,a){this._overlay=i,this._dir=a,this._backdropSubscription=Me.EMPTY,this._attachSubscription=Me.EMPTY,this._detachSubscription=Me.EMPTY,this._positionSubscription=Me.EMPTY,this._disposeOnNavigation=!1,this._ngZone=B(ee),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new oe,this.positionChange=new oe,this.attach=new oe,this.detach=new oe,this.overlayKeydown=new oe,this.overlayOutsideClick=new oe,this._templatePortal=new Ki(r,o),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(i){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),i.origin&&this.open&&this._position.apply()),i.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=QG);let i=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=i.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=i.detachments().subscribe(()=>this.detach.emit()),i.keydownEvents().subscribe(r=>{this.overlayKeydown.next(r),r.keyCode===27&&!this.disableClose&&!zt(r)&&(r.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(r=>{let o=this._getOriginElement(),s=cn(r);(!o||o!==s&&!o.contains(s))&&this.overlayOutsideClick.next(r)})}_buildConfig(){let i=this._position=this.positionStrategy||this._createPositionStrategy(),r=new Tn({direction:this._dir,positionStrategy:i,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(r.width=this.width),(this.height||this.height===0)&&(r.height=this.height),(this.minWidth||this.minWidth===0)&&(r.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(r.minHeight=this.minHeight),this.backdropClass&&(r.backdropClass=this.backdropClass),this.panelClass&&(r.panelClass=this.panelClass),r}_updatePositionStrategy(i){let r=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return i.setOrigin(this._getOrigin()).withPositions(r).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let i=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(i),i}_getOrigin(){return this.origin instanceof Nh?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Nh?this.origin.elementRef.nativeElement:this.origin instanceof ce?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(i=>{this.backdropClick.emit(i)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(N_(()=>this.positionChange.observers.length>0)).subscribe(i=>{this._ngZone.run(()=>this.positionChange.emit(i)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(g(Lt),g(Rt),g(qt),g(M3),g($t,8))},e.\u0275dir=te({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Ee],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Ee],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Ee],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Ee],push:[2,"cdkConnectedOverlayPush","push",Ee],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Ee]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[nt,lt]});let t=e;return t})();function KG(t){return()=>t.scrollStrategies.reposition()}var XG={provide:M3,deps:[Lt],useFactory:KG},An=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[Lt,XG],imports:[Ea,Kn,Ec,Ec]});let t=e;return t})();var dt=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(dt||{}),$o="*";function Yt(t,e){return{type:dt.Trigger,name:t,definitions:e,options:{}}}function Et(t,e=null){return{type:dt.Animate,styles:e,timings:t}}function T3(t,e=null){return{type:dt.Group,steps:t,options:e}}function A3(t,e=null){return{type:dt.Sequence,steps:t,options:e}}function Ue(t){return{type:dt.Style,styles:t,offset:null}}function It(t,e,n){return{type:dt.State,name:t,styles:e,options:n}}function Va(t){return{type:dt.Keyframes,steps:t}}function Ct(t,e,n=null){return{type:dt.Transition,expr:t,animation:e,options:n}}function sg(t=null){return{type:dt.AnimateChild,options:t}}function ag(t,e,n=null){return{type:dt.Query,selector:t,animation:e,options:n}}var La=class{constructor(e=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(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(){queueMicrotask(()=>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,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let n=e=="start"?this._onStartFns:this._onDoneFns;n.forEach(i=>i()),n.length=0}},Fh=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let n=0,i=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,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){let n=e*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,n/i.totalTime):1;i.setPosition(r)})}getPosition(){let e=this.players.reduce((n,i)=>n===null||i.totalTime>n.totalTime?i:n,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let n=e=="start"?this._onStartFns:this._onDoneFns;n.forEach(i=>i()),n.length=0}},cg="!";var UC=class{constructor(e){this._box=e,this._destroyed=new K,this._resizeSubject=new K,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(n=>this._resizeSubject.next(n)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new $e(n=>{let i=this._resizeSubject.subscribe(n);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),i.unsubscribe(),this._elementObservables.delete(e)}}).pipe(We(n=>n.some(i=>i.target===e)),Iu({bufferSize:1,refCount:!0}),ot(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},R3=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=B(ee),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,i]of this._observers)i.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(i,r){let o=r?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new UC(o)),this._observers.get(o).observe(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ZG=["notch"],JG=["matFormFieldNotchedOutline",""],eY=["*"],tY=["textField"],iY=["iconPrefixContainer"],nY=["textPrefixContainer"],rY=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],oY=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function sY(t,e){t&1&&xe(0,"span",19)}function aY(t,e){if(t&1&&(D(0,"label",18),ke(1,1),ve(2,sY,1,0,"span",19),I()),t&2){let n=se(2);ie("floating",n._shouldLabelFloat())("monitorResize",n._hasOutline())("id",n._labelId),Ve("for",n._control.disableAutomaticLabeling?null:n._control.id),A(2),tt(!n.hideRequiredMarker&&n._control.required?2:-1)}}function cY(t,e){if(t&1&&ve(0,aY,3,5,"label",18),t&2){let n=se();tt(n._hasFloatingLabel()?0:-1)}}function lY(t,e){t&1&&xe(0,"div",5)}function dY(t,e){}function uY(t,e){if(t&1&&ve(0,dY,0,0,"ng-template",11),t&2){se(2);let n=Pi(1);ie("ngTemplateOutlet",n)}}function hY(t,e){if(t&1&&(D(0,"div",7),ve(1,uY,1,1,null,11),I()),t&2){let n=se();ie("matFormFieldNotchedOutlineOpen",n._shouldLabelFloat()),A(),tt(n._forceDisplayInfixLabel()?-1:1)}}function fY(t,e){t&1&&(D(0,"div",8,2),ke(2,2),I())}function pY(t,e){t&1&&(D(0,"div",9,3),ke(2,3),I())}function mY(t,e){}function gY(t,e){if(t&1&&ve(0,mY,0,0,"ng-template",11),t&2){se();let n=Pi(1);ie("ngTemplateOutlet",n)}}function vY(t,e){t&1&&(D(0,"div",12),ke(1,4),I())}function bY(t,e){t&1&&(D(0,"div",13),ke(1,5),I())}function _Y(t,e){t&1&&xe(0,"div",14)}function yY(t,e){if(t&1&&(D(0,"div",16),ke(1,6),I()),t&2){let n=se();ie("@transitionMessages",n._subscriptAnimationState)}}function wY(t,e){if(t&1&&(D(0,"mat-hint",20),z(1),I()),t&2){let n=se(2);ie("id",n._hintLabelId),A(),Pt(n.hintLabel)}}function CY(t,e){if(t&1&&(D(0,"div",17),ve(1,wY,2,2,"mat-hint",20),ke(2,7),xe(3,"div",21),ke(4,8),I()),t&2){let n=se();ie("@transitionMessages",n._subscriptAnimationState),A(),tt(n.hintLabel?1:-1)}}var Wo=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["mat-label"]],standalone:!0});let t=e;return t})();var xY=new q("MatError");var DY=0,O3=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${DY++}`}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(r,o){r&2&&(pr("id",o.id),Ve("align",null),Oe("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let t=e;return t})(),EY=new q("MatPrefix");var H3=new q("MatSuffix"),z3=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(i){this._isText=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[Ye([{provide:H3,useExisting:e}])]});let t=e;return t})(),U3=new q("FloatingLabelParent"),N3=(()=>{let e=class e{get floating(){return this._floating}set floating(i){this._floating=i,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(i){this._monitorResize=i,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(i){this._elementRef=i,this._floating=!1,this._monitorResize=!1,this._resizeObserver=B(R3),this._ngZone=B(ee),this._parent=B(U3),this._resizeSubscription=new Me}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return SY(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}};e.\u0275fac=function(r){return new(r||e)(g(ce))},e.\u0275dir=te({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(r,o){r&2&&Oe("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let t=e;return t})();function SY(t){let e=t;if(e.offsetParent!==null)return e.scrollWidth;let n=e.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);let i=n.scrollWidth;return n.remove(),i}var F3="mdc-line-ripple--active",lg="mdc-line-ripple--deactivating",P3=(()=>{let e=class e{constructor(i,r){this._elementRef=i,this._handleTransitionEnd=o=>{let s=this._elementRef.nativeElement.classList,a=s.contains(lg);o.propertyName==="opacity"&&a&&s.remove(F3,lg)},r.runOutsideAngular(()=>{i.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let i=this._elementRef.nativeElement.classList;i.remove(lg),i.add(F3)}deactivate(){this._elementRef.nativeElement.classList.add(lg)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(ee))},e.\u0275dir=te({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let t=e;return t})(),L3=(()=>{let e=class e{constructor(i,r){this._elementRef=i,this._ngZone=r,this.open=!1}ngAfterViewInit(){let i=this._elementRef.nativeElement.querySelector(".mdc-floating-label");i?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(i.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>i.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(i){!this.open||!i?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${i}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(ee))},e.\u0275cmp=re({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(r,o){if(r&1&&ze(ZG,5),r&2){let s;pe(s=me())&&(o._notch=s.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(r,o){r&2&&Oe("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[Ne],attrs:JG,ngContentSelectors:eY,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(r,o){r&1&&(at(),xe(0,"div",1),D(1,"div",2,0),ke(3),I(),xe(4,"div",3))},encapsulation:2,changeDetection:0});let t=e;return t})(),IY={transitionMessages:Yt("transitionMessages",[It("enter",Ue({opacity:1,transform:"translateY(0%)"})),Ct("void => enter",[Ue({opacity:0,transform:"translateY(-5px)"}),Et("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},yd=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e});let t=e;return t})();var Os=new q("MatFormField"),kY=new q("MAT_FORM_FIELD_DEFAULT_OPTIONS"),V3=0,B3="fill",MY="auto",j3="fixed",TY="translateY(-50%)",Rn=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(i){this._hideRequiredMarker=wi(i)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||MY}set floatLabel(i){i!==this._floatLabel&&(this._floatLabel=i,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(i){let r=this._appearance,o=i||this._defaults?.appearance||B3;this._appearance=o,this._appearance==="outline"&&this._appearance!==r&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||j3}set subscriptSizing(i){this._subscriptSizing=i||this._defaults?.subscriptSizing||j3}get hintLabel(){return this._hintLabel}set hintLabel(i){this._hintLabel=i,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(i){this._explicitFormFieldControl=i}constructor(i,r,o,s,a,c,l,u){this._elementRef=i,this._changeDetectorRef=r,this._dir=s,this._platform=a,this._defaults=c,this._animationMode=l,this._labelChild=bM(Wo),this._hideRequiredMarker=!1,this.color="primary",this._appearance=B3,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${V3++}`,this._hintLabelId=`mat-mdc-hint-${V3++}`,this._subscriptAnimationState="",this._destroyed=new K,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._injector=B(Je),this.getLabelId=Cs(()=>this._hasFloatingLabel()?this._labelId:null),this._hasFloatingLabel=Cs(()=>!!this._labelChild()),c&&(c.appearance&&(this.appearance=c.appearance),this._hideRequiredMarker=!!c?.hideRequiredMarker,c.color&&(this.color=c.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){let i=this._control;i.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${i.controlType}`),i.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),i.ngControl&&i.ngControl.valueChanges&&i.ngControl.valueChanges.pipe(ot(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(i=>!i._isText),this._hasTextPrefix=!!this._prefixChildren.find(i=>i._isText),this._hasIconSuffix=!!this._suffixChildren.find(i=>!i._isText),this._hasTextSuffix=!!this._suffixChildren.find(i=>i._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),yt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),Wu(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(ot(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(i){let r=this._control?this._control.ngControl:null;return r&&r[i]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let i=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&i.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,o=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?i.push(r.id):this._hintLabel&&i.push(this._hintLabelId),o&&i.push(o.id)}else this._errorChildren&&i.push(...this._errorChildren.map(r=>r.id));this._control.setDescribedByIds(i)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let i=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){i.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let r=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,s=r?.getBoundingClientRect().width??0,a=o?.getBoundingClientRect().width??0,c=this._dir.value==="rtl"?"-1":"1",l=`${s+a}px`,d=`calc(${c} * (${l} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;i.style.transform=`var( + `)}`}var sI=c1(s1("Inject",t=>({token:t})),-1),Gr=c1(s1("Optional"),8);var fa=c1(s1("SkipSelf"),4);function Sl(t,e){let n=t.hasOwnProperty(Hp);return n?t[Hp]:null}function j7(t,e,n){if(t.length!==e.length)return!1;for(let i=0;iArray.isArray(n)?l1(n,e):e(n))}function aI(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Up(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function z7(t,e){let n=[];for(let i=0;ie;){let o=r-2;t[r]=t[o],r--}t[e]=n,t[e+1]=i}}function vm(t,e,n){let i=Hu(t,e);return i>=0?t[i|1]=n:(i=~i,U7(t,i,e,n)),i}function j_(t,e){let n=Hu(t,e);if(n>=0)return t[n|1]}function Hu(t,e){return q7(t,e,1)}function q7(t,e,n){let i=0,r=t.length>>n;for(;r!==i;){let o=i+(r-i>>1),s=t[o<e?r=o:i=o+1}return~(r<e){s=o-1;break}}}for(;o-1){let o;for(;++ro?d="":d=r[u+1].toLowerCase(),i&2&&l!==d){if(zr(i))return!1;s=!0}}}}return zr(i)||s}function zr(t){return(t&1)===0}function K7(t,e,n,i){if(e===null)return-1;let r=0;if(i||!n){let o=!1;for(;r-1)for(n++;n0?'="'+a+'"':"")+"]"}else i&8?r+="."+s:i&4&&(r+=" "+s);else r!==""&&!zr(s)&&(e+=pS(o,r),r=""),i=s,o=o||!zr(i);n++}return r!==""&&(e+=pS(o,r)),e}function iV(t){return t.map(tV).join(",")}function nV(t){let e=[],n=[],i=1,r=2;for(;i{let e=vI(t),n=mt(X({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===dI.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||To.Emulated,styles:t.styles||nn,_:null,schemas:t.schemas||null,tView:null,id:""});bI(n);let i=t.dependencies;return n.directiveDefs=gS(i,!1),n.pipeDefs=gS(i,!0),n.id=sV(n),n})}function rV(t){return ca(t)||u1(t)}function oV(t){return t!==null}function _e(t){return ju(()=>({type:t.type,bootstrap:t.bootstrap||nn,declarations:t.declarations||nn,imports:t.imports||nn,exports:t.exports||nn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function mS(t,e){if(t==null)return fs;let n={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,s,a=aa.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),e?(n[o]=a!==aa.None?[i,a]:i,e[o]=s):n[o]=i}return n}function te(t){return ju(()=>{let e=vI(t);return bI(e),e})}function ca(t){return t[E7]||null}function u1(t){return t[S7]||null}function pI(t){return t[I7]||null}function mI(t){let e=ca(t)||u1(t)||pI(t);return e!==null?e.standalone:!1}function gI(t,e){let n=t[k7]||null;if(!n&&e===!0)throw new Error(`Type ${rn(t)} does not have '\u0275mod' property.`);return n}function vI(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||fs,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||nn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:mS(t.inputs,e),outputs:mS(t.outputs),debugInfo:null}}function bI(t){t.features?.forEach(e=>e(t))}function gS(t,e){if(!t)return null;let n=e?pI:rV;return()=>(typeof t=="function"?t():t).map(i=>n(i)).filter(oV)}function sV(t){let e=0,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of n)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Ll(t){return{\u0275providers:t}}function aV(...t){return{\u0275providers:_I(!0,t),\u0275fromNgModule:!0}}function _I(t,...e){let n=[],i=new Set,r,o=s=>{n.push(s)};return l1(e,s=>{let a=s;ry(a,o,[],i)&&(r||=[],r.push(a))}),r!==void 0&&yI(r,o),n}function yI(t,e){for(let n=0;n{e(o,i)})}}function ry(t,e,n,i){if(t=Oi(t),!t)return!1;let r=null,o=lS(t),s=!o&&ca(t);if(!o&&!s){let c=t.ngModule;if(o=lS(c),o)r=c;else return!1}else{if(s&&!s.standalone)return!1;r=t}let a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)ry(l,e,n,i)}}else if(o){if(o.imports!=null&&!a){i.add(r);let l;try{l1(o.imports,u=>{ry(u,e,n,i)&&(l||=[],l.push(u))})}finally{}l!==void 0&&yI(l,e)}if(!a){let l=Sl(r)||(()=>new r);e({provide:r,useFactory:l,deps:nn},r),e({provide:lI,useValue:r,multi:!0},r),e({provide:Il,useValue:()=>R(r),multi:!0},r)}let c=o.providers;if(c!=null&&!a){let l=t;h1(c,u=>{e(u,l)})}}else return!1;return r!==t&&t.providers!==void 0}function h1(t,e){for(let n of t)nI(n)&&(n=n.\u0275providers),Array.isArray(n)?h1(n,e):e(n)}var cV=Gt({provide:String,useValue:Gt});function wI(t){return t!==null&&typeof t=="object"&&cV in t}function lV(t){return!!(t&&t.useExisting)}function dV(t){return!!(t&&t.useFactory)}function kl(t){return typeof t=="function"}function uV(t){return!!t.useClass}var bm=new q(""),Fp={},hV={},H_;function f1(){return H_===void 0&&(H_=new qp),H_}var Fi=class{},Nu=class extends Fi{get destroyed(){return this._destroyed}constructor(e,n,i,r){super(),this.parent=n,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,sy(e,s=>this.processProvider(s)),this.records.set(cI,yl(void 0,this)),r.has("environment")&&this.records.set(Fi,yl(void 0,this));let o=this.records.get(bm);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(lI,nn,_t.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=Et(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of n)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Et(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let n=ra(this),i=dr(void 0),r;try{return e()}finally{ra(n),dr(i)}}get(e,n=Ru,i=_t.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(uS))return e[uS](this);i=gm(i);let r,o=ra(this),s=dr(void 0);try{if(!(i&_t.SkipSelf)){let c=this.records.get(e);if(c===void 0){let l=vV(e)&&mm(e);l&&this.injectableDefInScope(l)?c=yl(oy(e),Fp):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=i&_t.Self?f1():this.parent;return n=i&_t.Optional&&n===Ru?null:n,a.get(e,n)}catch(a){if(a.name==="NullInjectorError"){if((a[zp]=a[zp]||[]).unshift(rn(e)),o)throw a;return V7(a,e,"R3InjectorError",this.source)}else throw a}finally{dr(s),ra(o)}}resolveInjectorInitializers(){let e=Et(null),n=ra(this),i=dr(void 0),r;try{let o=this.get(Il,nn,_t.Self);for(let s of o)s()}finally{ra(n),dr(i),Et(e)}}toString(){let e=[],n=this.records;for(let i of n.keys())e.push(rn(i));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ge(205,!1)}processProvider(e){e=Oi(e);let n=kl(e)?e:Oi(e&&e.provide),i=pV(e);if(!kl(e)&&e.multi===!0){let r=this.records.get(n);r||(r=yl(void 0,Fp,!0),r.factory=()=>iy(r.multi),this.records.set(n,r)),n=e,r.multi.push(e)}this.records.set(n,i)}hydrate(e,n){let i=Et(null);try{return n.value===Fp&&(n.value=hV,n.value=n.factory()),typeof n.value=="object"&&n.value&&gV(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{Et(i)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=Oi(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};function oy(t){let e=mm(t),n=e!==null?e.factory:Sl(t);if(n!==null)return n;if(t instanceof q)throw new ge(204,!1);if(t instanceof Function)return fV(t);throw new ge(204,!1)}function fV(t){if(t.length>0)throw new ge(204,!1);let n=x7(t);return n!==null?()=>n.factory(t):()=>new t}function pV(t){if(wI(t))return yl(void 0,t.useValue);{let e=CI(t);return yl(e,Fp)}}function CI(t,e,n){let i;if(kl(t)){let r=Oi(t);return Sl(r)||oy(r)}else if(wI(t))i=()=>Oi(t.useValue);else if(dV(t))i=()=>t.useFactory(...iy(t.deps||[]));else if(lV(t))i=()=>R(Oi(t.useExisting));else{let r=Oi(t&&(t.useClass||t.provide));if(mV(t))i=()=>new r(...iy(t.deps));else return Sl(r)||oy(r)}return i}function yl(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function mV(t){return!!t.deps}function gV(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function vV(t){return typeof t=="function"||typeof t=="object"&&t instanceof q}function sy(t,e){for(let n of t)Array.isArray(n)?sy(n,e):n&&nI(n)?sy(n.\u0275providers,e):e(n)}function zn(t,e){t instanceof Nu&&t.assertNotDestroyed();let n,i=ra(t),r=dr(void 0);try{return e()}finally{ra(i),dr(r)}}function xI(){return rI()!==void 0||F7()!=null}function p1(t){if(!xI())throw new ge(-203,!1)}function bV(t){let e=jn.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function _V(t){return typeof t=="function"}var Oo=0,ft=1,rt=2,qi=3,qr=4,yn=5,Ml=6,$p=7,zi=8,Tl=9,Ao=10,Xt=11,Fu=12,vS=13,Vl=14,Hn=15,oc=16,wl=17,ps=18,_m=19,DI=20,oa=21,Pp=22,ur=23,on=25,m1=1;var sc=7,Wp=8,Al=9,Ui=10,Gp=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Gp||{});function sa(t){return Array.isArray(t)&&typeof t[m1]=="object"}function bs(t){return Array.isArray(t)&&t[m1]===!0}function g1(t){return(t.flags&4)!==0}function ym(t){return t.componentOffset>-1}function wm(t){return(t.flags&1)===1}function ms(t){return!!t.template}function ay(t){return(t[rt]&512)!==0}var cy=class{constructor(e,n,i){this.previousValue=e,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}};function EI(t,e,n,i){e!==null?e.applyValueToInputSignal(e,i):t[n]=i}function lt(){return SI}function SI(t){return t.type.prototype.ngOnChanges&&(t.setInput=wV),yV}lt.ngInherit=!0;function yV(){let t=kI(this),e=t?.current;if(e){let n=t.previous;if(n===fs)t.previous=e;else for(let i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}}function wV(t,e,n,i,r){let o=this.declaredInputs[i],s=kI(t)||CV(t,{previous:fs,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new cy(l&&l.currentValue,n,c===fs),EI(t,e,r,n)}var II="__ngSimpleChanges__";function kI(t){return t[II]||null}function CV(t,e){return t[II]=e}var bS=null;var ko=function(t,e,n){bS?.(t,e,n)},MI="svg",xV="math";function Ro(t){for(;Array.isArray(t);)t=t[Oo];return t}function DV(t){for(;Array.isArray(t);){if(typeof t[m1]=="object")return t;t=t[Oo]}return null}function TI(t,e){return Ro(e[t])}function fr(t,e){return Ro(e[t.index])}function v1(t,e){return t.data[e]}function EV(t,e){return t[e]}function pa(t,e){let n=e[t];return sa(n)?n:n[Oo]}function SV(t){return(t[rt]&4)===4}function b1(t){return(t[rt]&128)===128}function IV(t){return bs(t[qi])}function la(t,e){return e==null?null:t[e]}function AI(t){t[wl]=0}function RI(t){t[rt]&1024||(t[rt]|=1024,b1(t)&&Cm(t))}function kV(t,e){for(;t>0;)e=e[Vl],t--;return e}function Pu(t){return!!(t[rt]&9216||t[ur]?.dirty)}function ly(t){t[Ao].changeDetectionScheduler?.notify(7),t[rt]&64&&(t[rt]|=1024),Pu(t)&&Cm(t)}function Cm(t){t[Ao].changeDetectionScheduler?.notify(0);let e=ac(t);for(;e!==null&&!(e[rt]&8192||(e[rt]|=8192,!b1(e)));)e=ac(e)}function OI(t,e){if((t[rt]&256)===256)throw new ge(911,!1);t[oa]===null&&(t[oa]=[]),t[oa].push(e)}function MV(t,e){if(t[oa]===null)return;let n=t[oa].indexOf(e);n!==-1&&t[oa].splice(n,1)}function ac(t){let e=t[qi];return bs(e)?e[qi]:e}var vt={lFrame:HI(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var NI=!1;function TV(){return vt.lFrame.elementDepthCount}function AV(){vt.lFrame.elementDepthCount++}function RV(){vt.lFrame.elementDepthCount--}function FI(){return vt.bindingsEnabled}function PI(){return vt.skipHydrationRootTNode!==null}function OV(t){return vt.skipHydrationRootTNode===t}function NV(){vt.skipHydrationRootTNode=null}function ut(){return vt.lFrame.lView}function Zt(){return vt.lFrame.tView}function Se(t){return vt.lFrame.contextLView=t,t[zi]}function Ie(t){return vt.lFrame.contextLView=null,t}function ki(){let t=LI();for(;t!==null&&t.type===64;)t=t.parent;return t}function LI(){return vt.lFrame.currentTNode}function FV(){let t=vt.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function fc(t,e){let n=vt.lFrame;n.currentTNode=t,n.isParent=e}function _1(){return vt.lFrame.isParent}function y1(){vt.lFrame.isParent=!1}function PV(){return vt.lFrame.contextLView}function VI(){return NI}function _S(t){NI=t}function LV(){return vt.lFrame.bindingIndex}function VV(t){return vt.lFrame.bindingIndex=t}function ma(){return vt.lFrame.bindingIndex++}function w1(t){let e=vt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function BV(){return vt.lFrame.inI18n}function jV(t,e){let n=vt.lFrame;n.bindingIndex=n.bindingRootIndex=t,dy(e)}function HV(){return vt.lFrame.currentDirectiveIndex}function dy(t){vt.lFrame.currentDirectiveIndex=t}function C1(t){let e=vt.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function x1(){return vt.lFrame.currentQueryIndex}function xm(t){vt.lFrame.currentQueryIndex=t}function zV(t){let e=t[ft];return e.type===2?e.declTNode:e.type===1?t[yn]:null}function BI(t,e,n){if(n&_t.SkipSelf){let r=e,o=t;for(;r=r.parent,r===null&&!(n&_t.Host);)if(r=zV(o),r===null||(o=o[Vl],r.type&10))break;if(r===null)return!1;e=r,t=o}let i=vt.lFrame=jI();return i.currentTNode=e,i.lView=t,!0}function D1(t){let e=jI(),n=t[ft];vt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function jI(){let t=vt.lFrame,e=t===null?null:t.child;return e===null?HI(t):e}function HI(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function zI(){let t=vt.lFrame;return vt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var UI=zI;function E1(){let t=zI();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function UV(t){return(vt.lFrame.contextLView=kV(t,vt.lFrame.contextLView))[zi]}function _s(){return vt.lFrame.selectedIndex}function cc(t){vt.lFrame.selectedIndex=t}function pc(){let t=vt.lFrame;return v1(t.tView,t.selectedIndex)}function No(){vt.lFrame.currentNamespace=MI}function S1(){qV()}function qV(){vt.lFrame.currentNamespace=null}function $V(){return vt.lFrame.currentNamespace}var qI=!0;function Dm(){return qI}function Em(t){qI=t}function WV(t,e,n){let{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(i){let s=SI(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}r&&(n.preOrderHooks??=[]).push(0-t,r),o&&((n.preOrderHooks??=[]).push(t,o),(n.preOrderCheckHooks??=[]).push(t,o))}function Sm(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[c]<0&&(t[wl]+=65536),(a>14>16&&(t[rt]&3)===e&&(t[rt]+=16384,yS(a,o)):yS(a,o)}var Dl=-1,lc=class{constructor(e,n,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}};function YV(t){return t instanceof lc}function QV(t){return(t.flags&8)!==0}function KV(t){return(t.flags&16)!==0}var U_={},uy=class{constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,i){i=gm(i);let r=this.injector.get(e,U_,i);return r!==U_||n===U_?r:this.parentInjector.get(e,n,i)}};function WI(t){return t!==Dl}function Yp(t){return t&32767}function XV(t){return t>>16}function Qp(t,e){let n=XV(t),i=e;for(;n>0;)i=i[Vl],n--;return i}var hy=!0;function wS(t){let e=hy;return hy=t,e}var ZV=256,GI=ZV-1,YI=5,JV=0,Mo={};function eB(t,e,n){let i;typeof n=="string"?i=n.charCodeAt(0)||0:n.hasOwnProperty(Tu)&&(i=n[Tu]),i==null&&(i=n[Tu]=JV++);let r=i&GI,o=1<>YI)]|=o}function Kp(t,e){let n=QI(t,e);if(n!==-1)return n;let i=e[ft];i.firstCreatePass&&(t.injectorIndex=e.length,q_(i.data,t),q_(e,null),q_(i.blueprint,null));let r=I1(t,e),o=t.injectorIndex;if(WI(r)){let s=Yp(r),a=Qp(r,e),c=a[ft].data;for(let l=0;l<8;l++)e[o+l]=a[s+l]|c[s+l]}return e[o+8]=r,o}function q_(t,e){t.push(0,0,0,0,0,0,0,0,e)}function QI(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function I1(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;r!==null;){if(i=ek(r),i===null)return Dl;if(n++,r=r[Vl],i.injectorIndex!==-1)return i.injectorIndex|n<<16}return Dl}function fy(t,e,n){eB(t,e,n)}function tB(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let n=t.attrs;if(n){let i=n.length,r=0;for(;r>20,d=i?a:a+u,h=r?a+u:l;for(let f=d;f=c&&p.type===n)return f}if(r){let f=s[c];if(f&&ms(f)&&f.type===n)return c}return null}function dc(t,e,n,i){let r=t[n],o=e.data;if(YV(r)){let s=r;s.resolving&&T7(M7(o[n]));let a=wS(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?dr(s.injectImpl):null,u=BI(t,i,_t.Default);try{r=t[n]=s.factory(void 0,o,t,i),e.firstCreatePass&&n>=i.directiveStart&&WV(n,o[n],e)}finally{l!==null&&dr(l),wS(a),s.resolving=!1,UI()}}return r}function nB(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Tu)?t[Tu]:void 0;return typeof e=="number"?e>=0?e&GI:rB:e}function CS(t,e,n){let i=1<>YI)]&i)}function xS(t,e){return!(t&_t.Self)&&!(t&_t.Host&&e)}var rc=class{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,i){return ZI(this._tNode,this._lView,e,gm(i),n)}};function rB(){return new rc(ki(),ut())}function Ft(t){return ju(()=>{let e=t.prototype.constructor,n=e[Hp]||py(e),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[Hp]||py(r);if(o&&o!==n)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function py(t){return JS(t)?()=>{let e=py(Oi(t));return e&&e()}:Sl(t)}function oB(t,e,n,i,r){let o=t,s=e;for(;o!==null&&s!==null&&s[rt]&2048&&!(s[rt]&512);){let a=JI(o,s,n,i|_t.Self,Mo);if(a!==Mo)return a;let c=o.parent;if(!c){let l=s[DI];if(l){let u=l.get(n,Mo,i);if(u!==Mo)return u}c=ek(s),s=s[Vl]}o=c}return r}function ek(t){let e=t[ft],n=e.type;return n===2?e.declTNode:n===1?t[yn]:null}function wn(t){return tB(ki(),t)}function DS(t,e=null,n=null,i){let r=tk(t,e,n,i);return r.resolveInjectorInitializers(),r}function tk(t,e=null,n=null,i,r=new Set){let o=[n||nn,aV(t)];return i=i||(typeof t=="object"?void 0:rn(t)),new Nu(o,e||f1(),i||null,r)}var nc=class nc{static create(e,n){if(Array.isArray(e))return DS({name:""},n,e,"");{let i=e.name??"";return DS({name:i},e.parent,e.providers,i)}}};nc.THROW_IF_NOT_FOUND=Ru,nc.NULL=new qp,nc.\u0275prov=U({token:nc,providedIn:"any",factory:()=>R(cI)}),nc.__NG_ELEMENT_ID__=-1;var Je=nc;var sB=new q("");sB.__NG_ELEMENT_ID__=t=>{let e=ki();if(e===null)throw new ge(204,!1);if(e.type&2)return e.value;if(t&_t.Optional)return null;throw new ge(204,!1)};var aB="ngOriginalError";function $_(t){return t[aB]}var Im=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=cB,e.__NG_ENV_ID__=i=>i;let t=e;return t})(),my=class extends Im{constructor(e){super(),this._lView=e}onDestroy(e){return OI(this._lView,e),()=>MV(this._lView,e)}};function cB(){return new my(ut())}var Fo=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Lt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=U({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var gy=class extends K{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,xI()&&(this.destroyRef=B(Im,{optional:!0})??void 0,this.pendingTasks=B(Fo,{optional:!0})??void 0)}emit(e){let n=Et(null);try{super.next(e)}finally{Et(n)}}subscribe(e,n,i){let r=e,o=n||(()=>null),s=i;if(e&&typeof e=="object"){let c=e;r=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:r,error:o,complete:s});return e instanceof Me&&e.add(a),a}wrapInTimeout(e){return n=>{let i=this.pendingTasks?.add();setTimeout(()=>{e(n),i!==void 0&&this.pendingTasks?.remove(i)})}}},oe=gy;function Xp(...t){}function ik(t){let e,n;function i(){t=Xp;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),i()})),()=>i()}function ES(t){return queueMicrotask(()=>t()),()=>{t=Xp}}var ee=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new oe(!1),this.onMicrotaskEmpty=new oe(!1),this.onStable=new oe(!1),this.onError=new oe(!1),typeof Zone>"u")throw new ge(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&n,r.shouldCoalesceRunChangeDetection=i,r.callbackScheduled=!1,uB(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ge(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ge(909,!1)}run(e,n,i){return this._inner.run(e,n,i)}runTask(e,n,i,r){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,lB,Xp,Xp);try{return o.runTask(s,n,i)}finally{o.cancelTask(s)}}runGuarded(e,n,i){return this._inner.runGuarded(e,n,i)}runOutsideAngular(e){return this._outer.run(e)}},lB={};function k1(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function dB(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{ik(()=>{t.callbackScheduled=!1,vy(t),t.isCheckStableRunning=!0,k1(t),t.isCheckStableRunning=!1})}),vy(t))}function uB(t){let e=()=>{dB(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,o,s,a)=>{if(hB(a))return n.invokeTask(r,o,s,a);try{return SS(t),n.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),IS(t)}},onInvoke:(n,i,r,o,s,a,c)=>{try{return SS(t),n.invoke(r,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!fB(a)&&e(),IS(t)}},onHasTask:(n,i,r,o)=>{n.hasTask(r,o),i===r&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,vy(t),k1(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,i,r,o)=>(n.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function vy(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function SS(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function IS(t){t._nesting--,k1(t)}var Zp=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new oe,this.onMicrotaskEmpty=new oe,this.onStable=new oe,this.onError=new oe}run(e,n,i){return e.apply(n,i)}runGuarded(e,n,i){return e.apply(n,i)}runOutsideAngular(e){return e()}runTask(e,n,i,r){return e.apply(n,i)}};function hB(t){return nk(t,"__ignore_ng_zone__")}function fB(t){return nk(t,"__scheduler_tick__")}function nk(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function pB(t="zone.js",e){return t==="noop"?new Zp:t==="zone.js"?new ee(e):t}var _n=class{constructor(){this._console=console}handleError(e){let n=this._findOriginalError(e);this._console.error("ERROR",e),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&$_(e);for(;n&&$_(n);)n=$_(n);return n||null}},mB=new q("",{providedIn:"root",factory:()=>{let t=B(ee),e=B(_n);return n=>t.runOutsideAngular(()=>e.handleError(n))}});function gB(){return Bl(ki(),ut())}function Bl(t,e){return new ce(fr(t,e))}var ce=(()=>{let e=class e{constructor(i){this.nativeElement=i}};e.__NG_ELEMENT_ID__=gB;let t=e;return t})();function rk(t){return t instanceof ce?t.nativeElement:t}function vB(){return this._results[Symbol.iterator]()}var $r=class t{get changes(){return this._changes??=new oe}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=t.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=vB)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){this.dirty=!1;let i=H7(e);(this._changesDetected=!j7(this._results,i,n))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function ok(t){return(t.flags&128)===128}var sk=new Map,bB=0;function _B(){return bB++}function yB(t){sk.set(t[_m],t)}function wB(t){sk.delete(t[_m])}var kS="__ngContext__";function da(t,e){sa(e)?(t[kS]=e[_m],yB(e)):t[kS]=e}function ak(t){return lk(t[Fu])}function ck(t){return lk(t[qr])}function lk(t){for(;t!==null&&!bs(t);)t=t[qr];return t}var by;function dk(t){by=t}function CB(){if(by!==void 0)return by;if(typeof document<"u")return document;throw new ge(210,!1)}var jl=new q("",{providedIn:"root",factory:()=>xB}),xB="ng",M1=new q(""),sn=new q("",{providedIn:"platform",factory:()=>"unknown"});var Bt=new q(""),zu=new q("",{providedIn:"root",factory:()=>CB().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var DB="h",EB="b";var SB=()=>null;function T1(t,e,n=!1){return SB(t,e,n)}var uk=!1,IB=new q("",{providedIn:"root",factory:()=>uk});var Mp;function kB(){if(Mp===void 0&&(Mp=null,jn.trustedTypes))try{Mp=jn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Mp}function km(t){return kB()?.createHTML(t)||t}var Tp;function MB(){if(Tp===void 0&&(Tp=null,jn.trustedTypes))try{Tp=jn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Tp}function MS(t){return MB()?.createScriptURL(t)||t}var gs=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ZS})`}},_y=class extends gs{getTypeName(){return"HTML"}},yy=class extends gs{getTypeName(){return"Style"}},wy=class extends gs{getTypeName(){return"Script"}},Cy=class extends gs{getTypeName(){return"URL"}},xy=class extends gs{getTypeName(){return"ResourceURL"}};function Yr(t){return t instanceof gs?t.changingThisBreaksApplicationSecurity:t}function ga(t,e){let n=TB(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${ZS})`)}return n===e}function TB(t){return t instanceof gs&&t.getTypeName()||null}function hk(t){return new _y(t)}function fk(t){return new yy(t)}function pk(t){return new wy(t)}function mk(t){return new Cy(t)}function gk(t){return new xy(t)}function AB(t){let e=new Ey(t);return RB()?new Dy(e):e}var Dy=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let n=new window.DOMParser().parseFromString(km(e),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(e):(n.removeChild(n.firstChild),n)}catch{return null}}},Ey=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let n=this.inertDocument.createElement("template");return n.innerHTML=km(e),n}};function RB(){try{return!!new window.DOMParser().parseFromString(km(""),"text/html")}catch{return!1}}var OB=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Mm(t){return t=String(t),t.match(OB)?t:"unsafe:"+t}function ys(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function Uu(...t){let e={};for(let n of t)for(let i in n)n.hasOwnProperty(i)&&(e[i]=!0);return e}var vk=ys("area,br,col,hr,img,wbr"),bk=ys("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_k=ys("rp,rt"),NB=Uu(_k,bk),FB=Uu(bk,ys("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")),PB=Uu(_k,ys("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")),TS=Uu(vk,FB,PB,NB),yk=ys("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),LB=ys("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,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),VB=ys("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"),BB=Uu(yk,LB,VB),jB=ys("script,style,template"),Sy=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let n=e.firstChild,i=!0,r=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild){r.push(n),n=UB(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=zB(n);if(o){n=o;break}n=r.pop()}}return this.buf.join("")}startElement(e){let n=AS(e).toLowerCase();if(!TS.hasOwnProperty(n))return this.sanitizedSomething=!0,!jB.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let i=e.attributes;for(let r=0;r"),!0}endElement(e){let n=AS(e).toLowerCase();TS.hasOwnProperty(n)&&!vk.hasOwnProperty(n)&&(this.buf.push(""))}chars(e){this.buf.push(RS(e))}};function HB(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function zB(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw wk(e);return e}function UB(t){let e=t.firstChild;if(e&&HB(t,e))throw wk(e);return e}function AS(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function wk(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var qB=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$B=/([^\#-~ |!])/g;function RS(t){return t.replace(/&/g,"&").replace(qB,function(e){let n=e.charCodeAt(0),i=e.charCodeAt(1);return"&#"+((n-55296)*1024+(i-56320)+65536)+";"}).replace($B,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Ap;function Ck(t,e){let n=null;try{Ap=Ap||AB(t);let i=e?String(e):"";n=Ap.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=Ap.getInertBodyElement(i)}while(i!==o);let a=new Sy().sanitizeChildren(OS(n)||n);return km(a)}finally{if(n){let i=OS(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function OS(t){return"content"in t&&WB(t)?t.content:null}function WB(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var $i=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}($i||{});function A1(t){let e=Dk();return e?e.sanitize($i.URL,t)||"":ga(t,"URL")?Yr(t):Mm(El(t))}function GB(t){let e=Dk();if(e)return MS(e.sanitize($i.RESOURCE_URL,t)||"");if(ga(t,"ResourceURL"))return MS(Yr(t));throw new ge(904,!1)}function YB(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?GB:A1}function xk(t,e,n){return YB(e,n)(t)}function Dk(){let t=ut();return t&&t[Ao].sanitizer}var QB=/^>|^->||--!>|)/g,XB="\u200B$1\u200B";function ZB(t){return t.replace(QB,e=>e.replace(KB,XB))}function Ek(t){return t instanceof Function?t():t}function Sk(t){return(t??B(Je)).get(sn)==="browser"}var vs=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(vs||{}),JB;function R1(t,e){return JB(t,e)}function Cl(t,e,n,i,r){if(i!=null){let o,s=!1;bs(i)?o=i:sa(i)&&(s=!0,i=i[Oo]);let a=Ro(i);t===0&&n!==null?r==null?Ak(e,n,a):Jp(e,n,a,r||null,!0):t===1&&n!==null?Jp(e,n,a,r||null,!0):t===2?pj(e,a,s):t===3&&e.destroyNode(a),o!=null&&gj(e,t,o,n,r)}}function ej(t,e){return t.createText(e)}function tj(t,e,n){t.setValue(e,n)}function ij(t,e){return t.createComment(ZB(e))}function Ik(t,e,n){return t.createElement(e,n)}function nj(t,e){kk(t,e),e[Oo]=null,e[yn]=null}function rj(t,e,n,i,r,o){i[Oo]=r,i[yn]=e,Rm(t,i,n,1,r,o)}function kk(t,e){e[Ao].changeDetectionScheduler?.notify(8),Rm(t,e,e[Xt],2,null,null)}function oj(t){let e=t[Fu];if(!e)return W_(t[ft],t);for(;e;){let n=null;if(sa(e))n=e[Fu];else{let i=e[Ui];i&&(n=i)}if(!n){for(;e&&!e[qr]&&e!==t;)sa(e)&&W_(e[ft],e),e=e[qi];e===null&&(e=t),sa(e)&&W_(e[ft],e),n=e&&e[qr]}e=n}}function sj(t,e,n,i){let r=Ui+i,o=n.length;i>0&&(n[r-1][qr]=e),i0&&(t[n-1][qr]=i[qr]);let o=Up(t,Ui+e);nj(i[ft],i);let s=o[ps];s!==null&&s.detachView(o[ft]),i[qi]=null,i[qr]=null,i[rt]&=-129}return i}function Tm(t,e){if(!(e[rt]&256)){let n=e[Xt];n.destroyNode&&Rm(t,e,n,3,null,null),oj(e)}}function W_(t,e){if(e[rt]&256)return;let n=Et(null);try{e[rt]&=-129,e[rt]|=256,e[ur]&&sp(e[ur]),cj(t,e),aj(t,e),e[ft].type===1&&e[Xt].destroy();let i=e[oc];if(i!==null&&bs(e[qi])){i!==e[qi]&&O1(i,e);let r=e[ps];r!==null&&r.detachView(t)}wB(e)}finally{Et(n)}}function aj(t,e){let n=t.cleanup,i=e[$p];if(n!==null)for(let o=0;o=0?i[s]():i[-s].unsubscribe(),o+=2}else{let s=i[n[o+1]];n[o].call(s)}i!==null&&(e[$p]=null);let r=e[oa];if(r!==null){e[oa]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[i.directiveStart+r];if(o===To.None||o===To.Emulated)return null}return fr(i,n)}}function Jp(t,e,n,i,r){t.insertBefore(e,n,i,r)}function Ak(t,e,n){t.appendChild(e,n)}function NS(t,e,n,i,r){i!==null?Jp(t,e,n,i,r):Ak(t,e,n)}function dj(t,e,n,i){t.removeChild(e,n,i)}function N1(t,e){return t.parentNode(e)}function uj(t,e){return t.nextSibling(e)}function Rk(t,e,n){return fj(t,e,n)}function hj(t,e,n){return t.type&40?fr(t,n):null}var fj=hj,FS;function Am(t,e,n,i){let r=Tk(t,i,e),o=e[Xt],s=i.parent||e[yn],a=Rk(s,i,e);if(r!=null)if(Array.isArray(n))for(let c=0;con&&Lk(t,e,on,!1),ko(s?2:0,r),n(i,r)}finally{cc(o),ko(s?3:1,r)}}function P1(t,e,n){if(g1(e)){let i=Et(null);try{let r=e.directiveStart,o=e.directiveEnd;for(let s=r;snull;function Ej(t,e,n,i){let r=Wk(e);r.push(n),t.firstCreatePass&&Gk(t).push(i,r.length-1)}function Sj(t,e,n,i,r,o){let s=e?e.injectorIndex:-1,a=0;return PI()&&(a|=128),{type:n,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function PS(t,e,n,i,r){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;i??={};let a,c=aa.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=o;if(r!==null){if(!r.hasOwnProperty(o))continue;l=r[o]}t===0?LS(i,n,l,a,c):LS(i,n,l,a)}return i}function LS(t,e,n,i,r){let o;t.hasOwnProperty(n)?(o=t[n]).push(e,i):o=t[n]=[e,i],r!==void 0&&o.push(r)}function Ij(t,e,n){let i=e.directiveStart,r=e.directiveEnd,o=t.data,s=e.attrs,a=[],c=null,l=null;for(let u=i;u0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function Rj(t,e,n,i){let r=n.directiveStart,o=n.directiveEnd;ym(n)&&Bj(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||Kp(n,e),da(i,e);let s=n.initialInputs;for(let a=r;a{Cm(t.lView)},consumerOnSignalRead(){this.lView[ur]=this}});function Zj(t){let e=t[ur]??Object.create(Jj);return e.lView=t,e}var Jj=mt(X({},dl),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=ac(t.lView);for(;e&&!eM(e[ft]);)e=ac(e);e&&RI(e)},consumerOnSignalRead(){this.lView[ur]=this}});function eM(t){return t.type!==2}var eH=100;function tM(t,e=!0,n=0){let i=t[Ao],r=i.rendererFactory,o=!1;o||r.begin?.();try{tH(t,n)}catch(s){throw e&&Qk(t,s),s}finally{o||(r.end?.(),i.inlineEffectRunner?.flush())}}function tH(t,e){let n=VI();try{_S(!0),Ty(t,e);let i=0;for(;Pu(t);){if(i===eH)throw new ge(103,!1);i++,Ty(t,1)}}finally{_S(n)}}function iH(t,e,n,i){let r=e[rt];if((r&256)===256)return;let o=!1,s=!1;!o&&e[Ao].inlineEffectRunner?.flush(),D1(e);let a=!0,c=null,l=null;o||(eM(t)?(l=Yj(e),c=yu(l)):DE()===null?(a=!1,l=Zj(e),c=yu(l)):e[ur]&&(sp(e[ur]),e[ur]=null));try{AI(e),VV(t.bindingStartIndex),n!==null&&jk(t,e,n,2,i);let u=(r&3)===3;if(!o)if(u){let f=t.preOrderCheckHooks;f!==null&&Lp(e,f,null)}else{let f=t.preOrderHooks;f!==null&&Vp(e,f,0,null),z_(e,0)}if(s||nH(e),iM(e,0),t.contentQueries!==null&&$k(t,e),!o)if(u){let f=t.contentCheckHooks;f!==null&&Lp(e,f)}else{let f=t.contentHooks;f!==null&&Vp(e,f,1),z_(e,1)}_j(t,e);let d=t.components;d!==null&&rM(e,d,0);let h=t.viewQuery;if(h!==null&&My(2,h,i),!o)if(u){let f=t.viewCheckHooks;f!==null&&Lp(e,f)}else{let f=t.viewHooks;f!==null&&Vp(e,f,2),z_(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Pp]){for(let f of e[Pp])f();e[Pp]=null}o||(e[rt]&=-73)}catch(u){throw o||Cm(e),u}finally{l!==null&&(rp(l,c),a&&Kj(l)),E1()}}function iM(t,e){for(let n=ak(t);n!==null;n=ck(n))for(let i=Ui;i-1&&(Lu(e,i),Up(n,i))}this._attachedToViewContainer=!1}Tm(this._lView[ft],this._lView)}onDestroy(e){OI(this._lView,e)}markForCheck(){U1(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[rt]&=-129}reattach(){ly(this._lView),this._lView[rt]|=128}detectChanges(){this._lView[rt]|=1024,tM(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ge(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=ay(this._lView),n=this._lView[oc];n!==null&&!e&&O1(n,this._lView),kk(this._lView[ft],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new ge(902,!1);this._appRef=e;let n=ay(this._lView),i=this._lView[oc];i!==null&&!n&&Mk(i,this._lView),ly(this._lView)}},Rt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=aH;let t=e;return t})(),oH=Rt,sH=class extends oH{constructor(e,n,i){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,i){let r=qu(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:i});return new uc(r)}};function aH(){return Fm(ki(),ut())}function Fm(t,e){return t.type&4?new sH(e,t,Bl(t,e)):null}var Dve=new RegExp(`^(\\d+)*(${EB}|${DB})*(.*)`);var cH=()=>null;function Ol(t,e){return cH(t,e)}var Nl=class{},oM=new q("",{providedIn:"root",factory:()=>!1});var sM=new q(""),Ay=class{},tm=class{};function lH(t){let e=Error(`No component factory found for ${rn(t)}.`);return e[dH]=t,e}var dH="ngComponent";var Ry=class{resolveComponentFactory(e){throw lH(e)}},iw=class iw{};iw.NULL=new Ry;var Wr=iw,ua=class{},va=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>uH();let t=e;return t})();function uH(){let t=ut(),e=ki(),n=pa(e.index,t);return(sa(n)?n:t)[Xt]}var hH=(()=>{let e=class e{};e.\u0275prov=U({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var VS=new Set;function Qr(t){VS.has(t)||(VS.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Ni=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Ni||{}),aM={destroy(){}};function Wu(t,e){!e&&p1(Wu);let n=e?.injector??B(Je);return Sk(n)?(Qr("NgAfterRender"),cM(t,n,!1,e?.phase??Ni.MixedReadWrite)):aM}function ri(t,e){!e&&p1(ri);let n=e?.injector??B(Je);return Sk(n)?(Qr("NgAfterNextRender"),cM(t,n,!0,e?.phase??Ni.MixedReadWrite)):aM}function fH(t,e){if(t instanceof Function)switch(e){case Ni.EarlyRead:return{earlyRead:t};case Ni.Write:return{write:t};case Ni.MixedReadWrite:return{mixedReadWrite:t};case Ni.Read:return{read:t}}return t}function cM(t,e,n,i){let r=fH(t,i),o=e.get(q1),s=o.handler??=new Ny,a=[],c=[],l=()=>{for(let f of c)s.unregister(f);u()},u=e.get(Im).onDestroy(l),d=0,h=(f,p)=>{if(!p)return;let m=n?(...b)=>(d--,d<1&&l(),p(...b)):p,v=zn(e,()=>new Oy(f,a,m));s.register(v),c.push(v),d++};return h(Ni.EarlyRead,r.earlyRead),h(Ni.Write,r.write),h(Ni.MixedReadWrite,r.mixedReadWrite),h(Ni.Read,r.read),{destroy:l}}var Oy=class{constructor(e,n,i){this.phase=e,this.pipelinedArgs=n,this.callbackFn=i,this.zone=B(ee),this.errorHandler=B(_n,{optional:!0}),B(Nl,{optional:!0})?.notify(6)}invoke(){try{let e=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,e)}catch(e){this.errorHandler?.handleError(e)}}},Ny=class{constructor(){this.executingCallbacks=!1,this.buckets={[Ni.EarlyRead]:new Set,[Ni.Write]:new Set,[Ni.MixedReadWrite]:new Set,[Ni.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let n of e)n.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},q1=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let i=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let r of i)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=U({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function im(t,e,n){let i=n?t.styles:null,r=n?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&Fk(t,n,o.join(" "))}}function yH(t,e,n){let i=t.projection=[];for(let r=0;r{let e=class e{};e.__NG_ELEMENT_ID__=CH;let t=e;return t})();function CH(){let t=ki();return dM(t,ut())}var xH=qt,lM=class extends xH{constructor(e,n,i){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=i}get element(){return Bl(this._hostTNode,this._hostLView)}get injector(){return new rc(this._hostTNode,this._hostLView)}get parentInjector(){let e=I1(this._hostTNode,this._hostLView);if(WI(e)){let n=Qp(e,this._hostLView),i=Yp(e),r=n[ft].data[i+8];return new rc(r,n)}else return new rc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=jS(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-Ui}createEmbeddedView(e,n,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let s=Ol(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,r,Rl(this._hostTNode,s)),a}createComponent(e,n,i,r,o){let s=e&&!_V(e),a;if(s)a=n;else{let p=n||{};a=p.index,i=p.injector,r=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}let c=s?e:new Fl(ca(e)),l=i||this.parentInjector;if(!o&&c.ngModule==null){let m=(s?l:this.parentInjector).get(Fi,null);m&&(o=m)}let u=ca(c.componentType??{}),d=Ol(this._lContainer,u?.id??null),h=d?.firstChild??null,f=c.create(l,r,h,o);return this.insertImpl(f.hostView,a,Rl(this._hostTNode,d)),f}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,i){let r=e._lView;if(IV(r)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=r[qi],l=new lM(c,c[yn],c[qi]);l.detach(l.indexOf(e))}}let o=this._adjustIndex(n),s=this._lContainer;return $u(s,r,o,i),e.attachToViewContainerRef(),aI(G_(s),o,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=jS(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),i=Lu(this._lContainer,n);i&&(Up(G_(this._lContainer),n),Tm(i[ft],i))}detach(e){let n=this._adjustIndex(e,-1),i=Lu(this._lContainer,n);return i&&Up(G_(this._lContainer),n)!=null?new uc(i):null}_adjustIndex(e,n=0){return e??this.length+n}};function jS(t){return t[Wp]}function G_(t){return t[Wp]||(t[Wp]=[])}function dM(t,e){let n,i=e[t.index];return bs(i)?n=i:(n=qk(i,e,null,t),e[t.index]=n,Nm(e,n)),EH(n,e,t,i),new lM(n,t,e)}function DH(t,e){let n=t[Xt],i=n.createComment(""),r=fr(e,t),o=N1(n,r);return Jp(n,o,i,uj(n,r),!1),i}var EH=kH,SH=()=>!1;function IH(t,e,n){return SH(t,e,n)}function kH(t,e,n,i){if(t[sc])return;let r;n.type&8?r=Ro(i):r=DH(e,n),t[sc]=r}var Py=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Ly=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let n=e.queries;if(n!==null){let i=e.contentQueries!==null?e.contentQueries[0]:n.length,r=[];for(let o=0;o0)i.push(s[a/2]);else{let l=o[a+1],u=e[-c];for(let d=Ui;de.trim())}function pM(t,e,n){t.queries===null&&(t.queries=new Vy),t.queries.track(new By(e,n))}function FH(t,e){let n=t.contentQueries||(t.contentQueries=[]),i=n.length?n[n.length-1]:-1;e!==i&&n.push(t.queries.length-1,e)}function W1(t,e){return t.queries.getByIndex(e)}function mM(t,e){let n=t[ft],i=W1(n,e);return i.crossesNgTemplate?jy(n,t,e,[]):uM(n,t,i,e)}function Pm(t){return typeof t=="function"&&t[sr]!==void 0}function Kr(t,e){Qr("NgSignals");let n=FE(t),i=n[sr];return e?.equal&&(i.equal=e.equal),n.set=r=>Eb(i,r),n.update=r=>PE(i,r),n.asReadonly=PH.bind(n),n}function PH(){let t=this[sr];if(t.readonlyFn===void 0){let e=()=>this();e[sr]=t,t.readonlyFn=e}return t.readonlyFn}function gM(t){return Pm(t)&&typeof t.set=="function"}function vM(t,e){let n,i=Db(()=>{n._dirtyCounter();let r=jH(n,t);if(e&&r===void 0)throw new ge(-951,!1);return r});return n=i[sr],n._dirtyCounter=Kr(0),n._flatValue=void 0,i}function LH(){return vM(!0,!1)}function VH(){return vM(!0,!0)}function BH(t,e){let n=t[sr];n._lView=ut(),n._queryIndex=e,n._queryList=$1(n._lView,e),n._queryList.onDirty(()=>n._dirtyCounter.update(i=>i+1))}function jH(t,e){let n=t._lView,i=t._queryIndex;if(n===void 0||i===void 0||n[rt]&4)return e?void 0:nn;let r=$1(n,i),o=mM(n,i);return r.reset(o,rk),e?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}function HS(t,e){return LH()}function HH(t,e){return VH()}var bM=(HS.required=HH,HS);function zH(t){let e=[],n=new Map;function i(r){let o=n.get(r);if(!o){let s=t(r);n.set(r,o=s.then(WH))}return o}return om.forEach((r,o)=>{let s=[];r.templateUrl&&s.push(i(r.templateUrl).then(l=>{r.template=l}));let a=typeof r.styles=="string"?[r.styles]:r.styles||[];if(r.styles=a,r.styleUrl&&r.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(r.styleUrls?.length){let l=r.styles.length,u=r.styleUrls;r.styleUrls.forEach((d,h)=>{a.push(""),s.push(i(d).then(f=>{a[l+h]=f,u.splice(u.indexOf(d),1),u.length==0&&(r.styleUrls=void 0)}))})}else r.styleUrl&&s.push(i(r.styleUrl).then(l=>{a.push(l),r.styleUrl=void 0}));let c=Promise.all(s).then(()=>GH(o));e.push(c)}),qH(),Promise.all(e).then(()=>{})}var om=new Map,UH=new Set;function qH(){let t=om;return om=new Map,t}function $H(){return om.size===0}function WH(t){return typeof t=="string"?t:t.text()}function GH(t){UH.delete(t)}function YH(t){return Object.getPrototypeOf(t.prototype).constructor}function He(t){let e=YH(t.type),n=!0,i=[t];for(;e;){let r;if(ms(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new ge(903,!1);r=e.\u0275dir}if(r){if(n){i.push(r);let s=t;s.inputs=Rp(t.inputs),s.inputTransforms=Rp(t.inputTransforms),s.declaredInputs=Rp(t.declaredInputs),s.outputs=Rp(t.outputs);let a=r.hostBindings;a&&JH(t,a);let c=r.viewQuery,l=r.contentQueries;if(c&&XH(t,c),l&&ZH(t,l),QH(t,r),w7(t.outputs,r.outputs),ms(r)&&r.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let s=0;s=0;i--){let r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Ou(r.hostAttrs,n=Ou(n,r.hostAttrs))}}function Rp(t){return t===fs?{}:t===nn?[]:t}function XH(t,e){let n=t.viewQuery;n?t.viewQuery=(i,r)=>{e(i,r),n(i,r)}:t.viewQuery=e}function ZH(t,e){let n=t.contentQueries;n?t.contentQueries=(i,r,o)=>{e(i,r,o),n(i,r,o)}:t.contentQueries=e}function JH(t,e){let n=t.hostBindings;n?t.hostBindings=(i,r)=>{e(i,r),n(i,r)}:t.hostBindings=e}function _M(t){let e=n=>{let i=(Array.isArray(t)?t:t()).map(r=>typeof r=="function"?{directive:Oi(r),inputs:fs,outputs:fs}:{directive:Oi(r.directive),inputs:zS(r.inputs),outputs:zS(r.outputs)});n.hostDirectives===null?(n.findHostDirectiveDefs=yM,n.hostDirectives=i):n.hostDirectives.unshift(...i)};return e.ngInherit=!0,e}function yM(t,e,n){if(t.hostDirectives!==null)for(let i of t.hostDirectives){let r=u1(i.directive);ez(r.declaredInputs,i.inputs),yM(r,e,n),n.set(r,i),e.push(r)}}function zS(t){if(t===void 0||t.length===0)return fs;let e={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},am=class extends Vu{constructor(e){super(),this.moduleType=e}create(e){return new sm(this.moduleType,e,[])}};function tz(t,e,n){return new sm(t,e,n)}var Hy=class extends ha{constructor(e){super(),this.componentFactoryResolver=new nm(this),this.instance=null;let n=new Nu([...e.providers,{provide:ha,useValue:this},{provide:Wr,useValue:this.componentFactoryResolver}],e.parent||f1(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Lm(t,e,n=null){return new Hy({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}function wM(t){return nz(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function iz(t,e){if(Array.isArray(t))for(let n=0;n>17&32767}function lz(t){return(t&2)==2}function dz(t,e){return t&131071|e<<17}function zy(t){return t|2}function Pl(t){return(t&131068)>>2}function Y_(t,e){return t&-131069|e<<2}function uz(t){return(t&1)===1}function Uy(t){return t|1}function hz(t,e,n,i,r,o){let s=o?e.classBindings:e.styleBindings,a=hc(s),c=Pl(s);t[i]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||Hu(d,u)>0)&&(l=!0)}else u=n;if(r)if(c!==0){let h=hc(t[a+1]);t[i+1]=Op(h,a),h!==0&&(t[h+1]=Y_(t[h+1],i)),t[a+1]=dz(t[a+1],i)}else t[i+1]=Op(a,0),a!==0&&(t[a+1]=Y_(t[a+1],i)),a=i;else t[i+1]=Op(c,0),a===0?a=i:t[c+1]=Y_(t[c+1],i),c=i;l&&(t[i+1]=zy(t[i+1])),US(t,u,i,!0),US(t,u,i,!1),fz(e,u,t,i,o),s=Op(a,c),o?e.classBindings=s:e.styleBindings=s}function fz(t,e,n,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Hu(o,e)>=0&&(n[i+1]=Uy(n[i+1]))}function US(t,e,n,i){let r=t[n+1],o=e===null,s=i?hc(r):Pl(r),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],l=t[s+1];pz(c,e)&&(a=!0,t[s+1]=i?Uy(l):zy(l)),s=i?hc(l):Pl(l)}a&&(t[n+1]=i?zy(r):Uy(r))}function pz(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Hu(t,e)>=0:!1}var Ur={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function mz(t){return t.substring(Ur.key,Ur.keyEnd)}function gz(t){return vz(t),xM(t,DM(t,0,Ur.textEnd))}function xM(t,e){let n=Ur.textEnd;return n===e?-1:(e=Ur.keyEnd=bz(t,Ur.key=e,n),DM(t,e,n))}function vz(t){Ur.key=0,Ur.keyEnd=0,Ur.value=0,Ur.valueEnd=0,Ur.textEnd=t.length}function DM(t,e,n){for(;e32;)e++;return e}function ie(t,e,n){let i=ut(),r=ma();if(hr(i,r,e)){let o=Zt(),s=pc();Ul(o,s,i,t,e,i[Xt],n,!1)}return ie}function qy(t,e,n,i,r){let o=e.inputs,s=r?"class":"style";H1(t,n,o[s],s,i)}function hi(t,e,n){return SM(t,e,n,!1),hi}function Oe(t,e){return SM(t,e,null,!0),Oe}function _i(t){IM(Dz,EM,t,!0)}function EM(t,e){for(let n=gz(e);n>=0;n=xM(e,n))vm(t,mz(e),!0)}function SM(t,e,n,i){let r=ut(),o=Zt(),s=w1(2);if(o.firstUpdatePass&&MM(o,t,s,i),e!==Un&&hr(r,s,e)){let a=o.data[_s()];TM(o,a,r,r[Xt],t,r[s+1]=Sz(e,n),i,s)}}function IM(t,e,n,i){let r=Zt(),o=w1(2);r.firstUpdatePass&&MM(r,null,o,i);let s=ut();if(n!==Un&&hr(s,o,n)){let a=r.data[_s()];if(AM(a,i)&&!kM(r,o)){let c=i?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=J_(c,n||"")),qy(r,a,s,n,i)}else Ez(r,a,s,s[Xt],s[o+1],s[o+1]=xz(t,e,n),i,o)}}function kM(t,e){return e>=t.expandoStartIndex}function MM(t,e,n,i){let r=t.data;if(r[n+1]===null){let o=r[_s()],s=kM(t,n);AM(o,i)&&e===null&&!s&&(e=!1),e=_z(r,o,e,i),hz(r,o,e,n,s,i)}}function _z(t,e,n,i){let r=C1(t),o=i?e.residualClasses:e.residualStyles;if(r===null)(i?e.classBindings:e.styleBindings)===0&&(n=Q_(null,t,e,n,i),n=Bu(n,e.attrs,i),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==r)if(n=Q_(r,t,e,n,i),o===null){let c=yz(t,e,i);c!==void 0&&Array.isArray(c)&&(c=Q_(null,t,e,c[1],i),c=Bu(c,e.attrs,i),wz(t,e,i,c))}else o=Cz(t,e,i)}return o!==void 0&&(i?e.residualClasses=o:e.residualStyles=o),n}function yz(t,e,n){let i=n?e.classBindings:e.styleBindings;if(Pl(i)!==0)return t[hc(i)]}function wz(t,e,n,i){let r=n?e.classBindings:e.styleBindings;t[hc(r)]=i}function Cz(t,e,n){let i,r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let c=t[r],l=Array.isArray(c),u=l?c[1]:c,d=u===null,h=n[r+1];h===Un&&(h=d?nn:void 0);let f=d?j_(h,i):u===i?h:void 0;if(l&&!lm(f)&&(f=j_(c,i)),lm(f)&&(a=f,s))return a;let p=t[r+1];r=s?hc(p):Pl(p)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(a=j_(c,i))}return a}function lm(t){return t!==void 0}function Sz(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=rn(Yr(t)))),t}function AM(t,e){return(t.flags&(e?8:16))!==0}function RM(t,e,n){let i=ut(),r=G1(i,t,e,n);IM(vm,EM,r,!0)}var $y=class{destroy(e){}updateValue(e,n){}swap(e,n){let i=Math.min(e,n),r=Math.max(e,n),o=this.detach(r);if(r-i>1){let s=this.detach(i);this.attach(i,o),this.attach(r,s)}else this.attach(i,o)}move(e,n){this.attach(n,this.detach(e))}};function K_(t,e,n,i,r){return t===n&&Object.is(e,i)?1:Object.is(r(t,e),r(n,i))?-1:0}function Iz(t,e,n){let i,r,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let c=e.length-1;for(;o<=s&&o<=c;){let l=t.at(o),u=e[o],d=K_(o,l,o,u,n);if(d!==0){d<0&&t.updateValue(o,u),o++;continue}let h=t.at(s),f=e[c],p=K_(s,h,c,f,n);if(p!==0){p<0&&t.updateValue(s,f),s--,c--;continue}let m=n(o,l),v=n(s,h),b=n(o,u);if(Object.is(b,v)){let C=n(c,f);Object.is(C,m)?(t.swap(o,s),t.updateValue(s,f),c--,s--):t.move(s,o),t.updateValue(o,u),o++;continue}if(i??=new dm,r??=WS(t,o,s,n),Wy(t,i,o,b))t.updateValue(o,u),o++,s++;else if(r.has(b))i.set(m,t.detach(o)),s--;else{let C=t.create(o,e[o]);t.attach(o,C),o++,s++}}for(;o<=c;)$S(t,i,n,o,e[o]),o++}else if(e!=null){let c=e[Symbol.iterator](),l=c.next();for(;!l.done&&o<=s;){let u=t.at(o),d=l.value,h=K_(o,u,o,d,n);if(h!==0)h<0&&t.updateValue(o,d),o++,l=c.next();else{i??=new dm,r??=WS(t,o,s,n);let f=n(o,d);if(Wy(t,i,o,f))t.updateValue(o,d),o++,s++,l=c.next();else if(!r.has(f))t.attach(o,t.create(o,d)),o++,s++,l=c.next();else{let p=n(o,u);i.set(p,t.detach(o)),s--}}}for(;!l.done;)$S(t,i,n,t.length,l.value),l=c.next()}for(;o<=s;)t.destroy(t.detach(s--));i?.forEach(c=>{t.destroy(c)})}function Wy(t,e,n,i){return e!==void 0&&e.has(i)?(t.attach(n,e.get(i)),e.delete(i),!0):!1}function $S(t,e,n,i,r){if(Wy(t,e,i,n(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o)}}function WS(t,e,n,i){let r=new Set;for(let o=e;o<=n;o++)r.add(i(o,t.at(o)));return r}var dm=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let n=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(e,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,n){if(this.kvMap.has(e)){let i=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,n)}else this.kvMap.set(e,n)}forEach(e){for(let[n,i]of this.kvMap)if(e(i,n),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),e(i,n)}}};function tt(t,e){Qr("NgControlFlow");let n=ut(),i=ma(),r=n[i]!==Un?n[i]:-1,o=r!==-1?um(n,on+r):void 0,s=0;if(hr(n,i,t)){let a=Et(null);try{if(o!==void 0&&Zk(o,s),t!==-1){let c=on+t,l=um(n,c),u=Ky(n[ft],c),d=Ol(l,u.tView.ssrId),h=qu(n,u,e,{dehydratedView:d});$u(l,h,s,Rl(u,d))}}finally{Et(a)}}else if(o!==void 0){let a=Xk(o,s);a!==void 0&&(a[zi]=e)}}var Gy=class{constructor(e,n,i){this.lContainer=e,this.$implicit=n,this.$index=i}get $count(){return this.lContainer.length-Ui}};function OM(t){return t}var Yy=class{constructor(e,n,i){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=i}};function ql(t,e,n,i,r,o,s,a,c,l,u,d,h){Qr("NgControlFlow");let f=ut(),p=Zt(),m=c!==void 0,v=ut(),b=a?s.bind(v[Hn][zi]):s,C=new Yy(m,b);v[on+t]=C,cm(f,p,t+1,e,n,i,r,la(p.consts,o)),m&&cm(f,p,t+2,c,l,u,d,la(p.consts,h))}var Qy=class extends $y{constructor(e,n,i){super(),this.lContainer=e,this.hostLView=n,this.templateTNode=i,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Ui}at(e){return this.getLView(e)[zi].$implicit}attach(e,n){let i=n[Ml];this.needsIndexUpdate||=e!==this.length,$u(this.lContainer,n,e,Rl(this.templateTNode,i))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,kz(this.lContainer,e)}create(e,n){let i=Ol(this.lContainer,this.templateTNode.tView.ssrId),r=qu(this.hostLView,this.templateTNode,new Gy(this.lContainer,n,e),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(e){Tm(e[ft],e),this.operationsCounter?.recordDestroy()}updateValue(e,n){this.getLView(e)[zi].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Em(!0),Ik(i,r,$V()));function Rz(t,e,n,i,r){let o=e.consts,s=la(o,i),a=zl(e,t,8,"ng-container",s);s!==null&&im(a,s,!0);let c=la(o,r);return j1(e,n,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function Po(t,e,n){let i=ut(),r=Zt(),o=t+on,s=r.firstCreatePass?Rz(o,r,i,e,n):r.data[o];fc(s,!0);let a=Oz(r,i,s,t);return i[o]=a,Dm()&&Am(r,i,a,s),da(a,i),wm(s)&&(L1(r,i,s),P1(r,s,i)),n!=null&&V1(i,s),Po}function Lo(){let t=ki(),e=Zt();return _1()?y1():(t=t.parent,fc(t,!1)),e.firstCreatePass&&(Sm(e,t),g1(t)&&e.queries.elementEnd(t)),Lo}function an(t,e,n){return Po(t,e,n),Lo(),an}var Oz=(t,e,n,i)=>(Em(!0),ij(e[Xt],""));function st(){return ut()}function pr(t,e,n){let i=ut(),r=ma();if(hr(i,r,e)){let o=Zt(),s=pc();Ul(o,s,i,t,e,i[Xt],n,!0)}return pr}function mc(t,e,n){let i=ut(),r=ma();if(hr(i,r,e)){let o=Zt(),s=pc(),a=C1(o.data),c=Yk(a,s,i);Ul(o,s,i,t,e,c,n,!0)}return mc}var hm="en-US";var Nz=hm;function Fz(t){typeof t=="string"&&(Nz=t.toLowerCase().replace(/_/g,"-"))}var Pz=(t,e,n)=>{};function le(t,e,n,i){let r=ut(),o=Zt(),s=ki();return Y1(o,r,r[Xt],s,t,e,i),le}function gc(t,e){let n=ki(),i=ut(),r=Zt(),o=C1(r.data),s=Yk(o,n,i);return Y1(r,i,s,n,t,e),gc}function Lz(t,e,n,i){let r=t.cleanup;if(r!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function Y1(t,e,n,i,r,o,s){let a=wm(i),l=t.firstCreatePass&&Gk(t),u=e[zi],d=Wk(e),h=!0;if(i.type&3||s){let m=fr(i,e),v=s?s(m):m,b=d.length,C=s?_=>s(Ro(_[i.index])):i.index,E=null;if(!s&&a&&(E=Lz(t,e,r,i.index)),E!==null){let _=E.__ngLastListenerFn__||E;_.__ngNextListenerFn__=o,E.__ngLastListenerFn__=o,h=!1}else{o=YS(i,e,u,o),Pz(m,r,o);let _=n.listen(v,r,o);d.push(o,_),l&&l.push(r,C,b,b+1)}}else o=YS(i,e,u,o);let f=i.outputs,p;if(h&&f!==null&&(p=f[r])){let m=p.length;if(m)for(let v=0;v-1?pa(t.index,e):e;U1(s,5);let a=GS(e,n,i,o),c=r.__ngNextListenerFn__;for(;c;)a=GS(e,n,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function se(t=1){return UV(t)}function Vz(t,e){let n=null,i=X7(t);for(let r=0;r(Em(!0),ej(e[Xt],i));function jt(t){return Ct("",t,""),jt}function Ct(t,e,n){let i=ut(),r=G1(i,t,e,n);return r!==Un&&Kk(i,_s(),r),Ct}function K1(t,e,n,i,r){let o=ut(),s=CM(o,t,e,n,i,r);return s!==Un&&Kk(o,_s(),s),K1}function ii(t,e,n){gM(e)&&(e=e());let i=ut(),r=ma();if(hr(i,r,e)){let o=Zt(),s=pc();Ul(o,s,i,t,e,i[Xt],n,!1)}return ii}function oi(t,e){let n=gM(t);return n&&t.set(e),n}function ni(t,e){let n=ut(),i=Zt(),r=ki();return Y1(i,n,n[Xt],r,t,e),ni}function Hz(t,e,n){let i=Zt();if(i.firstCreatePass){let r=ms(t);Xy(n,i.data,i.blueprint,r,!0),Xy(e,i.data,i.blueprint,r,!1)}}function Xy(t,e,n,i,r){if(t=Oi(t),Array.isArray(t))for(let o=0;o>20;if(kl(t)||!t.multi){let f=new lc(l,r,g),p=Z_(c,e,r?u:u+h,d);p===-1?(fy(Kp(a,s),o,c),X_(o,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{let f=Z_(c,e,u+h,d),p=Z_(c,e,u,u+h),m=f>=0&&n[f],v=p>=0&&n[p];if(r&&!v||!r&&!m){fy(Kp(a,s),o,c);let b=qz(r?Uz:zz,n.length,r,i,l);!r&&v&&(n[p].providerFactory=b),X_(o,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),n.push(b),s.push(b)}else{let b=PM(n[r?p:f],l,!r&&i);X_(o,t,f>-1?f:p,b)}!r&&i&&v&&n[p].componentProviders++}}}function X_(t,e,n,i){let r=kl(e),o=uV(e);if(r||o){let c=(o?Oi(e.useClass):e).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){let u=l.indexOf(n);u===-1?l.push(n,[i,c]):l[u+1].push(i,c)}else l.push(n,c)}}}function PM(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Z_(t,e,n,i){for(let r=n;r{n.providersResolver=(i,r)=>Hz(i,r?r(t):t,e)}}var $z=(()=>{let e=class e{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){let r=_I(!1,i.type),o=r.length>0?Lm([r],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,o)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(let i of this.cachedInjectors.values())i!==null&&i.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=U({token:e,providedIn:"environment",factory:()=>new e(R(Fi))});let t=e;return t})();function Ne(t){Qr("NgStandalone"),t.getStandaloneInjector=e=>e.get($z).getOrCreateStandaloneInjector(t)}function X1(t,e){return Fm(t,e)}var Np=null;function Wz(t){Np!==null&&(t.defaultEncapsulation!==Np.defaultEncapsulation||t.preserveWhitespaces!==Np.preserveWhitespaces)||(Np=t)}var Vm=(()=>{let e=class e{log(i){console.log(i)}warn(i){console.warn(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Z1=new q(""),Gu=new q(""),Bm=(()=>{let e=class e{constructor(i,r,o){this._ngZone=i,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,J1||(Gz(o),o.addToWindow(r)),this._watchAngularEvents(),i.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ee.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb()}});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(i)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,r,o){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),i()},r)),this._callbacks.push({doneCb:i,timeoutId:s,updateCb:o})}whenStable(i,r,o){if(o&&!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(i,r,o),this._runCallbacksIfReady()}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,r,o){return[]}};e.\u0275fac=function(r){return new(r||e)(R(ee),R(jm),R(Gu))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),jm=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(i,r){this._applications.set(i,r)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,r=!0){return J1?.findTestabilityInTree(this,i,r)??null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function Gz(t){J1=t}var J1;function vc(t){return!!t&&typeof t.then=="function"}function LM(t){return!!t&&typeof t.subscribe=="function"}var Wl=new q(""),VM=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r}),this.appInits=B(Wl,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let i=[];for(let o of this.appInits){let s=o();if(vc(s))i.push(s);else if(LM(s)){let a=new Promise((c,l)=>{s.subscribe({complete:c,error:l})});i.push(a)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{r()}).catch(o=>{this.reject(o)}),i.length===0&&r(),this.initialized=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Hm=new q("");function Yz(){NE(()=>{throw new ge(600,!1)})}function Qz(t){return t.isBoundToModule}var Kz=10;function Xz(t,e,n){try{let i=n();return vc(i)?i.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}function BM(t,e){return Array.isArray(e)?e.reduce(BM,t):X(X({},t),e)}var Cn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=B(mB),this.afterRenderEffectManager=B(q1),this.zonelessEnabled=B(oM),this.externalTestViews=new Set,this.beforeRender=new K,this.afterTick=new K,this.componentTypes=[],this.components=[],this.isStable=B(Fo).hasPendingTasks.pipe(Te(i=>!i)),this._injector=B(Fi)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,r){let o=i instanceof tm;if(!this._injector.get(VM).done){let f=!o&&mI(i),p=!1;throw new ge(405,p)}let a;o?a=i:a=this._injector.get(Wr).resolveComponentFactory(i),this.componentTypes.push(a.componentType);let c=Qz(a)?void 0:this._injector.get(ha),l=r||a.selector,u=a.create(Je.NULL,[],l,c),d=u.location.nativeElement,h=u.injector.get(Z1,null);return h?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),jp(this.components,u),h?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){this._tick(!0)}_tick(i){if(this._runningTick)throw new ge(101,!1);let r=Et(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(i)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,Et(r),this.afterTick.next()}}detectChangesInAttachedViews(i){let r=null;this._injector.destroyed||(r=this._injector.get(ua,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;oPu(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>Pu(c))))break}}attachView(i){let r=i;this._views.push(r),r.attachToAppRef(this)}detachView(i){let r=i;jp(this._views,r),r.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);let r=this._injector.get(Hm,[]);[...this._bootstrapListeners,...r].forEach(o=>o(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>jp(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new ge(406,!1);let i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function jp(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function Zz(t,e,n,i){if(!n&&!Pu(t))return;tM(t,e,n&&!i?0:1)}var Jy=class{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}},zm=(()=>{let e=class e{compileModuleSync(i){return new am(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){let r=this.compileModuleSync(i),o=gI(i),s=Ek(o.declarations).reduce((a,c)=>{let l=ca(c);return l&&a.push(new Fl(l)),a},[]);return new Jy(r,s)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Jz=new q("");function eU(t,e,n){let i=new am(n);return Promise.resolve(i)}function QS(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var tU=(()=>{let e=class e{constructor(){this.zone=B(ee),this.changeDetectionScheduler=B(Nl),this.applicationRef=B(Cn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function iU({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new ee(jM()),[{provide:ee,useFactory:t},{provide:Il,multi:!0,useFactory:()=>{let n=B(tU,{optional:!0});return()=>n.initialize()}},{provide:Il,multi:!0,useFactory:()=>{let n=B(nU);return()=>{n.initialize()}}},e===!0?{provide:sM,useValue:!0}:[]]}function jM(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var nU=(()=>{let e=class e{constructor(){this.subscription=new Me,this.initialized=!1,this.zone=B(ee),this.pendingTasks=B(Fo)}initialize(){if(this.initialized)return;this.initialized=!0;let i=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(i=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ee.assertNotInAngularZone(),queueMicrotask(()=>{i!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(i),i=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ee.assertInAngularZone(),i??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var rU=(()=>{let e=class e{constructor(){this.appRef=B(Cn),this.taskService=B(Fo),this.ngZone=B(ee),this.zonelessEnabled=B(oM),this.disableScheduling=B(sM,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Me,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Zp||!this.zoneIsDefined)}notify(i){if(!this.zonelessEnabled&&i===5)return;switch(i){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?ES:ik;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&ee.isInAngularZone())}tick(i){if(this.runningTick||this.appRef.destroyed)return;let r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(i)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(r),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,ES(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let i=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(i)}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function oU(){return typeof $localize<"u"&&$localize.locale||hm}var Yu=new q("",{providedIn:"root",factory:()=>B(Yu,_t.Optional|_t.SkipSelf)||oU()});var HM=new q(""),zM=(()=>{let e=class e{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,r){let o=pB(r?.ngZone,jM({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{let s=r?.ignoreChangesOutsideZone,a=tz(i.moduleType,this.injector,[...iU({ngZoneFactory:()=>o,ignoreChangesOutsideZone:s}),{provide:Nl,useExisting:rU}]),c=a.injector.get(_n,null);return o.runOutsideAngular(()=>{let l=o.onError.subscribe({next:u=>{c.handleError(u)}});a.onDestroy(()=>{jp(this._modules,a),l.unsubscribe()})}),Xz(c,o,()=>{let l=a.injector.get(VM);return l.runInitializers(),l.donePromise.then(()=>{let u=a.injector.get(Yu,hm);return Fz(u||hm),this._moduleDoBootstrap(a),a})})})}bootstrapModule(i,r=[]){let o=BM({},r);return eU(this.injector,o,i).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(i){let r=i.injector.get(Cn);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(o=>r.bootstrap(o));else if(i.instance.ngDoBootstrap)i.instance.ngDoBootstrap(r);else throw new ge(-403,!1);this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ge(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let i=this._injector.get(HM,null);i&&(i.forEach(r=>r()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(r){return new(r||e)(R(Je))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),Au=null,UM=new q("");function sU(t){if(Au&&!Au.get(UM,!1))throw new ge(400,!1);Yz(),Au=t;let e=t.get(zM);return lU(t),e}function ew(t,e,n=[]){let i=`Platform: ${e}`,r=new q(i);return(o=[])=>{let s=qM();if(!s||s.injector.get(UM,!1)){let a=[...n,...o,{provide:r,useValue:!0}];t?t(a):sU(aU(a,i))}return cU(r)}}function aU(t=[],e){return Je.create({name:e,providers:[{provide:bm,useValue:"platform"},{provide:HM,useValue:new Set([()=>Au=null])},...t]})}function cU(t){let e=qM();if(!e)throw new ge(401,!1);return e}function qM(){return Au?.get(zM)??null}function lU(t){t.get(M1,null)?.forEach(n=>n())}var Ge=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=dU;let t=e;return t})();function dU(t){return uU(ki(),ut(),(t&16)===16)}function uU(t,e,n){if(ym(t)&&!n){let i=pa(t.index,e);return new uc(i,i)}else if(t.type&175){let i=e[Hn];return new uc(i,e)}return null}var e1=class{constructor(){}supports(e){return wM(e)}create(e){return new t1(e)}},hU=(t,e)=>e,t1=class{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||hU}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,i=this._removalsHead,r=0,o=null;for(;n||i;){let s=!i||n&&n.currentIndex{s=this._trackByFn(r,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,r),i=!0):(i&&(n=this._verifyReinsertion(n,a,s,r)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,r++}),this.length=r;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,i,r){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,o,r)):(e=this._linkedRecords===null?null:this._linkedRecords.get(i,r),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,o,r)):e=this._addAfter(new i1(n,i),o,r)),e}_verifyReinsertion(e,n,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let r=e._prevRemoved,o=e._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,n,i),this._addToMoves(e,i),e}_moveAfter(e,n,i){return this._unlink(e),this._insertAfter(e,n,i),this._addToMoves(e,i),e}_addAfter(e,n,i){return this._insertAfter(e,n,i),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,n,i){let r=n===null?this._itHead:n._next;return e._next=r,e._prev=n,r===null?this._itTail=e:r._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new fm),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,i=e._next;return n===null?this._itHead=i:n._next=i,i===null?this._itTail=n:i._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new fm),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},i1=class{constructor(e,n){this.item=e,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},n1=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(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,n){let i;for(i=this._head;i!==null;i=i._nextDup)if((n===null||n<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){let n=e._prevDup,i=e._nextDup;return n===null?this._head=i:n._nextDup=i,i===null?this._tail=n:i._prevDup=n,this._head===null}},fm=class{constructor(){this.map=new Map}put(e){let n=e.trackById,i=this.map.get(n);i||(i=new n1,this.map.set(n,i)),i.add(e)}get(e,n){let i=e,r=this.map.get(i);return r?r.get(e,n):null}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function KS(t,e,n){let i=t.previousIndex;if(i===null)return i;let r=0;return n&&i{let e=class e{constructor(i){this.factories=i}static create(i,r){if(r!=null){let o=r.factories.slice();i=i.concat(o)}return new e(i)}static extend(i){return{provide:e,useFactory:r=>e.create(i,r||XS()),deps:[[e,new fa,new Gr]]}}find(i){let r=this.factories.find(o=>o.supports(i));if(r!=null)return r;throw new ge(901,!1)}};e.\u0275prov=U({token:e,providedIn:"root",factory:XS});let t=e;return t})();var $M=ew(null,"core",[]),WM=(()=>{let e=class e{constructor(i){}};e.\u0275fac=function(r){return new(r||e)(R(Cn))},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})();var GM=new q("");function Ee(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Si(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function Cs(t,e){Qr("NgSignals");let n=Db(t);return e?.equal&&(n[sr].equal=e.equal),n}function mr(t){let e=Et(null);try{return t()}finally{Et(e)}}var fU=new q("",{providedIn:"root",factory:()=>B(pU)}),pU=(()=>{let e=class e{};e.\u0275prov=U({token:e,providedIn:"root",factory:()=>new r1});let t=e;return t})(),r1=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=B(Fo),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(e){let n=e.creationZone;this.queues.has(n)||this.queues.set(n,new Set);let i=this.queues.get(n);i.has(e)||(this.queuedEffectCount++,i.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,n]of this.queues)e===null?this.flushQueue(n):e.run(()=>this.flushQueue(n))}flushQueue(e){for(let n of e)e.delete(n),this.queuedEffectCount--,n.run()}},o1=class{constructor(e,n,i,r,o,s){this.scheduler=e,this.effectFn=n,this.creationZone=i,this.injector=o,this.watcher=VE(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(n){this.injector.get(_n,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function tw(t,e){Qr("NgSignals"),!e?.injector&&p1(tw);let n=e?.injector??B(Je),i=e?.manualCleanup!==!0?n.get(Im):null,r=new o1(n.get(fU),t,typeof Zone>"u"?null:Zone.current,i,n,e?.allowSignalWrites??!1),o=n.get(Ge,null,{optional:!0});return!o||!(o._lView[rt]&8)?r.watcher.notify():(o._lView[Pp]??=[]).push(r.watcher.notify),r}function YM(t){let e=ca(t);if(!e)return null;let n=new Fl(e);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var eT=null;function Vo(){return eT}function tT(t){eT??=t}var Um=class{};var Fe=new q(""),cw=(()=>{let e=class e{historyGo(i){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:()=>B(gU),providedIn:"platform"});let t=e;return t})(),iT=new q(""),gU=(()=>{let e=class e extends cw{constructor(){super(),this._doc=B(Fe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Vo().getBaseHref(this._doc)}onPopState(i){let r=Vo().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",i,!1),()=>r.removeEventListener("popstate",i)}onHashChange(i){let r=Vo().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",i,!1),()=>r.removeEventListener("hashchange",i)}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(i){this._location.pathname=i}pushState(i,r,o){this._history.pushState(i,r,o)}replaceState(i,r,o){this._history.replaceState(i,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(i=0){this._history.go(i)}getState(){return this._history.state}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function lw(t,e){if(t.length==0)return e;if(e.length==0)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,n==2?t+e.substring(1):n==1?t+e:t+"/"+e}function QM(t){let e=t.match(/#|\?|$/),n=e&&e.index||t.length,i=n-(t[n-1]==="/"?1:0);return t.slice(0,i)+t.slice(n)}function xs(t){return t&&t[0]!=="?"?"?"+t:t}var Ds=(()=>{let e=class e{historyGo(i){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:()=>B(dw),providedIn:"root"});let t=e;return t})(),nT=new q(""),dw=(()=>{let e=class e extends Ds{constructor(i,r){super(),this._platformLocation=i,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??B(Fe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(i){this._removeListenerFns.push(this._platformLocation.onPopState(i),this._platformLocation.onHashChange(i))}getBaseHref(){return this._baseHref}prepareExternalUrl(i){return lw(this._baseHref,i)}path(i=!1){let r=this._platformLocation.pathname+xs(this._platformLocation.search),o=this._platformLocation.hash;return o&&i?`${r}${o}`:r}pushState(i,r,o,s){let a=this.prepareExternalUrl(o+xs(s));this._platformLocation.pushState(i,r,a)}replaceState(i,r,o,s){let a=this.prepareExternalUrl(o+xs(s));this._platformLocation.replaceState(i,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(i=0){this._platformLocation.historyGo?.(i)}};e.\u0275fac=function(r){return new(r||e)(R(cw),R(nT,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),rT=(()=>{let e=class e extends Ds{constructor(i,r){super(),this._platformLocation=i,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(i){this._removeListenerFns.push(this._platformLocation.onPopState(i),this._platformLocation.onHashChange(i))}getBaseHref(){return this._baseHref}path(i=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(i){let r=lw(this._baseHref,i);return r.length>0?"#"+r:r}pushState(i,r,o,s){let a=this.prepareExternalUrl(o+xs(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(i,r,a)}replaceState(i,r,o,s){let a=this.prepareExternalUrl(o+xs(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(i,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(i=0){this._platformLocation.historyGo?.(i)}};e.\u0275fac=function(r){return new(r||e)(R(cw),R(nT,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),Bo=(()=>{let e=class e{constructor(i){this._subject=new oe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=i;let r=this._locationStrategy.getBaseHref();this._basePath=_U(QM(KM(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(i=!1){return this.normalize(this._locationStrategy.path(i))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(i,r=""){return this.path()==this.normalize(i+xs(r))}normalize(i){return e.stripTrailingSlash(bU(this._basePath,KM(i)))}prepareExternalUrl(i){return i&&i[0]!=="/"&&(i="/"+i),this._locationStrategy.prepareExternalUrl(i)}go(i,r="",o=null){this._locationStrategy.pushState(o,"",i,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+xs(r)),o)}replaceState(i,r="",o=null){this._locationStrategy.replaceState(o,"",i,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+xs(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(i=0){this._locationStrategy.historyGo?.(i)}onUrlChange(i){return this._urlChangeListeners.push(i),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(i);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(i="",r){this._urlChangeListeners.forEach(o=>o(i,r))}subscribe(i,r,o){return this._subject.subscribe({next:i,error:r,complete:o})}};e.normalizeQueryParams=xs,e.joinWithSlash=lw,e.stripTrailingSlash=QM,e.\u0275fac=function(r){return new(r||e)(R(Ds))},e.\u0275prov=U({token:e,factory:()=>vU(),providedIn:"root"});let t=e;return t})();function vU(){return new Bo(R(Ds))}function bU(t,e){if(!t||!e.startsWith(t))return e;let n=e.substring(t.length);return n===""||["/",";","?","#"].includes(n[0])?n:e}function KM(t){return t.replace(/\/index.html$/,"")}function _U(t){if(new RegExp("^(https?:)?//").test(t)){let[,n]=t.split(/\/\/[^\/]+/);return n}return t}function $m(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let i=n.indexOf("="),[r,o]=i==-1?[n,""]:[n.slice(0,i),n.slice(i+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}var nw=/\s+/,XM=[],Wm=(()=>{let e=class e{constructor(i,r){this._ngEl=i,this._renderer=r,this.initialClasses=XM,this.stateMap=new Map}set klass(i){this.initialClasses=i!=null?i.trim().split(nw):XM}set ngClass(i){this.rawClass=typeof i=="string"?i.trim().split(nw):i}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let i=this.rawClass;if(Array.isArray(i)||i instanceof Set)for(let r of i)this._updateState(r,!0);else if(i!=null)for(let r of Object.keys(i))this._updateState(r,!!i[r]);this._applyStateDiff()}_updateState(i,r){let o=this.stateMap.get(i);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(i,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let i of this.stateMap){let r=i[0],o=i[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(i,r){i=i.trim(),i.length>0&&i.split(nw).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(va))},e.\u0275dir=te({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var rw=class{constructor(e,n,i,r){this.$implicit=e,this.ngForOf=n,this.index=i,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},xn=(()=>{let e=class e{set ngForOf(i){this._ngForOf=i,this._ngForOfDirty=!0}set ngForTrackBy(i){this._trackByFn=i}get ngForTrackBy(){return this._trackByFn}constructor(i,r,o){this._viewContainer=i,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(i){i&&(this._template=i)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let i=this._ngForOf;if(!this._differ&&i)if(0)try{}catch{}else this._differ=this._differs.find(i).create(this.ngForTrackBy)}if(this._differ){let i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}_applyChanges(i){let r=this._viewContainer;i.forEachOperation((o,s,a)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new rw(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)r.remove(s===null?void 0:s);else if(s!==null){let c=r.get(s);r.move(c,a),ZM(c,o)}});for(let o=0,s=r.length;o{let s=r.get(o.currentIndex);ZM(s,o)})}static ngTemplateContextGuard(i,r){return!0}};e.\u0275fac=function(r){return new(r||e)(g(qt),g(Rt),g(Xr))},e.\u0275dir=te({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function ZM(t,e){t.context.$implicit=e.item}var jo=(()=>{let e=class e{constructor(i,r){this._viewContainer=i,this._context=new ow,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(i){this._context.$implicit=this._context.ngIf=i,this._updateView()}set ngIfThen(i){JM("ngIfThen",i),this._thenTemplateRef=i,this._thenViewRef=null,this._updateView()}set ngIfElse(i){JM("ngIfElse",i),this._elseTemplateRef=i,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(i,r){return!0}};e.\u0275fac=function(r){return new(r||e)(g(qt),g(Rt))},e.\u0275dir=te({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),ow=class{constructor(){this.$implicit=null,this.ngIf=null}};function JM(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${rn(e)}'.`)}var uw=(()=>{let e=class e{constructor(i){this._viewContainerRef=i,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(i){if(this._shouldRecreateView(i)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(i){return!!i.ngTemplateOutlet||!!i.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(i,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(i,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}};e.\u0275fac=function(r){return new(r||e)(g(qt))},e.\u0275dir=te({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[lt]});let t=e;return t})();var Wi=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})(),hw="browser",yU="server";function Yl(t){return t===hw}function Gm(t){return t===yU}var oT=(()=>{let e=class e{};e.\u0275prov=U({token:e,providedIn:"root",factory:()=>Yl(B(sn))?new sw(B(Fe),window):new aw});let t=e;return t})(),sw=class{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let n=wU(this.document,e);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let n=e.getBoundingClientRect(),i=n.left+this.window.pageXOffset,r=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}};function wU(t,e){let n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}r=i.nextNode()}}return null}var aw=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Gl=class{};var Ku=class{},Qm=class{},Es=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(n=>{let i=n.indexOf(":");if(i>0){let r=n.slice(0,i),o=r.toLowerCase(),s=n.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,i)=>{this.setHeaderEntries(i,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,i])=>{this.setHeaderEntries(n,i)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?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(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(e.name,n);let r=(e.op==="a"?this.headers.get(n):void 0)||[];r.push(...i),this.headers.set(n,r);break;case"d":let o=e.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(e,n){let i=(Array.isArray(n)?n:[n]).map(o=>o.toString()),r=e.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var pw=class{encodeKey(e){return sT(e)}encodeValue(e){return sT(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function CU(t,e){let n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var xU=/%(\d[a-f0-9])/gi,DU={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function sT(t){return encodeURIComponent(t).replace(xU,(e,n)=>DU[n]??e)}function Ym(t){return`${t}`}var ya=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new pw,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=CU(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let i=e.fromObject[n],r=Array.isArray(i)?i.map(Ym):[Ym(i)];this.map.set(n,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(i=>{let r=e[i];Array.isArray(r)?r.forEach(o=>{n.push({param:i,value:o,op:"a"})}):n.push({param:i,value:r,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(i=>n+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(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":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(Ym(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let i=this.map.get(e.param)||[],r=i.indexOf(Ym(e.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var mw=class{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),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 EU(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function aT(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function cT(t){return typeof Blob<"u"&&t instanceof Blob}function lT(t){return typeof FormData<"u"&&t instanceof FormData}function SU(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Qu=class t{constructor(e,n,i,r){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(EU(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Es,this.context??=new mw,!this.params)this.params=new ya,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":ah.set(f,e.setHeaders[f]),l)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new t(n,i,s,{params:u,headers:l,context:d,reportProgress:c,responseType:r,withCredentials:a,transferCache:o})}},wa=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(wa||{}),Xu=class{constructor(e,n=200,i="OK"){this.headers=e.headers||new Es,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Km=class t extends Xu{constructor(e={}){super(e),this.type=wa.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Zu=class t extends Xu{constructor(e={}){super(e),this.type=wa.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},_a=class extends Xu{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},pT=200,IU=204;function fw(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Ss=(()=>{let e=class e{constructor(i){this.handler=i}request(i,r,o={}){let s;if(i instanceof Qu)s=i;else{let l;o.headers instanceof Es?l=o.headers:l=new Es(o.headers);let u;o.params&&(o.params instanceof ya?u=o.params:u=new ya({fromObject:o.params})),s=new Qu(i,r,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=we(s).pipe(us(l=>this.handler.handle(l)));if(i instanceof Qu||o.observe==="events")return a;let c=a.pipe(We(l=>l instanceof Zu));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(Te(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return c.pipe(Te(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return c.pipe(Te(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return c.pipe(Te(l=>l.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(i,r={}){return this.request("DELETE",i,r)}get(i,r={}){return this.request("GET",i,r)}head(i,r={}){return this.request("HEAD",i,r)}jsonp(i,r){return this.request("JSONP",i,{params:new ya().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(i,r={}){return this.request("OPTIONS",i,r)}patch(i,r,o={}){return this.request("PATCH",i,fw(o,r))}post(i,r,o={}){return this.request("POST",i,fw(o,r))}put(i,r,o={}){return this.request("PUT",i,fw(o,r))}};e.\u0275fac=function(r){return new(r||e)(R(Ku))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),kU=/^\)\]\}',?\n/,MU="X-Request-URL";function dT(t){if(t.url)return t.url;let e=MU.toLocaleLowerCase();return t.headers.get(e)}var TU=(()=>{let e=class e{constructor(){this.fetchImpl=B(gw,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=B(ee)}handle(i){return new $e(r=>{let o=new AbortController;return this.doRequest(i,o.signal,r).then(vw,s=>r.error(new _a({error:s}))),()=>o.abort()})}doRequest(i,r,o){return Re(this,null,function*(){let s=this.createRequestInit(i),a;try{let p=this.ngZone.runOutsideAngular(()=>this.fetchImpl(i.urlWithParams,X({signal:r},s)));AU(p),o.next({type:wa.Sent}),a=yield p}catch(p){o.error(new _a({error:p,status:p.status??0,statusText:p.statusText,url:i.urlWithParams,headers:p.headers}));return}let c=new Es(a.headers),l=a.statusText,u=dT(a)??i.urlWithParams,d=a.status,h=null;if(i.reportProgress&&o.next(new Km({headers:c,status:d,statusText:l,url:u})),a.body){let p=a.headers.get("content-length"),m=[],v=a.body.getReader(),b=0,C,E,_=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Re(this,null,function*(){for(;;){let{done:x,value:F}=yield v.read();if(x)break;if(m.push(F),b+=F.length,i.reportProgress){E=i.responseType==="text"?(E??"")+(C??=new TextDecoder).decode(F,{stream:!0}):void 0;let L=()=>o.next({type:wa.DownloadProgress,total:p?+p:void 0,loaded:b,partialText:E});_?_.run(L):L()}}}));let y=this.concatChunks(m,b);try{let x=a.headers.get("Content-Type")??"";h=this.parseBody(i,y,x)}catch(x){o.error(new _a({error:x,headers:new Es(a.headers),status:a.status,statusText:a.statusText,url:dT(a)??i.urlWithParams}));return}}d===0&&(d=h?pT:0),d>=200&&d<300?(o.next(new Zu({body:h,headers:c,status:d,statusText:l,url:u})),o.complete()):o.error(new _a({error:h,headers:c,status:d,statusText:l,url:u}))})}parseBody(i,r,o){switch(i.responseType){case"json":let s=new TextDecoder().decode(r).replace(kU,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(i){let r={},o=i.withCredentials?"include":void 0;if(i.headers.forEach((s,a)=>r[s]=a.join(",")),i.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!i.headers.has("Content-Type")){let s=i.detectContentTypeHeader();s!==null&&(r["Content-Type"]=s)}return{body:i.serializeBody(),method:i.method,headers:r,credentials:o}}concatChunks(i,r){let o=new Uint8Array(r),s=0;for(let a of i)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),gw=class{};function vw(){}function AU(t){t.then(vw,vw)}function mT(t,e){return e(t)}function RU(t,e){return(n,i)=>e.intercept(n,{handle:r=>t(r,i)})}function OU(t,e,n){return(i,r)=>zn(n,()=>e(i,o=>t(o,r)))}var NU=new q(""),bw=new q(""),FU=new q(""),gT=new q("",{providedIn:"root",factory:()=>!0});function PU(){let t=null;return(e,n)=>{t===null&&(t=(B(NU,{optional:!0})??[]).reduceRight(RU,mT));let i=B(Fo);if(B(gT)){let o=i.add();return t(e,n).pipe(So(()=>i.remove(o)))}else return t(e,n)}}var uT=(()=>{let e=class e extends Ku{constructor(i,r){super(),this.backend=i,this.injector=r,this.chain=null,this.pendingTasks=B(Fo),this.contributeToStability=B(gT)}handle(i){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(bw),...this.injector.get(FU,[])]));this.chain=r.reduceRight((o,s)=>OU(o,s,this.injector),mT)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(i,o=>this.backend.handle(o)).pipe(So(()=>this.pendingTasks.remove(r)))}else return this.chain(i,r=>this.backend.handle(r))}};e.\u0275fac=function(r){return new(r||e)(R(Qm),R(Fi))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();var LU=/^\)\]\}',?\n/;function VU(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var hT=(()=>{let e=class e{constructor(i){this.xhrFactory=i}handle(i){if(i.method==="JSONP")throw new ge(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Kt(r.\u0275loadImpl()):we(null)).pipe(Nt(()=>new $e(s=>{let a=r.build();if(a.open(i.method,i.urlWithParams),i.withCredentials&&(a.withCredentials=!0),i.headers.forEach((v,b)=>a.setRequestHeader(v,b.join(","))),i.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!i.headers.has("Content-Type")){let v=i.detectContentTypeHeader();v!==null&&a.setRequestHeader("Content-Type",v)}if(i.responseType){let v=i.responseType.toLowerCase();a.responseType=v!=="json"?v:"text"}let c=i.serializeBody(),l=null,u=()=>{if(l!==null)return l;let v=a.statusText||"OK",b=new Es(a.getAllResponseHeaders()),C=VU(a)||i.url;return l=new Km({headers:b,status:a.status,statusText:v,url:C}),l},d=()=>{let{headers:v,status:b,statusText:C,url:E}=u(),_=null;b!==IU&&(_=typeof a.response>"u"?a.responseText:a.response),b===0&&(b=_?pT:0);let y=b>=200&&b<300;if(i.responseType==="json"&&typeof _=="string"){let x=_;_=_.replace(LU,"");try{_=_!==""?JSON.parse(_):null}catch(F){_=x,y&&(y=!1,_={error:F,text:_})}}y?(s.next(new Zu({body:_,headers:v,status:b,statusText:C,url:E||void 0})),s.complete()):s.error(new _a({error:_,headers:v,status:b,statusText:C,url:E||void 0}))},h=v=>{let{url:b}=u(),C=new _a({error:v,status:a.status||0,statusText:a.statusText||"Unknown Error",url:b||void 0});s.error(C)},f=!1,p=v=>{f||(s.next(u()),f=!0);let b={type:wa.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(b.total=v.total),i.responseType==="text"&&a.responseText&&(b.partialText=a.responseText),s.next(b)},m=v=>{let b={type:wa.UploadProgress,loaded:v.loaded};v.lengthComputable&&(b.total=v.total),s.next(b)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),i.reportProgress&&(a.addEventListener("progress",p),c!==null&&a.upload&&a.upload.addEventListener("progress",m)),a.send(c),s.next({type:wa.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),i.reportProgress&&(a.removeEventListener("progress",p),c!==null&&a.upload&&a.upload.removeEventListener("progress",m)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(R(Gl))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),vT=new q(""),BU="XSRF-TOKEN",jU=new q("",{providedIn:"root",factory:()=>BU}),HU="X-XSRF-TOKEN",zU=new q("",{providedIn:"root",factory:()=>HU}),Xm=class{},UU=(()=>{let e=class e{constructor(i,r,o){this.doc=i,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let i=this.doc.cookie||"";return i!==this.lastCookieString&&(this.parseCount++,this.lastToken=$m(i,this.cookieName),this.lastCookieString=i),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(R(Fe),R(sn),R(jU))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();function qU(t,e){let n=t.url.toLowerCase();if(!B(vT)||t.method==="GET"||t.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(t);let i=B(Xm).getToken(),r=B(zU);return i!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),e(t)}var bT=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(bT||{});function $U(t,e){return{\u0275kind:t,\u0275providers:e}}function _T(...t){let e=[Ss,hT,uT,{provide:Ku,useExisting:uT},{provide:Qm,useFactory:()=>B(TU,{optional:!0})??B(hT)},{provide:bw,useValue:qU,multi:!0},{provide:vT,useValue:!0},{provide:Xm,useClass:UU}];for(let n of t)e.push(...n.\u0275providers);return Ll(e)}var fT=new q("");function yT(){return $U(bT.LegacyInterceptors,[{provide:fT,useFactory:PU},{provide:bw,useExisting:fT,multi:!0}])}var ww=class extends Um{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Cw=class t extends ww{static makeCurrent(){tT(new t)}onAndCancel(e,n,i){return e.addEventListener(n,i),()=>{e.removeEventListener(n,i)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=WU();return n==null?null:GU(n)}resetBaseElement(){Ju=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return $m(document.cookie,e)}},Ju=null;function WU(){return Ju=Ju||document.querySelector("base"),Ju?Ju.getAttribute("href"):null}function GU(t){return new URL(t,document.baseURI).pathname}var xw=class{addToWindow(e){jn.getAngularTestability=(i,r=!0)=>{let o=e.findTestabilityInTree(i,r);if(o==null)throw new ge(5103,!1);return o},jn.getAllAngularTestabilities=()=>e.getAllTestabilities(),jn.getAllAngularRootElements=()=>e.getAllRootElements();let n=i=>{let r=jn.getAllAngularTestabilities(),o=r.length,s=function(){o--,o==0&&i()};r.forEach(a=>{a.whenStable(s)})};jn.frameworkStabilizers||(jn.frameworkStabilizers=[]),jn.frameworkStabilizers.push(n)}findTestabilityInTree(e,n,i){if(n==null)return null;let r=e.getTestability(n);return r??(i?Vo().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null)}},YU=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),Jm=new q(""),xT=(()=>{let e=class e{constructor(i,r){this._zone=r,this._eventNameToPlugin=new Map,i.forEach(o=>{o.manager=this}),this._plugins=i.slice().reverse()}addEventListener(i,r,o){return this._findPluginFor(r).addEventListener(i,r,o)}getZone(){return this._zone}_findPluginFor(i){let r=this._eventNameToPlugin.get(i);if(r)return r;if(r=this._plugins.find(s=>s.supports(i)),!r)throw new ge(5101,!1);return this._eventNameToPlugin.set(i,r),r}};e.\u0275fac=function(r){return new(r||e)(R(Jm),R(ee))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),eh=class{constructor(e){this._doc=e}},_w="ng-app-id",DT=(()=>{let e=class e{constructor(i,r,o,s={}){this.doc=i,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Gm(s),this.resetHostNodes()}addStyles(i){for(let r of i)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(i){for(let r of i)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let i=this.styleNodesInDOM;i&&(i.forEach(r=>r.remove()),i.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(i){this.hostNodes.add(i);for(let r of this.getAllStyles())this.addStyleToHost(i,r)}removeHost(i){this.hostNodes.delete(i)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(i){for(let r of this.hostNodes)this.addStyleToHost(r,i)}onStyleRemoved(i){let r=this.styleRef;r.get(i)?.elements?.forEach(o=>o.remove()),r.delete(i)}collectServerRenderedStyles(){let i=this.doc.head?.querySelectorAll(`style[${_w}="${this.appId}"]`);if(i?.length){let r=new Map;return i.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(i,r){let o=this.styleRef;if(o.has(i)){let s=o.get(i);return s.usage+=r,s.usage}return o.set(i,{usage:r,elements:[]}),r}getStyleElement(i,r){let o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===i)return o.delete(r),s.removeAttribute(_w),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(_w,this.appId),i.appendChild(a),a}}addStyleToHost(i,r){let o=this.getStyleElement(i,r),s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){let i=this.hostNodes;i.clear(),i.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(R(Fe),R(jl),R(zu,8),R(sn))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),yw={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/Math/MathML"},Ew=/%COMP%/g,ET="%COMP%",QU=`_nghost-${ET}`,KU=`_ngcontent-${ET}`,XU=!0,ZU=new q("",{providedIn:"root",factory:()=>XU});function JU(t){return KU.replace(Ew,t)}function eq(t){return QU.replace(Ew,t)}function ST(t,e){return e.map(n=>n.replace(Ew,t))}var e0=(()=>{let e=class e{constructor(i,r,o,s,a,c,l,u=null){this.eventManager=i,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=Gm(c),this.defaultRenderer=new th(i,a,l,this.platformIsServer)}createRenderer(i,r){if(!i||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===To.ShadowDom&&(r=mt(X({},r),{encapsulation:To.Emulated}));let o=this.getOrCreateRenderer(i,r);return o instanceof t0?o.applyToHost(i):o instanceof ih&&o.applyStyles(),o}getOrCreateRenderer(i,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let a=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case To.Emulated:s=new t0(l,u,r,this.appId,d,a,c,h);break;case To.ShadowDom:return new Dw(l,u,i,r,a,c,this.nonce,h);default:s=new ih(l,u,r,d,a,c,h);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(R(xT),R(DT),R(jl),R(ZU),R(Fe),R(sn),R(ee),R(zu))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),th=class{constructor(e,n,i,r){this.eventManager=e,this.doc=n,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,n){return n?this.doc.createElementNS(yw[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(wT(e)?e.content:e).appendChild(n)}insertBefore(e,n,i){e&&(wT(e)?e.content:e).insertBefore(n,i)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let i=typeof e=="string"?this.doc.querySelector(e):e;if(!i)throw new ge(-5104,!1);return n||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,i,r){if(r){n=r+":"+n;let o=yw[r];o?e.setAttributeNS(o,n,i):e.setAttribute(n,i)}else e.setAttribute(n,i)}removeAttribute(e,n,i){if(i){let r=yw[i];r?e.removeAttributeNS(r,n):e.removeAttribute(`${i}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,i,r){r&(vs.DashCase|vs.Important)?e.style.setProperty(n,i,r&vs.Important?"important":""):e.style[n]=i}removeStyle(e,n,i){i&vs.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,i){e!=null&&(e[n]=i)}setValue(e,n){e.nodeValue=n}listen(e,n,i){if(typeof e=="string"&&(e=Vo().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${n}`);return this.eventManager.addEventListener(e,n,this.decoratePreventDefault(i))}decoratePreventDefault(e){return n=>{if(n==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(n)):e(n))===!1&&n.preventDefault()}}};function wT(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Dw=class extends th{constructor(e,n,i,r,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=n,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=ST(r.id,r.styles);for(let u of l){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,i){return super.insertBefore(this.nodeOrShadowRoot(e),n,i)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},ih=class extends th{constructor(e,n,i,r,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=r,this.styles=c?ST(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},t0=class extends ih{constructor(e,n,i,r,o,s,a,c){let l=r+"-"+i.id;super(e,n,i,o,s,a,c,l),this.contentAttr=JU(l),this.hostAttr=eq(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){let i=super.createElement(e,n);return super.setAttribute(i,this.contentAttr,""),i}},tq=(()=>{let e=class e extends eh{constructor(i){super(i)}supports(i){return!0}addEventListener(i,r,o){return i.addEventListener(r,o,!1),()=>this.removeEventListener(i,r,o)}removeEventListener(i,r,o){return i.removeEventListener(r,o)}};e.\u0275fac=function(r){return new(r||e)(R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),iq=(()=>{let e=class e extends eh{constructor(i){super(i),this.delegate=B(GM,{optional:!0})}supports(i){return this.delegate?this.delegate.supports(i):!1}addEventListener(i,r,o){return this.delegate.addEventListener(i,r,o)}removeEventListener(i,r,o){return this.delegate.removeEventListener(i,r,o)}};e.\u0275fac=function(r){return new(r||e)(R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),CT=["alt","control","meta","shift"],nq={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},rq={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},oq=(()=>{let e=class e extends eh{constructor(i){super(i)}supports(i){return e.parseEventName(i)!=null}addEventListener(i,r,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Vo().onAndCancel(i,s.domEventName,a))}static parseEventName(i){let r=i.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(r.pop()),a="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),a="code."),CT.forEach(u=>{let d=r.indexOf(u);d>-1&&(r.splice(d,1),a+=u+".")}),a+=s,r.length!=0||s.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(i,r){let o=nq[i.key]||i.key,s="";return r.indexOf("code.")>-1&&(o=i.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),CT.forEach(a=>{if(a!==o){let c=rq[a];c(i)&&(s+=a+".")}}),s+=o,s===r)}static eventCallback(i,r,o){return s=>{e.matchEventFullKeyCode(s,i)&&o.runGuarded(()=>r(s))}}static _normalizeKey(i){return i==="esc"?"escape":i}};e.\u0275fac=function(r){return new(r||e)(R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();function sq(){Cw.makeCurrent()}function aq(){return new _n}function cq(){return dk(document),document}var lq=[{provide:sn,useValue:hw},{provide:M1,useValue:sq,multi:!0},{provide:Fe,useFactory:cq,deps:[]}],IT=ew($M,"browser",lq),dq=new q(""),uq=[{provide:Gu,useClass:xw,deps:[]},{provide:Z1,useClass:Bm,deps:[ee,jm,Gu]},{provide:Bm,useClass:Bm,deps:[ee,jm,Gu]}],hq=[{provide:bm,useValue:"root"},{provide:_n,useFactory:aq,deps:[]},{provide:Jm,useClass:tq,multi:!0,deps:[Fe,ee,sn]},{provide:Jm,useClass:oq,multi:!0,deps:[Fe]},{provide:Jm,useClass:iq,multi:!0},e0,DT,xT,{provide:ua,useExisting:e0},{provide:Gl,useClass:YU,deps:[]},[]],i0=(()=>{let e=class e{constructor(i){}static withServerTransition(i){return{ngModule:e,providers:[{provide:jl,useValue:i.appId}]}}};e.\u0275fac=function(r){return new(r||e)(R(dq,12))},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[...hq,...uq],imports:[Wi,WM]});let t=e;return t})();var kT=(()=>{let e=class e{constructor(i){this._doc=i}getTitle(){return this._doc.title}setTitle(i){this._doc.title=i||""}};e.\u0275fac=function(r){return new(r||e)(R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Sw=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=R(fq),o},providedIn:"root"});let t=e;return t})(),fq=(()=>{let e=class e extends Sw{constructor(i){super(),this._doc=i}sanitize(i,r){if(r==null)return null;switch(i){case $i.NONE:return r;case $i.HTML:return ga(r,"HTML")?Yr(r):Ck(this._doc,String(r)).toString();case $i.STYLE:return ga(r,"Style")?Yr(r):r;case $i.SCRIPT:if(ga(r,"Script"))return Yr(r);throw new ge(5200,!1);case $i.URL:return ga(r,"URL")?Yr(r):Mm(String(r));case $i.RESOURCE_URL:if(ga(r,"ResourceURL"))return Yr(r);throw new ge(5201,!1);default:throw new ge(5202,!1)}}bypassSecurityTrustHtml(i){return hk(i)}bypassSecurityTrustStyle(i){return fk(i)}bypassSecurityTrustScript(i){return pk(i)}bypassSecurityTrustUrl(i){return mk(i)}bypassSecurityTrustResourceUrl(i){return gk(i)}};e.\u0275fac=function(r){return new(r||e)(R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var gb=Pr(bc());function wi(t){return t!=null&&`${t}`!="false"}function En(t,e=0){return cC(t)?Number(t):arguments.length===2?e:0}function cC(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function ed(t){return Array.isArray(t)?t:[t]}function pi(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Sn(t){return t instanceof ce?t.nativeElement:t}function cA(t,e=/\s+/){let n=[];if(t!=null){let i=Array.isArray(t)?t:`${t}`.split(e);for(let r of i){let o=`${r}`.trim();o&&n.push(o)}}return n}var dC;try{dC=typeof Intl<"u"&&Intl.v8BreakIterator}catch{dC=!1}var et=(()=>{let e=class e{constructor(i){this._platformId=i,this.isBrowser=this._platformId?Yl(this._platformId):typeof document=="object"&&!!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||dC)&&typeof CSS<"u"&&!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}};e.\u0275fac=function(r){return new(r||e)(R(sn))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var td,lA=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function uC(){if(td)return td;if(typeof document!="object"||!document)return td=new Set(lA),td;let t=document.createElement("input");return td=new Set(lA.filter(e=>(t.setAttribute("type",e),t.type===e))),td}var dh;function nW(){if(dh==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dh=!0}))}finally{dh=dh||!1}return dh}function In(t){return nW()?t:!!t.capture}var eo=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(eo||{}),M0,xc;function T0(){if(xc==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return xc=!1,xc;if("scrollBehavior"in document.documentElement.style)xc=!0;else{let t=Element.prototype.scrollTo;t?xc=!/\{\s*\[native code\]\s*\}/.test(t.toString()):xc=!1}}return xc}function id(){if(typeof document!="object"||!document)return eo.NORMAL;if(M0==null){let t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),M0=eo.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,M0=t.scrollLeft===0?eo.NEGATED:eo.INVERTED),t.remove()}return M0}var lC;function rW(){if(lC==null){let t=typeof document<"u"?document.head:null;lC=!!(t&&(t.createShadowRoot||t.attachShadow))}return lC}function dA(t){if(rW()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function xa(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function cn(t){return t.composedPath?t.composedPath()[0]:t.target}function uh(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var fA=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})(),uA=new Set,Dc,oW=(()=>{let e=class e{constructor(i,r){this._platform=i,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):aW}matchMedia(i){return(this._platform.WEBKIT||this._platform.BLINK)&&sW(i,this._nonce),this._matchMedia(i)}};e.\u0275fac=function(r){return new(r||e)(R(et),R(zu,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function sW(t,e){if(!uA.has(t))try{Dc||(Dc=document.createElement("style"),e&&Dc.setAttribute("nonce",e),Dc.setAttribute("type","text/css"),document.head.appendChild(Dc)),Dc.sheet&&(Dc.sheet.insertRule(`@media ${t} {body{ }}`,0),uA.add(t))}catch(n){console.error(n)}}function aW(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var Da=(()=>{let e=class e{constructor(i,r){this._mediaMatcher=i,this._zone=r,this._queries=new Map,this._destroySubject=new K}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(i){return hA(ed(i)).some(o=>this._registerQuery(o).mql.matches)}observe(i){let o=hA(ed(i)).map(a=>this._registerQuery(a).observable),s=jr(o);return s=Eo(s.pipe(wt(1)),s.pipe(ku(1),Hr(0))),s.pipe(Te(a=>{let c={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:u})=>{c.matches=c.matches||l,c.breakpoints[u]=l}),c}))}_registerQuery(i){if(this._queries.has(i))return this._queries.get(i);let r=this._mediaMatcher.matchMedia(i),s={observable:new $e(a=>{let c=l=>this._zone.run(()=>a.next(l));return r.addListener(c),()=>{r.removeListener(c)}}).pipe(Vt(r),Te(({matches:a})=>({query:i,matches:a})),ot(this._destroySubject)),mql:r};return this._queries.set(i,s),s}};e.\u0275fac=function(r){return new(r||e)(R(oW),R(ee))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function hA(t){return t.map(e=>e.split(",")).reduce((e,n)=>e.concat(n)).map(e=>e.trim())}var nd={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var cW=new q("cdk-dir-doc",{providedIn:"root",factory:lW});function lW(){return B(Fe)}var dW=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function uW(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?dW.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var $t=(()=>{let e=class e{constructor(i){if(this.value="ltr",this.change=new oe,i){let r=i.body?i.body.dir:null,o=i.documentElement?i.documentElement.dir:null;this.value=uW(r||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(r){return new(r||e)(R(cW,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Ea=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})();var hh=class{};function sd(t){return t&&typeof t.connect=="function"&&!(t instanceof as)}var A0=class extends hh{constructor(e){super(),this._data=e}connect(){return cs(this._data)?this._data:we(this._data)}disconnect(){}},zo=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(zo||{}),Sa=new q("_ViewRepeater"),rd=class{applyChanges(e,n,i,r,o){e.forEachOperation((s,a,c)=>{let l,u;if(s.previousIndex==null){let d=i(s,a,c);l=n.createEmbeddedView(d.templateRef,d.context,d.index),u=zo.INSERTED}else c==null?(n.remove(a),u=zo.REMOVED):(l=n.get(a),n.move(l,c),u=zo.MOVED);o&&o({context:l?.context,operation:u,record:s})})}detach(){}},od=class{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(e,n,i,r,o){e.forEachOperation((s,a,c)=>{let l,u;if(s.previousIndex==null){let d=()=>i(s,a,c);l=this._insertView(d,c,n,r(s)),u=l?zo.INSERTED:zo.REPLACED}else c==null?(this._detachAndCacheView(a,n),u=zo.REMOVED):(l=this._moveView(a,c,n,r(s)),u=zo.MOVED);o&&o({context:l?.context,operation:u,record:s})})}detach(){for(let e of this._viewCache)e.destroy();this._viewCache=[]}_insertView(e,n,i,r){let o=this._insertViewFromCache(n,i);if(o){o.context.$implicit=r;return}let s=e();return i.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(e,n){let i=n.detach(e);this._maybeCacheView(i,n)}_moveView(e,n,i,r){let o=i.get(e);return i.move(o,n),o.context.$implicit=r,o}_maybeCacheView(e,n){if(this._viewCache.lengththis._markSelected(o)):this._markSelected(n[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(i=>this._markSelected(i));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}deselect(...e){this._verifyValueAssignment(e),e.forEach(i=>this._unmarkSelected(i));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}setSelection(...e){this._verifyValueAssignment(e);let n=this.selected,i=new Set(e);e.forEach(o=>this._markSelected(o)),n.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let n=this._hasQueuedChanges();return e&&this._emitChangeEvent(),n}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,n){if(this.compareWith){n=n??this._selection;for(let i of n)if(this.compareWith(e,i))return i;return e}else return e}};var O0=(()=>{let e=class e{constructor(){this._listeners=[]}notify(i,r){for(let o of this._listeners)o(i,r)}listen(i){return this._listeners.push(i),()=>{this._listeners=this._listeners.filter(r=>i!==r)}}ngOnDestroy(){this._listeners=[]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var hW=["contentWrapper"],fW=["*"],hC=new q("VIRTUAL_SCROLL_STRATEGY"),N0=class{constructor(e,n,i){this._scrolledIndexChange=new K,this.scrolledIndexChange=this._scrolledIndexChange.pipe(hs()),this._viewport=null,this._itemSize=e,this._minBufferPx=n,this._maxBufferPx=i}attach(e){this._viewport=e,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(e,n,i){i0?o/this._itemSize:0;if(n.end>r){let c=Math.ceil(i/this._itemSize),l=Math.max(0,Math.min(s,r-c));s!=l&&(s=l,o=l*this._itemSize,n.start=Math.floor(s)),n.end=Math.max(0,Math.min(r,n.start+c))}let a=o-n.start*this._itemSize;if(a0&&(n.end=Math.min(r,n.end+l),n.start=Math.max(0,Math.floor(s-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(n),this._viewport.setRenderedContentOffset(this._itemSize*n.start),this._scrolledIndexChange.next(Math.floor(s))}};var pW=20,to=(()=>{let e=class e{constructor(i,r,o){this._ngZone=i,this._platform=r,this._scrolled=new K,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(i){this.scrollContainers.has(i)||this.scrollContainers.set(i,i.elementScrolled().subscribe(()=>this._scrolled.next(i)))}deregister(i){let r=this.scrollContainers.get(i);r&&(r.unsubscribe(),this.scrollContainers.delete(i))}scrolled(i=pW){return this._platform.isBrowser?new $e(r=>{this._globalSubscription||this._addGlobalListener();let o=i>0?this._scrolled.pipe(Eu(i)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):we()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((i,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(i,r){let o=this.getAncestorScrollContainers(i);return this.scrolled(r).pipe(We(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(i){let r=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,i)&&r.push(s)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(i,r){let o=Sn(r),s=i.getElementRef().nativeElement;do if(o==s)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let i=this._getWindow();return tn(i.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(r){return new(r||e)(R(ee),R(et),R(Fe,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Wn=(()=>{let e=class e{constructor(i,r,o,s){this.elementRef=i,this.scrollDispatcher=r,this.ngZone=o,this.dir=s,this._destroyed=new K,this._elementScrolled=new $e(a=>this.ngZone.runOutsideAngular(()=>tn(this.elementRef.nativeElement,"scroll").pipe(ot(this._destroyed)).subscribe(a)))}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(i){let r=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";i.left==null&&(i.left=o?i.end:i.start),i.right==null&&(i.right=o?i.start:i.end),i.bottom!=null&&(i.top=r.scrollHeight-r.clientHeight-i.bottom),o&&id()!=eo.NORMAL?(i.left!=null&&(i.right=r.scrollWidth-r.clientWidth-i.left),id()==eo.INVERTED?i.left=i.right:id()==eo.NEGATED&&(i.left=i.right?-i.right:i.right)):i.right!=null&&(i.left=r.scrollWidth-r.clientWidth-i.right),this._applyScrollToOptions(i)}_applyScrollToOptions(i){let r=this.elementRef.nativeElement;T0()?r.scrollTo(i):(i.top!=null&&(r.scrollTop=i.top),i.left!=null&&(r.scrollLeft=i.left))}measureScrollOffset(i){let r="left",o="right",s=this.elementRef.nativeElement;if(i=="top")return s.scrollTop;if(i=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let a=this.dir&&this.dir.value=="rtl";return i=="start"?i=a?o:r:i=="end"&&(i=a?r:o),a&&id()==eo.INVERTED?i==r?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:a&&id()==eo.NEGATED?i==r?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:i==r?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(to),g(ee),g($t,8))},e.\u0275dir=te({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let t=e;return t})(),mW=20,Gn=(()=>{let e=class e{constructor(i,r,o){this._platform=i,this._change=new K,this._changeListener=s=>{this._change.next(s)},this._document=o,r.runOutsideAngular(()=>{if(i.isBrowser){let s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let i=this._getWindow();i.removeEventListener("resize",this._changeListener),i.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let i={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),i}getViewportRect(){let i=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:i.top,left:i.left,bottom:i.top+o,right:i.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let i=this._document,r=this._getWindow(),o=i.documentElement,s=o.getBoundingClientRect(),a=-s.top||i.body.scrollTop||r.scrollY||o.scrollTop||0,c=-s.left||i.body.scrollLeft||r.scrollX||o.scrollLeft||0;return{top:a,left:c}}change(i=mW){return i>0?this._change.pipe(Eu(i)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let i=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:i.innerWidth,height:i.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(r){return new(r||e)(R(et),R(ee),R(Fe,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),gA=new q("VIRTUAL_SCROLLABLE"),gW=(()=>{let e=class e extends Wn{constructor(i,r,o,s){super(i,r,o,s)}measureViewportSize(i){let r=this.elementRef.nativeElement;return i==="horizontal"?r.clientWidth:r.clientHeight}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(to),g(ee),g($t,8))},e.\u0275dir=te({type:e,features:[He]});let t=e;return t})();function vW(t,e){return t.start==e.start&&t.end==e.end}var bW=typeof requestAnimationFrame<"u"?Lb:gl,fC=(()=>{let e=class e extends gW{get orientation(){return this._orientation}set orientation(i){this._orientation!==i&&(this._orientation=i,this._calculateSpacerSize())}constructor(i,r,o,s,a,c,l,u){super(i,c,o,a),this.elementRef=i,this._changeDetectorRef=r,this._scrollStrategy=s,this.scrollable=u,this._platform=B(et),this._detachedSubject=new K,this._renderedRangeSubject=new K,this._orientation="vertical",this.appendOnly=!1,this.scrolledIndexChange=new $e(d=>this._scrollStrategy.scrolledIndexChange.subscribe(h=>Promise.resolve().then(()=>this.ngZone.run(()=>d.next(h))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Me.EMPTY,this._injector=B(Je),this._isDestroyed=!1,this._viewportChanges=l.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Vt(null),Eu(0,bW),ot(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=!0,super.ngOnDestroy()}attach(i){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=i,this._forOf.dataStream.pipe(ot(this._detachedSubject)).subscribe(r=>{let o=r.length;o!==this._dataLength&&(this._dataLength=o,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(i){return this.getElementRef().nativeElement.getBoundingClientRect()[i]}setTotalContentSize(i){this._totalContentSize!==i&&(this._totalContentSize=i,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(i){vW(this._renderedRange,i)||(this.appendOnly&&(i={start:0,end:Math.max(this._renderedRange.end,i.end)}),this._renderedRangeSubject.next(this._renderedRange=i),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(i,r="to-start"){i=this.appendOnly&&r==="to-start"?0:i;let o=this.dir&&this.dir.value=="rtl",s=this.orientation=="horizontal",a=s?"X":"Y",l=`translate${a}(${Number((s&&o?-1:1)*i)}px)`;this._renderedContentOffset=i,r==="to-end"&&(l+=` translate${a}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=l&&(this._renderedContentTransform=l,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(i,r="auto"){let o={behavior:r};this.orientation==="horizontal"?o.start=i:o.top=i,this.scrollable.scrollTo(o)}scrollToIndex(i,r="auto"){this._scrollStrategy.scrollToIndex(i,r)}measureScrollOffset(i){let r;return this.scrollable==this?r=o=>super.measureScrollOffset(o):r=o=>this.scrollable.measureScrollOffset(o),Math.max(0,r(i??(this.orientation==="horizontal"?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(i){let r,o="left",s="right",a=this.dir?.value=="rtl";i=="start"?r=a?s:o:i=="end"?r=a?o:s:i?r=i:r=this.orientation==="horizontal"?"left":"top";let c=this.scrollable.measureBoundingClientRectWithScrollOffset(r);return this.elementRef.nativeElement.getBoundingClientRect()[r]-c}measureRenderedContentSize(){let i=this._contentWrapper.nativeElement;return this.orientation==="horizontal"?i.offsetWidth:i.offsetHeight}measureRangeSize(i){return this._forOf?this._forOf.measureRangeSize(i,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(i){i&&this._runAfterChangeDetection.push(i),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,ri(()=>{this._isChangeDetectionPending=!1;let i=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(let r of i)r()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight=this.orientation==="horizontal"?"":`${this._totalContentSize}px`,this._totalContentWidth=this.orientation==="horizontal"?`${this._totalContentSize}px`:""}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Ge),g(ee),g(hC,8),g($t,8),g(to),g(Gn),g(gA,8))},e.\u0275cmp=re({type:e,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(r,o){if(r&1&&ze(hW,7),r&2){let s;pe(s=me())&&(o._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(r,o){r&2&&Oe("cdk-virtual-scroll-orientation-horizontal",o.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",o.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",Ee]},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[Ye([{provide:Wn,useFactory:(i,r)=>i||r,deps:[[new Gr,new sI(gA)],e]}]),nt,He,Ne],ngContentSelectors:fW,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(r,o){r&1&&(at(),D(0,"div",1,0),ke(2),I(),xe(3,"div",2)),r&2&&(A(3),hi("width",o._totalContentWidth)("height",o._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0});let t=e;return t})();function vA(t,e,n){let i=n;if(!i.getBoundingClientRect)return 0;let r=i.getBoundingClientRect();return t==="horizontal"?e==="start"?r.left:r.right:e==="start"?r.top:r.bottom}var bA=(()=>{let e=class e{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(i){this._cdkVirtualForOf=i,sd(i)?this._dataSourceChanges.next(i):this._dataSourceChanges.next(new A0(cs(i)?i:Array.from(i||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(i){this._needsUpdate=!0,this._cdkVirtualForTrackBy=i?(r,o)=>i(r+(this._renderedRange?this._renderedRange.start:0),o):void 0}set cdkVirtualForTemplate(i){i&&(this._needsUpdate=!0,this._template=i)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(i){this._viewRepeater.viewCacheSize=En(i)}constructor(i,r,o,s,a,c){this._viewContainerRef=i,this._template=r,this._differs=o,this._viewRepeater=s,this._viewport=a,this.viewChange=new K,this._dataSourceChanges=new K,this.dataStream=this._dataSourceChanges.pipe(Vt(null),x_(),Nt(([l,u])=>this._changeDataSource(l,u)),Iu(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new K,this.dataStream.subscribe(l=>{this._data=l,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(ot(this._destroyed)).subscribe(l=>{this._renderedRange=l,this.viewChange.observers.length&&c.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(i,r){if(i.start>=i.end)return 0;i.startthis._renderedRange.end;let o=i.start-this._renderedRange.start,s=i.end-i.start,a,c;for(let l=0;l-1;l--){let u=this._viewContainerRef.get(l+o);if(u&&u.rootNodes.length){c=u.rootNodes[u.rootNodes.length-1];break}}return a&&c?vA(r,"end",c)-vA(r,"start",a):0}ngDoCheck(){if(this._differ&&this._needsUpdate){let i=this._differ.diff(this._renderedItems);i?this._applyChanges(i):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((i,r)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(i,r):r)),this._needsUpdate=!0)}_changeDataSource(i,r){return i&&i.disconnect(this),this._needsUpdate=!0,r?r.connect(this):we()}_updateContext(){let i=this._data.length,r=this._viewContainerRef.length;for(;r--;){let o=this._viewContainerRef.get(r);o.context.index=this._renderedRange.start+r,o.context.count=i,this._updateComputedContextProperties(o.context),o.detectChanges()}}_applyChanges(i){this._viewRepeater.applyChanges(i,this._viewContainerRef,(s,a,c)=>this._getEmbeddedViewArgs(s,c),s=>s.item),i.forEachIdentityChange(s=>{let a=this._viewContainerRef.get(s.currentIndex);a.context.$implicit=s.item});let r=this._data.length,o=this._viewContainerRef.length;for(;o--;){let s=this._viewContainerRef.get(o);s.context.index=this._renderedRange.start+o,s.context.count=r,this._updateComputedContextProperties(s.context)}}_updateComputedContextProperties(i){i.first=i.index===0,i.last=i.index===i.count-1,i.even=i.index%2===0,i.odd=!i.even}_getEmbeddedViewArgs(i,r){return{templateRef:this._template,context:{$implicit:i.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:r}}};e.\u0275fac=function(r){return new(r||e)(g(qt),g(Rt),g(Xr),g(Sa),g(fC,4),g(ee))},e.\u0275dir=te({type:e,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[Ye([{provide:Sa,useClass:od}])]});let t=e;return t})();var $n=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})(),Ec=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ea,$n,Ea,$n]});let t=e;return t})();var EA=(()=>{let e=class e{constructor(i,r){this._renderer=i,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(i,r){this._renderer.setProperty(this._elementRef.nativeElement,i,r)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}};e.\u0275fac=function(r){return new(r||e)(g(va),g(ce))},e.\u0275dir=te({type:e});let t=e;return t})(),SA=(()=>{let e=class e extends EA{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,features:[He]});let t=e;return t})(),Uo=new q("");var _W={provide:Uo,useExisting:li(()=>Gi),multi:!0};function yW(){let t=Vo()?Vo().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var wW=new q(""),Gi=(()=>{let e=class e extends EA{constructor(i,r,o){super(i,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!yW())}writeValue(i){let r=i??"";this.setProperty("value",r)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}};e.\u0275fac=function(r){return new(r||e)(g(va),g(ce),g(wW,8))},e.\u0275dir=te({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&le("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Ye([_W]),He]});let t=e;return t})();function ka(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function IA(t){return t!=null&&typeof t.length=="number"}var ld=new q(""),$0=new q(""),CW=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ma=class{static min(e){return xW(e)}static max(e){return DW(e)}static required(e){return EW(e)}static requiredTrue(e){return SW(e)}static email(e){return IW(e)}static minLength(e){return kW(e)}static maxLength(e){return MW(e)}static pattern(e){return TW(e)}static nullValidator(e){return kA(e)}static compose(e){return NA(e)}static composeAsync(e){return FA(e)}};function xW(t){return e=>{if(ka(e.value)||ka(t))return null;let n=parseFloat(e.value);return!isNaN(n)&&n{if(ka(e.value)||ka(t))return null;let n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}function EW(t){return ka(t.value)?{required:!0}:null}function SW(t){return t.value===!0?null:{required:!0}}function IW(t){return ka(t.value)||CW.test(t.value)?null:{email:!0}}function kW(t){return e=>ka(e.value)||!IA(e.value)?null:e.value.lengthIA(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function TW(t){if(!t)return kA;let e,n;return typeof t=="string"?(n="",t.charAt(0)!=="^"&&(n+="^"),n+=t,t.charAt(t.length-1)!=="$"&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),i=>{if(ka(i.value))return null;let r=i.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}function kA(t){return null}function MA(t){return t!=null}function TA(t){return vc(t)?Kt(t):t}function AA(t){let e={};return t.forEach(n=>{e=n!=null?X(X({},e),n):e}),Object.keys(e).length===0?null:e}function RA(t,e){return e.map(n=>n(t))}function AW(t){return!t.validate}function OA(t){return t.map(e=>AW(e)?e:n=>e.validate(n))}function NA(t){if(!t)return null;let e=t.filter(MA);return e.length==0?null:function(n){return AA(RA(n,e))}}function vC(t){return t!=null?NA(OA(t)):null}function FA(t){if(!t)return null;let e=t.filter(MA);return e.length==0?null:function(n){let i=RA(n,e).map(TA);return tc(i).pipe(Te(AA))}}function bC(t){return t!=null?FA(OA(t)):null}function _A(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function PA(t){return t._rawValidators}function LA(t){return t._rawAsyncValidators}function pC(t){return t?Array.isArray(t)?t:[t]:[]}function P0(t,e){return Array.isArray(t)?t.includes(e):t===e}function yA(t,e){let n=pC(e);return pC(t).forEach(r=>{P0(n,r)||n.push(r)}),n}function wA(t,e){return pC(e).filter(n=>!P0(t,n))}var L0=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=vC(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=bC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},Ta=class extends L0{get formDirective(){return null}get path(){return null}},vr=class extends L0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},V0=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},RW={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},iye=mt(X({},RW),{"[class.ng-submitted]":"isSubmitted"}),kn=(()=>{let e=class e extends V0{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(g(vr,2))},e.\u0275dir=te({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Oe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[He]});let t=e;return t})(),Ra=(()=>{let e=class e extends V0{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(g(Ta,10))},e.\u0275dir=te({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&Oe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[He]});let t=e;return t})();var fh="VALID",F0="INVALID",ad="PENDING",ph="DISABLED",Aa=class{},B0=class extends Aa{constructor(e,n){super(),this.value=e,this.source=n}},gh=class extends Aa{constructor(e,n){super(),this.pristine=e,this.source=n}},vh=class extends Aa{constructor(e,n){super(),this.touched=e,this.source=n}},cd=class extends Aa{constructor(e,n){super(),this.status=e,this.source=n}},mC=class extends Aa{constructor(e){super(),this.source=e}},gC=class extends Aa{constructor(e){super(),this.source=e}};function VA(t){return(W0(t)?t.validators:t)||null}function OW(t){return Array.isArray(t)?vC(t):t||null}function BA(t,e){return(W0(e)?e.asyncValidators:t)||null}function NW(t){return Array.isArray(t)?bC(t):t||null}function W0(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function FW(t,e,n){let i=t.controls;if(!(e?Object.keys(i):i).length)throw new ge(1e3,"");if(!i[n])throw new ge(1001,"")}function PW(t,e,n){t._forEachChild((i,r)=>{if(n[r]===void 0)throw new ge(1002,"")})}var j0=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Cs(()=>this.statusReactive()),this.statusReactive=Kr(void 0),this._pristine=Cs(()=>this.pristineReactive()),this.pristineReactive=Kr(!0),this._touched=Cs(()=>this.touchedReactive()),this.touchedReactive=Kr(!1),this._events=new K,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return mr(this.statusReactive)}set status(e){mr(()=>this.statusReactive.set(e))}get valid(){return this.status===fh}get invalid(){return this.status===F0}get pending(){return this.status==ad}get disabled(){return this.status===ph}get enabled(){return this.status!==ph}get pristine(){return mr(this.pristineReactive)}set pristine(e){mr(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return mr(this.touchedReactive)}set touched(e){mr(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(yA(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(yA(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(wA(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(wA(e,this._rawAsyncValidators))}hasValidator(e){return P0(this._rawValidators,e)}hasAsyncValidator(e){return P0(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let n=this.touched===!1;this.touched=!0;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(mt(X({},e),{sourceControl:i})),n&&e.emitEvent!==!1&&this._events.next(new vh(!0,i))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(e))}markAsUntouched(e={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:i})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i),n&&e.emitEvent!==!1&&this._events.next(new vh(!1,i))}markAsDirty(e={}){let n=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(mt(X({},e),{sourceControl:i})),n&&e.emitEvent!==!1&&this._events.next(new gh(!1,i))}markAsPristine(e={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),n&&e.emitEvent!==!1&&this._events.next(new gh(!0,i))}markAsPending(e={}){this.status=ad;let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new cd(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(mt(X({},e),{sourceControl:n}))}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=ph,this.errors=null,this._forEachChild(r=>{r.disable(mt(X({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new B0(this.value,i)),this._events.next(new cd(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(mt(X({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=fh,this._forEachChild(i=>{i.enable(mt(X({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(mt(X({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e,n){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===fh||this.status===ad)&&this._runAsyncValidator(i,e.emitEvent)}let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new B0(this.value,n)),this._events.next(new cd(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(mt(X({},e),{sourceControl:n}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ph:fh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,n){if(this.asyncValidator){this.status=ad,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let i=TA(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:n,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((i,r)=>i&&i._find(r),this)}getError(e,n){let i=n?this.get(n):this;return i&&i.errors?i.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,n,i){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||i)&&this._events.next(new cd(this.status,n)),this._parent&&this._parent._updateControlsErrors(e,n,i)}_initObservables(){this.valueChanges=new oe,this.statusChanges=new oe}_calculateStatus(){return this._allControlsDisabled()?ph:this.errors?F0:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ad)?ad:this._anyControlsHaveStatus(F0)?F0:fh}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,n){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&this._events.next(new gh(this.pristine,n))}_updateTouched(e={},n){this.touched=this._anyControlsTouched(),this._events.next(new vh(this.touched,n)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){W0(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=OW(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=NW(this._rawAsyncValidators)}},H0=class extends j0{constructor(e,n,i){super(VA(n),BA(i,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,i={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){PW(this,!0,e),Object.keys(e).forEach(i=>{FW(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(Object.keys(e).forEach(i=>{let r=this.controls[i];r&&r.patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((i,r)=>{i.reset(e?e[r]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,i)=>(e[i]=n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,i)=>i._syncPendingControls()?!0:n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{let i=this.controls[n];i&&e(i,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[n,i]of Object.entries(this.controls))if(this.contains(n)&&e(i))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(n,i,r)=>((i.enabled||this.disabled)&&(n[r]=i.value),n))}_reduceChildren(e,n){let i=e;return this._forEachChild((r,o)=>{i=n(i,r,o)}),i}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var dd=new q("CallSetDisabledState",{providedIn:"root",factory:()=>G0}),G0="always";function LW(t,e){return[...e.path,t]}function bh(t,e,n=G0){_C(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),BW(t,e),HW(t,e),jW(t,e),VW(t,e)}function z0(t,e,n=!0){let i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),q0(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function U0(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function VW(t,e){if(e.valueAccessor.setDisabledState){let n=i=>{e.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function _C(t,e){let n=PA(t);e.validator!==null?t.setValidators(_A(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let i=LA(t);e.asyncValidator!==null?t.setAsyncValidators(_A(i,e.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();U0(e._rawValidators,r),U0(e._rawAsyncValidators,r)}function q0(t,e){let n=!1;if(t!==null){if(e.validator!==null){let r=PA(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.validator);o.length!==r.length&&(n=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let r=LA(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.asyncValidator);o.length!==r.length&&(n=!0,t.setAsyncValidators(o))}}}let i=()=>{};return U0(e._rawValidators,i),U0(e._rawAsyncValidators,i),n}function BW(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&jA(t,e)})}function jW(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&jA(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function jA(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function HW(t,e){let n=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function HA(t,e){t==null,_C(t,e)}function zW(t,e){return q0(t,e)}function zA(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function UW(t){return Object.getPrototypeOf(t.constructor)===SA}function UA(t,e){t._syncPendingControls(),e.forEach(n=>{let i=n.control;i.updateOn==="submit"&&i._pendingChange&&(n.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function qA(t,e){if(!e)return null;Array.isArray(e);let n,i,r;return e.forEach(o=>{o.constructor===Gi?n=o:UW(o)?i=o:r=o}),r||i||n||null}function qW(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}var $W={provide:Ta,useExisting:li(()=>Yn)},mh=Promise.resolve(),Yn=(()=>{let e=class e extends Ta{get submitted(){return mr(this.submittedReactive)}constructor(i,r,o){super(),this.callSetDisabledState=o,this._submitted=Cs(()=>this.submittedReactive()),this.submittedReactive=Kr(!1),this._directives=new Set,this.ngSubmit=new oe,this.form=new H0({},vC(i),bC(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(i){mh.then(()=>{let r=this._findContainer(i.path);i.control=r.registerControl(i.name,i.control),bh(i.control,i,this.callSetDisabledState),i.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(i)})}getControl(i){return this.form.get(i.path)}removeControl(i){mh.then(()=>{let r=this._findContainer(i.path);r&&r.removeControl(i.name),this._directives.delete(i)})}addFormGroup(i){mh.then(()=>{let r=this._findContainer(i.path),o=new H0({});HA(o,i),r.registerControl(i.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(i){mh.then(()=>{let r=this._findContainer(i.path);r&&r.removeControl(i.name)})}getFormGroup(i){return this.form.get(i.path)}updateModel(i,r){mh.then(()=>{this.form.get(i.path).setValue(r)})}setValue(i){this.control.setValue(i)}onSubmit(i){return this.submittedReactive.set(!0),UA(this.form,this._directives),this.ngSubmit.emit(i),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(i){return i.pop(),i.length?this.form.get(i):this.form}};e.\u0275fac=function(r){return new(r||e)(g(ld,10),g($0,10),g(dd,8))},e.\u0275dir=te({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&le("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ye([$W]),He]});let t=e;return t})();function CA(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function xA(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var yC=class extends j0{constructor(e=null,n,i){super(VA(n),BA(i,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),W0(n)&&(n.nonNullable||n.initialValueIsDefault)&&(xA(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){CA(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){CA(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){xA(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},Sc=yC,WW=t=>t instanceof yC;var GW={provide:vr,useExisting:li(()=>io)},DA=Promise.resolve(),io=(()=>{let e=class e extends vr{constructor(i,r,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new yC,this._registered=!1,this.name="",this.update=new oe,this._parent=i,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=qA(this,s)}ngOnChanges(i){if(this._checkForErrors(),!this._registered||"name"in i){if(this._registered&&(this._checkName(),this.formDirective)){let r=i.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in i&&this._updateDisabled(i),zA(i,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){bh(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(i){DA.then(()=>{this.control.setValue(i,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(i){let r=i.isDisabled.currentValue,o=r!==0&&Ee(r);DA.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(i){return this._parent?LW(i,this._parent):[i]}};e.\u0275fac=function(r){return new(r||e)(g(Ta,9),g(ld,10),g($0,10),g(Uo,10),g(Ge,8),g(dd,8))},e.\u0275dir=te({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ye([GW]),He,lt]});let t=e;return t})(),Oa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),YW={provide:Uo,useExisting:li(()=>wC),multi:!0},wC=(()=>{let e=class e extends SA{writeValue(i){let r=i??"";this.setProperty("value",r)}registerOnChange(i){this.onChange=r=>{i(r==""?null:parseFloat(r))}}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&&le("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[Ye([YW]),He]});let t=e;return t})();var $A=new q(""),QW={provide:vr,useExisting:li(()=>_h)},_h=(()=>{let e=class e extends vr{set isDisabled(i){}constructor(i,r,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new oe,this._ngModelWarningSent=!1,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=qA(this,o)}ngOnChanges(i){if(this._isControlChanged(i)){let r=i.form.previousValue;r&&z0(r,this,!1),bh(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}zA(i,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&z0(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_isControlChanged(i){return i.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(g(ld,10),g($0,10),g(Uo,10),g($A,8),g(dd,8))},e.\u0275dir=te({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ye([QW]),He,lt]});let t=e;return t})(),KW={provide:Ta,useExisting:li(()=>yh)},yh=(()=>{let e=class e extends Ta{get submitted(){return mr(this._submittedReactive)}set submitted(i){this._submittedReactive.set(i)}constructor(i,r,o){super(),this.callSetDisabledState=o,this._submitted=Cs(()=>this._submittedReactive()),this._submittedReactive=Kr(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new oe,this._setValidators(i),this._setAsyncValidators(r)}ngOnChanges(i){this._checkFormPresent(),i.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(q0(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(i){let r=this.form.get(i.path);return bh(r,i,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(i),r}getControl(i){return this.form.get(i.path)}removeControl(i){z0(i.control||null,i,!1),qW(this.directives,i)}addFormGroup(i){this._setUpFormContainer(i)}removeFormGroup(i){this._cleanUpFormContainer(i)}getFormGroup(i){return this.form.get(i.path)}addFormArray(i){this._setUpFormContainer(i)}removeFormArray(i){this._cleanUpFormContainer(i)}getFormArray(i){return this.form.get(i.path)}updateModel(i,r){this.form.get(i.path).setValue(r)}onSubmit(i){return this._submittedReactive.set(!0),UA(this.form,this.directives),this.ngSubmit.emit(i),this.form._events.next(new mC(this.control)),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this._submittedReactive.set(!1),this.form._events.next(new gC(this.form))}_updateDomValue(){this.directives.forEach(i=>{let r=i.control,o=this.form.get(i.path);r!==o&&(z0(r||null,i),WW(o)&&(bh(o,i,this.callSetDisabledState),i.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(i){let r=this.form.get(i.path);HA(r,i),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(i){if(this.form){let r=this.form.get(i.path);r&&zW(r,i)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_C(this.form,this),this._oldForm&&q0(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(g(ld,10),g($0,10),g(dd,8))},e.\u0275dir=te({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&le("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ye([KW]),He,lt]});let t=e;return t})();var WA=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})();var GA=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:dd,useValue:i.callSetDisabledState??G0}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[WA]});let t=e;return t})(),YA=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:$A,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:dd,useValue:i.callSetDisabledState??G0}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[WA]});let t=e;return t})();function zt(t,...e){return e.length?e.some(n=>t[n]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function XW(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let e=0;e{let e=class e{create(i){return typeof MutationObserver>"u"?null:new MutationObserver(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ZW=(()=>{let e=class e{constructor(i){this._mutationObserverFactory=i,this._observedElements=new Map,this._ngZone=B(ee)}ngOnDestroy(){this._observedElements.forEach((i,r)=>this._cleanupObserver(r))}observe(i){let r=Sn(i);return new $e(o=>{let a=this._observeElement(r).pipe(Te(c=>c.filter(l=>!XW(l))),We(c=>!!c.length)).subscribe(c=>{this._ngZone.run(()=>{o.next(c)})});return()=>{a.unsubscribe(),this._unobserveElement(r)}})}_observeElement(i){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(i))this._observedElements.get(i).count++;else{let r=new K,o=this._mutationObserverFactory.create(s=>r.next(s));o&&o.observe(i,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(i,{observer:o,stream:r,count:1})}return this._observedElements.get(i).stream})}_unobserveElement(i){this._observedElements.has(i)&&(this._observedElements.get(i).count--,this._observedElements.get(i).count||this._cleanupObserver(i))}_cleanupObserver(i){if(this._observedElements.has(i)){let{observer:r,stream:o}=this._observedElements.get(i);r&&r.disconnect(),o.complete(),this._observedElements.delete(i)}}};e.\u0275fac=function(r){return new(r||e)(R(QA))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),KA=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(i){this._debounce=En(i),this._subscribe()}constructor(i,r){this._contentObserver=i,this._elementRef=r,this.event=new oe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let i=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?i.pipe(Hr(this.debounce)):i).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(g(ZW),g(ce))},e.\u0275dir=te({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Ee],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[nt]});let t=e;return t})(),ud=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[QA]});let t=e;return t})();var t3=" ";function gd(t,e,n){let i=X0(t,e);n=n.trim(),!i.some(r=>r.trim()===n)&&(i.push(n),t.setAttribute(e,i.join(t3)))}function Na(t,e,n){let i=X0(t,e);n=n.trim();let r=i.filter(o=>o!==n);r.length?t.setAttribute(e,r.join(t3)):t.removeAttribute(e)}function X0(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var i3="cdk-describedby-message",Y0="cdk-describedby-host",DC=0,n3=(()=>{let e=class e{constructor(i,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${DC++}`,this._document=i,this._id=B(jl)+"-"+DC++}describe(i,r,o){if(!this._canBeDescribed(i,r))return;let s=CC(r,o);typeof r!="string"?(XA(r,this._id),this._messageRegistry.set(s,{messageElement:r,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(r,o),this._isElementDescribedByMessage(i,s)||this._addMessageReference(i,s)}removeDescription(i,r,o){if(!r||!this._isElementNode(i))return;let s=CC(r,o);if(this._isElementDescribedByMessage(i,s)&&this._removeMessageReference(i,s),typeof r=="string"){let a=this._messageRegistry.get(s);a&&a.referenceCount===0&&this._deleteMessageElement(s)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let i=this._document.querySelectorAll(`[${Y0}="${this._id}"]`);for(let r=0;ro.indexOf(i3)!=0);i.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(i,r){let o=this._messageRegistry.get(r);gd(i,"aria-describedby",o.messageElement.id),i.setAttribute(Y0,this._id),o.referenceCount++}_removeMessageReference(i,r){let o=this._messageRegistry.get(r);o.referenceCount--,Na(i,"aria-describedby",o.messageElement.id),i.removeAttribute(Y0)}_isElementDescribedByMessage(i,r){let o=X0(i,"aria-describedby"),s=this._messageRegistry.get(r),a=s&&s.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(i,r){if(!this._isElementNode(i))return!1;if(r&&typeof r=="object")return!0;let o=r==null?"":`${r}`.trim(),s=i.getAttribute("aria-label");return o?!s||s.trim()!==o:!1}_isElementNode(i){return i.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(r){return new(r||e)(R(Fe),R(et))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function CC(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function XA(t,e){t.id||(t.id=`${i3}-${e}-${DC++}`)}var Z0=class{constructor(e,n){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new K,this._typeaheadSubscription=Me.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new K,this.change=new K,e instanceof $r?this._itemChangesSubscription=e.changes.subscribe(i=>this._itemsChanged(i.toArray())):Pm(e)&&(this._effectRef=tw(()=>this._itemsChanged(e()),{injector:n}))}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(Wt(n=>this._pressedLetters.push(n)),Hr(e),We(()=>this._pressedLetters.length>0),Te(()=>this._pressedLetters.join(""))).subscribe(n=>{let i=this._getItemsArray();for(let r=1;r!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(n){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n)));return}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._getItemsArray().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){let n=this._getItemsArray(),i=typeof e=="number"?e:n.indexOf(e),r=n[i];this._activeItem=r??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let n=this._getItemsArray();for(let i=1;i<=n.length;i++){let r=(this._activeItemIndex+e*i+n.length)%n.length,o=n[r];if(!this._skipPredicateFn(o)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,n){let i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(e+=n,!i[e])return;this.setActiveItem(e)}}_getItemsArray(){return Pm(this._items)?this._items():this._items instanceof $r?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let n=e.indexOf(this._activeItem);n>-1&&n!==this._activeItemIndex&&(this._activeItemIndex=n)}}},fd=class extends Z0{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},J0=class extends Z0{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)}};var kc=(()=>{let e=class e{constructor(i){this._platform=i}isDisabled(i){return i.hasAttribute("disabled")}isVisible(i){return cG(i)&&getComputedStyle(i).visibility==="visible"}isTabbable(i){if(!this._platform.isBrowser)return!1;let r=aG(gG(i));if(r&&(ZA(r)===-1||!this.isVisible(r)))return!1;let o=i.nodeName.toLowerCase(),s=ZA(i);return i.hasAttribute("contenteditable")?s!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!pG(i)?!1:o==="audio"?i.hasAttribute("controls")?s!==-1:!1:o==="video"?s===-1?!1:s!==null?!0:this._platform.FIREFOX||i.hasAttribute("controls"):i.tabIndex>=0}isFocusable(i,r){return mG(i)&&!this.isDisabled(i)&&(r?.ignoreVisibility||this.isVisible(i))}};e.\u0275fac=function(r){return new(r||e)(R(et))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function aG(t){try{return t.frameElement}catch{return null}}function cG(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function lG(t){let e=t.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function dG(t){return hG(t)&&t.type=="hidden"}function uG(t){return fG(t)&&t.hasAttribute("href")}function hG(t){return t.nodeName.toLowerCase()=="input"}function fG(t){return t.nodeName.toLowerCase()=="a"}function r3(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let e=t.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function ZA(t){if(!r3(t))return null;let e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function pG(t){let e=t.nodeName.toLowerCase(),n=e==="input"&&t.type;return n==="text"||n==="password"||e==="select"||e==="textarea"}function mG(t){return dG(t)?!1:lG(t)||uG(t)||t.hasAttribute("contenteditable")||r3(t)}function gG(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var EC=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,n,i,r,o=!1,s){this._element=e,this._checker=n,this._ngZone=i,this._document=r,this._injector=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let e=this._startAnchor,n=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),n&&(n.removeEventListener("focus",this.endAnchorListener),n.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(n=>{this._executeOnStable(()=>n(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(n=>{this._executeOnStable(()=>n(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(n=>{this._executeOnStable(()=>n(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let n=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(!this._checker.isFocusable(n)){let i=this._getFirstTabbableElement(n);return i?.focus(e),!!i}return n.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let n=this._getRegionBoundary("start");return n&&n.focus(e),!!n}focusLastTabbableElement(e){let n=this._getRegionBoundary("end");return n&&n.focus(e),!!n}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let n=e.children;for(let i=0;i=0;i--){let r=n[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[i]):null;if(r)return r}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,n){e?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._injector?ri(e,{injector:this._injector}):setTimeout(e)}},Mc=(()=>{let e=class e{constructor(i,r,o){this._checker=i,this._ngZone=r,this._injector=B(Je),this._document=o}create(i,r=!1){return new EC(i,this._checker,this._ngZone,this._document,r,this._injector)}};e.\u0275fac=function(r){return new(r||e)(R(kc),R(ee),R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),o3=(()=>{let e=class e{get enabled(){return this.focusTrap?.enabled||!1}set enabled(i){this.focusTrap&&(this.focusTrap.enabled=i)}constructor(i,r,o){this._elementRef=i,this._focusTrapFactory=r,this._previouslyFocusedElement=null,B(et).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(i){let r=i.autoCapture;r&&!r.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=xa(),this.focusTrap?.focusInitialElementWhenReady()}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Mc),g(Fe))},e.\u0275dir=te({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",Ee],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",Ee]},exportAs:["cdkTrapFocus"],standalone:!0,features:[nt,lt]});let t=e;return t})();function xh(t){return t.buttons===0||t.detail===0}function Dh(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var vG=new q("cdk-input-modality-detector-options"),bG={ignoreKeys:[18,17,224,91,16]},s3=650,hd=In({passive:!0,capture:!0}),_G=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(i,r,o,s){this._platform=i,this._mostRecentTarget=null,this._modality=new Lt(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=cn(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(Dh(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=cn(a)},this._options=X(X({},bG),s),this.modalityDetected=this._modality.pipe(ku(1)),this.modalityChanged=this.modalityDetected.pipe(hs()),i.isBrowser&&r.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,hd),o.addEventListener("mousedown",this._onMousedown,hd),o.addEventListener("touchstart",this._onTouchstart,hd)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,hd),document.removeEventListener("mousedown",this._onMousedown,hd),document.removeEventListener("touchstart",this._onTouchstart,hd))}};e.\u0275fac=function(r){return new(r||e)(R(et),R(ee),R(Fe),R(vG,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),yG=new q("liveAnnouncerElement",{providedIn:"root",factory:wG});function wG(){return null}var CG=new q("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),xG=0,eg=(()=>{let e=class e{constructor(i,r,o,s){this._ngZone=r,this._defaultOptions=s,this._document=o,this._liveElement=i||this._createLiveElement()}announce(i,...r){let o=this._defaultOptions,s,a;return r.length===1&&typeof r[0]=="number"?a=r[0]:[s,a]=r,this.clear(),clearTimeout(this._previousTimeout),s||(s=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",s),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=i,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let i="cdk-live-announcer-element",r=this._document.getElementsByClassName(i),o=this._document.createElement("div");for(let s=0;s .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let e=class e{constructor(i,r,o,s,a){this._ngZone=i,this._platform=r,this._inputModalityDetector=o,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 K,this._rootNodeFocusAndBlurListener=c=>{let l=cn(c);for(let u=l;u;u=u.parentElement)c.type==="focus"?this._onFocus(c,u):this._onBlur(c,u)},this._document=s,this._detectionMode=a?.detectionMode||K0.IMMEDIATE}monitor(i,r=!1){let o=Sn(i);if(!this._platform.isBrowser||o.nodeType!==1)return we();let s=dA(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return r&&(a.checkChildren=!0),a.subject;let c={checkChildren:r,subject:new K,rootNode:s};return this._elementInfo.set(o,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(i){let r=Sn(i),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(i,r,o){let s=Sn(i),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([c,l])=>this._originChanged(c,r,l)):(this._setOrigin(r),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((i,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(i){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(i)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:i&&this._isLastInteractionFromInputLabel(i)?"mouse":"program"}_shouldBeAttributedToTouch(i){return this._detectionMode===K0.EVENTUAL||!!i?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(i,r){i.classList.toggle("cdk-focused",!!r),i.classList.toggle("cdk-touch-focused",r==="touch"),i.classList.toggle("cdk-keyboard-focused",r==="keyboard"),i.classList.toggle("cdk-mouse-focused",r==="mouse"),i.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(i,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=i,this._originFromTouchInteraction=i==="touch"&&r,this._detectionMode===K0.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?s3:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(i,r){let o=this._elementInfo.get(r),s=cn(i);!o||!o.checkChildren&&r!==s||this._originChanged(r,this._getFocusOrigin(s),o)}_onBlur(i,r){let o=this._elementInfo.get(r);!o||o.checkChildren&&i.relatedTarget instanceof Node&&r.contains(i.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null))}_emitOrigin(i,r){i.subject.observers.length&&this._ngZone.run(()=>i.subject.next(r))}_registerGlobalListeners(i){if(!this._platform.isBrowser)return;let r=i.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,Q0),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,Q0)}),this._rootNodeFocusListenerCount.set(r,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ot(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(i){let r=i.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Q0),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Q0),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(i,r,o){this._setClasses(i,r),this._emitOrigin(o,r),this._lastFocusOrigin=r}_getClosestElementsInfo(i){let r=[];return this._elementInfo.forEach((o,s)=>{(s===i||o.checkChildren&&s.contains(i))&&r.push([s,o])}),r}_isLastInteractionFromInputLabel(i){let{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!r||r===i||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA"||i.disabled)return!1;let s=i.labels;if(s){for(let a=0;a{let e=class e{constructor(i,r){this._elementRef=i,this._focusMonitor=r,this._focusOrigin=null,this.cdkFocusChange=new oe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let i=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(i,i.nodeType===1&&i.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(r=>{this._focusOrigin=r,this.cdkFocusChange.emit(r)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Yi))},e.\u0275dir=te({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let t=e;return t})(),Ic=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(Ic||{}),JA="cdk-high-contrast-black-on-white",e3="cdk-high-contrast-white-on-black",xC="cdk-high-contrast-active",kC=(()=>{let e=class e{constructor(i,r){this._platform=i,this._document=r,this._breakpointSubscription=B(Da).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Ic.NONE;let i=this._document.createElement("div");i.style.backgroundColor="rgb(1,2,3)",i.style.position="absolute",this._document.body.appendChild(i);let r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(i):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(i.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Ic.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Ic.BLACK_ON_WHITE}return Ic.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let i=this._document.body.classList;i.remove(xC,JA,e3),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===Ic.BLACK_ON_WHITE?i.add(xC,JA):r===Ic.WHITE_ON_BLACK&&i.add(xC,e3)}}};e.\u0275fac=function(r){return new(r||e)(R(et),R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),tg=(()=>{let e=class e{constructor(i){i._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(r){return new(r||e)(R(kC))},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[ud]});let t=e;return t})();var EG=["text"],SG=[[["mat-icon"]],"*"],IG=["mat-icon","*"];function kG(t,e){if(t&1&&xe(0,"mat-pseudo-checkbox",1),t&2){let n=se();ie("disabled",n.disabled)("state",n.selected?"checked":"unchecked")}}function MG(t,e){if(t&1&&xe(0,"mat-pseudo-checkbox",3),t&2){let n=se();ie("disabled",n.disabled)}}function TG(t,e){if(t&1&&(D(0,"span",4),z(1),I()),t&2){let n=se();A(),Ct("(",n.group.label,")")}}var v3=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let t=e;return t})(),b3=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let t=e;return t})();function AG(){return!0}var RG=new q("mat-sanity-checks",{providedIn:"root",factory:AG}),Ze=(()=>{let e=class e{constructor(i,r,o){this._sanityChecks=r,this._document=o,this._hasDoneGlobalChecks=!1,i._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(i){return uh()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[i]}};e.\u0275fac=function(r){return new(r||e)(R(kC),R(RG,8),R(Fe))},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ea,Ea]});let t=e;return t})();var Tc=class{constructor(e,n,i,r,o){this._defaultMatcher=e,this.ngControl=n,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,n=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,n)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var c3=new q("MAT_DATE_LOCALE",{providedIn:"root",factory:OG});function OG(){return B(Yu)}var Vi=class{constructor(){this._localeChanges=new K,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return e==null||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,n){return this.getYear(e)-this.getYear(n)||this.getMonth(e)-this.getMonth(n)||this.getDate(e)-this.getDate(n)}sameDate(e,n){if(e&&n){let i=this.isValid(e),r=this.isValid(n);return i&&r?!this.compareDate(e,n):i==r}return e==n}clampDate(e,n,i){return n&&this.compareDate(e,n)<0?n:i&&this.compareDate(e,i)>0?i:e}},Fa=new q("mat-date-formats"),NG=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function MC(t,e){let n=Array(t);for(let i=0;i{let e=class e extends Vi{constructor(i){super(),this.useUtcForDisplay=!1,this._matDateLocale=B(c3,{optional:!0}),i!==void 0&&(this._matDateLocale=i),super.setLocale(this._matDateLocale)}getYear(i){return i.getFullYear()}getMonth(i){return i.getMonth()}getDate(i){return i.getDate()}getDayOfWeek(i){return i.getDay()}getMonthNames(i){let r=new Intl.DateTimeFormat(this.locale,{month:i,timeZone:"utc"});return MC(12,o=>this._format(r,new Date(2017,o,1)))}getDateNames(){let i=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return MC(31,r=>this._format(i,new Date(2017,0,r+1)))}getDayOfWeekNames(i){let r=new Intl.DateTimeFormat(this.locale,{weekday:i,timeZone:"utc"});return MC(7,o=>this._format(r,new Date(2017,0,o+1)))}getYearName(i){let r=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(r,i)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(i){return this.getDate(this._createDateWithOverflow(this.getYear(i),this.getMonth(i)+1,0))}clone(i){return new Date(i.getTime())}createDate(i,r,o){let s=this._createDateWithOverflow(i,r,o);return s.getMonth()!=r,s}today(){return new Date}parse(i,r){return typeof i=="number"?new Date(i):i?new Date(Date.parse(i)):null}format(i,r){if(!this.isValid(i))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,mt(X({},r),{timeZone:"utc"}));return this._format(o,i)}addCalendarYears(i,r){return this.addCalendarMonths(i,r*12)}addCalendarMonths(i,r){let o=this._createDateWithOverflow(this.getYear(i),this.getMonth(i)+r,this.getDate(i));return this.getMonth(o)!=((this.getMonth(i)+r)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(i,r){return this._createDateWithOverflow(this.getYear(i),this.getMonth(i),this.getDate(i)+r)}toIso8601(i){return[i.getUTCFullYear(),this._2digit(i.getUTCMonth()+1),this._2digit(i.getUTCDate())].join("-")}deserialize(i){if(typeof i=="string"){if(!i)return null;if(NG.test(i)){let r=new Date(i);if(this.isValid(r))return r}}return super.deserialize(i)}isDateInstance(i){return i instanceof Date}isValid(i){return!isNaN(i.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(i,r,o){let s=new Date;return s.setFullYear(i,r,o),s.setHours(0,0,0,0),s}_2digit(i){return("00"+i).slice(-2)}_format(i,r){let o=new Date;return o.setUTCFullYear(r.getFullYear(),r.getMonth(),r.getDate()),o.setUTCHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()),i.format(o)}};e.\u0275fac=function(r){return new(r||e)(R(c3,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),PG={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};var _3=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[LG()]});let t=e;return t})();function LG(t=PG){return[{provide:Vi,useClass:FG},{provide:Fa,useValue:t}]}var kh=(()=>{let e=class e{isErrorState(i,r){return!!(i&&i.invalid&&(i.touched||r&&r.submitted))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var un=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(un||{}),RC=class{constructor(e,n,i,r=!1){this._renderer=e,this.element=n,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=un.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},l3=In({passive:!0,capture:!0}),OC=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let n=cn(e);n&&this._events.get(e.type)?.forEach((i,r)=>{(r===n||r.contains(n))&&i.forEach(o=>o.handleEvent(e))})}}addHandler(e,n,i,r){let o=this._events.get(n);if(o){let s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(n,new Map([[i,new Set([r])]])),e.runOutsideAngular(()=>{document.addEventListener(n,this._delegateEventHandler,l3)})}removeHandler(e,n,i){let r=this._events.get(e);if(!r)return;let o=r.get(n);o&&(o.delete(i),o.size===0&&r.delete(n),r.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,l3)))}},d3={enterDuration:225,exitDuration:150},VG=800,u3=In({passive:!0,capture:!0}),h3=["mousedown","touchstart"],f3=["mouseup","mouseleave","touchend","touchcancel"],Eh=class Eh{constructor(e,n,i,r){this._target=e,this._ngZone=n,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Sn(i))}fadeInRipple(e,n,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=X(X({},d3),i.animation);i.centered&&(e=r.left+r.width/2,n=r.top+r.height/2);let s=i.radius||BG(e,n,r),a=e-r.left,c=n-r.top,l=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${a-s}px`,u.style.top=`${c-s}px`,u.style.height=`${s*2}px`,u.style.width=`${s*2}px`,i.color!=null&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(u);let d=window.getComputedStyle(u),h=d.transitionProperty,f=d.transitionDuration,p=h==="none"||f==="0s"||f==="0s, 0s"||r.width===0&&r.height===0,m=new RC(this,u,i,p);u.style.transform="scale3d(1, 1, 1)",m.state=un.FADING_IN,i.persistent||(this._mostRecentTransientRipple=m);let v=null;return!p&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let b=()=>{v&&(v.fallbackTimer=null),clearTimeout(E),this._finishRippleTransition(m)},C=()=>this._destroyRipple(m),E=setTimeout(C,l+100);u.addEventListener("transitionend",b),u.addEventListener("transitioncancel",C),v={onTransitionEnd:b,onTransitionCancel:C,fallbackTimer:E}}),this._activeRipples.set(m,v),(p||!l)&&this._finishRippleTransition(m),m}fadeOutRipple(e){if(e.state===un.FADING_OUT||e.state===un.HIDDEN)return;let n=e.element,i=X(X({},d3),e.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",e.state=un.FADING_OUT,(e._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let n=Sn(e);!this._platform.isBrowser||!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,h3.forEach(i=>{Eh._eventManager.addHandler(this._ngZone,i,n,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{f3.forEach(n=>{this._triggerElement.addEventListener(n,this,u3)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===un.FADING_IN?this._startFadeOutTransition(e):e.state===un.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let n=e===this._mostRecentTransientRipple,{persistent:i}=e.config;e.state=un.VISIBLE,!i&&(!n||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let n=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=un.HIDDEN,n!==null&&(e.element.removeEventListener("transitionend",n.onTransitionEnd),e.element.removeEventListener("transitioncancel",n.onTransitionCancel),n.fallbackTimer!==null&&clearTimeout(n.fallbackTimer)),e.element.remove()}_onMousedown(e){let n=xh(e),i=this._lastTouchStartEvent&&Date.now(){let n=e.state===un.VISIBLE||e.config.terminateOnPointerUp&&e.state===un.FADING_IN;!e.config.persistent&&n&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(h3.forEach(n=>Eh._eventManager.removeHandler(n,e,this)),this._pointerUpEventsRegistered&&(f3.forEach(n=>e.removeEventListener(n,this,u3)),this._pointerUpEventsRegistered=!1))}};Eh._eventManager=new OC;var Sh=Eh;function BG(t,e,n){let i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}var Ac=new q("mat-ripple-global-options"),Rc=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){i&&this.fadeOutAllNonPersistent(),this._disabled=i,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(i){this._trigger=i,this._setupTriggerEventsIfEnabled()}constructor(i,r,o,s,a){this._elementRef=i,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new Sh(this,r,i,o)}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:X(X(X({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{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(i,r=0,o){return typeof i=="number"?this._rippleRenderer.fadeInRipple(i,r,X(X({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,X(X({},this.rippleConfig),i))}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(ee),g(et),g(Ac,8),g(Bt,8))},e.\u0275dir=te({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,o){r&2&&Oe("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let t=e;return t})(),As=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,Ze]});let t=e;return t})(),jG=(()=>{let e=class e{constructor(i){this._animationMode=i,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(r){return new(r||e)(g(Bt,8))},e.\u0275cmp=re({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(r,o){r&2&&Oe("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[Ne],decls:0,vars:0,template:function(r,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let t=e;return t})(),NC=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze]});let t=e;return t})(),Mh=new q("MAT_OPTION_PARENT_COMPONENT");var Th=new q("MatOptgroup");var HG=0,Ih=class{constructor(e,n=!1){this.source=e,this.isUserInput=n}},qo=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(i){this._disabled=i}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(i,r,o,s){this._element=i,this._changeDetectorRef=r,this._parent=o,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${HG++}`,this.onSelectionChange=new oe,this._stateChanges=new K}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(i=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),i&&this._emitSelectionChangeEvent())}deselect(i=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),i&&this._emitSelectionChangeEvent())}focus(i,r){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(r)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(i){(i.keyCode===13||i.keyCode===32)&&!zt(i)&&(this._selectViaInteraction(),i.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let i=this.viewValue;i!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=i)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(i=!1){this.onSelectionChange.emit(new Ih(this,i))}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Ge),g(Mh,8),g(Th,8))},e.\u0275cmp=re({type:e,selectors:[["mat-option"]],viewQuery:function(r,o){if(r&1&&ze(EG,7),r&2){let s;pe(s=me())&&(o._text=s.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(r,o){r&1&&le("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),r&2&&(pr("id",o.id),Ve("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),Oe("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Ee]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[nt,Ne],ngContentSelectors:IG,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(r,o){r&1&&(at(SG),ve(0,kG,1,2,"mat-pseudo-checkbox",1),ke(1),D(2,"span",2,0),ke(4,1),I(),ve(5,MG,1,1,"mat-pseudo-checkbox",3)(6,TG,2,1,"span",4),xe(7,"div",5)),r&2&&(tt(o.multiple?0:-1),A(5),tt(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),A(),tt(o.group&&o.group._inert?6:-1),A(),ie("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[jG,Rc],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight)}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=e;return t})();function ng(t,e,n){if(n.length){let i=e.toArray(),r=n.toArray(),o=0;for(let s=0;sn+i?Math.max(0,t-i+e):n}var vd=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[As,Ze,NC]});let t=e;return t})(),p3={capture:!0},m3=["focus","mousedown","mouseenter","touchstart"],TC="mat-ripple-loader-uninitialized",AC="mat-ripple-loader-class-name",g3="mat-ripple-loader-centered",ig="mat-ripple-loader-disabled",y3=(()=>{let e=class e{constructor(){this._document=B(Fe,{optional:!0}),this._animationMode=B(Bt,{optional:!0}),this._globalRippleOptions=B(Ac,{optional:!0}),this._platform=B(et),this._ngZone=B(ee),this._hosts=new Map,this._onInteraction=i=>{let r=cn(i);if(r instanceof HTMLElement){let o=r.closest(`[${TC}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let i of m3)this._document?.addEventListener(i,this._onInteraction,p3)})}ngOnDestroy(){let i=this._hosts.keys();for(let r of i)this.destroyRipple(r);for(let r of m3)this._document?.removeEventListener(r,this._onInteraction,p3)}configureRipple(i,r){i.setAttribute(TC,this._globalRippleOptions?.namespace??""),(r.className||!i.hasAttribute(AC))&&i.setAttribute(AC,r.className||""),r.centered&&i.setAttribute(g3,""),r.disabled&&i.setAttribute(ig,"")}getRipple(i){return this._hosts.get(i)||this._createRipple(i)}setDisabled(i,r){let o=this._hosts.get(i);if(o){o.disabled=r;return}r?i.setAttribute(ig,""):i.removeAttribute(ig)}_createRipple(i){if(!this._document)return;let r=this._hosts.get(i);if(r)return r;i.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",i.getAttribute(AC)),i.append(o);let s=new Rc(new ce(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return s._isInitialized=!0,s.trigger=i,s.centered=i.hasAttribute(g3),s.disabled=i.hasAttribute(ig),this.attachRipple(i,s),s}attachRipple(i,r){i.removeAttribute(TC),this._hosts.set(i,r)}destroyRipple(i){let r=this._hosts.get(i);r&&(r.ngOnDestroy(),this._hosts.delete(i))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Ah=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},br=class extends Ah{constructor(e,n,i,r,o){super(),this.component=e,this.viewContainerRef=n,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}},Ki=class extends Ah{constructor(e,n,i,r){super(),this.templateRef=e,this.viewContainerRef=n,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,n=this.context){return this.context=n,super.attach(e)}detach(){return this.context=void 0,super.detach()}},FC=class extends Ah{constructor(e){super(),this.element=e instanceof ce?e.nativeElement:e}},Pa=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof br)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Ki)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof FC)return this._attachedPortal=e,this.attachDomPortal(e)}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)}};var Rh=class extends Pa{constructor(e,n,i,r,o){super(),this.outletElement=e,this._componentFactoryResolver=n,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let c=this._document.createComment("dom-portal");a.parentNode.insertBefore(c,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}attachComponentPortal(e){let i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector||Je.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=n.indexOf(i);r!==-1&&n.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var Qn=(()=>{let e=class e extends Pa{constructor(i,r,o){super(),this._componentFactoryResolver=i,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new oe,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let c=this._document.createComment("dom-portal");s.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}get portal(){return this._attachedPortal}set portal(i){this.hasAttached()&&!i&&!this._isInitialized||(this.hasAttached()&&super.detach(),i&&super.attach(i),this._attachedPortal=i||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(i){i.setAttachedHost(this);let r=i.viewContainerRef!=null?i.viewContainerRef:this._viewContainerRef,s=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component),a=r.createComponent(s,r.length,i.injector||r.injector,i.projectableNodes||void 0);return r!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=i,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(i){i.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=i,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){let i=this._viewContainerRef.element.nativeElement;return i.nodeType===i.ELEMENT_NODE?i:i.parentNode}};e.\u0275fac=function(r){return new(r||e)(g(Wr),g(qt),g(Fe))},e.\u0275dir=te({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[He]});let t=e;return t})();var Kn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})();var w3=T0(),PC=class{constructor(e,n){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=pi(-this._previousScrollPosition.left),e.style.top=pi(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,n=this._document.body,i=e.style,r=n.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),w3&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),w3&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let n=this._document.body,i=this._viewportRuler.getViewportSize();return n.scrollHeight>i.height||n.scrollWidth>i.width}};var LC=class{constructor(e,n,i,r){this._scrollDispatcher=e,this._ngZone=n,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,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(We(n=>!n||!this._overlayRef.overlayElement.contains(n.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let n=this._viewportRuler.getViewportScrollPosition().top;Math.abs(n-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}},og=class{enable(){}disable(){}attach(){}};function VC(t,e){return e.some(n=>{let i=t.bottomn.bottom,o=t.rightn.right;return i||r||o||s})}function C3(t,e){return e.some(n=>{let i=t.topn.bottom,o=t.leftn.right;return i||r||o||s})}var BC=class{constructor(e,n,i,r){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let n=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();VC(n,[{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}},zG=(()=>{let e=class e{constructor(i,r,o,s){this._scrollDispatcher=i,this._viewportRuler=r,this._ngZone=o,this.noop=()=>new og,this.close=a=>new LC(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new PC(this._viewportRuler,this._document),this.reposition=a=>new BC(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=s}};e.\u0275fac=function(r){return new(r||e)(R(to),R(Gn),R(ee),R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Tn=class{constructor(e){if(this.scrollStrategy=new og,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let n=Object.keys(e);for(let i of n)e[i]!==void 0&&(this[i]=e[i])}}};var jC=class{constructor(e,n){this.connectionPair=e,this.scrollableViewProperties=n}};var k3=(()=>{let e=class e{constructor(i){this._attachedOverlays=[],this._document=i}ngOnDestroy(){this.detach()}add(i){this.remove(i),this._attachedOverlays.push(i)}remove(i){let r=this._attachedOverlays.indexOf(i);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(r){return new(r||e)(R(Fe))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),UG=(()=>{let e=class e extends k3{constructor(i,r){super(i),this._ngZone=r,this._keydownListener=o=>{let s=this._attachedOverlays;for(let a=s.length-1;a>-1;a--)if(s[a]._keydownEvents.observers.length>0){let c=s[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(o)):c.next(o);break}}}add(i){super.add(i),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(r){return new(r||e)(R(Fe),R(ee,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qG=(()=>{let e=class e extends k3{constructor(i,r,o){super(i),this._platform=r,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=cn(s)},this._clickListener=s=>{let a=cn(s),c=s.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let l=this._attachedOverlays.slice();for(let u=l.length-1;u>-1;u--){let d=l[u];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(x3(d.overlayElement,a)||x3(d.overlayElement,c))break;let h=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(s)):h.next(s)}}}add(i){if(super.add(i),!this._isAttached){let r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let i=this._document.body;i.removeEventListener("pointerdown",this._pointerDownListener,!0),i.removeEventListener("click",this._clickListener,!0),i.removeEventListener("auxclick",this._clickListener,!0),i.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(i.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(i){i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(r){return new(r||e)(R(Fe),R(et),R(ee,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function x3(t,e){let n=typeof ShadowRoot<"u"&&ShadowRoot,i=e;for(;i;){if(i===t)return!0;i=n&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var _d=(()=>{let e=class e{constructor(i,r){this._platform=r,this._document=i}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let i="cdk-overlay-container";if(this._platform.isBrowser||uh()){let o=this._document.querySelectorAll(`.${i}[platform="server"], .${i}[platform="test"]`);for(let s=0;sthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new K,this._outsidePointerEvents=new K,this._renders=new K,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=mr(()=>Wu(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let n=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),ri(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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),typeof n?.onDestroy=="function"&&n.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),n}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.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=X(X({},this._config),e),this._updateElementSize()}setDirection(e){this._config=mt(X({},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(){let e=this._config.direction;return e?typeof e=="string"?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;let e=this._pane.style;e.width=pi(this._config.width),e.height=pi(this._config.height),e.minWidth=pi(this._config.minWidth),e.minHeight=pi(this._config.minHeight),e.maxWidth=pi(this._config.maxWidth),e.maxHeight=pi(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?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(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,n,i){let r=ed(n||[]).filter(o=>!!o);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(ot(yt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(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(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},D3="cdk-overlay-connected-position-bounding-box",$G=/([A-Za-z%]+)$/,Oh=class{get positions(){return this._preferredPositions}constructor(e,n,i,r,o){this._viewportRuler=n,this._document=i,this._platform=r,this._overlayContainer=o,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 K,this._resizeSubscription=Me.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(D3),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){this.reapplyLastPosition();return}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();let e=this._originRect,n=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],s;for(let a of this._preferredPositions){let c=this._getOriginPoint(e,r,a),l=this._getOverlayPoint(c,n,a),u=this._getOverlayFit(l,n,i,a);if(u.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(u,l,i)){o.push({position:a,origin:c,overlayRect:n,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!s||s.overlayFit.visibleAreac&&(c=u,a=l)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Oc(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(D3),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,n)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(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,n,i){let r;if(i.originX=="center")r=e.left+e.width/2;else{let s=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r=i.originX=="start"?s:a}n.left<0&&(r-=n.left);let o;return i.originY=="center"?o=e.top+e.height/2:o=i.originY=="top"?e.top:e.bottom,n.top<0&&(o-=n.top),{x:r,y:o}}_getOverlayPoint(e,n,i){let r;i.overlayX=="center"?r=-n.width/2:i.overlayX==="start"?r=this._isRtl()?-n.width:0:r=this._isRtl()?0:-n.width;let o;return i.overlayY=="center"?o=-n.height/2:o=i.overlayY=="top"?0:-n.height,{x:e.x+r,y:e.y+o}}_getOverlayFit(e,n,i,r){let o=S3(n),{x:s,y:a}=e,c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(s+=c),l&&(a+=l);let u=0-s,d=s+o.width-i.width,h=0-a,f=a+o.height-i.height,p=this._subtractOverflows(o.width,u,d),m=this._subtractOverflows(o.height,h,f),v=p*m;return{visibleArea:v,isCompletelyWithinViewport:o.width*o.height===v,fitsInViewportVertically:m===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(e,n,i){if(this._hasFlexibleDimensions){let r=i.bottom-n.y,o=i.right-n.x,s=E3(this._overlayRef.getConfig().minHeight),a=E3(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportVertically||s!=null&&s<=r,l=e.fitsInViewportHorizontally||a!=null&&a<=o;return c&&l}return!1}_pushOverlayOnScreen(e,n,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let r=S3(n),o=this._viewportRect,s=Math.max(e.x+r.width-o.width,0),a=Math.max(e.y+r.height-o.height,0),c=Math.max(o.top-i.top-e.y,0),l=Math.max(o.left-i.left-e.x,0),u=0,d=0;return r.width<=o.width?u=l||-s:u=e.xp&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-p/2)}let c=n.overlayX==="start"&&!r||n.overlayX==="end"&&r,l=n.overlayX==="end"&&!r||n.overlayX==="start"&&r,u,d,h;if(l)h=i.width-e.x+this._viewportMargin*2,u=e.x-this._viewportMargin;else if(c)d=e.x,u=i.right-e.x;else{let f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=f*2,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_setBoundingBoxStyles(e,n){let i=this._calculateBoundingBoxRect(e,n);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=pi(i.height),r.top=pi(i.top),r.bottom=pi(i.bottom),r.width=pi(i.width),r.left=pi(i.left),r.right=pi(i.right),n.overlayX==="center"?r.alignItems="center":r.alignItems=n.overlayX==="end"?"flex-end":"flex-start",n.overlayY==="center"?r.justifyContent="center":r.justifyContent=n.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=pi(o)),s&&(r.maxWidth=pi(s))}this._lastBoundingBoxSize=i,Oc(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Oc(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Oc(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,n){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){let u=this._viewportRuler.getViewportScrollPosition();Oc(i,this._getExactOverlayY(n,e,u)),Oc(i,this._getExactOverlayX(n,e,u))}else i.position="static";let a="",c=this._getOffset(n,"x"),l=this._getOffset(n,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=pi(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=pi(s.maxWidth):o&&(i.maxWidth="")),Oc(this._pane.style,i)}_getExactOverlayY(e,n,i){let r={top:"",bottom:""},o=this._getOverlayPoint(n,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),e.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;r.bottom=`${s-(o.y+this._overlayRect.height)}px`}else r.top=pi(o.y);return r}_getExactOverlayX(e,n,i){let r={left:"",right:""},o=this._getOverlayPoint(n,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let s;if(this._isRtl()?s=e.overlayX==="end"?"left":"right":s=e.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;r.right=`${a-(o.x+this._overlayRect.width)}px`}else r.left=pi(o.x);return r}_getScrollVisibility(){let e=this._getOriginRect(),n=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:C3(e,i),isOriginOutsideView:VC(e,i),isOverlayClipped:C3(n,i),isOverlayOutsideView:VC(n,i)}}_subtractOverflows(e,...n){return n.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,n=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+n-this._viewportMargin,width:e-2*this._viewportMargin,height:n-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,n){return n==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&ed(e).forEach(n=>{n!==""&&this._appliedPanelClasses.indexOf(n)===-1&&(this._appliedPanelClasses.push(n),this._pane.classList.add(n))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof ce)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let n=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+n,height:i,width:n}}};function Oc(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function E3(t){if(typeof t!="number"&&t!=null){let[e,n]=t.split($G);return!n||n==="px"?parseFloat(e):null}return t||null}function S3(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function WG(t,e){return t===e?!0:t.isOriginClipped===e.isOriginClipped&&t.isOriginOutsideView===e.isOriginOutsideView&&t.isOverlayClipped===e.isOverlayClipped&&t.isOverlayOutsideView===e.isOverlayOutsideView}var I3="cdk-global-overlay-wrapper",HC=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let n=e.getConfig();this._overlayRef=e,this._width&&!n.width&&e.updateSize({width:this._width}),this._height&&!n.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(I3),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="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._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,c=(r==="100%"||r==="100vw")&&(!s||s==="100%"||s==="100vw"),l=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),u=this._xPosition,d=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",f="",p="",m="";c?m="flex-start":u==="center"?(m="center",h?p=d:f=d):h?u==="left"||u==="end"?(m="flex-end",f=d):(u==="right"||u==="start")&&(m="flex-start",p=d):u==="left"||u==="start"?(m="flex-start",f=d):(u==="right"||u==="end")&&(m="flex-end",p=d),e.position=this._cssPosition,e.marginLeft=c?"0":f,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=c?"0":p,n.justifyContent=m,n.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,i=n.style;n.classList.remove(I3),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},GG=(()=>{let e=class e{constructor(i,r,o,s){this._viewportRuler=i,this._document=r,this._platform=o,this._overlayContainer=s}global(){return new HC}flexibleConnectedTo(i){return new Oh(i,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(r){return new(r||e)(R(Gn),R(Fe),R(et),R(_d))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),YG=0,Pt=(()=>{let e=class e{constructor(i,r,o,s,a,c,l,u,d,h,f,p){this.scrollStrategies=i,this._overlayContainer=r,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=a,this._injector=c,this._ngZone=l,this._document=u,this._directionality=d,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=p}create(i){let r=this._createHostElement(),o=this._createPaneElement(r),s=this._createPortalOutlet(o),a=new Tn(i);return a.direction=a.direction||this._directionality.value,new Rs(s,r,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Fi))}position(){return this._positionBuilder}_createPaneElement(i){let r=this._document.createElement("div");return r.id=`cdk-overlay-${YG++}`,r.classList.add("cdk-overlay-pane"),i.appendChild(r),r}_createHostElement(){let i=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalOutlet(i){return this._appRef||(this._appRef=this._injector.get(Cn)),new Rh(i,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(r){return new(r||e)(R(zG),R(_d),R(Wr),R(GG),R(UG),R(Je),R(ee),R(Fe),R($t),R(Bo),R(qG),R(Bt,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),QG=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],M3=new q("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=B(Pt);return()=>t.scrollStrategies.reposition()}}),Nh=(()=>{let e=class e{constructor(i){this.elementRef=i}};e.\u0275fac=function(r){return new(r||e)(g(ce))},e.\u0275dir=te({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let t=e;return t})(),zC=(()=>{let e=class e{get offsetX(){return this._offsetX}set offsetX(i){this._offsetX=i,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(i){this._offsetY=i,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(i){this._disposeOnNavigation=i}constructor(i,r,o,s,a){this._overlay=i,this._dir=a,this._backdropSubscription=Me.EMPTY,this._attachSubscription=Me.EMPTY,this._detachSubscription=Me.EMPTY,this._positionSubscription=Me.EMPTY,this._disposeOnNavigation=!1,this._ngZone=B(ee),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new oe,this.positionChange=new oe,this.attach=new oe,this.detach=new oe,this.overlayKeydown=new oe,this.overlayOutsideClick=new oe,this._templatePortal=new Ki(r,o),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(i){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),i.origin&&this.open&&this._position.apply()),i.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=QG);let i=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=i.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=i.detachments().subscribe(()=>this.detach.emit()),i.keydownEvents().subscribe(r=>{this.overlayKeydown.next(r),r.keyCode===27&&!this.disableClose&&!zt(r)&&(r.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(r=>{let o=this._getOriginElement(),s=cn(r);(!o||o!==s&&!o.contains(s))&&this.overlayOutsideClick.next(r)})}_buildConfig(){let i=this._position=this.positionStrategy||this._createPositionStrategy(),r=new Tn({direction:this._dir,positionStrategy:i,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(r.width=this.width),(this.height||this.height===0)&&(r.height=this.height),(this.minWidth||this.minWidth===0)&&(r.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(r.minHeight=this.minHeight),this.backdropClass&&(r.backdropClass=this.backdropClass),this.panelClass&&(r.panelClass=this.panelClass),r}_updatePositionStrategy(i){let r=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return i.setOrigin(this._getOrigin()).withPositions(r).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let i=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(i),i}_getOrigin(){return this.origin instanceof Nh?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Nh?this.origin.elementRef.nativeElement:this.origin instanceof ce?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(i=>{this.backdropClick.emit(i)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(N_(()=>this.positionChange.observers.length>0)).subscribe(i=>{this._ngZone.run(()=>this.positionChange.emit(i)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(g(Pt),g(Rt),g(qt),g(M3),g($t,8))},e.\u0275dir=te({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Ee],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Ee],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Ee],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Ee],push:[2,"cdkConnectedOverlayPush","push",Ee],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Ee]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[nt,lt]});let t=e;return t})();function KG(t){return()=>t.scrollStrategies.reposition()}var XG={provide:M3,deps:[Pt],useFactory:KG},An=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[Pt,XG],imports:[Ea,Kn,Ec,Ec]});let t=e;return t})();var dt=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(dt||{}),$o="*";function Yt(t,e){return{type:dt.Trigger,name:t,definitions:e,options:{}}}function St(t,e=null){return{type:dt.Animate,styles:e,timings:t}}function T3(t,e=null){return{type:dt.Group,steps:t,options:e}}function A3(t,e=null){return{type:dt.Sequence,steps:t,options:e}}function Ue(t){return{type:dt.Style,styles:t,offset:null}}function kt(t,e,n){return{type:dt.State,name:t,styles:e,options:n}}function Va(t){return{type:dt.Keyframes,steps:t}}function xt(t,e,n=null){return{type:dt.Transition,expr:t,animation:e,options:n}}function sg(t=null){return{type:dt.AnimateChild,options:t}}function ag(t,e,n=null){return{type:dt.Query,selector:t,animation:e,options:n}}var La=class{constructor(e=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(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(){queueMicrotask(()=>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,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let n=e=="start"?this._onStartFns:this._onDoneFns;n.forEach(i=>i()),n.length=0}},Fh=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let n=0,i=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,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){let n=e*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,n/i.totalTime):1;i.setPosition(r)})}getPosition(){let e=this.players.reduce((n,i)=>n===null||i.totalTime>n.totalTime?i:n,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let n=e=="start"?this._onStartFns:this._onDoneFns;n.forEach(i=>i()),n.length=0}},cg="!";var UC=class{constructor(e){this._box=e,this._destroyed=new K,this._resizeSubject=new K,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(n=>this._resizeSubject.next(n)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new $e(n=>{let i=this._resizeSubject.subscribe(n);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),i.unsubscribe(),this._elementObservables.delete(e)}}).pipe(We(n=>n.some(i=>i.target===e)),Iu({bufferSize:1,refCount:!0}),ot(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},R3=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=B(ee),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,i]of this._observers)i.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(i,r){let o=r?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new UC(o)),this._observers.get(o).observe(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ZG=["notch"],JG=["matFormFieldNotchedOutline",""],eY=["*"],tY=["textField"],iY=["iconPrefixContainer"],nY=["textPrefixContainer"],rY=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],oY=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function sY(t,e){t&1&&xe(0,"span",19)}function aY(t,e){if(t&1&&(D(0,"label",18),ke(1,1),ve(2,sY,1,0,"span",19),I()),t&2){let n=se(2);ie("floating",n._shouldLabelFloat())("monitorResize",n._hasOutline())("id",n._labelId),Ve("for",n._control.disableAutomaticLabeling?null:n._control.id),A(2),tt(!n.hideRequiredMarker&&n._control.required?2:-1)}}function cY(t,e){if(t&1&&ve(0,aY,3,5,"label",18),t&2){let n=se();tt(n._hasFloatingLabel()?0:-1)}}function lY(t,e){t&1&&xe(0,"div",5)}function dY(t,e){}function uY(t,e){if(t&1&&ve(0,dY,0,0,"ng-template",11),t&2){se(2);let n=Pi(1);ie("ngTemplateOutlet",n)}}function hY(t,e){if(t&1&&(D(0,"div",7),ve(1,uY,1,1,null,11),I()),t&2){let n=se();ie("matFormFieldNotchedOutlineOpen",n._shouldLabelFloat()),A(),tt(n._forceDisplayInfixLabel()?-1:1)}}function fY(t,e){t&1&&(D(0,"div",8,2),ke(2,2),I())}function pY(t,e){t&1&&(D(0,"div",9,3),ke(2,3),I())}function mY(t,e){}function gY(t,e){if(t&1&&ve(0,mY,0,0,"ng-template",11),t&2){se();let n=Pi(1);ie("ngTemplateOutlet",n)}}function vY(t,e){t&1&&(D(0,"div",12),ke(1,4),I())}function bY(t,e){t&1&&(D(0,"div",13),ke(1,5),I())}function _Y(t,e){t&1&&xe(0,"div",14)}function yY(t,e){if(t&1&&(D(0,"div",16),ke(1,6),I()),t&2){let n=se();ie("@transitionMessages",n._subscriptAnimationState)}}function wY(t,e){if(t&1&&(D(0,"mat-hint",20),z(1),I()),t&2){let n=se(2);ie("id",n._hintLabelId),A(),jt(n.hintLabel)}}function CY(t,e){if(t&1&&(D(0,"div",17),ve(1,wY,2,2,"mat-hint",20),ke(2,7),xe(3,"div",21),ke(4,8),I()),t&2){let n=se();ie("@transitionMessages",n._subscriptAnimationState),A(),tt(n.hintLabel?1:-1)}}var Wo=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["mat-label"]],standalone:!0});let t=e;return t})();var xY=new q("MatError");var DY=0,O3=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${DY++}`}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(r,o){r&2&&(pr("id",o.id),Ve("align",null),Oe("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let t=e;return t})(),EY=new q("MatPrefix");var H3=new q("MatSuffix"),z3=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(i){this._isText=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[Ye([{provide:H3,useExisting:e}])]});let t=e;return t})(),U3=new q("FloatingLabelParent"),N3=(()=>{let e=class e{get floating(){return this._floating}set floating(i){this._floating=i,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(i){this._monitorResize=i,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(i){this._elementRef=i,this._floating=!1,this._monitorResize=!1,this._resizeObserver=B(R3),this._ngZone=B(ee),this._parent=B(U3),this._resizeSubscription=new Me}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return SY(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}};e.\u0275fac=function(r){return new(r||e)(g(ce))},e.\u0275dir=te({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(r,o){r&2&&Oe("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let t=e;return t})();function SY(t){let e=t;if(e.offsetParent!==null)return e.scrollWidth;let n=e.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);let i=n.scrollWidth;return n.remove(),i}var F3="mdc-line-ripple--active",lg="mdc-line-ripple--deactivating",P3=(()=>{let e=class e{constructor(i,r){this._elementRef=i,this._handleTransitionEnd=o=>{let s=this._elementRef.nativeElement.classList,a=s.contains(lg);o.propertyName==="opacity"&&a&&s.remove(F3,lg)},r.runOutsideAngular(()=>{i.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let i=this._elementRef.nativeElement.classList;i.remove(lg),i.add(F3)}deactivate(){this._elementRef.nativeElement.classList.add(lg)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(ee))},e.\u0275dir=te({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let t=e;return t})(),L3=(()=>{let e=class e{constructor(i,r){this._elementRef=i,this._ngZone=r,this.open=!1}ngAfterViewInit(){let i=this._elementRef.nativeElement.querySelector(".mdc-floating-label");i?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(i.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>i.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(i){!this.open||!i?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${i}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(ee))},e.\u0275cmp=re({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(r,o){if(r&1&&ze(ZG,5),r&2){let s;pe(s=me())&&(o._notch=s.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(r,o){r&2&&Oe("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[Ne],attrs:JG,ngContentSelectors:eY,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(r,o){r&1&&(at(),xe(0,"div",1),D(1,"div",2,0),ke(3),I(),xe(4,"div",3))},encapsulation:2,changeDetection:0});let t=e;return t})(),IY={transitionMessages:Yt("transitionMessages",[kt("enter",Ue({opacity:1,transform:"translateY(0%)"})),xt("void => enter",[Ue({opacity:0,transform:"translateY(-5px)"}),St("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},yd=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e});let t=e;return t})();var Os=new q("MatFormField"),kY=new q("MAT_FORM_FIELD_DEFAULT_OPTIONS"),V3=0,B3="fill",MY="auto",j3="fixed",TY="translateY(-50%)",Rn=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(i){this._hideRequiredMarker=wi(i)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||MY}set floatLabel(i){i!==this._floatLabel&&(this._floatLabel=i,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(i){let r=this._appearance,o=i||this._defaults?.appearance||B3;this._appearance=o,this._appearance==="outline"&&this._appearance!==r&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||j3}set subscriptSizing(i){this._subscriptSizing=i||this._defaults?.subscriptSizing||j3}get hintLabel(){return this._hintLabel}set hintLabel(i){this._hintLabel=i,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(i){this._explicitFormFieldControl=i}constructor(i,r,o,s,a,c,l,u){this._elementRef=i,this._changeDetectorRef=r,this._dir=s,this._platform=a,this._defaults=c,this._animationMode=l,this._labelChild=bM(Wo),this._hideRequiredMarker=!1,this.color="primary",this._appearance=B3,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${V3++}`,this._hintLabelId=`mat-mdc-hint-${V3++}`,this._subscriptAnimationState="",this._destroyed=new K,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._injector=B(Je),this.getLabelId=Cs(()=>this._hasFloatingLabel()?this._labelId:null),this._hasFloatingLabel=Cs(()=>!!this._labelChild()),c&&(c.appearance&&(this.appearance=c.appearance),this._hideRequiredMarker=!!c?.hideRequiredMarker,c.color&&(this.color=c.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){let i=this._control;i.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${i.controlType}`),i.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),i.ngControl&&i.ngControl.valueChanges&&i.ngControl.valueChanges.pipe(ot(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(i=>!i._isText),this._hasTextPrefix=!!this._prefixChildren.find(i=>i._isText),this._hasIconSuffix=!!this._suffixChildren.find(i=>!i._isText),this._hasTextSuffix=!!this._suffixChildren.find(i=>i._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),yt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),Wu(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(ot(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(i){let r=this._control?this._control.ngControl:null;return r&&r[i]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let i=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&i.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,o=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?i.push(r.id):this._hintLabel&&i.push(this._hintLabelId),o&&i.push(o.id)}else this._errorChildren&&i.push(...this._errorChildren.map(r=>r.id));this._control.setDescribedByIds(i)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let i=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){i.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let r=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,s=r?.getBoundingClientRect().width??0,a=o?.getBoundingClientRect().width??0,c=this._dir.value==="rtl"?"-1":"1",l=`${s+a}px`,d=`calc(${c} * (${l} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;i.style.transform=`var( --mat-mdc-form-field-label-transform, ${TY} translateX(${d}) - )`}_isAttachedToDom(){let i=this._elementRef.nativeElement;if(i.getRootNode){let r=i.getRootNode();return r&&r!==i}return document.documentElement.contains(i)}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Ge),g(ee),g($t),g(et),g(kY,8),g(jt,8),g(Fe))},e.\u0275cmp=re({type:e,selectors:[["mat-form-field"]],contentQueries:function(r,o,s){if(r&1&&(NM(s,o._labelChild,Wo,5),ct(s,yd,5),ct(s,EY,5),ct(s,H3,5),ct(s,xY,5),ct(s,O3,5)),r&2){FM();let a;pe(a=me())&&(o._formFieldControl=a.first),pe(a=me())&&(o._prefixChildren=a),pe(a=me())&&(o._suffixChildren=a),pe(a=me())&&(o._errorChildren=a),pe(a=me())&&(o._hintChildren=a)}},viewQuery:function(r,o){if(r&1&&(ze(tY,5),ze(iY,5),ze(nY,5),ze(N3,5),ze(L3,5),ze(P3,5)),r&2){let s;pe(s=me())&&(o._textField=s.first),pe(s=me())&&(o._iconPrefixContainer=s.first),pe(s=me())&&(o._textPrefixContainer=s.first),pe(s=me())&&(o._floatingLabel=s.first),pe(s=me())&&(o._notchedOutline=s.first),pe(s=me())&&(o._lineRipple=s.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(r,o){r&2&&Oe("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[Ye([{provide:Os,useExisting:e},{provide:U3,useExisting:e}]),Ne],ngContentSelectors:oY,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(r,o){if(r&1){let s=st();at(rY),ve(0,cY,1,1,"ng-template",null,0,X1),D(2,"div",4,1),le("click",function(c){return Se(s),Ie(o._control.onContainerClick(c))}),ve(4,lY,1,0,"div",5),D(5,"div",6),ve(6,hY,2,2,"div",7)(7,fY,3,0,"div",8)(8,pY,3,0,"div",9),D(9,"div",10),ve(10,gY,1,1,null,11),ke(11),I(),ve(12,vY,2,0,"div",12)(13,bY,2,0,"div",13),I(),ve(14,_Y,1,0,"div",14),I(),D(15,"div",15),ve(16,yY,2,1,"div",16)(17,CY,5,2,"div",17),I()}if(r&2){let s;A(2),Oe("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),A(2),tt(!o._hasOutline()&&!o._control.disabled?4:-1),A(2),tt(o._hasOutline()?6:-1),A(),tt(o._hasIconPrefix?7:-1),A(),tt(o._hasTextPrefix?8:-1),A(2),tt(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),A(2),tt(o._hasTextSuffix?12:-1),A(),tt(o._hasIconSuffix?13:-1),A(),tt(o._hasOutline()?-1:14),A(),Oe("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),A(),tt((s=o._getDisplayedMessages())==="error"?16:s==="hint"?17:-1)}},dependencies:[N3,L3,uw,P3,O3],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color);caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color);caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--disabled .cdk-high-contrast-active .mdc-text-field__input{background-color:Window}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape)}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--outlined{height:56px;overflow:visible;padding-left:16px;padding-right:16px}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.cdk-high-contrast-active .mdc-text-field--disabled .mdc-floating-label{z-index:1}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color);border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;width:12px;border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape)}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 24px)}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[IY.transitionMessages]},changeDetection:0});let t=e;return t})(),Fc=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,Wi,ud,Ze]});let t=e;return t})();var AY=["panel"],RY=["*"];function OY(t,e){if(t&1){let n=st();D(0,"div",1,0),le("@panelAnimation.done",function(r){Se(n);let o=se();return Ie(o._animationDone.next(r))}),ke(2),I()}if(t&2){let n=e.id,i=se();_i(i._classList),Oe("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),ie("id",i.id)("@panelAnimation",i.isOpen?"visible":"hidden"),Ve("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(n))}}var NY=Yt("panelAnimation",[It("void, hidden",Ue({opacity:0,transform:"scaleY(0.8)"})),Ct(":enter, hidden => visible",[T3([Et("0.03s linear",Ue({opacity:1})),Et("0.12s cubic-bezier(0, 0, 0.2, 1)",Ue({transform:"scaleY(1)"}))])]),Ct(":leave, visible => hidden",[Et("0.075s linear",Ue({opacity:0}))])]),FY=0,qC=class{constructor(e,n){this.source=e,this.option=n}},q3=new q("mat-autocomplete-default-options",{providedIn:"root",factory:PY});function PY(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}var $3=(()=>{let e=class e{get isOpen(){return this._isOpen&&this.showPanel}_setColor(i){this._color=i,this._changeDetectorRef.markForCheck()}set classList(i){this._classList=i,this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(i){this._hideSingleSelectionIndicator=i,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(let i of this.options)i._changeDetectorRef.markForCheck()}constructor(i,r,o,s){this._changeDetectorRef=i,this._elementRef=r,this._defaults=o,this._activeOptionChanges=Me.EMPTY,this._animationDone=new oe,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new oe,this.opened=new oe,this.closed=new oe,this.optionActivated=new oe,this.id=`mat-autocomplete-${FY++}`,this.inertGroups=s?.SAFARI||!1,this.autoActiveFirstOption=!!o.autoActiveFirstOption,this.autoSelectActiveOption=!!o.autoSelectActiveOption,this.requireSelection=!!o.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new fd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(i=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[i]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(i){this.panel&&(this.panel.nativeElement.scrollTop=i)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(i){let r=new qC(this,i);this.optionSelected.emit(r)}_getPanelAriaLabelledby(i){if(this.ariaLabel)return null;let r=i?i+" ":"";return this.ariaLabelledby?r+this.ariaLabelledby:i}_skipPredicate(){return!1}};e.\u0275fac=function(r){return new(r||e)(g(Ge),g(ce),g(q3),g(et))},e.\u0275cmp=re({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(r,o,s){if(r&1&&(ct(s,qo,5),ct(s,Th,5)),r&2){let a;pe(a=me())&&(o.options=a),pe(a=me())&&(o.optionGroups=a)}},viewQuery:function(r,o){if(r&1&&(ze(Rt,7),ze(AY,5)),r&2){let s;pe(s=me())&&(o.template=s.first),pe(s=me())&&(o.panel=s.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",Ee],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",Ee],requireSelection:[2,"requireSelection","requireSelection",Ee],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",Ee],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Ee]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[Ye([{provide:Mh,useExisting:e}]),nt,Ne],ngContentSelectors:RY,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(r,o){r&1&&(at(),ve(0,OY,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape);box-shadow:var(--mat-autocomplete-container-elevation-shadow);background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[NY]},changeDetection:0});let t=e;return t})();var LY={provide:Uo,useExisting:li(()=>$C),multi:!0};var W3=new q("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=B(Lt);return()=>t.scrollStrategies.reposition()}});function VY(t){return()=>t.scrollStrategies.reposition()}var BY={provide:W3,deps:[Lt],useFactory:VY},$C=(()=>{let e=class e{constructor(i,r,o,s,a,c,l,u,d,h,f){this._element=i,this._overlay=r,this._viewContainerRef=o,this._zone=s,this._changeDetectorRef=a,this._dir=l,this._formField=u,this._document=d,this._viewportRuler=h,this._defaults=f,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Me.EMPTY,this._breakpointObserver=B(Da),this._handsetLandscapeSubscription=Me.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new K,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._initialized=new K,this._injector=B(Je),this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=en(()=>{let p=this.autocomplete?this.autocomplete.options:null;return p?p.changes.pipe(Bt(p),Nt(()=>yt(...p.map(m=>m.onSelectionChange)))):this._initialized.pipe(Nt(()=>this.optionSelections))}),this._handlePanelKeydown=p=>{(p.keyCode===27&&!zt(p)||p.keyCode===38&&zt(p,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),p.stopPropagation(),p.preventDefault())},this._trackedModal=null,this._scrollStrategy=c}ngAfterViewInit(){this._initialized.next(),this._initialized.complete();let i=this._getWindow();typeof i<"u"&&this._zone.runOutsideAngular(()=>i.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(i){i.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){let i=this._getWindow();typeof i<"u"&&i.removeEventListener("blur",this._windowBlurHandler),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&Na(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return yt(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(We(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(We(()=>this._overlayAttached)):we()).pipe(Te(i=>i instanceof Ih?i:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return yt(tn(this._document,"click"),tn(this._document,"auxclick"),tn(this._document,"touchend")).pipe(We(i=>{let r=cn(i),o=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,s=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&r!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(r))&&(!s||!s.contains(r))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(r)}))}writeValue(i){Promise.resolve(null).then(()=>this._assignOptionValue(i))}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._element.nativeElement.disabled=i}_handleKeydown(i){let r=i.keyCode,o=zt(i);if(r===27&&!o&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&r===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){let s=this.autocomplete._keyManager.activeItem,a=r===38||r===40;r===9||a&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):a&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(a||this.autocomplete._keyManager.activeItem!==s)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(i){let r=i.target,o=r.value;if(r.type==="number"&&(o=o==""?null:parseFloat(o)),this._previousValue!==o){if(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),!o)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let s=this.autocomplete.options?.find(a=>a.selected);if(s){let a=this._getDisplayValue(s.value);o!==a&&s.deselect(!1)}}if(this._canOpen()&&this._document.activeElement===i.target){let s=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(s)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(i=!1){this._formField&&this._formField.floatLabel==="auto"&&(i?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let i=new $e(o=>{ri(()=>{o.next()},{injector:this._injector})}),r=this.autocomplete.options.changes.pipe(Wt(()=>this._positionStrategy.reapplyLastPosition()),na(0));return yt(i,r).pipe(Nt(()=>this._zone.run(()=>{let o=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),wt(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(i){let r=this.autocomplete;return r&&r.displayWith?r.displayWith(i):i}_assignOptionValue(i){let r=this._getDisplayValue(i);i==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(r??"")}_updateNativeInputValue(i){this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(i){let r=this.autocomplete,o=i?i.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),r._emitSelectEvent(o),this._element.nativeElement.focus()):r.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),r._animationDone?r._animationDone.pipe(wt(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(i,r){this.autocomplete?.options?.forEach(o=>{o!==i&&o.selected&&o.deselect(r)})}_openPanelInternal(i=this._element.nativeElement.value){if(this._attachOverlay(i),this._floatLabel(),this._trackedModal){let r=this.autocomplete.id;gd(this._trackedModal,"aria-owns",r)}}_attachOverlay(i){this.autocomplete;let r=this._overlayRef;r?(this._positionStrategy.setOrigin(this._getConnectedElement()),r.updateSize({width:this._getPanelWidth()})):(this._portal=new Ki(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),r=this._overlay.create(this._getOverlayConfig()),this._overlayRef=r,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&r&&r.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(nd.HandsetLandscape).subscribe(s=>{s.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),r&&!r.hasAttached()&&(r.attach(this._portal),this._valueOnAttach=i,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let o=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&o!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let i=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=i.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=i.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Tn({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){let i=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(i),this._positionStrategy=i,i}_setStrategyPositions(i){let r=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,s=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],a;this.position==="above"?a=s:this.position==="below"?a=r:a=[...r,...s],i.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let i=this.autocomplete;if(i.autoActiveFirstOption){let r=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!i)return;let r=this.autocomplete.id;this._trackedModal&&Na(this._trackedModal,"aria-owns",r),gd(i,"aria-owns",r),this._trackedModal=i}_clearFromModal(){if(this._trackedModal){let i=this.autocomplete.id;Na(this._trackedModal,"aria-owns",i),this._trackedModal=null}}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Lt),g(qt),g(ee),g(Ge),g(W3),g($t,8),g(Os,9),g(Fe,8),g(Gn),g(q3,8))},e.\u0275dir=te({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(r,o){r&1&&le("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),r&2&&Ve("autocomplete",o.autocompleteAttribute)("role",o.autocompleteDisabled?null:"combobox")("aria-autocomplete",o.autocompleteDisabled?null:"list")("aria-activedescendant",o.panelOpen&&o.activeOption?o.activeOption.id:null)("aria-expanded",o.autocompleteDisabled?null:o.panelOpen.toString())("aria-controls",o.autocompleteDisabled||!o.panelOpen||o.autocomplete==null?null:o.autocomplete.id)("aria-haspopup",o.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",Ee]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[Ye([LY]),nt,lt]});let t=e;return t})(),G3=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[BY],imports:[An,vd,Ze,Wi,$n,vd,Ze]});let t=e;return t})();var HY=["mat-button",""],Q3=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],K3=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var zY=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var UY=["mat-mini-fab",""],qY='.mat-mdc-fab-base{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color);border-radius:var(--mdc-fab-container-shape);color:var(--mat-fab-foreground-color, inherit);box-shadow:var(--mdc-fab-container-elevation-shadow)}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color)}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity)}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity)}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity)}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow)}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color);border-radius:var(--mdc-fab-small-container-shape);color:var(--mat-fab-small-foreground-color, inherit);box-shadow:var(--mdc-fab-small-container-elevation-shadow)}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity)}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity)}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity)}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow)}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow)}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow)}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mdc-extended-fab-container-elevation-shadow);height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape);font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow)}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow)}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow)}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}',$Y=["mat-icon-button",""],WY=["*"];var GY=new q("MAT_BUTTON_CONFIG");var YY=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],WC=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(i){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,i)}get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=i,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._updateRippleDisabled()}constructor(i,r,o,s){this._elementRef=i,this._platform=r,this._ngZone=o,this._animationMode=s,this._focusMonitor=B(Yi),this._rippleLoader=B(y3),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let a=B(GY,{optional:!0}),c=i.nativeElement,l=c.classList;this.disabledInteractive=a?.disabledInteractive??!1,this.color=a?.color??null,this._rippleLoader?.configureRipple(c,{className:"mat-mdc-button-ripple"});for(let{attribute:u,mdcClasses:d}of YY)c.hasAttribute(u)&&l.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(i="program",r){i?this._focusMonitor.focusVia(this._elementRef.nativeElement,i,r):this._elementRef.nativeElement.focus(r)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};e.\u0275fac=function(r){Hl()},e.\u0275dir=te({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Ee],disabled:[2,"disabled","disabled",Ee],ariaDisabled:[2,"aria-disabled","ariaDisabled",Ee],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ee]},features:[nt]});let t=e;return t})();var ei=(()=>{let e=class e extends WC{constructor(i,r,o,s){super(i,r,o,s)}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(et),g(ee),g(jt,8))},e.\u0275cmp=re({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(r,o){r&2&&(Ve("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),_i(o.color?"mat-"+o.color:""),Oe("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[He,Ne],attrs:HY,ngContentSelectors:K3,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(at(Q3),xe(0,"span",0),ke(1),D(2,"span",1),ke(3,1),I(),ke(4,2),xe(5,"span",2)(6,"span",3)),r&2&&Oe("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color);background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow);height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color);background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight);border-radius:var(--mdc-outlined-button-container-shape);border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color);border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let t=e;return t})();var QY=new q("mat-mdc-fab-default-options",{providedIn:"root",factory:X3});function X3(){return{color:"accent"}}var Y3=X3();var Z3=(()=>{let e=class e extends WC{constructor(i,r,o,s,a){super(i,r,o,s),this._options=a,this._isFab=!0,this._options=this._options||Y3,this.color=this._options.color||Y3.color}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(et),g(ee),g(jt,8),g(QY,8))},e.\u0275cmp=re({type:e,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(r,o){r&2&&(Ve("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),_i(o.color?"mat-"+o.color:""),Oe("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[He,Ne],attrs:UY,ngContentSelectors:K3,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(at(Q3),xe(0,"span",0),ke(1),D(2,"span",1),ke(3,1),I(),ke(4,2),xe(5,"span",2)(6,"span",3)),r&2&&Oe("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[qY],encapsulation:2,changeDetection:0});let t=e;return t})();var Ns=(()=>{let e=class e extends WC{constructor(i,r,o,s){super(i,r,o,s),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(et),g(ee),g(jt,8))},e.\u0275cmp=re({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(r,o){r&2&&(Ve("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),_i(o.color?"mat-"+o.color:""),Oe("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[He,Ne],attrs:$Y,ngContentSelectors:WY,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(at(),xe(0,"span",0),ke(1),xe(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',zY],encapsulation:2,changeDetection:0});let t=e;return t})();var wd=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,As,Ze]});let t=e;return t})();var J3=In({passive:!0}),eR=(()=>{let e=class e{constructor(i,r){this._platform=i,this._ngZone=r,this._monitoredElements=new Map}monitor(i){if(!this._platform.isBrowser)return vn;let r=Sn(i),o=this._monitoredElements.get(r);if(o)return o.subject;let s=new K,a="cdk-text-field-autofilled",c=l=>{l.animationName==="cdk-text-field-autofill-start"&&!r.classList.contains(a)?(r.classList.add(a),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&r.classList.contains(a)&&(r.classList.remove(a),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{r.addEventListener("animationstart",c,J3),r.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(r,{subject:s,unlisten:()=>{r.removeEventListener("animationstart",c,J3)}}),s}stopMonitoring(i){let r=Sn(i),o=this._monitoredElements.get(r);o&&(o.unlisten(),o.subject.complete(),r.classList.remove("cdk-text-field-autofill-monitored"),r.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(r))}ngOnDestroy(){this._monitoredElements.forEach((i,r)=>this.stopMonitoring(r))}};e.\u0275fac=function(r){return new(r||e)(R(et),R(ee))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var tR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})();var GC=new q("MAT_INPUT_VALUE_ACCESSOR"),XY=["button","checkbox","file","hidden","image","radio","range","reset","submit"],ZY=0,On=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){this._disabled=wi(i),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(i){this._id=i||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Ma.required)??!1}set required(i){this._required=wi(i)}get type(){return this._type}set type(i){this._type=i||"text",this._validateType(),!this._isTextarea&&uC().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get value(){return this._inputValueAccessor.value}set value(i){i!==this.value&&(this._inputValueAccessor.value=i,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(i){this._readonly=wi(i)}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(i,r,o,s,a,c,l,u,d,h){this._elementRef=i,this._platform=r,this.ngControl=o,this._autofillMonitor=u,this._ngZone=d,this._formField=h,this._uid=`mat-input-${ZY++}`,this._webkitBlinkWheelListenerAttached=!1,this.focused=!1,this.stateChanges=new K,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(m=>uC().has(m)),this._iOSKeyupListener=m=>{let v=m.target;!v.value&&v.selectionStart===0&&v.selectionEnd===0&&(v.setSelectionRange(1,1),v.setSelectionRange(0,0))},this._webkitBlinkWheelListener=()=>{};let f=this._elementRef.nativeElement,p=f.nodeName.toLowerCase();this._inputValueAccessor=l||f,this._previousNativeValue=this.value,this.id=this.id,r.IOS&&d.runOutsideAngular(()=>{i.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Tc(c,o,a,s,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=p==="select",this._isTextarea=p==="textarea",this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(i=>{this.autofilled=i.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(i){this._elementRef.nativeElement.focus(i)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(i){i!==this.focused&&(this.focused=i,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let i=this._elementRef.nativeElement.value;this._previousNativeValue!==i&&(this._previousNativeValue=i,this.stateChanges.next())}_dirtyCheckPlaceholder(){let i=this._getPlaceholder();if(i!==this._previousPlaceholder){let r=this._elementRef.nativeElement;this._previousPlaceholder=i,i?r.setAttribute("placeholder",i):r.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){XY.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let i=this._elementRef.nativeElement.validity;return i&&i.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let i=this._elementRef.nativeElement,r=i.options[0];return this.focused||i.multiple||!this.empty||!!(i.selectedIndex>-1&&r&&r.label)}else return this.focused||!this.empty}setDescribedByIds(i){i.length?this._elementRef.nativeElement.setAttribute("aria-describedby",i.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let i=this._elementRef.nativeElement;return this._isNativeSelect&&(i.multiple||i.size>1)}_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&this._type!=="number"&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(et),g(vr,10),g(Yn,8),g(yh,8),g(kh),g(GC,10),g(eR),g(ee),g(Os,8))},e.\u0275dir=te({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(r,o){r&1&&le("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),r&2&&(pr("id",o.id)("disabled",o.disabled)("required",o.required),Ve("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),Oe("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[Ye([{provide:yd,useExisting:e}]),lt]});let t=e;return t})(),iR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,Fc,Fc,tR,Ze]});let t=e;return t})();var JY=["mat-calendar-body",""];function eQ(t,e){return this._trackRow(e)}var dR=(t,e)=>e.id;function tQ(t,e){if(t&1&&(D(0,"tr",0)(1,"td",3),z(2),I()()),t&2){let n=se();A(),hi("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),Ve("colspan",n.numCols),A(),Tt(" ",n.label," ")}}function iQ(t,e){if(t&1&&(D(0,"td",3),z(1),I()),t&2){let n=se(2);hi("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),Ve("colspan",n._firstRowOffset),A(),Tt(" ",n._firstRowOffset>=n.labelMinRequiredCells?n.label:""," ")}}function nQ(t,e){if(t&1){let n=st();D(0,"td",6)(1,"button",7),le("click",function(r){let o=Se(n).$implicit,s=se(2);return Ie(s._cellClicked(o,r))})("focus",function(r){let o=Se(n).$implicit,s=se(2);return Ie(s._emitActiveDateChange(o,r))}),D(2,"span",8),z(3),I(),xe(4,"span",9),I()()}if(t&2){let n=e.$implicit,i=e.$index,r=se().$index,o=se();hi("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),Ve("data-mat-row",r)("data-mat-col",i),A(),Oe("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(n.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(n.compareValue))("mat-calendar-body-in-range",o._isInRange(n.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(n.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(n.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(n.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(n.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(n.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(n.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(n.compareValue))("mat-calendar-body-in-preview",o._isInPreview(n.compareValue)),ie("ngClass",n.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),Ve("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-pressed",o._isSelected(n.compareValue))("aria-current",o.todayValue===n.compareValue?"date":null)("aria-describedby",o._getDescribedby(n.compareValue)),A(),Oe("mat-calendar-body-selected",o._isSelected(n.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(n.compareValue))("mat-calendar-body-today",o.todayValue===n.compareValue),A(),Tt(" ",n.displayValue," ")}}function rQ(t,e){if(t&1&&(D(0,"tr",1),ve(1,iQ,2,6,"td",4),ql(2,nQ,5,48,"td",5,dR),I()),t&2){let n=e.$implicit,i=e.$index,r=se();A(),tt(i===0&&r._firstRowOffset?1:-1),A(),$l(n)}}function oQ(t,e){if(t&1&&(D(0,"th",2)(1,"span",6),z(2),I(),D(3,"span",3),z(4),I()()),t&2){let n=e.$implicit;A(2),Pt(n.long),A(2),Pt(n.narrow)}}var sQ=["*"];function aQ(t,e){}function cQ(t,e){if(t&1){let n=st();D(0,"mat-month-view",4),ni("activeDateChange",function(r){Se(n);let o=se();return oi(o.activeDate,r)||(o.activeDate=r),Ie(r)}),le("_userSelection",function(r){Se(n);let o=se();return Ie(o._dateSelected(r))})("dragStarted",function(r){Se(n);let o=se();return Ie(o._dragStarted(r))})("dragEnded",function(r){Se(n);let o=se();return Ie(o._dragEnded(r))}),I()}if(t&2){let n=se();ii("activeDate",n.activeDate),ie("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)("startDateAccessibleName",n.startDateAccessibleName)("endDateAccessibleName",n.endDateAccessibleName)("activeDrag",n._activeDrag)}}function lQ(t,e){if(t&1){let n=st();D(0,"mat-year-view",5),ni("activeDateChange",function(r){Se(n);let o=se();return oi(o.activeDate,r)||(o.activeDate=r),Ie(r)}),le("monthSelected",function(r){Se(n);let o=se();return Ie(o._monthSelectedInYearView(r))})("selectedChange",function(r){Se(n);let o=se();return Ie(o._goToDateInView(r,"month"))}),I()}if(t&2){let n=se();ii("activeDate",n.activeDate),ie("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function dQ(t,e){if(t&1){let n=st();D(0,"mat-multi-year-view",6),ni("activeDateChange",function(r){Se(n);let o=se();return oi(o.activeDate,r)||(o.activeDate=r),Ie(r)}),le("yearSelected",function(r){Se(n);let o=se();return Ie(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){Se(n);let o=se();return Ie(o._goToDateInView(r,"year"))}),I()}if(t&2){let n=se();ii("activeDate",n.activeDate),ie("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function uQ(t,e){}var hQ=["button"],fQ=[[["","matDatepickerToggleIcon",""]]],pQ=["[matDatepickerToggleIcon]"];function mQ(t,e){t&1&&(No(),D(0,"svg",2),xe(1,"path",3),I())}var Bh=(()=>{let e=class e{constructor(){this.changes=new K,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(i,r){return`${i} \u2013 ${r}`}formatYearRangeLabel(i,r){return`${i} to ${r}`}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),gQ=0,Lh=class{constructor(e,n,i,r,o={},s=e,a){this.value=e,this.displayValue=n,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=s,this.rawValue=a,this.id=gQ++}},vQ=1,nR=In({passive:!1,capture:!0}),Ba=In({passive:!0,capture:!0}),dg=In({passive:!0}),xd=(()=>{let e=class e{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(i,r){this._elementRef=i,this._ngZone=r,this._platform=B(et),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new oe,this.previewChange=new oe,this.activeDateChange=new oe,this.dragStarted=new oe,this.dragEnded=new oe,this._didDragSinceMouseDown=!1,this._injector=B(Je),this._trackRow=o=>o,this._enterHandler=o=>{if(this._skipNextFocus&&o.type==="focus"){this._skipNextFocus=!1;return}if(o.target&&this.isRange){let s=this._getCellFromElement(o.target);s&&this._ngZone.run(()=>this.previewChange.emit({value:s.enabled?s:null,event:o}))}},this._touchmoveHandler=o=>{if(!this.isRange)return;let s=rR(o),a=s?this._getCellFromElement(s):null;s!==o.target&&(this._didDragSinceMouseDown=!0),QC(o.target)&&o.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:a?.enabled?a:null,event:o}))},this._leaveHandler=o=>{this.previewEnd!==null&&this.isRange&&(o.type!=="blur"&&(this._didDragSinceMouseDown=!0),o.target&&this._getCellFromElement(o.target)&&!(o.relatedTarget&&this._getCellFromElement(o.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:o})))},this._mousedownHandler=o=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let s=o.target&&this._getCellFromElement(o.target);!s||!this._isInRange(s.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:s.rawValue,event:o})})},this._mouseupHandler=o=>{if(!this.isRange)return;let s=QC(o.target);if(!s){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:o})});return}s.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let a=this._getCellFromElement(s);this.dragEnded.emit({value:a?.rawValue??null,event:o})})},this._touchendHandler=o=>{let s=rR(o);s&&this._mouseupHandler({target:s})},this._id=`mat-calendar-body-${vQ++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,r.runOutsideAngular(()=>{let o=i.nativeElement;o.addEventListener("touchmove",this._touchmoveHandler,nR),o.addEventListener("mouseenter",this._enterHandler,Ba),o.addEventListener("focus",this._enterHandler,Ba),o.addEventListener("mouseleave",this._leaveHandler,Ba),o.addEventListener("blur",this._leaveHandler,Ba),o.addEventListener("mousedown",this._mousedownHandler,dg),o.addEventListener("touchstart",this._mousedownHandler,dg),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(i,r){this._didDragSinceMouseDown||i.enabled&&this.selectedValueChange.emit({value:i.value,event:r})}_emitActiveDateChange(i,r){i.enabled&&this.activeDateChange.emit({value:i.value,event:r})}_isSelected(i){return this.startValue===i||this.endValue===i}ngOnChanges(i){let r=i.numCols,{rows:o,numCols:s}=this;(i.rows||r)&&(this._firstRowOffset=o&&o.length&&o[0].length?s-o[0].length:0),(i.cellAspectRatio||r||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/s}%`),(r||!this._cellWidth)&&(this._cellWidth=`${100/s}%`)}ngOnDestroy(){let i=this._elementRef.nativeElement;i.removeEventListener("touchmove",this._touchmoveHandler,nR),i.removeEventListener("mouseenter",this._enterHandler,Ba),i.removeEventListener("focus",this._enterHandler,Ba),i.removeEventListener("mouseleave",this._leaveHandler,Ba),i.removeEventListener("blur",this._leaveHandler,Ba),i.removeEventListener("mousedown",this._mousedownHandler,dg),i.removeEventListener("touchstart",this._mousedownHandler,dg),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(i,r){let o=i*this.numCols+r;return i&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(i=!0){ri(()=>{setTimeout(()=>{let r=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");r&&(i||(this._skipNextFocus=!0),r.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(i){return KC(i,this.startValue,this.endValue)}_isRangeEnd(i){return XC(i,this.startValue,this.endValue)}_isInRange(i){return ZC(i,this.startValue,this.endValue,this.isRange)}_isComparisonStart(i){return KC(i,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(i,r,o){if(!this._isComparisonStart(i)||this._isRangeStart(i)||!this._isInRange(i))return!1;let s=this.rows[r][o-1];if(!s){let a=this.rows[r-1];s=a&&a[a.length-1]}return s&&!this._isRangeEnd(s.compareValue)}_isComparisonBridgeEnd(i,r,o){if(!this._isComparisonEnd(i)||this._isRangeEnd(i)||!this._isInRange(i))return!1;let s=this.rows[r][o+1];if(!s){let a=this.rows[r+1];s=a&&a[0]}return s&&!this._isRangeStart(s.compareValue)}_isComparisonEnd(i){return XC(i,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(i){return ZC(i,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(i){return this.comparisonStart===this.comparisonEnd&&i===this.comparisonStart}_isPreviewStart(i){return KC(i,this.previewStart,this.previewEnd)}_isPreviewEnd(i){return XC(i,this.previewStart,this.previewEnd)}_isInPreview(i){return ZC(i,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(i){return this.isRange?this.startValue===i&&this.endValue===i?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===i?this._startDateLabelId:this.endValue===i?this._endDateLabelId:null:null}_getCellFromElement(i){let r=QC(i);if(r){let o=r.getAttribute("data-mat-row"),s=r.getAttribute("data-mat-col");if(o&&s)return this.rows[parseInt(o)][parseInt(s)]}return null}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(ee))},e.\u0275cmp=re({type:e,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],standalone:!0,features:[lt,Ne],attrs:JY,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(r,o){r&1&&(ve(0,tQ,3,6,"tr",0),ql(1,rQ,4,1,"tr",1,eQ,!0),D(3,"label",2),z(4),I(),D(5,"label",2),z(6),I()),r&2&&(tt(o._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}'],encapsulation:2,changeDetection:0});let t=e;return t})();function YC(t){return t?.nodeName==="TD"}function QC(t){let e;return YC(t)?e=t:YC(t.parentNode)?e=t.parentNode:YC(t.parentNode?.parentNode)&&(e=t.parentNode.parentNode),e?.getAttribute("data-mat-row")!=null?e:null}function KC(t,e,n){return n!==null&&e!==n&&t=e&&t===n}function ZC(t,e,n,i){return i&&e!==null&&n!==null&&e!==n&&t>=e&&t<=n}function rR(t){let e=t.changedTouches[0];return document.elementFromPoint(e.clientX,e.clientY)}var yr=class{constructor(e,n){this.start=e,this.end=n}},Vh=(()=>{let e=class e{constructor(i,r){this.selection=i,this._adapter=r,this._selectionChanged=new K,this.selectionChanged=this._selectionChanged,this.selection=i}updateSelection(i,r){let o=this.selection;this.selection=i,this._selectionChanged.next({selection:i,source:r,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(i){return this._adapter.isDateInstance(i)&&this._adapter.isValid(i)}};e.\u0275fac=function(r){Hl()},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),bQ=(()=>{let e=class e extends Vh{constructor(i){super(null,i)}add(i){super.updateSelection(i,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let i=new e(this._adapter);return i.updateSelection(this.selection,this),i}};e.\u0275fac=function(r){return new(r||e)(R(Vi))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();function _Q(t,e){return t||new bQ(e)}var uR={provide:Vh,deps:[[new Gr,new fa,Vh],Vi],useFactory:_Q};var hR=new q("MAT_DATE_RANGE_SELECTION_STRATEGY");var JC=7,yQ=0,oR=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(i){let r=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(r,this._activeDate)||this._init()}get selected(){return this._selected}set selected(i){i instanceof yr?this._selected=i:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(i){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}get maxDate(){return this._maxDate}set maxDate(i){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}constructor(i,r,o,s,a){this._changeDetectorRef=i,this._dateFormats=r,this._dateAdapter=o,this._dir=s,this._rangeStrategy=a,this._rerenderSubscription=Me.EMPTY,this.activeDrag=null,this.selectedChange=new oe,this._userSelection=new oe,this.dragStarted=new oe,this.dragEnded=new oe,this.activeDateChange=new oe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Bt(null)).subscribe(()=>this._init())}ngOnChanges(i){let r=i.comparisonStart||i.comparisonEnd;r&&!r.firstChange&&this._setRanges(this.selected),i.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(i){let r=i.value,o=this._getDateFromDayOfMonth(r),s,a;this._selected instanceof yr?(s=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):s=a=this._getDateInCurrentMonth(this._selected),(s!==r||a!==r)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:i.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(i){let r=i.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(r),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(i){let r=this._activeDate,o=this._isRtl();switch(i.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=i.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=i.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&i.preventDefault();return;case 27:this._previewEnd!=null&&!zt(i)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:i}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:i})),i.preventDefault(),i.stopPropagation());return;default:return}this._dateAdapter.compareDate(r,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),i.preventDefault()}_handleCalendarBodyKeyup(i){(i.keyCode===32||i.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:i}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(JC+this._dateAdapter.getDayOfWeek(i)-this._dateAdapter.getFirstDayOfWeek())%JC,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(i){this._matCalendarBody._focusActiveCell(i)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:i,value:r}){if(this._rangeStrategy){let o=r?r.rawValue:null,s=this._rangeStrategy.createPreview(o,this.selected,i);if(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end),this.activeDrag&&o){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,i);a&&(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(i){if(this.activeDrag)if(i.value){let r=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,i.value,i.event);this.dragEnded.emit({value:r??null,event:i.event})}else this.dragEnded.emit({value:null,event:i.event})}_getDateFromDayOfMonth(i){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),i)}_initWeekdays(){let i=this._dateAdapter.getFirstDayOfWeek(),r=this._dateAdapter.getDayOfWeekNames("narrow"),s=this._dateAdapter.getDayOfWeekNames("long").map((a,c)=>({long:a,narrow:r[c],id:yQ++}));this._weekdays=s.slice(i).concat(s.slice(0,i))}_createWeekCells(){let i=this._dateAdapter.getNumDaysInMonth(this.activeDate),r=this._dateAdapter.getDateNames();this._weeks=[[]];for(let o=0,s=this._firstWeekOffset;o=0)&&(!this.maxDate||this._dateAdapter.compareDate(i,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(i))}_getDateInCurrentMonth(i){return i&&this._hasSameMonthAndYear(i,this.activeDate)?this._dateAdapter.getDate(i):null}_hasSameMonthAndYear(i,r){return!!(i&&r&&this._dateAdapter.getMonth(i)==this._dateAdapter.getMonth(r)&&this._dateAdapter.getYear(i)==this._dateAdapter.getYear(r))}_getCellCompareValue(i){if(i){let r=this._dateAdapter.getYear(i),o=this._dateAdapter.getMonth(i),s=this._dateAdapter.getDate(i);return new Date(r,o,s).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(i){i instanceof yr?(this._rangeStart=this._getCellCompareValue(i.start),this._rangeEnd=this._getCellCompareValue(i.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(i),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(i){return!this.dateFilter||this.dateFilter(i)}_clearPreview(){this._previewStart=this._previewEnd=null}};e.\u0275fac=function(r){return new(r||e)(g(Ge),g(Fa,8),g(Vi,8),g($t,8),g(hR,8))},e.\u0275cmp=re({type:e,selectors:[["mat-month-view"]],viewQuery:function(r,o){if(r&1&&ze(xd,5),r&2){let s;pe(s=me())&&(o._matCalendarBody=s.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],standalone:!0,features:[lt,Ne],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(r,o){r&1&&(D(0,"table",0)(1,"thead",1)(2,"tr"),ql(3,oQ,5,2,"th",2,dR),I(),D(5,"tr",3),xe(6,"th",4),I()(),D(7,"tbody",5),le("selectedValueChange",function(a){return o._dateSelected(a)})("activeDateChange",function(a){return o._updateActiveDate(a)})("previewChange",function(a){return o._previewChanged(a)})("dragStarted",function(a){return o.dragStarted.emit(a)})("dragEnded",function(a){return o._dragEnded(a)})("keyup",function(a){return o._handleCalendarBodyKeyup(a)})("keydown",function(a){return o._handleCalendarBodyKeydown(a)}),I()()),r&2&&(A(3),$l(o._weekdays),A(4),ie("label",o._monthLabel)("rows",o._weeks)("todayValue",o._todayDate)("startValue",o._rangeStart)("endValue",o._rangeEnd)("comparisonStart",o._comparisonRangeStart)("comparisonEnd",o._comparisonRangeEnd)("previewStart",o._previewStart)("previewEnd",o._previewEnd)("isRange",o._isRange)("labelMinRequiredCells",3)("activeCell",o._dateAdapter.getDate(o.activeDate)-1)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName))},dependencies:[xd],encapsulation:2,changeDetection:0});let t=e;return t})(),Xn=24,ex=4,sR=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(i){let r=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),fR(this._dateAdapter,r,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(i){i instanceof yr?this._selected=i:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i)),this._setSelectedYear(i)}get minDate(){return this._minDate}set minDate(i){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}get maxDate(){return this._maxDate}set maxDate(i){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}constructor(i,r,o){this._changeDetectorRef=i,this._dateAdapter=r,this._dir=o,this._rerenderSubscription=Me.EMPTY,this.selectedChange=new oe,this.yearSelected=new oe,this.activeDateChange=new oe,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Bt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let r=this._dateAdapter.getYear(this._activeDate)-Ph(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let o=0,s=[];othis._createCellForYear(a))),s=[]);this._changeDetectorRef.markForCheck()}_yearSelected(i){let r=i.value,o=this._dateAdapter.createDate(r,0,1),s=this._getDateFromYear(r);this.yearSelected.emit(o),this.selectedChange.emit(s)}_updateActiveDate(i){let r=i.value,o=this._activeDate;this.activeDate=this._getDateFromYear(r),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(i){let r=this._activeDate,o=this._isRtl();switch(i.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ex);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ex);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Ph(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Xn-Ph(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i.altKey?-Xn*10:-Xn);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i.altKey?Xn*10:Xn);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),i.preventDefault()}_handleCalendarBodyKeyup(i){(i.keyCode===32||i.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:i}),this._selectionKeyPressed=!1)}_getActiveCell(){return Ph(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(i){let r=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(i,r,1));return this._dateAdapter.createDate(i,r,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(i){let r=this._dateAdapter.createDate(i,0,1),o=this._dateAdapter.getYearName(r),s=this.dateClass?this.dateClass(r,"multi-year"):void 0;return new Lh(i,o,o,this._shouldEnableYear(i),s)}_shouldEnableYear(i){if(i==null||this.maxDate&&i>this._dateAdapter.getYear(this.maxDate)||this.minDate&&i{let e=class e{get activeDate(){return this._activeDate}set activeDate(i){let r=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(r)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(i){i instanceof yr?this._selected=i:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i)),this._setSelectedMonth(i)}get minDate(){return this._minDate}set minDate(i){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}get maxDate(){return this._maxDate}set maxDate(i){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}constructor(i,r,o,s){this._changeDetectorRef=i,this._dateFormats=r,this._dateAdapter=o,this._dir=s,this._rerenderSubscription=Me.EMPTY,this.selectedChange=new oe,this.monthSelected=new oe,this.activeDateChange=new oe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Bt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(i){let r=i.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),r,1);this.monthSelected.emit(o);let s=this._getDateFromMonth(r);this.selectedChange.emit(s)}_updateActiveDate(i){let r=i.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(r),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(i){let r=this._activeDate,o=this._isRtl();switch(i.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(r,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),i.preventDefault()}_handleCalendarBodyKeyup(i){(i.keyCode===32||i.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:i}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let i=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(r=>r.map(o=>this._createCellForMonth(o,i[o]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(i){return i&&this._dateAdapter.getYear(i)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(i):null}_getDateFromMonth(i){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1),o=this._dateAdapter.getNumDaysInMonth(r);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(i,r){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1),s=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new Lh(i,r.toLocaleUpperCase(),s,this._shouldEnableMonth(i),a)}_shouldEnableMonth(i){let r=this._dateAdapter.getYear(this.activeDate);if(i==null||this._isYearAndMonthAfterMaxDate(r,i)||this._isYearAndMonthBeforeMinDate(r,i))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(r,i,1);for(let s=o;this._dateAdapter.getMonth(s)==i;s=this._dateAdapter.addCalendarDays(s,1))if(this.dateFilter(s))return!0;return!1}_isYearAndMonthAfterMaxDate(i,r){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),s=this._dateAdapter.getMonth(this.maxDate);return i>o||i===o&&r>s}return!1}_isYearAndMonthBeforeMinDate(i,r){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),s=this._dateAdapter.getMonth(this.minDate);return i{let e=class e{constructor(i,r,o,s,a){this._intl=i,this.calendar=r,this._dateAdapter=o,this._dateFormats=s,this._id=`mat-calendar-header-${CQ++}`,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>a.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Xn)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Xn)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(i,r){return this.calendar.currentView=="month"?this._dateAdapter.getYear(i)==this._dateAdapter.getYear(r)&&this._dateAdapter.getMonth(i)==this._dateAdapter.getMonth(r):this.calendar.currentView=="year"?this._dateAdapter.getYear(i)==this._dateAdapter.getYear(r):fR(this._dateAdapter,i,r,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let r=this._dateAdapter.getYear(this.calendar.activeDate)-Ph(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=r+Xn-1,s=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[s,a]}};e.\u0275fac=function(r){return new(r||e)(g(Bh),g(li(()=>tx)),g(Vi,8),g(Fa,8),g(Ge))},e.\u0275cmp=re({type:e,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[Ne],ngContentSelectors:sQ,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"]],template:function(r,o){r&1&&(at(),D(0,"div",0)(1,"div",1)(2,"label",2),z(3),I(),D(4,"button",3),le("click",function(){return o.currentPeriodClicked()}),D(5,"span",4),z(6),I(),No(),D(7,"svg",5),xe(8,"polygon",6),I()(),S1(),xe(9,"div",7),ke(10),D(11,"button",8),le("click",function(){return o.previousClicked()}),I(),D(12,"button",9),le("click",function(){return o.nextClicked()}),I()()()),r&2&&(A(2),ie("id",o._periodButtonLabelId),A(),Pt(o.periodButtonDescription),A(),Ve("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),A(2),Pt(o.periodButtonText),A(),Oe("mat-calendar-invert",o.calendar.currentView!=="month"),A(4),ie("disabled",!o.previousEnabled()),Ve("aria-label",o.prevButtonLabel),A(),ie("disabled",!o.nextEnabled()),Ve("aria-label",o.nextButtonLabel))},dependencies:[ei,Ns],encapsulation:2,changeDetection:0});let t=e;return t})(),tx=(()=>{let e=class e{get startAt(){return this._startAt}set startAt(i){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}get selected(){return this._selected}set selected(i){i instanceof yr?this._selected=i:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}get minDate(){return this._minDate}set minDate(i){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}get maxDate(){return this._maxDate}set maxDate(i){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}get activeDate(){return this._clampedActiveDate}set activeDate(i){this._clampedActiveDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(i){let r=this._currentView!==i?i:null;this._currentView=i,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),r&&this.viewChanged.emit(r)}constructor(i,r,o,s){this._dateAdapter=r,this._dateFormats=o,this._changeDetectorRef=s,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new oe,this.yearSelected=new oe,this.monthSelected=new oe,this.viewChanged=new oe(!0),this._userSelection=new oe,this._userDragDrop=new oe,this._activeDrag=null,this.stateChanges=new K,this._intlChanges=i.changes.subscribe(()=>{s.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new br(this.headerComponent||mR),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(i){let r=i.minDate&&!this._dateAdapter.sameDate(i.minDate.previousValue,i.minDate.currentValue)?i.minDate:void 0,o=i.maxDate&&!this._dateAdapter.sameDate(i.maxDate.previousValue,i.maxDate.currentValue)?i.maxDate:void 0,s=r||o||i.dateFilter;if(s&&!s.firstChange){let a=this._getCurrentViewComponent();a&&(this._moveFocusOnNextTick=!0,this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(i){let r=i.value;(this.selected instanceof yr||r&&!this._dateAdapter.sameDate(r,this.selected))&&this.selectedChange.emit(r),this._userSelection.emit(i)}_yearSelectedInMultiYearView(i){this.yearSelected.emit(i)}_monthSelectedInYearView(i){this.monthSelected.emit(i)}_goToDateInView(i,r){this.activeDate=i,this.currentView=r}_dragStarted(i){this._activeDrag=i}_dragEnded(i){this._activeDrag&&(i.value&&this._userDragDrop.emit(i),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}};e.\u0275fac=function(r){return new(r||e)(g(Bh),g(Vi,8),g(Fa,8),g(Ge))},e.\u0275cmp=re({type:e,selectors:[["mat-calendar"]],viewQuery:function(r,o){if(r&1&&(ze(oR,5),ze(aR,5),ze(sR,5)),r&2){let s;pe(s=me())&&(o.monthView=s.first),pe(s=me())&&(o.yearView=s.first),pe(s=me())&&(o.multiYearView=s.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],standalone:!0,features:[Ye([uR]),lt,Ne],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(r,o){if(r&1&&(ve(0,aQ,0,0,"ng-template",0),D(1,"div",1),ve(2,cQ,1,11,"mat-month-view",2)(3,lQ,1,6,"mat-year-view",3)(4,dQ,1,6,"mat-multi-year-view",3),I()),r&2){let s;ie("cdkPortalOutlet",o._calendarHeaderPortal),A(2),tt((s=o.currentView)==="month"?2:s==="year"?3:s==="multi-year"?4:-1)}},dependencies:[Qn,a3,oR,aR,sR],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight);--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=e;return t})(),cR={transformPanel:Yt("transformPanel",[Ct("void => enter-dropdown",Et("120ms cubic-bezier(0, 0, 0.2, 1)",Va([Ue({opacity:0,transform:"scale(1, 0.8)"}),Ue({opacity:1,transform:"scale(1, 1)"})]))),Ct("void => enter-dialog",Et("150ms cubic-bezier(0, 0, 0.2, 1)",Va([Ue({opacity:0,transform:"scale(0.7)"}),Ue({transform:"none",opacity:1})]))),Ct("* => void",Et("100ms linear",Ue({opacity:0})))]),fadeInCalendar:Yt("fadeInCalendar",[It("void",Ue({opacity:0})),It("enter",Ue({opacity:1})),Ct("void => *",Et("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},xQ=0,gR=new q("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=B(Lt);return()=>t.scrollStrategies.reposition()}});function DQ(t){return()=>t.scrollStrategies.reposition()}var EQ={provide:gR,deps:[Lt],useFactory:DQ},vR=(()=>{let e=class e{constructor(i,r,o,s,a,c){this._elementRef=i,this._changeDetectorRef=r,this._globalModel=o,this._dateAdapter=s,this._rangeSelectionStrategy=a,this._subscriptions=new Me,this._animationDone=new K,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=c.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(i){let r=this._model.selection,o=i.value,s=r instanceof yr;if(s&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(o,r,i.event);this._model.updateSelection(a,this)}else o&&(s||!this._dateAdapter.sameDate(o,r))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(i){this._model.updateSelection(i.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(i){this._isAnimating=i.phaseName==="start",this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(i,r){this._model=i?this._globalModel.clone():this._globalModel,this._actionsPortal=i,r&&this._changeDetectorRef.detectChanges()}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Ge),g(Vh),g(Vi),g(hR,8),g(Bh))},e.\u0275cmp=re({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(r,o){if(r&1&&ze(tx,5),r&2){let s;pe(s=me())&&(o._calendar=s.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(r,o){r&1&&gc("@transformPanel.start",function(a){return o._handleAnimationEvent(a)})("@transformPanel.done",function(a){return o._handleAnimationEvent(a)}),r&2&&(mc("@transformPanel",o._animationState),_i(o.color?"mat-"+o.color:""),Oe("mat-datepicker-content-touch",o.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[Ne],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(r,o){if(r&1&&(D(0,"div",0)(1,"mat-calendar",1),le("yearSelected",function(a){return o.datepicker._selectYear(a)})("monthSelected",function(a){return o.datepicker._selectMonth(a)})("viewChanged",function(a){return o.datepicker._viewChanged(a)})("_userSelection",function(a){return o._handleUserSelection(a)})("_userDragDrop",function(a){return o._handleUserDragDrop(a)}),I(),ve(2,uQ,0,0,"ng-template",2),D(3,"button",3),le("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),z(4),I()()),r&2){let s;Oe("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),Ve("aria-modal",!0)("aria-labelledby",(s=o._dialogLabelId)!==null&&s!==void 0?s:void 0),A(),_i(o.datepicker.panelClass),ie("id",o.datepicker.id)("startAt",o.datepicker.startAt)("startView",o.datepicker.startView)("minDate",o.datepicker._getMinDate())("maxDate",o.datepicker._getMaxDate())("dateFilter",o.datepicker._getDateFilter())("headerComponent",o.datepicker.calendarHeaderComponent)("selected",o._getSelected())("dateClass",o.datepicker.dateClass)("comparisonStart",o.comparisonStart)("comparisonEnd",o.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),A(),ie("cdkPortalOutlet",o._actionsPortal),A(),Oe("cdk-visually-hidden",!o._closeButtonFocused),ie("color",o.color||"primary"),A(),Pt(o._closeButtonText)}},dependencies:[o3,tx,Qn,ei],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color);box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape);position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[cR.transformPanel,cR.fadeInCalendar]},changeDetection:0});let t=e;return t})(),lR=(()=>{let e=class e{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(i){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(i){this._color=i}get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(i){i!==this._disabled&&(this._disabled=i,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(i){this._panelClass=cA(i)}get opened(){return this._opened}set opened(i){i?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(i,r,o,s,a,c,l){this._overlay=i,this._viewContainerRef=o,this._dateAdapter=a,this._dir=c,this._model=l,this._inputStateChanges=Me.EMPTY,this._document=B(Fe),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new oe,this.monthSelected=new oe,this.viewChanged=new oe(!0),this.openedStream=new oe,this.closedStream=new oe,this._opened=!1,this.id=`mat-datepicker-${xQ++}`,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new K,this._injector=B(Je),this._changeDetectorRef=B(Ge),this._dateAdapter,this._scrollStrategy=s,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(i){let r=i.xPosition||i.yPosition;if(r&&!r.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof Oh&&(this._setConnectedPositions(o),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(i){this._model.add(i)}_selectYear(i){this.yearSelected.emit(i)}_selectMonth(i){this.monthSelected.emit(i)}_viewChanged(i){this.viewChanged.emit(i)}registerInput(i){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=i,this._inputStateChanges=i.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(i){this._actionsPortal,this._actionsPortal=i,this._componentRef?.instance._assignActions(i,!0)}removeActions(i){i===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=xa(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let i=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",r=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:o,location:s}=this._componentRef;o._startExitAnimation(),o._animationDone.pipe(wt(1)).subscribe(()=>{let a=this._document.activeElement;i&&(!a||a===this._document.activeElement||s.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}i?setTimeout(r):r()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(i){i.datepicker=this,i.color=this.color,i._dialogLabelId=this.datepickerInput.getOverlayLabelId(),i._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let i=this.touchUi,r=new br(vR,this._viewContainerRef),o=this._overlayRef=this._overlay.create(new Tn({positionStrategy:i?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[i?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:i?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${i?"dialog":"popup"}`}));this._getCloseStream(o).subscribe(s=>{s&&s.preventDefault(),this.close()}),o.keydownEvents().subscribe(s=>{let a=s.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&s.preventDefault()}),this._componentRef=o.attach(r),this._forwardContentValues(this._componentRef.instance),i||ri(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let i=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(i)}_setConnectedPositions(i){let r=this.xPosition==="end"?"end":"start",o=r==="start"?"end":"start",s=this.yPosition==="above"?"bottom":"top",a=s==="top"?"bottom":"top";return i.withPositions([{originX:r,originY:a,overlayX:r,overlayY:s},{originX:r,originY:s,overlayX:r,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:s},{originX:o,originY:s,overlayX:o,overlayY:a}])}_getCloseStream(i){let r=["ctrlKey","shiftKey","metaKey"];return yt(i.backdropClick(),i.detachments(),i.keydownEvents().pipe(We(o=>o.keyCode===27&&!zt(o)||this.datepickerInput&&zt(o,"altKey")&&o.keyCode===38&&r.every(s=>!zt(o,s)))))}};e.\u0275fac=function(r){return new(r||e)(g(Lt),g(ee),g(qt),g(gR),g(Vi,8),g($t,8),g(Vh))},e.\u0275dir=te({type:e,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",Ee],disabled:[2,"disabled","disabled",Ee],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",Ee],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",Ee]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[nt,lt]});let t=e;return t})(),bR=(()=>{let e=class e extends lR{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275cmp=re({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],standalone:!0,features:[Ye([uR,{provide:lR,useExisting:e}]),He,Ne],decls:0,vars:0,template:function(r,o){},encapsulation:2,changeDetection:0});let t=e;return t})(),Cd=class{constructor(e,n){this.target=e,this.targetElement=n,this.value=this.target.value}},SQ=(()=>{let e=class e{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(i){this._assignValueProgrammatically(i)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(i){let r=i,o=this._elementRef.nativeElement;this._disabled!==r&&(this._disabled=r,this.stateChanges.next(void 0)),r&&this._isInitialized&&o.blur&&o.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(i){this._model=i,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(r=>{if(this._shouldHandleChangeEvent(r)){let o=this._getValueFromModel(r.selection);this._lastValueValid=this._isValidValue(o),this._cvaOnChange(o),this._onTouched(),this._formatValue(o),this.dateInput.emit(new Cd(this,this._elementRef.nativeElement)),this.dateChange.emit(new Cd(this,this._elementRef.nativeElement))}})}constructor(i,r,o){this._elementRef=i,this._dateAdapter=r,this._dateFormats=o,this.dateChange=new oe,this.dateInput=new oe,this.stateChanges=new K,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Me.EMPTY,this._localeSubscription=Me.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=s=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value));return!a||this._matchesFilter(a)?null:{matDatepickerFilter:!0}},this._minValidator=s=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),c=this._getMinDate();return!c||!a||this._dateAdapter.compareDate(c,a)<=0?null:{matDatepickerMin:{min:c,actual:a}}},this._maxValidator=s=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),c=this._getMaxDate();return!c||!a||this._dateAdapter.compareDate(c,a)>=0?null:{matDatepickerMax:{max:c,actual:a}}},this._lastValueValid=!1,this._localeSubscription=r.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(i){IQ(i,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(i){this._validatorOnChange=i}validate(i){return this._validator?this._validator(i):null}writeValue(i){this._assignValueProgrammatically(i)}registerOnChange(i){this._cvaOnChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i}_onKeydown(i){let r=["ctrlKey","shiftKey","metaKey"];zt(i,"altKey")&&i.keyCode===40&&r.every(s=>!zt(i,s))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),i.preventDefault())}_onInput(i){let r=this._lastValueValid,o=this._dateAdapter.parse(i,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let s=!this._dateAdapter.sameDate(o,this.value);!o||s?this._cvaOnChange(o):(i&&!this.value&&this._cvaOnChange(o),r!==this._lastValueValid&&this._validatorOnChange()),s&&(this._assignValue(o),this.dateInput.emit(new Cd(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Cd(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(i){this._elementRef.nativeElement.value=i!=null?this._dateAdapter.format(i,this._dateFormats.display.dateInput):""}_assignValue(i){this._model?(this._assignValueToModel(i),this._pendingValue=null):this._pendingValue=i}_isValidValue(i){return!i||this._dateAdapter.isValid(i)}_parentDisabled(){return!1}_assignValueProgrammatically(i){i=this._dateAdapter.deserialize(i),this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._assignValue(i),this._formatValue(i)}_matchesFilter(i){let r=this._getDateFilter();return!r||r(i)}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Vi,8),g(Fa,8))},e.\u0275dir=te({type:e,inputs:{value:"value",disabled:[2,"disabled","disabled",Ee]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[nt,lt]});let t=e;return t})();function IQ(t,e){let n=Object.keys(t);for(let i of n){let{previousValue:r,currentValue:o}=t[i];if(e.isDateInstance(r)&&e.isDateInstance(o)){if(!e.sameDate(r,o))return!0}else return!0}return!1}var kQ={provide:Uo,useExisting:li(()=>ug),multi:!0},MQ={provide:ld,useExisting:li(()=>ug),multi:!0},ug=(()=>{let e=class e extends SQ{set matDatepicker(i){i&&(this._datepicker=i,this._ariaOwns.set(i.opened?i.id:null),this._closedSubscription=i.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=i.openedStream.subscribe(()=>{this._ariaOwns.set(i.id)}),this._registerModel(i.registerInput(this)))}get min(){return this._min}set min(i){let r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i));this._dateAdapter.sameDate(r,this._min)||(this._min=r,this._validatorOnChange())}get max(){return this._max}set max(i){let r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i));this._dateAdapter.sameDate(r,this._max)||(this._max=r,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(i){let r=this._matchesFilter(this.value);this._dateFilter=i,this._matchesFilter(this.value)!==r&&this._validatorOnChange()}constructor(i,r,o,s){super(i,r,o),this._formField=s,this._closedSubscription=Me.EMPTY,this._openedSubscription=Me.EMPTY,this._ariaOwns=Kr(null),this._validator=Ma.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(i){return i}_assignValueToModel(i){this._model&&this._model.updateSelection(i,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(i){return i.source!==this}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Vi,8),g(Fa,8),g(Os,8))},e.\u0275dir=te({type:e,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(r,o){r&1&&le("input",function(a){return o._onInput(a.target.value)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(a){return o._onKeydown(a)}),r&2&&(pr("disabled",o.disabled),Ve("aria-haspopup",o._datepicker?"dialog":null)("aria-owns",o._ariaOwns())("min",o.min?o._dateAdapter.toIso8601(o.min):null)("max",o.max?o._dateAdapter.toIso8601(o.max):null)("data-mat-calendar",o._datepicker?o._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],standalone:!0,features:[Ye([kQ,MQ,{provide:GC,useExisting:e}]),He]});let t=e;return t})(),TQ=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0});let t=e;return t})(),ix=(()=>{let e=class e{get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(i){this._disabled=i}constructor(i,r,o){this._intl=i,this._changeDetectorRef=r,this._stateChanges=Me.EMPTY;let s=Number(o);this.tabIndex=s||s===0?s:null}ngOnChanges(i){i.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(i){this.datepicker&&!this.disabled&&(this.datepicker.open(),i.stopPropagation())}_watchStateChanges(){let i=this.datepicker?this.datepicker.stateChanges:we(),r=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:we(),o=this.datepicker?yt(this.datepicker.openedStream,this.datepicker.closedStream):we();this._stateChanges.unsubscribe(),this._stateChanges=yt(this._intl.changes,i,r,o).subscribe(()=>this._changeDetectorRef.markForCheck())}};e.\u0275fac=function(r){return new(r||e)(g(Bh),g(Ge),wn("tabindex"))},e.\u0275cmp=re({type:e,selectors:[["mat-datepicker-toggle"]],contentQueries:function(r,o,s){if(r&1&&ct(s,TQ,5),r&2){let a;pe(a=me())&&(o._customIcon=a.first)}},viewQuery:function(r,o){if(r&1&&ze(hQ,5),r&2){let s;pe(s=me())&&(o._button=s.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(r,o){r&1&&le("click",function(a){return o._open(a)}),r&2&&(Ve("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),Oe("mat-datepicker-toggle-active",o.datepicker&&o.datepicker.opened)("mat-accent",o.datepicker&&o.datepicker.color==="accent")("mat-warn",o.datepicker&&o.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",Ee],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[nt,lt,Ne],ngContentSelectors:pQ,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(r,o){r&1&&(at(fQ),D(0,"button",1,0),ve(2,mQ,2,0,":svg:svg",2),ke(3),I()),r&2&&(ie("disabled",o.disabled)("disableRipple",o.disableRipple),Ve("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("tabindex",o.disabled?-1:o.tabIndex),A(2),tt(o._customIcon?-1:2))},dependencies:[Ns],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0});let t=e;return t})();var _R=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[Bh,EQ],imports:[Wi,wd,An,tg,Kn,Ze,vR,ix,mR,$n]});let t=e;return t})();function RQ(t,e){}var Vc=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var rx=(()=>{let e=class e extends Pa{constructor(i,r,o,s,a,c,l,u){super(),this._elementRef=i,this._focusTrapFactory=r,this._config=s,this._interactivityChecker=a,this._ngZone=c,this._overlayRef=l,this._focusMonitor=u,this._platform=B(et),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=B(Ge),this._injector=B(Je),this._isDestroyed=!1,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();let h=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),h},this._document=o,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(i){this._ariaLabelledByQueue.push(i),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(i){let r=this._ariaLabelledByQueue.indexOf(i);r>-1&&(this._ariaLabelledByQueue.splice(r,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(i){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachComponentPortal(i);return this._contentAttached(),r}attachTemplatePortal(i){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachTemplatePortal(i);return this._contentAttached(),r}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(i,r){this._interactivityChecker.isFocusable(i)||(i.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{i.removeEventListener("blur",o),i.removeEventListener("mousedown",o),i.removeAttribute("tabindex")};i.addEventListener("blur",o),i.addEventListener("mousedown",o)})),i.focus(r)}_focusByCssSelector(i,r){let o=this._elementRef.nativeElement.querySelector(i);o&&this._forceFocus(o,r)}_trapFocus(){this._isDestroyed||ri(()=>{let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let i=this._config.restoreFocus,r=null;if(typeof i=="string"?r=this._document.querySelector(i):typeof i=="boolean"?r=i?this._elementFocusedBeforeDialogWasOpened:null:i&&(r=i),this._config.restoreFocus&&r&&typeof r.focus=="function"){let o=xa(),s=this._elementRef.nativeElement;(!o||o===this._document.body||o===s||s.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(r,this._closeInteractionType),this._closeInteractionType=null):r.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let i=this._elementRef.nativeElement,r=xa();return i===r||i.contains(r)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=xa()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Mc),g(Fe,8),g(Vc),g(kc),g(ee),g(Rs),g(Yi))},e.\u0275cmp=re({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(r,o){if(r&1&&ze(Qn,7),r&2){let s;pe(s=me())&&(o._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(r,o){r&2&&Ve("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},standalone:!0,features:[He,Ne],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,o){r&1&&ve(0,RQ,0,0,"ng-template",0)},dependencies:[Qn],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let t=e;return t})(),jh=class{constructor(e,n){this.overlayRef=e,this.config=n,this.closed=new K,this.disableClose=n.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=n.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!zt(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{n.closeOnOverlayDetachments!==!1&&this.close()})}close(e,n){if(this.containerInstance){let i=this.closed;this.containerInstance._closeInteractionType=n?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(e),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",n=""){return this.overlayRef.updateSize({width:e,height:n}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},OQ=new q("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=B(Lt);return()=>t.scrollStrategies.block()}}),NQ=new q("DialogData"),FQ=new q("DefaultDialogConfig");var PQ=0,ox=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(i,r,o,s,a,c){this._overlay=i,this._injector=r,this._defaultOptions=o,this._parentDialog=s,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new K,this._afterOpenedAtThisLevel=new K,this._ariaHiddenElements=new Map,this.afterAllClosed=en(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Bt(void 0))),this._scrollStrategy=c}open(i,r){let o=this._defaultOptions||new Vc;r=X(X({},o),r),r.id=r.id||`cdk-dialog-${PQ++}`,r.id&&this.getDialogById(r.id);let s=this._getOverlayConfig(r),a=this._overlay.create(s),c=new jh(a,r),l=this._attachContainer(a,c,r);return c.containerInstance=l,this._attachDialogContent(i,c,l,r),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(c),c.closed.subscribe(()=>this._removeOpenDialog(c,!0)),this.afterOpened.next(c),c}closeAll(){nx(this.openDialogs,i=>i.close())}getDialogById(i){return this.openDialogs.find(r=>r.id===i)}ngOnDestroy(){nx(this._openDialogsAtThisLevel,i=>{i.config.closeOnDestroy===!1&&this._removeOpenDialog(i,!1)}),nx(this._openDialogsAtThisLevel,i=>i.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(i){let r=new Tn({positionStrategy:i.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:i.scrollStrategy||this._scrollStrategy(),panelClass:i.panelClass,hasBackdrop:i.hasBackdrop,direction:i.direction,minWidth:i.minWidth,minHeight:i.minHeight,maxWidth:i.maxWidth,maxHeight:i.maxHeight,width:i.width,height:i.height,disposeOnNavigation:i.closeOnNavigation});return i.backdropClass&&(r.backdropClass=i.backdropClass),r}_attachContainer(i,r,o){let s=o.injector||o.viewContainerRef?.injector,a=[{provide:Vc,useValue:o},{provide:jh,useValue:r},{provide:Rs,useValue:i}],c;o.container?typeof o.container=="function"?c=o.container:(c=o.container.type,a.push(...o.container.providers(o))):c=rx;let l=new br(c,o.viewContainerRef,Je.create({parent:s||this._injector,providers:a}),o.componentFactoryResolver);return i.attach(l).instance}_attachDialogContent(i,r,o,s){if(i instanceof Rt){let a=this._createInjector(s,r,o,void 0),c={$implicit:s.data,dialogRef:r};s.templateContext&&(c=X(X({},c),typeof s.templateContext=="function"?s.templateContext():s.templateContext)),o.attachTemplatePortal(new Ki(i,null,c,a))}else{let a=this._createInjector(s,r,o,this._injector),c=o.attachComponentPortal(new br(i,s.viewContainerRef,a,s.componentFactoryResolver));r.componentRef=c,r.componentInstance=c.instance}}_createInjector(i,r,o,s){let a=i.injector||i.viewContainerRef?.injector,c=[{provide:NQ,useValue:i.data},{provide:jh,useValue:r}];return i.providers&&(typeof i.providers=="function"?c.push(...i.providers(r,i,o)):c.push(...i.providers)),i.direction&&(!a||!a.get($t,null,{optional:!0}))&&c.push({provide:$t,useValue:{value:i.direction,change:we()}}),Je.create({parent:a||s,providers:c})}_removeOpenDialog(i,r){let o=this.openDialogs.indexOf(i);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((s,a)=>{s?a.setAttribute("aria-hidden",s):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),r&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let i=this._overlayContainer.getContainerElement();if(i.parentElement){let r=i.parentElement.children;for(let o=r.length-1;o>-1;o--){let s=r[o];s!==i&&s.nodeName!=="SCRIPT"&&s.nodeName!=="STYLE"&&!s.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}};e.\u0275fac=function(r){return new(r||e)(R(Lt),R(Je),R(FQ,8),R(e,12),R(_d),R(OQ))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function nx(t,e){let n=t.length;for(;n--;)e(t[n])}var yR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[ox],imports:[An,Kn,tg,Kn]});let t=e;return t})();function LQ(t,e){}var Hh=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},sx="mdc-dialog--open",wR="mdc-dialog--opening",CR="mdc-dialog--closing",VQ=150,BQ=75,jQ=(()=>{let e=class e extends rx{constructor(i,r,o,s,a,c,l,u,d){super(i,r,o,s,a,c,l,d),this._animationMode=u,this._animationStateChanged=new oe,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?DR(this._config.enterAnimationDuration)??VQ:0,this._exitAnimationDuration=this._animationsEnabled?DR(this._config.exitAnimationDuration)??BQ:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(xR,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(wR,sx)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(sx),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(sx),this._animationsEnabled?(this._hostElement.style.setProperty(xR,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(CR)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(i){this._actionSectionCount+=i,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(wR,CR)}_waitForAnimationToComplete(i,r){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(r,i)}_requestAnimationFrame(i){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(i):i()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(i){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(i){let r=super.attachComponentPortal(i);return r.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),r}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Mc),g(Fe,8),g(Hh),g(kc),g(ee),g(Rs),g(jt,8),g(Yi))},e.\u0275cmp=re({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(r,o){r&2&&(pr("id",o._config.id),Ve("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),Oe("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},standalone:!0,features:[He,Ne],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(r,o){r&1&&(D(0,"div",0)(1,"div",1),ve(2,LQ,0,0,"ng-template",2),I()())},dependencies:[Qn],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, 4px);background-color:var(--mdc-dialog-container-color, white)}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87));font-family:var(--mdc-dialog-subhead-font, inherit);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6));font-family:var(--mdc-dialog-supporting-text-font, inherit);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2});let t=e;return t})(),xR="--mat-dialog-transition-duration";function DR(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?En(t.substring(0,t.length-2)):t.endsWith("s")?En(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var hg=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(hg||{}),oo=class{constructor(e,n,i){this._ref=e,this._containerInstance=i,this._afterOpened=new K,this._beforeClosed=new K,this._state=hg.OPEN,this.disableClose=n.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(We(r=>r.state==="opened"),wt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(We(r=>r.state==="closed"),wt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),yt(this.backdropClick(),this.keydownEvents().pipe(We(r=>r.keyCode===27&&!this.disableClose&&!zt(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),ER(this,r.type==="keydown"?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(We(n=>n.state==="closing"),wt(1)).subscribe(n=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=hg.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let n=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?n.left(e.left):n.right(e.right):n.centerHorizontally(),e&&(e.top||e.bottom)?e.top?n.top(e.top):n.bottom(e.bottom):n.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",n=""){return this._ref.updateSize(e,n),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=hg.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function ER(t,e,n){return t._closeInteractionType=e,t.close(n)}var ax=new q("MatMdcDialogData"),HQ=new q("mat-mdc-dialog-default-options"),zQ=new q("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=B(Lt);return()=>t.scrollStrategies.block()}});var UQ=0,Bc=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(i,r,o,s,a,c,l,u){this._overlay=i,this._defaultOptions=s,this._scrollStrategy=a,this._parentDialog=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new K,this._afterOpenedAtThisLevel=new K,this.dialogConfigClass=Hh,this.afterAllClosed=en(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Bt(void 0))),this._dialog=r.get(ox),this._dialogRefConstructor=oo,this._dialogContainerType=jQ,this._dialogDataToken=ax}open(i,r){let o;r=X(X({},this._defaultOptions||new Hh),r),r.id=r.id||`mat-mdc-dialog-${UQ++}`,r.scrollStrategy=r.scrollStrategy||this._scrollStrategy();let s=this._dialog.open(i,mt(X({},r),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:r},{provide:Vc,useValue:r}]},templateContext:()=>({dialogRef:o}),providers:(a,c,l)=>(o=new this._dialogRefConstructor(a,r,l),o.updatePosition(r?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:c.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=s.componentRef,o.componentInstance=s.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(i){return this.openDialogs.find(r=>r.id===i)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(i){let r=i.length;for(;r--;)i[r].close()}};e.\u0275fac=function(r){return new(r||e)(R(Lt),R(Je),R(Bo,8),R(HQ,8),R(zQ),R(e,12),R(_d),R(jt,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qQ=0,fg=(()=>{let e=class e{constructor(i,r,o){this.dialogRef=i,this._elementRef=r,this._dialog=o,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=IR(this._elementRef,this._dialog.openDialogs))}ngOnChanges(i){let r=i._matDialogClose||i._matDialogCloseResult;r&&(this.dialogResult=r.currentValue)}_onButtonClick(i){ER(this.dialogRef,i.screenX===0&&i.screenY===0?"keyboard":"mouse",this.dialogResult)}};e.\u0275fac=function(r){return new(r||e)(g(oo,8),g(ce),g(Bc))},e.\u0275dir=te({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(r,o){r&1&&le("click",function(a){return o._onButtonClick(a)}),r&2&&Ve("aria-label",o.ariaLabel||null)("type",o.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[lt]});let t=e;return t})(),SR=(()=>{let e=class e{constructor(i,r,o){this._dialogRef=i,this._elementRef=r,this._dialog=o}ngOnInit(){this._dialogRef||(this._dialogRef=IR(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}};e.\u0275fac=function(r){return new(r||e)(g(oo,8),g(ce),g(Bc))},e.\u0275dir=te({type:e,standalone:!0});let t=e;return t})(),Dd=(()=>{let e=class e extends SR{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${qQ++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(r,o){r&2&&pr("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[He]});let t=e;return t})(),Ed=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[_M([Wn])]});let t=e;return t})(),Sd=(()=>{let e=class e extends SR{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(r,o){r&2&&Oe("mat-mdc-dialog-actions-align-start",o.align==="start")("mat-mdc-dialog-actions-align-center",o.align==="center")("mat-mdc-dialog-actions-align-end",o.align==="end")},inputs:{align:"align"},standalone:!0,features:[He]});let t=e;return t})();function IR(t,e){let n=t.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-mdc-dialog-container");)n=n.parentElement;return n?e.find(i=>i.id===n.id):null}var kR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[Bc],imports:[yR,An,Kn,Ze,Ze]});let t=e;return t})();var MR=new q("CdkAccordion");var $Q=0,TR=(()=>{let e=class e{get expanded(){return this._expanded}set expanded(i){if(this._expanded!==i){if(this._expanded=i,this.expandedChange.emit(i),i){this.opened.emit();let r=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,r)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}constructor(i,r,o){this.accordion=i,this._changeDetectorRef=r,this._expansionDispatcher=o,this._openCloseAllSubscription=Me.EMPTY,this.closed=new oe,this.opened=new oe,this.destroyed=new oe,this.expandedChange=new oe,this.id=`cdk-accordion-child-${$Q++}`,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((s,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==s&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(i=>{this.disabled||(this.expanded=i)})}};e.\u0275fac=function(r){return new(r||e)(g(MR,12),g(Ge),g(O0))},e.\u0275dir=te({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",Ee],disabled:[2,"disabled","disabled",Ee]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[Ye([{provide:MR,useValue:void 0}]),nt]});let t=e;return t})(),AR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})();var WQ=["body"],GQ=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],YQ=["mat-expansion-panel-header","*","mat-action-row"];function QQ(t,e){}var KQ=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],XQ=["mat-panel-title","mat-panel-description","*"];function ZQ(t,e){if(t&1&&(D(0,"span",1),No(),D(1,"svg",2),xe(2,"path",3),I()()),t&2){let n=se();ie("@indicatorRotate",n._getExpandedState())}}var RR=new q("MAT_ACCORDION"),OR="225ms cubic-bezier(0.4,0.0,0.2,1)",FR={indicatorRotate:Yt("indicatorRotate",[It("collapsed, void",Ue({transform:"rotate(0deg)"})),It("expanded",Ue({transform:"rotate(180deg)"})),Ct("expanded <=> collapsed, void => collapsed",Et(OR))]),bodyExpansion:Yt("bodyExpansion",[It("collapsed, void",Ue({height:"0px",visibility:"hidden"})),It("expanded",Ue({height:"*",visibility:""})),Ct("expanded <=> collapsed, void => collapsed",Et(OR))])},PR=new q("MAT_EXPANSION_PANEL"),JQ=(()=>{let e=class e{constructor(i,r){this._template=i,this._expansionPanel=r}};e.\u0275fac=function(r){return new(r||e)(g(Rt),g(PR,8))},e.\u0275dir=te({type:e,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0});let t=e;return t})(),eK=0,LR=new q("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),cx=(()=>{let e=class e extends TR{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(i){this._hideToggle=i}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(i){this._togglePosition=i}constructor(i,r,o,s,a,c,l){super(i,r,o),this._viewContainerRef=s,this._animationMode=c,this._hideToggle=!1,this.afterExpand=new oe,this.afterCollapse=new oe,this._inputChanges=new K,this._headerId=`mat-expansion-panel-header-${eK++}`,this.accordion=i,this._document=a,this._animationsDisabled=c==="NoopAnimations",l&&(this.hideToggle=l.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Bt(null),We(()=>this.expanded&&!this._portal),wt(1)).subscribe(()=>{this._portal=new Ki(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(i){this._inputChanges.next(i)}ngOnDestroy(){super.ngOnDestroy(),this._inputChanges.complete()}_containsFocus(){if(this._body){let i=this._document.activeElement,r=this._body.nativeElement;return i===r||r.contains(i)}return!1}_animationStarted(i){!NR(i)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(i){NR(i)||(i.toState==="expanded"?this.afterExpand.emit():i.toState==="collapsed"&&this.afterCollapse.emit(),!this._animationsDisabled&&this._body&&this._body.nativeElement.removeAttribute("inert"))}};e.\u0275fac=function(r){return new(r||e)(g(RR,12),g(Ge),g(O0),g(qt),g(Fe),g(jt,8),g(LR,8))},e.\u0275cmp=re({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(r,o,s){if(r&1&&ct(s,JQ,5),r&2){let a;pe(a=me())&&(o._lazyContent=a.first)}},viewQuery:function(r,o){if(r&1&&ze(WQ,5),r&2){let s;pe(s=me())&&(o._body=s.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(r,o){r&2&&Oe("mat-expanded",o.expanded)("_mat-animation-noopable",o._animationsDisabled)("mat-expansion-panel-spacing",o._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",Ee],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[Ye([{provide:RR,useValue:void 0},{provide:PR,useExisting:e}]),nt,He,lt,Ne],ngContentSelectors:YQ,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(r,o){if(r&1){let s=st();at(GQ),ke(0),D(1,"div",1,0),le("@bodyExpansion.start",function(c){return Se(s),Ie(o._animationStarted(c))})("@bodyExpansion.done",function(c){return Se(s),Ie(o._animationDone(c))}),D(3,"div",2),ke(4,1),ve(5,QQ,0,0,"ng-template",3),I(),ke(6,2),I()}r&2&&(A(),ie("@bodyExpansion",o._getExpandedState())("id",o.id),Ve("aria-labelledby",o._headerId),A(4),ie("cdkPortalOutlet",o._portal))},dependencies:[Qn],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[FR.bodyExpansion]},changeDetection:0});let t=e;return t})();function NR(t){return t.fromState==="void"}var VR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"],standalone:!0});let t=e;return t})(),BR=(()=>{let e=class e{constructor(i,r,o,s,a,c,l){this.panel=i,this._element=r,this._focusMonitor=o,this._changeDetectorRef=s,this._animationMode=c,this._parentChangeSubscription=Me.EMPTY,this.tabIndex=0;let u=i.accordion?i.accordion._stateChanges.pipe(We(d=>!!(d.hideToggle||d.togglePosition))):vn;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=yt(i.opened,i.closed,u,i._inputChanges.pipe(We(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),i.closed.pipe(We(()=>i._containsFocus())).subscribe(()=>o.focusVia(r,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let i=this._isExpanded();return i&&this.expandedHeight?this.expandedHeight:!i&&this.collapsedHeight?this.collapsedHeight:null}_keydown(i){switch(i.keyCode){case 32:case 13:zt(i)||(i.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(i);return}}focus(i,r){i?this._focusMonitor.focusVia(this._element,i,r):this._element.nativeElement.focus(r)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(i=>{i&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}};e.\u0275fac=function(r){return new(r||e)(g(cx,1),g(ce),g(Yi),g(Ge),g(LR,8),g(jt,8),wn("tabindex"))},e.\u0275cmp=re({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(r,o){r&1&&le("click",function(){return o._toggle()})("keydown",function(a){return o._keydown(a)}),r&2&&(Ve("id",o.panel._headerId)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o._getPanelId())("aria-expanded",o._isExpanded())("aria-disabled",o.panel.disabled),hi("height",o._getHeaderHeight()),Oe("mat-expanded",o._isExpanded())("mat-expansion-toggle-indicator-after",o._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",o._getTogglePosition()==="before")("_mat-animation-noopable",o._animationMode==="NoopAnimations"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:Si(i)]},standalone:!0,features:[nt,Ne],ngContentSelectors:XQ,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(r,o){r&1&&(at(KQ),D(0,"span",0),ke(1),ke(2,1),ke(3,2),I(),ve(4,ZQ,3,1,"span",1)),r&2&&(Oe("mat-content-hide-toggle",!o._showToggle()),A(4),tt(o._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color);display:var(--mat-expansion-legacy-header-indicator-display, inline-block)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color);display:var(--mat-expansion-header-indicator-display, none)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[FR.indicatorRotate]},changeDetection:0});let t=e;return t})();var jR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"],standalone:!0});let t=e;return t})();var HR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,AR,Kn]});let t=e;return t})();var iK=["*"],pg;function nK(){if(pg===void 0&&(pg=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(pg=t.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return pg}function Uh(t){return nK()?.createHTML(t)||t}function zR(t){return Error(`Unable to find icon with the name "${t}"`)}function rK(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function UR(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function qR(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Fs=class{constructor(e,n,i){this.url=e,this.svgText=n,this.options=i}},oK=(()=>{let e=class e{constructor(i,r,o,s){this._httpClient=i,this._sanitizer=r,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","mat-ligature-font"],this._document=o}addSvgIcon(i,r,o){return this.addSvgIconInNamespace("",i,r,o)}addSvgIconLiteral(i,r,o){return this.addSvgIconLiteralInNamespace("",i,r,o)}addSvgIconInNamespace(i,r,o,s){return this._addSvgIconConfig(i,r,new Fs(o,null,s))}addSvgIconResolver(i){return this._resolvers.push(i),this}addSvgIconLiteralInNamespace(i,r,o,s){let a=this._sanitizer.sanitize($i.HTML,o);if(!a)throw qR(o);let c=Uh(a);return this._addSvgIconConfig(i,r,new Fs("",c,s))}addSvgIconSet(i,r){return this.addSvgIconSetInNamespace("",i,r)}addSvgIconSetLiteral(i,r){return this.addSvgIconSetLiteralInNamespace("",i,r)}addSvgIconSetInNamespace(i,r,o){return this._addSvgIconSetConfig(i,new Fs(r,null,o))}addSvgIconSetLiteralInNamespace(i,r,o){let s=this._sanitizer.sanitize($i.HTML,r);if(!s)throw qR(r);let a=Uh(s);return this._addSvgIconSetConfig(i,new Fs("",a,o))}registerFontClassAlias(i,r=i){return this._fontCssClassesByAlias.set(i,r),this}classNameForFontAlias(i){return this._fontCssClassesByAlias.get(i)||i}setDefaultFontSetClass(...i){return this._defaultFontSetClass=i,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(i){let r=this._sanitizer.sanitize($i.RESOURCE_URL,i);if(!r)throw UR(i);let o=this._cachedIconsByUrl.get(r);return o?we(mg(o)):this._loadSvgIconFromConfig(new Fs(i,null)).pipe(Wt(s=>this._cachedIconsByUrl.set(r,s)),Te(s=>mg(s)))}getNamedSvgIcon(i,r=""){let o=$R(r,i),s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(r,i),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);let a=this._iconSetConfigs.get(r);return a?this._getSvgFromIconSetConfigs(i,a):ar(zR(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(i){return i.svgText?we(mg(this._svgElementFromConfig(i))):this._loadSvgIconFromConfig(i).pipe(Te(r=>mg(r)))}_getSvgFromIconSetConfigs(i,r){let o=this._extractIconWithNameFromAnySet(i,r);if(o)return we(o);let s=r.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(ds(c=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize($i.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(u)),we(null)})));return tc(s).pipe(Te(()=>{let a=this._extractIconWithNameFromAnySet(i,r);if(!a)throw zR(i);return a}))}_extractIconWithNameFromAnySet(i,r){for(let o=r.length-1;o>=0;o--){let s=r[o];if(s.svgText&&s.svgText.toString().indexOf(i)>-1){let a=this._svgElementFromConfig(s),c=this._extractSvgIconFromSet(a,i,s.options);if(c)return c}}return null}_loadSvgIconFromConfig(i){return this._fetchIcon(i).pipe(Wt(r=>i.svgText=r),Te(()=>this._svgElementFromConfig(i)))}_loadSvgIconSetFromConfig(i){return i.svgText?we(null):this._fetchIcon(i).pipe(Wt(r=>i.svgText=r))}_extractSvgIconFromSet(i,r,o){let s=i.querySelector(`[id="${r}"]`);if(!s)return null;let a=s.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let c=this._svgElementFromString(Uh(""));return c.appendChild(a),this._setSvgAttributes(c,o)}_svgElementFromString(i){let r=this._document.createElement("DIV");r.innerHTML=i;let o=r.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(i){let r=this._svgElementFromString(Uh("")),o=i.attributes;for(let s=0;sUh(u)),So(()=>this._inProgressUrlFetches.delete(a)),E_());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(i,r,o){return this._svgIconConfigs.set($R(i,r),o),this}_addSvgIconSetConfig(i,r){let o=this._iconSetConfigs.get(i);return o?o.push(r):this._iconSetConfigs.set(i,[r]),this}_svgElementFromConfig(i){if(!i.svgElement){let r=this._svgElementFromString(i.svgText);this._setSvgAttributes(r,i.options),i.svgElement=r}return i.svgElement}_getIconConfigFromResolvers(i,r){for(let o=0;oe?e.pathname+e.search:""}}var WR=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],dK=WR.map(t=>`[${t}]`).join(", "),uK=/^url\(['"]?#(.*?)['"]?\)$/,Go=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(i){this._color=i}get svgIcon(){return this._svgIcon}set svgIcon(i){i!==this._svgIcon&&(i?this._updateSvgIcon(i):this._svgIcon&&this._clearSvgElement(),this._svgIcon=i)}get fontSet(){return this._fontSet}set fontSet(i){let r=this._cleanupFontValue(i);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(i){let r=this._cleanupFontValue(i);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}constructor(i,r,o,s,a,c){this._elementRef=i,this._iconRegistry=r,this._location=s,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Me.EMPTY,c&&(c.color&&(this.color=this._defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),o||i.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(i){if(!i)return["",""];let r=i.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${i}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let i=this._elementsWithExternalReferences;if(i&&i.size){let r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(i){this._clearSvgElement();let r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(i),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(i)}_clearSvgElement(){let i=this._elementRef.nativeElement,r=i.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){let o=i.childNodes[r];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let i=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>i.classList.remove(o)),r.forEach(o=>i.classList.add(o)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&i.classList.remove(this._previousFontIconClass),this.fontIcon&&i.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(i){return typeof i=="string"?i.trim().split(" ")[0]:i}_prependPathToReferences(i){let r=this._elementsWithExternalReferences;r&&r.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${i}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(i){let r=i.querySelectorAll(dK),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{let c=r[s],l=c.getAttribute(a),u=l?l.match(uK):null;if(u){let d=o.get(c);d||(d=[],o.set(c,d)),d.push({name:a,value:u[1]})}})}_updateSvgIcon(i){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),i){let[r,o]=this._splitIconName(i);r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe(wt(1)).subscribe(s=>this._setSvgElement(s),s=>{let a=`Error retrieving icon ${r}:${o}! ${s.message}`;this._errorHandler.handleError(new Error(a))})}}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(oK),wn("aria-hidden"),g(cK),g(_n),g(aK,8))},e.\u0275cmp=re({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(r,o){r&2&&(Ve("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),_i(o.color?"mat-"+o.color:""),Oe("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Ee],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[nt,Ne],ngContentSelectors:iK,decls:1,vars:0,template:function(r,o){r&1&&(at(),ke(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0});let t=e;return t})(),GR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,Ze]});let t=e;return t})();var YR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,Ze]});let t=e;return t})();var QR=["*"],KR='.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mdc-list-list-item-container-color);border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.cdk-high-contrast-active .mdc-list-item.mdc-list-item--selected::before,.cdk-high-contrast-active .mdc-list-item.mdc-list-item--selected:focus::before,.cdk-high-contrast-active .mdc-list-item:not(.mdc-list-item--selected):focus::before{border-color:CanvasText}.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item.mdc-list-item--selected::before{border-width:3px;border-style:double}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color);width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size);height:var(--mdc-list-list-item-leading-avatar-size);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font);line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height);font-size:var(--mdc-list-list-item-trailing-supporting-text-size);font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color);width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color)}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color)}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mdc-list-list-item-label-text-color);font-family:var(--mdc-list-list-item-label-text-font);line-height:var(--mdc-list-list-item-label-text-line-height);font-size:var(--mdc-list-list-item-label-text-size);font-weight:var(--mdc-list-list-item-label-text-weight);letter-spacing:var(--mdc-list-list-item-label-text-tracking)}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color)}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color)}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mdc-list-list-item-supporting-text-color);font-family:var(--mdc-list-list-item-supporting-text-font);line-height:var(--mdc-list-list-item-supporting-text-line-height);font-size:var(--mdc-list-list-item-supporting-text-size);font-weight:var(--mdc-list-list-item-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-supporting-text-tracking)}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color);opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color);opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color)}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color);opacity:var(--mdc-list-list-item-hover-state-layer-opacity)}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color);opacity:var(--mdc-list-list-item-disabled-state-layer-opacity)}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color);opacity:var(--mdc-list-list-item-focus-state-layer-opacity)}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape);background-color:var(--mdc-list-list-item-leading-avatar-color)}.mat-mdc-list-item-icon{font-size:var(--mdc-list-list-item-leading-icon-size)}.cdk-high-contrast-active a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none}.mat-mdc-list-item>.mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-mdc-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape);--mat-mdc-focus-indicator-border-radius:var(--mat-list-active-indicator-shape)}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color)}',hK=["unscopedContent"],fK=["text"],pK=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],mK=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var gK=new q("ListOption"),vK=(()=>{let e=class e{constructor(i){this._elementRef=i}};e.\u0275fac=function(r){return new(r||e)(g(ce))},e.\u0275dir=te({type:e,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"],standalone:!0});let t=e;return t})(),bK=(()=>{let e=class e{constructor(i){this._elementRef=i}};e.\u0275fac=function(r){return new(r||e)(g(ce))},e.\u0275dir=te({type:e,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"],standalone:!0});let t=e;return t})(),_K=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"],standalone:!0});let t=e;return t})(),XR=(()=>{let e=class e{constructor(i){this._listOption=i}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}};e.\u0275fac=function(r){return new(r||e)(g(gK,8))},e.\u0275dir=te({type:e,hostVars:4,hostBindings:function(r,o){r&2&&Oe("mdc-list-item__start",o._isAlignedAtStart())("mdc-list-item__end",!o._isAlignedAtStart())},standalone:!0});let t=e;return t})(),yK=(()=>{let e=class e extends XR{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],standalone:!0,features:[He]});let t=e;return t})(),wK=(()=>{let e=class e extends XR{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],standalone:!0,features:[He]});let t=e;return t})(),CK=new q("MAT_LIST_CONFIG"),Id=(()=>{let e=class e{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1,this._defaultOptions=B(CK,{optional:!0})}get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=wi(i)}get disabled(){return this._disabled}set disabled(i){this._disabled=wi(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,hostVars:1,hostBindings:function(r,o){r&2&&Ve("aria-disabled",o.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},standalone:!0});let t=e;return t})(),xK=(()=>{let e=class e{set lines(i){this._explicitLines=En(i,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(i){this._disableRipple=wi(i)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(i){this._disabled=wi(i)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(i,r,o,s,a,c){this._elementRef=i,this._ngZone=r,this._listBase=o,this._platform=s,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new Me,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=a||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._noopAnimations=c==="NoopAnimations",o&&!o._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new Sh(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(yt(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(i){if(!this._lines||!this._titles||!this._unscopedContent)return;i&&this._checkDomForUnscopedTextContent();let r=this._explicitLines??this._inferLinesFromContent(),o=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",r<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",r<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",r===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",r===3),this._hasUnscopedTextContent){let s=this._titles.length===0&&r===1;o.classList.toggle("mdc-list-item__primary-text",s),o.classList.toggle("mdc-list-item__secondary-text",!s)}else o.classList.remove("mdc-list-item__primary-text"),o.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let i=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(i+=1),i}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(i=>i.nodeType!==i.COMMENT_NODE).some(i=>!!(i.textContent&&i.textContent.trim()))}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(ee),g(Id,8),g(et),g(Ac,8),g(jt,8))},e.\u0275dir=te({type:e,contentQueries:function(r,o,s){if(r&1&&(ct(s,yK,4),ct(s,wK,4)),r&2){let a;pe(a=me())&&(o._avatars=a),pe(a=me())&&(o._icons=a)}},hostVars:4,hostBindings:function(r,o){r&2&&(Ve("aria-disabled",o.disabled)("disabled",o._isButtonElement&&o.disabled||null),Oe("mdc-list-item--disabled",o.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"},standalone:!0});let t=e;return t})();var ja=(()=>{let e=class e extends Id{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275cmp=re({type:e,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],standalone:!0,features:[Ye([{provide:Id,useExisting:e}]),He,Ne],ngContentSelectors:QR,decls:1,vars:0,template:function(r,o){r&1&&(at(),ke(0))},styles:[KR],encapsulation:2,changeDetection:0});let t=e;return t})(),Yo=(()=>{let e=class e extends xK{get activated(){return this._activated}set activated(i){this._activated=wi(i)}constructor(i,r,o,s,a,c){super(i,r,o,s,a,c),this._activated=!1}_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(ee),g(Id,8),g(et),g(Ac,8),g(jt,8))},e.\u0275cmp=re({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(r,o,s){if(r&1&&(ct(s,bK,5),ct(s,vK,5),ct(s,_K,5)),r&2){let a;pe(a=me())&&(o._lines=a),pe(a=me())&&(o._titles=a),pe(a=me())&&(o._meta=a)}},viewQuery:function(r,o){if(r&1&&(ze(hK,5),ze(fK,5)),r&2){let s;pe(s=me())&&(o._unscopedContent=s.first),pe(s=me())&&(o._itemText=s.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(r,o){r&2&&(Ve("aria-current",o._getAriaCurrent()),Oe("mdc-list-item--activated",o.activated)("mdc-list-item--with-leading-avatar",o._avatars.length!==0)("mdc-list-item--with-leading-icon",o._icons.length!==0)("mdc-list-item--with-trailing-meta",o._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",o._hasBothLeadingAndTrailing())("_mat-animation-noopable",o._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],standalone:!0,features:[He,Ne],ngContentSelectors:mK,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-mdc-focus-indicator"]],template:function(r,o){if(r&1){let s=st();at(pK),ke(0),D(1,"span",1),ke(2,1),ke(3,2),D(4,"span",2,0),le("cdkObserveContent",function(){return Se(s),Ie(o._updateItemLines(!0))}),ke(6,3),I()(),ke(7,4),ke(8,5),xe(9,"div",3)}},dependencies:[KA],encapsulation:2,changeDetection:0});let t=e;return t})();var ZR=(()=>{let e=class e extends Id{constructor(){super(...arguments),this._isNonInteractive=!1}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275cmp=re({type:e,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],standalone:!0,features:[Ye([{provide:Id,useExisting:e}]),He,Ne],ngContentSelectors:QR,decls:1,vars:0,template:function(r,o){r&1&&(at(),ke(0))},styles:[KR],encapsulation:2,changeDetection:0});let t=e;return t})();var JR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[ud,Wi,Ze,As,NC,YR]});let t=e;return t})();var DK=["mat-menu-item",""],EK=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],SK=["mat-icon, [matMenuItemIcon]","*"];function IK(t,e){t&1&&(No(),D(0,"svg",2),xe(1,"polygon",3),I())}var kK=["*"];function MK(t,e){if(t&1){let n=st();D(0,"div",0),le("keydown",function(r){Se(n);let o=se();return Ie(o._handleKeydown(r))})("click",function(){Se(n);let r=se();return Ie(r.closed.emit("click"))})("@transformMenu.start",function(r){Se(n);let o=se();return Ie(o._onAnimationStart(r))})("@transformMenu.done",function(r){Se(n);let o=se();return Ie(o._onAnimationDone(r))}),D(1,"div",1),ke(2),I()()}if(t&2){let n=se();_i(n._classList),ie("id",n.panelId)("@transformMenu",n._panelAnimationState),Ve("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var lx=new q("MAT_MENU_PANEL"),Wh=(()=>{let e=class e{constructor(i,r,o,s,a){this._elementRef=i,this._document=r,this._focusMonitor=o,this._parentMenu=s,this._changeDetectorRef=a,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new K,this._focused=new K,this._highlighted=!1,this._triggersSubmenu=!1,s?.addItem?.(this)}focus(i,r){this._focusMonitor&&i?this._focusMonitor.focusVia(this._getHostElement(),i,r):this._getHostElement().focus(r),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(i){this.disabled&&(i.preventDefault(),i.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let i=this._elementRef.nativeElement.cloneNode(!0),r=i.querySelectorAll("mat-icon, .material-icons");for(let o=0;o enter",Et("120ms cubic-bezier(0, 0, 0.2, 1)",Ue({opacity:1,transform:"scale(1)"}))),Ct("* => void",Et("100ms 25ms linear",Ue({opacity:0})))]),fadeInItems:Yt("fadeInItems",[It("showing",Ue({opacity:1})),Ct("void => *",[Ue({opacity:0}),Et("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},r2e=gg.fadeInItems,o2e=gg.transformMenu,AK=0,RK=new q("mat-menu-default-options",{providedIn:"root",factory:OK});function OK(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var kd=(()=>{let e=class e{get xPosition(){return this._xPosition}set xPosition(i){this._xPosition=i,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(i){this._yPosition=i,this.setPositionClasses()}set panelClass(i){let r=this._previousPanelClass,o=X({},this._classList);r&&r.length&&r.split(" ").forEach(s=>{o[s]=!1}),this._previousPanelClass=i,i&&i.length&&(i.split(" ").forEach(s=>{o[s]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}get classList(){return this.panelClass}set classList(i){this.panelClass=i}constructor(i,r,o,s){this._elementRef=i,this._changeDetectorRef=s,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new $r,this._classList={},this._panelAnimationState="void",this._animationDone=new K,this.closed=new oe,this.close=this.closed,this.panelId=`mat-menu-panel-${AK++}`,this._injector=B(Je),this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this.overlapTrigger=o.overlapTrigger,this.hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new J0(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Bt(this._directDescendantItems),Nt(i=>yt(...i.map(r=>r._focused)))).subscribe(i=>this._keyManager.updateActiveItem(i)),this._directDescendantItems.changes.subscribe(i=>{let r=this._keyManager;if(this._panelAnimationState==="enter"&&r.activeItem?._hasFocus()){let o=i.toArray(),s=Math.max(0,Math.min(o.length-1,r.activeItemIndex||0));o[s]&&!o[s].disabled?r.setActiveItem(s):r.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(Bt(this._directDescendantItems),Nt(r=>yt(...r.map(o=>o._hovered))))}addItem(i){}removeItem(i){}_handleKeydown(i){let r=i.keyCode,o=this._keyManager;switch(r){case 27:zt(i)||(i.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(r===38||r===40)&&o.setFocusOrigin("keyboard"),o.onKeydown(i);return}i.stopPropagation()}focusFirstItem(i="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=ri(()=>{let r=null;if(this._directDescendantItems.length&&(r=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!r||!r.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(i).setFirstItemActive(),!o.activeItem&&r&&r.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(i){if(this._baseElevation===null){let c=(typeof getComputedStyle=="function"?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(c)}let r=Math.min(this._baseElevation+i,24),o=`${this._elevationPrefix}${r}`,s=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));if(!s||s===this._previousElevation){let a=X({},this._classList);this._previousElevation&&(a[this._previousElevation]=!1),a[o]=!0,this._previousElevation=o,this._classList=a}}setPositionClasses(i=this.xPosition,r=this.yPosition){this._classList=mt(X({},this._classList),{"mat-menu-before":i==="before","mat-menu-after":i==="after","mat-menu-above":r==="above","mat-menu-below":r==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(i){this._animationDone.next(i),this._isAnimating=!1}_onAnimationStart(i){this._isAnimating=!0,i.toState==="enter"&&this._keyManager.activeItemIndex===0&&(i.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Bt(this._allItems)).subscribe(i=>{this._directDescendantItems.reset(i.filter(r=>r._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(ee),g(RK),g(Ge))},e.\u0275cmp=re({type:e,selectors:[["mat-menu"]],contentQueries:function(r,o,s){if(r&1&&(ct(s,TK,5),ct(s,Wh,5),ct(s,Wh,4)),r&2){let a;pe(a=me())&&(o.lazyContent=a.first),pe(a=me())&&(o._allItems=a),pe(a=me())&&(o.items=a)}},viewQuery:function(r,o){if(r&1&&ze(Rt,5),r&2){let s;pe(s=me())&&(o.templateRef=s.first)}},hostVars:3,hostBindings:function(r,o){r&2&&Ve("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",Ee],hasBackdrop:[2,"hasBackdrop","hasBackdrop",i=>i==null?null:Ee(i)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[Ye([{provide:lx,useExisting:e}]),nt,Ne],ngContentSelectors:kK,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(r,o){r&1&&(at(),ve(0,MK,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}[dir=rtl] .mat-mdc-menu-item{padding-right:var(--mat-menu-item-leading-spacing);padding-left:var(--mat-menu-item-trailing-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-right:var(--mat-menu-item-with-icon-leading-spacing);padding-left:var(--mat-menu-item-with-icon-trailing-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[gg.transformMenu,gg.fadeInItems]},changeDetection:0});let t=e;return t})(),tO=new q("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=B(Lt);return()=>t.scrollStrategies.reposition()}});function NK(t){return()=>t.scrollStrategies.reposition()}var FK={provide:tO,deps:[Lt],useFactory:NK},eO=In({passive:!0});var iO=(()=>{let e=class e{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(i){this.menu=i}get menu(){return this._menu}set menu(i){i!==this._menu&&(this._menu=i,this._menuCloseSubscription.unsubscribe(),i&&(this._parentMaterialMenu,this._menuCloseSubscription=i.close.subscribe(r=>{this._destroyMenu(r),(r==="click"||r==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(r)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(i,r,o,s,a,c,l,u,d){this._overlay=i,this._element=r,this._viewContainerRef=o,this._menuItemInstance=c,this._dir=l,this._focusMonitor=u,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Me.EMPTY,this._hoverSubscription=Me.EMPTY,this._menuCloseSubscription=Me.EMPTY,this._changeDetectorRef=B(Ge),this._handleTouchStart=h=>{Dh(h)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new oe,this.onMenuOpen=this.menuOpened,this.menuClosed=new oe,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=a instanceof kd?a:void 0,r.nativeElement.addEventListener("touchstart",this._handleTouchStart,eO)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,eO),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let i=this.menu;if(this._menuOpen||!i)return;let r=this._createOverlay(i),o=r.getConfig(),s=o.positionStrategy;this._setPosition(i,s),o.hasBackdrop=i.hasBackdrop==null?!this.triggersSubmenu():i.hasBackdrop,r.attach(this._getPortal(i)),i.lazyContent&&i.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(i),i instanceof kd&&(i._startAnimation(),i._directDescendantItems.changes.pipe(ot(i.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(i,r){this._focusMonitor&&i?this._focusMonitor.focusVia(this._element,i,r):this._element.nativeElement.focus(r)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(i){if(!this._overlayRef||!this.menuOpen)return;let r=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(i==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,r instanceof kd?(r._resetAnimation(),r.lazyContent?r._animationDone.pipe(We(o=>o.toState==="void"),wt(1),ot(r.lazyContent._attached)).subscribe({next:()=>r.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),r?.lazyContent?.detach())}_initMenu(i){i.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,this._setMenuElevation(i),i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(i){if(i.setElevation){let r=0,o=i.parentMenu;for(;o;)r++,o=o.parentMenu;i.setElevation(r)}}_setIsMenuOpen(i){i!==this._menuOpen&&(this._menuOpen=i,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(i),this._changeDetectorRef.markForCheck())}_createOverlay(i){if(!this._overlayRef){let r=this._getOverlayConfig(i);this._subscribeToPositions(i,r.positionStrategy),this._overlayRef=this._overlay.create(r),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(i){return new Tn({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:i.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:i.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(i,r){i.setPositionClasses&&r.positionChanges.subscribe(o=>{let s=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>i.setPositionClasses(s,a)):i.setPositionClasses(s,a)})}_setPosition(i,r){let[o,s]=i.xPosition==="before"?["end","start"]:["start","end"],[a,c]=i.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,u]=[a,c],[d,h]=[o,s],f=0;if(this.triggersSubmenu()){if(h=o=i.xPosition==="before"?"start":"end",s=d=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let p=this._parentMaterialMenu.items.first;this._parentInnerPadding=p?p._getHostElement().offsetTop:0}f=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else i.overlapTrigger||(l=a==="top"?"bottom":"top",u=c==="top"?"bottom":"top");r.withPositions([{originX:o,originY:l,overlayX:d,overlayY:a,offsetY:f},{originX:s,originY:l,overlayX:h,overlayY:a,offsetY:f},{originX:o,originY:u,overlayX:d,overlayY:c,offsetY:-f},{originX:s,originY:u,overlayX:h,overlayY:c,offsetY:-f}])}_menuClosingActions(){let i=this._overlayRef.backdropClick(),r=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:we(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(We(a=>a!==this._menuItemInstance),We(()=>this._menuOpen)):we();return yt(i,o,s,r)}_handleMousedown(i){xh(i)||(this._openedBy=i.button===0?"mouse":void 0,this.triggersSubmenu()&&i.preventDefault())}_handleKeydown(i){let r=i.keyCode;(r===13||r===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(r===39&&this.dir==="ltr"||r===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(i){this.triggersSubmenu()?(i.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(We(i=>i===this._menuItemInstance&&!i.disabled),na(0,gl)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof kd&&this.menu._isAnimating?this.menu._animationDone.pipe(wt(1),na(0,gl),ot(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(i){return(!this._portal||this._portal.templateRef!==i.templateRef)&&(this._portal=new Ki(i.templateRef,this._viewContainerRef)),this._portal}};e.\u0275fac=function(r){return new(r||e)(g(Lt),g(ce),g(qt),g(tO),g(lx,8),g(Wh,10),g($t,8),g(Yi),g(ee))},e.\u0275dir=te({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(r,o){r&1&&le("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),r&2&&Ve("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0});let t=e;return t})(),nO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[FK],imports:[Wi,As,Ze,An,$n,Ze]});let t=e;return t})();function LK(t,e){t&1&&xe(0,"div",2)}var VK=new q("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");var vg=(()=>{let e=class e{constructor(i,r,o,s,a){this._elementRef=i,this._ngZone=r,this._changeDetectorRef=o,this._animationMode=s,this._isNoopAnimation=!1,this._defaultColor="primary",this._value=0,this._bufferValue=0,this.animationEnd=new oe,this._mode="determinate",this._transitionendHandler=c=>{this.animationEnd.observers.length===0||!c.target||!c.target.classList.contains("mdc-linear-progress__primary-bar")||(this.mode==="determinate"||this.mode==="buffer")&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation=s==="NoopAnimations",a&&(a.color&&(this.color=this._defaultColor=a.color),this.mode=a.mode||this.mode)}get color(){return this._color||this._defaultColor}set color(i){this._color=i}get value(){return this._value}set value(i){this._value=rO(i||0),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(i){this._bufferValue=rO(i||0),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(i){this._mode=i,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${this.mode==="buffer"?this.bufferValue:100}%`}_isIndeterminate(){return this.mode==="indeterminate"||this.mode==="query"}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(ee),g(Ge),g(jt,8),g(VK,8))},e.\u0275cmp=re({type:e,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(r,o){r&2&&(Ve("aria-valuenow",o._isIndeterminate()?null:o.value)("mode",o.mode),_i("mat-"+o.color),Oe("_mat-animation-noopable",o._isNoopAnimation)("mdc-linear-progress--animation-ready",!o._isNoopAnimation)("mdc-linear-progress--indeterminate",o._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",Si],bufferValue:[2,"bufferValue","bufferValue",Si],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],standalone:!0,features:[nt,Ne],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(r,o){r&1&&(D(0,"div",0),xe(1,"div",1),ve(2,LK,1,0,"div",2),I(),D(3,"div",3),xe(4,"span",4),I(),D(5,"div",5),xe(6,"span",4),I()),r&2&&(A(),hi("flex-basis",o._getBufferBarFlexBasis()),A(),tt(o.mode==="buffer"?2:-1),A(),hi("transform",o._getPrimaryBarTransform()))},styles:[`.mat-mdc-progress-bar{display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mdc-linear-progress-track-height),var(--mdc-linear-progress-active-indicator-height))}.cdk-high-contrast-active .mdc-linear-progress{outline-color:CanvasText}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mdc-linear-progress-active-indicator-color);border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mdc-linear-progress-track-height);border-radius:var(--mdc-linear-progress-track-shape)}.mdc-linear-progress__buffer-dots{-webkit-mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear;background-color:var(--mdc-linear-progress-track-color)}.cdk-high-contrast-active .mdc-linear-progress__buffer-dots{background-color:ButtonBorder}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mdc-linear-progress-track-color)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}`],encapsulation:2,changeDetection:0});let t=e;return t})();function rO(t,e=0,n=100){return Math.max(e,Math.min(n,t))}var oO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze]});let t=e;return t})();var BK=["trigger"],jK=["panel"],HK=[[["mat-select-trigger"]],"*"],zK=["mat-select-trigger","*"];function UK(t,e){if(t&1&&(D(0,"span",4),z(1),I()),t&2){let n=se();A(),Pt(n.placeholder)}}function qK(t,e){t&1&&ke(0)}function $K(t,e){if(t&1&&(D(0,"span",11),z(1),I()),t&2){let n=se(2);A(),Pt(n.triggerValue)}}function WK(t,e){if(t&1&&(D(0,"span",5),ve(1,qK,1,0)(2,$K,2,1,"span",11),I()),t&2){let n=se();A(),tt(n.customTrigger?1:2)}}function GK(t,e){if(t&1){let n=st();D(0,"div",12,1),le("@transformPanel.done",function(r){Se(n);let o=se();return Ie(o._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){Se(n);let o=se();return Ie(o._handleKeydown(r))}),ke(2,1),I()}if(t&2){let n=se();RM("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",n._getPanelTheme(),""),ie("ngClass",n.panelClass)("@transformPanel","showing"),Ve("id",n.id+"-panel")("aria-multiselectable",n.multiple)("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby())}}var YK={transformPanelWrap:Yt("transformPanelWrap",[Ct("* => void",ag("@transformPanel",[sg()],{optional:!0}))]),transformPanel:Yt("transformPanel",[It("void",Ue({opacity:0,transform:"scale(1, 0.8)"})),Ct("void => showing",Et("120ms cubic-bezier(0, 0, 0.2, 1)",Ue({opacity:1,transform:"scale(1, 1)"}))),Ct("* => void",Et("100ms linear",Ue({opacity:0})))])};var aO=0,cO=new q("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=B(Lt);return()=>t.scrollStrategies.reposition()}});function QK(t){return()=>t.scrollStrategies.reposition()}var KK=new q("MAT_SELECT_CONFIG"),XK={provide:cO,deps:[Lt],useFactory:QK},ZK=new q("MatSelectTrigger"),dx=class{constructor(e,n){this.source=e,this.value=n}},bg=(()=>{let e=class e{_scrollOptionIntoView(i){let r=this.options.toArray()[i];if(r){let o=this.panel.nativeElement,s=ng(i,this.options,this.optionGroups),a=r._getHostElement();i===0&&s===1?o.scrollTop=0:o.scrollTop=rg(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(i){return new dx(this,i)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(i){this._hideSingleSelectionIndicator=i,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Ma.required)??!1}set required(i){this._required=i,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(i){this._selectionModel,this._multiple=i}get compareWith(){return this._compareWith}set compareWith(i){this._compareWith=i,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(i){this._assignValue(i)&&this._onChange(i)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(i,r,o,s,a,c,l,u,d,h,f,p,m,v){this._viewportRuler=i,this._changeDetectorRef=r,this._elementRef=a,this._dir=c,this._parentFormField=d,this.ngControl=h,this._liveAnnouncer=m,this._defaultOptions=v,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(b,C)=>b===C,this._uid=`mat-select-${aO++}`,this._triggerAriaLabelledBy=null,this._destroy=new K,this.stateChanges=new K,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${aO++}`,this._panelDoneAnimatingStream=new K,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new K,this.optionSelectionChanges=en(()=>{let b=this.options;return b?b.changes.pipe(Bt(b),Nt(()=>yt(...b.map(C=>C.onSelectionChange)))):this._initialized.pipe(Nt(()=>this.optionSelectionChanges))}),this.openedChange=new oe,this._openedStream=this.openedChange.pipe(We(b=>b),Te(()=>{})),this._closedStream=this.openedChange.pipe(We(b=>!b),Te(()=>{})),this.selectionChange=new oe,this.valueChange=new oe,this._trackedModal=null,this._skipPredicate=b=>this.panelOpen?!1:b.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),v?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=v.typeaheadDebounceInterval),this._errorStateTracker=new Tc(s,h,u,l,this.stateChanges),this._scrollStrategyFactory=p,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}ngOnInit(){this._selectionModel=new R0(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(hs(),ot(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(ot(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(ot(this._destroy)).subscribe(i=>{i.added.forEach(r=>r.select()),i.removed.forEach(r=>r.deselect())}),this.options.changes.pipe(Bt(null),ot(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let i=this._getTriggerAriaLabelledby(),r=this.ngControl;if(i!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=i,i?o.setAttribute("aria-labelledby",i):o.removeAttribute("aria-labelledby")}r&&(this._previousControl!==r.control&&(this._previousControl!==void 0&&r.disabled!==null&&r.disabled!==this.disabled&&(this.disabled=r.disabled),this._previousControl=r.control),this.updateErrorState())}ngOnChanges(i){(i.disabled||i.userAriaDescribedBy)&&this.stateChanges.next(),i.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let i=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!i)return;let r=`${this.id}-panel`;this._trackedModal&&Na(this._trackedModal,"aria-owns",r),gd(i,"aria-owns",r),this._trackedModal=i}_clearFromModal(){if(!this._trackedModal)return;let i=`${this.id}-panel`;Na(this._trackedModal,"aria-owns",i),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(i){this._assignValue(i)}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let i=this._selectionModel.selected.map(r=>r.viewValue);return this._isRtl()&&i.reverse(),i.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(i){this.disabled||(this.panelOpen?this._handleOpenKeydown(i):this._handleClosedKeydown(i))}_handleClosedKeydown(i){let r=i.keyCode,o=r===40||r===38||r===37||r===39,s=r===13||r===32,a=this._keyManager;if(!a.isTyping()&&s&&!zt(i)||(this.multiple||i.altKey)&&o)i.preventDefault(),this.open();else if(!this.multiple){let c=this.selected;a.onKeydown(i);let l=this.selected;l&&c!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(i){let r=this._keyManager,o=i.keyCode,s=o===40||o===38,a=r.isTyping();if(s&&i.altKey)i.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&r.activeItem&&!zt(i))i.preventDefault(),r.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&i.ctrlKey){i.preventDefault();let c=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(c?l.select():l.deselect())})}else{let c=r.activeItemIndex;r.onKeydown(i),this._multiple&&s&&i.shiftKey&&r.activeItem&&r.activeItemIndex!==c&&r.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(wt(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(i){if(this.options.forEach(r=>r.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&i)Array.isArray(i),i.forEach(r=>this._selectOptionByValue(r)),this._sortValues();else{let r=this._selectOptionByValue(i);r?this._keyManager.updateActiveItem(r):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(i){let r=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return o.value!=null&&this._compareWith(o.value,i)}catch{return!1}});return r&&this._selectionModel.select(r),r}_assignValue(i){return i!==this._value||this._multiple&&Array.isArray(i)?(this.options&&this._setSelectionByValue(i),this._value=i,!0):!1}_getOverlayWidth(i){return this.panelWidth==="auto"?(i instanceof Nh?i.elementRef:i||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let i of this.options)i._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new fd(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let i=yt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(ot(i)).subscribe(r=>{this._onSelect(r.source,r.isUserInput),r.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),yt(...this.options.map(r=>r._stateChanges)).pipe(ot(i)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(i,r){let o=this._selectionModel.isSelected(i);i.value==null&&!this._multiple?(i.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(i.value)):(o!==i.selected&&(i.selected?this._selectionModel.select(i):this._selectionModel.deselect(i)),r&&this._keyManager.setActiveItem(i),this.multiple&&(this._sortValues(),r&&this.focus())),o!==this._selectionModel.isSelected(i)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let i=this.options.toArray();this._selectionModel.sort((r,o)=>this.sortComparator?this.sortComparator(r,o,i):i.indexOf(r)-i.indexOf(o)),this.stateChanges.next()}}_propagateChanges(i){let r;this.multiple?r=this.selected.map(o=>o.value):r=this.selected?this.selected.value:i,this._value=r,this.valueChange.emit(r),this._onChange(r),this.selectionChange.emit(this._getChangeEvent(r)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let i=-1;for(let r=0;r0}focus(i){this._elementRef.nativeElement.focus(i)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),r=i?i+" ":"";return this.ariaLabelledby?r+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(i){this.openedChange.emit(i)}setDescribedByIds(i){i.length?this._elementRef.nativeElement.setAttribute("aria-describedby",i.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};e.\u0275fac=function(r){return new(r||e)(g(Gn),g(Ge),g(ee),g(kh),g(ce),g($t,8),g(Yn,8),g(yh,8),g(Os,8),g(vr,10),wn("tabindex"),g(cO),g(eg),g(KK,8))},e.\u0275cmp=re({type:e,selectors:[["mat-select"]],contentQueries:function(r,o,s){if(r&1&&(ct(s,ZK,5),ct(s,qo,5),ct(s,Th,5)),r&2){let a;pe(a=me())&&(o.customTrigger=a.first),pe(a=me())&&(o.options=a),pe(a=me())&&(o.optionGroups=a)}},viewQuery:function(r,o){if(r&1&&(ze(BK,5),ze(jK,5),ze(zC,5)),r&2){let s;pe(s=me())&&(o.trigger=s.first),pe(s=me())&&(o.panel=s.first),pe(s=me())&&(o._overlayDir=s.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(r,o){r&1&&le("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),r&2&&(Ve("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),Oe("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",Ee],disableRipple:[2,"disableRipple","disableRipple",Ee],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:Si(i)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Ee],placeholder:"placeholder",required:[2,"required","required",Ee],multiple:[2,"multiple","multiple",Ee],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",Ee],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Si],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[Ye([{provide:yd,useExisting:e},{provide:Mh,useExisting:e}]),nt,lt,Ne],ngContentSelectors:zK,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(r,o){if(r&1){let s=st();at(HK),D(0,"div",2,0),le("click",function(){return Se(s),Ie(o.open())}),D(3,"div",3),ve(4,UK,2,1,"span",4)(5,WK,3,1,"span",5),I(),D(6,"div",6)(7,"div",7),No(),D(8,"svg",8),xe(9,"path",9),I()()()(),ve(10,GK,3,9,"ng-template",10),le("backdropClick",function(){return Se(s),Ie(o.close())})("attach",function(){return Se(s),Ie(o._onAttached())})("detach",function(){return Se(s),Ie(o.close())})}if(r&2){let s=Pi(1);A(3),Ve("id",o._valueId),A(),tt(o.empty?4:5),A(6),ie("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||s)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[Nh,zC,Wm],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[YK.transformPanel]},changeDetection:0});let t=e;return t})();var lO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[XK],imports:[Wi,An,vd,Ze,$n,Fc,vd,Ze]});let t=e;return t})();var wg=["*"],JK=["content"],eX=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],tX=["mat-drawer","mat-drawer-content","*"];function iX(t,e){if(t&1){let n=st();D(0,"div",1),le("click",function(){Se(n);let r=se();return Ie(r._onBackdropClicked())}),I()}if(t&2){let n=se();Oe("mat-drawer-shown",n._isShowingBackdrop())}}function nX(t,e){t&1&&(D(0,"mat-drawer-content"),ke(1,2),I())}var rX=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],oX=["mat-sidenav","mat-sidenav-content","*"];function sX(t,e){if(t&1){let n=st();D(0,"div",1),le("click",function(){Se(n);let r=se();return Ie(r._onBackdropClicked())}),I()}if(t&2){let n=se();Oe("mat-drawer-shown",n._isShowingBackdrop())}}function aX(t,e){t&1&&(D(0,"mat-sidenav-content"),ke(1,2),I())}var cX='.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);box-shadow:var(--mat-sidenav-container-elevation-shadow);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);width:var(--mat-sidenav-container-width);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}',uO={transformDrawer:Yt("transform",[It("open, open-instant",Ue({transform:"none",visibility:"visible"})),It("void",Ue({"box-shadow":"none",visibility:"hidden"})),Ct("void => open-instant",Et("0ms")),Ct("void <=> open, open-instant => void",Et("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var lX=new q("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:dX}),ux=new q("MAT_DRAWER_CONTAINER");function dX(){return!1}var _g=(()=>{let e=class e extends Wn{constructor(i,r,o,s,a){super(o,s,a),this._changeDetectorRef=i,this._container=r}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(r){return new(r||e)(g(Ge),g(li(()=>fO)),g(ce),g(to),g(ee))},e.\u0275cmp=re({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(r,o){r&2&&hi("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},standalone:!0,features:[Ye([{provide:Wn,useExisting:e}]),He,Ne],ngContentSelectors:wg,decls:1,vars:0,template:function(r,o){r&1&&(at(),ke(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),hO=(()=>{let e=class e{get position(){return this._position}set position(i){i=i==="end"?"end":"start",i!==this._position&&(this._isAttached&&this._updatePositionInParent(i),this._position=i,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(i){this._mode=i,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(i){this._disableClose=wi(i)}get autoFocus(){let i=this._autoFocus;return i??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(i){(i==="true"||i==="false"||i==null)&&(i=wi(i)),this._autoFocus=i}get opened(){return this._opened}set opened(i){this.toggle(wi(i))}constructor(i,r,o,s,a,c,l,u){this._elementRef=i,this._focusTrapFactory=r,this._focusMonitor=o,this._platform=s,this._ngZone=a,this._interactivityChecker=c,this._doc=l,this._container=u,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new K,this._animationEnd=new K,this._animationState="void",this.openedChange=new oe(!0),this._openedStream=this.openedChange.pipe(We(d=>d),Te(()=>{})),this.openedStart=this._animationStarted.pipe(We(d=>d.fromState!==d.toState&&d.toState.indexOf("open")===0),_l(void 0)),this._closedStream=this.openedChange.pipe(We(d=>!d),Te(()=>{})),this.closedStart=this._animationStarted.pipe(We(d=>d.fromState!==d.toState&&d.toState==="void"),_l(void 0)),this._destroyed=new K,this.onPositionChanged=new oe,this._modeChanged=new K,this._injector=B(Je),this._changeDetectorRef=B(Ge),this.openedChange.pipe(ot(this._destroyed)).subscribe(d=>{d?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{tn(this._elementRef.nativeElement,"keydown").pipe(We(d=>d.keyCode===27&&!this.disableClose&&!zt(d)),ot(this._destroyed)).subscribe(d=>this._ngZone.run(()=>{this.close(),d.stopPropagation(),d.preventDefault()}))}),this._animationEnd.pipe(hs((d,h)=>d.fromState===h.fromState&&d.toState===h.toState)).subscribe(d=>{let{fromState:h,toState:f}=d;(f.indexOf("open")===0&&h==="void"||f==="void"&&h.indexOf("open")===0)&&this.openedChange.emit(this._opened)})}_forceFocus(i,r){this._interactivityChecker.isFocusable(i)||(i.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{i.removeEventListener("blur",o),i.removeEventListener("mousedown",o),i.removeAttribute("tabindex")};i.addEventListener("blur",o),i.addEventListener("mousedown",o)})),i.focus(r)}_focusByCssSelector(i,r){let o=this._elementRef.nativeElement.querySelector(i);o&&this._forceFocus(o,r)}_takeFocus(){if(!this._focusTrap)return;let i=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":ri(()=>{!this._focusTrap.focusInitialElement()&&typeof i.focus=="function"&&i.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(i){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,i):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let i=this._doc.activeElement;return!!i&&this._elementRef.nativeElement.contains(i)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(i){return this.toggle(!0,i)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(i=!this.opened,r){i&&r&&(this._openedVia=r);let o=this._setOpen(i,!i&&this._isFocusWithinDrawer(),this._openedVia||"program");return i||(this._openedVia=null),o}_setOpen(i,r,o){return this._opened=i,i?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",r&&this._restoreFocus(o)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(s=>{this.openedChange.pipe(wt(1)).subscribe(a=>s(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop)}_updatePositionInParent(i){if(!this._platform.isBrowser)return;let r=this._elementRef.nativeElement,o=r.parentNode;i==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,r)),o.appendChild(r)):this._anchor&&this._anchor.parentNode.insertBefore(r,this._anchor)}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Mc),g(Yi),g(et),g(ee),g(kc),g(Fe,8),g(ux,8))},e.\u0275cmp=re({type:e,selectors:[["mat-drawer"]],viewQuery:function(r,o){if(r&1&&ze(JK,5),r&2){let s;pe(s=me())&&(o._content=s.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(r,o){r&1&&gc("@transform.start",function(a){return o._animationStarted.next(a)})("@transform.done",function(a){return o._animationEnd.next(a)}),r&2&&(mc("@transform",o._animationState),Ve("align",null),Oe("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-drawer-opened",o.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],standalone:!0,features:[Ne],ngContentSelectors:wg,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(r,o){r&1&&(at(),D(0,"div",1,0),ke(2),I())},dependencies:[Wn],encapsulation:2,data:{animation:[uO.transformDrawer]},changeDetection:0});let t=e;return t})(),fO=(()=>{let e=class e{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(i){this._autosize=wi(i)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(i){this._backdropOverride=i==null?null:wi(i)}get scrollable(){return this._userContent||this._content}constructor(i,r,o,s,a,c=!1,l){this._dir=i,this._element=r,this._ngZone=o,this._changeDetectorRef=s,this._animationMode=l,this._drawers=new $r,this.backdropClick=new oe,this._destroyed=new K,this._doCheckSubject=new K,this._contentMargins={left:null,right:null},this._contentMarginChanges=new K,this._injector=B(Je),i&&i.change.pipe(ot(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(ot(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=c}ngAfterContentInit(){this._allDrawers.changes.pipe(Bt(this._allDrawers),ot(this._destroyed)).subscribe(i=>{this._drawers.reset(i.filter(r=>!r._container||r._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Bt(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(i=>{this._watchDrawerToggle(i),this._watchDrawerPosition(i),this._watchDrawerMode(i)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Hr(10),ot(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(i=>i.open())}close(){this._drawers.forEach(i=>i.close())}updateContentMargins(){let i=0,r=0;if(this._left&&this._left.opened){if(this._left.mode=="side")i+=this._left._getWidth();else if(this._left.mode=="push"){let o=this._left._getWidth();i+=o,r-=o}}if(this._right&&this._right.opened){if(this._right.mode=="side")r+=this._right._getWidth();else if(this._right.mode=="push"){let o=this._right._getWidth();r+=o,i-=o}}i=i||null,r=r||null,(i!==this._contentMargins.left||r!==this._contentMargins.right)&&(this._contentMargins={left:i,right:r},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(i){i._animationStarted.pipe(We(r=>r.fromState!==r.toState),ot(this._drawers.changes)).subscribe(r=>{r.toState!=="open-instant"&&this._animationMode!=="NoopAnimations"&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),i.mode!=="side"&&i.openedChange.pipe(ot(this._drawers.changes)).subscribe(()=>this._setContainerClass(i.opened))}_watchDrawerPosition(i){i&&i.onPositionChanged.pipe(ot(this._drawers.changes)).subscribe(()=>{ri(()=>{this._validateDrawers()},{injector:this._injector,phase:Ni.Read})})}_watchDrawerMode(i){i&&i._modeChanged.pipe(ot(yt(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(i){let r=this._element.nativeElement.classList,o="mat-drawer-container-has-open";i?r.add(o):r.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(i=>{i.position=="end"?(this._end!=null,this._end=i):(this._start!=null,this._start=i)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(i=>i&&!i.disableClose&&this._drawerHasBackdrop(i)).forEach(i=>i._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(i){return i!=null&&i.opened}_drawerHasBackdrop(i){return this._backdropOverride==null?!!i&&i.mode!=="side":this._backdropOverride}};e.\u0275fac=function(r){return new(r||e)(g($t,8),g(ce),g(ee),g(Ge),g(Gn),g(lX),g(jt,8))},e.\u0275cmp=re({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(r,o,s){if(r&1&&(ct(s,_g,5),ct(s,hO,5)),r&2){let a;pe(a=me())&&(o._content=a.first),pe(a=me())&&(o._allDrawers=a)}},viewQuery:function(r,o){if(r&1&&ze(_g,5),r&2){let s;pe(s=me())&&(o._userContent=s.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(r,o){r&2&&Oe("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[Ye([{provide:ux,useExisting:e}]),Ne],ngContentSelectors:tX,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(r,o){r&1&&(at(eX),ve(0,iX,1,2,"div",0),ke(1),ke(2,1),ve(3,nX,2,0,"mat-drawer-content")),r&2&&(tt(o.hasBackdrop?0:-1),A(3),tt(o._content?-1:3))},dependencies:[_g],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);box-shadow:var(--mat-sidenav-container-elevation-shadow);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);width:var(--mat-sidenav-container-width);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0});let t=e;return t})(),yg=(()=>{let e=class e extends _g{constructor(i,r,o,s,a){super(i,r,o,s,a)}};e.\u0275fac=function(r){return new(r||e)(g(Ge),g(li(()=>fx)),g(ce),g(to),g(ee))},e.\u0275cmp=re({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(r,o){r&2&&hi("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},standalone:!0,features:[Ye([{provide:Wn,useExisting:e}]),He,Ne],ngContentSelectors:wg,decls:1,vars:0,template:function(r,o){r&1&&(at(),ke(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),hx=(()=>{let e=class e extends hO{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(i){this._fixedInViewport=wi(i)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(i){this._fixedTopGap=En(i)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(i){this._fixedBottomGap=En(i)}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275cmp=re({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(r,o){r&2&&(Ve("align",null),hi("top",o.fixedInViewport?o.fixedTopGap:null,"px")("bottom",o.fixedInViewport?o.fixedBottomGap:null,"px"),Oe("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-drawer-opened",o.opened)("mat-sidenav-fixed",o.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],standalone:!0,features:[He,Ne],ngContentSelectors:wg,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(r,o){r&1&&(at(),D(0,"div",1,0),ke(2),I())},dependencies:[Wn],encapsulation:2,data:{animation:[uO.transformDrawer]},changeDetection:0});let t=e;return t})(),fx=(()=>{let e=class e extends fO{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275cmp=re({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(r,o,s){if(r&1&&(ct(s,yg,5),ct(s,hx,5)),r&2){let a;pe(a=me())&&(o._content=a.first),pe(a=me())&&(o._allDrawers=a)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(r,o){r&2&&Oe("mat-drawer-container-explicit-backdrop",o._backdropOverride)},exportAs:["matSidenavContainer"],standalone:!0,features:[Ye([{provide:ux,useExisting:e}]),He,Ne],ngContentSelectors:oX,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(r,o){r&1&&(at(rX),ve(0,sX,1,2,"div",0),ke(1),ke(2,1),ve(3,aX,2,0,"mat-sidenav-content")),r&2&&(tt(o.hasBackdrop?0:-1),A(3),tt(o._content?-1:3))},dependencies:[yg],styles:[cX],encapsulation:2,changeDetection:0});let t=e;return t})(),pO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,$n,$n,Ze]});let t=e;return t})();var hX=["knob"],fX=["valueIndicatorContainer"];function pX(t,e){if(t&1&&(D(0,"div",2,1)(2,"div",5)(3,"span",6),z(4),I()()()),t&2){let n=se();A(4),Pt(n.valueIndicatorText)}}var mX=["trackActive"],gX=["*"];function vX(t,e){if(t&1&&xe(0,"div"),t&2){let n=e.$implicit,i=e.$index,r=se(3);_i(n===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),hi("transform",r._calcTickMarkTransform(i))}}function bX(t,e){if(t&1&&ql(0,vX,1,4,"div",8,OM),t&2){let n=se(2);$l(n._tickMarks)}}function _X(t,e){if(t&1&&(D(0,"div",6,1),ve(2,bX,2,0),I()),t&2){let n=se();A(2),tt(n._cachedWidth?2:-1)}}function yX(t,e){if(t&1&&xe(0,"mat-slider-visual-thumb",7),t&2){let n=se();ie("discrete",n.discrete)("thumbPosition",1)("valueIndicatorText",n.startValueIndicatorText)}}var ht=function(t){return t[t.START=1]="START",t[t.END=2]="END",t}(ht||{}),Md=function(t){return t[t.ACTIVE=0]="ACTIVE",t[t.INACTIVE=1]="INACTIVE",t}(Md||{}),px=new q("_MatSlider"),mO=new q("_MatSliderThumb"),wX=new q("_MatSliderRangeThumb"),gO=new q("_MatSliderVisualThumb");var CX=(()=>{let e=class e{constructor(i,r,o,s){this._cdr=i,this._ngZone=r,this._slider=s,this._isHovered=!1,this._isActive=!1,this._isValueIndicatorVisible=!1,this._platform=B(et),this._onPointerMove=a=>{if(this._sliderInput._isFocused)return;let c=this._hostElement.getBoundingClientRect(),l=this._slider._isCursorOnSliderThumb(a,c);this._isHovered=l,l?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)},this._onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)},this._onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")},this._onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")},this._onDragStart=a=>{a.button===0&&(this._isActive=!0,this._showActiveRipple())},this._onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef),this._platform.SAFARI&&this._showHoverRipple()},this._hostElement=o.nativeElement}ngAfterViewInit(){this._ripple.radius=24,this._sliderInput=this._slider._getInput(this.thumbPosition),this._sliderInputEl=this._sliderInput._hostElement;let i=this._sliderInputEl;this._ngZone.runOutsideAngular(()=>{i.addEventListener("pointermove",this._onPointerMove),i.addEventListener("pointerdown",this._onDragStart),i.addEventListener("pointerup",this._onDragEnd),i.addEventListener("pointerleave",this._onMouseLeave),i.addEventListener("focus",this._onFocus),i.addEventListener("blur",this._onBlur)})}ngOnDestroy(){let i=this._sliderInputEl;i&&(i.removeEventListener("pointermove",this._onPointerMove),i.removeEventListener("pointerdown",this._onDragStart),i.removeEventListener("pointerup",this._onDragEnd),i.removeEventListener("pointerleave",this._onMouseLeave),i.removeEventListener("focus",this._onFocus),i.removeEventListener("blur",this._onBlur))}_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(i){return i?.state===un.FADING_IN||i?.state===un.VISIBLE}_showRipple(i,r){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===ht.START?ht.END:ht.START)._showValueIndicator(),!(this._slider._globalRippleOptions?.disabled&&!r)))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:i,centered:!0,persistent:!0})}_hideRipple(i){if(i?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();let r=this._getSibling();r._isShowingAnyRipple()||(this._hideValueIndicator(),r._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(this.thumbPosition===ht.START?ht.END:ht.START)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}};e.\u0275fac=function(r){return new(r||e)(g(Ge),g(ee),g(ce),g(px))},e.\u0275cmp=re({type:e,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(r,o){if(r&1&&(ze(Rc,5),ze(hX,5),ze(fX,5)),r&2){let s;pe(s=me())&&(o._ripple=s.first),pe(s=me())&&(o._knob=s.first),pe(s=me())&&(o._valueIndicatorContainer=s.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},standalone:!0,features:[Ye([{provide:gO,useExisting:e}]),Ne],decls:4,vars:2,consts:[["knob",""],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["matRipple","",1,"mat-mdc-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(r,o){r&1&&(ve(0,pX,5,1,"div",2),xe(1,"div",3,0)(3,"div",4)),r&2&&(tt(o.discrete?0:-1),A(3),ie("matRippleDisabled",!0))},dependencies:[Rc],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0});let t=e;return t})(),vO=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){this._disabled=i;let r=this._getInput(ht.END),o=this._getInput(ht.START);r&&(r.disabled=this._disabled),o&&(o.disabled=this._disabled)}get discrete(){return this._discrete}set discrete(i){this._discrete=i,this._updateValueIndicatorUIs()}get min(){return this._min}set min(i){let r=isNaN(i)?this._min:i;this._min!==r&&this._updateMin(r)}_updateMin(i){let r=this._min;this._min=i,this._isRange?this._updateMinRange({old:r,new:i}):this._updateMinNonRange(i),this._onMinMaxOrStepChange()}_updateMinRange(i){let r=this._getInput(ht.END),o=this._getInput(ht.START),s=r.value,a=o.value;o.min=i.new,r.min=Math.max(i.new,o.value),o.max=Math.min(r.max,r.value),o._updateWidthInactive(),r._updateWidthInactive(),i.newi.old?this._onTranslateXChangeBySideEffect(o,r):this._onTranslateXChangeBySideEffect(r,o),s!==r.value&&this._onValueChange(r),a!==o.value&&this._onValueChange(o)}_updateMaxNonRange(i){let r=this._getInput(ht.END);if(r){let o=r.value;r.max=i,r._updateThumbUIByValue(),this._updateTrackUI(r),o!==r.value&&this._onValueChange(r)}}get step(){return this._step}set step(i){let r=isNaN(i)?this._step:i;this._step!==r&&this._updateStep(r)}_updateStep(i){this._step=i,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){let i=this._getInput(ht.END),r=this._getInput(ht.START),o=i.value,s=r.value,a=r.value;i.min=this._min,r.max=this._max,i.step=this._step,r.step=this._step,this._platform.SAFARI&&(i.value=i.value,r.value=r.value),i.min=Math.max(this._min,r.value),r.max=Math.min(this._max,i.value),r._updateWidthInactive(),i._updateWidthInactive(),i.value`${l}`,this._rippleRadius=24,this.startValueIndicatorText="",this.endValueIndicatorText="",this._isRange=!1,this._isRtl=!1,this._hasViewInitialized=!1,this._tickMarkTrackWidth=0,this._hasAnimation=!1,this._resizeTimer=null,this._platform=B(et),this._knobRadius=8,this._thumbsOverlap=!1,this._noopAnimations=c==="NoopAnimations",this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl=this._dir.value==="rtl"}ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();let i=this._getInput(ht.END),r=this._getInput(ht.START);this._isRange=!!i&&!!r,this._cdr.detectChanges();let o=this._getThumb(ht.END);this._rippleRadius=o._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._isRange?this._initUIRange(i,r):this._initUINonRange(i),this._updateTrackUI(i),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(i){i.initProps(),i.initUI(),this._updateValueIndicatorUI(i),this._hasViewInitialized=!0,i._updateThumbUIByValue()}_initUIRange(i,r){i.initProps(),i.initUI(),r.initProps(),r.initUI(),i._updateMinMax(),r._updateMinMax(),i._updateStaticStyles(),r._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,i._updateThumbUIByValue(),r._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl=this._dir.value==="rtl",this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){let i=this._getInput(ht.END),r=this._getInput(ht.START);i._setIsLeftThumb(),r._setIsLeftThumb(),i.translateX=i._calcTranslateXByValue(),r.translateX=r._calcTranslateXByValue(),i._updateStaticStyles(),r._updateStaticStyles(),i._updateWidthInactive(),r._updateWidthInactive(),i._updateThumbUIByValue(),r._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(ht.END)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(ht.START)._isActive||this._getThumb(ht.END)._isActive}_getValue(i=ht.END){let r=this._getInput(i);return r?r.value:this.min}_skipUpdate(){return!!(this._getInput(ht.START)?._skipUIUpdate||this._getInput(ht.END)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(i){let r=this._trackActive.nativeElement.style;r.left=i.left,r.right=i.right,r.transformOrigin=i.transformOrigin,r.transform=i.transform}_calcTickMarkTransform(i){return`translateX(${i*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange(i){this._hasViewInitialized&&(this._updateThumbUI(i),this._updateTrackUI(i),this._updateOverlappingThumbUI(i))}_onTranslateXChangeBySideEffect(i,r){this._hasViewInitialized&&(i._updateThumbUIByValue(),r._updateThumbUIByValue())}_onValueChange(i){this._hasViewInitialized&&(this._updateValueIndicatorUI(i),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){let i=this._getInput(ht.END),r=this._getInput(ht.START);i._updateThumbUIByValue(),r._updateThumbUIByValue(),i._updateStaticStyles(),r._updateStaticStyles(),i._updateMinMax(),r._updateMinMax(),i._updateWidthInactive(),r._updateWidthInactive()}else{let i=this._getInput(ht.END);i&&i._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_areThumbsOverlapping(){let i=this._getInput(ht.START),r=this._getInput(ht.END);return!i||!r?!1:r.translateX-i.translateX<20}_updateOverlappingThumbClassNames(i){let r=i.getSibling(),o=this._getThumb(i.thumbPosition);this._getThumb(r.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),o._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(i){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(i))}_updateThumbUI(i){if(this._skipUpdate())return;let r=this._getThumb(i.thumbPosition===ht.END?ht.END:ht.START);r._hostElement.style.transform=`translateX(${i.translateX}px)`}_updateValueIndicatorUI(i){if(this._skipUpdate())return;let r=this.displayWith(i.value);if(this._hasViewInitialized?i._valuetext.set(r):i._hostElement.setAttribute("aria-valuetext",r),this.discrete){i.thumbPosition===ht.START?this.startValueIndicatorText=r:this.endValueIndicatorText=r;let o=this._getThumb(i.thumbPosition);r.length<3?o._hostElement.classList.add("mdc-slider__thumb--short-value"):o._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){let i=this._getInput(ht.END),r=this._getInput(ht.START);i&&this._updateValueIndicatorUI(i),r&&this._updateValueIndicatorUI(r)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;let i=this._step&&this._step>0?this._step:1,o=(Math.floor(this.max/i)*i-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*o-6}_updateTrackUI(i){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(i):this._updateTrackUINonRange(i))}_updateTrackUIRange(i){let r=i.getSibling();if(!r||!this._cachedWidth)return;let o=Math.abs(r.translateX-i.translateX)/this._cachedWidth;i._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:`${this._cachedWidth-r.translateX}px`,transformOrigin:"right",transform:`scaleX(${o})`}):this._setTrackActiveStyles({left:`${r.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${o})`})}_updateTrackUINonRange(i){this._isRtl?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-i.fillPercentage})`}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${i.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||this.step===void 0||this.min===void 0||this.max===void 0)return;let i=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(i):this._updateTickMarkUINonRange(i),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange(i){let r=this._getValue(),o=Math.max(Math.round((r-this.min)/i),0),s=Math.max(Math.round((this.max-r)/i),0);this._isRtl?o++:s++,this._tickMarks=Array(o).fill(Md.ACTIVE).concat(Array(s).fill(Md.INACTIVE))}_updateTickMarkUIRange(i){let r=this._getValue(),o=this._getValue(ht.START),s=Math.max(Math.round((o-this.min)/i),0),a=Math.max(Math.round((r-o)/i)+1,0),c=Math.max(Math.round((this.max-r)/i),0);this._tickMarks=Array(s).fill(Md.INACTIVE).concat(Array(a).fill(Md.ACTIVE),Array(c).fill(Md.INACTIVE))}_getInput(i){if(i===ht.END&&this._input)return this._input;if(this._inputs?.length)return i===ht.START?this._inputs.first:this._inputs.last}_getThumb(i){return i===ht.END?this._thumbs?.last:this._thumbs?.first}_setTransition(i){this._hasAnimation=!this._platform.IOS&&i&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(i,r){let o=r.width/2,s=r.x+o,a=r.y+o,c=i.clientX-s,l=i.clientY-a;return Math.pow(c,2)+Math.pow(l,2)mx),multi:!0};var mx=(()=>{let e=class e{get value(){return Si(this._hostElement.value,0)}set value(i){i=isNaN(i)?0:i;let r=i+"";if(!this._hasSetInitialValue){this._initialValue=r;return}this._isActive||this._setValue(r)}_setValue(i){this._hostElement.value=i,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()}get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(i){this._translateX=i}get min(){return Si(this._hostElement.min,0)}set min(i){this._hostElement.min=i+"",this._cdr.detectChanges()}get max(){return Si(this._hostElement.max,0)}set max(i){this._hostElement.max=i+"",this._cdr.detectChanges()}get step(){return Si(this._hostElement.step,0)}set step(i){this._hostElement.step=i+"",this._cdr.detectChanges()}get disabled(){return Ee(this._hostElement.disabled)}set disabled(i){this._hostElement.disabled=i,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_setIsFocused(i){this._isFocused=i}constructor(i,r,o,s){this._ngZone=i,this._elementRef=r,this._cdr=o,this._slider=s,this.valueChange=new oe,this.dragStart=new oe,this.dragEnd=new oe,this.thumbPosition=ht.END,this._valuetext=Kr(""),this._knobRadius=8,this._tickMarkOffset=3,this._isActive=!1,this._isFocused=!1,this._hasSetInitialValue=!1,this._destroyed=new K,this._skipUIUpdate=!1,this._onTouchedFn=()=>{},this._isControlInitialized=!1,this._platform=B(et),this._hostElement=r.nativeElement,this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,this._initialValue===void 0?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._slider._setTransition(!1),this._slider._updateTrackUI(this),this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(i){if(!(this.disabled||i.button!==0)){if(this._platform.IOS){let r=this._slider._isCursorOnSliderThumb(i,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());this._isActive=r,this._updateWidthActive(),this._slider._updateDimensions();return}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(i,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(i),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(i){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(i)},0)}_fixValue(i){let r=i.clientX-this._slider._cachedLeft,o=this._slider._cachedWidth,s=this._slider.step===0?1:this._slider.step,a=Math.floor((this._slider.max-this._slider.min)/s),c=this._slider._isRtl?1-r/o:r/o,u=Math.round(c*a)/a*(this._slider.max-this._slider.min)+this._slider.min,d=Math.round(u/s)*s,h=this.value;if(d===h){this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(i,{withAnimation:this._slider._hasAnimation});return}this.value=d,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(i,{withAnimation:this._slider._hasAnimation})}_onPointerMove(i){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(i)}_onPointerUp(){this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(i){let r=this._tickMarkOffset,o=this._slider._cachedWidth-this._tickMarkOffset;return Math.max(Math.min(i,o),r)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset}_calcTranslateXByPointerEvent(i){return i.clientX-this._slider._cachedLeft}_updateWidthActive(){}_updateWidthInactive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding-this._tickMarkOffset*2}px)`,this._hostElement.style.left=`-${this._slider._rippleRadius-this._tickMarkOffset}px`}_updateThumbUIByValue(i){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(i)}_updateThumbUIByPointerEvent(i,r){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(i)),this._updateThumbUI(r)}_updateThumbUI(i){this._slider._setTransition(!!i?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(i){(this._isControlInitialized||i!==null)&&(this.value=i)}registerOnChange(i){this._onChangeFn=i,this._isControlInitialized=!0}registerOnTouched(i){this._onTouchedFn=i}setDisabledState(i){this.disabled=i}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}};e.\u0275fac=function(r){return new(r||e)(g(ee),g(ce),g(Ge),g(px))},e.\u0275dir=te({type:e,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(r,o){r&1&&le("change",function(){return o._onChange()})("input",function(){return o._onInput()})("blur",function(){return o._onBlur()})("focus",function(){return o._onFocus()}),r&2&&Ve("aria-valuetext",o._valuetext())},inputs:{value:[2,"value","value",Si]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],standalone:!0,features:[Ye([xX,{provide:mO,useExisting:e}]),nt]});let t=e;return t})();var bO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,As]});let t=e;return t})();function EX(t,e){if(t&1){let n=st();D(0,"div",1)(1,"button",2),le("click",function(){Se(n);let r=se();return Ie(r.action())}),z(2),I()()}if(t&2){let n=se();A(2),Tt(" ",n.data.action," ")}}var SX=["label"];function IX(t,e){}var kX=Math.pow(2,31)-1,Gh=class{constructor(e,n){this._overlayRef=n,this._afterDismissed=new K,this._afterOpened=new K,this._onAction=new K,this._dismissedByAction=!1,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,kX))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},_O=new q("MatSnackBarData"),Td=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},MX=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0});let t=e;return t})(),TX=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0});let t=e;return t})(),AX=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0});let t=e;return t})(),yO=(()=>{let e=class e{constructor(i,r){this.snackBarRef=i,this.data=r}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};e.\u0275fac=function(r){return new(r||e)(g(Gh),g(_O))},e.\u0275cmp=re({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[Ne],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(r,o){r&1&&(D(0,"div",0),z(1),I(),ve(2,EX,3,1,"div",1)),r&2&&(A(),Tt(" ",o.data.message,` -`),A(),tt(o.hasAction?2:-1))},dependencies:[ei,MX,TX,AX],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});let t=e;return t})(),RX={snackBarState:Yt("state",[It("void, hidden",Ue({transform:"scale(0.8)",opacity:0})),It("visible",Ue({transform:"scale(1)",opacity:1})),Ct("* => visible",Et("150ms cubic-bezier(0, 0, 0.2, 1)")),Ct("* => void, * => hidden",Et("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ue({opacity:0})))])},OX=0,NX=(()=>{let e=class e extends Pa{constructor(i,r,o,s,a){super(),this._ngZone=i,this._elementRef=r,this._changeDetectorRef=o,this._platform=s,this.snackBarConfig=a,this._document=B(Fe),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new K,this._onExit=new K,this._onEnter=new K,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${OX++}`,this.attachDomPortal=c=>{this._assertNotAttached();let l=this._portalOutlet.attachDomPortal(c);return this._afterPortalAttached(),l},a.politeness==="assertive"&&!a.announcementMessage?this._live="assertive":a.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(i){this._assertNotAttached();let r=this._portalOutlet.attachComponentPortal(i);return this._afterPortalAttached(),r}attachTemplatePortal(i){this._assertNotAttached();let r=this._portalOutlet.attachTemplatePortal(i);return this._afterPortalAttached(),r}onAnimationEnd(i){let{fromState:r,toState:o}=i;if((o==="void"&&r!=="void"||o==="hidden")&&this._completeExit(),o==="visible"){let s=this._onEnter;this._ngZone.run(()=>{s.next(),s.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let i=this._elementRef.nativeElement,r=this.snackBarConfig.panelClass;r&&(Array.isArray(r)?r.forEach(a=>i.classList.add(a)):i.classList.add(r)),this._exposeToModals();let o=this._label.nativeElement,s="mdc-snackbar__label";o.classList.toggle(s,!o.querySelector(`.${s}`))}_exposeToModals(){let i=this._liveElementId,r=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let r=i.getAttribute("aria-owns");if(r){let o=r.replace(this._liveElementId,"").trim();o.length>0?i.setAttribute("aria-owns",o):i.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector("[aria-hidden]"),r=this._elementRef.nativeElement.querySelector("[aria-live]");if(i&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(o=document.activeElement),i.removeAttribute("aria-hidden"),r.appendChild(i),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};e.\u0275fac=function(r){return new(r||e)(g(ee),g(ce),g(Ge),g(et),g(Td))},e.\u0275cmp=re({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(r,o){if(r&1&&(ze(Qn,7),ze(SX,7)),r&2){let s;pe(s=me())&&(o._portalOutlet=s.first),pe(s=me())&&(o._label=s.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(r,o){r&1&&gc("@state.done",function(a){return o.onAnimationEnd(a)}),r&2&&mc("@state",o._animationState)},standalone:!0,features:[He,Ne],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(r,o){r&1&&(D(0,"div",1)(1,"div",2,0)(3,"div",3),ve(4,IX,0,0,"ng-template",4),I(),xe(5,"div"),I()()),r&2&&(A(5),Ve("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Qn],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}.cdk-high-contrast-active .mat-mdc-snackbar-surface{outline:solid 1px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color);border-radius:var(--mdc-snackbar-container-shape);background-color:var(--mdc-snackbar-container-color)}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font);font-size:var(--mdc-snackbar-supporting-text-size);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[RX.snackBarState]}});let t=e;return t})();function FX(){return new Td}var PX=new q("mat-snack-bar-default-options",{providedIn:"root",factory:FX}),Ps=(()=>{let e=class e{get _openedSnackBarRef(){let i=this._parentSnackBar;return i?i._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(i){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=i:this._snackBarRefAtThisLevel=i}constructor(i,r,o,s,a,c){this._overlay=i,this._live=r,this._injector=o,this._breakpointObserver=s,this._parentSnackBar=a,this._defaultConfig=c,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=yO,this.snackBarContainerComponent=NX,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(i,r){return this._attach(i,r)}openFromTemplate(i,r){return this._attach(i,r)}open(i,r="",o){let s=X(X({},this._defaultConfig),o);return s.data={message:i,action:r},s.announcementMessage===i&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(i,r){let o=r&&r.viewContainerRef&&r.viewContainerRef.injector,s=Je.create({parent:o||this._injector,providers:[{provide:Td,useValue:r}]}),a=new br(this.snackBarContainerComponent,r.viewContainerRef,s),c=i.attach(a);return c.instance.snackBarConfig=r,c.instance}_attach(i,r){let o=X(X(X({},new Td),this._defaultConfig),r),s=this._createOverlay(o),a=this._attachSnackBarContainer(s,o),c=new Gh(a,s);if(i instanceof Rt){let l=new Ki(i,null,{$implicit:o.data,snackBarRef:c});c.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(o,c),u=new br(i,void 0,l),d=a.attachComponentPortal(u);c.instance=d.instance}return this._breakpointObserver.observe(nd.HandsetPortrait).pipe(ot(s.detachments())).subscribe(l=>{s.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(c,o),this._openedSnackBarRef=c,this._openedSnackBarRef}_animateSnackBar(i,r){i.afterDismissed().subscribe(()=>{this._openedSnackBarRef==i&&(this._openedSnackBarRef=null),r.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{i.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):i.containerInstance.enter(),r.duration&&r.duration>0&&i.afterOpened().subscribe(()=>i._dismissAfter(r.duration))}_createOverlay(i){let r=new Tn;r.direction=i.direction;let o=this._overlay.position().global(),s=i.direction==="rtl",a=i.horizontalPosition==="left"||i.horizontalPosition==="start"&&!s||i.horizontalPosition==="end"&&s,c=!a&&i.horizontalPosition!=="center";return a?o.left("0"):c?o.right("0"):o.centerHorizontally(),i.verticalPosition==="top"?o.top("0"):o.bottom("0"),r.positionStrategy=o,this._overlay.create(r)}_createInjector(i,r){let o=i&&i.viewContainerRef&&i.viewContainerRef.injector;return Je.create({parent:o||this._injector,providers:[{provide:Gh,useValue:r},{provide:_O,useValue:i.data}]})}};e.\u0275fac=function(r){return new(r||e)(R(Lt),R(eg),R(Je),R(Da),R(e,12),R(PX))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var wO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[Ps],imports:[An,Kn,wd,Ze,yO,Ze]});let t=e;return t})();var LX=["mat-sort-header",""],VX=["*"];function BX(t,e){if(t&1){let n=st();D(0,"div",2),le("@arrowPosition.start",function(){Se(n);let r=se();return Ie(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){Se(n);let r=se();return Ie(r._disableViewStateAnimation=!1)}),xe(1,"div",3),D(2,"div",4),xe(3,"div",5)(4,"div",6)(5,"div",7),I()()}if(t&2){let n=se();ie("@arrowOpacity",n._getArrowViewState())("@arrowPosition",n._getArrowViewState())("@allowChildren",n._getArrowDirectionState()),A(2),ie("@indicator",n._getArrowDirectionState()),A(),ie("@leftPointer",n._getArrowDirectionState()),A(),ie("@rightPointer",n._getArrowDirectionState())}}var CO=new q("MAT_SORT_DEFAULT_OPTIONS"),Yh=(()=>{let e=class e{get direction(){return this._direction}set direction(i){this._direction=i}constructor(i){this._defaultOptions=i,this._initializedStream=new bi(1),this.sortables=new Map,this._stateChanges=new K,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new oe,this.initialized=this._initializedStream}register(i){this.sortables.set(i.id,i)}deregister(i){this.sortables.delete(i.id)}sort(i){this.active!=i.id?(this.active=i.id,this.direction=i.start?i.start:this.start):this.direction=this.getNextSortDirection(i),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(i){if(!i)return"";let r=i?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=jX(i.start||this.start,r),s=o.indexOf(this.direction)+1;return s>=o.length&&(s=0),o[s]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}};e.\u0275fac=function(r){return new(r||e)(g(CO,8))},e.\u0275dir=te({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",Ee],disabled:[2,"matSortDisabled","disabled",Ee]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[nt,lt]});let t=e;return t})();function jX(t,e){let n=["asc","desc"];return t=="desc"&&n.reverse(),e||n.push(""),n}var Ha=b3.ENTERING+" "+v3.STANDARD_CURVE,Ad={indicator:Yt("indicator",[It("active-asc, asc",Ue({transform:"translateY(0px)"})),It("active-desc, desc",Ue({transform:"translateY(10px)"})),Ct("active-asc <=> active-desc",Et(Ha))]),leftPointer:Yt("leftPointer",[It("active-asc, asc",Ue({transform:"rotate(-45deg)"})),It("active-desc, desc",Ue({transform:"rotate(45deg)"})),Ct("active-asc <=> active-desc",Et(Ha))]),rightPointer:Yt("rightPointer",[It("active-asc, asc",Ue({transform:"rotate(45deg)"})),It("active-desc, desc",Ue({transform:"rotate(-45deg)"})),Ct("active-asc <=> active-desc",Et(Ha))]),arrowOpacity:Yt("arrowOpacity",[It("desc-to-active, asc-to-active, active",Ue({opacity:1})),It("desc-to-hint, asc-to-hint, hint",Ue({opacity:.54})),It("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Ue({opacity:0})),Ct("* => asc, * => desc, * => active, * => hint, * => void",Et("0ms")),Ct("* <=> *",Et(Ha))]),arrowPosition:Yt("arrowPosition",[Ct("* => desc-to-hint, * => desc-to-active",Et(Ha,Va([Ue({transform:"translateY(-25%)"}),Ue({transform:"translateY(0)"})]))),Ct("* => hint-to-desc, * => active-to-desc",Et(Ha,Va([Ue({transform:"translateY(0)"}),Ue({transform:"translateY(25%)"})]))),Ct("* => asc-to-hint, * => asc-to-active",Et(Ha,Va([Ue({transform:"translateY(25%)"}),Ue({transform:"translateY(0)"})]))),Ct("* => hint-to-asc, * => active-to-asc",Et(Ha,Va([Ue({transform:"translateY(0)"}),Ue({transform:"translateY(-25%)"})]))),It("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Ue({transform:"translateY(0)"})),It("hint-to-desc, active-to-desc, desc",Ue({transform:"translateY(-25%)"})),It("hint-to-asc, active-to-asc, asc",Ue({transform:"translateY(25%)"}))]),allowChildren:Yt("allowChildren",[Ct("* <=> *",[ag("@*",sg(),{optional:!0})])])},xg=(()=>{let e=class e{constructor(){this.changes=new K}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function HX(t){return t||new xg}var zX={provide:xg,deps:[[new Gr,new fa,xg]],useFactory:HX},xO=(()=>{let e=class e{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(i){this._updateSortActionDescription(i)}constructor(i,r,o,s,a,c,l,u){this._intl=i,this._changeDetectorRef=r,this._sort=o,this._columnDef=s,this._focusMonitor=a,this._elementRef=c,this._ariaDescriber=l,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this.disabled=!1,this._sortActionDescription="Sort",u?.arrowPosition&&(this.arrowPosition=u?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(i=>{let r=!!i;r!==this._showIndicatorHint&&(this._setIndicatorHintVisible(r),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_setIndicatorHintVisible(i){this._isDisabled()&&i||(this._showIndicatorHint=i,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(i){this._viewState=i||{},this._disableViewStateAnimation&&(this._viewState={toState:i.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(i){!this._isDisabled()&&(i.keyCode===32||i.keyCode===13)&&(i.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let i=this._viewState.fromState;return(i?`${i}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(i){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,i)),this._sortActionDescription=i}_handleStateChanges(){this._rerenderSubscription=yt(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(r){return new(r||e)(g(xg),g(Ge),g(Yh,8),g("MAT_SORT_HEADER_COLUMN_DEF",8),g(Yi),g(ce),g(n3,8),g(CO,8))},e.\u0275cmp=re({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(r,o){r&1&&le("click",function(){return o._handleClick()})("keydown",function(a){return o._handleKeydown(a)})("mouseenter",function(){return o._setIndicatorHintVisible(!0)})("mouseleave",function(){return o._setIndicatorHintVisible(!1)}),r&2&&(Ve("aria-sort",o._getAriaSortAttribute()),Oe("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",Ee],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",Ee]},exportAs:["matSortHeader"],standalone:!0,features:[nt,Ne],attrs:LX,ngContentSelectors:VX,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(r,o){r&1&&(at(),D(0,"div",0)(1,"div",1),ke(2),I(),ve(3,BX,6,6,"div",2),I()),r&2&&(Oe("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before"),Ve("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),A(3),tt(o._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Ad.indicator,Ad.leftPointer,Ad.rightPointer,Ad.arrowOpacity,Ad.arrowPosition,Ad.allowChildren]},changeDetection:0});let t=e;return t})(),DO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[zX],imports:[Ze]});let t=e;return t})();var qX=[[["caption"]],[["colgroup"],["col"]],"*"],$X=["caption","colgroup, col","*"];function WX(t,e){t&1&&ke(0,2)}function GX(t,e){t&1&&(D(0,"thead",0),an(1,1),I(),D(2,"tbody",0),an(3,2)(4,3),I(),D(5,"tfoot",0),an(6,4),I())}function YX(t,e){t&1&&an(0,1)(1,2)(2,3)(3,4)}var so=new q("CDK_TABLE");var Mg=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(r){return new(r||e)(g(Rt))},e.\u0275dir=te({type:e,selectors:[["","cdkCellDef",""]],standalone:!0});let t=e;return t})(),Tg=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(r){return new(r||e)(g(Rt))},e.\u0275dir=te({type:e,selectors:[["","cdkHeaderCellDef",""]],standalone:!0});let t=e;return t})(),IO=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(r){return new(r||e)(g(Rt))},e.\u0275dir=te({type:e,selectors:[["","cdkFooterCellDef",""]],standalone:!0});let t=e;return t})(),Rd=(()=>{let e=class e{get name(){return this._name}set name(i){this._setNameInput(i)}get sticky(){return this._sticky}set sticky(i){i!==this._sticky&&(this._sticky=i,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(i){i!==this._stickyEnd&&(this._stickyEnd=i,this._hasStickyChanged=!0)}constructor(i){this._table=i,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let i=this._hasStickyChanged;return this.resetStickyChanged(),i}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(i){i&&(this._name=i,this.cssClassFriendlyName=i.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};e.\u0275fac=function(r){return new(r||e)(g(so,8))},e.\u0275dir=te({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(r,o,s){if(r&1&&(ct(s,Mg,5),ct(s,Tg,5),ct(s,IO,5)),r&2){let a;pe(a=me())&&(o.cell=a.first),pe(a=me())&&(o.headerCell=a.first),pe(a=me())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",Ee],stickyEnd:[2,"stickyEnd","stickyEnd",Ee]},standalone:!0,features:[Ye([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),nt]});let t=e;return t})(),Eg=class{constructor(e,n){n.nativeElement.classList.add(...e._columnCssClassName)}},kO=(()=>{let e=class e extends Eg{constructor(i,r){super(i,r)}};e.\u0275fac=function(r){return new(r||e)(g(Rd),g(ce))},e.\u0275dir=te({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[He]});let t=e;return t})();var MO=(()=>{let e=class e extends Eg{constructor(i,r){super(i,r);let o=i._table?._getCellRole();o&&r.nativeElement.setAttribute("role",o)}};e.\u0275fac=function(r){return new(r||e)(g(Rd),g(ce))},e.\u0275dir=te({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[He]});let t=e;return t})(),Sg=class{constructor(){this.tasks=[],this.endTasks=[]}},Ig=new q("_COALESCED_STYLE_SCHEDULER"),vx=(()=>{let e=class e{constructor(i){this._currentSchedule=null,this._ngZone=B(ee)}schedule(i){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(i)}scheduleEnd(i){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(i)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Sg,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let i=this._currentSchedule;this._currentSchedule=new Sg;for(let r of i.tasks)r();for(let r of i.endTasks)r()}this._currentSchedule=null})))}};e.\u0275fac=function(r){return new(r||e)(R(ee))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();var bx=(()=>{let e=class e{constructor(i,r){this.template=i,this._differs=r}ngOnChanges(i){if(!this._columnsDiffer){let r=i.columns&&i.columns.currentValue||[];this._columnsDiffer=this._differs.find(r).create(),this._columnsDiffer.diff(r)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(i){return this instanceof Qh?i.headerCell.template:this instanceof _x?i.footerCell.template:i.cell.template}};e.\u0275fac=function(r){return new(r||e)(g(Rt),g(Xr))},e.\u0275dir=te({type:e,features:[lt]});let t=e;return t})(),Qh=(()=>{let e=class e extends bx{get sticky(){return this._sticky}set sticky(i){i!==this._sticky&&(this._sticky=i,this._hasStickyChanged=!0)}constructor(i,r,o){super(i,r),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(i){super.ngOnChanges(i)}hasStickyChanged(){let i=this._hasStickyChanged;return this.resetStickyChanged(),i}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(r){return new(r||e)(g(Rt),g(Xr),g(so,8))},e.\u0275dir=te({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",Ee]},standalone:!0,features:[nt,He,lt]});let t=e;return t})(),_x=(()=>{let e=class e extends bx{get sticky(){return this._sticky}set sticky(i){i!==this._sticky&&(this._sticky=i,this._hasStickyChanged=!0)}constructor(i,r,o){super(i,r),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(i){super.ngOnChanges(i)}hasStickyChanged(){let i=this._hasStickyChanged;return this.resetStickyChanged(),i}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(r){return new(r||e)(g(Rt),g(Xr),g(so,8))},e.\u0275dir=te({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",Ee]},standalone:!0,features:[nt,He,lt]});let t=e;return t})(),Ag=(()=>{let e=class e extends bx{constructor(i,r,o){super(i,r),this._table=o}};e.\u0275fac=function(r){return new(r||e)(g(Rt),g(Xr),g(so,8))},e.\u0275dir=te({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[He]});let t=e;return t})(),jc=(()=>{let e=class e{constructor(i){this._viewContainer=i,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}};e.mostRecentCellOutlet=null,e.\u0275fac=function(r){return new(r||e)(g(qt))},e.\u0275dir=te({type:e,selectors:[["","cdkCellOutlet",""]],standalone:!0});let t=e;return t})(),yx=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=re({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[Ne],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,o){r&1&&an(0,0)},dependencies:[jc],encapsulation:2});let t=e;return t})();var wx=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=re({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[Ne],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,o){r&1&&an(0,0)},dependencies:[jc],encapsulation:2});let t=e;return t})(),TO=(()=>{let e=class e{constructor(i){this.templateRef=i,this._contentClassName="cdk-no-data-row"}};e.\u0275fac=function(r){return new(r||e)(g(Rt))},e.\u0275dir=te({type:e,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0});let t=e;return t})(),EO=["top","bottom","left","right"],gx=class{constructor(e,n,i,r,o=!0,s=!0,a){this._isNativeHtmlTable=e,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${n}-border-elem-top`,bottom:`${n}-border-elem-bottom`,left:`${n}-border-elem-left`,right:`${n}-border-elem-right`}}clearStickyPositioning(e,n){let i=[];for(let r of e)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let o=0;o{for(let r of i)this._removeStickyStyle(r,n)})}updateStickyColumns(e,n,i,r=!0){if(!e.length||!this._isBrowser||!(n.some(o=>o)||i.some(o=>o))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let o=e[0],s=o.children.length,a=this._getCellWidths(o,r),c=this._getStickyStartColumnPositions(a,n),l=this._getStickyEndColumnPositions(a,i),u=n.lastIndexOf(!0),d=i.indexOf(!0),h=this.direction==="rtl",f=h?"right":"left",p=h?"left":"right";for(let m of e)for(let v=0;vn[v]?m:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:d===-1?[]:a.slice(d).map((m,v)=>i[v+d]?m:null).reverse()}))})}stickRows(e,n,i){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let r=i==="bottom"?e.slice().reverse():e,o=i==="bottom"?n.slice().reverse():n,s=[],a=[],c=[];for(let u=0,d=0;u{let i=e.querySelector("tfoot");i&&(n.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))})}_removeStickyStyle(e,n){for(let r of n)e.style[r]="",e.classList.remove(this._borderCellCss[r]);EO.some(r=>n.indexOf(r)===-1&&e.style[r])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,n,i,r){e.classList.add(this._stickCellCss),r&&e.classList.add(this._borderCellCss[n]),e.style[n]=`${i}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let n={top:100,bottom:10,left:1,right:1},i=0;for(let r of EO)e.style[r]&&(i+=n[r]);return i?`${i}`:""}_getCellWidths(e,n=!0){if(!n&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],r=e.children;for(let o=0;o0;o--)n[o]&&(i[o]=r,r+=e[o]);return i}};var kg=new q("CDK_SPL");var Cx=(()=>{let e=class e{constructor(i,r){this.viewContainer=i,this.elementRef=r;let o=B(so);o._rowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(r){return new(r||e)(g(qt),g(ce))},e.\u0275dir=te({type:e,selectors:[["","rowOutlet",""]],standalone:!0});let t=e;return t})(),xx=(()=>{let e=class e{constructor(i,r){this.viewContainer=i,this.elementRef=r;let o=B(so);o._headerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(r){return new(r||e)(g(qt),g(ce))},e.\u0275dir=te({type:e,selectors:[["","headerRowOutlet",""]],standalone:!0});let t=e;return t})(),Dx=(()=>{let e=class e{constructor(i,r){this.viewContainer=i,this.elementRef=r;let o=B(so);o._footerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(r){return new(r||e)(g(qt),g(ce))},e.\u0275dir=te({type:e,selectors:[["","footerRowOutlet",""]],standalone:!0});let t=e;return t})(),Ex=(()=>{let e=class e{constructor(i,r){this.viewContainer=i,this.elementRef=r;let o=B(so);o._noDataRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(r){return new(r||e)(g(qt),g(ce))},e.\u0275dir=te({type:e,selectors:[["","noDataRowOutlet",""]],standalone:!0});let t=e;return t})();var Sx=(()=>{let e=class e{_getCellRole(){if(this._cellRoleInternal===void 0){let i=this._elementRef.nativeElement.getAttribute("role"),r=i==="grid"||i==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&r==="cell"?null:r}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(i){this._trackByFn=i}get dataSource(){return this._dataSource}set dataSource(i){this._dataSource!==i&&this._switchDataSource(i)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(i){this._multiTemplateDataRows=i,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(i){this._fixedLayout=i,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(i,r,o,s,a,c,l,u,d,h,f,p){this._differs=i,this._changeDetectorRef=r,this._elementRef=o,this._dir=a,this._platform=l,this._viewRepeater=u,this._coalescedStyleScheduler=d,this._viewportRuler=h,this._stickyPositioningListener=f,this._onDestroy=new K,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new oe,this.viewChange=new Vt({start:0,end:Number.MAX_VALUE}),this._injector=B(Je),s||o.nativeElement.setAttribute("role","table"),this._document=c,this._isServer=!l.isBrowser,this._isNativeHtmlTable=o.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((i,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r),this._viewportRuler.change().pipe(ot(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(i=>{i?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),sd(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let i=this._dataDiffer.diff(this._renderRows);if(!i){this._updateNoDataRow(),this.contentChanged.next();return}let r=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(i,r,(o,s,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===zo.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),i.forEachIdentityChange(o=>{let s=r.get(o.currentIndex);s.context.$implicit=o.item.data}),this._updateNoDataRow(),ri(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(i){this._customColumnDefs.add(i)}removeColumnDef(i){this._customColumnDefs.delete(i)}addRowDef(i){this._customRowDefs.add(i)}removeRowDef(i){this._customRowDefs.delete(i)}addHeaderRowDef(i){this._customHeaderRowDefs.add(i),this._headerRowDefChanged=!0}removeHeaderRowDef(i){this._customHeaderRowDefs.delete(i),this._headerRowDefChanged=!0}addFooterRowDef(i){this._customFooterRowDefs.add(i),this._footerRowDefChanged=!0}removeFooterRowDef(i){this._customFooterRowDefs.delete(i),this._footerRowDefChanged=!0}setNoDataRow(i){this._customNoDataRow=i}updateStickyHeaderRowStyles(){let i=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=SO(this._headerRowOutlet,"thead");o&&(o.style.display=i.length?"":"none")}let r=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(i,["top"]),this._stickyStyler.stickRows(i,r,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let i=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=SO(this._footerRowOutlet,"tfoot");o&&(o.style.display=i.length?"":"none")}let r=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(i,["bottom"]),this._stickyStyler.stickRows(i,r,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,r),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let i=this._getRenderedRows(this._headerRowOutlet),r=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...i,...r,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),i.forEach((s,a)=>{this._addStickyColumnStyles([s],this._headerRowDefs[a])}),this._rowDefs.forEach(s=>{let a=[];for(let c=0;c{this._addStickyColumnStyles([s],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(s=>s.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let r=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||r,this._forceRecalculateCellWidths=r,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let i=[],r=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{let c=o&&o.has(a)?o.get(a):[];if(c.length){let l=c.shift();return l.dataIndex=r,l}else return{data:i,rowDef:a,dataIndex:r}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Dg(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(r=>{this._columnDefsByName.has(r.name),this._columnDefsByName.set(r.name,r)})}_cacheRowDefs(){this._headerRowDefs=Dg(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Dg(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Dg(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let i=this._rowDefs.filter(r=>!r.when);!this.multiTemplateDataRows&&i.length>1,this._defaultRowDef=i[0]}_renderUpdatedColumns(){let i=(a,c)=>a||!!c.getColumnsDiff(),r=this._rowDefs.reduce(i,!1);r&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(i,!1);o&&this._forceRenderHeaderRows();let s=this._footerRowDefs.reduce(i,!1);return s&&this._forceRenderFooterRows(),r||o||s}_switchDataSource(i){this._data=[],sd(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),i||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=i}_observeRenderChanges(){if(!this.dataSource)return;let i;sd(this.dataSource)?i=this.dataSource.connect(this):cs(this.dataSource)?i=this.dataSource:Array.isArray(this.dataSource)&&(i=we(this.dataSource)),this._renderChangeSubscription=i.pipe(ot(this._onDestroy)).subscribe(r=>{this._data=r||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((i,r)=>this._renderRow(this._headerRowOutlet,i,r)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((i,r)=>this._renderRow(this._footerRowOutlet,i,r)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(i,r){let o=Array.from(r.columns||[]).map(c=>{let l=this._columnDefsByName.get(c);return l}),s=o.map(c=>c.sticky),a=o.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(i,s,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(i){let r=[];for(let o=0;o!s.when||s.when(r,i));else{let s=this._rowDefs.find(a=>a.when&&a.when(r,i))||this._defaultRowDef;s&&o.push(s)}return o.length,o}_getEmbeddedViewArgs(i,r){let o=i.rowDef,s={$implicit:i.data};return{templateRef:o.template,context:s,index:r}}_renderRow(i,r,o,s={}){let a=i.viewContainer.createEmbeddedView(r.template,s,o);return this._renderCellTemplateForItem(r,s),a}_renderCellTemplateForItem(i,r){for(let o of this._getCellTemplates(i))jc.mostRecentCellOutlet&&jc.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,r);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let i=this._rowOutlet.viewContainer;for(let r=0,o=i.length;r{let o=this._columnDefsByName.get(r);return i.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let i=(r,o)=>r||o.hasStickyChanged();this._headerRowDefs.reduce(i,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(i,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(i,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let i=this._dir?this._dir.value:"ltr";this._stickyStyler=new gx(this._isNativeHtmlTable,this.stickyCssClass,i,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:we()).pipe(ot(this._onDestroy)).subscribe(r=>{this._stickyStyler.direction=r,this.updateStickyColumnStyles()})}_getOwnDefs(i){return i.filter(r=>!r._table||r._table===this)}_updateNoDataRow(){let i=this._customNoDataRow||this._noDataRow;if(!i)return;let r=this._rowOutlet.viewContainer.length===0;if(r===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(r){let s=o.createEmbeddedView(i.templateRef),a=s.rootNodes[0];s.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(i._contentClassName))}else o.clear();this._isShowingNoDataRow=r,this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(r){return new(r||e)(g(Xr),g(Ge),g(ce),wn("role"),g($t,8),g(Fe),g(et),g(Sa),g(Ig),g(Gn),g(kg,12),g(ee,8))},e.\u0275cmp=re({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(r,o,s){if(r&1&&(ct(s,TO,5),ct(s,Rd,5),ct(s,Ag,5),ct(s,Qh,5),ct(s,_x,5)),r&2){let a;pe(a=me())&&(o._noDataRow=a.first),pe(a=me())&&(o._contentColumnDefs=a),pe(a=me())&&(o._contentRowDefs=a),pe(a=me())&&(o._contentHeaderRowDefs=a),pe(a=me())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(r,o){r&2&&Oe("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",Ee],fixedLayout:[2,"fixedLayout","fixedLayout",Ee]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[Ye([{provide:so,useExisting:e},{provide:Sa,useClass:rd},{provide:Ig,useClass:vx},{provide:kg,useValue:null}]),nt,Ne],ngContentSelectors:$X,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,o){r&1&&(at(qX),ke(0),ke(1,1),ve(2,WX,1,0)(3,GX,7,0)(4,YX,4,0)),r&2&&(A(2),tt(o._isServer?2:-1),A(),tt(o._isNativeHtmlTable?3:4))},dependencies:[xx,Cx,Ex,Dx],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});let t=e;return t})();function Dg(t,e){return t.concat(Array.from(e))}function SO(t,e){let n=e.toUpperCase(),i=t.viewContainer.element.nativeElement;for(;i;){let r=i.nodeType===1?i.nodeName:null;if(r===n)return i;if(r==="TABLE")break;i=i.parentNode}return null}var AO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ec]});let t=e;return t})();var QX=[[["caption"]],[["colgroup"],["col"]],"*"],KX=["caption","colgroup, col","*"];function XX(t,e){t&1&&ke(0,2)}function ZX(t,e){t&1&&(D(0,"thead",0),an(1,1),I(),D(2,"tbody",2),an(3,3)(4,4),I(),D(5,"tfoot",0),an(6,5),I())}function JX(t,e){t&1&&an(0,1)(1,3)(2,4)(3,5)}var RO=(()=>{let e=class e extends Sx{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275cmp=re({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(r,o){r&2&&Oe("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[Ye([{provide:Sx,useExisting:e},{provide:so,useExisting:e},{provide:Ig,useClass:vx},{provide:Sa,useClass:rd},{provide:kg,useValue:null}]),He,Ne],ngContentSelectors:KX,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,o){r&1&&(at(QX),ke(0),ke(1,1),ve(2,XX,1,0)(3,ZX,7,0)(4,JX,4,0)),r&2&&(A(2),tt(o._isServer?2:-1),A(),tt(o._isNativeHtmlTable?3:4))},dependencies:[xx,Cx,Ex,Dx],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2});let t=e;return t})(),OO=(()=>{let e=class e extends Mg{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","matCellDef",""]],standalone:!0,features:[Ye([{provide:Mg,useExisting:e}]),He]});let t=e;return t})(),NO=(()=>{let e=class e extends Tg{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[Ye([{provide:Tg,useExisting:e}]),He]});let t=e;return t})();var FO=(()=>{let e=class e extends Rd{get name(){return this._name}set name(i){this._setNameInput(i)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[Ye([{provide:Rd,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),He]});let t=e;return t})(),PO=(()=>{let e=class e extends kO{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[He]});let t=e;return t})();var LO=(()=>{let e=class e extends MO{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[He]});let t=e;return t})();var VO=(()=>{let e=class e extends Qh{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",Ee]},standalone:!0,features:[Ye([{provide:Qh,useExisting:e}]),nt,He]});let t=e;return t})();var BO=(()=>{let e=class e extends Ag{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[Ye([{provide:Ag,useExisting:e}]),He]});let t=e;return t})(),jO=(()=>{let e=class e extends yx{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275cmp=re({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[Ye([{provide:yx,useExisting:e}]),He,Ne],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,o){r&1&&an(0,0)},dependencies:[jc],encapsulation:2});let t=e;return t})();var HO=(()=>{let e=class e extends wx{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275cmp=re({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[Ye([{provide:wx,useExisting:e}]),He,Ne],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,o){r&1&&an(0,0)},dependencies:[jc],encapsulation:2});let t=e;return t})();var zO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,AO,Ze]});let t=e;return t})(),eZ=9007199254740991,Rg=class extends hh{get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this._filterData(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}constructor(e=[]){super(),this._renderData=new Vt([]),this._filter=new Vt(""),this._internalPageChanges=new K,this._renderChangesSubscription=null,this.sortingDataAccessor=(n,i)=>{let r=n[i];if(cC(r)){let o=Number(r);return o{let r=i.active,o=i.direction;return!r||o==""?n:n.sort((s,a)=>{let c=this.sortingDataAccessor(s,r),l=this.sortingDataAccessor(a,r),u=typeof c,d=typeof l;u!==d&&(u==="number"&&(c+=""),d==="number"&&(l+=""));let h=0;return c!=null&&l!=null?c>l?h=1:c{let r=Object.keys(n).reduce((s,a)=>s+n[a]+"\u25EC","").toLowerCase(),o=i.trim().toLowerCase();return r.indexOf(o)!=-1},this._data=new Vt(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?yt(this._sort.sortChange,this._sort.initialized):we(null),n=this._paginator?yt(this._paginator.page,this._internalPageChanges,this._paginator.initialized):we(null),i=this._data,r=jr([i,this._filter]).pipe(Te(([a])=>this._filterData(a))),o=jr([r,e]).pipe(Te(([a])=>this._orderData(a))),s=jr([o,n]).pipe(Te(([a])=>this._pageData(a)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=s.subscribe(a=>this._renderData.next(a))}_filterData(e){return this.filteredData=this.filter==null||this.filter===""?e:e.filter(n=>this.filterPredicate(n,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;let n=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(n,n+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{let n=this.paginator;if(n&&(n.length=e,n.pageIndex>0)){let i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var iZ=["*",[["mat-toolbar-row"]]],nZ=["*","mat-toolbar-row"],rZ=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let t=e;return t})(),UO=(()=>{let e=class e{constructor(i,r,o){this._elementRef=i,this._platform=r,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(et),g(Fe))},e.\u0275cmp=re({type:e,selectors:[["mat-toolbar"]],contentQueries:function(r,o,s){if(r&1&&ct(s,rZ,5),r&2){let a;pe(a=me())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(r,o){r&2&&(_i(o.color?"mat-"+o.color:""),Oe("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[Ne],ngContentSelectors:nZ,decls:2,vars:0,template:function(r,o){r&1&&(at(iZ),ke(0),ke(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let t=e;return t})();var qO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,Ze]});let t=e;return t})();function $O(t){return new ge(3e3,!1)}function sZ(){return new ge(3100,!1)}function aZ(){return new ge(3101,!1)}function cZ(t){return new ge(3001,!1)}function lZ(t){return new ge(3003,!1)}function dZ(t){return new ge(3004,!1)}function uZ(t,e){return new ge(3005,!1)}function hZ(){return new ge(3006,!1)}function fZ(){return new ge(3007,!1)}function pZ(t,e){return new ge(3008,!1)}function mZ(t){return new ge(3002,!1)}function gZ(t,e,n,i,r){return new ge(3010,!1)}function vZ(){return new ge(3011,!1)}function bZ(){return new ge(3012,!1)}function _Z(){return new ge(3200,!1)}function yZ(){return new ge(3202,!1)}function wZ(){return new ge(3013,!1)}function CZ(t){return new ge(3014,!1)}function xZ(t){return new ge(3015,!1)}function DZ(t){return new ge(3016,!1)}function EZ(t,e){return new ge(3404,!1)}function SZ(t){return new ge(3502,!1)}function IZ(t){return new ge(3503,!1)}function kZ(){return new ge(3300,!1)}function MZ(t){return new ge(3504,!1)}function TZ(t){return new ge(3301,!1)}function AZ(t,e){return new ge(3302,!1)}function RZ(t){return new ge(3303,!1)}function OZ(t,e){return new ge(3400,!1)}function NZ(t){return new ge(3401,!1)}function FZ(t){return new ge(3402,!1)}function PZ(t,e){return new ge(3505,!1)}function za(t){switch(t.length){case 0:return new La;case 1:return t[0];default:return new Fh(t)}}function oN(t,e,n=new Map,i=new Map){let r=[],o=[],s=-1,a=null;if(e.forEach(c=>{let l=c.get("offset"),u=l==s,d=u&&a||new Map;c.forEach((h,f)=>{let p=f,m=h;if(f!=="offset")switch(p=t.normalizePropertyName(p,r),m){case cg:m=n.get(f);break;case $o:m=i.get(f);break;default:m=t.normalizeStyleValue(f,p,m,r);break}d.set(p,m)}),u||o.push(d),a=d,s=l}),r.length)throw SZ(r);return o}function Qx(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&Ix(n,"start",t)));break;case"done":t.onDone(()=>i(n&&Ix(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&Ix(n,"destroy",t)));break}}function Ix(t,e,n){let i=n.totalTime,r=!!n.disabled,o=Kx(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,i??t.totalTime,r),s=t._data;return s!=null&&(o._data=s),o}function Kx(t,e,n,i,r="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Jn(t,e,n){let i=t.get(e);return i||t.set(e,i=n),i}function WO(t){let e=t.indexOf(":"),n=t.substring(1,e),i=t.slice(e+1);return[n,i]}var LZ=typeof document>"u"?null:document.documentElement;function Xx(t){let e=t.parentNode||t.host||null;return e===LZ?null:e}function VZ(t){return t.substring(1,6)=="ebkit"}var Hc=null,GO=!1;function BZ(t){Hc||(Hc=jZ()||{},GO=Hc.style?"WebkitAppearance"in Hc.style:!1);let e=!0;return Hc.style&&!VZ(t)&&(e=t in Hc.style,!e&&GO&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Hc.style)),e}function jZ(){return typeof document<"u"?document.body:null}function sN(t,e){for(;e;){if(e===t)return!0;e=Xx(e)}return!1}function aN(t,e,n){if(n)return Array.from(t.querySelectorAll(e));let i=t.querySelector(e);return i?[i]:[]}var Zx=(()=>{let e=class e{validateStyleProperty(i){return BZ(i)}containsElement(i,r){return sN(i,r)}getParentElement(i){return Xx(i)}query(i,r,o){return aN(i,r,o)}computeStyle(i,r,o){return o||""}animate(i,r,o,s,a,c=[],l){return new La(o,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),iD=class iD{};iD.NOOP=new Zx;var qc=iD,$c=class{};var HZ=1e3,cN="{{",zZ="}}",lN="ng-enter",Ox="ng-leave",Og="ng-trigger",Vg=".ng-trigger",YO="ng-animating",Nx=".ng-animating";function Ls(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Fx(parseFloat(e[1]),e[2])}function Fx(t,e){switch(e){case"s":return t*HZ;default:return t}}function Bg(t,e,n){return t.hasOwnProperty("duration")?t:UZ(t,e,n)}function UZ(t,e,n){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,s="";if(typeof t=="string"){let a=t.match(i);if(a===null)return e.push($O(t)),{duration:0,delay:0,easing:""};r=Fx(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(o=Fx(parseFloat(c),a[4]));let l=a[5];l&&(s=l)}else r=t;if(!n){let a=!1,c=e.length;r<0&&(e.push(sZ()),a=!0),o<0&&(e.push(aZ()),a=!0),a&&e.splice(c,0,$O(t))}return{duration:r,delay:o,easing:s}}function qZ(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function Qo(t,e,n){e.forEach((i,r)=>{let o=Jx(r);n&&!n.has(r)&&n.set(r,t.style[o]),t.style[o]=i})}function Uc(t,e){e.forEach((n,i)=>{let r=Jx(i);t.style[r]=""})}function Kh(t){return Array.isArray(t)?t.length==1?t[0]:A3(t):t}function $Z(t,e,n){let i=e.params||{},r=dN(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||n.push(cZ(o))})}var Px=new RegExp(`${cN}\\s*(.+?)\\s*${zZ}`,"g");function dN(t){let e=[];if(typeof t=="string"){let n;for(;n=Px.exec(t);)e.push(n[1]);Px.lastIndex=0}return e}function Zh(t,e,n){let i=`${t}`,r=i.replace(Px,(o,s)=>{let a=e[s];return a==null&&(n.push(lZ(s)),a=""),a.toString()});return r==i?t:r}var WZ=/-+([a-z0-9])/g;function Jx(t){return t.replace(WZ,(...e)=>e[1].toUpperCase())}function GZ(t,e){return t===0||e===0}function YZ(t,e,n){if(n.size&&e.length){let i=e[0],r=[];if(n.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,eD(t,a)))}}return e}function Zn(t,e,n){switch(e.type){case dt.Trigger:return t.visitTrigger(e,n);case dt.State:return t.visitState(e,n);case dt.Transition:return t.visitTransition(e,n);case dt.Sequence:return t.visitSequence(e,n);case dt.Group:return t.visitGroup(e,n);case dt.Animate:return t.visitAnimate(e,n);case dt.Keyframes:return t.visitKeyframes(e,n);case dt.Style:return t.visitStyle(e,n);case dt.Reference:return t.visitReference(e,n);case dt.AnimateChild:return t.visitAnimateChild(e,n);case dt.AnimateRef:return t.visitAnimateRef(e,n);case dt.Query:return t.visitQuery(e,n);case dt.Stagger:return t.visitStagger(e,n);default:throw dZ(e.type)}}function eD(t,e){return window.getComputedStyle(t)[e]}var QZ=new Set(["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"]),jg=class extends $c{normalizePropertyName(e,n){return Jx(e)}normalizeStyleValue(e,n,i,r){let o="",s=i.toString().trim();if(QZ.has(n)&&i!==0&&i!=="0")if(typeof i=="number")o="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(uZ(e,i))}return s+o}};var Hg="*";function KZ(t,e){let n=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(i=>XZ(i,n,e)):n.push(t),n}function XZ(t,e,n){if(t[0]==":"){let c=ZZ(t,n);if(typeof c=="function"){e.push(c);return}t=c}let i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return n.push(xZ(t)),e;let r=i[1],o=i[2],s=i[3];e.push(QO(r,s));let a=r==Hg&&s==Hg;o[0]=="<"&&!a&&e.push(QO(s,r))}function ZZ(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,i)=>parseFloat(i)>parseFloat(n);case":decrement":return(n,i)=>parseFloat(i) *"}}var Ng=new Set(["true","1"]),Fg=new Set(["false","0"]);function QO(t,e){let n=Ng.has(t)||Fg.has(t),i=Ng.has(e)||Fg.has(e);return(r,o)=>{let s=t==Hg||t==r,a=e==Hg||e==o;return!s&&n&&typeof r=="boolean"&&(s=r?Ng.has(t):Fg.has(t)),!a&&i&&typeof o=="boolean"&&(a=o?Ng.has(e):Fg.has(e)),s&&a}}var uN=":self",JZ=new RegExp(`s*${uN}s*,?`,"g");function hN(t,e,n,i){return new Lx(t).build(e,n,i)}var KO="",Lx=class{constructor(e){this._driver=e}build(e,n,i){let r=new Vx(n);return this._resetContextStyleTimingState(r),Zn(this,Kh(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=KO,e.collectedStyles=new Map,e.collectedStyles.set(KO,new Map),e.currentTime=0}visitTrigger(e,n){let i=n.queryCount=0,r=n.depCount=0,o=[],s=[];return e.name.charAt(0)=="@"&&n.errors.push(hZ()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==dt.State){let c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,o.push(this.visitState(c,n))}),c.name=l}else if(a.type==dt.Transition){let c=this.visitTransition(a,n);i+=c.queryCount,r+=c.depCount,s.push(c)}else n.errors.push(fZ())}),{type:dt.Trigger,name:e.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(e,n){let i=this.visitStyle(e.styles,n),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){let o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{dN(c).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&n.errors.push(pZ(e.name,[...o.values()]))}return{type:dt.State,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;let i=Zn(this,Kh(e.animation),n),r=KZ(e.expr,n.errors);return{type:dt.Transition,matchers:r,animation:i,queryCount:n.queryCount,depCount:n.depCount,options:zc(e.options)}}visitSequence(e,n){return{type:dt.Sequence,steps:e.steps.map(i=>Zn(this,i,n)),options:zc(e.options)}}visitGroup(e,n){let i=n.currentTime,r=0,o=e.steps.map(s=>{n.currentTime=i;let a=Zn(this,s,n);return r=Math.max(r,n.currentTime),a});return n.currentTime=r,{type:dt.Group,steps:o,options:zc(e.options)}}visitAnimate(e,n){let i=nJ(e.timings,n.errors);n.currentAnimateTimings=i;let r,o=e.styles?e.styles:Ue({});if(o.type==dt.Keyframes)r=this.visitKeyframes(o,n);else{let s=e.styles,a=!1;if(!s){a=!0;let l={};i.easing&&(l.easing=i.easing),s=Ue(l)}n.currentTime+=i.duration+i.delay;let c=this.visitStyle(s,n);c.isEmptyStep=a,r=c}return n.currentAnimateTimings=null,{type:dt.Animate,timings:i,style:r,options:null}}visitStyle(e,n){let i=this._makeStyleAst(e,n);return this._validateStyleAst(i,n),i}_makeStyleAst(e,n){let i=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===$o?i.push(a):n.errors.push(mZ(a)):i.push(new Map(Object.entries(a)));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let c of a.values())if(c.toString().indexOf(cN)>=0){o=!0;break}}}),{type:dt.Style,styles:i,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,n){let i=n.currentAnimateTimings,r=n.currentTime,o=n.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{let l=n.collectedStyles.get(n.currentQuerySelector),u=l.get(c),d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(n.errors.push(gZ(c,u.startTime,u.endTime,o,r)),d=!1),o=u.startTime),d&&l.set(c,{startTime:o,endTime:r}),n.options&&$Z(a,n.options,n.errors)})})}visitKeyframes(e,n){let i={type:dt.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(vZ()),i;let r=1,o=0,s=[],a=!1,c=!1,l=0,u=e.steps.map(b=>{let C=this._makeStyleAst(b,n),E=C.offset!=null?C.offset:iJ(C.styles),_=0;return E!=null&&(o++,_=C.offset=E),c=c||_<0||_>1,a=a||_0&&o{let E=h>0?C==f?1:h*C:s[C],_=E*v;n.currentTime=p+m.delay+_,m.duration=_,this._validateStyleAst(b,n),b.offset=E,i.styles.push(b)}),i}visitReference(e,n){return{type:dt.Reference,animation:Zn(this,Kh(e.animation),n),options:zc(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:dt.AnimateChild,options:zc(e.options)}}visitAnimateRef(e,n){return{type:dt.AnimateRef,animation:this.visitReference(e.animation,n),options:zc(e.options)}}visitQuery(e,n){let i=n.currentQuerySelector,r=e.options||{};n.queryCount++,n.currentQuery=e;let[o,s]=eJ(e.selector);n.currentQuerySelector=i.length?i+" "+o:o,Jn(n.collectedStyles,n.currentQuerySelector,new Map);let a=Zn(this,Kh(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=i,{type:dt.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:zc(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(wZ());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Bg(e.timings,n.errors,!0);return{type:dt.Stagger,animation:Zn(this,Kh(e.animation),n),timings:i,options:null}}};function eJ(t){let e=!!t.split(/\s*,\s*/).find(n=>n==uN);return e&&(t=t.replace(JZ,"")),t=t.replace(/@\*/g,Vg).replace(/@\w+/g,n=>Vg+"-"+n.slice(1)).replace(/:animating/g,Nx),[t,e]}function tJ(t){return t?X({},t):null}var Vx=class{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=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function iJ(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(n=>{if(n instanceof Map&&n.has("offset")){let i=n;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}return e}function nJ(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=Bg(t,e).duration;return kx(o,0,"")}let n=t;if(n.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=kx(0,0,"");return o.dynamic=!0,o.strValue=n,o}let r=Bg(n,e);return kx(r.duration,r.delay,r.easing)}function zc(t){return t?(t=X({},t),t.params&&(t.params=tJ(t.params))):t={},t}function kx(t,e,n){return{duration:t,delay:e,easing:n}}function tD(t,e,n,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}var Jh=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,n){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}},rJ=1,oJ=":enter",sJ=new RegExp(oJ,"g"),aJ=":leave",cJ=new RegExp(aJ,"g");function fN(t,e,n,i,r,o=new Map,s=new Map,a,c,l=[]){return new Bx().buildKeyframes(t,e,n,i,r,o,s,a,c,l)}var Bx=class{buildKeyframes(e,n,i,r,o,s,a,c,l,u=[]){l=l||new Jh;let d=new jx(e,n,l,r,o,u,[]);d.options=c;let h=c.delay?Ls(c.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,c),Zn(this,i,d);let f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){let v=f[m];if(v.element===n){p=v;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,c)}return f.length?f.map(p=>p.buildKeyframes()):[tD(n,[],[],[],0,h,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){let i=n.subInstructions.get(n.element);if(i){let r=n.createSubContext(e.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=e}visitAnimateRef(e,n){let i=n.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],n,i),this.visitReference(e.animation,i),n.transformIntoNewTimeline(i.currentTimeline.currentTime),n.previousNode=e}_applyAnimationRefDelays(e,n,i){for(let r of e){let o=r?.delay;if(o){let s=typeof o=="number"?o:Ls(Zh(o,r?.params??{},n.errors));i.delayNextStep(s)}}}_visitSubInstructions(e,n,i){let o=n.currentTimeline.currentTime,s=i.duration!=null?Ls(i.duration):null,a=i.delay!=null?Ls(i.delay):null;return s!==0&&e.forEach(c=>{let l=n.appendInstructionToTimeline(c,s,a);o=Math.max(o,l.duration+l.delay)}),o}visitReference(e,n){n.updateOptions(e.options,!0),Zn(this,e.animation,n),n.previousNode=e}visitSequence(e,n){let i=n.subContextCount,r=n,o=e.options;if(o&&(o.params||o.delay)&&(r=n.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==dt.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=zg);let s=Ls(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>Zn(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){let i=[],r=n.currentTimeline.currentTime,o=e.options&&e.options.delay?Ls(e.options.delay):0;e.steps.forEach(s=>{let a=n.createSubContext(e.options);o&&a.delayNextStep(o),Zn(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(r),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){let i=e.strValue,r=n.params?Zh(i,n.params,n.errors):i;return Bg(r,n.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){let i=n.currentAnimateTimings=this._visitTiming(e.timings,n),r=n.currentTimeline;i.delay&&(n.incrementTime(i.delay),r.snapshotCurrentStyles());let o=e.style;o.type==dt.Keyframes?this.visitKeyframes(o,n):(n.incrementTime(i.duration),this.visitStyle(o,n),r.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){let i=n.currentTimeline,r=n.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let o=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(o):i.setStyles(e.styles,o,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){let i=n.currentAnimateTimings,r=n.currentTimeline.duration,o=i.duration,a=n.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(c=>{let l=c.offset||0;a.forwardTime(l*o),a.setStyles(c.styles,c.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(r+o),n.previousNode=e}visitQuery(e,n){let i=n.currentTimeline.currentTime,r=e.options||{},o=r.delay?Ls(r.delay):0;o&&(n.previousNode.type===dt.Style||i==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=zg);let s=i,a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,n.errors);n.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{n.currentQueryIndex=u;let d=n.createSubContext(e.options,l);o&&d.delayNextStep(o),l===n.element&&(c=d.currentTimeline),Zn(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let h=d.currentTimeline.currentTime;s=Math.max(s,h)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){let i=n.parentContext,r=n.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(n.currentQueryTotal-1),c=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=i.currentStaggerTime;break}let u=n.currentTimeline;c&&u.delayNextStep(c);let d=u.currentTime;Zn(this,e.animation,n),n.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}},zg={},jx=class t{constructor(e,n,i,r,o,s,a,c){this._driver=e,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=zg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Ug(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;let i=e,r=this.options;i.duration!=null&&(r.duration=Ls(i.duration)),i.delay!=null&&(r.delay=Ls(i.delay));let o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=Zh(o[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let n=this.options.params;if(n){let i=e.params={};Object.keys(n).forEach(r=>{i[r]=n[r]})}}return e}createSubContext(e=null,n,i){let r=n||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=zg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,i){let r={duration:n??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},o=new Hx(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,i,r,o,s){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(sJ,"."+this._enterClassName),e=e.replace(cJ,"."+this._leaveClassName);let c=i!=1,l=this._driver.query(this.element,e,c);i!==0&&(l=i<0?l.slice(l.length+i,l.length):l.slice(0,i)),a.push(...l)}return!o&&a.length==0&&s.push(CZ(n)),a}},Ug=class t{constructor(e,n,i,r){this._driver=e,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let n=this._keyframes.size===1&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=rJ,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles.set(e,n),this._globalTimelineStyles.set(e,n),this._styleSummary.set(e,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[n,i]of this._globalTimelineStyles)this._backFill.set(n,i||$o),this._currentKeyframe.set(n,$o);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,i,r){n&&this._previousKeyframe.set("easing",n);let o=r&&r.params||{},s=lJ(e,this._globalTimelineStyles);for(let[a,c]of s){let l=Zh(c,o,i);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??$o),this._updateStyle(a,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,n)=>{this._currentKeyframe.set(n,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,e)}))}snapshotCurrentStyles(){for(let[e,n]of this._localTimelineStyles)this._pendingStyles.set(e,n),this._updateStyle(e,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((n,i)=>{let r=this._styleSummary.get(i);(!r||n.time>r.time)&&this._updateStyle(i,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,n=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,c)=>{let l=new Map([...this._backFill,...a]);l.forEach((u,d)=>{u===cg?e.add(d):u===$o&&n.add(d)}),i||l.set("offset",c/this.duration),r.push(l)});let o=[...e.values()],s=[...n.values()];if(i){let a=r[0],c=new Map(a);a.set("offset",0),c.set("offset",1),r=[a,c]}return tD(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},Hx=class extends Ug{constructor(e,n,i,r,o,s,a=!1){super(e,n,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&n){let o=[],s=i+n,a=n/s,c=new Map(e[0]);c.set("offset",0),o.push(c);let l=new Map(e[0]);l.set("offset",XO(a)),o.push(l);let u=e.length-1;for(let d=1;d<=u;d++){let h=new Map(e[d]),f=h.get("offset"),p=n+f*i;h.set("offset",XO(p/s)),o.push(h)}i=s,n=0,r="",e=o}return tD(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}};function XO(t,e=3){let n=Math.pow(10,e-1);return Math.round(t*n)/n}function lJ(t,e){let n=new Map,i;return t.forEach(r=>{if(r==="*"){i??=e.keys();for(let o of i)n.set(o,$o)}else for(let[o,s]of r)n.set(o,s)}),n}function ZO(t,e,n,i,r,o,s,a,c,l,u,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:h}}var Mx={},qg=class{constructor(e,n,i){this._triggerName=e,this.ast=n,this._stateStyles=i}match(e,n,i,r){return dJ(this.ast.matchers,e,n,i,r)}buildStyles(e,n,i){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(n,i):new Map}build(e,n,i,r,o,s,a,c,l,u){let d=[],h=this.ast.options&&this.ast.options.params||Mx,f=a&&a.params||Mx,p=this.buildStyles(i,f,d),m=c&&c.params||Mx,v=this.buildStyles(r,m,d),b=new Set,C=new Map,E=new Map,_=r==="void",y={params:pN(m,h),delay:this.ast.options?.delay},x=u?[]:fN(e,n,this.ast.animation,o,s,p,v,y,l,d),F=0;return x.forEach(L=>{F=Math.max(L.duration+L.delay,F)}),d.length?ZO(n,this._triggerName,i,r,_,p,v,[],[],C,E,F,d):(x.forEach(L=>{let P=L.element,Q=Jn(C,P,new Set);L.preStyleProps.forEach(W=>Q.add(W));let G=Jn(E,P,new Set);L.postStyleProps.forEach(W=>G.add(W)),P!==n&&b.add(P)}),ZO(n,this._triggerName,i,r,_,p,v,x,[...b.values()],C,E,F))}};function dJ(t,e,n,i,r){return t.some(o=>o(e,n,i,r))}function pN(t,e){let n=X({},e);return Object.entries(t).forEach(([i,r])=>{r!=null&&(n[i]=r)}),n}var zx=class{constructor(e,n,i){this.styles=e,this.defaultParams=n,this.normalizer=i}buildStyles(e,n){let i=new Map,r=pN(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=Zh(s,r,n));let c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),i.set(a,s)})}),i}};function uJ(t,e,n){return new Ux(t,e,n)}var Ux=class{constructor(e,n,i){this.name=e,this.ast=n,this._normalizer=i,this.transitionFactories=[],this.states=new Map,n.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new zx(r.style,o,i))}),JO(this.states,"true","1"),JO(this.states,"false","0"),n.transitions.forEach(r=>{this.transitionFactories.push(new qg(e,r,this.states))}),this.fallbackTransition=hJ(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,i,r){return this.transitionFactories.find(s=>s.match(e,n,i,r))||null}matchStyles(e,n,i){return this.fallbackTransition.buildStyles(e,n,i)}};function hJ(t,e,n){let i=[(s,a)=>!0],r={type:dt.Sequence,steps:[],options:null},o={type:dt.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new qg(t,o,e)}function JO(t,e,n){t.has(e)?t.has(n)||t.set(n,t.get(e)):t.has(n)&&t.set(e,t.get(n))}var fJ=new Jh,qx=class{constructor(e,n,i){this.bodyNode=e,this._driver=n,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,n){let i=[],r=[],o=hN(this._driver,n,i,r);if(i.length)throw IZ(i);r.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,n,i){let r=e.element,o=oN(this._normalizer,e.keyframes,n,i);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)}create(e,n,i={}){let r=[],o=this._animations.get(e),s,a=new Map;if(o?(s=fN(this._driver,n,o,lN,Ox,new Map,new Map,i,fJ,r),s.forEach(u=>{let d=Jn(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(kZ()),s=[]),r.length)throw MZ(r);a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,$o))})});let c=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),l=za(c);return this._playersById.set(e,l),l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){let n=this._getPlayer(e);n.destroy(),this._playersById.delete(e);let i=this.players.indexOf(n);i>=0&&this.players.splice(i,1)}_getPlayer(e){let n=this._playersById.get(e);if(!n)throw TZ(e);return n}listen(e,n,i,r){let o=Kx(n,"","","");return Qx(this._getPlayer(e),i,o,r),()=>{}}command(e,n,i,r){if(i=="register"){this.register(e,r[0]);return}if(i=="create"){let s=r[0]||{};this.create(e,n,s);return}let o=this._getPlayer(e);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},eN="ng-animate-queued",pJ=".ng-animate-queued",Tx="ng-animate-disabled",mJ=".ng-animate-disabled",gJ="ng-star-inserted",vJ=".ng-star-inserted",bJ=[],mN={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_J={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ao="__ng_removed",ef=class{get params(){return this.options.params}constructor(e,n=""){this.namespaceId=n;let i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=wJ(r),i){let o=e,{value:s}=o,a=_b(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let n=e.params;if(n){let i=this.options.params;Object.keys(n).forEach(r=>{i[r]==null&&(i[r]=n[r])})}}},Xh="void",Ax=new ef(Xh),$x=class{constructor(e,n,i){this.id=e,this.hostElement=n,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,wr(n,this._hostClassName)}listen(e,n,i,r){if(!this._triggers.has(n))throw AZ(i,n);if(i==null||i.length==0)throw RZ(n);if(!CJ(i))throw OZ(i,n);let o=Jn(this._elementListeners,e,[]),s={name:n,phase:i,callback:r};o.push(s);let a=Jn(this._engine.statesByElement,e,new Map);return a.has(n)||(wr(e,Og),wr(e,Og+"-"+n),a.set(n,Ax)),()=>{this._engine.afterFlush(()=>{let c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(n)||a.delete(n)})}}register(e,n){return this._triggers.has(e)?!1:(this._triggers.set(e,n),!0)}_getTrigger(e){let n=this._triggers.get(e);if(!n)throw NZ(e);return n}trigger(e,n,i,r=!0){let o=this._getTrigger(n),s=new tf(this.id,n,e),a=this._engine.statesByElement.get(e);a||(wr(e,Og),wr(e,Og+"-"+n),this._engine.statesByElement.set(e,a=new Map));let c=a.get(n),l=new ef(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(n,l),c||(c=Ax),!(l.value===Xh)&&c.value===l.value){if(!EJ(c.params,l.params)){let m=[],v=o.matchStyles(c.value,c.params,m),b=o.matchStyles(l.value,l.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Uc(e,v),Qo(e,b)})}return}let h=Jn(this._engine.playersByElement,e,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==n&&m.queued&&m.destroy()});let f=o.matchTransition(c.value,l.value,e,l.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:f,fromState:c,toState:l,player:s,isFallbackTransition:p}),p||(wr(e,eN),s.onStart(()=>{Od(e,eN)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);let v=this._engine.playersByElement.get(e);if(v){let b=v.indexOf(s);b>=0&&v.splice(b,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(n=>n.delete(e)),this._elementListeners.forEach((n,i)=>{this._elementListeners.set(i,n.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let n=this._engine.playersByElement.get(e);n&&(n.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){let i=this._engine.driver.query(e,Vg,!0);i.forEach(r=>{if(r[ao])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,n,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,n,i,r){let o=this._engine.statesByElement.get(e),s=new Map;if(o){let a=[];if(o.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){let u=this.trigger(e,l,Xh,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,s),i&&za(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let n=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(n&&i){let r=new Set;n.forEach(o=>{let s=o.name;if(r.has(s))return;r.add(s);let c=this._triggers.get(s).fallbackTransition,l=i.get(s)||Ax,u=new ef(Xh),d=new tf(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:c,fromState:l,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,n){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let r=!1;if(i.totalAnimations){let o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else{let s=e;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,n);else{let o=e[ao];(!o||o===mN)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,n))}}insertNode(e,n){wr(e,this._hostClassName)}drainQueuedTransitions(e){let n=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){let c=Kx(o,i.triggerName,i.fromState.value,i.toState.value);c._data=e,Qx(i.player,a.phase,c,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):n.push(i)}),this._queue=[],n.sort((i,r)=>{let o=i.transition.ast.depCount,s=r.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Wx=class{_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}constructor(e,n,i){this.bodyNode=e,this.driver=n,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(n=>{n.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,n){let i=new $x(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(i,n):(this.newHostElements.set(n,i),this.collectEnterElement(n)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,n){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){let c=r.get(a);if(c){let l=i.indexOf(c);i.splice(l+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(e)}else i.push(e);return r.set(n,e),e}register(e,n){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,n)),i}registerTrigger(e,n,i){let r=this._namespaceLookup[e];r&&r.register(n,i)&&this.totalAnimations++}destroy(e,n){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(n),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let n=new Set,i=this.statesByElement.get(e);if(i){for(let r of i.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&n.add(o)}}return n}trigger(e,n,i,r){if(Pg(n)){let o=this._fetchNamespace(e);if(o)return o.trigger(n,i,r),!0}return!1}insertNode(e,n,i,r){if(!Pg(n))return;let o=n[ao];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(n,i)}r&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),wr(e,Tx)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Od(e,Tx))}removeNode(e,n,i){if(Pg(n)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(n,i):this.markElementAsRemoved(e,n,!1,i);let o=this.namespacesByHostElement.get(n);o&&o.id!==e&&o.removeNode(n,i)}else this._onRemovalComplete(n,i)}markElementAsRemoved(e,n,i,r,o){this.collectedLeaveElements.push(n),n[ao]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,n,i,r,o){return Pg(n)?this._fetchNamespace(e).listen(n,i,r,o):()=>{}}_buildInstruction(e,n,i,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,n,o)}destroyInnerAnimations(e){let n=this.driver.query(e,Vg,!0);n.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(e,Nx,!0),n.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let n=this.playersByElement.get(e);n&&n.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let n=this.playersByQueriedElement.get(e);n&&n.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return za(this.players).onDone(()=>e());e()})}processLeaveNode(e){let n=e[ao];if(n&&n.setForRemoval){if(e[ao]=mN,n.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(Tx)&&this.markElementAsDisabled(e,!1),this.driver.query(e,mJ,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],n.length?za(n).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw FZ(e)}_flushAnimations(e,n){let i=new Jh,r=[],o=new Map,s=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(S=>{u.add(S);let w=this.driver.query(S,pJ,!0);for(let M=0;M{let M=lN+m++;p.set(w,M),S.forEach(T=>wr(T,M))});let v=[],b=new Set,C=new Set;for(let S=0;Sb.add(T)):C.add(w))}let E=new Map,_=nN(h,Array.from(b));_.forEach((S,w)=>{let M=Ox+m++;E.set(w,M),S.forEach(T=>wr(T,M))}),e.push(()=>{f.forEach((S,w)=>{let M=p.get(w);S.forEach(T=>Od(T,M))}),_.forEach((S,w)=>{let M=E.get(w);S.forEach(T=>Od(T,M))}),v.forEach(S=>{this.processLeaveNode(S)})});let y=[],x=[];for(let S=this._namespaceList.length-1;S>=0;S--)this._namespaceList[S].drainQueuedTransitions(n).forEach(M=>{let T=M.player,J=M.element;if(y.push(T),this.collectedEnterElements.length){let it=J[ao];if(it&&it.setForMove){if(it.previousTriggersValues&&it.previousTriggersValues.has(M.triggerName)){let ti=it.previousTriggersValues.get(M.triggerName),Mt=this.statesByElement.get(M.element);if(Mt&&Mt.has(M.triggerName)){let Ce=Mt.get(M.triggerName);Ce.value=ti,Mt.set(M.triggerName,Ce)}}T.destroy();return}}let ye=!d||!this.driver.containsElement(d,J),Ae=E.get(J),Qe=p.get(J),Pe=this._buildInstruction(M,i,Qe,Ae,ye);if(Pe.errors&&Pe.errors.length){x.push(Pe);return}if(ye){T.onStart(()=>Uc(J,Pe.fromStyles)),T.onDestroy(()=>Qo(J,Pe.toStyles)),r.push(T);return}if(M.isFallbackTransition){T.onStart(()=>Uc(J,Pe.fromStyles)),T.onDestroy(()=>Qo(J,Pe.toStyles)),r.push(T);return}let kt=[];Pe.timelines.forEach(it=>{it.stretchStartingKeyframe=!0,this.disabledNodes.has(it.element)||kt.push(it)}),Pe.timelines=kt,i.append(J,Pe.timelines);let ci={instruction:Pe,player:T,element:J};s.push(ci),Pe.queriedElements.forEach(it=>Jn(a,it,[]).push(T)),Pe.preStyleProps.forEach((it,ti)=>{if(it.size){let Mt=c.get(ti);Mt||c.set(ti,Mt=new Set),it.forEach((Ce,xt)=>Mt.add(xt))}}),Pe.postStyleProps.forEach((it,ti)=>{let Mt=l.get(ti);Mt||l.set(ti,Mt=new Set),it.forEach((Ce,xt)=>Mt.add(xt))})});if(x.length){let S=[];x.forEach(w=>{S.push(PZ(w.triggerName,w.errors))}),y.forEach(w=>w.destroy()),this.reportError(S)}let F=new Map,L=new Map;s.forEach(S=>{let w=S.element;i.has(w)&&(L.set(w,w),this._beforeAnimationBuild(S.player.namespaceId,S.instruction,F))}),r.forEach(S=>{let w=S.element;this._getPreviousPlayers(w,!1,S.namespaceId,S.triggerName,null).forEach(T=>{Jn(F,w,[]).push(T),T.destroy()})});let P=v.filter(S=>rN(S,c,l)),Q=new Map;iN(Q,this.driver,C,l,$o).forEach(S=>{rN(S,c,l)&&P.push(S)});let W=new Map;f.forEach((S,w)=>{iN(W,this.driver,new Set(S),c,cg)}),P.forEach(S=>{let w=Q.get(S),M=W.get(S);Q.set(S,new Map([...w?.entries()??[],...M?.entries()??[]]))});let Y=[],Z=[],ae={};s.forEach(S=>{let{element:w,player:M,instruction:T}=S;if(i.has(w)){if(u.has(w)){M.onDestroy(()=>Qo(w,T.toStyles)),M.disabled=!0,M.overrideTotalTime(T.totalTime),r.push(M);return}let J=ae;if(L.size>1){let Ae=w,Qe=[];for(;Ae=Ae.parentNode;){let Pe=L.get(Ae);if(Pe){J=Pe;break}Qe.push(Ae)}Qe.forEach(Pe=>L.set(Pe,J))}let ye=this._buildAnimation(M.namespaceId,T,F,o,W,Q);if(M.setRealPlayer(ye),J===ae)Y.push(M);else{let Ae=this.playersByElement.get(J);Ae&&Ae.length&&(M.parentPlayer=za(Ae)),r.push(M)}}else Uc(w,T.fromStyles),M.onDestroy(()=>Qo(w,T.toStyles)),Z.push(M),u.has(w)&&r.push(M)}),Z.forEach(S=>{let w=o.get(S.element);if(w&&w.length){let M=za(w);S.setRealPlayer(M)}}),r.forEach(S=>{S.parentPlayer?S.syncPlayerEvents(S.parentPlayer):S.destroy()});for(let S=0;S!ye.destroyed);J.length?xJ(this,w,J):this.processLeaveNode(w)}return v.length=0,Y.forEach(S=>{this.players.push(S),S.onDone(()=>{S.destroy();let w=this.players.indexOf(S);this.players.splice(w,1)}),S.play()}),Y}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,i,r,o){let s=[];if(n){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let c=!o||o==Xh;a.forEach(l=>{l.queued||!c&&l.triggerName!=r||s.push(l)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(e,n,i){let r=n.triggerName,o=n.element,s=n.isRemovalTransition?void 0:e,a=n.isRemovalTransition?void 0:r;for(let c of n.timelines){let l=c.element,u=l!==o,d=Jn(i,l,[]);this._getPreviousPlayers(l,u,s,a,n.toState).forEach(f=>{let p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Uc(o,n.fromStyles)}_buildAnimation(e,n,i,r,o,s){let a=n.triggerName,c=n.element,l=[],u=new Set,d=new Set,h=n.timelines.map(p=>{let m=p.element;u.add(m);let v=m[ao];if(v&&v.removedBeforeQueried)return new La(p.duration,p.delay);let b=m!==c,C=DJ((i.get(m)||bJ).map(F=>F.getRealPlayer())).filter(F=>{let L=F;return L.element?L.element===m:!1}),E=o.get(m),_=s.get(m),y=oN(this._normalizer,p.keyframes,E,_),x=this._buildPlayer(p,y,C);if(p.subTimeline&&r&&d.add(m),b){let F=new tf(e,a,m);F.setRealPlayer(x),l.push(F)}return x});l.forEach(p=>{Jn(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>yJ(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>wr(p,YO));let f=za(h);return f.onDestroy(()=>{u.forEach(p=>Od(p,YO)),Qo(c,n.toStyles)}),d.forEach(p=>{Jn(r,p,[]).push(f)}),f}_buildPlayer(e,n,i){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,i):new La(e.duration,e.delay)}},tf=class{constructor(e,n,i){this.namespaceId=e,this.triggerName=n,this.element=i,this._player=new La,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((n,i)=>{n.forEach(r=>Qx(e,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){Jn(this._queuedCallbacks,e,[]).push(n)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1: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){let n=this._player;n.triggerCallback&&n.triggerCallback(e)}};function yJ(t,e,n){let i=t.get(e);if(i){if(i.length){let r=i.indexOf(n);i.splice(r,1)}i.length==0&&t.delete(e)}return i}function wJ(t){return t??null}function Pg(t){return t&&t.nodeType===1}function CJ(t){return t=="start"||t=="done"}function tN(t,e){let n=t.style.display;return t.style.display=e??"none",n}function iN(t,e,n,i,r){let o=[];n.forEach(c=>o.push(tN(c)));let s=[];i.forEach((c,l)=>{let u=new Map;c.forEach(d=>{let h=e.computeStyle(l,d,r);u.set(d,h),(!h||h.length==0)&&(l[ao]=_J,s.push(l))}),t.set(l,u)});let a=0;return n.forEach(c=>tN(c,o[a++])),s}function nN(t,e){let n=new Map;if(t.forEach(a=>n.set(a,[])),e.length==0)return n;let i=1,r=new Set(e),o=new Map;function s(a){if(!a)return i;let c=o.get(a);if(c)return c;let l=a.parentNode;return n.has(l)?c=l:r.has(l)?c=i:c=s(l),o.set(a,c),c}return e.forEach(a=>{let c=s(a);c!==i&&n.get(c).push(a)}),n}function wr(t,e){t.classList?.add(e)}function Od(t,e){t.classList?.remove(e)}function xJ(t,e,n){za(n).onDone(()=>t.processLeaveNode(e))}function DJ(t){let e=[];return gN(t,e),e}function gN(t,e){for(let n=0;nr.add(o)):e.set(t,i),n.delete(t),!0}var Fd=class{constructor(e,n,i){this._driver=n,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new Wx(e.body,n,i),this._timelineEngine=new qx(e.body,n,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,n,i,r,o){let s=e+"-"+r,a=this._triggerCache[s];if(!a){let c=[],l=[],u=hN(this._driver,o,c,l);if(c.length)throw EZ(r,c);l.length&&void 0,a=uJ(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,r,a)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,i,r){this._transitionEngine.insertNode(e,n,i,r)}onRemove(e,n,i){this._transitionEngine.removeNode(e,n,i)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,i,r){if(i.charAt(0)=="@"){let[o,s]=WO(i),a=r;this._timelineEngine.command(o,n,s,a)}else this._transitionEngine.trigger(e,n,i,r)}listen(e,n,i,r,o){if(i.charAt(0)=="@"){let[s,a]=WO(i);return this._timelineEngine.listen(s,n,a,o)}return this._transitionEngine.listen(e,n,i,r,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function SJ(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Rx(e[0]),e.length>1&&(i=Rx(e[e.length-1]))):e instanceof Map&&(n=Rx(e)),n||i?new Gx(t,n,i):null}var Nd=class Nd{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let r=Nd.initialStylesByElement.get(e);r||Nd.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Qo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Qo(this._element,this._initialStyles),this._endStyles&&(Qo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Nd.initialStylesByElement.delete(this._element),this._startStyles&&(Uc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Uc(this._element,this._endStyles),this._endStyles=null),Qo(this._element,this._initialStyles),this._state=3)}};Nd.initialStylesByElement=new WeakMap;var Gx=Nd;function Rx(t){let e=null;return t.forEach((n,i)=>{IJ(i)&&(e=e||new Map,e.set(i,n))}),e}function IJ(t){return t==="display"||t==="position"}var $g=class{constructor(e,n,i,r){this.element=e,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,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;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let n=()=>this._onFinish();this.domPlayer.addEventListener("finish",n),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",n)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let n=[];return e.forEach(i=>{n.push(Object.fromEntries(i))}),n}_triggerWebAnimation(e,n,i){return e.animate(this._convertKeyframesToObject(n),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&e.set(r,this._finished?i:eD(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(i=>i()),n.length=0}},Wg=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,n){return sN(e,n)}getParentElement(e){return Xx(e)}query(e,n,i){return aN(e,n,i)}computeStyle(e,n,i){return eD(e,n)}animate(e,n,i,r,o,s=[]){let a=r==0?"both":"forwards",c={duration:i,delay:r,fill:a};o&&(c.easing=o);let l=new Map,u=s.filter(f=>f instanceof $g);GZ(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>l.set(m,p))});let d=qZ(n).map(f=>new Map(f));d=YZ(e,d,l);let h=SJ(e,d);return new $g(e,d,c,h)}};var Lg="@",vN="@.disabled",Gg=class{constructor(e,n,i,r){this.namespaceId=e,this.delegate=n,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,i,r=!0){this.delegate.insertBefore(e,n,i),this.engine.onInsert(this.namespaceId,n,e,r)}removeChild(e,n,i){this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,i,r){this.delegate.setAttribute(e,n,i,r)}removeAttribute(e,n,i){this.delegate.removeAttribute(e,n,i)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,i,r){this.delegate.setStyle(e,n,i,r)}removeStyle(e,n,i){this.delegate.removeStyle(e,n,i)}setProperty(e,n,i){n.charAt(0)==Lg&&n==vN?this.disableAnimations(e,!!i):this.delegate.setProperty(e,n,i)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,i){return this.delegate.listen(e,n,i)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}},Yx=class extends Gg{constructor(e,n,i,r,o){super(n,i,r,o),this.factory=e,this.namespaceId=n}setProperty(e,n,i){n.charAt(0)==Lg?n.charAt(1)=="."&&n==vN?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,n.slice(1),i):this.delegate.setProperty(e,n,i)}listen(e,n,i){if(n.charAt(0)==Lg){let r=kJ(e),o=n.slice(1),s="";return o.charAt(0)!=Lg&&([o,s]=MJ(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{let c=a._data||-1;this.factory.scheduleListenerCallback(c,i,a)})}return this.delegate.listen(e,n,i)}};function kJ(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function MJ(t){let e=t.indexOf("."),n=t.substring(0,e),i=t.slice(e+1);return[n,i]}var Yg=class{constructor(e,n,i){this.delegate=e,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(r,o)=>{let s=o?.parentNode(r);s&&o.removeChild(s,r)}}createRenderer(e,n){let i="",r=this.delegate.createRenderer(e,n);if(!e||!n?.data?.animation){let l=this._rendererCache,u=l.get(r);if(!u){let d=()=>l.delete(r);u=new Gg(i,r,this.engine,d),l.set(r,u)}return u}let o=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(o,s,e,l.name,l)};return n.data.animation.forEach(a),new Yx(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,i){if(e>=0&&en(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([n,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var AJ=(()=>{let e=class e extends Fd{constructor(i,r,o){super(i,r,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(R(Fe),R(qc),R($c))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();function RJ(){return new jg}function OJ(t,e,n){return new Yg(t,e,n)}var _N=[{provide:$c,useFactory:RJ},{provide:Fd,useClass:AJ},{provide:ua,useFactory:OJ,deps:[e0,Fd,ee]}],bN=[{provide:qc,useFactory:()=>new Wg},{provide:jt,useValue:"BrowserAnimations"},..._N],NJ=[{provide:qc,useClass:Zx},{provide:jt,useValue:"NoopAnimations"},..._N],yN=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:i.disableAnimations?NJ:bN}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:bN,imports:[i0]});let t=e;return t})();var bt="primary",gf=Symbol("RouteTitle"),aD=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Hd(t){return new aD(t)}function FJ(t,e,n){let i=n.path.split("/");if(i.length>t.length||n.pathMatch==="full"&&(e.hasChildren()||i.lengthi[o]===r)}else return t===e}function RN(t){return t.length>0?t[t.length-1]:null}function qa(t){return cs(t)?t:vc(t)?Kt(Promise.resolve(t)):we(t)}var LJ={exact:NN,subset:FN},ON={exact:VJ,subset:BJ,ignored:()=>!0};function wN(t,e,n){return LJ[n.paths](t.root,e.root,n.matrixParams)&&ON[n.queryParams](t.queryParams,e.queryParams)&&!(n.fragment==="exact"&&t.fragment!==e.fragment)}function VJ(t,e){return Ko(t,e)}function NN(t,e,n){if(!Gc(t.segments,e.segments)||!Xg(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let i in e.children)if(!t.children[i]||!NN(t.children[i],e.children[i],n))return!1;return!0}function BJ(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>AN(t[n],e[n]))}function FN(t,e,n){return PN(t,e,e.segments,n)}function PN(t,e,n,i){if(t.segments.length>n.length){let r=t.segments.slice(0,n.length);return!(!Gc(r,n)||e.hasChildren()||!Xg(r,n,i))}else if(t.segments.length===n.length){if(!Gc(t.segments,n)||!Xg(t.segments,n,i))return!1;for(let r in e.children)if(!t.children[r]||!FN(t.children[r],e.children[r],i))return!1;return!0}else{let r=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!Gc(t.segments,r)||!Xg(t.segments,r,i)||!t.children[bt]?!1:PN(t.children[bt],e,o,i)}}function Xg(t,e,n){return e.every((i,r)=>ON[n](t[r].parameters,i.parameters))}var Bs=class{constructor(e=new Ut([],{}),n={},i=null){this.root=e,this.queryParams=n,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Hd(this.queryParams),this._queryParamMap}toString(){return zJ.serialize(this)}},Ut=class{constructor(e,n){this.segments=e,this.children=n,this.parent=null,Object.values(n).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Zg(this)}},Wc=class{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap??=Hd(this.parameters),this._parameterMap}toString(){return VN(this)}};function jJ(t,e){return Gc(t,e)&&t.every((n,i)=>Ko(n.parameters,e[i].parameters))}function Gc(t,e){return t.length!==e.length?!1:t.every((n,i)=>n.path===e[i].path)}function HJ(t,e){let n=[];return Object.entries(t.children).forEach(([i,r])=>{i===bt&&(n=n.concat(e(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==bt&&(n=n.concat(e(r,i)))}),n}var vf=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:()=>new zd,providedIn:"root"});let t=e;return t})(),zd=class{parse(e){let n=new dD(e);return new Bs(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){let n=`/${nf(e.root,!0)}`,i=$J(e.queryParams),r=typeof e.fragment=="string"?`#${UJ(e.fragment)}`:"";return`${n}${i}${r}`}},zJ=new zd;function Zg(t){return t.segments.map(e=>VN(e)).join("/")}function nf(t,e){if(!t.hasChildren())return Zg(t);if(e){let n=t.children[bt]?nf(t.children[bt],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==bt&&i.push(`${r}:${nf(o,!1)}`)}),i.length>0?`${n}(${i.join("//")})`:n}else{let n=HJ(t,(i,r)=>r===bt?[nf(t.children[bt],!1)]:[`${r}:${nf(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[bt]!=null?`${Zg(t)}/${n[0]}`:`${Zg(t)}/(${n.join("//")})`}}function LN(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qg(t){return LN(t).replace(/%3B/gi,";")}function UJ(t){return encodeURI(t)}function lD(t){return LN(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Jg(t){return decodeURIComponent(t)}function CN(t){return Jg(t.replace(/\+/g,"%20"))}function VN(t){return`${lD(t.path)}${qJ(t.parameters)}`}function qJ(t){return Object.entries(t).map(([e,n])=>`;${lD(e)}=${lD(n)}`).join("")}function $J(t){let e=Object.entries(t).map(([n,i])=>Array.isArray(i)?i.map(r=>`${Qg(n)}=${Qg(r)}`).join("&"):`${Qg(n)}=${Qg(i)}`).filter(n=>n);return e.length?`?${e.join("&")}`:""}var WJ=/^[^\/()?;#]+/;function nD(t){let e=t.match(WJ);return e?e[0]:""}var GJ=/^[^\/()?;=#]+/;function YJ(t){let e=t.match(GJ);return e?e[0]:""}var QJ=/^[^=?&#]+/;function KJ(t){let e=t.match(QJ);return e?e[0]:""}var XJ=/^[^&#]+/;function ZJ(t){let e=t.match(XJ);return e?e[0]:""}var dD=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ut([],{}):new Ut([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(i[bt]=new Ut(e,n)),i}parseSegment(){let e=nD(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new ge(4009,!1);return this.capture(e),new Wc(Jg(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let n=YJ(this.remaining);if(!n)return;this.capture(n);let i="";if(this.consumeOptional("=")){let r=nD(this.remaining);r&&(i=r,this.capture(i))}e[Jg(n)]=Jg(i)}parseQueryParam(e){let n=KJ(this.remaining);if(!n)return;this.capture(n);let i="";if(this.consumeOptional("=")){let s=ZJ(this.remaining);s&&(i=s,this.capture(i))}let r=CN(n),o=CN(i);if(e.hasOwnProperty(r)){let s=e[r];Array.isArray(s)||(s=[s],e[r]=s),s.push(o)}else e[r]=o}parseParens(e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=nD(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new ge(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=bt);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[bt]:new Ut([],s),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new ge(4011,!1)}};function BN(t){return t.segments.length>0?new Ut([],{[bt]:t}):t}function jN(t){let e={};for(let[i,r]of Object.entries(t.children)){let o=jN(r);if(i===bt&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[i]=o)}let n=new Ut(t.segments,e);return JJ(n)}function JJ(t){if(t.numberOfChildren===1&&t.children[bt]){let e=t.children[bt];return new Ut(t.segments.concat(e.segments),e.children)}return t}function Yc(t){return t instanceof Bs}function eee(t,e,n=null,i=null){let r=HN(t);return zN(r,e,n,i)}function HN(t){let e;function n(o){let s={};for(let c of o.children){let l=n(c);s[c.outlet]=l}let a=new Ut(o.url,s);return o===t&&(e=a),a}let i=n(t.root),r=BN(i);return e??r}function zN(t,e,n,i){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return rD(r,r,r,n,i);let o=tee(e);if(o.toRoot())return rD(r,r,new Ut([],{}),n,i);let s=iee(o,r,t),a=s.processChildren?sf(s.segmentGroup,s.index,o.commands):qN(s.segmentGroup,s.index,o.commands);return rD(r,s.segmentGroup,a,n,i)}function ev(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function lf(t){return typeof t=="object"&&t!=null&&t.outlets}function rD(t,e,n,i,r){let o={};i&&Object.entries(i).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;t===e?s=n:s=UN(t,e,n);let a=BN(jN(s));return new Bs(a,o,r)}function UN(t,e,n){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===e?i[r]=n:i[r]=UN(o,e,n)}),new Ut(t.segments,i)}var tv=class{constructor(e,n,i){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=i,e&&i.length>0&&ev(i[0]))throw new ge(4003,!1);let r=i.find(lf);if(r&&r!==RN(i))throw new ge(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function tee(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new tv(!0,0,t);let e=0,n=!1,i=t.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new tv(n,e,i)}var Vd=class{constructor(e,n,i){this.segmentGroup=e,this.processChildren=n,this.index=i}};function iee(t,e,n){if(t.isAbsolute)return new Vd(e,!0,0);if(!n)return new Vd(e,!1,NaN);if(n.parent===null)return new Vd(n,!0,0);let i=ev(t.commands[0])?0:1,r=n.segments.length-1+i;return nee(n,r,t.numberOfDoubleDots)}function nee(t,e,n){let i=t,r=e,o=n;for(;o>r;){if(o-=r,i=i.parent,!i)throw new ge(4005,!1);r=i.segments.length}return new Vd(i,!1,r-o)}function ree(t){return lf(t[0])?t[0].outlets:{[bt]:t}}function qN(t,e,n){if(t??=new Ut([],{}),t.segments.length===0&&t.hasChildren())return sf(t,e,n);let i=oee(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndexo!==bt)&&t.children[bt]&&t.numberOfChildren===1&&t.children[bt].segments.length===0){let o=sf(t.children[bt],e,n);return new Ut(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=qN(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{i[o]===void 0&&(r[o]=s)}),new Ut(t.segments,r)}}function oee(t,e,n){let i=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return o;let s=t.segments[r],a=n[i];if(lf(a))break;let c=`${a}`,l=i0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!DN(c,l,s))return o;i+=2}else{if(!DN(c,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function uD(t,e,n){let i=t.segments.slice(0,e),r=0;for(;r{typeof i=="string"&&(i=[i]),i!==null&&(e[n]=uD(new Ut([],{}),0,i))}),e}function xN(t){let e={};return Object.entries(t).forEach(([n,i])=>e[n]=`${i}`),e}function DN(t,e,n){return t==n.path&&Ko(e,n.parameters)}var af="imperative",Ai=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Ai||{}),Cr=class{constructor(e,n){this.id=e,this.url=n}},Ud=class extends Cr{constructor(e,n,i="imperative",r=null){super(e,n),this.type=Ai.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Xo=class extends Cr{constructor(e,n,i){super(e,n),this.urlAfterRedirects=i,this.type=Ai.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},tr=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(tr||{}),iv=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(iv||{}),Vs=class extends Cr{constructor(e,n,i,r){super(e,n),this.reason=i,this.code=r,this.type=Ai.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Ua=class extends Cr{constructor(e,n,i,r){super(e,n),this.reason=i,this.code=r,this.type=Ai.NavigationSkipped}},df=class extends Cr{constructor(e,n,i,r){super(e,n),this.error=i,this.target=r,this.type=Ai.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},nv=class extends Cr{constructor(e,n,i,r){super(e,n),this.urlAfterRedirects=i,this.state=r,this.type=Ai.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},hD=class extends Cr{constructor(e,n,i,r){super(e,n),this.urlAfterRedirects=i,this.state=r,this.type=Ai.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},fD=class extends Cr{constructor(e,n,i,r,o){super(e,n),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=Ai.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},pD=class extends Cr{constructor(e,n,i,r){super(e,n),this.urlAfterRedirects=i,this.state=r,this.type=Ai.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mD=class extends Cr{constructor(e,n,i,r){super(e,n),this.urlAfterRedirects=i,this.state=r,this.type=Ai.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gD=class{constructor(e){this.route=e,this.type=Ai.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},vD=class{constructor(e){this.route=e,this.type=Ai.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},bD=class{constructor(e){this.snapshot=e,this.type=Ai.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_D=class{constructor(e){this.snapshot=e,this.type=Ai.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yD=class{constructor(e){this.snapshot=e,this.type=Ai.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wD=class{constructor(e){this.snapshot=e,this.type=Ai.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},rv=class{constructor(e,n,i){this.routerEvent=e,this.position=n,this.anchor=i,this.type=Ai.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},uf=class{},qd=class{constructor(e,n){this.url=e,this.navigationBehaviorOptions=n}};function aee(t,e){return t.providers&&!t._injector&&(t._injector=Lm(t.providers,e,`Route: ${t.path}`)),t._injector??e}function co(t){return t.outlet||bt}function cee(t,e){let n=t.filter(i=>co(i)===e);return n.push(...t.filter(i=>co(i)!==e)),n}function bf(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let n=e.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var CD=class{get injector(){return bf(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new _f(this.rootInjector),this.attachRef=null}},_f=(()=>{let e=class e{constructor(i){this.rootInjector=i,this.contexts=new Map}onChildOutletCreated(i,r){let o=this.getOrCreateContext(i);o.outlet=r,this.contexts.set(i,o)}onChildOutletDestroyed(i){let r=this.getContext(i);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let i=this.contexts;return this.contexts=new Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let r=this.getContext(i);return r||(r=new CD(this.rootInjector),this.contexts.set(i,r)),r}getContext(i){return this.contexts.get(i)||null}};e.\u0275fac=function(r){return new(r||e)(R(Fi))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ov=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){let n=xD(e,this._root);return n?n.children.map(i=>i.value):[]}firstChild(e){let n=xD(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){let n=DD(e,this._root);return n.length<2?[]:n[n.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return DD(e,this._root).map(n=>n.value)}};function xD(t,e){if(t===e.value)return e;for(let n of e.children){let i=xD(t,n);if(i)return i}return null}function DD(t,e){if(t===e.value)return[e];for(let n of e.children){let i=DD(t,n);if(i.length)return i.unshift(e),i}return[]}var er=class{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}};function Ld(t){let e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}var sv=class extends ov{constructor(e,n){super(e),this.snapshot=n,OD(this,e)}toString(){return this.snapshot.toString()}};function $N(t){let e=lee(t),n=new Vt([new Wc("",{})]),i=new Vt({}),r=new Vt({}),o=new Vt({}),s=new Vt(""),a=new si(n,i,o,s,r,bt,t,e.root);return a.snapshot=e.root,new sv(new er(a,[]),e)}function lee(t){let e={},n={},i={},r="",o=new Bd([],e,i,r,n,bt,t,null,{});return new cv("",new er(o,[]))}var si=class{constructor(e,n,i,r,o,s,a,c){this.urlSubject=e,this.paramsSubject=n,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(Te(l=>l[gf]))??we(void 0),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Te(e=>Hd(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Te(e=>Hd(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function av(t,e,n="emptyOnly"){let i,{routeConfig:r}=t;return e!==null&&(n==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?i={params:X(X({},e.params),t.params),data:X(X({},e.data),t.data),resolve:X(X(X(X({},t.data),e.data),r?.data),t._resolvedData)}:i={params:X({},t.params),data:X({},t.data),resolve:X(X({},t.data),t._resolvedData??{})},r&&GN(r)&&(i.resolve[gf]=r.title),i}var Bd=class{get title(){return this.data?.[gf]}constructor(e,n,i,r,o,s,a,c,l){this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Hd(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Hd(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(i=>i.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${n}')`}},cv=class extends ov{constructor(e,n){super(n),this.url=e,OD(this,n)}toString(){return WN(this._root)}};function OD(t,e){e.value._routerState=t,e.children.forEach(n=>OD(t,n))}function WN(t){let e=t.children.length>0?` { ${t.children.map(WN).join(", ")} } `:"";return`${t.value}${e}`}function oD(t){if(t.snapshot){let e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Ko(e.queryParams,n.queryParams)||t.queryParamsSubject.next(n.queryParams),e.fragment!==n.fragment&&t.fragmentSubject.next(n.fragment),Ko(e.params,n.params)||t.paramsSubject.next(n.params),PJ(e.url,n.url)||t.urlSubject.next(n.url),Ko(e.data,n.data)||t.dataSubject.next(n.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function ED(t,e){let n=Ko(t.params,e.params)&&jJ(t.url,e.url),i=!t.parent!=!e.parent;return n&&!i&&(!t.parent||ED(t.parent,e.parent))}function GN(t){return typeof t.title=="string"||t.title===null}var ND=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=bt,this.activateEvents=new oe,this.deactivateEvents=new oe,this.attachEvents=new oe,this.detachEvents=new oe,this.parentContexts=B(_f),this.location=B(qt),this.changeDetector=B(Ge),this.inputBinder=B(fv,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(i){if(i.name){let{firstChange:r,previousValue:o}=i.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(i){return this.parentContexts.getContext(i)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let i=this.parentContexts.getContext(this.name);i?.route&&(i.attachRef?this.attach(i.attachRef,i.route):this.activateWith(i.route,i.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ge(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ge(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ge(4012,!1);this.location.detach();let i=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(i.instance),i}attach(i,r){this.activated=i,this._activatedRoute=r,this.location.insert(i.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(i.instance)}deactivate(){if(this.activated){let i=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(i)}}activateWith(i,r){if(this.isActivated)throw new ge(4013,!1);this._activatedRoute=i;let o=this.location,a=i.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new SD(i,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[lt]});let t=e;return t})(),SD=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,n,i){this.route=e,this.childContexts=n,this.parent=i}get(e,n){return e===si?this.route:e===_f?this.childContexts:this.parent.get(e,n)}},fv=new q(""),EN=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(i){this.unsubscribeFromRouteData(i),this.subscribeToRouteData(i)}unsubscribeFromRouteData(i){this.outletDataSubscriptions.get(i)?.unsubscribe(),this.outletDataSubscriptions.delete(i)}subscribeToRouteData(i){let{activatedRoute:r}=i,o=jr([r.queryParams,r.params,r.data]).pipe(Nt(([s,a,c],l)=>(c=X(X(X({},s),a),c),l===0?we(c):Promise.resolve(c)))).subscribe(s=>{if(!i.isActivated||!i.activatedComponentRef||i.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(i);return}let a=YM(r.component);if(!a){this.unsubscribeFromRouteData(i);return}for(let{templateName:c}of a.inputs)i.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(i,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();function dee(t,e,n){let i=hf(t,e._root,n?n._root:void 0);return new sv(i,e)}function hf(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){let i=n.value;i._futureSnapshot=e.value;let r=uee(t,e,n);return new er(i,r)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>hf(t,a)),s}}let i=hee(e.value),r=e.children.map(o=>hf(t,o));return new er(i,r)}}function uee(t,e,n){return e.children.map(i=>{for(let r of n.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return hf(t,i,r);return hf(t,i)})}function hee(t){return new si(new Vt(t.url),new Vt(t.params),new Vt(t.queryParams),new Vt(t.fragment),new Vt(t.data),t.outlet,t.component,t)}var ff=class{constructor(e,n){this.redirectTo=e,this.navigationBehaviorOptions=n}},YN="ngNavigationCancelingError";function lv(t,e){let{redirectTo:n,navigationBehaviorOptions:i}=Yc(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=QN(!1,tr.Redirect);return r.url=n,r.navigationBehaviorOptions=i,r}function QN(t,e){let n=new Error(`NavigationCancelingError: ${t||""}`);return n[YN]=!0,n.cancellationCode=e,n}function fee(t){return KN(t)&&Yc(t.url)}function KN(t){return!!t&&t[YN]}var pee=(t,e,n,i)=>Te(r=>(new ID(e,r.targetRouterState,r.currentRouterState,n,i).activate(t),r)),ID=class{constructor(e,n,i,r,o){this.routeReuseStrategy=e,this.futureState=n,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(e){let n=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,i,e),oD(this.futureState.root),this.activateChildRoutes(n,i,e)}deactivateChildRoutes(e,n,i){let r=Ld(n);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(e,n,i){let r=e.value,o=n?n.value:null;if(r===o)if(r.component){let s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(e,n,s.children)}else this.deactivateChildRoutes(e,n,i);else o&&this.deactivateRouteAndItsChildren(n,i)}deactivateRouteAndItsChildren(e,n){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){let i=n.getContext(e.value.outlet),r=i&&e.value.component?i.children:n,o=Ld(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){let s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,n){let i=n.getContext(e.value.outlet),r=i&&e.value.component?i.children:n,o=Ld(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(e,n,i){let r=Ld(n);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new wD(o.value.snapshot))}),e.children.length&&this.forwardEvent(new _D(e.value.snapshot))}activateRoutes(e,n,i){let r=e.value,o=n?n.value:null;if(oD(r),r===o)if(r.component){let s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(e,n,s.children)}else this.activateChildRoutes(e,n,i);else if(r.component){let s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),oD(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,i)}},dv=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},jd=class{constructor(e,n){this.component=e,this.route=n}};function mee(t,e,n){let i=t._root,r=e?e._root:null;return rf(i,r,n,[i.value])}function gee(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Wd(t,e){let n=Symbol(),i=e.get(t,n);return i===n?typeof t=="function"&&!eI(t)?t:e.get(t):i}function rf(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ld(e);return t.children.forEach(s=>{vee(s,o[s.value.outlet],n,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>cf(a,n.getContext(s),r)),r}function vee(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=bee(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new dv(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?rf(t,e,a?a.children:null,i,r):rf(t,e,n,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new jd(a.outlet.component,s))}else s&&cf(e,a,r),r.canActivateChecks.push(new dv(i)),o.component?rf(t,null,a?a.children:null,i,r):rf(t,null,n,i,r);return r}function bee(t,e,n){if(typeof n=="function")return n(t,e);switch(n){case"pathParamsChange":return!Gc(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Gc(t.url,e.url)||!Ko(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ED(t,e)||!Ko(t.queryParams,e.queryParams);case"paramsChange":default:return!ED(t,e)}}function cf(t,e,n){let i=Ld(t),r=t.value;Object.entries(i).forEach(([o,s])=>{r.component?e?cf(s,e.children.getContext(o),n):cf(s,null,n):cf(s,e,n)}),r.component?e&&e.outlet&&e.outlet.isActivated?n.canDeactivateChecks.push(new jd(e.outlet.component,r)):n.canDeactivateChecks.push(new jd(null,r)):n.canDeactivateChecks.push(new jd(null,r))}function yf(t){return typeof t=="function"}function _ee(t){return typeof t=="boolean"}function yee(t){return t&&yf(t.canLoad)}function wee(t){return t&&yf(t.canActivate)}function Cee(t){return t&&yf(t.canActivateChild)}function xee(t){return t&&yf(t.canDeactivate)}function Dee(t){return t&&yf(t.canMatch)}function XN(t){return t instanceof ls||t?.name==="EmptyError"}var Kg=Symbol("INITIAL_VALUE");function $d(){return Nt(t=>jr(t.map(e=>e.pipe(wt(1),Bt(Kg)))).pipe(Te(e=>{for(let n of e)if(n!==!0){if(n===Kg)return Kg;if(n===!1||Eee(n))return n}return!0}),We(e=>e!==Kg),wt(1)))}function Eee(t){return Yc(t)||t instanceof ff}function See(t,e){return Ei(n=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?we(mt(X({},n),{guardsResult:!0})):Iee(s,i,r,t).pipe(Ei(a=>a&&_ee(a)?kee(i,o,t,e):we(a)),Te(a=>mt(X({},n),{guardsResult:a})))})}function Iee(t,e,n,i){return Kt(t).pipe(Ei(r=>Oee(r.component,r.route,n,e,i)),Io(r=>r!==!0,!0))}function kee(t,e,n,i){return Kt(e).pipe(us(r=>Eo(Tee(r.route.parent,i),Mee(r.route,i),Ree(t,r.path,n),Aee(t,r.route,n))),Io(r=>r!==!0,!0))}function Mee(t,e){return t!==null&&e&&e(new yD(t)),we(!0)}function Tee(t,e){return t!==null&&e&&e(new bD(t)),we(!0)}function Aee(t,e,n){let i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||i.length===0)return we(!0);let r=i.map(o=>en(()=>{let s=bf(e)??n,a=Wd(o,s),c=wee(a)?a.canActivate(e,t):zn(s,()=>a(e,t));return qa(c).pipe(Io())}));return we(r).pipe($d())}function Ree(t,e,n){let i=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>gee(s)).filter(s=>s!==null).map(s=>en(()=>{let a=s.guards.map(c=>{let l=bf(s.node)??n,u=Wd(c,l),d=Cee(u)?u.canActivateChild(i,t):zn(l,()=>u(i,t));return qa(d).pipe(Io())});return we(a).pipe($d())}));return we(o).pipe($d())}function Oee(t,e,n,i,r){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return we(!0);let s=o.map(a=>{let c=bf(e)??r,l=Wd(a,c),u=xee(l)?l.canDeactivate(t,e,n,i):zn(c,()=>l(t,e,n,i));return qa(u).pipe(Io())});return we(s).pipe($d())}function Nee(t,e,n,i){let r=e.canLoad;if(r===void 0||r.length===0)return we(!0);let o=r.map(s=>{let a=Wd(s,t),c=yee(a)?a.canLoad(e,n):zn(t,()=>a(e,n));return qa(c)});return we(o).pipe($d(),ZN(i))}function ZN(t){return Ib(Wt(e=>{if(typeof e!="boolean")throw lv(t,e)}),Te(e=>e===!0))}function Fee(t,e,n,i){let r=e.canMatch;if(!r||r.length===0)return we(!0);let o=r.map(s=>{let a=Wd(s,t),c=Dee(a)?a.canMatch(e,n):zn(t,()=>a(e,n));return qa(c)});return we(o).pipe($d(),ZN(i))}var pf=class{constructor(e){this.segmentGroup=e||null}},mf=class extends Error{constructor(e){super(),this.urlTree=e}};function Pd(t){return ar(new pf(t))}function Pee(t){return ar(new ge(4e3,!1))}function Lee(t){return ar(QN(!1,tr.GuardRejected))}var kD=class{constructor(e,n){this.urlSerializer=e,this.urlTree=n}lineralizeSegments(e,n){let i=[],r=n.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return we(i);if(r.numberOfChildren>1||!r.children[bt])return Pee(`${e.redirectTo}`);r=r.children[bt]}}applyRedirectCommands(e,n,i,r,o){if(typeof n!="string"){let a=n,{queryParams:c,fragment:l,routeConfig:u,url:d,outlet:h,params:f,data:p,title:m}=r,v=zn(o,()=>a({params:f,data:p,queryParams:c,fragment:l,routeConfig:u,url:d,outlet:h,title:m}));if(v instanceof Bs)throw new mf(v);n=v}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),e,i);if(n[0]==="/")throw new mf(s);return s}applyRedirectCreateUrlTree(e,n,i,r){let o=this.createSegmentGroup(e,n.root,i,r);return new Bs(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){let i={};return Object.entries(e).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);i[r]=n[a]}else i[r]=o}),i}createSegmentGroup(e,n,i,r){let o=this.createSegments(e,n.segments,i,r),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,i,r)}),new Ut(o,s)}createSegments(e,n,i,r){return n.map(o=>o.path[0]===":"?this.findPosParam(e,o,r):this.findOrReturn(o,i))}findPosParam(e,n,i){let r=i[n.path.substring(1)];if(!r)throw new ge(4001,!1);return r}findOrReturn(e,n){let i=0;for(let r of n){if(r.path===e.path)return n.splice(i),r;i++}return e}},MD={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Vee(t,e,n,i,r){let o=FD(t,e,n);return o.matched?(i=aee(e,i),Fee(i,e,n,r).pipe(Te(s=>s===!0?o:X({},MD)))):we(o)}function FD(t,e,n){if(e.path==="**")return Bee(n);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||n.length>0)?X({},MD):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let r=(e.matcher||FJ)(n,t,e);if(!r)return X({},MD);let o={};Object.entries(r.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=r.consumed.length>0?X(X({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:n.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function Bee(t){return{matched:!0,parameters:t.length>0?RN(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function SN(t,e,n,i){return n.length>0&&zee(t,n,i)?{segmentGroup:new Ut(e,Hee(i,new Ut(n,t.children))),slicedSegments:[]}:n.length===0&&Uee(t,n,i)?{segmentGroup:new Ut(t.segments,jee(t,n,i,t.children)),slicedSegments:n}:{segmentGroup:new Ut(t.segments,t.children),slicedSegments:n}}function jee(t,e,n,i){let r={};for(let o of n)if(pv(t,e,o)&&!i[co(o)]){let s=new Ut([],{});r[co(o)]=s}return X(X({},i),r)}function Hee(t,e){let n={};n[bt]=e;for(let i of t)if(i.path===""&&co(i)!==bt){let r=new Ut([],{});n[co(i)]=r}return n}function zee(t,e,n){return n.some(i=>pv(t,e,i)&&co(i)!==bt)}function Uee(t,e,n){return n.some(i=>pv(t,e,i))}function pv(t,e,n){return(t.hasChildren()||e.length>0)&&n.pathMatch==="full"?!1:n.path===""}function qee(t,e,n,i){return co(t)!==i&&(i===bt||!pv(e,n,t))?!1:FD(e,t,n).matched}function $ee(t,e,n){return e.length===0&&!t.children[n]}var TD=class{};function Wee(t,e,n,i,r,o,s="emptyOnly"){return new AD(t,e,n,i,r,s,o).recognize()}var Gee=31,AD=class{constructor(e,n,i,r,o,s,a){this.injector=e,this.configLoader=n,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new kD(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new ge(4002,`'${e.segmentGroup}'`)}recognize(){let e=SN(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(Te(({children:n,rootSnapshot:i})=>{let r=new er(i,n),o=new cv("",r),s=eee(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let n=new Bd([],Object.freeze({}),Object.freeze(X({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),bt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,bt,n).pipe(Te(i=>({children:i,rootSnapshot:n})),ds(i=>{if(i instanceof mf)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof pf?this.noMatchError(i):i}))}processSegmentGroup(e,n,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(e,n,i,o):this.processSegment(e,n,i,i.segments,r,!0,o).pipe(Te(s=>s instanceof er?[s]:[]))}processChildren(e,n,i,r){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return Kt(o).pipe(us(s=>{let a=i.children[s],c=cee(n,s);return this.processSegmentGroup(e,c,a,s,r)}),__((s,a)=>(s.push(...a),s)),ia(null),p_(),Ei(s=>{if(s===null)return Pd(i);let a=JN(s);return Yee(a),we(a)}))}processSegment(e,n,i,r,o,s,a){return Kt(n).pipe(us(c=>this.processSegmentAgainstRoute(c._injector??e,n,c,i,r,o,s,a).pipe(ds(l=>{if(l instanceof pf)return we(null);throw l}))),Io(c=>!!c),ds(c=>{if(XN(c))return $ee(i,r,o)?we(new TD):Pd(i);throw c}))}processSegmentAgainstRoute(e,n,i,r,o,s,a,c){return qee(i,r,o,s)?i.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,i,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s,c):Pd(r):Pd(r)}expandSegmentAgainstRouteUsingRedirect(e,n,i,r,o,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=FD(n,r,o);if(!c)return Pd(n);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Gee&&(this.allowRedirects=!1));let f=new Bd(o,l,Object.freeze(X({},this.urlTree.queryParams)),this.urlTree.fragment,IN(r),co(r),r.component??r._loadedComponent??null,r,kN(r)),p=av(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(p.params),f.data=Object.freeze(p.data);let m=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,d,f,e);return this.applyRedirects.lineralizeSegments(r,m).pipe(Ei(v=>this.processSegment(e,i,n,v.concat(h),s,!1,a)))}matchSegmentAgainstRoute(e,n,i,r,o,s){let a=Vee(n,i,r,e,this.urlSerializer);return i.path==="**"&&(n.children={}),a.pipe(Nt(c=>c.matched?(e=i._injector??e,this.getChildConfig(e,i,r).pipe(Nt(({routes:l})=>{let u=i._loadedInjector??e,{parameters:d,consumedSegments:h,remainingSegments:f}=c,p=new Bd(h,d,Object.freeze(X({},this.urlTree.queryParams)),this.urlTree.fragment,IN(i),co(i),i.component??i._loadedComponent??null,i,kN(i)),m=av(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(m.params),p.data=Object.freeze(m.data);let{segmentGroup:v,slicedSegments:b}=SN(n,h,f,l);if(b.length===0&&v.hasChildren())return this.processChildren(u,l,v,p).pipe(Te(E=>new er(p,E)));if(l.length===0&&b.length===0)return we(new er(p,[]));let C=co(i)===o;return this.processSegment(u,l,v,b,C?bt:o,!0,p).pipe(Te(E=>new er(p,E instanceof er?[E]:[])))}))):Pd(n)))}getChildConfig(e,n,i){return n.children?we({routes:n.children,injector:e}):n.loadChildren?n._loadedRoutes!==void 0?we({routes:n._loadedRoutes,injector:n._loadedInjector}):Nee(e,n,i,this.urlSerializer).pipe(Ei(r=>r?this.configLoader.loadChildren(e,n).pipe(Wt(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):Lee(n))):we({routes:[],injector:e})}};function Yee(t){t.sort((e,n)=>e.value.outlet===bt?-1:n.value.outlet===bt?1:e.value.outlet.localeCompare(n.value.outlet))}function Qee(t){let e=t.value.routeConfig;return e&&e.path===""}function JN(t){let e=[],n=new Set;for(let i of t){if(!Qee(i)){e.push(i);continue}let r=e.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),n.add(r)):e.push(i)}for(let i of n){let r=JN(i.children);e.push(new er(i.value,r))}return e.filter(i=>!n.has(i))}function IN(t){return t.data||{}}function kN(t){return t.resolve||{}}function Kee(t,e,n,i,r,o){return Ei(s=>Wee(t,e,n,i,s.extractedUrl,r,o).pipe(Te(({state:a,tree:c})=>mt(X({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function Xee(t,e){return Ei(n=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=n;if(!r.length)return we(n);let o=new Set(r.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of e4(c))s.add(l);let a=0;return Kt(s).pipe(us(c=>o.has(c)?Zee(c,i,t,e):(c.data=av(c,c.parent,t).resolve,we(void 0))),Wt(()=>a++),bl(1),Ei(c=>a===s.size?we(n):vn))})}function e4(t){let e=t.children.map(n=>e4(n)).flat();return[t,...e]}function Zee(t,e,n,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!GN(r)&&(o[gf]=r.title),Jee(o,t,e,i).pipe(Te(s=>(t._resolvedData=s,t.data=av(t,t.parent,n).resolve,null)))}function Jee(t,e,n,i){let r=cD(t);if(r.length===0)return we({});let o={};return Kt(r).pipe(Ei(s=>ete(t[s],e,n,i).pipe(Io(),Wt(a=>{if(a instanceof ff)throw lv(new zd,a);o[s]=a}))),bl(1),_l(o),ds(s=>XN(s)?vn:ar(s)))}function ete(t,e,n,i){let r=bf(e)??i,o=Wd(t,r),s=o.resolve?o.resolve(e,n):zn(r,()=>o(e,n));return qa(s)}function sD(t){return Nt(e=>{let n=t(e);return n?Kt(n).pipe(Te(()=>e)):we(e)})}var t4=(()=>{let e=class e{buildTitle(i){let r,o=i.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===bt);return r}getResolvedTitleForRoute(i){return i.data[gf]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:()=>B(tte),providedIn:"root"});let t=e;return t})(),tte=(()=>{let e=class e extends t4{constructor(i){super(),this.title=i}updateTitle(i){let r=this.buildTitle(i);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(R(kT))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),wf=new q("",{providedIn:"root",factory:()=>({})}),ite=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=re({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ne],decls:1,vars:0,template:function(r,o){r&1&&xe(0,"router-outlet")},dependencies:[ND],encapsulation:2});let t=e;return t})();function PD(t){let e=t.children&&t.children.map(PD),n=e?mt(X({},t),{children:e}):X({},t);return!n.component&&!n.loadComponent&&(e||n.loadChildren)&&n.outlet&&n.outlet!==bt&&(n.component=ite),n}var uv=new q(""),LD=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=B(zm)}loadComponent(i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return we(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let r=qa(i.loadComponent()).pipe(Te(i4),Wt(s=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=s}),So(()=>{this.componentLoaders.delete(i)})),o=new as(r,()=>new K).pipe(Zs());return this.componentLoaders.set(i,o),o}loadChildren(i,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return we({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=nte(r,this.compiler,i,this.onLoadEndListener).pipe(So(()=>{this.childrenLoaders.delete(r)})),a=new as(s,()=>new K).pipe(Zs());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function nte(t,e,n,i){return qa(t.loadChildren()).pipe(Te(i4),Ei(r=>r instanceof Vu||Array.isArray(r)?we(r):Kt(e.compileModuleAsync(r))),Te(r=>{i&&i(t);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(n).injector,s=o.get(uv,[],{optional:!0,self:!0}).flat()),{routes:s.map(PD),injector:o}}))}function rte(t){return t&&typeof t=="object"&&"default"in t}function i4(t){return rte(t)?t.default:t}var VD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:()=>B(ote),providedIn:"root"});let t=e;return t})(),ote=(()=>{let e=class e{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,r){return i}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),n4=new q(""),r4=new q("");function ste(t,e,n){let i=t.get(r4),r=t.get(Fe);return t.get(ee).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=r.startViewTransition(()=>(o(),ate(t))),{onViewTransitionCreated:c}=i;return c&&zn(t,()=>c({transition:a,from:e,to:n})),s})}function ate(t){return new Promise(e=>{ri({read:()=>setTimeout(e)},{injector:t})})}var cte=new q(""),BD=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new K,this.transitionAbortSubject=new K,this.configLoader=B(LD),this.environmentInjector=B(Fi),this.urlSerializer=B(vf),this.rootContexts=B(_f),this.location=B(Bo),this.inputBindingEnabled=B(fv,{optional:!0})!==null,this.titleStrategy=B(t4),this.options=B(wf,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=B(VD),this.createViewTransition=B(n4,{optional:!0}),this.navigationErrorHandler=B(cte,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>we(void 0),this.rootComponentType=null;let i=o=>this.events.next(new gD(o)),r=o=>this.events.next(new vD(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=i}complete(){this.transitions?.complete()}handleNavigationRequest(i){let r=++this.navigationId;this.transitions?.next(mt(X(X({},this.transitions.value),i),{id:r}))}setupNavigations(i,r,o){return this.transitions=new Vt({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:af,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(We(s=>s.id!==0),Te(s=>mt(X({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Nt(s=>{let a=!1,c=!1;return we(s).pipe(Nt(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",tr.SupersededByNewNavigation),vn;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?mt(X({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!i.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=l.extras.onSameUrlNavigation??i.onSameUrlNavigation;if(!u&&d!=="reload"){let h="";return this.events.next(new Ua(l.id,this.urlSerializer.serialize(l.rawUrl),h,iv.IgnoredSameUrlNavigation)),l.resolve(!1),vn}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return we(l).pipe(Nt(h=>{let f=this.transitions?.getValue();return this.events.next(new Ud(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?vn:Promise.resolve(h)}),Kee(this.environmentInjector,this.configLoader,this.rootComponentType,i.config,this.urlSerializer,this.paramsInheritanceStrategy),Wt(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=mt(X({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new nv(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:h,extractedUrl:f,source:p,restoredState:m,extras:v}=l,b=new Ud(h,this.urlSerializer.serialize(f),p,m);this.events.next(b);let C=$N(this.rootComponentType).snapshot;return this.currentTransition=s=mt(X({},l),{targetSnapshot:C,urlAfterRedirects:f,extras:mt(X({},v),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,we(s)}else{let h="";return this.events.next(new Ua(l.id,this.urlSerializer.serialize(l.extractedUrl),h,iv.IgnoredByUrlHandlingStrategy)),l.resolve(!1),vn}}),Wt(l=>{let u=new hD(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),Te(l=>(this.currentTransition=s=mt(X({},l),{guards:mee(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),See(this.environmentInjector,l=>this.events.next(l)),Wt(l=>{if(s.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw lv(this.urlSerializer,l.guardsResult);let u=new fD(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(u)}),We(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",tr.GuardRejected),!1)),sD(l=>{if(l.guards.canActivateChecks.length)return we(l).pipe(Wt(u=>{let d=new pD(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),Nt(u=>{let d=!1;return we(u).pipe(Xee(this.paramsInheritanceStrategy,this.environmentInjector),Wt({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",tr.NoDataFromResolver)}}))}),Wt(u=>{let d=new mD(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),sD(l=>{let u=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(Wt(f=>{d.component=f}),Te(()=>{})));for(let f of d.children)h.push(...u(f));return h};return jr(u(l.targetSnapshot.root)).pipe(ia(null),wt(1))}),sD(()=>this.afterPreactivation()),Nt(()=>{let{currentSnapshot:l,targetSnapshot:u}=s,d=this.createViewTransition?.(this.environmentInjector,l.root,u.root);return d?Kt(d).pipe(Te(()=>s)):we(s)}),Te(l=>{let u=dee(i.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=mt(X({},l),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),Wt(()=>{this.events.next(new uf)}),pee(this.rootContexts,i.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),wt(1),Wt({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Xo(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),ot(this.transitionAbortSubject.pipe(Wt(l=>{throw l}))),So(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",tr.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),ds(l=>{if(c=!0,KN(l))this.events.next(new Vs(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),fee(l)?this.events.next(new qd(l.url,l.navigationBehaviorOptions)):s.resolve(!1);else{let u=new df(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0);try{let d=zn(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof ff){let{message:h,cancellationCode:f}=lv(this.urlSerializer,d);this.events.next(new Vs(s.id,this.urlSerializer.serialize(s.extractedUrl),h,f)),this.events.next(new qd(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(u);let h=i.errorHandler(l);s.resolve(!!h)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return vn}))}))}cancelNavigationTransition(i,r,o){let s=new Vs(i.id,this.urlSerializer.serialize(i.extractedUrl),r,o);this.events.next(s),i.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let i=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return i.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function lte(t){return t!==af}var jD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:()=>B(dte),providedIn:"root"});let t=e;return t})(),RD=class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}},dte=(()=>{let e=class e extends RD{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),o4=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:()=>B(ute),providedIn:"root"});let t=e;return t})(),ute=(()=>{let e=class e extends o4{constructor(){super(...arguments),this.location=B(Bo),this.urlSerializer=B(vf),this.options=B(wf,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=B(VD),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Bs,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=$N(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(i){return this.location.subscribe(r=>{r.type==="popstate"&&i(r.url,r.state)})}handleRouterEvent(i,r){if(i instanceof Ud)this.stateMemento=this.createStateMemento();else if(i instanceof Ua)this.rawUrlTree=r.initialUrl;else if(i instanceof nv){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else i instanceof uf?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):i instanceof Vs&&(i.code===tr.GuardRejected||i.code===tr.NoDataFromResolver)?this.restoreHistory(r):i instanceof df?this.restoreHistory(r,!0):i instanceof Xo&&(this.lastSuccessfulId=i.id,this.currentPageId=this.browserPageId)}setBrowserUrl(i,r){let o=i instanceof Bs?this.urlSerializer.serialize(i):i;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let s=this.browserPageId,a=X(X({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(o,"",a)}else{let s=X(X({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(i,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===i.finalUrl&&s===0&&(this.resetState(i),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(i),this.resetUrlToCurrentUrlTree())}resetState(i){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(i,r){return this.canceledNavigationResolution==="computed"?{navigationId:i,\u0275routerPageId:r}:{navigationId:i}}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),of=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(of||{});function s4(t,e){t.events.pipe(We(n=>n instanceof Xo||n instanceof Vs||n instanceof df||n instanceof Ua),Te(n=>n instanceof Xo||n instanceof Ua?of.COMPLETE:(n instanceof Vs?n.code===tr.Redirect||n.code===tr.SupersededByNewNavigation:!1)?of.REDIRECTING:of.FAILED),We(n=>n!==of.REDIRECTING),wt(1)).subscribe(()=>{e()})}function hte(t){throw t}var fte={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},pte={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ti=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=B(Vm),this.stateManager=B(o4),this.options=B(wf,{optional:!0})||{},this.pendingTasks=B(Fo),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=B(BD),this.urlSerializer=B(vf),this.location=B(Bo),this.urlHandlingStrategy=B(VD),this._events=new K,this.errorHandler=this.options.errorHandler||hte,this.navigated=!1,this.routeReuseStrategy=B(jD),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=B(uv,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!B(fv,{optional:!0}),this.eventsSubscription=new Me,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof Vs&&r.code!==tr.Redirect&&r.code!==tr.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Xo)this.navigated=!0;else if(r instanceof qd){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),l=X({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||lte(o.source)},a);this.scheduleNavigation(c,af,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}gte(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),af,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((i,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(i,"popstate",r)},0)})}navigateToSyncWithBrowser(i,r,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let l=X({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let c=this.parseUrl(i);this.scheduleNavigation(c,r,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(PD),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(i,r={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=X(X({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=o?o.snapshot:this.routerState.snapshot.root;h=HN(f)}catch{(typeof i[0]!="string"||i[0][0]!=="/")&&(i=[]),h=this.currentUrlTree.root}return zN(h,i,d,u??null)}navigateByUrl(i,r={skipLocationChange:!1}){let o=Yc(i)?i:this.parseUrl(i),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,af,null,r)}navigate(i,r={skipLocationChange:!1}){return mte(i),this.navigateByUrl(this.createUrlTree(i,r),r)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,r){let o;if(r===!0?o=X({},fte):r===!1?o=X({},pte):o=r,Yc(i))return wN(this.currentUrlTree,i,o);let s=this.parseUrl(i);return wN(this.currentUrlTree,s,o)}removeEmptyProps(i){return Object.entries(i).reduce((r,[o,s])=>(s!=null&&(r[o]=s),r),{})}scheduleNavigation(i,r,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,l,u;a?(c=a.resolve,l=a.reject,u=a.promise):u=new Promise((h,f)=>{c=h,l=f});let d=this.pendingTasks.add();return s4(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:s,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(h=>Promise.reject(h))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function mte(t){for(let e=0;e{let e=class e{constructor(i,r,o,s,a,c){this.router=i,this.route=r,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new K,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=i.events.subscribe(u=>{u instanceof Xo&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(i){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",i)}ngOnChanges(i){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(i){i==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Yc(i)?this.routerLinkInput=i:this.routerLinkInput=Array.isArray(i)?i:[i],this.setTabIndexIfNotOnNativeEl("0"))}onClick(i,r,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(i!==0||r||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let i=this.urlTree;this.href=i!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(i)):null;let r=this.href===null?null:xk(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(i,r){let o=this.renderer,s=this.el.nativeElement;r!==null?o.setAttribute(s,i,r):o.removeAttribute(s,i)}get urlTree(){return this.routerLinkInput===null?null:Yc(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(r){return new(r||e)(g(Ti),g(si),wn("tabindex"),g(va),g(ce),g(Ds))},e.\u0275dir=te({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&le("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Ve("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ee],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ee],replaceUrl:[2,"replaceUrl","replaceUrl",Ee],routerLink:"routerLink"},standalone:!0,features:[nt,lt]});let t=e;return t})();var hv=class{};var vte=(()=>{let e=class e{constructor(i,r,o,s,a){this.router=i,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(We(i=>i instanceof Xo),us(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(i,r){let o=[];for(let s of r){s.providers&&!s._injector&&(s._injector=Lm(s.providers,i,`Route: ${s.path}`));let a=s._injector??i,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return Kt(o).pipe(ta())}preloadConfig(i,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(i,r):o=we(null);let s=o.pipe(Ei(a=>a===null?we(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??i,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(r);return Kt([s,a]).pipe(ta())}else return s})}};e.\u0275fac=function(r){return new(r||e)(R(Ti),R(zm),R(Fi),R(hv),R(LD))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),a4=new q(""),bte=(()=>{let e=class e{constructor(i,r,o,s,a={}){this.urlSerializer=i,this.transitions=r,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(i=>{i instanceof Ud?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=i.navigationTrigger,this.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof Xo?(this.lastId=i.id,this.scheduleScrollEvent(i,this.urlSerializer.parse(i.urlAfterRedirects).fragment)):i instanceof Ua&&i.code===iv.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(i,this.urlSerializer.parse(i.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(i=>{i instanceof rv&&(i.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(i.position):i.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(i.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(i,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new rv(i,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){Hl()},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();function _te(t){return t.routerState.root}function Cf(t,e){return{\u0275kind:t,\u0275providers:e}}function yte(){let t=B(Je);return e=>{let n=t.get(Cn);if(e!==n.components[0])return;let i=t.get(Ti),r=t.get(c4);t.get(HD)===1&&i.initialNavigation(),t.get(l4,null,_t.Optional)?.setUpPreloading(),t.get(a4,null,_t.Optional)?.init(),i.resetRootComponentType(n.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var c4=new q("",{factory:()=>new K}),HD=new q("",{providedIn:"root",factory:()=>1});function wte(){return Cf(2,[{provide:HD,useValue:0},{provide:Wl,multi:!0,deps:[Je],useFactory:e=>{let n=e.get(iT,Promise.resolve());return()=>n.then(()=>new Promise(i=>{let r=e.get(Ti),o=e.get(c4);s4(r,()=>{i(!0)}),e.get(BD).afterPreactivation=()=>(i(!0),o.closed?we(void 0):o),r.initialNavigation()}))}}])}function Cte(){return Cf(3,[{provide:Wl,multi:!0,useFactory:()=>{let e=B(Ti);return()=>{e.setUpLocationChangeListener()}}},{provide:HD,useValue:2}])}var l4=new q("");function xte(t){return Cf(0,[{provide:l4,useExisting:vte},{provide:hv,useExisting:t}])}function Dte(){return Cf(8,[EN,{provide:fv,useExisting:EN}])}function Ete(t){let e=[{provide:n4,useValue:ste},{provide:r4,useValue:X({skipNextTransition:!!t?.skipInitialTransition},t)}];return Cf(9,e)}var MN=new q("ROUTER_FORROOT_GUARD"),Ste=[Bo,{provide:vf,useClass:zd},Ti,_f,{provide:si,useFactory:_te,deps:[Ti]},LD,[]],d4=(()=>{let e=class e{constructor(i){}static forRoot(i,r){return{ngModule:e,providers:[Ste,[],{provide:uv,multi:!0,useValue:i},{provide:MN,useFactory:Tte,deps:[[Ti,new Gr,new fa]]},{provide:wf,useValue:r||{}},r?.useHash?kte():Mte(),Ite(),r?.preloadingStrategy?xte(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Ate(r):[],r?.bindToComponentInputs?Dte().\u0275providers:[],r?.enableViewTransitions?Ete().\u0275providers:[],Rte()]}}static forChild(i){return{ngModule:e,providers:[{provide:uv,multi:!0,useValue:i}]}}};e.\u0275fac=function(r){return new(r||e)(R(MN,8))},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})();function Ite(){return{provide:a4,useFactory:()=>{let t=B(oT),e=B(ee),n=B(wf),i=B(BD),r=B(vf);return n.scrollOffset&&t.setOffset(n.scrollOffset),new bte(r,i,t,e,n)}}}function kte(){return{provide:Ds,useClass:rT}}function Mte(){return{provide:Ds,useClass:dw}}function Tte(t){return"guarded"}function Ate(t){return[t.initialNavigation==="disabled"?Cte().\u0275providers:[],t.initialNavigation==="enabledBlocking"?wte().\u0275providers:[]]}var TN=new q("");function Rte(){return[{provide:TN,useFactory:yte},{provide:Hm,multi:!0,useExisting:TN}]}var Df="Service workers are disabled or not supported by this browser";function Ote(t){return en(()=>ar(new Error(t)))}var Gd=class{constructor(e){if(this.serviceWorker=e,!e)this.worker=this.events=this.registration=Ote(Df);else{let i=tn(e,"controllerchange").pipe(Te(()=>e.controller)),r=en(()=>we(e.controller)),o=Eo(r,i);this.worker=o.pipe(We(u=>!!u)),this.registration=this.worker.pipe(Nt(()=>e.getRegistration()));let l=tn(e,"message").pipe(Te(u=>u.data)).pipe(We(u=>u&&u.type)).pipe(D_());l.connect(),this.events=l}}postMessage(e,n){return this.worker.pipe(wt(1),Wt(i=>{i.postMessage(X({action:e},n))})).toPromise().then(()=>{})}postMessageWithOperation(e,n,i){let r=this.waitForOperationCompleted(i),o=this.postMessage(e,n);return Promise.all([o,r]).then(([,s])=>s)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(e){let n;return typeof e=="string"?n=i=>i.type===e:n=i=>e.includes(i.type),this.events.pipe(We(n))}nextEventOfType(e){return this.eventsOfType(e).pipe(wt(1))}waitForOperationCompleted(e){return this.eventsOfType("OPERATION_COMPLETED").pipe(We(n=>n.nonce===e),wt(1),Te(n=>{if(n.result!==void 0)return n.result;throw new Error(n.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},p4=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,this.pushManager=null,this.subscriptionChanges=new K,!i.isEnabled){this.messages=ic,this.notificationClicks=ic,this.subscription=ic;return}this.messages=this.sw.eventsOfType("PUSH").pipe(Te(o=>o.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(Te(o=>o.data)),this.pushManager=this.sw.registration.pipe(Te(o=>o.pushManager));let r=this.pushManager.pipe(Nt(o=>o.getSubscription()));this.subscription=yt(r,this.subscriptionChanges)}requestSubscription(i){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(Df));let r={userVisibleOnly:!0},o=this.decodeBase64(i.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),s=new Uint8Array(new ArrayBuffer(o.length));for(let a=0;aa.subscribe(r)),wt(1)).toPromise().then(a=>(this.subscriptionChanges.next(a),a))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(Df));let i=r=>{if(r===null)throw new Error("Not subscribed to push notifications.");return r.unsubscribe().then(o=>{if(!o)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(wt(1),Nt(i)).toPromise()}decodeBase64(i){return atob(i)}};e.\u0275fac=function(r){return new(r||e)(R(Gd))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),m4=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,!i.isEnabled){this.versionUpdates=ic,this.unrecoverable=ic;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Df));let i=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:i},i)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Df));let i=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:i},i)}};e.\u0275fac=function(r){return new(r||e)(R(Gd))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();var u4=new q("");function Nte(t,e,n,i){return()=>{if(!(Yl(i)&&"serviceWorker"in navigator&&n.enabled!==!1))return;let r=t.get(ee),o=t.get(Cn);r.runOutsideAngular(()=>{let a=navigator.serviceWorker,c=()=>a.controller?.postMessage({action:"INITIALIZE"});a.addEventListener("controllerchange",c),o.onDestroy(()=>{a.removeEventListener("controllerchange",c)})});let s;if(typeof n.registrationStrategy=="function")s=n.registrationStrategy();else{let[a,...c]=(n.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":s=we(null);break;case"registerWithDelay":s=h4(+c[0]||0);break;case"registerWhenStable":s=c[0]?yt(f4(t),h4(+c[0])):f4(t);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}r.runOutsideAngular(()=>s.pipe(wt(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:n.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function h4(t){return we(null).pipe(na(t))}function f4(t){return t.get(Cn).isStable.pipe(We(n=>n))}function Fte(t,e){return new Gd(Yl(e)&&t.enabled!==!1?navigator.serviceWorker:void 0)}var xf=class{};function Pte(t,e={}){return Ll([p4,m4,{provide:u4,useValue:t},{provide:xf,useValue:e},{provide:Gd,useFactory:Fte,deps:[xf,sn]},{provide:Wl,useFactory:Nte,deps:[Je,u4,xf,sn],multi:!0}])}var g4=(()=>{let e=class e{static register(i,r={}){return{ngModule:e,providers:[Pte(i,r)]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[p4,m4]});let t=e;return t})();var Lte="https://accounts.google.com/gsi/client",Yd=(()=>{class t{gsiLoadedSource=new bi(1);constructor(){let n=document.createElement("script");n.src=Lte,n.type="text/javascript",n.onload=()=>{this.gsiLoadedSource.next(!0),this.gsiLoadedSource.complete()},document.getElementsByTagName("head")[0].appendChild(n)}onLoad(){return this.gsiLoadedSource}static \u0275fac=function(i){return new(i||t)};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var b4="credential",mv=(()=>{class t{gsiLoader;authenticated=new bi(1);constructor(n,i){this.gsiLoader=i,this.gsiLoader.onLoad().subscribe(()=>{google.accounts.id.initialize({client_id:n.client_id,auto_select:!0,callback:o=>{localStorage.setItem(b4,o.credential),this.authenticated.next(o.credential),this.authenticated.complete()}});let r=localStorage.getItem(b4);this.isValid(r)?(console.log("using stored credential"),this.authenticated.next(r),this.authenticated.complete()):google.accounts.id.prompt(o=>{})})}isValid(n){if(!n)return!1;let{exp:i}=JSON.parse(atob(n.split(".")[1]));return new Date().getTime(){class t{gsiLoader;signIn;client;clientLoaded=new bi(1);gapiLoaded=new bi(1);constructor(n,i,r){this.gsiLoader=i,this.signIn=r,this.loadGapi(),tc([this.onLoad(),this.gsiLoader.onLoad(),this.signIn.onSignedIn()]).subscribe(([o,s,a])=>{this.client=google.accounts.oauth2.initTokenClient({client_id:n.client_id,login_hint:this.extractEmail(a),scope:n.scope,callback:()=>{},prompt:n.prompt||""}),this.clientLoaded.next(this.client),this.clientLoaded.complete()})}onClientLoaded(){return this.clientLoaded}onLoad(){return this.gapiLoaded}loadGapi(){let n=document.createElement("script");n.src=Bte,n.type="text/javascript",n.onload=()=>{gapi.load("client",()=>{gapi.client.init({}).then(()=>{this.gapiLoaded.next(!0),this.gapiLoaded.complete()})})},document.getElementsByTagName("head")[0].appendChild(n)}extractEmail(n){let{email:i,sub:r}=JSON.parse(atob(n.split(".")[1]));return i}static \u0275fac=function(i){return new(i||t)(R(Ef),R(Yd),R(mv))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var gv="accessToken",zD="accessTokenRefresh",Kd=(()=>{class t{googleApiLoader;accessToken;tokenClient;accessTokenSource=new bi(1);constructor(n){this.googleApiLoader=n,this.googleApiLoader.onClientLoaded().subscribe(i=>this.checkStoredAccessToken(i))}checkStoredAccessToken(n){this.tokenClient=n;let i=localStorage.getItem(gv);i&&(this.isTokenValid()?(console.log("reusing stored access token"),this.accessToken||(this.accessToken=i,gapi.client.setToken({access_token:this.accessToken}),this.accessTokenSource.next(this.accessToken))):this.fetchAccessToken())}isTokenValid(){let n=localStorage.getItem(gv),i=parseInt(localStorage.getItem(zD)),r=new Date().getTime();return n&&r{this.isTokenValid()?n(this.accessToken):this.googleApiLoader.onClientLoaded().subscribe(i=>{this.tokenClient=i,i.callback=r=>{n(this.handleAccessToken(r))},i.requestAccessToken()})})})}handleAccessToken(n){this.accessToken=n.access_token;let i=n.expires_in*800;return localStorage.setItem(gv,this.accessToken),localStorage.setItem(zD,(new Date().getTime()+i).toString()),this.accessTokenSource.next(this.accessToken),this.accessToken}invalidate(){this.accessToken&&this.tokenClient&&(localStorage.removeItem(gv),localStorage.removeItem(zD),this.accessToken="",this.accessTokenSource.next(this.accessToken))}static \u0275fac=function(i){return new(i||t)(R(Qd))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var Nn=(()=>{class t{accessTokenService;signedIn;signInPending;get authState(){return this.accessTokenService.accessTokenSource}constructor(n){this.accessTokenService=n,this.authState.subscribe(i=>{this.signedIn=!!i,this.signInPending=!1})}signIn(){this.signInPending=!0,this.accessTokenService.fetchAccessToken()}refresh(){return this.accessTokenService.fetchAccessToken()}signOut(){this.accessTokenService.invalidate()}isSignedIn(){return this.signedIn}isSignInPending(){return this.signInPending}static \u0275fac=function(i){return new(i||t)(R(Kd))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var y4=(()=>{class t{static forRoot(n){return{ngModule:t,providers:[n,Kd,Qd,Nn,mv,Yd]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=_e({type:t});static \u0275inj=be({imports:[Wi]})}return t})();var vv={production:!0};var n9=Pr(Gs());var Ys=class{tuneBook;descriptor;abc;constructor(e,n,i){this.tuneBook=e,this.descriptor=n,this.abc=i}};var ZL=Pr(Gs());var Zv=(()=>{class t{httpClient;constructor(n){this.httpClient=n}loadTuneBook(n){return Re(this,null,function*(){let i=yield this.httpClient.get(`assets/${n.uri}`,{responseType:"text"}).toPromise(),r=new ZL.TuneBook(i);return new Ys(r,n,i)})}loadTuneBookCollection(){return Re(this,null,function*(){return this.httpClient.get("assets/tunebook-collection.json").toPromise()})}static \u0275fac=function(i){return new(i||t)(R(Ss))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var t9=Pr(Gs());var JL=Pr(bc());var Jv=class{boundary;mimeType;parts;body;constructor(){this.boundary=Math.random().toString(36).slice(2),this.mimeType='multipart/related; boundary="'+this.boundary+'"',this.parts=[]}append(e,n){if(this.body!==void 0)throw new Error("Builder has already been finalized.");return this.parts.push(`\r + )`}_isAttachedToDom(){let i=this._elementRef.nativeElement;if(i.getRootNode){let r=i.getRootNode();return r&&r!==i}return document.documentElement.contains(i)}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Ge),g(ee),g($t),g(et),g(kY,8),g(Bt,8),g(Fe))},e.\u0275cmp=re({type:e,selectors:[["mat-form-field"]],contentQueries:function(r,o,s){if(r&1&&(NM(s,o._labelChild,Wo,5),ct(s,yd,5),ct(s,EY,5),ct(s,H3,5),ct(s,xY,5),ct(s,O3,5)),r&2){FM();let a;pe(a=me())&&(o._formFieldControl=a.first),pe(a=me())&&(o._prefixChildren=a),pe(a=me())&&(o._suffixChildren=a),pe(a=me())&&(o._errorChildren=a),pe(a=me())&&(o._hintChildren=a)}},viewQuery:function(r,o){if(r&1&&(ze(tY,5),ze(iY,5),ze(nY,5),ze(N3,5),ze(L3,5),ze(P3,5)),r&2){let s;pe(s=me())&&(o._textField=s.first),pe(s=me())&&(o._iconPrefixContainer=s.first),pe(s=me())&&(o._textPrefixContainer=s.first),pe(s=me())&&(o._floatingLabel=s.first),pe(s=me())&&(o._notchedOutline=s.first),pe(s=me())&&(o._lineRipple=s.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(r,o){r&2&&Oe("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[Ye([{provide:Os,useExisting:e},{provide:U3,useExisting:e}]),Ne],ngContentSelectors:oY,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(r,o){if(r&1){let s=st();at(rY),ve(0,cY,1,1,"ng-template",null,0,X1),D(2,"div",4,1),le("click",function(c){return Se(s),Ie(o._control.onContainerClick(c))}),ve(4,lY,1,0,"div",5),D(5,"div",6),ve(6,hY,2,2,"div",7)(7,fY,3,0,"div",8)(8,pY,3,0,"div",9),D(9,"div",10),ve(10,gY,1,1,null,11),ke(11),I(),ve(12,vY,2,0,"div",12)(13,bY,2,0,"div",13),I(),ve(14,_Y,1,0,"div",14),I(),D(15,"div",15),ve(16,yY,2,1,"div",16)(17,CY,5,2,"div",17),I()}if(r&2){let s;A(2),Oe("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),A(2),tt(!o._hasOutline()&&!o._control.disabled?4:-1),A(2),tt(o._hasOutline()?6:-1),A(),tt(o._hasIconPrefix?7:-1),A(),tt(o._hasTextPrefix?8:-1),A(2),tt(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),A(2),tt(o._hasTextSuffix?12:-1),A(),tt(o._hasIconSuffix?13:-1),A(),tt(o._hasOutline()?-1:14),A(),Oe("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),A(),tt((s=o._getDisplayedMessages())==="error"?16:s==="hint"?17:-1)}},dependencies:[N3,L3,uw,P3,O3],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color);caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color);caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--disabled .cdk-high-contrast-active .mdc-text-field__input{background-color:Window}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape)}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--outlined{height:56px;overflow:visible;padding-left:16px;padding-right:16px}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.cdk-high-contrast-active .mdc-text-field--disabled .mdc-floating-label{z-index:1}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color);border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;width:12px;border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape)}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 24px)}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[IY.transitionMessages]},changeDetection:0});let t=e;return t})(),Fc=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,Wi,ud,Ze]});let t=e;return t})();var AY=["panel"],RY=["*"];function OY(t,e){if(t&1){let n=st();D(0,"div",1,0),le("@panelAnimation.done",function(r){Se(n);let o=se();return Ie(o._animationDone.next(r))}),ke(2),I()}if(t&2){let n=e.id,i=se();_i(i._classList),Oe("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),ie("id",i.id)("@panelAnimation",i.isOpen?"visible":"hidden"),Ve("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(n))}}var NY=Yt("panelAnimation",[kt("void, hidden",Ue({opacity:0,transform:"scaleY(0.8)"})),xt(":enter, hidden => visible",[T3([St("0.03s linear",Ue({opacity:1})),St("0.12s cubic-bezier(0, 0, 0.2, 1)",Ue({transform:"scaleY(1)"}))])]),xt(":leave, visible => hidden",[St("0.075s linear",Ue({opacity:0}))])]),FY=0,qC=class{constructor(e,n){this.source=e,this.option=n}},q3=new q("mat-autocomplete-default-options",{providedIn:"root",factory:PY});function PY(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}var $3=(()=>{let e=class e{get isOpen(){return this._isOpen&&this.showPanel}_setColor(i){this._color=i,this._changeDetectorRef.markForCheck()}set classList(i){this._classList=i,this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(i){this._hideSingleSelectionIndicator=i,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(let i of this.options)i._changeDetectorRef.markForCheck()}constructor(i,r,o,s){this._changeDetectorRef=i,this._elementRef=r,this._defaults=o,this._activeOptionChanges=Me.EMPTY,this._animationDone=new oe,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new oe,this.opened=new oe,this.closed=new oe,this.optionActivated=new oe,this.id=`mat-autocomplete-${FY++}`,this.inertGroups=s?.SAFARI||!1,this.autoActiveFirstOption=!!o.autoActiveFirstOption,this.autoSelectActiveOption=!!o.autoSelectActiveOption,this.requireSelection=!!o.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new fd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(i=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[i]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(i){this.panel&&(this.panel.nativeElement.scrollTop=i)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(i){let r=new qC(this,i);this.optionSelected.emit(r)}_getPanelAriaLabelledby(i){if(this.ariaLabel)return null;let r=i?i+" ":"";return this.ariaLabelledby?r+this.ariaLabelledby:i}_skipPredicate(){return!1}};e.\u0275fac=function(r){return new(r||e)(g(Ge),g(ce),g(q3),g(et))},e.\u0275cmp=re({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(r,o,s){if(r&1&&(ct(s,qo,5),ct(s,Th,5)),r&2){let a;pe(a=me())&&(o.options=a),pe(a=me())&&(o.optionGroups=a)}},viewQuery:function(r,o){if(r&1&&(ze(Rt,7),ze(AY,5)),r&2){let s;pe(s=me())&&(o.template=s.first),pe(s=me())&&(o.panel=s.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",Ee],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",Ee],requireSelection:[2,"requireSelection","requireSelection",Ee],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",Ee],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Ee]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[Ye([{provide:Mh,useExisting:e}]),nt,Ne],ngContentSelectors:RY,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(r,o){r&1&&(at(),ve(0,OY,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape);box-shadow:var(--mat-autocomplete-container-elevation-shadow);background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[NY]},changeDetection:0});let t=e;return t})();var LY={provide:Uo,useExisting:li(()=>$C),multi:!0};var W3=new q("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=B(Pt);return()=>t.scrollStrategies.reposition()}});function VY(t){return()=>t.scrollStrategies.reposition()}var BY={provide:W3,deps:[Pt],useFactory:VY},$C=(()=>{let e=class e{constructor(i,r,o,s,a,c,l,u,d,h,f){this._element=i,this._overlay=r,this._viewContainerRef=o,this._zone=s,this._changeDetectorRef=a,this._dir=l,this._formField=u,this._document=d,this._viewportRuler=h,this._defaults=f,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Me.EMPTY,this._breakpointObserver=B(Da),this._handsetLandscapeSubscription=Me.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new K,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._initialized=new K,this._injector=B(Je),this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=en(()=>{let p=this.autocomplete?this.autocomplete.options:null;return p?p.changes.pipe(Vt(p),Nt(()=>yt(...p.map(m=>m.onSelectionChange)))):this._initialized.pipe(Nt(()=>this.optionSelections))}),this._handlePanelKeydown=p=>{(p.keyCode===27&&!zt(p)||p.keyCode===38&&zt(p,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),p.stopPropagation(),p.preventDefault())},this._trackedModal=null,this._scrollStrategy=c}ngAfterViewInit(){this._initialized.next(),this._initialized.complete();let i=this._getWindow();typeof i<"u"&&this._zone.runOutsideAngular(()=>i.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(i){i.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){let i=this._getWindow();typeof i<"u"&&i.removeEventListener("blur",this._windowBlurHandler),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&Na(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return yt(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(We(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(We(()=>this._overlayAttached)):we()).pipe(Te(i=>i instanceof Ih?i:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return yt(tn(this._document,"click"),tn(this._document,"auxclick"),tn(this._document,"touchend")).pipe(We(i=>{let r=cn(i),o=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,s=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&r!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(r))&&(!s||!s.contains(r))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(r)}))}writeValue(i){Promise.resolve(null).then(()=>this._assignOptionValue(i))}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._element.nativeElement.disabled=i}_handleKeydown(i){let r=i.keyCode,o=zt(i);if(r===27&&!o&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&r===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){let s=this.autocomplete._keyManager.activeItem,a=r===38||r===40;r===9||a&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):a&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(a||this.autocomplete._keyManager.activeItem!==s)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(i){let r=i.target,o=r.value;if(r.type==="number"&&(o=o==""?null:parseFloat(o)),this._previousValue!==o){if(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),!o)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let s=this.autocomplete.options?.find(a=>a.selected);if(s){let a=this._getDisplayValue(s.value);o!==a&&s.deselect(!1)}}if(this._canOpen()&&this._document.activeElement===i.target){let s=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(s)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(i=!1){this._formField&&this._formField.floatLabel==="auto"&&(i?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let i=new $e(o=>{ri(()=>{o.next()},{injector:this._injector})}),r=this.autocomplete.options.changes.pipe(Wt(()=>this._positionStrategy.reapplyLastPosition()),na(0));return yt(i,r).pipe(Nt(()=>this._zone.run(()=>{let o=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),wt(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(i){let r=this.autocomplete;return r&&r.displayWith?r.displayWith(i):i}_assignOptionValue(i){let r=this._getDisplayValue(i);i==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(r??"")}_updateNativeInputValue(i){this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(i){let r=this.autocomplete,o=i?i.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),r._emitSelectEvent(o),this._element.nativeElement.focus()):r.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),r._animationDone?r._animationDone.pipe(wt(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(i,r){this.autocomplete?.options?.forEach(o=>{o!==i&&o.selected&&o.deselect(r)})}_openPanelInternal(i=this._element.nativeElement.value){if(this._attachOverlay(i),this._floatLabel(),this._trackedModal){let r=this.autocomplete.id;gd(this._trackedModal,"aria-owns",r)}}_attachOverlay(i){this.autocomplete;let r=this._overlayRef;r?(this._positionStrategy.setOrigin(this._getConnectedElement()),r.updateSize({width:this._getPanelWidth()})):(this._portal=new Ki(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),r=this._overlay.create(this._getOverlayConfig()),this._overlayRef=r,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&r&&r.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(nd.HandsetLandscape).subscribe(s=>{s.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),r&&!r.hasAttached()&&(r.attach(this._portal),this._valueOnAttach=i,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let o=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&o!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let i=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=i.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=i.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Tn({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){let i=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(i),this._positionStrategy=i,i}_setStrategyPositions(i){let r=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,s=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],a;this.position==="above"?a=s:this.position==="below"?a=r:a=[...r,...s],i.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let i=this.autocomplete;if(i.autoActiveFirstOption){let r=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!i)return;let r=this.autocomplete.id;this._trackedModal&&Na(this._trackedModal,"aria-owns",r),gd(i,"aria-owns",r),this._trackedModal=i}_clearFromModal(){if(this._trackedModal){let i=this.autocomplete.id;Na(this._trackedModal,"aria-owns",i),this._trackedModal=null}}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Pt),g(qt),g(ee),g(Ge),g(W3),g($t,8),g(Os,9),g(Fe,8),g(Gn),g(q3,8))},e.\u0275dir=te({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(r,o){r&1&&le("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),r&2&&Ve("autocomplete",o.autocompleteAttribute)("role",o.autocompleteDisabled?null:"combobox")("aria-autocomplete",o.autocompleteDisabled?null:"list")("aria-activedescendant",o.panelOpen&&o.activeOption?o.activeOption.id:null)("aria-expanded",o.autocompleteDisabled?null:o.panelOpen.toString())("aria-controls",o.autocompleteDisabled||!o.panelOpen||o.autocomplete==null?null:o.autocomplete.id)("aria-haspopup",o.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",Ee]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[Ye([LY]),nt,lt]});let t=e;return t})(),G3=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[BY],imports:[An,vd,Ze,Wi,$n,vd,Ze]});let t=e;return t})();var HY=["mat-button",""],Q3=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],K3=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var zY=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var UY=["mat-mini-fab",""],qY='.mat-mdc-fab-base{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color);border-radius:var(--mdc-fab-container-shape);color:var(--mat-fab-foreground-color, inherit);box-shadow:var(--mdc-fab-container-elevation-shadow)}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color)}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity)}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity)}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity)}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow)}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color);border-radius:var(--mdc-fab-small-container-shape);color:var(--mat-fab-small-foreground-color, inherit);box-shadow:var(--mdc-fab-small-container-elevation-shadow)}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity)}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity)}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity)}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow)}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow)}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow)}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mdc-extended-fab-container-elevation-shadow);height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape);font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow)}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow)}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow)}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}',$Y=["mat-icon-button",""],WY=["*"];var GY=new q("MAT_BUTTON_CONFIG");var YY=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],WC=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(i){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,i)}get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=i,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._updateRippleDisabled()}constructor(i,r,o,s){this._elementRef=i,this._platform=r,this._ngZone=o,this._animationMode=s,this._focusMonitor=B(Yi),this._rippleLoader=B(y3),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let a=B(GY,{optional:!0}),c=i.nativeElement,l=c.classList;this.disabledInteractive=a?.disabledInteractive??!1,this.color=a?.color??null,this._rippleLoader?.configureRipple(c,{className:"mat-mdc-button-ripple"});for(let{attribute:u,mdcClasses:d}of YY)c.hasAttribute(u)&&l.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(i="program",r){i?this._focusMonitor.focusVia(this._elementRef.nativeElement,i,r):this._elementRef.nativeElement.focus(r)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};e.\u0275fac=function(r){Hl()},e.\u0275dir=te({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Ee],disabled:[2,"disabled","disabled",Ee],ariaDisabled:[2,"aria-disabled","ariaDisabled",Ee],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ee]},features:[nt]});let t=e;return t})();var ei=(()=>{let e=class e extends WC{constructor(i,r,o,s){super(i,r,o,s)}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(et),g(ee),g(Bt,8))},e.\u0275cmp=re({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(r,o){r&2&&(Ve("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),_i(o.color?"mat-"+o.color:""),Oe("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[He,Ne],attrs:HY,ngContentSelectors:K3,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(at(Q3),xe(0,"span",0),ke(1),D(2,"span",1),ke(3,1),I(),ke(4,2),xe(5,"span",2)(6,"span",3)),r&2&&Oe("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color);background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow);height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color);background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight);border-radius:var(--mdc-outlined-button-container-shape);border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color);border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let t=e;return t})();var QY=new q("mat-mdc-fab-default-options",{providedIn:"root",factory:X3});function X3(){return{color:"accent"}}var Y3=X3();var Z3=(()=>{let e=class e extends WC{constructor(i,r,o,s,a){super(i,r,o,s),this._options=a,this._isFab=!0,this._options=this._options||Y3,this.color=this._options.color||Y3.color}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(et),g(ee),g(Bt,8),g(QY,8))},e.\u0275cmp=re({type:e,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(r,o){r&2&&(Ve("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),_i(o.color?"mat-"+o.color:""),Oe("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[He,Ne],attrs:UY,ngContentSelectors:K3,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(at(Q3),xe(0,"span",0),ke(1),D(2,"span",1),ke(3,1),I(),ke(4,2),xe(5,"span",2)(6,"span",3)),r&2&&Oe("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[qY],encapsulation:2,changeDetection:0});let t=e;return t})();var Ns=(()=>{let e=class e extends WC{constructor(i,r,o,s){super(i,r,o,s),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(et),g(ee),g(Bt,8))},e.\u0275cmp=re({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(r,o){r&2&&(Ve("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),_i(o.color?"mat-"+o.color:""),Oe("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[He,Ne],attrs:$Y,ngContentSelectors:WY,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(at(),xe(0,"span",0),ke(1),xe(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',zY],encapsulation:2,changeDetection:0});let t=e;return t})();var wd=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,As,Ze]});let t=e;return t})();var J3=In({passive:!0}),eR=(()=>{let e=class e{constructor(i,r){this._platform=i,this._ngZone=r,this._monitoredElements=new Map}monitor(i){if(!this._platform.isBrowser)return vn;let r=Sn(i),o=this._monitoredElements.get(r);if(o)return o.subject;let s=new K,a="cdk-text-field-autofilled",c=l=>{l.animationName==="cdk-text-field-autofill-start"&&!r.classList.contains(a)?(r.classList.add(a),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&r.classList.contains(a)&&(r.classList.remove(a),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{r.addEventListener("animationstart",c,J3),r.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(r,{subject:s,unlisten:()=>{r.removeEventListener("animationstart",c,J3)}}),s}stopMonitoring(i){let r=Sn(i),o=this._monitoredElements.get(r);o&&(o.unlisten(),o.subject.complete(),r.classList.remove("cdk-text-field-autofill-monitored"),r.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(r))}ngOnDestroy(){this._monitoredElements.forEach((i,r)=>this.stopMonitoring(r))}};e.\u0275fac=function(r){return new(r||e)(R(et),R(ee))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var tR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})();var GC=new q("MAT_INPUT_VALUE_ACCESSOR"),XY=["button","checkbox","file","hidden","image","radio","range","reset","submit"],ZY=0,On=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){this._disabled=wi(i),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(i){this._id=i||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Ma.required)??!1}set required(i){this._required=wi(i)}get type(){return this._type}set type(i){this._type=i||"text",this._validateType(),!this._isTextarea&&uC().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get value(){return this._inputValueAccessor.value}set value(i){i!==this.value&&(this._inputValueAccessor.value=i,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(i){this._readonly=wi(i)}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(i,r,o,s,a,c,l,u,d,h){this._elementRef=i,this._platform=r,this.ngControl=o,this._autofillMonitor=u,this._ngZone=d,this._formField=h,this._uid=`mat-input-${ZY++}`,this._webkitBlinkWheelListenerAttached=!1,this.focused=!1,this.stateChanges=new K,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(m=>uC().has(m)),this._iOSKeyupListener=m=>{let v=m.target;!v.value&&v.selectionStart===0&&v.selectionEnd===0&&(v.setSelectionRange(1,1),v.setSelectionRange(0,0))},this._webkitBlinkWheelListener=()=>{};let f=this._elementRef.nativeElement,p=f.nodeName.toLowerCase();this._inputValueAccessor=l||f,this._previousNativeValue=this.value,this.id=this.id,r.IOS&&d.runOutsideAngular(()=>{i.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Tc(c,o,a,s,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=p==="select",this._isTextarea=p==="textarea",this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(i=>{this.autofilled=i.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(i){this._elementRef.nativeElement.focus(i)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(i){i!==this.focused&&(this.focused=i,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let i=this._elementRef.nativeElement.value;this._previousNativeValue!==i&&(this._previousNativeValue=i,this.stateChanges.next())}_dirtyCheckPlaceholder(){let i=this._getPlaceholder();if(i!==this._previousPlaceholder){let r=this._elementRef.nativeElement;this._previousPlaceholder=i,i?r.setAttribute("placeholder",i):r.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){XY.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let i=this._elementRef.nativeElement.validity;return i&&i.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let i=this._elementRef.nativeElement,r=i.options[0];return this.focused||i.multiple||!this.empty||!!(i.selectedIndex>-1&&r&&r.label)}else return this.focused||!this.empty}setDescribedByIds(i){i.length?this._elementRef.nativeElement.setAttribute("aria-describedby",i.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let i=this._elementRef.nativeElement;return this._isNativeSelect&&(i.multiple||i.size>1)}_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&this._type!=="number"&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(et),g(vr,10),g(Yn,8),g(yh,8),g(kh),g(GC,10),g(eR),g(ee),g(Os,8))},e.\u0275dir=te({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(r,o){r&1&&le("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),r&2&&(pr("id",o.id)("disabled",o.disabled)("required",o.required),Ve("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),Oe("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[Ye([{provide:yd,useExisting:e}]),lt]});let t=e;return t})(),iR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,Fc,Fc,tR,Ze]});let t=e;return t})();var JY=["mat-calendar-body",""];function eQ(t,e){return this._trackRow(e)}var dR=(t,e)=>e.id;function tQ(t,e){if(t&1&&(D(0,"tr",0)(1,"td",3),z(2),I()()),t&2){let n=se();A(),hi("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),Ve("colspan",n.numCols),A(),Ct(" ",n.label," ")}}function iQ(t,e){if(t&1&&(D(0,"td",3),z(1),I()),t&2){let n=se(2);hi("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),Ve("colspan",n._firstRowOffset),A(),Ct(" ",n._firstRowOffset>=n.labelMinRequiredCells?n.label:""," ")}}function nQ(t,e){if(t&1){let n=st();D(0,"td",6)(1,"button",7),le("click",function(r){let o=Se(n).$implicit,s=se(2);return Ie(s._cellClicked(o,r))})("focus",function(r){let o=Se(n).$implicit,s=se(2);return Ie(s._emitActiveDateChange(o,r))}),D(2,"span",8),z(3),I(),xe(4,"span",9),I()()}if(t&2){let n=e.$implicit,i=e.$index,r=se().$index,o=se();hi("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),Ve("data-mat-row",r)("data-mat-col",i),A(),Oe("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(n.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(n.compareValue))("mat-calendar-body-in-range",o._isInRange(n.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(n.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(n.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(n.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(n.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(n.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(n.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(n.compareValue))("mat-calendar-body-in-preview",o._isInPreview(n.compareValue)),ie("ngClass",n.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),Ve("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-pressed",o._isSelected(n.compareValue))("aria-current",o.todayValue===n.compareValue?"date":null)("aria-describedby",o._getDescribedby(n.compareValue)),A(),Oe("mat-calendar-body-selected",o._isSelected(n.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(n.compareValue))("mat-calendar-body-today",o.todayValue===n.compareValue),A(),Ct(" ",n.displayValue," ")}}function rQ(t,e){if(t&1&&(D(0,"tr",1),ve(1,iQ,2,6,"td",4),ql(2,nQ,5,48,"td",5,dR),I()),t&2){let n=e.$implicit,i=e.$index,r=se();A(),tt(i===0&&r._firstRowOffset?1:-1),A(),$l(n)}}function oQ(t,e){if(t&1&&(D(0,"th",2)(1,"span",6),z(2),I(),D(3,"span",3),z(4),I()()),t&2){let n=e.$implicit;A(2),jt(n.long),A(2),jt(n.narrow)}}var sQ=["*"];function aQ(t,e){}function cQ(t,e){if(t&1){let n=st();D(0,"mat-month-view",4),ni("activeDateChange",function(r){Se(n);let o=se();return oi(o.activeDate,r)||(o.activeDate=r),Ie(r)}),le("_userSelection",function(r){Se(n);let o=se();return Ie(o._dateSelected(r))})("dragStarted",function(r){Se(n);let o=se();return Ie(o._dragStarted(r))})("dragEnded",function(r){Se(n);let o=se();return Ie(o._dragEnded(r))}),I()}if(t&2){let n=se();ii("activeDate",n.activeDate),ie("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)("startDateAccessibleName",n.startDateAccessibleName)("endDateAccessibleName",n.endDateAccessibleName)("activeDrag",n._activeDrag)}}function lQ(t,e){if(t&1){let n=st();D(0,"mat-year-view",5),ni("activeDateChange",function(r){Se(n);let o=se();return oi(o.activeDate,r)||(o.activeDate=r),Ie(r)}),le("monthSelected",function(r){Se(n);let o=se();return Ie(o._monthSelectedInYearView(r))})("selectedChange",function(r){Se(n);let o=se();return Ie(o._goToDateInView(r,"month"))}),I()}if(t&2){let n=se();ii("activeDate",n.activeDate),ie("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function dQ(t,e){if(t&1){let n=st();D(0,"mat-multi-year-view",6),ni("activeDateChange",function(r){Se(n);let o=se();return oi(o.activeDate,r)||(o.activeDate=r),Ie(r)}),le("yearSelected",function(r){Se(n);let o=se();return Ie(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){Se(n);let o=se();return Ie(o._goToDateInView(r,"year"))}),I()}if(t&2){let n=se();ii("activeDate",n.activeDate),ie("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function uQ(t,e){}var hQ=["button"],fQ=[[["","matDatepickerToggleIcon",""]]],pQ=["[matDatepickerToggleIcon]"];function mQ(t,e){t&1&&(No(),D(0,"svg",2),xe(1,"path",3),I())}var Bh=(()=>{let e=class e{constructor(){this.changes=new K,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(i,r){return`${i} \u2013 ${r}`}formatYearRangeLabel(i,r){return`${i} to ${r}`}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),gQ=0,Lh=class{constructor(e,n,i,r,o={},s=e,a){this.value=e,this.displayValue=n,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=s,this.rawValue=a,this.id=gQ++}},vQ=1,nR=In({passive:!1,capture:!0}),Ba=In({passive:!0,capture:!0}),dg=In({passive:!0}),xd=(()=>{let e=class e{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(i,r){this._elementRef=i,this._ngZone=r,this._platform=B(et),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new oe,this.previewChange=new oe,this.activeDateChange=new oe,this.dragStarted=new oe,this.dragEnded=new oe,this._didDragSinceMouseDown=!1,this._injector=B(Je),this._trackRow=o=>o,this._enterHandler=o=>{if(this._skipNextFocus&&o.type==="focus"){this._skipNextFocus=!1;return}if(o.target&&this.isRange){let s=this._getCellFromElement(o.target);s&&this._ngZone.run(()=>this.previewChange.emit({value:s.enabled?s:null,event:o}))}},this._touchmoveHandler=o=>{if(!this.isRange)return;let s=rR(o),a=s?this._getCellFromElement(s):null;s!==o.target&&(this._didDragSinceMouseDown=!0),QC(o.target)&&o.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:a?.enabled?a:null,event:o}))},this._leaveHandler=o=>{this.previewEnd!==null&&this.isRange&&(o.type!=="blur"&&(this._didDragSinceMouseDown=!0),o.target&&this._getCellFromElement(o.target)&&!(o.relatedTarget&&this._getCellFromElement(o.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:o})))},this._mousedownHandler=o=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let s=o.target&&this._getCellFromElement(o.target);!s||!this._isInRange(s.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:s.rawValue,event:o})})},this._mouseupHandler=o=>{if(!this.isRange)return;let s=QC(o.target);if(!s){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:o})});return}s.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let a=this._getCellFromElement(s);this.dragEnded.emit({value:a?.rawValue??null,event:o})})},this._touchendHandler=o=>{let s=rR(o);s&&this._mouseupHandler({target:s})},this._id=`mat-calendar-body-${vQ++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,r.runOutsideAngular(()=>{let o=i.nativeElement;o.addEventListener("touchmove",this._touchmoveHandler,nR),o.addEventListener("mouseenter",this._enterHandler,Ba),o.addEventListener("focus",this._enterHandler,Ba),o.addEventListener("mouseleave",this._leaveHandler,Ba),o.addEventListener("blur",this._leaveHandler,Ba),o.addEventListener("mousedown",this._mousedownHandler,dg),o.addEventListener("touchstart",this._mousedownHandler,dg),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(i,r){this._didDragSinceMouseDown||i.enabled&&this.selectedValueChange.emit({value:i.value,event:r})}_emitActiveDateChange(i,r){i.enabled&&this.activeDateChange.emit({value:i.value,event:r})}_isSelected(i){return this.startValue===i||this.endValue===i}ngOnChanges(i){let r=i.numCols,{rows:o,numCols:s}=this;(i.rows||r)&&(this._firstRowOffset=o&&o.length&&o[0].length?s-o[0].length:0),(i.cellAspectRatio||r||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/s}%`),(r||!this._cellWidth)&&(this._cellWidth=`${100/s}%`)}ngOnDestroy(){let i=this._elementRef.nativeElement;i.removeEventListener("touchmove",this._touchmoveHandler,nR),i.removeEventListener("mouseenter",this._enterHandler,Ba),i.removeEventListener("focus",this._enterHandler,Ba),i.removeEventListener("mouseleave",this._leaveHandler,Ba),i.removeEventListener("blur",this._leaveHandler,Ba),i.removeEventListener("mousedown",this._mousedownHandler,dg),i.removeEventListener("touchstart",this._mousedownHandler,dg),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(i,r){let o=i*this.numCols+r;return i&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(i=!0){ri(()=>{setTimeout(()=>{let r=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");r&&(i||(this._skipNextFocus=!0),r.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(i){return KC(i,this.startValue,this.endValue)}_isRangeEnd(i){return XC(i,this.startValue,this.endValue)}_isInRange(i){return ZC(i,this.startValue,this.endValue,this.isRange)}_isComparisonStart(i){return KC(i,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(i,r,o){if(!this._isComparisonStart(i)||this._isRangeStart(i)||!this._isInRange(i))return!1;let s=this.rows[r][o-1];if(!s){let a=this.rows[r-1];s=a&&a[a.length-1]}return s&&!this._isRangeEnd(s.compareValue)}_isComparisonBridgeEnd(i,r,o){if(!this._isComparisonEnd(i)||this._isRangeEnd(i)||!this._isInRange(i))return!1;let s=this.rows[r][o+1];if(!s){let a=this.rows[r+1];s=a&&a[0]}return s&&!this._isRangeStart(s.compareValue)}_isComparisonEnd(i){return XC(i,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(i){return ZC(i,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(i){return this.comparisonStart===this.comparisonEnd&&i===this.comparisonStart}_isPreviewStart(i){return KC(i,this.previewStart,this.previewEnd)}_isPreviewEnd(i){return XC(i,this.previewStart,this.previewEnd)}_isInPreview(i){return ZC(i,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(i){return this.isRange?this.startValue===i&&this.endValue===i?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===i?this._startDateLabelId:this.endValue===i?this._endDateLabelId:null:null}_getCellFromElement(i){let r=QC(i);if(r){let o=r.getAttribute("data-mat-row"),s=r.getAttribute("data-mat-col");if(o&&s)return this.rows[parseInt(o)][parseInt(s)]}return null}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(ee))},e.\u0275cmp=re({type:e,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],standalone:!0,features:[lt,Ne],attrs:JY,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(r,o){r&1&&(ve(0,tQ,3,6,"tr",0),ql(1,rQ,4,1,"tr",1,eQ,!0),D(3,"label",2),z(4),I(),D(5,"label",2),z(6),I()),r&2&&(tt(o._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}'],encapsulation:2,changeDetection:0});let t=e;return t})();function YC(t){return t?.nodeName==="TD"}function QC(t){let e;return YC(t)?e=t:YC(t.parentNode)?e=t.parentNode:YC(t.parentNode?.parentNode)&&(e=t.parentNode.parentNode),e?.getAttribute("data-mat-row")!=null?e:null}function KC(t,e,n){return n!==null&&e!==n&&t=e&&t===n}function ZC(t,e,n,i){return i&&e!==null&&n!==null&&e!==n&&t>=e&&t<=n}function rR(t){let e=t.changedTouches[0];return document.elementFromPoint(e.clientX,e.clientY)}var yr=class{constructor(e,n){this.start=e,this.end=n}},Vh=(()=>{let e=class e{constructor(i,r){this.selection=i,this._adapter=r,this._selectionChanged=new K,this.selectionChanged=this._selectionChanged,this.selection=i}updateSelection(i,r){let o=this.selection;this.selection=i,this._selectionChanged.next({selection:i,source:r,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(i){return this._adapter.isDateInstance(i)&&this._adapter.isValid(i)}};e.\u0275fac=function(r){Hl()},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),bQ=(()=>{let e=class e extends Vh{constructor(i){super(null,i)}add(i){super.updateSelection(i,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let i=new e(this._adapter);return i.updateSelection(this.selection,this),i}};e.\u0275fac=function(r){return new(r||e)(R(Vi))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();function _Q(t,e){return t||new bQ(e)}var uR={provide:Vh,deps:[[new Gr,new fa,Vh],Vi],useFactory:_Q};var hR=new q("MAT_DATE_RANGE_SELECTION_STRATEGY");var JC=7,yQ=0,oR=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(i){let r=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(r,this._activeDate)||this._init()}get selected(){return this._selected}set selected(i){i instanceof yr?this._selected=i:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(i){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}get maxDate(){return this._maxDate}set maxDate(i){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}constructor(i,r,o,s,a){this._changeDetectorRef=i,this._dateFormats=r,this._dateAdapter=o,this._dir=s,this._rangeStrategy=a,this._rerenderSubscription=Me.EMPTY,this.activeDrag=null,this.selectedChange=new oe,this._userSelection=new oe,this.dragStarted=new oe,this.dragEnded=new oe,this.activeDateChange=new oe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Vt(null)).subscribe(()=>this._init())}ngOnChanges(i){let r=i.comparisonStart||i.comparisonEnd;r&&!r.firstChange&&this._setRanges(this.selected),i.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(i){let r=i.value,o=this._getDateFromDayOfMonth(r),s,a;this._selected instanceof yr?(s=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):s=a=this._getDateInCurrentMonth(this._selected),(s!==r||a!==r)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:i.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(i){let r=i.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(r),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(i){let r=this._activeDate,o=this._isRtl();switch(i.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=i.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=i.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&i.preventDefault();return;case 27:this._previewEnd!=null&&!zt(i)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:i}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:i})),i.preventDefault(),i.stopPropagation());return;default:return}this._dateAdapter.compareDate(r,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),i.preventDefault()}_handleCalendarBodyKeyup(i){(i.keyCode===32||i.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:i}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(JC+this._dateAdapter.getDayOfWeek(i)-this._dateAdapter.getFirstDayOfWeek())%JC,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(i){this._matCalendarBody._focusActiveCell(i)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:i,value:r}){if(this._rangeStrategy){let o=r?r.rawValue:null,s=this._rangeStrategy.createPreview(o,this.selected,i);if(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end),this.activeDrag&&o){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,i);a&&(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(i){if(this.activeDrag)if(i.value){let r=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,i.value,i.event);this.dragEnded.emit({value:r??null,event:i.event})}else this.dragEnded.emit({value:null,event:i.event})}_getDateFromDayOfMonth(i){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),i)}_initWeekdays(){let i=this._dateAdapter.getFirstDayOfWeek(),r=this._dateAdapter.getDayOfWeekNames("narrow"),s=this._dateAdapter.getDayOfWeekNames("long").map((a,c)=>({long:a,narrow:r[c],id:yQ++}));this._weekdays=s.slice(i).concat(s.slice(0,i))}_createWeekCells(){let i=this._dateAdapter.getNumDaysInMonth(this.activeDate),r=this._dateAdapter.getDateNames();this._weeks=[[]];for(let o=0,s=this._firstWeekOffset;o=0)&&(!this.maxDate||this._dateAdapter.compareDate(i,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(i))}_getDateInCurrentMonth(i){return i&&this._hasSameMonthAndYear(i,this.activeDate)?this._dateAdapter.getDate(i):null}_hasSameMonthAndYear(i,r){return!!(i&&r&&this._dateAdapter.getMonth(i)==this._dateAdapter.getMonth(r)&&this._dateAdapter.getYear(i)==this._dateAdapter.getYear(r))}_getCellCompareValue(i){if(i){let r=this._dateAdapter.getYear(i),o=this._dateAdapter.getMonth(i),s=this._dateAdapter.getDate(i);return new Date(r,o,s).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(i){i instanceof yr?(this._rangeStart=this._getCellCompareValue(i.start),this._rangeEnd=this._getCellCompareValue(i.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(i),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(i){return!this.dateFilter||this.dateFilter(i)}_clearPreview(){this._previewStart=this._previewEnd=null}};e.\u0275fac=function(r){return new(r||e)(g(Ge),g(Fa,8),g(Vi,8),g($t,8),g(hR,8))},e.\u0275cmp=re({type:e,selectors:[["mat-month-view"]],viewQuery:function(r,o){if(r&1&&ze(xd,5),r&2){let s;pe(s=me())&&(o._matCalendarBody=s.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],standalone:!0,features:[lt,Ne],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(r,o){r&1&&(D(0,"table",0)(1,"thead",1)(2,"tr"),ql(3,oQ,5,2,"th",2,dR),I(),D(5,"tr",3),xe(6,"th",4),I()(),D(7,"tbody",5),le("selectedValueChange",function(a){return o._dateSelected(a)})("activeDateChange",function(a){return o._updateActiveDate(a)})("previewChange",function(a){return o._previewChanged(a)})("dragStarted",function(a){return o.dragStarted.emit(a)})("dragEnded",function(a){return o._dragEnded(a)})("keyup",function(a){return o._handleCalendarBodyKeyup(a)})("keydown",function(a){return o._handleCalendarBodyKeydown(a)}),I()()),r&2&&(A(3),$l(o._weekdays),A(4),ie("label",o._monthLabel)("rows",o._weeks)("todayValue",o._todayDate)("startValue",o._rangeStart)("endValue",o._rangeEnd)("comparisonStart",o._comparisonRangeStart)("comparisonEnd",o._comparisonRangeEnd)("previewStart",o._previewStart)("previewEnd",o._previewEnd)("isRange",o._isRange)("labelMinRequiredCells",3)("activeCell",o._dateAdapter.getDate(o.activeDate)-1)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName))},dependencies:[xd],encapsulation:2,changeDetection:0});let t=e;return t})(),Xn=24,ex=4,sR=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(i){let r=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),fR(this._dateAdapter,r,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(i){i instanceof yr?this._selected=i:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i)),this._setSelectedYear(i)}get minDate(){return this._minDate}set minDate(i){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}get maxDate(){return this._maxDate}set maxDate(i){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}constructor(i,r,o){this._changeDetectorRef=i,this._dateAdapter=r,this._dir=o,this._rerenderSubscription=Me.EMPTY,this.selectedChange=new oe,this.yearSelected=new oe,this.activeDateChange=new oe,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Vt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let r=this._dateAdapter.getYear(this._activeDate)-Ph(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let o=0,s=[];othis._createCellForYear(a))),s=[]);this._changeDetectorRef.markForCheck()}_yearSelected(i){let r=i.value,o=this._dateAdapter.createDate(r,0,1),s=this._getDateFromYear(r);this.yearSelected.emit(o),this.selectedChange.emit(s)}_updateActiveDate(i){let r=i.value,o=this._activeDate;this.activeDate=this._getDateFromYear(r),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(i){let r=this._activeDate,o=this._isRtl();switch(i.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ex);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ex);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Ph(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Xn-Ph(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i.altKey?-Xn*10:-Xn);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i.altKey?Xn*10:Xn);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),i.preventDefault()}_handleCalendarBodyKeyup(i){(i.keyCode===32||i.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:i}),this._selectionKeyPressed=!1)}_getActiveCell(){return Ph(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(i){let r=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(i,r,1));return this._dateAdapter.createDate(i,r,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(i){let r=this._dateAdapter.createDate(i,0,1),o=this._dateAdapter.getYearName(r),s=this.dateClass?this.dateClass(r,"multi-year"):void 0;return new Lh(i,o,o,this._shouldEnableYear(i),s)}_shouldEnableYear(i){if(i==null||this.maxDate&&i>this._dateAdapter.getYear(this.maxDate)||this.minDate&&i{let e=class e{get activeDate(){return this._activeDate}set activeDate(i){let r=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(r)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(i){i instanceof yr?this._selected=i:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i)),this._setSelectedMonth(i)}get minDate(){return this._minDate}set minDate(i){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}get maxDate(){return this._maxDate}set maxDate(i){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}constructor(i,r,o,s){this._changeDetectorRef=i,this._dateFormats=r,this._dateAdapter=o,this._dir=s,this._rerenderSubscription=Me.EMPTY,this.selectedChange=new oe,this.monthSelected=new oe,this.activeDateChange=new oe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Vt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(i){let r=i.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),r,1);this.monthSelected.emit(o);let s=this._getDateFromMonth(r);this.selectedChange.emit(s)}_updateActiveDate(i){let r=i.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(r),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(i){let r=this._activeDate,o=this._isRtl();switch(i.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(r,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),i.preventDefault()}_handleCalendarBodyKeyup(i){(i.keyCode===32||i.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:i}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let i=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(r=>r.map(o=>this._createCellForMonth(o,i[o]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(i){return i&&this._dateAdapter.getYear(i)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(i):null}_getDateFromMonth(i){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1),o=this._dateAdapter.getNumDaysInMonth(r);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(i,r){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1),s=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new Lh(i,r.toLocaleUpperCase(),s,this._shouldEnableMonth(i),a)}_shouldEnableMonth(i){let r=this._dateAdapter.getYear(this.activeDate);if(i==null||this._isYearAndMonthAfterMaxDate(r,i)||this._isYearAndMonthBeforeMinDate(r,i))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(r,i,1);for(let s=o;this._dateAdapter.getMonth(s)==i;s=this._dateAdapter.addCalendarDays(s,1))if(this.dateFilter(s))return!0;return!1}_isYearAndMonthAfterMaxDate(i,r){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),s=this._dateAdapter.getMonth(this.maxDate);return i>o||i===o&&r>s}return!1}_isYearAndMonthBeforeMinDate(i,r){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),s=this._dateAdapter.getMonth(this.minDate);return i{let e=class e{constructor(i,r,o,s,a){this._intl=i,this.calendar=r,this._dateAdapter=o,this._dateFormats=s,this._id=`mat-calendar-header-${CQ++}`,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>a.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Xn)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Xn)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(i,r){return this.calendar.currentView=="month"?this._dateAdapter.getYear(i)==this._dateAdapter.getYear(r)&&this._dateAdapter.getMonth(i)==this._dateAdapter.getMonth(r):this.calendar.currentView=="year"?this._dateAdapter.getYear(i)==this._dateAdapter.getYear(r):fR(this._dateAdapter,i,r,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let r=this._dateAdapter.getYear(this.calendar.activeDate)-Ph(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=r+Xn-1,s=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[s,a]}};e.\u0275fac=function(r){return new(r||e)(g(Bh),g(li(()=>tx)),g(Vi,8),g(Fa,8),g(Ge))},e.\u0275cmp=re({type:e,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[Ne],ngContentSelectors:sQ,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"]],template:function(r,o){r&1&&(at(),D(0,"div",0)(1,"div",1)(2,"label",2),z(3),I(),D(4,"button",3),le("click",function(){return o.currentPeriodClicked()}),D(5,"span",4),z(6),I(),No(),D(7,"svg",5),xe(8,"polygon",6),I()(),S1(),xe(9,"div",7),ke(10),D(11,"button",8),le("click",function(){return o.previousClicked()}),I(),D(12,"button",9),le("click",function(){return o.nextClicked()}),I()()()),r&2&&(A(2),ie("id",o._periodButtonLabelId),A(),jt(o.periodButtonDescription),A(),Ve("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),A(2),jt(o.periodButtonText),A(),Oe("mat-calendar-invert",o.calendar.currentView!=="month"),A(4),ie("disabled",!o.previousEnabled()),Ve("aria-label",o.prevButtonLabel),A(),ie("disabled",!o.nextEnabled()),Ve("aria-label",o.nextButtonLabel))},dependencies:[ei,Ns],encapsulation:2,changeDetection:0});let t=e;return t})(),tx=(()=>{let e=class e{get startAt(){return this._startAt}set startAt(i){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}get selected(){return this._selected}set selected(i){i instanceof yr?this._selected=i:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}get minDate(){return this._minDate}set minDate(i){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}get maxDate(){return this._maxDate}set maxDate(i){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}get activeDate(){return this._clampedActiveDate}set activeDate(i){this._clampedActiveDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(i){let r=this._currentView!==i?i:null;this._currentView=i,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),r&&this.viewChanged.emit(r)}constructor(i,r,o,s){this._dateAdapter=r,this._dateFormats=o,this._changeDetectorRef=s,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new oe,this.yearSelected=new oe,this.monthSelected=new oe,this.viewChanged=new oe(!0),this._userSelection=new oe,this._userDragDrop=new oe,this._activeDrag=null,this.stateChanges=new K,this._intlChanges=i.changes.subscribe(()=>{s.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new br(this.headerComponent||mR),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(i){let r=i.minDate&&!this._dateAdapter.sameDate(i.minDate.previousValue,i.minDate.currentValue)?i.minDate:void 0,o=i.maxDate&&!this._dateAdapter.sameDate(i.maxDate.previousValue,i.maxDate.currentValue)?i.maxDate:void 0,s=r||o||i.dateFilter;if(s&&!s.firstChange){let a=this._getCurrentViewComponent();a&&(this._moveFocusOnNextTick=!0,this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(i){let r=i.value;(this.selected instanceof yr||r&&!this._dateAdapter.sameDate(r,this.selected))&&this.selectedChange.emit(r),this._userSelection.emit(i)}_yearSelectedInMultiYearView(i){this.yearSelected.emit(i)}_monthSelectedInYearView(i){this.monthSelected.emit(i)}_goToDateInView(i,r){this.activeDate=i,this.currentView=r}_dragStarted(i){this._activeDrag=i}_dragEnded(i){this._activeDrag&&(i.value&&this._userDragDrop.emit(i),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}};e.\u0275fac=function(r){return new(r||e)(g(Bh),g(Vi,8),g(Fa,8),g(Ge))},e.\u0275cmp=re({type:e,selectors:[["mat-calendar"]],viewQuery:function(r,o){if(r&1&&(ze(oR,5),ze(aR,5),ze(sR,5)),r&2){let s;pe(s=me())&&(o.monthView=s.first),pe(s=me())&&(o.yearView=s.first),pe(s=me())&&(o.multiYearView=s.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],standalone:!0,features:[Ye([uR]),lt,Ne],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(r,o){if(r&1&&(ve(0,aQ,0,0,"ng-template",0),D(1,"div",1),ve(2,cQ,1,11,"mat-month-view",2)(3,lQ,1,6,"mat-year-view",3)(4,dQ,1,6,"mat-multi-year-view",3),I()),r&2){let s;ie("cdkPortalOutlet",o._calendarHeaderPortal),A(2),tt((s=o.currentView)==="month"?2:s==="year"?3:s==="multi-year"?4:-1)}},dependencies:[Qn,a3,oR,aR,sR],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight);--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=e;return t})(),cR={transformPanel:Yt("transformPanel",[xt("void => enter-dropdown",St("120ms cubic-bezier(0, 0, 0.2, 1)",Va([Ue({opacity:0,transform:"scale(1, 0.8)"}),Ue({opacity:1,transform:"scale(1, 1)"})]))),xt("void => enter-dialog",St("150ms cubic-bezier(0, 0, 0.2, 1)",Va([Ue({opacity:0,transform:"scale(0.7)"}),Ue({transform:"none",opacity:1})]))),xt("* => void",St("100ms linear",Ue({opacity:0})))]),fadeInCalendar:Yt("fadeInCalendar",[kt("void",Ue({opacity:0})),kt("enter",Ue({opacity:1})),xt("void => *",St("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},xQ=0,gR=new q("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=B(Pt);return()=>t.scrollStrategies.reposition()}});function DQ(t){return()=>t.scrollStrategies.reposition()}var EQ={provide:gR,deps:[Pt],useFactory:DQ},vR=(()=>{let e=class e{constructor(i,r,o,s,a,c){this._elementRef=i,this._changeDetectorRef=r,this._globalModel=o,this._dateAdapter=s,this._rangeSelectionStrategy=a,this._subscriptions=new Me,this._animationDone=new K,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=c.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(i){let r=this._model.selection,o=i.value,s=r instanceof yr;if(s&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(o,r,i.event);this._model.updateSelection(a,this)}else o&&(s||!this._dateAdapter.sameDate(o,r))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(i){this._model.updateSelection(i.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(i){this._isAnimating=i.phaseName==="start",this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(i,r){this._model=i?this._globalModel.clone():this._globalModel,this._actionsPortal=i,r&&this._changeDetectorRef.detectChanges()}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Ge),g(Vh),g(Vi),g(hR,8),g(Bh))},e.\u0275cmp=re({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(r,o){if(r&1&&ze(tx,5),r&2){let s;pe(s=me())&&(o._calendar=s.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(r,o){r&1&&gc("@transformPanel.start",function(a){return o._handleAnimationEvent(a)})("@transformPanel.done",function(a){return o._handleAnimationEvent(a)}),r&2&&(mc("@transformPanel",o._animationState),_i(o.color?"mat-"+o.color:""),Oe("mat-datepicker-content-touch",o.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[Ne],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(r,o){if(r&1&&(D(0,"div",0)(1,"mat-calendar",1),le("yearSelected",function(a){return o.datepicker._selectYear(a)})("monthSelected",function(a){return o.datepicker._selectMonth(a)})("viewChanged",function(a){return o.datepicker._viewChanged(a)})("_userSelection",function(a){return o._handleUserSelection(a)})("_userDragDrop",function(a){return o._handleUserDragDrop(a)}),I(),ve(2,uQ,0,0,"ng-template",2),D(3,"button",3),le("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),z(4),I()()),r&2){let s;Oe("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),Ve("aria-modal",!0)("aria-labelledby",(s=o._dialogLabelId)!==null&&s!==void 0?s:void 0),A(),_i(o.datepicker.panelClass),ie("id",o.datepicker.id)("startAt",o.datepicker.startAt)("startView",o.datepicker.startView)("minDate",o.datepicker._getMinDate())("maxDate",o.datepicker._getMaxDate())("dateFilter",o.datepicker._getDateFilter())("headerComponent",o.datepicker.calendarHeaderComponent)("selected",o._getSelected())("dateClass",o.datepicker.dateClass)("comparisonStart",o.comparisonStart)("comparisonEnd",o.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),A(),ie("cdkPortalOutlet",o._actionsPortal),A(),Oe("cdk-visually-hidden",!o._closeButtonFocused),ie("color",o.color||"primary"),A(),jt(o._closeButtonText)}},dependencies:[o3,tx,Qn,ei],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color);box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape);position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[cR.transformPanel,cR.fadeInCalendar]},changeDetection:0});let t=e;return t})(),lR=(()=>{let e=class e{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(i){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(i){this._color=i}get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(i){i!==this._disabled&&(this._disabled=i,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(i){this._panelClass=cA(i)}get opened(){return this._opened}set opened(i){i?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(i,r,o,s,a,c,l){this._overlay=i,this._viewContainerRef=o,this._dateAdapter=a,this._dir=c,this._model=l,this._inputStateChanges=Me.EMPTY,this._document=B(Fe),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new oe,this.monthSelected=new oe,this.viewChanged=new oe(!0),this.openedStream=new oe,this.closedStream=new oe,this._opened=!1,this.id=`mat-datepicker-${xQ++}`,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new K,this._injector=B(Je),this._changeDetectorRef=B(Ge),this._dateAdapter,this._scrollStrategy=s,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(i){let r=i.xPosition||i.yPosition;if(r&&!r.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof Oh&&(this._setConnectedPositions(o),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(i){this._model.add(i)}_selectYear(i){this.yearSelected.emit(i)}_selectMonth(i){this.monthSelected.emit(i)}_viewChanged(i){this.viewChanged.emit(i)}registerInput(i){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=i,this._inputStateChanges=i.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(i){this._actionsPortal,this._actionsPortal=i,this._componentRef?.instance._assignActions(i,!0)}removeActions(i){i===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=xa(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let i=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",r=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:o,location:s}=this._componentRef;o._startExitAnimation(),o._animationDone.pipe(wt(1)).subscribe(()=>{let a=this._document.activeElement;i&&(!a||a===this._document.activeElement||s.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}i?setTimeout(r):r()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(i){i.datepicker=this,i.color=this.color,i._dialogLabelId=this.datepickerInput.getOverlayLabelId(),i._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let i=this.touchUi,r=new br(vR,this._viewContainerRef),o=this._overlayRef=this._overlay.create(new Tn({positionStrategy:i?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[i?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:i?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${i?"dialog":"popup"}`}));this._getCloseStream(o).subscribe(s=>{s&&s.preventDefault(),this.close()}),o.keydownEvents().subscribe(s=>{let a=s.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&s.preventDefault()}),this._componentRef=o.attach(r),this._forwardContentValues(this._componentRef.instance),i||ri(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let i=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(i)}_setConnectedPositions(i){let r=this.xPosition==="end"?"end":"start",o=r==="start"?"end":"start",s=this.yPosition==="above"?"bottom":"top",a=s==="top"?"bottom":"top";return i.withPositions([{originX:r,originY:a,overlayX:r,overlayY:s},{originX:r,originY:s,overlayX:r,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:s},{originX:o,originY:s,overlayX:o,overlayY:a}])}_getCloseStream(i){let r=["ctrlKey","shiftKey","metaKey"];return yt(i.backdropClick(),i.detachments(),i.keydownEvents().pipe(We(o=>o.keyCode===27&&!zt(o)||this.datepickerInput&&zt(o,"altKey")&&o.keyCode===38&&r.every(s=>!zt(o,s)))))}};e.\u0275fac=function(r){return new(r||e)(g(Pt),g(ee),g(qt),g(gR),g(Vi,8),g($t,8),g(Vh))},e.\u0275dir=te({type:e,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",Ee],disabled:[2,"disabled","disabled",Ee],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",Ee],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",Ee]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[nt,lt]});let t=e;return t})(),bR=(()=>{let e=class e extends lR{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275cmp=re({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],standalone:!0,features:[Ye([uR,{provide:lR,useExisting:e}]),He,Ne],decls:0,vars:0,template:function(r,o){},encapsulation:2,changeDetection:0});let t=e;return t})(),Cd=class{constructor(e,n){this.target=e,this.targetElement=n,this.value=this.target.value}},SQ=(()=>{let e=class e{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(i){this._assignValueProgrammatically(i)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(i){let r=i,o=this._elementRef.nativeElement;this._disabled!==r&&(this._disabled=r,this.stateChanges.next(void 0)),r&&this._isInitialized&&o.blur&&o.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(i){this._model=i,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(r=>{if(this._shouldHandleChangeEvent(r)){let o=this._getValueFromModel(r.selection);this._lastValueValid=this._isValidValue(o),this._cvaOnChange(o),this._onTouched(),this._formatValue(o),this.dateInput.emit(new Cd(this,this._elementRef.nativeElement)),this.dateChange.emit(new Cd(this,this._elementRef.nativeElement))}})}constructor(i,r,o){this._elementRef=i,this._dateAdapter=r,this._dateFormats=o,this.dateChange=new oe,this.dateInput=new oe,this.stateChanges=new K,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Me.EMPTY,this._localeSubscription=Me.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=s=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value));return!a||this._matchesFilter(a)?null:{matDatepickerFilter:!0}},this._minValidator=s=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),c=this._getMinDate();return!c||!a||this._dateAdapter.compareDate(c,a)<=0?null:{matDatepickerMin:{min:c,actual:a}}},this._maxValidator=s=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),c=this._getMaxDate();return!c||!a||this._dateAdapter.compareDate(c,a)>=0?null:{matDatepickerMax:{max:c,actual:a}}},this._lastValueValid=!1,this._localeSubscription=r.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(i){IQ(i,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(i){this._validatorOnChange=i}validate(i){return this._validator?this._validator(i):null}writeValue(i){this._assignValueProgrammatically(i)}registerOnChange(i){this._cvaOnChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i}_onKeydown(i){let r=["ctrlKey","shiftKey","metaKey"];zt(i,"altKey")&&i.keyCode===40&&r.every(s=>!zt(i,s))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),i.preventDefault())}_onInput(i){let r=this._lastValueValid,o=this._dateAdapter.parse(i,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let s=!this._dateAdapter.sameDate(o,this.value);!o||s?this._cvaOnChange(o):(i&&!this.value&&this._cvaOnChange(o),r!==this._lastValueValid&&this._validatorOnChange()),s&&(this._assignValue(o),this.dateInput.emit(new Cd(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Cd(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(i){this._elementRef.nativeElement.value=i!=null?this._dateAdapter.format(i,this._dateFormats.display.dateInput):""}_assignValue(i){this._model?(this._assignValueToModel(i),this._pendingValue=null):this._pendingValue=i}_isValidValue(i){return!i||this._dateAdapter.isValid(i)}_parentDisabled(){return!1}_assignValueProgrammatically(i){i=this._dateAdapter.deserialize(i),this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._assignValue(i),this._formatValue(i)}_matchesFilter(i){let r=this._getDateFilter();return!r||r(i)}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Vi,8),g(Fa,8))},e.\u0275dir=te({type:e,inputs:{value:"value",disabled:[2,"disabled","disabled",Ee]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[nt,lt]});let t=e;return t})();function IQ(t,e){let n=Object.keys(t);for(let i of n){let{previousValue:r,currentValue:o}=t[i];if(e.isDateInstance(r)&&e.isDateInstance(o)){if(!e.sameDate(r,o))return!0}else return!0}return!1}var kQ={provide:Uo,useExisting:li(()=>ug),multi:!0},MQ={provide:ld,useExisting:li(()=>ug),multi:!0},ug=(()=>{let e=class e extends SQ{set matDatepicker(i){i&&(this._datepicker=i,this._ariaOwns.set(i.opened?i.id:null),this._closedSubscription=i.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=i.openedStream.subscribe(()=>{this._ariaOwns.set(i.id)}),this._registerModel(i.registerInput(this)))}get min(){return this._min}set min(i){let r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i));this._dateAdapter.sameDate(r,this._min)||(this._min=r,this._validatorOnChange())}get max(){return this._max}set max(i){let r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i));this._dateAdapter.sameDate(r,this._max)||(this._max=r,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(i){let r=this._matchesFilter(this.value);this._dateFilter=i,this._matchesFilter(this.value)!==r&&this._validatorOnChange()}constructor(i,r,o,s){super(i,r,o),this._formField=s,this._closedSubscription=Me.EMPTY,this._openedSubscription=Me.EMPTY,this._ariaOwns=Kr(null),this._validator=Ma.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(i){return i}_assignValueToModel(i){this._model&&this._model.updateSelection(i,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(i){return i.source!==this}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Vi,8),g(Fa,8),g(Os,8))},e.\u0275dir=te({type:e,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(r,o){r&1&&le("input",function(a){return o._onInput(a.target.value)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(a){return o._onKeydown(a)}),r&2&&(pr("disabled",o.disabled),Ve("aria-haspopup",o._datepicker?"dialog":null)("aria-owns",o._ariaOwns())("min",o.min?o._dateAdapter.toIso8601(o.min):null)("max",o.max?o._dateAdapter.toIso8601(o.max):null)("data-mat-calendar",o._datepicker?o._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],standalone:!0,features:[Ye([kQ,MQ,{provide:GC,useExisting:e}]),He]});let t=e;return t})(),TQ=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0});let t=e;return t})(),ix=(()=>{let e=class e{get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(i){this._disabled=i}constructor(i,r,o){this._intl=i,this._changeDetectorRef=r,this._stateChanges=Me.EMPTY;let s=Number(o);this.tabIndex=s||s===0?s:null}ngOnChanges(i){i.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(i){this.datepicker&&!this.disabled&&(this.datepicker.open(),i.stopPropagation())}_watchStateChanges(){let i=this.datepicker?this.datepicker.stateChanges:we(),r=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:we(),o=this.datepicker?yt(this.datepicker.openedStream,this.datepicker.closedStream):we();this._stateChanges.unsubscribe(),this._stateChanges=yt(this._intl.changes,i,r,o).subscribe(()=>this._changeDetectorRef.markForCheck())}};e.\u0275fac=function(r){return new(r||e)(g(Bh),g(Ge),wn("tabindex"))},e.\u0275cmp=re({type:e,selectors:[["mat-datepicker-toggle"]],contentQueries:function(r,o,s){if(r&1&&ct(s,TQ,5),r&2){let a;pe(a=me())&&(o._customIcon=a.first)}},viewQuery:function(r,o){if(r&1&&ze(hQ,5),r&2){let s;pe(s=me())&&(o._button=s.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(r,o){r&1&&le("click",function(a){return o._open(a)}),r&2&&(Ve("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),Oe("mat-datepicker-toggle-active",o.datepicker&&o.datepicker.opened)("mat-accent",o.datepicker&&o.datepicker.color==="accent")("mat-warn",o.datepicker&&o.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",Ee],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[nt,lt,Ne],ngContentSelectors:pQ,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(r,o){r&1&&(at(fQ),D(0,"button",1,0),ve(2,mQ,2,0,":svg:svg",2),ke(3),I()),r&2&&(ie("disabled",o.disabled)("disableRipple",o.disableRipple),Ve("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("tabindex",o.disabled?-1:o.tabIndex),A(2),tt(o._customIcon?-1:2))},dependencies:[Ns],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0});let t=e;return t})();var _R=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[Bh,EQ],imports:[Wi,wd,An,tg,Kn,Ze,vR,ix,mR,$n]});let t=e;return t})();function RQ(t,e){}var Vc=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var rx=(()=>{let e=class e extends Pa{constructor(i,r,o,s,a,c,l,u){super(),this._elementRef=i,this._focusTrapFactory=r,this._config=s,this._interactivityChecker=a,this._ngZone=c,this._overlayRef=l,this._focusMonitor=u,this._platform=B(et),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=B(Ge),this._injector=B(Je),this._isDestroyed=!1,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();let h=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),h},this._document=o,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(i){this._ariaLabelledByQueue.push(i),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(i){let r=this._ariaLabelledByQueue.indexOf(i);r>-1&&(this._ariaLabelledByQueue.splice(r,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(i){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachComponentPortal(i);return this._contentAttached(),r}attachTemplatePortal(i){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachTemplatePortal(i);return this._contentAttached(),r}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(i,r){this._interactivityChecker.isFocusable(i)||(i.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{i.removeEventListener("blur",o),i.removeEventListener("mousedown",o),i.removeAttribute("tabindex")};i.addEventListener("blur",o),i.addEventListener("mousedown",o)})),i.focus(r)}_focusByCssSelector(i,r){let o=this._elementRef.nativeElement.querySelector(i);o&&this._forceFocus(o,r)}_trapFocus(){this._isDestroyed||ri(()=>{let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let i=this._config.restoreFocus,r=null;if(typeof i=="string"?r=this._document.querySelector(i):typeof i=="boolean"?r=i?this._elementFocusedBeforeDialogWasOpened:null:i&&(r=i),this._config.restoreFocus&&r&&typeof r.focus=="function"){let o=xa(),s=this._elementRef.nativeElement;(!o||o===this._document.body||o===s||s.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(r,this._closeInteractionType),this._closeInteractionType=null):r.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let i=this._elementRef.nativeElement,r=xa();return i===r||i.contains(r)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=xa()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Mc),g(Fe,8),g(Vc),g(kc),g(ee),g(Rs),g(Yi))},e.\u0275cmp=re({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(r,o){if(r&1&&ze(Qn,7),r&2){let s;pe(s=me())&&(o._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(r,o){r&2&&Ve("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},standalone:!0,features:[He,Ne],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,o){r&1&&ve(0,RQ,0,0,"ng-template",0)},dependencies:[Qn],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let t=e;return t})(),jh=class{constructor(e,n){this.overlayRef=e,this.config=n,this.closed=new K,this.disableClose=n.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=n.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!zt(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{n.closeOnOverlayDetachments!==!1&&this.close()})}close(e,n){if(this.containerInstance){let i=this.closed;this.containerInstance._closeInteractionType=n?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(e),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",n=""){return this.overlayRef.updateSize({width:e,height:n}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},OQ=new q("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=B(Pt);return()=>t.scrollStrategies.block()}}),NQ=new q("DialogData"),FQ=new q("DefaultDialogConfig");var PQ=0,ox=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(i,r,o,s,a,c){this._overlay=i,this._injector=r,this._defaultOptions=o,this._parentDialog=s,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new K,this._afterOpenedAtThisLevel=new K,this._ariaHiddenElements=new Map,this.afterAllClosed=en(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(void 0))),this._scrollStrategy=c}open(i,r){let o=this._defaultOptions||new Vc;r=X(X({},o),r),r.id=r.id||`cdk-dialog-${PQ++}`,r.id&&this.getDialogById(r.id);let s=this._getOverlayConfig(r),a=this._overlay.create(s),c=new jh(a,r),l=this._attachContainer(a,c,r);return c.containerInstance=l,this._attachDialogContent(i,c,l,r),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(c),c.closed.subscribe(()=>this._removeOpenDialog(c,!0)),this.afterOpened.next(c),c}closeAll(){nx(this.openDialogs,i=>i.close())}getDialogById(i){return this.openDialogs.find(r=>r.id===i)}ngOnDestroy(){nx(this._openDialogsAtThisLevel,i=>{i.config.closeOnDestroy===!1&&this._removeOpenDialog(i,!1)}),nx(this._openDialogsAtThisLevel,i=>i.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(i){let r=new Tn({positionStrategy:i.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:i.scrollStrategy||this._scrollStrategy(),panelClass:i.panelClass,hasBackdrop:i.hasBackdrop,direction:i.direction,minWidth:i.minWidth,minHeight:i.minHeight,maxWidth:i.maxWidth,maxHeight:i.maxHeight,width:i.width,height:i.height,disposeOnNavigation:i.closeOnNavigation});return i.backdropClass&&(r.backdropClass=i.backdropClass),r}_attachContainer(i,r,o){let s=o.injector||o.viewContainerRef?.injector,a=[{provide:Vc,useValue:o},{provide:jh,useValue:r},{provide:Rs,useValue:i}],c;o.container?typeof o.container=="function"?c=o.container:(c=o.container.type,a.push(...o.container.providers(o))):c=rx;let l=new br(c,o.viewContainerRef,Je.create({parent:s||this._injector,providers:a}),o.componentFactoryResolver);return i.attach(l).instance}_attachDialogContent(i,r,o,s){if(i instanceof Rt){let a=this._createInjector(s,r,o,void 0),c={$implicit:s.data,dialogRef:r};s.templateContext&&(c=X(X({},c),typeof s.templateContext=="function"?s.templateContext():s.templateContext)),o.attachTemplatePortal(new Ki(i,null,c,a))}else{let a=this._createInjector(s,r,o,this._injector),c=o.attachComponentPortal(new br(i,s.viewContainerRef,a,s.componentFactoryResolver));r.componentRef=c,r.componentInstance=c.instance}}_createInjector(i,r,o,s){let a=i.injector||i.viewContainerRef?.injector,c=[{provide:NQ,useValue:i.data},{provide:jh,useValue:r}];return i.providers&&(typeof i.providers=="function"?c.push(...i.providers(r,i,o)):c.push(...i.providers)),i.direction&&(!a||!a.get($t,null,{optional:!0}))&&c.push({provide:$t,useValue:{value:i.direction,change:we()}}),Je.create({parent:a||s,providers:c})}_removeOpenDialog(i,r){let o=this.openDialogs.indexOf(i);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((s,a)=>{s?a.setAttribute("aria-hidden",s):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),r&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let i=this._overlayContainer.getContainerElement();if(i.parentElement){let r=i.parentElement.children;for(let o=r.length-1;o>-1;o--){let s=r[o];s!==i&&s.nodeName!=="SCRIPT"&&s.nodeName!=="STYLE"&&!s.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}};e.\u0275fac=function(r){return new(r||e)(R(Pt),R(Je),R(FQ,8),R(e,12),R(_d),R(OQ))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function nx(t,e){let n=t.length;for(;n--;)e(t[n])}var yR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[ox],imports:[An,Kn,tg,Kn]});let t=e;return t})();function LQ(t,e){}var Hh=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},sx="mdc-dialog--open",wR="mdc-dialog--opening",CR="mdc-dialog--closing",VQ=150,BQ=75,jQ=(()=>{let e=class e extends rx{constructor(i,r,o,s,a,c,l,u,d){super(i,r,o,s,a,c,l,d),this._animationMode=u,this._animationStateChanged=new oe,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?DR(this._config.enterAnimationDuration)??VQ:0,this._exitAnimationDuration=this._animationsEnabled?DR(this._config.exitAnimationDuration)??BQ:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(xR,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(wR,sx)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(sx),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(sx),this._animationsEnabled?(this._hostElement.style.setProperty(xR,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(CR)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(i){this._actionSectionCount+=i,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(wR,CR)}_waitForAnimationToComplete(i,r){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(r,i)}_requestAnimationFrame(i){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(i):i()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(i){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(i){let r=super.attachComponentPortal(i);return r.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),r}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Mc),g(Fe,8),g(Hh),g(kc),g(ee),g(Rs),g(Bt,8),g(Yi))},e.\u0275cmp=re({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(r,o){r&2&&(pr("id",o._config.id),Ve("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),Oe("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},standalone:!0,features:[He,Ne],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(r,o){r&1&&(D(0,"div",0)(1,"div",1),ve(2,LQ,0,0,"ng-template",2),I()())},dependencies:[Qn],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, 4px);background-color:var(--mdc-dialog-container-color, white)}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87));font-family:var(--mdc-dialog-subhead-font, inherit);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6));font-family:var(--mdc-dialog-supporting-text-font, inherit);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2});let t=e;return t})(),xR="--mat-dialog-transition-duration";function DR(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?En(t.substring(0,t.length-2)):t.endsWith("s")?En(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var hg=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(hg||{}),oo=class{constructor(e,n,i){this._ref=e,this._containerInstance=i,this._afterOpened=new K,this._beforeClosed=new K,this._state=hg.OPEN,this.disableClose=n.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(We(r=>r.state==="opened"),wt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(We(r=>r.state==="closed"),wt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),yt(this.backdropClick(),this.keydownEvents().pipe(We(r=>r.keyCode===27&&!this.disableClose&&!zt(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),ER(this,r.type==="keydown"?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(We(n=>n.state==="closing"),wt(1)).subscribe(n=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=hg.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let n=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?n.left(e.left):n.right(e.right):n.centerHorizontally(),e&&(e.top||e.bottom)?e.top?n.top(e.top):n.bottom(e.bottom):n.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",n=""){return this._ref.updateSize(e,n),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=hg.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function ER(t,e,n){return t._closeInteractionType=e,t.close(n)}var ax=new q("MatMdcDialogData"),HQ=new q("mat-mdc-dialog-default-options"),zQ=new q("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=B(Pt);return()=>t.scrollStrategies.block()}});var UQ=0,Bc=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(i,r,o,s,a,c,l,u){this._overlay=i,this._defaultOptions=s,this._scrollStrategy=a,this._parentDialog=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new K,this._afterOpenedAtThisLevel=new K,this.dialogConfigClass=Hh,this.afterAllClosed=en(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(void 0))),this._dialog=r.get(ox),this._dialogRefConstructor=oo,this._dialogContainerType=jQ,this._dialogDataToken=ax}open(i,r){let o;r=X(X({},this._defaultOptions||new Hh),r),r.id=r.id||`mat-mdc-dialog-${UQ++}`,r.scrollStrategy=r.scrollStrategy||this._scrollStrategy();let s=this._dialog.open(i,mt(X({},r),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:r},{provide:Vc,useValue:r}]},templateContext:()=>({dialogRef:o}),providers:(a,c,l)=>(o=new this._dialogRefConstructor(a,r,l),o.updatePosition(r?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:c.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=s.componentRef,o.componentInstance=s.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(i){return this.openDialogs.find(r=>r.id===i)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(i){let r=i.length;for(;r--;)i[r].close()}};e.\u0275fac=function(r){return new(r||e)(R(Pt),R(Je),R(Bo,8),R(HQ,8),R(zQ),R(e,12),R(_d),R(Bt,8))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qQ=0,fg=(()=>{let e=class e{constructor(i,r,o){this.dialogRef=i,this._elementRef=r,this._dialog=o,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=IR(this._elementRef,this._dialog.openDialogs))}ngOnChanges(i){let r=i._matDialogClose||i._matDialogCloseResult;r&&(this.dialogResult=r.currentValue)}_onButtonClick(i){ER(this.dialogRef,i.screenX===0&&i.screenY===0?"keyboard":"mouse",this.dialogResult)}};e.\u0275fac=function(r){return new(r||e)(g(oo,8),g(ce),g(Bc))},e.\u0275dir=te({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(r,o){r&1&&le("click",function(a){return o._onButtonClick(a)}),r&2&&Ve("aria-label",o.ariaLabel||null)("type",o.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[lt]});let t=e;return t})(),SR=(()=>{let e=class e{constructor(i,r,o){this._dialogRef=i,this._elementRef=r,this._dialog=o}ngOnInit(){this._dialogRef||(this._dialogRef=IR(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}};e.\u0275fac=function(r){return new(r||e)(g(oo,8),g(ce),g(Bc))},e.\u0275dir=te({type:e,standalone:!0});let t=e;return t})(),Dd=(()=>{let e=class e extends SR{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${qQ++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(r,o){r&2&&pr("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[He]});let t=e;return t})(),Ed=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[_M([Wn])]});let t=e;return t})(),Sd=(()=>{let e=class e extends SR{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(r,o){r&2&&Oe("mat-mdc-dialog-actions-align-start",o.align==="start")("mat-mdc-dialog-actions-align-center",o.align==="center")("mat-mdc-dialog-actions-align-end",o.align==="end")},inputs:{align:"align"},standalone:!0,features:[He]});let t=e;return t})();function IR(t,e){let n=t.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-mdc-dialog-container");)n=n.parentElement;return n?e.find(i=>i.id===n.id):null}var kR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[Bc],imports:[yR,An,Kn,Ze,Ze]});let t=e;return t})();var MR=new q("CdkAccordion");var $Q=0,TR=(()=>{let e=class e{get expanded(){return this._expanded}set expanded(i){if(this._expanded!==i){if(this._expanded=i,this.expandedChange.emit(i),i){this.opened.emit();let r=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,r)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}constructor(i,r,o){this.accordion=i,this._changeDetectorRef=r,this._expansionDispatcher=o,this._openCloseAllSubscription=Me.EMPTY,this.closed=new oe,this.opened=new oe,this.destroyed=new oe,this.expandedChange=new oe,this.id=`cdk-accordion-child-${$Q++}`,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((s,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==s&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(i=>{this.disabled||(this.expanded=i)})}};e.\u0275fac=function(r){return new(r||e)(g(MR,12),g(Ge),g(O0))},e.\u0275dir=te({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",Ee],disabled:[2,"disabled","disabled",Ee]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[Ye([{provide:MR,useValue:void 0}]),nt]});let t=e;return t})(),AR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})();var WQ=["body"],GQ=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],YQ=["mat-expansion-panel-header","*","mat-action-row"];function QQ(t,e){}var KQ=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],XQ=["mat-panel-title","mat-panel-description","*"];function ZQ(t,e){if(t&1&&(D(0,"span",1),No(),D(1,"svg",2),xe(2,"path",3),I()()),t&2){let n=se();ie("@indicatorRotate",n._getExpandedState())}}var RR=new q("MAT_ACCORDION"),OR="225ms cubic-bezier(0.4,0.0,0.2,1)",FR={indicatorRotate:Yt("indicatorRotate",[kt("collapsed, void",Ue({transform:"rotate(0deg)"})),kt("expanded",Ue({transform:"rotate(180deg)"})),xt("expanded <=> collapsed, void => collapsed",St(OR))]),bodyExpansion:Yt("bodyExpansion",[kt("collapsed, void",Ue({height:"0px",visibility:"hidden"})),kt("expanded",Ue({height:"*",visibility:""})),xt("expanded <=> collapsed, void => collapsed",St(OR))])},PR=new q("MAT_EXPANSION_PANEL"),JQ=(()=>{let e=class e{constructor(i,r){this._template=i,this._expansionPanel=r}};e.\u0275fac=function(r){return new(r||e)(g(Rt),g(PR,8))},e.\u0275dir=te({type:e,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0});let t=e;return t})(),eK=0,LR=new q("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),cx=(()=>{let e=class e extends TR{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(i){this._hideToggle=i}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(i){this._togglePosition=i}constructor(i,r,o,s,a,c,l){super(i,r,o),this._viewContainerRef=s,this._animationMode=c,this._hideToggle=!1,this.afterExpand=new oe,this.afterCollapse=new oe,this._inputChanges=new K,this._headerId=`mat-expansion-panel-header-${eK++}`,this.accordion=i,this._document=a,this._animationsDisabled=c==="NoopAnimations",l&&(this.hideToggle=l.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Vt(null),We(()=>this.expanded&&!this._portal),wt(1)).subscribe(()=>{this._portal=new Ki(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(i){this._inputChanges.next(i)}ngOnDestroy(){super.ngOnDestroy(),this._inputChanges.complete()}_containsFocus(){if(this._body){let i=this._document.activeElement,r=this._body.nativeElement;return i===r||r.contains(i)}return!1}_animationStarted(i){!NR(i)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(i){NR(i)||(i.toState==="expanded"?this.afterExpand.emit():i.toState==="collapsed"&&this.afterCollapse.emit(),!this._animationsDisabled&&this._body&&this._body.nativeElement.removeAttribute("inert"))}};e.\u0275fac=function(r){return new(r||e)(g(RR,12),g(Ge),g(O0),g(qt),g(Fe),g(Bt,8),g(LR,8))},e.\u0275cmp=re({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(r,o,s){if(r&1&&ct(s,JQ,5),r&2){let a;pe(a=me())&&(o._lazyContent=a.first)}},viewQuery:function(r,o){if(r&1&&ze(WQ,5),r&2){let s;pe(s=me())&&(o._body=s.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(r,o){r&2&&Oe("mat-expanded",o.expanded)("_mat-animation-noopable",o._animationsDisabled)("mat-expansion-panel-spacing",o._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",Ee],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[Ye([{provide:RR,useValue:void 0},{provide:PR,useExisting:e}]),nt,He,lt,Ne],ngContentSelectors:YQ,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(r,o){if(r&1){let s=st();at(GQ),ke(0),D(1,"div",1,0),le("@bodyExpansion.start",function(c){return Se(s),Ie(o._animationStarted(c))})("@bodyExpansion.done",function(c){return Se(s),Ie(o._animationDone(c))}),D(3,"div",2),ke(4,1),ve(5,QQ,0,0,"ng-template",3),I(),ke(6,2),I()}r&2&&(A(),ie("@bodyExpansion",o._getExpandedState())("id",o.id),Ve("aria-labelledby",o._headerId),A(4),ie("cdkPortalOutlet",o._portal))},dependencies:[Qn],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[FR.bodyExpansion]},changeDetection:0});let t=e;return t})();function NR(t){return t.fromState==="void"}var VR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"],standalone:!0});let t=e;return t})(),BR=(()=>{let e=class e{constructor(i,r,o,s,a,c,l){this.panel=i,this._element=r,this._focusMonitor=o,this._changeDetectorRef=s,this._animationMode=c,this._parentChangeSubscription=Me.EMPTY,this.tabIndex=0;let u=i.accordion?i.accordion._stateChanges.pipe(We(d=>!!(d.hideToggle||d.togglePosition))):vn;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=yt(i.opened,i.closed,u,i._inputChanges.pipe(We(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),i.closed.pipe(We(()=>i._containsFocus())).subscribe(()=>o.focusVia(r,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let i=this._isExpanded();return i&&this.expandedHeight?this.expandedHeight:!i&&this.collapsedHeight?this.collapsedHeight:null}_keydown(i){switch(i.keyCode){case 32:case 13:zt(i)||(i.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(i);return}}focus(i,r){i?this._focusMonitor.focusVia(this._element,i,r):this._element.nativeElement.focus(r)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(i=>{i&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}};e.\u0275fac=function(r){return new(r||e)(g(cx,1),g(ce),g(Yi),g(Ge),g(LR,8),g(Bt,8),wn("tabindex"))},e.\u0275cmp=re({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(r,o){r&1&&le("click",function(){return o._toggle()})("keydown",function(a){return o._keydown(a)}),r&2&&(Ve("id",o.panel._headerId)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o._getPanelId())("aria-expanded",o._isExpanded())("aria-disabled",o.panel.disabled),hi("height",o._getHeaderHeight()),Oe("mat-expanded",o._isExpanded())("mat-expansion-toggle-indicator-after",o._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",o._getTogglePosition()==="before")("_mat-animation-noopable",o._animationMode==="NoopAnimations"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:Si(i)]},standalone:!0,features:[nt,Ne],ngContentSelectors:XQ,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(r,o){r&1&&(at(KQ),D(0,"span",0),ke(1),ke(2,1),ke(3,2),I(),ve(4,ZQ,3,1,"span",1)),r&2&&(Oe("mat-content-hide-toggle",!o._showToggle()),A(4),tt(o._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color);display:var(--mat-expansion-legacy-header-indicator-display, inline-block)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color);display:var(--mat-expansion-header-indicator-display, none)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[FR.indicatorRotate]},changeDetection:0});let t=e;return t})();var jR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"],standalone:!0});let t=e;return t})();var HR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,AR,Kn]});let t=e;return t})();var iK=["*"],pg;function nK(){if(pg===void 0&&(pg=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(pg=t.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return pg}function Uh(t){return nK()?.createHTML(t)||t}function zR(t){return Error(`Unable to find icon with the name "${t}"`)}function rK(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function UR(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function qR(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Fs=class{constructor(e,n,i){this.url=e,this.svgText=n,this.options=i}},oK=(()=>{let e=class e{constructor(i,r,o,s){this._httpClient=i,this._sanitizer=r,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","mat-ligature-font"],this._document=o}addSvgIcon(i,r,o){return this.addSvgIconInNamespace("",i,r,o)}addSvgIconLiteral(i,r,o){return this.addSvgIconLiteralInNamespace("",i,r,o)}addSvgIconInNamespace(i,r,o,s){return this._addSvgIconConfig(i,r,new Fs(o,null,s))}addSvgIconResolver(i){return this._resolvers.push(i),this}addSvgIconLiteralInNamespace(i,r,o,s){let a=this._sanitizer.sanitize($i.HTML,o);if(!a)throw qR(o);let c=Uh(a);return this._addSvgIconConfig(i,r,new Fs("",c,s))}addSvgIconSet(i,r){return this.addSvgIconSetInNamespace("",i,r)}addSvgIconSetLiteral(i,r){return this.addSvgIconSetLiteralInNamespace("",i,r)}addSvgIconSetInNamespace(i,r,o){return this._addSvgIconSetConfig(i,new Fs(r,null,o))}addSvgIconSetLiteralInNamespace(i,r,o){let s=this._sanitizer.sanitize($i.HTML,r);if(!s)throw qR(r);let a=Uh(s);return this._addSvgIconSetConfig(i,new Fs("",a,o))}registerFontClassAlias(i,r=i){return this._fontCssClassesByAlias.set(i,r),this}classNameForFontAlias(i){return this._fontCssClassesByAlias.get(i)||i}setDefaultFontSetClass(...i){return this._defaultFontSetClass=i,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(i){let r=this._sanitizer.sanitize($i.RESOURCE_URL,i);if(!r)throw UR(i);let o=this._cachedIconsByUrl.get(r);return o?we(mg(o)):this._loadSvgIconFromConfig(new Fs(i,null)).pipe(Wt(s=>this._cachedIconsByUrl.set(r,s)),Te(s=>mg(s)))}getNamedSvgIcon(i,r=""){let o=$R(r,i),s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(r,i),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);let a=this._iconSetConfigs.get(r);return a?this._getSvgFromIconSetConfigs(i,a):ar(zR(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(i){return i.svgText?we(mg(this._svgElementFromConfig(i))):this._loadSvgIconFromConfig(i).pipe(Te(r=>mg(r)))}_getSvgFromIconSetConfigs(i,r){let o=this._extractIconWithNameFromAnySet(i,r);if(o)return we(o);let s=r.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(ds(c=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize($i.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(u)),we(null)})));return tc(s).pipe(Te(()=>{let a=this._extractIconWithNameFromAnySet(i,r);if(!a)throw zR(i);return a}))}_extractIconWithNameFromAnySet(i,r){for(let o=r.length-1;o>=0;o--){let s=r[o];if(s.svgText&&s.svgText.toString().indexOf(i)>-1){let a=this._svgElementFromConfig(s),c=this._extractSvgIconFromSet(a,i,s.options);if(c)return c}}return null}_loadSvgIconFromConfig(i){return this._fetchIcon(i).pipe(Wt(r=>i.svgText=r),Te(()=>this._svgElementFromConfig(i)))}_loadSvgIconSetFromConfig(i){return i.svgText?we(null):this._fetchIcon(i).pipe(Wt(r=>i.svgText=r))}_extractSvgIconFromSet(i,r,o){let s=i.querySelector(`[id="${r}"]`);if(!s)return null;let a=s.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let c=this._svgElementFromString(Uh(""));return c.appendChild(a),this._setSvgAttributes(c,o)}_svgElementFromString(i){let r=this._document.createElement("DIV");r.innerHTML=i;let o=r.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(i){let r=this._svgElementFromString(Uh("")),o=i.attributes;for(let s=0;sUh(u)),So(()=>this._inProgressUrlFetches.delete(a)),E_());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(i,r,o){return this._svgIconConfigs.set($R(i,r),o),this}_addSvgIconSetConfig(i,r){let o=this._iconSetConfigs.get(i);return o?o.push(r):this._iconSetConfigs.set(i,[r]),this}_svgElementFromConfig(i){if(!i.svgElement){let r=this._svgElementFromString(i.svgText);this._setSvgAttributes(r,i.options),i.svgElement=r}return i.svgElement}_getIconConfigFromResolvers(i,r){for(let o=0;oe?e.pathname+e.search:""}}var WR=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],dK=WR.map(t=>`[${t}]`).join(", "),uK=/^url\(['"]?#(.*?)['"]?\)$/,Go=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(i){this._color=i}get svgIcon(){return this._svgIcon}set svgIcon(i){i!==this._svgIcon&&(i?this._updateSvgIcon(i):this._svgIcon&&this._clearSvgElement(),this._svgIcon=i)}get fontSet(){return this._fontSet}set fontSet(i){let r=this._cleanupFontValue(i);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(i){let r=this._cleanupFontValue(i);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}constructor(i,r,o,s,a,c){this._elementRef=i,this._iconRegistry=r,this._location=s,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Me.EMPTY,c&&(c.color&&(this.color=this._defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),o||i.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(i){if(!i)return["",""];let r=i.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${i}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let i=this._elementsWithExternalReferences;if(i&&i.size){let r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(i){this._clearSvgElement();let r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(i),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(i)}_clearSvgElement(){let i=this._elementRef.nativeElement,r=i.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){let o=i.childNodes[r];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let i=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>i.classList.remove(o)),r.forEach(o=>i.classList.add(o)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&i.classList.remove(this._previousFontIconClass),this.fontIcon&&i.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(i){return typeof i=="string"?i.trim().split(" ")[0]:i}_prependPathToReferences(i){let r=this._elementsWithExternalReferences;r&&r.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${i}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(i){let r=i.querySelectorAll(dK),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{let c=r[s],l=c.getAttribute(a),u=l?l.match(uK):null;if(u){let d=o.get(c);d||(d=[],o.set(c,d)),d.push({name:a,value:u[1]})}})}_updateSvgIcon(i){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),i){let[r,o]=this._splitIconName(i);r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe(wt(1)).subscribe(s=>this._setSvgElement(s),s=>{let a=`Error retrieving icon ${r}:${o}! ${s.message}`;this._errorHandler.handleError(new Error(a))})}}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(oK),wn("aria-hidden"),g(cK),g(_n),g(aK,8))},e.\u0275cmp=re({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(r,o){r&2&&(Ve("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),_i(o.color?"mat-"+o.color:""),Oe("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Ee],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[nt,Ne],ngContentSelectors:iK,decls:1,vars:0,template:function(r,o){r&1&&(at(),ke(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0});let t=e;return t})(),GR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,Ze]});let t=e;return t})();var YR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,Ze]});let t=e;return t})();var QR=["*"],KR='.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mdc-list-list-item-container-color);border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.cdk-high-contrast-active .mdc-list-item.mdc-list-item--selected::before,.cdk-high-contrast-active .mdc-list-item.mdc-list-item--selected:focus::before,.cdk-high-contrast-active .mdc-list-item:not(.mdc-list-item--selected):focus::before{border-color:CanvasText}.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item.mdc-list-item--selected::before{border-width:3px;border-style:double}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color);width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size);height:var(--mdc-list-list-item-leading-avatar-size);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font);line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height);font-size:var(--mdc-list-list-item-trailing-supporting-text-size);font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color);width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color)}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color)}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mdc-list-list-item-label-text-color);font-family:var(--mdc-list-list-item-label-text-font);line-height:var(--mdc-list-list-item-label-text-line-height);font-size:var(--mdc-list-list-item-label-text-size);font-weight:var(--mdc-list-list-item-label-text-weight);letter-spacing:var(--mdc-list-list-item-label-text-tracking)}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color)}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color)}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mdc-list-list-item-supporting-text-color);font-family:var(--mdc-list-list-item-supporting-text-font);line-height:var(--mdc-list-list-item-supporting-text-line-height);font-size:var(--mdc-list-list-item-supporting-text-size);font-weight:var(--mdc-list-list-item-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-supporting-text-tracking)}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color);opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color);opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color)}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color);opacity:var(--mdc-list-list-item-hover-state-layer-opacity)}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color);opacity:var(--mdc-list-list-item-disabled-state-layer-opacity)}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color);opacity:var(--mdc-list-list-item-focus-state-layer-opacity)}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape);background-color:var(--mdc-list-list-item-leading-avatar-color)}.mat-mdc-list-item-icon{font-size:var(--mdc-list-list-item-leading-icon-size)}.cdk-high-contrast-active a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none}.mat-mdc-list-item>.mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-mdc-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape);--mat-mdc-focus-indicator-border-radius:var(--mat-list-active-indicator-shape)}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color)}',hK=["unscopedContent"],fK=["text"],pK=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],mK=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var gK=new q("ListOption"),vK=(()=>{let e=class e{constructor(i){this._elementRef=i}};e.\u0275fac=function(r){return new(r||e)(g(ce))},e.\u0275dir=te({type:e,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"],standalone:!0});let t=e;return t})(),bK=(()=>{let e=class e{constructor(i){this._elementRef=i}};e.\u0275fac=function(r){return new(r||e)(g(ce))},e.\u0275dir=te({type:e,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"],standalone:!0});let t=e;return t})(),_K=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"],standalone:!0});let t=e;return t})(),XR=(()=>{let e=class e{constructor(i){this._listOption=i}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}};e.\u0275fac=function(r){return new(r||e)(g(gK,8))},e.\u0275dir=te({type:e,hostVars:4,hostBindings:function(r,o){r&2&&Oe("mdc-list-item__start",o._isAlignedAtStart())("mdc-list-item__end",!o._isAlignedAtStart())},standalone:!0});let t=e;return t})(),yK=(()=>{let e=class e extends XR{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],standalone:!0,features:[He]});let t=e;return t})(),wK=(()=>{let e=class e extends XR{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],standalone:!0,features:[He]});let t=e;return t})(),CK=new q("MAT_LIST_CONFIG"),Id=(()=>{let e=class e{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1,this._defaultOptions=B(CK,{optional:!0})}get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=wi(i)}get disabled(){return this._disabled}set disabled(i){this._disabled=wi(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,hostVars:1,hostBindings:function(r,o){r&2&&Ve("aria-disabled",o.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},standalone:!0});let t=e;return t})(),xK=(()=>{let e=class e{set lines(i){this._explicitLines=En(i,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(i){this._disableRipple=wi(i)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(i){this._disabled=wi(i)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(i,r,o,s,a,c){this._elementRef=i,this._ngZone=r,this._listBase=o,this._platform=s,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new Me,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=a||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._noopAnimations=c==="NoopAnimations",o&&!o._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new Sh(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(yt(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(i){if(!this._lines||!this._titles||!this._unscopedContent)return;i&&this._checkDomForUnscopedTextContent();let r=this._explicitLines??this._inferLinesFromContent(),o=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",r<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",r<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",r===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",r===3),this._hasUnscopedTextContent){let s=this._titles.length===0&&r===1;o.classList.toggle("mdc-list-item__primary-text",s),o.classList.toggle("mdc-list-item__secondary-text",!s)}else o.classList.remove("mdc-list-item__primary-text"),o.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let i=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(i+=1),i}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(i=>i.nodeType!==i.COMMENT_NODE).some(i=>!!(i.textContent&&i.textContent.trim()))}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(ee),g(Id,8),g(et),g(Ac,8),g(Bt,8))},e.\u0275dir=te({type:e,contentQueries:function(r,o,s){if(r&1&&(ct(s,yK,4),ct(s,wK,4)),r&2){let a;pe(a=me())&&(o._avatars=a),pe(a=me())&&(o._icons=a)}},hostVars:4,hostBindings:function(r,o){r&2&&(Ve("aria-disabled",o.disabled)("disabled",o._isButtonElement&&o.disabled||null),Oe("mdc-list-item--disabled",o.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"},standalone:!0});let t=e;return t})();var ja=(()=>{let e=class e extends Id{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275cmp=re({type:e,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],standalone:!0,features:[Ye([{provide:Id,useExisting:e}]),He,Ne],ngContentSelectors:QR,decls:1,vars:0,template:function(r,o){r&1&&(at(),ke(0))},styles:[KR],encapsulation:2,changeDetection:0});let t=e;return t})(),Yo=(()=>{let e=class e extends xK{get activated(){return this._activated}set activated(i){this._activated=wi(i)}constructor(i,r,o,s,a,c){super(i,r,o,s,a,c),this._activated=!1}_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(ee),g(Id,8),g(et),g(Ac,8),g(Bt,8))},e.\u0275cmp=re({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(r,o,s){if(r&1&&(ct(s,bK,5),ct(s,vK,5),ct(s,_K,5)),r&2){let a;pe(a=me())&&(o._lines=a),pe(a=me())&&(o._titles=a),pe(a=me())&&(o._meta=a)}},viewQuery:function(r,o){if(r&1&&(ze(hK,5),ze(fK,5)),r&2){let s;pe(s=me())&&(o._unscopedContent=s.first),pe(s=me())&&(o._itemText=s.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(r,o){r&2&&(Ve("aria-current",o._getAriaCurrent()),Oe("mdc-list-item--activated",o.activated)("mdc-list-item--with-leading-avatar",o._avatars.length!==0)("mdc-list-item--with-leading-icon",o._icons.length!==0)("mdc-list-item--with-trailing-meta",o._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",o._hasBothLeadingAndTrailing())("_mat-animation-noopable",o._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],standalone:!0,features:[He,Ne],ngContentSelectors:mK,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-mdc-focus-indicator"]],template:function(r,o){if(r&1){let s=st();at(pK),ke(0),D(1,"span",1),ke(2,1),ke(3,2),D(4,"span",2,0),le("cdkObserveContent",function(){return Se(s),Ie(o._updateItemLines(!0))}),ke(6,3),I()(),ke(7,4),ke(8,5),xe(9,"div",3)}},dependencies:[KA],encapsulation:2,changeDetection:0});let t=e;return t})();var ZR=(()=>{let e=class e extends Id{constructor(){super(...arguments),this._isNonInteractive=!1}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275cmp=re({type:e,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],standalone:!0,features:[Ye([{provide:Id,useExisting:e}]),He,Ne],ngContentSelectors:QR,decls:1,vars:0,template:function(r,o){r&1&&(at(),ke(0))},styles:[KR],encapsulation:2,changeDetection:0});let t=e;return t})();var JR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[ud,Wi,Ze,As,NC,YR]});let t=e;return t})();var DK=["mat-menu-item",""],EK=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],SK=["mat-icon, [matMenuItemIcon]","*"];function IK(t,e){t&1&&(No(),D(0,"svg",2),xe(1,"polygon",3),I())}var kK=["*"];function MK(t,e){if(t&1){let n=st();D(0,"div",0),le("keydown",function(r){Se(n);let o=se();return Ie(o._handleKeydown(r))})("click",function(){Se(n);let r=se();return Ie(r.closed.emit("click"))})("@transformMenu.start",function(r){Se(n);let o=se();return Ie(o._onAnimationStart(r))})("@transformMenu.done",function(r){Se(n);let o=se();return Ie(o._onAnimationDone(r))}),D(1,"div",1),ke(2),I()()}if(t&2){let n=se();_i(n._classList),ie("id",n.panelId)("@transformMenu",n._panelAnimationState),Ve("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var lx=new q("MAT_MENU_PANEL"),Wh=(()=>{let e=class e{constructor(i,r,o,s,a){this._elementRef=i,this._document=r,this._focusMonitor=o,this._parentMenu=s,this._changeDetectorRef=a,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new K,this._focused=new K,this._highlighted=!1,this._triggersSubmenu=!1,s?.addItem?.(this)}focus(i,r){this._focusMonitor&&i?this._focusMonitor.focusVia(this._getHostElement(),i,r):this._getHostElement().focus(r),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(i){this.disabled&&(i.preventDefault(),i.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let i=this._elementRef.nativeElement.cloneNode(!0),r=i.querySelectorAll("mat-icon, .material-icons");for(let o=0;o enter",St("120ms cubic-bezier(0, 0, 0.2, 1)",Ue({opacity:1,transform:"scale(1)"}))),xt("* => void",St("100ms 25ms linear",Ue({opacity:0})))]),fadeInItems:Yt("fadeInItems",[kt("showing",Ue({opacity:1})),xt("void => *",[Ue({opacity:0}),St("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},r2e=gg.fadeInItems,o2e=gg.transformMenu,AK=0,RK=new q("mat-menu-default-options",{providedIn:"root",factory:OK});function OK(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var kd=(()=>{let e=class e{get xPosition(){return this._xPosition}set xPosition(i){this._xPosition=i,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(i){this._yPosition=i,this.setPositionClasses()}set panelClass(i){let r=this._previousPanelClass,o=X({},this._classList);r&&r.length&&r.split(" ").forEach(s=>{o[s]=!1}),this._previousPanelClass=i,i&&i.length&&(i.split(" ").forEach(s=>{o[s]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}get classList(){return this.panelClass}set classList(i){this.panelClass=i}constructor(i,r,o,s){this._elementRef=i,this._changeDetectorRef=s,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new $r,this._classList={},this._panelAnimationState="void",this._animationDone=new K,this.closed=new oe,this.close=this.closed,this.panelId=`mat-menu-panel-${AK++}`,this._injector=B(Je),this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this.overlapTrigger=o.overlapTrigger,this.hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new J0(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),Nt(i=>yt(...i.map(r=>r._focused)))).subscribe(i=>this._keyManager.updateActiveItem(i)),this._directDescendantItems.changes.subscribe(i=>{let r=this._keyManager;if(this._panelAnimationState==="enter"&&r.activeItem?._hasFocus()){let o=i.toArray(),s=Math.max(0,Math.min(o.length-1,r.activeItemIndex||0));o[s]&&!o[s].disabled?r.setActiveItem(s):r.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),Nt(r=>yt(...r.map(o=>o._hovered))))}addItem(i){}removeItem(i){}_handleKeydown(i){let r=i.keyCode,o=this._keyManager;switch(r){case 27:zt(i)||(i.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(r===38||r===40)&&o.setFocusOrigin("keyboard"),o.onKeydown(i);return}i.stopPropagation()}focusFirstItem(i="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=ri(()=>{let r=null;if(this._directDescendantItems.length&&(r=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!r||!r.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(i).setFirstItemActive(),!o.activeItem&&r&&r.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(i){if(this._baseElevation===null){let c=(typeof getComputedStyle=="function"?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(c)}let r=Math.min(this._baseElevation+i,24),o=`${this._elevationPrefix}${r}`,s=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));if(!s||s===this._previousElevation){let a=X({},this._classList);this._previousElevation&&(a[this._previousElevation]=!1),a[o]=!0,this._previousElevation=o,this._classList=a}}setPositionClasses(i=this.xPosition,r=this.yPosition){this._classList=mt(X({},this._classList),{"mat-menu-before":i==="before","mat-menu-after":i==="after","mat-menu-above":r==="above","mat-menu-below":r==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(i){this._animationDone.next(i),this._isAnimating=!1}_onAnimationStart(i){this._isAnimating=!0,i.toState==="enter"&&this._keyManager.activeItemIndex===0&&(i.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Vt(this._allItems)).subscribe(i=>{this._directDescendantItems.reset(i.filter(r=>r._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(ee),g(RK),g(Ge))},e.\u0275cmp=re({type:e,selectors:[["mat-menu"]],contentQueries:function(r,o,s){if(r&1&&(ct(s,TK,5),ct(s,Wh,5),ct(s,Wh,4)),r&2){let a;pe(a=me())&&(o.lazyContent=a.first),pe(a=me())&&(o._allItems=a),pe(a=me())&&(o.items=a)}},viewQuery:function(r,o){if(r&1&&ze(Rt,5),r&2){let s;pe(s=me())&&(o.templateRef=s.first)}},hostVars:3,hostBindings:function(r,o){r&2&&Ve("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",Ee],hasBackdrop:[2,"hasBackdrop","hasBackdrop",i=>i==null?null:Ee(i)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[Ye([{provide:lx,useExisting:e}]),nt,Ne],ngContentSelectors:kK,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(r,o){r&1&&(at(),ve(0,MK,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}[dir=rtl] .mat-mdc-menu-item{padding-right:var(--mat-menu-item-leading-spacing);padding-left:var(--mat-menu-item-trailing-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-right:var(--mat-menu-item-with-icon-leading-spacing);padding-left:var(--mat-menu-item-with-icon-trailing-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[gg.transformMenu,gg.fadeInItems]},changeDetection:0});let t=e;return t})(),tO=new q("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=B(Pt);return()=>t.scrollStrategies.reposition()}});function NK(t){return()=>t.scrollStrategies.reposition()}var FK={provide:tO,deps:[Pt],useFactory:NK},eO=In({passive:!0});var iO=(()=>{let e=class e{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(i){this.menu=i}get menu(){return this._menu}set menu(i){i!==this._menu&&(this._menu=i,this._menuCloseSubscription.unsubscribe(),i&&(this._parentMaterialMenu,this._menuCloseSubscription=i.close.subscribe(r=>{this._destroyMenu(r),(r==="click"||r==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(r)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(i,r,o,s,a,c,l,u,d){this._overlay=i,this._element=r,this._viewContainerRef=o,this._menuItemInstance=c,this._dir=l,this._focusMonitor=u,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Me.EMPTY,this._hoverSubscription=Me.EMPTY,this._menuCloseSubscription=Me.EMPTY,this._changeDetectorRef=B(Ge),this._handleTouchStart=h=>{Dh(h)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new oe,this.onMenuOpen=this.menuOpened,this.menuClosed=new oe,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=a instanceof kd?a:void 0,r.nativeElement.addEventListener("touchstart",this._handleTouchStart,eO)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,eO),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let i=this.menu;if(this._menuOpen||!i)return;let r=this._createOverlay(i),o=r.getConfig(),s=o.positionStrategy;this._setPosition(i,s),o.hasBackdrop=i.hasBackdrop==null?!this.triggersSubmenu():i.hasBackdrop,r.attach(this._getPortal(i)),i.lazyContent&&i.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(i),i instanceof kd&&(i._startAnimation(),i._directDescendantItems.changes.pipe(ot(i.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(i,r){this._focusMonitor&&i?this._focusMonitor.focusVia(this._element,i,r):this._element.nativeElement.focus(r)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(i){if(!this._overlayRef||!this.menuOpen)return;let r=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(i==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,r instanceof kd?(r._resetAnimation(),r.lazyContent?r._animationDone.pipe(We(o=>o.toState==="void"),wt(1),ot(r.lazyContent._attached)).subscribe({next:()=>r.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),r?.lazyContent?.detach())}_initMenu(i){i.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,this._setMenuElevation(i),i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(i){if(i.setElevation){let r=0,o=i.parentMenu;for(;o;)r++,o=o.parentMenu;i.setElevation(r)}}_setIsMenuOpen(i){i!==this._menuOpen&&(this._menuOpen=i,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(i),this._changeDetectorRef.markForCheck())}_createOverlay(i){if(!this._overlayRef){let r=this._getOverlayConfig(i);this._subscribeToPositions(i,r.positionStrategy),this._overlayRef=this._overlay.create(r),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(i){return new Tn({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:i.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:i.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(i,r){i.setPositionClasses&&r.positionChanges.subscribe(o=>{let s=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>i.setPositionClasses(s,a)):i.setPositionClasses(s,a)})}_setPosition(i,r){let[o,s]=i.xPosition==="before"?["end","start"]:["start","end"],[a,c]=i.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,u]=[a,c],[d,h]=[o,s],f=0;if(this.triggersSubmenu()){if(h=o=i.xPosition==="before"?"start":"end",s=d=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let p=this._parentMaterialMenu.items.first;this._parentInnerPadding=p?p._getHostElement().offsetTop:0}f=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else i.overlapTrigger||(l=a==="top"?"bottom":"top",u=c==="top"?"bottom":"top");r.withPositions([{originX:o,originY:l,overlayX:d,overlayY:a,offsetY:f},{originX:s,originY:l,overlayX:h,overlayY:a,offsetY:f},{originX:o,originY:u,overlayX:d,overlayY:c,offsetY:-f},{originX:s,originY:u,overlayX:h,overlayY:c,offsetY:-f}])}_menuClosingActions(){let i=this._overlayRef.backdropClick(),r=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:we(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(We(a=>a!==this._menuItemInstance),We(()=>this._menuOpen)):we();return yt(i,o,s,r)}_handleMousedown(i){xh(i)||(this._openedBy=i.button===0?"mouse":void 0,this.triggersSubmenu()&&i.preventDefault())}_handleKeydown(i){let r=i.keyCode;(r===13||r===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(r===39&&this.dir==="ltr"||r===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(i){this.triggersSubmenu()?(i.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(We(i=>i===this._menuItemInstance&&!i.disabled),na(0,gl)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof kd&&this.menu._isAnimating?this.menu._animationDone.pipe(wt(1),na(0,gl),ot(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(i){return(!this._portal||this._portal.templateRef!==i.templateRef)&&(this._portal=new Ki(i.templateRef,this._viewContainerRef)),this._portal}};e.\u0275fac=function(r){return new(r||e)(g(Pt),g(ce),g(qt),g(tO),g(lx,8),g(Wh,10),g($t,8),g(Yi),g(ee))},e.\u0275dir=te({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(r,o){r&1&&le("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),r&2&&Ve("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0});let t=e;return t})(),nO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[FK],imports:[Wi,As,Ze,An,$n,Ze]});let t=e;return t})();function LK(t,e){t&1&&xe(0,"div",2)}var VK=new q("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");var vg=(()=>{let e=class e{constructor(i,r,o,s,a){this._elementRef=i,this._ngZone=r,this._changeDetectorRef=o,this._animationMode=s,this._isNoopAnimation=!1,this._defaultColor="primary",this._value=0,this._bufferValue=0,this.animationEnd=new oe,this._mode="determinate",this._transitionendHandler=c=>{this.animationEnd.observers.length===0||!c.target||!c.target.classList.contains("mdc-linear-progress__primary-bar")||(this.mode==="determinate"||this.mode==="buffer")&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation=s==="NoopAnimations",a&&(a.color&&(this.color=this._defaultColor=a.color),this.mode=a.mode||this.mode)}get color(){return this._color||this._defaultColor}set color(i){this._color=i}get value(){return this._value}set value(i){this._value=rO(i||0),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(i){this._bufferValue=rO(i||0),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(i){this._mode=i,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${this.mode==="buffer"?this.bufferValue:100}%`}_isIndeterminate(){return this.mode==="indeterminate"||this.mode==="query"}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(ee),g(Ge),g(Bt,8),g(VK,8))},e.\u0275cmp=re({type:e,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(r,o){r&2&&(Ve("aria-valuenow",o._isIndeterminate()?null:o.value)("mode",o.mode),_i("mat-"+o.color),Oe("_mat-animation-noopable",o._isNoopAnimation)("mdc-linear-progress--animation-ready",!o._isNoopAnimation)("mdc-linear-progress--indeterminate",o._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",Si],bufferValue:[2,"bufferValue","bufferValue",Si],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],standalone:!0,features:[nt,Ne],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(r,o){r&1&&(D(0,"div",0),xe(1,"div",1),ve(2,LK,1,0,"div",2),I(),D(3,"div",3),xe(4,"span",4),I(),D(5,"div",5),xe(6,"span",4),I()),r&2&&(A(),hi("flex-basis",o._getBufferBarFlexBasis()),A(),tt(o.mode==="buffer"?2:-1),A(),hi("transform",o._getPrimaryBarTransform()))},styles:[`.mat-mdc-progress-bar{display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mdc-linear-progress-track-height),var(--mdc-linear-progress-active-indicator-height))}.cdk-high-contrast-active .mdc-linear-progress{outline-color:CanvasText}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mdc-linear-progress-active-indicator-color);border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mdc-linear-progress-track-height);border-radius:var(--mdc-linear-progress-track-shape)}.mdc-linear-progress__buffer-dots{-webkit-mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear;background-color:var(--mdc-linear-progress-track-color)}.cdk-high-contrast-active .mdc-linear-progress__buffer-dots{background-color:ButtonBorder}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mdc-linear-progress-track-color)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}`],encapsulation:2,changeDetection:0});let t=e;return t})();function rO(t,e=0,n=100){return Math.max(e,Math.min(n,t))}var oO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze]});let t=e;return t})();var BK=["trigger"],jK=["panel"],HK=[[["mat-select-trigger"]],"*"],zK=["mat-select-trigger","*"];function UK(t,e){if(t&1&&(D(0,"span",4),z(1),I()),t&2){let n=se();A(),jt(n.placeholder)}}function qK(t,e){t&1&&ke(0)}function $K(t,e){if(t&1&&(D(0,"span",11),z(1),I()),t&2){let n=se(2);A(),jt(n.triggerValue)}}function WK(t,e){if(t&1&&(D(0,"span",5),ve(1,qK,1,0)(2,$K,2,1,"span",11),I()),t&2){let n=se();A(),tt(n.customTrigger?1:2)}}function GK(t,e){if(t&1){let n=st();D(0,"div",12,1),le("@transformPanel.done",function(r){Se(n);let o=se();return Ie(o._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){Se(n);let o=se();return Ie(o._handleKeydown(r))}),ke(2,1),I()}if(t&2){let n=se();RM("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",n._getPanelTheme(),""),ie("ngClass",n.panelClass)("@transformPanel","showing"),Ve("id",n.id+"-panel")("aria-multiselectable",n.multiple)("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby())}}var YK={transformPanelWrap:Yt("transformPanelWrap",[xt("* => void",ag("@transformPanel",[sg()],{optional:!0}))]),transformPanel:Yt("transformPanel",[kt("void",Ue({opacity:0,transform:"scale(1, 0.8)"})),xt("void => showing",St("120ms cubic-bezier(0, 0, 0.2, 1)",Ue({opacity:1,transform:"scale(1, 1)"}))),xt("* => void",St("100ms linear",Ue({opacity:0})))])};var aO=0,cO=new q("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=B(Pt);return()=>t.scrollStrategies.reposition()}});function QK(t){return()=>t.scrollStrategies.reposition()}var KK=new q("MAT_SELECT_CONFIG"),XK={provide:cO,deps:[Pt],useFactory:QK},ZK=new q("MatSelectTrigger"),dx=class{constructor(e,n){this.source=e,this.value=n}},bg=(()=>{let e=class e{_scrollOptionIntoView(i){let r=this.options.toArray()[i];if(r){let o=this.panel.nativeElement,s=ng(i,this.options,this.optionGroups),a=r._getHostElement();i===0&&s===1?o.scrollTop=0:o.scrollTop=rg(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(i){return new dx(this,i)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(i){this._hideSingleSelectionIndicator=i,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Ma.required)??!1}set required(i){this._required=i,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(i){this._selectionModel,this._multiple=i}get compareWith(){return this._compareWith}set compareWith(i){this._compareWith=i,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(i){this._assignValue(i)&&this._onChange(i)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(i,r,o,s,a,c,l,u,d,h,f,p,m,v){this._viewportRuler=i,this._changeDetectorRef=r,this._elementRef=a,this._dir=c,this._parentFormField=d,this.ngControl=h,this._liveAnnouncer=m,this._defaultOptions=v,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(b,C)=>b===C,this._uid=`mat-select-${aO++}`,this._triggerAriaLabelledBy=null,this._destroy=new K,this.stateChanges=new K,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${aO++}`,this._panelDoneAnimatingStream=new K,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new K,this.optionSelectionChanges=en(()=>{let b=this.options;return b?b.changes.pipe(Vt(b),Nt(()=>yt(...b.map(C=>C.onSelectionChange)))):this._initialized.pipe(Nt(()=>this.optionSelectionChanges))}),this.openedChange=new oe,this._openedStream=this.openedChange.pipe(We(b=>b),Te(()=>{})),this._closedStream=this.openedChange.pipe(We(b=>!b),Te(()=>{})),this.selectionChange=new oe,this.valueChange=new oe,this._trackedModal=null,this._skipPredicate=b=>this.panelOpen?!1:b.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),v?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=v.typeaheadDebounceInterval),this._errorStateTracker=new Tc(s,h,u,l,this.stateChanges),this._scrollStrategyFactory=p,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}ngOnInit(){this._selectionModel=new R0(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(hs(),ot(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(ot(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(ot(this._destroy)).subscribe(i=>{i.added.forEach(r=>r.select()),i.removed.forEach(r=>r.deselect())}),this.options.changes.pipe(Vt(null),ot(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let i=this._getTriggerAriaLabelledby(),r=this.ngControl;if(i!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=i,i?o.setAttribute("aria-labelledby",i):o.removeAttribute("aria-labelledby")}r&&(this._previousControl!==r.control&&(this._previousControl!==void 0&&r.disabled!==null&&r.disabled!==this.disabled&&(this.disabled=r.disabled),this._previousControl=r.control),this.updateErrorState())}ngOnChanges(i){(i.disabled||i.userAriaDescribedBy)&&this.stateChanges.next(),i.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let i=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!i)return;let r=`${this.id}-panel`;this._trackedModal&&Na(this._trackedModal,"aria-owns",r),gd(i,"aria-owns",r),this._trackedModal=i}_clearFromModal(){if(!this._trackedModal)return;let i=`${this.id}-panel`;Na(this._trackedModal,"aria-owns",i),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(i){this._assignValue(i)}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let i=this._selectionModel.selected.map(r=>r.viewValue);return this._isRtl()&&i.reverse(),i.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(i){this.disabled||(this.panelOpen?this._handleOpenKeydown(i):this._handleClosedKeydown(i))}_handleClosedKeydown(i){let r=i.keyCode,o=r===40||r===38||r===37||r===39,s=r===13||r===32,a=this._keyManager;if(!a.isTyping()&&s&&!zt(i)||(this.multiple||i.altKey)&&o)i.preventDefault(),this.open();else if(!this.multiple){let c=this.selected;a.onKeydown(i);let l=this.selected;l&&c!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(i){let r=this._keyManager,o=i.keyCode,s=o===40||o===38,a=r.isTyping();if(s&&i.altKey)i.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&r.activeItem&&!zt(i))i.preventDefault(),r.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&i.ctrlKey){i.preventDefault();let c=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(c?l.select():l.deselect())})}else{let c=r.activeItemIndex;r.onKeydown(i),this._multiple&&s&&i.shiftKey&&r.activeItem&&r.activeItemIndex!==c&&r.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(wt(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(i){if(this.options.forEach(r=>r.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&i)Array.isArray(i),i.forEach(r=>this._selectOptionByValue(r)),this._sortValues();else{let r=this._selectOptionByValue(i);r?this._keyManager.updateActiveItem(r):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(i){let r=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return o.value!=null&&this._compareWith(o.value,i)}catch{return!1}});return r&&this._selectionModel.select(r),r}_assignValue(i){return i!==this._value||this._multiple&&Array.isArray(i)?(this.options&&this._setSelectionByValue(i),this._value=i,!0):!1}_getOverlayWidth(i){return this.panelWidth==="auto"?(i instanceof Nh?i.elementRef:i||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let i of this.options)i._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new fd(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let i=yt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(ot(i)).subscribe(r=>{this._onSelect(r.source,r.isUserInput),r.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),yt(...this.options.map(r=>r._stateChanges)).pipe(ot(i)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(i,r){let o=this._selectionModel.isSelected(i);i.value==null&&!this._multiple?(i.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(i.value)):(o!==i.selected&&(i.selected?this._selectionModel.select(i):this._selectionModel.deselect(i)),r&&this._keyManager.setActiveItem(i),this.multiple&&(this._sortValues(),r&&this.focus())),o!==this._selectionModel.isSelected(i)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let i=this.options.toArray();this._selectionModel.sort((r,o)=>this.sortComparator?this.sortComparator(r,o,i):i.indexOf(r)-i.indexOf(o)),this.stateChanges.next()}}_propagateChanges(i){let r;this.multiple?r=this.selected.map(o=>o.value):r=this.selected?this.selected.value:i,this._value=r,this.valueChange.emit(r),this._onChange(r),this.selectionChange.emit(this._getChangeEvent(r)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let i=-1;for(let r=0;r0}focus(i){this._elementRef.nativeElement.focus(i)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),r=i?i+" ":"";return this.ariaLabelledby?r+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(i){this.openedChange.emit(i)}setDescribedByIds(i){i.length?this._elementRef.nativeElement.setAttribute("aria-describedby",i.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};e.\u0275fac=function(r){return new(r||e)(g(Gn),g(Ge),g(ee),g(kh),g(ce),g($t,8),g(Yn,8),g(yh,8),g(Os,8),g(vr,10),wn("tabindex"),g(cO),g(eg),g(KK,8))},e.\u0275cmp=re({type:e,selectors:[["mat-select"]],contentQueries:function(r,o,s){if(r&1&&(ct(s,ZK,5),ct(s,qo,5),ct(s,Th,5)),r&2){let a;pe(a=me())&&(o.customTrigger=a.first),pe(a=me())&&(o.options=a),pe(a=me())&&(o.optionGroups=a)}},viewQuery:function(r,o){if(r&1&&(ze(BK,5),ze(jK,5),ze(zC,5)),r&2){let s;pe(s=me())&&(o.trigger=s.first),pe(s=me())&&(o.panel=s.first),pe(s=me())&&(o._overlayDir=s.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(r,o){r&1&&le("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),r&2&&(Ve("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),Oe("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",Ee],disableRipple:[2,"disableRipple","disableRipple",Ee],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:Si(i)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Ee],placeholder:"placeholder",required:[2,"required","required",Ee],multiple:[2,"multiple","multiple",Ee],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",Ee],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Si],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[Ye([{provide:yd,useExisting:e},{provide:Mh,useExisting:e}]),nt,lt,Ne],ngContentSelectors:zK,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(r,o){if(r&1){let s=st();at(HK),D(0,"div",2,0),le("click",function(){return Se(s),Ie(o.open())}),D(3,"div",3),ve(4,UK,2,1,"span",4)(5,WK,3,1,"span",5),I(),D(6,"div",6)(7,"div",7),No(),D(8,"svg",8),xe(9,"path",9),I()()()(),ve(10,GK,3,9,"ng-template",10),le("backdropClick",function(){return Se(s),Ie(o.close())})("attach",function(){return Se(s),Ie(o._onAttached())})("detach",function(){return Se(s),Ie(o.close())})}if(r&2){let s=Pi(1);A(3),Ve("id",o._valueId),A(),tt(o.empty?4:5),A(6),ie("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||s)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[Nh,zC,Wm],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[YK.transformPanel]},changeDetection:0});let t=e;return t})();var lO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[XK],imports:[Wi,An,vd,Ze,$n,Fc,vd,Ze]});let t=e;return t})();var wg=["*"],JK=["content"],eX=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],tX=["mat-drawer","mat-drawer-content","*"];function iX(t,e){if(t&1){let n=st();D(0,"div",1),le("click",function(){Se(n);let r=se();return Ie(r._onBackdropClicked())}),I()}if(t&2){let n=se();Oe("mat-drawer-shown",n._isShowingBackdrop())}}function nX(t,e){t&1&&(D(0,"mat-drawer-content"),ke(1,2),I())}var rX=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],oX=["mat-sidenav","mat-sidenav-content","*"];function sX(t,e){if(t&1){let n=st();D(0,"div",1),le("click",function(){Se(n);let r=se();return Ie(r._onBackdropClicked())}),I()}if(t&2){let n=se();Oe("mat-drawer-shown",n._isShowingBackdrop())}}function aX(t,e){t&1&&(D(0,"mat-sidenav-content"),ke(1,2),I())}var cX='.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);box-shadow:var(--mat-sidenav-container-elevation-shadow);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);width:var(--mat-sidenav-container-width);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}',uO={transformDrawer:Yt("transform",[kt("open, open-instant",Ue({transform:"none",visibility:"visible"})),kt("void",Ue({"box-shadow":"none",visibility:"hidden"})),xt("void => open-instant",St("0ms")),xt("void <=> open, open-instant => void",St("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var lX=new q("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:dX}),ux=new q("MAT_DRAWER_CONTAINER");function dX(){return!1}var _g=(()=>{let e=class e extends Wn{constructor(i,r,o,s,a){super(o,s,a),this._changeDetectorRef=i,this._container=r}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(r){return new(r||e)(g(Ge),g(li(()=>fO)),g(ce),g(to),g(ee))},e.\u0275cmp=re({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(r,o){r&2&&hi("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},standalone:!0,features:[Ye([{provide:Wn,useExisting:e}]),He,Ne],ngContentSelectors:wg,decls:1,vars:0,template:function(r,o){r&1&&(at(),ke(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),hO=(()=>{let e=class e{get position(){return this._position}set position(i){i=i==="end"?"end":"start",i!==this._position&&(this._isAttached&&this._updatePositionInParent(i),this._position=i,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(i){this._mode=i,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(i){this._disableClose=wi(i)}get autoFocus(){let i=this._autoFocus;return i??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(i){(i==="true"||i==="false"||i==null)&&(i=wi(i)),this._autoFocus=i}get opened(){return this._opened}set opened(i){this.toggle(wi(i))}constructor(i,r,o,s,a,c,l,u){this._elementRef=i,this._focusTrapFactory=r,this._focusMonitor=o,this._platform=s,this._ngZone=a,this._interactivityChecker=c,this._doc=l,this._container=u,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new K,this._animationEnd=new K,this._animationState="void",this.openedChange=new oe(!0),this._openedStream=this.openedChange.pipe(We(d=>d),Te(()=>{})),this.openedStart=this._animationStarted.pipe(We(d=>d.fromState!==d.toState&&d.toState.indexOf("open")===0),_l(void 0)),this._closedStream=this.openedChange.pipe(We(d=>!d),Te(()=>{})),this.closedStart=this._animationStarted.pipe(We(d=>d.fromState!==d.toState&&d.toState==="void"),_l(void 0)),this._destroyed=new K,this.onPositionChanged=new oe,this._modeChanged=new K,this._injector=B(Je),this._changeDetectorRef=B(Ge),this.openedChange.pipe(ot(this._destroyed)).subscribe(d=>{d?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{tn(this._elementRef.nativeElement,"keydown").pipe(We(d=>d.keyCode===27&&!this.disableClose&&!zt(d)),ot(this._destroyed)).subscribe(d=>this._ngZone.run(()=>{this.close(),d.stopPropagation(),d.preventDefault()}))}),this._animationEnd.pipe(hs((d,h)=>d.fromState===h.fromState&&d.toState===h.toState)).subscribe(d=>{let{fromState:h,toState:f}=d;(f.indexOf("open")===0&&h==="void"||f==="void"&&h.indexOf("open")===0)&&this.openedChange.emit(this._opened)})}_forceFocus(i,r){this._interactivityChecker.isFocusable(i)||(i.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{i.removeEventListener("blur",o),i.removeEventListener("mousedown",o),i.removeAttribute("tabindex")};i.addEventListener("blur",o),i.addEventListener("mousedown",o)})),i.focus(r)}_focusByCssSelector(i,r){let o=this._elementRef.nativeElement.querySelector(i);o&&this._forceFocus(o,r)}_takeFocus(){if(!this._focusTrap)return;let i=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":ri(()=>{!this._focusTrap.focusInitialElement()&&typeof i.focus=="function"&&i.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(i){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,i):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let i=this._doc.activeElement;return!!i&&this._elementRef.nativeElement.contains(i)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(i){return this.toggle(!0,i)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(i=!this.opened,r){i&&r&&(this._openedVia=r);let o=this._setOpen(i,!i&&this._isFocusWithinDrawer(),this._openedVia||"program");return i||(this._openedVia=null),o}_setOpen(i,r,o){return this._opened=i,i?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",r&&this._restoreFocus(o)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(s=>{this.openedChange.pipe(wt(1)).subscribe(a=>s(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop)}_updatePositionInParent(i){if(!this._platform.isBrowser)return;let r=this._elementRef.nativeElement,o=r.parentNode;i==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,r)),o.appendChild(r)):this._anchor&&this._anchor.parentNode.insertBefore(r,this._anchor)}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(Mc),g(Yi),g(et),g(ee),g(kc),g(Fe,8),g(ux,8))},e.\u0275cmp=re({type:e,selectors:[["mat-drawer"]],viewQuery:function(r,o){if(r&1&&ze(JK,5),r&2){let s;pe(s=me())&&(o._content=s.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(r,o){r&1&&gc("@transform.start",function(a){return o._animationStarted.next(a)})("@transform.done",function(a){return o._animationEnd.next(a)}),r&2&&(mc("@transform",o._animationState),Ve("align",null),Oe("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-drawer-opened",o.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],standalone:!0,features:[Ne],ngContentSelectors:wg,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(r,o){r&1&&(at(),D(0,"div",1,0),ke(2),I())},dependencies:[Wn],encapsulation:2,data:{animation:[uO.transformDrawer]},changeDetection:0});let t=e;return t})(),fO=(()=>{let e=class e{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(i){this._autosize=wi(i)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(i){this._backdropOverride=i==null?null:wi(i)}get scrollable(){return this._userContent||this._content}constructor(i,r,o,s,a,c=!1,l){this._dir=i,this._element=r,this._ngZone=o,this._changeDetectorRef=s,this._animationMode=l,this._drawers=new $r,this.backdropClick=new oe,this._destroyed=new K,this._doCheckSubject=new K,this._contentMargins={left:null,right:null},this._contentMarginChanges=new K,this._injector=B(Je),i&&i.change.pipe(ot(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(ot(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=c}ngAfterContentInit(){this._allDrawers.changes.pipe(Vt(this._allDrawers),ot(this._destroyed)).subscribe(i=>{this._drawers.reset(i.filter(r=>!r._container||r._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Vt(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(i=>{this._watchDrawerToggle(i),this._watchDrawerPosition(i),this._watchDrawerMode(i)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Hr(10),ot(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(i=>i.open())}close(){this._drawers.forEach(i=>i.close())}updateContentMargins(){let i=0,r=0;if(this._left&&this._left.opened){if(this._left.mode=="side")i+=this._left._getWidth();else if(this._left.mode=="push"){let o=this._left._getWidth();i+=o,r-=o}}if(this._right&&this._right.opened){if(this._right.mode=="side")r+=this._right._getWidth();else if(this._right.mode=="push"){let o=this._right._getWidth();r+=o,i-=o}}i=i||null,r=r||null,(i!==this._contentMargins.left||r!==this._contentMargins.right)&&(this._contentMargins={left:i,right:r},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(i){i._animationStarted.pipe(We(r=>r.fromState!==r.toState),ot(this._drawers.changes)).subscribe(r=>{r.toState!=="open-instant"&&this._animationMode!=="NoopAnimations"&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),i.mode!=="side"&&i.openedChange.pipe(ot(this._drawers.changes)).subscribe(()=>this._setContainerClass(i.opened))}_watchDrawerPosition(i){i&&i.onPositionChanged.pipe(ot(this._drawers.changes)).subscribe(()=>{ri(()=>{this._validateDrawers()},{injector:this._injector,phase:Ni.Read})})}_watchDrawerMode(i){i&&i._modeChanged.pipe(ot(yt(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(i){let r=this._element.nativeElement.classList,o="mat-drawer-container-has-open";i?r.add(o):r.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(i=>{i.position=="end"?(this._end!=null,this._end=i):(this._start!=null,this._start=i)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(i=>i&&!i.disableClose&&this._drawerHasBackdrop(i)).forEach(i=>i._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(i){return i!=null&&i.opened}_drawerHasBackdrop(i){return this._backdropOverride==null?!!i&&i.mode!=="side":this._backdropOverride}};e.\u0275fac=function(r){return new(r||e)(g($t,8),g(ce),g(ee),g(Ge),g(Gn),g(lX),g(Bt,8))},e.\u0275cmp=re({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(r,o,s){if(r&1&&(ct(s,_g,5),ct(s,hO,5)),r&2){let a;pe(a=me())&&(o._content=a.first),pe(a=me())&&(o._allDrawers=a)}},viewQuery:function(r,o){if(r&1&&ze(_g,5),r&2){let s;pe(s=me())&&(o._userContent=s.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(r,o){r&2&&Oe("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[Ye([{provide:ux,useExisting:e}]),Ne],ngContentSelectors:tX,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(r,o){r&1&&(at(eX),ve(0,iX,1,2,"div",0),ke(1),ke(2,1),ve(3,nX,2,0,"mat-drawer-content")),r&2&&(tt(o.hasBackdrop?0:-1),A(3),tt(o._content?-1:3))},dependencies:[_g],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);box-shadow:var(--mat-sidenav-container-elevation-shadow);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);width:var(--mat-sidenav-container-width);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0});let t=e;return t})(),yg=(()=>{let e=class e extends _g{constructor(i,r,o,s,a){super(i,r,o,s,a)}};e.\u0275fac=function(r){return new(r||e)(g(Ge),g(li(()=>fx)),g(ce),g(to),g(ee))},e.\u0275cmp=re({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(r,o){r&2&&hi("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},standalone:!0,features:[Ye([{provide:Wn,useExisting:e}]),He,Ne],ngContentSelectors:wg,decls:1,vars:0,template:function(r,o){r&1&&(at(),ke(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),hx=(()=>{let e=class e extends hO{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(i){this._fixedInViewport=wi(i)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(i){this._fixedTopGap=En(i)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(i){this._fixedBottomGap=En(i)}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275cmp=re({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(r,o){r&2&&(Ve("align",null),hi("top",o.fixedInViewport?o.fixedTopGap:null,"px")("bottom",o.fixedInViewport?o.fixedBottomGap:null,"px"),Oe("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-drawer-opened",o.opened)("mat-sidenav-fixed",o.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],standalone:!0,features:[He,Ne],ngContentSelectors:wg,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(r,o){r&1&&(at(),D(0,"div",1,0),ke(2),I())},dependencies:[Wn],encapsulation:2,data:{animation:[uO.transformDrawer]},changeDetection:0});let t=e;return t})(),fx=(()=>{let e=class e extends fO{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275cmp=re({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(r,o,s){if(r&1&&(ct(s,yg,5),ct(s,hx,5)),r&2){let a;pe(a=me())&&(o._content=a.first),pe(a=me())&&(o._allDrawers=a)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(r,o){r&2&&Oe("mat-drawer-container-explicit-backdrop",o._backdropOverride)},exportAs:["matSidenavContainer"],standalone:!0,features:[Ye([{provide:ux,useExisting:e}]),He,Ne],ngContentSelectors:oX,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(r,o){r&1&&(at(rX),ve(0,sX,1,2,"div",0),ke(1),ke(2,1),ve(3,aX,2,0,"mat-sidenav-content")),r&2&&(tt(o.hasBackdrop?0:-1),A(3),tt(o._content?-1:3))},dependencies:[yg],styles:[cX],encapsulation:2,changeDetection:0});let t=e;return t})(),pO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,$n,$n,Ze]});let t=e;return t})();var hX=["knob"],fX=["valueIndicatorContainer"];function pX(t,e){if(t&1&&(D(0,"div",2,1)(2,"div",5)(3,"span",6),z(4),I()()()),t&2){let n=se();A(4),jt(n.valueIndicatorText)}}var mX=["trackActive"],gX=["*"];function vX(t,e){if(t&1&&xe(0,"div"),t&2){let n=e.$implicit,i=e.$index,r=se(3);_i(n===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),hi("transform",r._calcTickMarkTransform(i))}}function bX(t,e){if(t&1&&ql(0,vX,1,4,"div",8,OM),t&2){let n=se(2);$l(n._tickMarks)}}function _X(t,e){if(t&1&&(D(0,"div",6,1),ve(2,bX,2,0),I()),t&2){let n=se();A(2),tt(n._cachedWidth?2:-1)}}function yX(t,e){if(t&1&&xe(0,"mat-slider-visual-thumb",7),t&2){let n=se();ie("discrete",n.discrete)("thumbPosition",1)("valueIndicatorText",n.startValueIndicatorText)}}var ht=function(t){return t[t.START=1]="START",t[t.END=2]="END",t}(ht||{}),Md=function(t){return t[t.ACTIVE=0]="ACTIVE",t[t.INACTIVE=1]="INACTIVE",t}(Md||{}),px=new q("_MatSlider"),mO=new q("_MatSliderThumb"),wX=new q("_MatSliderRangeThumb"),gO=new q("_MatSliderVisualThumb");var CX=(()=>{let e=class e{constructor(i,r,o,s){this._cdr=i,this._ngZone=r,this._slider=s,this._isHovered=!1,this._isActive=!1,this._isValueIndicatorVisible=!1,this._platform=B(et),this._onPointerMove=a=>{if(this._sliderInput._isFocused)return;let c=this._hostElement.getBoundingClientRect(),l=this._slider._isCursorOnSliderThumb(a,c);this._isHovered=l,l?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)},this._onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)},this._onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")},this._onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")},this._onDragStart=a=>{a.button===0&&(this._isActive=!0,this._showActiveRipple())},this._onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef),this._platform.SAFARI&&this._showHoverRipple()},this._hostElement=o.nativeElement}ngAfterViewInit(){this._ripple.radius=24,this._sliderInput=this._slider._getInput(this.thumbPosition),this._sliderInputEl=this._sliderInput._hostElement;let i=this._sliderInputEl;this._ngZone.runOutsideAngular(()=>{i.addEventListener("pointermove",this._onPointerMove),i.addEventListener("pointerdown",this._onDragStart),i.addEventListener("pointerup",this._onDragEnd),i.addEventListener("pointerleave",this._onMouseLeave),i.addEventListener("focus",this._onFocus),i.addEventListener("blur",this._onBlur)})}ngOnDestroy(){let i=this._sliderInputEl;i&&(i.removeEventListener("pointermove",this._onPointerMove),i.removeEventListener("pointerdown",this._onDragStart),i.removeEventListener("pointerup",this._onDragEnd),i.removeEventListener("pointerleave",this._onMouseLeave),i.removeEventListener("focus",this._onFocus),i.removeEventListener("blur",this._onBlur))}_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(i){return i?.state===un.FADING_IN||i?.state===un.VISIBLE}_showRipple(i,r){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===ht.START?ht.END:ht.START)._showValueIndicator(),!(this._slider._globalRippleOptions?.disabled&&!r)))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:i,centered:!0,persistent:!0})}_hideRipple(i){if(i?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();let r=this._getSibling();r._isShowingAnyRipple()||(this._hideValueIndicator(),r._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(this.thumbPosition===ht.START?ht.END:ht.START)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}};e.\u0275fac=function(r){return new(r||e)(g(Ge),g(ee),g(ce),g(px))},e.\u0275cmp=re({type:e,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(r,o){if(r&1&&(ze(Rc,5),ze(hX,5),ze(fX,5)),r&2){let s;pe(s=me())&&(o._ripple=s.first),pe(s=me())&&(o._knob=s.first),pe(s=me())&&(o._valueIndicatorContainer=s.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},standalone:!0,features:[Ye([{provide:gO,useExisting:e}]),Ne],decls:4,vars:2,consts:[["knob",""],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["matRipple","",1,"mat-mdc-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(r,o){r&1&&(ve(0,pX,5,1,"div",2),xe(1,"div",3,0)(3,"div",4)),r&2&&(tt(o.discrete?0:-1),A(3),ie("matRippleDisabled",!0))},dependencies:[Rc],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0});let t=e;return t})(),vO=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){this._disabled=i;let r=this._getInput(ht.END),o=this._getInput(ht.START);r&&(r.disabled=this._disabled),o&&(o.disabled=this._disabled)}get discrete(){return this._discrete}set discrete(i){this._discrete=i,this._updateValueIndicatorUIs()}get min(){return this._min}set min(i){let r=isNaN(i)?this._min:i;this._min!==r&&this._updateMin(r)}_updateMin(i){let r=this._min;this._min=i,this._isRange?this._updateMinRange({old:r,new:i}):this._updateMinNonRange(i),this._onMinMaxOrStepChange()}_updateMinRange(i){let r=this._getInput(ht.END),o=this._getInput(ht.START),s=r.value,a=o.value;o.min=i.new,r.min=Math.max(i.new,o.value),o.max=Math.min(r.max,r.value),o._updateWidthInactive(),r._updateWidthInactive(),i.newi.old?this._onTranslateXChangeBySideEffect(o,r):this._onTranslateXChangeBySideEffect(r,o),s!==r.value&&this._onValueChange(r),a!==o.value&&this._onValueChange(o)}_updateMaxNonRange(i){let r=this._getInput(ht.END);if(r){let o=r.value;r.max=i,r._updateThumbUIByValue(),this._updateTrackUI(r),o!==r.value&&this._onValueChange(r)}}get step(){return this._step}set step(i){let r=isNaN(i)?this._step:i;this._step!==r&&this._updateStep(r)}_updateStep(i){this._step=i,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){let i=this._getInput(ht.END),r=this._getInput(ht.START),o=i.value,s=r.value,a=r.value;i.min=this._min,r.max=this._max,i.step=this._step,r.step=this._step,this._platform.SAFARI&&(i.value=i.value,r.value=r.value),i.min=Math.max(this._min,r.value),r.max=Math.min(this._max,i.value),r._updateWidthInactive(),i._updateWidthInactive(),i.value`${l}`,this._rippleRadius=24,this.startValueIndicatorText="",this.endValueIndicatorText="",this._isRange=!1,this._isRtl=!1,this._hasViewInitialized=!1,this._tickMarkTrackWidth=0,this._hasAnimation=!1,this._resizeTimer=null,this._platform=B(et),this._knobRadius=8,this._thumbsOverlap=!1,this._noopAnimations=c==="NoopAnimations",this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl=this._dir.value==="rtl"}ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();let i=this._getInput(ht.END),r=this._getInput(ht.START);this._isRange=!!i&&!!r,this._cdr.detectChanges();let o=this._getThumb(ht.END);this._rippleRadius=o._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._isRange?this._initUIRange(i,r):this._initUINonRange(i),this._updateTrackUI(i),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(i){i.initProps(),i.initUI(),this._updateValueIndicatorUI(i),this._hasViewInitialized=!0,i._updateThumbUIByValue()}_initUIRange(i,r){i.initProps(),i.initUI(),r.initProps(),r.initUI(),i._updateMinMax(),r._updateMinMax(),i._updateStaticStyles(),r._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,i._updateThumbUIByValue(),r._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl=this._dir.value==="rtl",this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){let i=this._getInput(ht.END),r=this._getInput(ht.START);i._setIsLeftThumb(),r._setIsLeftThumb(),i.translateX=i._calcTranslateXByValue(),r.translateX=r._calcTranslateXByValue(),i._updateStaticStyles(),r._updateStaticStyles(),i._updateWidthInactive(),r._updateWidthInactive(),i._updateThumbUIByValue(),r._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(ht.END)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(ht.START)._isActive||this._getThumb(ht.END)._isActive}_getValue(i=ht.END){let r=this._getInput(i);return r?r.value:this.min}_skipUpdate(){return!!(this._getInput(ht.START)?._skipUIUpdate||this._getInput(ht.END)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(i){let r=this._trackActive.nativeElement.style;r.left=i.left,r.right=i.right,r.transformOrigin=i.transformOrigin,r.transform=i.transform}_calcTickMarkTransform(i){return`translateX(${i*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange(i){this._hasViewInitialized&&(this._updateThumbUI(i),this._updateTrackUI(i),this._updateOverlappingThumbUI(i))}_onTranslateXChangeBySideEffect(i,r){this._hasViewInitialized&&(i._updateThumbUIByValue(),r._updateThumbUIByValue())}_onValueChange(i){this._hasViewInitialized&&(this._updateValueIndicatorUI(i),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){let i=this._getInput(ht.END),r=this._getInput(ht.START);i._updateThumbUIByValue(),r._updateThumbUIByValue(),i._updateStaticStyles(),r._updateStaticStyles(),i._updateMinMax(),r._updateMinMax(),i._updateWidthInactive(),r._updateWidthInactive()}else{let i=this._getInput(ht.END);i&&i._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_areThumbsOverlapping(){let i=this._getInput(ht.START),r=this._getInput(ht.END);return!i||!r?!1:r.translateX-i.translateX<20}_updateOverlappingThumbClassNames(i){let r=i.getSibling(),o=this._getThumb(i.thumbPosition);this._getThumb(r.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),o._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(i){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(i))}_updateThumbUI(i){if(this._skipUpdate())return;let r=this._getThumb(i.thumbPosition===ht.END?ht.END:ht.START);r._hostElement.style.transform=`translateX(${i.translateX}px)`}_updateValueIndicatorUI(i){if(this._skipUpdate())return;let r=this.displayWith(i.value);if(this._hasViewInitialized?i._valuetext.set(r):i._hostElement.setAttribute("aria-valuetext",r),this.discrete){i.thumbPosition===ht.START?this.startValueIndicatorText=r:this.endValueIndicatorText=r;let o=this._getThumb(i.thumbPosition);r.length<3?o._hostElement.classList.add("mdc-slider__thumb--short-value"):o._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){let i=this._getInput(ht.END),r=this._getInput(ht.START);i&&this._updateValueIndicatorUI(i),r&&this._updateValueIndicatorUI(r)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;let i=this._step&&this._step>0?this._step:1,o=(Math.floor(this.max/i)*i-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*o-6}_updateTrackUI(i){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(i):this._updateTrackUINonRange(i))}_updateTrackUIRange(i){let r=i.getSibling();if(!r||!this._cachedWidth)return;let o=Math.abs(r.translateX-i.translateX)/this._cachedWidth;i._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:`${this._cachedWidth-r.translateX}px`,transformOrigin:"right",transform:`scaleX(${o})`}):this._setTrackActiveStyles({left:`${r.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${o})`})}_updateTrackUINonRange(i){this._isRtl?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-i.fillPercentage})`}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${i.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||this.step===void 0||this.min===void 0||this.max===void 0)return;let i=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(i):this._updateTickMarkUINonRange(i),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange(i){let r=this._getValue(),o=Math.max(Math.round((r-this.min)/i),0),s=Math.max(Math.round((this.max-r)/i),0);this._isRtl?o++:s++,this._tickMarks=Array(o).fill(Md.ACTIVE).concat(Array(s).fill(Md.INACTIVE))}_updateTickMarkUIRange(i){let r=this._getValue(),o=this._getValue(ht.START),s=Math.max(Math.round((o-this.min)/i),0),a=Math.max(Math.round((r-o)/i)+1,0),c=Math.max(Math.round((this.max-r)/i),0);this._tickMarks=Array(s).fill(Md.INACTIVE).concat(Array(a).fill(Md.ACTIVE),Array(c).fill(Md.INACTIVE))}_getInput(i){if(i===ht.END&&this._input)return this._input;if(this._inputs?.length)return i===ht.START?this._inputs.first:this._inputs.last}_getThumb(i){return i===ht.END?this._thumbs?.last:this._thumbs?.first}_setTransition(i){this._hasAnimation=!this._platform.IOS&&i&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(i,r){let o=r.width/2,s=r.x+o,a=r.y+o,c=i.clientX-s,l=i.clientY-a;return Math.pow(c,2)+Math.pow(l,2)mx),multi:!0};var mx=(()=>{let e=class e{get value(){return Si(this._hostElement.value,0)}set value(i){i=isNaN(i)?0:i;let r=i+"";if(!this._hasSetInitialValue){this._initialValue=r;return}this._isActive||this._setValue(r)}_setValue(i){this._hostElement.value=i,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()}get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(i){this._translateX=i}get min(){return Si(this._hostElement.min,0)}set min(i){this._hostElement.min=i+"",this._cdr.detectChanges()}get max(){return Si(this._hostElement.max,0)}set max(i){this._hostElement.max=i+"",this._cdr.detectChanges()}get step(){return Si(this._hostElement.step,0)}set step(i){this._hostElement.step=i+"",this._cdr.detectChanges()}get disabled(){return Ee(this._hostElement.disabled)}set disabled(i){this._hostElement.disabled=i,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_setIsFocused(i){this._isFocused=i}constructor(i,r,o,s){this._ngZone=i,this._elementRef=r,this._cdr=o,this._slider=s,this.valueChange=new oe,this.dragStart=new oe,this.dragEnd=new oe,this.thumbPosition=ht.END,this._valuetext=Kr(""),this._knobRadius=8,this._tickMarkOffset=3,this._isActive=!1,this._isFocused=!1,this._hasSetInitialValue=!1,this._destroyed=new K,this._skipUIUpdate=!1,this._onTouchedFn=()=>{},this._isControlInitialized=!1,this._platform=B(et),this._hostElement=r.nativeElement,this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,this._initialValue===void 0?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._slider._setTransition(!1),this._slider._updateTrackUI(this),this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(i){if(!(this.disabled||i.button!==0)){if(this._platform.IOS){let r=this._slider._isCursorOnSliderThumb(i,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());this._isActive=r,this._updateWidthActive(),this._slider._updateDimensions();return}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(i,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(i),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(i){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(i)},0)}_fixValue(i){let r=i.clientX-this._slider._cachedLeft,o=this._slider._cachedWidth,s=this._slider.step===0?1:this._slider.step,a=Math.floor((this._slider.max-this._slider.min)/s),c=this._slider._isRtl?1-r/o:r/o,u=Math.round(c*a)/a*(this._slider.max-this._slider.min)+this._slider.min,d=Math.round(u/s)*s,h=this.value;if(d===h){this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(i,{withAnimation:this._slider._hasAnimation});return}this.value=d,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(i,{withAnimation:this._slider._hasAnimation})}_onPointerMove(i){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(i)}_onPointerUp(){this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(i){let r=this._tickMarkOffset,o=this._slider._cachedWidth-this._tickMarkOffset;return Math.max(Math.min(i,o),r)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset}_calcTranslateXByPointerEvent(i){return i.clientX-this._slider._cachedLeft}_updateWidthActive(){}_updateWidthInactive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding-this._tickMarkOffset*2}px)`,this._hostElement.style.left=`-${this._slider._rippleRadius-this._tickMarkOffset}px`}_updateThumbUIByValue(i){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(i)}_updateThumbUIByPointerEvent(i,r){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(i)),this._updateThumbUI(r)}_updateThumbUI(i){this._slider._setTransition(!!i?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(i){(this._isControlInitialized||i!==null)&&(this.value=i)}registerOnChange(i){this._onChangeFn=i,this._isControlInitialized=!0}registerOnTouched(i){this._onTouchedFn=i}setDisabledState(i){this.disabled=i}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}};e.\u0275fac=function(r){return new(r||e)(g(ee),g(ce),g(Ge),g(px))},e.\u0275dir=te({type:e,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(r,o){r&1&&le("change",function(){return o._onChange()})("input",function(){return o._onInput()})("blur",function(){return o._onBlur()})("focus",function(){return o._onFocus()}),r&2&&Ve("aria-valuetext",o._valuetext())},inputs:{value:[2,"value","value",Si]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],standalone:!0,features:[Ye([xX,{provide:mO,useExisting:e}]),nt]});let t=e;return t})();var bO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,As]});let t=e;return t})();function EX(t,e){if(t&1){let n=st();D(0,"div",1)(1,"button",2),le("click",function(){Se(n);let r=se();return Ie(r.action())}),z(2),I()()}if(t&2){let n=se();A(2),Ct(" ",n.data.action," ")}}var SX=["label"];function IX(t,e){}var kX=Math.pow(2,31)-1,Gh=class{constructor(e,n){this._overlayRef=n,this._afterDismissed=new K,this._afterOpened=new K,this._onAction=new K,this._dismissedByAction=!1,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,kX))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},_O=new q("MatSnackBarData"),Td=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},MX=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0});let t=e;return t})(),TX=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0});let t=e;return t})(),AX=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0});let t=e;return t})(),yO=(()=>{let e=class e{constructor(i,r){this.snackBarRef=i,this.data=r}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};e.\u0275fac=function(r){return new(r||e)(g(Gh),g(_O))},e.\u0275cmp=re({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[Ne],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(r,o){r&1&&(D(0,"div",0),z(1),I(),ve(2,EX,3,1,"div",1)),r&2&&(A(),Ct(" ",o.data.message,` +`),A(),tt(o.hasAction?2:-1))},dependencies:[ei,MX,TX,AX],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});let t=e;return t})(),RX={snackBarState:Yt("state",[kt("void, hidden",Ue({transform:"scale(0.8)",opacity:0})),kt("visible",Ue({transform:"scale(1)",opacity:1})),xt("* => visible",St("150ms cubic-bezier(0, 0, 0.2, 1)")),xt("* => void, * => hidden",St("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ue({opacity:0})))])},OX=0,NX=(()=>{let e=class e extends Pa{constructor(i,r,o,s,a){super(),this._ngZone=i,this._elementRef=r,this._changeDetectorRef=o,this._platform=s,this.snackBarConfig=a,this._document=B(Fe),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new K,this._onExit=new K,this._onEnter=new K,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${OX++}`,this.attachDomPortal=c=>{this._assertNotAttached();let l=this._portalOutlet.attachDomPortal(c);return this._afterPortalAttached(),l},a.politeness==="assertive"&&!a.announcementMessage?this._live="assertive":a.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(i){this._assertNotAttached();let r=this._portalOutlet.attachComponentPortal(i);return this._afterPortalAttached(),r}attachTemplatePortal(i){this._assertNotAttached();let r=this._portalOutlet.attachTemplatePortal(i);return this._afterPortalAttached(),r}onAnimationEnd(i){let{fromState:r,toState:o}=i;if((o==="void"&&r!=="void"||o==="hidden")&&this._completeExit(),o==="visible"){let s=this._onEnter;this._ngZone.run(()=>{s.next(),s.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let i=this._elementRef.nativeElement,r=this.snackBarConfig.panelClass;r&&(Array.isArray(r)?r.forEach(a=>i.classList.add(a)):i.classList.add(r)),this._exposeToModals();let o=this._label.nativeElement,s="mdc-snackbar__label";o.classList.toggle(s,!o.querySelector(`.${s}`))}_exposeToModals(){let i=this._liveElementId,r=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let r=i.getAttribute("aria-owns");if(r){let o=r.replace(this._liveElementId,"").trim();o.length>0?i.setAttribute("aria-owns",o):i.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector("[aria-hidden]"),r=this._elementRef.nativeElement.querySelector("[aria-live]");if(i&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(o=document.activeElement),i.removeAttribute("aria-hidden"),r.appendChild(i),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};e.\u0275fac=function(r){return new(r||e)(g(ee),g(ce),g(Ge),g(et),g(Td))},e.\u0275cmp=re({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(r,o){if(r&1&&(ze(Qn,7),ze(SX,7)),r&2){let s;pe(s=me())&&(o._portalOutlet=s.first),pe(s=me())&&(o._label=s.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(r,o){r&1&&gc("@state.done",function(a){return o.onAnimationEnd(a)}),r&2&&mc("@state",o._animationState)},standalone:!0,features:[He,Ne],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(r,o){r&1&&(D(0,"div",1)(1,"div",2,0)(3,"div",3),ve(4,IX,0,0,"ng-template",4),I(),xe(5,"div"),I()()),r&2&&(A(5),Ve("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Qn],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}.cdk-high-contrast-active .mat-mdc-snackbar-surface{outline:solid 1px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color);border-radius:var(--mdc-snackbar-container-shape);background-color:var(--mdc-snackbar-container-color)}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font);font-size:var(--mdc-snackbar-supporting-text-size);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[RX.snackBarState]}});let t=e;return t})();function FX(){return new Td}var PX=new q("mat-snack-bar-default-options",{providedIn:"root",factory:FX}),Ps=(()=>{let e=class e{get _openedSnackBarRef(){let i=this._parentSnackBar;return i?i._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(i){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=i:this._snackBarRefAtThisLevel=i}constructor(i,r,o,s,a,c){this._overlay=i,this._live=r,this._injector=o,this._breakpointObserver=s,this._parentSnackBar=a,this._defaultConfig=c,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=yO,this.snackBarContainerComponent=NX,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(i,r){return this._attach(i,r)}openFromTemplate(i,r){return this._attach(i,r)}open(i,r="",o){let s=X(X({},this._defaultConfig),o);return s.data={message:i,action:r},s.announcementMessage===i&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(i,r){let o=r&&r.viewContainerRef&&r.viewContainerRef.injector,s=Je.create({parent:o||this._injector,providers:[{provide:Td,useValue:r}]}),a=new br(this.snackBarContainerComponent,r.viewContainerRef,s),c=i.attach(a);return c.instance.snackBarConfig=r,c.instance}_attach(i,r){let o=X(X(X({},new Td),this._defaultConfig),r),s=this._createOverlay(o),a=this._attachSnackBarContainer(s,o),c=new Gh(a,s);if(i instanceof Rt){let l=new Ki(i,null,{$implicit:o.data,snackBarRef:c});c.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(o,c),u=new br(i,void 0,l),d=a.attachComponentPortal(u);c.instance=d.instance}return this._breakpointObserver.observe(nd.HandsetPortrait).pipe(ot(s.detachments())).subscribe(l=>{s.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(c,o),this._openedSnackBarRef=c,this._openedSnackBarRef}_animateSnackBar(i,r){i.afterDismissed().subscribe(()=>{this._openedSnackBarRef==i&&(this._openedSnackBarRef=null),r.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{i.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):i.containerInstance.enter(),r.duration&&r.duration>0&&i.afterOpened().subscribe(()=>i._dismissAfter(r.duration))}_createOverlay(i){let r=new Tn;r.direction=i.direction;let o=this._overlay.position().global(),s=i.direction==="rtl",a=i.horizontalPosition==="left"||i.horizontalPosition==="start"&&!s||i.horizontalPosition==="end"&&s,c=!a&&i.horizontalPosition!=="center";return a?o.left("0"):c?o.right("0"):o.centerHorizontally(),i.verticalPosition==="top"?o.top("0"):o.bottom("0"),r.positionStrategy=o,this._overlay.create(r)}_createInjector(i,r){let o=i&&i.viewContainerRef&&i.viewContainerRef.injector;return Je.create({parent:o||this._injector,providers:[{provide:Gh,useValue:r},{provide:_O,useValue:i.data}]})}};e.\u0275fac=function(r){return new(r||e)(R(Pt),R(eg),R(Je),R(Da),R(e,12),R(PX))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var wO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[Ps],imports:[An,Kn,wd,Ze,yO,Ze]});let t=e;return t})();var LX=["mat-sort-header",""],VX=["*"];function BX(t,e){if(t&1){let n=st();D(0,"div",2),le("@arrowPosition.start",function(){Se(n);let r=se();return Ie(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){Se(n);let r=se();return Ie(r._disableViewStateAnimation=!1)}),xe(1,"div",3),D(2,"div",4),xe(3,"div",5)(4,"div",6)(5,"div",7),I()()}if(t&2){let n=se();ie("@arrowOpacity",n._getArrowViewState())("@arrowPosition",n._getArrowViewState())("@allowChildren",n._getArrowDirectionState()),A(2),ie("@indicator",n._getArrowDirectionState()),A(),ie("@leftPointer",n._getArrowDirectionState()),A(),ie("@rightPointer",n._getArrowDirectionState())}}var CO=new q("MAT_SORT_DEFAULT_OPTIONS"),Yh=(()=>{let e=class e{get direction(){return this._direction}set direction(i){this._direction=i}constructor(i){this._defaultOptions=i,this._initializedStream=new bi(1),this.sortables=new Map,this._stateChanges=new K,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new oe,this.initialized=this._initializedStream}register(i){this.sortables.set(i.id,i)}deregister(i){this.sortables.delete(i.id)}sort(i){this.active!=i.id?(this.active=i.id,this.direction=i.start?i.start:this.start):this.direction=this.getNextSortDirection(i),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(i){if(!i)return"";let r=i?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=jX(i.start||this.start,r),s=o.indexOf(this.direction)+1;return s>=o.length&&(s=0),o[s]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}};e.\u0275fac=function(r){return new(r||e)(g(CO,8))},e.\u0275dir=te({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",Ee],disabled:[2,"matSortDisabled","disabled",Ee]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[nt,lt]});let t=e;return t})();function jX(t,e){let n=["asc","desc"];return t=="desc"&&n.reverse(),e||n.push(""),n}var Ha=b3.ENTERING+" "+v3.STANDARD_CURVE,Ad={indicator:Yt("indicator",[kt("active-asc, asc",Ue({transform:"translateY(0px)"})),kt("active-desc, desc",Ue({transform:"translateY(10px)"})),xt("active-asc <=> active-desc",St(Ha))]),leftPointer:Yt("leftPointer",[kt("active-asc, asc",Ue({transform:"rotate(-45deg)"})),kt("active-desc, desc",Ue({transform:"rotate(45deg)"})),xt("active-asc <=> active-desc",St(Ha))]),rightPointer:Yt("rightPointer",[kt("active-asc, asc",Ue({transform:"rotate(45deg)"})),kt("active-desc, desc",Ue({transform:"rotate(-45deg)"})),xt("active-asc <=> active-desc",St(Ha))]),arrowOpacity:Yt("arrowOpacity",[kt("desc-to-active, asc-to-active, active",Ue({opacity:1})),kt("desc-to-hint, asc-to-hint, hint",Ue({opacity:.54})),kt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Ue({opacity:0})),xt("* => asc, * => desc, * => active, * => hint, * => void",St("0ms")),xt("* <=> *",St(Ha))]),arrowPosition:Yt("arrowPosition",[xt("* => desc-to-hint, * => desc-to-active",St(Ha,Va([Ue({transform:"translateY(-25%)"}),Ue({transform:"translateY(0)"})]))),xt("* => hint-to-desc, * => active-to-desc",St(Ha,Va([Ue({transform:"translateY(0)"}),Ue({transform:"translateY(25%)"})]))),xt("* => asc-to-hint, * => asc-to-active",St(Ha,Va([Ue({transform:"translateY(25%)"}),Ue({transform:"translateY(0)"})]))),xt("* => hint-to-asc, * => active-to-asc",St(Ha,Va([Ue({transform:"translateY(0)"}),Ue({transform:"translateY(-25%)"})]))),kt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Ue({transform:"translateY(0)"})),kt("hint-to-desc, active-to-desc, desc",Ue({transform:"translateY(-25%)"})),kt("hint-to-asc, active-to-asc, asc",Ue({transform:"translateY(25%)"}))]),allowChildren:Yt("allowChildren",[xt("* <=> *",[ag("@*",sg(),{optional:!0})])])},xg=(()=>{let e=class e{constructor(){this.changes=new K}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function HX(t){return t||new xg}var zX={provide:xg,deps:[[new Gr,new fa,xg]],useFactory:HX},xO=(()=>{let e=class e{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(i){this._updateSortActionDescription(i)}constructor(i,r,o,s,a,c,l,u){this._intl=i,this._changeDetectorRef=r,this._sort=o,this._columnDef=s,this._focusMonitor=a,this._elementRef=c,this._ariaDescriber=l,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this.disabled=!1,this._sortActionDescription="Sort",u?.arrowPosition&&(this.arrowPosition=u?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(i=>{let r=!!i;r!==this._showIndicatorHint&&(this._setIndicatorHintVisible(r),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_setIndicatorHintVisible(i){this._isDisabled()&&i||(this._showIndicatorHint=i,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(i){this._viewState=i||{},this._disableViewStateAnimation&&(this._viewState={toState:i.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(i){!this._isDisabled()&&(i.keyCode===32||i.keyCode===13)&&(i.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let i=this._viewState.fromState;return(i?`${i}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(i){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,i)),this._sortActionDescription=i}_handleStateChanges(){this._rerenderSubscription=yt(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(r){return new(r||e)(g(xg),g(Ge),g(Yh,8),g("MAT_SORT_HEADER_COLUMN_DEF",8),g(Yi),g(ce),g(n3,8),g(CO,8))},e.\u0275cmp=re({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(r,o){r&1&&le("click",function(){return o._handleClick()})("keydown",function(a){return o._handleKeydown(a)})("mouseenter",function(){return o._setIndicatorHintVisible(!0)})("mouseleave",function(){return o._setIndicatorHintVisible(!1)}),r&2&&(Ve("aria-sort",o._getAriaSortAttribute()),Oe("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",Ee],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",Ee]},exportAs:["matSortHeader"],standalone:!0,features:[nt,Ne],attrs:LX,ngContentSelectors:VX,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(r,o){r&1&&(at(),D(0,"div",0)(1,"div",1),ke(2),I(),ve(3,BX,6,6,"div",2),I()),r&2&&(Oe("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before"),Ve("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),A(3),tt(o._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Ad.indicator,Ad.leftPointer,Ad.rightPointer,Ad.arrowOpacity,Ad.arrowPosition,Ad.allowChildren]},changeDetection:0});let t=e;return t})(),DO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[zX],imports:[Ze]});let t=e;return t})();var qX=[[["caption"]],[["colgroup"],["col"]],"*"],$X=["caption","colgroup, col","*"];function WX(t,e){t&1&&ke(0,2)}function GX(t,e){t&1&&(D(0,"thead",0),an(1,1),I(),D(2,"tbody",0),an(3,2)(4,3),I(),D(5,"tfoot",0),an(6,4),I())}function YX(t,e){t&1&&an(0,1)(1,2)(2,3)(3,4)}var so=new q("CDK_TABLE");var Mg=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(r){return new(r||e)(g(Rt))},e.\u0275dir=te({type:e,selectors:[["","cdkCellDef",""]],standalone:!0});let t=e;return t})(),Tg=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(r){return new(r||e)(g(Rt))},e.\u0275dir=te({type:e,selectors:[["","cdkHeaderCellDef",""]],standalone:!0});let t=e;return t})(),IO=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(r){return new(r||e)(g(Rt))},e.\u0275dir=te({type:e,selectors:[["","cdkFooterCellDef",""]],standalone:!0});let t=e;return t})(),Rd=(()=>{let e=class e{get name(){return this._name}set name(i){this._setNameInput(i)}get sticky(){return this._sticky}set sticky(i){i!==this._sticky&&(this._sticky=i,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(i){i!==this._stickyEnd&&(this._stickyEnd=i,this._hasStickyChanged=!0)}constructor(i){this._table=i,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let i=this._hasStickyChanged;return this.resetStickyChanged(),i}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(i){i&&(this._name=i,this.cssClassFriendlyName=i.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};e.\u0275fac=function(r){return new(r||e)(g(so,8))},e.\u0275dir=te({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(r,o,s){if(r&1&&(ct(s,Mg,5),ct(s,Tg,5),ct(s,IO,5)),r&2){let a;pe(a=me())&&(o.cell=a.first),pe(a=me())&&(o.headerCell=a.first),pe(a=me())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",Ee],stickyEnd:[2,"stickyEnd","stickyEnd",Ee]},standalone:!0,features:[Ye([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),nt]});let t=e;return t})(),Eg=class{constructor(e,n){n.nativeElement.classList.add(...e._columnCssClassName)}},kO=(()=>{let e=class e extends Eg{constructor(i,r){super(i,r)}};e.\u0275fac=function(r){return new(r||e)(g(Rd),g(ce))},e.\u0275dir=te({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[He]});let t=e;return t})();var MO=(()=>{let e=class e extends Eg{constructor(i,r){super(i,r);let o=i._table?._getCellRole();o&&r.nativeElement.setAttribute("role",o)}};e.\u0275fac=function(r){return new(r||e)(g(Rd),g(ce))},e.\u0275dir=te({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[He]});let t=e;return t})(),Sg=class{constructor(){this.tasks=[],this.endTasks=[]}},Ig=new q("_COALESCED_STYLE_SCHEDULER"),vx=(()=>{let e=class e{constructor(i){this._currentSchedule=null,this._ngZone=B(ee)}schedule(i){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(i)}scheduleEnd(i){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(i)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Sg,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let i=this._currentSchedule;this._currentSchedule=new Sg;for(let r of i.tasks)r();for(let r of i.endTasks)r()}this._currentSchedule=null})))}};e.\u0275fac=function(r){return new(r||e)(R(ee))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();var bx=(()=>{let e=class e{constructor(i,r){this.template=i,this._differs=r}ngOnChanges(i){if(!this._columnsDiffer){let r=i.columns&&i.columns.currentValue||[];this._columnsDiffer=this._differs.find(r).create(),this._columnsDiffer.diff(r)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(i){return this instanceof Qh?i.headerCell.template:this instanceof _x?i.footerCell.template:i.cell.template}};e.\u0275fac=function(r){return new(r||e)(g(Rt),g(Xr))},e.\u0275dir=te({type:e,features:[lt]});let t=e;return t})(),Qh=(()=>{let e=class e extends bx{get sticky(){return this._sticky}set sticky(i){i!==this._sticky&&(this._sticky=i,this._hasStickyChanged=!0)}constructor(i,r,o){super(i,r),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(i){super.ngOnChanges(i)}hasStickyChanged(){let i=this._hasStickyChanged;return this.resetStickyChanged(),i}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(r){return new(r||e)(g(Rt),g(Xr),g(so,8))},e.\u0275dir=te({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",Ee]},standalone:!0,features:[nt,He,lt]});let t=e;return t})(),_x=(()=>{let e=class e extends bx{get sticky(){return this._sticky}set sticky(i){i!==this._sticky&&(this._sticky=i,this._hasStickyChanged=!0)}constructor(i,r,o){super(i,r),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(i){super.ngOnChanges(i)}hasStickyChanged(){let i=this._hasStickyChanged;return this.resetStickyChanged(),i}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(r){return new(r||e)(g(Rt),g(Xr),g(so,8))},e.\u0275dir=te({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",Ee]},standalone:!0,features:[nt,He,lt]});let t=e;return t})(),Ag=(()=>{let e=class e extends bx{constructor(i,r,o){super(i,r),this._table=o}};e.\u0275fac=function(r){return new(r||e)(g(Rt),g(Xr),g(so,8))},e.\u0275dir=te({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[He]});let t=e;return t})(),jc=(()=>{let e=class e{constructor(i){this._viewContainer=i,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}};e.mostRecentCellOutlet=null,e.\u0275fac=function(r){return new(r||e)(g(qt))},e.\u0275dir=te({type:e,selectors:[["","cdkCellOutlet",""]],standalone:!0});let t=e;return t})(),yx=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=re({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[Ne],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,o){r&1&&an(0,0)},dependencies:[jc],encapsulation:2});let t=e;return t})();var wx=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=re({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[Ne],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,o){r&1&&an(0,0)},dependencies:[jc],encapsulation:2});let t=e;return t})(),TO=(()=>{let e=class e{constructor(i){this.templateRef=i,this._contentClassName="cdk-no-data-row"}};e.\u0275fac=function(r){return new(r||e)(g(Rt))},e.\u0275dir=te({type:e,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0});let t=e;return t})(),EO=["top","bottom","left","right"],gx=class{constructor(e,n,i,r,o=!0,s=!0,a){this._isNativeHtmlTable=e,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${n}-border-elem-top`,bottom:`${n}-border-elem-bottom`,left:`${n}-border-elem-left`,right:`${n}-border-elem-right`}}clearStickyPositioning(e,n){let i=[];for(let r of e)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let o=0;o{for(let r of i)this._removeStickyStyle(r,n)})}updateStickyColumns(e,n,i,r=!0){if(!e.length||!this._isBrowser||!(n.some(o=>o)||i.some(o=>o))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let o=e[0],s=o.children.length,a=this._getCellWidths(o,r),c=this._getStickyStartColumnPositions(a,n),l=this._getStickyEndColumnPositions(a,i),u=n.lastIndexOf(!0),d=i.indexOf(!0),h=this.direction==="rtl",f=h?"right":"left",p=h?"left":"right";for(let m of e)for(let v=0;vn[v]?m:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:d===-1?[]:a.slice(d).map((m,v)=>i[v+d]?m:null).reverse()}))})}stickRows(e,n,i){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let r=i==="bottom"?e.slice().reverse():e,o=i==="bottom"?n.slice().reverse():n,s=[],a=[],c=[];for(let u=0,d=0;u{let i=e.querySelector("tfoot");i&&(n.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))})}_removeStickyStyle(e,n){for(let r of n)e.style[r]="",e.classList.remove(this._borderCellCss[r]);EO.some(r=>n.indexOf(r)===-1&&e.style[r])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,n,i,r){e.classList.add(this._stickCellCss),r&&e.classList.add(this._borderCellCss[n]),e.style[n]=`${i}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let n={top:100,bottom:10,left:1,right:1},i=0;for(let r of EO)e.style[r]&&(i+=n[r]);return i?`${i}`:""}_getCellWidths(e,n=!0){if(!n&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],r=e.children;for(let o=0;o0;o--)n[o]&&(i[o]=r,r+=e[o]);return i}};var kg=new q("CDK_SPL");var Cx=(()=>{let e=class e{constructor(i,r){this.viewContainer=i,this.elementRef=r;let o=B(so);o._rowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(r){return new(r||e)(g(qt),g(ce))},e.\u0275dir=te({type:e,selectors:[["","rowOutlet",""]],standalone:!0});let t=e;return t})(),xx=(()=>{let e=class e{constructor(i,r){this.viewContainer=i,this.elementRef=r;let o=B(so);o._headerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(r){return new(r||e)(g(qt),g(ce))},e.\u0275dir=te({type:e,selectors:[["","headerRowOutlet",""]],standalone:!0});let t=e;return t})(),Dx=(()=>{let e=class e{constructor(i,r){this.viewContainer=i,this.elementRef=r;let o=B(so);o._footerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(r){return new(r||e)(g(qt),g(ce))},e.\u0275dir=te({type:e,selectors:[["","footerRowOutlet",""]],standalone:!0});let t=e;return t})(),Ex=(()=>{let e=class e{constructor(i,r){this.viewContainer=i,this.elementRef=r;let o=B(so);o._noDataRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(r){return new(r||e)(g(qt),g(ce))},e.\u0275dir=te({type:e,selectors:[["","noDataRowOutlet",""]],standalone:!0});let t=e;return t})();var Sx=(()=>{let e=class e{_getCellRole(){if(this._cellRoleInternal===void 0){let i=this._elementRef.nativeElement.getAttribute("role"),r=i==="grid"||i==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&r==="cell"?null:r}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(i){this._trackByFn=i}get dataSource(){return this._dataSource}set dataSource(i){this._dataSource!==i&&this._switchDataSource(i)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(i){this._multiTemplateDataRows=i,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(i){this._fixedLayout=i,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(i,r,o,s,a,c,l,u,d,h,f,p){this._differs=i,this._changeDetectorRef=r,this._elementRef=o,this._dir=a,this._platform=l,this._viewRepeater=u,this._coalescedStyleScheduler=d,this._viewportRuler=h,this._stickyPositioningListener=f,this._onDestroy=new K,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new oe,this.viewChange=new Lt({start:0,end:Number.MAX_VALUE}),this._injector=B(Je),s||o.nativeElement.setAttribute("role","table"),this._document=c,this._isServer=!l.isBrowser,this._isNativeHtmlTable=o.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((i,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r),this._viewportRuler.change().pipe(ot(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(i=>{i?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),sd(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let i=this._dataDiffer.diff(this._renderRows);if(!i){this._updateNoDataRow(),this.contentChanged.next();return}let r=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(i,r,(o,s,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===zo.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),i.forEachIdentityChange(o=>{let s=r.get(o.currentIndex);s.context.$implicit=o.item.data}),this._updateNoDataRow(),ri(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(i){this._customColumnDefs.add(i)}removeColumnDef(i){this._customColumnDefs.delete(i)}addRowDef(i){this._customRowDefs.add(i)}removeRowDef(i){this._customRowDefs.delete(i)}addHeaderRowDef(i){this._customHeaderRowDefs.add(i),this._headerRowDefChanged=!0}removeHeaderRowDef(i){this._customHeaderRowDefs.delete(i),this._headerRowDefChanged=!0}addFooterRowDef(i){this._customFooterRowDefs.add(i),this._footerRowDefChanged=!0}removeFooterRowDef(i){this._customFooterRowDefs.delete(i),this._footerRowDefChanged=!0}setNoDataRow(i){this._customNoDataRow=i}updateStickyHeaderRowStyles(){let i=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=SO(this._headerRowOutlet,"thead");o&&(o.style.display=i.length?"":"none")}let r=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(i,["top"]),this._stickyStyler.stickRows(i,r,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let i=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=SO(this._footerRowOutlet,"tfoot");o&&(o.style.display=i.length?"":"none")}let r=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(i,["bottom"]),this._stickyStyler.stickRows(i,r,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,r),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let i=this._getRenderedRows(this._headerRowOutlet),r=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...i,...r,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),i.forEach((s,a)=>{this._addStickyColumnStyles([s],this._headerRowDefs[a])}),this._rowDefs.forEach(s=>{let a=[];for(let c=0;c{this._addStickyColumnStyles([s],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(s=>s.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let r=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||r,this._forceRecalculateCellWidths=r,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let i=[],r=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{let c=o&&o.has(a)?o.get(a):[];if(c.length){let l=c.shift();return l.dataIndex=r,l}else return{data:i,rowDef:a,dataIndex:r}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Dg(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(r=>{this._columnDefsByName.has(r.name),this._columnDefsByName.set(r.name,r)})}_cacheRowDefs(){this._headerRowDefs=Dg(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Dg(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Dg(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let i=this._rowDefs.filter(r=>!r.when);!this.multiTemplateDataRows&&i.length>1,this._defaultRowDef=i[0]}_renderUpdatedColumns(){let i=(a,c)=>a||!!c.getColumnsDiff(),r=this._rowDefs.reduce(i,!1);r&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(i,!1);o&&this._forceRenderHeaderRows();let s=this._footerRowDefs.reduce(i,!1);return s&&this._forceRenderFooterRows(),r||o||s}_switchDataSource(i){this._data=[],sd(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),i||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=i}_observeRenderChanges(){if(!this.dataSource)return;let i;sd(this.dataSource)?i=this.dataSource.connect(this):cs(this.dataSource)?i=this.dataSource:Array.isArray(this.dataSource)&&(i=we(this.dataSource)),this._renderChangeSubscription=i.pipe(ot(this._onDestroy)).subscribe(r=>{this._data=r||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((i,r)=>this._renderRow(this._headerRowOutlet,i,r)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((i,r)=>this._renderRow(this._footerRowOutlet,i,r)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(i,r){let o=Array.from(r.columns||[]).map(c=>{let l=this._columnDefsByName.get(c);return l}),s=o.map(c=>c.sticky),a=o.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(i,s,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(i){let r=[];for(let o=0;o!s.when||s.when(r,i));else{let s=this._rowDefs.find(a=>a.when&&a.when(r,i))||this._defaultRowDef;s&&o.push(s)}return o.length,o}_getEmbeddedViewArgs(i,r){let o=i.rowDef,s={$implicit:i.data};return{templateRef:o.template,context:s,index:r}}_renderRow(i,r,o,s={}){let a=i.viewContainer.createEmbeddedView(r.template,s,o);return this._renderCellTemplateForItem(r,s),a}_renderCellTemplateForItem(i,r){for(let o of this._getCellTemplates(i))jc.mostRecentCellOutlet&&jc.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,r);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let i=this._rowOutlet.viewContainer;for(let r=0,o=i.length;r{let o=this._columnDefsByName.get(r);return i.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let i=(r,o)=>r||o.hasStickyChanged();this._headerRowDefs.reduce(i,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(i,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(i,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let i=this._dir?this._dir.value:"ltr";this._stickyStyler=new gx(this._isNativeHtmlTable,this.stickyCssClass,i,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:we()).pipe(ot(this._onDestroy)).subscribe(r=>{this._stickyStyler.direction=r,this.updateStickyColumnStyles()})}_getOwnDefs(i){return i.filter(r=>!r._table||r._table===this)}_updateNoDataRow(){let i=this._customNoDataRow||this._noDataRow;if(!i)return;let r=this._rowOutlet.viewContainer.length===0;if(r===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(r){let s=o.createEmbeddedView(i.templateRef),a=s.rootNodes[0];s.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(i._contentClassName))}else o.clear();this._isShowingNoDataRow=r,this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(r){return new(r||e)(g(Xr),g(Ge),g(ce),wn("role"),g($t,8),g(Fe),g(et),g(Sa),g(Ig),g(Gn),g(kg,12),g(ee,8))},e.\u0275cmp=re({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(r,o,s){if(r&1&&(ct(s,TO,5),ct(s,Rd,5),ct(s,Ag,5),ct(s,Qh,5),ct(s,_x,5)),r&2){let a;pe(a=me())&&(o._noDataRow=a.first),pe(a=me())&&(o._contentColumnDefs=a),pe(a=me())&&(o._contentRowDefs=a),pe(a=me())&&(o._contentHeaderRowDefs=a),pe(a=me())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(r,o){r&2&&Oe("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",Ee],fixedLayout:[2,"fixedLayout","fixedLayout",Ee]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[Ye([{provide:so,useExisting:e},{provide:Sa,useClass:rd},{provide:Ig,useClass:vx},{provide:kg,useValue:null}]),nt,Ne],ngContentSelectors:$X,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,o){r&1&&(at(qX),ke(0),ke(1,1),ve(2,WX,1,0)(3,GX,7,0)(4,YX,4,0)),r&2&&(A(2),tt(o._isServer?2:-1),A(),tt(o._isNativeHtmlTable?3:4))},dependencies:[xx,Cx,Ex,Dx],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});let t=e;return t})();function Dg(t,e){return t.concat(Array.from(e))}function SO(t,e){let n=e.toUpperCase(),i=t.viewContainer.element.nativeElement;for(;i;){let r=i.nodeType===1?i.nodeName:null;if(r===n)return i;if(r==="TABLE")break;i=i.parentNode}return null}var AO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ec]});let t=e;return t})();var QX=[[["caption"]],[["colgroup"],["col"]],"*"],KX=["caption","colgroup, col","*"];function XX(t,e){t&1&&ke(0,2)}function ZX(t,e){t&1&&(D(0,"thead",0),an(1,1),I(),D(2,"tbody",2),an(3,3)(4,4),I(),D(5,"tfoot",0),an(6,5),I())}function JX(t,e){t&1&&an(0,1)(1,3)(2,4)(3,5)}var RO=(()=>{let e=class e extends Sx{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275cmp=re({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(r,o){r&2&&Oe("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[Ye([{provide:Sx,useExisting:e},{provide:so,useExisting:e},{provide:Ig,useClass:vx},{provide:Sa,useClass:rd},{provide:kg,useValue:null}]),He,Ne],ngContentSelectors:KX,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,o){r&1&&(at(QX),ke(0),ke(1,1),ve(2,XX,1,0)(3,ZX,7,0)(4,JX,4,0)),r&2&&(A(2),tt(o._isServer?2:-1),A(),tt(o._isNativeHtmlTable?3:4))},dependencies:[xx,Cx,Ex,Dx],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2});let t=e;return t})(),OO=(()=>{let e=class e extends Mg{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","matCellDef",""]],standalone:!0,features:[Ye([{provide:Mg,useExisting:e}]),He]});let t=e;return t})(),NO=(()=>{let e=class e extends Tg{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[Ye([{provide:Tg,useExisting:e}]),He]});let t=e;return t})();var FO=(()=>{let e=class e extends Rd{get name(){return this._name}set name(i){this._setNameInput(i)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[Ye([{provide:Rd,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),He]});let t=e;return t})(),PO=(()=>{let e=class e extends kO{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[He]});let t=e;return t})();var LO=(()=>{let e=class e extends MO{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[He]});let t=e;return t})();var VO=(()=>{let e=class e extends Qh{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",Ee]},standalone:!0,features:[Ye([{provide:Qh,useExisting:e}]),nt,He]});let t=e;return t})();var BO=(()=>{let e=class e extends Ag{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[Ye([{provide:Ag,useExisting:e}]),He]});let t=e;return t})(),jO=(()=>{let e=class e extends yx{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275cmp=re({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[Ye([{provide:yx,useExisting:e}]),He,Ne],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,o){r&1&&an(0,0)},dependencies:[jc],encapsulation:2});let t=e;return t})();var HO=(()=>{let e=class e extends wx{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275cmp=re({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[Ye([{provide:wx,useExisting:e}]),He,Ne],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,o){r&1&&an(0,0)},dependencies:[jc],encapsulation:2});let t=e;return t})();var zO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,AO,Ze]});let t=e;return t})(),eZ=9007199254740991,Rg=class extends hh{get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this._filterData(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}constructor(e=[]){super(),this._renderData=new Lt([]),this._filter=new Lt(""),this._internalPageChanges=new K,this._renderChangesSubscription=null,this.sortingDataAccessor=(n,i)=>{let r=n[i];if(cC(r)){let o=Number(r);return o{let r=i.active,o=i.direction;return!r||o==""?n:n.sort((s,a)=>{let c=this.sortingDataAccessor(s,r),l=this.sortingDataAccessor(a,r),u=typeof c,d=typeof l;u!==d&&(u==="number"&&(c+=""),d==="number"&&(l+=""));let h=0;return c!=null&&l!=null?c>l?h=1:c{let r=Object.keys(n).reduce((s,a)=>s+n[a]+"\u25EC","").toLowerCase(),o=i.trim().toLowerCase();return r.indexOf(o)!=-1},this._data=new Lt(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?yt(this._sort.sortChange,this._sort.initialized):we(null),n=this._paginator?yt(this._paginator.page,this._internalPageChanges,this._paginator.initialized):we(null),i=this._data,r=jr([i,this._filter]).pipe(Te(([a])=>this._filterData(a))),o=jr([r,e]).pipe(Te(([a])=>this._orderData(a))),s=jr([o,n]).pipe(Te(([a])=>this._pageData(a)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=s.subscribe(a=>this._renderData.next(a))}_filterData(e){return this.filteredData=this.filter==null||this.filter===""?e:e.filter(n=>this.filterPredicate(n,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;let n=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(n,n+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{let n=this.paginator;if(n&&(n.length=e,n.pageIndex>0)){let i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var iZ=["*",[["mat-toolbar-row"]]],nZ=["*","mat-toolbar-row"],rZ=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let t=e;return t})(),UO=(()=>{let e=class e{constructor(i,r,o){this._elementRef=i,this._platform=r,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};e.\u0275fac=function(r){return new(r||e)(g(ce),g(et),g(Fe))},e.\u0275cmp=re({type:e,selectors:[["mat-toolbar"]],contentQueries:function(r,o,s){if(r&1&&ct(s,rZ,5),r&2){let a;pe(a=me())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(r,o){r&2&&(_i(o.color?"mat-"+o.color:""),Oe("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[Ne],ngContentSelectors:nZ,decls:2,vars:0,template:function(r,o){r&1&&(at(iZ),ke(0),ke(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let t=e;return t})();var qO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({imports:[Ze,Ze]});let t=e;return t})();function $O(t){return new ge(3e3,!1)}function sZ(){return new ge(3100,!1)}function aZ(){return new ge(3101,!1)}function cZ(t){return new ge(3001,!1)}function lZ(t){return new ge(3003,!1)}function dZ(t){return new ge(3004,!1)}function uZ(t,e){return new ge(3005,!1)}function hZ(){return new ge(3006,!1)}function fZ(){return new ge(3007,!1)}function pZ(t,e){return new ge(3008,!1)}function mZ(t){return new ge(3002,!1)}function gZ(t,e,n,i,r){return new ge(3010,!1)}function vZ(){return new ge(3011,!1)}function bZ(){return new ge(3012,!1)}function _Z(){return new ge(3200,!1)}function yZ(){return new ge(3202,!1)}function wZ(){return new ge(3013,!1)}function CZ(t){return new ge(3014,!1)}function xZ(t){return new ge(3015,!1)}function DZ(t){return new ge(3016,!1)}function EZ(t,e){return new ge(3404,!1)}function SZ(t){return new ge(3502,!1)}function IZ(t){return new ge(3503,!1)}function kZ(){return new ge(3300,!1)}function MZ(t){return new ge(3504,!1)}function TZ(t){return new ge(3301,!1)}function AZ(t,e){return new ge(3302,!1)}function RZ(t){return new ge(3303,!1)}function OZ(t,e){return new ge(3400,!1)}function NZ(t){return new ge(3401,!1)}function FZ(t){return new ge(3402,!1)}function PZ(t,e){return new ge(3505,!1)}function za(t){switch(t.length){case 0:return new La;case 1:return t[0];default:return new Fh(t)}}function oN(t,e,n=new Map,i=new Map){let r=[],o=[],s=-1,a=null;if(e.forEach(c=>{let l=c.get("offset"),u=l==s,d=u&&a||new Map;c.forEach((h,f)=>{let p=f,m=h;if(f!=="offset")switch(p=t.normalizePropertyName(p,r),m){case cg:m=n.get(f);break;case $o:m=i.get(f);break;default:m=t.normalizeStyleValue(f,p,m,r);break}d.set(p,m)}),u||o.push(d),a=d,s=l}),r.length)throw SZ(r);return o}function Qx(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&Ix(n,"start",t)));break;case"done":t.onDone(()=>i(n&&Ix(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&Ix(n,"destroy",t)));break}}function Ix(t,e,n){let i=n.totalTime,r=!!n.disabled,o=Kx(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,i??t.totalTime,r),s=t._data;return s!=null&&(o._data=s),o}function Kx(t,e,n,i,r="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Jn(t,e,n){let i=t.get(e);return i||t.set(e,i=n),i}function WO(t){let e=t.indexOf(":"),n=t.substring(1,e),i=t.slice(e+1);return[n,i]}var LZ=typeof document>"u"?null:document.documentElement;function Xx(t){let e=t.parentNode||t.host||null;return e===LZ?null:e}function VZ(t){return t.substring(1,6)=="ebkit"}var Hc=null,GO=!1;function BZ(t){Hc||(Hc=jZ()||{},GO=Hc.style?"WebkitAppearance"in Hc.style:!1);let e=!0;return Hc.style&&!VZ(t)&&(e=t in Hc.style,!e&&GO&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Hc.style)),e}function jZ(){return typeof document<"u"?document.body:null}function sN(t,e){for(;e;){if(e===t)return!0;e=Xx(e)}return!1}function aN(t,e,n){if(n)return Array.from(t.querySelectorAll(e));let i=t.querySelector(e);return i?[i]:[]}var Zx=(()=>{let e=class e{validateStyleProperty(i){return BZ(i)}containsElement(i,r){return sN(i,r)}getParentElement(i){return Xx(i)}query(i,r,o){return aN(i,r,o)}computeStyle(i,r,o){return o||""}animate(i,r,o,s,a,c=[],l){return new La(o,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),iD=class iD{};iD.NOOP=new Zx;var qc=iD,$c=class{};var HZ=1e3,cN="{{",zZ="}}",lN="ng-enter",Ox="ng-leave",Og="ng-trigger",Vg=".ng-trigger",YO="ng-animating",Nx=".ng-animating";function Ls(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Fx(parseFloat(e[1]),e[2])}function Fx(t,e){switch(e){case"s":return t*HZ;default:return t}}function Bg(t,e,n){return t.hasOwnProperty("duration")?t:UZ(t,e,n)}function UZ(t,e,n){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,s="";if(typeof t=="string"){let a=t.match(i);if(a===null)return e.push($O(t)),{duration:0,delay:0,easing:""};r=Fx(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(o=Fx(parseFloat(c),a[4]));let l=a[5];l&&(s=l)}else r=t;if(!n){let a=!1,c=e.length;r<0&&(e.push(sZ()),a=!0),o<0&&(e.push(aZ()),a=!0),a&&e.splice(c,0,$O(t))}return{duration:r,delay:o,easing:s}}function qZ(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function Qo(t,e,n){e.forEach((i,r)=>{let o=Jx(r);n&&!n.has(r)&&n.set(r,t.style[o]),t.style[o]=i})}function Uc(t,e){e.forEach((n,i)=>{let r=Jx(i);t.style[r]=""})}function Kh(t){return Array.isArray(t)?t.length==1?t[0]:A3(t):t}function $Z(t,e,n){let i=e.params||{},r=dN(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||n.push(cZ(o))})}var Px=new RegExp(`${cN}\\s*(.+?)\\s*${zZ}`,"g");function dN(t){let e=[];if(typeof t=="string"){let n;for(;n=Px.exec(t);)e.push(n[1]);Px.lastIndex=0}return e}function Zh(t,e,n){let i=`${t}`,r=i.replace(Px,(o,s)=>{let a=e[s];return a==null&&(n.push(lZ(s)),a=""),a.toString()});return r==i?t:r}var WZ=/-+([a-z0-9])/g;function Jx(t){return t.replace(WZ,(...e)=>e[1].toUpperCase())}function GZ(t,e){return t===0||e===0}function YZ(t,e,n){if(n.size&&e.length){let i=e[0],r=[];if(n.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,eD(t,a)))}}return e}function Zn(t,e,n){switch(e.type){case dt.Trigger:return t.visitTrigger(e,n);case dt.State:return t.visitState(e,n);case dt.Transition:return t.visitTransition(e,n);case dt.Sequence:return t.visitSequence(e,n);case dt.Group:return t.visitGroup(e,n);case dt.Animate:return t.visitAnimate(e,n);case dt.Keyframes:return t.visitKeyframes(e,n);case dt.Style:return t.visitStyle(e,n);case dt.Reference:return t.visitReference(e,n);case dt.AnimateChild:return t.visitAnimateChild(e,n);case dt.AnimateRef:return t.visitAnimateRef(e,n);case dt.Query:return t.visitQuery(e,n);case dt.Stagger:return t.visitStagger(e,n);default:throw dZ(e.type)}}function eD(t,e){return window.getComputedStyle(t)[e]}var QZ=new Set(["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"]),jg=class extends $c{normalizePropertyName(e,n){return Jx(e)}normalizeStyleValue(e,n,i,r){let o="",s=i.toString().trim();if(QZ.has(n)&&i!==0&&i!=="0")if(typeof i=="number")o="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(uZ(e,i))}return s+o}};var Hg="*";function KZ(t,e){let n=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(i=>XZ(i,n,e)):n.push(t),n}function XZ(t,e,n){if(t[0]==":"){let c=ZZ(t,n);if(typeof c=="function"){e.push(c);return}t=c}let i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return n.push(xZ(t)),e;let r=i[1],o=i[2],s=i[3];e.push(QO(r,s));let a=r==Hg&&s==Hg;o[0]=="<"&&!a&&e.push(QO(s,r))}function ZZ(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,i)=>parseFloat(i)>parseFloat(n);case":decrement":return(n,i)=>parseFloat(i) *"}}var Ng=new Set(["true","1"]),Fg=new Set(["false","0"]);function QO(t,e){let n=Ng.has(t)||Fg.has(t),i=Ng.has(e)||Fg.has(e);return(r,o)=>{let s=t==Hg||t==r,a=e==Hg||e==o;return!s&&n&&typeof r=="boolean"&&(s=r?Ng.has(t):Fg.has(t)),!a&&i&&typeof o=="boolean"&&(a=o?Ng.has(e):Fg.has(e)),s&&a}}var uN=":self",JZ=new RegExp(`s*${uN}s*,?`,"g");function hN(t,e,n,i){return new Lx(t).build(e,n,i)}var KO="",Lx=class{constructor(e){this._driver=e}build(e,n,i){let r=new Vx(n);return this._resetContextStyleTimingState(r),Zn(this,Kh(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=KO,e.collectedStyles=new Map,e.collectedStyles.set(KO,new Map),e.currentTime=0}visitTrigger(e,n){let i=n.queryCount=0,r=n.depCount=0,o=[],s=[];return e.name.charAt(0)=="@"&&n.errors.push(hZ()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==dt.State){let c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,o.push(this.visitState(c,n))}),c.name=l}else if(a.type==dt.Transition){let c=this.visitTransition(a,n);i+=c.queryCount,r+=c.depCount,s.push(c)}else n.errors.push(fZ())}),{type:dt.Trigger,name:e.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(e,n){let i=this.visitStyle(e.styles,n),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){let o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{dN(c).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&n.errors.push(pZ(e.name,[...o.values()]))}return{type:dt.State,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;let i=Zn(this,Kh(e.animation),n),r=KZ(e.expr,n.errors);return{type:dt.Transition,matchers:r,animation:i,queryCount:n.queryCount,depCount:n.depCount,options:zc(e.options)}}visitSequence(e,n){return{type:dt.Sequence,steps:e.steps.map(i=>Zn(this,i,n)),options:zc(e.options)}}visitGroup(e,n){let i=n.currentTime,r=0,o=e.steps.map(s=>{n.currentTime=i;let a=Zn(this,s,n);return r=Math.max(r,n.currentTime),a});return n.currentTime=r,{type:dt.Group,steps:o,options:zc(e.options)}}visitAnimate(e,n){let i=nJ(e.timings,n.errors);n.currentAnimateTimings=i;let r,o=e.styles?e.styles:Ue({});if(o.type==dt.Keyframes)r=this.visitKeyframes(o,n);else{let s=e.styles,a=!1;if(!s){a=!0;let l={};i.easing&&(l.easing=i.easing),s=Ue(l)}n.currentTime+=i.duration+i.delay;let c=this.visitStyle(s,n);c.isEmptyStep=a,r=c}return n.currentAnimateTimings=null,{type:dt.Animate,timings:i,style:r,options:null}}visitStyle(e,n){let i=this._makeStyleAst(e,n);return this._validateStyleAst(i,n),i}_makeStyleAst(e,n){let i=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===$o?i.push(a):n.errors.push(mZ(a)):i.push(new Map(Object.entries(a)));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let c of a.values())if(c.toString().indexOf(cN)>=0){o=!0;break}}}),{type:dt.Style,styles:i,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,n){let i=n.currentAnimateTimings,r=n.currentTime,o=n.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{let l=n.collectedStyles.get(n.currentQuerySelector),u=l.get(c),d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(n.errors.push(gZ(c,u.startTime,u.endTime,o,r)),d=!1),o=u.startTime),d&&l.set(c,{startTime:o,endTime:r}),n.options&&$Z(a,n.options,n.errors)})})}visitKeyframes(e,n){let i={type:dt.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(vZ()),i;let r=1,o=0,s=[],a=!1,c=!1,l=0,u=e.steps.map(b=>{let C=this._makeStyleAst(b,n),E=C.offset!=null?C.offset:iJ(C.styles),_=0;return E!=null&&(o++,_=C.offset=E),c=c||_<0||_>1,a=a||_0&&o{let E=h>0?C==f?1:h*C:s[C],_=E*v;n.currentTime=p+m.delay+_,m.duration=_,this._validateStyleAst(b,n),b.offset=E,i.styles.push(b)}),i}visitReference(e,n){return{type:dt.Reference,animation:Zn(this,Kh(e.animation),n),options:zc(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:dt.AnimateChild,options:zc(e.options)}}visitAnimateRef(e,n){return{type:dt.AnimateRef,animation:this.visitReference(e.animation,n),options:zc(e.options)}}visitQuery(e,n){let i=n.currentQuerySelector,r=e.options||{};n.queryCount++,n.currentQuery=e;let[o,s]=eJ(e.selector);n.currentQuerySelector=i.length?i+" "+o:o,Jn(n.collectedStyles,n.currentQuerySelector,new Map);let a=Zn(this,Kh(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=i,{type:dt.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:zc(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(wZ());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Bg(e.timings,n.errors,!0);return{type:dt.Stagger,animation:Zn(this,Kh(e.animation),n),timings:i,options:null}}};function eJ(t){let e=!!t.split(/\s*,\s*/).find(n=>n==uN);return e&&(t=t.replace(JZ,"")),t=t.replace(/@\*/g,Vg).replace(/@\w+/g,n=>Vg+"-"+n.slice(1)).replace(/:animating/g,Nx),[t,e]}function tJ(t){return t?X({},t):null}var Vx=class{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=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function iJ(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(n=>{if(n instanceof Map&&n.has("offset")){let i=n;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}return e}function nJ(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=Bg(t,e).duration;return kx(o,0,"")}let n=t;if(n.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=kx(0,0,"");return o.dynamic=!0,o.strValue=n,o}let r=Bg(n,e);return kx(r.duration,r.delay,r.easing)}function zc(t){return t?(t=X({},t),t.params&&(t.params=tJ(t.params))):t={},t}function kx(t,e,n){return{duration:t,delay:e,easing:n}}function tD(t,e,n,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}var Jh=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,n){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}},rJ=1,oJ=":enter",sJ=new RegExp(oJ,"g"),aJ=":leave",cJ=new RegExp(aJ,"g");function fN(t,e,n,i,r,o=new Map,s=new Map,a,c,l=[]){return new Bx().buildKeyframes(t,e,n,i,r,o,s,a,c,l)}var Bx=class{buildKeyframes(e,n,i,r,o,s,a,c,l,u=[]){l=l||new Jh;let d=new jx(e,n,l,r,o,u,[]);d.options=c;let h=c.delay?Ls(c.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,c),Zn(this,i,d);let f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){let v=f[m];if(v.element===n){p=v;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,c)}return f.length?f.map(p=>p.buildKeyframes()):[tD(n,[],[],[],0,h,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){let i=n.subInstructions.get(n.element);if(i){let r=n.createSubContext(e.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=e}visitAnimateRef(e,n){let i=n.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],n,i),this.visitReference(e.animation,i),n.transformIntoNewTimeline(i.currentTimeline.currentTime),n.previousNode=e}_applyAnimationRefDelays(e,n,i){for(let r of e){let o=r?.delay;if(o){let s=typeof o=="number"?o:Ls(Zh(o,r?.params??{},n.errors));i.delayNextStep(s)}}}_visitSubInstructions(e,n,i){let o=n.currentTimeline.currentTime,s=i.duration!=null?Ls(i.duration):null,a=i.delay!=null?Ls(i.delay):null;return s!==0&&e.forEach(c=>{let l=n.appendInstructionToTimeline(c,s,a);o=Math.max(o,l.duration+l.delay)}),o}visitReference(e,n){n.updateOptions(e.options,!0),Zn(this,e.animation,n),n.previousNode=e}visitSequence(e,n){let i=n.subContextCount,r=n,o=e.options;if(o&&(o.params||o.delay)&&(r=n.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==dt.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=zg);let s=Ls(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>Zn(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){let i=[],r=n.currentTimeline.currentTime,o=e.options&&e.options.delay?Ls(e.options.delay):0;e.steps.forEach(s=>{let a=n.createSubContext(e.options);o&&a.delayNextStep(o),Zn(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(r),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){let i=e.strValue,r=n.params?Zh(i,n.params,n.errors):i;return Bg(r,n.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){let i=n.currentAnimateTimings=this._visitTiming(e.timings,n),r=n.currentTimeline;i.delay&&(n.incrementTime(i.delay),r.snapshotCurrentStyles());let o=e.style;o.type==dt.Keyframes?this.visitKeyframes(o,n):(n.incrementTime(i.duration),this.visitStyle(o,n),r.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){let i=n.currentTimeline,r=n.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let o=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(o):i.setStyles(e.styles,o,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){let i=n.currentAnimateTimings,r=n.currentTimeline.duration,o=i.duration,a=n.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(c=>{let l=c.offset||0;a.forwardTime(l*o),a.setStyles(c.styles,c.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(r+o),n.previousNode=e}visitQuery(e,n){let i=n.currentTimeline.currentTime,r=e.options||{},o=r.delay?Ls(r.delay):0;o&&(n.previousNode.type===dt.Style||i==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=zg);let s=i,a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,n.errors);n.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{n.currentQueryIndex=u;let d=n.createSubContext(e.options,l);o&&d.delayNextStep(o),l===n.element&&(c=d.currentTimeline),Zn(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let h=d.currentTimeline.currentTime;s=Math.max(s,h)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){let i=n.parentContext,r=n.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(n.currentQueryTotal-1),c=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=i.currentStaggerTime;break}let u=n.currentTimeline;c&&u.delayNextStep(c);let d=u.currentTime;Zn(this,e.animation,n),n.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}},zg={},jx=class t{constructor(e,n,i,r,o,s,a,c){this._driver=e,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=zg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Ug(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;let i=e,r=this.options;i.duration!=null&&(r.duration=Ls(i.duration)),i.delay!=null&&(r.delay=Ls(i.delay));let o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=Zh(o[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let n=this.options.params;if(n){let i=e.params={};Object.keys(n).forEach(r=>{i[r]=n[r]})}}return e}createSubContext(e=null,n,i){let r=n||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=zg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,i){let r={duration:n??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},o=new Hx(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,i,r,o,s){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(sJ,"."+this._enterClassName),e=e.replace(cJ,"."+this._leaveClassName);let c=i!=1,l=this._driver.query(this.element,e,c);i!==0&&(l=i<0?l.slice(l.length+i,l.length):l.slice(0,i)),a.push(...l)}return!o&&a.length==0&&s.push(CZ(n)),a}},Ug=class t{constructor(e,n,i,r){this._driver=e,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let n=this._keyframes.size===1&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=rJ,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles.set(e,n),this._globalTimelineStyles.set(e,n),this._styleSummary.set(e,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[n,i]of this._globalTimelineStyles)this._backFill.set(n,i||$o),this._currentKeyframe.set(n,$o);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,i,r){n&&this._previousKeyframe.set("easing",n);let o=r&&r.params||{},s=lJ(e,this._globalTimelineStyles);for(let[a,c]of s){let l=Zh(c,o,i);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??$o),this._updateStyle(a,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,n)=>{this._currentKeyframe.set(n,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,e)}))}snapshotCurrentStyles(){for(let[e,n]of this._localTimelineStyles)this._pendingStyles.set(e,n),this._updateStyle(e,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((n,i)=>{let r=this._styleSummary.get(i);(!r||n.time>r.time)&&this._updateStyle(i,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,n=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,c)=>{let l=new Map([...this._backFill,...a]);l.forEach((u,d)=>{u===cg?e.add(d):u===$o&&n.add(d)}),i||l.set("offset",c/this.duration),r.push(l)});let o=[...e.values()],s=[...n.values()];if(i){let a=r[0],c=new Map(a);a.set("offset",0),c.set("offset",1),r=[a,c]}return tD(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},Hx=class extends Ug{constructor(e,n,i,r,o,s,a=!1){super(e,n,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&n){let o=[],s=i+n,a=n/s,c=new Map(e[0]);c.set("offset",0),o.push(c);let l=new Map(e[0]);l.set("offset",XO(a)),o.push(l);let u=e.length-1;for(let d=1;d<=u;d++){let h=new Map(e[d]),f=h.get("offset"),p=n+f*i;h.set("offset",XO(p/s)),o.push(h)}i=s,n=0,r="",e=o}return tD(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}};function XO(t,e=3){let n=Math.pow(10,e-1);return Math.round(t*n)/n}function lJ(t,e){let n=new Map,i;return t.forEach(r=>{if(r==="*"){i??=e.keys();for(let o of i)n.set(o,$o)}else for(let[o,s]of r)n.set(o,s)}),n}function ZO(t,e,n,i,r,o,s,a,c,l,u,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:h}}var Mx={},qg=class{constructor(e,n,i){this._triggerName=e,this.ast=n,this._stateStyles=i}match(e,n,i,r){return dJ(this.ast.matchers,e,n,i,r)}buildStyles(e,n,i){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(n,i):new Map}build(e,n,i,r,o,s,a,c,l,u){let d=[],h=this.ast.options&&this.ast.options.params||Mx,f=a&&a.params||Mx,p=this.buildStyles(i,f,d),m=c&&c.params||Mx,v=this.buildStyles(r,m,d),b=new Set,C=new Map,E=new Map,_=r==="void",y={params:pN(m,h),delay:this.ast.options?.delay},x=u?[]:fN(e,n,this.ast.animation,o,s,p,v,y,l,d),F=0;return x.forEach(L=>{F=Math.max(L.duration+L.delay,F)}),d.length?ZO(n,this._triggerName,i,r,_,p,v,[],[],C,E,F,d):(x.forEach(L=>{let P=L.element,Q=Jn(C,P,new Set);L.preStyleProps.forEach(W=>Q.add(W));let G=Jn(E,P,new Set);L.postStyleProps.forEach(W=>G.add(W)),P!==n&&b.add(P)}),ZO(n,this._triggerName,i,r,_,p,v,x,[...b.values()],C,E,F))}};function dJ(t,e,n,i,r){return t.some(o=>o(e,n,i,r))}function pN(t,e){let n=X({},e);return Object.entries(t).forEach(([i,r])=>{r!=null&&(n[i]=r)}),n}var zx=class{constructor(e,n,i){this.styles=e,this.defaultParams=n,this.normalizer=i}buildStyles(e,n){let i=new Map,r=pN(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=Zh(s,r,n));let c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),i.set(a,s)})}),i}};function uJ(t,e,n){return new Ux(t,e,n)}var Ux=class{constructor(e,n,i){this.name=e,this.ast=n,this._normalizer=i,this.transitionFactories=[],this.states=new Map,n.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new zx(r.style,o,i))}),JO(this.states,"true","1"),JO(this.states,"false","0"),n.transitions.forEach(r=>{this.transitionFactories.push(new qg(e,r,this.states))}),this.fallbackTransition=hJ(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,i,r){return this.transitionFactories.find(s=>s.match(e,n,i,r))||null}matchStyles(e,n,i){return this.fallbackTransition.buildStyles(e,n,i)}};function hJ(t,e,n){let i=[(s,a)=>!0],r={type:dt.Sequence,steps:[],options:null},o={type:dt.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new qg(t,o,e)}function JO(t,e,n){t.has(e)?t.has(n)||t.set(n,t.get(e)):t.has(n)&&t.set(e,t.get(n))}var fJ=new Jh,qx=class{constructor(e,n,i){this.bodyNode=e,this._driver=n,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,n){let i=[],r=[],o=hN(this._driver,n,i,r);if(i.length)throw IZ(i);r.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,n,i){let r=e.element,o=oN(this._normalizer,e.keyframes,n,i);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)}create(e,n,i={}){let r=[],o=this._animations.get(e),s,a=new Map;if(o?(s=fN(this._driver,n,o,lN,Ox,new Map,new Map,i,fJ,r),s.forEach(u=>{let d=Jn(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(kZ()),s=[]),r.length)throw MZ(r);a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,$o))})});let c=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),l=za(c);return this._playersById.set(e,l),l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){let n=this._getPlayer(e);n.destroy(),this._playersById.delete(e);let i=this.players.indexOf(n);i>=0&&this.players.splice(i,1)}_getPlayer(e){let n=this._playersById.get(e);if(!n)throw TZ(e);return n}listen(e,n,i,r){let o=Kx(n,"","","");return Qx(this._getPlayer(e),i,o,r),()=>{}}command(e,n,i,r){if(i=="register"){this.register(e,r[0]);return}if(i=="create"){let s=r[0]||{};this.create(e,n,s);return}let o=this._getPlayer(e);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},eN="ng-animate-queued",pJ=".ng-animate-queued",Tx="ng-animate-disabled",mJ=".ng-animate-disabled",gJ="ng-star-inserted",vJ=".ng-star-inserted",bJ=[],mN={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_J={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ao="__ng_removed",ef=class{get params(){return this.options.params}constructor(e,n=""){this.namespaceId=n;let i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=wJ(r),i){let o=e,{value:s}=o,a=_b(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let n=e.params;if(n){let i=this.options.params;Object.keys(n).forEach(r=>{i[r]==null&&(i[r]=n[r])})}}},Xh="void",Ax=new ef(Xh),$x=class{constructor(e,n,i){this.id=e,this.hostElement=n,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,wr(n,this._hostClassName)}listen(e,n,i,r){if(!this._triggers.has(n))throw AZ(i,n);if(i==null||i.length==0)throw RZ(n);if(!CJ(i))throw OZ(i,n);let o=Jn(this._elementListeners,e,[]),s={name:n,phase:i,callback:r};o.push(s);let a=Jn(this._engine.statesByElement,e,new Map);return a.has(n)||(wr(e,Og),wr(e,Og+"-"+n),a.set(n,Ax)),()=>{this._engine.afterFlush(()=>{let c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(n)||a.delete(n)})}}register(e,n){return this._triggers.has(e)?!1:(this._triggers.set(e,n),!0)}_getTrigger(e){let n=this._triggers.get(e);if(!n)throw NZ(e);return n}trigger(e,n,i,r=!0){let o=this._getTrigger(n),s=new tf(this.id,n,e),a=this._engine.statesByElement.get(e);a||(wr(e,Og),wr(e,Og+"-"+n),this._engine.statesByElement.set(e,a=new Map));let c=a.get(n),l=new ef(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(n,l),c||(c=Ax),!(l.value===Xh)&&c.value===l.value){if(!EJ(c.params,l.params)){let m=[],v=o.matchStyles(c.value,c.params,m),b=o.matchStyles(l.value,l.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Uc(e,v),Qo(e,b)})}return}let h=Jn(this._engine.playersByElement,e,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==n&&m.queued&&m.destroy()});let f=o.matchTransition(c.value,l.value,e,l.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:f,fromState:c,toState:l,player:s,isFallbackTransition:p}),p||(wr(e,eN),s.onStart(()=>{Od(e,eN)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);let v=this._engine.playersByElement.get(e);if(v){let b=v.indexOf(s);b>=0&&v.splice(b,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(n=>n.delete(e)),this._elementListeners.forEach((n,i)=>{this._elementListeners.set(i,n.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let n=this._engine.playersByElement.get(e);n&&(n.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){let i=this._engine.driver.query(e,Vg,!0);i.forEach(r=>{if(r[ao])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,n,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,n,i,r){let o=this._engine.statesByElement.get(e),s=new Map;if(o){let a=[];if(o.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){let u=this.trigger(e,l,Xh,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,s),i&&za(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let n=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(n&&i){let r=new Set;n.forEach(o=>{let s=o.name;if(r.has(s))return;r.add(s);let c=this._triggers.get(s).fallbackTransition,l=i.get(s)||Ax,u=new ef(Xh),d=new tf(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:c,fromState:l,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,n){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let r=!1;if(i.totalAnimations){let o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else{let s=e;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,n);else{let o=e[ao];(!o||o===mN)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,n))}}insertNode(e,n){wr(e,this._hostClassName)}drainQueuedTransitions(e){let n=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){let c=Kx(o,i.triggerName,i.fromState.value,i.toState.value);c._data=e,Qx(i.player,a.phase,c,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):n.push(i)}),this._queue=[],n.sort((i,r)=>{let o=i.transition.ast.depCount,s=r.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Wx=class{_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}constructor(e,n,i){this.bodyNode=e,this.driver=n,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(n=>{n.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,n){let i=new $x(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(i,n):(this.newHostElements.set(n,i),this.collectEnterElement(n)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,n){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){let c=r.get(a);if(c){let l=i.indexOf(c);i.splice(l+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(e)}else i.push(e);return r.set(n,e),e}register(e,n){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,n)),i}registerTrigger(e,n,i){let r=this._namespaceLookup[e];r&&r.register(n,i)&&this.totalAnimations++}destroy(e,n){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(n),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let n=new Set,i=this.statesByElement.get(e);if(i){for(let r of i.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&n.add(o)}}return n}trigger(e,n,i,r){if(Pg(n)){let o=this._fetchNamespace(e);if(o)return o.trigger(n,i,r),!0}return!1}insertNode(e,n,i,r){if(!Pg(n))return;let o=n[ao];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(n,i)}r&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),wr(e,Tx)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Od(e,Tx))}removeNode(e,n,i){if(Pg(n)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(n,i):this.markElementAsRemoved(e,n,!1,i);let o=this.namespacesByHostElement.get(n);o&&o.id!==e&&o.removeNode(n,i)}else this._onRemovalComplete(n,i)}markElementAsRemoved(e,n,i,r,o){this.collectedLeaveElements.push(n),n[ao]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,n,i,r,o){return Pg(n)?this._fetchNamespace(e).listen(n,i,r,o):()=>{}}_buildInstruction(e,n,i,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,n,o)}destroyInnerAnimations(e){let n=this.driver.query(e,Vg,!0);n.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(e,Nx,!0),n.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let n=this.playersByElement.get(e);n&&n.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let n=this.playersByQueriedElement.get(e);n&&n.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return za(this.players).onDone(()=>e());e()})}processLeaveNode(e){let n=e[ao];if(n&&n.setForRemoval){if(e[ao]=mN,n.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(Tx)&&this.markElementAsDisabled(e,!1),this.driver.query(e,mJ,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],n.length?za(n).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw FZ(e)}_flushAnimations(e,n){let i=new Jh,r=[],o=new Map,s=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(S=>{u.add(S);let w=this.driver.query(S,pJ,!0);for(let M=0;M{let M=lN+m++;p.set(w,M),S.forEach(T=>wr(T,M))});let v=[],b=new Set,C=new Set;for(let S=0;Sb.add(T)):C.add(w))}let E=new Map,_=nN(h,Array.from(b));_.forEach((S,w)=>{let M=Ox+m++;E.set(w,M),S.forEach(T=>wr(T,M))}),e.push(()=>{f.forEach((S,w)=>{let M=p.get(w);S.forEach(T=>Od(T,M))}),_.forEach((S,w)=>{let M=E.get(w);S.forEach(T=>Od(T,M))}),v.forEach(S=>{this.processLeaveNode(S)})});let y=[],x=[];for(let S=this._namespaceList.length-1;S>=0;S--)this._namespaceList[S].drainQueuedTransitions(n).forEach(M=>{let T=M.player,J=M.element;if(y.push(T),this.collectedEnterElements.length){let it=J[ao];if(it&&it.setForMove){if(it.previousTriggersValues&&it.previousTriggersValues.has(M.triggerName)){let ti=it.previousTriggersValues.get(M.triggerName),Tt=this.statesByElement.get(M.element);if(Tt&&Tt.has(M.triggerName)){let Ce=Tt.get(M.triggerName);Ce.value=ti,Tt.set(M.triggerName,Ce)}}T.destroy();return}}let ye=!d||!this.driver.containsElement(d,J),Ae=E.get(J),Qe=p.get(J),Pe=this._buildInstruction(M,i,Qe,Ae,ye);if(Pe.errors&&Pe.errors.length){x.push(Pe);return}if(ye){T.onStart(()=>Uc(J,Pe.fromStyles)),T.onDestroy(()=>Qo(J,Pe.toStyles)),r.push(T);return}if(M.isFallbackTransition){T.onStart(()=>Uc(J,Pe.fromStyles)),T.onDestroy(()=>Qo(J,Pe.toStyles)),r.push(T);return}let Mt=[];Pe.timelines.forEach(it=>{it.stretchStartingKeyframe=!0,this.disabledNodes.has(it.element)||Mt.push(it)}),Pe.timelines=Mt,i.append(J,Pe.timelines);let ci={instruction:Pe,player:T,element:J};s.push(ci),Pe.queriedElements.forEach(it=>Jn(a,it,[]).push(T)),Pe.preStyleProps.forEach((it,ti)=>{if(it.size){let Tt=c.get(ti);Tt||c.set(ti,Tt=new Set),it.forEach((Ce,Dt)=>Tt.add(Dt))}}),Pe.postStyleProps.forEach((it,ti)=>{let Tt=l.get(ti);Tt||l.set(ti,Tt=new Set),it.forEach((Ce,Dt)=>Tt.add(Dt))})});if(x.length){let S=[];x.forEach(w=>{S.push(PZ(w.triggerName,w.errors))}),y.forEach(w=>w.destroy()),this.reportError(S)}let F=new Map,L=new Map;s.forEach(S=>{let w=S.element;i.has(w)&&(L.set(w,w),this._beforeAnimationBuild(S.player.namespaceId,S.instruction,F))}),r.forEach(S=>{let w=S.element;this._getPreviousPlayers(w,!1,S.namespaceId,S.triggerName,null).forEach(T=>{Jn(F,w,[]).push(T),T.destroy()})});let P=v.filter(S=>rN(S,c,l)),Q=new Map;iN(Q,this.driver,C,l,$o).forEach(S=>{rN(S,c,l)&&P.push(S)});let W=new Map;f.forEach((S,w)=>{iN(W,this.driver,new Set(S),c,cg)}),P.forEach(S=>{let w=Q.get(S),M=W.get(S);Q.set(S,new Map([...w?.entries()??[],...M?.entries()??[]]))});let Y=[],Z=[],ae={};s.forEach(S=>{let{element:w,player:M,instruction:T}=S;if(i.has(w)){if(u.has(w)){M.onDestroy(()=>Qo(w,T.toStyles)),M.disabled=!0,M.overrideTotalTime(T.totalTime),r.push(M);return}let J=ae;if(L.size>1){let Ae=w,Qe=[];for(;Ae=Ae.parentNode;){let Pe=L.get(Ae);if(Pe){J=Pe;break}Qe.push(Ae)}Qe.forEach(Pe=>L.set(Pe,J))}let ye=this._buildAnimation(M.namespaceId,T,F,o,W,Q);if(M.setRealPlayer(ye),J===ae)Y.push(M);else{let Ae=this.playersByElement.get(J);Ae&&Ae.length&&(M.parentPlayer=za(Ae)),r.push(M)}}else Uc(w,T.fromStyles),M.onDestroy(()=>Qo(w,T.toStyles)),Z.push(M),u.has(w)&&r.push(M)}),Z.forEach(S=>{let w=o.get(S.element);if(w&&w.length){let M=za(w);S.setRealPlayer(M)}}),r.forEach(S=>{S.parentPlayer?S.syncPlayerEvents(S.parentPlayer):S.destroy()});for(let S=0;S!ye.destroyed);J.length?xJ(this,w,J):this.processLeaveNode(w)}return v.length=0,Y.forEach(S=>{this.players.push(S),S.onDone(()=>{S.destroy();let w=this.players.indexOf(S);this.players.splice(w,1)}),S.play()}),Y}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,i,r,o){let s=[];if(n){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let c=!o||o==Xh;a.forEach(l=>{l.queued||!c&&l.triggerName!=r||s.push(l)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(e,n,i){let r=n.triggerName,o=n.element,s=n.isRemovalTransition?void 0:e,a=n.isRemovalTransition?void 0:r;for(let c of n.timelines){let l=c.element,u=l!==o,d=Jn(i,l,[]);this._getPreviousPlayers(l,u,s,a,n.toState).forEach(f=>{let p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Uc(o,n.fromStyles)}_buildAnimation(e,n,i,r,o,s){let a=n.triggerName,c=n.element,l=[],u=new Set,d=new Set,h=n.timelines.map(p=>{let m=p.element;u.add(m);let v=m[ao];if(v&&v.removedBeforeQueried)return new La(p.duration,p.delay);let b=m!==c,C=DJ((i.get(m)||bJ).map(F=>F.getRealPlayer())).filter(F=>{let L=F;return L.element?L.element===m:!1}),E=o.get(m),_=s.get(m),y=oN(this._normalizer,p.keyframes,E,_),x=this._buildPlayer(p,y,C);if(p.subTimeline&&r&&d.add(m),b){let F=new tf(e,a,m);F.setRealPlayer(x),l.push(F)}return x});l.forEach(p=>{Jn(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>yJ(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>wr(p,YO));let f=za(h);return f.onDestroy(()=>{u.forEach(p=>Od(p,YO)),Qo(c,n.toStyles)}),d.forEach(p=>{Jn(r,p,[]).push(f)}),f}_buildPlayer(e,n,i){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,i):new La(e.duration,e.delay)}},tf=class{constructor(e,n,i){this.namespaceId=e,this.triggerName=n,this.element=i,this._player=new La,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((n,i)=>{n.forEach(r=>Qx(e,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){Jn(this._queuedCallbacks,e,[]).push(n)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1: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){let n=this._player;n.triggerCallback&&n.triggerCallback(e)}};function yJ(t,e,n){let i=t.get(e);if(i){if(i.length){let r=i.indexOf(n);i.splice(r,1)}i.length==0&&t.delete(e)}return i}function wJ(t){return t??null}function Pg(t){return t&&t.nodeType===1}function CJ(t){return t=="start"||t=="done"}function tN(t,e){let n=t.style.display;return t.style.display=e??"none",n}function iN(t,e,n,i,r){let o=[];n.forEach(c=>o.push(tN(c)));let s=[];i.forEach((c,l)=>{let u=new Map;c.forEach(d=>{let h=e.computeStyle(l,d,r);u.set(d,h),(!h||h.length==0)&&(l[ao]=_J,s.push(l))}),t.set(l,u)});let a=0;return n.forEach(c=>tN(c,o[a++])),s}function nN(t,e){let n=new Map;if(t.forEach(a=>n.set(a,[])),e.length==0)return n;let i=1,r=new Set(e),o=new Map;function s(a){if(!a)return i;let c=o.get(a);if(c)return c;let l=a.parentNode;return n.has(l)?c=l:r.has(l)?c=i:c=s(l),o.set(a,c),c}return e.forEach(a=>{let c=s(a);c!==i&&n.get(c).push(a)}),n}function wr(t,e){t.classList?.add(e)}function Od(t,e){t.classList?.remove(e)}function xJ(t,e,n){za(n).onDone(()=>t.processLeaveNode(e))}function DJ(t){let e=[];return gN(t,e),e}function gN(t,e){for(let n=0;nr.add(o)):e.set(t,i),n.delete(t),!0}var Fd=class{constructor(e,n,i){this._driver=n,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new Wx(e.body,n,i),this._timelineEngine=new qx(e.body,n,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,n,i,r,o){let s=e+"-"+r,a=this._triggerCache[s];if(!a){let c=[],l=[],u=hN(this._driver,o,c,l);if(c.length)throw EZ(r,c);l.length&&void 0,a=uJ(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,r,a)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,i,r){this._transitionEngine.insertNode(e,n,i,r)}onRemove(e,n,i){this._transitionEngine.removeNode(e,n,i)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,i,r){if(i.charAt(0)=="@"){let[o,s]=WO(i),a=r;this._timelineEngine.command(o,n,s,a)}else this._transitionEngine.trigger(e,n,i,r)}listen(e,n,i,r,o){if(i.charAt(0)=="@"){let[s,a]=WO(i);return this._timelineEngine.listen(s,n,a,o)}return this._transitionEngine.listen(e,n,i,r,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function SJ(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Rx(e[0]),e.length>1&&(i=Rx(e[e.length-1]))):e instanceof Map&&(n=Rx(e)),n||i?new Gx(t,n,i):null}var Nd=class Nd{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let r=Nd.initialStylesByElement.get(e);r||Nd.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Qo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Qo(this._element,this._initialStyles),this._endStyles&&(Qo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Nd.initialStylesByElement.delete(this._element),this._startStyles&&(Uc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Uc(this._element,this._endStyles),this._endStyles=null),Qo(this._element,this._initialStyles),this._state=3)}};Nd.initialStylesByElement=new WeakMap;var Gx=Nd;function Rx(t){let e=null;return t.forEach((n,i)=>{IJ(i)&&(e=e||new Map,e.set(i,n))}),e}function IJ(t){return t==="display"||t==="position"}var $g=class{constructor(e,n,i,r){this.element=e,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,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;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let n=()=>this._onFinish();this.domPlayer.addEventListener("finish",n),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",n)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let n=[];return e.forEach(i=>{n.push(Object.fromEntries(i))}),n}_triggerWebAnimation(e,n,i){return e.animate(this._convertKeyframesToObject(n),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&e.set(r,this._finished?i:eD(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(i=>i()),n.length=0}},Wg=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,n){return sN(e,n)}getParentElement(e){return Xx(e)}query(e,n,i){return aN(e,n,i)}computeStyle(e,n,i){return eD(e,n)}animate(e,n,i,r,o,s=[]){let a=r==0?"both":"forwards",c={duration:i,delay:r,fill:a};o&&(c.easing=o);let l=new Map,u=s.filter(f=>f instanceof $g);GZ(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>l.set(m,p))});let d=qZ(n).map(f=>new Map(f));d=YZ(e,d,l);let h=SJ(e,d);return new $g(e,d,c,h)}};var Lg="@",vN="@.disabled",Gg=class{constructor(e,n,i,r){this.namespaceId=e,this.delegate=n,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,i,r=!0){this.delegate.insertBefore(e,n,i),this.engine.onInsert(this.namespaceId,n,e,r)}removeChild(e,n,i){this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,i,r){this.delegate.setAttribute(e,n,i,r)}removeAttribute(e,n,i){this.delegate.removeAttribute(e,n,i)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,i,r){this.delegate.setStyle(e,n,i,r)}removeStyle(e,n,i){this.delegate.removeStyle(e,n,i)}setProperty(e,n,i){n.charAt(0)==Lg&&n==vN?this.disableAnimations(e,!!i):this.delegate.setProperty(e,n,i)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,i){return this.delegate.listen(e,n,i)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}},Yx=class extends Gg{constructor(e,n,i,r,o){super(n,i,r,o),this.factory=e,this.namespaceId=n}setProperty(e,n,i){n.charAt(0)==Lg?n.charAt(1)=="."&&n==vN?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,n.slice(1),i):this.delegate.setProperty(e,n,i)}listen(e,n,i){if(n.charAt(0)==Lg){let r=kJ(e),o=n.slice(1),s="";return o.charAt(0)!=Lg&&([o,s]=MJ(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{let c=a._data||-1;this.factory.scheduleListenerCallback(c,i,a)})}return this.delegate.listen(e,n,i)}};function kJ(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function MJ(t){let e=t.indexOf("."),n=t.substring(0,e),i=t.slice(e+1);return[n,i]}var Yg=class{constructor(e,n,i){this.delegate=e,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(r,o)=>{let s=o?.parentNode(r);s&&o.removeChild(s,r)}}createRenderer(e,n){let i="",r=this.delegate.createRenderer(e,n);if(!e||!n?.data?.animation){let l=this._rendererCache,u=l.get(r);if(!u){let d=()=>l.delete(r);u=new Gg(i,r,this.engine,d),l.set(r,u)}return u}let o=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(o,s,e,l.name,l)};return n.data.animation.forEach(a),new Yx(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,i){if(e>=0&&en(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([n,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var AJ=(()=>{let e=class e extends Fd{constructor(i,r,o){super(i,r,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(R(Fe),R(qc),R($c))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();function RJ(){return new jg}function OJ(t,e,n){return new Yg(t,e,n)}var _N=[{provide:$c,useFactory:RJ},{provide:Fd,useClass:AJ},{provide:ua,useFactory:OJ,deps:[e0,Fd,ee]}],bN=[{provide:qc,useFactory:()=>new Wg},{provide:Bt,useValue:"BrowserAnimations"},..._N],NJ=[{provide:qc,useClass:Zx},{provide:Bt,useValue:"NoopAnimations"},..._N],yN=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:i.disableAnimations?NJ:bN}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:bN,imports:[i0]});let t=e;return t})();var bt="primary",gf=Symbol("RouteTitle"),aD=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Hd(t){return new aD(t)}function FJ(t,e,n){let i=n.path.split("/");if(i.length>t.length||n.pathMatch==="full"&&(e.hasChildren()||i.lengthi[o]===r)}else return t===e}function RN(t){return t.length>0?t[t.length-1]:null}function qa(t){return cs(t)?t:vc(t)?Kt(Promise.resolve(t)):we(t)}var LJ={exact:NN,subset:FN},ON={exact:VJ,subset:BJ,ignored:()=>!0};function wN(t,e,n){return LJ[n.paths](t.root,e.root,n.matrixParams)&&ON[n.queryParams](t.queryParams,e.queryParams)&&!(n.fragment==="exact"&&t.fragment!==e.fragment)}function VJ(t,e){return Ko(t,e)}function NN(t,e,n){if(!Gc(t.segments,e.segments)||!Xg(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let i in e.children)if(!t.children[i]||!NN(t.children[i],e.children[i],n))return!1;return!0}function BJ(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>AN(t[n],e[n]))}function FN(t,e,n){return PN(t,e,e.segments,n)}function PN(t,e,n,i){if(t.segments.length>n.length){let r=t.segments.slice(0,n.length);return!(!Gc(r,n)||e.hasChildren()||!Xg(r,n,i))}else if(t.segments.length===n.length){if(!Gc(t.segments,n)||!Xg(t.segments,n,i))return!1;for(let r in e.children)if(!t.children[r]||!FN(t.children[r],e.children[r],i))return!1;return!0}else{let r=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!Gc(t.segments,r)||!Xg(t.segments,r,i)||!t.children[bt]?!1:PN(t.children[bt],e,o,i)}}function Xg(t,e,n){return e.every((i,r)=>ON[n](t[r].parameters,i.parameters))}var Bs=class{constructor(e=new Ut([],{}),n={},i=null){this.root=e,this.queryParams=n,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Hd(this.queryParams),this._queryParamMap}toString(){return zJ.serialize(this)}},Ut=class{constructor(e,n){this.segments=e,this.children=n,this.parent=null,Object.values(n).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Zg(this)}},Wc=class{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap??=Hd(this.parameters),this._parameterMap}toString(){return VN(this)}};function jJ(t,e){return Gc(t,e)&&t.every((n,i)=>Ko(n.parameters,e[i].parameters))}function Gc(t,e){return t.length!==e.length?!1:t.every((n,i)=>n.path===e[i].path)}function HJ(t,e){let n=[];return Object.entries(t.children).forEach(([i,r])=>{i===bt&&(n=n.concat(e(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==bt&&(n=n.concat(e(r,i)))}),n}var vf=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:()=>new zd,providedIn:"root"});let t=e;return t})(),zd=class{parse(e){let n=new dD(e);return new Bs(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){let n=`/${nf(e.root,!0)}`,i=$J(e.queryParams),r=typeof e.fragment=="string"?`#${UJ(e.fragment)}`:"";return`${n}${i}${r}`}},zJ=new zd;function Zg(t){return t.segments.map(e=>VN(e)).join("/")}function nf(t,e){if(!t.hasChildren())return Zg(t);if(e){let n=t.children[bt]?nf(t.children[bt],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==bt&&i.push(`${r}:${nf(o,!1)}`)}),i.length>0?`${n}(${i.join("//")})`:n}else{let n=HJ(t,(i,r)=>r===bt?[nf(t.children[bt],!1)]:[`${r}:${nf(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[bt]!=null?`${Zg(t)}/${n[0]}`:`${Zg(t)}/(${n.join("//")})`}}function LN(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qg(t){return LN(t).replace(/%3B/gi,";")}function UJ(t){return encodeURI(t)}function lD(t){return LN(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Jg(t){return decodeURIComponent(t)}function CN(t){return Jg(t.replace(/\+/g,"%20"))}function VN(t){return`${lD(t.path)}${qJ(t.parameters)}`}function qJ(t){return Object.entries(t).map(([e,n])=>`;${lD(e)}=${lD(n)}`).join("")}function $J(t){let e=Object.entries(t).map(([n,i])=>Array.isArray(i)?i.map(r=>`${Qg(n)}=${Qg(r)}`).join("&"):`${Qg(n)}=${Qg(i)}`).filter(n=>n);return e.length?`?${e.join("&")}`:""}var WJ=/^[^\/()?;#]+/;function nD(t){let e=t.match(WJ);return e?e[0]:""}var GJ=/^[^\/()?;=#]+/;function YJ(t){let e=t.match(GJ);return e?e[0]:""}var QJ=/^[^=?&#]+/;function KJ(t){let e=t.match(QJ);return e?e[0]:""}var XJ=/^[^&#]+/;function ZJ(t){let e=t.match(XJ);return e?e[0]:""}var dD=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ut([],{}):new Ut([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(i[bt]=new Ut(e,n)),i}parseSegment(){let e=nD(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new ge(4009,!1);return this.capture(e),new Wc(Jg(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let n=YJ(this.remaining);if(!n)return;this.capture(n);let i="";if(this.consumeOptional("=")){let r=nD(this.remaining);r&&(i=r,this.capture(i))}e[Jg(n)]=Jg(i)}parseQueryParam(e){let n=KJ(this.remaining);if(!n)return;this.capture(n);let i="";if(this.consumeOptional("=")){let s=ZJ(this.remaining);s&&(i=s,this.capture(i))}let r=CN(n),o=CN(i);if(e.hasOwnProperty(r)){let s=e[r];Array.isArray(s)||(s=[s],e[r]=s),s.push(o)}else e[r]=o}parseParens(e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=nD(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new ge(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=bt);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[bt]:new Ut([],s),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new ge(4011,!1)}};function BN(t){return t.segments.length>0?new Ut([],{[bt]:t}):t}function jN(t){let e={};for(let[i,r]of Object.entries(t.children)){let o=jN(r);if(i===bt&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[i]=o)}let n=new Ut(t.segments,e);return JJ(n)}function JJ(t){if(t.numberOfChildren===1&&t.children[bt]){let e=t.children[bt];return new Ut(t.segments.concat(e.segments),e.children)}return t}function Yc(t){return t instanceof Bs}function eee(t,e,n=null,i=null){let r=HN(t);return zN(r,e,n,i)}function HN(t){let e;function n(o){let s={};for(let c of o.children){let l=n(c);s[c.outlet]=l}let a=new Ut(o.url,s);return o===t&&(e=a),a}let i=n(t.root),r=BN(i);return e??r}function zN(t,e,n,i){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return rD(r,r,r,n,i);let o=tee(e);if(o.toRoot())return rD(r,r,new Ut([],{}),n,i);let s=iee(o,r,t),a=s.processChildren?sf(s.segmentGroup,s.index,o.commands):qN(s.segmentGroup,s.index,o.commands);return rD(r,s.segmentGroup,a,n,i)}function ev(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function lf(t){return typeof t=="object"&&t!=null&&t.outlets}function rD(t,e,n,i,r){let o={};i&&Object.entries(i).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;t===e?s=n:s=UN(t,e,n);let a=BN(jN(s));return new Bs(a,o,r)}function UN(t,e,n){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===e?i[r]=n:i[r]=UN(o,e,n)}),new Ut(t.segments,i)}var tv=class{constructor(e,n,i){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=i,e&&i.length>0&&ev(i[0]))throw new ge(4003,!1);let r=i.find(lf);if(r&&r!==RN(i))throw new ge(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function tee(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new tv(!0,0,t);let e=0,n=!1,i=t.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new tv(n,e,i)}var Vd=class{constructor(e,n,i){this.segmentGroup=e,this.processChildren=n,this.index=i}};function iee(t,e,n){if(t.isAbsolute)return new Vd(e,!0,0);if(!n)return new Vd(e,!1,NaN);if(n.parent===null)return new Vd(n,!0,0);let i=ev(t.commands[0])?0:1,r=n.segments.length-1+i;return nee(n,r,t.numberOfDoubleDots)}function nee(t,e,n){let i=t,r=e,o=n;for(;o>r;){if(o-=r,i=i.parent,!i)throw new ge(4005,!1);r=i.segments.length}return new Vd(i,!1,r-o)}function ree(t){return lf(t[0])?t[0].outlets:{[bt]:t}}function qN(t,e,n){if(t??=new Ut([],{}),t.segments.length===0&&t.hasChildren())return sf(t,e,n);let i=oee(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndexo!==bt)&&t.children[bt]&&t.numberOfChildren===1&&t.children[bt].segments.length===0){let o=sf(t.children[bt],e,n);return new Ut(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=qN(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{i[o]===void 0&&(r[o]=s)}),new Ut(t.segments,r)}}function oee(t,e,n){let i=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return o;let s=t.segments[r],a=n[i];if(lf(a))break;let c=`${a}`,l=i0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!DN(c,l,s))return o;i+=2}else{if(!DN(c,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function uD(t,e,n){let i=t.segments.slice(0,e),r=0;for(;r{typeof i=="string"&&(i=[i]),i!==null&&(e[n]=uD(new Ut([],{}),0,i))}),e}function xN(t){let e={};return Object.entries(t).forEach(([n,i])=>e[n]=`${i}`),e}function DN(t,e,n){return t==n.path&&Ko(e,n.parameters)}var af="imperative",Ai=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Ai||{}),Cr=class{constructor(e,n){this.id=e,this.url=n}},Ud=class extends Cr{constructor(e,n,i="imperative",r=null){super(e,n),this.type=Ai.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Xo=class extends Cr{constructor(e,n,i){super(e,n),this.urlAfterRedirects=i,this.type=Ai.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},tr=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(tr||{}),iv=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(iv||{}),Vs=class extends Cr{constructor(e,n,i,r){super(e,n),this.reason=i,this.code=r,this.type=Ai.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Ua=class extends Cr{constructor(e,n,i,r){super(e,n),this.reason=i,this.code=r,this.type=Ai.NavigationSkipped}},df=class extends Cr{constructor(e,n,i,r){super(e,n),this.error=i,this.target=r,this.type=Ai.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},nv=class extends Cr{constructor(e,n,i,r){super(e,n),this.urlAfterRedirects=i,this.state=r,this.type=Ai.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},hD=class extends Cr{constructor(e,n,i,r){super(e,n),this.urlAfterRedirects=i,this.state=r,this.type=Ai.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},fD=class extends Cr{constructor(e,n,i,r,o){super(e,n),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=Ai.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},pD=class extends Cr{constructor(e,n,i,r){super(e,n),this.urlAfterRedirects=i,this.state=r,this.type=Ai.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mD=class extends Cr{constructor(e,n,i,r){super(e,n),this.urlAfterRedirects=i,this.state=r,this.type=Ai.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gD=class{constructor(e){this.route=e,this.type=Ai.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},vD=class{constructor(e){this.route=e,this.type=Ai.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},bD=class{constructor(e){this.snapshot=e,this.type=Ai.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_D=class{constructor(e){this.snapshot=e,this.type=Ai.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yD=class{constructor(e){this.snapshot=e,this.type=Ai.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wD=class{constructor(e){this.snapshot=e,this.type=Ai.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},rv=class{constructor(e,n,i){this.routerEvent=e,this.position=n,this.anchor=i,this.type=Ai.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},uf=class{},qd=class{constructor(e,n){this.url=e,this.navigationBehaviorOptions=n}};function aee(t,e){return t.providers&&!t._injector&&(t._injector=Lm(t.providers,e,`Route: ${t.path}`)),t._injector??e}function co(t){return t.outlet||bt}function cee(t,e){let n=t.filter(i=>co(i)===e);return n.push(...t.filter(i=>co(i)!==e)),n}function bf(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let n=e.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var CD=class{get injector(){return bf(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new _f(this.rootInjector),this.attachRef=null}},_f=(()=>{let e=class e{constructor(i){this.rootInjector=i,this.contexts=new Map}onChildOutletCreated(i,r){let o=this.getOrCreateContext(i);o.outlet=r,this.contexts.set(i,o)}onChildOutletDestroyed(i){let r=this.getContext(i);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let i=this.contexts;return this.contexts=new Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let r=this.getContext(i);return r||(r=new CD(this.rootInjector),this.contexts.set(i,r)),r}getContext(i){return this.contexts.get(i)||null}};e.\u0275fac=function(r){return new(r||e)(R(Fi))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ov=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){let n=xD(e,this._root);return n?n.children.map(i=>i.value):[]}firstChild(e){let n=xD(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){let n=DD(e,this._root);return n.length<2?[]:n[n.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return DD(e,this._root).map(n=>n.value)}};function xD(t,e){if(t===e.value)return e;for(let n of e.children){let i=xD(t,n);if(i)return i}return null}function DD(t,e){if(t===e.value)return[e];for(let n of e.children){let i=DD(t,n);if(i.length)return i.unshift(e),i}return[]}var er=class{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}};function Ld(t){let e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}var sv=class extends ov{constructor(e,n){super(e),this.snapshot=n,OD(this,e)}toString(){return this.snapshot.toString()}};function $N(t){let e=lee(t),n=new Lt([new Wc("",{})]),i=new Lt({}),r=new Lt({}),o=new Lt({}),s=new Lt(""),a=new si(n,i,o,s,r,bt,t,e.root);return a.snapshot=e.root,new sv(new er(a,[]),e)}function lee(t){let e={},n={},i={},r="",o=new Bd([],e,i,r,n,bt,t,null,{});return new cv("",new er(o,[]))}var si=class{constructor(e,n,i,r,o,s,a,c){this.urlSubject=e,this.paramsSubject=n,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(Te(l=>l[gf]))??we(void 0),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Te(e=>Hd(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Te(e=>Hd(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function av(t,e,n="emptyOnly"){let i,{routeConfig:r}=t;return e!==null&&(n==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?i={params:X(X({},e.params),t.params),data:X(X({},e.data),t.data),resolve:X(X(X(X({},t.data),e.data),r?.data),t._resolvedData)}:i={params:X({},t.params),data:X({},t.data),resolve:X(X({},t.data),t._resolvedData??{})},r&&GN(r)&&(i.resolve[gf]=r.title),i}var Bd=class{get title(){return this.data?.[gf]}constructor(e,n,i,r,o,s,a,c,l){this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Hd(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Hd(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(i=>i.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${n}')`}},cv=class extends ov{constructor(e,n){super(n),this.url=e,OD(this,n)}toString(){return WN(this._root)}};function OD(t,e){e.value._routerState=t,e.children.forEach(n=>OD(t,n))}function WN(t){let e=t.children.length>0?` { ${t.children.map(WN).join(", ")} } `:"";return`${t.value}${e}`}function oD(t){if(t.snapshot){let e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Ko(e.queryParams,n.queryParams)||t.queryParamsSubject.next(n.queryParams),e.fragment!==n.fragment&&t.fragmentSubject.next(n.fragment),Ko(e.params,n.params)||t.paramsSubject.next(n.params),PJ(e.url,n.url)||t.urlSubject.next(n.url),Ko(e.data,n.data)||t.dataSubject.next(n.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function ED(t,e){let n=Ko(t.params,e.params)&&jJ(t.url,e.url),i=!t.parent!=!e.parent;return n&&!i&&(!t.parent||ED(t.parent,e.parent))}function GN(t){return typeof t.title=="string"||t.title===null}var ND=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=bt,this.activateEvents=new oe,this.deactivateEvents=new oe,this.attachEvents=new oe,this.detachEvents=new oe,this.parentContexts=B(_f),this.location=B(qt),this.changeDetector=B(Ge),this.inputBinder=B(fv,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(i){if(i.name){let{firstChange:r,previousValue:o}=i.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(i){return this.parentContexts.getContext(i)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let i=this.parentContexts.getContext(this.name);i?.route&&(i.attachRef?this.attach(i.attachRef,i.route):this.activateWith(i.route,i.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ge(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ge(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ge(4012,!1);this.location.detach();let i=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(i.instance),i}attach(i,r){this.activated=i,this._activatedRoute=r,this.location.insert(i.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(i.instance)}deactivate(){if(this.activated){let i=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(i)}}activateWith(i,r){if(this.isActivated)throw new ge(4013,!1);this._activatedRoute=i;let o=this.location,a=i.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new SD(i,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[lt]});let t=e;return t})(),SD=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,n,i){this.route=e,this.childContexts=n,this.parent=i}get(e,n){return e===si?this.route:e===_f?this.childContexts:this.parent.get(e,n)}},fv=new q(""),EN=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(i){this.unsubscribeFromRouteData(i),this.subscribeToRouteData(i)}unsubscribeFromRouteData(i){this.outletDataSubscriptions.get(i)?.unsubscribe(),this.outletDataSubscriptions.delete(i)}subscribeToRouteData(i){let{activatedRoute:r}=i,o=jr([r.queryParams,r.params,r.data]).pipe(Nt(([s,a,c],l)=>(c=X(X(X({},s),a),c),l===0?we(c):Promise.resolve(c)))).subscribe(s=>{if(!i.isActivated||!i.activatedComponentRef||i.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(i);return}let a=YM(r.component);if(!a){this.unsubscribeFromRouteData(i);return}for(let{templateName:c}of a.inputs)i.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(i,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();function dee(t,e,n){let i=hf(t,e._root,n?n._root:void 0);return new sv(i,e)}function hf(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){let i=n.value;i._futureSnapshot=e.value;let r=uee(t,e,n);return new er(i,r)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>hf(t,a)),s}}let i=hee(e.value),r=e.children.map(o=>hf(t,o));return new er(i,r)}}function uee(t,e,n){return e.children.map(i=>{for(let r of n.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return hf(t,i,r);return hf(t,i)})}function hee(t){return new si(new Lt(t.url),new Lt(t.params),new Lt(t.queryParams),new Lt(t.fragment),new Lt(t.data),t.outlet,t.component,t)}var ff=class{constructor(e,n){this.redirectTo=e,this.navigationBehaviorOptions=n}},YN="ngNavigationCancelingError";function lv(t,e){let{redirectTo:n,navigationBehaviorOptions:i}=Yc(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=QN(!1,tr.Redirect);return r.url=n,r.navigationBehaviorOptions=i,r}function QN(t,e){let n=new Error(`NavigationCancelingError: ${t||""}`);return n[YN]=!0,n.cancellationCode=e,n}function fee(t){return KN(t)&&Yc(t.url)}function KN(t){return!!t&&t[YN]}var pee=(t,e,n,i)=>Te(r=>(new ID(e,r.targetRouterState,r.currentRouterState,n,i).activate(t),r)),ID=class{constructor(e,n,i,r,o){this.routeReuseStrategy=e,this.futureState=n,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(e){let n=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,i,e),oD(this.futureState.root),this.activateChildRoutes(n,i,e)}deactivateChildRoutes(e,n,i){let r=Ld(n);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(e,n,i){let r=e.value,o=n?n.value:null;if(r===o)if(r.component){let s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(e,n,s.children)}else this.deactivateChildRoutes(e,n,i);else o&&this.deactivateRouteAndItsChildren(n,i)}deactivateRouteAndItsChildren(e,n){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){let i=n.getContext(e.value.outlet),r=i&&e.value.component?i.children:n,o=Ld(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){let s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,n){let i=n.getContext(e.value.outlet),r=i&&e.value.component?i.children:n,o=Ld(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(e,n,i){let r=Ld(n);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new wD(o.value.snapshot))}),e.children.length&&this.forwardEvent(new _D(e.value.snapshot))}activateRoutes(e,n,i){let r=e.value,o=n?n.value:null;if(oD(r),r===o)if(r.component){let s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(e,n,s.children)}else this.activateChildRoutes(e,n,i);else if(r.component){let s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),oD(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,i)}},dv=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},jd=class{constructor(e,n){this.component=e,this.route=n}};function mee(t,e,n){let i=t._root,r=e?e._root:null;return rf(i,r,n,[i.value])}function gee(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Wd(t,e){let n=Symbol(),i=e.get(t,n);return i===n?typeof t=="function"&&!eI(t)?t:e.get(t):i}function rf(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ld(e);return t.children.forEach(s=>{vee(s,o[s.value.outlet],n,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>cf(a,n.getContext(s),r)),r}function vee(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=bee(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new dv(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?rf(t,e,a?a.children:null,i,r):rf(t,e,n,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new jd(a.outlet.component,s))}else s&&cf(e,a,r),r.canActivateChecks.push(new dv(i)),o.component?rf(t,null,a?a.children:null,i,r):rf(t,null,n,i,r);return r}function bee(t,e,n){if(typeof n=="function")return n(t,e);switch(n){case"pathParamsChange":return!Gc(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Gc(t.url,e.url)||!Ko(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ED(t,e)||!Ko(t.queryParams,e.queryParams);case"paramsChange":default:return!ED(t,e)}}function cf(t,e,n){let i=Ld(t),r=t.value;Object.entries(i).forEach(([o,s])=>{r.component?e?cf(s,e.children.getContext(o),n):cf(s,null,n):cf(s,e,n)}),r.component?e&&e.outlet&&e.outlet.isActivated?n.canDeactivateChecks.push(new jd(e.outlet.component,r)):n.canDeactivateChecks.push(new jd(null,r)):n.canDeactivateChecks.push(new jd(null,r))}function yf(t){return typeof t=="function"}function _ee(t){return typeof t=="boolean"}function yee(t){return t&&yf(t.canLoad)}function wee(t){return t&&yf(t.canActivate)}function Cee(t){return t&&yf(t.canActivateChild)}function xee(t){return t&&yf(t.canDeactivate)}function Dee(t){return t&&yf(t.canMatch)}function XN(t){return t instanceof ls||t?.name==="EmptyError"}var Kg=Symbol("INITIAL_VALUE");function $d(){return Nt(t=>jr(t.map(e=>e.pipe(wt(1),Vt(Kg)))).pipe(Te(e=>{for(let n of e)if(n!==!0){if(n===Kg)return Kg;if(n===!1||Eee(n))return n}return!0}),We(e=>e!==Kg),wt(1)))}function Eee(t){return Yc(t)||t instanceof ff}function See(t,e){return Ei(n=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?we(mt(X({},n),{guardsResult:!0})):Iee(s,i,r,t).pipe(Ei(a=>a&&_ee(a)?kee(i,o,t,e):we(a)),Te(a=>mt(X({},n),{guardsResult:a})))})}function Iee(t,e,n,i){return Kt(t).pipe(Ei(r=>Oee(r.component,r.route,n,e,i)),Io(r=>r!==!0,!0))}function kee(t,e,n,i){return Kt(e).pipe(us(r=>Eo(Tee(r.route.parent,i),Mee(r.route,i),Ree(t,r.path,n),Aee(t,r.route,n))),Io(r=>r!==!0,!0))}function Mee(t,e){return t!==null&&e&&e(new yD(t)),we(!0)}function Tee(t,e){return t!==null&&e&&e(new bD(t)),we(!0)}function Aee(t,e,n){let i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||i.length===0)return we(!0);let r=i.map(o=>en(()=>{let s=bf(e)??n,a=Wd(o,s),c=wee(a)?a.canActivate(e,t):zn(s,()=>a(e,t));return qa(c).pipe(Io())}));return we(r).pipe($d())}function Ree(t,e,n){let i=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>gee(s)).filter(s=>s!==null).map(s=>en(()=>{let a=s.guards.map(c=>{let l=bf(s.node)??n,u=Wd(c,l),d=Cee(u)?u.canActivateChild(i,t):zn(l,()=>u(i,t));return qa(d).pipe(Io())});return we(a).pipe($d())}));return we(o).pipe($d())}function Oee(t,e,n,i,r){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return we(!0);let s=o.map(a=>{let c=bf(e)??r,l=Wd(a,c),u=xee(l)?l.canDeactivate(t,e,n,i):zn(c,()=>l(t,e,n,i));return qa(u).pipe(Io())});return we(s).pipe($d())}function Nee(t,e,n,i){let r=e.canLoad;if(r===void 0||r.length===0)return we(!0);let o=r.map(s=>{let a=Wd(s,t),c=yee(a)?a.canLoad(e,n):zn(t,()=>a(e,n));return qa(c)});return we(o).pipe($d(),ZN(i))}function ZN(t){return Ib(Wt(e=>{if(typeof e!="boolean")throw lv(t,e)}),Te(e=>e===!0))}function Fee(t,e,n,i){let r=e.canMatch;if(!r||r.length===0)return we(!0);let o=r.map(s=>{let a=Wd(s,t),c=Dee(a)?a.canMatch(e,n):zn(t,()=>a(e,n));return qa(c)});return we(o).pipe($d(),ZN(i))}var pf=class{constructor(e){this.segmentGroup=e||null}},mf=class extends Error{constructor(e){super(),this.urlTree=e}};function Pd(t){return ar(new pf(t))}function Pee(t){return ar(new ge(4e3,!1))}function Lee(t){return ar(QN(!1,tr.GuardRejected))}var kD=class{constructor(e,n){this.urlSerializer=e,this.urlTree=n}lineralizeSegments(e,n){let i=[],r=n.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return we(i);if(r.numberOfChildren>1||!r.children[bt])return Pee(`${e.redirectTo}`);r=r.children[bt]}}applyRedirectCommands(e,n,i,r,o){if(typeof n!="string"){let a=n,{queryParams:c,fragment:l,routeConfig:u,url:d,outlet:h,params:f,data:p,title:m}=r,v=zn(o,()=>a({params:f,data:p,queryParams:c,fragment:l,routeConfig:u,url:d,outlet:h,title:m}));if(v instanceof Bs)throw new mf(v);n=v}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),e,i);if(n[0]==="/")throw new mf(s);return s}applyRedirectCreateUrlTree(e,n,i,r){let o=this.createSegmentGroup(e,n.root,i,r);return new Bs(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){let i={};return Object.entries(e).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);i[r]=n[a]}else i[r]=o}),i}createSegmentGroup(e,n,i,r){let o=this.createSegments(e,n.segments,i,r),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,i,r)}),new Ut(o,s)}createSegments(e,n,i,r){return n.map(o=>o.path[0]===":"?this.findPosParam(e,o,r):this.findOrReturn(o,i))}findPosParam(e,n,i){let r=i[n.path.substring(1)];if(!r)throw new ge(4001,!1);return r}findOrReturn(e,n){let i=0;for(let r of n){if(r.path===e.path)return n.splice(i),r;i++}return e}},MD={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Vee(t,e,n,i,r){let o=FD(t,e,n);return o.matched?(i=aee(e,i),Fee(i,e,n,r).pipe(Te(s=>s===!0?o:X({},MD)))):we(o)}function FD(t,e,n){if(e.path==="**")return Bee(n);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||n.length>0)?X({},MD):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let r=(e.matcher||FJ)(n,t,e);if(!r)return X({},MD);let o={};Object.entries(r.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=r.consumed.length>0?X(X({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:n.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function Bee(t){return{matched:!0,parameters:t.length>0?RN(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function SN(t,e,n,i){return n.length>0&&zee(t,n,i)?{segmentGroup:new Ut(e,Hee(i,new Ut(n,t.children))),slicedSegments:[]}:n.length===0&&Uee(t,n,i)?{segmentGroup:new Ut(t.segments,jee(t,n,i,t.children)),slicedSegments:n}:{segmentGroup:new Ut(t.segments,t.children),slicedSegments:n}}function jee(t,e,n,i){let r={};for(let o of n)if(pv(t,e,o)&&!i[co(o)]){let s=new Ut([],{});r[co(o)]=s}return X(X({},i),r)}function Hee(t,e){let n={};n[bt]=e;for(let i of t)if(i.path===""&&co(i)!==bt){let r=new Ut([],{});n[co(i)]=r}return n}function zee(t,e,n){return n.some(i=>pv(t,e,i)&&co(i)!==bt)}function Uee(t,e,n){return n.some(i=>pv(t,e,i))}function pv(t,e,n){return(t.hasChildren()||e.length>0)&&n.pathMatch==="full"?!1:n.path===""}function qee(t,e,n,i){return co(t)!==i&&(i===bt||!pv(e,n,t))?!1:FD(e,t,n).matched}function $ee(t,e,n){return e.length===0&&!t.children[n]}var TD=class{};function Wee(t,e,n,i,r,o,s="emptyOnly"){return new AD(t,e,n,i,r,s,o).recognize()}var Gee=31,AD=class{constructor(e,n,i,r,o,s,a){this.injector=e,this.configLoader=n,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new kD(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new ge(4002,`'${e.segmentGroup}'`)}recognize(){let e=SN(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(Te(({children:n,rootSnapshot:i})=>{let r=new er(i,n),o=new cv("",r),s=eee(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let n=new Bd([],Object.freeze({}),Object.freeze(X({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),bt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,bt,n).pipe(Te(i=>({children:i,rootSnapshot:n})),ds(i=>{if(i instanceof mf)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof pf?this.noMatchError(i):i}))}processSegmentGroup(e,n,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(e,n,i,o):this.processSegment(e,n,i,i.segments,r,!0,o).pipe(Te(s=>s instanceof er?[s]:[]))}processChildren(e,n,i,r){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return Kt(o).pipe(us(s=>{let a=i.children[s],c=cee(n,s);return this.processSegmentGroup(e,c,a,s,r)}),__((s,a)=>(s.push(...a),s)),ia(null),p_(),Ei(s=>{if(s===null)return Pd(i);let a=JN(s);return Yee(a),we(a)}))}processSegment(e,n,i,r,o,s,a){return Kt(n).pipe(us(c=>this.processSegmentAgainstRoute(c._injector??e,n,c,i,r,o,s,a).pipe(ds(l=>{if(l instanceof pf)return we(null);throw l}))),Io(c=>!!c),ds(c=>{if(XN(c))return $ee(i,r,o)?we(new TD):Pd(i);throw c}))}processSegmentAgainstRoute(e,n,i,r,o,s,a,c){return qee(i,r,o,s)?i.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,i,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s,c):Pd(r):Pd(r)}expandSegmentAgainstRouteUsingRedirect(e,n,i,r,o,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=FD(n,r,o);if(!c)return Pd(n);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Gee&&(this.allowRedirects=!1));let f=new Bd(o,l,Object.freeze(X({},this.urlTree.queryParams)),this.urlTree.fragment,IN(r),co(r),r.component??r._loadedComponent??null,r,kN(r)),p=av(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(p.params),f.data=Object.freeze(p.data);let m=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,d,f,e);return this.applyRedirects.lineralizeSegments(r,m).pipe(Ei(v=>this.processSegment(e,i,n,v.concat(h),s,!1,a)))}matchSegmentAgainstRoute(e,n,i,r,o,s){let a=Vee(n,i,r,e,this.urlSerializer);return i.path==="**"&&(n.children={}),a.pipe(Nt(c=>c.matched?(e=i._injector??e,this.getChildConfig(e,i,r).pipe(Nt(({routes:l})=>{let u=i._loadedInjector??e,{parameters:d,consumedSegments:h,remainingSegments:f}=c,p=new Bd(h,d,Object.freeze(X({},this.urlTree.queryParams)),this.urlTree.fragment,IN(i),co(i),i.component??i._loadedComponent??null,i,kN(i)),m=av(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(m.params),p.data=Object.freeze(m.data);let{segmentGroup:v,slicedSegments:b}=SN(n,h,f,l);if(b.length===0&&v.hasChildren())return this.processChildren(u,l,v,p).pipe(Te(E=>new er(p,E)));if(l.length===0&&b.length===0)return we(new er(p,[]));let C=co(i)===o;return this.processSegment(u,l,v,b,C?bt:o,!0,p).pipe(Te(E=>new er(p,E instanceof er?[E]:[])))}))):Pd(n)))}getChildConfig(e,n,i){return n.children?we({routes:n.children,injector:e}):n.loadChildren?n._loadedRoutes!==void 0?we({routes:n._loadedRoutes,injector:n._loadedInjector}):Nee(e,n,i,this.urlSerializer).pipe(Ei(r=>r?this.configLoader.loadChildren(e,n).pipe(Wt(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):Lee(n))):we({routes:[],injector:e})}};function Yee(t){t.sort((e,n)=>e.value.outlet===bt?-1:n.value.outlet===bt?1:e.value.outlet.localeCompare(n.value.outlet))}function Qee(t){let e=t.value.routeConfig;return e&&e.path===""}function JN(t){let e=[],n=new Set;for(let i of t){if(!Qee(i)){e.push(i);continue}let r=e.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),n.add(r)):e.push(i)}for(let i of n){let r=JN(i.children);e.push(new er(i.value,r))}return e.filter(i=>!n.has(i))}function IN(t){return t.data||{}}function kN(t){return t.resolve||{}}function Kee(t,e,n,i,r,o){return Ei(s=>Wee(t,e,n,i,s.extractedUrl,r,o).pipe(Te(({state:a,tree:c})=>mt(X({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function Xee(t,e){return Ei(n=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=n;if(!r.length)return we(n);let o=new Set(r.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of e4(c))s.add(l);let a=0;return Kt(s).pipe(us(c=>o.has(c)?Zee(c,i,t,e):(c.data=av(c,c.parent,t).resolve,we(void 0))),Wt(()=>a++),bl(1),Ei(c=>a===s.size?we(n):vn))})}function e4(t){let e=t.children.map(n=>e4(n)).flat();return[t,...e]}function Zee(t,e,n,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!GN(r)&&(o[gf]=r.title),Jee(o,t,e,i).pipe(Te(s=>(t._resolvedData=s,t.data=av(t,t.parent,n).resolve,null)))}function Jee(t,e,n,i){let r=cD(t);if(r.length===0)return we({});let o={};return Kt(r).pipe(Ei(s=>ete(t[s],e,n,i).pipe(Io(),Wt(a=>{if(a instanceof ff)throw lv(new zd,a);o[s]=a}))),bl(1),_l(o),ds(s=>XN(s)?vn:ar(s)))}function ete(t,e,n,i){let r=bf(e)??i,o=Wd(t,r),s=o.resolve?o.resolve(e,n):zn(r,()=>o(e,n));return qa(s)}function sD(t){return Nt(e=>{let n=t(e);return n?Kt(n).pipe(Te(()=>e)):we(e)})}var t4=(()=>{let e=class e{buildTitle(i){let r,o=i.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===bt);return r}getResolvedTitleForRoute(i){return i.data[gf]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:()=>B(tte),providedIn:"root"});let t=e;return t})(),tte=(()=>{let e=class e extends t4{constructor(i){super(),this.title=i}updateTitle(i){let r=this.buildTitle(i);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(R(kT))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),wf=new q("",{providedIn:"root",factory:()=>({})}),ite=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=re({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ne],decls:1,vars:0,template:function(r,o){r&1&&xe(0,"router-outlet")},dependencies:[ND],encapsulation:2});let t=e;return t})();function PD(t){let e=t.children&&t.children.map(PD),n=e?mt(X({},t),{children:e}):X({},t);return!n.component&&!n.loadComponent&&(e||n.loadChildren)&&n.outlet&&n.outlet!==bt&&(n.component=ite),n}var uv=new q(""),LD=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=B(zm)}loadComponent(i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return we(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let r=qa(i.loadComponent()).pipe(Te(i4),Wt(s=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=s}),So(()=>{this.componentLoaders.delete(i)})),o=new as(r,()=>new K).pipe(Zs());return this.componentLoaders.set(i,o),o}loadChildren(i,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return we({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=nte(r,this.compiler,i,this.onLoadEndListener).pipe(So(()=>{this.childrenLoaders.delete(r)})),a=new as(s,()=>new K).pipe(Zs());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function nte(t,e,n,i){return qa(t.loadChildren()).pipe(Te(i4),Ei(r=>r instanceof Vu||Array.isArray(r)?we(r):Kt(e.compileModuleAsync(r))),Te(r=>{i&&i(t);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(n).injector,s=o.get(uv,[],{optional:!0,self:!0}).flat()),{routes:s.map(PD),injector:o}}))}function rte(t){return t&&typeof t=="object"&&"default"in t}function i4(t){return rte(t)?t.default:t}var VD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:()=>B(ote),providedIn:"root"});let t=e;return t})(),ote=(()=>{let e=class e{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,r){return i}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),n4=new q(""),r4=new q("");function ste(t,e,n){let i=t.get(r4),r=t.get(Fe);return t.get(ee).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=r.startViewTransition(()=>(o(),ate(t))),{onViewTransitionCreated:c}=i;return c&&zn(t,()=>c({transition:a,from:e,to:n})),s})}function ate(t){return new Promise(e=>{ri({read:()=>setTimeout(e)},{injector:t})})}var cte=new q(""),BD=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new K,this.transitionAbortSubject=new K,this.configLoader=B(LD),this.environmentInjector=B(Fi),this.urlSerializer=B(vf),this.rootContexts=B(_f),this.location=B(Bo),this.inputBindingEnabled=B(fv,{optional:!0})!==null,this.titleStrategy=B(t4),this.options=B(wf,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=B(VD),this.createViewTransition=B(n4,{optional:!0}),this.navigationErrorHandler=B(cte,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>we(void 0),this.rootComponentType=null;let i=o=>this.events.next(new gD(o)),r=o=>this.events.next(new vD(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=i}complete(){this.transitions?.complete()}handleNavigationRequest(i){let r=++this.navigationId;this.transitions?.next(mt(X(X({},this.transitions.value),i),{id:r}))}setupNavigations(i,r,o){return this.transitions=new Lt({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:af,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(We(s=>s.id!==0),Te(s=>mt(X({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Nt(s=>{let a=!1,c=!1;return we(s).pipe(Nt(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",tr.SupersededByNewNavigation),vn;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?mt(X({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!i.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=l.extras.onSameUrlNavigation??i.onSameUrlNavigation;if(!u&&d!=="reload"){let h="";return this.events.next(new Ua(l.id,this.urlSerializer.serialize(l.rawUrl),h,iv.IgnoredSameUrlNavigation)),l.resolve(!1),vn}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return we(l).pipe(Nt(h=>{let f=this.transitions?.getValue();return this.events.next(new Ud(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?vn:Promise.resolve(h)}),Kee(this.environmentInjector,this.configLoader,this.rootComponentType,i.config,this.urlSerializer,this.paramsInheritanceStrategy),Wt(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=mt(X({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new nv(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:h,extractedUrl:f,source:p,restoredState:m,extras:v}=l,b=new Ud(h,this.urlSerializer.serialize(f),p,m);this.events.next(b);let C=$N(this.rootComponentType).snapshot;return this.currentTransition=s=mt(X({},l),{targetSnapshot:C,urlAfterRedirects:f,extras:mt(X({},v),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,we(s)}else{let h="";return this.events.next(new Ua(l.id,this.urlSerializer.serialize(l.extractedUrl),h,iv.IgnoredByUrlHandlingStrategy)),l.resolve(!1),vn}}),Wt(l=>{let u=new hD(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),Te(l=>(this.currentTransition=s=mt(X({},l),{guards:mee(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),See(this.environmentInjector,l=>this.events.next(l)),Wt(l=>{if(s.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw lv(this.urlSerializer,l.guardsResult);let u=new fD(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(u)}),We(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",tr.GuardRejected),!1)),sD(l=>{if(l.guards.canActivateChecks.length)return we(l).pipe(Wt(u=>{let d=new pD(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),Nt(u=>{let d=!1;return we(u).pipe(Xee(this.paramsInheritanceStrategy,this.environmentInjector),Wt({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",tr.NoDataFromResolver)}}))}),Wt(u=>{let d=new mD(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),sD(l=>{let u=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(Wt(f=>{d.component=f}),Te(()=>{})));for(let f of d.children)h.push(...u(f));return h};return jr(u(l.targetSnapshot.root)).pipe(ia(null),wt(1))}),sD(()=>this.afterPreactivation()),Nt(()=>{let{currentSnapshot:l,targetSnapshot:u}=s,d=this.createViewTransition?.(this.environmentInjector,l.root,u.root);return d?Kt(d).pipe(Te(()=>s)):we(s)}),Te(l=>{let u=dee(i.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=mt(X({},l),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),Wt(()=>{this.events.next(new uf)}),pee(this.rootContexts,i.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),wt(1),Wt({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Xo(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),ot(this.transitionAbortSubject.pipe(Wt(l=>{throw l}))),So(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",tr.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),ds(l=>{if(c=!0,KN(l))this.events.next(new Vs(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),fee(l)?this.events.next(new qd(l.url,l.navigationBehaviorOptions)):s.resolve(!1);else{let u=new df(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0);try{let d=zn(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof ff){let{message:h,cancellationCode:f}=lv(this.urlSerializer,d);this.events.next(new Vs(s.id,this.urlSerializer.serialize(s.extractedUrl),h,f)),this.events.next(new qd(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(u);let h=i.errorHandler(l);s.resolve(!!h)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return vn}))}))}cancelNavigationTransition(i,r,o){let s=new Vs(i.id,this.urlSerializer.serialize(i.extractedUrl),r,o);this.events.next(s),i.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let i=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return i.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function lte(t){return t!==af}var jD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:()=>B(dte),providedIn:"root"});let t=e;return t})(),RD=class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}},dte=(()=>{let e=class e extends RD{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),o4=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:()=>B(ute),providedIn:"root"});let t=e;return t})(),ute=(()=>{let e=class e extends o4{constructor(){super(...arguments),this.location=B(Bo),this.urlSerializer=B(vf),this.options=B(wf,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=B(VD),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Bs,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=$N(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(i){return this.location.subscribe(r=>{r.type==="popstate"&&i(r.url,r.state)})}handleRouterEvent(i,r){if(i instanceof Ud)this.stateMemento=this.createStateMemento();else if(i instanceof Ua)this.rawUrlTree=r.initialUrl;else if(i instanceof nv){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else i instanceof uf?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):i instanceof Vs&&(i.code===tr.GuardRejected||i.code===tr.NoDataFromResolver)?this.restoreHistory(r):i instanceof df?this.restoreHistory(r,!0):i instanceof Xo&&(this.lastSuccessfulId=i.id,this.currentPageId=this.browserPageId)}setBrowserUrl(i,r){let o=i instanceof Bs?this.urlSerializer.serialize(i):i;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let s=this.browserPageId,a=X(X({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(o,"",a)}else{let s=X(X({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(i,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===i.finalUrl&&s===0&&(this.resetState(i),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(i),this.resetUrlToCurrentUrlTree())}resetState(i){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(i,r){return this.canceledNavigationResolution==="computed"?{navigationId:i,\u0275routerPageId:r}:{navigationId:i}}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ft(e)))(o||e)}})(),e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),of=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(of||{});function s4(t,e){t.events.pipe(We(n=>n instanceof Xo||n instanceof Vs||n instanceof df||n instanceof Ua),Te(n=>n instanceof Xo||n instanceof Ua?of.COMPLETE:(n instanceof Vs?n.code===tr.Redirect||n.code===tr.SupersededByNewNavigation:!1)?of.REDIRECTING:of.FAILED),We(n=>n!==of.REDIRECTING),wt(1)).subscribe(()=>{e()})}function hte(t){throw t}var fte={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},pte={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ti=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=B(Vm),this.stateManager=B(o4),this.options=B(wf,{optional:!0})||{},this.pendingTasks=B(Fo),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=B(BD),this.urlSerializer=B(vf),this.location=B(Bo),this.urlHandlingStrategy=B(VD),this._events=new K,this.errorHandler=this.options.errorHandler||hte,this.navigated=!1,this.routeReuseStrategy=B(jD),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=B(uv,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!B(fv,{optional:!0}),this.eventsSubscription=new Me,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof Vs&&r.code!==tr.Redirect&&r.code!==tr.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Xo)this.navigated=!0;else if(r instanceof qd){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),l=X({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||lte(o.source)},a);this.scheduleNavigation(c,af,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}gte(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),af,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((i,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(i,"popstate",r)},0)})}navigateToSyncWithBrowser(i,r,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let l=X({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let c=this.parseUrl(i);this.scheduleNavigation(c,r,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(PD),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(i,r={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=X(X({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=o?o.snapshot:this.routerState.snapshot.root;h=HN(f)}catch{(typeof i[0]!="string"||i[0][0]!=="/")&&(i=[]),h=this.currentUrlTree.root}return zN(h,i,d,u??null)}navigateByUrl(i,r={skipLocationChange:!1}){let o=Yc(i)?i:this.parseUrl(i),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,af,null,r)}navigate(i,r={skipLocationChange:!1}){return mte(i),this.navigateByUrl(this.createUrlTree(i,r),r)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,r){let o;if(r===!0?o=X({},fte):r===!1?o=X({},pte):o=r,Yc(i))return wN(this.currentUrlTree,i,o);let s=this.parseUrl(i);return wN(this.currentUrlTree,s,o)}removeEmptyProps(i){return Object.entries(i).reduce((r,[o,s])=>(s!=null&&(r[o]=s),r),{})}scheduleNavigation(i,r,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,l,u;a?(c=a.resolve,l=a.reject,u=a.promise):u=new Promise((h,f)=>{c=h,l=f});let d=this.pendingTasks.add();return s4(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:s,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(h=>Promise.reject(h))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function mte(t){for(let e=0;e{let e=class e{constructor(i,r,o,s,a,c){this.router=i,this.route=r,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new K,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=i.events.subscribe(u=>{u instanceof Xo&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(i){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",i)}ngOnChanges(i){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(i){i==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Yc(i)?this.routerLinkInput=i:this.routerLinkInput=Array.isArray(i)?i:[i],this.setTabIndexIfNotOnNativeEl("0"))}onClick(i,r,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(i!==0||r||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let i=this.urlTree;this.href=i!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(i)):null;let r=this.href===null?null:xk(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(i,r){let o=this.renderer,s=this.el.nativeElement;r!==null?o.setAttribute(s,i,r):o.removeAttribute(s,i)}get urlTree(){return this.routerLinkInput===null?null:Yc(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(r){return new(r||e)(g(Ti),g(si),wn("tabindex"),g(va),g(ce),g(Ds))},e.\u0275dir=te({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&le("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Ve("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ee],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ee],replaceUrl:[2,"replaceUrl","replaceUrl",Ee],routerLink:"routerLink"},standalone:!0,features:[nt,lt]});let t=e;return t})();var hv=class{};var vte=(()=>{let e=class e{constructor(i,r,o,s,a){this.router=i,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(We(i=>i instanceof Xo),us(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(i,r){let o=[];for(let s of r){s.providers&&!s._injector&&(s._injector=Lm(s.providers,i,`Route: ${s.path}`));let a=s._injector??i,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return Kt(o).pipe(ta())}preloadConfig(i,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(i,r):o=we(null);let s=o.pipe(Ei(a=>a===null?we(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??i,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(r);return Kt([s,a]).pipe(ta())}else return s})}};e.\u0275fac=function(r){return new(r||e)(R(Ti),R(zm),R(Fi),R(hv),R(LD))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),a4=new q(""),bte=(()=>{let e=class e{constructor(i,r,o,s,a={}){this.urlSerializer=i,this.transitions=r,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(i=>{i instanceof Ud?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=i.navigationTrigger,this.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof Xo?(this.lastId=i.id,this.scheduleScrollEvent(i,this.urlSerializer.parse(i.urlAfterRedirects).fragment)):i instanceof Ua&&i.code===iv.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(i,this.urlSerializer.parse(i.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(i=>{i instanceof rv&&(i.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(i.position):i.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(i.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(i,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new rv(i,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){Hl()},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();function _te(t){return t.routerState.root}function Cf(t,e){return{\u0275kind:t,\u0275providers:e}}function yte(){let t=B(Je);return e=>{let n=t.get(Cn);if(e!==n.components[0])return;let i=t.get(Ti),r=t.get(c4);t.get(HD)===1&&i.initialNavigation(),t.get(l4,null,_t.Optional)?.setUpPreloading(),t.get(a4,null,_t.Optional)?.init(),i.resetRootComponentType(n.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var c4=new q("",{factory:()=>new K}),HD=new q("",{providedIn:"root",factory:()=>1});function wte(){return Cf(2,[{provide:HD,useValue:0},{provide:Wl,multi:!0,deps:[Je],useFactory:e=>{let n=e.get(iT,Promise.resolve());return()=>n.then(()=>new Promise(i=>{let r=e.get(Ti),o=e.get(c4);s4(r,()=>{i(!0)}),e.get(BD).afterPreactivation=()=>(i(!0),o.closed?we(void 0):o),r.initialNavigation()}))}}])}function Cte(){return Cf(3,[{provide:Wl,multi:!0,useFactory:()=>{let e=B(Ti);return()=>{e.setUpLocationChangeListener()}}},{provide:HD,useValue:2}])}var l4=new q("");function xte(t){return Cf(0,[{provide:l4,useExisting:vte},{provide:hv,useExisting:t}])}function Dte(){return Cf(8,[EN,{provide:fv,useExisting:EN}])}function Ete(t){let e=[{provide:n4,useValue:ste},{provide:r4,useValue:X({skipNextTransition:!!t?.skipInitialTransition},t)}];return Cf(9,e)}var MN=new q("ROUTER_FORROOT_GUARD"),Ste=[Bo,{provide:vf,useClass:zd},Ti,_f,{provide:si,useFactory:_te,deps:[Ti]},LD,[]],d4=(()=>{let e=class e{constructor(i){}static forRoot(i,r){return{ngModule:e,providers:[Ste,[],{provide:uv,multi:!0,useValue:i},{provide:MN,useFactory:Tte,deps:[[Ti,new Gr,new fa]]},{provide:wf,useValue:r||{}},r?.useHash?kte():Mte(),Ite(),r?.preloadingStrategy?xte(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Ate(r):[],r?.bindToComponentInputs?Dte().\u0275providers:[],r?.enableViewTransitions?Ete().\u0275providers:[],Rte()]}}static forChild(i){return{ngModule:e,providers:[{provide:uv,multi:!0,useValue:i}]}}};e.\u0275fac=function(r){return new(r||e)(R(MN,8))},e.\u0275mod=_e({type:e}),e.\u0275inj=be({});let t=e;return t})();function Ite(){return{provide:a4,useFactory:()=>{let t=B(oT),e=B(ee),n=B(wf),i=B(BD),r=B(vf);return n.scrollOffset&&t.setOffset(n.scrollOffset),new bte(r,i,t,e,n)}}}function kte(){return{provide:Ds,useClass:rT}}function Mte(){return{provide:Ds,useClass:dw}}function Tte(t){return"guarded"}function Ate(t){return[t.initialNavigation==="disabled"?Cte().\u0275providers:[],t.initialNavigation==="enabledBlocking"?wte().\u0275providers:[]]}var TN=new q("");function Rte(){return[{provide:TN,useFactory:yte},{provide:Hm,multi:!0,useExisting:TN}]}var Df="Service workers are disabled or not supported by this browser";function Ote(t){return en(()=>ar(new Error(t)))}var Gd=class{constructor(e){if(this.serviceWorker=e,!e)this.worker=this.events=this.registration=Ote(Df);else{let i=tn(e,"controllerchange").pipe(Te(()=>e.controller)),r=en(()=>we(e.controller)),o=Eo(r,i);this.worker=o.pipe(We(u=>!!u)),this.registration=this.worker.pipe(Nt(()=>e.getRegistration()));let l=tn(e,"message").pipe(Te(u=>u.data)).pipe(We(u=>u&&u.type)).pipe(D_());l.connect(),this.events=l}}postMessage(e,n){return this.worker.pipe(wt(1),Wt(i=>{i.postMessage(X({action:e},n))})).toPromise().then(()=>{})}postMessageWithOperation(e,n,i){let r=this.waitForOperationCompleted(i),o=this.postMessage(e,n);return Promise.all([o,r]).then(([,s])=>s)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(e){let n;return typeof e=="string"?n=i=>i.type===e:n=i=>e.includes(i.type),this.events.pipe(We(n))}nextEventOfType(e){return this.eventsOfType(e).pipe(wt(1))}waitForOperationCompleted(e){return this.eventsOfType("OPERATION_COMPLETED").pipe(We(n=>n.nonce===e),wt(1),Te(n=>{if(n.result!==void 0)return n.result;throw new Error(n.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},p4=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,this.pushManager=null,this.subscriptionChanges=new K,!i.isEnabled){this.messages=ic,this.notificationClicks=ic,this.subscription=ic;return}this.messages=this.sw.eventsOfType("PUSH").pipe(Te(o=>o.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(Te(o=>o.data)),this.pushManager=this.sw.registration.pipe(Te(o=>o.pushManager));let r=this.pushManager.pipe(Nt(o=>o.getSubscription()));this.subscription=yt(r,this.subscriptionChanges)}requestSubscription(i){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(Df));let r={userVisibleOnly:!0},o=this.decodeBase64(i.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),s=new Uint8Array(new ArrayBuffer(o.length));for(let a=0;aa.subscribe(r)),wt(1)).toPromise().then(a=>(this.subscriptionChanges.next(a),a))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(Df));let i=r=>{if(r===null)throw new Error("Not subscribed to push notifications.");return r.unsubscribe().then(o=>{if(!o)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(wt(1),Nt(i)).toPromise()}decodeBase64(i){return atob(i)}};e.\u0275fac=function(r){return new(r||e)(R(Gd))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})(),m4=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,!i.isEnabled){this.versionUpdates=ic,this.unrecoverable=ic;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Df));let i=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:i},i)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Df));let i=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:i},i)}};e.\u0275fac=function(r){return new(r||e)(R(Gd))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let t=e;return t})();var u4=new q("");function Nte(t,e,n,i){return()=>{if(!(Yl(i)&&"serviceWorker"in navigator&&n.enabled!==!1))return;let r=t.get(ee),o=t.get(Cn);r.runOutsideAngular(()=>{let a=navigator.serviceWorker,c=()=>a.controller?.postMessage({action:"INITIALIZE"});a.addEventListener("controllerchange",c),o.onDestroy(()=>{a.removeEventListener("controllerchange",c)})});let s;if(typeof n.registrationStrategy=="function")s=n.registrationStrategy();else{let[a,...c]=(n.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":s=we(null);break;case"registerWithDelay":s=h4(+c[0]||0);break;case"registerWhenStable":s=c[0]?yt(f4(t),h4(+c[0])):f4(t);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}r.runOutsideAngular(()=>s.pipe(wt(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:n.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function h4(t){return we(null).pipe(na(t))}function f4(t){return t.get(Cn).isStable.pipe(We(n=>n))}function Fte(t,e){return new Gd(Yl(e)&&t.enabled!==!1?navigator.serviceWorker:void 0)}var xf=class{};function Pte(t,e={}){return Ll([p4,m4,{provide:u4,useValue:t},{provide:xf,useValue:e},{provide:Gd,useFactory:Fte,deps:[xf,sn]},{provide:Wl,useFactory:Nte,deps:[Je,u4,xf,sn],multi:!0}])}var g4=(()=>{let e=class e{static register(i,r={}){return{ngModule:e,providers:[Pte(i,r)]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=be({providers:[p4,m4]});let t=e;return t})();var Lte="https://accounts.google.com/gsi/client",Yd=(()=>{class t{gsiLoadedSource=new bi(1);constructor(){let n=document.createElement("script");n.src=Lte,n.type="text/javascript",n.onload=()=>{this.gsiLoadedSource.next(!0),this.gsiLoadedSource.complete()},document.getElementsByTagName("head")[0].appendChild(n)}onLoad(){return this.gsiLoadedSource}static \u0275fac=function(i){return new(i||t)};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var b4="credential",mv=(()=>{class t{gsiLoader;authenticated=new bi(1);constructor(n,i){this.gsiLoader=i,this.gsiLoader.onLoad().subscribe(()=>{google.accounts.id.initialize({client_id:n.client_id,auto_select:!0,callback:o=>{localStorage.setItem(b4,o.credential),this.authenticated.next(o.credential),this.authenticated.complete()}});let r=localStorage.getItem(b4);this.isValid(r)?(console.log("using stored credential"),this.authenticated.next(r),this.authenticated.complete()):google.accounts.id.prompt(o=>{})})}isValid(n){if(!n)return!1;let{exp:i}=JSON.parse(atob(n.split(".")[1]));return new Date().getTime(){class t{gsiLoader;signIn;client;clientLoaded=new bi(1);gapiLoaded=new bi(1);constructor(n,i,r){this.gsiLoader=i,this.signIn=r,this.loadGapi(),tc([this.onLoad(),this.gsiLoader.onLoad(),this.signIn.onSignedIn()]).subscribe(([o,s,a])=>{this.client=google.accounts.oauth2.initTokenClient({client_id:n.client_id,login_hint:this.extractEmail(a),scope:n.scope,callback:()=>{},prompt:n.prompt||""}),this.clientLoaded.next(this.client),this.clientLoaded.complete()})}onClientLoaded(){return this.clientLoaded}onLoad(){return this.gapiLoaded}loadGapi(){let n=document.createElement("script");n.src=Bte,n.type="text/javascript",n.onload=()=>{gapi.load("client",()=>{gapi.client.init({}).then(()=>{this.gapiLoaded.next(!0),this.gapiLoaded.complete()})})},document.getElementsByTagName("head")[0].appendChild(n)}extractEmail(n){let{email:i,sub:r}=JSON.parse(atob(n.split(".")[1]));return i}static \u0275fac=function(i){return new(i||t)(R(Ef),R(Yd),R(mv))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var gv="accessToken",zD="accessTokenRefresh",Kd=(()=>{class t{googleApiLoader;accessToken;tokenClient;accessTokenSource=new bi(1);constructor(n){this.googleApiLoader=n,this.googleApiLoader.onClientLoaded().subscribe(i=>this.checkStoredAccessToken(i))}checkStoredAccessToken(n){this.tokenClient=n;let i=localStorage.getItem(gv);i&&(this.isTokenValid()?(console.log("reusing stored access token"),this.accessToken||(this.accessToken=i,gapi.client.setToken({access_token:this.accessToken}),this.accessTokenSource.next(this.accessToken))):this.fetchAccessToken())}isTokenValid(){let n=localStorage.getItem(gv),i=parseInt(localStorage.getItem(zD)),r=new Date().getTime();return n&&r{this.isTokenValid()?n(this.accessToken):this.googleApiLoader.onClientLoaded().subscribe(i=>{this.tokenClient=i,i.callback=r=>{n(this.handleAccessToken(r))},i.requestAccessToken()})})})}handleAccessToken(n){this.accessToken=n.access_token;let i=n.expires_in*800;return localStorage.setItem(gv,this.accessToken),localStorage.setItem(zD,(new Date().getTime()+i).toString()),this.accessTokenSource.next(this.accessToken),this.accessToken}invalidate(){this.accessToken&&this.tokenClient&&(localStorage.removeItem(gv),localStorage.removeItem(zD),this.accessToken="",this.accessTokenSource.next(this.accessToken))}static \u0275fac=function(i){return new(i||t)(R(Qd))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var Nn=(()=>{class t{accessTokenService;signedIn;signInPending;get authState(){return this.accessTokenService.accessTokenSource}constructor(n){this.accessTokenService=n,this.authState.subscribe(i=>{this.signedIn=!!i,this.signInPending=!1})}signIn(){this.signInPending=!0,this.accessTokenService.fetchAccessToken()}refresh(){return this.accessTokenService.fetchAccessToken()}signOut(){this.accessTokenService.invalidate()}isSignedIn(){return this.signedIn}isSignInPending(){return this.signInPending}static \u0275fac=function(i){return new(i||t)(R(Kd))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var y4=(()=>{class t{static forRoot(n){return{ngModule:t,providers:[n,Kd,Qd,Nn,mv,Yd]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=_e({type:t});static \u0275inj=be({imports:[Wi]})}return t})();var vv={production:!0};var n9=Pr(Gs());var Ys=class{tuneBook;descriptor;abc;constructor(e,n,i){this.tuneBook=e,this.descriptor=n,this.abc=i}};var ZL=Pr(Gs());var Zv=(()=>{class t{httpClient;constructor(n){this.httpClient=n}loadTuneBook(n){return Re(this,null,function*(){let i=yield this.httpClient.get(`assets/${n.uri}`,{responseType:"text"}).toPromise(),r=new ZL.TuneBook(i);return new Ys(r,n,i)})}loadTuneBookCollection(){return Re(this,null,function*(){return this.httpClient.get("assets/tunebook-collection.json").toPromise()})}static \u0275fac=function(i){return new(i||t)(R(Ss))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var t9=Pr(Gs());var JL=Pr(bc());var Jv=class{boundary;mimeType;parts;body;constructor(){this.boundary=Math.random().toString(36).slice(2),this.mimeType='multipart/related; boundary="'+this.boundary+'"',this.parts=[]}append(e,n){if(this.body!==void 0)throw new Error("Builder has already been finalized.");return this.parts.push(`\r --`,this.boundary,`\r `,"Content-Type: ",e,`\r \r `,n),this}finish(){if(this.parts.length===0)throw new Error("No parts have been added.");return this.body===void 0&&(this.parts.push(`\r ---`,this.boundary,"--"),this.body=this.parts.join("")),{type:this.mimeType,body:this.body}}};var Vle="Tune Browser",Or=(()=>{class t{googleApiLoader;googleAuth;driveApiLoaded=new bi(1);log=(0,JL.getLogger)("GoogleDriveService");signedIn;constructor(n,i){this.googleApiLoader=n,this.googleAuth=i,this.googleAuth.authState.subscribe(r=>{this.signedIn=!!r}),this.googleApiLoader.onClientLoaded().subscribe(r=>{gapi.client.load("drive","v3").then(()=>{this.log.info("Google Drive client initialized"),this.driveApiLoaded.next(!0),this.driveApiLoaded.complete()})})}isSignedIn(){return Re(this,null,function*(){return!this.signedIn&&!this.googleAuth.isSignInPending()?!1:this.googleAuth.refresh().then(()=>!0)})}createTextFile(n,i){return Re(this,null,function*(){if(yield this.isSignedIn())try{let r=yield this.findOrCreateFolder(Vle),o={name:n,mimeType:"text/plain",parents:[r]},s=new Jv().append("application/json",JSON.stringify(o)).append("text/plain",i).finish(),a=yield gapi.client.request({path:"/upload/drive/v3/files",method:"POST",params:{uploadType:"multipart"},headers:{"Content-Type":s.type},body:s.body});return this.log.info("Created file with id = {}",a.result.id),a.result.id}catch(r){return this.log.error("Error creating file",r),null}})}updateTextFile(n,i){return Re(this,null,function*(){if(yield this.isSignedIn()){try{let r=yield gapi.client.request({path:"/upload/drive/v3/files/"+n,method:"PATCH",params:{uploadType:"media"},headers:{"Content-Type":"text/plain"},body:i});if(r.status===200)return this.log.info("Updated file with id = {}",r.result.id),r.result.id}catch(r){this.log.error("Error updating file",r)}return null}})}getTextFile(n){return Re(this,null,function*(){return(yield gapi.client.drive.files.get({fileId:n,alt:"media"})).body})}listTextFiles(n){return Re(this,null,function*(){return(yield this.isSignedIn())?(yield gapi.client.drive.files.list({q:`'${n}' in parents`,pageSize:100})).result.files.map(r=>this.toRef(r)):[]})}toRef(n){return{id:n.id,name:n.name}}createFolder(n){return Re(this,null,function*(){let i=yield gapi.client.drive.files.create({resource:{name:n,mimeType:"application/vnd.google-apps.folder"}});return this.log.info(`Created folder ${n} with id = ${i.result.id}`),i.result.id})}findOrCreateFolder(n){return Re(this,null,function*(){if(!(yield this.isSignedIn()))return;let r=(yield gapi.client.drive.files.list({q:`name = "${n}" and "root" in parents`})).result.files;return r.length===1?r[0].id:this.createFolder(n)})}static \u0275fac=function(i){return new(i||t)(R(Qd),R(Nn))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var Ble="Tune Browser",e9="tunebook-collection.json",eb=(()=>{class t{googleDrive;collectionFileId;constructor(n){this.googleDrive=n}loadTuneBook(n){return Re(this,null,function*(){let i=yield this.googleDrive.getTextFile(n.uri),r=new t9.TuneBook(i);return new Ys(r,n,i)})}loadTuneBookCollection(){return Re(this,null,function*(){let n=yield this.googleDrive.findOrCreateFolder(Ble);if(!n)return{books:[]};let r=(yield this.googleDrive.listTextFiles(n)).find(s=>s.name===e9),o;return r===void 0?(o='{"books": []}',this.collectionFileId=yield this.googleDrive.createTextFile(e9,o)):(this.collectionFileId=r.id,o=yield this.googleDrive.getTextFile(r.id)),JSON.parse(o)})}updateTuneBookCollection(n){return Re(this,null,function*(){return this.googleDrive.updateTextFile(this.collectionFileId,JSON.stringify(n))})}static \u0275fac=function(i){return new(i||t)(R(Or))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var i9=Pr(bc());var tb=class{id;pos;book;title;titleNormalized;rhythm;key;tags;constructor(e,n,i,r,o,s,a,c){this.id=e,this.pos=n,this.book=i,this.title=r,this.titleNormalized=o,this.rhythm=s,this.key=a,this.tags=c}hasTag(e){return this.tags&&this.tags.indexOf(e)>=0}};var Ri=(()=>{class t{logger=(0,i9.getLogger)("TuneBookIndex");idToBookMap=new Map;entries=[];tuneBookReadySource=new K;allReadySource=new Vt(!1);tuneBookReady=this.tuneBookReadySource.asObservable();allReady=this.allReadySource.asObservable();defaultBook="learner";isReady(){return this.entries.length>0}fireAllReady(){this.allReadySource.next(!0)}addTuneBook(n){this.idToBookMap.set(n.descriptor.id,n),n.tuneBook.tunes.forEach((i,r)=>{this.entries.push(this.createEntry(i,r,n))}),this.tuneBookReadySource.next(n.descriptor.id)}updateTuneBook(n){this.deleteTuneBook(n),this.addTuneBook(n)}deleteTuneBook(n){this.idToBookMap.delete(n.descriptor.id),this.entries=this.entries.filter(i=>i.book!==n.descriptor.id)}createEntry(n,i,r){let o=this.findTuneDescriptor(n.id,r.descriptor),s=o&&o.tags,a=o&&o.rhythm,c=o&&o.key;return new tb(n.id,i,r.descriptor.id,n.title,this.normalize(n.title),a,c,s)}findTuneDescriptor(n,i){if(i.tunes!==void 0)return i.tunes.find(r=>r.id===n)}normalize(n){return n&&n.trim().toLocaleLowerCase()}findTunes(n){let i=n.title&&n.title.trim();if(this.startsWithDigit(i))return Array.from(this.idToBookMap.values()).filter(o=>n.matchesRef(o)).map(o=>this.findEntryById(o,i)).filter(o=>o!==void 0);{let r=this.normalize(i);return this.entries.filter(o=>this.matchesEntry(n,r,o))}}findEntryById(n,i){return this.entries.find(r=>r.book===n.descriptor.id&&r.id===i)}findEntryByTuneReference(n){return this.entries.find(i=>i.book===n.bookId&&i.id===n.tuneId)}setTagsForTune(n,i,r){let o=this.getBookById(i),s=this.findEntryById(o,n);if(!o||!s){this.logger.error(`Index entry not found for ${i}/${n}`);return}s.tags=r}matchesEntry(n,i,r){return!n.matchesName(r.book)||n.rhythm&&r.rhythm!==n.rhythm||n.key&&r.key!==n.key||n.tags&&!n.tags.find(o=>r.hasTag(o))?!1:!n.title||r.titleNormalized.includes(i)}getAbc(n){return this.idToBookMap.get(n.book).tuneBook.getTuneById(n.id).abc}findAllTunesInBook(n){return this.idToBookMap.get(n)?.tuneBook.tunes}getBooks(){return Array.from(this.idToBookMap.values())}getBook(n){return this.idToBookMap.get(n.book)}getBookById(n){return this.idToBookMap.get(n)}startsWithDigit(n){if(!n)return!1;let i=n.charAt(0);return"0"<=i&&i<="9"}static \u0275fac=function(i){return new(i||t)};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var Nr=(()=>{class t{websiteLoader;driveLoader;index;loaders;collection={books:[]};loadedBookIds=[];collectionLoadedSource=new bi(1);collectionLoaded;constructor(n,i,r){this.websiteLoader=n,this.driveLoader=i,this.index=r,this.loaders=[this.websiteLoader,this.driveLoader],this.collectionLoaded=this.collectionLoadedSource.asObservable()}loadCollections(){this.collection.books=[],this.loaders.forEach(n=>this.loadCollection(n))}getBooks(){return this.collection.books.map(n=>new Ys(null,n,""))}addBook(n){return Re(this,null,function*(){this.collection.books.push(n);let i=new Ys(new n9.TuneBook(""),n,"");this.index.addTuneBook(i);let r=yield this.driveLoader.updateTuneBookCollection(this.extractUserCollection(this.collection));return this.collectionLoadedSource.next(""),r})}removeBook(n){return Re(this,null,function*(){this.collection.books.forEach((r,o)=>{r.id===n&&this.collection.books.splice(o,1)});let i=yield this.driveLoader.updateTuneBookCollection(this.extractUserCollection(this.collection));return this.collectionLoadedSource.next(""),i})}setTagsForTune(n,i,r){return Re(this,null,function*(){let o=this.collection.books.find(c=>c.id===i);o.tunes===void 0&&(o.tunes=[]);let s=o.tunes.find(c=>c.id===n);s===void 0?o.tunes.push({id:n,tags:r}):s.tags=r,this.index.setTagsForTune(n,i,r);let a=yield this.driveLoader.updateTuneBookCollection(this.extractUserCollection(this.collection));return this.collectionLoadedSource.next(""),a})}extractUserCollection(n){let i={books:[]};for(let r of n.books)if(r.storage==="googledrive")i.books.push(r);else{let o=this.extractTaggedTunes(r);i.books.push(o)}return i}extractTaggedTunes(n){let i={id:n.id,storage:n.storage,uri:n.uri,name:n.name,description:n.description,tunes:[]};for(let r of n.tunes)if(r.tags){let o={id:r.id,tags:r.tags};i.tunes.push(o)}return i}loadCollection(n){return Re(this,null,function*(){let i=yield n.loadTuneBookCollection();this.loadAndMergeCollections(this.collection,i),this.collectionLoadedSource.next("")})}loadAndMergeCollections(n,i){i.books.forEach(r=>{let o=this.mergeBooks(n.books,r);this.loadBook(o)})}mergeCollections(n,i){i.books.forEach(r=>this.mergeBooks(n.books,r))}mergeBooks(n,i){let r=n.find(o=>o.id===i.id);return r===void 0?(n.push(i),i):(i.tunes&&(r.tunes===void 0?r.tunes=i.tunes:this.mergeTunes(r.tunes,i.tunes)),r)}mergeTunes(n,i){i.forEach(r=>{let o=n.find(s=>s.id===r.id);o===void 0?n.push(r):this.mergeTune(o,r)})}mergeTune(n,i){if(n.key===void 0&&(n.key=i.key),n.rhythm===void 0&&(n.rhythm=i.rhythm),n.tags===void 0)n.tags=i.tags;else if(i.tags){let r=new Set(n.tags);i.tags.forEach(o=>r.add(o)),n.tags=Array.from(r.keys())}}addTagsToIndex(){for(let n of this.collection.books)if(n.tunes)for(let i of n.tunes)i.tags&&this.index.setTagsForTune(i.id,n.id,i.tags);this.index.fireAllReady()}loadBook(n){return Re(this,null,function*(){if(this.loadedBookIds.indexOf(n.id)>=0)return;let r=yield this.selectLoader(n).loadTuneBook(n);return this.loadedBookIds.push(n.id),this.index.addTuneBook(r),this.loadedBookIds.length===this.collection.books.length&&this.addTagsToIndex(),r})}selectLoader(n){return n.storage==="googledrive"?this.driveLoader:this.websiteLoader}static \u0275fac=function(i){return new(i||t)(R(Zv),R(eb),R(Ri))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var Hle=["snav"];function zle(t,e){if(t&1){let n=st();D(0,"button",18),le("click",function(){Se(n),se(2);let r=Pi(3);return Ie(r.toggle())}),D(1,"mat-icon"),z(2,"menu"),I()()}}function Ule(t,e){if(t&1&&(D(0,"mat-toolbar",15),ve(1,zle,3,0,"button",16),D(2,"h1",17),z(3,"Tune Browser"),I()()),t&2){let n=se();A(),ie("ngIf",n.isHandset)}}function qle(t,e){if(t&1){let n=st();D(0,"a",19),le("click",function(){Se(n);let r=se();return Ie(r.onClick())}),D(1,"mat-icon"),z(2,"music_note"),I(),D(3,"span",5),z(4,"Practice"),I()()}}function $le(t,e){if(t&1){let n=st();D(0,"a",20),le("click",function(){Se(n);let r=se();return Ie(r.onClick())}),D(1,"mat-icon"),z(2,"work"),I(),D(3,"span",5),z(4,"Repertoire"),I()()}}function Wle(t,e){if(t&1){let n=st();D(0,"a",21),le("click",function(){Se(n);let r=se();return Ie(r.onClick())}),D(1,"mat-icon"),z(2,"exit_to_app"),I(),D(3,"span",5),z(4,"Log in"),I()()}}function Gle(t,e){if(t&1){let n=st();D(0,"a",22),le("click",function(){Se(n);let r=se();return Ie(r.onClick())}),D(1,"mat-icon"),z(2,"cancel"),I(),D(3,"span",5),z(4,"Log out"),I()()}}var r9=(()=>{class t{breakpointObserver;collectionService;accessTokenService;googleDriveService;zone;scroll;sidenav;signedIn;isHandset=!1;toolbarVisible=!0;lastOffset;constructor(n,i,r,o,s,a){this.breakpointObserver=n,this.collectionService=i,this.accessTokenService=r,this.googleDriveService=o,this.zone=s,this.scroll=a,this.breakpointObserver.observe([nd.Handset]).subscribe(c=>{this.isHandset=c.matches}),this.scroll.scrolled().subscribe(c=>{this.zone.run(()=>this.onWindowScroll(c))}),this.googleDriveService.driveApiLoaded.subscribe(c=>{this.accessTokenService.accessTokenSource.subscribe(l=>{this.zone.run(()=>{this.signedIn=!!l,this.collectionService.loadCollections()})})})}sidenavMode(){return this.isHandset?"over":"side"}onClick(){this.isHandset&&this.sidenav.close()}ngOnInit(){return Re(this,null,function*(){this.collectionService.loadCollections()})}onWindowScroll(n){let i=n.getElementRef().nativeElement.scrollTop||0,r=this.toolbarVisible;this.lastOffset>i+10||i<10?r=!0:i>50&&(r=!1),this.lastOffset=i,this.toolbarVisible=!this.isHandset||r}static \u0275fac=function(i){return new(i||t)(g(Da),g(Nr),g(Kd),g(Or),g(ee),g(to))};static \u0275cmp=re({type:t,selectors:[["app-root"]],viewQuery:function(i,r){if(i&1&&ze(Hle,5),i&2){let o;pe(o=me())&&(r.sidenav=o.first)}},decls:33,vars:7,consts:[["snav",""],["color","primary",4,"ngIf"],[1,"full-height"],[3,"mode","opened"],["mat-list-item","","routerLink","/search",3,"click"],[1,"nav-caption"],["mat-list-item","","routerLink","/record",3,"click"],["mat-list-item","","routerLink","/books",3,"click"],["mat-list-item","","routerLink","/practice",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/repertoire",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/login",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/logout",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/about",3,"click"],["cdkScrollable",""],[1,"main-content"],["color","primary"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"irish"],["mat-icon-button","",3,"click"],["mat-list-item","","routerLink","/practice",3,"click"],["mat-list-item","","routerLink","/repertoire",3,"click"],["mat-list-item","","routerLink","/login",3,"click"],["mat-list-item","","routerLink","/logout",3,"click"]],template:function(i,r){if(i&1){let o=st();ve(0,Ule,4,1,"mat-toolbar",1),D(1,"mat-sidenav-container",2)(2,"mat-sidenav",3,0)(4,"mat-nav-list")(5,"a",4),le("click",function(){return Se(o),Ie(r.onClick())}),D(6,"mat-icon"),z(7,"search"),I(),D(8,"span",5),z(9,"Search"),I()(),D(10,"a",6),le("click",function(){return Se(o),Ie(r.onClick())}),D(11,"mat-icon"),z(12,"mic"),I(),D(13,"span",5),z(14,"Recognize"),I()(),D(15,"a",7),le("click",function(){return Se(o),Ie(r.onClick())}),D(16,"mat-icon"),z(17,"list"),I(),D(18,"span",5),z(19,"Browse"),I()(),ve(20,qle,5,0,"a",8)(21,$le,5,0,"a",9)(22,Wle,5,0,"a",10)(23,Gle,5,0,"a",11),D(24,"a",12),le("click",function(){return Se(o),Ie(r.onClick())}),D(25,"mat-icon"),z(26,"info"),I(),D(27,"span",5),z(28,"About"),I()()()(),D(29,"mat-sidenav-content",13)(30,"div")(31,"div",14),xe(32,"router-outlet"),I()()()()}i&2&&(ie("ngIf",r.toolbarVisible),A(2),ie("mode",r.sidenavMode())("opened",!r.isHandset),A(18),ie("ngIf",r.signedIn),A(),ie("ngIf",r.signedIn),A(),ie("ngIf",!r.signedIn),A(),ie("ngIf",r.signedIn))},dependencies:[jo,Wn,Ns,Go,ZR,Yo,hx,fx,yg,UO,ND,xr]})}return t})();var o9=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=re({type:t,selectors:[["app-about"]],decls:61,vars:0,consts:[[1,"mat-body"],[1,"mat-h2"],[1,"mat-h3"],["href","https://tunepal.org"],["href","https://thesession.org"]],template:function(i,r){i&1&&(D(0,"div",0)(1,"h2",1),z(2,"About Tune Browser"),I(),D(3,"h3",2),z(4,"Release"),I(),D(5,"p"),z(6,"Version: 0.33.1 (2024-08-10)"),I(),D(7,"h3",2),z(8,"Features"),I(),D(9,"ul")(10,"li"),z(11,"Browse tune books in ABC notation"),I(),D(12,"li"),z(13,"Create PDF files of tunes or books for printing"),I(),D(14,"li"),z(15,"Create and edit your own tune books on Google Drive"),I(),D(16,"li"),z(17,"Add tags to tunes (requires Google Drive)"),I(),D(18,"li"),z(19,"Find tunes by title or number, key, rhythm, books or tags"),I(),D(20,"li"),z(21,"Play tunes and adjust tempo"),I(),D(22,"li"),z(23,"Create repertoires and get practice assignments (requires Google Drive)"),I(),D(24,"li"),z(25,"Record audio samples and recognize tunes from thesession.org"),I()(),D(26,"h3",2),z(27,"Getting started"),I(),D(28,"p"),z(29," Tune Browser is a web application which should work in any modern web browser, including mobile browsers on smartphones or tablets. "),I(),D(30,"p"),z(31," On mobile devices, you can create a shortcut on your home screen which makes Tune Browser work in full screen mode, almost like a native app, without requiring installation from Play Store or App Store. "),I(),D(32,"p"),z(33," If you have a Google account, you can create and edit your own tune books and store them on Google Drive. Before you can do so, you will have to log in to your Google account from Tune Browser. The login dialogue uses a separate browser window which directly communicates with Google. Tune Browser will create a folder "),D(34,"code"),z(35,"Tune Browser"),I(),z(36," containing your tune books. "),I(),D(37,"h3",2),z(38,"Practicing"),I(),D(39,"p"),z(40," With a Google account, you can create one or more repertoires (e.g. for different instruments) with tunes from existing books and generate daily practice assignments. "),I(),D(41,"p"),z(42," For each tune in a given repertoire, Tune Browser records the date you last practiced the tune and the date you added it. Based on this information, new tunes will be included in your assignment every day for the first week, and then in longer intervals in the following weeks. Older tunes will be rescheduled once a month. Some randomness gets applied to avoid repetitive assignments. "),I(),D(43,"h3",2),z(44,"Recognize tunes"),I(),D(45,"p"),z(46," You can record audio snippets and recognize tunes based on Bryan Duggan's MATT2 matching algorithm as published in "),D(47,"a",3),z(48,"tunepal.org"),I(),z(49,". "),I(),D(50,"p"),z(51," Tune Browser matches your audio against the tune corpus of "),D(52,"a",4),z(53,"thesession.org"),I(),z(54,". The best matches are listed by confidence level and are linked to the corresponding pages on thesession.org. "),I(),D(55,"h3",2),z(56,"Privacy"),I(),D(57,"p"),z(58,"Tune Browser does not collect any personal data from its users."),I(),D(59,"p"),z(60," Tune Browser is hosted on GitHub Pages and on Google Cloud Run. It optionally uses Google Drive for storing your tune books. If you are worried about privacy, please review the terms of service of these providers. Tune Browser has no influence on user tracking performed by these services. "),I()())},encapsulation:2})}return t})();var Yle="Tune Browser",s9="repertoire-collection.json",nb=[1,1,1,1,1,1,2,2,2,3,3,6,6,15];function Qle(t,e){if(t==="added"||t==="due"||t==="lastPracticed")return new Date(e);if(t==="items")return e.map(n=>new ib(n.tune,n.added,n.timesPracticed,n.lastPracticed));if(t==="instrument"){this.name=e;return}return e}function Kle(t,e){if(t!=="due")return e}var ib=class{tune;added;timesPracticed;lastPracticed;due;constructor(e,n,i,r){this.tune=e,this.added=n,this.timesPracticed=i,this.lastPracticed=r}practicedOn(e){this.lastPracticed=e,this.timesPracticed++}referencedBy(e){return e?this.tune.bookId===e.bookId&&this.tune.tuneId===e.tuneId:!1}},rs=(()=>{class t{googleDrive;collectionFileId;currentAssignment;repertoireCollection;constructor(n){this.googleDrive=n}load(){return Re(this,null,function*(){if(!(yield this.googleDrive.isSignedIn()))return{repertoires:[]};if(this.repertoireCollection)return this.repertoireCollection;let n=yield this.googleDrive.findOrCreateFolder(Yle),r=(yield this.googleDrive.listTextFiles(n)).find(s=>s.name===s9),o;return r===void 0?(o='{"repertoires": []}',this.collectionFileId=yield this.googleDrive.createTextFile(s9,o)):(this.collectionFileId=r.id,o=yield this.googleDrive.getTextFile(r.id)),this.repertoireCollection=JSON.parse(o,Qle),this.repertoireCollection})}saveCollection(n){return Re(this,null,function*(){return this.googleDrive.updateTextFile(this.collectionFileId,JSON.stringify(n,Kle))})}save(){return Re(this,null,function*(){return this.repertoireCollection?this.saveCollection(this.repertoireCollection):null})}addRepertoireItem(n,i){return Re(this,null,function*(){let r=yield this.load(),o=yield this.findRepertoire(i.name);o===void 0&&(o={name:i.name,maxAge:30,numTunesPerAssignment:10,items:[]},r.repertoires.push(o),r.current=i.name);let s=o.items.find(a=>a.referencedBy(n));return s?s.added=i.added:o.items.push(new ib(n,i.added,0)),this.saveCollection(r)})}deleteRepertoireItem(n,i){return Re(this,null,function*(){let r=yield this.load(),o=yield this.findRepertoire(i);if(o!==void 0){let s=o.items.findIndex(a=>a.referencedBy(n));if(s>=0)return o.items.splice(s,1),this.saveCollection(r)}return""})}findRepertoire(n){return Re(this,null,function*(){let i=yield this.load();return n||(n=i.current),n?i.repertoires.find(r=>r.name===n):i.repertoires[0]})}deleteRepertoire(n){return Re(this,null,function*(){let i=yield this.load(),r=i.repertoires.findIndex(o=>o.name===n);return r==-1?"":(i.repertoires.splice(r,1),this.saveCollection(i))})}static \u0275fac=function(i){return new(i||t)(R(Or))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();function Xle(t,e){if(t&1&&(D(0,"mat-option",11),z(1),I()),t&2){let n=e.$implicit;ie("value",n.name),A(),Tt(" ",n.name," ")}}var a9=(()=>{class t{dialogRef;repertoireRepository;added=new Sc(new Date);repertoire=new Sc;repertoireCollection;constructor(n,i){this.dialogRef=n,this.repertoireRepository=i}ngOnInit(){return Re(this,null,function*(){this.repertoireCollection=yield this.repertoireRepository.load()})}onNoClick(){this.dialogRef.close(void 0)}repertoires(){return this.repertoireCollection===void 0?[]:this.repertoireCollection.repertoires}repertoireName(n){return n.name}selection(){return{name:this.repertoire.value,added:this.added.value}}static \u0275fac=function(i){return new(i||t)(g(oo),g(rs))};static \u0275cmp=re({type:t,selectors:[["app-add-to-repertoire"]],decls:20,vars:7,consts:[["auto","matAutocomplete"],["myDatepicker",""],["mat-dialog-title",""],["mat-dialog-content","",1,"form-container"],["type","text","matInput","",3,"formControl","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","added","placeholder","Added on",3,"matDatepicker","formControl"],["matSuffix","",3,"for"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close"],[3,"value"]],template:function(i,r){if(i&1){let o=st();D(0,"h1",2),z(1,"Add to repertoire"),I(),D(2,"div",3)(3,"mat-form-field")(4,"mat-label"),z(5,"Repertoire"),I(),xe(6,"input",4),I(),D(7,"mat-autocomplete",null,0),ve(9,Xle,2,2,"mat-option",5),I(),D(10,"mat-form-field"),xe(11,"input",6)(12,"mat-datepicker",null,1)(14,"mat-datepicker-toggle",7),I()(),D(15,"div",8)(16,"button",9),le("click",function(){return Se(o),Ie(r.onNoClick())}),z(17,"Cancel"),I(),D(18,"button",10),z(19,"Ok"),I()()}if(i&2){let o=Pi(8),s=Pi(13);A(6),ie("formControl",r.repertoire)("matAutocomplete",o),A(3),ie("ngForOf",r.repertoires()),A(2),ie("matDatepicker",s)("formControl",r.added),A(3),ie("for",s),A(4),ie("mat-dialog-close",r.selection())}},dependencies:[xn,Gi,kn,$3,qo,$C,ei,bR,ug,ix,fg,Dd,Sd,Ed,Rn,Wo,z3,On,_h],encapsulation:2})}return t})();var Zle=` +--`,this.boundary,"--"),this.body=this.parts.join("")),{type:this.mimeType,body:this.body}}};var Vle="Tune Browser",Or=(()=>{class t{googleApiLoader;googleAuth;driveApiLoaded=new bi(1);log=(0,JL.getLogger)("GoogleDriveService");signedIn;constructor(n,i){this.googleApiLoader=n,this.googleAuth=i,this.googleAuth.authState.subscribe(r=>{this.signedIn=!!r}),this.googleApiLoader.onClientLoaded().subscribe(r=>{gapi.client.load("drive","v3").then(()=>{this.log.info("Google Drive client initialized"),this.driveApiLoaded.next(!0),this.driveApiLoaded.complete()})})}isSignedIn(){return Re(this,null,function*(){return!this.signedIn&&!this.googleAuth.isSignInPending()?!1:this.googleAuth.refresh().then(()=>!0)})}createTextFile(n,i){return Re(this,null,function*(){if(yield this.isSignedIn())try{let r=yield this.findOrCreateFolder(Vle),o={name:n,mimeType:"text/plain",parents:[r]},s=new Jv().append("application/json",JSON.stringify(o)).append("text/plain",i).finish(),a=yield gapi.client.request({path:"/upload/drive/v3/files",method:"POST",params:{uploadType:"multipart"},headers:{"Content-Type":s.type},body:s.body});return this.log.info("Created file with id = {}",a.result.id),a.result.id}catch(r){return this.log.error("Error creating file",r),null}})}updateTextFile(n,i){return Re(this,null,function*(){if(yield this.isSignedIn()){try{let r=yield gapi.client.request({path:"/upload/drive/v3/files/"+n,method:"PATCH",params:{uploadType:"media"},headers:{"Content-Type":"text/plain"},body:i});if(r.status===200)return this.log.info("Updated file with id = {}",r.result.id),r.result.id}catch(r){this.log.error("Error updating file",r)}return null}})}getTextFile(n){return Re(this,null,function*(){return(yield gapi.client.drive.files.get({fileId:n,alt:"media"})).body})}listTextFiles(n){return Re(this,null,function*(){return(yield this.isSignedIn())?(yield gapi.client.drive.files.list({q:`'${n}' in parents`,pageSize:100})).result.files.map(r=>this.toRef(r)):[]})}toRef(n){return{id:n.id,name:n.name}}createFolder(n){return Re(this,null,function*(){let i=yield gapi.client.drive.files.create({resource:{name:n,mimeType:"application/vnd.google-apps.folder"}});return this.log.info(`Created folder ${n} with id = ${i.result.id}`),i.result.id})}findOrCreateFolder(n){return Re(this,null,function*(){if(!(yield this.isSignedIn()))return;let r=(yield gapi.client.drive.files.list({q:`name = "${n}" and "root" in parents`})).result.files;return r.length===1?r[0].id:this.createFolder(n)})}static \u0275fac=function(i){return new(i||t)(R(Qd),R(Nn))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var Ble="Tune Browser",e9="tunebook-collection.json",eb=(()=>{class t{googleDrive;collectionFileId;constructor(n){this.googleDrive=n}loadTuneBook(n){return Re(this,null,function*(){let i=yield this.googleDrive.getTextFile(n.uri),r=new t9.TuneBook(i);return new Ys(r,n,i)})}loadTuneBookCollection(){return Re(this,null,function*(){let n=yield this.googleDrive.findOrCreateFolder(Ble);if(!n)return{books:[]};let r=(yield this.googleDrive.listTextFiles(n)).find(s=>s.name===e9),o;return r===void 0?(o='{"books": []}',this.collectionFileId=yield this.googleDrive.createTextFile(e9,o)):(this.collectionFileId=r.id,o=yield this.googleDrive.getTextFile(r.id)),JSON.parse(o)})}updateTuneBookCollection(n){return Re(this,null,function*(){return this.googleDrive.updateTextFile(this.collectionFileId,JSON.stringify(n))})}static \u0275fac=function(i){return new(i||t)(R(Or))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var i9=Pr(bc());var tb=class{id;pos;book;title;titleNormalized;rhythm;key;tags;constructor(e,n,i,r,o,s,a,c){this.id=e,this.pos=n,this.book=i,this.title=r,this.titleNormalized=o,this.rhythm=s,this.key=a,this.tags=c}hasTag(e){return this.tags&&this.tags.indexOf(e)>=0}};var Ri=(()=>{class t{logger=(0,i9.getLogger)("TuneBookIndex");idToBookMap=new Map;entries=[];tuneBookReadySource=new K;allReadySource=new Lt(!1);tuneBookReady=this.tuneBookReadySource.asObservable();allReady=this.allReadySource.asObservable();defaultBook="learner";isReady(){return this.entries.length>0}fireAllReady(){this.allReadySource.next(!0)}addTuneBook(n){this.idToBookMap.set(n.descriptor.id,n),n.tuneBook.tunes.forEach((i,r)=>{this.entries.push(this.createEntry(i,r,n))}),this.tuneBookReadySource.next(n.descriptor.id)}updateTuneBook(n){this.deleteTuneBook(n),this.addTuneBook(n)}deleteTuneBook(n){this.idToBookMap.delete(n.descriptor.id),this.entries=this.entries.filter(i=>i.book!==n.descriptor.id)}createEntry(n,i,r){let o=this.findTuneDescriptor(n.id,r.descriptor),s=o&&o.tags,a=o&&o.rhythm,c=o&&o.key;return new tb(n.id,i,r.descriptor.id,n.title,this.normalize(n.title),a,c,s)}findTuneDescriptor(n,i){if(i.tunes!==void 0)return i.tunes.find(r=>r.id===n)}normalize(n){return n&&n.trim().toLocaleLowerCase()}findTunes(n){let i=n.title&&n.title.trim();if(this.startsWithDigit(i))return Array.from(this.idToBookMap.values()).filter(o=>n.matchesRef(o)).map(o=>this.findEntryById(o,i)).filter(o=>o!==void 0);{let r=this.normalize(i);return this.entries.filter(o=>this.matchesEntry(n,r,o))}}findEntryById(n,i){return this.entries.find(r=>r.book===n.descriptor.id&&r.id===i)}findEntryByTuneReference(n){return this.entries.find(i=>i.book===n.bookId&&i.id===n.tuneId)}setTagsForTune(n,i,r){let o=this.getBookById(i),s=this.findEntryById(o,n);if(!o||!s){this.logger.error(`Index entry not found for ${i}/${n}`);return}s.tags=r}matchesEntry(n,i,r){return!n.matchesName(r.book)||n.rhythm&&r.rhythm!==n.rhythm||n.key&&r.key!==n.key||n.tags&&!n.tags.find(o=>r.hasTag(o))?!1:!n.title||r.titleNormalized.includes(i)}getAbc(n){return this.idToBookMap.get(n.book).tuneBook.getTuneById(n.id).abc}findAllTunesInBook(n){return this.idToBookMap.get(n)?.tuneBook.tunes}getBooks(){return Array.from(this.idToBookMap.values())}getBook(n){return this.idToBookMap.get(n.book)}getBookById(n){return this.idToBookMap.get(n)}startsWithDigit(n){if(!n)return!1;let i=n.charAt(0);return"0"<=i&&i<="9"}static \u0275fac=function(i){return new(i||t)};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var Nr=(()=>{class t{websiteLoader;driveLoader;index;loaders;collection={books:[]};loadedBookIds=[];collectionLoadedSource=new bi(1);collectionLoaded;constructor(n,i,r){this.websiteLoader=n,this.driveLoader=i,this.index=r,this.loaders=[this.websiteLoader,this.driveLoader],this.collectionLoaded=this.collectionLoadedSource.asObservable()}loadCollections(){this.collection.books=[],this.loaders.forEach(n=>this.loadCollection(n))}getBooks(){return this.collection.books.map(n=>new Ys(null,n,""))}addBook(n){return Re(this,null,function*(){this.collection.books.push(n);let i=new Ys(new n9.TuneBook(""),n,"");this.index.addTuneBook(i);let r=yield this.driveLoader.updateTuneBookCollection(this.extractUserCollection(this.collection));return this.collectionLoadedSource.next(""),r})}removeBook(n){return Re(this,null,function*(){this.collection.books.forEach((r,o)=>{r.id===n&&this.collection.books.splice(o,1)});let i=yield this.driveLoader.updateTuneBookCollection(this.extractUserCollection(this.collection));return this.collectionLoadedSource.next(""),i})}setTagsForTune(n,i,r){return Re(this,null,function*(){let o=this.collection.books.find(c=>c.id===i);o.tunes===void 0&&(o.tunes=[]);let s=o.tunes.find(c=>c.id===n);s===void 0?o.tunes.push({id:n,tags:r}):s.tags=r,this.index.setTagsForTune(n,i,r);let a=yield this.driveLoader.updateTuneBookCollection(this.extractUserCollection(this.collection));return this.collectionLoadedSource.next(""),a})}extractUserCollection(n){let i={books:[]};for(let r of n.books)if(r.storage==="googledrive")i.books.push(r);else{let o=this.extractTaggedTunes(r);i.books.push(o)}return i}extractTaggedTunes(n){let i={id:n.id,storage:n.storage,uri:n.uri,name:n.name,description:n.description,tunes:[]};for(let r of n.tunes)if(r.tags){let o={id:r.id,tags:r.tags};i.tunes.push(o)}return i}loadCollection(n){return Re(this,null,function*(){let i=yield n.loadTuneBookCollection();this.loadAndMergeCollections(this.collection,i),this.collectionLoadedSource.next("")})}loadAndMergeCollections(n,i){i.books.forEach(r=>{let o=this.mergeBooks(n.books,r);this.loadBook(o)})}mergeCollections(n,i){i.books.forEach(r=>this.mergeBooks(n.books,r))}mergeBooks(n,i){let r=n.find(o=>o.id===i.id);return r===void 0?(n.push(i),i):(i.tunes&&(r.tunes===void 0?r.tunes=i.tunes:this.mergeTunes(r.tunes,i.tunes)),r)}mergeTunes(n,i){i.forEach(r=>{let o=n.find(s=>s.id===r.id);o===void 0?n.push(r):this.mergeTune(o,r)})}mergeTune(n,i){if(n.key===void 0&&(n.key=i.key),n.rhythm===void 0&&(n.rhythm=i.rhythm),n.tags===void 0)n.tags=i.tags;else if(i.tags){let r=new Set(n.tags);i.tags.forEach(o=>r.add(o)),n.tags=Array.from(r.keys())}}addTagsToIndex(){for(let n of this.collection.books)if(n.tunes)for(let i of n.tunes)i.tags&&this.index.setTagsForTune(i.id,n.id,i.tags);this.index.fireAllReady()}loadBook(n){return Re(this,null,function*(){if(this.loadedBookIds.indexOf(n.id)>=0)return;let r=yield this.selectLoader(n).loadTuneBook(n);return this.loadedBookIds.push(n.id),this.index.addTuneBook(r),this.loadedBookIds.length===this.collection.books.length&&this.addTagsToIndex(),r})}selectLoader(n){return n.storage==="googledrive"?this.driveLoader:this.websiteLoader}static \u0275fac=function(i){return new(i||t)(R(Zv),R(eb),R(Ri))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var Hle=["snav"];function zle(t,e){if(t&1){let n=st();D(0,"button",18),le("click",function(){Se(n),se(2);let r=Pi(3);return Ie(r.toggle())}),D(1,"mat-icon"),z(2,"menu"),I()()}}function Ule(t,e){if(t&1&&(D(0,"mat-toolbar",15),ve(1,zle,3,0,"button",16),D(2,"h1",17),z(3,"Tune Browser"),I()()),t&2){let n=se();A(),ie("ngIf",n.isHandset)}}function qle(t,e){if(t&1){let n=st();D(0,"a",19),le("click",function(){Se(n);let r=se();return Ie(r.onClick())}),D(1,"mat-icon"),z(2,"music_note"),I(),D(3,"span",5),z(4,"Practice"),I()()}}function $le(t,e){if(t&1){let n=st();D(0,"a",20),le("click",function(){Se(n);let r=se();return Ie(r.onClick())}),D(1,"mat-icon"),z(2,"work"),I(),D(3,"span",5),z(4,"Repertoire"),I()()}}function Wle(t,e){if(t&1){let n=st();D(0,"a",21),le("click",function(){Se(n);let r=se();return Ie(r.onClick())}),D(1,"mat-icon"),z(2,"exit_to_app"),I(),D(3,"span",5),z(4,"Log in"),I()()}}function Gle(t,e){if(t&1){let n=st();D(0,"a",22),le("click",function(){Se(n);let r=se();return Ie(r.onClick())}),D(1,"mat-icon"),z(2,"cancel"),I(),D(3,"span",5),z(4,"Log out"),I()()}}var r9=(()=>{class t{breakpointObserver;collectionService;accessTokenService;googleDriveService;zone;scroll;sidenav;signedIn;isHandset=!1;toolbarVisible=!0;lastOffset;constructor(n,i,r,o,s,a){this.breakpointObserver=n,this.collectionService=i,this.accessTokenService=r,this.googleDriveService=o,this.zone=s,this.scroll=a,this.breakpointObserver.observe([nd.Handset]).subscribe(c=>{this.isHandset=c.matches}),this.scroll.scrolled().subscribe(c=>{this.zone.run(()=>this.onWindowScroll(c))}),this.googleDriveService.driveApiLoaded.subscribe(c=>{this.accessTokenService.accessTokenSource.subscribe(l=>{this.zone.run(()=>{this.signedIn=!!l,this.collectionService.loadCollections()})})})}sidenavMode(){return this.isHandset?"over":"side"}onClick(){this.isHandset&&this.sidenav.close()}ngOnInit(){return Re(this,null,function*(){this.collectionService.loadCollections()})}onWindowScroll(n){let i=n.getElementRef().nativeElement.scrollTop||0,r=this.toolbarVisible;this.lastOffset>i+10||i<10?r=!0:i>50&&(r=!1),this.lastOffset=i,this.toolbarVisible=!this.isHandset||r}static \u0275fac=function(i){return new(i||t)(g(Da),g(Nr),g(Kd),g(Or),g(ee),g(to))};static \u0275cmp=re({type:t,selectors:[["app-root"]],viewQuery:function(i,r){if(i&1&&ze(Hle,5),i&2){let o;pe(o=me())&&(r.sidenav=o.first)}},decls:33,vars:7,consts:[["snav",""],["color","primary",4,"ngIf"],[1,"full-height"],[3,"mode","opened"],["mat-list-item","","routerLink","/search",3,"click"],[1,"nav-caption"],["mat-list-item","","routerLink","/record",3,"click"],["mat-list-item","","routerLink","/books",3,"click"],["mat-list-item","","routerLink","/practice",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/repertoire",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/login",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/logout",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/about",3,"click"],["cdkScrollable",""],[1,"main-content"],["color","primary"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"irish"],["mat-icon-button","",3,"click"],["mat-list-item","","routerLink","/practice",3,"click"],["mat-list-item","","routerLink","/repertoire",3,"click"],["mat-list-item","","routerLink","/login",3,"click"],["mat-list-item","","routerLink","/logout",3,"click"]],template:function(i,r){if(i&1){let o=st();ve(0,Ule,4,1,"mat-toolbar",1),D(1,"mat-sidenav-container",2)(2,"mat-sidenav",3,0)(4,"mat-nav-list")(5,"a",4),le("click",function(){return Se(o),Ie(r.onClick())}),D(6,"mat-icon"),z(7,"search"),I(),D(8,"span",5),z(9,"Search"),I()(),D(10,"a",6),le("click",function(){return Se(o),Ie(r.onClick())}),D(11,"mat-icon"),z(12,"mic"),I(),D(13,"span",5),z(14,"Recognize"),I()(),D(15,"a",7),le("click",function(){return Se(o),Ie(r.onClick())}),D(16,"mat-icon"),z(17,"list"),I(),D(18,"span",5),z(19,"Browse"),I()(),ve(20,qle,5,0,"a",8)(21,$le,5,0,"a",9)(22,Wle,5,0,"a",10)(23,Gle,5,0,"a",11),D(24,"a",12),le("click",function(){return Se(o),Ie(r.onClick())}),D(25,"mat-icon"),z(26,"info"),I(),D(27,"span",5),z(28,"About"),I()()()(),D(29,"mat-sidenav-content",13)(30,"div")(31,"div",14),xe(32,"router-outlet"),I()()()()}i&2&&(ie("ngIf",r.toolbarVisible),A(2),ie("mode",r.sidenavMode())("opened",!r.isHandset),A(18),ie("ngIf",r.signedIn),A(),ie("ngIf",r.signedIn),A(),ie("ngIf",!r.signedIn),A(),ie("ngIf",r.signedIn))},dependencies:[jo,Wn,Ns,Go,ZR,Yo,hx,fx,yg,UO,ND,xr]})}return t})();var o9=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=re({type:t,selectors:[["app-about"]],decls:61,vars:0,consts:[[1,"mat-body"],[1,"mat-h2"],[1,"mat-h3"],["href","https://tunepal.org"],["href","https://thesession.org"]],template:function(i,r){i&1&&(D(0,"div",0)(1,"h2",1),z(2,"About Tune Browser"),I(),D(3,"h3",2),z(4,"Release"),I(),D(5,"p"),z(6,"Version: 0.33.2 (2024-08-11)"),I(),D(7,"h3",2),z(8,"Features"),I(),D(9,"ul")(10,"li"),z(11,"Browse tune books in ABC notation"),I(),D(12,"li"),z(13,"Create PDF files of tunes or books for printing"),I(),D(14,"li"),z(15,"Create and edit your own tune books on Google Drive"),I(),D(16,"li"),z(17,"Add tags to tunes (requires Google Drive)"),I(),D(18,"li"),z(19,"Find tunes by title or number, key, rhythm, books or tags"),I(),D(20,"li"),z(21,"Play tunes and adjust tempo"),I(),D(22,"li"),z(23,"Create repertoires and get practice assignments (requires Google Drive)"),I(),D(24,"li"),z(25,"Record audio samples and recognize tunes from thesession.org"),I()(),D(26,"h3",2),z(27,"Getting started"),I(),D(28,"p"),z(29," Tune Browser is a web application which should work in any modern web browser, including mobile browsers on smartphones or tablets. "),I(),D(30,"p"),z(31," On mobile devices, you can create a shortcut on your home screen which makes Tune Browser work in full screen mode, almost like a native app, without requiring installation from Play Store or App Store. "),I(),D(32,"p"),z(33," If you have a Google account, you can create and edit your own tune books and store them on Google Drive. Before you can do so, you will have to log in to your Google account from Tune Browser. The login dialogue uses a separate browser window which directly communicates with Google. Tune Browser will create a folder "),D(34,"code"),z(35,"Tune Browser"),I(),z(36," containing your tune books. "),I(),D(37,"h3",2),z(38,"Practicing"),I(),D(39,"p"),z(40," With a Google account, you can create one or more repertoires (e.g. for different instruments) with tunes from existing books and generate daily practice assignments. "),I(),D(41,"p"),z(42," For each tune in a given repertoire, Tune Browser records the date you last practiced the tune and the date you added it. Based on this information, new tunes will be included in your assignment every day for the first week, and then in longer intervals in the following weeks. Older tunes will be rescheduled once a month. Some randomness gets applied to avoid repetitive assignments. "),I(),D(43,"h3",2),z(44,"Recognize tunes"),I(),D(45,"p"),z(46," You can record audio snippets and recognize tunes based on Bryan Duggan's MATT2 matching algorithm as published in "),D(47,"a",3),z(48,"tunepal.org"),I(),z(49,". "),I(),D(50,"p"),z(51," Tune Browser matches your audio against the tune corpus of "),D(52,"a",4),z(53,"thesession.org"),I(),z(54,". The best matches are listed by confidence level and are linked to the corresponding pages on thesession.org. "),I(),D(55,"h3",2),z(56,"Privacy"),I(),D(57,"p"),z(58,"Tune Browser does not collect any personal data from its users."),I(),D(59,"p"),z(60," Tune Browser is hosted on GitHub Pages and on Google Cloud Run. It optionally uses Google Drive for storing your tune books. If you are worried about privacy, please review the terms of service of these providers. Tune Browser has no influence on user tracking performed by these services. "),I()())},encapsulation:2})}return t})();var Yle="Tune Browser",s9="repertoire-collection.json",nb=[1,1,1,1,1,1,2,2,2,3,3,6,6,15];function Qle(t,e){if(t==="added"||t==="due"||t==="lastPracticed")return new Date(e);if(t==="items")return e.map(n=>new ib(n.tune,n.added,n.timesPracticed,n.lastPracticed));if(t==="instrument"){this.name=e;return}return e}function Kle(t,e){if(t!=="due")return e}var ib=class{tune;added;timesPracticed;lastPracticed;due;constructor(e,n,i,r){this.tune=e,this.added=n,this.timesPracticed=i,this.lastPracticed=r}practicedOn(e){this.lastPracticed=e,this.timesPracticed++}referencedBy(e){return e?this.tune.bookId===e.bookId&&this.tune.tuneId===e.tuneId:!1}},rs=(()=>{class t{googleDrive;collectionFileId;currentAssignment;repertoireCollection;constructor(n){this.googleDrive=n}load(){return Re(this,null,function*(){if(!(yield this.googleDrive.isSignedIn()))return{repertoires:[]};if(this.repertoireCollection)return this.repertoireCollection;let n=yield this.googleDrive.findOrCreateFolder(Yle),r=(yield this.googleDrive.listTextFiles(n)).find(s=>s.name===s9),o;return r===void 0?(o='{"repertoires": []}',this.collectionFileId=yield this.googleDrive.createTextFile(s9,o)):(this.collectionFileId=r.id,o=yield this.googleDrive.getTextFile(r.id)),this.repertoireCollection=JSON.parse(o,Qle),this.repertoireCollection})}saveCollection(n){return Re(this,null,function*(){return this.googleDrive.updateTextFile(this.collectionFileId,JSON.stringify(n,Kle))})}save(){return Re(this,null,function*(){return this.repertoireCollection?this.saveCollection(this.repertoireCollection):null})}addRepertoireItem(n,i){return Re(this,null,function*(){let r=yield this.load(),o=yield this.findRepertoire(i.name);o===void 0&&(o={name:i.name,maxAge:30,numTunesPerAssignment:10,items:[]},r.repertoires.push(o),r.current=i.name);let s=o.items.find(a=>a.referencedBy(n));return s?s.added=i.added:o.items.push(new ib(n,i.added,0)),this.saveCollection(r)})}deleteRepertoireItem(n,i){return Re(this,null,function*(){let r=yield this.load(),o=yield this.findRepertoire(i);if(o!==void 0){let s=o.items.findIndex(a=>a.referencedBy(n));if(s>=0)return o.items.splice(s,1),this.saveCollection(r)}return""})}findRepertoire(n){return Re(this,null,function*(){let i=yield this.load();return n||(n=i.current),n?i.repertoires.find(r=>r.name===n):i.repertoires[0]})}deleteRepertoire(n){return Re(this,null,function*(){let i=yield this.load(),r=i.repertoires.findIndex(o=>o.name===n);return r==-1?"":(i.repertoires.splice(r,1),this.saveCollection(i))})}static \u0275fac=function(i){return new(i||t)(R(Or))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();function Xle(t,e){if(t&1&&(D(0,"mat-option",11),z(1),I()),t&2){let n=e.$implicit;ie("value",n.name),A(),Ct(" ",n.name," ")}}var a9=(()=>{class t{dialogRef;repertoireRepository;added=new Sc(new Date);repertoire=new Sc;repertoireCollection;constructor(n,i){this.dialogRef=n,this.repertoireRepository=i}ngOnInit(){return Re(this,null,function*(){this.repertoireCollection=yield this.repertoireRepository.load()})}onNoClick(){this.dialogRef.close(void 0)}repertoires(){return this.repertoireCollection===void 0?[]:this.repertoireCollection.repertoires}repertoireName(n){return n.name}selection(){return{name:this.repertoire.value,added:this.added.value}}static \u0275fac=function(i){return new(i||t)(g(oo),g(rs))};static \u0275cmp=re({type:t,selectors:[["app-add-to-repertoire"]],decls:20,vars:7,consts:[["auto","matAutocomplete"],["myDatepicker",""],["mat-dialog-title",""],["mat-dialog-content","",1,"form-container"],["type","text","matInput","",3,"formControl","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","added","placeholder","Added on",3,"matDatepicker","formControl"],["matSuffix","",3,"for"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close"],[3,"value"]],template:function(i,r){if(i&1){let o=st();D(0,"h1",2),z(1,"Add to repertoire"),I(),D(2,"div",3)(3,"mat-form-field")(4,"mat-label"),z(5,"Repertoire"),I(),xe(6,"input",4),I(),D(7,"mat-autocomplete",null,0),ve(9,Xle,2,2,"mat-option",5),I(),D(10,"mat-form-field"),xe(11,"input",6)(12,"mat-datepicker",null,1)(14,"mat-datepicker-toggle",7),I()(),D(15,"div",8)(16,"button",9),le("click",function(){return Se(o),Ie(r.onNoClick())}),z(17,"Cancel"),I(),D(18,"button",10),z(19,"Ok"),I()()}if(i&2){let o=Pi(8),s=Pi(13);A(6),ie("formControl",r.repertoire)("matAutocomplete",o),A(3),ie("ngForOf",r.repertoires()),A(2),ie("matDatepicker",s)("formControl",r.added),A(3),ie("for",s),A(4),ie("mat-dialog-close",r.selection())}},dependencies:[xn,Gi,kn,$3,qo,$C,ei,bR,ug,ix,fg,Dd,Sd,Ed,Rn,Wo,z3,On,_h],encapsulation:2})}return t})();var Zle=` %%header "$P0 $P1" %%titleformat "T, R-1 C1" %%pagewidth 21cm @@ -172,7 +172,7 @@ ${e.map((n,i)=>`${i+1}) ${n.toString()}`).join(` %%topspace 0cm `,Za=(()=>{class t{httpClient;constructor(n){this.httpClient=n}saveAsPdf(n){this.httpClient.post("https://abc2pdf-vkhoermztq-ew.a.run.app/print",Zle+n,{responseType:"arraybuffer"}).subscribe(i=>this.downloadFile(i,"application/pdf"))}downloadFile(n,i){let r=document.createElement("a");r.href=window.URL.createObjectURL(new Blob([n],{type:i})),r.target="pdf",document.body.appendChild(r),r.click(),r.parentNode.removeChild(r)}static \u0275fac=function(i){return new(i||t)(R(Ss))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var c9=(()=>{class t{route;router;index;pdfService;bookId;constructor(n,i,r,o){this.route=n,this.router=i,this.index=r,this.pdfService=o,this.index.tuneBookReady.subscribe(s=>this.onReady(s)),this.route.paramMap.subscribe(s=>{this.bookId=s.get("id"),this.onReady(this.bookId)})}onReady(n){let i=this.index.findAllTunesInBook(n).map(o=>o.abc).join(` `),r=this.index.getBookById(n).descriptor.name;this.pdfService.saveAsPdf(`%%footer ${r} -${i}`),this.router.navigate(["/books"])}static \u0275fac=function(i){return new(i||t)(g(si),g(Ti),g(Ri),g(Za))};static \u0275cmp=re({type:t,selectors:[["app-book-print"]],decls:0,vars:0,template:function(i,r){},encapsulation:2})}return t})();function Jle(t,e){t&1&&(D(0,"mat-icon"),z(1,"edit"),I())}function ede(t,e){if(t&1&&(D(0,"mat-list-item")(1,"span",4)(2,"button",5),ve(3,Jle,2,0,"mat-icon",6),I()(),D(4,"span",4)(5,"button",7)(6,"mat-icon"),z(7,"print"),I()()(),D(8,"span",8)(9,"div",9),z(10),I(),D(11,"div",10),z(12),I()()()),t&2){let n=e.$implicit,i=se();A(2),ws("routerLink","../edit/",n.descriptor.id,""),ie("disabled",!i.isEditable(n)),A(),ie("ngIf",i.isEditable(n)),A(2),ws("routerLink","../print/",n.descriptor.id,""),A(4),ws("routerLink","../book/",n.descriptor.id,""),A(),Pt(n.descriptor.name),A(2),Pt(n.descriptor.description)}}var l9=(()=>{class t{collectionService;googleAuth;books=[];signedIn=!1;constructor(n,i){this.collectionService=n,this.googleAuth=i,this.googleAuth.authState.subscribe(r=>{this.signedIn=!!r}),this.collectionService.collectionLoaded.subscribe(()=>this.books=this.collectionService.getBooks())}isEditable(n){return n.descriptor.storage==="googledrive"}static \u0275fac=function(i){return new(i||t)(g(Nr),g(Nn))};static \u0275cmp=re({type:t,selectors:[["app-books-list"]],decls:7,vars:2,consts:[[1,"mat-h2"],[1,"tunebook-list"],[4,"ngFor","ngForOf"],["mat-raised-button","","routerLink","../createBook","color","primary",1,"create-book-button",3,"disabled"],[1,"tunebook-button"],["mat-icon-button","",3,"routerLink","disabled"],[4,"ngIf"],["mat-icon-button","",3,"routerLink"],[1,"tunebook-item"],[1,"tunebook-link",3,"routerLink"],[1,"tunebook-description"]],template:function(i,r){i&1&&(D(0,"div")(1,"h2",0),z(2,"Tunebooks"),I(),D(3,"mat-list",1),ve(4,ede,13,10,"mat-list-item",2),I(),D(5,"button",3),z(6,"New Book"),I()()),i&2&&(A(4),ie("ngForOf",r.books),A(),ie("disabled",!r.signedIn))},dependencies:[xn,jo,ei,Ns,Go,ja,Yo,xr],encapsulation:2})}return t})();var d9=(()=>{class t{snackBar;googleDrive;tuneBookCollectionService;title;description;id;constructor(n,i,r){this.snackBar=n,this.googleDrive=i,this.tuneBookCollectionService=r}createBook(){return Re(this,null,function*(){let n=`${this.id}.abc`,i=yield this.googleDrive.createTextFile(n,""),r={description:this.description,id:this.id,name:this.title,storage:"googledrive",uri:i};yield this.tuneBookCollectionService.addBook(r),this.snackBar.open(`Created ${n} on Google Drive`,"Dismiss",{duration:3e3})})}static \u0275fac=function(i){return new(i||t)(g(Ps),g(Or),g(Nr))};static \u0275cmp=re({type:t,selectors:[["app-create-book"]],decls:13,vars:3,consts:[[1,"mat-h2"],[1,"create-book-panel"],[1,"query"],["matInput","","name","title","type","text","placeholder","Title",3,"ngModelChange","ngModel"],["matInput","","name","description","type","text","placeholder","Description",3,"ngModelChange","ngModel"],["matInput","","name","id","type","text","placeholder","ID used in URL or file name",3,"ngModelChange","ngModel"],["mat-raised-button","","label","Create","color","primary",1,"create-book-button",3,"click"]],template:function(i,r){i&1&&(D(0,"div")(1,"h2",0),z(2,"New tunebook"),I()(),D(3,"div",1)(4,"form")(5,"mat-form-field",2)(6,"input",3),ni("ngModelChange",function(s){return oi(r.title,s)||(r.title=s),s}),I()(),D(7,"mat-form-field",2)(8,"input",4),ni("ngModelChange",function(s){return oi(r.description,s)||(r.description=s),s}),I()(),D(9,"mat-form-field",2)(10,"input",5),ni("ngModelChange",function(s){return oi(r.id,s)||(r.id=s),s}),I()(),D(11,"button",6),le("click",function(){return r.createBook()}),z(12,"Create Book"),I()()()),i&2&&(A(6),ii("ngModel",r.title),A(2),ii("ngModel",r.description),A(2),ii("ngModel",r.id))},dependencies:[Oa,Gi,kn,Ra,io,Yn,ei,Rn,On],encapsulation:2})}return t})();var u9=(()=>{class t{route;router;zone;googleAuth;loginPending=!1;constructor(n,i,r,o){this.route=n,this.router=i,this.zone=r,this.googleAuth=o,this.route.url.subscribe(s=>this.onAction()),this.googleAuth.authState.subscribe(s=>{this.loginPending&&(this.loginPending=!1,this.zone.run(()=>this.router.navigate(["/books"])))})}onAction(){this.loginPending=!0,this.googleAuth.signIn()}static \u0275fac=function(i){return new(i||t)(g(si),g(Ti),g(ee),g(Nn))};static \u0275cmp=re({type:t,selectors:[["app-login"]],decls:0,vars:0,template:function(i,r){},encapsulation:2})}return t})();var h9=(()=>{class t{route;router;googleAuth;constructor(n,i,r){this.route=n,this.router=i,this.googleAuth=r,this.route.url.subscribe(()=>this.onAction())}onAction(){this.googleAuth.signOut(),this.router.navigate(["/books"])}static \u0275fac=function(i){return new(i||t)(g(si),g(Ti),g(Nn))};static \u0275cmp=re({type:t,selectors:[["app-logout"]],decls:0,vars:0,template:function(i,r){},encapsulation:2})}return t})();var f9=Pr(Gs());function p9(t){let e=t.split(` +${i}`),this.router.navigate(["/books"])}static \u0275fac=function(i){return new(i||t)(g(si),g(Ti),g(Ri),g(Za))};static \u0275cmp=re({type:t,selectors:[["app-book-print"]],decls:0,vars:0,template:function(i,r){},encapsulation:2})}return t})();function Jle(t,e){t&1&&(D(0,"mat-icon"),z(1,"edit"),I())}function ede(t,e){if(t&1&&(D(0,"mat-list-item")(1,"div",4)(2,"div",5)(3,"button",6),ve(4,Jle,2,0,"mat-icon",7),I()(),D(5,"div",5)(6,"button",8)(7,"mat-icon"),z(8,"print"),I()()(),D(9,"div",9)(10,"div",10),z(11),I(),D(12,"div",11),z(13),I()()()()),t&2){let n=e.$implicit,i=se();A(3),ws("routerLink","../edit/",n.descriptor.id,""),ie("disabled",!i.isEditable(n)),A(),ie("ngIf",i.isEditable(n)),A(2),ws("routerLink","../print/",n.descriptor.id,""),A(4),ws("routerLink","../book/",n.descriptor.id,""),A(),Ct("",n.descriptor.name," "),A(2),jt(n.descriptor.description)}}var l9=(()=>{class t{collectionService;googleAuth;books=[];signedIn=!1;constructor(n,i){this.collectionService=n,this.googleAuth=i,this.googleAuth.authState.subscribe(r=>{this.signedIn=!!r}),this.collectionService.collectionLoaded.subscribe(()=>this.books=this.collectionService.getBooks())}isEditable(n){return n.descriptor.storage==="googledrive"}static \u0275fac=function(i){return new(i||t)(g(Nr),g(Nn))};static \u0275cmp=re({type:t,selectors:[["app-books-list"]],decls:7,vars:2,consts:[[1,"mat-h2"],[1,"tunebook-list"],[4,"ngFor","ngForOf"],["mat-raised-button","","routerLink","../createBook","color","primary",1,"create-book-button",3,"disabled"],[1,"tunebook-row"],[1,"tunebook-button"],["mat-icon-button","",3,"routerLink","disabled"],[4,"ngIf"],["mat-icon-button","",3,"routerLink"],[1,"tunebook-item"],[1,"tunebook-link",3,"routerLink"],[1,"tunebook-description"]],template:function(i,r){i&1&&(D(0,"div")(1,"h2",0),z(2,"Tunebooks"),I(),D(3,"mat-list",1),ve(4,ede,14,10,"mat-list-item",2),I(),D(5,"button",3),z(6,"New Book"),I()()),i&2&&(A(4),ie("ngForOf",r.books),A(),ie("disabled",!r.signedIn))},dependencies:[xn,jo,ei,Ns,Go,ja,Yo,xr],encapsulation:2})}return t})();var d9=(()=>{class t{snackBar;googleDrive;tuneBookCollectionService;title;description;id;constructor(n,i,r){this.snackBar=n,this.googleDrive=i,this.tuneBookCollectionService=r}createBook(){return Re(this,null,function*(){let n=`${this.id}.abc`,i=yield this.googleDrive.createTextFile(n,""),r={description:this.description,id:this.id,name:this.title,storage:"googledrive",uri:i};yield this.tuneBookCollectionService.addBook(r),this.snackBar.open(`Created ${n} on Google Drive`,"Dismiss",{duration:3e3})})}static \u0275fac=function(i){return new(i||t)(g(Ps),g(Or),g(Nr))};static \u0275cmp=re({type:t,selectors:[["app-create-book"]],decls:13,vars:3,consts:[[1,"mat-h2"],[1,"create-book-panel"],[1,"query"],["matInput","","name","title","type","text","placeholder","Title",3,"ngModelChange","ngModel"],["matInput","","name","description","type","text","placeholder","Description",3,"ngModelChange","ngModel"],["matInput","","name","id","type","text","placeholder","ID used in URL or file name",3,"ngModelChange","ngModel"],["mat-raised-button","","label","Create","color","primary",1,"create-book-button",3,"click"]],template:function(i,r){i&1&&(D(0,"div")(1,"h2",0),z(2,"New tunebook"),I()(),D(3,"div",1)(4,"form")(5,"mat-form-field",2)(6,"input",3),ni("ngModelChange",function(s){return oi(r.title,s)||(r.title=s),s}),I()(),D(7,"mat-form-field",2)(8,"input",4),ni("ngModelChange",function(s){return oi(r.description,s)||(r.description=s),s}),I()(),D(9,"mat-form-field",2)(10,"input",5),ni("ngModelChange",function(s){return oi(r.id,s)||(r.id=s),s}),I()(),D(11,"button",6),le("click",function(){return r.createBook()}),z(12,"Create Book"),I()()()),i&2&&(A(6),ii("ngModel",r.title),A(2),ii("ngModel",r.description),A(2),ii("ngModel",r.id))},dependencies:[Oa,Gi,kn,Ra,io,Yn,ei,Rn,On],encapsulation:2})}return t})();var u9=(()=>{class t{route;router;zone;googleAuth;loginPending=!1;constructor(n,i,r,o){this.route=n,this.router=i,this.zone=r,this.googleAuth=o,this.route.url.subscribe(s=>this.onAction()),this.googleAuth.authState.subscribe(s=>{this.loginPending&&(this.loginPending=!1,this.zone.run(()=>this.router.navigate(["/books"])))})}onAction(){this.loginPending=!0,this.googleAuth.signIn()}static \u0275fac=function(i){return new(i||t)(g(si),g(Ti),g(ee),g(Nn))};static \u0275cmp=re({type:t,selectors:[["app-login"]],decls:0,vars:0,template:function(i,r){},encapsulation:2})}return t})();var h9=(()=>{class t{route;router;googleAuth;constructor(n,i,r){this.route=n,this.router=i,this.googleAuth=r,this.route.url.subscribe(()=>this.onAction())}onAction(){this.googleAuth.signOut(),this.router.navigate(["/books"])}static \u0275fac=function(i){return new(i||t)(g(si),g(Ti),g(Nn))};static \u0275cmp=re({type:t,selectors:[["app-logout"]],decls:0,vars:0,template:function(i,r){},encapsulation:2})}return t})();var f9=Pr(Gs());function p9(t){let e=t.split(` `),n=[],i=[];for(let r of e)if(/^[A-Za-z]:/.test(r))/^[XMLK]:/.test(r)&&n.push(r);else if(i.push(...r.split("|")),i.length>2){n.push(i.slice(0,3).join("|"));break}return n.join(` -`)}function Qs(t){let e=t.replace(/^\d+[a-z]?\s*/,"");return e.endsWith(", The")&&(e=e.replace(/, The$/,""),e="The "+e),e}var ob=(()=>{class t{httpClient;constructor(n){this.httpClient=n}findBestMatches(n){return Re(this,null,function*(){return this.httpClient.get("https://matt-vkhoermztq-ew.a.run.app/match/"+n).toPromise()})}static \u0275fac=function(i){return new(i||t)(R(Ss))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();function ide(t,e){t&1&&xe(0,"mat-progress-bar",5)}function nde(t,e){if(t&1&&(D(0,"mat-list-item")(1,"div",6)(2,"div",7)(3,"a",8),z(4),I(),D(5,"div",9),z(6),I()(),D(7,"div",10),z(8),I()()()),t&2){let n=e.$implicit,i=se();A(3),ba("href","https://thesession.org/tunes/",n.tune,"#setting",n.setting,"",A1),A(),Pt(i.title(n)),A(2),Pt(i.getRhythmAndKey(n)),A(2),Tt(" ",i.confidencePercentage(n)," % ")}}var m9=(()=>{class t{route;tuneMatcher;tunes;constructor(n,i){this.route=n,this.tuneMatcher=i,this.route.paramMap.subscribe(r=>this.matchTranscription(r))}matchTranscription(n){return Re(this,null,function*(){let i=n.get("transcription");this.tunes=yield this.tuneMatcher.findBestMatches(i)})}confidencePercentage(n){return Math.round(n.confidence*100)}title(n){return Qs(n.name)}getRhythmAndKey(n){return`${n.rhythm} in ${n.key}`}static \u0275fac=function(i){return new(i||t)(g(si),g(ob))};static \u0275cmp=re({type:t,selectors:[["app-matcher"]],decls:6,vars:2,consts:[[1,"mat-h2"],["id","progress"],["mode","indeterminate",4,"ngIf"],[1,"tune-list"],[4,"ngFor","ngForOf"],["mode","indeterminate"],["matLine",""],[1,"tune-item"],["target","thesession",1,"tune-link","md-accent",3,"href"],[1,"mat-small"],[1,"confidence"]],template:function(i,r){i&1&&(D(0,"h2",0),z(1,"Matching tunes"),I(),D(2,"div",1),ve(3,ide,1,0,"mat-progress-bar",2),I(),D(4,"mat-list",3),ve(5,nde,9,6,"mat-list-item",4),I()),i&2&&(A(3),ie("ngIf",!r.tunes),A(2),ie("ngForOf",r.tunes))},dependencies:[xn,jo,ja,Yo,vg],encapsulation:2})}return t})();var g9=(()=>{class t{dialogRef;instrument=new Sc;maxAge=new Sc(30);numTunesPerAssignment=new Sc(10);constructor(n){this.dialogRef=n}onNoClick(){this.dialogRef.close(void 0)}repertoire(){return{name:this.instrument.value,maxAge:this.maxAge.value,numTunesPerAssignment:this.numTunesPerAssignment.value,items:[]}}static \u0275fac=function(i){return new(i||t)(g(oo))};static \u0275cmp=re({type:t,selectors:[["app-new-repertoire"]],decls:14,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"form-container"],["matInput","","name","name","placeholder","Name",3,"formControl"],["matInput","","name","maxAge","placeholder","Maximum age in days",3,"formControl"],["matInput","","name","numTunes","placeholder","Number of tunes per assignment",3,"formControl"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(i,r){i&1&&(D(0,"h1",0),z(1,"New repertoire"),I(),D(2,"div",1)(3,"mat-form-field"),xe(4,"input",2),I(),D(5,"mat-form-field"),xe(6,"input",3),I(),D(7,"mat-form-field"),xe(8,"input",4),I()(),D(9,"div",5)(10,"button",6),le("click",function(){return r.onNoClick()}),z(11,"Cancel"),I(),D(12,"button",7),z(13,"Ok"),I()()),i&2&&(A(4),ie("formControl",r.instrument),A(2),ie("formControl",r.maxAge),A(2),ie("formControl",r.numTunesPerAssignment),A(4),ie("mat-dialog-close",r.repertoire()))},dependencies:[Gi,kn,ei,fg,Dd,Sd,Ed,Rn,On,_h],encapsulation:2})}return t})();function dE(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function bo(t,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function Ja(t){bo(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function mu(t,e){bo(2,arguments);var n=Ja(t),i=dE(e);return isNaN(i)?new Date(NaN):(i&&n.setDate(n.getDate()+i),n)}function sb(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function ab(t){bo(1,arguments);var e=Ja(t);return e.setHours(0,0,0,0),e}var rde=864e5;function uE(t,e){bo(2,arguments);var n=ab(t),i=ab(e),r=n.getTime()-sb(n),o=i.getTime()-sb(i);return Math.round((r-o)/rde)}function v9(t,e){var n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function al(t,e){bo(2,arguments);var n=Ja(t),i=Ja(e),r=v9(n,i),o=Math.abs(uE(n,i));n.setDate(n.getDate()-r*o);var s=+(v9(n,i)===-r),a=r*(o-s);return a===0?0:a}function hE(t){let e=Math.trunc(Math.random()*3)-1;return mu(t,e)}var cb=(()=>{class t{buildPracticeAssignment(n,i){let r=[...n.items];r.forEach(a=>this.computeDueDate(a,n,i)),r.sort((a,c)=>al(a.due,c.due));let o=r.filter(a=>this.isDueOnDay(a,i));if(o.length>=n.numTunesPerAssignment){let a=o.slice(0,n.numTunesPerAssignment),l=o.slice(n.numTunesPerAssignment+1).filter(u=>u.timesPracticed<=nb.length);if(l.length>0){l.sort((h,f)=>h.timesPracticed-f.timesPracticed);let u=l.slice(0,n.numTunesPerAssignment/2),d=a.slice(0,n.numTunesPerAssignment-u.length);return u.concat(d)}else return o.slice(0,n.numTunesPerAssignment)}let s=r.filter(a=>!this.isDueOnDay(a,i)&&!this.isRecentOnDay(a,i));return o.concat(s.slice(0,n.numTunesPerAssignment-o.length))}isDueOnDay(n,i){return al(n.due,i)<=0}isRecentOnDay(n,i){return al(i,n.added)<=30}computeDueDate(n,i,r){if(al(hE(r||new Date),n.added)>i.maxAge||n.timesPracticed>=nb.length){let s=n.lastPracticed||n.added;n.due=mu(hE(s),i.maxAge)}else if(n.timesPracticed>0){let s=nb[n.timesPracticed];n.due=mu(hE(n.lastPracticed),s)}else n.due=n.added}markAsPracticed(n,i){n.forEach(r=>r.practicedOn(i))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();function sde(t,e){if(t&1&&(D(0,"mat-option",12),z(1),I()),t&2){let n=e.$implicit;ie("value",n.name),A(),Tt(" ",n.name," ")}}function ade(t,e){if(t&1){let n=st();D(0,"div",3)(1,"div",4)(2,"mat-form-field")(3,"mat-label"),z(4,"Repertoire"),I(),D(5,"mat-select",5),ni("valueChange",function(r){Se(n);let o=se();return oi(o.repertoire,r)||(o.repertoire=r),Ie(r)}),ve(6,sde,2,2,"mat-option",6),I()(),D(7,"mat-form-field",7)(8,"input",8),ni("ngModelChange",function(r){Se(n);let o=se();return oi(o.maxAge,r)||(o.maxAge=r),Ie(r)}),I()(),D(9,"mat-form-field",9)(10,"input",10),ni("ngModelChange",function(r){Se(n);let o=se();return oi(o.numTunes,r)||(o.numTunes=r),Ie(r)}),I()()(),D(11,"button",11),le("click",function(){Se(n);let r=se();return Ie(r.buildAssignment())}),z(12,"Get assignment"),I()()}if(t&2){let n=se();A(5),ii("value",n.repertoire),A(),ie("ngForOf",n.repertoires()),A(2),ii("ngModel",n.maxAge),A(2),ii("ngModel",n.numTunes)}}function cde(t,e){if(t&1&&(D(0,"mat-list-item")(1,"div",16),z(2),I()()),t&2){let n=e.$implicit,i=se(2);A(),ba("routerLink","../tune/",n.book,"/",n.id,""),A(),Tt(" ",i.titleWithoutNumber(n.title),"")}}function lde(t,e){if(t&1){let n=st();D(0,"div",13)(1,"mat-list"),ve(2,cde,3,4,"mat-list-item",14),I(),D(3,"button",15),le("click",function(){Se(n);let r=se();return Ie(r.markAsPracticed())}),z(4,"All done"),I()()}if(t&2){let n=se();A(2),ie("ngForOf",n.entries),A(),ie("disabled",n.saved)}}var b9=(()=>{class t{snackBar;repertoireRepository;googleAuth;practiceService;index;assignment;entries;repertoire;numTunes;maxAge;saved=!1;titleWithoutNumber=Qs;repertoireCollection;constructor(n,i,r,o,s){this.snackBar=n,this.repertoireRepository=i,this.googleAuth=r,this.practiceService=o,this.index=s,this.googleAuth.authState.subscribe(()=>this.loadRepertoires())}loadRepertoires(){return Re(this,null,function*(){this.repertoireCollection=yield this.repertoireRepository.load(),this.repertoireCollection.current&&(this.repertoire=this.repertoireCollection.current);let n=yield this.repertoireRepository.findRepertoire();n&&(this.numTunes=n.numTunesPerAssignment,this.maxAge=n.maxAge,this.repertoireRepository.currentAssignment&&(this.assignment=this.repertoireRepository.currentAssignment,this.entries=this.assignment.map(i=>this.index.findEntryByTuneReference(i.tune))))})}hasAssignment(){return this.entries!==void 0}buildAssignment(){return Re(this,null,function*(){let n=yield this.repertoireRepository.findRepertoire(this.repertoire);this.numTunes>0&&(n.numTunesPerAssignment=this.numTunes,n.maxAge=this.maxAge,this.repertoireCollection.current=this.repertoire),this.assignment=this.practiceService.buildPracticeAssignment(n,new Date),this.repertoireRepository.currentAssignment=this.assignment,this.entries=this.assignment.map(i=>this.index.findEntryByTuneReference(i.tune))})}markAsPracticed(){return Re(this,null,function*(){this.practiceService.markAsPracticed(this.assignment,new Date),(yield this.repertoireRepository.save())?(this.saved=!0,this.snackBar.open("Updated repertoire on Google Drive","Dismiss",{duration:3e3})):this.snackBar.open("ERROR SAVING REPERTOIRE","Dismiss",{duration:3e3})})}repertoires(){return this.repertoireCollection===void 0?[]:this.repertoireCollection.repertoires}static \u0275fac=function(i){return new(i||t)(g(Ps),g(rs),g(Nn),g(cb),g(Ri))};static \u0275cmp=re({type:t,selectors:[["app-practice"]],decls:5,vars:2,consts:[[1,"mat-h2"],["id","initial",4,"ngIf"],["id","assignment",4,"ngIf"],["id","initial"],[1,"form-container"],[3,"valueChange","value"],[3,"value",4,"ngFor","ngForOf"],[1,"max-age"],["matInput","","name","maxAge","type","number","placeholder","Maximum age in days",3,"ngModelChange","ngModel"],[1,"num-tunes"],["matInput","","name","numTunes","type","number","placeholder","Number of tunes",3,"ngModelChange","ngModel"],["mat-raised-button","","color","primary",1,"search-button",3,"click"],[3,"value"],["id","assignment"],[4,"ngFor","ngForOf"],["mat-raised-button","","label","All done","color","primary",1,"search-button",3,"click","disabled"],[1,"tune-link",3,"routerLink"]],template:function(i,r){i&1&&(D(0,"div")(1,"h2",0),z(2,"Practice"),I(),ve(3,ade,13,4,"div",1)(4,lde,5,2,"div",2),I()),i&2&&(A(3),ie("ngIf",!r.hasAssignment()),A(),ie("ngIf",r.hasAssignment()))},dependencies:[xn,jo,Gi,wC,kn,io,qo,ei,Rn,Wo,On,ja,Yo,bg,xr],encapsulation:2})}return t})();var lb=(()=>{class t{instance;audioContext(){return Re(this,null,function*(){if(!this.instance){let n=window.AudioContext||window.webkitAudioContext;this.instance=new n,this.instance.state==="suspended"&&(yield this.instance.resume())}return this.instance})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var y9=Symbol("Comlink.proxy"),ude=Symbol("Comlink.endpoint"),hde=Symbol("Comlink.releaseProxy"),fE=Symbol("Comlink.thrown"),w9=t=>typeof t=="object"&&t!==null||typeof t=="function",fde={canHandle:t=>w9(t)&&t[y9],serialize(t){let{port1:e,port2:n}=new MessageChannel;return x9(t,e),[n,[n]]},deserialize(t){return t.start(),mE(t)}},pde={canHandle:t=>w9(t)&&fE in t,serialize({value:t}){let e;return t instanceof Error?e={isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:e={isError:!1,value:t},[e,[]]},deserialize(t){throw t.isError?Object.assign(new Error(t.value.message),t.value):t.value}},C9=new Map([["proxy",fde],["throw",pde]]);function x9(t,e=self){e.addEventListener("message",function n(i){if(!i||!i.data)return;let{id:r,type:o,path:s}=Object.assign({path:[]},i.data),a=(i.data.argumentList||[]).map(cl),c;try{let l=s.slice(0,-1).reduce((d,h)=>d[h],t),u=s.reduce((d,h)=>d[h],t);switch(o){case"GET":c=u;break;case"SET":l[s.slice(-1)[0]]=cl(i.data.value),c=!0;break;case"APPLY":c=u.apply(l,a);break;case"CONSTRUCT":{let d=new u(...a);c=bde(d)}break;case"ENDPOINT":{let{port1:d,port2:h}=new MessageChannel;x9(t,h),c=vde(d,[d])}break;case"RELEASE":c=void 0;break;default:return}}catch(l){c={value:l,[fE]:0}}Promise.resolve(c).catch(l=>({value:l,[fE]:0})).then(l=>{let[u,d]=gE(l);e.postMessage(Object.assign(Object.assign({},u),{id:r}),d),o==="RELEASE"&&(e.removeEventListener("message",n),D9(e))})}),e.start&&e.start()}function mde(t){return t.constructor.name==="MessagePort"}function D9(t){mde(t)&&t.close()}function mE(t,e){return pE(t,[],e)}function db(t){if(t)throw new Error("Proxy has been released and is not useable")}function pE(t,e=[],n=function(){}){let i=!1,r=new Proxy(n,{get(o,s){if(db(i),s===hde)return()=>gu(t,{type:"RELEASE",path:e.map(a=>a.toString())}).then(()=>{D9(t),i=!0});if(s==="then"){if(e.length===0)return{then:()=>r};let a=gu(t,{type:"GET",path:e.map(c=>c.toString())}).then(cl);return a.then.bind(a)}return pE(t,[...e,s])},set(o,s,a){db(i);let[c,l]=gE(a);return gu(t,{type:"SET",path:[...e,s].map(u=>u.toString()),value:c},l).then(cl)},apply(o,s,a){db(i);let c=e[e.length-1];if(c===ude)return gu(t,{type:"ENDPOINT"}).then(cl);if(c==="bind")return pE(t,e.slice(0,-1));let[l,u]=_9(a);return gu(t,{type:"APPLY",path:e.map(d=>d.toString()),argumentList:l},u).then(cl)},construct(o,s){db(i);let[a,c]=_9(s);return gu(t,{type:"CONSTRUCT",path:e.map(l=>l.toString()),argumentList:a},c).then(cl)}});return r}function gde(t){return Array.prototype.concat.apply([],t)}function _9(t){let e=t.map(gE);return[e.map(n=>n[0]),gde(e.map(n=>n[1]))]}var E9=new WeakMap;function vde(t,e){return E9.set(t,e),t}function bde(t){return Object.assign(t,{[y9]:!0})}function gE(t){for(let[e,n]of C9)if(n.canHandle(t)){let[i,r]=n.serialize(t);return[{type:"HANDLER",name:e,value:i},r]}return[{type:"RAW",value:t},E9.get(t)||[]]}function cl(t){switch(t.type){case"HANDLER":return C9.get(t.name).deserialize(t.value);case"RAW":return t.value}}function gu(t,e,n){return new Promise(i=>{let r=_de();t.addEventListener("message",function o(s){!s.data||!s.data.id||s.data.id!==r||(t.removeEventListener("message",o),i(s.data))}),t.start&&t.start(),t.postMessage(Object.assign({id:r},e),n)})}function _de(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var ub=(()=>{class t{instance;transcriber(){if(!this.instance){let n=new Worker(new URL("worker-AFAHVE77.js",import.meta.url),{name:"transcriber",type:"module"});this.instance=mE(n)}return this.instance}static \u0275fac=function(i){return new(i||t)};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var wde=.01,Cde=4096,hb=(()=>{class t{audioContextProvider;transcriberProvider;zone;status;audioContext;timeRecorded=0;transcriber;stream;input;tickTime=wde;analyser;timer;subscription;fftBuffer;progressSource=new Vt(0);transcriptionResultSource=new K;analysisProgress;progress=this.progressSource.asObservable();transcriptionResult=this.transcriptionResultSource.asObservable();get sampleTime(){return 12}get blankTime(){return 0}get fundamental(){return"D"}get sampleRate(){return this.audioContext.sampleRate}get progressPercentage(){return 100*this.timeRecorded/(this.blankTime+this.sampleTime)}constructor(n,i,r){this.audioContextProvider=n,this.transcriberProvider=i,this.zone=r,this.transcriber=this.transcriberProvider.transcriber(),this.status=Ks.STOPPED}onTranscribed(n){this.zone.run(()=>this.transcriptionResultSource.next(n.transcription))}initAudio(){return Re(this,null,function*(){this.audioContext=yield this.audioContextProvider.audioContext();try{if(this.stream=yield navigator.mediaDevices.getUserMedia({audio:!0}),this.stream){this.status=Ks.INIT_SUCCEEDED;let n=Cde;this.input=this.audioContext.createMediaStreamSource(this.stream),this.analyser=this.audioContext.createAnalyser(),this.analyser.fftSize=n,this.input.connect(this.analyser)}}catch{this.status=Ks.INIT_FAILED}})}start(){if(!this.stream)return;let n={inputSampleRate:this.audioContext.sampleRate,sampleTime:this.sampleTime,blankTime:this.blankTime,tickTime:this.tickTime,fundamental:this.fundamental};this.transcriber.initialize(n).then(()=>this.status=Ks.RECORDING),this.fftBuffer=new Float32Array(this.analyser.frequencyBinCount),this.timer=Du(0,this.tickTime*1e3),this.subscription=this.timer.subscribe(()=>this.pushSpectrum())}pushSpectrum(){return Re(this,null,function*(){this.status==Ks.RECORDING&&(this.analyser.getFloatFrequencyData(this.fftBuffer),this.transcriber.pushSignal(this.fftBuffer),this.timeRecorded+=this.tickTime,this.zone.run(()=>this.progressSource.next(this.progressPercentage)),this.recordingComplete()&&(this.subscription.unsubscribe(),yield this.analyzeSignal()))})}recordingComplete(){return this.timeRecorded>=this.sampleTime}stop(){this.status=Ks.STOPPED,this.timeRecorded=0,this.stream&&(this.stream.getTracks().forEach(n=>n.stop()),this.stream=null),this.input.disconnect(this.analyser)}destroy(){this.stop()}analyzeSignal(){return Re(this,null,function*(){this.stop(),this.status=Ks.ANALYZING;let n=yield this.transcriber.transcribe();this.status=Ks.ANALYSIS_SUCCEEDED,this.onTranscribed(n)})}static \u0275fac=function(i){return new(i||t)(R(lb),R(ub),R(ee))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})(),Ks=function(t){return t.STOPPED="STOPPED",t.INIT="INIT",t.INIT_SUCCEEDED="INIT_SUCCEEDED",t.INIT_FAILED="INIT_FAILED",t.RECORDING="RECORDING",t.ANALYZING="ANALYZING",t.ANALYSIS_SUCCEEDED="ANALYSIS_SUCCEEDED",t.API_MISSING="API_MISSING",t}(Ks||{});var S9=(()=>{class t{router;recorder;progress;progressbarValue;constructor(n,i){this.router=n,this.recorder=i,this.recorder.progress.subscribe(r=>this.progress=r),this.recorder.transcriptionResult.subscribe(r=>{this.progress=0,this.progressbarValue=0,r&&this.router.navigate([`/match/${r}`])})}startRecording(){return Re(this,null,function*(){let i=qb(100).subscribe(r=>{this.progressbarValue=this.progress,this.progressbarValue>=100&&i.unsubscribe()});yield this.recorder.initAudio(),this.recorder.start()})}static \u0275fac=function(i){return new(i||t)(g(Ti),g(hb))};static \u0275cmp=re({type:t,selectors:[["app-record"]],decls:8,vars:1,consts:[[1,"mat-h2"],["id","progress"],["mode","determinate",3,"value"],["id","button-container"],["mat-raised-button","","color","primary",1,"search-button",3,"click"]],template:function(i,r){i&1&&(D(0,"div")(1,"h2",0),z(2,"Recognize"),I(),D(3,"div",1),xe(4,"mat-progress-bar",2),I(),D(5,"div",3)(6,"button",4),le("click",function(){return r.startRecording()}),z(7,"Start"),I()()()),i&2&&(A(4),ie("value",r.progressbarValue))},dependencies:[ei,vg],encapsulation:2})}return t})();var vE=(()=>{class t{dialogRef;data;constructor(n,i){this.dialogRef=n,this.data=i}onConfirm(n){this.dialogRef.close(n)}static \u0275fac=function(i){return new(i||t)(g(oo),g(ax))};static \u0275cmp=re({type:t,selectors:[["app-delete-repertoire-item"]],decls:10,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"form-container"],[1,"mat-body"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","",3,"click"],["mat-button","",3,"click"]],template:function(i,r){i&1&&(D(0,"h1",0),z(1,"Confirmation"),I(),D(2,"div",1)(3,"p",2),z(4),I()(),D(5,"div",3)(6,"button",4),le("click",function(){return r.onConfirm(!1)}),z(7,"Cancel"),I(),D(8,"button",5),le("click",function(){return r.onConfirm(!0)}),z(9,"Delete"),I()()),i&2&&(A(4),Pt(r.data))},dependencies:[ei,Dd,Sd,Ed],encapsulation:2})}return t})();function Dde(t,e){if(t&1){let n=st();D(0,"button",6),le("click",function(){let r=Se(n).$implicit,o=se();return Ie(o.selectRepertoire(r))}),z(1),I()}if(t&2){let n=e.$implicit;A(),Pt(n.name)}}function Ede(t,e){t&1&&(D(0,"th",19),z(1,"Title"),I())}function Sde(t,e){if(t&1&&(D(0,"td",20)(1,"div",21),z(2),I()()),t&2){let n=e.$implicit;A(),Q1("routerLink",n.uri),A(),Pt(n.title)}}function Ide(t,e){t&1&&(D(0,"th",19),z(1,"Times practiced"),I())}function kde(t,e){if(t&1&&(D(0,"td",20),z(1),I()),t&2){let n=e.$implicit;A(),Tt(" ",n.item.timesPracticed," ")}}function Mde(t,e){t&1&&(D(0,"th",19),z(1,"Last practiced"),I())}function Tde(t,e){if(t&1&&(D(0,"td",20),z(1),I()),t&2){let n=e.$implicit;A(),Tt(" ",n.item.lastPracticed?n.item.lastPracticed.toLocaleDateString():""," ")}}function Ade(t,e){t&1&&(D(0,"th",19),z(1,"Added"),I())}function Rde(t,e){if(t&1&&(D(0,"td",20),z(1),I()),t&2){let n=e.$implicit;A(),Tt(" ",n.item.added.toLocaleDateString()," ")}}function Ode(t,e){t&1&&(D(0,"th",22),z(1,"Action"),I())}function Nde(t,e){if(t&1){let n=st();D(0,"td",20)(1,"button",23)(2,"mat-icon"),z(3,"more_vert"),I()(),D(4,"mat-menu",null,1)(6,"button",6),le("click",function(){let r=Se(n).$implicit,o=se();return Ie(o.deleteTune(r))}),z(7,"Delete"),I()()()}if(t&2){let n=Pi(5);A(),ie("matMenuTriggerFor",n)}}function Fde(t,e){t&1&&xe(0,"tr",24)}function Pde(t,e){t&1&&xe(0,"tr",25)}var I9=(()=>{class t{dialog;repertoireRepository;index;sort;dataSource;tunes=[];displayedColumns=["title","timesPracticed","lastPracticed","added","action"];titleWithoutNumber=Qs;currentRepertoire;repertoireCollection;constructor(n,i,r){this.dialog=n,this.repertoireRepository=i,this.index=r}ngOnInit(){this.index.allReady.subscribe(()=>this.loadRepertoire())}newRepertoire(n){n&&(this.repertoireCollection.repertoires.push(n),this.selectRepertoire(n))}openNewRepertoireDialog(){this.dialog.open(g9).afterClosed().subscribe(i=>this.newRepertoire(i))}openDeleteRepertoireDialog(){this.dialog.open(vE,{data:`Delete "${this.currentRepertoire.name}" repertoire?`}).afterClosed().subscribe(i=>{i&&this.deleteCurrentRepertoire()})}selectRepertoire(n){this.currentRepertoire=n,this.prepareTunes()}repertoires(){return this.repertoireCollection===void 0?[]:this.repertoireCollection.repertoires}deleteTune(n){return Re(this,null,function*(){this.dialog.open(vE,{data:`Delete "${n.title}" from repertoire?`}).afterClosed().subscribe(r=>{r&&this.doDeleteTune(n)})})}doDeleteTune(n){return Re(this,null,function*(){yield this.repertoireRepository.deleteRepertoireItem(n.item.tune,this.currentRepertoire.name),this.prepareTunes()})}deleteCurrentRepertoire(){return Re(this,null,function*(){yield this.repertoireRepository.deleteRepertoire(this.currentRepertoire.name),yield this.loadRepertoire()})}loadRepertoire(){return Re(this,null,function*(){this.repertoireCollection=yield this.repertoireRepository.load();let n=yield this.repertoireRepository.findRepertoire();this.currentRepertoire=n,n&&this.prepareTunes()})}prepareTunes(){this.tunes=this.currentRepertoire.items.map(n=>this.toRepertoireTune(n)),this.dataSource=new Rg(this.tunes),this.dataSource.sort=this.sort}toRepertoireTune(n){let i=this.index.findEntryByTuneReference(n.tune);return{item:n,added:n.added,lastPracticed:n.lastPracticed,timesPracticed:n.timesPracticed,title:Qs(i.title),uri:`../tune/${n.tune.bookId}/${n.tune.tuneId}`}}static \u0275fac=function(i){return new(i||t)(g(Bc),g(rs),g(Ri))};static \u0275cmp=re({type:t,selectors:[["app-repertoire"]],viewQuery:function(i,r){if(i&1&&ze(Yh,7),i&2){let o;pe(o=me())&&(r.sort=o.first)}},decls:34,vars:7,consts:[["repertoireMenu","matMenu"],["tuneMenu","matMenu"],[1,"repertoire-header"],[1,"mat-h2"],["mat-mini-fab","","color","accent",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"mat-body"],["mat-table","","matSort","",1,"repertoire",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timesPracticed"],["matColumnDef","lastPracticed"],["matColumnDef","added"],["matColumnDef","action"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"tune-link",3,"routerLink"],["mat-header-cell",""],["mat-icon-button","","color","none",3,"matMenuTriggerFor"],["mat-header-row",""],["mat-row",""]],template:function(i,r){if(i&1){let o=st();D(0,"div")(1,"div",2)(2,"h2",3),z(3),I(),D(4,"button",4)(5,"mat-icon"),z(6,"more_vert"),I()(),D(7,"mat-menu",null,0),ve(9,Dde,2,1,"button",5),D(10,"button",6),le("click",function(){return Se(o),Ie(r.openNewRepertoireDialog())}),z(11,"New repertoire"),I(),D(12,"button",6),le("click",function(){return Se(o),Ie(r.openDeleteRepertoireDialog())}),z(13,"Delete current repertoire"),I()()(),D(14,"p",7),z(15),I(),D(16,"table",8),Po(17,9),ve(18,Ede,2,0,"th",10)(19,Sde,3,2,"td",11),Lo(),Po(20,12),ve(21,Ide,2,0,"th",10)(22,kde,2,1,"td",11),Lo(),Po(23,13),ve(24,Mde,2,0,"th",10)(25,Tde,2,1,"td",11),Lo(),Po(26,14),ve(27,Ade,2,0,"th",10)(28,Rde,2,1,"td",11),Lo(),Po(29,15),ve(30,Ode,2,0,"th",16)(31,Nde,8,1,"td",11),Lo(),ve(32,Fde,1,0,"tr",17)(33,Pde,1,0,"tr",18),I()()}if(i&2){let o=Pi(8);A(3),Tt("",r.currentRepertoire?r.currentRepertoire.name+" ":"","Repertoire"),A(),ie("matMenuTriggerFor",o),A(5),ie("ngForOf",r.repertoires()),A(6),Tt("",r.tunes.length," tunes"),A(),ie("dataSource",r.dataSource),A(16),ie("matHeaderRowDef",r.displayedColumns),A(),ie("matRowDefColumns",r.displayedColumns)}},dependencies:[xn,Ns,Z3,Go,kd,Wh,iO,Yh,xO,RO,NO,VO,FO,OO,BO,PO,LO,jO,HO,xr],encapsulation:2})}return t})();function Jf(t){if(t)return t.split(/\s*,\s*/).filter(e=>e.length>0)}var fb=class{title;rhythm;key;books;tags;constructor(e,n,i,r,o){this.title=e,this.rhythm=n,this.key=i,this.books=r,this.tags=o}matchesRef(e){return this.allBooks()?!0:this.books.includes(e.descriptor.id)}matchesName(e){return this.allBooks()?!0:this.books.includes(e)}allBooks(){return!this.books||this.books.length===0}};var k9=Pr(Gs());var Lde=["snippet"],M9=(()=>{class t{zone;tune="";div;rendered=!1;constructor(n){this.zone=n}ngAfterViewInit(){this.renderSnippet()}ngOnChanges(){this.rendered=!1,this.zone.runOutsideAngular(()=>this.renderSnippet())}renderSnippet(){if(this.div!==void 0&&this.tune&&!this.rendered){let n=p9(this.tune);k9.default.renderAbc(this.div.nativeElement,n,{scale:.8,paddingtop:0,paddingbottom:0}),this.rendered=!0}}static \u0275fac=function(i){return new(i||t)(g(ee))};static \u0275cmp=re({type:t,selectors:[["app-snippet-view"]],viewQuery:function(i,r){if(i&1&&ze(Lde,5),i&2){let o;pe(o=me())&&(r.div=o.first)}},inputs:{tune:"tune"},features:[lt],decls:2,vars:0,consts:[["snippet",""]],template:function(i,r){i&1&&xe(0,"div",null,0)},encapsulation:2})}return t})();function Bde(t,e){if(t&1&&(D(0,"mat-option",16),z(1),I()),t&2){let n=e.$implicit;ie("value",n.descriptor.id),A(),Tt("",n.descriptor.name," ")}}function jde(t,e){t&1&&(D(0,"div",17)(1,"p",18),z(2,"No matching tunes"),I()())}function Hde(t,e){if(t&1&&(D(0,"div",25),z(1),I()),t&2){let n=se().$implicit,i=se(2);A(),Tt("Tags: ",i.getTags(n),"")}}function zde(t,e){if(t&1){let n=st();D(0,"tr",22)(1,"td",23)(2,"div")(3,"span",24),le("click",function(){let r=Se(n).$implicit,o=se(2);return Ie(o.navigateToTune(r))}),z(4),I()(),D(5,"div",25),z(6),I(),D(7,"div",25),z(8),I(),ve(9,Hde,2,1,"div",26),I(),D(10,"td",27),le("click",function(){let r=Se(n).$implicit,o=se(2);return Ie(o.navigateToTune(r))}),xe(11,"app-snippet-view",28),I()()}if(t&2){let n=e.$implicit,i=se(2);A(4),Pt(n.title),A(2),K1("",i.getBookName(n)," #",n.id,""),A(2),Pt(i.getRhythmAndKey(n)),A(),ie("ngIf",i.hasTags(n)),A(2),ie("tune",i.getAbc(n))}}function Ude(t,e){if(t&1&&(D(0,"div",19)(1,"p",18),z(2),I(),D(3,"cdk-virtual-scroll-viewport",20)(4,"table")(5,"tbody"),ve(6,zde,12,6,"tr",21),I()()()()),t&2){let n=se();A(2),Tt("",n.tunes.length," tunes"),A(4),ie("cdkVirtualForOf",n.tunes)("cdkVirtualForTemplateCacheSize",0)}}var qde=(()=>{class t extends N0{contentScrolledSource=new K;constructor(){super(100,800,1200),this.contentScrolledSource.asObservable().pipe(Hr(200)).subscribe(()=>{super.onContentScrolled()})}onContentScrolled(){this.contentScrolledSource.next("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})(),T9=(()=>{class t{tuneBookIndex;route;router;query;rhythm;key;tags;tunes=[];selectedBooks=[];searchCompleted=!1;indexReady=!1;queryParams;constructor(n,i,r){this.tuneBookIndex=n,this.route=i,this.router=r}ngOnInit(){this.selectedBooks=[this.tuneBookIndex.defaultBook],this.route.queryParamMap.subscribe(n=>this.consumeParameters(n)),this.tuneBookIndex.allReady.subscribe(n=>{this.indexReady=n,this.extractParamsAndRunQuery()})}extractParamsAndRunQuery(){this.indexReady&&this.queryParams.keys.length>0&&(this.query=this.queryParams.get("q"),this.key=this.queryParams.get("key"),this.rhythm=this.queryParams.get("rhythm"),this.selectedBooks=this.queryParams.getAll("book"),this.tags=this.queryParams.getAll("tag").join(", "),this.runQuery())}consumeParameters(n){this.queryParams=n,this.extractParamsAndRunQuery()}noResults(){return this.searchCompleted&&this.tunes.length===0}uniqueResult(){return this.tunes.length===1}multipleResults(){return this.tunes.length>=2}currentTune(){return this.uniqueResult()?this.tuneBookIndex.getAbc(this.tunes[0]):""}findTunes(){this.router.navigate(["/search"],{queryParams:{q:this.query,rhythm:this.rhythm,key:this.key,book:this.selectedBooks,tag:Jf(this.tags)}})}runQuery(){(this.selectedBooks===void 0||this.selectedBooks.length===0)&&(this.selectedBooks=[this.tuneBookIndex.getBooks()[0].descriptor.id]);let n=this.rhythm&&this.rhythm.toLowerCase(),i=new fb(this.query,n,this.key,this.selectedBooks,Jf(this.tags));this.tunes=this.tuneBookIndex.findTunes(i),this.searchCompleted=!0,this.uniqueResult()&&this.navigateToTune(this.tunes[0])}navigateToTune(n){let i=n.book,r=n.id;this.router.navigate([`/tune/${i}/${r}`])}getAbc(n){return this.tuneBookIndex.getAbc(n)}getBookName(n){return this.tuneBookIndex.getBook(n).descriptor.name}getRhythmAndKey(n){return n.rhythm===void 0&&n.key===void 0?"":n.key===void 0?n.rhythm:n.rhythm===void 0?n.key:`${n.rhythm} in ${n.key}`}hasTags(n){return n.tags&&n.tags.length>0}getTags(n){return n.tags.join(", ")}books(){return this.tuneBookIndex.getBooks()}static \u0275fac=function(i){return new(i||t)(g(Ri),g(si),g(Ti))};static \u0275cmp=re({type:t,selectors:[["app-search"]],features:[Ye([{provide:hC,useClass:qde}])],decls:32,vars:9,consts:[[1,"search-panel"],[3,"expanded"],[1,"query"],["matInput","","name","query","type","text",3,"ngModelChange","ngModel"],[1,"rhythm"],["matInput","","name","rhythm","type","text",3,"ngModelChange","ngModel"],[1,"key"],["matInput","","name","key","type","text",3,"ngModelChange","ngModel"],[1,"tunebooks"],["multiple","",3,"valueChange","value"],[3,"value",4,"ngFor","ngForOf"],[1,"tags"],["matInput","","name","tags","type","text",3,"ngModelChange","ngModel"],["mat-raised-button","","label","Search","color","primary",1,"search-button",3,"click"],["id","noMatches",4,"ngIf"],["id","overview",4,"ngIf"],[3,"value"],["id","noMatches"],[1,"mat-body"],["id","overview"],[1,"search-result-viewport"],["class","tune-preview",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTemplateCacheSize"],[1,"tune-preview"],[1,"tune-link","tune-title"],[1,"tune-link","mat-body",3,"click"],[1,"mat-small"],["class","mat-small",4,"ngIf"],[1,"tune-link",3,"click"],[3,"tune"]],template:function(i,r){i&1&&(D(0,"div",0)(1,"mat-expansion-panel",1)(2,"mat-expansion-panel-header")(3,"mat-panel-title"),z(4,"Find tunes"),I()(),D(5,"form")(6,"mat-form-field",2)(7,"mat-label"),z(8,"Tune number or part of title"),I(),D(9,"input",3),ni("ngModelChange",function(s){return oi(r.query,s)||(r.query=s),s}),I()(),D(10,"mat-form-field",4)(11,"mat-label"),z(12,"Rhythm"),I(),D(13,"input",5),ni("ngModelChange",function(s){return oi(r.rhythm,s)||(r.rhythm=s),s}),I()(),D(14,"mat-form-field",6)(15,"mat-label"),z(16,"Key"),I(),D(17,"input",7),ni("ngModelChange",function(s){return oi(r.key,s)||(r.key=s),s}),I()(),D(18,"mat-form-field",8)(19,"mat-label"),z(20,"Tune books"),I(),D(21,"mat-select",9),ni("valueChange",function(s){return oi(r.selectedBooks,s)||(r.selectedBooks=s),s}),ve(22,Bde,2,2,"mat-option",10),I()(),D(23,"mat-form-field",11)(24,"mat-label"),z(25,"Tags"),I(),D(26,"input",12),ni("ngModelChange",function(s){return oi(r.tags,s)||(r.tags=s),s}),I()(),D(27,"mat-action-row")(28,"button",13),le("click",function(){return r.findTunes()}),z(29,"Search"),I()()()()(),ve(30,jde,3,0,"div",14)(31,Ude,7,3,"div",15)),i&2&&(A(),ie("expanded",!r.searchCompleted),A(8),ii("ngModel",r.query),A(4),ii("ngModel",r.rhythm),A(4),ii("ngModel",r.key),A(4),ii("value",r.selectedBooks),A(),ie("ngForOf",r.books()),A(4),ii("ngModel",r.tags),A(4),ie("ngIf",r.noResults()),A(),ie("ngIf",r.multipleResults()))},dependencies:[xn,jo,Oa,Gi,kn,Ra,io,Yn,qo,ei,cx,VR,BR,jR,Rn,Wo,On,bg,bA,fC,M9],encapsulation:2})}return t})();var pb=Pr(Gs());var A9=(()=>{class t{element;$element;caret=new oe;constructor(n){this.element=n}ngAfterViewInit(){if(this.$element=this.element.nativeElement,!(this.contentEditable()||this.isTextarea()))throw new Error("appCaretTracker directive can be used either on textarea or contenteditable element only")}contentEditable(){return this.$element.isContentEditable&&this.$element.getAttribute("contenteditable")==="true"}onFocus(n){this.emitEvent(n)}onKeyup(n){this.emitEvent(n)}onMouseup(n){this.onFocus(n)}emitEvent(n){this.caret.emit({textPos:this.getTextPos(),event:n})}getTextPos(){return this.isTextarea()?this.$element.selectionStart:-1}isTextarea(n){let i=n||this.$element;return i.tagName==="TEXTAREA"&&i instanceof HTMLTextAreaElement}static \u0275fac=function(i){return new(i||t)(g(ce))};static \u0275dir=te({type:t,selectors:[["","appCaretTracker",""]],hostBindings:function(i,r){i&1&&le("focus",function(s){return r.onFocus(s)})("keyup",function(s){return r.onKeyup(s)})("mouseup",function(s){return r.onMouseup(s)})},outputs:{caret:"caret"}})}return t})();var Wde=["notation"],R9=(()=>{class t{index;collectionService;googleDrive;pdfService;route;snackBar;abc="";bookId;bookRef;set tune(n){this.abc=n}get tune(){return this.abc}div;constructor(n,i,r,o,s,a){this.index=n,this.collectionService=i,this.googleDrive=r,this.pdfService=o,this.route=s,this.snackBar=a,this.route.paramMap.subscribe(c=>{this.bookId=c.get("id"),this.bookRef=this.index.getBookById(this.bookId),this.tune=this.bookRef.abc}),this.index.tuneBookReady.subscribe(c=>{c===this.bookId&&(this.bookRef=this.index.getBookById(this.bookId),this.tune=this.bookRef.abc,this.renderNotation(this.abc))})}ngAfterViewInit(){this.renderNotation(this.abc)}onCaret(n){this.renderNotation(this.extractTuneAtCaret(n.textPos))}save(){return Re(this,null,function*(){yield this.googleDrive.updateTextFile(this.bookRef.descriptor.uri,this.tune),this.bookRef.abc=this.tune,this.bookRef.tuneBook=new pb.TuneBook(this.tune),this.index.updateTuneBook(this.bookRef),this.snackBar.open(`Updated ${this.bookRef.descriptor.name} on Google Drive`,"Dismiss",{duration:3e3})})}delete(){return Re(this,null,function*(){yield this.collectionService.removeBook(this.bookId),this.snackBar.open(`Removed ${this.bookRef.descriptor.name} from collection`,"Dismiss",{duration:3e3})})}exportAsPdf(){return Re(this,null,function*(){this.pdfService.saveAsPdf(this.tune),this.snackBar.open("PDF will be displayed in separate window","Dismiss",{duration:3e3})})}renderNotation(n){this.div!==void 0&&n.length>0&&pb.default.renderAbc(this.div.nativeElement,n,{paddingleft:0,paddingright:0,paddingtop:0,paddingbottom:0,staffwidth:1e3,responsive:"resize"})}extractTuneAtCaret(n){let i=Math.max(0,this.abc.lastIndexOf("X:",n)),r=this.abc.indexOf("X:",i+2);return r===-1&&(r=this.abc.length),this.abc.substring(i,r)}static \u0275fac=function(i){return new(i||t)(g(Ri),g(Nr),g(Or),g(Za),g(si),g(Ps))};static \u0275cmp=re({type:t,selectors:[["app-tune-editor"]],viewQuery:function(i,r){if(i&1&&ze(Wde,5),i&2){let o;pe(o=me())&&(r.div=o.first)}},inputs:{tune:"tune"},decls:12,vars:1,consts:[["notation",""],[1,"example-form"],[1,"editor"],["appCaretTracker","","matInput","","name","abc-area","placeholder","Enter ABC notation",3,"caret","ngModelChange","ngModel"],["mat-raised-button","","label","Save","color","primary",1,"search-button",3,"click"],["mat-raised-button","","label","Delete","color","primary",1,"tune-button",3,"click"],["mat-raised-button","","color","primary",1,"tune-button",3,"click"],[1,"tune-view"]],template:function(i,r){if(i&1){let o=st();D(0,"form",1)(1,"mat-form-field",2)(2,"textarea",3),le("caret",function(a){return Se(o),Ie(r.onCaret(a))}),ni("ngModelChange",function(a){return Se(o),oi(r.tune,a)||(r.tune=a),Ie(a)}),I()(),D(3,"button",4),le("click",function(){return Se(o),Ie(r.save())}),z(4,"Save"),I(),D(5,"button",5),le("click",function(){return Se(o),Ie(r.delete())}),z(6,"Delete"),I(),D(7,"button",6),le("click",function(){return Se(o),Ie(r.exportAsPdf())}),D(8,"mat-icon"),z(9,"print"),I()()(),xe(10,"div",7,0)}i&2&&(A(2),ii("ngModel",r.tune))},dependencies:[Oa,Gi,kn,Ra,io,Yn,ei,Rn,Go,On,A9],encapsulation:2})}return t})();var mb=Pr(Gs());var Gde=["midiplayer"],O9=(()=>{class t{bpm=100;abc="";parsedTune;synthControl;tempoSource=new Vt(100);div;set tune(n){this.abc=n,this.parsedTune=mb.default.renderAbc("*",this.abc)[0]}get tune(){return this.abc}set tempo(n){this.bpm=n,this.tempoSource.next(n)}get tempo(){return this.bpm}constructor(){this.synthControl=new mb.default.synth.SynthController,this.tempoSource.pipe(B_(500,bp,{trailing:!0})).subscribe(n=>{this.synthControl.setWarp(n)})}ngAfterViewInit(){this.renderMidiPlayer()}ngOnChanges(){this.renderMidiPlayer()}renderMidiPlayer(){return Re(this,null,function*(){if(this.div!==void 0&&this.tune.length>0)return console.log("reload player"),this.synthControl.load(this.div.nativeElement,null,{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0,displayWarp:!0}),this.parsedTune.metaText.tempo={bpm:this.bpm,startChar:0,endChar:0},this.synthControl.setTune(this.parsedTune,!0,{chordsOff:!0,program:this.instrumentByName("flute")})})}instrumentByName(n){return mb.default.synth.instrumentIndexToName.indexOf(n.toLowerCase())}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=re({type:t,selectors:[["app-tune-player"]],viewQuery:function(i,r){if(i&1&&ze(Gde,7),i&2){let o;pe(o=me())&&(r.div=o.first)}},inputs:{tune:"tune",tempo:"tempo"},features:[lt],decls:2,vars:0,consts:[["midiplayer",""],[1,"midi-player"]],template:function(i,r){i&1&&xe(0,"div",1,0)},encapsulation:2})}return t})();var N9=Pr(Gs());var Qde=["notation"],F9=(()=>{class t{tune="";div;ngAfterViewInit(){this.renderNotation()}ngOnChanges(){this.renderNotation()}renderNotation(){this.div!==void 0&&this.tune.length>0&&N9.default.renderAbc(this.div.nativeElement,this.includeNumberInTitle(this.tune),{paddingleft:0,paddingright:0,paddingtop:0,paddingbottom:0,staffwidth:1e3,responsive:"resize"})}includeNumberInTitle(n){if(n.match(/^T:(\s*)(\d+[a-z]?\s*)/m))return n;let r=n.match(/^X:(\s*)(\w+)/m);if(!r)return;let o=r[2],s=n.match(/^T:(\s*)(.+?)(, The)?$/m),a=s[2],c=s[3]?"The ":"";return n.replace(s[0],`T: ${o} ${c}${a}`)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=re({type:t,selectors:[["app-tune-view"]],viewQuery:function(i,r){if(i&1&&ze(Qde,5),i&2){let o;pe(o=me())&&(r.div=o.first)}},inputs:{tune:"tune"},features:[lt],decls:2,vars:0,consts:[["notation",""],[1,"tune-view"]],template:function(i,r){i&1&&xe(0,"div",1,0)},encapsulation:2})}return t})();var P9=(()=>{class t{index;googleAuth;pdfService;route;snackBar;dialog;collectionService;repertoireRepository;tune="";allTags="";signedIn=!1;prevRef;nextRef;bookId;ref;constructor(n,i,r,o,s,a,c,l){this.index=n,this.googleAuth=i,this.pdfService=r,this.route=o,this.snackBar=s,this.dialog=a,this.collectionService=c,this.repertoireRepository=l,this.googleAuth.authState.subscribe(u=>{this.signedIn=!!u})}ngOnInit(){this.route.paramMap.subscribe(n=>this.consumeRef(n)),this.index.tuneBookReady.subscribe(()=>{this.displayTune(this.bookId,this.ref)})}save(){return Re(this,null,function*(){let n=Jf(this.allTags),i=yield this.collectionService.setTagsForTune(this.ref,this.bookId,n);return this.snackBar.open("Updated tags on Google Drive","Dismiss",{duration:3e3}),i})}openDialog(){return Re(this,null,function*(){this.dialog.open(a9).afterClosed().subscribe(i=>this.addToRepertoire(i))})}exportAsPdf(){return Re(this,null,function*(){this.pdfService.saveAsPdf(this.tune),this.snackBar.open("PDF will be displayed in separate window","Dismiss",{duration:3e3})})}tuneForDisplay(){return`%%stretchlast -`+this.tune}addToRepertoire(n){return Re(this,null,function*(){if(!n)return;let i={bookId:this.bookId,tuneId:this.ref};yield this.repertoireRepository.addRepertoireItem(i,n),this.snackBar.open("Added to repertoire on Google Drive","Dismiss",{duration:3e3})})}consumeRef(n){this.ref=n.get("ref"),this.bookId=n.get("bookId"),this.displayTune(this.bookId,this.ref)}displayTune(n,i){if(i!==void 0&&this.index.isReady()){let r=this.index.findEntryByTuneReference({bookId:n,tuneId:i});if(r){this.tune=this.index.getAbc(r),r.tags?this.allTags=r.tags.join(", "):this.allTags="";let o=this.index.getBookById(n);this.prevRef=void 0,this.nextRef=void 0;let s=r.pos-1;s>=0&&(this.prevRef=o.tuneBook.tunes[s].id);let a=r.pos+1;a{class t{index;route;entries=[];bookId;titleWithoutNumber=Qs;constructor(n,i){this.index=n,this.route=i,this.index.tuneBookReady.subscribe(r=>this.onReady(r)),this.route.paramMap.subscribe(r=>{this.bookId=r.get("id"),this.onReady(this.bookId)})}bookName(){return this.index.getBookById(this.bookId)?.descriptor.name}onReady(n){n==this.bookId&&(this.entries=this.index.findAllTunesInBook(n))}static \u0275fac=function(i){return new(i||t)(g(Ri),g(si))};static \u0275cmp=re({type:t,selectors:[["app-tunes-list"]],decls:5,vars:2,consts:[[1,"mat-h2"],[4,"ngFor","ngForOf"],[1,"tune-id",3,"routerLink"],[1,"tune-link",3,"routerLink"]],template:function(i,r){i&1&&(D(0,"div")(1,"h2",0),z(2),I(),D(3,"mat-list"),ve(4,Xde,5,8,"mat-list-item",1),I()()),i&2&&(A(2),Pt(r.bookName()),A(2),ie("ngForOf",r.entries))},dependencies:[xn,ja,Yo,xr],encapsulation:2})}return t})();var V9=(()=>{class t{handlers={};shouldDetach(n){return!0}store(n,i){this.handlers[n.url.join("/")||n.parent.url.join("/")]=i}shouldAttach(n){return!!this.handlers[n.url.join("/")||n.parent.url.join("/")]}retrieve(n){return this.handlers[n.url.join("/")||n.parent.url.join("/")]}shouldReuseRoute(n,i){return n.routeConfig===i.routeConfig}static \u0275fac=function(i){return new(i||t)};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var Zde=[{path:"about",component:o9},{path:"books",component:l9},{path:"createBook",component:d9},{path:"edit/:id",component:R9},{path:"book/:id",component:L9},{path:"print/:id",component:c9},{path:"login",component:u9},{path:"logout",component:h9},{path:"match/:transcription",component:m9},{path:"practice",component:b9},{path:"record",component:S9},{path:"repertoire",component:I9},{path:"search",component:T9},{path:"tune/:bookId/:ref",component:P9},{path:"",redirectTo:"/search",pathMatch:"full"}],Jde="98237286064-bf0vbgpqqklhj434vifvfafvtckaja12.apps.googleusercontent.com",eue=["https://www.googleapis.com/discovery/v1/apis/drive/v3/rest"],tue="https://www.googleapis.com/auth/drive.appfolder https://www.googleapis.com/auth/drive.file",iue={client_id:Jde,discoveryDocs:eue,scope:tue,prompt:""},B9=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=_e({type:t,bootstrap:[r9]});static \u0275inj=be({providers:[lb,hb,Or,eb,Za,cb,rs,ob,{provide:jD,useClass:V9},ub,Nr,Ri,Zv,_T(yT())],imports:[yN,i0,y4.forRoot({provide:Ef,useValue:iue}),GA,fA,G3,wd,_R,kR,HR,Fc,GR,iR,JR,nO,_3,oO,lO,pO,bO,wO,DO,zO,qO,YA,d4.forRoot(Zde),Ec,g4.register("ngsw-worker.js",{enabled:vv.production})]})}return t})();(0,gb.configure)({level:gb.LogLevel.INFO,virtualConsole:!1});vv.production&&void 0;IT().bootstrapModule(B9).catch(t=>console.error(t)); +`)}function Qs(t){let e=t.replace(/^\d+[a-z]?\s*/,"");return e.endsWith(", The")&&(e=e.replace(/, The$/,""),e="The "+e),e}var ob=(()=>{class t{httpClient;constructor(n){this.httpClient=n}findBestMatches(n){return Re(this,null,function*(){return this.httpClient.get("https://matt-vkhoermztq-ew.a.run.app/match/"+n).toPromise()})}static \u0275fac=function(i){return new(i||t)(R(Ss))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();function ide(t,e){t&1&&xe(0,"mat-progress-bar",5)}function nde(t,e){if(t&1&&(D(0,"mat-list-item")(1,"div",6)(2,"div",7)(3,"a",8),z(4),I(),D(5,"div",9),z(6),I()(),D(7,"div",10),z(8),I()()()),t&2){let n=e.$implicit,i=se();A(3),ba("href","https://thesession.org/tunes/",n.tune,"#setting",n.setting,"",A1),A(),jt(i.title(n)),A(2),jt(i.getRhythmAndKey(n)),A(2),Ct(" ",i.confidencePercentage(n)," % ")}}var m9=(()=>{class t{route;tuneMatcher;tunes;constructor(n,i){this.route=n,this.tuneMatcher=i,this.route.paramMap.subscribe(r=>this.matchTranscription(r))}matchTranscription(n){return Re(this,null,function*(){let i=n.get("transcription");this.tunes=yield this.tuneMatcher.findBestMatches(i)})}confidencePercentage(n){return Math.round(n.confidence*100)}title(n){return Qs(n.name)}getRhythmAndKey(n){return`${n.rhythm} in ${n.key}`}static \u0275fac=function(i){return new(i||t)(g(si),g(ob))};static \u0275cmp=re({type:t,selectors:[["app-matcher"]],decls:6,vars:2,consts:[[1,"mat-h2"],["id","progress"],["mode","indeterminate",4,"ngIf"],[1,"tune-list"],[4,"ngFor","ngForOf"],["mode","indeterminate"],["matLine",""],[1,"tune-item"],["target","thesession",1,"tune-link","md-accent",3,"href"],[1,"mat-small"],[1,"confidence"]],template:function(i,r){i&1&&(D(0,"h2",0),z(1,"Matching tunes"),I(),D(2,"div",1),ve(3,ide,1,0,"mat-progress-bar",2),I(),D(4,"mat-list",3),ve(5,nde,9,6,"mat-list-item",4),I()),i&2&&(A(3),ie("ngIf",!r.tunes),A(2),ie("ngForOf",r.tunes))},dependencies:[xn,jo,ja,Yo,vg],encapsulation:2})}return t})();var g9=(()=>{class t{dialogRef;instrument=new Sc;maxAge=new Sc(30);numTunesPerAssignment=new Sc(10);constructor(n){this.dialogRef=n}onNoClick(){this.dialogRef.close(void 0)}repertoire(){return{name:this.instrument.value,maxAge:this.maxAge.value,numTunesPerAssignment:this.numTunesPerAssignment.value,items:[]}}static \u0275fac=function(i){return new(i||t)(g(oo))};static \u0275cmp=re({type:t,selectors:[["app-new-repertoire"]],decls:14,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"form-container"],["matInput","","name","name","placeholder","Name",3,"formControl"],["matInput","","name","maxAge","placeholder","Maximum age in days",3,"formControl"],["matInput","","name","numTunes","placeholder","Number of tunes per assignment",3,"formControl"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(i,r){i&1&&(D(0,"h1",0),z(1,"New repertoire"),I(),D(2,"div",1)(3,"mat-form-field"),xe(4,"input",2),I(),D(5,"mat-form-field"),xe(6,"input",3),I(),D(7,"mat-form-field"),xe(8,"input",4),I()(),D(9,"div",5)(10,"button",6),le("click",function(){return r.onNoClick()}),z(11,"Cancel"),I(),D(12,"button",7),z(13,"Ok"),I()()),i&2&&(A(4),ie("formControl",r.instrument),A(2),ie("formControl",r.maxAge),A(2),ie("formControl",r.numTunesPerAssignment),A(4),ie("mat-dialog-close",r.repertoire()))},dependencies:[Gi,kn,ei,fg,Dd,Sd,Ed,Rn,On,_h],encapsulation:2})}return t})();function dE(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function bo(t,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function Ja(t){bo(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function mu(t,e){bo(2,arguments);var n=Ja(t),i=dE(e);return isNaN(i)?new Date(NaN):(i&&n.setDate(n.getDate()+i),n)}function sb(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function ab(t){bo(1,arguments);var e=Ja(t);return e.setHours(0,0,0,0),e}var rde=864e5;function uE(t,e){bo(2,arguments);var n=ab(t),i=ab(e),r=n.getTime()-sb(n),o=i.getTime()-sb(i);return Math.round((r-o)/rde)}function v9(t,e){var n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function al(t,e){bo(2,arguments);var n=Ja(t),i=Ja(e),r=v9(n,i),o=Math.abs(uE(n,i));n.setDate(n.getDate()-r*o);var s=+(v9(n,i)===-r),a=r*(o-s);return a===0?0:a}function hE(t){let e=Math.trunc(Math.random()*3)-1;return mu(t,e)}var cb=(()=>{class t{buildPracticeAssignment(n,i){let r=[...n.items];r.forEach(a=>this.computeDueDate(a,n,i)),r.sort((a,c)=>al(a.due,c.due));let o=r.filter(a=>this.isDueOnDay(a,i));if(o.length>=n.numTunesPerAssignment){let a=o.slice(0,n.numTunesPerAssignment),l=o.slice(n.numTunesPerAssignment+1).filter(u=>u.timesPracticed<=nb.length);if(l.length>0){l.sort((h,f)=>h.timesPracticed-f.timesPracticed);let u=l.slice(0,n.numTunesPerAssignment/2),d=a.slice(0,n.numTunesPerAssignment-u.length);return u.concat(d)}else return o.slice(0,n.numTunesPerAssignment)}let s=r.filter(a=>!this.isDueOnDay(a,i)&&!this.isRecentOnDay(a,i));return o.concat(s.slice(0,n.numTunesPerAssignment-o.length))}isDueOnDay(n,i){return al(n.due,i)<=0}isRecentOnDay(n,i){return al(i,n.added)<=30}computeDueDate(n,i,r){if(al(hE(r||new Date),n.added)>i.maxAge||n.timesPracticed>=nb.length){let s=n.lastPracticed||n.added;n.due=mu(hE(s),i.maxAge)}else if(n.timesPracticed>0){let s=nb[n.timesPracticed];n.due=mu(hE(n.lastPracticed),s)}else n.due=n.added}markAsPracticed(n,i){n.forEach(r=>r.practicedOn(i))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();function sde(t,e){if(t&1&&(D(0,"mat-option",12),z(1),I()),t&2){let n=e.$implicit;ie("value",n.name),A(),Ct(" ",n.name," ")}}function ade(t,e){if(t&1){let n=st();D(0,"div",3)(1,"div",4)(2,"mat-form-field")(3,"mat-label"),z(4,"Repertoire"),I(),D(5,"mat-select",5),ni("valueChange",function(r){Se(n);let o=se();return oi(o.repertoire,r)||(o.repertoire=r),Ie(r)}),ve(6,sde,2,2,"mat-option",6),I()(),D(7,"mat-form-field",7)(8,"input",8),ni("ngModelChange",function(r){Se(n);let o=se();return oi(o.maxAge,r)||(o.maxAge=r),Ie(r)}),I()(),D(9,"mat-form-field",9)(10,"input",10),ni("ngModelChange",function(r){Se(n);let o=se();return oi(o.numTunes,r)||(o.numTunes=r),Ie(r)}),I()()(),D(11,"button",11),le("click",function(){Se(n);let r=se();return Ie(r.buildAssignment())}),z(12,"Get assignment"),I()()}if(t&2){let n=se();A(5),ii("value",n.repertoire),A(),ie("ngForOf",n.repertoires()),A(2),ii("ngModel",n.maxAge),A(2),ii("ngModel",n.numTunes)}}function cde(t,e){if(t&1&&(D(0,"mat-list-item")(1,"div",16),z(2),I()()),t&2){let n=e.$implicit,i=se(2);A(),ba("routerLink","../tune/",n.book,"/",n.id,""),A(),Ct(" ",i.titleWithoutNumber(n.title),"")}}function lde(t,e){if(t&1){let n=st();D(0,"div",13)(1,"mat-list"),ve(2,cde,3,4,"mat-list-item",14),I(),D(3,"button",15),le("click",function(){Se(n);let r=se();return Ie(r.markAsPracticed())}),z(4,"All done"),I()()}if(t&2){let n=se();A(2),ie("ngForOf",n.entries),A(),ie("disabled",n.saved)}}var b9=(()=>{class t{snackBar;repertoireRepository;googleAuth;practiceService;index;assignment;entries;repertoire;numTunes;maxAge;saved=!1;titleWithoutNumber=Qs;repertoireCollection;constructor(n,i,r,o,s){this.snackBar=n,this.repertoireRepository=i,this.googleAuth=r,this.practiceService=o,this.index=s,this.googleAuth.authState.subscribe(()=>this.loadRepertoires())}loadRepertoires(){return Re(this,null,function*(){this.repertoireCollection=yield this.repertoireRepository.load(),this.repertoireCollection.current&&(this.repertoire=this.repertoireCollection.current);let n=yield this.repertoireRepository.findRepertoire();n&&(this.numTunes=n.numTunesPerAssignment,this.maxAge=n.maxAge,this.repertoireRepository.currentAssignment&&(this.assignment=this.repertoireRepository.currentAssignment,this.entries=this.assignment.map(i=>this.index.findEntryByTuneReference(i.tune))))})}hasAssignment(){return this.entries!==void 0}buildAssignment(){return Re(this,null,function*(){let n=yield this.repertoireRepository.findRepertoire(this.repertoire);this.numTunes>0&&(n.numTunesPerAssignment=this.numTunes,n.maxAge=this.maxAge,this.repertoireCollection.current=this.repertoire),this.assignment=this.practiceService.buildPracticeAssignment(n,new Date),this.repertoireRepository.currentAssignment=this.assignment,this.entries=this.assignment.map(i=>this.index.findEntryByTuneReference(i.tune))})}markAsPracticed(){return Re(this,null,function*(){this.practiceService.markAsPracticed(this.assignment,new Date),(yield this.repertoireRepository.save())?(this.saved=!0,this.snackBar.open("Updated repertoire on Google Drive","Dismiss",{duration:3e3})):this.snackBar.open("ERROR SAVING REPERTOIRE","Dismiss",{duration:3e3})})}repertoires(){return this.repertoireCollection===void 0?[]:this.repertoireCollection.repertoires}static \u0275fac=function(i){return new(i||t)(g(Ps),g(rs),g(Nn),g(cb),g(Ri))};static \u0275cmp=re({type:t,selectors:[["app-practice"]],decls:5,vars:2,consts:[[1,"mat-h2"],["id","initial",4,"ngIf"],["id","assignment",4,"ngIf"],["id","initial"],[1,"form-container"],[3,"valueChange","value"],[3,"value",4,"ngFor","ngForOf"],[1,"max-age"],["matInput","","name","maxAge","type","number","placeholder","Maximum age in days",3,"ngModelChange","ngModel"],[1,"num-tunes"],["matInput","","name","numTunes","type","number","placeholder","Number of tunes",3,"ngModelChange","ngModel"],["mat-raised-button","","color","primary",1,"search-button",3,"click"],[3,"value"],["id","assignment"],[4,"ngFor","ngForOf"],["mat-raised-button","","label","All done","color","primary",1,"search-button",3,"click","disabled"],[1,"tune-link",3,"routerLink"]],template:function(i,r){i&1&&(D(0,"div")(1,"h2",0),z(2,"Practice"),I(),ve(3,ade,13,4,"div",1)(4,lde,5,2,"div",2),I()),i&2&&(A(3),ie("ngIf",!r.hasAssignment()),A(),ie("ngIf",r.hasAssignment()))},dependencies:[xn,jo,Gi,wC,kn,io,qo,ei,Rn,Wo,On,ja,Yo,bg,xr],encapsulation:2})}return t})();var lb=(()=>{class t{instance;audioContext(){return Re(this,null,function*(){if(!this.instance){let n=window.AudioContext||window.webkitAudioContext;this.instance=new n,this.instance.state==="suspended"&&(yield this.instance.resume())}return this.instance})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var y9=Symbol("Comlink.proxy"),ude=Symbol("Comlink.endpoint"),hde=Symbol("Comlink.releaseProxy"),fE=Symbol("Comlink.thrown"),w9=t=>typeof t=="object"&&t!==null||typeof t=="function",fde={canHandle:t=>w9(t)&&t[y9],serialize(t){let{port1:e,port2:n}=new MessageChannel;return x9(t,e),[n,[n]]},deserialize(t){return t.start(),mE(t)}},pde={canHandle:t=>w9(t)&&fE in t,serialize({value:t}){let e;return t instanceof Error?e={isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:e={isError:!1,value:t},[e,[]]},deserialize(t){throw t.isError?Object.assign(new Error(t.value.message),t.value):t.value}},C9=new Map([["proxy",fde],["throw",pde]]);function x9(t,e=self){e.addEventListener("message",function n(i){if(!i||!i.data)return;let{id:r,type:o,path:s}=Object.assign({path:[]},i.data),a=(i.data.argumentList||[]).map(cl),c;try{let l=s.slice(0,-1).reduce((d,h)=>d[h],t),u=s.reduce((d,h)=>d[h],t);switch(o){case"GET":c=u;break;case"SET":l[s.slice(-1)[0]]=cl(i.data.value),c=!0;break;case"APPLY":c=u.apply(l,a);break;case"CONSTRUCT":{let d=new u(...a);c=bde(d)}break;case"ENDPOINT":{let{port1:d,port2:h}=new MessageChannel;x9(t,h),c=vde(d,[d])}break;case"RELEASE":c=void 0;break;default:return}}catch(l){c={value:l,[fE]:0}}Promise.resolve(c).catch(l=>({value:l,[fE]:0})).then(l=>{let[u,d]=gE(l);e.postMessage(Object.assign(Object.assign({},u),{id:r}),d),o==="RELEASE"&&(e.removeEventListener("message",n),D9(e))})}),e.start&&e.start()}function mde(t){return t.constructor.name==="MessagePort"}function D9(t){mde(t)&&t.close()}function mE(t,e){return pE(t,[],e)}function db(t){if(t)throw new Error("Proxy has been released and is not useable")}function pE(t,e=[],n=function(){}){let i=!1,r=new Proxy(n,{get(o,s){if(db(i),s===hde)return()=>gu(t,{type:"RELEASE",path:e.map(a=>a.toString())}).then(()=>{D9(t),i=!0});if(s==="then"){if(e.length===0)return{then:()=>r};let a=gu(t,{type:"GET",path:e.map(c=>c.toString())}).then(cl);return a.then.bind(a)}return pE(t,[...e,s])},set(o,s,a){db(i);let[c,l]=gE(a);return gu(t,{type:"SET",path:[...e,s].map(u=>u.toString()),value:c},l).then(cl)},apply(o,s,a){db(i);let c=e[e.length-1];if(c===ude)return gu(t,{type:"ENDPOINT"}).then(cl);if(c==="bind")return pE(t,e.slice(0,-1));let[l,u]=_9(a);return gu(t,{type:"APPLY",path:e.map(d=>d.toString()),argumentList:l},u).then(cl)},construct(o,s){db(i);let[a,c]=_9(s);return gu(t,{type:"CONSTRUCT",path:e.map(l=>l.toString()),argumentList:a},c).then(cl)}});return r}function gde(t){return Array.prototype.concat.apply([],t)}function _9(t){let e=t.map(gE);return[e.map(n=>n[0]),gde(e.map(n=>n[1]))]}var E9=new WeakMap;function vde(t,e){return E9.set(t,e),t}function bde(t){return Object.assign(t,{[y9]:!0})}function gE(t){for(let[e,n]of C9)if(n.canHandle(t)){let[i,r]=n.serialize(t);return[{type:"HANDLER",name:e,value:i},r]}return[{type:"RAW",value:t},E9.get(t)||[]]}function cl(t){switch(t.type){case"HANDLER":return C9.get(t.name).deserialize(t.value);case"RAW":return t.value}}function gu(t,e,n){return new Promise(i=>{let r=_de();t.addEventListener("message",function o(s){!s.data||!s.data.id||s.data.id!==r||(t.removeEventListener("message",o),i(s.data))}),t.start&&t.start(),t.postMessage(Object.assign({id:r},e),n)})}function _de(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var ub=(()=>{class t{instance;transcriber(){if(!this.instance){let n=new Worker(new URL("worker-AFAHVE77.js",import.meta.url),{name:"transcriber",type:"module"});this.instance=mE(n)}return this.instance}static \u0275fac=function(i){return new(i||t)};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var wde=.01,Cde=4096,hb=(()=>{class t{audioContextProvider;transcriberProvider;zone;status;audioContext;timeRecorded=0;transcriber;stream;input;tickTime=wde;analyser;timer;subscription;fftBuffer;progressSource=new Lt(0);transcriptionResultSource=new K;analysisProgress;progress=this.progressSource.asObservable();transcriptionResult=this.transcriptionResultSource.asObservable();get sampleTime(){return 12}get blankTime(){return 0}get fundamental(){return"D"}get sampleRate(){return this.audioContext.sampleRate}get progressPercentage(){return 100*this.timeRecorded/(this.blankTime+this.sampleTime)}constructor(n,i,r){this.audioContextProvider=n,this.transcriberProvider=i,this.zone=r,this.transcriber=this.transcriberProvider.transcriber(),this.status=Ks.STOPPED}onTranscribed(n){this.zone.run(()=>this.transcriptionResultSource.next(n.transcription))}initAudio(){return Re(this,null,function*(){this.audioContext=yield this.audioContextProvider.audioContext();try{if(this.stream=yield navigator.mediaDevices.getUserMedia({audio:!0}),this.stream){this.status=Ks.INIT_SUCCEEDED;let n=Cde;this.input=this.audioContext.createMediaStreamSource(this.stream),this.analyser=this.audioContext.createAnalyser(),this.analyser.fftSize=n,this.input.connect(this.analyser)}}catch{this.status=Ks.INIT_FAILED}})}start(){if(!this.stream)return;let n={inputSampleRate:this.audioContext.sampleRate,sampleTime:this.sampleTime,blankTime:this.blankTime,tickTime:this.tickTime,fundamental:this.fundamental};this.transcriber.initialize(n).then(()=>this.status=Ks.RECORDING),this.fftBuffer=new Float32Array(this.analyser.frequencyBinCount),this.timer=Du(0,this.tickTime*1e3),this.subscription=this.timer.subscribe(()=>this.pushSpectrum())}pushSpectrum(){return Re(this,null,function*(){this.status==Ks.RECORDING&&(this.analyser.getFloatFrequencyData(this.fftBuffer),this.transcriber.pushSignal(this.fftBuffer),this.timeRecorded+=this.tickTime,this.zone.run(()=>this.progressSource.next(this.progressPercentage)),this.recordingComplete()&&(this.subscription.unsubscribe(),yield this.analyzeSignal()))})}recordingComplete(){return this.timeRecorded>=this.sampleTime}stop(){this.status=Ks.STOPPED,this.timeRecorded=0,this.stream&&(this.stream.getTracks().forEach(n=>n.stop()),this.stream=null),this.input.disconnect(this.analyser)}destroy(){this.stop()}analyzeSignal(){return Re(this,null,function*(){this.stop(),this.status=Ks.ANALYZING;let n=yield this.transcriber.transcribe();this.status=Ks.ANALYSIS_SUCCEEDED,this.onTranscribed(n)})}static \u0275fac=function(i){return new(i||t)(R(lb),R(ub),R(ee))};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})(),Ks=function(t){return t.STOPPED="STOPPED",t.INIT="INIT",t.INIT_SUCCEEDED="INIT_SUCCEEDED",t.INIT_FAILED="INIT_FAILED",t.RECORDING="RECORDING",t.ANALYZING="ANALYZING",t.ANALYSIS_SUCCEEDED="ANALYSIS_SUCCEEDED",t.API_MISSING="API_MISSING",t}(Ks||{});var S9=(()=>{class t{router;recorder;progress;progressbarValue;constructor(n,i){this.router=n,this.recorder=i,this.recorder.progress.subscribe(r=>this.progress=r),this.recorder.transcriptionResult.subscribe(r=>{this.progress=0,this.progressbarValue=0,r&&this.router.navigate([`/match/${r}`])})}startRecording(){return Re(this,null,function*(){let i=qb(100).subscribe(r=>{this.progressbarValue=this.progress,this.progressbarValue>=100&&i.unsubscribe()});yield this.recorder.initAudio(),this.recorder.start()})}static \u0275fac=function(i){return new(i||t)(g(Ti),g(hb))};static \u0275cmp=re({type:t,selectors:[["app-record"]],decls:8,vars:1,consts:[[1,"mat-h2"],["id","progress"],["mode","determinate",3,"value"],["id","button-container"],["mat-raised-button","","color","primary",1,"search-button",3,"click"]],template:function(i,r){i&1&&(D(0,"div")(1,"h2",0),z(2,"Recognize"),I(),D(3,"div",1),xe(4,"mat-progress-bar",2),I(),D(5,"div",3)(6,"button",4),le("click",function(){return r.startRecording()}),z(7,"Start"),I()()()),i&2&&(A(4),ie("value",r.progressbarValue))},dependencies:[ei,vg],encapsulation:2})}return t})();var vE=(()=>{class t{dialogRef;data;constructor(n,i){this.dialogRef=n,this.data=i}onConfirm(n){this.dialogRef.close(n)}static \u0275fac=function(i){return new(i||t)(g(oo),g(ax))};static \u0275cmp=re({type:t,selectors:[["app-delete-repertoire-item"]],decls:10,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"form-container"],[1,"mat-body"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","",3,"click"],["mat-button","",3,"click"]],template:function(i,r){i&1&&(D(0,"h1",0),z(1,"Confirmation"),I(),D(2,"div",1)(3,"p",2),z(4),I()(),D(5,"div",3)(6,"button",4),le("click",function(){return r.onConfirm(!1)}),z(7,"Cancel"),I(),D(8,"button",5),le("click",function(){return r.onConfirm(!0)}),z(9,"Delete"),I()()),i&2&&(A(4),jt(r.data))},dependencies:[ei,Dd,Sd,Ed],encapsulation:2})}return t})();function Dde(t,e){if(t&1){let n=st();D(0,"button",6),le("click",function(){let r=Se(n).$implicit,o=se();return Ie(o.selectRepertoire(r))}),z(1),I()}if(t&2){let n=e.$implicit;A(),jt(n.name)}}function Ede(t,e){t&1&&(D(0,"th",19),z(1,"Title"),I())}function Sde(t,e){if(t&1&&(D(0,"td",20)(1,"div",21),z(2),I()()),t&2){let n=e.$implicit;A(),Q1("routerLink",n.uri),A(),jt(n.title)}}function Ide(t,e){t&1&&(D(0,"th",19),z(1,"Times practiced"),I())}function kde(t,e){if(t&1&&(D(0,"td",20),z(1),I()),t&2){let n=e.$implicit;A(),Ct(" ",n.item.timesPracticed," ")}}function Mde(t,e){t&1&&(D(0,"th",19),z(1,"Last practiced"),I())}function Tde(t,e){if(t&1&&(D(0,"td",20),z(1),I()),t&2){let n=e.$implicit;A(),Ct(" ",n.item.lastPracticed?n.item.lastPracticed.toLocaleDateString():""," ")}}function Ade(t,e){t&1&&(D(0,"th",19),z(1,"Added"),I())}function Rde(t,e){if(t&1&&(D(0,"td",20),z(1),I()),t&2){let n=e.$implicit;A(),Ct(" ",n.item.added.toLocaleDateString()," ")}}function Ode(t,e){t&1&&(D(0,"th",22),z(1,"Action"),I())}function Nde(t,e){if(t&1){let n=st();D(0,"td",20)(1,"button",23)(2,"mat-icon"),z(3,"more_vert"),I()(),D(4,"mat-menu",null,1)(6,"button",6),le("click",function(){let r=Se(n).$implicit,o=se();return Ie(o.deleteTune(r))}),z(7,"Delete"),I()()()}if(t&2){let n=Pi(5);A(),ie("matMenuTriggerFor",n)}}function Fde(t,e){t&1&&xe(0,"tr",24)}function Pde(t,e){t&1&&xe(0,"tr",25)}var I9=(()=>{class t{dialog;repertoireRepository;index;sort;dataSource;tunes=[];displayedColumns=["title","timesPracticed","lastPracticed","added","action"];titleWithoutNumber=Qs;currentRepertoire;repertoireCollection;constructor(n,i,r){this.dialog=n,this.repertoireRepository=i,this.index=r}ngOnInit(){this.index.allReady.subscribe(()=>this.loadRepertoire())}newRepertoire(n){n&&(this.repertoireCollection.repertoires.push(n),this.selectRepertoire(n))}openNewRepertoireDialog(){this.dialog.open(g9).afterClosed().subscribe(i=>this.newRepertoire(i))}openDeleteRepertoireDialog(){this.dialog.open(vE,{data:`Delete "${this.currentRepertoire.name}" repertoire?`}).afterClosed().subscribe(i=>{i&&this.deleteCurrentRepertoire()})}selectRepertoire(n){this.currentRepertoire=n,this.prepareTunes()}repertoires(){return this.repertoireCollection===void 0?[]:this.repertoireCollection.repertoires}deleteTune(n){return Re(this,null,function*(){this.dialog.open(vE,{data:`Delete "${n.title}" from repertoire?`}).afterClosed().subscribe(r=>{r&&this.doDeleteTune(n)})})}doDeleteTune(n){return Re(this,null,function*(){yield this.repertoireRepository.deleteRepertoireItem(n.item.tune,this.currentRepertoire.name),this.prepareTunes()})}deleteCurrentRepertoire(){return Re(this,null,function*(){yield this.repertoireRepository.deleteRepertoire(this.currentRepertoire.name),yield this.loadRepertoire()})}loadRepertoire(){return Re(this,null,function*(){this.repertoireCollection=yield this.repertoireRepository.load();let n=yield this.repertoireRepository.findRepertoire();this.currentRepertoire=n,n&&this.prepareTunes()})}prepareTunes(){this.tunes=this.currentRepertoire.items.map(n=>this.toRepertoireTune(n)),this.dataSource=new Rg(this.tunes),this.dataSource.sort=this.sort}toRepertoireTune(n){let i=this.index.findEntryByTuneReference(n.tune);return{item:n,added:n.added,lastPracticed:n.lastPracticed,timesPracticed:n.timesPracticed,title:Qs(i.title),uri:`../tune/${n.tune.bookId}/${n.tune.tuneId}`}}static \u0275fac=function(i){return new(i||t)(g(Bc),g(rs),g(Ri))};static \u0275cmp=re({type:t,selectors:[["app-repertoire"]],viewQuery:function(i,r){if(i&1&&ze(Yh,7),i&2){let o;pe(o=me())&&(r.sort=o.first)}},decls:34,vars:7,consts:[["repertoireMenu","matMenu"],["tuneMenu","matMenu"],[1,"repertoire-header"],[1,"mat-h2"],["mat-mini-fab","","color","accent",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"mat-body"],["mat-table","","matSort","",1,"repertoire",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timesPracticed"],["matColumnDef","lastPracticed"],["matColumnDef","added"],["matColumnDef","action"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"tune-link",3,"routerLink"],["mat-header-cell",""],["mat-icon-button","","color","none",3,"matMenuTriggerFor"],["mat-header-row",""],["mat-row",""]],template:function(i,r){if(i&1){let o=st();D(0,"div")(1,"div",2)(2,"h2",3),z(3),I(),D(4,"button",4)(5,"mat-icon"),z(6,"more_vert"),I()(),D(7,"mat-menu",null,0),ve(9,Dde,2,1,"button",5),D(10,"button",6),le("click",function(){return Se(o),Ie(r.openNewRepertoireDialog())}),z(11,"New repertoire"),I(),D(12,"button",6),le("click",function(){return Se(o),Ie(r.openDeleteRepertoireDialog())}),z(13,"Delete current repertoire"),I()()(),D(14,"p",7),z(15),I(),D(16,"table",8),Po(17,9),ve(18,Ede,2,0,"th",10)(19,Sde,3,2,"td",11),Lo(),Po(20,12),ve(21,Ide,2,0,"th",10)(22,kde,2,1,"td",11),Lo(),Po(23,13),ve(24,Mde,2,0,"th",10)(25,Tde,2,1,"td",11),Lo(),Po(26,14),ve(27,Ade,2,0,"th",10)(28,Rde,2,1,"td",11),Lo(),Po(29,15),ve(30,Ode,2,0,"th",16)(31,Nde,8,1,"td",11),Lo(),ve(32,Fde,1,0,"tr",17)(33,Pde,1,0,"tr",18),I()()}if(i&2){let o=Pi(8);A(3),Ct("",r.currentRepertoire?r.currentRepertoire.name+" ":"","Repertoire"),A(),ie("matMenuTriggerFor",o),A(5),ie("ngForOf",r.repertoires()),A(6),Ct("",r.tunes.length," tunes"),A(),ie("dataSource",r.dataSource),A(16),ie("matHeaderRowDef",r.displayedColumns),A(),ie("matRowDefColumns",r.displayedColumns)}},dependencies:[xn,Ns,Z3,Go,kd,Wh,iO,Yh,xO,RO,NO,VO,FO,OO,BO,PO,LO,jO,HO,xr],encapsulation:2})}return t})();function Jf(t){if(t)return t.split(/\s*,\s*/).filter(e=>e.length>0)}var fb=class{title;rhythm;key;books;tags;constructor(e,n,i,r,o){this.title=e,this.rhythm=n,this.key=i,this.books=r,this.tags=o}matchesRef(e){return this.allBooks()?!0:this.books.includes(e.descriptor.id)}matchesName(e){return this.allBooks()?!0:this.books.includes(e)}allBooks(){return!this.books||this.books.length===0}};var k9=Pr(Gs());var Lde=["snippet"],M9=(()=>{class t{zone;tune="";div;rendered=!1;constructor(n){this.zone=n}ngAfterViewInit(){this.renderSnippet()}ngOnChanges(){this.rendered=!1,this.zone.runOutsideAngular(()=>this.renderSnippet())}renderSnippet(){if(this.div!==void 0&&this.tune&&!this.rendered){let n=p9(this.tune);k9.default.renderAbc(this.div.nativeElement,n,{scale:.8,paddingtop:0,paddingbottom:0}),this.rendered=!0}}static \u0275fac=function(i){return new(i||t)(g(ee))};static \u0275cmp=re({type:t,selectors:[["app-snippet-view"]],viewQuery:function(i,r){if(i&1&&ze(Lde,5),i&2){let o;pe(o=me())&&(r.div=o.first)}},inputs:{tune:"tune"},features:[lt],decls:2,vars:0,consts:[["snippet",""]],template:function(i,r){i&1&&xe(0,"div",null,0)},encapsulation:2})}return t})();function Bde(t,e){if(t&1&&(D(0,"mat-option",16),z(1),I()),t&2){let n=e.$implicit;ie("value",n.descriptor.id),A(),Ct("",n.descriptor.name," ")}}function jde(t,e){t&1&&(D(0,"div",17)(1,"p",18),z(2,"No matching tunes"),I()())}function Hde(t,e){if(t&1&&(D(0,"div",25),z(1),I()),t&2){let n=se().$implicit,i=se(2);A(),Ct("Tags: ",i.getTags(n),"")}}function zde(t,e){if(t&1){let n=st();D(0,"tr",22)(1,"td",23)(2,"div")(3,"span",24),le("click",function(){let r=Se(n).$implicit,o=se(2);return Ie(o.navigateToTune(r))}),z(4),I()(),D(5,"div",25),z(6),I(),D(7,"div",25),z(8),I(),ve(9,Hde,2,1,"div",26),I(),D(10,"td",27),le("click",function(){let r=Se(n).$implicit,o=se(2);return Ie(o.navigateToTune(r))}),xe(11,"app-snippet-view",28),I()()}if(t&2){let n=e.$implicit,i=se(2);A(4),jt(n.title),A(2),K1("",i.getBookName(n)," #",n.id,""),A(2),jt(i.getRhythmAndKey(n)),A(),ie("ngIf",i.hasTags(n)),A(2),ie("tune",i.getAbc(n))}}function Ude(t,e){if(t&1&&(D(0,"div",19)(1,"p",18),z(2),I(),D(3,"cdk-virtual-scroll-viewport",20)(4,"table")(5,"tbody"),ve(6,zde,12,6,"tr",21),I()()()()),t&2){let n=se();A(2),Ct("",n.tunes.length," tunes"),A(4),ie("cdkVirtualForOf",n.tunes)("cdkVirtualForTemplateCacheSize",0)}}var qde=(()=>{class t extends N0{contentScrolledSource=new K;constructor(){super(100,800,1200),this.contentScrolledSource.asObservable().pipe(Hr(200)).subscribe(()=>{super.onContentScrolled()})}onContentScrolled(){this.contentScrolledSource.next("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})(),T9=(()=>{class t{tuneBookIndex;route;router;query;rhythm;key;tags;tunes=[];selectedBooks=[];searchCompleted=!1;indexReady=!1;queryParams;constructor(n,i,r){this.tuneBookIndex=n,this.route=i,this.router=r}ngOnInit(){this.selectedBooks=[this.tuneBookIndex.defaultBook],this.route.queryParamMap.subscribe(n=>this.consumeParameters(n)),this.tuneBookIndex.allReady.subscribe(n=>{this.indexReady=n,this.extractParamsAndRunQuery()})}extractParamsAndRunQuery(){this.indexReady&&this.queryParams.keys.length>0&&(this.query=this.queryParams.get("q"),this.key=this.queryParams.get("key"),this.rhythm=this.queryParams.get("rhythm"),this.selectedBooks=this.queryParams.getAll("book"),this.tags=this.queryParams.getAll("tag").join(", "),this.runQuery())}consumeParameters(n){this.queryParams=n,this.extractParamsAndRunQuery()}noResults(){return this.searchCompleted&&this.tunes.length===0}uniqueResult(){return this.tunes.length===1}multipleResults(){return this.tunes.length>=2}currentTune(){return this.uniqueResult()?this.tuneBookIndex.getAbc(this.tunes[0]):""}findTunes(){this.router.navigate(["/search"],{queryParams:{q:this.query,rhythm:this.rhythm,key:this.key,book:this.selectedBooks,tag:Jf(this.tags)}})}runQuery(){(this.selectedBooks===void 0||this.selectedBooks.length===0)&&(this.selectedBooks=[this.tuneBookIndex.getBooks()[0].descriptor.id]);let n=this.rhythm&&this.rhythm.toLowerCase(),i=new fb(this.query,n,this.key,this.selectedBooks,Jf(this.tags));this.tunes=this.tuneBookIndex.findTunes(i),this.searchCompleted=!0,this.uniqueResult()&&this.navigateToTune(this.tunes[0])}navigateToTune(n){let i=n.book,r=n.id;this.router.navigate([`/tune/${i}/${r}`])}getAbc(n){return this.tuneBookIndex.getAbc(n)}getBookName(n){return this.tuneBookIndex.getBook(n).descriptor.name}getRhythmAndKey(n){return n.rhythm===void 0&&n.key===void 0?"":n.key===void 0?n.rhythm:n.rhythm===void 0?n.key:`${n.rhythm} in ${n.key}`}hasTags(n){return n.tags&&n.tags.length>0}getTags(n){return n.tags.join(", ")}books(){return this.tuneBookIndex.getBooks()}static \u0275fac=function(i){return new(i||t)(g(Ri),g(si),g(Ti))};static \u0275cmp=re({type:t,selectors:[["app-search"]],features:[Ye([{provide:hC,useClass:qde}])],decls:32,vars:9,consts:[[1,"search-panel"],[3,"expanded"],[1,"query"],["matInput","","name","query","type","text",3,"ngModelChange","ngModel"],[1,"rhythm"],["matInput","","name","rhythm","type","text",3,"ngModelChange","ngModel"],[1,"key"],["matInput","","name","key","type","text",3,"ngModelChange","ngModel"],[1,"tunebooks"],["multiple","",3,"valueChange","value"],[3,"value",4,"ngFor","ngForOf"],[1,"tags"],["matInput","","name","tags","type","text",3,"ngModelChange","ngModel"],["mat-raised-button","","label","Search","color","primary",1,"search-button",3,"click"],["id","noMatches",4,"ngIf"],["id","overview",4,"ngIf"],[3,"value"],["id","noMatches"],[1,"mat-body"],["id","overview"],[1,"search-result-viewport"],["class","tune-preview",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTemplateCacheSize"],[1,"tune-preview"],[1,"tune-link","tune-title"],[1,"tune-link","mat-body",3,"click"],[1,"mat-small"],["class","mat-small",4,"ngIf"],[1,"tune-link",3,"click"],[3,"tune"]],template:function(i,r){i&1&&(D(0,"div",0)(1,"mat-expansion-panel",1)(2,"mat-expansion-panel-header")(3,"mat-panel-title"),z(4,"Find tunes"),I()(),D(5,"form")(6,"mat-form-field",2)(7,"mat-label"),z(8,"Tune number or part of title"),I(),D(9,"input",3),ni("ngModelChange",function(s){return oi(r.query,s)||(r.query=s),s}),I()(),D(10,"mat-form-field",4)(11,"mat-label"),z(12,"Rhythm"),I(),D(13,"input",5),ni("ngModelChange",function(s){return oi(r.rhythm,s)||(r.rhythm=s),s}),I()(),D(14,"mat-form-field",6)(15,"mat-label"),z(16,"Key"),I(),D(17,"input",7),ni("ngModelChange",function(s){return oi(r.key,s)||(r.key=s),s}),I()(),D(18,"mat-form-field",8)(19,"mat-label"),z(20,"Tune books"),I(),D(21,"mat-select",9),ni("valueChange",function(s){return oi(r.selectedBooks,s)||(r.selectedBooks=s),s}),ve(22,Bde,2,2,"mat-option",10),I()(),D(23,"mat-form-field",11)(24,"mat-label"),z(25,"Tags"),I(),D(26,"input",12),ni("ngModelChange",function(s){return oi(r.tags,s)||(r.tags=s),s}),I()(),D(27,"mat-action-row")(28,"button",13),le("click",function(){return r.findTunes()}),z(29,"Search"),I()()()()(),ve(30,jde,3,0,"div",14)(31,Ude,7,3,"div",15)),i&2&&(A(),ie("expanded",!r.searchCompleted),A(8),ii("ngModel",r.query),A(4),ii("ngModel",r.rhythm),A(4),ii("ngModel",r.key),A(4),ii("value",r.selectedBooks),A(),ie("ngForOf",r.books()),A(4),ii("ngModel",r.tags),A(4),ie("ngIf",r.noResults()),A(),ie("ngIf",r.multipleResults()))},dependencies:[xn,jo,Oa,Gi,kn,Ra,io,Yn,qo,ei,cx,VR,BR,jR,Rn,Wo,On,bg,bA,fC,M9],encapsulation:2})}return t})();var pb=Pr(Gs());var A9=(()=>{class t{element;$element;caret=new oe;constructor(n){this.element=n}ngAfterViewInit(){if(this.$element=this.element.nativeElement,!(this.contentEditable()||this.isTextarea()))throw new Error("appCaretTracker directive can be used either on textarea or contenteditable element only")}contentEditable(){return this.$element.isContentEditable&&this.$element.getAttribute("contenteditable")==="true"}onFocus(n){this.emitEvent(n)}onKeyup(n){this.emitEvent(n)}onMouseup(n){this.onFocus(n)}emitEvent(n){this.caret.emit({textPos:this.getTextPos(),event:n})}getTextPos(){return this.isTextarea()?this.$element.selectionStart:-1}isTextarea(n){let i=n||this.$element;return i.tagName==="TEXTAREA"&&i instanceof HTMLTextAreaElement}static \u0275fac=function(i){return new(i||t)(g(ce))};static \u0275dir=te({type:t,selectors:[["","appCaretTracker",""]],hostBindings:function(i,r){i&1&&le("focus",function(s){return r.onFocus(s)})("keyup",function(s){return r.onKeyup(s)})("mouseup",function(s){return r.onMouseup(s)})},outputs:{caret:"caret"}})}return t})();var Wde=["notation"],R9=(()=>{class t{index;collectionService;googleDrive;pdfService;route;snackBar;abc="";bookId;bookRef;set tune(n){this.abc=n}get tune(){return this.abc}div;constructor(n,i,r,o,s,a){this.index=n,this.collectionService=i,this.googleDrive=r,this.pdfService=o,this.route=s,this.snackBar=a,this.route.paramMap.subscribe(c=>{this.bookId=c.get("id"),this.bookRef=this.index.getBookById(this.bookId),this.tune=this.bookRef.abc}),this.index.tuneBookReady.subscribe(c=>{c===this.bookId&&(this.bookRef=this.index.getBookById(this.bookId),this.tune=this.bookRef.abc,this.renderNotation(this.abc))})}ngAfterViewInit(){this.renderNotation(this.abc)}onCaret(n){this.renderNotation(this.extractTuneAtCaret(n.textPos))}save(){return Re(this,null,function*(){yield this.googleDrive.updateTextFile(this.bookRef.descriptor.uri,this.tune),this.bookRef.abc=this.tune,this.bookRef.tuneBook=new pb.TuneBook(this.tune),this.index.updateTuneBook(this.bookRef),this.snackBar.open(`Updated ${this.bookRef.descriptor.name} on Google Drive`,"Dismiss",{duration:3e3})})}delete(){return Re(this,null,function*(){yield this.collectionService.removeBook(this.bookId),this.snackBar.open(`Removed ${this.bookRef.descriptor.name} from collection`,"Dismiss",{duration:3e3})})}exportAsPdf(){return Re(this,null,function*(){this.pdfService.saveAsPdf(this.tune),this.snackBar.open("PDF will be displayed in separate window","Dismiss",{duration:3e3})})}renderNotation(n){this.div!==void 0&&n.length>0&&pb.default.renderAbc(this.div.nativeElement,n,{paddingleft:0,paddingright:0,paddingtop:0,paddingbottom:0,staffwidth:1e3,responsive:"resize"})}extractTuneAtCaret(n){let i=Math.max(0,this.abc.lastIndexOf("X:",n)),r=this.abc.indexOf("X:",i+2);return r===-1&&(r=this.abc.length),this.abc.substring(i,r)}static \u0275fac=function(i){return new(i||t)(g(Ri),g(Nr),g(Or),g(Za),g(si),g(Ps))};static \u0275cmp=re({type:t,selectors:[["app-tune-editor"]],viewQuery:function(i,r){if(i&1&&ze(Wde,5),i&2){let o;pe(o=me())&&(r.div=o.first)}},inputs:{tune:"tune"},decls:12,vars:1,consts:[["notation",""],[1,"example-form"],[1,"editor"],["appCaretTracker","","matInput","","name","abc-area","placeholder","Enter ABC notation",3,"caret","ngModelChange","ngModel"],["mat-raised-button","","label","Save","color","primary",1,"search-button",3,"click"],["mat-raised-button","","label","Delete","color","primary",1,"tune-button",3,"click"],["mat-raised-button","","color","primary",1,"tune-button",3,"click"],[1,"tune-view"]],template:function(i,r){if(i&1){let o=st();D(0,"form",1)(1,"mat-form-field",2)(2,"textarea",3),le("caret",function(a){return Se(o),Ie(r.onCaret(a))}),ni("ngModelChange",function(a){return Se(o),oi(r.tune,a)||(r.tune=a),Ie(a)}),I()(),D(3,"button",4),le("click",function(){return Se(o),Ie(r.save())}),z(4,"Save"),I(),D(5,"button",5),le("click",function(){return Se(o),Ie(r.delete())}),z(6,"Delete"),I(),D(7,"button",6),le("click",function(){return Se(o),Ie(r.exportAsPdf())}),D(8,"mat-icon"),z(9,"print"),I()()(),xe(10,"div",7,0)}i&2&&(A(2),ii("ngModel",r.tune))},dependencies:[Oa,Gi,kn,Ra,io,Yn,ei,Rn,Go,On,A9],encapsulation:2})}return t})();var mb=Pr(Gs());var Gde=["midiplayer"],O9=(()=>{class t{bpm=100;abc="";parsedTune;synthControl;tempoSource=new Lt(100);div;set tune(n){this.abc=n,this.parsedTune=mb.default.renderAbc("*",this.abc)[0]}get tune(){return this.abc}set tempo(n){this.bpm=n,this.tempoSource.next(n)}get tempo(){return this.bpm}constructor(){this.synthControl=new mb.default.synth.SynthController,this.tempoSource.pipe(B_(500,bp,{trailing:!0})).subscribe(n=>{this.synthControl.setWarp(n)})}ngAfterViewInit(){this.renderMidiPlayer()}ngOnChanges(){this.renderMidiPlayer()}renderMidiPlayer(){return Re(this,null,function*(){if(this.div!==void 0&&this.tune.length>0)return console.log("reload player"),this.synthControl.load(this.div.nativeElement,null,{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0,displayWarp:!0}),this.parsedTune.metaText.tempo={bpm:this.bpm,startChar:0,endChar:0},this.synthControl.setTune(this.parsedTune,!0,{chordsOff:!0,program:this.instrumentByName("flute")})})}instrumentByName(n){return mb.default.synth.instrumentIndexToName.indexOf(n.toLowerCase())}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=re({type:t,selectors:[["app-tune-player"]],viewQuery:function(i,r){if(i&1&&ze(Gde,7),i&2){let o;pe(o=me())&&(r.div=o.first)}},inputs:{tune:"tune",tempo:"tempo"},features:[lt],decls:2,vars:0,consts:[["midiplayer",""],[1,"midi-player"]],template:function(i,r){i&1&&xe(0,"div",1,0)},encapsulation:2})}return t})();var N9=Pr(Gs());var Qde=["notation"],F9=(()=>{class t{tune="";div;ngAfterViewInit(){this.renderNotation()}ngOnChanges(){this.renderNotation()}renderNotation(){this.div!==void 0&&this.tune.length>0&&N9.default.renderAbc(this.div.nativeElement,this.includeNumberInTitle(this.tune),{paddingleft:0,paddingright:0,paddingtop:0,paddingbottom:0,staffwidth:1e3,responsive:"resize"})}includeNumberInTitle(n){if(n.match(/^T:(\s*)(\d+[a-z]?\s*)/m))return n;let r=n.match(/^X:(\s*)(\w+)/m);if(!r)return;let o=r[2],s=n.match(/^T:(\s*)(.+?)(, The)?$/m),a=s[2],c=s[3]?"The ":"";return n.replace(s[0],`T: ${o} ${c}${a}`)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=re({type:t,selectors:[["app-tune-view"]],viewQuery:function(i,r){if(i&1&&ze(Qde,5),i&2){let o;pe(o=me())&&(r.div=o.first)}},inputs:{tune:"tune"},features:[lt],decls:2,vars:0,consts:[["notation",""],[1,"tune-view"]],template:function(i,r){i&1&&xe(0,"div",1,0)},encapsulation:2})}return t})();var P9=(()=>{class t{index;googleAuth;pdfService;route;snackBar;dialog;collectionService;repertoireRepository;tune="";allTags="";signedIn=!1;prevRef;nextRef;bookId;ref;constructor(n,i,r,o,s,a,c,l){this.index=n,this.googleAuth=i,this.pdfService=r,this.route=o,this.snackBar=s,this.dialog=a,this.collectionService=c,this.repertoireRepository=l,this.googleAuth.authState.subscribe(u=>{this.signedIn=!!u})}ngOnInit(){this.route.paramMap.subscribe(n=>this.consumeRef(n)),this.index.tuneBookReady.subscribe(()=>{this.displayTune(this.bookId,this.ref)})}save(){return Re(this,null,function*(){let n=Jf(this.allTags),i=yield this.collectionService.setTagsForTune(this.ref,this.bookId,n);return this.snackBar.open("Updated tags on Google Drive","Dismiss",{duration:3e3}),i})}openDialog(){return Re(this,null,function*(){this.dialog.open(a9).afterClosed().subscribe(i=>this.addToRepertoire(i))})}exportAsPdf(){return Re(this,null,function*(){this.pdfService.saveAsPdf(this.tune),this.snackBar.open("PDF will be displayed in separate window","Dismiss",{duration:3e3})})}tuneForDisplay(){return`%%stretchlast +`+this.tune}addToRepertoire(n){return Re(this,null,function*(){if(!n)return;let i={bookId:this.bookId,tuneId:this.ref};yield this.repertoireRepository.addRepertoireItem(i,n),this.snackBar.open("Added to repertoire on Google Drive","Dismiss",{duration:3e3})})}consumeRef(n){this.ref=n.get("ref"),this.bookId=n.get("bookId"),this.displayTune(this.bookId,this.ref)}displayTune(n,i){if(i!==void 0&&this.index.isReady()){let r=this.index.findEntryByTuneReference({bookId:n,tuneId:i});if(r){this.tune=this.index.getAbc(r),r.tags?this.allTags=r.tags.join(", "):this.allTags="";let o=this.index.getBookById(n);this.prevRef=void 0,this.nextRef=void 0;let s=r.pos-1;s>=0&&(this.prevRef=o.tuneBook.tunes[s].id);let a=r.pos+1;a{class t{index;route;entries=[];bookId;titleWithoutNumber=Qs;constructor(n,i){this.index=n,this.route=i,this.index.tuneBookReady.subscribe(r=>this.onReady(r)),this.route.paramMap.subscribe(r=>{this.bookId=r.get("id"),this.onReady(this.bookId)})}bookName(){return this.index.getBookById(this.bookId)?.descriptor.name}onReady(n){n==this.bookId&&(this.entries=this.index.findAllTunesInBook(n))}static \u0275fac=function(i){return new(i||t)(g(Ri),g(si))};static \u0275cmp=re({type:t,selectors:[["app-tunes-list"]],decls:5,vars:2,consts:[[1,"mat-h2"],[4,"ngFor","ngForOf"],[1,"tune-row"],[1,"tune-id",3,"routerLink"],[1,"tune-link",3,"routerLink"]],template:function(i,r){i&1&&(D(0,"div")(1,"h2",0),z(2),I(),D(3,"mat-list"),ve(4,Xde,6,8,"mat-list-item",1),I()()),i&2&&(A(2),jt(r.bookName()),A(2),ie("ngForOf",r.entries))},dependencies:[xn,ja,Yo,xr],encapsulation:2})}return t})();var V9=(()=>{class t{handlers={};shouldDetach(n){return!0}store(n,i){this.handlers[n.url.join("/")||n.parent.url.join("/")]=i}shouldAttach(n){return!!this.handlers[n.url.join("/")||n.parent.url.join("/")]}retrieve(n){return this.handlers[n.url.join("/")||n.parent.url.join("/")]}shouldReuseRoute(n,i){return n.routeConfig===i.routeConfig}static \u0275fac=function(i){return new(i||t)};static \u0275prov=U({token:t,factory:t.\u0275fac})}return t})();var Zde=[{path:"about",component:o9},{path:"books",component:l9},{path:"createBook",component:d9},{path:"edit/:id",component:R9},{path:"book/:id",component:L9},{path:"print/:id",component:c9},{path:"login",component:u9},{path:"logout",component:h9},{path:"match/:transcription",component:m9},{path:"practice",component:b9},{path:"record",component:S9},{path:"repertoire",component:I9},{path:"search",component:T9},{path:"tune/:bookId/:ref",component:P9},{path:"",redirectTo:"/search",pathMatch:"full"}],Jde="98237286064-bf0vbgpqqklhj434vifvfafvtckaja12.apps.googleusercontent.com",eue=["https://www.googleapis.com/discovery/v1/apis/drive/v3/rest"],tue="https://www.googleapis.com/auth/drive.appfolder https://www.googleapis.com/auth/drive.file",iue={client_id:Jde,discoveryDocs:eue,scope:tue,prompt:""},B9=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=_e({type:t,bootstrap:[r9]});static \u0275inj=be({providers:[lb,hb,Or,eb,Za,cb,rs,ob,{provide:jD,useClass:V9},ub,Nr,Ri,Zv,_T(yT())],imports:[yN,i0,y4.forRoot({provide:Ef,useValue:iue}),GA,fA,G3,wd,_R,kR,HR,Fc,GR,iR,JR,nO,_3,oO,lO,pO,bO,wO,DO,zO,qO,YA,d4.forRoot(Zde),Ec,g4.register("ngsw-worker.js",{enabled:vv.production})]})}return t})();(0,gb.configure)({level:gb.LogLevel.INFO,virtualConsole:!1});vv.production&&void 0;IT().bootstrapModule(B9).catch(t=>console.error(t)); diff --git a/tunebook/ngsw.json b/tunebook/ngsw.json index 9d859de..655792b 100644 --- a/tunebook/ngsw.json +++ b/tunebook/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1723321427425, + "timestamp": 1723378251805, "index": "/tunebook/index.html", "assetGroups": [ { @@ -13,10 +13,10 @@ "urls": [ "/tunebook/favicon.ico", "/tunebook/index.html", - "/tunebook/main-ZVVB2TTV.js", + "/tunebook/main-DW4D6GED.js", "/tunebook/polyfills-MH5IBZ74.js", "/tunebook/site.webmanifest", - "/tunebook/styles-NNCQOTZE.css", + "/tunebook/styles-LIZGWOEL.css", "/tunebook/worker-AFAHVE77.js" ], "patterns": [] @@ -68,11 +68,11 @@ "/tunebook/favicon-16x16.png": "60ae12fec505dace727150c4757598f2b4d5f2f7", "/tunebook/favicon-32x32.png": "f14b1f5f197f692eca78cea7951ab8e82d5c4d8b", "/tunebook/favicon.ico": "c7cc37b24ac2e037be5b3d3c1f80563d33c92966", - "/tunebook/index.html": "2e98245665a2bc936cdb1125be5ebdbf05d5b0d7", - "/tunebook/main-ZVVB2TTV.js": "f349e869e3e3d7d4e79431d91eb7f9ca9ca04e1e", + "/tunebook/index.html": "0ad1d36a7b8b78987c645d5938b54850e6b2a7ff", + "/tunebook/main-DW4D6GED.js": "8686ef467b70c8c2091939b2c1f25b52d6b6ae97", "/tunebook/polyfills-MH5IBZ74.js": "c7fdbc7259367a3112d05e61e33c04c4b2efa9b4", "/tunebook/site.webmanifest": "d179e36f83872017fb7585f6adf21b6143568469", - "/tunebook/styles-NNCQOTZE.css": "1217d39e070fab36aba9fd9b9c60aa3dd19f5a1c", + "/tunebook/styles-LIZGWOEL.css": "aee35b47b61221429e492435a66caa7c51af0444", "/tunebook/worker-AFAHVE77.js": "d3a53fc04e710f1254fcb192eb6f3fec8e964a1d" }, "navigationUrls": [ diff --git a/tunebook/styles-NNCQOTZE.css b/tunebook/styles-LIZGWOEL.css similarity index 97% rename from tunebook/styles-NNCQOTZE.css rename to tunebook/styles-LIZGWOEL.css index 2ec371e..ea25762 100644 --- a/tunebook/styles-NNCQOTZE.css +++ b/tunebook/styles-LIZGWOEL.css @@ -1 +1 @@ -.abcjs-inline-audio{height:26px;padding:0 5px;border-radius:3px;background-color:#424242;display:flex;align-items:center;box-sizing:border-box}.abcjs-inline-audio.abcjs-disabled{opacity:.5}.abcjs-inline-audio .abcjs-btn{display:block;width:28px;height:34px;margin-right:2px;padding:7px 4px;background:none!important;border:1px solid transparent;box-sizing:border-box;line-height:1}.abcjs-btn g{fill:#f4f4f4;stroke:#f4f4f4}.abcjs-inline-audio .abcjs-btn:hover g{fill:#ccc;stroke:#ccc}.abcjs-inline-audio .abcjs-midi-selection.abcjs-pushed,.abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed,.abcjs-inline-audio .abcjs-midi-reset.abcjs-pushed{border:1px solid #cccccc;background-color:#666;box-sizing:border-box}.abcjs-inline-audio .abcjs-midi-start .abcjs-pause-svg,.abcjs-inline-audio .abcjs-midi-start .abcjs-loading-svg,.abcjs-inline-audio .abcjs-midi-start.abcjs-pushed .abcjs-play-svg,.abcjs-inline-audio .abcjs-midi-start.abcjs-loading .abcjs-play-svg{display:none}.abcjs-inline-audio .abcjs-midi-start.abcjs-pushed .abcjs-pause-svg{display:block}.abcjs-inline-audio .abcjs-midi-progress-background{background-color:#424242;height:10px;border-radius:5px;border:2px solid #cccccc;margin:0 8px 0 15px;position:relative;flex:1;padding:0;box-sizing:border-box}.abcjs-inline-audio .abcjs-midi-progress-indicator{width:20px;margin-left:-10px;height:14px;background-color:#f4f4f4;position:absolute;display:inline-block;border-radius:6px;top:-4px;left:0;box-sizing:border-box}.abcjs-inline-audio .abcjs-midi-clock{margin-left:4px;margin-top:1px;margin-right:2px;display:inline-block;font-family:sans-serif;font-size:16px;box-sizing:border-box;color:#f4f4f4}.abcjs-inline-audio .abcjs-tempo-wrapper{font-size:10px;color:#f4f4f4;box-sizing:border-box;display:flex;align-items:center}.abcjs-inline-audio .abcjs-midi-tempo{border-radius:2px;border:none;margin:0 2px 0 4px;width:42px;padding-left:2px;box-sizing:border-box}.abcjs-inline-audio .abcjs-loading .abcjs-loading-svg{display:inherit}.abcjs-inline-audio .abcjs-loading{outline:none;animation-name:abcjs-spin;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}.abcjs-inline-audio .abcjs-loading-svg circle{stroke:#f4f4f4}@keyframes abcjs-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.abcjs-large .abcjs-inline-audio{height:52px}.abcjs-large .abcjs-btn{width:56px;height:52px;font-size:28px;padding:6px 8px}.abcjs-large .abcjs-midi-progress-background{height:20px;border:4px solid #cccccc}.abcjs-large .abcjs-midi-progress-indicator{height:28px;top:-8px;width:40px}.abcjs-large .abcjs-midi-clock{font-size:32px;margin-right:10px;margin-left:10px;margin-top:-1px}.abcjs-large .abcjs-midi-tempo{font-size:20px;width:50px}.abcjs-large .abcjs-tempo-wrapper{font-size:20px}.abcjs-css-warning{display:none}html{--mat-badge-text-font: Roboto, sans-serif;--mat-badge-text-size: 12px;--mat-badge-text-weight: 600;--mat-badge-small-size-text-size: 9px;--mat-badge-large-size-text-size: 24px}.mat-h1,.mat-headline-5,.mat-typography .mat-h1,.mat-typography .mat-headline-5,.mat-typography h1{font:400 24px/32px Roboto,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2,.mat-headline-6,.mat-typography .mat-h2,.mat-typography .mat-headline-6,.mat-typography h2{font:500 20px/32px Roboto,sans-serif;letter-spacing:.0125em;margin:0 0 16px}.mat-h3,.mat-subtitle-1,.mat-typography .mat-h3,.mat-typography .mat-subtitle-1,.mat-typography h3{font:400 16px/28px Roboto,sans-serif;letter-spacing:.009375em;margin:0 0 16px}.mat-h4,.mat-body-1,.mat-typography .mat-h4,.mat-typography .mat-body-1,.mat-typography h4{font:400 16px/24px Roboto,sans-serif;letter-spacing:.03125em;margin:0 0 16px}.mat-h5,.mat-typography .mat-h5,.mat-typography h5{font:400 11.62px/20px Roboto,sans-serif;margin:0 0 12px}.mat-h6,.mat-typography .mat-h6,.mat-typography h6{font:400 9.38px/20px Roboto,sans-serif;margin:0 0 12px}.mat-body-strong,.mat-subtitle-2,.mat-typography .mat-body-strong,.mat-typography .mat-subtitle-2{font:500 14px/22px Roboto,sans-serif;letter-spacing:.0071428571em}.mat-body,.mat-body-2,.mat-typography .mat-body,.mat-typography .mat-body-2,.mat-typography{font:400 14px/20px Roboto,sans-serif;letter-spacing:.0178571429em}.mat-body p,.mat-body-2 p,.mat-typography .mat-body p,.mat-typography .mat-body-2 p,.mat-typography p{margin:0 0 12px}.mat-small,.mat-caption,.mat-typography .mat-small,.mat-typography .mat-caption{font:400 12px/20px Roboto,sans-serif;letter-spacing:.0333333333em}.mat-headline-1,.mat-typography .mat-headline-1{font:300 96px/96px Roboto,sans-serif;letter-spacing:-.015625em;margin:0 0 56px}.mat-headline-2,.mat-typography .mat-headline-2{font:300 60px/60px Roboto,sans-serif;letter-spacing:-.0083333333em;margin:0 0 64px}.mat-headline-3,.mat-typography .mat-headline-3{font:400 48px/50px Roboto,sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-headline-4,.mat-typography .mat-headline-4{font:400 34px/40px Roboto,sans-serif;letter-spacing:.0073529412em;margin:0 0 64px}html{--mat-bottom-sheet-container-text-font: Roboto, sans-serif;--mat-bottom-sheet-container-text-line-height: 20px;--mat-bottom-sheet-container-text-size: 14px;--mat-bottom-sheet-container-text-tracking: .0178571429em;--mat-bottom-sheet-container-text-weight: 400}html{--mat-legacy-button-toggle-label-text-font: Roboto, sans-serif;--mat-legacy-button-toggle-label-text-line-height: 24px;--mat-legacy-button-toggle-label-text-size: 16px;--mat-legacy-button-toggle-label-text-tracking: .03125em;--mat-legacy-button-toggle-label-text-weight: 400;--mat-standard-button-toggle-label-text-font: Roboto, sans-serif;--mat-standard-button-toggle-label-text-line-height: 24px;--mat-standard-button-toggle-label-text-size: 16px;--mat-standard-button-toggle-label-text-tracking: .03125em;--mat-standard-button-toggle-label-text-weight: 400}html{--mat-datepicker-calendar-text-font: Roboto, sans-serif;--mat-datepicker-calendar-text-size: 13px;--mat-datepicker-calendar-body-label-text-size: 14px;--mat-datepicker-calendar-body-label-text-weight: 500;--mat-datepicker-calendar-period-button-text-size: 14px;--mat-datepicker-calendar-period-button-text-weight: 500;--mat-datepicker-calendar-header-text-size: 11px;--mat-datepicker-calendar-header-text-weight: 400}html{--mat-expansion-header-text-font: Roboto, sans-serif;--mat-expansion-header-text-size: 14px;--mat-expansion-header-text-weight: 500;--mat-expansion-header-text-line-height: inherit;--mat-expansion-header-text-tracking: inherit;--mat-expansion-container-text-font: Roboto, sans-serif;--mat-expansion-container-text-line-height: 20px;--mat-expansion-container-text-size: 14px;--mat-expansion-container-text-tracking: .0178571429em;--mat-expansion-container-text-weight: 400}html{--mat-grid-list-tile-header-primary-text-size: 14px;--mat-grid-list-tile-header-secondary-text-size: 12px;--mat-grid-list-tile-footer-primary-text-size: 14px;--mat-grid-list-tile-footer-secondary-text-size: 12px}html{--mat-stepper-container-text-font: Roboto, sans-serif;--mat-stepper-header-label-text-font: Roboto, sans-serif;--mat-stepper-header-label-text-size: 14px;--mat-stepper-header-label-text-weight: 400;--mat-stepper-header-error-state-label-text-size: 16px;--mat-stepper-header-selected-state-label-text-size: 16px;--mat-stepper-header-selected-state-label-text-weight: 400}html{--mat-toolbar-title-text-font: Roboto, sans-serif;--mat-toolbar-title-text-line-height: 32px;--mat-toolbar-title-text-size: 20px;--mat-toolbar-title-text-tracking: .0125em;--mat-toolbar-title-text-weight: 500}html{--mat-tree-node-text-font: Roboto, sans-serif;--mat-tree-node-text-size: 14px;--mat-tree-node-text-weight: 400}html{--mat-option-label-text-font: Roboto, sans-serif;--mat-option-label-text-line-height: 24px;--mat-option-label-text-size: 16px;--mat-option-label-text-tracking: .03125em;--mat-option-label-text-weight: 400}html{--mat-optgroup-label-text-font: Roboto, sans-serif;--mat-optgroup-label-text-line-height: 24px;--mat-optgroup-label-text-size: 16px;--mat-optgroup-label-text-tracking: .03125em;--mat-optgroup-label-text-weight: 400}html{--mat-card-title-text-font: Roboto, sans-serif;--mat-card-title-text-line-height: 32px;--mat-card-title-text-size: 20px;--mat-card-title-text-tracking: .0125em;--mat-card-title-text-weight: 500;--mat-card-subtitle-text-font: Roboto, sans-serif;--mat-card-subtitle-text-line-height: 22px;--mat-card-subtitle-text-size: 14px;--mat-card-subtitle-text-tracking: .0071428571em;--mat-card-subtitle-text-weight: 500}html{--mdc-plain-tooltip-supporting-text-font: Roboto, sans-serif;--mdc-plain-tooltip-supporting-text-size: 12px;--mdc-plain-tooltip-supporting-text-weight: 400;--mdc-plain-tooltip-supporting-text-tracking: .0333333333em}html{--mdc-filled-text-field-label-text-font: Roboto, sans-serif;--mdc-filled-text-field-label-text-size: 16px;--mdc-filled-text-field-label-text-tracking: .03125em;--mdc-filled-text-field-label-text-weight: 400;--mdc-outlined-text-field-label-text-font: Roboto, sans-serif;--mdc-outlined-text-field-label-text-size: 16px;--mdc-outlined-text-field-label-text-tracking: .03125em;--mdc-outlined-text-field-label-text-weight: 400;--mat-form-field-container-text-font: Roboto, sans-serif;--mat-form-field-container-text-line-height: 24px;--mat-form-field-container-text-size: 16px;--mat-form-field-container-text-tracking: .03125em;--mat-form-field-container-text-weight: 400;--mat-form-field-outlined-label-text-populated-size: 16px;--mat-form-field-subscript-text-font: Roboto, sans-serif;--mat-form-field-subscript-text-line-height: 20px;--mat-form-field-subscript-text-size: 12px;--mat-form-field-subscript-text-tracking: .0333333333em;--mat-form-field-subscript-text-weight: 400}html{--mat-select-trigger-text-font: Roboto, sans-serif;--mat-select-trigger-text-line-height: 24px;--mat-select-trigger-text-size: 16px;--mat-select-trigger-text-tracking: .03125em;--mat-select-trigger-text-weight: 400}html{--mdc-dialog-subhead-font: Roboto, sans-serif;--mdc-dialog-subhead-line-height: 32px;--mdc-dialog-subhead-size: 20px;--mdc-dialog-subhead-weight: 500;--mdc-dialog-subhead-tracking: .0125em;--mdc-dialog-supporting-text-font: Roboto, sans-serif;--mdc-dialog-supporting-text-line-height: 24px;--mdc-dialog-supporting-text-size: 16px;--mdc-dialog-supporting-text-weight: 400;--mdc-dialog-supporting-text-tracking: .03125em}.mat-mdc-standard-chip{--mdc-chip-label-text-font: Roboto, sans-serif;--mdc-chip-label-text-line-height: 20px;--mdc-chip-label-text-size: 14px;--mdc-chip-label-text-tracking: .0178571429em;--mdc-chip-label-text-weight: 400}html .mat-mdc-slide-toggle{--mat-switch-label-text-font: Roboto, sans-serif;--mat-switch-label-text-line-height: 20px;--mat-switch-label-text-size: 14px;--mat-switch-label-text-tracking: .0178571429em;--mat-switch-label-text-weight: 400}html{--mat-radio-label-text-font: Roboto, sans-serif;--mat-radio-label-text-line-height: 20px;--mat-radio-label-text-size: 14px;--mat-radio-label-text-tracking: .0178571429em;--mat-radio-label-text-weight: 400}html{--mdc-slider-label-label-text-font: Roboto, sans-serif;--mdc-slider-label-label-text-size: 14px;--mdc-slider-label-label-text-line-height: 22px;--mdc-slider-label-label-text-tracking: .0071428571em;--mdc-slider-label-label-text-weight: 500}html{--mat-menu-item-label-text-font: Roboto, sans-serif;--mat-menu-item-label-text-size: 16px;--mat-menu-item-label-text-tracking: .03125em;--mat-menu-item-label-text-line-height: 24px;--mat-menu-item-label-text-weight: 400}html{--mdc-list-list-item-label-text-font: Roboto, sans-serif;--mdc-list-list-item-label-text-line-height: 24px;--mdc-list-list-item-label-text-size: 16px;--mdc-list-list-item-label-text-tracking: .03125em;--mdc-list-list-item-label-text-weight: 400;--mdc-list-list-item-supporting-text-font: Roboto, sans-serif;--mdc-list-list-item-supporting-text-line-height: 20px;--mdc-list-list-item-supporting-text-size: 14px;--mdc-list-list-item-supporting-text-tracking: .0178571429em;--mdc-list-list-item-supporting-text-weight: 400;--mdc-list-list-item-trailing-supporting-text-font: Roboto, sans-serif;--mdc-list-list-item-trailing-supporting-text-line-height: 20px;--mdc-list-list-item-trailing-supporting-text-size: 12px;--mdc-list-list-item-trailing-supporting-text-tracking: .0333333333em;--mdc-list-list-item-trailing-supporting-text-weight: 400}.mdc-list-group__subheader{font:400 16px/28px Roboto,sans-serif;letter-spacing:.009375em}html{--mat-paginator-container-text-font: Roboto, sans-serif;--mat-paginator-container-text-line-height: 20px;--mat-paginator-container-text-size: 12px;--mat-paginator-container-text-tracking: .0333333333em;--mat-paginator-container-text-weight: 400;--mat-paginator-select-trigger-text-size: 12px}.mat-mdc-tab-header{--mat-tab-header-label-text-font: Roboto, sans-serif;--mat-tab-header-label-text-size: 14px;--mat-tab-header-label-text-tracking: .0892857143em;--mat-tab-header-label-text-line-height: 36px;--mat-tab-header-label-text-weight: 500}html{--mat-checkbox-label-text-font: Roboto, sans-serif;--mat-checkbox-label-text-line-height: 20px;--mat-checkbox-label-text-size: 14px;--mat-checkbox-label-text-tracking: .0178571429em;--mat-checkbox-label-text-weight: 400}html{--mdc-text-button-label-text-font: Roboto, sans-serif;--mdc-text-button-label-text-size: 14px;--mdc-text-button-label-text-tracking: .0892857143em;--mdc-text-button-label-text-weight: 500;--mdc-text-button-label-text-transform: none;--mdc-filled-button-label-text-font: Roboto, sans-serif;--mdc-filled-button-label-text-size: 14px;--mdc-filled-button-label-text-tracking: .0892857143em;--mdc-filled-button-label-text-weight: 500;--mdc-filled-button-label-text-transform: none;--mdc-protected-button-label-text-font: Roboto, sans-serif;--mdc-protected-button-label-text-size: 14px;--mdc-protected-button-label-text-tracking: .0892857143em;--mdc-protected-button-label-text-weight: 500;--mdc-protected-button-label-text-transform: none;--mdc-outlined-button-label-text-font: Roboto, sans-serif;--mdc-outlined-button-label-text-size: 14px;--mdc-outlined-button-label-text-tracking: .0892857143em;--mdc-outlined-button-label-text-weight: 500;--mdc-outlined-button-label-text-transform: none}html{--mdc-extended-fab-label-text-font: Roboto, sans-serif;--mdc-extended-fab-label-text-size: 14px;--mdc-extended-fab-label-text-tracking: .0892857143em;--mdc-extended-fab-label-text-weight: 500}html{--mdc-snackbar-supporting-text-font: Roboto, sans-serif;--mdc-snackbar-supporting-text-line-height: 20px;--mdc-snackbar-supporting-text-size: 14px;--mdc-snackbar-supporting-text-weight: 400}html{--mat-table-header-headline-font: Roboto, sans-serif;--mat-table-header-headline-line-height: 22px;--mat-table-header-headline-size: 14px;--mat-table-header-headline-weight: 500;--mat-table-header-headline-tracking: .0071428571em;--mat-table-row-item-label-text-font: Roboto, sans-serif;--mat-table-row-item-label-text-line-height: 20px;--mat-table-row-item-label-text-size: 14px;--mat-table-row-item-label-text-weight: 400;--mat-table-row-item-label-text-tracking: .0178571429em;--mat-table-footer-supporting-text-font: Roboto, sans-serif;--mat-table-footer-supporting-text-line-height: 20px;--mat-table-footer-supporting-text-size: 14px;--mat-table-footer-supporting-text-weight: 400;--mat-table-footer-supporting-text-tracking: .0178571429em}.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active .mat-ripple-element,.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator{position:relative}.mat-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator{position:relative}.mat-mdc-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-mdc-focus-indicator-display: block}.mat-app-background{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.mat-theme-loaded-marker{display:none}html{--mat-ripple-color: rgba(0, 0, 0, .1)}html{--mat-option-selected-state-label-text-color: #689f38;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}.mat-accent{--mat-option-selected-state-label-text-color: #ff9800;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}.mat-warn{--mat-option-selected-state-label-text-color: #f44336;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}html{--mat-optgroup-label-text-color: rgba(0, 0, 0, .87)}.mat-primary{--mat-full-pseudo-checkbox-selected-icon-color: #689f38;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #689f38;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}html,.mat-accent{--mat-full-pseudo-checkbox-selected-icon-color: #ff9800;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #ff9800;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}.mat-warn{--mat-full-pseudo-checkbox-selected-icon-color: #f44336;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #f44336;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}html{--mat-app-background-color: #fafafa;--mat-app-text-color: rgba(0, 0, 0, .87);--mat-app-elevation-shadow-level-0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-2: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-3: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-4: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-5: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 5px 8px 0px rgba(0, 0, 0, .14), 0px 1px 14px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-6: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-7: 0px 4px 5px -2px rgba(0, 0, 0, .2), 0px 7px 10px 1px rgba(0, 0, 0, .14), 0px 2px 16px 1px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-8: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-9: 0px 5px 6px -3px rgba(0, 0, 0, .2), 0px 9px 12px 1px rgba(0, 0, 0, .14), 0px 3px 16px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-10: 0px 6px 6px -3px rgba(0, 0, 0, .2), 0px 10px 14px 1px rgba(0, 0, 0, .14), 0px 4px 18px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-11: 0px 6px 7px -4px rgba(0, 0, 0, .2), 0px 11px 15px 1px rgba(0, 0, 0, .14), 0px 4px 20px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-12: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-13: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 13px 19px 2px rgba(0, 0, 0, .14), 0px 5px 24px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-14: 0px 7px 9px -4px rgba(0, 0, 0, .2), 0px 14px 21px 2px rgba(0, 0, 0, .14), 0px 5px 26px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-15: 0px 8px 9px -5px rgba(0, 0, 0, .2), 0px 15px 22px 2px rgba(0, 0, 0, .14), 0px 6px 28px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-16: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-17: 0px 8px 11px -5px rgba(0, 0, 0, .2), 0px 17px 26px 2px rgba(0, 0, 0, .14), 0px 6px 32px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-18: 0px 9px 11px -5px rgba(0, 0, 0, .2), 0px 18px 28px 2px rgba(0, 0, 0, .14), 0px 7px 34px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-19: 0px 9px 12px -6px rgba(0, 0, 0, .2), 0px 19px 29px 2px rgba(0, 0, 0, .14), 0px 7px 36px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-20: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 20px 31px 3px rgba(0, 0, 0, .14), 0px 8px 38px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-21: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 21px 33px 3px rgba(0, 0, 0, .14), 0px 8px 40px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-22: 0px 10px 14px -6px rgba(0, 0, 0, .2), 0px 22px 35px 3px rgba(0, 0, 0, .14), 0px 8px 42px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-23: 0px 11px 14px -7px rgba(0, 0, 0, .2), 0px 23px 36px 3px rgba(0, 0, 0, .14), 0px 9px 44px 8px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-24: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html{--mdc-elevated-card-container-shape: 4px;--mdc-outlined-card-container-shape: 4px;--mdc-outlined-card-outline-width: 1px}html{--mdc-elevated-card-container-color: white;--mdc-elevated-card-container-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-outlined-card-container-color: white;--mdc-outlined-card-outline-color: rgba(0, 0, 0, .12);--mdc-outlined-card-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-card-subtitle-text-color: rgba(0, 0, 0, .54)}html{--mdc-linear-progress-active-indicator-height: 4px;--mdc-linear-progress-track-height: 4px;--mdc-linear-progress-track-shape: 0}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-color: #689f38;--mdc-linear-progress-track-color: rgba(104, 159, 56, .25)}.mat-mdc-progress-bar.mat-accent{--mdc-linear-progress-active-indicator-color: #ff9800;--mdc-linear-progress-track-color: rgba(255, 152, 0, .25)}.mat-mdc-progress-bar.mat-warn{--mdc-linear-progress-active-indicator-color: #f44336;--mdc-linear-progress-track-color: rgba(244, 67, 54, .25)}html{--mdc-plain-tooltip-container-shape: 4px;--mdc-plain-tooltip-supporting-text-line-height: 16px}html{--mdc-plain-tooltip-container-color: #616161;--mdc-plain-tooltip-supporting-text-color: #fff}html{--mdc-filled-text-field-active-indicator-height: 1px;--mdc-filled-text-field-focus-active-indicator-height: 2px;--mdc-filled-text-field-container-shape: 4px;--mdc-outlined-text-field-outline-width: 1px;--mdc-outlined-text-field-focus-outline-width: 2px;--mdc-outlined-text-field-container-shape: 4px}html{--mdc-filled-text-field-caret-color: #689f38;--mdc-filled-text-field-focus-active-indicator-color: #689f38;--mdc-filled-text-field-focus-label-text-color: rgba(104, 159, 56, .87);--mdc-filled-text-field-container-color: whitesmoke;--mdc-filled-text-field-disabled-container-color: #fafafa;--mdc-filled-text-field-label-text-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-hover-label-text-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-color: rgba(0, 0, 0, .87);--mdc-filled-text-field-disabled-input-text-color: rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-placeholder-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-error-hover-label-text-color: #f44336;--mdc-filled-text-field-error-focus-label-text-color: #f44336;--mdc-filled-text-field-error-label-text-color: #f44336;--mdc-filled-text-field-error-caret-color: #f44336;--mdc-filled-text-field-active-indicator-color: rgba(0, 0, 0, .42);--mdc-filled-text-field-disabled-active-indicator-color: rgba(0, 0, 0, .06);--mdc-filled-text-field-hover-active-indicator-color: rgba(0, 0, 0, .87);--mdc-filled-text-field-error-active-indicator-color: #f44336;--mdc-filled-text-field-error-focus-active-indicator-color: #f44336;--mdc-filled-text-field-error-hover-active-indicator-color: #f44336;--mdc-outlined-text-field-caret-color: #689f38;--mdc-outlined-text-field-focus-outline-color: #689f38;--mdc-outlined-text-field-focus-label-text-color: rgba(104, 159, 56, .87);--mdc-outlined-text-field-label-text-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-hover-label-text-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-color: rgba(0, 0, 0, .87);--mdc-outlined-text-field-disabled-input-text-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-placeholder-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-error-caret-color: #f44336;--mdc-outlined-text-field-error-focus-label-text-color: #f44336;--mdc-outlined-text-field-error-label-text-color: #f44336;--mdc-outlined-text-field-error-hover-label-text-color: #f44336;--mdc-outlined-text-field-outline-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-disabled-outline-color: rgba(0, 0, 0, .06);--mdc-outlined-text-field-hover-outline-color: rgba(0, 0, 0, .87);--mdc-outlined-text-field-error-focus-outline-color: #f44336;--mdc-outlined-text-field-error-hover-outline-color: #f44336;--mdc-outlined-text-field-error-outline-color: #f44336;--mat-form-field-focus-select-arrow-color: rgba(104, 159, 56, .87);--mat-form-field-disabled-input-text-placeholder-color: rgba(0, 0, 0, .38);--mat-form-field-state-layer-color: rgba(0, 0, 0, .87);--mat-form-field-error-text-color: #f44336;--mat-form-field-select-option-text-color: inherit;--mat-form-field-select-disabled-option-text-color: GrayText;--mat-form-field-leading-icon-color: unset;--mat-form-field-disabled-leading-icon-color: unset;--mat-form-field-trailing-icon-color: unset;--mat-form-field-disabled-trailing-icon-color: unset;--mat-form-field-error-focus-trailing-icon-color: unset;--mat-form-field-error-hover-trailing-icon-color: unset;--mat-form-field-error-trailing-icon-color: unset;--mat-form-field-enabled-select-arrow-color: rgba(0, 0, 0, .54);--mat-form-field-disabled-select-arrow-color: rgba(0, 0, 0, .38);--mat-form-field-hover-state-layer-opacity: .04;--mat-form-field-focus-state-layer-opacity: .08}.mat-mdc-form-field.mat-accent{--mdc-filled-text-field-caret-color: #ff9800;--mdc-filled-text-field-focus-active-indicator-color: #ff9800;--mdc-filled-text-field-focus-label-text-color: rgba(255, 152, 0, .87);--mdc-outlined-text-field-caret-color: #ff9800;--mdc-outlined-text-field-focus-outline-color: #ff9800;--mdc-outlined-text-field-focus-label-text-color: rgba(255, 152, 0, .87);--mat-form-field-focus-select-arrow-color: rgba(255, 152, 0, .87)}.mat-mdc-form-field.mat-warn{--mdc-filled-text-field-caret-color: #f44336;--mdc-filled-text-field-focus-active-indicator-color: #f44336;--mdc-filled-text-field-focus-label-text-color: rgba(244, 67, 54, .87);--mdc-outlined-text-field-caret-color: #f44336;--mdc-outlined-text-field-focus-outline-color: #f44336;--mdc-outlined-text-field-focus-label-text-color: rgba(244, 67, 54, .87);--mat-form-field-focus-select-arrow-color: rgba(244, 67, 54, .87)}html{--mat-form-field-container-height: 56px;--mat-form-field-filled-label-display: block;--mat-form-field-container-vertical-padding: 16px;--mat-form-field-filled-with-label-container-padding-top: 24px;--mat-form-field-filled-with-label-container-padding-bottom: 8px}html{--mat-select-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(104, 159, 56, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-accent{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(255, 152, 0, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-warn{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(244, 67, 54, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html{--mat-select-arrow-transform: translateY(-8px)}html{--mat-autocomplete-container-shape: 4px;--mat-autocomplete-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-autocomplete-background-color: white}html{--mdc-dialog-container-shape: 4px;--mat-dialog-container-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mat-dialog-container-max-width: 80vw;--mat-dialog-container-small-max-width: 80vw;--mat-dialog-container-min-width: 0;--mat-dialog-actions-alignment: start;--mat-dialog-actions-padding: 8px;--mat-dialog-content-padding: 20px 24px;--mat-dialog-with-actions-content-padding: 20px 24px;--mat-dialog-headline-padding: 0 24px 9px}html{--mdc-dialog-container-color: white;--mdc-dialog-subhead-color: rgba(0, 0, 0, .87);--mdc-dialog-supporting-text-color: rgba(0, 0, 0, .6)}.mat-mdc-standard-chip{--mdc-chip-container-shape-radius: 16px;--mdc-chip-with-avatar-avatar-shape-radius: 14px;--mdc-chip-with-avatar-avatar-size: 28px;--mdc-chip-with-icon-icon-size: 18px;--mdc-chip-outline-width: 0;--mdc-chip-outline-color: transparent;--mdc-chip-disabled-outline-color: transparent;--mdc-chip-focus-outline-color: transparent;--mdc-chip-hover-state-layer-opacity: .04;--mdc-chip-with-avatar-disabled-avatar-opacity: 1;--mdc-chip-flat-selected-outline-width: 0;--mdc-chip-selected-hover-state-layer-opacity: .04;--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity: 1;--mdc-chip-with-icon-disabled-icon-opacity: 1;--mat-chip-disabled-container-opacity: .4;--mat-chip-trailing-action-opacity: .54;--mat-chip-trailing-action-focus-opacity: 1;--mat-chip-trailing-action-state-layer-color: transparent;--mat-chip-selected-trailing-action-state-layer-color: transparent;--mat-chip-trailing-action-hover-state-layer-opacity: 0;--mat-chip-trailing-action-focus-state-layer-opacity: 0}.mat-mdc-standard-chip{--mdc-chip-disabled-label-text-color: #212121;--mdc-chip-elevated-container-color: #e0e0e0;--mdc-chip-elevated-selected-container-color: #e0e0e0;--mdc-chip-elevated-disabled-container-color: #e0e0e0;--mdc-chip-flat-disabled-selected-container-color: #e0e0e0;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: #212121;--mdc-chip-selected-label-text-color: #212121;--mdc-chip-with-icon-icon-color: #212121;--mdc-chip-with-icon-disabled-icon-color: #212121;--mdc-chip-with-icon-selected-icon-color: #212121;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: #212121;--mdc-chip-with-trailing-icon-trailing-icon-color: #212121;--mat-chip-selected-disabled-trailing-icon-color: #212121;--mat-chip-selected-trailing-icon-color: #212121}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #689f38;--mdc-chip-elevated-selected-container-color: #689f38;--mdc-chip-elevated-disabled-container-color: #689f38;--mdc-chip-flat-disabled-selected-container-color: #689f38;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent{--mdc-chip-disabled-label-text-color: rgba(0, 0, 0, .87);--mdc-chip-elevated-container-color: #ff9800;--mdc-chip-elevated-selected-container-color: #ff9800;--mdc-chip-elevated-disabled-container-color: #ff9800;--mdc-chip-flat-disabled-selected-container-color: #ff9800;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: rgba(0, 0, 0, .87);--mdc-chip-selected-label-text-color: rgba(0, 0, 0, .87);--mdc-chip-with-icon-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-icon-disabled-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-icon-selected-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-trailing-icon-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-selected-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-selected-trailing-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #f44336;--mdc-chip-elevated-selected-container-color: #f44336;--mdc-chip-elevated-disabled-container-color: #f44336;--mdc-chip-flat-disabled-selected-container-color: #f44336;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.mat-mdc-chip.mat-mdc-standard-chip{--mdc-chip-container-height: 32px}html{--mdc-switch-disabled-selected-icon-opacity: .38;--mdc-switch-disabled-track-opacity: .12;--mdc-switch-disabled-unselected-icon-opacity: .38;--mdc-switch-handle-height: 20px;--mdc-switch-handle-shape: 10px;--mdc-switch-handle-width: 20px;--mdc-switch-selected-icon-size: 18px;--mdc-switch-track-height: 14px;--mdc-switch-track-shape: 7px;--mdc-switch-track-width: 36px;--mdc-switch-unselected-icon-size: 18px;--mdc-switch-selected-focus-state-layer-opacity: .12;--mdc-switch-selected-hover-state-layer-opacity: .04;--mdc-switch-selected-pressed-state-layer-opacity: .1;--mdc-switch-unselected-focus-state-layer-opacity: .12;--mdc-switch-unselected-hover-state-layer-opacity: .04;--mdc-switch-unselected-pressed-state-layer-opacity: .1}html .mat-mdc-slide-toggle{--mat-switch-disabled-selected-handle-opacity: .38;--mat-switch-disabled-unselected-handle-opacity: .38;--mat-switch-unselected-handle-size: 20px;--mat-switch-selected-handle-size: 20px;--mat-switch-pressed-handle-size: 20px;--mat-switch-with-icon-handle-size: 20px;--mat-switch-selected-handle-horizontal-margin: 0;--mat-switch-selected-with-icon-handle-horizontal-margin: 0;--mat-switch-selected-pressed-handle-horizontal-margin: 0;--mat-switch-unselected-handle-horizontal-margin: 0;--mat-switch-unselected-with-icon-handle-horizontal-margin: 0;--mat-switch-unselected-pressed-handle-horizontal-margin: 0;--mat-switch-visible-track-opacity: 1;--mat-switch-hidden-track-opacity: 1;--mat-switch-visible-track-transition: transform 75ms 0ms cubic-bezier(0, 0, .2, 1);--mat-switch-hidden-track-transition: transform 75ms 0ms cubic-bezier(.4, 0, .6, 1);--mat-switch-track-outline-width: 1px;--mat-switch-track-outline-color: transparent;--mat-switch-selected-track-outline-width: 1px;--mat-switch-selected-track-outline-color: transparent;--mat-switch-disabled-unselected-track-outline-width: 1px;--mat-switch-disabled-unselected-track-outline-color: transparent}html{--mdc-switch-selected-focus-state-layer-color: #7cb342;--mdc-switch-selected-handle-color: #7cb342;--mdc-switch-selected-hover-state-layer-color: #7cb342;--mdc-switch-selected-pressed-state-layer-color: #7cb342;--mdc-switch-selected-focus-handle-color: #33691e;--mdc-switch-selected-hover-handle-color: #33691e;--mdc-switch-selected-pressed-handle-color: #33691e;--mdc-switch-selected-focus-track-color: #aed581;--mdc-switch-selected-hover-track-color: #aed581;--mdc-switch-selected-pressed-track-color: #aed581;--mdc-switch-selected-track-color: #aed581;--mdc-switch-disabled-selected-handle-color: #424242;--mdc-switch-disabled-selected-icon-color: #fff;--mdc-switch-disabled-selected-track-color: #424242;--mdc-switch-disabled-unselected-handle-color: #424242;--mdc-switch-disabled-unselected-icon-color: #fff;--mdc-switch-disabled-unselected-track-color: #424242;--mdc-switch-handle-surface-color: #fff;--mdc-switch-selected-icon-color: #fff;--mdc-switch-unselected-focus-handle-color: #212121;--mdc-switch-unselected-focus-state-layer-color: #424242;--mdc-switch-unselected-focus-track-color: #e0e0e0;--mdc-switch-unselected-handle-color: #616161;--mdc-switch-unselected-hover-handle-color: #212121;--mdc-switch-unselected-hover-state-layer-color: #424242;--mdc-switch-unselected-hover-track-color: #e0e0e0;--mdc-switch-unselected-icon-color: #fff;--mdc-switch-unselected-pressed-handle-color: #212121;--mdc-switch-unselected-pressed-state-layer-color: #424242;--mdc-switch-unselected-pressed-track-color: #e0e0e0;--mdc-switch-unselected-track-color: #e0e0e0;--mdc-switch-handle-elevation-shadow: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-switch-disabled-handle-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-switch-disabled-label-text-color: rgba(0, 0, 0, .38)}html .mat-mdc-slide-toggle{--mat-switch-label-text-color: rgba(0, 0, 0, .87)}html .mat-mdc-slide-toggle.mat-accent{--mdc-switch-selected-focus-state-layer-color: #fb8c00;--mdc-switch-selected-handle-color: #fb8c00;--mdc-switch-selected-hover-state-layer-color: #fb8c00;--mdc-switch-selected-pressed-state-layer-color: #fb8c00;--mdc-switch-selected-focus-handle-color: #e65100;--mdc-switch-selected-hover-handle-color: #e65100;--mdc-switch-selected-pressed-handle-color: #e65100;--mdc-switch-selected-focus-track-color: #ffb74d;--mdc-switch-selected-hover-track-color: #ffb74d;--mdc-switch-selected-pressed-track-color: #ffb74d;--mdc-switch-selected-track-color: #ffb74d}html .mat-mdc-slide-toggle.mat-warn{--mdc-switch-selected-focus-state-layer-color: #e53935;--mdc-switch-selected-handle-color: #e53935;--mdc-switch-selected-hover-state-layer-color: #e53935;--mdc-switch-selected-pressed-state-layer-color: #e53935;--mdc-switch-selected-focus-handle-color: #b71c1c;--mdc-switch-selected-hover-handle-color: #b71c1c;--mdc-switch-selected-pressed-handle-color: #b71c1c;--mdc-switch-selected-focus-track-color: #e57373;--mdc-switch-selected-hover-track-color: #e57373;--mdc-switch-selected-pressed-track-color: #e57373;--mdc-switch-selected-track-color: #e57373}html{--mdc-switch-state-layer-size: 40px}html{--mdc-radio-disabled-selected-icon-opacity: .38;--mdc-radio-disabled-unselected-icon-opacity: .38;--mdc-radio-state-layer-size: 40px}.mat-mdc-radio-button.mat-primary{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #689f38;--mdc-radio-selected-hover-icon-color: #689f38;--mdc-radio-selected-icon-color: #689f38;--mdc-radio-selected-pressed-icon-color: #689f38;--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #689f38;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38);--mat-radio-label-text-color: rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-accent{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #ff9800;--mdc-radio-selected-hover-icon-color: #ff9800;--mdc-radio-selected-icon-color: #ff9800;--mdc-radio-selected-pressed-icon-color: #ff9800;--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #ff9800;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38);--mat-radio-label-text-color: rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-warn{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #f44336;--mdc-radio-selected-hover-icon-color: #f44336;--mdc-radio-selected-icon-color: #f44336;--mdc-radio-selected-pressed-icon-color: #f44336;--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #f44336;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38);--mat-radio-label-text-color: rgba(0, 0, 0, .87)}html{--mdc-radio-state-layer-size: 40px;--mat-radio-touch-target-display: block}html{--mdc-slider-active-track-height: 6px;--mdc-slider-active-track-shape: 9999px;--mdc-slider-handle-height: 20px;--mdc-slider-handle-shape: 50%;--mdc-slider-handle-width: 20px;--mdc-slider-inactive-track-height: 4px;--mdc-slider-inactive-track-shape: 9999px;--mdc-slider-with-overlap-handle-outline-width: 1px;--mdc-slider-with-tick-marks-active-container-opacity: .6;--mdc-slider-with-tick-marks-container-shape: 50%;--mdc-slider-with-tick-marks-container-size: 2px;--mdc-slider-with-tick-marks-inactive-container-opacity: .6;--mdc-slider-handle-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-slider-value-indicator-width: auto;--mat-slider-value-indicator-height: 32px;--mat-slider-value-indicator-caret-display: block;--mat-slider-value-indicator-border-radius: 4px;--mat-slider-value-indicator-padding: 0 12px;--mat-slider-value-indicator-text-transform: none;--mat-slider-value-indicator-container-transform: translateX(-50%)}html{--mdc-slider-handle-color: #689f38;--mdc-slider-focus-handle-color: #689f38;--mdc-slider-hover-handle-color: #689f38;--mdc-slider-active-track-color: #689f38;--mdc-slider-inactive-track-color: #689f38;--mdc-slider-with-tick-marks-inactive-container-color: #689f38;--mdc-slider-with-tick-marks-active-container-color: white;--mdc-slider-disabled-active-track-color: #000;--mdc-slider-disabled-handle-color: #000;--mdc-slider-disabled-inactive-track-color: #000;--mdc-slider-label-container-color: #000;--mdc-slider-label-label-text-color: #fff;--mdc-slider-with-overlap-handle-outline-color: #fff;--mdc-slider-with-tick-marks-disabled-container-color: #000;--mat-slider-ripple-color: #689f38;--mat-slider-hover-state-layer-color: rgba(104, 159, 56, .05);--mat-slider-focus-state-layer-color: rgba(104, 159, 56, .2);--mat-slider-value-indicator-opacity: .6}html .mat-accent{--mdc-slider-handle-color: #ff9800;--mdc-slider-focus-handle-color: #ff9800;--mdc-slider-hover-handle-color: #ff9800;--mdc-slider-active-track-color: #ff9800;--mdc-slider-inactive-track-color: #ff9800;--mdc-slider-with-tick-marks-inactive-container-color: #ff9800;--mdc-slider-with-tick-marks-active-container-color: rgba(0, 0, 0, .87);--mat-slider-ripple-color: #ff9800;--mat-slider-hover-state-layer-color: rgba(255, 152, 0, .05);--mat-slider-focus-state-layer-color: rgba(255, 152, 0, .2)}html .mat-warn{--mdc-slider-handle-color: #f44336;--mdc-slider-focus-handle-color: #f44336;--mdc-slider-hover-handle-color: #f44336;--mdc-slider-active-track-color: #f44336;--mdc-slider-inactive-track-color: #f44336;--mdc-slider-with-tick-marks-inactive-container-color: #f44336;--mdc-slider-with-tick-marks-active-container-color: white;--mat-slider-ripple-color: #f44336;--mat-slider-hover-state-layer-color: rgba(244, 67, 54, .05);--mat-slider-focus-state-layer-color: rgba(244, 67, 54, .2)}html{--mat-menu-container-shape: 4px;--mat-menu-divider-bottom-spacing: 0;--mat-menu-divider-top-spacing: 0;--mat-menu-item-spacing: 16px;--mat-menu-item-icon-size: 24px;--mat-menu-item-leading-spacing: 16px;--mat-menu-item-trailing-spacing: 16px;--mat-menu-item-with-icon-leading-spacing: 16px;--mat-menu-item-with-icon-trailing-spacing: 16px;--mat-menu-base-elevation-level: 8}html{--mat-menu-item-label-text-color: rgba(0, 0, 0, .87);--mat-menu-item-icon-color: rgba(0, 0, 0, .87);--mat-menu-item-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-menu-item-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-menu-container-color: white;--mat-menu-divider-color: rgba(0, 0, 0, .12)}html{--mdc-list-list-item-container-shape: 0;--mdc-list-list-item-leading-avatar-shape: 50%;--mdc-list-list-item-container-color: transparent;--mdc-list-list-item-selected-container-color: transparent;--mdc-list-list-item-leading-avatar-color: transparent;--mdc-list-list-item-leading-icon-size: 24px;--mdc-list-list-item-leading-avatar-size: 40px;--mdc-list-list-item-trailing-icon-size: 24px;--mdc-list-list-item-disabled-state-layer-color: transparent;--mdc-list-list-item-disabled-state-layer-opacity: 0;--mdc-list-list-item-disabled-label-text-opacity: .38;--mdc-list-list-item-disabled-leading-icon-opacity: .38;--mdc-list-list-item-disabled-trailing-icon-opacity: .38;--mat-list-active-indicator-color: transparent;--mat-list-active-indicator-shape: 4px}html{--mdc-list-list-item-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-supporting-text-color: rgba(0, 0, 0, .54);--mdc-list-list-item-leading-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-trailing-supporting-text-color: rgba(0, 0, 0, .38);--mdc-list-list-item-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-selected-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-disabled-label-text-color: black;--mdc-list-list-item-disabled-leading-icon-color: black;--mdc-list-list-item-disabled-trailing-icon-color: black;--mdc-list-list-item-hover-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-hover-leading-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-hover-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-focus-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-hover-state-layer-color: black;--mdc-list-list-item-hover-state-layer-opacity: .04;--mdc-list-list-item-focus-state-layer-color: black;--mdc-list-list-item-focus-state-layer-opacity: .12}.mdc-list-item__start,.mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #689f38;--mdc-radio-selected-hover-icon-color: #689f38;--mdc-radio-selected-icon-color: #689f38;--mdc-radio-selected-pressed-icon-color: #689f38}.mat-accent .mdc-list-item__start,.mat-accent .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #ff9800;--mdc-radio-selected-hover-icon-color: #ff9800;--mdc-radio-selected-icon-color: #ff9800;--mdc-radio-selected-pressed-icon-color: #ff9800}.mat-warn .mdc-list-item__start,.mat-warn .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #f44336;--mdc-radio-selected-hover-icon-color: #f44336;--mdc-radio-selected-icon-color: #f44336;--mdc-radio-selected-pressed-icon-color: #f44336}.mat-mdc-list-option{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #689f38;--mdc-checkbox-selected-hover-icon-color: #689f38;--mdc-checkbox-selected-icon-color: #689f38;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #689f38;--mdc-checkbox-selected-hover-state-layer-color: #689f38;--mdc-checkbox-selected-pressed-state-layer-color: #689f38;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-option.mat-accent{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: black;--mdc-checkbox-selected-focus-icon-color: #ff9800;--mdc-checkbox-selected-hover-icon-color: #ff9800;--mdc-checkbox-selected-icon-color: #ff9800;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #ff9800;--mdc-checkbox-selected-hover-state-layer-color: #ff9800;--mdc-checkbox-selected-pressed-state-layer-color: #ff9800;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-option.mat-warn{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #f44336;--mdc-checkbox-selected-hover-icon-color: #f44336;--mdc-checkbox-selected-icon-color: #f44336;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #f44336;--mdc-checkbox-selected-hover-state-layer-color: #f44336;--mdc-checkbox-selected-pressed-state-layer-color: #f44336;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__start,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__start{color:#689f38}.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__content,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__end{opacity:1}html{--mdc-list-list-item-one-line-container-height: 48px;--mdc-list-list-item-two-line-container-height: 64px;--mdc-list-list-item-three-line-container-height: 88px;--mat-list-list-item-leading-icon-start-space: 16px;--mat-list-list-item-leading-icon-end-space: 32px}.mdc-list-item__start,.mdc-list-item__end{--mdc-radio-state-layer-size: 40px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}html{--mat-paginator-container-text-color: rgba(0, 0, 0, .87);--mat-paginator-container-background-color: white;--mat-paginator-enabled-icon-color: rgba(0, 0, 0, .54);--mat-paginator-disabled-icon-color: rgba(0, 0, 0, .12)}html{--mat-paginator-container-size: 56px;--mat-paginator-form-field-container-height: 40px;--mat-paginator-form-field-container-vertical-padding: 8px;--mat-paginator-touch-target-display: block}html{--mdc-secondary-navigation-tab-container-height: 48px;--mdc-tab-indicator-active-indicator-height: 2px;--mdc-tab-indicator-active-indicator-shape: 0;--mat-tab-header-divider-color: transparent;--mat-tab-header-divider-height: 0}.mat-mdc-tab-group,.mat-mdc-tab-nav-bar{--mdc-tab-indicator-active-indicator-color: #689f38;--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #689f38;--mat-tab-header-active-ripple-color: #689f38;--mat-tab-header-inactive-ripple-color: #689f38;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #689f38;--mat-tab-header-active-hover-label-text-color: #689f38;--mat-tab-header-active-focus-indicator-color: #689f38;--mat-tab-header-active-hover-indicator-color: #689f38}.mat-mdc-tab-group.mat-accent,.mat-mdc-tab-nav-bar.mat-accent{--mdc-tab-indicator-active-indicator-color: #ff9800;--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #ff9800;--mat-tab-header-active-ripple-color: #ff9800;--mat-tab-header-inactive-ripple-color: #ff9800;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #ff9800;--mat-tab-header-active-hover-label-text-color: #ff9800;--mat-tab-header-active-focus-indicator-color: #ff9800;--mat-tab-header-active-hover-indicator-color: #ff9800}.mat-mdc-tab-group.mat-warn,.mat-mdc-tab-nav-bar.mat-warn{--mdc-tab-indicator-active-indicator-color: #f44336;--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #f44336;--mat-tab-header-active-ripple-color: #f44336;--mat-tab-header-inactive-ripple-color: #f44336;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #f44336;--mat-tab-header-active-hover-label-text-color: #f44336;--mat-tab-header-active-focus-indicator-color: #f44336;--mat-tab-header-active-hover-indicator-color: #f44336}.mat-mdc-tab-group.mat-background-primary,.mat-mdc-tab-nav-bar.mat-background-primary{--mat-tab-header-with-background-background-color: #689f38;--mat-tab-header-with-background-foreground-color: white}.mat-mdc-tab-group.mat-background-accent,.mat-mdc-tab-nav-bar.mat-background-accent{--mat-tab-header-with-background-background-color: #ff9800;--mat-tab-header-with-background-foreground-color: rgba(0, 0, 0, .87)}.mat-mdc-tab-group.mat-background-warn,.mat-mdc-tab-nav-bar.mat-background-warn{--mat-tab-header-with-background-background-color: #f44336;--mat-tab-header-with-background-foreground-color: white}.mat-mdc-tab-header{--mdc-secondary-navigation-tab-container-height: 48px}html{--mdc-checkbox-disabled-selected-checkmark-color: #fff;--mdc-checkbox-selected-focus-state-layer-opacity: .16;--mdc-checkbox-selected-hover-state-layer-opacity: .04;--mdc-checkbox-selected-pressed-state-layer-opacity: .16;--mdc-checkbox-unselected-focus-state-layer-opacity: .16;--mdc-checkbox-unselected-hover-state-layer-opacity: .04;--mdc-checkbox-unselected-pressed-state-layer-opacity: .16}html{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: black;--mdc-checkbox-selected-focus-icon-color: #ff9800;--mdc-checkbox-selected-hover-icon-color: #ff9800;--mdc-checkbox-selected-icon-color: #ff9800;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #ff9800;--mdc-checkbox-selected-hover-state-layer-color: #ff9800;--mdc-checkbox-selected-pressed-state-layer-color: #ff9800;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black;--mat-checkbox-disabled-label-color: rgba(0, 0, 0, .38);--mat-checkbox-label-text-color: rgba(0, 0, 0, .87)}.mat-mdc-checkbox.mat-primary{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #689f38;--mdc-checkbox-selected-hover-icon-color: #689f38;--mdc-checkbox-selected-icon-color: #689f38;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #689f38;--mdc-checkbox-selected-hover-state-layer-color: #689f38;--mdc-checkbox-selected-pressed-state-layer-color: #689f38;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-checkbox.mat-warn{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #f44336;--mdc-checkbox-selected-hover-icon-color: #f44336;--mdc-checkbox-selected-icon-color: #f44336;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #f44336;--mdc-checkbox-selected-hover-state-layer-color: #f44336;--mdc-checkbox-selected-pressed-state-layer-color: #f44336;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}html{--mdc-checkbox-state-layer-size: 40px;--mat-checkbox-touch-target-display: block}html{--mdc-text-button-container-shape: 4px;--mdc-text-button-keep-touch-target: false;--mdc-filled-button-container-shape: 4px;--mdc-filled-button-keep-touch-target: false;--mdc-protected-button-container-shape: 4px;--mdc-protected-button-container-elevation-shadow: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mdc-protected-button-disabled-container-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-protected-button-focus-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-hover-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-pressed-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-outlined-button-keep-touch-target: false;--mdc-outlined-button-outline-width: 1px;--mdc-outlined-button-container-shape: 4px;--mat-text-button-horizontal-padding: 8px;--mat-text-button-with-icon-horizontal-padding: 8px;--mat-text-button-icon-spacing: 8px;--mat-text-button-icon-offset: 0;--mat-filled-button-horizontal-padding: 16px;--mat-filled-button-icon-spacing: 8px;--mat-filled-button-icon-offset: -4px;--mat-protected-button-horizontal-padding: 16px;--mat-protected-button-icon-spacing: 8px;--mat-protected-button-icon-offset: -4px;--mat-outlined-button-horizontal-padding: 15px;--mat-outlined-button-icon-spacing: 8px;--mat-outlined-button-icon-offset: -4px}html{--mdc-text-button-label-text-color: black;--mdc-text-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mat-text-button-state-layer-color: black;--mat-text-button-disabled-state-layer-color: black;--mat-text-button-ripple-color: rgba(0, 0, 0, .1);--mat-text-button-hover-state-layer-opacity: .04;--mat-text-button-focus-state-layer-opacity: .12;--mat-text-button-pressed-state-layer-opacity: .12;--mdc-filled-button-container-color: white;--mdc-filled-button-label-text-color: black;--mdc-filled-button-disabled-container-color: rgba(0, 0, 0, .12);--mdc-filled-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mat-filled-button-state-layer-color: black;--mat-filled-button-disabled-state-layer-color: black;--mat-filled-button-ripple-color: rgba(0, 0, 0, .1);--mat-filled-button-hover-state-layer-opacity: .04;--mat-filled-button-focus-state-layer-opacity: .12;--mat-filled-button-pressed-state-layer-opacity: .12;--mdc-protected-button-container-color: white;--mdc-protected-button-label-text-color: black;--mdc-protected-button-disabled-container-color: rgba(0, 0, 0, .12);--mdc-protected-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mat-protected-button-state-layer-color: black;--mat-protected-button-disabled-state-layer-color: black;--mat-protected-button-ripple-color: rgba(0, 0, 0, .1);--mat-protected-button-hover-state-layer-opacity: .04;--mat-protected-button-focus-state-layer-opacity: .12;--mat-protected-button-pressed-state-layer-opacity: .12;--mdc-outlined-button-disabled-outline-color: rgba(0, 0, 0, .12);--mdc-outlined-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-outlined-button-label-text-color: black;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: black;--mat-outlined-button-disabled-state-layer-color: black;--mat-outlined-button-ripple-color: rgba(0, 0, 0, .1);--mat-outlined-button-hover-state-layer-opacity: .04;--mat-outlined-button-focus-state-layer-opacity: .12;--mat-outlined-button-pressed-state-layer-opacity: .12}.mat-mdc-button.mat-primary{--mdc-text-button-label-text-color: #689f38;--mat-text-button-state-layer-color: #689f38;--mat-text-button-ripple-color: rgba(104, 159, 56, .1)}.mat-mdc-button.mat-accent{--mdc-text-button-label-text-color: #ff9800;--mat-text-button-state-layer-color: #ff9800;--mat-text-button-ripple-color: rgba(255, 152, 0, .1)}.mat-mdc-button.mat-warn{--mdc-text-button-label-text-color: #f44336;--mat-text-button-state-layer-color: #f44336;--mat-text-button-ripple-color: rgba(244, 67, 54, .1)}.mat-mdc-unelevated-button.mat-primary{--mdc-filled-button-container-color: #689f38;--mdc-filled-button-label-text-color: white;--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-unelevated-button.mat-accent{--mdc-filled-button-container-color: #ff9800;--mdc-filled-button-label-text-color: black;--mat-filled-button-state-layer-color: black;--mat-filled-button-ripple-color: rgba(0, 0, 0, .1)}.mat-mdc-unelevated-button.mat-warn{--mdc-filled-button-container-color: #f44336;--mdc-filled-button-label-text-color: white;--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-primary{--mdc-protected-button-container-color: #689f38;--mdc-protected-button-label-text-color: white;--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-accent{--mdc-protected-button-container-color: #ff9800;--mdc-protected-button-label-text-color: black;--mat-protected-button-state-layer-color: black;--mat-protected-button-ripple-color: rgba(0, 0, 0, .1)}.mat-mdc-raised-button.mat-warn{--mdc-protected-button-container-color: #f44336;--mdc-protected-button-label-text-color: white;--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-outlined-button.mat-primary{--mdc-outlined-button-label-text-color: #689f38;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #689f38;--mat-outlined-button-ripple-color: rgba(104, 159, 56, .1)}.mat-mdc-outlined-button.mat-accent{--mdc-outlined-button-label-text-color: #ff9800;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #ff9800;--mat-outlined-button-ripple-color: rgba(255, 152, 0, .1)}.mat-mdc-outlined-button.mat-warn{--mdc-outlined-button-label-text-color: #f44336;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #f44336;--mat-outlined-button-ripple-color: rgba(244, 67, 54, .1)}html{--mdc-text-button-container-height: 36px;--mdc-filled-button-container-height: 36px;--mdc-protected-button-container-height: 36px;--mdc-outlined-button-container-height: 36px;--mat-text-button-touch-target-display: block;--mat-filled-button-touch-target-display: block;--mat-protected-button-touch-target-display: block;--mat-outlined-button-touch-target-display: block}html{--mdc-icon-button-icon-size: 24px}html{--mdc-icon-button-icon-color: inherit;--mdc-icon-button-disabled-icon-color: rgba(0, 0, 0, .38);--mat-icon-button-state-layer-color: black;--mat-icon-button-disabled-state-layer-color: black;--mat-icon-button-ripple-color: rgba(0, 0, 0, .1);--mat-icon-button-hover-state-layer-opacity: .04;--mat-icon-button-focus-state-layer-opacity: .12;--mat-icon-button-pressed-state-layer-opacity: .12}html .mat-mdc-icon-button.mat-primary{--mdc-icon-button-icon-color: #689f38;--mat-icon-button-state-layer-color: #689f38;--mat-icon-button-ripple-color: rgba(104, 159, 56, .1)}html .mat-mdc-icon-button.mat-accent{--mdc-icon-button-icon-color: #ff9800;--mat-icon-button-state-layer-color: #ff9800;--mat-icon-button-ripple-color: rgba(255, 152, 0, .1)}html .mat-mdc-icon-button.mat-warn{--mdc-icon-button-icon-color: #f44336;--mat-icon-button-state-layer-color: #f44336;--mat-icon-button-ripple-color: rgba(244, 67, 54, .1)}html{--mat-icon-button-touch-target-display: block}.mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 48px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:12px}html{--mdc-fab-container-shape: 50%;--mdc-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-fab-small-container-shape: 50%;--mdc-fab-small-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-small-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-extended-fab-container-height: 48px;--mdc-extended-fab-container-shape: 24px;--mdc-extended-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-extended-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12)}html{--mdc-fab-container-color: white;--mat-fab-foreground-color: black;--mat-fab-state-layer-color: black;--mat-fab-disabled-state-layer-color: black;--mat-fab-ripple-color: rgba(0, 0, 0, .1);--mat-fab-hover-state-layer-opacity: .04;--mat-fab-focus-state-layer-opacity: .12;--mat-fab-pressed-state-layer-opacity: .12;--mat-fab-disabled-state-container-color: rgba(0, 0, 0, .12);--mat-fab-disabled-state-foreground-color: rgba(0, 0, 0, .38);--mdc-fab-small-container-color: white;--mat-fab-small-foreground-color: black;--mat-fab-small-state-layer-color: black;--mat-fab-small-disabled-state-layer-color: black;--mat-fab-small-ripple-color: rgba(0, 0, 0, .1);--mat-fab-small-hover-state-layer-opacity: .04;--mat-fab-small-focus-state-layer-opacity: .12;--mat-fab-small-pressed-state-layer-opacity: .12;--mat-fab-small-disabled-state-container-color: rgba(0, 0, 0, .12);--mat-fab-small-disabled-state-foreground-color: rgba(0, 0, 0, .38)}html .mat-mdc-fab.mat-primary{--mdc-fab-container-color: #689f38;--mat-fab-foreground-color: white;--mat-fab-state-layer-color: white;--mat-fab-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-fab.mat-accent{--mdc-fab-container-color: #ff9800;--mat-fab-foreground-color: black;--mat-fab-state-layer-color: black;--mat-fab-ripple-color: rgba(0, 0, 0, .1)}html .mat-mdc-fab.mat-warn{--mdc-fab-container-color: #f44336;--mat-fab-foreground-color: white;--mat-fab-state-layer-color: white;--mat-fab-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-mini-fab.mat-primary{--mdc-fab-small-container-color: #689f38;--mat-fab-small-foreground-color: white;--mat-fab-small-state-layer-color: white;--mat-fab-small-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-mini-fab.mat-accent{--mdc-fab-small-container-color: #ff9800;--mat-fab-small-foreground-color: black;--mat-fab-small-state-layer-color: black;--mat-fab-small-ripple-color: rgba(0, 0, 0, .1)}html .mat-mdc-mini-fab.mat-warn{--mdc-fab-small-container-color: #f44336;--mat-fab-small-foreground-color: white;--mat-fab-small-state-layer-color: white;--mat-fab-small-ripple-color: rgba(255, 255, 255, .1)}html{--mat-fab-touch-target-display: block;--mat-fab-small-touch-target-display: block}html{--mdc-snackbar-container-shape: 4px}html{--mdc-snackbar-container-color: #333333;--mdc-snackbar-supporting-text-color: rgba(255, 255, 255, .87);--mat-snack-bar-button-color: #ff9800}html{--mat-table-row-item-outline-width: 1px}html{--mat-table-background-color: white;--mat-table-header-headline-color: rgba(0, 0, 0, .87);--mat-table-row-item-label-text-color: rgba(0, 0, 0, .87);--mat-table-row-item-outline-color: rgba(0, 0, 0, .12)}html{--mat-table-header-container-height: 56px;--mat-table-footer-container-height: 52px;--mat-table-row-item-container-height: 52px}html{--mdc-circular-progress-active-indicator-width: 4px;--mdc-circular-progress-size: 48px}html{--mdc-circular-progress-active-indicator-color: #689f38}html .mat-accent{--mdc-circular-progress-active-indicator-color: #ff9800}html .mat-warn{--mdc-circular-progress-active-indicator-color: #f44336}html{--mat-badge-container-shape: 50%;--mat-badge-container-size: unset;--mat-badge-small-size-container-size: unset;--mat-badge-large-size-container-size: unset;--mat-badge-legacy-container-size: 22px;--mat-badge-legacy-small-size-container-size: 16px;--mat-badge-legacy-large-size-container-size: 28px;--mat-badge-container-offset: -11px 0;--mat-badge-small-size-container-offset: -8px 0;--mat-badge-large-size-container-offset: -14px 0;--mat-badge-container-overlap-offset: -11px;--mat-badge-small-size-container-overlap-offset: -8px;--mat-badge-large-size-container-overlap-offset: -14px;--mat-badge-container-padding: 0;--mat-badge-small-size-container-padding: 0;--mat-badge-large-size-container-padding: 0}html{--mat-badge-background-color: #689f38;--mat-badge-text-color: white;--mat-badge-disabled-state-background-color: #b9b9b9;--mat-badge-disabled-state-text-color: rgba(0, 0, 0, .38)}.mat-badge-accent{--mat-badge-background-color: #ff9800;--mat-badge-text-color: rgba(0, 0, 0, .87)}.mat-badge-warn{--mat-badge-background-color: #f44336;--mat-badge-text-color: white}html{--mat-bottom-sheet-container-shape: 4px}html{--mat-bottom-sheet-container-text-color: rgba(0, 0, 0, .87);--mat-bottom-sheet-container-background-color: white}html{--mat-legacy-button-toggle-height: 36px;--mat-legacy-button-toggle-shape: 2px;--mat-legacy-button-toggle-focus-state-layer-opacity: 1;--mat-standard-button-toggle-shape: 4px;--mat-standard-button-toggle-hover-state-layer-opacity: .04;--mat-standard-button-toggle-focus-state-layer-opacity: .12}html{--mat-legacy-button-toggle-text-color: rgba(0, 0, 0, .38);--mat-legacy-button-toggle-state-layer-color: rgba(0, 0, 0, .12);--mat-legacy-button-toggle-selected-state-text-color: rgba(0, 0, 0, .54);--mat-legacy-button-toggle-selected-state-background-color: #e0e0e0;--mat-legacy-button-toggle-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-legacy-button-toggle-disabled-state-background-color: #eeeeee;--mat-legacy-button-toggle-disabled-selected-state-background-color: #bdbdbd;--mat-standard-button-toggle-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-background-color: white;--mat-standard-button-toggle-state-layer-color: black;--mat-standard-button-toggle-selected-state-background-color: #e0e0e0;--mat-standard-button-toggle-selected-state-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-standard-button-toggle-disabled-state-background-color: white;--mat-standard-button-toggle-disabled-selected-state-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-selected-state-background-color: #bdbdbd;--mat-standard-button-toggle-divider-color: #e0e0e0}html{--mat-standard-button-toggle-height: 48px}html{--mat-datepicker-calendar-container-shape: 4px;--mat-datepicker-calendar-container-touch-shape: 4px;--mat-datepicker-calendar-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-datepicker-calendar-container-touch-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html{--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #689f38;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(104, 159, 56, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: rgba(104, 159, 56, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(104, 159, 56, .3);--mat-datepicker-toggle-active-state-icon-color: #689f38;--mat-datepicker-calendar-date-in-range-state-background-color: rgba(104, 159, 56, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e;--mat-datepicker-toggle-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-body-label-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-period-button-text-color: black;--mat-datepicker-calendar-period-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-navigation-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-header-divider-color: rgba(0, 0, 0, .12);--mat-datepicker-calendar-header-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-outline-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-date-today-disabled-state-outline-color: rgba(0, 0, 0, .18);--mat-datepicker-calendar-date-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(0, 0, 0, .24);--mat-datepicker-range-input-separator-color: rgba(0, 0, 0, .87);--mat-datepicker-range-input-disabled-state-separator-color: rgba(0, 0, 0, .38);--mat-datepicker-range-input-disabled-state-text-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-container-background-color: white;--mat-datepicker-calendar-container-text-color: rgba(0, 0, 0, .87)}.mat-datepicker-content.mat-accent{--mat-datepicker-calendar-date-selected-state-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-selected-state-background-color: #ff9800;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(255, 152, 0, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-focus-state-background-color: rgba(255, 152, 0, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(255, 152, 0, .3);--mat-datepicker-calendar-date-in-range-state-background-color: rgba(255, 152, 0, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e}.mat-datepicker-content.mat-warn{--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #f44336;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(244, 67, 54, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-in-range-state-background-color: rgba(244, 67, 54, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e}.mat-datepicker-toggle-active.mat-accent{--mat-datepicker-toggle-active-state-icon-color: #ff9800}.mat-datepicker-toggle-active.mat-warn{--mat-datepicker-toggle-active-state-icon-color: #f44336}.mat-calendar-controls{--mat-icon-button-touch-target-display: none}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 40px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:8px}html{--mat-divider-width: 1px}html{--mat-divider-color: rgba(0, 0, 0, .12)}html{--mat-expansion-container-shape: 4px;--mat-expansion-legacy-header-indicator-display: inline-block;--mat-expansion-header-indicator-display: none}html{--mat-expansion-container-background-color: white;--mat-expansion-container-text-color: rgba(0, 0, 0, .87);--mat-expansion-actions-divider-color: rgba(0, 0, 0, .12);--mat-expansion-header-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-expansion-header-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-expansion-header-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-expansion-header-text-color: rgba(0, 0, 0, .87);--mat-expansion-header-description-color: rgba(0, 0, 0, .54);--mat-expansion-header-indicator-color: rgba(0, 0, 0, .54)}html{--mat-expansion-header-collapsed-state-height: 48px;--mat-expansion-header-expanded-state-height: 64px}html{--mat-icon-color: inherit}.mat-icon.mat-primary{--mat-icon-color: #689f38}.mat-icon.mat-accent{--mat-icon-color: #ff9800}.mat-icon.mat-warn{--mat-icon-color: #f44336}html{--mat-sidenav-container-shape: 0;--mat-sidenav-container-elevation-shadow: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-sidenav-container-width: auto}html{--mat-sidenav-container-divider-color: rgba(0, 0, 0, .12);--mat-sidenav-container-background-color: white;--mat-sidenav-container-text-color: rgba(0, 0, 0, .87);--mat-sidenav-content-background-color: #fafafa;--mat-sidenav-content-text-color: rgba(0, 0, 0, .87);--mat-sidenav-scrim-color: rgba(0, 0, 0, .6)}html{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #689f38;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #689f38;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #689f38;--mat-stepper-header-edit-state-icon-foreground-color: white;--mat-stepper-container-color: white;--mat-stepper-line-color: rgba(0, 0, 0, .12);--mat-stepper-header-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-stepper-header-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-stepper-header-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-optional-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-selected-state-label-text-color: rgba(0, 0, 0, .87);--mat-stepper-header-error-state-label-text-color: #f44336;--mat-stepper-header-icon-background-color: rgba(0, 0, 0, .54);--mat-stepper-header-error-state-icon-foreground-color: #f44336;--mat-stepper-header-error-state-icon-background-color: transparent}html .mat-step-header.mat-accent{--mat-stepper-header-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-selected-state-icon-background-color: #ff9800;--mat-stepper-header-selected-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-done-state-icon-background-color: #ff9800;--mat-stepper-header-done-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-edit-state-icon-background-color: #ff9800;--mat-stepper-header-edit-state-icon-foreground-color: rgba(0, 0, 0, .87)}html .mat-step-header.mat-warn{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #f44336;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #f44336;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #f44336;--mat-stepper-header-edit-state-icon-foreground-color: white}html{--mat-stepper-header-height: 72px}html{--mat-sort-arrow-color: #757575}html{--mat-toolbar-container-background-color: whitesmoke;--mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.mat-toolbar.mat-primary{--mat-toolbar-container-background-color: #689f38;--mat-toolbar-container-text-color: white}.mat-toolbar.mat-accent{--mat-toolbar-container-background-color: #ff9800;--mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.mat-toolbar.mat-warn{--mat-toolbar-container-background-color: #f44336;--mat-toolbar-container-text-color: white}html{--mat-toolbar-standard-height: 64px;--mat-toolbar-mobile-height: 56px}html{--mat-tree-container-background-color: white;--mat-tree-node-text-color: rgba(0, 0, 0, .87)}html{--mat-tree-node-min-height: 48px}@font-face{font-family:Irish Uncialfabeta;src:url("./media/irishuncialfabeta-bold-webfont-V6KQX3YL.woff2") format("woff2"),url("./media/irishuncialfabeta-bold-webfont-LXS2VNSS.woff") format("woff");font-weight:400;font-style:normal}div.search-panel{margin-bottom:1em}html,body{margin:0;height:100%;overflow:hidden;--mat-option-label-text-tracking: normal}.search-panel mat-form-field,.tags-form mat-form-field{width:15em;margin-right:.5em}mat-sidenav mat-icon{margin-right:.5em}.main-content{padding-top:10px;padding-left:20px;padding-right:20px;margin:auto;max-width:1000px}.tune-link{cursor:pointer}.tune-link.tune-title{min-width:30px}.tune-id{padding-right:.5em;width:3em;display:inline-block}div.tune-item{display:inline-block;width:400px}div.confidence{display:inline-block;vertical-align:top}.tunebook-link{font-size:120%;font-weight:bolder;cursor:pointer}.tunebook-item{display:inline-block;vertical-align:middle}cdk-virtual-scroll-viewport{height:80vh}tr.tune-preview{height:100px;max-height:100px}app-snippet-view div{height:80px;max-height:80px}.abcjs-inline-audio{max-width:780px;margin-bottom:1em;margin-right:2em}.abcjs-inline-audio .abcjs-tempo-wrapper{display:none}div.tunebook-item{display:flex;flex-flow:column;margin-top:5px;margin-bottom:5px}div.create-book-panel form{display:flex;flex-flow:column}button.create-book-button{margin-top:1em;width:max-content}app-books-list .mat-mdc-list-base .mat-mdc-list-item{height:auto}div.tune-view{max-width:1000px;margin-bottom:20px}div.player-controls{display:flex;flex-wrap:wrap;align-items:baseline}.player-controls .mat-slider-horizontal{width:140px}app-tune-player{margin-bottom:1em}div.tunebook-button{width:48px}div.player{flex-grow:1}.tempo-slider{display:inline-block}.search-result-viewport{height:800px}table.repertoire{width:100%}table.repertoire td{padding-right:8px}.full-height{height:100%}div#button-container{margin-top:2em}a.tune-link:link,a.tune-link:visited,a.tune-link:hover,a.tune-link:active{text-decoration:none;color:#000}div.main-content{margin-bottom:80px}h1.irish{font-family:Irish Uncialfabeta!important;font-size:24px!important}button.tune-button{margin-left:.5em}button.tune-button .mat-icon{margin-left:0;margin-right:0}div.repertoire-header{display:flex;flex-direction:space-between}div.repertoire-header button{margin-left:auto}div.form-container{width:15em;display:flex;flex-direction:column}.mat-icon{vertical-align:middle}app-root .tempo-label{display:inline-block;min-width:5em}mat-form-field.editor{width:1000px}app-tune-editor .mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font-family:Courier New,Courier,monospace;font-weight:bolder;min-height:10em;max-height:20em}.mat-body,.mat-mdc-option,.mdc-list-item__primary-text,*{letter-spacing:normal}html *.mdc-list-item__content{text-overflow:clip;overflow-wrap:anywhere} +.abcjs-inline-audio{height:26px;padding:0 5px;border-radius:3px;background-color:#424242;display:flex;align-items:center;box-sizing:border-box}.abcjs-inline-audio.abcjs-disabled{opacity:.5}.abcjs-inline-audio .abcjs-btn{display:block;width:28px;height:34px;margin-right:2px;padding:7px 4px;background:none!important;border:1px solid transparent;box-sizing:border-box;line-height:1}.abcjs-btn g{fill:#f4f4f4;stroke:#f4f4f4}.abcjs-inline-audio .abcjs-btn:hover g{fill:#ccc;stroke:#ccc}.abcjs-inline-audio .abcjs-midi-selection.abcjs-pushed,.abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed,.abcjs-inline-audio .abcjs-midi-reset.abcjs-pushed{border:1px solid #cccccc;background-color:#666;box-sizing:border-box}.abcjs-inline-audio .abcjs-midi-start .abcjs-pause-svg,.abcjs-inline-audio .abcjs-midi-start .abcjs-loading-svg,.abcjs-inline-audio .abcjs-midi-start.abcjs-pushed .abcjs-play-svg,.abcjs-inline-audio .abcjs-midi-start.abcjs-loading .abcjs-play-svg{display:none}.abcjs-inline-audio .abcjs-midi-start.abcjs-pushed .abcjs-pause-svg{display:block}.abcjs-inline-audio .abcjs-midi-progress-background{background-color:#424242;height:10px;border-radius:5px;border:2px solid #cccccc;margin:0 8px 0 15px;position:relative;flex:1;padding:0;box-sizing:border-box}.abcjs-inline-audio .abcjs-midi-progress-indicator{width:20px;margin-left:-10px;height:14px;background-color:#f4f4f4;position:absolute;display:inline-block;border-radius:6px;top:-4px;left:0;box-sizing:border-box}.abcjs-inline-audio .abcjs-midi-clock{margin-left:4px;margin-top:1px;margin-right:2px;display:inline-block;font-family:sans-serif;font-size:16px;box-sizing:border-box;color:#f4f4f4}.abcjs-inline-audio .abcjs-tempo-wrapper{font-size:10px;color:#f4f4f4;box-sizing:border-box;display:flex;align-items:center}.abcjs-inline-audio .abcjs-midi-tempo{border-radius:2px;border:none;margin:0 2px 0 4px;width:42px;padding-left:2px;box-sizing:border-box}.abcjs-inline-audio .abcjs-loading .abcjs-loading-svg{display:inherit}.abcjs-inline-audio .abcjs-loading{outline:none;animation-name:abcjs-spin;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}.abcjs-inline-audio .abcjs-loading-svg circle{stroke:#f4f4f4}@keyframes abcjs-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.abcjs-large .abcjs-inline-audio{height:52px}.abcjs-large .abcjs-btn{width:56px;height:52px;font-size:28px;padding:6px 8px}.abcjs-large .abcjs-midi-progress-background{height:20px;border:4px solid #cccccc}.abcjs-large .abcjs-midi-progress-indicator{height:28px;top:-8px;width:40px}.abcjs-large .abcjs-midi-clock{font-size:32px;margin-right:10px;margin-left:10px;margin-top:-1px}.abcjs-large .abcjs-midi-tempo{font-size:20px;width:50px}.abcjs-large .abcjs-tempo-wrapper{font-size:20px}.abcjs-css-warning{display:none}html{--mat-badge-text-font: Roboto, sans-serif;--mat-badge-text-size: 12px;--mat-badge-text-weight: 600;--mat-badge-small-size-text-size: 9px;--mat-badge-large-size-text-size: 24px}.mat-h1,.mat-headline-5,.mat-typography .mat-h1,.mat-typography .mat-headline-5,.mat-typography h1{font:400 24px/32px Roboto,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2,.mat-headline-6,.mat-typography .mat-h2,.mat-typography .mat-headline-6,.mat-typography h2{font:500 20px/32px Roboto,sans-serif;letter-spacing:.0125em;margin:0 0 16px}.mat-h3,.mat-subtitle-1,.mat-typography .mat-h3,.mat-typography .mat-subtitle-1,.mat-typography h3{font:400 16px/28px Roboto,sans-serif;letter-spacing:.009375em;margin:0 0 16px}.mat-h4,.mat-body-1,.mat-typography .mat-h4,.mat-typography .mat-body-1,.mat-typography h4{font:400 16px/24px Roboto,sans-serif;letter-spacing:.03125em;margin:0 0 16px}.mat-h5,.mat-typography .mat-h5,.mat-typography h5{font:400 11.62px/20px Roboto,sans-serif;margin:0 0 12px}.mat-h6,.mat-typography .mat-h6,.mat-typography h6{font:400 9.38px/20px Roboto,sans-serif;margin:0 0 12px}.mat-body-strong,.mat-subtitle-2,.mat-typography .mat-body-strong,.mat-typography .mat-subtitle-2{font:500 14px/22px Roboto,sans-serif;letter-spacing:.0071428571em}.mat-body,.mat-body-2,.mat-typography .mat-body,.mat-typography .mat-body-2,.mat-typography{font:400 14px/20px Roboto,sans-serif;letter-spacing:.0178571429em}.mat-body p,.mat-body-2 p,.mat-typography .mat-body p,.mat-typography .mat-body-2 p,.mat-typography p{margin:0 0 12px}.mat-small,.mat-caption,.mat-typography .mat-small,.mat-typography .mat-caption{font:400 12px/20px Roboto,sans-serif;letter-spacing:.0333333333em}.mat-headline-1,.mat-typography .mat-headline-1{font:300 96px/96px Roboto,sans-serif;letter-spacing:-.015625em;margin:0 0 56px}.mat-headline-2,.mat-typography .mat-headline-2{font:300 60px/60px Roboto,sans-serif;letter-spacing:-.0083333333em;margin:0 0 64px}.mat-headline-3,.mat-typography .mat-headline-3{font:400 48px/50px Roboto,sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-headline-4,.mat-typography .mat-headline-4{font:400 34px/40px Roboto,sans-serif;letter-spacing:.0073529412em;margin:0 0 64px}html{--mat-bottom-sheet-container-text-font: Roboto, sans-serif;--mat-bottom-sheet-container-text-line-height: 20px;--mat-bottom-sheet-container-text-size: 14px;--mat-bottom-sheet-container-text-tracking: .0178571429em;--mat-bottom-sheet-container-text-weight: 400}html{--mat-legacy-button-toggle-label-text-font: Roboto, sans-serif;--mat-legacy-button-toggle-label-text-line-height: 24px;--mat-legacy-button-toggle-label-text-size: 16px;--mat-legacy-button-toggle-label-text-tracking: .03125em;--mat-legacy-button-toggle-label-text-weight: 400;--mat-standard-button-toggle-label-text-font: Roboto, sans-serif;--mat-standard-button-toggle-label-text-line-height: 24px;--mat-standard-button-toggle-label-text-size: 16px;--mat-standard-button-toggle-label-text-tracking: .03125em;--mat-standard-button-toggle-label-text-weight: 400}html{--mat-datepicker-calendar-text-font: Roboto, sans-serif;--mat-datepicker-calendar-text-size: 13px;--mat-datepicker-calendar-body-label-text-size: 14px;--mat-datepicker-calendar-body-label-text-weight: 500;--mat-datepicker-calendar-period-button-text-size: 14px;--mat-datepicker-calendar-period-button-text-weight: 500;--mat-datepicker-calendar-header-text-size: 11px;--mat-datepicker-calendar-header-text-weight: 400}html{--mat-expansion-header-text-font: Roboto, sans-serif;--mat-expansion-header-text-size: 14px;--mat-expansion-header-text-weight: 500;--mat-expansion-header-text-line-height: inherit;--mat-expansion-header-text-tracking: inherit;--mat-expansion-container-text-font: Roboto, sans-serif;--mat-expansion-container-text-line-height: 20px;--mat-expansion-container-text-size: 14px;--mat-expansion-container-text-tracking: .0178571429em;--mat-expansion-container-text-weight: 400}html{--mat-grid-list-tile-header-primary-text-size: 14px;--mat-grid-list-tile-header-secondary-text-size: 12px;--mat-grid-list-tile-footer-primary-text-size: 14px;--mat-grid-list-tile-footer-secondary-text-size: 12px}html{--mat-stepper-container-text-font: Roboto, sans-serif;--mat-stepper-header-label-text-font: Roboto, sans-serif;--mat-stepper-header-label-text-size: 14px;--mat-stepper-header-label-text-weight: 400;--mat-stepper-header-error-state-label-text-size: 16px;--mat-stepper-header-selected-state-label-text-size: 16px;--mat-stepper-header-selected-state-label-text-weight: 400}html{--mat-toolbar-title-text-font: Roboto, sans-serif;--mat-toolbar-title-text-line-height: 32px;--mat-toolbar-title-text-size: 20px;--mat-toolbar-title-text-tracking: .0125em;--mat-toolbar-title-text-weight: 500}html{--mat-tree-node-text-font: Roboto, sans-serif;--mat-tree-node-text-size: 14px;--mat-tree-node-text-weight: 400}html{--mat-option-label-text-font: Roboto, sans-serif;--mat-option-label-text-line-height: 24px;--mat-option-label-text-size: 16px;--mat-option-label-text-tracking: .03125em;--mat-option-label-text-weight: 400}html{--mat-optgroup-label-text-font: Roboto, sans-serif;--mat-optgroup-label-text-line-height: 24px;--mat-optgroup-label-text-size: 16px;--mat-optgroup-label-text-tracking: .03125em;--mat-optgroup-label-text-weight: 400}html{--mat-card-title-text-font: Roboto, sans-serif;--mat-card-title-text-line-height: 32px;--mat-card-title-text-size: 20px;--mat-card-title-text-tracking: .0125em;--mat-card-title-text-weight: 500;--mat-card-subtitle-text-font: Roboto, sans-serif;--mat-card-subtitle-text-line-height: 22px;--mat-card-subtitle-text-size: 14px;--mat-card-subtitle-text-tracking: .0071428571em;--mat-card-subtitle-text-weight: 500}html{--mdc-plain-tooltip-supporting-text-font: Roboto, sans-serif;--mdc-plain-tooltip-supporting-text-size: 12px;--mdc-plain-tooltip-supporting-text-weight: 400;--mdc-plain-tooltip-supporting-text-tracking: .0333333333em}html{--mdc-filled-text-field-label-text-font: Roboto, sans-serif;--mdc-filled-text-field-label-text-size: 16px;--mdc-filled-text-field-label-text-tracking: .03125em;--mdc-filled-text-field-label-text-weight: 400;--mdc-outlined-text-field-label-text-font: Roboto, sans-serif;--mdc-outlined-text-field-label-text-size: 16px;--mdc-outlined-text-field-label-text-tracking: .03125em;--mdc-outlined-text-field-label-text-weight: 400;--mat-form-field-container-text-font: Roboto, sans-serif;--mat-form-field-container-text-line-height: 24px;--mat-form-field-container-text-size: 16px;--mat-form-field-container-text-tracking: .03125em;--mat-form-field-container-text-weight: 400;--mat-form-field-outlined-label-text-populated-size: 16px;--mat-form-field-subscript-text-font: Roboto, sans-serif;--mat-form-field-subscript-text-line-height: 20px;--mat-form-field-subscript-text-size: 12px;--mat-form-field-subscript-text-tracking: .0333333333em;--mat-form-field-subscript-text-weight: 400}html{--mat-select-trigger-text-font: Roboto, sans-serif;--mat-select-trigger-text-line-height: 24px;--mat-select-trigger-text-size: 16px;--mat-select-trigger-text-tracking: .03125em;--mat-select-trigger-text-weight: 400}html{--mdc-dialog-subhead-font: Roboto, sans-serif;--mdc-dialog-subhead-line-height: 32px;--mdc-dialog-subhead-size: 20px;--mdc-dialog-subhead-weight: 500;--mdc-dialog-subhead-tracking: .0125em;--mdc-dialog-supporting-text-font: Roboto, sans-serif;--mdc-dialog-supporting-text-line-height: 24px;--mdc-dialog-supporting-text-size: 16px;--mdc-dialog-supporting-text-weight: 400;--mdc-dialog-supporting-text-tracking: .03125em}.mat-mdc-standard-chip{--mdc-chip-label-text-font: Roboto, sans-serif;--mdc-chip-label-text-line-height: 20px;--mdc-chip-label-text-size: 14px;--mdc-chip-label-text-tracking: .0178571429em;--mdc-chip-label-text-weight: 400}html .mat-mdc-slide-toggle{--mat-switch-label-text-font: Roboto, sans-serif;--mat-switch-label-text-line-height: 20px;--mat-switch-label-text-size: 14px;--mat-switch-label-text-tracking: .0178571429em;--mat-switch-label-text-weight: 400}html{--mat-radio-label-text-font: Roboto, sans-serif;--mat-radio-label-text-line-height: 20px;--mat-radio-label-text-size: 14px;--mat-radio-label-text-tracking: .0178571429em;--mat-radio-label-text-weight: 400}html{--mdc-slider-label-label-text-font: Roboto, sans-serif;--mdc-slider-label-label-text-size: 14px;--mdc-slider-label-label-text-line-height: 22px;--mdc-slider-label-label-text-tracking: .0071428571em;--mdc-slider-label-label-text-weight: 500}html{--mat-menu-item-label-text-font: Roboto, sans-serif;--mat-menu-item-label-text-size: 16px;--mat-menu-item-label-text-tracking: .03125em;--mat-menu-item-label-text-line-height: 24px;--mat-menu-item-label-text-weight: 400}html{--mdc-list-list-item-label-text-font: Roboto, sans-serif;--mdc-list-list-item-label-text-line-height: 24px;--mdc-list-list-item-label-text-size: 16px;--mdc-list-list-item-label-text-tracking: .03125em;--mdc-list-list-item-label-text-weight: 400;--mdc-list-list-item-supporting-text-font: Roboto, sans-serif;--mdc-list-list-item-supporting-text-line-height: 20px;--mdc-list-list-item-supporting-text-size: 14px;--mdc-list-list-item-supporting-text-tracking: .0178571429em;--mdc-list-list-item-supporting-text-weight: 400;--mdc-list-list-item-trailing-supporting-text-font: Roboto, sans-serif;--mdc-list-list-item-trailing-supporting-text-line-height: 20px;--mdc-list-list-item-trailing-supporting-text-size: 12px;--mdc-list-list-item-trailing-supporting-text-tracking: .0333333333em;--mdc-list-list-item-trailing-supporting-text-weight: 400}.mdc-list-group__subheader{font:400 16px/28px Roboto,sans-serif;letter-spacing:.009375em}html{--mat-paginator-container-text-font: Roboto, sans-serif;--mat-paginator-container-text-line-height: 20px;--mat-paginator-container-text-size: 12px;--mat-paginator-container-text-tracking: .0333333333em;--mat-paginator-container-text-weight: 400;--mat-paginator-select-trigger-text-size: 12px}.mat-mdc-tab-header{--mat-tab-header-label-text-font: Roboto, sans-serif;--mat-tab-header-label-text-size: 14px;--mat-tab-header-label-text-tracking: .0892857143em;--mat-tab-header-label-text-line-height: 36px;--mat-tab-header-label-text-weight: 500}html{--mat-checkbox-label-text-font: Roboto, sans-serif;--mat-checkbox-label-text-line-height: 20px;--mat-checkbox-label-text-size: 14px;--mat-checkbox-label-text-tracking: .0178571429em;--mat-checkbox-label-text-weight: 400}html{--mdc-text-button-label-text-font: Roboto, sans-serif;--mdc-text-button-label-text-size: 14px;--mdc-text-button-label-text-tracking: .0892857143em;--mdc-text-button-label-text-weight: 500;--mdc-text-button-label-text-transform: none;--mdc-filled-button-label-text-font: Roboto, sans-serif;--mdc-filled-button-label-text-size: 14px;--mdc-filled-button-label-text-tracking: .0892857143em;--mdc-filled-button-label-text-weight: 500;--mdc-filled-button-label-text-transform: none;--mdc-protected-button-label-text-font: Roboto, sans-serif;--mdc-protected-button-label-text-size: 14px;--mdc-protected-button-label-text-tracking: .0892857143em;--mdc-protected-button-label-text-weight: 500;--mdc-protected-button-label-text-transform: none;--mdc-outlined-button-label-text-font: Roboto, sans-serif;--mdc-outlined-button-label-text-size: 14px;--mdc-outlined-button-label-text-tracking: .0892857143em;--mdc-outlined-button-label-text-weight: 500;--mdc-outlined-button-label-text-transform: none}html{--mdc-extended-fab-label-text-font: Roboto, sans-serif;--mdc-extended-fab-label-text-size: 14px;--mdc-extended-fab-label-text-tracking: .0892857143em;--mdc-extended-fab-label-text-weight: 500}html{--mdc-snackbar-supporting-text-font: Roboto, sans-serif;--mdc-snackbar-supporting-text-line-height: 20px;--mdc-snackbar-supporting-text-size: 14px;--mdc-snackbar-supporting-text-weight: 400}html{--mat-table-header-headline-font: Roboto, sans-serif;--mat-table-header-headline-line-height: 22px;--mat-table-header-headline-size: 14px;--mat-table-header-headline-weight: 500;--mat-table-header-headline-tracking: .0071428571em;--mat-table-row-item-label-text-font: Roboto, sans-serif;--mat-table-row-item-label-text-line-height: 20px;--mat-table-row-item-label-text-size: 14px;--mat-table-row-item-label-text-weight: 400;--mat-table-row-item-label-text-tracking: .0178571429em;--mat-table-footer-supporting-text-font: Roboto, sans-serif;--mat-table-footer-supporting-text-line-height: 20px;--mat-table-footer-supporting-text-size: 14px;--mat-table-footer-supporting-text-weight: 400;--mat-table-footer-supporting-text-tracking: .0178571429em}.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active .mat-ripple-element,.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator{position:relative}.mat-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator{position:relative}.mat-mdc-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-mdc-focus-indicator-display: block}.mat-app-background{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.mat-theme-loaded-marker{display:none}html{--mat-ripple-color: rgba(0, 0, 0, .1)}html{--mat-option-selected-state-label-text-color: #689f38;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}.mat-accent{--mat-option-selected-state-label-text-color: #ff9800;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}.mat-warn{--mat-option-selected-state-label-text-color: #f44336;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}html{--mat-optgroup-label-text-color: rgba(0, 0, 0, .87)}.mat-primary{--mat-full-pseudo-checkbox-selected-icon-color: #689f38;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #689f38;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}html,.mat-accent{--mat-full-pseudo-checkbox-selected-icon-color: #ff9800;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #ff9800;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}.mat-warn{--mat-full-pseudo-checkbox-selected-icon-color: #f44336;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #f44336;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}html{--mat-app-background-color: #fafafa;--mat-app-text-color: rgba(0, 0, 0, .87);--mat-app-elevation-shadow-level-0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-2: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-3: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-4: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-5: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 5px 8px 0px rgba(0, 0, 0, .14), 0px 1px 14px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-6: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-7: 0px 4px 5px -2px rgba(0, 0, 0, .2), 0px 7px 10px 1px rgba(0, 0, 0, .14), 0px 2px 16px 1px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-8: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-9: 0px 5px 6px -3px rgba(0, 0, 0, .2), 0px 9px 12px 1px rgba(0, 0, 0, .14), 0px 3px 16px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-10: 0px 6px 6px -3px rgba(0, 0, 0, .2), 0px 10px 14px 1px rgba(0, 0, 0, .14), 0px 4px 18px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-11: 0px 6px 7px -4px rgba(0, 0, 0, .2), 0px 11px 15px 1px rgba(0, 0, 0, .14), 0px 4px 20px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-12: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-13: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 13px 19px 2px rgba(0, 0, 0, .14), 0px 5px 24px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-14: 0px 7px 9px -4px rgba(0, 0, 0, .2), 0px 14px 21px 2px rgba(0, 0, 0, .14), 0px 5px 26px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-15: 0px 8px 9px -5px rgba(0, 0, 0, .2), 0px 15px 22px 2px rgba(0, 0, 0, .14), 0px 6px 28px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-16: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-17: 0px 8px 11px -5px rgba(0, 0, 0, .2), 0px 17px 26px 2px rgba(0, 0, 0, .14), 0px 6px 32px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-18: 0px 9px 11px -5px rgba(0, 0, 0, .2), 0px 18px 28px 2px rgba(0, 0, 0, .14), 0px 7px 34px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-19: 0px 9px 12px -6px rgba(0, 0, 0, .2), 0px 19px 29px 2px rgba(0, 0, 0, .14), 0px 7px 36px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-20: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 20px 31px 3px rgba(0, 0, 0, .14), 0px 8px 38px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-21: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 21px 33px 3px rgba(0, 0, 0, .14), 0px 8px 40px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-22: 0px 10px 14px -6px rgba(0, 0, 0, .2), 0px 22px 35px 3px rgba(0, 0, 0, .14), 0px 8px 42px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-23: 0px 11px 14px -7px rgba(0, 0, 0, .2), 0px 23px 36px 3px rgba(0, 0, 0, .14), 0px 9px 44px 8px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-24: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html{--mdc-elevated-card-container-shape: 4px;--mdc-outlined-card-container-shape: 4px;--mdc-outlined-card-outline-width: 1px}html{--mdc-elevated-card-container-color: white;--mdc-elevated-card-container-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-outlined-card-container-color: white;--mdc-outlined-card-outline-color: rgba(0, 0, 0, .12);--mdc-outlined-card-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-card-subtitle-text-color: rgba(0, 0, 0, .54)}html{--mdc-linear-progress-active-indicator-height: 4px;--mdc-linear-progress-track-height: 4px;--mdc-linear-progress-track-shape: 0}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-color: #689f38;--mdc-linear-progress-track-color: rgba(104, 159, 56, .25)}.mat-mdc-progress-bar.mat-accent{--mdc-linear-progress-active-indicator-color: #ff9800;--mdc-linear-progress-track-color: rgba(255, 152, 0, .25)}.mat-mdc-progress-bar.mat-warn{--mdc-linear-progress-active-indicator-color: #f44336;--mdc-linear-progress-track-color: rgba(244, 67, 54, .25)}html{--mdc-plain-tooltip-container-shape: 4px;--mdc-plain-tooltip-supporting-text-line-height: 16px}html{--mdc-plain-tooltip-container-color: #616161;--mdc-plain-tooltip-supporting-text-color: #fff}html{--mdc-filled-text-field-active-indicator-height: 1px;--mdc-filled-text-field-focus-active-indicator-height: 2px;--mdc-filled-text-field-container-shape: 4px;--mdc-outlined-text-field-outline-width: 1px;--mdc-outlined-text-field-focus-outline-width: 2px;--mdc-outlined-text-field-container-shape: 4px}html{--mdc-filled-text-field-caret-color: #689f38;--mdc-filled-text-field-focus-active-indicator-color: #689f38;--mdc-filled-text-field-focus-label-text-color: rgba(104, 159, 56, .87);--mdc-filled-text-field-container-color: whitesmoke;--mdc-filled-text-field-disabled-container-color: #fafafa;--mdc-filled-text-field-label-text-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-hover-label-text-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-color: rgba(0, 0, 0, .87);--mdc-filled-text-field-disabled-input-text-color: rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-placeholder-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-error-hover-label-text-color: #f44336;--mdc-filled-text-field-error-focus-label-text-color: #f44336;--mdc-filled-text-field-error-label-text-color: #f44336;--mdc-filled-text-field-error-caret-color: #f44336;--mdc-filled-text-field-active-indicator-color: rgba(0, 0, 0, .42);--mdc-filled-text-field-disabled-active-indicator-color: rgba(0, 0, 0, .06);--mdc-filled-text-field-hover-active-indicator-color: rgba(0, 0, 0, .87);--mdc-filled-text-field-error-active-indicator-color: #f44336;--mdc-filled-text-field-error-focus-active-indicator-color: #f44336;--mdc-filled-text-field-error-hover-active-indicator-color: #f44336;--mdc-outlined-text-field-caret-color: #689f38;--mdc-outlined-text-field-focus-outline-color: #689f38;--mdc-outlined-text-field-focus-label-text-color: rgba(104, 159, 56, .87);--mdc-outlined-text-field-label-text-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-hover-label-text-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-color: rgba(0, 0, 0, .87);--mdc-outlined-text-field-disabled-input-text-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-placeholder-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-error-caret-color: #f44336;--mdc-outlined-text-field-error-focus-label-text-color: #f44336;--mdc-outlined-text-field-error-label-text-color: #f44336;--mdc-outlined-text-field-error-hover-label-text-color: #f44336;--mdc-outlined-text-field-outline-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-disabled-outline-color: rgba(0, 0, 0, .06);--mdc-outlined-text-field-hover-outline-color: rgba(0, 0, 0, .87);--mdc-outlined-text-field-error-focus-outline-color: #f44336;--mdc-outlined-text-field-error-hover-outline-color: #f44336;--mdc-outlined-text-field-error-outline-color: #f44336;--mat-form-field-focus-select-arrow-color: rgba(104, 159, 56, .87);--mat-form-field-disabled-input-text-placeholder-color: rgba(0, 0, 0, .38);--mat-form-field-state-layer-color: rgba(0, 0, 0, .87);--mat-form-field-error-text-color: #f44336;--mat-form-field-select-option-text-color: inherit;--mat-form-field-select-disabled-option-text-color: GrayText;--mat-form-field-leading-icon-color: unset;--mat-form-field-disabled-leading-icon-color: unset;--mat-form-field-trailing-icon-color: unset;--mat-form-field-disabled-trailing-icon-color: unset;--mat-form-field-error-focus-trailing-icon-color: unset;--mat-form-field-error-hover-trailing-icon-color: unset;--mat-form-field-error-trailing-icon-color: unset;--mat-form-field-enabled-select-arrow-color: rgba(0, 0, 0, .54);--mat-form-field-disabled-select-arrow-color: rgba(0, 0, 0, .38);--mat-form-field-hover-state-layer-opacity: .04;--mat-form-field-focus-state-layer-opacity: .08}.mat-mdc-form-field.mat-accent{--mdc-filled-text-field-caret-color: #ff9800;--mdc-filled-text-field-focus-active-indicator-color: #ff9800;--mdc-filled-text-field-focus-label-text-color: rgba(255, 152, 0, .87);--mdc-outlined-text-field-caret-color: #ff9800;--mdc-outlined-text-field-focus-outline-color: #ff9800;--mdc-outlined-text-field-focus-label-text-color: rgba(255, 152, 0, .87);--mat-form-field-focus-select-arrow-color: rgba(255, 152, 0, .87)}.mat-mdc-form-field.mat-warn{--mdc-filled-text-field-caret-color: #f44336;--mdc-filled-text-field-focus-active-indicator-color: #f44336;--mdc-filled-text-field-focus-label-text-color: rgba(244, 67, 54, .87);--mdc-outlined-text-field-caret-color: #f44336;--mdc-outlined-text-field-focus-outline-color: #f44336;--mdc-outlined-text-field-focus-label-text-color: rgba(244, 67, 54, .87);--mat-form-field-focus-select-arrow-color: rgba(244, 67, 54, .87)}html{--mat-form-field-container-height: 56px;--mat-form-field-filled-label-display: block;--mat-form-field-container-vertical-padding: 16px;--mat-form-field-filled-with-label-container-padding-top: 24px;--mat-form-field-filled-with-label-container-padding-bottom: 8px}html{--mat-select-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(104, 159, 56, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-accent{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(255, 152, 0, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-warn{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(244, 67, 54, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html{--mat-select-arrow-transform: translateY(-8px)}html{--mat-autocomplete-container-shape: 4px;--mat-autocomplete-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-autocomplete-background-color: white}html{--mdc-dialog-container-shape: 4px;--mat-dialog-container-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mat-dialog-container-max-width: 80vw;--mat-dialog-container-small-max-width: 80vw;--mat-dialog-container-min-width: 0;--mat-dialog-actions-alignment: start;--mat-dialog-actions-padding: 8px;--mat-dialog-content-padding: 20px 24px;--mat-dialog-with-actions-content-padding: 20px 24px;--mat-dialog-headline-padding: 0 24px 9px}html{--mdc-dialog-container-color: white;--mdc-dialog-subhead-color: rgba(0, 0, 0, .87);--mdc-dialog-supporting-text-color: rgba(0, 0, 0, .6)}.mat-mdc-standard-chip{--mdc-chip-container-shape-radius: 16px;--mdc-chip-with-avatar-avatar-shape-radius: 14px;--mdc-chip-with-avatar-avatar-size: 28px;--mdc-chip-with-icon-icon-size: 18px;--mdc-chip-outline-width: 0;--mdc-chip-outline-color: transparent;--mdc-chip-disabled-outline-color: transparent;--mdc-chip-focus-outline-color: transparent;--mdc-chip-hover-state-layer-opacity: .04;--mdc-chip-with-avatar-disabled-avatar-opacity: 1;--mdc-chip-flat-selected-outline-width: 0;--mdc-chip-selected-hover-state-layer-opacity: .04;--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity: 1;--mdc-chip-with-icon-disabled-icon-opacity: 1;--mat-chip-disabled-container-opacity: .4;--mat-chip-trailing-action-opacity: .54;--mat-chip-trailing-action-focus-opacity: 1;--mat-chip-trailing-action-state-layer-color: transparent;--mat-chip-selected-trailing-action-state-layer-color: transparent;--mat-chip-trailing-action-hover-state-layer-opacity: 0;--mat-chip-trailing-action-focus-state-layer-opacity: 0}.mat-mdc-standard-chip{--mdc-chip-disabled-label-text-color: #212121;--mdc-chip-elevated-container-color: #e0e0e0;--mdc-chip-elevated-selected-container-color: #e0e0e0;--mdc-chip-elevated-disabled-container-color: #e0e0e0;--mdc-chip-flat-disabled-selected-container-color: #e0e0e0;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: #212121;--mdc-chip-selected-label-text-color: #212121;--mdc-chip-with-icon-icon-color: #212121;--mdc-chip-with-icon-disabled-icon-color: #212121;--mdc-chip-with-icon-selected-icon-color: #212121;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: #212121;--mdc-chip-with-trailing-icon-trailing-icon-color: #212121;--mat-chip-selected-disabled-trailing-icon-color: #212121;--mat-chip-selected-trailing-icon-color: #212121}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #689f38;--mdc-chip-elevated-selected-container-color: #689f38;--mdc-chip-elevated-disabled-container-color: #689f38;--mdc-chip-flat-disabled-selected-container-color: #689f38;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent{--mdc-chip-disabled-label-text-color: rgba(0, 0, 0, .87);--mdc-chip-elevated-container-color: #ff9800;--mdc-chip-elevated-selected-container-color: #ff9800;--mdc-chip-elevated-disabled-container-color: #ff9800;--mdc-chip-flat-disabled-selected-container-color: #ff9800;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: rgba(0, 0, 0, .87);--mdc-chip-selected-label-text-color: rgba(0, 0, 0, .87);--mdc-chip-with-icon-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-icon-disabled-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-icon-selected-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-trailing-icon-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-selected-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-selected-trailing-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #f44336;--mdc-chip-elevated-selected-container-color: #f44336;--mdc-chip-elevated-disabled-container-color: #f44336;--mdc-chip-flat-disabled-selected-container-color: #f44336;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.mat-mdc-chip.mat-mdc-standard-chip{--mdc-chip-container-height: 32px}html{--mdc-switch-disabled-selected-icon-opacity: .38;--mdc-switch-disabled-track-opacity: .12;--mdc-switch-disabled-unselected-icon-opacity: .38;--mdc-switch-handle-height: 20px;--mdc-switch-handle-shape: 10px;--mdc-switch-handle-width: 20px;--mdc-switch-selected-icon-size: 18px;--mdc-switch-track-height: 14px;--mdc-switch-track-shape: 7px;--mdc-switch-track-width: 36px;--mdc-switch-unselected-icon-size: 18px;--mdc-switch-selected-focus-state-layer-opacity: .12;--mdc-switch-selected-hover-state-layer-opacity: .04;--mdc-switch-selected-pressed-state-layer-opacity: .1;--mdc-switch-unselected-focus-state-layer-opacity: .12;--mdc-switch-unselected-hover-state-layer-opacity: .04;--mdc-switch-unselected-pressed-state-layer-opacity: .1}html .mat-mdc-slide-toggle{--mat-switch-disabled-selected-handle-opacity: .38;--mat-switch-disabled-unselected-handle-opacity: .38;--mat-switch-unselected-handle-size: 20px;--mat-switch-selected-handle-size: 20px;--mat-switch-pressed-handle-size: 20px;--mat-switch-with-icon-handle-size: 20px;--mat-switch-selected-handle-horizontal-margin: 0;--mat-switch-selected-with-icon-handle-horizontal-margin: 0;--mat-switch-selected-pressed-handle-horizontal-margin: 0;--mat-switch-unselected-handle-horizontal-margin: 0;--mat-switch-unselected-with-icon-handle-horizontal-margin: 0;--mat-switch-unselected-pressed-handle-horizontal-margin: 0;--mat-switch-visible-track-opacity: 1;--mat-switch-hidden-track-opacity: 1;--mat-switch-visible-track-transition: transform 75ms 0ms cubic-bezier(0, 0, .2, 1);--mat-switch-hidden-track-transition: transform 75ms 0ms cubic-bezier(.4, 0, .6, 1);--mat-switch-track-outline-width: 1px;--mat-switch-track-outline-color: transparent;--mat-switch-selected-track-outline-width: 1px;--mat-switch-selected-track-outline-color: transparent;--mat-switch-disabled-unselected-track-outline-width: 1px;--mat-switch-disabled-unselected-track-outline-color: transparent}html{--mdc-switch-selected-focus-state-layer-color: #7cb342;--mdc-switch-selected-handle-color: #7cb342;--mdc-switch-selected-hover-state-layer-color: #7cb342;--mdc-switch-selected-pressed-state-layer-color: #7cb342;--mdc-switch-selected-focus-handle-color: #33691e;--mdc-switch-selected-hover-handle-color: #33691e;--mdc-switch-selected-pressed-handle-color: #33691e;--mdc-switch-selected-focus-track-color: #aed581;--mdc-switch-selected-hover-track-color: #aed581;--mdc-switch-selected-pressed-track-color: #aed581;--mdc-switch-selected-track-color: #aed581;--mdc-switch-disabled-selected-handle-color: #424242;--mdc-switch-disabled-selected-icon-color: #fff;--mdc-switch-disabled-selected-track-color: #424242;--mdc-switch-disabled-unselected-handle-color: #424242;--mdc-switch-disabled-unselected-icon-color: #fff;--mdc-switch-disabled-unselected-track-color: #424242;--mdc-switch-handle-surface-color: #fff;--mdc-switch-selected-icon-color: #fff;--mdc-switch-unselected-focus-handle-color: #212121;--mdc-switch-unselected-focus-state-layer-color: #424242;--mdc-switch-unselected-focus-track-color: #e0e0e0;--mdc-switch-unselected-handle-color: #616161;--mdc-switch-unselected-hover-handle-color: #212121;--mdc-switch-unselected-hover-state-layer-color: #424242;--mdc-switch-unselected-hover-track-color: #e0e0e0;--mdc-switch-unselected-icon-color: #fff;--mdc-switch-unselected-pressed-handle-color: #212121;--mdc-switch-unselected-pressed-state-layer-color: #424242;--mdc-switch-unselected-pressed-track-color: #e0e0e0;--mdc-switch-unselected-track-color: #e0e0e0;--mdc-switch-handle-elevation-shadow: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-switch-disabled-handle-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-switch-disabled-label-text-color: rgba(0, 0, 0, .38)}html .mat-mdc-slide-toggle{--mat-switch-label-text-color: rgba(0, 0, 0, .87)}html .mat-mdc-slide-toggle.mat-accent{--mdc-switch-selected-focus-state-layer-color: #fb8c00;--mdc-switch-selected-handle-color: #fb8c00;--mdc-switch-selected-hover-state-layer-color: #fb8c00;--mdc-switch-selected-pressed-state-layer-color: #fb8c00;--mdc-switch-selected-focus-handle-color: #e65100;--mdc-switch-selected-hover-handle-color: #e65100;--mdc-switch-selected-pressed-handle-color: #e65100;--mdc-switch-selected-focus-track-color: #ffb74d;--mdc-switch-selected-hover-track-color: #ffb74d;--mdc-switch-selected-pressed-track-color: #ffb74d;--mdc-switch-selected-track-color: #ffb74d}html .mat-mdc-slide-toggle.mat-warn{--mdc-switch-selected-focus-state-layer-color: #e53935;--mdc-switch-selected-handle-color: #e53935;--mdc-switch-selected-hover-state-layer-color: #e53935;--mdc-switch-selected-pressed-state-layer-color: #e53935;--mdc-switch-selected-focus-handle-color: #b71c1c;--mdc-switch-selected-hover-handle-color: #b71c1c;--mdc-switch-selected-pressed-handle-color: #b71c1c;--mdc-switch-selected-focus-track-color: #e57373;--mdc-switch-selected-hover-track-color: #e57373;--mdc-switch-selected-pressed-track-color: #e57373;--mdc-switch-selected-track-color: #e57373}html{--mdc-switch-state-layer-size: 40px}html{--mdc-radio-disabled-selected-icon-opacity: .38;--mdc-radio-disabled-unselected-icon-opacity: .38;--mdc-radio-state-layer-size: 40px}.mat-mdc-radio-button.mat-primary{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #689f38;--mdc-radio-selected-hover-icon-color: #689f38;--mdc-radio-selected-icon-color: #689f38;--mdc-radio-selected-pressed-icon-color: #689f38;--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #689f38;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38);--mat-radio-label-text-color: rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-accent{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #ff9800;--mdc-radio-selected-hover-icon-color: #ff9800;--mdc-radio-selected-icon-color: #ff9800;--mdc-radio-selected-pressed-icon-color: #ff9800;--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #ff9800;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38);--mat-radio-label-text-color: rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-warn{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #f44336;--mdc-radio-selected-hover-icon-color: #f44336;--mdc-radio-selected-icon-color: #f44336;--mdc-radio-selected-pressed-icon-color: #f44336;--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #f44336;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38);--mat-radio-label-text-color: rgba(0, 0, 0, .87)}html{--mdc-radio-state-layer-size: 40px;--mat-radio-touch-target-display: block}html{--mdc-slider-active-track-height: 6px;--mdc-slider-active-track-shape: 9999px;--mdc-slider-handle-height: 20px;--mdc-slider-handle-shape: 50%;--mdc-slider-handle-width: 20px;--mdc-slider-inactive-track-height: 4px;--mdc-slider-inactive-track-shape: 9999px;--mdc-slider-with-overlap-handle-outline-width: 1px;--mdc-slider-with-tick-marks-active-container-opacity: .6;--mdc-slider-with-tick-marks-container-shape: 50%;--mdc-slider-with-tick-marks-container-size: 2px;--mdc-slider-with-tick-marks-inactive-container-opacity: .6;--mdc-slider-handle-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-slider-value-indicator-width: auto;--mat-slider-value-indicator-height: 32px;--mat-slider-value-indicator-caret-display: block;--mat-slider-value-indicator-border-radius: 4px;--mat-slider-value-indicator-padding: 0 12px;--mat-slider-value-indicator-text-transform: none;--mat-slider-value-indicator-container-transform: translateX(-50%)}html{--mdc-slider-handle-color: #689f38;--mdc-slider-focus-handle-color: #689f38;--mdc-slider-hover-handle-color: #689f38;--mdc-slider-active-track-color: #689f38;--mdc-slider-inactive-track-color: #689f38;--mdc-slider-with-tick-marks-inactive-container-color: #689f38;--mdc-slider-with-tick-marks-active-container-color: white;--mdc-slider-disabled-active-track-color: #000;--mdc-slider-disabled-handle-color: #000;--mdc-slider-disabled-inactive-track-color: #000;--mdc-slider-label-container-color: #000;--mdc-slider-label-label-text-color: #fff;--mdc-slider-with-overlap-handle-outline-color: #fff;--mdc-slider-with-tick-marks-disabled-container-color: #000;--mat-slider-ripple-color: #689f38;--mat-slider-hover-state-layer-color: rgba(104, 159, 56, .05);--mat-slider-focus-state-layer-color: rgba(104, 159, 56, .2);--mat-slider-value-indicator-opacity: .6}html .mat-accent{--mdc-slider-handle-color: #ff9800;--mdc-slider-focus-handle-color: #ff9800;--mdc-slider-hover-handle-color: #ff9800;--mdc-slider-active-track-color: #ff9800;--mdc-slider-inactive-track-color: #ff9800;--mdc-slider-with-tick-marks-inactive-container-color: #ff9800;--mdc-slider-with-tick-marks-active-container-color: rgba(0, 0, 0, .87);--mat-slider-ripple-color: #ff9800;--mat-slider-hover-state-layer-color: rgba(255, 152, 0, .05);--mat-slider-focus-state-layer-color: rgba(255, 152, 0, .2)}html .mat-warn{--mdc-slider-handle-color: #f44336;--mdc-slider-focus-handle-color: #f44336;--mdc-slider-hover-handle-color: #f44336;--mdc-slider-active-track-color: #f44336;--mdc-slider-inactive-track-color: #f44336;--mdc-slider-with-tick-marks-inactive-container-color: #f44336;--mdc-slider-with-tick-marks-active-container-color: white;--mat-slider-ripple-color: #f44336;--mat-slider-hover-state-layer-color: rgba(244, 67, 54, .05);--mat-slider-focus-state-layer-color: rgba(244, 67, 54, .2)}html{--mat-menu-container-shape: 4px;--mat-menu-divider-bottom-spacing: 0;--mat-menu-divider-top-spacing: 0;--mat-menu-item-spacing: 16px;--mat-menu-item-icon-size: 24px;--mat-menu-item-leading-spacing: 16px;--mat-menu-item-trailing-spacing: 16px;--mat-menu-item-with-icon-leading-spacing: 16px;--mat-menu-item-with-icon-trailing-spacing: 16px;--mat-menu-base-elevation-level: 8}html{--mat-menu-item-label-text-color: rgba(0, 0, 0, .87);--mat-menu-item-icon-color: rgba(0, 0, 0, .87);--mat-menu-item-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-menu-item-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-menu-container-color: white;--mat-menu-divider-color: rgba(0, 0, 0, .12)}html{--mdc-list-list-item-container-shape: 0;--mdc-list-list-item-leading-avatar-shape: 50%;--mdc-list-list-item-container-color: transparent;--mdc-list-list-item-selected-container-color: transparent;--mdc-list-list-item-leading-avatar-color: transparent;--mdc-list-list-item-leading-icon-size: 24px;--mdc-list-list-item-leading-avatar-size: 40px;--mdc-list-list-item-trailing-icon-size: 24px;--mdc-list-list-item-disabled-state-layer-color: transparent;--mdc-list-list-item-disabled-state-layer-opacity: 0;--mdc-list-list-item-disabled-label-text-opacity: .38;--mdc-list-list-item-disabled-leading-icon-opacity: .38;--mdc-list-list-item-disabled-trailing-icon-opacity: .38;--mat-list-active-indicator-color: transparent;--mat-list-active-indicator-shape: 4px}html{--mdc-list-list-item-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-supporting-text-color: rgba(0, 0, 0, .54);--mdc-list-list-item-leading-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-trailing-supporting-text-color: rgba(0, 0, 0, .38);--mdc-list-list-item-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-selected-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-disabled-label-text-color: black;--mdc-list-list-item-disabled-leading-icon-color: black;--mdc-list-list-item-disabled-trailing-icon-color: black;--mdc-list-list-item-hover-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-hover-leading-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-hover-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-focus-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-hover-state-layer-color: black;--mdc-list-list-item-hover-state-layer-opacity: .04;--mdc-list-list-item-focus-state-layer-color: black;--mdc-list-list-item-focus-state-layer-opacity: .12}.mdc-list-item__start,.mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #689f38;--mdc-radio-selected-hover-icon-color: #689f38;--mdc-radio-selected-icon-color: #689f38;--mdc-radio-selected-pressed-icon-color: #689f38}.mat-accent .mdc-list-item__start,.mat-accent .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #ff9800;--mdc-radio-selected-hover-icon-color: #ff9800;--mdc-radio-selected-icon-color: #ff9800;--mdc-radio-selected-pressed-icon-color: #ff9800}.mat-warn .mdc-list-item__start,.mat-warn .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #f44336;--mdc-radio-selected-hover-icon-color: #f44336;--mdc-radio-selected-icon-color: #f44336;--mdc-radio-selected-pressed-icon-color: #f44336}.mat-mdc-list-option{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #689f38;--mdc-checkbox-selected-hover-icon-color: #689f38;--mdc-checkbox-selected-icon-color: #689f38;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #689f38;--mdc-checkbox-selected-hover-state-layer-color: #689f38;--mdc-checkbox-selected-pressed-state-layer-color: #689f38;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-option.mat-accent{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: black;--mdc-checkbox-selected-focus-icon-color: #ff9800;--mdc-checkbox-selected-hover-icon-color: #ff9800;--mdc-checkbox-selected-icon-color: #ff9800;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #ff9800;--mdc-checkbox-selected-hover-state-layer-color: #ff9800;--mdc-checkbox-selected-pressed-state-layer-color: #ff9800;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-option.mat-warn{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #f44336;--mdc-checkbox-selected-hover-icon-color: #f44336;--mdc-checkbox-selected-icon-color: #f44336;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #f44336;--mdc-checkbox-selected-hover-state-layer-color: #f44336;--mdc-checkbox-selected-pressed-state-layer-color: #f44336;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__start,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__start{color:#689f38}.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__content,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__end{opacity:1}html{--mdc-list-list-item-one-line-container-height: 48px;--mdc-list-list-item-two-line-container-height: 64px;--mdc-list-list-item-three-line-container-height: 88px;--mat-list-list-item-leading-icon-start-space: 16px;--mat-list-list-item-leading-icon-end-space: 32px}.mdc-list-item__start,.mdc-list-item__end{--mdc-radio-state-layer-size: 40px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}html{--mat-paginator-container-text-color: rgba(0, 0, 0, .87);--mat-paginator-container-background-color: white;--mat-paginator-enabled-icon-color: rgba(0, 0, 0, .54);--mat-paginator-disabled-icon-color: rgba(0, 0, 0, .12)}html{--mat-paginator-container-size: 56px;--mat-paginator-form-field-container-height: 40px;--mat-paginator-form-field-container-vertical-padding: 8px;--mat-paginator-touch-target-display: block}html{--mdc-secondary-navigation-tab-container-height: 48px;--mdc-tab-indicator-active-indicator-height: 2px;--mdc-tab-indicator-active-indicator-shape: 0;--mat-tab-header-divider-color: transparent;--mat-tab-header-divider-height: 0}.mat-mdc-tab-group,.mat-mdc-tab-nav-bar{--mdc-tab-indicator-active-indicator-color: #689f38;--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #689f38;--mat-tab-header-active-ripple-color: #689f38;--mat-tab-header-inactive-ripple-color: #689f38;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #689f38;--mat-tab-header-active-hover-label-text-color: #689f38;--mat-tab-header-active-focus-indicator-color: #689f38;--mat-tab-header-active-hover-indicator-color: #689f38}.mat-mdc-tab-group.mat-accent,.mat-mdc-tab-nav-bar.mat-accent{--mdc-tab-indicator-active-indicator-color: #ff9800;--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #ff9800;--mat-tab-header-active-ripple-color: #ff9800;--mat-tab-header-inactive-ripple-color: #ff9800;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #ff9800;--mat-tab-header-active-hover-label-text-color: #ff9800;--mat-tab-header-active-focus-indicator-color: #ff9800;--mat-tab-header-active-hover-indicator-color: #ff9800}.mat-mdc-tab-group.mat-warn,.mat-mdc-tab-nav-bar.mat-warn{--mdc-tab-indicator-active-indicator-color: #f44336;--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #f44336;--mat-tab-header-active-ripple-color: #f44336;--mat-tab-header-inactive-ripple-color: #f44336;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #f44336;--mat-tab-header-active-hover-label-text-color: #f44336;--mat-tab-header-active-focus-indicator-color: #f44336;--mat-tab-header-active-hover-indicator-color: #f44336}.mat-mdc-tab-group.mat-background-primary,.mat-mdc-tab-nav-bar.mat-background-primary{--mat-tab-header-with-background-background-color: #689f38;--mat-tab-header-with-background-foreground-color: white}.mat-mdc-tab-group.mat-background-accent,.mat-mdc-tab-nav-bar.mat-background-accent{--mat-tab-header-with-background-background-color: #ff9800;--mat-tab-header-with-background-foreground-color: rgba(0, 0, 0, .87)}.mat-mdc-tab-group.mat-background-warn,.mat-mdc-tab-nav-bar.mat-background-warn{--mat-tab-header-with-background-background-color: #f44336;--mat-tab-header-with-background-foreground-color: white}.mat-mdc-tab-header{--mdc-secondary-navigation-tab-container-height: 48px}html{--mdc-checkbox-disabled-selected-checkmark-color: #fff;--mdc-checkbox-selected-focus-state-layer-opacity: .16;--mdc-checkbox-selected-hover-state-layer-opacity: .04;--mdc-checkbox-selected-pressed-state-layer-opacity: .16;--mdc-checkbox-unselected-focus-state-layer-opacity: .16;--mdc-checkbox-unselected-hover-state-layer-opacity: .04;--mdc-checkbox-unselected-pressed-state-layer-opacity: .16}html{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: black;--mdc-checkbox-selected-focus-icon-color: #ff9800;--mdc-checkbox-selected-hover-icon-color: #ff9800;--mdc-checkbox-selected-icon-color: #ff9800;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #ff9800;--mdc-checkbox-selected-hover-state-layer-color: #ff9800;--mdc-checkbox-selected-pressed-state-layer-color: #ff9800;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black;--mat-checkbox-disabled-label-color: rgba(0, 0, 0, .38);--mat-checkbox-label-text-color: rgba(0, 0, 0, .87)}.mat-mdc-checkbox.mat-primary{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #689f38;--mdc-checkbox-selected-hover-icon-color: #689f38;--mdc-checkbox-selected-icon-color: #689f38;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #689f38;--mdc-checkbox-selected-hover-state-layer-color: #689f38;--mdc-checkbox-selected-pressed-state-layer-color: #689f38;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-checkbox.mat-warn{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #f44336;--mdc-checkbox-selected-hover-icon-color: #f44336;--mdc-checkbox-selected-icon-color: #f44336;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #f44336;--mdc-checkbox-selected-hover-state-layer-color: #f44336;--mdc-checkbox-selected-pressed-state-layer-color: #f44336;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}html{--mdc-checkbox-state-layer-size: 40px;--mat-checkbox-touch-target-display: block}html{--mdc-text-button-container-shape: 4px;--mdc-text-button-keep-touch-target: false;--mdc-filled-button-container-shape: 4px;--mdc-filled-button-keep-touch-target: false;--mdc-protected-button-container-shape: 4px;--mdc-protected-button-container-elevation-shadow: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mdc-protected-button-disabled-container-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-protected-button-focus-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-hover-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-pressed-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-outlined-button-keep-touch-target: false;--mdc-outlined-button-outline-width: 1px;--mdc-outlined-button-container-shape: 4px;--mat-text-button-horizontal-padding: 8px;--mat-text-button-with-icon-horizontal-padding: 8px;--mat-text-button-icon-spacing: 8px;--mat-text-button-icon-offset: 0;--mat-filled-button-horizontal-padding: 16px;--mat-filled-button-icon-spacing: 8px;--mat-filled-button-icon-offset: -4px;--mat-protected-button-horizontal-padding: 16px;--mat-protected-button-icon-spacing: 8px;--mat-protected-button-icon-offset: -4px;--mat-outlined-button-horizontal-padding: 15px;--mat-outlined-button-icon-spacing: 8px;--mat-outlined-button-icon-offset: -4px}html{--mdc-text-button-label-text-color: black;--mdc-text-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mat-text-button-state-layer-color: black;--mat-text-button-disabled-state-layer-color: black;--mat-text-button-ripple-color: rgba(0, 0, 0, .1);--mat-text-button-hover-state-layer-opacity: .04;--mat-text-button-focus-state-layer-opacity: .12;--mat-text-button-pressed-state-layer-opacity: .12;--mdc-filled-button-container-color: white;--mdc-filled-button-label-text-color: black;--mdc-filled-button-disabled-container-color: rgba(0, 0, 0, .12);--mdc-filled-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mat-filled-button-state-layer-color: black;--mat-filled-button-disabled-state-layer-color: black;--mat-filled-button-ripple-color: rgba(0, 0, 0, .1);--mat-filled-button-hover-state-layer-opacity: .04;--mat-filled-button-focus-state-layer-opacity: .12;--mat-filled-button-pressed-state-layer-opacity: .12;--mdc-protected-button-container-color: white;--mdc-protected-button-label-text-color: black;--mdc-protected-button-disabled-container-color: rgba(0, 0, 0, .12);--mdc-protected-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mat-protected-button-state-layer-color: black;--mat-protected-button-disabled-state-layer-color: black;--mat-protected-button-ripple-color: rgba(0, 0, 0, .1);--mat-protected-button-hover-state-layer-opacity: .04;--mat-protected-button-focus-state-layer-opacity: .12;--mat-protected-button-pressed-state-layer-opacity: .12;--mdc-outlined-button-disabled-outline-color: rgba(0, 0, 0, .12);--mdc-outlined-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-outlined-button-label-text-color: black;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: black;--mat-outlined-button-disabled-state-layer-color: black;--mat-outlined-button-ripple-color: rgba(0, 0, 0, .1);--mat-outlined-button-hover-state-layer-opacity: .04;--mat-outlined-button-focus-state-layer-opacity: .12;--mat-outlined-button-pressed-state-layer-opacity: .12}.mat-mdc-button.mat-primary{--mdc-text-button-label-text-color: #689f38;--mat-text-button-state-layer-color: #689f38;--mat-text-button-ripple-color: rgba(104, 159, 56, .1)}.mat-mdc-button.mat-accent{--mdc-text-button-label-text-color: #ff9800;--mat-text-button-state-layer-color: #ff9800;--mat-text-button-ripple-color: rgba(255, 152, 0, .1)}.mat-mdc-button.mat-warn{--mdc-text-button-label-text-color: #f44336;--mat-text-button-state-layer-color: #f44336;--mat-text-button-ripple-color: rgba(244, 67, 54, .1)}.mat-mdc-unelevated-button.mat-primary{--mdc-filled-button-container-color: #689f38;--mdc-filled-button-label-text-color: white;--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-unelevated-button.mat-accent{--mdc-filled-button-container-color: #ff9800;--mdc-filled-button-label-text-color: black;--mat-filled-button-state-layer-color: black;--mat-filled-button-ripple-color: rgba(0, 0, 0, .1)}.mat-mdc-unelevated-button.mat-warn{--mdc-filled-button-container-color: #f44336;--mdc-filled-button-label-text-color: white;--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-primary{--mdc-protected-button-container-color: #689f38;--mdc-protected-button-label-text-color: white;--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-accent{--mdc-protected-button-container-color: #ff9800;--mdc-protected-button-label-text-color: black;--mat-protected-button-state-layer-color: black;--mat-protected-button-ripple-color: rgba(0, 0, 0, .1)}.mat-mdc-raised-button.mat-warn{--mdc-protected-button-container-color: #f44336;--mdc-protected-button-label-text-color: white;--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-outlined-button.mat-primary{--mdc-outlined-button-label-text-color: #689f38;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #689f38;--mat-outlined-button-ripple-color: rgba(104, 159, 56, .1)}.mat-mdc-outlined-button.mat-accent{--mdc-outlined-button-label-text-color: #ff9800;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #ff9800;--mat-outlined-button-ripple-color: rgba(255, 152, 0, .1)}.mat-mdc-outlined-button.mat-warn{--mdc-outlined-button-label-text-color: #f44336;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #f44336;--mat-outlined-button-ripple-color: rgba(244, 67, 54, .1)}html{--mdc-text-button-container-height: 36px;--mdc-filled-button-container-height: 36px;--mdc-protected-button-container-height: 36px;--mdc-outlined-button-container-height: 36px;--mat-text-button-touch-target-display: block;--mat-filled-button-touch-target-display: block;--mat-protected-button-touch-target-display: block;--mat-outlined-button-touch-target-display: block}html{--mdc-icon-button-icon-size: 24px}html{--mdc-icon-button-icon-color: inherit;--mdc-icon-button-disabled-icon-color: rgba(0, 0, 0, .38);--mat-icon-button-state-layer-color: black;--mat-icon-button-disabled-state-layer-color: black;--mat-icon-button-ripple-color: rgba(0, 0, 0, .1);--mat-icon-button-hover-state-layer-opacity: .04;--mat-icon-button-focus-state-layer-opacity: .12;--mat-icon-button-pressed-state-layer-opacity: .12}html .mat-mdc-icon-button.mat-primary{--mdc-icon-button-icon-color: #689f38;--mat-icon-button-state-layer-color: #689f38;--mat-icon-button-ripple-color: rgba(104, 159, 56, .1)}html .mat-mdc-icon-button.mat-accent{--mdc-icon-button-icon-color: #ff9800;--mat-icon-button-state-layer-color: #ff9800;--mat-icon-button-ripple-color: rgba(255, 152, 0, .1)}html .mat-mdc-icon-button.mat-warn{--mdc-icon-button-icon-color: #f44336;--mat-icon-button-state-layer-color: #f44336;--mat-icon-button-ripple-color: rgba(244, 67, 54, .1)}html{--mat-icon-button-touch-target-display: block}.mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 48px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:12px}html{--mdc-fab-container-shape: 50%;--mdc-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-fab-small-container-shape: 50%;--mdc-fab-small-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-small-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-extended-fab-container-height: 48px;--mdc-extended-fab-container-shape: 24px;--mdc-extended-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-extended-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12)}html{--mdc-fab-container-color: white;--mat-fab-foreground-color: black;--mat-fab-state-layer-color: black;--mat-fab-disabled-state-layer-color: black;--mat-fab-ripple-color: rgba(0, 0, 0, .1);--mat-fab-hover-state-layer-opacity: .04;--mat-fab-focus-state-layer-opacity: .12;--mat-fab-pressed-state-layer-opacity: .12;--mat-fab-disabled-state-container-color: rgba(0, 0, 0, .12);--mat-fab-disabled-state-foreground-color: rgba(0, 0, 0, .38);--mdc-fab-small-container-color: white;--mat-fab-small-foreground-color: black;--mat-fab-small-state-layer-color: black;--mat-fab-small-disabled-state-layer-color: black;--mat-fab-small-ripple-color: rgba(0, 0, 0, .1);--mat-fab-small-hover-state-layer-opacity: .04;--mat-fab-small-focus-state-layer-opacity: .12;--mat-fab-small-pressed-state-layer-opacity: .12;--mat-fab-small-disabled-state-container-color: rgba(0, 0, 0, .12);--mat-fab-small-disabled-state-foreground-color: rgba(0, 0, 0, .38)}html .mat-mdc-fab.mat-primary{--mdc-fab-container-color: #689f38;--mat-fab-foreground-color: white;--mat-fab-state-layer-color: white;--mat-fab-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-fab.mat-accent{--mdc-fab-container-color: #ff9800;--mat-fab-foreground-color: black;--mat-fab-state-layer-color: black;--mat-fab-ripple-color: rgba(0, 0, 0, .1)}html .mat-mdc-fab.mat-warn{--mdc-fab-container-color: #f44336;--mat-fab-foreground-color: white;--mat-fab-state-layer-color: white;--mat-fab-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-mini-fab.mat-primary{--mdc-fab-small-container-color: #689f38;--mat-fab-small-foreground-color: white;--mat-fab-small-state-layer-color: white;--mat-fab-small-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-mini-fab.mat-accent{--mdc-fab-small-container-color: #ff9800;--mat-fab-small-foreground-color: black;--mat-fab-small-state-layer-color: black;--mat-fab-small-ripple-color: rgba(0, 0, 0, .1)}html .mat-mdc-mini-fab.mat-warn{--mdc-fab-small-container-color: #f44336;--mat-fab-small-foreground-color: white;--mat-fab-small-state-layer-color: white;--mat-fab-small-ripple-color: rgba(255, 255, 255, .1)}html{--mat-fab-touch-target-display: block;--mat-fab-small-touch-target-display: block}html{--mdc-snackbar-container-shape: 4px}html{--mdc-snackbar-container-color: #333333;--mdc-snackbar-supporting-text-color: rgba(255, 255, 255, .87);--mat-snack-bar-button-color: #ff9800}html{--mat-table-row-item-outline-width: 1px}html{--mat-table-background-color: white;--mat-table-header-headline-color: rgba(0, 0, 0, .87);--mat-table-row-item-label-text-color: rgba(0, 0, 0, .87);--mat-table-row-item-outline-color: rgba(0, 0, 0, .12)}html{--mat-table-header-container-height: 56px;--mat-table-footer-container-height: 52px;--mat-table-row-item-container-height: 52px}html{--mdc-circular-progress-active-indicator-width: 4px;--mdc-circular-progress-size: 48px}html{--mdc-circular-progress-active-indicator-color: #689f38}html .mat-accent{--mdc-circular-progress-active-indicator-color: #ff9800}html .mat-warn{--mdc-circular-progress-active-indicator-color: #f44336}html{--mat-badge-container-shape: 50%;--mat-badge-container-size: unset;--mat-badge-small-size-container-size: unset;--mat-badge-large-size-container-size: unset;--mat-badge-legacy-container-size: 22px;--mat-badge-legacy-small-size-container-size: 16px;--mat-badge-legacy-large-size-container-size: 28px;--mat-badge-container-offset: -11px 0;--mat-badge-small-size-container-offset: -8px 0;--mat-badge-large-size-container-offset: -14px 0;--mat-badge-container-overlap-offset: -11px;--mat-badge-small-size-container-overlap-offset: -8px;--mat-badge-large-size-container-overlap-offset: -14px;--mat-badge-container-padding: 0;--mat-badge-small-size-container-padding: 0;--mat-badge-large-size-container-padding: 0}html{--mat-badge-background-color: #689f38;--mat-badge-text-color: white;--mat-badge-disabled-state-background-color: #b9b9b9;--mat-badge-disabled-state-text-color: rgba(0, 0, 0, .38)}.mat-badge-accent{--mat-badge-background-color: #ff9800;--mat-badge-text-color: rgba(0, 0, 0, .87)}.mat-badge-warn{--mat-badge-background-color: #f44336;--mat-badge-text-color: white}html{--mat-bottom-sheet-container-shape: 4px}html{--mat-bottom-sheet-container-text-color: rgba(0, 0, 0, .87);--mat-bottom-sheet-container-background-color: white}html{--mat-legacy-button-toggle-height: 36px;--mat-legacy-button-toggle-shape: 2px;--mat-legacy-button-toggle-focus-state-layer-opacity: 1;--mat-standard-button-toggle-shape: 4px;--mat-standard-button-toggle-hover-state-layer-opacity: .04;--mat-standard-button-toggle-focus-state-layer-opacity: .12}html{--mat-legacy-button-toggle-text-color: rgba(0, 0, 0, .38);--mat-legacy-button-toggle-state-layer-color: rgba(0, 0, 0, .12);--mat-legacy-button-toggle-selected-state-text-color: rgba(0, 0, 0, .54);--mat-legacy-button-toggle-selected-state-background-color: #e0e0e0;--mat-legacy-button-toggle-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-legacy-button-toggle-disabled-state-background-color: #eeeeee;--mat-legacy-button-toggle-disabled-selected-state-background-color: #bdbdbd;--mat-standard-button-toggle-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-background-color: white;--mat-standard-button-toggle-state-layer-color: black;--mat-standard-button-toggle-selected-state-background-color: #e0e0e0;--mat-standard-button-toggle-selected-state-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-standard-button-toggle-disabled-state-background-color: white;--mat-standard-button-toggle-disabled-selected-state-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-selected-state-background-color: #bdbdbd;--mat-standard-button-toggle-divider-color: #e0e0e0}html{--mat-standard-button-toggle-height: 48px}html{--mat-datepicker-calendar-container-shape: 4px;--mat-datepicker-calendar-container-touch-shape: 4px;--mat-datepicker-calendar-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-datepicker-calendar-container-touch-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html{--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #689f38;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(104, 159, 56, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: rgba(104, 159, 56, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(104, 159, 56, .3);--mat-datepicker-toggle-active-state-icon-color: #689f38;--mat-datepicker-calendar-date-in-range-state-background-color: rgba(104, 159, 56, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e;--mat-datepicker-toggle-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-body-label-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-period-button-text-color: black;--mat-datepicker-calendar-period-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-navigation-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-header-divider-color: rgba(0, 0, 0, .12);--mat-datepicker-calendar-header-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-outline-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-date-today-disabled-state-outline-color: rgba(0, 0, 0, .18);--mat-datepicker-calendar-date-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(0, 0, 0, .24);--mat-datepicker-range-input-separator-color: rgba(0, 0, 0, .87);--mat-datepicker-range-input-disabled-state-separator-color: rgba(0, 0, 0, .38);--mat-datepicker-range-input-disabled-state-text-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-container-background-color: white;--mat-datepicker-calendar-container-text-color: rgba(0, 0, 0, .87)}.mat-datepicker-content.mat-accent{--mat-datepicker-calendar-date-selected-state-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-selected-state-background-color: #ff9800;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(255, 152, 0, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-focus-state-background-color: rgba(255, 152, 0, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(255, 152, 0, .3);--mat-datepicker-calendar-date-in-range-state-background-color: rgba(255, 152, 0, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e}.mat-datepicker-content.mat-warn{--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #f44336;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(244, 67, 54, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-in-range-state-background-color: rgba(244, 67, 54, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e}.mat-datepicker-toggle-active.mat-accent{--mat-datepicker-toggle-active-state-icon-color: #ff9800}.mat-datepicker-toggle-active.mat-warn{--mat-datepicker-toggle-active-state-icon-color: #f44336}.mat-calendar-controls{--mat-icon-button-touch-target-display: none}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 40px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:8px}html{--mat-divider-width: 1px}html{--mat-divider-color: rgba(0, 0, 0, .12)}html{--mat-expansion-container-shape: 4px;--mat-expansion-legacy-header-indicator-display: inline-block;--mat-expansion-header-indicator-display: none}html{--mat-expansion-container-background-color: white;--mat-expansion-container-text-color: rgba(0, 0, 0, .87);--mat-expansion-actions-divider-color: rgba(0, 0, 0, .12);--mat-expansion-header-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-expansion-header-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-expansion-header-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-expansion-header-text-color: rgba(0, 0, 0, .87);--mat-expansion-header-description-color: rgba(0, 0, 0, .54);--mat-expansion-header-indicator-color: rgba(0, 0, 0, .54)}html{--mat-expansion-header-collapsed-state-height: 48px;--mat-expansion-header-expanded-state-height: 64px}html{--mat-icon-color: inherit}.mat-icon.mat-primary{--mat-icon-color: #689f38}.mat-icon.mat-accent{--mat-icon-color: #ff9800}.mat-icon.mat-warn{--mat-icon-color: #f44336}html{--mat-sidenav-container-shape: 0;--mat-sidenav-container-elevation-shadow: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-sidenav-container-width: auto}html{--mat-sidenav-container-divider-color: rgba(0, 0, 0, .12);--mat-sidenav-container-background-color: white;--mat-sidenav-container-text-color: rgba(0, 0, 0, .87);--mat-sidenav-content-background-color: #fafafa;--mat-sidenav-content-text-color: rgba(0, 0, 0, .87);--mat-sidenav-scrim-color: rgba(0, 0, 0, .6)}html{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #689f38;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #689f38;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #689f38;--mat-stepper-header-edit-state-icon-foreground-color: white;--mat-stepper-container-color: white;--mat-stepper-line-color: rgba(0, 0, 0, .12);--mat-stepper-header-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-stepper-header-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-stepper-header-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-optional-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-selected-state-label-text-color: rgba(0, 0, 0, .87);--mat-stepper-header-error-state-label-text-color: #f44336;--mat-stepper-header-icon-background-color: rgba(0, 0, 0, .54);--mat-stepper-header-error-state-icon-foreground-color: #f44336;--mat-stepper-header-error-state-icon-background-color: transparent}html .mat-step-header.mat-accent{--mat-stepper-header-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-selected-state-icon-background-color: #ff9800;--mat-stepper-header-selected-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-done-state-icon-background-color: #ff9800;--mat-stepper-header-done-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-edit-state-icon-background-color: #ff9800;--mat-stepper-header-edit-state-icon-foreground-color: rgba(0, 0, 0, .87)}html .mat-step-header.mat-warn{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #f44336;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #f44336;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #f44336;--mat-stepper-header-edit-state-icon-foreground-color: white}html{--mat-stepper-header-height: 72px}html{--mat-sort-arrow-color: #757575}html{--mat-toolbar-container-background-color: whitesmoke;--mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.mat-toolbar.mat-primary{--mat-toolbar-container-background-color: #689f38;--mat-toolbar-container-text-color: white}.mat-toolbar.mat-accent{--mat-toolbar-container-background-color: #ff9800;--mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.mat-toolbar.mat-warn{--mat-toolbar-container-background-color: #f44336;--mat-toolbar-container-text-color: white}html{--mat-toolbar-standard-height: 64px;--mat-toolbar-mobile-height: 56px}html{--mat-tree-container-background-color: white;--mat-tree-node-text-color: rgba(0, 0, 0, .87)}html{--mat-tree-node-min-height: 48px}@font-face{font-family:Irish Uncialfabeta;src:url("./media/irishuncialfabeta-bold-webfont-V6KQX3YL.woff2") format("woff2"),url("./media/irishuncialfabeta-bold-webfont-LXS2VNSS.woff") format("woff");font-weight:400;font-style:normal}div.search-panel{margin-bottom:1em}html,body{margin:0;height:100%;overflow:hidden;--mat-option-label-text-tracking: normal;--mdc-list-list-item-label-text-tracking: normal;--mdc-protected-button-label-text-tracking: normal}.search-panel mat-form-field,.tags-form mat-form-field{width:15em;margin-right:.5em}mat-sidenav mat-icon{margin-right:.5em}.main-content{padding-top:10px;padding-left:20px;padding-right:20px;margin:auto;max-width:1000px}.tune-link{cursor:pointer}.tune-link.tune-title{min-width:30px}.tune-id{padding-right:.5em;width:3em}div.tune-item{display:inline-block;width:400px}div.confidence{display:inline-block;vertical-align:top}.tunebook-link{font-size:120%;font-weight:bolder;cursor:pointer}.tunebook-description{white-space:wrap}cdk-virtual-scroll-viewport{height:80vh}tr.tune-preview{height:100px;max-height:100px}app-snippet-view div{height:80px;max-height:80px}.abcjs-inline-audio{max-width:780px;margin-bottom:1em;margin-right:2em}.abcjs-inline-audio .abcjs-tempo-wrapper{display:none}div.tunebook-row,div.tune-row{display:flex}div.tunebook-item{margin-top:5px;margin-bottom:5px}div.create-book-panel form{display:flex;flex-flow:column}button.create-book-button{margin-top:1em;width:max-content}app-books-list .mat-mdc-list-base .mat-mdc-list-item{height:auto}div.tune-view{max-width:1000px;margin-bottom:20px}div.player-controls{display:flex;flex-wrap:wrap;align-items:baseline}.player-controls .mat-slider-horizontal{width:140px}app-tune-player{margin-bottom:1em}div.tunebook-button{width:48px}div.player{flex-grow:1}.tempo-slider{display:inline-block}.search-result-viewport{height:800px}table.repertoire{width:100%}table.repertoire td{padding-right:8px}.full-height{height:100%}div#button-container{margin-top:2em}a.tune-link:link,a.tune-link:visited,a.tune-link:hover,a.tune-link:active{text-decoration:none;color:#000}div.main-content{margin-bottom:80px}h1.irish{font-family:Irish Uncialfabeta!important;font-size:24px!important}button.tune-button{margin-left:.5em}button.tune-button .mat-icon{margin-left:0;margin-right:0}div.repertoire-header{display:flex;flex-direction:space-between}div.repertoire-header button{margin-left:auto}div.form-container{width:15em;display:flex;flex-direction:column}.mat-icon{vertical-align:middle}app-root .tempo-label{display:inline-block;min-width:5em}mat-form-field.editor{width:1000px}app-tune-editor .mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font-family:Courier New,Courier,monospace;font-weight:bolder;min-height:10em;max-height:20em}