@drayman/elements 1.11.1 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ !function(t){var e={};function n(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)n.d(i,s,(function(e){return t[e]}).bind(null,s));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}({0:function(t,e,n){t.exports=n("zUnb")},BQ33:function(t,e,n){t.exports=function(){"use strict";var t=6e4,e=36e5,n="millisecond",i="second",s="minute",r="hour",o="day",a="week",l="month",c="quarter",u="year",h="date",d="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},y={s:g,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),s=n%60;return(e<=0?"+":"-")+g(i,2,"0")+":"+g(s,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var i=12*(n.year()-e.year())+(n.month()-e.month()),s=e.clone().add(i,l),r=n-s<0,o=e.clone().add(i+(r?-1:1),l);return+(-(i+(n-s)/(r?s-o:o-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:u,w:a,d:o,D:h,h:r,m:s,s:i,ms:n,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},_="en",v={};v[_]=m;var b=function(t){return t instanceof S},w=function(t,e,n){var i;if(!t)return _;if("string"==typeof t)v[t]&&(i=t),e&&(v[t]=e,i=t);else{var s=t.name;v[s]=t,i=s}return!n&&i&&(_=i),i||!n&&_},x=function(t,e){if(b(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},E=y;E.l=w,E.i=b,E.w=function(t,e){return x(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function m(t){this.$L=w(t.locale,null,!0),this.parse(t)}var g=m.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(f);if(i){var s=i[2]-1||0,r=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],s,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)):new Date(i[1],s,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return E},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(t,e){var n=x(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return x(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<x(t)},g.$g=function(t,e,n){return E.u(t)?this[e]:this.set(n,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var n=this,c=!!E.u(e)||e,d=E.p(t),f=function(t,e){var i=E.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return c?i:i.endOf(o)},p=function(t,e){return E.w(n.toDate()[t].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,g=this.$M,y=this.$D,_="set"+(this.$u?"UTC":"");switch(d){case u:return c?f(1,0):f(31,11);case l:return c?f(1,g):f(0,g+1);case a:var v=this.$locale().weekStart||0,b=(m<v?m+7:m)-v;return f(c?y-b:y+(6-b),g);case o:case h:return p(_+"Hours",0);case r:return p(_+"Minutes",1);case s:return p(_+"Seconds",2);case i:return p(_+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var a,c=E.p(t),d="set"+(this.$u?"UTC":""),f=(a={},a[o]=d+"Date",a[h]=d+"Date",a[l]=d+"Month",a[u]=d+"FullYear",a[r]=d+"Hours",a[s]=d+"Minutes",a[i]=d+"Seconds",a[n]=d+"Milliseconds",a)[c],p=c===o?this.$D+(e-this.$W):e;if(c===l||c===u){var m=this.clone().set(h,1);m.$d[f](p),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[E.p(t)]()},g.add=function(n,c){var h,d=this;n=Number(n);var f=E.p(c),p=function(t){var e=x(d);return E.w(e.date(e.date()+Math.round(t*n)),d)};if(f===l)return this.set(l,this.$M+n);if(f===u)return this.set(u,this.$y+n);if(f===o)return p(1);if(f===a)return p(7);var m=(h={},h[s]=t,h[r]=e,h[i]=1e3,h)[f]||1,g=this.$d.getTime()+n*m;return E.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var i=t||"YYYY-MM-DDTHH:mm:ssZ",s=E.z(this),r=this.$H,o=this.$m,a=this.$M,l=n.weekdays,c=n.months,u=function(t,n,s,r){return t&&(t[n]||t(e,i))||s[n].substr(0,r)},h=function(t){return E.s(r%12||12,t,"0")},f=n.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:E.s(a+1,2,"0"),MMM:u(n.monthsShort,a,c,3),MMMM:u(c,a),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,l,2),ddd:u(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(r),HH:E.s(r,2,"0"),h:h(1),hh:h(2),a:f(r,o,!0),A:f(r,o,!1),m:String(o),mm:E.s(o,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:s};return i.replace(p,(function(t,e){return e||m[t]||s.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,h,d){var f,p=E.p(h),m=x(n),g=(m.utcOffset()-this.utcOffset())*t,y=this-m,_=E.m(this,m);return _=(f={},f[u]=_/12,f[l]=_,f[c]=_/3,f[a]=(y-g)/6048e5,f[o]=(y-g)/864e5,f[r]=y/e,f[s]=y/t,f[i]=y/1e3,f)[p]||y,d?_:E.a(_)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return v[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=w(t,e,!0);return i&&(n.$L=i),n},g.clone=function(){return E.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),k=S.prototype;return x.prototype=k,[["$ms",n],["$s",i],["$m",s],["$H",r],["$W",o],["$M",l],["$y",u],["$D",h]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),x.extend=function(t,e){return t.$i||(t(e,S,x),t.$i=!0),x},x.locale=w,x.isDayjs=b,x.unix=function(t){return x(1e3*t)},x.en=v[_],x.Ls=v,x.p={},x}()},QbNu:function(t,e,n){var i;!function(s){var r=/^\s+/,o=/\s+$/,a=0,l=s.round,c=s.min,u=s.max,h=s.random;function d(t,e){if(e=e||{},(t=t||"")instanceof d)return t;if(!(this instanceof d))return new d(t,e);var n=function(t){var e,n,i={r:0,g:0,b:0},a=1,l=null,h=null,d=null,f=!1,p=!1;return"string"==typeof t&&(t=function(t){t=t.replace(r,"").replace(o,"").toLowerCase();var e,n=!1;if(O[t])t=O[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=z.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=z.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=z.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=z.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=z.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=z.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=z.hex8.exec(t))?{r:L(e[1]),g:L(e[2]),b:L(e[3]),a:B(e[4]),format:n?"name":"hex8"}:(e=z.hex6.exec(t))?{r:L(e[1]),g:L(e[2]),b:L(e[3]),format:n?"name":"hex"}:(e=z.hex4.exec(t))?{r:L(e[1]+""+e[1]),g:L(e[2]+""+e[2]),b:L(e[3]+""+e[3]),a:B(e[4]+""+e[4]),format:n?"name":"hex8"}:!!(e=z.hex3.exec(t))&&{r:L(e[1]+""+e[1]),g:L(e[2]+""+e[2]),b:L(e[3]+""+e[3]),format:n?"name":"hex"}}(t)),"object"==typeof t&&(W(t.r)&&W(t.g)&&W(t.b)?(e=t.g,n=t.b,i={r:255*P(t.r,255),g:255*P(e,255),b:255*P(n,255)},f=!0,p="%"===String(t.r).substr(-1)?"prgb":"rgb"):W(t.h)&&W(t.s)&&W(t.v)?(l=N(t.s),h=N(t.v),i=function(t,e,n){t=6*P(t,360),e=P(e,100),n=P(n,100);var i=s.floor(t),r=t-i,o=n*(1-e),a=n*(1-r*e),l=n*(1-(1-r)*e),c=i%6;return{r:255*[n,a,o,o,l,n][c],g:255*[l,n,n,a,o,o][c],b:255*[o,o,l,n,n,a][c]}}(t.h,l,h),f=!0,p="hsv"):W(t.h)&&W(t.s)&&W(t.l)&&(l=N(t.s),d=N(t.l),i=function(t,e,n){var i,s,r;function o(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=P(t,360),e=P(e,100),n=P(n,100),0===e)i=s=r=n;else{var a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=o(l,a,t+1/3),s=o(l,a,t),r=o(l,a,t-1/3)}return{r:255*i,g:255*s,b:255*r}}(t.h,l,d),f=!0,p="hsl"),t.hasOwnProperty("a")&&(a=t.a)),a=M(a),{ok:f,format:t.format||p,r:c(255,u(i.r,0)),g:c(255,u(i.g,0)),b:c(255,u(i.b,0)),a:a}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=a++}function f(t,e,n){t=P(t,255),e=P(e,255),n=P(n,255);var i,s,r=u(t,e,n),o=c(t,e,n),a=(r+o)/2;if(r==o)i=s=0;else{var l=r-o;switch(s=a>.5?l/(2-r-o):l/(r+o),r){case t:i=(e-n)/l+(e<n?6:0);break;case e:i=(n-t)/l+2;break;case n:i=(t-e)/l+4}i/=6}return{h:i,s:s,l:a}}function p(t,e,n){t=P(t,255),e=P(e,255),n=P(n,255);var i,s,r=u(t,e,n),o=c(t,e,n),a=r,l=r-o;if(s=0===r?0:l/r,r==o)i=0;else{switch(r){case t:i=(e-n)/l+(e<n?6:0);break;case e:i=(n-t)/l+2;break;case n:i=(t-e)/l+4}i/=6}return{h:i,s:s,v:a}}function m(t,e,n,i){var s=[F(l(t).toString(16)),F(l(e).toString(16)),F(l(n).toString(16))];return i&&s[0].charAt(0)==s[0].charAt(1)&&s[1].charAt(0)==s[1].charAt(1)&&s[2].charAt(0)==s[2].charAt(1)?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function g(t,e,n,i){return[F(j(i)),F(l(t).toString(16)),F(l(e).toString(16)),F(l(n).toString(16))].join("")}function y(t,e){e=0===e?0:e||10;var n=d(t).toHsl();return n.s-=e/100,n.s=R(n.s),d(n)}function _(t,e){e=0===e?0:e||10;var n=d(t).toHsl();return n.s+=e/100,n.s=R(n.s),d(n)}function v(t){return d(t).desaturate(100)}function b(t,e){e=0===e?0:e||10;var n=d(t).toHsl();return n.l+=e/100,n.l=R(n.l),d(n)}function w(t,e){e=0===e?0:e||10;var n=d(t).toRgb();return n.r=u(0,c(255,n.r-l(-e/100*255))),n.g=u(0,c(255,n.g-l(-e/100*255))),n.b=u(0,c(255,n.b-l(-e/100*255))),d(n)}function x(t,e){e=0===e?0:e||10;var n=d(t).toHsl();return n.l-=e/100,n.l=R(n.l),d(n)}function E(t,e){var n=d(t).toHsl(),i=(n.h+e)%360;return n.h=i<0?360+i:i,d(n)}function S(t){var e=d(t).toHsl();return e.h=(e.h+180)%360,d(e)}function k(t){var e=d(t).toHsl(),n=e.h;return[d(t),d({h:(n+120)%360,s:e.s,l:e.l}),d({h:(n+240)%360,s:e.s,l:e.l})]}function C(t){var e=d(t).toHsl(),n=e.h;return[d(t),d({h:(n+90)%360,s:e.s,l:e.l}),d({h:(n+180)%360,s:e.s,l:e.l}),d({h:(n+270)%360,s:e.s,l:e.l})]}function T(t){var e=d(t).toHsl(),n=e.h;return[d(t),d({h:(n+72)%360,s:e.s,l:e.l}),d({h:(n+216)%360,s:e.s,l:e.l})]}function D(t,e,n){e=e||6,n=n||30;var i=d(t).toHsl(),s=360/n,r=[d(t)];for(i.h=(i.h-(s*e>>1)+720)%360;--e;)i.h=(i.h+s)%360,r.push(d(i));return r}function A(t,e){e=e||6;for(var n=d(t).toHsv(),i=n.h,s=n.s,r=n.v,o=[],a=1/e;e--;)o.push(d({h:i,s:s,v:r})),r=(r+a)%1;return o}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,i=this.toRgb();return e=i.g/255,n=i.b/255,.2126*((t=i.r/255)<=.03928?t/12.92:s.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:s.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:s.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=M(t),this._roundA=l(100*this._a)/100,this},toHsv:function(){var t=p(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=p(this._r,this._g,this._b),e=l(360*t.h),n=l(100*t.s),i=l(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+i+"%)":"hsva("+e+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=f(this._r,this._g,this._b),e=l(360*t.h),n=l(100*t.s),i=l(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+i+"%)":"hsla("+e+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return m(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,i,s){var r=[F(l(t).toString(16)),F(l(e).toString(16)),F(l(n).toString(16)),F(j(i))];return s&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*P(this._r,255))+"%",g:l(100*P(this._g,255))+"%",b:l(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*P(this._r,255))+"%, "+l(100*P(this._g,255))+"%, "+l(100*P(this._b,255))+"%)":"rgba("+l(100*P(this._r,255))+"%, "+l(100*P(this._g,255))+"%, "+l(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(I[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+g(this._r,this._g,this._b,this._a),n=e,i=this._gradientType?"GradientType = 1, ":"";if(t){var s=d(t);n="#"+g(s._r,s._g,s._b,s._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1;return e||!(this._a<1&&this._a>=0)||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(E,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},d.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]="a"===i?t[i]:N(t[i]));t=n}return d(t,e)},d.equals=function(t,e){return!(!t||!e)&&d(t).toRgbString()==d(e).toRgbString()},d.random=function(){return d.fromRatio({r:h(),g:h(),b:h()})},d.mix=function(t,e,n){n=0===n?0:n||50;var i=d(t).toRgb(),s=d(e).toRgb(),r=n/100;return d({r:(s.r-i.r)*r+i.r,g:(s.g-i.g)*r+i.g,b:(s.b-i.b)*r+i.b,a:(s.a-i.a)*r+i.a})},d.readability=function(t,e){var n=d(t),i=d(e);return(s.max(n.getLuminance(),i.getLuminance())+.05)/(s.min(n.getLuminance(),i.getLuminance())+.05)},d.isReadable=function(t,e,n){var i,s,r,o,a,l=d.readability(t,e);switch(s=!1,(r=n,"AA"!==(o=((r=r||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==o&&(o="AA"),"small"!==(a=(r.size||"small").toLowerCase())&&"large"!==a&&(a="small"),i={level:o,size:a}).level+i.size){case"AAsmall":case"AAAlarge":s=l>=4.5;break;case"AAlarge":s=l>=3;break;case"AAAsmall":s=l>=7}return s},d.mostReadable=function(t,e,n){var i,s,r,o,a=null,l=0;s=(n=n||{}).includeFallbackColors,r=n.level,o=n.size;for(var c=0;c<e.length;c++)(i=d.readability(t,e[c]))>l&&(l=i,a=d(e[c]));return d.isReadable(t,a,{level:r,size:o})||!s?a:(n.includeFallbackColors=!1,d.mostReadable(t,["#fff","#000"],n))};var O=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=d.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(O);function M(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function P(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=c(e,u(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),s.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function R(t){return c(1,u(0,t))}function L(t){return parseInt(t,16)}function F(t){return 1==t.length?"0"+t:""+t}function N(t){return t<=1&&(t=100*t+"%"),t}function j(t){return s.round(255*parseFloat(t)).toString(16)}function B(t){return L(t)/255}var H,V,$,z=(V="[\\s|\\(]+("+(H="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",$="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+V),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+V),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+V),hsva:new RegExp("hsva"+$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(t){return!!z.CSS_UNIT.exec(t)}t.exports?t.exports=d:void 0===(i=(function(){return d}).call(e,n,e,t))||(t.exports=i)}(Math)},aPkM:function(t,e,n){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(i,s,r){var o=s.prototype;r.utc=function(t){return new s({date:t,utc:!0,args:arguments})},o.utc=function(e){var n=r(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},o.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var a=o.parse;o.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var l=o.init;o.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else l.call(this)};var c=o.utcOffset;o.utcOffset=function(i,s){var r=this.$utils().u;if(r(i))return this.$u?0:r(this.$offset)?c.call(this):this.$offset;if("string"==typeof i&&null===(i=function(t){void 0===t&&(t="");var i=t.match(e);if(!i)return null;var s=(""+i[0]).match(n)||["-",0,0],r=60*+s[1]+ +s[2];return 0===r?0:"+"===s[0]?r:-r}(i)))return this;var o=Math.abs(i)<=16?60*i:i,a=this;if(s)return a.$offset=o,a.$u=0===i,a;if(0!==i){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(o+l,t)).$offset=o,a.$x.$localOffset=l}else a=this.utc();return a};var u=o.format;o.format=function(t){return u.call(this,t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},o.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*t},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var h=o.toDate;o.toDate=function(t){return"s"===t&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var d=o.diff;o.diff=function(t,e,n){if(t&&this.$u===t.$u)return d.call(this,t,e,n);var i=this.local(),s=r(t).local();return d.call(i,s,e,n)}}}()},dvnC:function(t,e,n){t.exports=function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,i=/\d\d?/,s=/\d*[^\s\d-_:/()]+/,r={},o=function(t){return(t=+t)+(t>68?1900:2e3)},a=function(t){return function(e){this[t]=+e}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],c=function(t){var e=r[t];return e&&(e.indexOf?e:e.s.concat(e.f))},u=function(t,e){var n,i=r.meridiem;if(i){for(var s=1;s<=24;s+=1)if(t.indexOf(i(s,0,e))>-1){n=s>12;break}}else n=t===(e?"pm":"PM");return n},h={A:[s,function(t){this.afternoon=u(t,!1)}],a:[s,function(t){this.afternoon=u(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[n,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,a("seconds")],ss:[i,a("seconds")],m:[i,a("minutes")],mm:[i,a("minutes")],H:[i,a("hours")],h:[i,a("hours")],HH:[i,a("hours")],hh:[i,a("hours")],D:[i,a("day")],DD:[n,a("day")],Do:[s,function(t){var e=r.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var i=1;i<=31;i+=1)e(i).replace(/\[|\]/g,"")===t&&(this.day=i)}],M:[i,a("month")],MM:[n,a("month")],MMM:[s,function(t){var e=c("months"),n=(c("monthsShort")||e.map((function(t){return t.substr(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[s,function(t){var e=c("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(t){this.year=o(t)}],YYYY:[/\d{4}/,a("year")],Z:l,ZZ:l};function d(n){var i;i=r&&r.formats;for(var s=(n=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,s){var r=s&&s.toUpperCase();return n||i[s]||t[s]||i[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),o=s.length,a=0;a<o;a+=1){var l=s[a],c=h[l],u=c&&c[1];s[a]=u?{regex:c&&c[0],parser:u}:l.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,i=0;n<o;n+=1){var r=s[n];if("string"==typeof r)i+=r.length;else{var a=r.regex,l=r.parser,c=t.substr(i),u=a.exec(c)[0];l.call(e,u),t=t.replace(u,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(o=t.parseTwoDigitYear);var i=e.prototype,s=i.parse;i.parse=function(t){var e=t.date,i=t.utc,o=t.args;this.$u=i;var a=o[1];if("string"==typeof a){var l=!0===o[2],c=!0===o[3],u=l||c,h=o[2];c&&(h=o[2]),r=this.$locale(),!l&&h&&(r=n.Ls[h]),this.$d=function(t,e,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var i=d(e)(t),s=i.year,r=i.month,o=i.day,a=i.hours,l=i.minutes,c=i.seconds,u=i.milliseconds,h=i.zone,f=new Date,p=o||(s||r?1:f.getDate()),m=s||f.getFullYear(),g=0;s&&!r||(g=r>0?r-1:f.getMonth());var y=a||0,_=l||0,v=c||0,b=u||0;return h?new Date(Date.UTC(m,g,p,y,_,v,b+60*h.offset*1e3)):n?new Date(Date.UTC(m,g,p,y,_,v,b)):new Date(m,g,p,y,_,v,b)}catch(t){return new Date("")}}(e,a,i),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),u&&e!=this.format(a)&&(this.$d=new Date("")),r={}}else if(a instanceof Array)for(var f=a.length,p=1;p<=f;p+=1){o[1]=a[p-1];var m=n.apply(this,o);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}p===f&&(this.$d=new Date(""))}else s.call(this,t)}}}()},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:s,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(i(r)){s&&(this._unsubscribe=void 0);try{r.call(this)}catch(a){e=a instanceof u?d(a.errors):[a]}}if(l(o)){let t=-1,n=o.length;for(;++t<n;){const n=o[t];if(c(n))try{n.unsubscribe()}catch(a){e=e||[],a instanceof u?e=e.concat(d(a.errors)):e.push(a)}}}if(e)throw new u(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function d(t){return t.reduce((t,e)=>t.concat(e instanceof u?e.errors:e),[])}const f=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class p extends h{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof p?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[f](){return this}static create(t,e,n){const i=new p(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class m extends p{constructor(t,e,n,s){let r;super(),this._parentSubscriber=t;let o=this;i(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=r;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(t){return t}let _=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,s=function(t,e,n){if(t){if(t instanceof p)return t;if(t[f])return t[f]()}return t||e||n?new p(t,e,n):new p(a)}(t,e,n);if(s.add(i?i.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof p?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=v(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=v(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function v(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const b=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class x extends p{constructor(t){super(t),this.destination=t}}let E=(()=>{class t extends _{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new x(this)}lift(t){const e=new S(this,this);return e.operator=t,e}next(t){if(this.closed)throw new b;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].next(t)}}error(t){if(this.closed)throw new b;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new b;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let i=0;i<e;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new b;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new b;return this.hasError?(t.error(this.thrownError),h.EMPTY):this.isStopped?(t.complete(),h.EMPTY):(this.observers.push(t),new w(this,t))}asObservable(){const t=new _;return t.source=this,t}}return t.create=(t,e)=>new S(t,e),t})();class S extends E{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function k(t){return t&&"function"==typeof t.schedule}function C(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new T(t,e))}}class T{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new D(t,this.project,this.thisArg))}}class D extends p{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const A=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()};function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const I=O(),M=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function P(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const R=t=>{if(t&&"function"==typeof t[g])return i=t,t=>{const e=i[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(M(t))return A(t);if(P(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[I])return e=t,t=>{const n=e[I]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,i};function L(t,e){return new _(n=>{const i=new h;let s=0;return i.add(e.schedule((function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()}))),i})}function F(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new _(n=>{const i=new h;return i.add(e.schedule(()=>{const s=t[g]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(P(t))return function(t,e){return new _(n=>{const i=new h;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(M(t))return L(t,e);if(function(t){return t&&"function"==typeof t[I]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new _(n=>{const i=new h;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[I](),i.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())})))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof _?t:new _(R(t))}class N extends p{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class j extends p{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function B(t,e){if(!e.closed)return t instanceof _?t.subscribe(e):R(t)(e)}function H(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(H((n,i)=>F(t(n,i)).pipe(C((t,s)=>e(n,t,i,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new V(t,n)))}class V{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new $(t,this.project,this.concurrent))}}class $ extends j{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e)}_innerSub(t){const e=new N(this),n=this.destination;n.add(e);const i=B(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function z(t=Number.POSITIVE_INFINITY){return H(y,t)}function W(t,e){return e?L(t,e):new _(A(t))}function Y(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return k(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof _?t[0]:z(e)(W(t,n))}function U(){return function(t){return t.lift(new q(t))}}class q{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new Q(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class Q extends p{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class Z extends _{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new G(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return U()(this)}}const K=(()=>{const t=Z.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class G extends x{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function X(){return new E}function J(){return t=>{return U()((e=X,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,K);return i.source=t,i.subjectFactory=n,i})(t));var e}}function tt(t){return{toString:t}.toString()}const et="__parameters__";function nt(t,e,n){return tt(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty(et)?t[et]:Object.defineProperty(t,et,{value:[]})[et];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const it=nt("Inject",t=>({token:t})),st=nt("Optional"),rt=nt("Self"),ot=nt("SkipSelf");var at=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function lt(t){for(let e in t)if(t[e]===lt)return e;throw Error("Could not find renamed property on target object.")}function ct(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ut(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const ht=ut;function dt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function ft(t){return pt(t,t[gt])||pt(t,t[vt])}function pt(t,e){return e&&e.token===t?e:null}function mt(t){return t&&(t.hasOwnProperty(yt)||t.hasOwnProperty(bt))?t[yt]:null}const gt=lt({"\u0275prov":lt}),yt=lt({"\u0275inj":lt}),_t=lt({"\u0275provFallback":lt}),vt=lt({ngInjectableDef:lt}),bt=lt({ngInjectorDef:lt});function wt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(wt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function xt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Et=lt({__forward_ref__:lt});function St(t){return t.__forward_ref__=St,t.toString=function(){return wt(this())},t}function kt(t){return Ct(t)?t():t}function Ct(t){return"function"==typeof t&&t.hasOwnProperty(Et)&&t.__forward_ref__===St}const Tt="undefined"!=typeof globalThis&&globalThis,Dt="undefined"!=typeof window&&window,At="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ot="undefined"!=typeof global&&global,It=Tt||Ot||Dt||At,Mt=lt({"\u0275cmp":lt}),Pt=lt({"\u0275dir":lt}),Rt=lt({"\u0275pipe":lt}),Lt=lt({"\u0275mod":lt}),Ft=lt({"\u0275loc":lt}),Nt=lt({"\u0275fac":lt}),jt=lt({__NG_ELEMENT_ID__:lt});class Bt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ut({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Ht=new Bt("INJECTOR",-1),Vt={},$t=/\n/gm,zt="__source",Wt=lt({provide:String,useValue:lt});let Yt,Ut=void 0;function qt(t){const e=Ut;return Ut=t,e}function Qt(t){const e=Yt;return Yt=t,e}function Zt(t,e=at.Default){if(void 0===Ut)throw new Error("inject() must be called from an injection context");return null===Ut?Xt(t,void 0,e):Ut.get(t,e&at.Optional?null:void 0,e)}function Kt(t,e=at.Default){return(Yt||Zt)(kt(t),e)}const Gt=Kt;function Xt(t,e,n){const i=ft(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&at.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${wt(t)}]`)}function Jt(t){const e=[];for(let n=0;n<t.length;n++){const i=kt(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=at.Default;for(let e=0;e<i.length;e++){const s=i[e];s instanceof st||"Optional"===s.ngMetadataName||s===st?n|=at.Optional:s instanceof ot||"SkipSelf"===s.ngMetadataName||s===ot?n|=at.SkipSelf:s instanceof rt||"Self"===s.ngMetadataName||s===rt?n|=at.Self:t=s instanceof it||s===it?s.token:s}e.push(Kt(t,n))}else e.push(Kt(i))}return e}class te{get(t,e=Vt){if(e===Vt){const e=new Error(`NullInjectorError: No provider for ${wt(t)}!`);throw e.name="NullInjectorError",e}return e}}class ee{}function ne(t,e){t.forEach(t=>Array.isArray(t)?ne(t,e):e(t))}function ie(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function se(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function re(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function oe(t,e,n){let i=le(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function ae(t,e){const n=le(t,e);if(n>=0)return t[1|n]}function le(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}var ce=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),ue=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const he={},de=[];let fe=0;function pe(t){return tt(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===ce.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||de,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ue.Emulated,id:"c",styles:t.styles||de,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=fe++,n.inputs=ve(t.inputs,e),n.outputs=ve(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(me):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(ge):null,n})}function me(t){return xe(t)||function(t){return t[Pt]||null}(t)}function ge(t){return function(t){return t[Rt]||null}(t)}const ye={};function _e(t){const e={type:t.type,bootstrap:t.bootstrap||de,declarations:t.declarations||de,imports:t.imports||de,exports:t.exports||de,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&tt(()=>{ye[t.id]=t.type}),e}function ve(t,e){if(null==t)return he;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const be=pe;function we(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function xe(t){return t[Mt]||null}function Ee(t,e){return t.hasOwnProperty(Nt)?t[Nt]:null}function Se(t,e){const n=t[Lt]||null;if(!n&&!0===e)throw new Error(`Type ${wt(t)} does not have '\u0275mod' property.`);return n}const ke=20,Ce=10;function Te(t){return Array.isArray(t)&&"object"==typeof t[1]}function De(t){return Array.isArray(t)&&!0===t[1]}function Ae(t){return 0!=(8&t.flags)}function Oe(t){return 2==(2&t.flags)}function Ie(t){return 1==(1&t.flags)}function Me(t){return null!==t.template}function Pe(t){return 0!=(512&t[2])}class Re{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Le(){return Fe}function Fe(t){return t.type.prototype.ngOnChanges&&(t.setInput=je),Ne}function Ne(){const t=Be(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===he)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function je(t,e,n,i){const s=Be(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:he,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new Re(l&&l.currentValue,e,o===he),t[i]=e}function Be(t){return t.__ngSimpleChanges__||null}Le.ngInherit=!0;let He=void 0;function Ve(){return void 0!==He?He:"undefined"!=typeof document?document:void 0}function $e(t){return!!t.listen}const ze={createRenderer:(t,e)=>Ve()};function We(t){for(;Array.isArray(t);)t=t[0];return t}function Ye(t,e){return We(e[t+ke])}function Ue(t,e){return We(e[t.index])}function qe(t,e){return t.data[e+ke]}function Qe(t,e){return t[e+ke]}function Ze(t,e){const n=e[t];return Te(n)?n:n[0]}function Ke(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ge(t){return 4==(4&t[2])}function Xe(t){return 128==(128&t[2])}function Je(t,e){return null===t||null==e?null:t[e]}function tn(t){t[18]=0}function en(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const nn={lFrame:En(null),bindingsEnabled:!0,checkNoChangesMode:!1};function sn(){return nn.bindingsEnabled}function rn(){return nn.lFrame.lView}function on(){return nn.lFrame.tView}function an(t){nn.lFrame.contextLView=t}function ln(){return nn.lFrame.previousOrParentTNode}function cn(t,e){nn.lFrame.previousOrParentTNode=t,nn.lFrame.isParent=e}function un(){return nn.lFrame.isParent}function hn(){nn.lFrame.isParent=!1}function dn(){return nn.checkNoChangesMode}function fn(t){nn.checkNoChangesMode=t}function pn(){const t=nn.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function mn(){return nn.lFrame.bindingIndex++}function gn(t,e){const n=nn.lFrame;n.bindingIndex=n.bindingRootIndex=t,yn(e)}function yn(t){nn.lFrame.currentDirectiveIndex=t}function _n(){return nn.lFrame.currentQueryIndex}function vn(t){nn.lFrame.currentQueryIndex=t}function bn(t,e){const n=xn();nn.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function wn(t,e){const n=xn(),i=t[1];nn.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex}function xn(){const t=nn.lFrame,e=null===t?null:t.child;return null===e?En(t):e}function En(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Sn(){const t=nn.lFrame;return nn.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const kn=Sn;function Cn(){const t=Sn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Tn(){return nn.lFrame.selectedIndex}function Dn(t){nn.lFrame.selectedIndex=t}function An(){const t=nn.lFrame;return qe(t.tView,t.selectedIndex)}function On(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:s,ngAfterViewInit:r,ngAfterViewChecked:o,ngOnDestroy:a}=e;i&&(t.contentHooks||(t.contentHooks=[])).push(-n,i),s&&((t.contentHooks||(t.contentHooks=[])).push(n,s),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,s)),r&&(t.viewHooks||(t.viewHooks=[])).push(-n,r),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function In(t,e,n){Rn(t,e,3,n)}function Mn(t,e,n,i){(3&t[2])===n&&Rn(t,e,n,i)}function Pn(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Rn(t,e,n,i){const s=null!=i?i:-1;let r=0;for(let o=void 0!==i?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(r=e[o],null!=i&&r>=i)break}else e[o]<0&&(t[18]+=65536),(r<s||-1==s)&&(Ln(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Ln(t,e,n,i){const s=n[i]<0,r=n[i+1],o=t[s?-n[i]:n[i]];s?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}class Fn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Nn(t,e,n){const i=$e(t);let s=0;for(;s<n.length;){const r=n[s];if("number"==typeof r){if(0!==r)break;s++;const o=n[s++],a=n[s++],l=n[s++];i?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=r,a=n[++s];Bn(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),s++}}return s}function jn(t){return 3===t||4===t||6===t}function Bn(t){return 64===t.charCodeAt(0)}function Hn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const s=e[i];"number"==typeof s?n=s:0===n||Vn(t,n,s,null,-1===n||2===n?e[++i]:null)}}return t}function Vn(t,e,n,i,s){let r=0,o=t.length;if(-1===e)o=-1;else for(;r<t.length;){const n=t[r++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==s&&(t[r+1]=s));if(i===t[r+1])return void(t[r+2]=s)}r++,null!==i&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,e),r=o+1),t.splice(r++,0,n),null!==i&&t.splice(r++,0,i),null!==s&&t.splice(r++,0,s)}function $n(t){return-1!==t}function zn(t){return 32767&t}function Wn(t){return t>>16}function Yn(t,e){let n=Wn(t),i=e;for(;n>0;)i=i[15],n--;return i}function Un(t){return"string"==typeof t?t:null==t?"":""+t}function qn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Un(t)}const Qn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(It))();function Zn(t){return{name:"body",target:t.ownerDocument.body}}function Kn(t){return t instanceof Function?t():t}let Gn=!0;function Xn(t){const e=Gn;return Gn=t,e}let Jn=0;function ti(t,e){const n=ni(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,ei(i.data,t),ei(e,null),ei(i.blueprint,null));const s=ii(t,e),r=t.injectorIndex;if($n(s)){const t=zn(s),n=Yn(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function ei(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ni(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function ii(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],i=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function si(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(jt)&&(i=n[jt]),null==i&&(i=n[jt]=Jn++);const s=255&i,r=1<<s,o=64&s,a=32&s,l=e.data;128&s?o?a?l[t+7]|=r:l[t+6]|=r:a?l[t+5]|=r:l[t+4]|=r:o?a?l[t+3]|=r:l[t+2]|=r:a?l[t+1]|=r:l[t]|=r}(t,e,n)}function ri(t,e,n,i=at.Default,s){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(jt)?t[jt]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof s){bn(e,t);try{const t=s();if(null!=t||i&at.Optional)return t;throw new Error(`No provider for ${qn(n)}!`)}finally{kn()}}else if("number"==typeof s){if(-1===s)return new di(t,e);let r=null,o=ni(t,e),a=-1,l=i&at.Host?e[16][6]:null;for((-1===o||i&at.SkipSelf)&&(a=-1===o?ii(t,e):e[o+8],hi(i,!1)?(r=e[1],o=zn(a),e=Yn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(ui(s,o,t.data)){const t=ai(o,e,n,r,i,l);if(t!==oi)return t}hi(i,e[1].data[o+8]===l)&&ui(s,o,e)?(r=t,o=zn(a),e=Yn(a,e)):o=-1}}}if(i&at.Optional&&void 0===s&&(s=null),0==(i&(at.Self|at.Host))){const t=e[9],r=Qt(void 0);try{return t?t.get(n,s,i&at.Optional):Xt(n,s,i&at.Optional)}finally{Qt(r)}}if(i&at.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${qn(n)}]`)}const oi={};function ai(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=li(a,o,n,null==i?Oe(a)&&Gn:i!=o&&3===a.type,s&at.Host&&r===a);return null!==l?ci(e,o,l,a):oi}function li(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,u=s?a+c:t.directiveEnd;for(let h=i?a:a+c;h<u;h++){const t=o[h];if(h<l&&n===t||h>=l&&t.type===n)return h}if(s){const t=o[l];if(t&&Me(t)&&t.type===n)return l}return null}function ci(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof Fn){const o=s;if(o.resolving)throw new Error("Circular dep for "+qn(r[n]));const a=Xn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=Qt(o.injectImpl)),bn(t,i);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=Fe(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{o.injectImpl&&Qt(l),Xn(a),o.resolving=!1,kn()}}return s}function ui(t,e,n){const i=64&t,s=32&t;let r;return r=128&t?i?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:i?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(r&1<<t)}function hi(t,e){return!(t&at.Self||t&at.Host&&e)}class di{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return ri(this._tNode,this._lView,t,void 0,e)}}function fi(t){const e=t;if(Ct(t))return()=>{const t=fi(kt(e));return t?t():null};let n=Ee(e);if(null===n){const t=mt(e);n=t&&t.factory}return n||null}function pi(t){return tt(()=>{const e=t.prototype.constructor,n=e[Nt]||fi(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Nt]||fi(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function mi(t){return t.ngDebugContext}function gi(t){return t.ngOriginalError}function yi(t,...e){t.error(...e)}class _i{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||yi}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?mi(t)?mi(t):this._findContext(gi(t)):null}_findOriginalError(t){let e=gi(t);for(;e&&gi(e);)e=gi(e);return e}}class vi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class bi extends vi{getTypeName(){return"HTML"}}class wi extends vi{getTypeName(){return"Style"}}class xi extends vi{getTypeName(){return"Script"}}class Ei extends vi{getTypeName(){return"URL"}}class Si extends vi{getTypeName(){return"ResourceURL"}}function ki(t){return t instanceof vi?t.changingThisBreaksApplicationSecurity:t}function Ci(t,e){const n=Ti(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Ti(t){return t instanceof vi&&t.getTypeName()||null}let Di=!0,Ai=!1;function Oi(){return Ai=!0,Di}class Ii{getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Mi{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const n=e.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Pi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Ri=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Li(t){return(t=String(t)).match(Pi)||t.match(Ri)?t:(Oi()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Fi(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Ni(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const ji=Fi("area,br,col,hr,img,wbr"),Bi=Fi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Hi=Fi("rp,rt"),Vi=Ni(Hi,Bi),$i=Ni(ji,Ni(Bi,Fi("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")),Ni(Hi,Fi("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")),Vi),zi=Fi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Wi=Fi("srcset"),Yi=Ni(zi,Wi,Fi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Fi("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")),Ui=Fi("script,style,template");class qi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!$i.hasOwnProperty(e))return this.sanitizedSomething=!0,!Ui.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let s=0;s<n.length;s++){const t=n.item(s),e=t.name,r=e.toLowerCase();if(!Yi.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=t.value;zi[r]&&(o=Li(o)),Wi[r]&&(i=o,o=(i=String(i)).split(",").map(t=>Li(t.trim())).join(", ")),this.buf.push(" ",e,'="',Ki(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();$i.hasOwnProperty(e)&&!ji.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Ki(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const Qi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zi=/([^\#-~ |!])/g;function Ki(t){return t.replace(/&/g,"&amp;").replace(Qi,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Zi,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Gi;function Xi(t,e){let n=null;try{Gi=Gi||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Ii:new Mi(t)}(t);let i=e?String(e):"";n=Gi.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=Gi.getInertBodyElement(i)}while(i!==r);const o=new qi,a=o.sanitizeChildren(Ji(n)||n);return Oi()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Ji(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Ji(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ts=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function es(t){const e=function(){const t=rn();return t&&t[12]}();return e?e.sanitize(ts.HTML,t)||"":Ci(t,"HTML")?ki(t):Xi(Ve(),Un(t))}function ns(t,e){t.__ngContext__=e}function is(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function ss(){throw new Error("Cannot mix multi providers and regular providers")}function rs(t,e,n){let i=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===i||t.charCodeAt(s+n)<=32)return s}n=s+1}}const os="ng-template";function as(t,e,n){let i=0;for(;i<t.length;){let s=t[i++];if(n&&"class"===s){if(s=t[i],-1!==rs(s.toLowerCase(),e,0))return!0}else if(1===s){for(;i<t.length&&"string"==typeof(s=t[i++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function ls(t){return 0===t.type&&t.tagName!==os}function cs(t,e,n){return e===(0!==t.type||n?t.tagName:os)}function us(t,e,n){let i=4;const s=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++)if(jn(t[e]))return e;return t.length}(s);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!cs(t,l,n)||""===l&&1===e.length){if(hs(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==t.attrs){if(!as(t.attrs,c,n)){if(hs(i))return!1;o=!0}continue}const u=ds(8&i?"class":l,s,ls(t),n);if(-1===u){if(hs(i))return!1;o=!0;continue}if(""!==c){let t;t=u>r?"":s[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==rs(e,c,0)||2&i&&c!==t){if(hs(i))return!1;o=!0}}}}else{if(!o&&!hs(i)&&!hs(l))return!1;if(o&&hs(l))continue;o=!1,i=l|1&i}}return hs(i)||o}function hs(t){return 0==(1&t)}function ds(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s<e.length;){const i=e[s];if(i===t)return s;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++s];for(;"string"==typeof t;)t=e[++s];continue}if(4===i)break;if(0===i){s+=4;continue}}s+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function fs(t,e,n=!1){for(let i=0;i<e.length;i++)if(us(t,e[i],n))return!0;return!1}function ps(t,e){t:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let e=0;e<t.length;e++)if(t[e]!==i[e])continue t;return!0}}return!1}function ms(t,e){return t?":not("+e.trim()+")":e}function gs(t){let e=t[0],n=1,i=2,s="",r=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const e=t[++n];s+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||hs(o)||(e+=ms(r,s),s=""),i=o,r=r||!hs(i);n++}return""!==s&&(e+=ms(r,s)),e}const ys={};function _s(t){const e=t[3];return De(e)?e[3]:e}function vs(t){return ws(t[13])}function bs(t){return ws(t[4])}function ws(t){for(;null!==t&&!De(t);)t=t[4];return t}function xs(t){Es(on(),rn(),Tn()+t,dn())}function Es(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&In(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Mn(e,i,0,n)}Dn(n)}function Ss(t,e){return t<<17|e<<2}function ks(t){return t>>17&32767}function Cs(t){return 2|t}function Ts(t){return(131068&t)>>2}function Ds(t,e){return-131069&t|e<<2}function As(t){return 1|t}function Os(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const s=n[i],r=n[i+1];if(-1!==r){const n=t.data[r];vn(s),n.contentQueries(2,e[r],r)}}}function Is(t,e,n){return $e(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Ms(t,e,n,i,s,r,o,a,l,c){const u=e.blueprint.slice();return u[0]=s,u[2]=140|i,tn(u),u[3]=u[15]=t,u[8]=n,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=r,u[16]=2==e.type?t[16]:u,u}function Ps(t,e,n,i,s,r){const o=n+ke,a=t.data[o]||function(t,e,n,i,s,r){const o=ln(),a=un(),l=a?o:o&&o.parent,c=t.data[n]=zs(0,l&&l!==e?l:null,i,n,s,r);return null===t.firstChild&&(t.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(t,e,o,i,s,r);return cn(a,!0),a}function Rs(t,e,n){wn(e,e[6]);try{const i=t.viewQuery;null!==i&&ur(1,i,n);const s=t.template;null!==s&&Ns(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Os(t,e),t.staticViewQueries&&ur(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)rr(t,e[n])}(e,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,Cn()}}function Ls(t,e,n,i){const s=e[2];if(256==(256&s))return;wn(e,e[6]);const r=dn();try{tn(e),nn.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Ns(t,e,n,2,i);const o=3==(3&s);if(!r)if(o){const n=t.preOrderCheckHooks;null!==n&&In(e,n,null)}else{const n=t.preOrderHooks;null!==n&&Mn(e,n,0,null),Pn(e,0)}if(function(t){for(let e=vs(t);null!==e;e=bs(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&en(i,1),n[2]|=1024}}}(e),function(t){for(let e=vs(t);null!==e;e=bs(e))for(let t=Ce;t<e.length;t++){const n=e[t],i=n[1];Xe(n)&&Ls(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&Os(t,e),!r)if(o){const n=t.contentCheckHooks;null!==n&&In(e,n)}else{const n=t.contentHooks;null!==n&&Mn(e,n,1),Pn(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let i=t.expandoStartIndex,s=-1,r=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(r=0-o,Dn(r),i+=9+n[++t],s=i):i+=o:(null!==o&&(gn(i,s),o(2,e[s])),s++)}}}finally{Dn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)sr(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&ur(2,l,i),!r)if(o){const n=t.viewCheckHooks;null!==n&&In(e,n)}else{const n=t.viewHooks;null!==n&&Mn(e,n,2),Pn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,en(e[3],-1))}finally{Cn()}}function Fs(t,e,n,i){const s=e[10],r=!dn(),o=Ge(e);try{r&&!o&&s.begin&&s.begin(),o&&Rs(t,e,i),Ls(t,e,n,i)}finally{r&&!o&&s.end&&s.end()}}function Ns(t,e,n,i,s){const r=Tn();try{Dn(-1),2&i&&e.length>ke&&Es(t,e,0,dn()),n(i,s)}finally{Dn(r)}}function js(t,e,n){sn()&&(function(t,e,n,i){const s=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||ti(n,e),ns(i,e);const o=n.initialInputs;for(let a=s;a<r;a++){const i=t.data[a],r=Me(i);r&&tr(e,n,i);const l=ci(e,t,a,n);ns(l,e),null!==o&&er(0,a-s,l,i,0,o),r&&(Ze(n.index,e)[8]=l)}}(t,e,n,Ue(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,s=n.directiveEnd,r=t.expandoInstructions,o=t.firstCreatePass,a=n.index-ke,l=nn.lFrame.currentDirectiveIndex;try{Dn(a);for(let n=i;n<s;n++){const i=t.data[n],s=e[n];yn(n),null!==i.hostBindings||0!==i.hostVars||null!==i.hostAttrs?Qs(i,s):o&&r.push(null)}}finally{Dn(-1),yn(l)}}(t,e,n))}function Bs(t,e,n=Ue){const i=e.localNames;if(null!==i){let s=e.index+1;for(let r=0;r<i.length;r+=2){const o=i[r+1],a=-1===o?n(e,t):t[o];t[s++]=a}}}function Hs(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Vs(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Vs(t,e,n,i,s,r,o,a,l,c){const u=ke+i,h=u+s,d=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:ys);return n}(u,h),f="function"==typeof c?c():c;return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function $s(t,e,n,i){const s=dr(e);s.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(i,s.length-1)}function zs(t,e,n,i,s,r){return{type:n,index:i,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Ws(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const s=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,s):n[i]=[e,s]}return n}function Ys(t,e,n,i){let s=!1;if(sn()){const r=function(t,e,n){const i=t.directiveRegistry;let s=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];fs(n,o.selectors,!1)&&(s||(s=[]),si(ti(n,e),t,o.type),Me(o)?(2&n.flags&&is(n),Ks(t,n),s.unshift(o)):s.push(o))}return s}(t,e,n),o=null===i?null:{"":-1};if(null!==r){let i=0;s=!0,Xs(n,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}Zs(t,n,r.length);let a=!1,l=!1;for(let s=0;s<r.length;s++){const c=r[s];n.mergedAttrs=Hn(n.mergedAttrs,c.hostAttrs),Js(t,e,c),Gs(t.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!a&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-ke),a=!0),l||!u.ngOnChanges&&!u.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-ke),l=!0),Us(t,c),i+=c.hostVars}!function(t,e){const n=e.directiveEnd,i=t.data,s=e.attrs,r=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=i[l],n=t.inputs,c=null===s||ls(e)?null:nr(n,s);r.push(c),o=Ws(n,l,o),a=Ws(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=r,e.inputs=o,e.outputs=a}(t,n),qs(t,e,i)}o&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const s=n[e[t+1]];if(null==s)throw new Error(`Export of name '${e[t+1]}' not found!`);i.push(e[t],s)}}}(n,i,o)}return n.mergedAttrs=Hn(n.mergedAttrs,n.attrs),s}function Us(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function qs(t,e,n){for(let i=0;i<n;i++)e.push(ys),t.blueprint.push(ys),t.data.push(null)}function Qs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Zs(t,e,n){const i=ke-e.index,s=t.data.length-(1048575&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(i,s,n)}function Ks(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Gs(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;Me(e)&&(n[""]=t)}}function Xs(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Js(t,e,n){t.data.push(n);const i=n.factory||(n.factory=Ee(n.type)),s=new Fn(i,Me(n),null);t.blueprint.push(s),e.push(s)}function tr(t,e,n){const i=Ue(e,t),s=Hs(n),r=t[10],o=or(t,Ms(t,s,null,n.onPush?64:16,i,e,r,r.createRenderer(i,n)));t[e.index]=o}function er(t,e,n,i,s,r){const o=r[e];if(null!==o){const t=i.setInput;for(let e=0;e<o.length;){const s=o[e++],r=o[e++],a=o[e++];null!==t?i.setInput(n,a,s,r):n[r]=a}}}function nr(t,e){let n=null,i=0;for(;i<e.length;){const s=e[i];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,t[s],e[i+1])),i+=2}else i+=2;else i+=4}return n}function ir(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function sr(t,e){const n=Ze(e,t);if(Xe(n)){const t=n[1];80&n[2]?Ls(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let i=vs(e);null!==i;i=bs(i))for(let e=Ce;e<i.length;e++){const n=i[e];if(1024&n[2]){const t=n[1];Ls(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const s=Ze(n[i],e);Xe(s)&&s[5]>0&&t(s)}}(n)}}function rr(t,e){const n=Ze(e,t),i=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(i,n),Rs(i,n,n[8])}function or(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function ar(t){for(;t;){t[2]|=64;const e=_s(t);if(Pe(t)&&!e)return t;t=e}return null}function lr(t,e,n){const i=e[10];i.begin&&i.begin();try{Ls(t,e,t.template,n)}catch(s){throw fr(e,s),s}finally{i.end&&i.end()}}function cr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=Ke(n),s=i[1];Fs(s,i,s.template,n)}}(t[8])}function ur(t,e,n){vn(0),e(t,n)}const hr=(()=>Promise.resolve(null))();function dr(t){return t[7]||(t[7]=[])}function fr(t,e){const n=t[9],i=n?n.get(_i,null):null;i&&i.handleError(e)}function pr(t,e,n,i,s){for(let r=0;r<n.length;){const o=n[r++],a=n[r++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,i,a):l[a]=s}}function mr(t,e){const n=e[3];return-1===t.index?De(n)?n:null:n}function gr(t,e){const n=mr(t,e);return n?Dr(e[11],n[7]):null}function yr(t,e,n,i,s){if(null!=i){let r,o=!1;De(i)?r=i:Te(i)&&(o=!0,i=i[0]);const a=We(i);0===t&&null!==n?null==s?Cr(e,n,a):kr(e,n,a,s||null):1===t&&null!==n?kr(e,n,a,s||null):2===t?function(t,e,n){const i=Dr(t,e);i&&function(t,e,n,i){$e(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==We(n)&&yr(e,t,i,r,s);for(let o=Ce;o<n.length;o++){const s=n[o];Pr(s[1],s,t,e,i,r)}}(e,t,r,n,s)}}function _r(t,e,n,i){const s=gr(t.node,e);s&&Pr(t,e,e[11],n?1:2,s,i)}function vr(t,e){const n=t[9],i=n.indexOf(e);1024&e[2]&&en(e[3],-1),n.splice(i,1)}function br(t,e){if(t.length<=Ce)return;const n=Ce+e,i=t[n];if(i){const s=i[17];null!==s&&s!==t&&vr(s,i),e>0&&(t[n-1][4]=i[4]);const r=se(t,Ce+e);_r(i[1],i,!1,null);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function wr(t,e){if(!(256&e[2])){const n=e[11];$e(n)&&n.destroyNode&&Pr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Er(t[1],t);for(;e;){let n=null;if(Te(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Te(e)&&Er(e[1],e),e=xr(e,t);null===e&&(e=t),Te(e)&&Er(e[1],e),n=e&&e[4]}e=n}}(e)}}function xr(t,e){let n;return Te(t)&&(n=t[6])&&2===n.type?mr(n,t):t[3]===e?null:t[3]}function Er(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i<n.length;i+=2){const t=e[n[i]];if(!(t instanceof Fn)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+1],r="function"==typeof s?s(e):We(e[s]),o=t[n[i+2]],a=n[i+3];"boolean"==typeof a?r.removeEventListener(n[i],o,a):a>=0?t[a]():t[-a].unsubscribe(),i+=2}else n[i].call(t[n[i+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&$e(e[11])&&e[11].destroy();const i=e[17];if(null!==i&&De(e[3])){i!==e[3]&&vr(i,e);const n=e[19];null!==n&&n.detachView(t)}}}function Sr(t,e,n){let i=e.parent;for(;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){const t=n[6];return 2===t.type?gr(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return Ue(e,n).parentNode;if(2&i.flags){const e=t.data,n=e[e[i.index].directiveStart].encapsulation;if(n!==ue.ShadowDom&&n!==ue.Native)return null}return Ue(i,n)}function kr(t,e,n,i){$e(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function Cr(t,e,n){$e(t)?t.appendChild(e,n):e.appendChild(n)}function Tr(t,e,n,i){null!==i?kr(t,e,n,i):Cr(t,e,n)}function Dr(t,e){return $e(t)?t.parentNode(e):e.parentNode}function Ar(t,e){if(2===t.type){const n=mr(t,e);return null===n?null:Ir(n.indexOf(e,Ce)-Ce,n)}return 4===t.type||5===t.type?Ue(t,e):null}function Or(t,e,n,i){const s=Sr(t,i,e);if(null!=s){const t=e[11],r=Ar(i.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)Tr(t,s,n[e],r);else Tr(t,s,n,r)}}function Ir(t,e){const n=Ce+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return function t(e,n){if(null!==n){const i=n.type;if(3===i)return Ue(n,e);if(0===i)return Ir(-1,e[n.index]);if(4===i||5===i){const i=n.child;if(null!==i)return t(e,i);{const t=e[n.index];return De(t)?Ir(-1,t):We(t)}}{const i=e[16],s=i[6],r=_s(i),o=s.projection[n.projection];return null!=o?t(r,o):t(e,n.next)}}return null}(t,i)}return e[7]}function Mr(t,e,n,i,s,r,o){for(;null!=n;){const a=i[n.index],l=n.type;o&&0===e&&(a&&ns(We(a),i),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(Mr(t,e,n.child,i,s,r,!1),yr(e,t,s,a,r)):1===l?Rr(t,e,i,n,s,r):yr(e,t,s,a,r)),n=o?n.projectionNext:n.next}}function Pr(t,e,n,i,s,r){Mr(n,i,t.node.child,e,s,r,!1)}function Rr(t,e,n,i,s,r){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)yr(e,t,s,a[l],r);else Mr(t,e,a,o[3],s,r,!0)}function Lr(t,e,n){$e(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Fr(t,e,n){$e(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Nr{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,i,s,r=!1){for(;null!==i;){const o=n[i.index];if(null!==o&&s.push(We(o)),De(o))for(let e=Ce;e<o.length;e++){const n=o[e],i=n[1].firstChild;null!==i&&t(n[1],n,i,s)}const a=i.type;if(4===a||5===a)t(e,n,i.child,s);else if(1===a){const e=n[16],r=e[6].projection[i.projection];if(Array.isArray(r))s.push(...r);else{const n=_s(e);t(n[1],n,r,s,!0)}}i=r?i.projectionNext:i.next}return s}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}wr(this._lView[1],this._lView)}onDestroy(t){$s(this._lView[1],this._lView,null,t)}markForCheck(){ar(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){lr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){fn(!0);try{lr(t,e,n)}finally{fn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Pr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class jr extends Nr{constructor(t){super(t),this._view=t}detectChanges(){cr(this._view)}checkNoChanges(){!function(t){fn(!0);try{cr(t)}finally{fn(!1)}}(this._view)}get context(){return null}}let Br,Hr,Vr;function $r(t,e,n){return Br||(Br=class extends t{}),new Br(Ue(e,n))}function zr(t,e,n,i){return Hr||(Hr=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ms(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Rs(e,n,t),new Nr(n)}}),0===n.type?new Hr(i,n,$r(e,n,i)):null}function Wr(t,e,n,i){let s;Vr||(Vr=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return $r(e,this._hostTNode,this._hostView)}get injector(){return new di(this._hostTNode,this._hostView)}get parentInjector(){const t=ii(this._hostTNode,this._hostView),e=Yn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let i=Wn(t),s=e,r=e[6];for(;i>1;)s=s[15],r=s[6],i--;return r}(t,this._hostView,this._hostTNode);return $n(t)&&null!=n?new di(n,e):new di(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-Ce}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(ee,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),De(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new Vr(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e);return function(t,e,n,i){const s=Ce+i,r=n.length;i>0&&(n[s-1][4]=e),i<r-Ce?(e[4]=n[s],ie(n,Ce+i,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,n,this._lContainer,s),_r(i,n,!0,Ir(s,this._lContainer)),t.attachToViewContainerRef(this),ie(this._lContainer[8],s,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=br(this._lContainer,e);n&&(se(this._lContainer[8],e),wr(n[1],n))}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=br(this._lContainer,e);return n&&null!=se(this._lContainer[8],e)?new Nr(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const r=i[n.index];if(De(r))s=r;else{let t;if(4===n.type)t=We(r);else if(t=i[11].createComment(""),Pe(i)){const e=i[11],s=Ue(n,i);kr(e,Dr(e,s),t,function(t,e){return $e(t)?t.nextSibling(e):e.nextSibling}(e,s))}else Or(i[1],i,t,n);i[n.index]=s=ir(r,i,t,n),or(i,s)}return new Vr(s,n,i)}function Yr(t=!1){return function(t,e,n){if(!n&&Oe(t)){const n=Ze(t.index,e);return new Nr(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Nr(e[16],e):null}(ln(),rn(),t)}let Ur=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>qr(),t})();const qr=Yr,Qr=new Bt("Set Injector scope."),Zr={},Kr={},Gr=[];let Xr=void 0;function Jr(){return void 0===Xr&&(Xr=new te),Xr}function to(t,e=null,n=null,i){return new eo(t,n,e||Jr(),i)}class eo{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&ne(e,n=>this.processProvider(n,t,e)),ne([t],t=>this.processInjectorType(t,[],s)),this.records.set(Ht,io(void 0,this));const r=this.records.get(Qr);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:wt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Vt,n=at.Default){this.assertNotDestroyed();const i=qt(this);try{if(!(n&at.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Bt)&&ft(t);e=n&&this.injectableDefInScope(n)?io(no(t),Zr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&at.Self?Jr():this.parent).get(t,e=n&at.Optional&&e===Vt?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(wt(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e[zt]&&s.unshift(e[zt]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=wt(e);if(Array.isArray(e))s=e.map(wt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):wt(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace($t,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{qt(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(wt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=kt(t)))return!1;let i=mt(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=mt(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{ne(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];ne(i,t=>this.processProvider(t,n,i||Gr))}}this.injectorDefTypes.add(r),this.records.set(r,io(i.factory,Zr));const a=i.providers;if(null!=a&&!o){const e=t;ne(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=ro(t=kt(t))?t:kt(t&&t.provide);const s=function(t,e,n){return so(t)?io(void 0,t.useValue):io(function(t,e,n){let i=void 0;if(ro(t)){const e=kt(t);return Ee(e)||no(e)}if(so(t))i=()=>kt(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...Jt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>Kt(kt(t.useExisting));else{const s=kt(t&&(t.useClass||t.provide));if(s||function(t,e,n){let i="";throw t&&e&&(i=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${wt(t)}'`+i)}(e,n,t),!function(t){return!!t.deps}(t))return Ee(s)||no(s);i=()=>new s(...Jt(t.deps))}var s;return i}(t,e,n),Zr)}(t,e,n);if(ro(t)||!0!==t.multi){const t=this.records.get(i);t&&void 0!==t.multi&&ss()}else{let e=this.records.get(i);e?void 0===e.multi&&ss():(e=io(void 0,Zr,!0),e.factory=()=>Jt(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===Kr?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(wt(t)):e.value===Zr&&(e.value=Kr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function no(t){const e=ft(t),n=null!==e?e.factory:Ee(t);if(null!==n)return n;const i=mt(t);if(null!==i)return i.factory;if(t instanceof Bt)throw new Error(`Token ${wt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=re(e,"?");throw new Error(`Can't resolve all parameters for ${wt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[gt]||t[vt]||t[_t]&&t[_t]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function io(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function so(t){return null!==t&&"object"==typeof t&&Wt in t}function ro(t){return"function"==typeof t}const oo=function(t,e,n){return function(t,e=null,n=null,i){const s=to(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let ao=(()=>{class t{static create(t,e){return Array.isArray(t)?oo(t,e,""):oo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Vt,t.NULL=new te,t.\u0275prov=ut({token:t,providedIn:"any",factory:()=>Kt(Ht)}),t.__NG_ELEMENT_ID__=-1,t})();function lo(t,e,n){let i=n?t.styles:null,s=n?t.classes:null,r=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?r=t:1==r?s=xt(s,t):2==r&&(i=xt(i,t+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=s:t.classesWithoutHost=s}let co=null;function uo(){if(!co){const t=It.Symbol;if(t&&t.iterator)co=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(co=n)}}}return co}class ho{constructor(t){this.wrapped=t}static wrap(t){return new ho(t)}static unwrap(t){return ho.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof ho}}function fo(t){return!!po(t)&&(Array.isArray(t)||!(t instanceof Map)&&uo()in t)}function po(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function mo(t,e,n){return t[e]=n}function go(t,e){return t[e]}function yo(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function _o(t,e,n,i){const s=yo(t,e,n);return yo(t,e+1,i)||s}function vo(t,e,n,i){const s=rn();return yo(s,mn(),e)&&(on(),function(t,e,n,i,s,r){const o=Ue(t,e),a=e[11];if(null==i)$e(a)?a.removeAttribute(o,n,r):o.removeAttribute(n);else{const e=null==s?Un(i):s(i,t.tagName||"",n);$e(a)?a.setAttribute(o,n,e,r):r?o.setAttributeNS(r,n,e):o.setAttribute(n,e)}}(An(),s,t,e,n,i)),vo}function bo(t,e,n,i,s,r,o,a){const l=rn(),c=on(),u=t+ke,h=c.firstCreatePass?function(t,e,n,i,s,r,o,a,l){const c=e.consts,u=Ps(e,n[6],t,0,o||null,Je(c,a));Ys(e,n,u,Je(c,l)),On(e,u);const h=u.tViews=Vs(2,-1,i,s,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),d=zs(0,null,2,-1,null,null);return d.injectorIndex=u.injectorIndex,h.node=d,null!==e.queries&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}(t,c,l,e,n,i,s,r,o):c.data[u];cn(h,!1);const d=l[11].createComment("");Or(c,l,d,h),ns(d,l),or(l,l[u]=ir(d,l,d,h)),Ie(h)&&js(c,l,h),null!=o&&Bs(l,h,a)}function wo(t){return Qe(nn.lFrame.contextLView,t)}function xo(t,e=at.Default){const n=rn();return null==n?Kt(t,e):ri(ln(),n,kt(t),e)}function Eo(t,e,n){const i=rn();return yo(i,mn(),e)&&function(t,e,n,i,s,r,o,a){const l=Ue(e,n);let c,u=e.inputs;var h;null!=u&&(c=u[i])?(pr(t,n,c,i,s),Oe(e)&&function(t,e){const n=Ze(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(i="class"===(h=i)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,s=null!=o?o(s,e.tagName||"",i):s,$e(r)?r.setProperty(l,i,s):Bn(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}(on(),An(),i,t,e,i[11],n),Eo}function So(t,e,n,i,s){const r=s?"class":"style";pr(t,n,e.inputs[r],r,i)}function ko(t,e,n,i){const s=rn(),r=on(),o=ke+t,a=s[11],l=s[o]=Is(e,a,nn.lFrame.currentNamespace),c=r.firstCreatePass?function(t,e,n,i,s,r,o){const a=e.consts,l=Je(a,r),c=Ps(e,n[6],t,3,s,l);return Ys(e,n,c,Je(a,o)),null!==c.attrs&&lo(c,c.attrs,!1),null!==c.mergedAttrs&&lo(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(t,r,s,0,e,n,i):r.data[o];cn(c,!0);const u=c.mergedAttrs;null!==u&&Nn(a,l,u);const h=c.classes;null!==h&&Fr(a,l,h);const d=c.styles;null!==d&&Lr(a,l,d),Or(r,s,l,c),0===nn.lFrame.elementDepthCount&&ns(l,s),nn.lFrame.elementDepthCount++,Ie(c)&&(js(r,s,c),function(t,e,n){if(Ae(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s<i;s++){const e=t.data[s];e.contentQueries&&e.contentQueries(1,n[s],s)}}}(r,c,s)),null!==i&&Bs(s,c)}function Co(){let t=ln();un()?hn():(t=t.parent,cn(t,!1));const e=t;nn.lFrame.elementDepthCount--;const n=on();n.firstCreatePass&&(On(n,t),Ae(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&So(n,e,rn(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&So(n,e,rn(),e.stylesWithoutHost,!1)}function To(t,e,n,i){ko(t,e,n,i),Co()}function Do(){return rn()}function Ao(t){return!!t&&"function"==typeof t.then}function Oo(t,e,n=!1,i){const s=rn(),r=on(),o=ln();return function(t,e,n,i,s,r,o=!1,a){const l=Ie(i),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),u=dr(e);let h=!0;if(3===i.type){const d=Ue(i,e),f=a?a(d):he,p=f.target||d,m=u.length,g=a?t=>a(We(t[i.index])).target:i.index;if($e(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const t=s[r];if(t===n&&s[r+1]===i){const t=e[7],n=s[r+2];return t.length>n?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,h=!1;else{r=Mo(i,e,r,!1);const t=n.listen(f.name||p,s,r);u.push(r,t),c&&c.push(s,g,m,m+1)}}else r=Mo(i,e,r,!0),p.addEventListener(s,r,o),u.push(r),c&&c.push(s,g,m,o)}const d=i.outputs;let f;if(h&&null!==d&&(f=d[s])){const t=f.length;if(t)for(let n=0;n<t;n+=2){const t=e[f[n]][f[n+1]].subscribe(r),o=u.length;u.push(r,t),c&&c.push(s,i.index,o,-(o+1))}}}(r,s,s[11],o,t,e,n,i),Oo}function Io(t,e,n){try{return!1!==e(n)}catch(i){return fr(t,i),!1}}function Mo(t,e,n,i){return function s(r){if(r===Function)return n;const o=2&t.flags?Ze(t.index,e):e;0==(32&e[2])&&ar(o);let a=Io(e,n,r),l=s.__ngNextListenerFn__;for(;l;)a=Io(e,l,r)&&a,l=l.__ngNextListenerFn__;return i&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function Po(t=1){return function(t){return(nn.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,nn.lFrame.contextLView))[8]}(t)}function Ro(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s<e.length;s++){const r=e[s];if("*"!==r){if(null===i?fs(t,r,!0):ps(i,r))return s}else n=s}return n}function Lo(t){const e=rn()[16][6];if(!e.projection){const n=e.projection=re(t?t.length:1,null),i=n.slice();let s=e.child;for(;null!==s;){const e=t?Ro(s,t):0;null!==e&&(i[e]?i[e].projectionNext=s:n[e]=s,i[e]=s),s=s.next}}}function Fo(t,e=0,n){const i=rn(),s=on(),r=Ps(s,i[6],t,1,null,n||null);null===r.projection&&(r.projection=e),hn(),function(t,e,n){Rr(e[11],0,e,n,Sr(t,n,e),Ar(n.parent||e[6],e))}(s,i,r)}const No=[];function jo(t,e,n,i,s){const r=t[n+1],o=null===e;let a=i?ks(r):Ts(r),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];Bo(t[a],e)&&(l=!0,t[a+1]=i?As(n):Cs(n)),a=i?ks(n):Ts(n)}l&&(t[n+1]=i?Cs(r):As(r))}function Bo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&le(t,e)>=0}function Ho(t,e,n){return $o(t,e,n,!1),Ho}function Vo(t,e){return $o(t,e,null,!0),Vo}function $o(t,e,n,i){const s=rn(),r=on(),o=function(t){const e=nn.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+2,n}();r.firstUpdatePass&&function(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[Tn()+ke],o=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(t.flags&(e?16:32))})(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=function(t){const e=nn.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=Wo(n=zo(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=zo(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Ts(i))return t[ks(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=zo(null,t,e,n[1],i),n=Wo(n,e.attrs,i),function(t,e,n,i){t[ks(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i=void 0;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<s;r++)i=Wo(i,t[r].hostAttrs,n);return Wo(i,e.attrs,n)}(t,e,i)}return void 0!==r&&(i?e.residualClasses=r:e.residualStyles=r),n}(s,r,e,i),function(t,e,n,i,s,r){let o=r?e.classBindings:e.styleBindings,a=ks(o),l=Ts(o);t[i]=n;let c,u=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||le(t,c)>0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=ks(t[a+1]);t[i+1]=Ss(e,a),0!==e&&(t[e+1]=Ds(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Ss(a,0),0!==a&&(t[a+1]=Ds(t[a+1],i)),a=i;else t[i+1]=Ss(l,0),0===a?a=i:t[l+1]=Ds(t[l+1],i),l=i;u&&(t[i+1]=Cs(t[i+1])),jo(t,c,i,!0),jo(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&le(r,e)>=0&&(n[i+1]=As(n[i+1]))}(e,c,t,i,r),o=Ss(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}(r,t,o,i),e!==ys&&yo(s,o,e)&&function(t,e,n,i,s,r,o,a){if(3!==e.type)return;const l=t.data,c=l[a+1];Uo(1==(1&c)?Yo(l,e,n,s,Ts(c),o):void 0)||(Uo(r)||function(t){return 2==(2&t)}(c)&&(r=Yo(l,null,n,s,a,o)),function(t,e,n,i,s){const r=$e(t);if(e)s?r?t.addClass(n,i):n.classList.add(i):r?t.removeClass(n,i):n.classList.remove(i);else{const e=-1==i.indexOf("-")?void 0:2;null==s?r?t.removeStyle(n,i,e):n.style.removeProperty(i):r?t.setStyle(n,i,s,e):n.style.setProperty(i,s)}}(i,o,Ye(Tn(),n),s,r))}(r,r.data[Tn()+ke],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=wt(ki(t)))),t}(e,n),i,o)}function zo(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(r=e[a],i=Wo(i,r.hostAttrs,s),r!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function Wo(t,e,n){const i=n?1:2;let s=-1;if(null!==e)for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?s=o:s===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),oe(t,o,!!n||e[++r]))}return void 0===t?null:t}function Yo(t,e,n,i,s,r){const o=null===e;let a=void 0;for(;s>0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let u=n[s+1];u===ys&&(u=c?No:void 0);let h=c?ae(u,i):l===i?u:void 0;if(r&&!Uo(h)&&(h=ae(e,i)),Uo(h)&&(a=h,o))return a;const d=t[s+1];s=o?ks(d):Ts(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=ae(t,i))}return a}function Uo(t){return void 0!==t}function qo(t,e=""){const n=rn(),i=on(),s=t+ke,r=i.firstCreatePass?Ps(i,n[6],t,3,null,null):i.data[s],o=n[s]=function(t,e){return $e(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Or(i,n,o,r),cn(r,!1)}function Qo(t){return Zo("",t,""),Qo}function Zo(t,e,n){const i=rn(),s=function(t,e,n,i){return yo(t,mn(),n)?e+Un(n)+i:ys}(i,t,e,n);return s!==ys&&function(t,e,n){const i=Ye(e,t),s=t[11];$e(s)?s.setValue(i,n):i.textContent=n}(i,Tn(),s),Zo}function Ko(t,e){const n=Ke(t)[1],i=n.data.length-1;On(n,{directiveStart:i,directiveEnd:i+1})}function Go(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s=void 0;if(Me(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=Xo(t.inputs),e.declaredInputs=Xo(t.declaredInputs),e.outputs=Xo(t.outputs);const n=s.hostBindings;n&&ea(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&Jo(t,r),o&&ta(t,o),ct(t.inputs,s.inputs),ct(t.declaredInputs,s.declaredInputs),ct(t.outputs,s.outputs),Me(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i<e.length;i++){const s=e[i];s&&s.ngInherit&&s(t),s===Go&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=Hn(s.hostAttrs,n=Hn(n,s.hostAttrs))}}(i)}function Xo(t){return t===he?{}:t===de?[]:t}function Jo(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function ta(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function ea(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}class na{}class ia{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${wt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let sa=(()=>{class t{}return t.NULL=new ia,t})(),ra=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>oa(t),t})();const oa=function(t){return $r(t,ln(),rn())};class aa{}var la=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let ca=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ua(),t})();const ua=function(){const t=rn(),e=Ze(ln().index,t);return function(t){const e=t[11];if($e(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Te(e)?e:t)};let ha=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>null}),t})();class da{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const fa=new da("10.1.0");class pa{constructor(){}supports(t){return fo(t)}create(t){return new ga(t)}}const ma=(t,e)=>e;class ga{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ma}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex<ba(n,i,s)?e:n,o=ba(r,i,s),a=r.currentIndex;if(r===n)i--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)i++;else{s||(s=[]);const t=o-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<s.length?s[n]:s[n]=0,r=i+n;e<=r&&r<t&&(s[n]=i+1)}s[r.previousIndex]=e-t}}o!==a&&t(r,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!fo(t))throw new Error(`Error trying to diff '${wt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,i,s=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,n,i,e)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,i,e),r=!0),s=s._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[uo()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):t=this._addAfter(new ya(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new va),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new va),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class ya{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class _a{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class va{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new _a,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ba(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i<n.length&&(s=n[i]),i+e+s}class wa{constructor(){}supports(t){return t instanceof Map||po(t)}create(){return new xa}}class xa{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||po(t)))throw new Error(`Error trying to diff '${wt(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new Ea(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Ea{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Sa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new t([new pa])}),t})(),ka=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new t([new wa])}),t})();const Ca=[new wa],Ta=new Sa([new pa]),Da=new ka(Ca);let Aa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Oa(t,ra),t})();const Oa=function(t,e){return zr(t,e,ln(),rn())};let Ia=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ma(t,ra),t})();const Ma=function(t,e){return Wr(t,e,ln(),rn())},Pa={};class Ra extends sa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=xe(t);return new Na(e,this.ngModule)}}function La(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Fa=new Bt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Qn});class Na extends na{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(gs).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return La(this.componentDef.inputs)}get outputs(){return La(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,Pa,s);return r!==Pa||i===Pa?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(aa,ze),o=s.get(ha,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if($e(t))return t.selectRootElement(e,n===ue.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Is(l,r.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Qn,clean:hr,playerHandler:null,flags:0},d=Vs(0,-1,null,1,0,null,null,null,null,null),f=Ms(null,d,h,u,null,null,r,a,o,s);let p,m;wn(f,null);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=Ps(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(lo(a,l,!0),null!==t&&(Nn(s,t,l),null!==a.classes&&Fr(s,t,a.classes),null!==a.styles&&Lr(s,t,a.styles)));const c=i.createRenderer(t,e),u=Ms(n,Hs(e),null,e.onPush?64:16,n[20],a,i,c,void 0);return o.firstCreatePass&&(si(ti(a,n),o,e.type),Ks(o,a),Xs(a,n.length,1)),or(n,u),n[20]=u}(c,this.componentDef,f,r,a);if(c)if(n)Nn(a,c,["ng-version",fa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===s?""!==r&&e.push(r,t[++i]):8===s&&n.push(r);else{if(!hs(s))break;s=r}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Nn(a,c,t),e&&e.length>0&&Fr(a,c,e.join(" "))}if(m=qe(d,0),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}p=function(t,e,n,i,s){const r=n[1],o=function(t,e,n){const i=ln();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Zs(t,i,1),Js(t,e,n));const s=ci(e,t,e.length-1,i);ns(s,e);const r=Ue(i,e);return r&&ns(r,e),s}(r,n,e);i.components.push(o),t[8]=o,s&&s.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=ln();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Dn(a.index-ke);const t=n[1];Us(t,e),qs(t,n,e.hostVars),Qs(e,o)}return o}(t,this.componentDef,f,h,[Ko]),Rs(d,f,null)}finally{Cn()}const g=new ja(this.componentType,p,$r(ra,m,f),f,m);return d.node.child=m,g}}class ja extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new jr(i),function(t,e,n,i){let s=t.node;null==s&&(t.node=s=zs(0,null,2,-1,null,null)),i[6]=s}(i[1],0,0,i),this.componentType=t}get injector(){return new di(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Ba=void 0;var Ha=["en",[["a","p"],["AM","PM"],Ba],[["AM","PM"],Ba,Ba],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ba,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ba,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ba,"{1} 'at' {0}",Ba],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Va={};function $a(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=za(e);if(n)return n;const i=e.split("-")[0];if(n=za(i),n)return n;if("en"===i)return Ha;throw new Error(`Missing locale data for the locale "${t}".`)}function za(t){return t in Va||(Va[t]=It.ng&&It.ng.common&&It.ng.common.locales&&It.ng.common.locales[t]),Va[t]}var Wa=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const Ya="en-US";let Ua=Ya;function qa(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Ua=t.toLowerCase().replace(/_/g,"-"))}const Qa=new Map;class Za extends ee{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ra(this);const n=Se(t),i=t[Ft]||null;i&&qa(i),this._bootstrapComponents=Kn(n.bootstrap),this._r3Injector=to(t,e,[{provide:ee,useValue:this},{provide:sa,useValue:this.componentFactoryResolver}],wt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ao.THROW_IF_NOT_FOUND,n=at.Default){return t===ao||t===ee||t===Ht?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ka extends class{}{constructor(t){super(),this.moduleType=t,null!==Se(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${wt(e)} vs ${wt(e.name)}`)})(t,Qa.get(t),e),Qa.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Za(this.moduleType,t)}}function Ga(t,e,n){const i=pn()+t,s=rn();return s[i]===ys?mo(s,i,n?e.call(n):e()):go(s,i)}function Xa(t,e,n,i){return nl(rn(),pn(),t,e,n,i)}function Ja(t,e,n,i,s){return il(rn(),pn(),t,e,n,i,s)}function tl(t,e,n,i,s,r){return sl(rn(),pn(),t,e,n,i,s,r)}function el(t,e){const n=t[e];return n===ys?void 0:n}function nl(t,e,n,i,s,r){const o=e+n;return yo(t,o,s)?mo(t,o+1,r?i.call(r,s):i(s)):el(t,o+1)}function il(t,e,n,i,s,r,o){const a=e+n;return _o(t,a,s,r)?mo(t,a+2,o?i.call(o,s,r):i(s,r)):el(t,a+2)}function sl(t,e,n,i,s,r,o,a){const l=e+n;return function(t,e,n,i,s){const r=_o(t,e,n,i);return yo(t,e+2,s)||r}(t,l,s,r,o)?mo(t,l+3,a?i.call(a,s,r,o):i(s,r,o)):el(t,l+3)}function rl(t,e){const n=on();let i;const s=t+ke;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=Ee(i.type)),o=Qt(xo),a=Xn(!1),l=r();return Xn(a),Qt(o),function(t,e,n,i){const s=n+ke;s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),e[s]=i}(n,rn(),t,l),l}function ol(t,e,n,i){const s=rn(),r=Qe(s,t);return cl(s,ll(s,t)?il(s,pn(),e,r.transform,n,i,r):r.transform(n,i))}function al(t,e,n,i,s){const r=rn(),o=Qe(r,t);return cl(r,ll(r,t)?sl(r,pn(),e,o.transform,n,i,s,o):o.transform(n,i,s))}function ll(t,e){return t[1].data[e+ke].pure}function cl(t,e){return ho.isWrapped(e)&&(e=ho.unwrap(e),t[nn.lFrame.bindingIndex]=ys),e}const ul=class extends E{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,s=t=>null,r=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,s,r);return t instanceof h&&t.add(o),o}};function hl(){return this._results[uo()]()}class dl{constructor(){this.dirty=!0,this._results=[],this.changes=new ul,this.length=0;const t=uo(),e=dl.prototype;e[t]||(e[t]=hl)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let i=0;i<e.length;i++){let s=e[i];Array.isArray(s)?(n===e&&(n=e.slice(0,i)),t(s,n)):n!==e&&n.push(s)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class fl{constructor(t){this.queryList=t,this.matches=null}clone(){return new fl(this.queryList)}setDirty(){this.queryList.setDirty()}}class pl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);i.push(this.queries[n.indexInDeclarationView].clone())}return new pl(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==wl(t,e).matches&&this.queries[e].setDirty()}}class ml{constructor(t,e,n,i=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=i}}class gl{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const i=null!==e?e.length:0,s=this.getByIndex(n).embeddedTView(t,i);s&&(s.indexInDeclarationView=n,null!==e?e.push(s):e=[s])}return null!==e?new gl(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class yl{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new yl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const s=n[i];this.matchTNodeWithReadOption(t,e,_l(e,s)),this.matchTNodeWithReadOption(t,e,li(e,t,s,!1,!1))}else n===Aa?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,li(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===ra||i===Ia||i===Aa&&0===e.type)this.addMatch(e.index,-2);else{const n=li(e,t,i,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function _l(t,e){const n=t.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function vl(t,e,n,i){return-1===n?function(t,e){return 3===t.type||4===t.type?$r(ra,t,e):0===t.type?zr(Aa,ra,t,e):null}(e,t):-2===n?function(t,e,n){return n===ra?$r(ra,e,t):n===Aa?zr(Aa,ra,e,t):n===Ia?Wr(Ia,ra,e,t):void 0}(t,e,i):ci(t,t[1],n,e)}function bl(t,e,n,i){const s=e[19].queries[i];if(null===s.matches){const i=t.data,r=n.matches,o=[];for(let t=0;t<r.length;t+=2){const s=r[t];o.push(s<0?null:vl(e,i[s],r[t+1],n.metadata.read))}s.matches=o}return s.matches}function wl(t,e){return t.queries.getByIndex(e)}function xl(t,e){return zr(Aa,ra,t,e)}const El=new Bt("Application Initializer");let Sl=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();Ao(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Kt(El,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const kl=new Bt("AppId"),Cl={provide:kl,useFactory:function(){return`${Tl()}${Tl()}${Tl()}`},deps:[]};function Tl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Dl=new Bt("Platform Initializer"),Al=new Bt("Platform ID"),Ol=new Bt("appBootstrapListener");let Il=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Ml=new Bt("LocaleId"),Pl=new Bt("DefaultCurrencyCode");class Rl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Ll=function(t){return new Ka(t)},Fl=Ll,Nl=function(t){return Promise.resolve(Ll(t))},jl=function(t){const e=Ll(t),n=Kn(Se(t).declarations).reduce((t,e)=>{const n=xe(e);return n&&t.push(new Na(n)),t},[]);return new Rl(e,n)},Bl=jl,Hl=function(t){return Promise.resolve(jl(t))};let Vl=(()=>{class t{constructor(){this.compileModuleSync=Fl,this.compileModuleAsync=Nl,this.compileModuleAndAllComponentsSync=Bl,this.compileModuleAndAllComponentsAsync=Hl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const $l=(()=>Promise.resolve(0))();function zl(t){"undefined"==typeof Zone?$l.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Wl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ul(!1),this.onMicrotaskEmpty=new ul(!1),this.onStable=new ul(!1),this.onError=new ul(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=It.requestAnimationFrame,e=It.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(It,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ql(t),ql(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ql(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,s,r,o,a)=>{try{return Zl(t),n.invokeTask(s,r,o,a)}finally{e&&"eventTask"===r.type&&e(),Kl(t)}},onInvoke:(e,n,i,s,r,o,a)=>{try{return Zl(t),e.invoke(i,s,r,o,a)}finally{Kl(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Ql(t),ql(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Wl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Wl.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,Ul,Yl,Yl);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Yl(){}const Ul={};function ql(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Ql(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Zl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Kl(t){t._nesting--,ql(t)}class Gl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ul,this.onMicrotaskEmpty=new ul,this.onStable=new ul,this.onError=new ul}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let Xl=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Wl.assertNotInAngularZone(),zl(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())zl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Kt(Wl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Jl=(()=>{class t{constructor(){this._applications=new Map,nc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return nc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class tc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let ec,nc=new tc;const ic=new Bt("AllowMultipleToken");function sc(t,e,n=[]){const i="Platform: "+e,s=new Bt(i);return(e=[])=>{let r=rc();if(!r||r.injector.get(ic,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Qr,useValue:"platform"});!function(t){if(ec&&!ec.destroyed&&!ec.injector.get(ic,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ec=t.get(oc);const e=t.get(Dl,null);e&&e.forEach(t=>t())}(ao.create({providers:t,name:i}))}return function(t){const e=rc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function rc(){return ec&&!ec.destroyed?ec:null}let oc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Gl:("zone.js"===t?void 0:t)||new Wl({enableLongStackTrace:Oi(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:Wl,useValue:n}];return n.run(()=>{const e=ao.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(_i,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>cc(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const i=n();return Ao(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(Sl);return t.runInitializers(),t.donePromise.then(()=>(qa(s.injector.get(Ml,Ya)||Ya),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=ac({},e);return function(t,e,n){const i=new Ka(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(lc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${wt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Kt(ao))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function ac(t,e){return Array.isArray(e)?e.reduce(ac,t):Object.assign(Object.assign({},t),e)}let lc=(()=>{class t{constructor(t,e,n,i,s,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Oi(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new _(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new _(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Wl.assertNotInAngularZone(),zl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Wl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Y(o,a.pipe(J()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof na?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(ee),s=n.create(ao.NULL,[],e||n.selector,i);s.onDestroy(()=>{this._unloadComponent(s)});const r=s.injector.get(Xl,null);return r&&s.injector.get(Jl).registerApplication(s.location.nativeElement,r),this._loadComponent(s),Oi()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;cc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ol,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),cc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Kt(Wl),Kt(Il),Kt(ao),Kt(_i),Kt(sa),Kt(Sl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function cc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const uc=sc(null,"core",[{provide:Al,useValue:"unknown"},{provide:oc,deps:[ao]},{provide:Jl,deps:[]},{provide:Il,deps:[]}]),hc=[{provide:lc,useClass:lc,deps:[Wl,Il,ao,_i,sa,Sl]},{provide:Fa,deps:[Wl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Sl,useClass:Sl,deps:[[new st,El]]},{provide:Vl,useClass:Vl,deps:[]},Cl,{provide:Sa,useFactory:function(){return Ta},deps:[]},{provide:ka,useFactory:function(){return Da},deps:[]},{provide:Ml,useFactory:function(t){return qa(t=t||"undefined"!=typeof $localize&&$localize.locale||Ya),t},deps:[[new it(Ml),new st,new ot]]},{provide:Pl,useValue:"USD"}];let dc=(()=>{class t{constructor(t){}}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Kt(lc))},providers:hc}),t})();class fc extends h{constructor(t,e){super()}schedule(t,e=0){return this}}class pc extends fc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}class mc extends pc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}let gc=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class yc extends gc{constructor(t,e=gc.now){super(t,()=>yc.delegate&&yc.delegate!==this?yc.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return yc.delegate&&yc.delegate!==this?yc.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}class _c extends yc{}const vc=new _c(mc),bc=new _(t=>t.complete());function wc(t){return t?function(t){return new _(e=>t.schedule(()=>e.complete()))}(t):bc}function xc(...t){let e=t[t.length-1];return k(e)?(t.pop(),L(t,e)):W(t)}function Ec(t,e){return new _(e?n=>e.schedule(Sc,0,{error:t,subscriber:n}):e=>e.error(t))}function Sc({error:t,subscriber:e}){e.error(t)}let kc=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return xc(this.value);case"E":return Ec(this.error);case"C":return wc()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class Cc extends p{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Cc.dispatch,this.delay,new Tc(t,this.destination)))}_next(t){this.scheduleMessage(kc.createNext(t))}_error(t){this.scheduleMessage(kc.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(kc.createComplete()),this.unsubscribe()}}class Tc{constructor(t,e){this.notification=t,this.destination=e}}class Dc extends E{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new Ac(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;let r;if(this.closed)throw new b;if(this.isStopped||this.hasError?r=h.EMPTY:(this.observers.push(t),r=new w(this,t)),i&&t.add(t=new Cc(t,i)),e)for(let o=0;o<s&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<s&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),r}_getNow(){return(this.scheduler||vc).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,s=i.length;let r=0;for(;r<s&&!(t-i[r].time<n);)r++;return s>e&&(r=Math.max(r,s-e)),r>0&&i.splice(0,r),i}}class Ac{constructor(t,e){this.time=t,this.value=e}}class Oc{constructor(t){this.project=t}call(t,e){return e.subscribe(new Ic(t,this.project))}}class Ic extends j{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new N(this),i=this.destination;i.add(n),this.innerSubscription=B(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const Mc=(()=>{const t=Element.prototype;return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector})(),Pc={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return Pc.schedule(t,0);if(void 0===window.requestAnimationFrame)return Pc.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};function Rc(t,e,n){let i=n;return function(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((e,n)=>!("*"===e||!function(t,e){return Mc.call(t,e)}(t,e)||(i=n,0))),i}class Lc{constructor(t,e){this.componentFactory=e.get(sa).resolveComponentFactory(t)}create(t){return new Fc(this.componentFactory,t)}}class Fc{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new Dc(1),this.events=this.eventEmitters.pipe(function t(e,n){return"function"==typeof n?i=>i.pipe(t((t,i)=>F(e(t,i)).pipe(C((e,s)=>n(t,e,i,s))))):t=>t.lift(new Oc(e))}(t=>Y(...t))),this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set,this.ngZone=this.injector.get(Wl),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=Pc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{var n,i;null!==this.componentRef?((n=e)!==(i=this.getInputValue(t))&&(n==n||i==i)||void 0===e&&this.unchangedInputs.has(t))&&(this.recordInputChange(t,e),this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=ao.create({providers:[],parent:this.injector}),n=function(t,e){const n=t.childNodes,i=e.map(()=>[]);let s=-1;e.some((t,e)=>"*"===t&&(s=e,!0));for(let r=0,o=n.length;r<o;++r){const t=n[r],o=Rc(t,e,s);-1!==o&&i[o].push(t)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(lc).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.implementsOnChanges&&this.unchangedInputs.add(t),this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:e,templateName:n})=>t.instance[e].pipe(C(t=>({name:n,value:t}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Pc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[t];if(n)return void(n.currentValue=e);const i=this.unchangedInputs.has(t);this.unchangedInputs.delete(t);const s=i?void 0:this.getInputValue(t);this.inputChanges[t]=new Re(s,e,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class Nc extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function jc(t,e){t.forEach(({propName:t})=>{Object.defineProperty(e,t,{get(){return this.ngElementStrategy.getInputValue(t)},set(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})})}let Bc=null;function Hc(){return Bc}const Vc=new Bt("DocumentToken");let $c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:zc,token:t,providedIn:"platform"}),t})();function zc(){return Kt(Wc)}let Wc=(()=>{class t extends $c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Hc().getLocation(),this._history=Hc().getHistory()}getBaseHrefFromDOM(){return Hc().getBaseHref(this._doc)}onPopState(t){Hc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Hc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){Yc()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Yc()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc))},t.\u0275prov=ut({factory:Uc,token:t,providedIn:"platform"}),t})();function Yc(){return!!window.history.pushState}function Uc(){return new Wc(Kt(Vc))}function qc(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Qc(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Zc(t){return t&&"?"!==t[0]?"?"+t:t}let Kc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:Gc,token:t,providedIn:"root"}),t})();function Gc(t){const e=Kt(Vc).location;return new Jc(Kt($c),e&&e.origin||"")}const Xc=new Bt("appBaseHref");let Jc=(()=>{class t extends Kc{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return qc(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Zc(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+Zc(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+Zc(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Kt($c),Kt(Xc,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),tu=(()=>{class t{constructor(t,e){this._subject=new ul,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Qc(nu(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Zc(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,nu(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Zc(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Zc(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(Kt(Kc),Kt($c))},t.normalizeQueryParams=Zc,t.joinWithSlash=qc,t.stripTrailingSlash=Qc,t.\u0275prov=ut({factory:eu,token:t,providedIn:"root"}),t})();function eu(){return new tu(Kt(Kc),Kt($c))}function nu(t){return t.replace(/\/index.html$/,"")}var iu=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),su=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),ru=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),ou=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),au=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function lu(t,e){return fu($a(t)[Wa.DateFormat],e)}function cu(t,e){return fu($a(t)[Wa.TimeFormat],e)}function uu(t,e){return fu($a(t)[Wa.DateTimeFormat],e)}function hu(t,e){const n=$a(t),i=n[Wa.NumberSymbols][e];if(void 0===i){if(e===au.CurrencyDecimal)return n[Wa.NumberSymbols][au.Decimal];if(e===au.CurrencyGroup)return n[Wa.NumberSymbols][au.Group]}return i}function du(t){if(!t[Wa.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Wa.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function fu(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function pu(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const mu=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,gu={},yu=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var _u=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),vu=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),bu=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function wu(t,e,n,i){let s=function(t){if(Ou(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,n,i]=t.split("-").map(t=>+t);return new Date(e,n-1,i)}let n;if(n=t.match(mu))return function(t){const e=new Date(0);let n=0,i=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,o,a,l,c),e}(n)}const e=new Date(t);if(!Ou(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,n){const i=function(t){return $a(t)[Wa.LocaleId]}(e);if(gu[i]=gu[i]||{},gu[i][n])return gu[i][n];let s="";switch(n){case"shortDate":s=lu(e,ou.Short);break;case"mediumDate":s=lu(e,ou.Medium);break;case"longDate":s=lu(e,ou.Long);break;case"fullDate":s=lu(e,ou.Full);break;case"shortTime":s=cu(e,ou.Short);break;case"mediumTime":s=cu(e,ou.Medium);break;case"longTime":s=cu(e,ou.Long);break;case"fullTime":s=cu(e,ou.Full);break;case"short":const n=t(e,"shortTime"),i=t(e,"shortDate");s=xu(uu(e,ou.Short),[n,i]);break;case"medium":const r=t(e,"mediumTime"),o=t(e,"mediumDate");s=xu(uu(e,ou.Medium),[r,o]);break;case"long":const a=t(e,"longTime"),l=t(e,"longDate");s=xu(uu(e,ou.Long),[a,l]);break;case"full":const c=t(e,"fullTime"),u=t(e,"fullDate");s=xu(uu(e,ou.Full),[c,u])}return s&&(gu[i][n]=s),s}(n,e)||e;let r,o=[];for(;e;){if(r=yu.exec(e),!r){o.push(e);break}{o=o.concat(r.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();i&&(a=Au(i,a),s=function(t,e,n){const i=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Au(e,i)-i))}(s,i));let l="";return o.forEach(t=>{const e=function(t){if(Du[t])return Du[t];let e;switch(t){case"G":case"GG":case"GGG":e=ku(bu.Eras,ru.Abbreviated);break;case"GGGG":e=ku(bu.Eras,ru.Wide);break;case"GGGGG":e=ku(bu.Eras,ru.Narrow);break;case"y":e=Su(vu.FullYear,1,0,!1,!0);break;case"yy":e=Su(vu.FullYear,2,0,!0,!0);break;case"yyy":e=Su(vu.FullYear,3,0,!1,!0);break;case"yyyy":e=Su(vu.FullYear,4,0,!1,!0);break;case"M":case"L":e=Su(vu.Month,1,1);break;case"MM":case"LL":e=Su(vu.Month,2,1);break;case"MMM":e=ku(bu.Months,ru.Abbreviated);break;case"MMMM":e=ku(bu.Months,ru.Wide);break;case"MMMMM":e=ku(bu.Months,ru.Narrow);break;case"LLL":e=ku(bu.Months,ru.Abbreviated,su.Standalone);break;case"LLLL":e=ku(bu.Months,ru.Wide,su.Standalone);break;case"LLLLL":e=ku(bu.Months,ru.Narrow,su.Standalone);break;case"w":e=Tu(1);break;case"ww":e=Tu(2);break;case"W":e=Tu(1,!0);break;case"d":e=Su(vu.Date,1);break;case"dd":e=Su(vu.Date,2);break;case"E":case"EE":case"EEE":e=ku(bu.Days,ru.Abbreviated);break;case"EEEE":e=ku(bu.Days,ru.Wide);break;case"EEEEE":e=ku(bu.Days,ru.Narrow);break;case"EEEEEE":e=ku(bu.Days,ru.Short);break;case"a":case"aa":case"aaa":e=ku(bu.DayPeriods,ru.Abbreviated);break;case"aaaa":e=ku(bu.DayPeriods,ru.Wide);break;case"aaaaa":e=ku(bu.DayPeriods,ru.Narrow);break;case"b":case"bb":case"bbb":e=ku(bu.DayPeriods,ru.Abbreviated,su.Standalone,!0);break;case"bbbb":e=ku(bu.DayPeriods,ru.Wide,su.Standalone,!0);break;case"bbbbb":e=ku(bu.DayPeriods,ru.Narrow,su.Standalone,!0);break;case"B":case"BB":case"BBB":e=ku(bu.DayPeriods,ru.Abbreviated,su.Format,!0);break;case"BBBB":e=ku(bu.DayPeriods,ru.Wide,su.Format,!0);break;case"BBBBB":e=ku(bu.DayPeriods,ru.Narrow,su.Format,!0);break;case"h":e=Su(vu.Hours,1,-12);break;case"hh":e=Su(vu.Hours,2,-12);break;case"H":e=Su(vu.Hours,1);break;case"HH":e=Su(vu.Hours,2);break;case"m":e=Su(vu.Minutes,1);break;case"mm":e=Su(vu.Minutes,2);break;case"s":e=Su(vu.Seconds,1);break;case"ss":e=Su(vu.Seconds,2);break;case"S":e=Su(vu.FractionalSeconds,1);break;case"SS":e=Su(vu.FractionalSeconds,2);break;case"SSS":e=Su(vu.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Cu(_u.Short);break;case"ZZZZZ":e=Cu(_u.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Cu(_u.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Cu(_u.Long);break;default:return null}return Du[t]=e,e}(t);l+=e?e(s,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function xu(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function Eu(t,e,n="-",i,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=n));let o=String(t);for(;o.length<e;)o="0"+o;return i&&(o=o.substr(o.length-e)),r+o}function Su(t,e,n=0,i=!1,s=!1){return function(r,o){let a=function(t,e){switch(t){case vu.FullYear:return e.getFullYear();case vu.Month:return e.getMonth();case vu.Date:return e.getDate();case vu.Hours:return e.getHours();case vu.Minutes:return e.getMinutes();case vu.Seconds:return e.getSeconds();case vu.FractionalSeconds:return e.getMilliseconds();case vu.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,r);if((n>0||a>-n)&&(a+=n),t===vu.Hours)0===a&&-12===n&&(a=12);else if(t===vu.FractionalSeconds)return l=e,Eu(a,3).substr(0,l);var l;const c=hu(o,au.MinusSign);return Eu(a,e,c,i,s)}}function ku(t,e,n=su.Format,i=!1){return function(s,r){return function(t,e,n,i,s,r){switch(n){case bu.Months:return function(t,e,n){const i=$a(t),s=fu([i[Wa.MonthsFormat],i[Wa.MonthsStandalone]],e);return fu(s,n)}(e,s,i)[t.getMonth()];case bu.Days:return function(t,e,n){const i=$a(t),s=fu([i[Wa.DaysFormat],i[Wa.DaysStandalone]],e);return fu(s,n)}(e,s,i)[t.getDay()];case bu.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(r){const t=function(t){const e=$a(t);return du(e),(e[Wa.ExtraData][2]||[]).map(t=>"string"==typeof t?pu(t):[pu(t[0]),pu(t[1])])}(e),n=function(t,e,n){const i=$a(t);du(i);const s=fu([i[Wa.ExtraData][0],i[Wa.ExtraData][1]],e)||[];return fu(s,n)||[]}(e,s,i),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,i=o>=e.hours&&a>=e.minutes,s=o<n.hours||o===n.hours&&a<n.minutes;if(e.hours<n.hours){if(i&&s)return!0}else if(i||s)return!0}else if(t.hours===o&&t.minutes===a)return!0;return!1});if(-1!==r)return n[r]}return function(t,e,n){const i=$a(t),s=fu([i[Wa.DayPeriodsFormat],i[Wa.DayPeriodsStandalone]],e);return fu(s,n)}(e,s,i)[o<12?0:1];case bu.Eras:return function(t,e){return fu($a(t)[Wa.Eras],e)}(e,i)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(s,r,t,e,n,i)}}function Cu(t){return function(e,n,i){const s=-1*i,r=hu(n,au.MinusSign),o=s>0?Math.floor(s/60):Math.ceil(s/60);switch(t){case _u.Short:return(s>=0?"+":"")+Eu(o,2,r)+Eu(Math.abs(s%60),2,r);case _u.ShortGMT:return"GMT"+(s>=0?"+":"")+Eu(o,1,r);case _u.Long:return"GMT"+(s>=0?"+":"")+Eu(o,2,r)+":"+Eu(Math.abs(s%60),2,r);case _u.Extended:return 0===i?"Z":(s>=0?"+":"")+Eu(o,2,r)+":"+Eu(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function Tu(t,e=!1){return function(n,i){let s;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();s=1+Math.floor((e+t)/7)}else{const t=(r=n,new Date(r.getFullYear(),r.getMonth(),r.getDate()+(4-r.getDay()))),e=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),i=t.getTime()-e.getTime();s=1+Math.round(i/6048e5)}var r;return Eu(s,t,hu(i,au.MinusSign))}}const Du={};function Au(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Ou(t){return t instanceof Date&&!isNaN(t.valueOf())}class Iu{}let Mu=(()=>{class t extends Iu{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return $a(t)[Wa.PluralCase]}(e||this.locale)(t)){case iu.Zero:return"zero";case iu.One:return"one";case iu.Two:return"two";case iu.Few:return"few";case iu.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Ml))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Pu=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(fo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+wt(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(xo(Sa),xo(ka),xo(ra),xo(ca))},t.\u0275dir=be({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Ru{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Lu=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Oi()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Ru(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new Fu(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new Fu(t,s);e.push(r)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=i,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(xo(Ia),xo(Aa),xo(Sa))},t.\u0275dir=be({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Fu{constructor(t,e){this.record=t,this.view=e}}let Nu=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new ju,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Bu("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Bu("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(xo(Ia),xo(Aa))},t.\u0275dir=be({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class ju{constructor(){this.$implicit=null,this.ngIf=null}}function Bu(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${wt(e)}'.`)}let Hu=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(ka),xo(ca))},t.\u0275dir=be({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Vu=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(xo(Ia))},t.\u0275dir=be({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Le]}),t})();function $u(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${wt(t)}'`)}class zu{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Wu{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Yu=new Wu,Uu=new zu;let qu=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Ao(e))return Yu;if(function(t){return!!t&&"function"==typeof t.subscribe}(e))return Uu;throw $u(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(function(t=at.Default){const e=Yr(!0);if(null!=e||t&at.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=we({name:"async",type:t,pure:!1}),t})();const Qu=/#/g;let Zu=(()=>{class t{constructor(t){this._localization=t}transform(e,n,i){if(null==e)return"";if("object"!=typeof n||null===n)throw $u(t,n);return n[function(t,e,n,i){let s="="+t;if(e.indexOf(s)>-1)return s;if(s=n.getPluralCategory(t,i),e.indexOf(s)>-1)return s;if(e.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${t}"`)}(e,Object.keys(n),this._localization,i)].replace(Qu,e.toString())}}return t.\u0275fac=function(e){return new(e||t)(xo(Iu))},t.\u0275pipe=we({name:"i18nPlural",type:t,pure:!0}),t})(),Ku=(()=>{class t{transform(e,n,i){if(null==e)return e;if(!this.supports(e))throw $u(t,e);return e.slice(n,i)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=we({name:"slice",type:t,pure:!1}),t})(),Gu=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[{provide:Iu,useClass:Mu}]}),t})();function Xu(t){return"browser"===t}function Ju(t){return"server"===t}class th extends E{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new b;return this._value}next(t){super.next(this._value=t)}}function eh(t,e,n,s){return i(n)&&(s=n,n=void 0),s?eh(t,e,n).pipe(C(t=>l(t)?s(...t):s(t))):new _(i=>{!function t(e,n,i,s,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,i,r),o=()=>t.removeEventListener(n,i,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,i),o=()=>t.off(n,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,i),o=()=>t.removeListener(n,i)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],n,i,s,r)}s.add(o)}(t,e,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,n)})}function nh(t,e){return function(n){return n.lift(new ih(t,e))}}class ih{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new sh(t,this.predicate,this.thisArg))}}class sh extends p{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}const rh=new yc(pc);class oh{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new ah(t,this.dueTime,this.scheduler))}}class ah extends p{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(lh,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function lh(t){t.debouncedNext()}function ch(t){return e=>e.lift(new uh(t))}class uh{constructor(t){this.notifier=t}call(t,e){const n=new hh(t),i=B(this.notifier,new N(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class hh extends j{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const dh=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function fh(t){return e=>0===t?wc():e.lift(new ph(t))}class ph{constructor(t){if(this.total=t,this.total<0)throw new dh}call(t,e){return e.subscribe(new mh(t,this.total))}}class mh extends p{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function gh(){}function yh(t,e,n){return function(i){return i.lift(new _h(t,e,n))}}class _h{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new vh(t,this.nextOrObserver,this.error,this.complete))}}class vh extends p{constructor(t,e,n,s){super(t),this._tapNext=gh,this._tapError=gh,this._tapComplete=gh,this._tapError=n||gh,this._tapComplete=s||gh,i(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||gh,this._tapError=e.error||gh,this._tapComplete=e.complete||gh)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const bh={provide:Ol,useFactory:function(t,e){return()=>{if(Xu(e)){const e=Array.from(t.querySelectorAll(`[class*=${wh}]`)),n=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(wh+"ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(n,"")})}}},deps:[Vc,Al],multi:!0},wh="flex-layout-";let xh=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[bh]}),t})();class Eh{constructor(t=!1,e="all",n="",i="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=i,this.priority=s,this.property=""}clone(){return new Eh(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let Sh=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,n){const i=this.stylesheet.get(t);i?i.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const n=this.stylesheet.get(t);let i="";if(n){const t=n.get(e);"number"!=typeof t&&"string"!=typeof t||(i=t+"")}return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const kh={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},Ch=new Bt("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>kh}),Th=new Bt("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Dh=new Bt("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Ah(t,e){return t=t?t.clone():new Eh,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const Oh="inline",Ih=["row","column","row-reverse","column-reverse"];function Mh(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let Ph=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.styleBuilder=e,this.styler=n,this.marshal=i,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new E,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const n=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,n)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const n=this.styleBuilder,i=n.shouldCache;let s=this.styleCache.get(t);s&&i||(s=n.buildStyles(t,e),i&&this.styleCache.set(t,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),n.sideEffect(t,s,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[n,i]=this.styler.getFlowDirection(t);if(!i&&e){const e=function(t){let[e,n,i]=function(t){t=t?t.toLowerCase():"";let[e,n,i]=t.split(" ");return Ih.find(t=>t===e)||(e=Ih[0]),n===Oh&&(n=i!==Oh?i:"",i=Oh),[e,Mh(n),!!i]}(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,i)}(n);this.styler.applyStyleToElements(e,[t])}return n.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,n=this.nativeElement){this.styler.applyStyleToElement(n,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){!function(){throw new Error("invalid")}()},t.\u0275dir=be({type:t,features:[Le]}),t})();const Rh=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.9px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.9px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.9px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.9px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.9px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.9px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.9px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.9px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.9px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],Lh="(orientation: portrait) and (max-width: 599.9px)",Fh="(orientation: landscape) and (max-width: 959.9px)",Nh="(orientation: portrait) and (min-width: 600px) and (max-width: 839.9px)",jh="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.9px)",Bh="(orientation: portrait) and (min-width: 840px)",Hh="(orientation: landscape) and (min-width: 1280px)",Vh={HANDSET:`${Lh}, ${Fh}`,TABLET:`${Nh} , ${jh}`,WEB:`${Bh}, ${Hh} `,HANDSET_PORTRAIT:""+Lh,TABLET_PORTRAIT:Nh+" ",WEB_PORTRAIT:""+Bh,HANDSET_LANDSCAPE:""+Fh,TABLET_LANDSCAPE:""+jh,WEB_LANDSCAPE:""+Hh},$h=[{alias:"handset",priority:2e3,mediaQuery:Vh.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Vh.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Vh.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Vh.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Vh.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Vh.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Vh.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Vh.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Vh.WEB_PORTRAIT,overlapping:!0}],zh=/(\.|-|_)/g;function Wh(t){let e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}const Yh=new Bt("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Gt(Dh),e=Gt(Ch),n=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const n={};return t.forEach(t=>{n[t.alias]=t}),e.forEach(t=>{n[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e])}(n[t.alias],t):n[t.alias]=t}),(i=Object.keys(n).map(t=>n[t])).forEach(t=>{t.suffix||(t.suffix=t.alias.replace(zh,"|").split("|").map(Wh).join(""),t.overlapping=!!t.overlapping)}),i;var i}((e.disableDefaultBps?[]:Rh).concat(e.addOrientationBps?$h:[]),n)}});function Uh(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function qh(t,e){return(t.priority||0)-(e.priority||0)}let Qh=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(qh)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let n=this.findByMap.get(t);return n||(n=this.items.find(e)||null,this.findByMap.set(t,n)),n||null}}return t.\u0275fac=function(e){return new(e||t)(Kt(Yh))},t.\u0275prov=ut({factory:function(){return new t(Kt(Yh))},token:t,providedIn:"root"}),t})(),Zh=(()=>{class t{constructor(t,e,n){this._zone=t,this._platformId=e,this._document=n,this.source=new th(new Eh(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,n)=>{e.matches&&t.push(n)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const n=this._observable$.pipe(nh(n=>!e||t.indexOf(n.mediaQuery)>-1));return Y(new _(e=>{const n=this.registerQuery(t);if(n.length){const t=n.pop();n.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()}),n)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],n=[];return function(t,e){const n=t.filter(t=>!Kh[t]);if(n.length>0){const t=n.join(", ");try{const i=e.createElement("style");i.setAttribute("type","text/css"),i.styleSheet||i.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),e.head.appendChild(i),n.forEach(t=>Kh[t]=i)}catch(i){console.error(i)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new Eh(e.matches,t)))};let i=this.registry.get(t);i||(i=this.buildMQL(t),i.addListener(e),this.pendingRemoveListenerFns.push(()=>i.removeListener(e)),this.registry.set(t,i)),i.matches&&n.push(new Eh(!0,t))}),n}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,Xu(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(Kt(Wl),Kt(Al),Kt(Vc))},t.\u0275prov=ut({factory:function(){return new t(Kt(Wl),Kt(Al),Kt(Vc))},token:t,providedIn:"root"}),t})();const Kh={},Gh="print",Xh={alias:Gh,mediaQuery:Gh,priority:1e3};let Jh=(()=>{class t{constructor(t,e,n){this.breakpoints=t,this.layoutConfig=e,this._document=n,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new td,this.deactivations=[]}withPrintQuery(t){return[...t,Gh]}isPrintEvent(t){return t.mediaQuery.startsWith(Gh)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(Uh)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),Ah(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new Eh(!0,Gh))),t.updateStyles())},n=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",n),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(n)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(Uh))}}ngOnDestroy(){this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t))}}return t.\u0275fac=function(e){return new(e||t)(Kt(Qh),Kt(Ch),Kt(Vc))},t.\u0275prov=ut({factory:function(){return new t(Kt(Qh),Kt(Ch),Kt(Vc))},token:t,providedIn:"root"}),t})();class td{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(Xh),t.sort(Uh),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith(Gh)}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function ed(t){for(let e in t){let n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":n=n||"row",t["-webkit-flex-direction"]=n,t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}let nd=(()=>{class t{constructor(t,e,n,i){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=i}applyStyleToElement(t,e,n=null){let i={};"string"==typeof e&&(i[e]=n,e=i),i=this.layoutConfig.disableVendorPrefixes?e:ed(e),this._applyMultiValueStyleToElement(i,t)}applyStyleToElements(t,e=[]){const n=this.layoutConfig.disableVendorPrefixes?t:ed(t);e.forEach(t=>{this._applyMultiValueStyleToElement(n,t)})}getFlowDirection(t){const e="flex-direction";let n=this.lookupStyle(t,e);return[n||"row",this.lookupInlineStyle(t,e)||Ju(this._platformId)&&this._serverModuleLoaded?n:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return Xu(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,n=!1){let i="";return t&&((i=this.lookupInlineStyle(t,e))||(Xu(this._platformId)?n||(i=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(t,e)))),i?i.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(n=>{const i=t[n],s=Array.isArray(i)?i:[i];s.sort();for(let t of s)t=t?t+"":"",Xu(this._platformId)||!this._serverModuleLoaded?Xu(this._platformId)?e.style.setProperty(n,t):this._setServerStyle(e,n,t):this._serverStylesheet.addStyleToElement(e,n,t)})}_setServerStyle(t,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=this._readStyleAttribute(t);i[e]=n||"",this._writeStyleAttribute(t,i)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},n=t.getAttribute("style");if(n){const t=n.split(/;+/g);for(let n=0;n<t.length;n++){const i=t[n].trim();if(i.length>0){const t=i.indexOf(":");if(-1===t)throw new Error("Invalid CSS style: "+i);e[i.substr(0,t).trim()]=i.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let n="";for(const i in e)e[i]&&(n+=i+":"+e[i]+";");t.setAttribute("style",n)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Sh),Kt(Th),Kt(Al),Kt(Ch))},t.\u0275prov=ut({factory:function(){return new t(Kt(Sh),Kt(Th),Kt(Al),Kt(Ch))},token:t,providedIn:"root"}),t})();class id{constructor(){this.shouldCache=!0}sideEffect(t,e,n){}}function sd(t,e="1",n="1"){let i=[e,n,t],s=t.indexOf("calc");if(s>0){i[2]=rd(t.substring(s).trim());let e=t.substr(0,s).trim().split(" ");2==e.length&&(i[0]=e[0],i[1]=e[1])}else if(0==s)i[2]=rd(t.trim());else{let s=t.split(" ");i=3===s.length?s:[e,n,t]}return i}function rd(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let od=(()=>{class t{constructor(t,e,n){this.matchMedia=t,this.breakpoints=e,this.hook=n,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new E,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=Ah(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(Uh),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(Uh),this.updateStyles()))}init(t,e,n,i,s=[]){ad(this.updateMap,t,e,n),ad(this.clearMap,t,e,i),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,s)}getValue(t,e,n){const i=this.elementMap.get(t);if(i){const t=void 0!==n?i.get(n):this.getActivatedValues(i,e);if(t)return t.get(e)}}hasValue(t,e){const n=this.elementMap.get(t);if(n){const t=this.getActivatedValues(n,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,n,i){let s=this.elementMap.get(t);if(s){const r=(s.get(i)||new Map).set(e,n);s.set(i,r),this.elementMap.set(t,s)}else s=(new Map).set(i,(new Map).set(e,n)),this.elementMap.set(t,s);const r=this.getValue(t,e);void 0!==r&&this.updateElement(t,e,r)}trackValue(t,e){return this.subject.asObservable().pipe(nh(n=>n.element===t&&n.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const n=new Set(this.elementKeyMap.get(e));let i=this.getActivatedValues(t);i&&i.forEach((t,i)=>{this.updateElement(e,i,t),n.delete(i)}),n.forEach(n=>{if(i=this.getActivatedValues(t,n),i){const t=i.get(n);this.updateElement(e,n,t)}else this.clearElement(e,n)})})}clearElement(t,e){const n=this.clearMap.get(t);if(n){const i=n.get(e);i&&(i(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,n){const i=this.updateMap.get(t);if(i){const s=i.get(e);s&&(s(n),this.subject.next({element:t,key:e,value:n}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const n=this.elementMap.get(t);n&&(n.forEach((t,e)=>n.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const n=this.elementMap.get(t);if(n){const i=this.getActivatedValues(n,e);i&&(e?this.updateElement(t,e,i.get(e)):i.forEach((e,n)=>this.updateElement(t,n,e)))}}buildElementKeyMap(t,e){let n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)}watchExtraTriggers(t,e,n){if(n&&n.length){let i=this.watcherMap.get(t);if(i||(i=new Map,this.watcherMap.set(t,i)),!i.get(e)){const s=Y(...n).subscribe(()=>{const n=this.getValue(t,e);this.updateElement(t,e,n)});i.set(e,s)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let i=0;i<this.activatedBreakpoints.length;i++){const n=t.get(this.activatedBreakpoints[i].alias);if(n&&(void 0===e||n.has(e)&&null!=n.get(e)))return n}const n=t.get("");return void 0===e||n&&n.has(e)?n:void 0}observeActivations(){const t=this.breakpoints.items.map(t=>t.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(yh(this.hook.interceptEvents(this)),nh(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(Kt(Zh),Kt(Qh),Kt(Jh))},t.\u0275prov=ut({factory:function(){return new t(Kt(Zh),Kt(Qh),Kt(Jh))},token:t,providedIn:"root"}),t})();function ad(t,e,n,i){if(void 0!==i){let s=t.get(e);s||(s=new Map,t.set(e,s)),s.set(n,i)}}function ld(t){return null!=t&&""+t!="false"}function cd(t){return Array.isArray(t)?t:[t]}function ud(t){return null==t?"":"string"==typeof t?t:t+"px"}function hd(t){return t instanceof ra?t.nativeElement:t}class dd extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new dd,Bc||(Bc=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=pd||(pd=document.querySelector("base"),pd)?pd.getAttribute("href"):null;return null==e?null:(n=e,fd||(fd=document.createElement("a")),fd.setAttribute("href",n),"/"===fd.pathname.charAt(0)?fd.pathname:"/"+fd.pathname);var n}resetBaseElement(){pd=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return function(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,t)}}let fd,pd=null;const md=new Bt("TRANSITION_ID"),gd=[{provide:El,useFactory:function(t,e,n){return()=>{n.get(Sl).donePromise.then(()=>{const n=Hc();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[md,Vc,ao],multi:!0}];class yd{static init(){var t;t=new yd,nc=t}addToWindow(t){It.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},It.getAllAngularTestabilities=()=>t.getAllTestabilities(),It.getAllAngularRootElements=()=>t.getAllRootElements(),It.frameworkStabilizers||(It.frameworkStabilizers=[]),It.frameworkStabilizers.push(t=>{const e=It.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach((function(t){t.whenStable(s)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?Hc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const _d=new Bt("EventManagerPlugins");let vd=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i<n.length;i++){const e=n[i];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(_d),Kt(Wl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class bd{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=Hc().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,n)}}let wd=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),xd=(()=>{class t extends wd{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Hc().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Ed={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/"},Sd=/%COMP%/g;function kd(t,e,n){for(let i=0;i<e.length;i++){let s=e[i];Array.isArray(s)?kd(t,s,n):(s=s.replace(Sd,t),n.push(s))}return n}function Cd(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Td=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Dd(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ue.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Ad(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case ue.Native:case ue.ShadowDom:return new Od(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=kd(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Kt(vd),Kt(xd),Kt(kl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class Dd{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Ed[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=Ed[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=Ed[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&la.DashCase?t.style.setProperty(e,n,i&la.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&la.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Cd(n)):this.eventManager.addEventListener(t,e,Cd(n))}}class Ad extends Dd{constructor(t,e,n,i){super(t),this.component=n;const s=kd(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(Sd,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Sd,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class Od extends Dd{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=i,this.shadowRoot=i.encapsulation===ue.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=kd(i.id,i.styles,[]);for(let r=0;r<s.length;r++){const t=document.createElement("style");t.textContent=s[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let Id=(()=>{class t extends bd{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Md=["alt","control","meta","shift"],Pd={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Rd={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ld={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Fd=(()=>{class t extends bd{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Hc().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(Md.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Rd.hasOwnProperty(e)&&(e=Rd[e]))}return Pd[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Md.forEach(i=>{i!=n&&(0,Ld[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Nd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return Kt(jd)},token:t,providedIn:"root"}),t})(),jd=(()=>{class t extends Nd{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case ts.NONE:return e;case ts.HTML:return Ci(e,"HTML")?ki(e):Xi(this._doc,String(e));case ts.STYLE:return Ci(e,"Style")?ki(e):e;case ts.SCRIPT:if(Ci(e,"Script"))return ki(e);throw new Error("unsafe value used in a script context");case ts.URL:return Ti(e),Ci(e,"URL")?ki(e):Li(String(e));case ts.RESOURCE_URL:if(Ci(e,"ResourceURL"))return ki(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new bi(t)}bypassSecurityTrustStyle(t){return new wi(t)}bypassSecurityTrustScript(t){return new xi(t)}bypassSecurityTrustUrl(t){return new Ei(t)}bypassSecurityTrustResourceUrl(t){return new Si(t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc))},t.\u0275prov=ut({factory:function(){return t=Kt(Ht),new jd(t.get(Vc));var t},token:t,providedIn:"root"}),t})();const Bd=sc(uc,"browser",[{provide:Al,useValue:"browser"},{provide:Dl,useValue:function(){dd.makeCurrent(),yd.init()},multi:!0},{provide:Vc,useFactory:function(){return function(t){He=t}(document),document},deps:[]}]),Hd=[[],{provide:Qr,useValue:"root"},{provide:_i,useFactory:function(){return new _i},deps:[]},{provide:_d,useClass:Id,multi:!0,deps:[Vc,Wl,Al]},{provide:_d,useClass:Fd,multi:!0,deps:[Vc]},[],{provide:Td,useClass:Td,deps:[vd,xd,kl]},{provide:aa,useExisting:Td},{provide:wd,useExisting:xd},{provide:xd,useClass:xd,deps:[Vc]},{provide:Xl,useClass:Xl,deps:[Wl]},{provide:vd,useClass:vd,deps:[_d,Wl]},[]];let Vd=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:kl,useValue:e.appId},{provide:md,useExisting:kl},gd]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Kt(t,12))},providers:Hd,imports:[Gu,dc]}),t})();"undefined"!=typeof window&&window;let $d=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[xh]]}),t})();const zd=new Bt("cdk-dir-doc",{providedIn:"root",factory:function(){return Gt(Vc)}});let Wd=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new ul,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(Kt(zd,8))},t.\u0275prov=ut({factory:function(){return new t(Kt(zd,8))},token:t,providedIn:"root"}),t})(),Yd=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();const Ud="inline",qd=["row","column","row-reverse","column-reverse"];function Qd(t){t=t?t.toLowerCase():"";let[e,n,i]=t.split(" ");return qd.find(t=>t===e)||(e=qd[0]),n===Ud&&(n=i!==Ud?i:"",i=Ud),[e,Kd(n),!!i]}function Zd(t){let[e]=Qd(t);return e.indexOf("row")>-1}function Kd(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let Gd=(()=>{class t extends id{buildStyles(t){return function(t){let[e,n,i]=Qd(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,i)}(t)}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"});const e=pi(t);return t})();const Xd=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let Jd=(()=>{class t extends Ph{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="layout",this.styleCache=ef,this.init()}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(nd),xo(Gd),xo(od))},t.\u0275dir=be({type:t,features:[Go]}),t})(),tf=(()=>{class t extends Jd{constructor(){super(...arguments),this.inputs=Xd}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=be({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Go]});const e=pi(t);return t})();const ef=new Map;function nf(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}let sf=(()=>{class t extends id{constructor(t){super(),this.layoutConfig=t}buildStyles(t,e){let[n,i,...s]=t.split(" "),r=s.join(" ");const o=e.direction.indexOf("column")>-1?"column":"row",a=Zd(o)?"max-width":"max-height",l=Zd(o)?"min-width":"min-height",c=String(r).indexOf("calc")>-1,u=c||"auto"===r,h=String(r).indexOf("%")>-1&&!c,d=String(r).indexOf("px")>-1||String(r).indexOf("rem")>-1||String(r).indexOf("em")>-1||String(r).indexOf("vw")>-1||String(r).indexOf("vh")>-1;let f=c||d;n="0"==n?0:n,i="0"==i?0:i;const p=!n&&!i;let m={};const g={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(r||""){case"":const t=!1!==this.layoutConfig.useColumnBasisZero;r="row"===o?"0%":t?"0.000000001px":"auto";break;case"initial":case"nogrow":n=0,r="auto";break;case"grow":r="100%";break;case"noshrink":i=0,r="auto";break;case"auto":break;case"none":n=0,i=0,r="auto";break;default:f||h||isNaN(r)||(r+="%"),"0%"===r&&(f=!0),"0px"===r&&(r="0%"),m=nf(g,c?{"flex-grow":n,"flex-shrink":i,"flex-basis":f?r:"100%"}:{flex:`${n} ${i} ${f?r:"100%"}`})}return m.flex||m["flex-grow"]||(m=nf(g,c?{"flex-grow":n,"flex-shrink":i,"flex-basis":r}:{flex:`${n} ${i} ${r}`})),"0%"!==r&&"0px"!==r&&"0.000000001px"!==r&&"auto"!==r&&(m[l]=p||f&&n?r:null,m[a]=p||!u&&i?r:null),m[l]||m[a]?e.hasWrap&&(m[c?"flex-basis":"flex"]=m[a]?c?m[a]:`${n} ${i} ${m[a]}`:c?m[l]:`${n} ${i} ${m[l]}`):m=nf(g,c?{"flex-grow":n,"flex-shrink":i,"flex-basis":r}:{flex:`${n} ${i} ${r}`}),nf(m,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(Kt(Ch))},t.\u0275prov=ut({factory:function(){return new t(Kt(Ch))},token:t,providedIn:"root"}),t})();const rf=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let of=(()=>{class t extends Ph{constructor(t,e,n,i,s){super(t,i,e,s),this.layoutConfig=n,this.marshal=s,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(t){this.flexShrink=t||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(t){this.flexGrow=t||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(ch(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(ch(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(t){const e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()}updateWithValue(t){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const e=this.direction,n=e.startsWith("row"),i=this.wrap;n&&i?this.styleCache=uf:n&&!i?this.styleCache=lf:!n&&i?this.styleCache=hf:n||i||(this.styleCache=cf);const s=sd(String(t).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(s.join(" "),{direction:e,hasWrap:i})}triggerReflow(){const t=this.activatedValue;if(void 0!==t){const e=sd(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(nd),xo(Ch),xo(sf),xo(od))},t.\u0275dir=be({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Go]}),t})(),af=(()=>{class t extends of{constructor(){super(...arguments),this.inputs=rf}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=be({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[Go]});const e=pi(t);return t})();const lf=new Map,cf=new Map,uf=new Map,hf=new Map;let df=(()=>{class t extends id{buildStyles(t,e){const n={},[i,s]=t.split(" ");switch(i){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(s){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return nf(n,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===s?Zd(e.layout)?null:"100%":null,"max-height":"stretch"===s&&Zd(e.layout)?"100%":null})}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"});const e=pi(t);return t})();const ff=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let pf=(()=>{class t extends Ph{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(ch(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(t){const e=this.layout||"row",n=this.inline;"row"===e&&n?this.styleCache=bf:"row"!==e||n?"row-reverse"===e&&n?this.styleCache=xf:"row-reverse"!==e||n?"column"===e&&n?this.styleCache=wf:"column"!==e||n?"column-reverse"===e&&n?this.styleCache=Ef:"column-reverse"!==e||n||(this.styleCache=vf):this.styleCache=yf:this.styleCache=_f:this.styleCache=gf,this.addStyles(t,{layout:e,inline:n})}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],this.inline=t.value.includes("inline"),qd.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(nd),xo(df),xo(od))},t.\u0275dir=be({type:t,features:[Go]}),t})(),mf=(()=>{class t extends pf{constructor(){super(...arguments),this.inputs=ff}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=be({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[Go]});const e=pi(t);return t})();const gf=new Map,yf=new Map,_f=new Map,vf=new Map,bf=new Map,wf=new Map,xf=new Map,Ef=new Map;let Sf=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[xh,Yd]]}),t})(),kf=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[xh]]}),t})(),Cf=(()=>{class t{constructor(t,e){Ju(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,n=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:Ch,useValue:Object.assign(Object.assign({},kh),e)},{provide:Dh,useValue:n,multi:!0},{provide:Th,useValue:!0}]:[{provide:Ch,useValue:Object.assign(Object.assign({},kh),e)},{provide:Dh,useValue:n,multi:!0}]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Kt(Th),Kt(Al))},imports:[[Sf,$d,kf],Sf,$d,kf]}),t})();function Tf(t,e){return new _(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a<i;a++){const l=F(t[a]);let c=!1;n.add(l.subscribe({next:t=>{c||(c=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&c||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}let Df=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Af=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),Of=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Df],imports:[Af]}),t})();class If{}const Mf="*";function Pf(t,e){return{type:7,name:t,definitions:e,options:{}}}function Rf(t,e=null){return{type:4,styles:e,timings:t}}function Lf(t,e=null){return{type:2,steps:t,options:e}}function Ff(t){return{type:6,styles:t,offset:null}}function Nf(t,e,n){return{type:0,name:t,styles:e,options:n}}function jf(t){return{type:5,steps:t}}function Bf(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function Hf(t){Promise.resolve(null).then(t)}class Vf{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Hf(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class $f{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?Hf(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function zf(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Wf(t){switch(t.length){case 0:return new Vf;case 1:return t[0];default:return new $f(t)}}function Yf(t,e,n,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(t=>{const n=t.offset,i=n==l,u=i&&c||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),a){case"!":a=s[n];break;case Mf:a=r[n];break;default:a=e.normalizeStyleValue(n,i,a,o)}u[i]=a}),i||a.push(u),c=u,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Uf(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&qf(n,"start",t)));break;case"done":t.onDone(()=>i(n&&qf(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&qf(n,"destroy",t)))}}function qf(t,e,n){const i=n.totalTime,s=Qf(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function Qf(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function Zf(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function Kf(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Gf=(t,e)=>!1,Xf=(t,e)=>!1,Jf=(t,e,n)=>[];const tp=zf();(tp||"undefined"!=typeof Element)&&(Gf=(t,e)=>t.contains(e),Xf=(()=>{if(tp||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):Xf}})(),Jf=(t,e,n)=>{let i=[];if(n)i.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&i.push(n)}return i});let ep=null,np=!1;function ip(t){ep||(ep=("undefined"!=typeof document?document.body:null)||{},np=!!ep.style&&"WebkitAppearance"in ep.style);let e=!0;return ep.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in ep.style,!e&&np)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in ep.style),e}const sp=Xf,rp=Gf,op=Jf;function ap(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let lp=(()=>{class t{validateStyleProperty(t){return ip(t)}matchesElement(t,e){return sp(t,e)}containsElement(t,e){return rp(t,e)}query(t,e,n){return op(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,r=[],o){return new Vf(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),cp=(()=>{class t{}return t.NOOP=new lp,t})();const up="ng-enter",hp="ng-leave",dp="ng-trigger",fp=".ng-trigger",pp="ng-animating",mp=".ng-animating";function gp(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:yp(parseFloat(e[1]),e[2])}function yp(t,e){switch(e){case"s":return 1e3*t;default:return t}}function _p(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=yp(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=yp(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function vp(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function bp(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else vp(t,n);return n}function wp(t,e,n){return n?e+":"+n+";":""}function xp(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=wp(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=wp(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function Ep(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const s=Ip(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),zf()&&xp(t))}function Sp(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Ip(e);t.style[n]=""}),zf()&&xp(t))}function kp(t){return Array.isArray(t)?1==t.length?t[0]:Lf(t):t}const Cp=new RegExp("{{\\s*(.+?)\\s*}}","g");function Tp(t){let e=[];if("string"==typeof t){let n;for(;n=Cp.exec(t);)e.push(n[1]);Cp.lastIndex=0}return e}function Dp(t,e,n){const i=t.toString(),s=i.replace(Cp,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),s=""),s.toString()});return s==i?t:s}function Ap(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const Op=/-+([a-z0-9])/g;function Ip(t){return t.replace(Op,(...t)=>t[1].toUpperCase())}function Mp(t,e){return 0===t||0===e}function Pp(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;s<e.length;s++){let n=e[s];o.forEach((function(e){n[e]=Lp(t,e)}))}}return e}function Rp(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function Lp(t,e){return window.getComputedStyle(t)[e]}const Fp="*";function Np(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(Hp(s,o)),"<"!=r[0]||s==Fp&&o==Fp||e.push(Hp(o,s))}(t,n,e)):n.push(t),n}const jp=new Set(["true","1"]),Bp=new Set(["false","0"]);function Hp(t,e){const n=jp.has(t)||Bp.has(t),i=jp.has(e)||Bp.has(e);return(s,r)=>{let o=t==Fp||t==s,a=e==Fp||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?jp.has(t):Bp.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?jp.has(e):Bp.has(e)),o&&a}}const Vp=new RegExp("s*:selfs*,?","g");function $p(t,e,n){return new zp(t).build(e,n)}class zp{constructor(t){this._driver=t}build(t,e){const n=new Wp(e);return this._resetContextStyleTimingState(n),Rp(this,kp(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(Yp(t)){const e=t;Object.keys(e).forEach(t=>{Tp(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=Ap(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Rp(this,kp(t.animation),e);return{type:1,matchers:Np(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Up(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Rp(this,t,e)),options:Up(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=Rp(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:Up(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return qp(_p(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=qp(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||_p(i,e),qp(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:Ff({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};n.easing&&(t.easing=n.easing),s=Ff(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==Mf?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(Yp(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=Tp(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Yp(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(Yp(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c<a,a=c,s.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let u=0;i>0&&i<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(u=1/(c-1));const h=c-1,d=e.currentTime,f=e.currentAnimateTimings,p=f.duration;return l.forEach((t,i)=>{const r=u>0?i==h?1:u*i:s[i],o=r*p;e.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Rp(this,kp(t.animation),e),options:Up(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Up(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Up(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Vp,"")),[t=t.replace(/@\*/g,fp).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,mp),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,Zf(e.collectedStyles,e.currentQuerySelector,{});const o=Rp(this,kp(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:Up(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:_p(t.timings,e.errors,!0);return{type:12,animation:Rp(this,kp(t.animation),e),timings:n,options:null}}}class Wp{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Yp(t){return!Array.isArray(t)&&"object"==typeof t}function Up(t){var e;return t?(t=vp(t)).params&&(t.params=(e=t.params)?vp(e):null):t={},t}function qp(t,e,n){return{duration:t,delay:e,easing:n}}function Qp(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Zp{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Kp=new RegExp(":enter","g"),Gp=new RegExp(":leave","g");function Xp(t,e,n,i,s,r={},o={},a,l,c=[]){return(new Jp).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class Jp{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new Zp;const u=new em(t,e,l,i,s,c,[]);u.options=a,u.currentTimeline.setStyles([r],null,u.errors,a),Rp(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Qp(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?gp(n.duration):null,r=null!=n.delay?gp(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),Rp(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=tm);const t=gp(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Rp(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?gp(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),Rp(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return _p(e.params?Dp(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?gp(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=tm);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),Rp(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Rp(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const tm={};class em{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=tm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new nm(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=gp(n.duration)),null!=n.delay&&(i.delay=gp(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=Dp(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new em(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=tm,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new im(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(Kp,"."+this._enterClassName)).replace(Gp,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class nm{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new nm(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Mf,this._currentKeyframe[t]=Mf}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},r=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=Mf})):bp(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=Dp(r[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Mf),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,r)=>{const o=bp(s,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):i==Mf&&e.add(n)}),n||(o.offset=r/this.duration),i.push(o)});const s=t.size?Ap(t.values()):[],r=e.size?Ap(e.values()):[];if(n){const t=i[0],e=vp(t);t.offset=0,e.offset=1,i=[t,e]}return Qp(this.element,i,s,r,this.duration,this.startTime,this.easing,!1)}}class im extends nm{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=bp(t[0],!1);a.offset=0,s.push(a);const l=bp(t[0],!1);l.offset=sm(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=bp(t[i],!1);o.offset=sm((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return Qp(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function sm(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class rm{}class om extends rm{normalizePropertyName(t,e){return Ip(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(am[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const am=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function lm(t,e,n,i,s,r,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const cm={};class um{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||cm,d=this.buildStyles(n,o&&o.params||cm,u),f=a&&a.params||cm,p=this.buildStyles(i,f,u),m=new Set,g=new Map,y=new Map,_="void"===i,v={params:Object.assign(Object.assign({},h),f)},b=c?[]:Xp(t,e,this.ast.animation,s,r,d,p,v,l,u);let w=0;if(b.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),u.length)return lm(e,this._triggerName,n,i,_,d,p,[],[],g,y,w,u);b.forEach(t=>{const n=t.element,i=Zf(g,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=Zf(y,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&m.add(n)});const x=Ap(m.values());return lm(e,this._triggerName,n,i,_,d,p,b,x,g,y,w)}}class hm{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=vp(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Dp(r,i,e)),n[t]=r})}}),n}}class dm{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new hm(t.style,t.options&&t.options.params||{})}),fm(this.states,"true","1"),fm(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new um(t,e,this.states))}),this.fallbackTransition=new um(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function fm(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const pm=new Zp;class mm{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=$p(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=Yf(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let r;const o=new Map;if(s?(r=Xp(this._driver,e,s,up,hp,{},{},n,pm,i),r.forEach(t=>{const e=Zf(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),r=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,Mf)})});const a=Wf(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,i){const s=Qf(e,"","","");return Uf(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const gm="ng-animate-queued",ym="ng-animate-disabled",_m=".ng-animate-disabled",vm=[],bm={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wm={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class xm{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=vp(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Em="void",Sm=new xm(Em);class km{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Mm(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=Zf(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=Zf(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Mm(t,dp),Mm(t,"ng-trigger-"+e),a[e]=Sm),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new Tm(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Mm(t,dp),Mm(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new xm(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Sm),l.value!==Em&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s<n.length;s++){const i=n[s];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(a.params,l.params)){const e=[],n=s.matchStyles(a.value,a.params,e),i=s.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{Sp(t,n),Ep(t,i)})}return}const c=Zf(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:r,isFallbackTransition:h}),h||(Mm(t,gm),r.onStart(()=>{Pm(t,gm)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,fp,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,Em,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Wf(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const s=this._triggers[i].fallbackTransition,r=this._engine.statesByElement.get(t)[i]||Sm,o=new xm(Em),a=new Tm(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:s,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==bm||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Mm(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=Qf(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,Uf(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Cm{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new km(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const s=n[t[i]].namespaceId;if(s){const t=this._fetchNamespace(s);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(Dm(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!Dm(e))return;const s=e.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Mm(t,ym)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Pm(t,ym))}removeNode(t,e,n,i){if(Dm(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Dm(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,fp,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,mp,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Wf(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=bm,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,_m)&&this.markElementAsDisabled(t,!1),this.driver.query(t,_m,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Mm(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Wf(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new Zp,i=[],s=new Map,r=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=Im(h,this.collectedEnterElements),f=new Map;let p=0;d.forEach((t,e)=>{const n=up+p++;f.set(e,n),t.forEach(t=>Mm(t,n))});const m=[],g=new Set,y=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const t=this.collectedLeaveElements[O],e=t.__ng_removed;e&&e.setForRemoval&&(m.push(t),g.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>g.add(t)):y.add(t))}const _=new Map,v=Im(h,Array.from(g));v.forEach((t,e)=>{const n=hp+p++;_.set(e,n),t.forEach(t=>Mm(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=f.get(e);t.forEach(t=>Pm(t,n))}),v.forEach((t,e)=>{const n=_.get(e);t.forEach(t=>Pm(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const b=[],w=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(b.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!u||!this.driver.containsElement(u,s),h=_.get(s),d=f.get(s),p=this._buildInstruction(t,n,d,h,c);if(p.errors&&p.errors.length)w.push(p);else{if(c)return e.onStart(()=>Sp(s,p.fromStyles)),e.onDestroy(()=>Ep(s,p.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>Sp(s,p.fromStyles)),e.onDestroy(()=>Ep(s,p.toStyles)),void i.push(e);p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,p.timelines),r.push({instruction:p,player:e,element:s}),p.queriedElements.forEach(t=>Zf(o,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),p.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=l.get(e);i||l.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const x=new Map,E=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,x))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Zf(x,e,[]).push(t),t.destroy()})});const S=m.filter(t=>Lm(t,a,l)),k=new Map;Om(k,this.driver,y,l,Mf).forEach(t=>{Lm(t,a,l)&&S.push(t)});const C=new Map;d.forEach((t,e)=>{Om(C,this.driver,new Set(t),a,"!")}),S.forEach(t=>{const e=k.get(t),n=C.get(t);k.set(t,Object.assign(Object.assign({},e),n))});const T=[],D=[],A={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>Ep(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=A;if(E.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>E.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,x,s,C,k);if(r.setRealPlayer(n),t===A)T.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Wf(e)),i.push(r)}}else Sp(e,o.fromStyles),r.onDestroy(()=>Ep(e,o.toStyles)),D.push(r),c.has(e)&&i.push(r)}),D.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=Wf(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let O=0;O<m.length;O++){const t=m[O],e=t.__ng_removed;if(Pm(t,hp),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,mp,!0);for(let t=0;t<i.length;t++){let e=o.get(i[t]);e&&e.length&&n.push(...e)}}const i=n.filter(t=>!t.destroyed);i.length?Rm(this,t,i):this.processLeaveNode(t)}return m.length=0,T.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),T}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==Em;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=Zf(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Sp(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,r){const o=e.triggerName,a=e.element,l=[],c=new Set,u=new Set,h=e.timelines.map(e=>{const h=e.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Vf(e.duration,e.delay);const f=h!==a,p=function(t){const e=[];return function t(e,n){for(let i=0;i<e.length;i++){const s=e[i];s instanceof $f?t(s.players,n):n.push(s)}}(t,e),e}((n.get(h)||vm).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),m=s.get(h),g=r.get(h),y=Yf(0,this._normalizer,0,e.keyframes,m,g),_=this._buildPlayer(e,y,p);if(e.subTimeline&&i&&u.add(h),f){const e=new Tm(t,o,h);e.setRealPlayer(_),l.push(e)}return _});l.forEach(t=>{Zf(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Mm(t,pp));const d=Wf(h);return d.onDestroy(()=>{c.forEach(t=>Pm(t,pp)),Ep(a,e.toStyles)}),u.forEach(t=>{Zf(i,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Vf(t.duration,t.delay)}}class Tm{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Vf,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Uf(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Zf(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Dm(t){return t&&1===t.nodeType}function Am(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Om(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Am(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=wm,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Am(t,r[a++])),o}function Im(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let r=s.get(e);if(r)return r;const o=e.parentNode;return r=n.has(o)?o:i.has(o)?1:t(o),s.set(e,r),r}(t);1!==e&&n.get(e).push(t)}),n}function Mm(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Pm(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Rm(t,e,n){Wf(n).onDone(()=>t.processLeaveNode(e))}function Lm(t,e,n){const i=n.get(t);if(!i)return!1;let s=e.get(t);return s?i.forEach(t=>s.add(t)):e.set(t,i),n.delete(t),!0}class Fm{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Cm(t,e,n),this._timelineEngine=new mm(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=$p(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new dm(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=Kf(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=Kf(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Nm(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Bm(e[0]),e.length>1&&(i=Bm(e[e.length-1]))):e&&(n=Bm(e)),n||i?new jm(t,n,i):null}let jm=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Ep(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ep(this._element,this._initialStyles),this._endStyles&&(Ep(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Sp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Sp(this._element,this._endStyles),this._endStyles=null),Ep(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Bm(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const s=n[i];Hm(s)&&(e=e||{},e[s]=t[s])}return e}function Hm(t){return"display"===t||"position"===t}const Vm="animation",$m="animationend";class zm{constructor(t,e,n,i,s,r,o){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=s,this._fillMode=r,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Zm(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i<t.length;i++)","===t.charAt(i)&&n++}(n),e=`${n}, ${e}`),Qm(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),qm(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Wm(this._element,this._name,"paused")}resume(){Wm(this._element,this._name,"running")}setPosition(t){const e=Ym(this._element,this._name);this._position=t*this._duration,Qm(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),qm(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Zm(t,"").split(","),i=Um(n,e);i>=0&&(n.splice(i,1),Qm(t,"",n.join(",")))}(this._element,this._name))}}function Wm(t,e,n){Qm(t,"PlayState",n,Ym(t,e))}function Ym(t,e){const n=Zm(t,"");return n.indexOf(",")>0?Um(n.split(","),e):Um([n],e)}function Um(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function qm(t,e,n){n?t.removeEventListener($m,e):t.addEventListener($m,e)}function Qm(t,e,n,i){const s=Vm+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function Zm(t,e){return t.style[Vm+e]}class Km{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new zm(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:Lp(this.element,n))})}this.currentSnapshot=t}}class Gm extends Vf{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=ap(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Xm{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return ip(t)}matchesElement(t,e){return sp(t,e)}containsElement(t,e){return rp(t,e)}query(t,e,n){return op(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>ap(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=s+"}\n"}),i+="}\n";const r=document.createElement("style");return r.innerHTML=i,r}animate(t,e,n,i,s,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof Km),l={};Mp(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Pp(t,e,l));if(0==n)return new Gm(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=Nm(t,e),f=new Km(t,e,u,n,i,s,c,d);return f.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),f}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class Jm{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Lp(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class tg{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(eg().toString()),this._cssKeyframesDriver=new Xm}validateStyleProperty(t){return ip(t)}matchesElement(t,e){return sp(t,e)}containsElement(t,e){return rp(t,e)}query(t,e,n){return op(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof Jm);Mp(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=Nm(t,e=Pp(t,e=e.map(t=>bp(t,!1)),l));return new Jm(t,e,a,u)}}function eg(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let ng=(()=>{class t extends If{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:ue.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Lf(t):t;return rg(this._renderer,null,e,"register",[n]),new ig(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Kt(aa),Kt(Vc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class ig extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new sg(this._id,t,e||{},this._renderer)}}class sg{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return rg(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function rg(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}const og="@",ag="@.disabled";let lg=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new cg("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new ug(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Kt(aa),Kt(Fm),Kt(Wl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class cg{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==og&&e==ag?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class ug extends cg{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==og?"."==e.charAt(1)&&e==ag?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==og){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return s.charAt(0)!=og&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let hg=(()=>{class t extends Fm{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc),Kt(cp),Kt(rm))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const dg=new Bt("AnimationModuleType"),fg=[{provide:cp,useFactory:function(){return"function"==typeof eg()?new tg:new Xm}},{provide:dg,useValue:"BrowserAnimations"},{provide:If,useClass:ng},{provide:rm,useFactory:function(){return new om}},{provide:Fm,useClass:hg},{provide:aa,useFactory:function(t,e,n){return new lg(t,e,n)},deps:[Td,Fm,Wl]}];let pg=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:fg,imports:[Vd]}),t})();var mg=function(){return(mg=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},gg=/\s+/,yg=new(function(){function t(){}return t.prototype.getAllStyles=function(t){return window.getComputedStyle(t)},t.prototype.getStyle=function(t,e){return this.getAllStyles(t)[e]},t.prototype.isStaticPositioned=function(t){return"static"===(this.getStyle(t,"position")||"static")},t.prototype.offsetParent=function(t){for(var e=t.offsetParent||document.documentElement;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement},t.prototype.position=function(t,e){var n;void 0===e&&(e=!0);var i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n={top:(n=t.getBoundingClientRect()).top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{var s=this.offsetParent(t);n=this.offset(t,!1),s!==document.documentElement&&(i=this.offset(s,!1)),i.top+=s.clientTop,i.left+=s.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n},t.prototype.offset=function(t,e){void 0===e&&(e=!0);var n=t.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,s=window.pageXOffset-document.documentElement.clientLeft,r={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+s,right:n.right+s};return e&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r},t.prototype.positionElements=function(t,e,n,i){var s=n.split("-"),r=s[0],o=void 0===r?"top":r,a=s[1],l=void 0===a?"center":a,c=i?this.offset(t,!1):this.position(t,!1),u=this.getAllStyles(e),h=parseFloat(u.marginTop),d=parseFloat(u.marginBottom),f=parseFloat(u.marginLeft),p=parseFloat(u.marginRight),m=0,g=0;switch(o){case"top":m=c.top-(e.offsetHeight+h+d);break;case"bottom":m=c.top+c.height;break;case"left":g=c.left-(e.offsetWidth+f+p);break;case"right":g=c.left+c.width}switch(l){case"top":m=c.top;break;case"bottom":m=c.top+c.height-e.offsetHeight;break;case"left":g=c.left;break;case"right":g=c.left+c.width-e.offsetWidth;break;case"center":"top"===o||"bottom"===o?g=c.left+c.width/2-e.offsetWidth/2:m=c.top+c.height/2-e.offsetHeight/2}e.style.transform="translate("+Math.round(g)+"px, "+Math.round(m)+"px)";var y=e.getBoundingClientRect(),_=document.documentElement,v=window.innerHeight||_.clientHeight,b=window.innerWidth||_.clientWidth;return y.left>=0&&y.top>=0&&y.right<=b&&y.bottom<=v},t}());function _g(t){return!l(t)&&t-parseFloat(t)+1>=0}function vg(t=0,e,n){let i=-1;return _g(e)?i=Number(e)<1?1:Number(e):k(e)&&(n=e),k(n)||(n=rh),new _(e=>{const s=_g(t)?t:+t-n.now();return n.schedule(bg,s,{index:0,period:i,subscriber:e})})}function bg(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function wg(...t){return z(1)(xc(...t))}function xg(...t){const e=t[t.length-1];return k(e)?(t.pop(),n=>wg(t,n,e)):e=>wg(t,e)}var Eg=function(){return(Eg=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},Sg=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),s=0;for(e=0;e<n;e++)for(var r=arguments[e],o=0,a=r.length;o<a;o++,s++)i[s]=r[o];return i},kg=function(t){return t[t.SUNDAY=0]="SUNDAY",t[t.MONDAY=1]="MONDAY",t[t.TUESDAY=2]="TUESDAY",t[t.WEDNESDAY=3]="WEDNESDAY",t[t.THURSDAY=4]="THURSDAY",t[t.FRIDAY=5]="FRIDAY",t[t.SATURDAY=6]="SATURDAY",t}({}),Cg=[kg.SUNDAY,kg.SATURDAY],Tg=86400;function Dg(t,e){var n=e.startDate,i=e.excluded,s=e.precision;if(i.length<1)return 0;for(var r=t.getDay,o=t.addDays,a=(0,t.addSeconds)(n,e.seconds-1),l=r(n),c=r(a),u=0,h=n,d=function(){var e=r(h);i.some((function(t){return t===e}))&&(u+=function(t,e){var n=e.day,i=e.dayEnd,s=e.startDate,r=e.endDate,o=t.differenceInSeconds,a=t.startOfDay;if("minutes"===e.precision){if(n===e.dayStart)return o((0,t.endOfDay)(s),s)+1;if(n===i)return o(r,a(r))+1}return Tg}(t,{dayStart:l,dayEnd:c,day:e,precision:s,startDate:n,endDate:a})),h=o(h,1)};h<a;)d();return u}function Ag(t,e){var n=e.periodStart,i=e.periodEnd;return e.events.filter((function(e){return function(t,e){var n=e.event,i=e.periodStart,s=e.periodEnd,r=t.isSameSecond,o=n.start,a=n.end||n.start;return o>i&&o<s||a>i&&a<s||o<i&&a>s||!(!r(o,i)&&!r(o,s))||!(!r(a,i)&&!r(a,s))}(t,{event:e,periodStart:n,periodEnd:i})}))}function Og(t,e){var n=e.date,i=e.weekendDays,s=void 0===i?Cg:i,r=t.isSameDay,o=t.getDay,a=(0,t.startOfDay)(new Date),l=o(n);return{date:n,day:l,isPast:n<a,isToday:r(n,a),isFuture:n>a,isWeekend:s.indexOf(l)>-1}}function Ig(t,e){for(var n=e.excluded,i=void 0===n?[]:n,s=e.weekendDays,r=e.viewStart,o=void 0===r?t.startOfWeek(e.viewDate,{weekStartsOn:e.weekStartsOn}):r,a=e.viewEnd,l=void 0===a?t.addDays(o,7):a,c=t.addDays,u=t.getDay,h=[],d=o;d<l;)i.some((function(t){return u(d)===t}))||h.push(Og(t,{date:d,weekendDays:s})),d=c(d,1);return h}function Mg(t,e){var n=e.events,i=void 0===n?[]:n,s=e.excluded,r=void 0===s?[]:s,o=e.precision,a=void 0===o?"days":o,l=e.absolutePositionedEvents,c=void 0!==l&&l,u=e.viewStart,h=e.viewEnd;u=t.startOfDay(u),h=t.endOfDay(h);var d=t.differenceInSeconds,f=t.differenceInDays,p=function(t,e){for(var n=e.date2,i=e.excluded,s=e.date1,r=0;s<n;)-1===i.indexOf(t.getDay(s))&&r++,s=t.addDays(s,1);return r}(t,{date1:u,date2:h,excluded:r}),m=f(h,u)+1,g=i.filter((function(t){return t.allDay})).map((function(e){var n=function(t,e){var n=e.event,i=e.startOfWeek,s=e.excluded,r=e.precision,o=t.differenceInDays,a=t.startOfDay,l=t.differenceInSeconds;if(n.start<i)return 0;var c=0;switch(r){case"days":c=o(a(n.start),i)*Tg;break;case"minutes":c=l(n.start,i)}return c-=Dg(t,{startDate:i,seconds:c,excluded:s,precision:r}),Math.abs(c/Tg)}(t,{event:e,startOfWeek:u,excluded:r,precision:a});return{event:e,offset:n,span:function(t,e){var n=e.event,i=e.offset,s=e.excluded,r=e.precision,o=e.totalDaysInView,a=t.differenceInSeconds,l=t.addDays,c=t.endOfDay,u=t.differenceInDays,h=Tg,d=(0,t.max)([n.start,e.startOfWeekDate]);if(n.end)switch(r){case"minutes":h=a(n.end,d);break;default:h=u(l(c(n.end),1),d)*Tg}var f=i*Tg,p=o*Tg;return f+h>p&&(h=p-f),(h-=Dg(t,{startDate:d,seconds:h,excluded:s,precision:r}))/Tg}(t,{event:e,offset:n,startOfWeekDate:u,excluded:r,precision:a,totalDaysInView:m})}})).filter((function(t){return t.offset<p})).filter((function(t){return t.span>0})).map((function(t){return{event:t.event,offset:t.offset,span:t.span,startsBeforeWeek:t.event.start<u,endsAfterWeek:(t.event.end||t.event.start)>h}})).sort((function(t,e){var n=d(t.event.start,e.event.start);return 0===n?d(e.event.end||e.event.start,t.event.end||t.event.start):n})),y=[],_=[];return g.forEach((function(t,e){if(-1===_.indexOf(t)){_.push(t);var n=t.span+t.offset,i=g.slice(e+1).filter((function(t){if(t.offset>=n&&n+t.span<=m&&-1===_.indexOf(t)){var e=t.offset-n;return c||(t.offset=e),n+=t.span+e,_.push(t),!0}})),s=Sg([t],i),r=s.filter((function(t){return t.event.id})).map((function(t){return t.event.id})).join("-");y.push(Eg({row:s},r?{id:r}:{}))}})),y}function Pg(t,e){var n=e.events,i=e.viewDate,s=e.hourSegments,r=e.hourDuration,o=e.dayStart,a=e.dayEnd,l=e.weekStartsOn,c=e.excluded,u=e.weekendDays,h=e.segmentHeight,d=e.viewStart,f=e.viewEnd,p=e.minimumEventHeight,m=function(t,e){var n=e.viewDate,i=e.hourSegments,s=e.hourDuration,r=e.dayStart,o=e.dayEnd,a=t.setMinutes,l=t.setHours,c=t.startOfDay,u=t.startOfMinute,h=t.endOfDay,d=t.addMinutes,f=t.addDays,p=[],m=a(l(c(n),Lg(r.hour)),Fg(r.minute)),g=a(l(u(h(n)),Lg(o.hour)),Fg(o.minute)),y=(s||60)/i,_=c(n),v=h(n),b=function(t){return t};_.getTimezoneOffset()!==v.getTimezoneOffset()&&(_=f(_,1),m=f(m,1),g=f(g,1),b=function(t){return f(t,-1)});for(var w=s?1440/s:60,x=0;x<w;x++){for(var E=[],S=0;S<i;S++){var k=d(d(m,x*(s||60)),S*y);k>=m&&k<g&&E.push({date:b(k),displayDate:k,isStart:0===S})}E.length>0&&p.push({segments:E})}return p}(t,{viewDate:i,hourSegments:s,hourDuration:r,dayStart:o,dayEnd:a}),g=Ig(t,{viewDate:i,weekStartsOn:l,excluded:c,weekendDays:u,viewStart:d,viewEnd:f}),y=t.setHours,_=t.setMinutes,v=t.getHours,b=t.getMinutes;return g.map((function(e){var i=function(t,e){var n=e.events,i=e.viewDate,s=e.hourSegments,r=e.dayStart,o=e.dayEnd,a=e.eventWidth,l=e.segmentHeight,c=e.hourDuration,u=e.minimumEventHeight,h=t.setMinutes,d=t.setHours,f=t.startOfDay,p=t.startOfMinute,m=t.endOfDay,g=t.differenceInMinutes,y=h(d(f(i),Lg(r.hour)),Fg(r.minute)),_=h(d(p(m(i)),Lg(o.hour)),Fg(o.minute));_.setSeconds(59,999);var v=[],b=Ag(t,{events:n.filter((function(t){return!t.allDay})),periodStart:y,periodEnd:_}),w=b.sort((function(t,e){return t.start.valueOf()-e.start.valueOf()})).map((function(t){var e=t.start,n=t.end||e,i=e<y,r=n>_,o=s*l/(c||60),h=0;if(e>y){var d=e.getTimezoneOffset(),f=y.getTimezoneOffset()-d;h+=g(e,y)+f}h*=o,h=Math.floor(h);var p=i?y:e,m=r?_:n,b=p.getTimezoneOffset()-m.getTimezoneOffset(),w=g(m,p)+b;t.end?w*=o:w=l,u&&w<u&&(w=u),w=Math.floor(w);for(var x=Rg(v,h,h+w),E=0;x.some((function(t){return t.left===E}));)E+=a;var S={event:t,height:w,width:a,top:h,left:E,startsBeforeDay:i,endsAfterDay:r};return v.push(S),S})),x=Math.max.apply(Math,w.map((function(t){return t.left+t.width})));return{events:w,width:x,allDayEvents:Ag(t,{events:n.filter((function(t){return t.allDay})),periodStart:f(y),periodEnd:m(_)}),period:{events:b,start:y,end:_}}}(t,{events:n,viewDate:e.date,hourSegments:s,dayStart:o,dayEnd:a,segmentHeight:h,eventWidth:1,hourDuration:r,minimumEventHeight:p}),l=m.map((function(t){var n=t.segments.map((function(t){var n=_(y(e.date,v(t.date)),b(t.date));return Eg(Eg({},t),{date:n})}));return Eg(Eg({},t),{segments:n})})),c=i.events.map((function(t){var e=100/function t(e,n){var i=Math.max.apply(Math,n.map((function(t){return t.left+1}))),s=e.filter((function(t){return t.left>=i})).filter((function(t){return Rg(n,t.top,t.top+t.height).length>0}));return s.length>0?t(e,s):i}(i.events,Rg(i.events,t.top,t.top+t.height));return Eg(Eg({},t),{left:t.left*e,width:e})}));return{hours:l,date:e.date,events:c.map((function(t){var e=Rg(c.filter((function(e){return e.left>t.left})),t.top,t.top+t.height);return e.length>0?Eg(Eg({},t),{width:Math.min.apply(Math,e.map((function(t){return t.left})))-t.left}):t}))}}))}function Rg(t,e,n){return t.filter((function(t){var i=t.top,s=t.top+t.height;return e<s&&s<n||e<i&&i<n||i<=e&&n<=s}))}function Lg(t){return Math.max(Math.min(23,t),0)}function Fg(t){return Math.max(Math.min(59,t),0)}var Ng=function(t){return t.NotArray="Events must be an array",t.StartPropertyMissing="Event is missing the `start` property",t.StartPropertyNotDate="Event `start` property should be a javascript date object. Do `new Date(event.start)` to fix it.",t.EndPropertyNotDate="Event `end` property should be a javascript date object. Do `new Date(event.end)` to fix it.",t.EndsBeforeStart="Event `start` property occurs after the `end`",t}({});class jg extends p{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Bg extends p{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Hg(t,e,n,i,s=new Bg(t,n,i)){if(!s.closed)return e instanceof _?e.subscribe(s):R(e)(s)}const Vg={};function $g(...t){let e=void 0,n=void 0;return k(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),W(t,n).lift(new zg(e))}class zg{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Wg(t,this.resultSelector))}}class Wg extends jg{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Vg),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++)this.add(Hg(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const i=this.values,s=this.toRespond?i[n]===Vg?--this.toRespond:this.toRespond:0;i[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function Yg(t,e){var n,i;return i=e,"function"==typeof(t=void 0===(n=t)?void 0===i?n:i:n)?function(){for(var e=arguments,n=arguments.length,i=Array(n),s=0;s<n;s++)i[s]=e[s];return!!t.apply(this,i)}:t?function(){return!0}:function(){return!1}}var Ug="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},qg=function(t){return null!=t&&"object"===(void 0===t?"undefined":Ug(t))&&1===t.nodeType&&"object"===Ug(t.style)&&"object"===Ug(t.ownerDocument)};function Qg(t,e){if(e=Jg(e,!0),!qg(e))return-1;for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}function Zg(t,e){return-1!==Qg(t,e)}function Kg(t,e){for(var n=0;n<e.length;n++)Zg(t,e[n])||t.push(e[n]);return e}function Gg(t){for(var e=arguments,n=[],i=arguments.length-1;i-- >0;)n[i]=e[i+1];return Kg(t,n=n.map(Jg))}function Xg(t){for(var e=arguments,n=[],i=arguments.length-1;i-- >0;)n[i]=e[i+1];return n.map(Jg).reduce((function(e,n){var i=Qg(t,n);return-1!==i?e.concat(t.splice(i,1)):e}),[])}function Jg(t,e){if("string"==typeof t)try{return document.querySelector(t)}catch(n){throw n}if(!qg(t)&&!e)throw new TypeError(t+" is not a DOM element.");return t}function ty(t){if(t===window)return function(){var t={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},t);var e={};return Object.defineProperties(e,t),e}();try{var e=t.getBoundingClientRect();return void 0===e.x&&(e.x=e.left,e.y=e.top),e}catch(n){throw new TypeError("Can't call getBoundingClientRect on "+t)}}var ey,ny=void 0;"function"!=typeof Object.create?(ey=function(){},ny=function(t,e){if(t!==Object(t)&&null!==t)throw TypeError("Argument must be an object, or null");ey.prototype=t||{};var n=new ey;return ey.prototype=null,void 0!==e&&Object.defineProperties(n,e),null===t&&(n.__proto__=null),n}):ny=Object.create;var iy=ny,sy=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function ry(t,e){e=e||{};for(var n=iy(t),i=0;i<sy.length;i++)void 0!==e[sy[i]]&&(n[sy[i]]=e[sy[i]]);return n}function oy(t,e){console.log("data ",e),t.data=e||{},t.dispatched="mousemove"}var ay=["webkit","moz","ms","o"],ly=function(){if("undefined"==typeof window)return function(){};for(var t=0,e=ay.length;t<e&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[ay[t]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var n=0;window.requestAnimationFrame=function(t){var e=(new Date).getTime(),i=Math.max(0,16-e-n),s=window.setTimeout((function(){return t(e+i)}),i);return n=e+i,s}}return window.requestAnimationFrame.bind(window)}(),cy=function(){if("undefined"==typeof window)return function(){};for(var t=0,e=ay.length;t<e&&!window.cancelAnimationFrame;++t)window.cancelAnimationFrame=window[ay[t]+"CancelAnimationFrame"]||window[ay[t]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){window.clearTimeout(t)}),window.cancelAnimationFrame.bind(window)}();function uy(t,e){void 0===e&&(e={});var n=this,i=4,s=!1;if("object"!=typeof e.margin){var r=e.margin||-1;this.margin={left:r,right:r,top:r,bottom:r}}else this.margin=e.margin;this.scrollWhenOutside=e.scrollWhenOutside||!1;var o,a={},l=function(t,e){var n=Yg((e=e||{}).allowUpdate,!0);return function(e){if(e=e||window.event,t.target=e.target||e.srcElement||e.originalTarget,t.element=this,t.type=e.type,n(e)){if(e.targetTouches)t.x=e.targetTouches[0].clientX,t.y=e.targetTouches[0].clientY,t.pageX=e.targetTouches[0].pageX,t.pageY=e.targetTouches[0].pageY,t.screenX=e.targetTouches[0].screenX,t.screenY=e.targetTouches[0].screenY;else{if(null===e.pageX&&null!==e.clientX){var i=e.target&&e.target.ownerDocument||document,s=i.documentElement,r=i.body;t.pageX=e.clientX+(s&&s.scrollLeft||r&&r.scrollLeft||0)-(s&&s.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(s&&s.scrollTop||r&&r.scrollTop||0)-(s&&s.clientTop||r&&r.clientTop||0)}else t.pageX=e.pageX,t.pageY=e.pageY;t.x=e.clientX,t.y=e.clientY,t.screenX=e.screenX,t.screenY=e.screenY}t.clientX=t.x,t.clientY=t.y}}}(a),c=(o={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null},{destroy:function(){o=null},dispatch:MouseEvent?function(t,e,n){var i=new MouseEvent("mousemove",ry(o,e));return oy(i,n),t.dispatchEvent(i)}:"function"==typeof document.createEvent?function(t,e,n){var i=ry(o,e),s=document.createEvent("MouseEvents");return s.initMouseEvent("mousemove",!0,!0,window,0,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget),oy(s,n),t.dispatchEvent(s)}:"function"==typeof document.createEventObject?function(t,e,n){var i=document.createEventObject(),s=ry(o,e);for(var r in s)i[r]=s[r];return oy(i,n),t.dispatchEvent(i)}:void 0}),u=!1;window.addEventListener("mousemove",l,!1),window.addEventListener("touchmove",l,!1),isNaN(e.maxSpeed)||(i=e.maxSpeed),"object"!=typeof i&&(i={left:i,right:i,top:i,bottom:i}),this.autoScroll=Yg(e.autoScroll),this.syncMove=Yg(e.syncMove,!1),this.destroy=function(e){window.removeEventListener("mousemove",l,!1),window.removeEventListener("touchmove",l,!1),window.removeEventListener("mousedown",y,!1),window.removeEventListener("touchstart",y,!1),window.removeEventListener("mouseup",_,!1),window.removeEventListener("touchend",_,!1),window.removeEventListener("pointerup",_,!1),window.removeEventListener("mouseleave",b,!1),window.removeEventListener("mousemove",x,!1),window.removeEventListener("touchmove",x,!1),window.removeEventListener("scroll",g,!0),t=[],e&&v()},this.add=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return Gg.apply(void 0,[t].concat(e)),this},this.remove=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return Xg.apply(void 0,[t].concat(e))};var h,d,f=null;"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]),d=t,t=[],d.forEach((function(t){t===window?f=window:n.add(t)})),Object.defineProperties(this,{down:{get:function(){return u}},maxSpeed:{get:function(){return i}},point:{get:function(){return a}},scrolling:{get:function(){return s}}});var p,m=null;function g(e){for(var n=0;n<t.length;n++)if(t[n]===e.target){s=!0;break}s&&ly((function(){return s=!1}))}function y(){u=!0}function _(){u=!1,v()}function v(){cy(p),cy(h)}function b(){u=!1}function w(){for(var e=null,n=0;n<t.length;n++)hy(a,t[n])&&(e=t[n]);return e}function x(e){if(n.autoScroll()&&!e.dispatched){var i=e.target,s=document.body;m&&!hy(a,m)&&(n.scrollWhenOutside||(m=null)),i&&i.parentNode===s?i=w():(i=function(e){if(!e)return null;if(m===e)return e;if(Zg(t,e))return e;for(;e=e.parentNode;)if(Zg(t,e))return e;return null}(i))||(i=w()),i&&i!==m&&(m=i),f&&(cy(h),h=ly(E)),m&&(cy(p),p=ly(S))}}function E(){k(f),cy(h),h=ly(E)}function S(){m&&(k(m),cy(p),p=ly(S))}function k(t){var e,i,s=ty(t);e=a.x<s.left+n.margin.left?Math.floor(Math.max(-1,(a.x-s.left)/n.margin.left-1)*n.maxSpeed.left):a.x>s.right-n.margin.right?Math.ceil(Math.min(1,(a.x-s.right)/n.margin.right+1)*n.maxSpeed.right):0,i=a.y<s.top+n.margin.top?Math.floor(Math.max(-1,(a.y-s.top)/n.margin.top-1)*n.maxSpeed.top):a.y>s.bottom-n.margin.bottom?Math.ceil(Math.min(1,(a.y-s.bottom)/n.margin.bottom+1)*n.maxSpeed.bottom):0,n.syncMove()&&c.dispatch(t,{pageX:a.pageX+e,pageY:a.pageY+i,clientX:a.x+e,clientY:a.y+i}),setTimeout((function(){i&&function(t,e){t===window?window.scrollTo(t.pageXOffset,t.pageYOffset+e):t.scrollTop+=e}(t,i),e&&function(t,e){t===window?window.scrollTo(t.pageXOffset+e,t.pageYOffset):t.scrollLeft+=e}(t,e)}))}window.addEventListener("mousedown",y,!1),window.addEventListener("touchstart",y,!1),window.addEventListener("mouseup",_,!1),window.addEventListener("touchend",_,!1),window.addEventListener("pointerup",_,!1),window.addEventListener("mousemove",x,!1),window.addEventListener("touchmove",x,!1),window.addEventListener("mouseleave",b,!1),window.addEventListener("scroll",g,!0)}function hy(t,e,n){return n?t.y>n.top&&t.y<n.bottom&&t.x>n.left&&t.x<n.right:function(t,e){var n=ty(e);return t.y>n.top&&t.y<n.bottom&&t.x>n.left&&t.x<n.right}(t,e)}class dy{constructor(t){if(this.total=t,this.total<0)throw new dh}call(t,e){return e.subscribe(new fy(t,this.total))}}class fy extends p{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;s<n;s++){const s=e++%n;t.next(i[s])}}t.complete()}}class py{constructor(t,e){this.predicate=t,this.source=e}call(t,e){return e.subscribe(new my(t,this.predicate,this.source))}}class my extends p{constructor(t,e,n){super(t),this.predicate=e,this.source=n,this.count=0,this.index=0}_next(t){this.predicate?this._tryPredicate(t):this.count++}_tryPredicate(t){let e;try{e=this.predicate(t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function gy(){return t=>t.lift(new yy)}class yy{call(t,e){return e.subscribe(new _y(t))}}class _y extends p{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}class vy{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new by(t,this.compare,this.keySelector))}}class by extends p{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}let wy=(()=>{class t{constructor(){this.currentDrag=new E}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),xy=(()=>{class t{constructor(t){this.elementRef=t,this.activeLongPressDrag=!1,this.longPressConfig={duration:300,delta:30}}}return t.\u0275fac=function(e){return new(e||t)(xo(ra))},t.\u0275dir=be({type:t,selectors:[["","mwlDraggableScrollContainer",""]],inputs:{activeLongPressDrag:"activeLongPressDrag",longPressConfig:"longPressConfig"}}),t})();function Ey(t,e,n){n&&n.split(" ").forEach(n=>t.addClass(e.nativeElement,n))}function Sy(t,e,n){n&&n.split(" ").forEach(n=>t.removeClass(e.nativeElement,n))}let ky=(()=>{class t{constructor(t,e,n,i,s,r,o){this.element=t,this.renderer=e,this.draggableHelper=n,this.zone=i,this.vcr=s,this.scrollContainer=r,this.document=o,this.dragAxis={x:!0,y:!0},this.dragSnapGrid={},this.ghostDragEnabled=!0,this.showOriginalElementWhileDragging=!1,this.dragCursor="",this.autoScroll={margin:20},this.dragPointerDown=new ul,this.dragStart=new ul,this.ghostElementCreated=new ul,this.dragging=new ul,this.dragEnd=new ul,this.pointerDown$=new E,this.pointerMove$=new E,this.pointerUp$=new E,this.eventListenerSubscriptions={},this.destroy$=new E,this.timeLongPress={timerBegin:0,timerEnd:0}}ngOnInit(){this.checkEventListeners();const t=this.pointerDown$.pipe(nh(()=>this.canDrag()),H(t=>{t.event.stopPropagation&&!this.scrollContainer&&t.event.stopPropagation();const e=this.renderer.createElement("style");this.renderer.setAttribute(e,"type","text/css"),this.renderer.appendChild(e,this.renderer.createText("\n body * {\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n ")),requestAnimationFrame(()=>{this.document.head.appendChild(e)});const n=this.getScrollPosition(),i=new _(t=>this.renderer.listen(this.scrollContainer?this.scrollContainer.elementRef.nativeElement:"window","scroll",e=>t.next(e))).pipe(xg(n),C(()=>this.getScrollPosition())),s=new E,r=new Dc;this.zone.run(()=>{this.dragPointerDown.next({x:0,y:0})});const o=Y(this.pointerUp$,this.pointerDown$,r,this.destroy$).pipe(J()),a=$g([this.pointerMove$,i]).pipe(C(([e,n])=>({currentDrag$:s,transformX:e.clientX-t.clientX,transformY:e.clientY-t.clientY,clientX:e.clientX,clientY:e.clientY,scrollLeft:n.left,scrollTop:n.top,target:e.event.target})),C(t=>(this.dragSnapGrid.x&&(t.transformX=Math.round(t.transformX/this.dragSnapGrid.x)*this.dragSnapGrid.x),this.dragSnapGrid.y&&(t.transformY=Math.round(t.transformY/this.dragSnapGrid.y)*this.dragSnapGrid.y),t)),C(t=>(this.dragAxis.x||(t.transformX=0),this.dragAxis.y||(t.transformY=0),t)),C(t=>Object.assign({},t,{x:t.transformX+(t.scrollLeft-n.left),y:t.transformY+(t.scrollTop-n.top)})),nh(({x:t,y:e,transformX:n,transformY:i})=>!this.validateDrag||this.validateDrag({x:t,y:e,transform:{x:n,y:i}})),ch(o),J()),l=a.pipe(fh(1),J()),c=a.pipe((function(t){return t.lift(new dy(1))}),J());return l.subscribe(({clientX:t,clientY:e,x:n,y:i})=>{if(this.zone.run(()=>{this.dragStart.next({cancelDrag$:r})}),this.scroller=new uy([this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.defaultView],Object.assign({},this.autoScroll,{autoScroll:()=>!0})),Ey(this.renderer,this.element,this.dragActiveClass),this.ghostDragEnabled){const s=this.element.nativeElement.getBoundingClientRect(),r=this.element.nativeElement.cloneNode(!0);if(this.showOriginalElementWhileDragging||this.renderer.setStyle(this.element.nativeElement,"visibility","hidden"),this.ghostElementAppendTo?this.ghostElementAppendTo.appendChild(r):this.element.nativeElement.parentNode.insertBefore(r,this.element.nativeElement.nextSibling),this.ghostElement=r,this.document.body.style.cursor=this.dragCursor,this.setElementStyles(r,{position:"fixed",top:s.top+"px",left:s.left+"px",width:s.width+"px",height:s.height+"px",cursor:this.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),this.ghostElementTemplate){const t=this.vcr.createEmbeddedView(this.ghostElementTemplate);r.innerHTML="",t.rootNodes.filter(t=>t instanceof Node).forEach(t=>{r.appendChild(t)}),c.subscribe(()=>{this.vcr.remove(this.vcr.indexOf(t))})}this.zone.run(()=>{this.ghostElementCreated.emit({clientX:t-n,clientY:e-i,element:r})}),c.subscribe(()=>{r.parentElement.removeChild(r),this.ghostElement=null,this.renderer.setStyle(this.element.nativeElement,"visibility","")})}this.draggableHelper.currentDrag.next(s)}),c.pipe(H(t=>{const e=r.pipe(t=>t.lift(new py(void 0,t)),fh(1),C(e=>Object.assign({},t,{dragCancelled:e>0})));return r.complete(),e})).subscribe(({x:t,y:e,dragCancelled:n})=>{this.scroller.destroy(),this.zone.run(()=>{this.dragEnd.next({x:t,y:e,dragCancelled:n})}),Sy(this.renderer,this.element,this.dragActiveClass),s.complete()}),Y(o,c).pipe(fh(1)).subscribe(()=>{requestAnimationFrame(()=>{this.document.head.removeChild(e)})}),a}),J());Y(t.pipe(fh(1),C(t=>[,t])),t.pipe(gy())).pipe(nh(([t,e])=>!t||t.x!==e.x||t.y!==e.y),C(([t,e])=>e)).subscribe(({x:t,y:e,currentDrag$:n,clientX:i,clientY:s,transformX:r,transformY:o,target:a})=>{this.zone.run(()=>{this.dragging.next({x:t,y:e})}),requestAnimationFrame(()=>{if(this.ghostElement){const t=`translate3d(${r}px, ${o}px, 0px)`;this.setElementStyles(this.ghostElement,{transform:t,"-webkit-transform":t,"-ms-transform":t,"-moz-transform":t,"-o-transform":t})}}),n.next({clientX:i,clientY:s,dropData:this.dropData,target:a})})}ngOnChanges(t){t.dragAxis&&this.checkEventListeners()}ngOnDestroy(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}checkEventListeners(){const t=this.canDrag(),e=Object.keys(this.eventListenerSubscriptions).length>0;t&&!e?this.zone.runOutsideAngular(()=>{this.eventListenerSubscriptions.mousedown=this.renderer.listen(this.element.nativeElement,"mousedown",t=>{this.onMouseDown(t)}),this.eventListenerSubscriptions.mouseup=this.renderer.listen("document","mouseup",t=>{this.onMouseUp(t)}),this.eventListenerSubscriptions.touchstart=this.renderer.listen(this.element.nativeElement,"touchstart",t=>{this.onTouchStart(t)}),this.eventListenerSubscriptions.touchend=this.renderer.listen("document","touchend",t=>{this.onTouchEnd(t)}),this.eventListenerSubscriptions.touchcancel=this.renderer.listen("document","touchcancel",t=>{this.onTouchEnd(t)}),this.eventListenerSubscriptions.mouseenter=this.renderer.listen(this.element.nativeElement,"mouseenter",()=>{this.onMouseEnter()}),this.eventListenerSubscriptions.mouseleave=this.renderer.listen(this.element.nativeElement,"mouseleave",()=>{this.onMouseLeave()})}):!t&&e&&this.unsubscribeEventListeners()}onMouseDown(t){0===t.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",t=>{this.pointerMove$.next({event:t,clientX:t.clientX,clientY:t.clientY})})),this.pointerDown$.next({event:t,clientX:t.clientX,clientY:t.clientY}))}onMouseUp(t){0===t.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:t,clientX:t.clientX,clientY:t.clientY}))}onTouchStart(t){let e,n,i;if((this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&(this.timeLongPress.timerBegin=Date.now(),n=!1,i=this.hasScrollbar(),e=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){const s=eh(this.document,"contextmenu").subscribe(t=>{t.preventDefault()}),r=eh(this.document,"touchmove",{passive:!1}).subscribe(s=>{(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&!n&&i&&(n=this.shouldBeginDrag(t,s,e)),(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&i&&!n||(s.preventDefault(),this.pointerMove$.next({event:s,clientX:s.targetTouches[0].clientX,clientY:s.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=()=>{s.unsubscribe(),r.unsubscribe()}}this.pointerDown$.next({event:t,clientX:t.touches[0].clientX,clientY:t.touches[0].clientY})}onTouchEnd(t){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&this.enableScroll()),this.pointerUp$.next({event:t,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY})}onMouseEnter(){this.setCursor(this.dragCursor)}onMouseLeave(){this.setCursor("")}canDrag(){return this.dragAxis.x||this.dragAxis.y}setCursor(t){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",t)}unsubscribeEventListeners(){Object.keys(this.eventListenerSubscriptions).forEach(t=>{this.eventListenerSubscriptions[t](),delete this.eventListenerSubscriptions[t]})}setElementStyles(t,e){Object.keys(e).forEach(n=>{this.renderer.setStyle(t,n,e[n])})}getScrollElement(){return this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.body}getScrollPosition(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||this.document.documentElement.scrollTop,left:window.pageXOffset||this.document.documentElement.scrollLeft}}shouldBeginDrag(t,e,n){const i=this.getScrollPosition(),s=Math.abs(i.top-n.top),r=Math.abs(i.left-n.left),o=Math.abs(e.targetTouches[0].clientX-t.touches[0].clientX)-r,a=Math.abs(e.targetTouches[0].clientY-t.touches[0].clientY)-s,l=this.touchStartLongPress?this.touchStartLongPress:{delta:this.scrollContainer.longPressConfig.delta,delay:this.scrollContainer.longPressConfig.duration};return(o+a>l.delta||s>0||r>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=l.delay&&(this.disableScroll(),!0)}enableScroll(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow",""),this.renderer.setStyle(this.document.body,"overflow","")}disableScroll(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow","hidden"),this.renderer.setStyle(this.document.body,"overflow","hidden")}hasScrollbar(){const t=this.getScrollElement();return t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(ca),xo(wy),xo(Wl),xo(Ia),xo(xy,8),xo(Vc))},t.\u0275dir=be({type:t,selectors:[["","mwlDraggable",""]],inputs:{dragAxis:"dragAxis",dragSnapGrid:"dragSnapGrid",ghostDragEnabled:"ghostDragEnabled",showOriginalElementWhileDragging:"showOriginalElementWhileDragging",dragCursor:"dragCursor",autoScroll:"autoScroll",dropData:"dropData",validateDrag:"validateDrag",dragActiveClass:"dragActiveClass",ghostElementAppendTo:"ghostElementAppendTo",ghostElementTemplate:"ghostElementTemplate",touchStartLongPress:"touchStartLongPress"},outputs:{dragPointerDown:"dragPointerDown",dragStart:"dragStart",ghostElementCreated:"ghostElementCreated",dragging:"dragging",dragEnd:"dragEnd"},features:[Le]}),t})();function Cy(t,e,n){return t>=n.left&&t<=n.right&&e>=n.top&&e<=n.bottom}let Ty=(()=>{class t{constructor(t,e,n,i,s){this.element=t,this.draggableHelper=e,this.zone=n,this.renderer=i,this.scrollContainer=s,this.dragEnter=new ul,this.dragLeave=new ul,this.dragOver=new ul,this.drop=new ul}ngOnInit(){this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(t=>{Ey(this.renderer,this.element,this.dragActiveClass);const e={updateCache:!0},n=this.renderer.listen(this.scrollContainer?this.scrollContainer.elementRef.nativeElement:"window","scroll",()=>{e.updateCache=!0});let i;const s=t.pipe(C(({clientX:t,clientY:n,dropData:s,target:r})=>{i=s,e.updateCache&&(e.rect=this.element.nativeElement.getBoundingClientRect(),this.scrollContainer&&(e.scrollContainerRect=this.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),e.updateCache=!1);const o=Cy(t,n,e.rect),a=!this.validateDrop||this.validateDrop({clientX:t,clientY:n,target:r});return e.scrollContainerRect?o&&a&&Cy(t,n,e.scrollContainerRect):o&&a})),r=s.pipe(t=>t.lift(new vy(undefined,undefined)));let o;r.pipe(nh(t=>t)).subscribe(()=>{o=!0,Ey(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.dragEnter.next({dropData:i})})}),s.pipe(nh(t=>t)).subscribe(()=>{this.zone.run(()=>{this.dragOver.next({dropData:i})})}),r.pipe(gy(),nh(([t,e])=>t&&!e)).subscribe(()=>{o=!1,Sy(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.dragLeave.next({dropData:i})})}),t.subscribe({complete:()=>{n(),Sy(this.renderer,this.element,this.dragActiveClass),o&&(Sy(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.drop.next({dropData:i})}))}})})}ngOnDestroy(){this.currentDragSubscription&&this.currentDragSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(wy),xo(Wl),xo(ca),xo(xy,8))},t.\u0275dir=be({type:t,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}}),t})(),Dy=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();class Ay{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Oy(t,this.durationSelector))}}class Oy extends j{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=B(n,new N(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Iy(t,e=rh){return n=()=>vg(t,e),function(t){return t.lift(new Ay(n))};var n}let My=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();const Py=function(t){return{action:t}};function Ry(t,e){if(1&t){const t=Do();ko(0,"a",5),Oo("mwlClick",(function(n){an(t);const i=e.$implicit,s=Po(2).event;return i.onClick({event:s,sourceEvent:n})}))("mwlKeydownEnter",(function(n){an(t);const i=e.$implicit,s=Po(2).event;return i.onClick({event:s,sourceEvent:n})})),rl(1,"calendarA11y"),Co()}if(2&t){const t=e.$implicit;Eo("ngClass",t.cssClass)("innerHtml",t.label,es),vo("aria-label",ol(1,3,Xa(6,Py,t),"actionButtonLabel"))}}function Ly(t,e){if(1&t&&(ko(0,"span",3),bo(1,Ry,2,8,"a",4),Co()),2&t){const t=Po(),e=t.event,n=t.trackByActionId;xs(1),Eo("ngForOf",e.actions)("ngForTrackBy",n)}}function Fy(t,e){1&t&&bo(0,Ly,2,2,"span",2),2&t&&Eo("ngIf",e.event.actions)}function Ny(t,e){}const jy=function(t,e){return{event:t,trackByActionId:e}},By=function(){return{}};function Hy(t,e){if(1&t&&(To(0,"span",2),rl(1,"calendarEventTitle"),rl(2,"calendarA11y")),2&t){const t=e.event;Eo("innerHTML",al(1,2,t.title,e.view,t),es),vo("aria-hidden",ol(2,6,Ga(9,By),"hideEventTitle"))}}function Vy(t,e){}const $y=function(t,e){return{event:t,view:e}};function zy(t,e){if(1&t&&(ko(0,"div",2),To(1,"div",3),To(2,"div",4),Co()),2&t){const t=e.contents;Eo("ngClass","cal-tooltip-"+e.placement),xs(2),Eo("innerHtml",t,es)}}function Wy(t,e){}const Yy=function(t,e,n){return{contents:t,placement:e,event:n}},Uy=function(t){return{backgroundColor:t}};function qy(t,e){if(1&t){const t=Do();ko(0,"mwl-calendar-month-cell",7),Oo("mwlClick",(function(n){an(t);const i=e.$implicit;return Po(2).dayClicked.emit({day:i,sourceEvent:n})}))("mwlKeydownEnter",(function(n){an(t);const i=e.$implicit;return Po(2).dayClicked.emit({day:i,sourceEvent:n})}))("highlightDay",(function(e){return an(t),Po(2).toggleDayHighlight(e.event,!0)}))("unhighlightDay",(function(e){return an(t),Po(2).toggleDayHighlight(e.event,!1)}))("drop",(function(n){an(t);const i=e.$implicit;return Po(2).eventDropped(i,n.dropData.event,n.dropData.draggedFrom)}))("eventClicked",(function(e){return an(t),Po(2).eventClicked.emit({event:e.event,sourceEvent:e.sourceEvent})})),rl(1,"calendarA11y"),Co()}if(2&t){const t=e.$implicit,n=Po(2);Eo("ngClass",null==t?null:t.cssClass)("day",t)("openDay",n.openDay)("locale",n.locale)("tooltipPlacement",n.tooltipPlacement)("tooltipAppendToBody",n.tooltipAppendToBody)("tooltipTemplate",n.tooltipTemplate)("tooltipDelay",n.tooltipDelay)("customTemplate",n.cellTemplate)("ngStyle",Xa(15,Uy,t.backgroundColor))("clickListenerDisabled",0===n.dayClicked.observers.length),vo("tabindex",ol(1,12,Ga(17,By),"monthCellTabIndex"))}}function Qy(t,e){if(1&t){const t=Do();ko(0,"div"),ko(1,"div",4),bo(2,qy,2,18,"mwl-calendar-month-cell",5),rl(3,"slice"),Co(),ko(4,"mwl-calendar-open-day-events",6),Oo("eventClicked",(function(e){return an(t),Po().eventClicked.emit({event:e.event,sourceEvent:e.sourceEvent})}))("drop",(function(e){an(t);const n=Po();return n.eventDropped(n.openDay,e.dropData.event,e.dropData.draggedFrom)})),Co(),Co()}if(2&t){const t=e.$implicit,n=Po();xs(2),Eo("ngForOf",al(3,9,n.view.days,t,t+n.view.totalDaysVisibleInWeek))("ngForTrackBy",n.trackByDate),xs(2),Eo("locale",n.locale)("isOpen",n.openRowIndex===t)("events",null==n.openDay?null:n.openDay.events)("date",null==n.openDay?null:n.openDay.date)("customTemplate",n.openDayEventsTemplate)("eventTitleTemplate",n.eventTitleTemplate)("eventActionsTemplate",n.eventActionsTemplate)}}function Zy(t,e){if(1&t){const t=Do();ko(0,"div",4),Oo("click",(function(n){an(t);const i=e.$implicit;return Po(2).columnHeaderClicked.emit({isoDayNumber:i.day,sourceEvent:n})})),qo(1),rl(2,"calendarDate"),Co()}if(2&t){const t=e.$implicit,n=Po().locale;Vo("cal-past",t.isPast)("cal-today",t.isToday)("cal-future",t.isFuture)("cal-weekend",t.isWeekend),Eo("ngClass",t.cssClass),xs(1),Zo(" ",al(2,10,t.date,"monthViewColumnHeader",n)," ")}}function Ky(t,e){if(1&t&&(ko(0,"div",2),bo(1,Zy,3,14,"div",3),Co()),2&t){const t=e.days,n=e.trackByWeekDayHeaderDate;xs(1),Eo("ngForOf",t)("ngForTrackBy",n)}}function Gy(t,e){}const Xy=function(t,e,n){return{days:t,locale:e,trackByWeekDayHeaderDate:n}};function Jy(t,e){if(1&t&&(ko(0,"span",7),qo(1),Co()),2&t){const t=Po().day;xs(1),Qo(t.badgeTotal)}}const t_=function(t,e){return{event:t,draggedFrom:e}},e_=function(t,e){return{x:t,y:e}},n_=function(){return{delay:300,delta:30}};function i_(t,e){if(1&t){const t=Do();ko(0,"div",10),Oo("mouseenter",(function(){an(t);const n=e.$implicit;return Po(2).highlightDay.emit({event:n})}))("mouseleave",(function(){an(t);const n=e.$implicit;return Po(2).unhighlightDay.emit({event:n})}))("mwlClick",(function(n){an(t);const i=e.$implicit;return Po(2).eventClicked.emit({event:i,sourceEvent:n})})),rl(1,"calendarEventTitle"),rl(2,"calendarA11y"),Co()}if(2&t){const t=e.$implicit,n=Po(2),i=n.tooltipPlacement,s=n.tooltipTemplate,r=n.tooltipAppendToBody,o=n.tooltipDelay,a=n.day,l=n.validateDrag;Vo("cal-draggable",t.draggable),Eo("ngStyle",Xa(22,Uy,null==t.color?null:t.color.primary))("ngClass",null==t?null:t.cssClass)("mwlCalendarTooltip",al(1,15,t.title,"monthTooltip",t))("tooltipPlacement",i)("tooltipEvent",t)("tooltipTemplate",s)("tooltipAppendToBody",r)("tooltipDelay",o)("dropData",Ja(24,t_,t,a))("dragAxis",Ja(27,e_,t.draggable,t.draggable))("validateDrag",l)("touchStartLongPress",Ga(30,n_)),vo("aria-hidden",ol(2,19,Ga(31,By),"hideMonthCellEvents"))}}function s_(t,e){if(1&t&&(ko(0,"div",8),bo(1,i_,3,32,"div",9),Co()),2&t){const t=Po(),e=t.day,n=t.trackByEventId;xs(1),Eo("ngForOf",e.events)("ngForTrackBy",n)}}const r_=function(t,e){return{day:t,locale:e}};function o_(t,e){if(1&t&&(ko(0,"div",2),rl(1,"calendarA11y"),ko(2,"span",3),bo(3,Jy,2,1,"span",4),ko(4,"span",5),qo(5),rl(6,"calendarDate"),Co(),Co(),Co(),bo(7,s_,2,2,"div",6)),2&t){const t=e.day,n=e.locale;vo("aria-label",ol(1,4,Ja(11,r_,t,n),"monthCell")),xs(3),Eo("ngIf",t.badgeTotal>0),xs(2),Qo(al(6,7,t.date,"monthViewDayNumber",n)),xs(2),Eo("ngIf",t.events.length>0)}}function a_(t,e){}const l_=function(t,e,n,i,s,r,o,a,l,c,u,h){return{day:t,openDay:e,locale:n,tooltipPlacement:i,highlightDay:s,unhighlightDay:r,eventClicked:o,tooltipTemplate:a,tooltipAppendToBody:l,tooltipDelay:c,trackByEventId:u,validateDrag:h}},c_=function(t){return{event:t}},u_=function(t,e){return{event:t,locale:e}};function h_(t,e){if(1&t){const t=Do();ko(0,"div",7),To(1,"span",8),qo(2," "),ko(3,"mwl-calendar-event-title",9),Oo("mwlClick",(function(n){an(t);const i=e.$implicit;return Po(2).eventClicked.emit({event:i,sourceEvent:n})}))("mwlKeydownEnter",(function(n){an(t);const i=e.$implicit;return Po(2).eventClicked.emit({event:i,sourceEvent:n})})),rl(4,"calendarA11y"),Co(),qo(5," "),To(6,"mwl-calendar-event-actions",10),Co()}if(2&t){const t=e.$implicit,n=Po(2).validateDrag,i=Po();Vo("cal-draggable",t.draggable),Eo("ngClass",null==t?null:t.cssClass)("dropData",Xa(16,c_,t))("dragAxis",Ja(18,e_,t.draggable,t.draggable))("validateDrag",n)("touchStartLongPress",Ga(21,n_)),xs(1),Eo("ngStyle",Xa(22,Uy,null==t.color?null:t.color.primary)),xs(2),Eo("event",t)("customTemplate",i.eventTitleTemplate),vo("aria-label",ol(4,13,Ja(24,u_,t,i.locale),"eventDescription")),xs(3),Eo("event",t)("customTemplate",i.eventActionsTemplate)}}const d_=function(t,e){return{date:t,locale:e}};function f_(t,e){if(1&t&&(ko(0,"div",3),To(1,"span",4),rl(2,"calendarA11y"),To(3,"span",5),rl(4,"calendarA11y"),bo(5,h_,7,27,"div",6),Co()),2&t){const t=Po(),e=t.events,n=t.trackByEventId,i=Po();Eo("@collapse",void 0),xs(1),vo("aria-label",ol(2,5,Ja(11,d_,i.date,i.locale),"openDayEventsAlert")),xs(2),vo("aria-label",ol(4,8,Ja(14,d_,i.date,i.locale),"openDayEventsLandmark")),xs(2),Eo("ngForOf",e)("ngForTrackBy",n)}}function p_(t,e){1&t&&bo(0,f_,6,17,"div",2),2&t&&Eo("ngIf",e.isOpen)}function m_(t,e){}const g_=function(t,e,n,i,s){return{events:t,eventClicked:e,isOpen:n,trackByEventId:i,validateDrag:s}};let y_=(()=>{let t=class{constructor(){this.trackByActionId=(t,e)=>e.id?e.id:e}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["mwl-calendar-event-actions"]],inputs:{event:"event",customTemplate:"customTemplate"},decls:3,vars:5,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-event-actions",4,"ngIf"],[1,"cal-event-actions"],["class","cal-event-action","href","javascript:;","tabindex","0","role","button",3,"ngClass","innerHtml","mwlClick","mwlKeydownEnter",4,"ngFor","ngForOf","ngForTrackBy"],["href","javascript:;","tabindex","0","role","button",1,"cal-event-action",3,"ngClass","innerHtml","mwlClick","mwlKeydownEnter"]],template:function(t,e){if(1&t&&(bo(0,Fy,1,1,"ng-template",null,0,xl),bo(2,Ny,0,0,"ng-template",1)),2&t){const t=wo(1);xs(2),Eo("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",Ja(2,jy,e.event,e.trackByActionId))}},directives:function(){return[Vu,Nu,Lu,Pu,L_,F_]},pipes:function(){return[B_]},encapsulation:2}),t})(),__=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["mwl-calendar-event-title"]],inputs:{event:"event",customTemplate:"customTemplate",view:"view"},decls:3,vars:5,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-event-title",3,"innerHTML"]],template:function(t,e){if(1&t&&(bo(0,Hy,3,10,"ng-template",null,0,xl),bo(2,Vy,0,0,"ng-template",1)),2&t){const t=wo(1);xs(2),Eo("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",Ja(2,$y,e.event,e.view))}},directives:function(){return[Vu]},pipes:function(){return[R_,B_]},encapsulation:2}),t})(),v_=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["mwl-calendar-tooltip-window"]],inputs:{contents:"contents",placement:"placement",event:"event",customTemplate:"customTemplate"},decls:3,vars:6,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-tooltip",3,"ngClass"],[1,"cal-tooltip-arrow"],[1,"cal-tooltip-inner",3,"innerHtml"]],template:function(t,e){if(1&t&&(bo(0,zy,3,2,"ng-template",null,0,xl),bo(2,Wy,0,0,"ng-template",1)),2&t){const t=wo(1);xs(2),Eo("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",tl(2,Yy,e.contents,e.placement,e.event))}},directives:[Vu,Pu],encapsulation:2}),t})(),b_=(()=>{let t=class{constructor(t,e,n,i,s,r){this.elementRef=t,this.injector=e,this.renderer=n,this.viewContainerRef=s,this.document=r,this.placement="auto",this.delay=null,this.cancelTooltipDelay$=new E,this.tooltipFactory=i.resolveComponentFactory(v_)}ngOnChanges(t){this.tooltipRef&&(t.contents||t.customTemplate||t.event)&&(this.tooltipRef.instance.contents=this.contents,this.tooltipRef.instance.customTemplate=this.customTemplate,this.tooltipRef.instance.event=this.event,this.tooltipRef.changeDetectorRef.markForCheck(),this.contents||this.hide())}ngOnDestroy(){this.hide()}onMouseOver(){(null===this.delay?xc("now"):vg(this.delay)).pipe(ch(this.cancelTooltipDelay$)).subscribe(()=>{this.show()})}onMouseOut(){this.hide()}show(){!this.tooltipRef&&this.contents&&(this.tooltipRef=this.viewContainerRef.createComponent(this.tooltipFactory,0,this.injector,[]),this.tooltipRef.instance.contents=this.contents,this.tooltipRef.instance.customTemplate=this.customTemplate,this.tooltipRef.instance.event=this.event,this.appendToBody&&this.document.body.appendChild(this.tooltipRef.location.nativeElement),requestAnimationFrame(()=>{this.positionTooltip()}))}hide(){this.tooltipRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.tooltipRef.hostView)),this.tooltipRef=null),this.cancelTooltipDelay$.next()}positionTooltip(t=[]){this.tooltipRef&&(this.tooltipRef.changeDetectorRef.detectChanges(),this.tooltipRef.instance.placement=function(t,e,n,i,s){var r=Array.isArray(n)?n:n.split(gg),o=function(t){t.split("-");return[]},a=r.findIndex((function(t){return"auto"===t}));a>=0&&["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"].forEach((function(t){null==r.find((function(e){return-1!==e.search("^"+t)}))&&r.splice(a++,1,t)}));var l,c=e.style;c.position="absolute",c.top="0",c.left="0",c["will-change"]="transform";for(var u=!1,h=0,d=r;h<d.length;h++)if(o(l=d[h]),yg.positionElements(t,e,l,i)){u=!0;break}return u||(o(l=r[0]),yg.positionElements(t,e,l,i)),l}(this.elementRef.nativeElement,this.tooltipRef.location.nativeElement.children[0],this.placement,this.appendToBody),-1===t.indexOf(this.tooltipRef.instance.placement)&&this.positionTooltip([...t,this.tooltipRef.instance.placement]))}};return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(ao),xo(ca),xo(sa),xo(Ia),xo(Vc))},t.\u0275dir=be({type:t,selectors:[["","mwlCalendarTooltip",""]],hostBindings:function(t,e){1&t&&Oo("mouseenter",(function(){return e.onMouseOver()}))("mouseleave",(function(){return e.onMouseOut()}))},inputs:{placement:["tooltipPlacement","placement"],delay:["tooltipDelay","delay"],contents:["mwlCalendarTooltip","contents"],customTemplate:["tooltipTemplate","customTemplate"],event:["tooltipEvent","event"],appendToBody:["tooltipAppendToBody","appendToBody"]},features:[Le]}),t})();class w_{}var x_=function(t){return t.Month="month",t.Week="week",t.Day="day",t}({});const E_=(t,e)=>e.id?e.id:e,S_=(t,e)=>e.date.toISOString();function k_(t,e,n,i){let s=0,r=0;const o=n<0?t.subDays:t.addDays;let a=e;for(;r<=Math.abs(n);){a=o(e,s);const n=t.getDay(a);-1===i.indexOf(n)&&r++,s++}return a}function C_({x:t,y:e}){return Math.abs(t)>1||Math.abs(e)>1}let T_=(()=>{let t=class{constructor(t){this.dateAdapter=t,this.excludeDays=[],this.viewDateChange=new ul}onClick(){const t={day:this.dateAdapter.subDays,week:this.dateAdapter.subWeeks,month:this.dateAdapter.subMonths}[this.view];this.viewDateChange.emit(this.view===x_.Day?k_(this.dateAdapter,this.viewDate,-1,this.excludeDays):this.view===x_.Week&&this.daysInWeek?k_(this.dateAdapter,this.viewDate,-this.daysInWeek,this.excludeDays):t(this.viewDate,1))}};return t.\u0275fac=function(e){return new(e||t)(xo(w_))},t.\u0275dir=be({type:t,selectors:[["","mwlCalendarPreviousView",""]],hostBindings:function(t,e){1&t&&Oo("click",(function(){return e.onClick()}))},inputs:{excludeDays:"excludeDays",view:"view",viewDate:"viewDate",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),t})(),D_=(()=>{let t=class{constructor(t){this.dateAdapter=t,this.excludeDays=[],this.viewDateChange=new ul}onClick(){const t={day:this.dateAdapter.addDays,week:this.dateAdapter.addWeeks,month:this.dateAdapter.addMonths}[this.view];this.viewDateChange.emit(this.view===x_.Day?k_(this.dateAdapter,this.viewDate,1,this.excludeDays):this.view===x_.Week&&this.daysInWeek?k_(this.dateAdapter,this.viewDate,this.daysInWeek,this.excludeDays):t(this.viewDate,1))}};return t.\u0275fac=function(e){return new(e||t)(xo(w_))},t.\u0275dir=be({type:t,selectors:[["","mwlCalendarNextView",""]],hostBindings:function(t,e){1&t&&Oo("click",(function(){return e.onClick()}))},inputs:{excludeDays:"excludeDays",view:"view",viewDate:"viewDate",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),t})(),A_=(()=>{let t=class{constructor(t){this.dateAdapter=t,this.viewDateChange=new ul}onClick(){this.viewDateChange.emit(this.dateAdapter.startOfDay(new Date))}};return t.\u0275fac=function(e){return new(e||t)(xo(w_))},t.\u0275dir=be({type:t,selectors:[["","mwlCalendarToday",""]],hostBindings:function(t,e){1&t&&Oo("click",(function(){return e.onClick()}))},inputs:{viewDate:"viewDate"},outputs:{viewDateChange:"viewDateChange"}}),t})(),O_=(()=>{let t=class{constructor(t){this.dateAdapter=t}monthViewColumnHeader({date:t,locale:e}){return wu(t,"EEEE",e)}monthViewDayNumber({date:t,locale:e}){return wu(t,"d",e)}monthViewTitle({date:t,locale:e}){return wu(t,"LLLL y",e)}weekViewColumnHeader({date:t,locale:e}){return wu(t,"EEEE",e)}weekViewColumnSubHeader({date:t,locale:e}){return wu(t,"MMM d",e)}weekViewTitle({date:t,locale:e,weekStartsOn:n,excludeDays:i,daysInWeek:s}){const{viewStart:r,viewEnd:o}=function(t,e,n,i=[],s){let r=s?t.startOfDay(e):t.startOfWeek(e,{weekStartsOn:n});const o=t.endOfWeek(e,{weekStartsOn:n});for(;i.indexOf(t.getDay(r))>-1&&r<o;)r=t.addDays(r,1);if(s)return{viewStart:r,viewEnd:t.endOfDay(k_(t,r,s-1,i))};{let e=o;for(;i.indexOf(t.getDay(e))>-1&&e>r;)e=t.subDays(e,1);return{viewStart:r,viewEnd:e}}}(this.dateAdapter,t,n,i,s),a=(t,n)=>wu(t,"MMM d"+(n?", yyyy":""),e);return`${a(r,r.getUTCFullYear()!==o.getUTCFullYear())} - ${a(o,!0)}`}weekViewHour({date:t,locale:e}){return wu(t,"h a",e)}dayViewHour({date:t,locale:e}){return wu(t,"h a",e)}dayViewTitle({date:t,locale:e}){return wu(t,"EEEE, MMMM d, y",e)}};return t.\u0275fac=function(e){return new(e||t)(Kt(w_))},t.\u0275prov=ut({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),I_=(()=>{let t=class extends O_{};return t.\u0275fac=function(e){return J_(e||t)},t.\u0275prov=ut({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),M_=(()=>{let t=class{constructor(t,e){this.dateFormatter=t,this.locale=e}transform(t,e,n=this.locale,i=0,s=[],r){if(void 0===this.dateFormatter[e]){const t=Object.getOwnPropertyNames(Object.getPrototypeOf(I_.prototype)).filter(t=>"constructor"!==t);throw new Error(`${e} is not a valid date formatter. Can only be one of ${t.join(", ")}`)}return this.dateFormatter[e]({date:t,locale:n,weekStartsOn:i,excludeDays:s,daysInWeek:r})}};return t.\u0275fac=function(e){return new(e||t)(xo(I_),xo(Ml))},t.\u0275pipe=we({name:"calendarDate",type:t,pure:!0}),t})();class P_{month(t,e){return t.title}monthTooltip(t,e){return t.title}week(t,e){return t.title}weekTooltip(t,e){return t.title}day(t,e){return t.title}dayTooltip(t,e){return t.title}}let R_=(()=>{let t=class{constructor(t){this.calendarEventTitle=t}transform(t,e,n){return this.calendarEventTitle[e](n,t)}};return t.\u0275fac=function(e){return new(e||t)(xo(P_))},t.\u0275pipe=we({name:"calendarEventTitle",type:t,pure:!0}),t})(),L_=(()=>{let t=class{constructor(t,e,n){this.renderer=t,this.elm=e,this.document=n,this.clickListenerDisabled=!1,this.click=new ul,this.destroy$=new E}ngOnInit(){this.clickListenerDisabled||this.listen().pipe(ch(this.destroy$)).subscribe(t=>{t.stopPropagation(),this.click.emit(t)})}ngOnDestroy(){this.destroy$.next()}listen(){return new _(t=>this.renderer.listen(this.elm.nativeElement,"click",e=>{t.next(e)}))}};return t.\u0275fac=function(e){return new(e||t)(xo(ca),xo(ra),xo(Vc))},t.\u0275dir=be({type:t,selectors:[["","mwlClick",""]],inputs:{clickListenerDisabled:"clickListenerDisabled"},outputs:{click:"mwlClick"}}),t})(),F_=(()=>{let t=class{constructor(t,e,n){this.host=t,this.ngZone=e,this.renderer=n,this.keydown=new ul,this.keydownListener=null}ngOnInit(){this.ngZone.runOutsideAngular(()=>{this.keydownListener=this.renderer.listen(this.host.nativeElement,"keydown",t=>{13!==t.keyCode&&13!==t.which&&"Enter"!==t.key||(t.preventDefault(),t.stopPropagation(),this.ngZone.run(()=>{this.keydown.emit(t)}))})})}ngOnDestroy(){null!==this.keydownListener&&(this.keydownListener(),this.keydownListener=null)}};return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(Wl),xo(ca))},t.\u0275dir=be({type:t,selectors:[["","mwlKeydownEnter",""]],outputs:{keydown:"mwlKeydownEnter"}}),t})(),N_=(()=>{let t=class{constructor(t){this.dateAdapter=t}getMonthView(t){return function(t,e){var n=e.events,i=void 0===n?[]:n,s=e.viewDate,r=e.weekStartsOn,o=e.excluded,a=void 0===o?[]:o,l=e.viewStart,c=void 0===l?t.startOfMonth(s):l,u=e.viewEnd,h=void 0===u?t.endOfMonth(s):u,d=e.weekendDays;i||(i=[]);for(var f,p=t.endOfWeek,m=t.differenceInDays,g=t.startOfDay,y=t.addHours,_=t.endOfDay,v=t.isSameMonth,b=t.getDay,w=(0,t.startOfWeek)(c,{weekStartsOn:r}),x=p(h,{weekStartsOn:r}),E=Ag(t,{events:i,periodStart:w,periodEnd:x}),S=[],k=function(e){var n;if(f?(n=g(y(f,24)),f.getTime()===n.getTime()&&(n=g(y(f,25))),f=n):n=f=w,!a.some((function(t){return b(n)===t}))){var i=Og(t,{date:n,weekendDays:d}),r=Ag(t,{events:E,periodStart:g(n),periodEnd:_(n)});i.inMonth=v(n,s),i.events=r,i.badgeTotal=r.length,S.push(i)}},C=0;C<m(x,w)+1;C++)k();var T=[],D=7-a.length;if(D<7)for(C=0;C<S.length;C+=D){var A=S.slice(C,C+D);A.some((function(t){return c<=t.date&&t.date<h}))&&(T=Sg(T,A))}else T=S;var O=Math.floor(T.length/D),I=[];for(C=0;C<O;C++)I.push(C*D);return{rowOffsets:I,totalDaysVisibleInWeek:D,days:T,period:{start:T[0].date,end:_(T[T.length-1].date),events:E}}}(this.dateAdapter,t)}getWeekViewHeader(t){return Ig(this.dateAdapter,t)}getWeekView(t){return function(t,e){var n=e.events,i=void 0===n?[]:n,s=e.viewDate,r=e.weekStartsOn,o=e.excluded,a=void 0===o?[]:o,l=e.precision,c=void 0===l?"days":l,u=e.absolutePositionedEvents,h=void 0!==u&&u,d=e.hourSegments,f=e.hourDuration,p=e.dayStart,m=e.dayEnd,g=e.weekendDays,y=e.segmentHeight,_=e.minimumEventHeight,v=e.viewStart,b=void 0===v?t.startOfWeek(s,{weekStartsOn:r}):v,w=e.viewEnd,x=void 0===w?t.endOfWeek(s,{weekStartsOn:r}):w;i||(i=[]);var E=t.endOfDay,S=Ag(t,{events:i,periodStart:b=(0,t.startOfDay)(b),periodEnd:x=E(x)}),k=Ig(t,{viewDate:s,weekStartsOn:r,excluded:a,weekendDays:g,viewStart:b,viewEnd:x});return{allDayEventRows:Mg(t,{events:S,excluded:a,precision:c,absolutePositionedEvents:h,viewStart:b,viewEnd:x}),period:{events:S,start:k[0].date,end:E(k[k.length-1].date)},hourColumns:Pg(t,{events:i,viewDate:s,hourSegments:d,hourDuration:f,dayStart:p,dayEnd:m,weekStartsOn:r,excluded:a,weekendDays:g,segmentHeight:y,viewStart:b,viewEnd:x,minimumEventHeight:_})}}(this.dateAdapter,t)}};return t.\u0275fac=function(e){return new(e||t)(Kt(w_))},t.\u0275prov=ut({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),j_=(()=>{let t=class{constructor(t){this.i18nPlural=t}monthCell({day:t,locale:e}){return t.badgeTotal>0?`\n ${wu(t.date,"EEEE MMMM d",e)},\n ${this.i18nPlural.transform(t.badgeTotal,{"=0":"No events","=1":"One event",other:"# events"})},\n click to expand\n `:""+wu(t.date,"EEEE MMMM d",e)}openDayEventsLandmark({date:t,locale:e}){return`\n Beginning of expanded view for ${wu(t,"EEEE MMMM dd",e)}\n `}openDayEventsAlert({date:t,locale:e}){return wu(t,"EEEE MMMM dd",e)+" expanded"}eventDescription({event:t,locale:e}){if(!0===t.allDay)return this.allDayEventDescription({event:t,locale:e});const n=`\n ${wu(t.start,"EEEE MMMM dd",e)},\n ${t.title}, from ${wu(t.start,"hh:mm a",e)}\n `;return t.end?n+" to "+wu(t.end,"hh:mm a",e):n}allDayEventDescription({event:t,locale:e}){const n=`\n ${t.title}, event spans multiple days:\n start time ${wu(t.start,"MMMM dd hh:mm a",e)}\n `;return t.end?n+", stop time "+wu(t.end,"MMMM d hh:mm a",e):n+", no stop time"}actionButtonLabel({action:t}){return t.a11yLabel}monthCellTabIndex(){return 0}hideMonthCellEvents(){return!0}hideEventTitle(){return!0}hideWeekHourSegment(){return!0}hideDayHourSegment(){return!0}};return t.\u0275fac=function(e){return new(e||t)(Kt(Zu))},t.\u0275prov=ut({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),B_=(()=>{let t=class{constructor(t,e){this.calendarA11y=t,this.locale=e}transform(t,e){if(t.locale=t.locale||this.locale,void 0===this.calendarA11y[e]){const t=Object.getOwnPropertyNames(Object.getPrototypeOf(j_.prototype)).filter(t=>"constructor"!==t);throw new Error(`${e} is not a valid a11y method. Can only be one of ${t.join(", ")}`)}return this.calendarA11y[e](t)}};return t.\u0275fac=function(e){return new(e||t)(xo(j_),xo(Ml))},t.\u0275pipe=we({name:"calendarA11y",type:t,pure:!0}),t})();var H_,V_=function(t){return t.Drag="drag",t.Drop="drop",t.Resize="resize",t}({});let $_=(()=>{let t=H_=class{static forRoot(t,e={}){return{ngModule:H_,providers:[t,e.eventTitleFormatter||P_,e.dateFormatter||I_,e.utils||N_,e.a11y||j_]}}};return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Zu],imports:[[Gu]]}),t})(),z_=(()=>{let t=class{constructor(t,e,n,i){this.cdr=t,this.utils=e,this.dateAdapter=i,this.events=[],this.excludeDays=[],this.activeDayIsOpen=!1,this.tooltipPlacement="auto",this.tooltipAppendToBody=!0,this.tooltipDelay=null,this.beforeViewRender=new ul,this.dayClicked=new ul,this.eventClicked=new ul,this.columnHeaderClicked=new ul,this.eventTimesChanged=new ul,this.trackByRowOffset=(t,e)=>this.view.days.slice(e,this.view.totalDaysVisibleInWeek).map(t=>t.date.toISOString()).join("-"),this.trackByDate=(t,e)=>e.date.toISOString(),this.locale=n}ngOnInit(){this.refresh&&(this.refreshSubscription=this.refresh.subscribe(()=>{this.refreshAll(),this.cdr.markForCheck()}))}ngOnChanges(t){const e=t.viewDate||t.excludeDays||t.weekendDays,n=t.viewDate||t.events||t.excludeDays||t.weekendDays;e&&this.refreshHeader(),t.events&&function(t,e){function n(t,n){e(t,n),!1}Array.isArray(t)?t.forEach((function(t){t.start?t.start instanceof Date||n(Ng.StartPropertyNotDate,t):n(Ng.StartPropertyMissing,t),t.end&&(t.end instanceof Date||n(Ng.EndPropertyNotDate,t),t.start>t.end&&n(Ng.EndsBeforeStart,t))})):e(Ng.NotArray,t)}(this.events,(...t)=>console.warn("angular-calendar",...t)),n&&this.refreshBody(),(e||n)&&this.emitBeforeViewRender(),(t.activeDayIsOpen||t.viewDate||t.events||t.excludeDays||t.activeDay)&&this.checkActiveDayIsOpen()}ngOnDestroy(){this.refreshSubscription&&this.refreshSubscription.unsubscribe()}toggleDayHighlight(t,e){this.view.days.forEach(n=>{e&&n.events.indexOf(t)>-1?n.backgroundColor=t.color&&t.color.secondary||"#D1E8FF":delete n.backgroundColor})}eventDropped(t,e,n){if(t!==n){const n=this.dateAdapter.getYear(t.date),i=this.dateAdapter.getMonth(t.date),s=this.dateAdapter.getDate(t.date),r=this.dateAdapter.setDate(this.dateAdapter.setMonth(this.dateAdapter.setYear(e.start,n),i),s);let o;if(e.end){const t=this.dateAdapter.differenceInSeconds(r,e.start);o=this.dateAdapter.addSeconds(e.end,t)}this.eventTimesChanged.emit({event:e,newStart:r,newEnd:o,day:t,type:V_.Drop})}}refreshHeader(){this.columnHeaders=this.utils.getWeekViewHeader({viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays})}refreshBody(){this.view=this.utils.getMonthView({events:this.events,viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays})}checkActiveDayIsOpen(){if(!0===this.activeDayIsOpen){const t=this.activeDay||this.viewDate;this.openDay=this.view.days.find(e=>this.dateAdapter.isSameDay(e.date,t));const e=this.view.days.indexOf(this.openDay);this.openRowIndex=Math.floor(e/this.view.totalDaysVisibleInWeek)*this.view.totalDaysVisibleInWeek}else this.openRowIndex=null,this.openDay=null}refreshAll(){this.refreshHeader(),this.refreshBody(),this.emitBeforeViewRender(),this.checkActiveDayIsOpen()}emitBeforeViewRender(){this.columnHeaders&&this.view&&this.beforeViewRender.emit({header:this.columnHeaders,body:this.view.days,period:this.view.period})}};return t.\u0275fac=function(e){return new(e||t)(xo(Ur),xo(N_),xo(Ml),xo(w_))},t.\u0275cmp=pe({type:t,selectors:[["mwl-calendar-month-view"]],inputs:{events:"events",excludeDays:"excludeDays",activeDayIsOpen:"activeDayIsOpen",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",tooltipDelay:"tooltipDelay",locale:"locale",viewDate:"viewDate",activeDay:"activeDay",refresh:"refresh",tooltipTemplate:"tooltipTemplate",weekStartsOn:"weekStartsOn",headerTemplate:"headerTemplate",cellTemplate:"cellTemplate",openDayEventsTemplate:"openDayEventsTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",weekendDays:"weekendDays"},outputs:{beforeViewRender:"beforeViewRender",dayClicked:"dayClicked",eventClicked:"eventClicked",columnHeaderClicked:"columnHeaderClicked",eventTimesChanged:"eventTimesChanged"},features:[Le],decls:4,vars:5,consts:[["role","grid",1,"cal-month-view"],[3,"days","locale","customTemplate","columnHeaderClicked"],[1,"cal-days"],[4,"ngFor","ngForOf","ngForTrackBy"],["role","row",1,"cal-cell-row"],["role","gridcell","mwlDroppable","","dragOverClass","cal-drag-over",3,"ngClass","day","openDay","locale","tooltipPlacement","tooltipAppendToBody","tooltipTemplate","tooltipDelay","customTemplate","ngStyle","clickListenerDisabled","mwlClick","mwlKeydownEnter","highlightDay","unhighlightDay","drop","eventClicked",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDroppable","","dragOverClass","cal-drag-over",3,"locale","isOpen","events","date","customTemplate","eventTitleTemplate","eventActionsTemplate","eventClicked","drop"],["role","gridcell","mwlDroppable","","dragOverClass","cal-drag-over",3,"ngClass","day","openDay","locale","tooltipPlacement","tooltipAppendToBody","tooltipTemplate","tooltipDelay","customTemplate","ngStyle","clickListenerDisabled","mwlClick","mwlKeydownEnter","highlightDay","unhighlightDay","drop","eventClicked"]],template:function(t,e){1&t&&(ko(0,"div",0),ko(1,"mwl-calendar-month-view-header",1),Oo("columnHeaderClicked",(function(t){return e.columnHeaderClicked.emit(t)})),Co(),ko(2,"div",2),bo(3,Qy,5,13,"div",3),Co(),Co()),2&t&&(xs(1),Eo("days",e.columnHeaders)("locale",e.locale)("customTemplate",e.headerTemplate),xs(2),Eo("ngForOf",e.view.rowOffsets)("ngForTrackBy",e.trackByRowOffset))},directives:function(){return[W_,Lu,q_,Ty,Y_,Pu,Hu,L_,F_]},pipes:function(){return[Ku,B_]},encapsulation:2}),t})(),W_=(()=>{let t=class{constructor(){this.columnHeaderClicked=new ul,this.trackByWeekDayHeaderDate=S_}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["mwl-calendar-month-view-header"]],inputs:{days:"days",locale:"locale",customTemplate:"customTemplate"},outputs:{columnHeaderClicked:"columnHeaderClicked"},decls:3,vars:6,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","row",1,"cal-cell-row","cal-header"],["class","cal-cell","tabindex","0","role","columnheader",3,"cal-past","cal-today","cal-future","cal-weekend","ngClass","click",4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","0","role","columnheader",1,"cal-cell",3,"ngClass","click"]],template:function(t,e){if(1&t&&(bo(0,Ky,2,2,"ng-template",null,0,xl),bo(2,Gy,0,0,"ng-template",1)),2&t){const t=wo(1);xs(2),Eo("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",tl(2,Xy,e.days,e.locale,e.trackByWeekDayHeaderDate))}},directives:[Vu,Lu,Pu],pipes:[M_],encapsulation:2}),t})(),Y_=(()=>{let t=class{constructor(){this.highlightDay=new ul,this.unhighlightDay=new ul,this.eventClicked=new ul,this.trackByEventId=E_,this.validateDrag=C_}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["mwl-calendar-month-cell"]],hostAttrs:[1,"cal-cell","cal-day-cell"],hostVars:18,hostBindings:function(t,e){2&t&&Vo("cal-past",e.day.isPast)("cal-today",e.day.isToday)("cal-future",e.day.isFuture)("cal-weekend",e.day.isWeekend)("cal-in-month",e.day.inMonth)("cal-out-month",!e.day.inMonth)("cal-has-events",e.day.events.length>0)("cal-open",e.day===e.openDay)("cal-event-highlight",!!e.day.backgroundColor)},inputs:{day:"day",openDay:"openDay",locale:"locale",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",customTemplate:"customTemplate",tooltipTemplate:"tooltipTemplate",tooltipDelay:"tooltipDelay"},outputs:{highlightDay:"highlightDay",unhighlightDay:"unhighlightDay",eventClicked:"eventClicked"},decls:3,vars:15,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-cell-top"],["aria-hidden","true"],["class","cal-day-badge",4,"ngIf"],[1,"cal-day-number"],["class","cal-events",4,"ngIf"],[1,"cal-day-badge"],[1,"cal-events"],["class","cal-event","mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","cal-draggable","dropData","dragAxis","validateDrag","touchStartLongPress","mouseenter","mouseleave","mwlClick",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDraggable","","dragActiveClass","cal-drag-active",1,"cal-event",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","dropData","dragAxis","validateDrag","touchStartLongPress","mouseenter","mouseleave","mwlClick"]],template:function(t,e){if(1&t&&(bo(0,o_,8,14,"ng-template",null,0,xl),bo(2,a_,0,0,"ng-template",1)),2&t){const t=wo(1);xs(2),Eo("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",(n=2,i=l_,s=[e.day,e.openDay,e.locale,e.tooltipPlacement,e.highlightDay,e.unhighlightDay,e.eventClicked,e.tooltipTemplate,e.tooltipAppendToBody,e.tooltipDelay,e.trackByEventId,e.validateDrag],function(t,e,n,i,s,r){let o=e+n,a=!1;for(let l=0;l<s.length;l++)yo(t,o++,s[l])&&(a=!0);return a?mo(t,o,i.apply(r,s)):el(t,o)}(rn(),pn(),n,i,s,r)))}var n,i,s,r},directives:[Vu,Nu,Lu,ky,Hu,Pu,b_,L_],pipes:[B_,M_,R_],encapsulation:2}),t})();const U_=Pf("collapse",[Nf("void",Ff({height:0,overflow:"hidden","padding-top":0,"padding-bottom":0})),Nf("*",Ff({height:"*",overflow:"hidden","padding-top":"*","padding-bottom":"*"})),Bf("* => void",Rf("150ms ease-out")),Bf("void => *",Rf("150ms ease-in"))]);let q_=(()=>{let t=class{constructor(){this.isOpen=!1,this.eventClicked=new ul,this.trackByEventId=E_,this.validateDrag=C_}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["mwl-calendar-open-day-events"]],inputs:{isOpen:"isOpen",locale:"locale",events:"events",customTemplate:"customTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",date:"date"},outputs:{eventClicked:"eventClicked"},decls:3,vars:8,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-open-day-events","role","application",4,"ngIf"],["role","application",1,"cal-open-day-events"],["tabindex","-1","role","alert"],["tabindex","0","role","landmark"],["mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngClass","cal-draggable","dropData","dragAxis","validateDrag","touchStartLongPress",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngClass","dropData","dragAxis","validateDrag","touchStartLongPress"],[1,"cal-event",3,"ngStyle"],["view","month","tabindex","0",3,"event","customTemplate","mwlClick","mwlKeydownEnter"],[3,"event","customTemplate"]],template:function(t,e){if(1&t&&(bo(0,p_,1,1,"ng-template",null,0,xl),bo(2,m_,0,0,"ng-template",1)),2&t){const t=wo(1);xs(2),Eo("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",function(t,e,n,i,s,r,o,a){const l=pn()+t,c=rn(),u=function(t,e,n,i,s,r){const o=_o(t,e,n,i);return _o(t,e+2,s,r)||o}(c,l,n,i,s,r);return yo(c,l+4,o)||u?mo(c,l+5,a?e.call(a,n,i,s,r,o):e(n,i,s,r,o)):go(c,l+5)}(2,g_,e.events,e.eventClicked,e.isOpen,e.trackByEventId,e.validateDrag))}},directives:[Vu,Nu,Lu,ky,Pu,Hu,__,L_,F_,y_],pipes:[B_],encapsulation:2,data:{animation:[U_]}}),t})(),Q_=(()=>{let t=class{};return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Gu,Dy,$_],Dy]}),t})(),Z_=(()=>{let t=class{};return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Gu,My,Dy,$_],My,Dy]}),t})(),K_=(()=>{let t=class{};return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Gu,$_,Z_]]}),t})();var G_;let X_=(()=>{let t=G_=class{static forRoot(t,e={}){return{ngModule:G_,providers:[t,e.eventTitleFormatter||P_,e.dateFormatter||I_,e.utils||N_,e.a11y||j_]}}};return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[$_,Q_,Z_,K_],$_,Q_,Z_,K_]}),t})();const J_=pi(I_);function tv(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function ev(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function nv(t){ev(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(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://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function iv(t,e){ev(2,arguments);var n=nv(t),i=tv(e);return isNaN(i)?new Date(NaN):i?(n.setDate(n.getDate()+i),n):n}function sv(t,e){ev(2,arguments);var n=nv(t).getTime(),i=tv(e);return new Date(n+i)}var rv=36e5;function ov(t,e){ev(2,arguments);var n=tv(e);return sv(t,n*rv)}function av(t,e){ev(2,arguments);var n=tv(e);return sv(t,6e4*n)}function lv(t,e){ev(2,arguments);var n=tv(e);return sv(t,1e3*n)}function cv(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 uv(t){ev(1,arguments);var e=nv(t);return e.setHours(0,0,0,0),e}var hv=864e5;function dv(t,e){ev(2,arguments);var n=uv(t),i=uv(e),s=n.getTime()-cv(n),r=i.getTime()-cv(i);return Math.round((s-r)/hv)}function fv(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 pv(t,e){ev(2,arguments);var n=nv(t),i=nv(e),s=fv(n,i),r=Math.abs(dv(n,i));n.setDate(n.getDate()-s*r);var o=Number(fv(n,i)===-s),a=s*(r-o);return 0===a?0:a}function mv(t,e){return ev(2,arguments),nv(t).getTime()-nv(e).getTime()}var gv={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}};function yv(t){return t?gv[t]:gv.trunc}function _v(t,e,n){ev(2,arguments);var i=mv(t,e)/6e4;return yv(null==n?void 0:n.roundingMethod)(i)}function vv(t,e,n){ev(2,arguments);var i=mv(t,e)/1e3;return yv(null==n?void 0:n.roundingMethod)(i)}function bv(t){ev(1,arguments);var e=nv(t);return e.setHours(23,59,59,999),e}function wv(t){ev(1,arguments);var e=nv(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}var xv={};function Ev(){return xv}function Sv(t,e){var n,i,s,r,o,a,l,c;ev(1,arguments);var u=Ev(),h=tv(null!==(n=null!==(i=null!==(s=null!==(r=null==e?void 0:e.weekStartsOn)&&void 0!==r?r:null==e||null===(o=e.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==s?s:u.weekStartsOn)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=nv(t),f=d.getDay(),p=6+(f<h?-7:0)-(f-h);return d.setDate(d.getDate()+p),d.setHours(23,59,59,999),d}function kv(t){ev(1,arguments);var e=nv(t),n=e.getDay();return n}function Cv(t){ev(1,arguments);var e=nv(t),n=e.getMonth();return n}function Tv(t,e){ev(2,arguments);var n=uv(t),i=uv(e);return n.getTime()===i.getTime()}function Dv(t,e){ev(2,arguments);var n=nv(t),i=nv(e);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}function Av(t){ev(1,arguments);var e=nv(t);return e.setMilliseconds(0),e}function Ov(t,e){ev(2,arguments);var n=Av(t),i=Av(e);return n.getTime()===i.getTime()}function Iv(t){var e,n;if(ev(1,arguments),t&&"function"==typeof t.forEach)e=t;else{if("object"!=typeof t||null===t)return new Date(NaN);e=Array.prototype.slice.call(t)}return e.forEach((function(t){var e=nv(t);(void 0===n||n<e||isNaN(Number(e)))&&(n=e)})),n||new Date(NaN)}function Mv(t,e){ev(2,arguments);var n=nv(t),i=tv(e);return n.setHours(i),n}function Pv(t,e){ev(2,arguments);var n=nv(t),i=tv(e);return n.setMinutes(i),n}function Rv(t){ev(1,arguments);var e=nv(t);return e.setSeconds(0,0),e}function Lv(t){ev(1,arguments);var e=nv(t);return e.setDate(1),e.setHours(0,0,0,0),e}function Fv(t,e){var n,i,s,r,o,a,l,c;ev(1,arguments);var u=Ev(),h=tv(null!==(n=null!==(i=null!==(s=null!==(r=null==e?void 0:e.weekStartsOn)&&void 0!==r?r:null==e||null===(o=e.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==s?s:u.weekStartsOn)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=nv(t),f=d.getDay(),p=(f<h?7:0)+f-h;return d.setDate(d.getDate()-p),d.setHours(0,0,0,0),d}function Nv(t){ev(1,arguments);var e=nv(t),n=e.getHours();return n}function jv(t){ev(1,arguments);var e=nv(t),n=e.getMinutes();return n}function Bv(t,e){ev(2,arguments);var n=tv(e),i=7*n;return iv(t,i)}function Hv(t,e){ev(2,arguments);var n=nv(t),i=tv(e);if(isNaN(i))return new Date(NaN);if(!i)return n;var s=n.getDate(),r=new Date(n.getTime());r.setMonth(n.getMonth()+i+1,0);var o=r.getDate();return s>=o?r:(n.setFullYear(r.getFullYear(),r.getMonth(),s),n)}function Vv(t,e){ev(2,arguments);var n=tv(e);return iv(t,-n)}function $v(t,e){ev(2,arguments);var n=tv(e);return Bv(t,-n)}function zv(t,e){ev(2,arguments);var n=tv(e);return Hv(t,-n)}function Wv(t){return ev(1,arguments),Fv(t,{weekStartsOn:1})}function Yv(t){ev(1,arguments);var e=nv(t),n=e.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var s=Wv(i),r=new Date(0);r.setFullYear(n,0,4),r.setHours(0,0,0,0);var o=Wv(r);return e.getTime()>=s.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function Uv(t){ev(1,arguments);var e=Yv(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var i=Wv(n);return i}var qv=6048e5;function Qv(t){ev(1,arguments);var e=nv(t),n=Wv(e).getTime()-Uv(e).getTime();return Math.round(n/qv)+1}function Zv(t,e){ev(2,arguments);var n=nv(t),i=tv(e);return n.setDate(i),n}function Kv(t){ev(1,arguments);var e=nv(t),n=e.getFullYear(),i=e.getMonth(),s=new Date(0);return s.setFullYear(n,i+1,0),s.setHours(0,0,0,0),s.getDate()}function Gv(t,e){ev(2,arguments);var n=nv(t),i=tv(e),s=n.getFullYear(),r=n.getDate(),o=new Date(0);o.setFullYear(s,i,15),o.setHours(0,0,0,0);var a=Kv(o);return n.setMonth(i,Math.min(r,a)),n}function Xv(t,e){ev(2,arguments);var n=nv(t),i=tv(e);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(i),n)}function Jv(t){ev(1,arguments);var e=nv(t),n=e.getDate();return n}function tb(t){return ev(1,arguments),nv(t).getFullYear()}function eb(){return mg(mg({},{addDays:iv,addHours:ov,addMinutes:av,addSeconds:lv,differenceInDays:pv,differenceInMinutes:_v,differenceInSeconds:vv,endOfDay:bv,endOfMonth:wv,endOfWeek:Sv,getDay:kv,getMonth:Cv,isSameDay:Tv,isSameMonth:Dv,isSameSecond:Ov,max:Iv,setHours:Mv,setMinutes:Pv,startOfDay:uv,startOfMinute:Rv,startOfMonth:Lv,startOfWeek:Fv,getHours:Nv,getMinutes:jv}),{addWeeks:Bv,addMonths:Hv,subDays:Vv,subWeeks:$v,subMonths:zv,getISOWeek:Qv,setDate:Zv,setMonth:Gv,setYear:Xv,getDate:Jv,getYear:tb})}let nb;try{nb="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Nx){nb=!1}let ib,sb,rb=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Xu(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!nb)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(Kt(Al))},t.\u0275prov=ut({factory:function(){return new t(Kt(Al))},token:t,providedIn:"root"}),t})(),ob=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();function ab(t){return function(){if(null==ib&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ib=!0}))}finally{ib=ib||!1}return ib}()?t:!!t.capture}let lb=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})(),cb=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[lb]}),t})();function ub(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const hb="cdk-describedby-message-container",db="cdk-describedby-host";let fb=0;const pb=new Map;let mb=null,gb=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),pb.set(e,{messageElement:e,referenceCount:0})):pb.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=pb.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}mb&&0===mb.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute(db);mb&&this._deleteMessagesContainer(),pb.clear()}_createMessageElement(t){const e=this._document.createElement("div");this._setMessageId(e),e.textContent=t,this._createMessagesContainer(),mb.appendChild(e),pb.set(t,{messageElement:e,referenceCount:0})}_setMessageId(t){t.id||(t.id="cdk-describedby-message-"+fb++)}_deleteMessageElement(t){const e=pb.get(t),n=e&&e.messageElement;mb&&n&&mb.removeChild(n),pb.delete(t)}_createMessagesContainer(){if(!mb){const t=!this._platform||!this._platform.EDGE&&!this._platform.TRIDENT,e=this._document.getElementById(hb);e&&e.parentNode&&e.parentNode.removeChild(e),mb=this._document.createElement("div"),mb.id=hb,mb.classList.add("cdk-visually-hidden"),mb.setAttribute("aria-hidden",t+""),this._document.body.appendChild(mb)}}_deleteMessagesContainer(){mb&&mb.parentNode&&(mb.parentNode.removeChild(mb),mb=null)}_removeCdkDescribedByReferenceIds(t){const e=ub(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=pb.get(e);!function(t,e,n){const i=ub(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute(db,""),n.referenceCount++}_removeMessageReference(t,e){const n=pb.get(e);n.referenceCount--,function(t,e,n){const i=ub(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(db)}_isElementDescribedByMessage(t,e){const n=ub(t,"aria-describedby"),i=pb.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc),Kt(rb))},t.\u0275prov=ut({factory:function(){return new t(Kt(Vc),Kt(rb))},token:t,providedIn:"root"}),t})();function yb(t){return 0===t.buttons}"undefined"!=typeof Element&&Element;const _b=new Bt("cdk-focus-monitor-default-options"),vb=ab({passive:!0,capture:!0});let bb=(()=>{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=yb(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=wb(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=wb(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return xc(null);const n=hd(t),i=function(t){if(function(){if(null==sb){const t="undefined"!=typeof document?document.head:null;sb=!(!t||!t.createShadowRoot&&!t.attachShadow)}return sb}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new E,rootNode:i};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=hd(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=hd(t);this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=wb(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);if(!n||!n.checkChildren&&e!==wb(t))return;const i=this._getFocusOrigin(t);this._setClasses(e,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,vb),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,vb)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,vb),t.addEventListener("mousedown",this._documentMousedownListener,vb),t.addEventListener("touchstart",this._documentTouchstartListener,vb),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,vb),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,vb),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,vb),t.removeEventListener("mousedown",this._documentMousedownListener,vb),t.removeEventListener("touchstart",this._documentTouchstartListener,vb),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Wl),Kt(rb),Kt(Vc,8),Kt(_b,8))},t.\u0275prov=ut({factory:function(){return new t(Kt(Wl),Kt(rb),Kt(Vc,8),Kt(_b,8))},token:t,providedIn:"root"}),t})();function wb(t){return t.composedPath?t.composedPath()[0]:t.target}const xb="cdk-high-contrast-black-on-white",Eb="cdk-high-contrast-white-on-black",Sb="cdk-high-contrast-active";let kb=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Sb),t.remove(xb),t.remove(Eb);const e=this.getHighContrastMode();1===e?(t.add(Sb),t.add(xb)):2===e&&(t.add(Sb),t.add(Eb))}}}return t.\u0275fac=function(e){return new(e||t)(Kt(rb),Kt(Vc))},t.\u0275prov=ut({factory:function(){return new t(Kt(rb),Kt(Vc))},token:t,providedIn:"root"}),t})(),Cb=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Kt(kb))},imports:[[ob,cb]]}),t})();const Tb=new da("10.2.0"),Db=new da("10.2.0"),Ab=new Bt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Ob,Ib=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Oi()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);const i=getComputedStyle(n);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Db.full!==Tb.full&&console.warn("The Angular Material version ("+Db.full+") does not match the Angular CDK version ("+Tb.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Kt(kb),Kt(Ab,8),Kt(Vc,8))},imports:[[Yd],Yd]}),t})();function Mb(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=ld(t)}}}function Pb(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),e&&this._elementRef.nativeElement.classList.add("mat-"+e),this._color=e)}}}function Rb(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=ld(t)}}}try{Ob="undefined"!=typeof Intl}catch(Nx){Ob=!1}class Lb{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Fb={enterDuration:450,exitDuration:400},Nb=ab({passive:!0}),jb=["mousedown","touchstart"],Bb=["mouseup","mouseleave","touchend","touchcancel"];class Hb{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=hd(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Fb),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new Lb(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,n.persistent||t&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},Fb),t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=hd(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(jb))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Bb),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=yb(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,Nb)})})}_removeTriggerEvents(){this._triggerElement&&(jb.forEach(t=>{this._triggerElement.removeEventListener(t,this,Nb)}),this._pointerUpEventsRegistered&&Bb.forEach(t=>{this._triggerElement.removeEventListener(t,this,Nb)}))}}const Vb=new Bt("mat-ripple-global-options");let $b=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new Hb(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(Wl),xo(rb),xo(Vb,8),xo(dg,8))},t.\u0275dir=be({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Vo("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),zb=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Ib,ob],Ib]}),t})();const Wb=["mat-button",""],Yb=["*"],Ub=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class qb{constructor(t){this._elementRef=t}}const Qb=Pb(Mb(Rb(qb)));let Zb=(()=>{class t extends Qb{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of Ub)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(bb),xo(dg,8))},t.\u0275cmp=pe({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var n,i,s,r,o,a;1&t&&(r=$b,o=!0,function(t,e,n,i,s,r){t.firstCreatePass&&function(t,e,n){null===t.queries&&(t.queries=new gl),t.queries.track(new yl(e,-1))}(t,new ml(n,i,!1,s)),function(t,e){const n=new dl;$s(t,e,n,n.destroy),null===e[19]&&(e[19]=new pl),e[19].queries.push(new fl(n))}(t,e)}(on(),rn(),r,o,a)),2&t&&function(t){const e=rn(),n=on(),i=_n();vn(i+1);const s=wl(n,i);if(t.dirty&&Ge(e)===s.metadata.isStatic){if(null===s.matches)t.reset([]);else{const r=s.crossesNgTemplate?function t(e,n,i,s){const r=e.queries.getByIndex(i),o=r.matches;if(null!==o){const a=bl(e,n,r,i);for(let e=0;e<o.length;e+=2){const i=o[e];if(i>0)s.push(a[e/2]);else{const r=o[e+1],a=n[-i];for(let e=Ce;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,r,s)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const i=e[n];t(i[1],i,r,s)}}}}}return s}(n,e,i,[]):bl(n,e,s,i);t.reset(r),t.notifyOnChanges()}return!0}return!1}((i=rn(),s=_n(),n=i[19].queries[s].queryList))&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(vo("disabled",e.disabled||null),Vo("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Go],attrs:Wb,ngContentSelectors:Yb,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(Lo(),ko(0,"span",0),Fo(1),Co(),To(2,"span",1),To(3,"span",2)),2&t&&(xs(2),Vo("mat-button-ripple-round",e.isRoundButton||e.isIconButton),Eo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[$b],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),Kb=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[zb,Ib],Ib]}),t})();var Gb=n("BQ33"),Xb=n("dvnC"),Jb=n("aPkM"),tw=n("QbNu");let ew=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new E,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new _(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Iy(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):xc()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(nh(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>eh(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Wl),Kt(rb),Kt(Vc,8))},t.\u0275prov=ut({factory:function(){return new t(Kt(Wl),Kt(rb),Kt(Vc,8))},token:t,providedIn:"root"}),t})(),nw=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new E,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Iy(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(Kt(rb),Kt(Wl),Kt(Vc,8))},t.\u0275prov=ut({factory:function(){return new t(Kt(rb),Kt(Wl),Kt(Vc,8))},token:t,providedIn:"root"}),t})(),iw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),sw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Yd,ob,iw],Yd,iw]}),t})();class rw{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class ow extends rw{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class aw extends rw{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class lw extends rw{constructor(t){super(),this.element=t instanceof ra?t.nativeElement:t}}class cw extends class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof ow?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof aw?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof lw?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let uw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();class hw{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=ud(-this._previousScrollPosition.left),t.style.top=ud(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=s}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class dw{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class fw{enable(){}disable(){}attach(){}}function pw(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function mw(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class gw{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();pw(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let yw=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new fw,this.close=t=>new dw(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new hw(this._viewportRuler,this._document),this.reposition=t=>new gw(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(Kt(ew),Kt(nw),Kt(Wl),Kt(Vc))},t.\u0275prov=ut({factory:function(){return new t(Kt(ew),Kt(nw),Kt(Wl),Kt(Vc))},token:t,providedIn:"root"}),t})();class _w{constructor(t){if(this.scrollStrategy=new fw,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class vw{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class bw{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let ww=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc))},t.\u0275prov=ut({factory:function(){return new t(Kt(Vc))},token:t,providedIn:"root"}),t})(),xw=(()=>{class t extends ww{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc))},t.\u0275prov=ut({factory:function(){return new t(Kt(Vc))},token:t,providedIn:"root"}),t})(),Ew=(()=>{class t extends ww{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc),Kt(rb))},t.\u0275prov=ut({factory:function(){return new t(Kt(Vc),Kt(rb))},token:t,providedIn:"root"}),t})();const Sw=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let kw=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window,e="cdk-overlay-container";if(t||Sw){const t=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e])}const n=this._document.createElement("div");n.classList.add(e),Sw?n.setAttribute("platform","test"):t||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc),Kt(rb))},t.\u0275prov=ut({factory:function(){return new t(Kt(Vc),Kt(rb))},token:t,providedIn:"root"}),t})();class Cw{constructor(t,e,n,i,s,r,o,a,l){this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=s,this._keyboardDispatcher=r,this._document=o,this._location=a,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new E,this._attachments=new E,this._detachments=new E,this._locationChanges=h.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new E,this._outsidePointerEvents=new E,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(fh(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher&&this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=ud(this._config.width),t.height=ud(this._config.height),t.minWidth=ud(this._config.minWidth),t.minHeight=ud(this._config.minHeight),t.maxWidth=ud(this._config.maxWidth),t.maxHeight=ud(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;cd(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(ch(Y(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const Tw="cdk-overlay-connected-position-bounding-box",Dw=/([A-Za-z%]+)$/;class Aw{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new E,this._resizeSubscription=h.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(Tw),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleArea<l.visibleArea)&&(s={overlayFit:l,overlayPoint:a,originPoint:o,position:r,overlayRect:e})}if(i.length){let t=null,e=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>e&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ow(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Tw),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){let{x:s,y:r}=t,o=this._getOffset(i,"x"),a=this._getOffset(i,"y");o&&(s+=o),a&&(r+=a);let l=0-r,c=r+e.height-n.height,u=this._subtractOverflows(e.width,0-s,s+e.width-n.width),h=this._subtractOverflows(e.height,l,c),d=u*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:u==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=Iw(this._overlayRef.getConfig().minHeight),o=Iw(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=this._viewportRect,s=Math.max(t.x+e.width-i.width,0),r=Math.max(t.y+e.height-i.height,0),o=Math.max(i.top-n.top-t.y,0),a=Math.max(i.left-n.left-t.x,0);let l=0,c=0;return l=e.width<=i.width?a||-s:t.x<this._viewportMargin?i.left-n.left-t.x:0,c=e.height<=i.height?o||-r:t.y<this._viewportMargin?i.top-n.top-t.y:0,this._previousPushAmount={x:l,y:c},{x:t.x+l,y:t.y+c}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new bw(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,i=this._isRtl();let s,r,o,a,l,c;if("top"===e.overlayY)r=t.y,s=n.height-r+this._viewportMargin;else if("bottom"===e.overlayY)o=n.height-t.y+2*this._viewportMargin,s=n.height-o+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),i=this._lastBoundingBoxSize.height;s=2*e,r=t.y-e,s>i&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=ud(n.height),i.top=ud(n.top),i.bottom=ud(n.bottom),i.width=ud(n.width),i.left=ud(n.left),i.right=ud(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=ud(t)),s&&(i.maxWidth=ud(s))}this._lastBoundingBoxSize=n,Ow(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Ow(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ow(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();Ow(n,this._getExactOverlayY(e,t,i)),Ow(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=ud(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=ud(r.maxWidth):s&&(n.maxWidth="")),Ow(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=ud(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=ud(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:mw(t,n),isOriginOutsideView:pw(t,n),isOverlayClipped:mw(e,n),isOverlayOutsideView:pw(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&cd(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof ra)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function Ow(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Iw(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(Dw);return n&&"px"!==n?null:parseFloat(e)}return t||null}class Mw{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new Aw(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new vw(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const Pw="cdk-global-overlay-wrapper";class Rw{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Pw),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(Pw),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Lw=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new Rw}connectedTo(t,e,n){return new Mw(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Aw(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(Kt(nw),Kt(Vc),Kt(rb),Kt(kw))},t.\u0275prov=ut({factory:function(){return new t(Kt(nw),Kt(Vc),Kt(rb),Kt(kw))},token:t,providedIn:"root"}),t})(),Fw=0,Nw=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new _w(t);return s.direction=s.direction||this._directionality.value,new Cw(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+Fw++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(lc)),new cw(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(Kt(yw),Kt(kw),Kt(sa),Kt(Lw),Kt(xw),Kt(ao),Kt(Wl),Kt(Vc),Kt(Wd),Kt(tu),Kt(Ew))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const jw={provide:new Bt("cdk-connected-overlay-scroll-strategy"),deps:[Nw],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Bw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Nw,jw],imports:[[Yd,uw,sw],sw]}),t})();class Hw{constructor(t){this.total=t}call(t,e){return e.subscribe(new Vw(t,this.total))}}class Vw extends p{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const $w=new Set;let zw,Ww=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Yw}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!$w.has(t))try{zw||(zw=document.createElement("style"),zw.setAttribute("type","text/css"),document.head.appendChild(zw)),zw.sheet&&(zw.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),$w.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(rb))},t.\u0275prov=ut({factory:function(){return new t(Kt(rb))},token:t,providedIn:"root"}),t})();function Yw(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Uw=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new E}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return qw(cd(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=$g(qw(cd(t)).map(t=>this._registerQuery(t).observable));return e=wg(e.pipe(fh(1)),e.pipe(t=>t.lift(new Hw(1)),function(t,e=rh){return n=>n.lift(new oh(t,e))}(0))),e.pipe(C(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new _(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(xg(e),C(({matches:e})=>({query:t,matches:e})),ch(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(Kt(Ww),Kt(Wl))},t.\u0275prov=ut({factory:function(){return new t(Kt(Ww),Kt(Wl))},token:t,providedIn:"root"}),t})();function qw(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const Qw={tooltipState:Pf("state",[Nf("initial, void, hidden",Ff({opacity:0,transform:"scale(0)"})),Nf("visible",Ff({transform:"scale(1)"})),Bf("* => visible",Rf("200ms cubic-bezier(0, 0, 0.2, 1)",jf([Ff({opacity:0,transform:"scale(0)",offset:0}),Ff({opacity:.5,transform:"scale(0.99)",offset:.5}),Ff({opacity:1,transform:"scale(1)",offset:1})]))),Bf("* => hidden",Rf("100ms cubic-bezier(0, 0, 0.2, 1)",Ff({opacity:0})))])},Zw=ab({passive:!0}),Kw=new Bt("mat-tooltip-scroll-strategy"),Gw={provide:Kw,deps:[Nw],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Xw=new Bt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Jw=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=u,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new E,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!function(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,u&&(u.position&&(this.position=u.position),u.touchGestures&&(this.touchGestures=u.touchGestures)),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=ld(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ch(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,Zw)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new ow(tx,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(ch(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(ch(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(ch(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(fh(1),ch(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,Zw)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(xo(Nw),xo(ra),xo(ew),xo(Ia),xo(Wl),xo(rb),xo(gb),xo(bb),xo(Kw),xo(Wd,8),xo(Xw,8))},t.\u0275dir=be({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),tx=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new E,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(xo(Ur),xo(Uw))},t.\u0275cmp=pe({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&Oo("click",(function(){return e._handleBodyInteraction()}),!1,Zn),2&t&&Ho("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(ko(0,"div",0),Oo("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),rl(1,"async"),qo(2),Co()),2&t&&(Vo("mat-tooltip-handset",null==(n=function(t,e,n){const i=rn(),s=Qe(i,1);return cl(i,ll(i,1)?nl(i,pn(),5,s.transform,n,s):s.transform(n))}(0,0,e._isHandset))?null:n.matches),Eo("ngClass",e.tooltipClass)("@state",e._visibility),xs(2),Qo(e.message))},directives:[Pu],pipes:[qu],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[Qw.tooltipState]},changeDetection:0}),t})(),ex=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Gw],imports:[[Cb,Gu,Bw,Ib],Ib,iw]}),t})();class nx{constructor(t){this.selector=t}call(t,e){return e.subscribe(new ix(t,this.selector,this.caught))}}class ix extends j{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new N(this);this.add(i);const s=B(n,i);s!==i&&this.add(s)}}}class sx{constructor(t){this.callback=t}call(t,e){return e.subscribe(new rx(t,this.callback))}}class rx extends p{constructor(t,e){super(t),this.add(new h(e))}}class ox{}class ax{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof ax?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new ax;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ax?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class lx{encodeKey(t){return cx(t)}encodeValue(t){return cx(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function cx(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class ux{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new lx,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new ux({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function hx(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function dx(t){return"undefined"!=typeof Blob&&t instanceof Blob}function fx(t){return"undefined"!=typeof FormData&&t instanceof FormData}class px{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new ax),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new ux,this.urlWithParams=e}serializeBody(){return null===this.body?null:hx(this.body)||dx(this.body)||fx(this.body)||"string"==typeof this.body?this.body:this.body instanceof ux?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||fx(this.body)?null:dx(this.body)?this.body.type||null:hx(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ux?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,i=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,r=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new px(e,n,s,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:r})}}var mx=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}({});class gx extends class{constructor(t,e=200,n="OK"){this.headers=t.headers||new ax,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(t={}){super(t),this.type=mx.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new gx({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}function yx(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let _x=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof px)i=t;else{let s=void 0;s=n.headers instanceof ax?n.headers:new ax(n.headers);let r=void 0;n.params&&(r=n.params instanceof ux?n.params:new ux({fromObject:n.params})),i=new px(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=xc(i).pipe(H(t=>this.handler.handle(t),void 0,1));if(t instanceof px||"events"===n.observe)return s;const r=s.pipe(nh(t=>t instanceof gx));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return r.pipe(C(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(C(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(C(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(C(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new ux).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,yx(n,e))}post(t,e,n={}){return this.request("POST",t,yx(n,e))}put(t,e,n={}){return this.request("PUT",t,yx(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Kt(ox))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const vx=["*"];function bx(t){return Error(`Unable to find icon with the name "${t}"`)}function wx(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function xx(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Ex{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let Sx=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,i){return this._addSvgIconConfig(t,e,new Ex(n,null,i))}addSvgIconLiteralInNamespace(t,e,n,i){const s=this._sanitizer.sanitize(ts.HTML,n);if(!s)throw xx(n);return this._addSvgIconConfig(t,e,new Ex("",s,i))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new Ex(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const i=this._sanitizer.sanitize(ts.HTML,e);if(!i)throw xx(e);return this._addSvgIconSetConfig(t,new Ex("",i,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(ts.RESOURCE_URL,t);if(!e)throw wx(t);const n=this._cachedIconsByUrl.get(e);return n?xc(kx(n)):this._loadSvgIconFromConfig(new Ex(t,null)).pipe(yh(t=>this._cachedIconsByUrl.set(e,t)),C(t=>kx(t)))}getNamedSvgIcon(t,e=""){const n=Cx(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Ec(bx(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?xc(kx(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(C(t=>kx(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?xc(n):function(...t){if(1===t.length){const e=t[0];if(l(e))return Tf(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Tf(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Tf(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(C(t=>e(...t)))}return Tf(t,null)}(e.filter(t=>!t.svgText).map(t=>{return this._loadSvgIconSetFromConfig(t).pipe((e=e=>{const n=this._sanitizer.sanitize(ts.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),xc(null)},function(t){const n=new nx(e),i=t.lift(n);return n.caught=i}));var e})).pipe(C(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw bx(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(e,t,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(yh(e=>t.svgText=e),C(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?xc(null):this._fetchIcon(t).pipe(yh(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const s=i.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,n);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),n);const r=this._svgElementFromString("<svg></svg>");return r.appendChild(s),this._setSvgAttributes(r,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString("<svg></svg>"),n=t.attributes;for(let i=0;i<n.length;i++){const{name:t,value:s}=n[i];"id"!==t&&e.setAttribute(t,s)}for(let i=0;i<t.childNodes.length;i++)t.childNodes[i].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[i].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){var e;const{url:n,options:i}=t,s=null!==(e=null==i?void 0:i.withCredentials)&&void 0!==e&&e;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==n)throw Error(`Cannot fetch icon from URL "${n}".`);const r=this._sanitizer.sanitize(ts.RESOURCE_URL,n);if(!r)throw wx(n);const o=this._inProgressUrlFetches.get(r);if(o)return o;const a=this._httpClient.get(r,{responseType:"text",withCredentials:s}).pipe((l=()=>this._inProgressUrlFetches.delete(r),t=>t.lift(new sx(l))),J());var l;return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(Cx(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}}return t.\u0275fac=function(e){return new(e||t)(Kt(_x,8),Kt(Nd),Kt(Vc,8),Kt(_i))},t.\u0275prov=ut({factory:function(){return new t(Kt(_x,8),Kt(Nd),Kt(Vc,8),Kt(_i))},token:t,providedIn:"root"}),t})();function kx(t){return t.cloneNode(!0)}function Cx(t,e){return t+":"+e}class Tx{constructor(t){this._elementRef=t}}const Dx=Pb(Tx),Ax=new Bt("mat-icon-location",{providedIn:"root",factory:function(){const t=Gt(Vc),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),Ox=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Ix=Ox.map(t=>`[${t}]`).join(", "),Mx=/^url\(['"]?#(.*?)['"]?\)$/;let Px=(()=>{class t extends Dx{constructor(t,e,n,i,s){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=s,this._inline=!1,this._currentIconFetch=h.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=ld(t)}get fontSet(){return this._fontSet}set fontSet(t){this._fontSet=this._cleanupFontValue(t)}get fontIcon(){return this._fontIcon}set fontIcon(t){this._fontIcon=this._cleanupFontValue(t)}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnChanges(t){const e=t.svgIcon;if(this._svgNamespace=null,this._svgName=null,e)if(this._currentIconFetch.unsubscribe(),this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);t&&(this._svgNamespace=t),e&&(this._svgName=e),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(e,t).pipe(fh(1)).subscribe(t=>this._setSvgElement(t),n=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${e}! ${n.message}`))})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i<e.length;i++)e[i].textContent+=" ";const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){const n=t.childNodes[e];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||t.removeChild(n)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const e=this._elementsWithExternalReferences;e&&e.forEach((e,n)=>{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(Ix),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<e.length;i++)Ox.forEach(t=>{const s=e[i],r=s.getAttribute(t),o=r?r.match(Mx):null;if(o){let e=n.get(s);e||(e=[],n.set(s,e)),e.push({name:t,value:o[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(Sx),("aria-hidden",function(t,e){const n=t.attrs;if(n){const t=n.length;let i=0;for(;i<t;){const s=n[i];if(jn(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<t&&"string"==typeof n[i];)i++;else{if(s===e)return n[i+1];i+=2}}}return null}(ln(),"aria-hidden")),xo(Ax),xo(_i))},t.\u0275cmp=pe({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(vo("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),Vo("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[Go,Le],ngContentSelectors:vx,decls:1,vars:0,template:function(t,e){1&t&&(Lo(),Fo(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),Rx=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Ib],Ib]}),t})();Gb.extend(Jb),Gb.extend(Xb);let Lx=(()=>{class t{constructor(){this.events=[],this.view=x_.Month,this.viewDate=new Date,this.activeDayIsOpen=!1,this.calendarEvents=[]}eventClicked({event:t}){var e;null===(e=this.onEventClick)||void 0===e||e.call(this,{id:t.id})}dayClicked({day:t}){var e;null===(e=this.onDayClick)||void 0===e||e.call(this,{date:this.getISOString(t.date)})}viewDateChange(t){}getISOString(t){return t?Gb(t).utc(!0).startOf("day").toISOString():null}ngAfterViewInit(){}ngOnChanges(t){var e;this.calendarEvents=null===(e=this.events)||void 0===e?void 0:e.map(t=>({title:t.title,color:{primary:tw(t.color).toRgbString(),secondary:tw(t.color).setAlpha(.3).toRgbString()},start:Gb(t.start).toDate(),end:Gb(t.end).toDate(),id:t.id}))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["drayman-calendar-internal"]],inputs:{events:"events",onEventClick:"onEventClick",onDayClick:"onDayClick"},features:[Le],decls:16,vars:14,consts:[["fxLayout","column",2,"height","100%","background-color","#fff"],["fxLayout","","fxLayoutAlign","start center",2,"height","40px"],["type","button","mat-icon-button","","mwlCalendarPreviousView","","matTooltip","Previous month",3,"view","viewDate","viewDateChange"],["type","button","mat-icon-button","","mwlCalendarToday","","matTooltip","Today's month",3,"viewDate","viewDateChange"],["type","button","mat-icon-button","","mwlCalendarNextView","","matTooltip","Next month",3,"view","viewDate","viewDateChange"],["fxFlex","",2,"font-weight","bolder","text-align","center"],[2,"height","calc(100% - 32px - 40px)"],[2,"height","100%",3,"weekStartsOn","activeDayIsOpen","viewDate","events","eventClicked","dayClicked"]],template:function(t,e){1&t&&(ko(0,"div",0),ko(1,"div",1),ko(2,"button",2),Oo("viewDateChange",(function(t){return e.viewDate=t}))("viewDateChange",(function(t){return e.viewDateChange(t)})),ko(3,"mat-icon"),qo(4,"chevron_left"),Co(),Co(),ko(5,"button",3),Oo("viewDateChange",(function(t){return e.viewDate=t}))("viewDateChange",(function(t){return e.viewDateChange(t)})),ko(6,"mat-icon"),qo(7,"today"),Co(),Co(),ko(8,"button",4),Oo("viewDateChange",(function(t){return e.viewDate=t}))("viewDateChange",(function(t){return e.viewDateChange(t)})),ko(9,"mat-icon"),qo(10,"chevron_right"),Co(),Co(),ko(11,"div",5),qo(12),rl(13,"calendarDate"),Co(),Co(),ko(14,"div",6),ko(15,"mwl-calendar-month-view",7),Oo("eventClicked",(function(t){return e.eventClicked(t)}))("dayClicked",(function(t){return e.dayClicked(t)})),Co(),Co(),Co()),2&t&&(xs(2),Eo("view",e.view)("viewDate",e.viewDate),xs(3),Eo("viewDate",e.viewDate),xs(3),Eo("view",e.view)("viewDate",e.viewDate),xs(4),Zo(" ",al(13,10,e.viewDate,e.view+"ViewTitle","en")," "),xs(3),Eo("weekStartsOn",1)("activeDayIsOpen",!1)("viewDate",e.viewDate)("events",e.calendarEvents))},directives:[tf,mf,Zb,T_,Jw,Px,A_,D_,af,z_],pipes:[M_],styles:['@charset "UTF-8"; .cal-days>div{flex:1} .cal-month-view .cal-header{text-align:center;font-weight:bolder} .cal-month-view .cal-header .cal-cell{padding:5px 0;overflow:hidden;text-overflow:ellipsis;display:block;white-space:nowrap} .cal-month-view .cal-days{display:flex;flex-direction:column;height:100%;border:1px solid;border-bottom:0} .cal-month-view .cal-cell-top{min-height:78px;flex:1} .cal-month-view .cal-cell-row{-js-display:flex;display:flex} .cal-month-view .cal-cell{float:left;flex:1;-js-display:flex;display:flex;flex-direction:column;align-items:stretch} .cal-month-view .cal-cell .cal-event{pointer-events:all!important} .cal-month-view .cal-day-cell{min-height:100px}@media (-ms-high-contrast:none){ .cal-month-view .cal-day-cell{display:block}} .cal-month-view .cal-day-cell:not(:last-child){border-right:1px solid} .cal-month-view .cal-days .cal-cell-row{border-bottom:1px solid} .cal-month-view .cal-day-badge{margin-top:18px;margin-left:10px;display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:middle;border-radius:10px} .cal-month-view .cal-day-number{font-size:1.2em;font-weight:400;opacity:.5;margin-top:15px;margin-right:15px;float:right;margin-bottom:10px} .cal-month-view .cal-events{flex:1;align-items:flex-end;margin:3px;line-height:10px;-js-display:flex;display:flex;flex-wrap:wrap} .cal-month-view .cal-event{width:10px;height:10px;border-radius:50%;display:inline-block;margin:2px} .cal-month-view .cal-day-cell.cal-in-month.cal-has-events{cursor:pointer} .cal-month-view .cal-day-cell.cal-out-month .cal-day-number{opacity:.1;cursor:default} .cal-month-view .cal-day-cell.cal-today .cal-day-number{font-size:1.9em} .cal-month-view .cal-open-day-events{padding:15px} .cal-month-view .cal-open-day-events .cal-event{position:relative;top:2px} .cal-month-view .cal-out-month .cal-day-badge, .cal-month-view .cal-out-month .cal-event{opacity:.3} .cal-month-view .cal-draggable{cursor:move} .cal-month-view .cal-drag-active *{pointer-events:none} .cal-month-view .cal-event-title{cursor:pointer} .cal-month-view .cal-event-title:hover{text-decoration:underline} .cal-month-view{background-color:#fff;height:100%} .cal-month-view .cal-cell-row:hover{background-color:#fafafa} .cal-month-view .cal-cell-row .cal-cell:hover, .cal-month-view .cal-cell.cal-has-events.cal-open{background-color:#ededed} .cal-month-view .cal-days{border-color:#e1e1e1} .cal-month-view .cal-day-cell:not(:last-child){border-right-color:#e1e1e1} .cal-month-view .cal-days .cal-cell-row{height:100%;border-bottom-color:#e1e1e1} .cal-month-view .cal-day-badge{background-color:#b94a48;color:#fff} .cal-month-view .cal-event{background-color:#1e90ff;border-color:#d1e8ff;color:#fff} .cal-month-view .cal-day-cell.cal-weekend .cal-day-number{color:#8b0000} .cal-month-view .cal-day-cell.cal-today{background-color:#e8fde7} .cal-month-view .cal-day-cell.cal-drag-over{background-color:#e0e0e0!important} .cal-month-view .cal-open-day-events{color:#fff;background-color:#555;box-shadow:inset 0 0 15px 0 rgba(0,0,0,.5)} .cal-week-view *{box-sizing:border-box} .cal-week-view .cal-day-headers{-js-display:flex;display:flex;padding-left:70px;border:1px solid} .cal-week-view .cal-day-headers .cal-header{flex:1;text-align:center;padding:5px} .cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right:1px solid} .cal-week-view .cal-day-headers .cal-header:first-child{border-left:1px solid} .cal-week-view .cal-day-headers span{font-weight:400;opacity:.5} .cal-week-view .cal-day-column{flex-grow:1;border-left:1px solid} .cal-week-view .cal-event{font-size:12px;border:1px solid} .cal-week-view .cal-time-label-column{width:70px;height:100%} .cal-week-view .cal-current-time-marker{position:absolute;width:100%;height:2px;z-index:2} .cal-week-view .cal-all-day-events{border-left:1px solid;border-right:1px solid;border-top:0;border-bottom:3px solid;padding-top:3px;position:relative} .cal-week-view .cal-all-day-events .cal-day-columns{height:100%;width:100%;-js-display:flex;display:flex;position:absolute;top:0;z-index:0} .cal-week-view .cal-all-day-events .cal-events-row{position:relative;height:31px;margin-left:70px} .cal-week-view .cal-all-day-events .cal-event-container{display:inline-block;position:absolute} .cal-week-view .cal-all-day-events .cal-event-container.resize-active{z-index:1;pointer-events:none} .cal-week-view .cal-all-day-events .cal-event{padding:0 5px;margin-left:2px;margin-right:2px;height:28px;line-height:28px} .cal-week-view .cal-all-day-events .cal-starts-within-week .cal-event{border-top-left-radius:5px;border-bottom-left-radius:5px} .cal-week-view .cal-all-day-events .cal-ends-within-week .cal-event{border-top-right-radius:5px;border-bottom-right-radius:5px} .cal-week-view .cal-all-day-events .cal-time-label-column{-js-display:flex;display:flex;align-items:center;justify-content:center;font-size:14px} .cal-week-view .cal-all-day-events .cal-resize-handle{width:6px;height:100%;cursor:col-resize;position:absolute;top:0} .cal-week-view .cal-all-day-events .cal-resize-handle.cal-resize-handle-after-end{right:0} .cal-week-view .cal-event, .cal-week-view .cal-header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .cal-week-view .cal-drag-active{pointer-events:none;z-index:1} .cal-week-view .cal-drag-active *{pointer-events:none} .cal-week-view .cal-time-events{position:relative;border:1px solid;border-top:0;-js-display:flex;display:flex} .cal-week-view .cal-time-events .cal-day-columns{-js-display:flex;display:flex;flex-grow:1} .cal-week-view .cal-time-events .cal-day-column, .cal-week-view .cal-time-events .cal-events-container{position:relative} .cal-week-view .cal-time-events .cal-event-container{position:absolute;z-index:1} .cal-week-view .cal-time-events .cal-event{width:calc(100% - 2px);height:calc(100% - 2px);margin:1px;padding:0 5px;line-height:25px} .cal-week-view .cal-time-events .cal-resize-handle{width:100%;height:4px;cursor:row-resize;position:absolute} .cal-week-view .cal-time-events .cal-resize-handle.cal-resize-handle-after-end{bottom:0} .cal-week-view .cal-hour-segment{position:relative} .cal-week-view .cal-hour-segment:after{content:"\xa0"} .cal-week-view .cal-event-container:not(.cal-draggable){cursor:pointer} .cal-week-view .cal-draggable{cursor:move} .cal-week-view .cal-hour-segment, .cal-week-view mwl-calendar-week-view-hour-segment{display:block} .cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment, .cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom:thin dashed} .cal-week-view .cal-time{font-weight:700;padding-top:5px;width:70px;text-align:center} .cal-week-view .cal-hour-segment.cal-after-hour-start .cal-time{display:none} .cal-week-view .cal-starts-within-day .cal-event{border-top-left-radius:5px;border-top-right-radius:5px} .cal-week-view .cal-ends-within-day .cal-event{border-bottom-left-radius:5px;border-bottom-right-radius:5px} .cal-week-view{background-color:#fff;border-top:1px solid #e1e1e1} .cal-week-view .cal-day-headers{border-color:#e1e1e1;border-top:0} .cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right-color:#e1e1e1} .cal-week-view .cal-day-headers .cal-header:first-child{border-left-color:#e1e1e1} .cal-week-view .cal-day-headers .cal-drag-over, .cal-week-view .cal-day-headers .cal-header:hover{background-color:#ededed} .cal-week-view .cal-day-column{border-left-color:#e1e1e1} .cal-week-view .cal-event{background-color:#d1e8ff;border-color:#1e90ff;color:#1e90ff} .cal-week-view .cal-all-day-events{border-color:#e1e1e1} .cal-week-view .cal-header.cal-today{background-color:#e8fde7} .cal-week-view .cal-header.cal-weekend span{color:#8b0000} .cal-week-view .cal-time-events{border-color:#e1e1e1} .cal-week-view .cal-time-events .cal-day-columns:not(.cal-resize-active) .cal-hour-segment:hover{background-color:#ededed} .cal-week-view .cal-hour-odd{background-color:#fafafa} .cal-week-view .cal-drag-over .cal-hour-segment{background-color:#ededed} .cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment, .cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom-color:#e1e1e1} .cal-week-view .cal-current-time-marker{background-color:#ea4334} .cal-day-view mwl-calendar-week-view-header{display:none} .cal-day-view .cal-events-container{margin-left:70px} .cal-day-view .cal-day-column{border-left:0} .cal-day-view .cal-current-time-marker{margin-left:70px;width:calc(100% - 70px)} .cal-tooltip{position:absolute;z-index:1070;display:block;font-style:normal;font-weight:400;letter-spacing:normal;line-break:auto;line-height:1.5;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;font-size:11px;word-wrap:break-word;opacity:.9} .cal-tooltip.cal-tooltip-top{padding:5px 0;margin-top:-3px} .cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0} .cal-tooltip.cal-tooltip-right{padding:0 5px;margin-left:3px} .cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0} .cal-tooltip.cal-tooltip-bottom{padding:5px 0;margin-top:3px} .cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px} .cal-tooltip.cal-tooltip-left{padding:0 5px;margin-left:-3px} .cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px} .cal-tooltip-inner{max-width:200px;padding:3px 8px;text-align:center;border-radius:.25rem} .cal-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid} .cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-top-color:#000} .cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-right-color:#000} .cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-bottom-color:#000} .cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-left-color:#000} .cal-tooltip-inner{color:#fff;background-color:#000}']}),t})(),Fx=(()=>{class t{constructor(t){this.injector=t}ngDoBootstrap(){const t=function(t,e){const n=function(t,e){return e.get(sa).resolveComponentFactory(t).inputs}(t,e.injector),i=e.strategyFactory||new Lc(t,e.injector),s=function(t){const e={};return t.forEach(({propName:t,templateName:n})=>{var i;e[(i=n,i.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))]=t}),e}(n);class r extends Nc{constructor(t){super(),this.injector=t}get ngElementStrategy(){if(!this._ngElementStrategy){const t=this._ngElementStrategy=i.create(this.injector||e.injector),s=n.filter(({propName:t})=>this.hasOwnProperty(t)).map(({propName:t})=>[t,this[t]]);this instanceof r?s.forEach(([t])=>delete this[t]):jc(n,this),s.forEach(([e,n])=>t.setInputValue(e,n))}return this._ngElementStrategy}attributeChangedCallback(t,e,n,i){this.ngElementStrategy.setInputValue(s[t],n)}connectedCallback(){let t=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),t=!0),this.ngElementStrategy.connect(this),t||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(t=>{const e=function(t,e,n){if("function"!=typeof CustomEvent){const i=t.createEvent("CustomEvent");return i.initCustomEvent(e,!1,!1,n),i}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,t.name,t.value);this.dispatchEvent(e)})}}return r.observedAttributes=Object.keys(s),Object.defineProperty(r.prototype,"ngElementStrategy",{enumerable:!0}),jc(n,r.prototype),r}(Lx,{injector:this.injector});customElements.define("drayman-calendar",t)}}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Kt(ao))},providers:[],imports:[[Vd,pg,Of,Cf,Rx,ex,Kb,X_.forRoot({provide:w_,useFactory:eb})]]}),t})();(function(){if(Ai)throw new Error("Cannot enable prod mode after platform setup.");Di=!1})(),Bd().bootstrapModule(Fx).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}});