(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"+0xr":function(t,e,i){"use strict";i.d(e,"a",function(){return ft}),i.d(e,"b",function(){return at}),i.d(e,"c",function(){return ht}),i.d(e,"d",function(){return ut}),i.d(e,"e",function(){return lt}),i.d(e,"f",function(){return _t}),i.d(e,"g",function(){return mt}),i.d(e,"h",function(){return wt}),i.d(e,"i",function(){return vt}),i.d(e,"j",function(){return rt}),i.d(e,"k",function(){return kt});var n=i("8LU1"),r=i("0EQZ"),s=i("fXoL"),a=i("cH1L"),o=i("nLfN"),l=i("vxfF"),c=i("ofXK"),h=i("XNiG"),d=i("Cfvw"),u=i("2Vo4"),p=i("7+OI"),f=i("LRne"),g=i("1G5W"),m=i("IzEk");const b=[[["caption"]],[["colgroup"],["col"]]],v=["caption","colgroup, col"];function y(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=Object(n.c)(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const _=new s.s("CDK_TABLE");let x=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.N))},t.\u0275dir=s.Jb({type:t,selectors:[["","cdkCellDef",""]]}),t})(),w=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.N))},t.\u0275dir=s.Jb({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),C=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.N))},t.\u0275dir=s.Jb({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class k{}const S=y(k);let T=(()=>{class t extends S{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=Object(n.c)(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(_,8))},t.\u0275dir=s.Jb({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(s.Hb(i,x,1),s.Hb(i,w,1),s.Hb(i,C,1)),2&t){let t;s.sc(t=s.cc())&&(e.cell=t.first),s.sc(t=s.cc())&&(e.headerCell=t.first),s.sc(t=s.cc())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[s.Bb([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.zb]}),t})();class A{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let O=(()=>{class t extends A{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(T),s.Ob(s.l))},t.\u0275dir=s.Jb({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[s.zb]}),t})(),E=(()=>{class t extends A{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(T),s.Ob(s.l))},t.\u0275dir=s.Jb({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[s.zb]}),t})();class D{constructor(){this.tasks=[],this.endTasks=[]}}const P=new s.s("_COALESCED_STYLE_SCHEDULER");let I=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new h.a}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new D,this._getScheduleObservable().pipe(Object(g.a)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new D;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Object(d.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Object(m.a)(1))}}return t.\u0275fac=function(e){return new(e||t)(s.Yb(s.B))},t.\u0275prov=s.Kb({token:t,factory:t.\u0275fac}),t})(),M=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof N?t.headerCell.template:this instanceof j?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.N),s.Ob(s.u))},t.\u0275dir=s.Jb({type:t,features:[s.Ab]}),t})();class R extends M{}const L=y(R);let N=(()=>{class t extends L{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.N),s.Ob(s.u),s.Ob(_,8))},t.\u0275dir=s.Jb({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[s.zb,s.Ab]}),t})();class z extends M{}const F=y(z);let j=(()=>{class t extends F{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.N),s.Ob(s.u),s.Ob(_,8))},t.\u0275dir=s.Jb({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[s.zb,s.Ab]}),t})(),U=(()=>{class t extends M{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.N),s.Ob(s.u),s.Ob(_,8))},t.\u0275dir=s.Jb({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[s.zb]}),t})(),V=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.R))},t.\u0275dir=s.Jb({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Ib({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Qb(0,0)},directives:[V],encapsulation:2}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Ib({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Qb(0,0)},directives:[V],encapsulation:2}),t})(),H=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.N))},t.\u0275dir=s.Jb({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const W=["top","bottom","left","right"];class X{constructor(t,e,i,n,r=!0,s=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=r,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t<n.children.length;t++)i.push(n.children[t])}this._scheduleStyleChanges(()=>{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const r=t[0],s=r.children.length,a=this._getCellWidths(r,n),o=this._getStickyStartColumnPositions(a,e),l=this._getStickyEndColumnPositions(a,i),c=e.lastIndexOf(!0),h=i.indexOf(!0);this._scheduleStyleChanges(()=>{const n="rtl"===this.direction,r=n?"right":"left",d=n?"left":"right";for(const a of t)for(let t=0;t<s;t++){const n=a.children[t];e[t]&&this._addStickyStyle(n,r,o[t],t===c),i[t]&&this._addStickyStyle(n,d,l[t],t===h)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===c?[]:a.slice(0,c+1).map((t,i)=>e[i]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:a.slice(h).map((t,e)=>i[e+h]?t:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const n="bottom"===i?t.slice().reverse():t,r="bottom"===i?e.slice().reverse():e,s=[],a=[],o=[];for(let c=0,h=0;c<n.length;c++){if(s[c]=h,!r[c])continue;const t=n[c];o[c]=this._isNativeHtmlTable?Array.from(t.children):[t];const e=t.getBoundingClientRect().height;h+=e,a[c]=e}const l=r.lastIndexOf(!0);this._scheduleStyleChanges(()=>{var t,e;for(let a=0;a<n.length;a++){if(!r[a])continue;const t=s[a],e=a===l;for(const n of o[a])this._addStickyStyle(n,i,t,e)}"top"===i?null===(t=this._positionListener)||void 0===t||t.stickyHeaderRowsUpdated({sizes:a}):null===(e=this._positionListener)||void 0===e||e.stickyFooterRowsUpdated({sizes:a})})}updateStickyFooterContainer(t,e){if(!this._isNativeHtmlTable)return;const i=t.querySelector("tfoot");this._scheduleStyleChanges(()=>{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="",t.classList.remove(this._borderCellCss[i]);W.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,n){t.classList.add(this._stickCellCss),n&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of W)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let r=0;r<n.length;r++)i.push(n[r].getBoundingClientRect().width);return this._cachedCellWidths=i,i}_getStickyStartColumnPositions(t,e){const i=[];let n=0;for(let r=0;r<t.length;r++)e[r]&&(i[r]=n,n+=t[r]);return i}_getStickyEndColumnPositions(t,e){const i=[];let n=0;for(let r=t.length;r>0;r--)e[r]&&(i[r]=n,n+=t[r]);return i}_scheduleStyleChanges(t){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(t):t()}}const G=new s.s("CDK_SPL");let q=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.R),s.Ob(s.l))},t.\u0275dir=s.Jb({type:t,selectors:[["","rowOutlet",""]]}),t})(),$=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.R),s.Ob(s.l))},t.\u0275dir=s.Jb({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),K=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.R),s.Ob(s.l))},t.\u0275dir=s.Jb({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),Z=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.R),s.Ob(s.l))},t.\u0275dir=s.Jb({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),Q=(()=>{class t{constructor(t,e,i,n,r,s,a,o,l,c,d){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=r,this._platform=a,this._viewRepeater=o,this._coalescedStyleScheduler=l,this._stickyPositioningListener=c,this._viewportRuler=d,this._onDestroy=new h.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new u.a({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=Object(n.c)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=Object(n.c)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler&&this._viewportRuler.change().pipe(Object(g.a)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Object(r.h)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,e,(t,e,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const e=t.item;this._renderRow(this._rowOutlet,e.rowDef,n,{$implicit:e.data})}else if(null==n)e.remove(i);else{const t=e.get(i);e.move(t,n)}}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n<e.length;n++)this._renderRows[n].rowDef===t&&i.push(e[n]);this._addStickyColumnStyles(i,t)}),i.forEach((t,e)=>{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i<this._data.length;i++){let n=this._data[i];const r=this._getRenderRowsForData(n,i,e.get(n));this._cachedRenderRowsMap.has(n)||this._cachedRenderRowsMap.set(n,new WeakMap);for(let e=0;e<r.length;e++){let i=r[e];const n=this._cachedRenderRowsMap.get(i.data);n.has(i.rowDef)?n.get(i.rowDef).push(i):n.set(i.rowDef,[i]),t.push(i)}}return t}_getRenderRowsForData(t,e,i){return this._getRowDefs(t,e).map(n=>{const r=i&&i.has(n)?i.get(n):[];if(r.length){const t=r.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),J(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=J(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=J(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=J(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_switchDataSource(t){this._data=[],Object(r.h)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;Object(r.h)(this.dataSource)?t=this.dataSource.connect(this):Object(p.a)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Object(f.a)(this.dataSource)),this._renderChangeSubscription=t.pipe(Object(g.a)(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),r=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,r,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i<t.viewContainer.length;i++){const n=t.viewContainer.get(i);e.push(n.rootNodes[0])}return e}_getRowDefs(t,e){if(1==this._rowDefs.length)return[this._rowDefs[0]];let i=[];if(this.multiTemplateDataRows)i=this._rowDefs.filter(i=>!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const r=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),r}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))V.mostRecentCellOutlet&&V.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e<i;e++){const n=t.get(e).context;n.count=i,n.first=0===e,n.last=e===i-1,n.even=e%2==0,n.odd=!n.even,this.multiTemplateDataRows?(n.dataIndex=this._renderRows[e].dataIndex,n.renderIndex=e):n.index=this._renderRows[e].dataIndex}}_getCellTemplates(t){return t&&t.columns?Array.from(t.columns,e=>{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new X(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Object(f.a)()).pipe(Object(g.a)(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.u),s.Ob(s.h),s.Ob(s.l),s.Zb("role"),s.Ob(a.b,8),s.Ob(c.d),s.Ob(o.a),s.Ob(r.g,8),s.Ob(P,8),s.Ob(G,12),s.Ob(l.d,8))},t.\u0275cmp=s.Ib({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(s.Hb(i,H,1),s.Hb(i,T,1),s.Hb(i,U,1),s.Hb(i,N,1),s.Hb(i,j,1)),2&t){let t;s.sc(t=s.cc())&&(e._noDataRow=t.first),s.sc(t=s.cc())&&(e._contentColumnDefs=t),s.sc(t=s.cc())&&(e._contentRowDefs=t),s.sc(t=s.cc())&&(e._contentHeaderRowDefs=t),s.sc(t=s.cc())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(s.Kc(q,3),s.Kc($,3),s.Kc(K,3),s.Kc(Z,3)),2&t){let t;s.sc(t=s.cc())&&(e._rowOutlet=t.first),s.sc(t=s.cc())&&(e._headerRowOutlet=t.first),s.sc(t=s.cc())&&(e._footerRowOutlet=t.first),s.sc(t=s.cc())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.Gb("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[s.Bb([{provide:_,useExisting:t},{provide:r.g,useClass:r.e},{provide:P,useClass:I},{provide:G,useValue:null}])],ngContentSelectors:v,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.kc(b),s.jc(0),s.jc(1,1),s.Qb(2,0),s.Qb(3,1),s.Qb(4,2),s.Qb(5,3))},directives:[$,q,Z,K],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function J(t,e){return t.concat(Array.from(e))}let tt=(()=>{class t{}return t.\u0275mod=s.Mb({type:t}),t.\u0275inj=s.Lb({factory:function(e){return new(e||t)},imports:[[l.c]]}),t})();var et=i("FKr1");i("VRyK"),i("itXk"),i("lJxs");const it=[[["caption"]],[["colgroup"],["col"]]],nt=["caption","colgroup, col"];let rt=(()=>{class t extends Q{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(e){return st(e||t)},t.\u0275cmp=s.Ib({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.Gb("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[s.Bb([{provide:r.g,useClass:r.e},{provide:Q,useExisting:t},{provide:_,useExisting:t},{provide:P,useClass:I}]),s.zb],ngContentSelectors:nt,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.kc(it),s.jc(0),s.jc(1,1),s.Qb(2,0),s.Qb(3,1),s.Qb(4,2),s.Qb(5,3))},directives:[$,q,Z,K],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})();const st=s.Wb(rt);let at=(()=>{class t extends x{}return t.\u0275fac=function(e){return ot(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["","matCellDef",""]],features:[s.Bb([{provide:x,useExisting:t}]),s.zb]}),t})();const ot=s.Wb(at);let lt=(()=>{class t extends w{}return t.\u0275fac=function(e){return ct(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["","matHeaderCellDef",""]],features:[s.Bb([{provide:w,useExisting:t}]),s.zb]}),t})();const ct=s.Wb(lt);let ht=(()=>{class t extends T{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(e){return dt(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[s.Bb([{provide:T,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.zb]}),t})();const dt=s.Wb(ht);let ut=(()=>{class t extends O{}return t.\u0275fac=function(e){return pt(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[s.zb]}),t})();const pt=s.Wb(ut);let ft=(()=>{class t extends E{}return t.\u0275fac=function(e){return gt(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[s.zb]}),t})();const gt=s.Wb(ft);let mt=(()=>{class t extends N{}return t.\u0275fac=function(e){return bt(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[s.Bb([{provide:N,useExisting:t}]),s.zb]}),t})();const bt=s.Wb(mt);let vt=(()=>{class t extends U{}return t.\u0275fac=function(e){return yt(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[s.Bb([{provide:U,useExisting:t}]),s.zb]}),t})();const yt=s.Wb(vt);let _t=(()=>{class t extends B{}return t.\u0275fac=function(e){return xt(e||t)},t.\u0275cmp=s.Ib({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[s.Bb([{provide:B,useExisting:t}]),s.zb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Qb(0,0)},directives:[V],encapsulation:2}),t})();const xt=s.Wb(_t);let wt=(()=>{class t extends Y{}return t.\u0275fac=function(e){return Ct(e||t)},t.\u0275cmp=s.Ib({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[s.Bb([{provide:Y,useExisting:t}]),s.zb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Qb(0,0)},directives:[V],encapsulation:2}),t})();const Ct=s.Wb(wt);let kt=(()=>{class t{}return t.\u0275mod=s.Mb({type:t}),t.\u0275inj=s.Lb({factory:function(e){return new(e||t)},imports:[[tt,et.j],et.j]}),t})()},"+rOU":function(t,e,i){"use strict";i.d(e,"a",function(){return c}),i.d(e,"b",function(){return d}),i.d(e,"c",function(){return u}),i.d(e,"d",function(){return a}),i.d(e,"e",function(){return h}),i.d(e,"f",function(){return p}),i.d(e,"g",function(){return o});var n=i("fXoL"),r=i("ofXK");class s{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 a extends s{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class o extends s{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}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 l extends s{constructor(t){super(),this.element=t instanceof n.l?t.nativeElement:t}}class c{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof a?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof o?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(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)}}class h extends c{constructor(t,e,i,n,r){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=r}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let d=(()=>{class t extends o{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.N),n.Ob(n.R))},t.\u0275dir=n.Jb({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.zb]}),t})(),u=(()=>{class t extends c{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new n.o,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.j),n.Ob(n.R),n.Ob(r.d))},t.\u0275dir=n.Jb({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.zb]}),t})(),p=(()=>{class t{}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)}}),t})()},"/uUt":function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("7o/Q");function r(t,e){return i=>i.lift(new s(t,e))}class s{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new a(t,this.compare,this.keySelector))}}class a extends n.a{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}},0:function(t,e,i){t.exports=i("zUnb")},"0EQZ":function(t,e,i){"use strict";i.d(e,"a",function(){return c}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return u}),i.d(e,"d",function(){return p}),i.d(e,"e",function(){return h}),i.d(e,"f",function(){return d}),i.d(e,"g",function(){return f}),i.d(e,"h",function(){return l});var n=i("7+OI"),r=i("LRne"),s=i("XNiG"),a=i("fXoL");class o{}function l(t){return t&&"function"==typeof t.connect}class c extends o{constructor(t){super(),this._data=t}connect(){return Object(n.a)(this._data)?this._data:Object(r.a)(this._data)}disconnect(){}}class h{applyChanges(t,e,i,n,r){t.forEachOperation((t,n,s)=>{let a,o;if(null==t.previousIndex){const r=i(t,n,s);a=e.createEmbeddedView(r.templateRef,r.context,r.index),o=1}else null==s?(e.remove(n),o=3):(a=e.get(n),e.move(a,s),o=2);r&&r({context:null==a?void 0:a.context,operation:o,record:t})})}detach(){}}class d{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,i,n,r){t.forEachOperation((t,s,a)=>{let o,l;null==t.previousIndex?(o=this._insertView(()=>i(t,s,a),a,e,n(t)),l=o?1:0):null==a?(this._detachAndCacheView(s,e),l=3):(o=this._moveView(s,a,e,n(t)),l=2),r&&r({context:null==o?void 0:o.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy()}_insertView(t,e,i,n){let r=this._insertViewFromCache(e,i);if(r)return void(r.context.$implicit=n);const s=t();return i.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(t,e){const i=this._detachView(t,e);this._maybeCacheView(i,e)}_moveView(t,e,i,n){const r=i.get(t);return i.move(r,e),r.context.$implicit=n,r}_maybeCacheView(t,e){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(t);else{const i=e.indexOf(t);-1===i?t.destroy():e.remove(i)}}_insertViewFromCache(t,e){const i=this._viewCache.pop();return i&&e.insert(i,t),i||null}_detachView(t,e){return e.detach(t)}}class u{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new s.a,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let p=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(a.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const f=new a.s("_ViewRepeater")},"0FX9":function(t,e,i){var n=i("Z92M"),r=i("qmMu"),s=i("QUaw"),a=i("QAZZ");function o(t,e,i,s,a){var o=[].slice.call(arguments,1),l=o.length,c="function"==typeof o[l-1];if(!c&&!n())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(i=e,e=s=void 0):2!==l||e.getContext||(s=i,i=e,e=void 0),new Promise(function(n,a){try{var o=r.create(i,s);n(t(o,e,s))}catch(l){a(l)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(a=i,i=e,e=s=void 0):3===l&&(e.getContext&&void 0===a?(a=s,s=void 0):(a=s,s=i,i=e,e=void 0));try{var h=r.create(i,s);a(null,t(h,e,s))}catch(d){a(d)}}e.create=r.create,e.toCanvas=o.bind(null,s.render),e.toDataURL=o.bind(null,s.renderToDataURL),e.toString=o.bind(null,function(t,e,i){return a.render(t,i)})},"0IaG":function(t,e,i){"use strict";i.d(e,"a",function(){return A}),i.d(e,"b",function(){return I}),i.d(e,"c",function(){return N}),i.d(e,"d",function(){return R}),i.d(e,"e",function(){return F}),i.d(e,"f",function(){return S}),i.d(e,"g",function(){return L});var n=i("rDax"),r=i("+rOU"),s=i("fXoL"),a=i("FKr1"),o=i("cH1L"),l=i("ofXK"),c=i("XNiG"),h=i("NXyV"),d=i("LRne"),u=i("pLZG"),p=i("IzEk"),f=i("JX91"),g=i("R0Ic"),m=i("FtGj"),b=i("u47x");function v(t,e){}class y{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const _={dialogContainer:Object(g.m)("dialogContainer",[Object(g.j)("void, exit",Object(g.k)({opacity:0,transform:"scale(0.7)"})),Object(g.j)("enter",Object(g.k)({transform:"none"})),Object(g.l)("* => enter",Object(g.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(g.k)({transform:"none",opacity:1}))),Object(g.l)("* => void, * => exit",Object(g.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(g.k)({opacity:0})))])};let x=(()=>{class t extends r.a{constructor(t,e,i,n,r,a){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=r,this._focusMonitor=a,this._animationStateChanged=new s.o,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.l),s.Ob(b.i),s.Ob(s.h),s.Ob(l.d,8),s.Ob(y),s.Ob(b.h))},t.\u0275dir=s.Jb({type:t,viewQuery:function(t,e){if(1&t&&s.Kc(r.c,3),2&t){let t;s.sc(t=s.cc())&&(e._portalOutlet=t.first)}},features:[s.zb]}),t})(),w=(()=>{class t extends x{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return C(e||t)},t.\u0275cmp=s.Ib({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.Bc("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(s.Xb("id",e._id),s.Db("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),s.Cc("@dialogContainer",e._state))},features:[s.zb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.Dc(0,v,0,0,"ng-template",0)},directives:[r.c],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[_.dialogContainer]}}),t})();const C=s.Wb(w);let k=0;class S{constructor(t,e,i="mat-dialog-"+k++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new c.a,this._afterClosed=new c.a,this._beforeClosed=new c.a,this._state=0,e._id=i,e._animationStateChanged.pipe(Object(u.a)(t=>"opened"===t.state),Object(p.a)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Object(u.a)(t=>"closed"===t.state),Object(p.a)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Object(u.a)(t=>t.keyCode===m.g&&!this.disableClose&&!Object(m.s)(t))).subscribe(t=>{t.preventDefault(),T(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():T(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Object(u.a)(t=>"closing"===t.state),Object(p.a)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function T(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const A=new s.s("MatDialogData"),O=new s.s("mat-dialog-default-options"),E=new s.s("mat-dialog-scroll-strategy"),D={provide:E,deps:[n.c],useFactory:function(t){return()=>t.scrollStrategies.block()}};let P=(()=>{class t{constructor(t,e,i,n,r,s,a,o,l){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=r,this._dialogRefConstructor=a,this._dialogContainerType=o,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new c.a,this._afterOpenedAtThisLevel=new c.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(h.a)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Object(f.a)(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new y)).id&&this.getDialogById(e.id);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),r=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),n._initializeWithAttachedContent(),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new n.d({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=s.t.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:y,useValue:e}]}),n=new r.d(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const a=new this._dialogRefConstructor(i,e,n.id);if(t instanceof s.N)e.attachTemplatePortal(new r.g(t,null,{$implicit:n.data,dialogRef:a}));else{const i=this._createInjector(n,a,e),s=e.attachComponentPortal(new r.d(t,n.viewContainerRef,i));a.componentInstance=s.instance}return a.updateSize(n.width,n.height).updatePosition(n.position),a}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(o.b,null)||r.push({provide:o.b,useValue:{value:t.direction,change:Object(d.a)()}}),s.t.create({parent:n||this._injector,providers:r})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(n.c),s.Ob(s.t),s.Ob(void 0),s.Ob(void 0),s.Ob(n.e),s.Ob(void 0),s.Ob(s.P),s.Ob(s.P),s.Ob(s.s))},t.\u0275dir=s.Jb({type:t}),t})(),I=(()=>{class t extends P{constructor(t,e,i,n,r,s,a){super(t,e,n,s,a,r,S,w,A)}}return t.\u0275fac=function(e){return new(e||t)(s.Yb(n.c),s.Yb(s.t),s.Yb(l.h,8),s.Yb(O,8),s.Yb(E),s.Yb(t,12),s.Yb(n.e))},t.\u0275prov=s.Kb({token:t,factory:t.\u0275fac}),t})(),M=0,R=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this._elementRef=e,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=z(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){T(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(S,8),s.Ob(s.l),s.Ob(I))},t.\u0275dir=s.Jb({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.bc("click",function(t){return e._onButtonClick(t)}),2&t&&s.Db("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[s.Ab]}),t})(),L=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+M++}ngOnInit(){this._dialogRef||(this._dialogRef=z(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(S,8),s.Ob(s.l),s.Ob(I))},t.\u0275dir=s.Jb({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&s.Xb("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function z(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}let F=(()=>{class t{}return t.\u0275mod=s.Mb({type:t}),t.\u0275inj=s.Lb({factory:function(e){return new(e||t)},providers:[I,D],imports:[[n.f,r.f,a.j],a.j]}),t})()},"0MNC":function(t,e,i){"use strict";i.d(e,"a",function(){return w}),i.d(e,"b",function(){return k});var n=i("fXoL"),r=i("8LU1"),s=i("XNiG"),a=i("itXk"),o=i("GyhO"),l=i("HDdC"),c=i("IzEk"),h=i("7o/Q");class d{constructor(t){this.total=t}call(t,e){return e.subscribe(new u(t,this.total))}}class u extends h.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}var p=i("Kj3r"),f=i("lJxs"),g=i("JX91"),m=i("1G5W"),b=i("nLfN");const v=new Set;let y,_=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):x}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!v.has(t))try{y||(y=document.createElement("style"),y.setAttribute("type","text/css"),document.head.appendChild(y)),y.sheet&&(y.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),v.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(b.a))},t.\u0275prov=Object(n.Kb)({factory:function(){return new t(Object(n.Yb)(b.a))},token:t,providedIn:"root"}),t})();function x(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let w=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new s.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return C(Object(r.b)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=C(Object(r.b)(t)).map(t=>this._registerQuery(t).observable);let i=Object(a.b)(e);return i=Object(o.a)(i.pipe(Object(c.a)(1)),i.pipe(t=>t.lift(new d(1)),Object(p.a)(0))),i.pipe(Object(f.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new l.a(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(Object(g.a)(e),Object(f.a)(({matches:e})=>({query:t,matches:e})),Object(m.a)(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(_),n.Yb(n.B))},t.\u0275prov=Object(n.Kb)({factory:function(){return new t(Object(n.Yb)(_),Object(n.Yb)(n.B))},token:t,providedIn:"root"}),t})();function C(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const k={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},"0hV+":function(t,e,i){"use strict";i.d(e,"a",function(){return a}),i.d(e,"b",function(){return o});var n=i("0FX9"),r=i("fXoL");const s=["qrcElement"];let a=(()=>{class t{constructor(t){this.renderer=t,this.colordark="",this.colorlight="",this.level="",this.hidetitle=!1,this.size=0,this.usesvg=!1,this.allowEmptyString=!1,this.qrdata="",this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.scale=4,this.width=10,""!==this.colordark&&console.warn("[angularx-qrcode] colordark is deprecated, use colorDark."),""!==this.colorlight&&console.warn("[angularx-qrcode] colorlight is deprecated, use colorLight."),""!==this.level&&console.warn("[angularx-qrcode] level is deprecated, use errorCorrectionLevel."),!1!==this.hidetitle&&console.warn("[angularx-qrcode] hidetitle is deprecated."),0!==this.size&&console.warn("[angularx-qrcode] size is deprecated, use `width`. Defaults to 10."),!1!==this.usesvg&&console.warn("[angularx-qrcode] usesvg is deprecated, use [elementType]=\"'svg'\".")}ngOnChanges(){this.createQRCode()}isValidQrCodeText(t){return!1===this.allowEmptyString?!(void 0===t||""===t||"null"===t||null===t):!(void 0===t)}toDataURL(){return new Promise((t,e)=>{Object(n.toDataURL)(this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},(i,n)=>{i?e(i):t(n)})})}toCanvas(t){return new Promise((e,i)=>{Object(n.toCanvas)(t,this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},t=>{t?i(t):e("success")})})}toSVG(){return new Promise((t,e)=>{Object(n.toString)(this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,type:"svg",version:this.version,width:this.width},(i,n)=>{i?e(i):t(n)})})}renderElement(t){for(const e of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,e);this.renderer.appendChild(this.qrcElement.nativeElement,t)}createQRCode(){this.version&&this.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),this.version=40):this.version&&this.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),this.version=void 0);try{if(!this.isValidQrCodeText(this.qrdata))throw new Error('[angularx-qrcode] Field `qrdata` is empty, set`allowEmptyString="true"` to overwrite this behaviour.');let t;switch(this.elementType){case"canvas":t=this.renderer.createElement("canvas"),this.toCanvas(t).then(()=>{this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] canvas error: ",t)});break;case"svg":t=this.renderer.createElement("div"),this.toSVG().then(e=>{this.renderer.setProperty(t,"innerHTML",e);const i=t.firstChild;this.renderer.setAttribute(i,"height",`${this.width}`),this.renderer.setAttribute(i,"width",`${this.width}`),this.renderElement(i)}).catch(t=>{console.error("[angularx-qrcode] svg error: ",t)});break;case"url":case"img":default:t=this.renderer.createElement("img"),this.toDataURL().then(e=>{t.setAttribute("src",e),this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] img/url error: ",t)})}}catch(t){console.error("[angularx-qrcode] Error generating QR Code: ",t.message)}}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.G))},t.\u0275cmp=r.Ib({type:t,selectors:[["qrcode"]],viewQuery:function(t,e){if(1&t&&r.Kc(s,3),2&t){let t;r.sc(t=r.cc())&&(e.qrcElement=t.first)}},inputs:{colordark:"colordark",colorlight:"colorlight",level:"level",hidetitle:"hidetitle",size:"size",usesvg:"usesvg",allowEmptyString:"allowEmptyString",qrdata:"qrdata",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",margin:"margin",scale:"scale",width:"width",version:"version"},features:[r.Ab],decls:2,vars:2,consts:[["qrcElement",""]],template:function(t,e){1&t&&r.Pb(0,"div",null,0),2&t&&r.Eb(e.cssClass)},encapsulation:2,changeDetection:0}),t})(),o=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)},providers:[]}),t})()},"1G5W":function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("l7GE"),r=i("ZUHj");function s(t){return e=>e.lift(new a(t))}class a{constructor(t){this.notifier=t}call(t,e){const i=new o(t),n=Object(r.a)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class o extends n.a{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,r){this.seenValue=!0,this.complete()}notifyComplete(){}}},"1sBl":function(t,e,i){var n=i("e/Dd").getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];for(var e=Math.floor(t/7)+2,i=n(t),r=145===i?26:2*Math.ceil((i-13)/(2*e-2)),s=[i-7],a=1;a<e-1;a++)s[a]=s[a-1]-r;return s.push(6),s.reverse()},e.getPositions=function(t){for(var i=[],n=e.getRowColCoords(t),r=n.length,s=0;s<r;s++)for(var a=0;a<r;a++)0===s&&0===a||0===s&&a===r-1||s===r-1&&0===a||i.push([n[s],n[a]]);return i}},"25+x":function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("fXoL"),r=i("tk/3");let s=(()=>{class t{constructor(t){this.httpClient=t,this.baseUrl="upload"}uploadImage(t,e){let i=new FormData;return i.append("file",t,t.name),i.append("uploadType",e.toString()),this.httpClient.post(this.baseUrl+"/UploadImage",i)}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(r.b))},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})()},"2QA8":function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("XNiG"),r=i("9ppp");class s extends n.a{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 r.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,i){"use strict";i.d(e,"a",function(){return r});let n=!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 n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},"3E0/":function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("D0XW"),r=i("7o/Q"),s=i("WMd4");function a(t,e=n.a){var i;const r=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new o(r,e))}class o{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}class l extends r.a{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,r=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(r);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(l.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new c(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(s.a.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(s.a.createComplete()),this.unsubscribe()}}class c{constructor(t,e){this.time=t,this.notification=e}}},"3G0t":function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("fXoL");let r=(()=>{class t{constructor(){}getItem(t){return JSON.parse(localStorage.getItem(t))}addOrUpdate(t,e){localStorage.setItem(t,JSON.stringify(e))}removeItem(t){localStorage.removeItem(t)}clear(){localStorage.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})()},"3N8a":function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("quSY");class r extends n.a{constructor(t,e){super()}schedule(t,e=0){return this}}class s extends r{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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,n=!1;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},"3Pt+":function(t,e,i){"use strict";i.d(e,"a",function(){return jt}),i.d(e,"b",function(){return P}),i.d(e,"c",function(){return p}),i.d(e,"d",function(){return Ht}),i.d(e,"e",function(){return xt}),i.d(e,"f",function(){return Lt}),i.d(e,"g",function(){return Mt}),i.d(e,"h",function(){return Wt}),i.d(e,"i",function(){return Bt}),i.d(e,"j",function(){return m}),i.d(e,"k",function(){return l}),i.d(e,"l",function(){return M}),i.d(e,"m",function(){return L}),i.d(e,"n",function(){return N}),i.d(e,"o",function(){return Tt}),i.d(e,"p",function(){return Et}),i.d(e,"q",function(){return G}),i.d(e,"r",function(){return F}),i.d(e,"s",function(){return Xt}),i.d(e,"t",function(){return Ft}),i.d(e,"u",function(){return X}),i.d(e,"v",function(){return y}),i.d(e,"w",function(){return Z}),i.d(e,"x",function(){return Dt});var n=i("fXoL"),r=i("ofXK"),s=i("cp0P"),a=i("Cfvw"),o=i("lJxs");const l=new n.s("NgValueAccessor"),c={provide:l,useExisting:Object(n.V)(()=>h),multi:!0};let h=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.G),n.Ob(n.l))},t.\u0275dir=n.Jb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&n.bc("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[n.Bb([c])]}),t})();const d={provide:l,useExisting:Object(n.V)(()=>p),multi:!0},u=new n.s("CompositionEventMode");let p=(()=>{class t{constructor(t,e,i){this._renderer=t,this._elementRef=e,this._compositionMode=i,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(r.z)()?Object(r.z)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.G),n.Ob(n.l),n.Ob(u,8))},t.\u0275dir=n.Jb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&n.bc("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[n.Bb([d])]}),t})();function f(t){return null==t||0===t.length}function g(t){return null!=t&&"number"==typeof t.length}const m=new n.s("NgValidators"),b=new n.s("NgAsyncValidators"),v=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class y{static min(t){return e=>{if(f(e.value)||f(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(f(e.value)||f(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}static required(t){return f(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return f(t.value)||v.test(t.value)?null:{email:!0}}static minLength(t){return e=>f(e.value)||!g(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}static maxLength(t){return e=>g(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return y.nullValidator;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(f(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(_);return 0==e.length?null:function(t){return w(C(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(_);return 0==e.length?null:function(t){const i=C(t,e).map(x);return Object(s.a)(i).pipe(Object(o.a)(w))}}}function _(t){return null!=t}function x(t){const e=Object(n.tb)(t)?Object(a.a)(t):t;return Object(n.sb)(e),e}function w(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function C(t,e){return e.map(e=>e(t))}function k(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function S(t){return null!=t?y.compose(k(t)):null}function T(t){return null!=t?y.composeAsync(k(t)):null}function A(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function O(t){return t._rawValidators}function E(t){return t._rawAsyncValidators}let D=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=S(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=T(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Jb({type:t}),t})(),P=(()=>{class t extends D{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return I(e||t)},t.\u0275dir=n.Jb({type:t,features:[n.zb]}),t})();const I=n.Wb(P);class M extends D{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class R{constructor(t){this._cd=t}get ngClassUntouched(){var t,e,i;return null!==(i=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.untouched)&&void 0!==i&&i}get ngClassTouched(){var t,e,i;return null!==(i=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.touched)&&void 0!==i&&i}get ngClassPristine(){var t,e,i;return null!==(i=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.pristine)&&void 0!==i&&i}get ngClassDirty(){var t,e,i;return null!==(i=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.dirty)&&void 0!==i&&i}get ngClassValid(){var t,e,i;return null!==(i=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.valid)&&void 0!==i&&i}get ngClassInvalid(){var t,e,i;return null!==(i=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.invalid)&&void 0!==i&&i}get ngClassPending(){var t,e,i;return null!==(i=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.pending)&&void 0!==i&&i}}let L=(()=>{class t extends R{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(M,2))},t.\u0275dir=n.Jb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.Gb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[n.zb]}),t})(),N=(()=>{class t extends R{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(P,10))},t.\u0275dir=n.Jb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.Gb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[n.zb]}),t})();const z={provide:l,useExisting:Object(n.V)(()=>F),multi:!0};let F=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.G),n.Ob(n.l))},t.\u0275dir=n.Jb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&n.bc("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[n.Bb([z])]}),t})();const j={provide:l,useExisting:Object(n.V)(()=>V),multi:!0};let U=(()=>{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=n.Kb({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t{constructor(t,e,i,n){this._renderer=t,this._elementRef=e,this._registry=i,this._injector=n,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(M),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.G),n.Ob(n.l),n.Ob(U),n.Ob(n.t))},t.\u0275dir=n.Jb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&n.bc("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[n.Bb([j])]}),t})();const B={provide:l,useExisting:Object(n.V)(()=>Y),multi:!0};let Y=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.G),n.Ob(n.l))},t.\u0275dir=n.Jb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&n.bc("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[n.Bb([B])]}),t})();const H={provide:l,useExisting:Object(n.V)(()=>X),multi:!0};function W(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let X=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const i=W(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.G),n.Ob(n.l))},t.\u0275dir=n.Jb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&n.bc("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.Bb([H])]}),t})(),G=(()=>{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(W(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.l),n.Ob(n.G),n.Ob(X,9))},t.\u0275dir=n.Jb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const q={provide:l,useExisting:Object(n.V)(()=>K),multi:!0};function $(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let K=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const n=t.item(e),r=this._getOptionValue(n.value);i.push(r)}}else{const t=e.options;for(let e=0;e<t.length;e++){const n=t.item(e);if(n.selected){const t=this._getOptionValue(n.value);i.push(t)}}}this.value=i,t(i)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.G),n.Ob(n.l))},t.\u0275dir=n.Jb({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&n.bc("change",function(t){return e.onChange(t.target)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.Bb([q])]}),t})(),Z=(()=>{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue($(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue($(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.l),n.Ob(n.G),n.Ob(K,9))},t.\u0275dir=n.Jb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function Q(t,e){return[...e.path,t]}function J(t,e){it(t,e,!0),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&rt(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&rt(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function tt(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),nt(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function et(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function it(t,e,i){const n=O(t);null!==e.validator?t.setValidators(A(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const r=E(t);if(null!==e.asyncValidator?t.setAsyncValidators(A(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]),i){const i=()=>t.updateValueAndValidity();et(e._rawValidators,i),et(e._rawAsyncValidators,i)}}function nt(t,e,i){let n=!1;if(null!==t){if(null!==e.validator){const i=O(t);if(Array.isArray(i)&&i.length>0){const r=i.filter(t=>t!==e.validator);r.length!==i.length&&(n=!0,t.setValidators(r))}}if(null!==e.asyncValidator){const i=E(t);if(Array.isArray(i)&&i.length>0){const r=i.filter(t=>t!==e.asyncValidator);r.length!==i.length&&(n=!0,t.setAsyncValidators(r))}}}if(i){const t=()=>{};et(e._rawValidators,t),et(e._rawAsyncValidators,t)}return n}function rt(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function st(t,e){it(t,e,!1)}function at(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}const ot=[h,Y,F,X,K,V];function lt(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function ct(t,e){if(!e)return null;let i,n,r;return Array.isArray(e),e.forEach(t=>{var e;t.constructor===p?i=t:(e=t,ot.some(t=>e.constructor===t)?n=t:r=t)}),r||n||i||null}function ht(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const dt="VALID",ut="INVALID",pt="PENDING",ft="DISABLED";function gt(t){return(yt(t)?t.validators:t)||null}function mt(t){return Array.isArray(t)?S(t):t||null}function bt(t,e){return(yt(e)?e.asyncValidators:t)||null}function vt(t){return Array.isArray(t)?T(t):t||null}function yt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class _t{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=mt(this._rawValidators),this._composedAsyncValidatorFn=vt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===dt}get invalid(){return this.status===ut}get pending(){return this.status==pt}get disabled(){return this.status===ft}get enabled(){return this.status!==ft}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=mt(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=vt(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=pt,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=ft,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=dt,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==dt&&this.status!==pt||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ft:dt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=pt,this._hasOwnPendingAsyncValidator=!0;const e=x(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof wt?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof Ct&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new n.o,this.statusChanges=new n.o}_calculateStatus(){return this._allControlsDisabled()?ft:this.errors?ut:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(pt)?pt:this._anyControlsHaveStatus(ut)?ut:dt}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){yt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class xt extends _t{constructor(t=null,e,i){super(gt(e),bt(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!i})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){ht(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){ht(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class wt extends _t{constructor(t,e,i){super(gt(e),bt(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!i})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof xt?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Ct extends _t{constructor(t,e,i){super(gt(e),bt(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!i})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof xt?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const kt={provide:P,useExisting:Object(n.V)(()=>Tt)},St=(()=>Promise.resolve(null))();let Tt=(()=>{class t extends P{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new n.o,this.form=new wt({},S(t),T(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){St.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),J(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){St.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),ht(this._directives,t)})}addFormGroup(t){St.then(()=>{const e=this._findContainer(t.path),i=new wt({});st(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){St.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){St.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,lt(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(m,10),n.Ob(b,10))},t.\u0275dir=n.Jb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&n.bc("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.Bb([kt]),n.zb]}),t})();const At={provide:M,useExisting:Object(n.V)(()=>Et)},Ot=(()=>Promise.resolve(null))();let Et=(()=>{class t extends M{constructor(t,e,i,r){super(),this.control=new xt,this._registered=!1,this.update=new n.o,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=ct(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),at(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Q(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){J(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){Ot.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;Ot.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(P,9),n.Ob(m,10),n.Ob(b,10),n.Ob(l,10))},t.\u0275dir=n.Jb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n.Bb([At]),n.zb,n.Ab]}),t})(),Dt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Jb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Pt=new n.s("NgModelWithFormControlWarning"),It={provide:P,useExisting:Object(n.V)(()=>Mt)};let Mt=(()=>{class t extends P{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.o,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(nt(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return J(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){tt(t.control||null,t,!1),ht(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,lt(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(tt(t.control||null,t),e&&J(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);st(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return nt(t,e,!1)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){it(this.form,this,!1),this._oldForm&&nt(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(m,10),n.Ob(b,10))},t.\u0275dir=n.Jb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&n.bc("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.Bb([It]),n.zb,n.Ab]}),t})();const Rt={provide:M,useExisting:Object(n.V)(()=>Lt)};let Lt=(()=>{class t extends M{constructor(t,e,i,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new n.o,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=ct(0,r)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),at(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Q(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(P,13),n.Ob(m,10),n.Ob(b,10),n.Ob(l,10),n.Ob(Pt,8))},t.\u0275dir=n.Jb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n.Bb([Rt]),n.zb,n.Ab]}),t._ngModelWarningSentOnce=!1,t})();const Nt={provide:m,useExisting:Object(n.V)(()=>Ft),multi:!0},zt={provide:m,useExisting:Object(n.V)(()=>jt),multi:!0};let Ft=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?y.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Jb({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&n.Db("required",e.required?"":null)},inputs:{required:"required"},features:[n.Bb([Nt])]}),t})(),jt=(()=>{class t extends Ft{validate(t){return this.required?y.requiredTrue(t):null}}return t.\u0275fac=function(e){return Ut(e||t)},t.\u0275dir=n.Jb({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.Db("required",e.required?"":null)},features:[n.Bb([zt]),n.zb]}),t})();const Ut=n.Wb(jt),Vt={provide:m,useExisting:Object(n.V)(()=>Bt),multi:!0};let Bt=(()=>{class t{constructor(){this._validator=y.nullValidator}ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=y.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Jb({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.Db("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[n.Bb([Vt]),n.Ab]}),t})(),Yt=(()=>{class t{}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)}}),t})(),Ht=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n,r=null,s=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,n=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new wt(i,{asyncValidators:s,updateOn:n,validators:r})}control(t,e,i){return new xt(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new Ct(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof xt||t instanceof wt||t instanceof Ct?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})(),Wt=(()=>{class t{}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)},providers:[U],imports:[Yt]}),t})(),Xt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Pt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)},providers:[Ht,U],imports:[Yt]}),t})()},"3UWI":function(t,e,i){"use strict";i.d(e,"a",function(){return c});var n=i("D0XW"),r=i("l7GE"),s=i("ZUHj");class a{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new o(t,this.durationSelector))}}class o extends r.a{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=Object(s.a)(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var l=i("PqYM");function c(t,e=n.a){return i=()=>Object(l.a)(t,e),function(t){return t.lift(new a(i))};var i}},"3X7Y":function(t,e,i){var n=i("u/Db");function r(t){this.mode=n.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){var e,i,n;for(e=0;e+3<=this.data.length;e+=3)i=this.data.substr(e,3),n=parseInt(i,10),t.put(n,10);var r=this.data.length-e;r>0&&(i=this.data.substr(e),n=parseInt(i,10),t.put(n,3*r+1))},t.exports=r},"49sm":function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},"4I5i":function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"5+tZ":function(t,e,i){"use strict";i.d(e,"a",function(){return l});var n=i("ZUHj"),r=i("l7GE"),s=i("51Dv"),a=i("lJxs"),o=i("Cfvw");function l(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(l((i,n)=>Object(o.a)(t(i,n)).pipe(Object(a.a)((t,r)=>e(i,t,n,r))),i)):("number"==typeof e&&(i=e),e=>e.lift(new c(t,i)))}class c{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new h(t,this.project,this.concurrent))}}class h extends r.a{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,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 i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this.active++,this._innerSub(e,t,i)}_innerSub(t,e,i){const r=new s.a(this,e,i),a=this.destination;a.add(r);const o=Object(n.a)(this,t,void 0,void 0,r);o!==r&&a.add(o)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,i,n,r){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("7o/Q");class r extends n.a{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,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()}}},"6+lR":function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("MfXU"),r=i("jiyY"),s=i("fXoL");let a=(()=>{class t extends r.a{constructor(){super(...arguments),this.userRoles=[n.a.Admin]}}return t.\u0275fac=function(e){return o(e||t)},t.\u0275prov=s.Kb({token:t,factory:t.\u0275fac}),t})();const o=s.Wb(a)},"7+OI":function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("HDdC");function r(t){return!!t&&(t instanceof n.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"7Hc7":function(t,e,i){"use strict";i.d(e,"a",function(){return u});let n=1;const r=(()=>Promise.resolve())(),s={};function a(t){return t in s&&(delete s[t],!0)}const o={setImmediate(t){const e=n++;return s[e]=!0,r.then(()=>a(e)&&t()),e},clearImmediate(t){a(t)}};var l=i("3N8a");class c extends l.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=o.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(o.clearImmediate(e),t.scheduled=void 0)}}var h=i("IjjT");class d extends h.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,r=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++n<r&&(t=e.shift()));if(this.active=!1,i){for(;++n<r&&(t=e.shift());)t.unsubscribe();throw i}}}const u=new d(c)},"7o/Q":function(t,e,i){"use strict";i.d(e,"a",function(){return c});var n=i("n6bG"),r=i("gRHU"),s=i("quSY"),a=i("2QA8"),o=i("2fFW"),l=i("NJ4a");class c extends s.a{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=r.a;break;case 1:if(!t){this.destination=r.a;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new h(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new h(this,t,e,i)}}[a.a](){return this}static create(t,e,i){const n=new c(t,e,i);return n.syncErrorThrowable=!1,n}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 h extends c{constructor(t,e,i,s){let a;super(),this._parentSubscriber=t;let o=this;Object(n.a)(e)?a=e:e&&(a=e.next,i=e.error,s=e.complete,e!==r.a&&(o=Object.create(e),Object(n.a)(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=a,this._error=i,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;o.a.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:i}=o.a;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(l.a)(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;Object(l.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);o.a.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(i){if(this.unsubscribe(),o.a.useDeprecatedSynchronousErrorHandling)throw i;Object(l.a)(i)}}__tryOrSetError(t,e,i){if(!o.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return o.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(Object(l.a)(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"8LU1":function(t,e,i){"use strict";i.d(e,"a",function(){return a}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return r}),i.d(e,"d",function(){return l}),i.d(e,"e",function(){return c}),i.d(e,"f",function(){return s}),i.d(e,"g",function(){return h});var n=i("fXoL");function r(t){return null!=t&&"false"!=`${t}`}function s(t,e=0){return a(t)?Number(t):e}function a(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function o(t){return Array.isArray(t)?t:[t]}function l(t){return null==t?"":"string"==typeof t?t:`${t}px`}function c(t){return t instanceof n.l?t.nativeElement:t}function h(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(e);for(const t of n){const e=`${t}`.trim();e&&i.push(e)}}return i}},"9ppp":function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},AZa5:function(t,e,i){var n=i("Wogr"),r=i("u/Db");function s(t){this.mode=r.BYTE,this.data=new n(t)}s.getBitsLength=function(t){return 8*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){for(var e=0,i=this.data.length;e<i;e++)t.put(this.data[e],8)},t.exports=s},BCVQ:function(t,e){var i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",n="(?:(?![A-Z0-9 $%*+\\-./:]|"+(i=i.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";e.KANJI=new RegExp(i,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(n,"g"),e.NUMERIC=new RegExp("[0-9]+","g"),e.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var r=new RegExp("^"+i+"$"),s=new RegExp("^[0-9]+$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return r.test(t)},e.testNumeric=function(t){return s.test(t)},e.testAlphanumeric=function(t){return a.test(t)}},CV0D:function(t,e,i){"use strict";i.d(e,"a",function(){return l}),i.d(e,"b",function(){return c});var n=i("7Hc7"),r=i("ujAs"),s=i.n(r),a=i("fXoL");const o=["chart"];let l=(()=>{class t{constructor(){this.autoUpdateSeries=!0}ngOnInit(){n.a.schedule(()=>{this.createElement()})}ngOnChanges(t){n.a.schedule(()=>{this.autoUpdateSeries&&0===Object.keys(t).filter(t=>"series"!==t).length?this.updateSeries(this.series,!0):this.createElement()})}ngOnDestroy(){this.chartObj&&this.chartObj.destroy()}createElement(){const t={};this.annotations&&(t.annotations=this.annotations),this.chart&&(t.chart=this.chart),this.colors&&(t.colors=this.colors),this.dataLabels&&(t.dataLabels=this.dataLabels),this.series&&(t.series=this.series),this.stroke&&(t.stroke=this.stroke),this.labels&&(t.labels=this.labels),this.legend&&(t.legend=this.legend),this.fill&&(t.fill=this.fill),this.tooltip&&(t.tooltip=this.tooltip),this.plotOptions&&(t.plotOptions=this.plotOptions),this.responsive&&(t.responsive=this.responsive),this.markers&&(t.markers=this.markers),this.noData&&(t.noData=this.noData),this.xaxis&&(t.xaxis=this.xaxis),this.yaxis&&(t.yaxis=this.yaxis),this.grid&&(t.grid=this.grid),this.states&&(t.states=this.states),this.title&&(t.title=this.title),this.subtitle&&(t.subtitle=this.subtitle),this.theme&&(t.theme=this.theme),this.chartObj&&this.chartObj.destroy(),this.chartObj=new s.a(this.chartElement.nativeElement,t),this.render()}render(){return this.chartObj.render()}updateOptions(t,e,i,n){return this.chartObj.updateOptions(t,e,i,n)}updateSeries(t,e){this.chartObj.updateSeries(t,e)}appendSeries(t,e){this.chartObj.appendSeries(t,e)}appendData(t){this.chartObj.appendData(t)}toggleSeries(t){return this.chartObj.toggleSeries(t)}showSeries(t){this.chartObj.showSeries(t)}hideSeries(t){this.chartObj.hideSeries(t)}resetSeries(){this.chartObj.resetSeries()}zoomX(t,e){this.chartObj.zoomX(t,e)}toggleDataPointSelection(t,e){this.chartObj.toggleDataPointSelection(t,e)}destroy(){this.chartObj.destroy()}setLocale(t){this.chartObj.setLocale(t)}paper(){this.chartObj.paper()}addXaxisAnnotation(t,e,i){this.chartObj.addXaxisAnnotation(t,e,i)}addYaxisAnnotation(t,e,i){this.chartObj.addYaxisAnnotation(t,e,i)}addPointAnnotation(t,e,i){this.chartObj.addPointAnnotation(t,e,i)}removeAnnotation(t,e){this.chartObj.removeAnnotation(t,e)}clearAnnotations(t){this.chartObj.clearAnnotations(t)}dataURI(){return this.chartObj.dataURI()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=a.Ib({type:t,selectors:[["apx-chart"]],viewQuery:function(t,e){if(1&t&&a.Kc(o,3),2&t){let t;a.sc(t=a.cc())&&(e.chartElement=t.first)}},inputs:{autoUpdateSeries:"autoUpdateSeries",chart:"chart",annotations:"annotations",colors:"colors",dataLabels:"dataLabels",series:"series",stroke:"stroke",labels:"labels",legend:"legend",markers:"markers",noData:"noData",fill:"fill",tooltip:"tooltip",plotOptions:"plotOptions",responsive:"responsive",xaxis:"xaxis",yaxis:"yaxis",grid:"grid",states:"states",title:"title",subtitle:"subtitle",theme:"theme"},features:[a.Ab],decls:2,vars:0,consts:[["chart",""]],template:function(t,e){1&t&&a.Pb(0,"div",null,0)},styles:[""]}),t})();window.ApexCharts=s.a;let c=(()=>{class t{}return t.\u0275mod=a.Mb({type:t}),t.\u0275inj=a.Lb({factory:function(e){return new(e||t)},imports:[[]]}),t})()},Cfvw:function(t,e,i){"use strict";i.d(e,"a",function(){return d});var n=i("HDdC"),r=i("SeVD"),s=i("quSY"),a=i("kJWO"),o=i("jZKg"),l=i("Lhse"),c=i("c2HN"),h=i("I55L");function d(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[a.a]}(t))return function(t,e){return new n.a(i=>{const n=new s.a;return n.add(e.schedule(()=>{const r=t[a.a]();n.add(r.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if(Object(c.a)(t))return function(t,e){return new n.a(i=>{const n=new s.a;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if(Object(h.a)(t))return Object(o.a)(t,e);if(function(t){return t&&"function"==typeof t[l.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.a(i=>{const n=new s.a;let r;return n.add(()=>{r&&"function"==typeof r.return&&r.return()}),n.add(e.schedule(()=>{r=t[l.a](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=r.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof n.a?t:new n.a(Object(r.a)(t))}},D0XW:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("3N8a");const r=new(i("IjjT").a)(n.a)},DH7j:function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},ELBg:function(t,e,i){"use strict";var n={single_source_shortest_paths:function(t,e,i){var r={},s={};s[e]=0;var a,o,l,c,h,d,u=n.PriorityQueue.make();for(u.push(e,0);!u.empty();)for(l in c=(a=u.pop()).cost,h=t[o=a.value]||{})h.hasOwnProperty(l)&&(d=c+h[l],(void 0===s[l]||s[l]>d)&&(s[l]=d,u.push(l,d),r[l]=o));if(void 0!==i&&void 0===s[i]){var p=["Could not find a path from ",e," to ",i,"."].join("");throw new Error(p)}return r},extract_shortest_path_from_predecessor_list:function(t,e){for(var i=[],n=e;n;)i.push(n),n=t[n];return i.reverse(),i},find_path:function(t,e,i){var r=n.single_source_shortest_paths(t,e,i);return n.extract_shortest_path_from_predecessor_list(r,i)},PriorityQueue:{make:function(t){var e,i=n.PriorityQueue,r={};for(e in t=t||{},i)i.hasOwnProperty(e)&&(r[e]=i[e]);return r.queue=[],r.sorter=t.sorter||i.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){this.queue.push({value:t,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=n},EY2u:function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return s});var n=i("HDdC");const r=new n.a(t=>t.complete());function s(t){return t?function(t){return new n.a(e=>t.schedule(()=>e.complete()))}(t):r}},FFoR:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("fXoL"),r=i("tk/3");let s=(()=>{class t{constructor(t){this.httpClient=t,this.baseUrl="profile"}loadProfile(){return this.httpClient.get(this.baseUrl+"/LoadProfile")}loadCountries(){return this.httpClient.get(this.baseUrl+"/ListCountries")}loadTransfusionCenters(t){return this.httpClient.get(this.baseUrl+`/ListTransfusionCenters?countryID=${t}`)}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(r.b))},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})()},FKr1:function(t,e,i){"use strict";i.d(e,"a",function(){return v}),i.d(e,"b",function(){return y}),i.d(e,"c",function(){return D}),i.d(e,"d",function(){return Y}),i.d(e,"e",function(){return P}),i.d(e,"f",function(){return j}),i.d(e,"g",function(){return ht}),i.d(e,"h",function(){return st}),i.d(e,"i",function(){return tt}),i.d(e,"j",function(){return w}),i.d(e,"k",function(){return H}),i.d(e,"l",function(){return G}),i.d(e,"m",function(){return B}),i.d(e,"n",function(){return ft}),i.d(e,"o",function(){return bt}),i.d(e,"p",function(){return ut}),i.d(e,"q",function(){return nt}),i.d(e,"r",function(){return rt}),i.d(e,"s",function(){return et}),i.d(e,"t",function(){return it}),i.d(e,"u",function(){return F}),i.d(e,"v",function(){return J}),i.d(e,"w",function(){return gt}),i.d(e,"x",function(){return mt}),i.d(e,"y",function(){return k}),i.d(e,"z",function(){return S}),i.d(e,"A",function(){return C}),i.d(e,"B",function(){return A}),i.d(e,"C",function(){return O}),i.d(e,"D",function(){return T}),i.d(e,"E",function(){return W});var n=i("fXoL"),r=i("u47x"),s=i("cH1L");const a=new n.Q("11.1.1");var o=i("ofXK"),l=i("8LU1"),c=i("XNiG"),h=i("HDdC"),d=i("nLfN"),u=i("JX91"),p=i("R1ws"),f=i("FtGj");function g(t,e){if(1&t&&n.Pb(0,"mat-pseudo-checkbox",4),2&t){const t=n.fc();n.lc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function m(t,e){if(1&t&&(n.Ub(0,"span",5),n.Ec(1),n.Tb()),2&t){const t=n.fc();n.Cb(1),n.Gc("(",t.group.label,")")}}const b=["*"];let v=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),y=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const _=new n.Q("11.1.1"),x=new n.s("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let w=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return Object(n.X)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.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"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&_.full!==a.full&&console.warn("The Angular Material version ("+_.full+") does not match the Angular CDK version ("+a.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)(n.Yb(r.j),n.Yb(x,8),n.Yb(o.d))},imports:[[s.a],s.a]}),t})();function C(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(l.c)(t)}}}function k(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 S(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(l.c)(t)}}}function T(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Object(l.f)(t):this.defaultTabIndex}}}function A(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new c.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function O(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new h.a(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const E=new n.s("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(n.W)(n.w)}});class D{constructor(){this._localeChanges=new c.a,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const P=new n.s("mat-date-formats");let I;try{I="undefined"!=typeof Intl}catch(vt){I=!1}const M={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},R=z(31,t=>String(t+1)),L={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},N=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function z(t,e){const i=Array(t);for(let n=0;n<t;n++)i[n]=e(n);return i}let F=(()=>{class t extends D{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(I){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return z(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return M[t]}getDateNames(){if(I){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return z(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return R}getDayOfWeekNames(t){if(I){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return z(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return L[t]}getYearName(t){if(I){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(I){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(N.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(E,8),n.Yb(d.a))},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})();const j={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let U=(()=>{class t{}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)},providers:[{provide:D,useClass:F}],imports:[[d.b]]}),t})();const V=j;let B=(()=>{class t{}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)},providers:[{provide:P,useValue:V}],imports:[[U]]}),t})(),Y=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(n.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Jb({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function W(t,e,i="mat"){t.changes.pipe(Object(u.a)(t)).subscribe(({length:t})=>{X(e,`${i}-2-line`,!1),X(e,`${i}-3-line`,!1),X(e,`${i}-multi-line`,!1),2===t||3===t?X(e,`${i}-${t}-line`,!0):t>3&&X(e,`${i}-multi-line`,!0)})}function X(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let G=(()=>{class t{}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)},imports:[[w],w]}),t})();class q{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const $={enterDuration:450,exitDuration:400},K=Object(d.f)({passive:!0}),Z=["mousedown","touchstart"],Q=["mouseup","mouseleave","touchend","touchcancel"];class J{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=Object(l.e)(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},$),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const s=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+r*r)}(t,e,n),a=t-n.left,o=e-n.top,l=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=a-s+"px",c.style.top=o-s+"px",c.style.height=2*s+"px",c.style.width=2*s+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new q(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,i.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},$),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=Object(l.e)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Z))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Q),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Object(r.l)(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||i||(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,K)})})}_removeTriggerEvents(){this._triggerElement&&(Z.forEach(t=>{this._triggerElement.removeEventListener(t,this,K)}),this._pointerUpEventsRegistered&&Q.forEach(t=>{this._triggerElement.removeEventListener(t,this,K)}))}}const tt=new n.s("mat-ripple-global-options");let et=(()=>{class t{constructor(t,e,i,n,r){this._elementRef=t,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new J(this,e,t,i)}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,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.l),n.Ob(n.B),n.Ob(d.a),n.Ob(tt,8),n.Ob(p.a,8))},t.\u0275dir=n.Jb({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&n.Gb("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})(),it=(()=>{class t{}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)},imports:[[w,d.b],w]}),t})(),nt=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(p.a,8))},t.\u0275cmp=n.Ib({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&n.Gb("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),rt=(()=>{class t{}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)},imports:[[w]]}),t})();const st=new n.s("MAT_OPTION_PARENT_COMPONENT");class at{}const ot=C(at);let lt=0,ct=(()=>{class t extends ot{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+lt++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(st,8))},t.\u0275dir=n.Jb({type:t,inputs:{label:"label"},features:[n.zb]}),t})();const ht=new n.s("MatOptgroup");let dt=0;class ut{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let pt=(()=>{class t{constructor(t,e,i,r){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+dt++,this.onSelectionChange=new n.o,this._stateChanges=new c.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Object(l.c)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==f.f&&t.keyCode!==f.n||Object(f.s)(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new ut(this,t))}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.l),n.Ob(n.h),n.Ob(void 0),n.Ob(ct))},t.\u0275dir=n.Jb({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),ft=(()=>{class t extends pt{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.l),n.Ob(n.h),n.Ob(st,8),n.Ob(ht,8))},t.\u0275cmp=n.Ib({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&n.bc("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(n.Xb("id",e.id),n.Db("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),n.Gb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[n.zb],ngContentSelectors:b,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(n.kc(),n.Dc(0,g,1,2,"mat-pseudo-checkbox",0),n.Ub(1,"span",1),n.jc(2),n.Tb(),n.Dc(3,m,2,1,"span",2),n.Pb(4,"div",3)),2&t&&(n.lc("ngIf",e.multiple),n.Cb(3),n.lc("ngIf",e.group&&e.group._inert),n.Cb(1),n.lc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[o.l,et,nt],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function gt(t,e,i){if(i.length){let n=e.toArray(),r=i.toArray(),s=0;for(let e=0;e<t+1;e++)n[e].group&&n[e].group===r[s]&&s++;return s}return 0}function mt(t,e,i,n){return t<i?t:t+e>i+n?Math.max(0,t-n+e):i}let bt=(()=>{class t{}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)},imports:[[it,o.c,w,rt]]}),t})()},FtGj:function(t,e,i){"use strict";i.d(e,"a",function(){return y}),i.d(e,"b",function(){return n}),i.d(e,"c",function(){return m}),i.d(e,"d",function(){return g}),i.d(e,"e",function(){return h}),i.d(e,"f",function(){return s}),i.d(e,"g",function(){return a}),i.d(e,"h",function(){return d}),i.d(e,"i",function(){return u}),i.d(e,"j",function(){return v}),i.d(e,"k",function(){return c}),i.d(e,"l",function(){return l}),i.d(e,"m",function(){return f}),i.d(e,"n",function(){return o}),i.d(e,"o",function(){return r}),i.d(e,"p",function(){return p}),i.d(e,"q",function(){return _}),i.d(e,"r",function(){return b}),i.d(e,"s",function(){return x});const n=8,r=9,s=13,a=27,o=32,l=33,c=34,h=35,d=36,u=37,p=38,f=39,g=40,m=46,b=48,v=57,y=65,_=90;function x(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},GNJl:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("fXoL");let r=(()=>{class t{constructor(){}saveToken(t){localStorage.setItem("token",JSON.stringify(t))}getToken(){return this.validate(JSON.parse(localStorage.getItem("token")))}validate(t){return t&&new Date(t.expiry)>new Date?t:null}deleteToken(){localStorage.removeItem("token")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})()},GU7r:function(t,e,i){"use strict";i.d(e,"a",function(){return h}),i.d(e,"b",function(){return c}),i.d(e,"c",function(){return d});var n=i("8LU1"),r=i("fXoL"),s=i("HDdC"),a=i("XNiG"),o=i("Kj3r");let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Object(n.e)(t);return new s.a(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new a.a,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(l))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(l))},token:t,providedIn:"root"}),t})(),h=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new r.o,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(n.c)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Object(n.f)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Object(o.a)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(c),r.Ob(r.l),r.Ob(r.B))},t.\u0275dir=r.Jb({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),d=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)},providers:[l]}),t})()},GXgC:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("MfXU"),r=i("jiyY"),s=i("fXoL");let a=(()=>{class t extends r.a{constructor(){super(...arguments),this.userRoles=[n.a.StemRegistry]}}return t.\u0275fac=function(e){return o(e||t)},t.\u0275prov=s.Kb({token:t,factory:t.\u0275fac}),t})();const o=s.Wb(a)},GyhO:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("LRne"),r=i("bHdf");function s(...t){return Object(r.a)(1)(Object(n.a)(...t))}},HDdC:function(t,e,i){"use strict";i.d(e,"a",function(){return c});var n=i("7o/Q"),r=i("2QA8"),s=i("gRHU"),a=i("kJWO"),o=i("mCNh"),l=i("2fFW");let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:a}=this,o=function(t,e,i){if(t){if(t instanceof n.a)return t;if(t[r.a])return t[r.a]()}return t||e||i?new n.a(t,e,i):new n.a(s.a)}(t,e,i);if(o.add(a?a.call(o,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),l.a.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:r}=t;if(e||r)return!1;t=i&&i instanceof n.a?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=h(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(r){i(r),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[a.a](){return this}pipe(...t){return 0===t.length?this:Object(o.b)(t)(this)}toPromise(t){return new(t=h(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function h(t){if(t||(t=l.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},I55L:function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=t=>t&&"number"==typeof t.length&&"function"!=typeof t},I631:function(t,e,i){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"};return function(e,i,n){var r=i.prototype,s=r.format;n.en.formats=t,r.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var i=this.$locale().formats,n=function(e,i){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,n,r){var s=r&&r.toUpperCase();return n||i[r]||t[r]||i[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,i){return e||i.slice(1)})})}(e,void 0===i?{}:i);return s.call(this,n)}}}()},IjjT:function(t,e,i){"use strict";i.d(e,"a",function(){return r});let n=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class r extends n{constructor(t,e=n.now){super(t,()=>r.delegate&&r.delegate!==this?r.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return r.delegate&&r.delegate!==this?r.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}},IzEk:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("7o/Q"),r=i("4I5i"),s=i("EY2u");function a(t){return e=>0===t?Object(s.b)():e.lift(new o(t))}class o{constructor(t){if(this.total=t,this.total<0)throw new r.a}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends n.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}},J6Nv:function(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},JIr8:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("l7GE"),r=i("51Dv"),s=i("ZUHj");function a(t){return function(e){const i=new o(t),n=e.lift(i);return i.caught=n}}class o{constructor(t){this.selector=t}call(t,e){return e.subscribe(new l(t,this.selector,this.caught))}}class l extends n.a{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new r.a(this,void 0,void 0);this.add(n);const a=Object(s.a)(this,i,void 0,void 0,n);a!==n&&this.add(a)}}}},JX91:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("GyhO"),r=i("z+Ro");function s(...t){const e=t[t.length-1];return Object(r.a)(e)?(t.pop(),i=>Object(n.a)(t,i,e)):e=>Object(n.a)(t,e)}},JzKC:function(t,e,i){var n=i("Wogr"),r=i("aZ40");e.mul=function(t,e){var i=new n(t.length+e.length-1);i.fill(0);for(var s=0;s<t.length;s++)for(var a=0;a<e.length;a++)i[s+a]^=r.mul(t[s],e[a]);return i},e.mod=function(t,e){for(var i=new n(t);i.length-e.length>=0;){for(var s=i[0],a=0;a<e.length;a++)i[a]^=r.mul(e[a],s);for(var o=0;o<i.length&&0===i[o];)o++;i=i.slice(o)}return i},e.generateECPolynomial=function(t){for(var i=new n([1]),s=0;s<t;s++)i=e.mul(i,[1,r.exp(s)]);return i}},Kj3r:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("7o/Q"),r=i("D0XW");function s(t,e=r.a){return i=>i.lift(new a(t,e))}class a{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new o(t,this.dueTime,this.scheduler))}}class o extends n.a{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,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(l,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 l(t){t.debouncedNext()}},Kqap:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("7o/Q");function r(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new s(t,e,i))}}class s{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))}}class a extends n.a{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}},LF2l:function(t,e,i){"use strict";i.d(e,"a",function(){return s});const n={Global_Logout:"Deconectare",Global_Form_Invalid:"Formular invalid! Completeaz\u0103 toate c\xe2mpurile obligatorii \u0219i apoi \xeencearc\u0103 din nou.",Global_Something_Went_Wrong:"A avut loc o eroare, te rug\u0103m s\u0103 ne contactezi \xeen cazul \xeen care aceast\u0103 eroare persist\u0103.",Global_Copy_To_Clipboard:"Copiaz\u0103!",Global_Copied_To_Clipboard:"Copiat!",Powered_By:"Powered by",Nav_Home:"Acas\u0103",Nav_Download:"Descarc\u0103",Nav_Centre:"Centre",Nav_Partners:"Parteneri",Nav_Sponsors:"Sponsori",Nav_Supporters:"Sus\u021bin\u0103tori",Nav_QAndA:"Q&A",Nav_About_Us:"Despre noi",Nav_Contact:"Contact",Dashboard_Main_Title:"\xceN CE SITUA\u0162II APARE NEVOIA DE S\xc2NGE:",Partners_National:"Parteneri Na\u021bionali",Partners_Local:"Parteneri Locali",CTS_Menu_Item_Appointments:"Program\u0103ri",CTS_Menu_Item_Feedback:"Feedback",CTS_Menu_Item_Statistics:"Statistici",CTS_Menu_Item_Messages:"Mesaje",CTS_Menu_Item_Campaigns:"Campanii",CTS_Menu_Item_BloodStock:"Stoc s\xe2nge",CTS_Menu_Item_Settings:"Set\u0103ri",CTS_Menu_Item_Holidays:"Zile libere",CTS_Holiday_Off:"Liber na\u021bional",CTS_Menu_Item_Appointment_Configuration:"Configurare program",CTS_Centers_Dropdown:"Selecta\u021bi o \u021bar\u0103",CTS_New_Configuration:"Configurare nou\u0103",CTS_Configuration_Message:"Mesaj de la centru",CTS_Configuration_Starts_In:"\xcencep\xe2nd cu",CTS_Configuration_Ends_In:"P\xe2n\u0103 la",CTS_Configuration_Save:"Salveaz\u0103 configurarea",CTS_Configuration_Schedule:"Configurarea program\u0103rii curente",CTS_Configuration_Selected_Schedule:"Configurarea program\u0103rii selectate",CTS_Configuration_Created:"Configurare creat\u0103",CTS_Configuration_expire:"Seteaz\u0103 dat\u0103 de expirare pentru configurare",CTS_Configuration_Cancel:"Anuleaz\u0103",CTS_Configuration_Future:"Configura\u021bii viitoare",CTS_Configuration_starts:"Din",CTS_Configuration_New_Confirmation:"Sunte\u021bi sigur c\u0103 dori\u021bi s\u0103 crea\u021bi o nou\u0103 configurare ?",CTS_Configuration_Delete_Confirmation:"Sunte\u021bi sigur c\u0103 dori\u021bi s\u0103 \u0219terge\u021bi aceast\u0103 configurare ?",NGO_Menu_Item_Appointments:"Program\u0103ri",NGO_Menu_Item_Campaigns:"Campanii",NGO_Menu_Item_Articles:"Articole",NGO_Menu_Item_QuizGame:"Quiz",NGO_Menu_Item_Raffle:"Tombole",Stem_Menu_Item_Stem_Register:"\xcenregistrare stem",Login_Title:"Autentificare",Login_Button_Text:"Autentificare",Login_Email:"Email",Login_Password:"Parola",Login_Invalid_Email:"Adresa de email nu este valid\u0103.",Login_Enter_Password:"Este nevoie de o parol\u0103.",Login_Wrong_Credentials:"Email sau parol\u0103 gre\u0219it\u0103",Login_Welcome:"Bine ai venit",Login_Recover_Password:"Ai uitat parola?",DeleteAccount_Title:"\u0218tergere cont",DeleteAccount_FinalWords:"Ai ini\u021biat procesul de \u0219tergele al contului. La final, toate datele tale vor fi \u0219terse f\u0103r\u0103 s\u0103 le mai po\u021bi recupera vreodat\u0103!",DeleteAccount_Reason:"Motivul pentru care dore\u0219ti s\u0103-\u021bi \u0219tergi contul",DeleteAccount_Reason_Required:"Te rug\u0103m s\u0103 ne spui c\xe2teva cuvinte despre motivul pentru care dore\u0219ti s\u0103 \xee\u021bi \u0219tergi contul",DeleteAccount_Button_Text:"\u0218terge contul",DeleteAccount_Form_Invalid:"Completeaz\u0103 toate c\xe2mpurile obligatorii \u0219i apoi \xeencearc\u0103 din nou.",DeleteAccount_Error:"A avut loc o eroare, te rug\u0103m s\u0103 ne contactezi \xeen cazul \xeen care aceast\u0103 eroare persist\u0103.",DeleteAccount_Request_Expired:"Link-ul nu mai este valid! Po\u021bi genera unul nou, cu durata de 5 minute, direct din aplica\u021bie!",DeleteAccount_Success:"Contul t\u0103u a fost \u0219ters cu succes! \xce\u021bi mul\u021bumim \u0219i te mai a\u0219tept\u0103m pe la noi!",Feedback:"Feedback",Feedback_Email:"Email",Feedback_Text:"P\u0103reri",Feedback_Location:"Loca\u021bie",Feedback_Sentiment:"Opinie",Feedback_Date:"Data",Feedback_Chat:"Chat",Feedback_Answer:"R\u0103spunde",Holidays:"Zile libere",Holidays_Info:"Aici sunt afi\u0219ate zilele libere din urm\u0103toarele 13 luni.",Holidays_Name:"Nume zi liber\u0103",Holidays_Date:"Data",Holidays_Type:"Tip zi",Global_BlooDoChallenge:"BlooDoChallenge",Appointments_List:"List\u0103 programa\u021bi",Appointments_Hour:"Ora",Appointments_Donor:"Donator",Appointments_BloodType:"Grupa de s\xe2nge",Appointments_DateOfBirth:"Data na\u0219terii",Appointments_Created:"Programat",Appointments_Present:"A fost prezent?",Appointments_DaysSinceCreation:"Acum {0} zile",Appointments_HasDonatedBeforeTooltip:"A mai donat \xeen trecut",Appointments_Appointment_At:"Programare la (sediu/campanie):",Appointment_Donor_Scheduled:"donator programat",Appointment_Donors_Scheduled:"donatori programa\u021bi",Appointment_Download_PDF:"Descarc\u0103 PDF ",Appointment_Name_Placeholder:"Adaug\u0103 aici numele",Appointment_FirstName_Placeholder:"Adaug\u0103 aici prenumele",Appointment_BloodType_Placeholder:"Selecteaz\u0103 o grup\u0103 de s\xe2nge (op\u021bional)",Appointment_Schedule:"Data program\u0103rii",Appointment_Schedule_Placeholder:"Adaug\u0103 data program\u0103rii",Appointment_Email_Placeholder:"Adaug\u0103 o adres\u0103 de email (op\u021bional)",Appointment_Save:"Salveaz\u0103 programarea",Appointment_Saved:"Programarea a fost salvat\u0103",Appointment_Honored_Checked:"Donatorul a fost marcat ca prezent",Appointment_Honored_Unchecked:"Donatorul a fost marcat ca absent",Appointment_PhoneNumber:"Nr. de telefon",Appointment_PhoneNumber_Placeholder:"Adaug\u0103 nr. de telefon (op\u021bional)",Appointment_PhoneNumber_Error:"Introduce\u021bi un nr. de telefon valid",Slot_Required:"Slot obligatoriu",Appointment_Blood_Groups:"Legend\u0103 grupe de s\xe2nge",None:"Necompletat",A_Positive:"(A+)",A_Negative:"(A-)",B_Positive:"(B+)",B_Negative:"(B-)",AB_Positive:"(AB+)",AB_Negative:"(AB-)",Zero_Positive:"(0+)",Zero_Negative:"(0-)",Previous_Donors:"Donatori recuren\u021bi",Not_Previous_Donors:"Donatori noi",Total_Complete:"Completat",Total_Donors:"Num\u0103r total de donatori",Transfusion_Center:"CTS",ADMIN_Menu_Item_Home:"Home",ADMIN_Menu_Item_Centers:"Centre",ADMIN_Menu_Item_Partners:"Parteneri",ADMIN_Menu_Item_Feedback:"Feedback",ADMIN_Menu_Item_Donors:"Donatori",ADMIN_Menu_Item_Organizations:"Organiza\u021bii",ADMIN_Menu_Item_Gifts:"Dona\u021bii",ADMIN_Centers_Title:"Centre de transfuzie",ADMIN_Centers_Center_Name:"Nume centru de transfuzie",ADMIN_Centers_Center_Actions:"Ac\u021biuni",ADMIN_Centers_Select_All:"Selecteaz\u0103 toate centrele",ADMIN_Centers_Reset_Password_Dialog_Title:"Reseta\u021bi parola centrului?",ADMIN_Centers_Reset_Password_Email_Sent:"Email-ul de resetare parol\u0103 a fost trimis",ADMIN_Centers_Reset_Password_Request_Failed:"A avut loc o eroare la trimiterea email-ului de resetare parol\u0103. Te rug\u0103m s\u0103 \xeencerci din nou.",ADMIN_Donor_Name_Search:"Caut\u0103 donatorul dup\u0103 nume",ADMIN_Donor_Email_Search:"Caut\u0103 donatorul dup\u0103 email",ADMIN_Donor_Search_Button:"Caut\u0103",ADMIN_LastDonations_Profile_Transfusion_Center:"Centrul de transfuzie sanguin\u0103",ADMIN_LastDonations_Profile_AccountCreationDate:"Data cre\u0103rii",ADMIN_LastDonations_Profile_LastLoginDate:"Ultima logare",ADMIN_LastDonations_Profile_LastAccessDate:"Ultima accesare",ADMIN_Last_Five_Donations:"Ultimele 5 don\u0103ri",ADMIN_Donation_Date:"Data don\u0103rii",ADMIN_Donation_Title:"Tipul don\u0103rii",ADMIN_Donation_Points:"Puncte",ADMIN_Donation_Status:"Status",ADMIN_DonationStatus_Processing:"\xcen procesare",ADMIN_DonationStatus_Accepted:"Validat\u0103",ADMIN_DonationStatus_Rejected:"Nevalidat\u0103",ADMIN_DonationStatus_RejectWithRecall:"Nevalidat\u0103 cu rechemare",ADMIN_DonationStatus_DonorNotFound:"Nu a fost g\u0103sit \xeen baza de date",ADMIN_DonationStatus_ManualRegistration:"\xcenregistrat\u0103 manual",ADMIN_DonationStatus_Registered:"\xcenregistrat\u0103",ADMIN_DonationType_Label:"Tipul don\u0103rii",ADMIN_DonationType_Blood:"S\xe2nge",ADMIN_DonationType_ApheresisPlatelets:"Aferez\u0103 (Trombocite)",ADMIN_Organization_Form_Back:"\xcenapoi",ADMIN_Organization_Form_New_Organization:"Creeaz\u0103 o organiza\u021bie nou\u0103",ADMIN_Organization_Form_New_Name:"Nume",ADMIN_Organization_Form_Country:"\u021aar\u0103",ADMIN_Organization_Form_Can_Run_Raffles:"Poate rula tombole",ADMIN_Organization_Form_Can_Run_Campaigns:"Poate rula campanii",ADMIN_Organization_Form_Can_Run_Campaigns_With_Appointments:"Poate rula campanii cu programare",ADMIN_Organization_Form_Can_Add_Sub_Organization:"Poate ad\u0103uga suborganiza\u021bii",ADMIN_Organization_Form_Save_Organization:"Salveaz\u0103 organiza\u021bia",ADMIN_Organization_Form_Invalid_Form:"Formular invalid!",ADMIN_Organization_Form_Saved:"Organiza\u021bie salvat\u0103",ADMIN_Organization_Form_Something_Went_Wrong:"A avut loc o eroare, te rug\u0103m s\u0103 ne contactezi \xeen cazul \xeen care aceast\u0103 eroare persist\u0103.",ADMIN_Organization_Form_Confirm_Dialog_Title:"Salva\u021bi organiza\u021bia?",ADMIN_Organization_Profile_Modification_Saved:"Modific\u0103rile au fost salvate",ADMIN_Organization_Profile_Something_Went_Wrong:"A avut loc o eroare, te rug\u0103m s\u0103 ne contactezi \xeen cazul \xeen care aceast\u0103 eroare persist\u0103.",ADMIN_Organization_Profile_Confirm_Member_Delete_Dialog_Title:"\u0218terge\u021bi membrul?",ADMIN_Organization_Profile_Member_Exists:"Membrul este deja ad\u0103ugat",ADMIN_Organization_Profile_Member_Invalid_Email:"Introduce\u021bi o adres\u0103 de email valid\u0103",ADMIN_Organization_Profile_Confirm_Center_Link_Delete_Dialog_Title:"\u0218terge\u021bi centrul?",ADMIN_Organization_Profile_Edit_Organization:"Edita\u021bi organiza\u021bia?",ADMIN_Organization_Search:"Caut\u0103",ADMIN_Organization_Search_Button:"Caut\u0103",ADMIN_Organization_Name:"Nume",ADMIN_Organization_Actions:"Ac\u021biuni",ADMIN_Organization_Created_At:"Data",ADMIN_Organization_Profile_Name:"Organiza\u021bia",ADMIN_Organization_Profile_Edit:"Edita\u021bi organiza\u021bia",ADMIN_Organization_Profile_Email:"Email",ADMIN_Organization_Profile_Admin:"Admin",ADMIN_Organization_Profile_Members:"Membrii",ADMIN_Organization_Profile_Member_Name:"Nume",ADMIN_Organization_Profile_Member_Email:"Email",ADMIN_Organization_Profile_Member_Admin:"Admin",ADMIN_Organization_Profile_Member_Add_New:"Adaug\u0103 membru",ADMIN_Partners_Search:"Caut\u0103",ADMIN_Partners_Name:"Nume",ADMIN_Partners_Warning:"Avertiz\u0103ri",ADMIN_Partners_Actions:"Ac\u021biuni",ADMIN_Partners_LastOfferExpiresIn:"Expir\u0103 \xeen",ADMIN_Partners_NoOfActiveOffers:"Oferte active",ADMIN_Gift_Title:"Formulare ANAF",ADMIN_Gift_No_Gifts_Found:"Nu a fost g\u0103sit\u0103 nici o \xeenregistrare",ADMIN_Gift_Name:"Nume",ADMIN_Gift_CreatedAt:"\xcenc\u0103rcat la",ADMIN_Gift_Url:"Document",ADMIN_Gift_TransfusionCenterName:"Centru",ADMIN_Gift_Status:"Status",ADMIN_Gift_Status_Pending:"\xcen procesare",ADMIN_Gift_Status_Valid:"Valid",ADMIN_Gift_Status_Invalid:"Invalid",ADMIN_Gift_Confirm_Dialog_Title:"Sunte\u021bi sigur c\u0103 dori\u021bi s\u0103 schimba\u021bi statusul?",ADMIN_Gift_Confirm_Dialog_Accept:"Da",ADMIN_Gift_Confirm_Dialog_Decline:"Nu",Firstname:"Nume",Lastname:"Prenume",Email:"Email",ADMIN_Something_Went_Wrong:"A avut loc o eroare.",ADMIN_Feedback_Info:"Informa\u021bii feedback",Confirm_Dialog_Accept:"Da",Confirm_Dialog_Decline:"Nu",CTS_Stats_Users:"Num\u0103r de utilizatori",CTS_Stats_Donations:"Num\u0103r de don\u0103ri",CTS_Stats_Blood_Donations:"Donare de s\xe2nge",CTS_Stats_Blood_Donations_Apheresis:"Donare de s\xe2nge prin aferez\u0103",CTS_Stats_Blood_Donations_StemRegistry:"\xcenregistrare RNDVCSH",CTS_Stats_Donations_Processing:"Don\u0103ri \xeen procesare",CTS_Stats_Donations_Validated:"Don\u0103ri validate",CTS_Stats_Donations_UnValidated:"Don\u0103ri nevalidate",CTS_Stats_Donations_UnValidated_WithRecall:"Don\u0103ri nevalidate cu rechemare",CTS_Stats_Filter_Date:"Filtrare grafic",CTS_Stats_Total_Users_Chart:"Graficul num\u0103rului de utilizatori",CTS_Stats_Total_Donations_Chart:"Graficul num\u0103rului de don\u0103ri",CTS_Donation_Validation_Status_Accepted:"Validat\u0103",CTS_Donation_Validation_Status_Rejected:"Nevalidat\u0103",CTS_Donation_Validation_Status_RejectWithRecall:"Nevalidat\u0103 cu rechemare",CTS_Donation_Validation_Status_DonorNotFound:"Nu a fost g\u0103sit \xeen baza de date",CTS_DonationValidation_Status:"Status donare",CTS_Messages_Page_Title:"Mesaje c\u0103tre donatori",CTS_Messages_Page_Description:"Din aceast\u0103 pagin\u0103 se pot trimite mesaje c\u0103tre un num\u0103r mai restr\xe2ns de donatori, \u0219i care \xeendeplinesc anumite condi\u021bii, folosind filtrele de mai jos.",CTS_Messages_Configurator_Title:"Configureaz\u0103 mesajul",CTS_Messages_Configurator_Description:"Filtreaz\u0103 utilizatorii c\u0103tre care dore\u0219ti s\u0103 trimi\u021bi mesajul \xeen func\u021bie de perioada \xeen care ei au donat sau urmeaza s\u0103 doneze",CTS_Messages_Recipient:"Destinatari mesaj",CTS_Messages_Recipient_Donor:"Donatori (Persoanele care au donat s\xe2nge)",CTS_Messages_Recipient_Scheduled:"Programati (Persoanele care urmeaz\u0103 s\u0103 doneze s\xe2nge)",CTS_Messages_Recipient_Required:"Cine este destinatarul acestui mesaj?",CTS_Messages_Starting_With:"\xcencep\xe2nd cu",CTS_Messages_Starting_With_Required:"De la ce dat\u0103 dore\u0219ti s\u0103 filtrezi donatorii?",CTS_Messages_Until:"P\xe2n\u0103 la",CTS_Messages_Until_Required:"P\xe2n\u0103 la ce dat\u0103 dore\u0219ti s\u0103 filtrezi donatorii?",CTS_Messages_Scheduele_Info:"Seteaz\u0103 intervalul de mai sus pentru a \u0219tii c\u0103tre c\xe2\u021bi \u0219i c\u0103tre care donatori se va trimite mesajul t\u0103u!",CTS_Messages_Body:"Continut mesaj",CTS_Messages_Body_Required:"Este nevoie de continutul mesajului",CTS_Messages_Body_Limit:"Lungimea maxim\u0103 a mesajului este de 178 de caractere",CTS_Messages_Send_Messages:"Trimite mesajul",CTS_Messages_List_Info:"Mai jos ai lista cu toate mesajele trimise c\u0103tre donatorii cuprin\u0219i \xeen perioada afi\u0219at\u0103 (De la -> Pan\u0103 la)",CTS_Messages_List_SentAt:"Trimis la",CTS_Messages_List_StartDate:"De la",CTS_Messages_List_EndDate:"P\xe2na la",CTS_Messages_List_Title:"Titlu mesaj",CTS_Messages_List_Body:"Con\u021binut mesaj",CTS_Messages_List_Recipients:"Destinatari",CTS_Messages_List_Recipients_Donors:"Donatori",CTS_Messages_List_Recipienst_Schedueled:"Programa\u021bi",CTS_Messages_List_NoOfDonors:"Num\u0103r donatori",CTS_Settings_Donation_Status_Messages:"Textul dona\u021biei \xeen func\u021bie de Status",CTS_Settings_Center_Messages:"Mesaje pentru donatori",CTS_Settings_Donation_Validated:"Donare validat\u0103",CTS_Settings_Donation_UnValidated:"Donare nevalidat\u0103",CTS_Settings_Donation_UnValidated_WithRecall:"Donare nevalidat\u0103 cu rechemare",CTS_Settings_Transfusion_Center_Message:"Mesaj de la centru",CTS_Settings_Active_Donation_Message:"Mesaj programare activ\u0103",CTS_Settings_Romanian:"Rom\xe2n\u0103",CTS_Settings_Hungarian:"Magyar",CTS_Profile:"Profil",CTS_Profile_My_Profile:"Profilul meu",CTS_Profile_My_Profile_Text:"\xcen cur\xe2nd",CTS_Profile_My_Profile_Organizations:"Organiza\u021bii",CTS_Profile_Transfusion_Center_Field:"Nume centru de transfuzie *",CTS_Profile_Contact_Email:"Email de contact",CTS_Profile_Center_Address:"Adres\u0103 centru *",CTS_Profile_Facebook_Page:"Pagin\u0103 facebook",CTS_Profile_Site_Url:"Site URL",CTS_Profile_Open_Hours:"Program *",CTS_Profile_Female_Donor_Minimum_Kg:"Greutate minim\u0103 donator femeie *",CTS_Profile_Male_Donor_Minimum_Kg:"Greutate minim\u0103 donator b\u0103rbat *",CTS_Profile_Toggle_Appointment_Slot_Algorithm:"Afi\u0219eaz\u0103 sloturile la program\u0103ri \xeen func\u021bie de stocul de s\xe2nge",CTS_Profile_Toggle_Appointment_Slot_Algorithm_Critical:"Critic -> +80%",CTS_Profile_Toggle_Appointment_Slot_Algorithm_Minimal:"Minim -> +40%",CTS_Profile_Toggle_Appointment_Slot_Algorithm_Optimal:"Optim -> +20%",CTS_Profile_Toggle_Appointment_Slot_Algorithm_Excessive:"Excedentar -> +0%",CTS_Profile_Toggle_Appointment_Slot_Algorithm_Base:"Sloturi disponibile tot timpul -> 20%",CTS_Profile_Toggle_Appointment_Slot_Algorithm_Warning:"* \xcen cazul \xeen care nu se atinge 100% din sloturi pe nici o grup\u0103 de s\xe2nge, \xeen func\u021bie de stoc, programul va propor\u021biona sloturile astfel \xeenc\xe2t s\u0103 se ajung\u0103 la un procent de 100% la cel pu\u021bin o grup\u0103 de s\xe2nge. Ex: toate grupele au fost marcate ca Optim, programul va afi\u0219a 100% din sloturi deoarece nu exist\u0103 nici o alt\u0103 grup\u0103 mai urgent\u0103",CTS_Profile_Toggle_BloodTypeConfirmation:"Afi\u0219eaz\u0103 op\u021biunile de confirmare a grupei de s\xe2nge",CTS_Profile_Save_Changes:"Salveaz\u0103 modific\u0103rile",CTS_Profile_Changes_Saved:"Modificarile au fost salvate",CTS_Profile_Email_Invalid:"Adresa de email nu este valid\u0103!",CTS_Profile_Site_Url_Invalid:"Site-ul url nu este valid!",CTS_Profile_Confirm_Dialog_Title:"Salva\u021bi modific\u0103rile?",CTS_Campaigns_Confirm_Dialog_Title:"Sunte\u021bi sigur c\u0103 dori\u021bi s\u0103 face\u021bi aceast\u0103 ac\u021biune?",CTS_Campaigns_Campaign_From_Supporters:"Campanii de la sus\u021bin\u0103tori",CTS_Campaigns_Campaigns_From_Supporters_Must_Be_Approved:"Campaniile de la sus\u021bin\u0103tori trebuie aprobate de c\u0103tre centrul de transfuzie (\xeen cur\xe2nd)",CTS_Campaigns_My_Campaigns:"Campaniile mele",CTS_Campaigns_Active:"Active",CTS_Campaigns_Inactive:"Inactive",CTS_Campaigns_Patient_Hospitalized_At:"Pacient internat la",CTS_Campaigns_Can_Donate_At:" Se poate dona la",CTS_Campaigns_Address:"Adres\u0103",CTS_Campaigns_Blood_Types:"Grupe sanguine",CTS_Campaigns_Urgent:"URGENT",CTS_Campaigns_Normal:"NORMAL",CTS_Campaigns_Published:"PUBLICAT\u0102",CTS_Campaigns_Unpublished:"NEPUBLICAT\u0102",CTS_Campaigns_Today:"Azi",CTS_Campaigns_Finished:"S-a \xeencheiat",CTS_Campaigns_Soon:"\xcen cur\xe2nd",CTS_Campaigns_Choose_Urgency_Type:"Alege\u021bi tipul de urgen\u021b\u0103",CTS_Campaigns_Title:"Titlu",CTS_Campaigns_Starting_With:"\xcencep\xe2nd cu",CTS_Campaigns_Until:"P\xe2n\u0103 la",CTS_Campaigns_Headquarter:"Sediu",CTS_Campaigns_Description:"Descriere",CTS_Campaigns_Image_Url:"URL-ul imaginii",CTS_Campaigns_Start_Hour:"Or\u0103 incepere",CTS_Campaigns_End_Hour:"Or\u0103 sf\xe2r\u0219it",CTS_Campaigns_Slot_Interval:"Interval \xeentre sloturi",CTS_Campaigns_Donation_Scheduling:"Programare la donare",CTS_Campaigns_Number_Of_Seats_Per_Slot:"Num\u0103r de locuri disponibile per slot",CTS_Campaigns_Title_Required:"Introdu un titlu pentru campanie!",CTS_Campaigns_Headquarters_Required:"Introdu un sediu pentru campanie!",CTS_Campaigns_Address_Required:"Introdu o adres\u0103 pentru campanie!",CTS_Campaigns_Description_Required:"Introdu o descriere pentru campanie!",CTS_Campaigns_Start_Hour_Required:"Introdu o or\u0103 de \xeenceput pentru program\u0103ri!",CTS_Campaigns_End_Hour_Required:"Introdu o or\u0103 de sf\xe2r\u0219it pentru program\u0103ri!",CTS_Campaigns_Start_Hour_Wrong_Format:"Ora de \xeenceput este \xeentr-un format gre\u0219it!",CTS_Campaigns_End_Hour_Wrong_Format:"Ora de sf\xe2r\u0219it este \xeentr-un format gre\u0219it!",CTS_Campaigns_Slot_Interval_Required:"Introdu un interval \xeentre sloturi pentru program\u0103ri!",CTS_Campaigns_Number_Of_Seats_Per_Slot_Required:"Introdu un numar de locuri per slot pentru program\u0103ri!",CTS_Campaigns_Eliminate_Interval_Edit_Info:"Po\u021bi elimina anumite intervale de timp d\xe2nd click pe orele nedorite.",CTS_Campaigns_Number_Of_Seats_Edit_Info:"Po\u021bi schimba num\u0103rul de locuri pentru un anumit slot schimb\xe2nd num\u0103rul de sub or\u0103.",CTS_Campaigns_Total_Slots:"Total sloturi:",CTS_Campaigns_Total_Seats:"Total locuri:",CTS_Campaigns_Schedule_Configuration:"Configurarea program\u0103rii",CTS_Campaigns_Generate_Schedule:"Genereaz\u0103 orarul",CTS_Campaigns_Genereate_Schedule_Again:"Genereaz\u0103 orarul din nou",CTS_Campaigns_Save_Changes:"Salveaz\u0103 modific\u0103rile",CTS_Campaigns_Create_Campaign:"Crea\u021bi o campanie",CTS_Campaigns_Campaign_Created:"Campania a fost creat\u0103!",CTS_Campaigns_Campaign_Edited:"Campania a fost modificat\u0103!",CTS_Campaigns_Edit_Campaign:"Editeaz\u0103 campania",CTS_Campaigns_No_Active_Campaign:"Nicio campanie activ\u0103",CTS_Campaigns_No_Inactive_Campaign:"Nicio campanie inactiv\u0103",CTS_Campaigns_Add_First:"Adaug-o pe prima! To\u021bi donatorii o vor vedea c\xe2nd intr\u0103 \xeen aplica\u021bie!",CTS_Campaigns_Cancel:"Anula\u021bi",CTS_Campaigns_Ok:"Ok",CTS_Campaigns_Back:"\xcenapoi",CTS_Campaigns_Notify:"Notific\u0103",CTS_Campaigns_Edit:"Editeaz\u0103",CTS_Campaigns_Delete:"\u0218terge",CTS_Campaigns_Unpublish:"\u0218terge publicarea",CTS_Campaigns_Publish:"Public\u0103",CTS_Campaigns_Duplicate:"Duplic\u0103",CTS_Campaigns_Approved:"Aprobat",CTS_Campaigns_Unapproved:"Neaprobat",CTS_Campaigns_Approve:"Aprob\u0103",CTS_Campaigns_Unapprove:"Dezaprob\u0103",CTS_Campaigns_Campaign_Author:"Autor: ",CTS_Campaigns_Ongoing:"Campanie derulat\u0103 de: ",CTS_Messages_Message_Sent:"Mesajul a fost trimis!",CTS_BloodStockLevels_Current_Table_Name:"Stoc de s\xe2nge prezent",CTS_BloodStockLevels_Previous_Table_Name:"Istoric stocuri",CTS_BloodStockLevels_No_Stocks_Title:"Nu exist\u0103 stocuri de s\xe2nge \xeenregistrate",CTS_BloodStockLevels_No_Present_Stocks_Title:"Nu exist\u0103 stoc de s\xe2nge prezent!",CTS_BloodStockLevels_No_Stocks_Action:"Adaug\u0103 un stoc de s\xe2nge - clic aici!",CTS_BloodStockLevels_Table_Date_Header:"Creat la data",CTS_BloodStockLevels_Table_Time_Interval_Header:"Interval de timp",CTS_BloodStockLevels_Critical:"Critic",CTS_BloodStockLevels_Minimum:"Minim",CTS_BloodStockLevels_Optimum:"Optim",CTS_BloodStockLevels_Excessive:"Excedentar",CTS_BloodStockLevels_Form_Create_Stock:"Creeaz\u0103 stoc de s\xe2nge",CTS_BloodStockLevels_Form_Edit_Stock:"Editeaz\u0103 stocul de s\xe2nge",CTS_BloodStockLevels_Form_Create_Stock_Button:"Creeaz\u0103 stoc de s\xe2nge",CTS_BloodStockLevels_Form_Edit_Stock_Button:"Editeaz\u0103 stocul de s\xe2nge",CTS_BloodStockLevels_Form_Error:"Stocul trebuie completat pentru toate grupele de s\xe2nge!",CTS_BloodStockLevels_Form_Invalid:"E nevoie s\u0103 adaugi nivelul de s\xe2nge pentru toate grupele!",CTS_BloodStockLevels_Form_Notification_WarningMessage:"Stocul de s\xe2nge introdus este valabil 14 zile. Pentru a te putea notifica \xeencep\xe2nd cu 7 zile \xeenainte de expirare las\u0103-ne mai adresa ta de email.",CTS_BloodStockLevels_Form_Notification_NotificationMessage:"Stocul de s\xe2nge introdus este valabil 14 zile. Cu 7 zile \xeenainte de expirare \xeencepem s\u0103 te notific\u0103m prin email la adresa ",CTS_BloodStockLevels_Info_Title_Mobile:"Legend\u0103 stoc s\xe2nge (click aici)",CTS_BloodStockLevels_Info_Title_Desktop:"Legend\u0103 stoc s\xe2nge",CTS_BloodStockLevels_Image_Download_Title:"Situa\u021bie Stoc s\xe2nge",CTS_BloodStockLevels_Info_Critical_Title:"Stoc insuficient de s\xe2nge",CTS_BloodStockLevels_Short_Info_Critical_Title:"Stoc insuficient",CTS_BloodStockLevels_Info_Critical_Description:"Donatorii sunt ruga\u021bi s\u0103 se prezinte la donare",CTS_BloodStockLevels_Short_Info_Critical_Description:"E\u0219ti invitat la donare",CTS_BloodStockLevels_Info_Minimum_Title:"Stoc minim de s\xe2nge",CTS_BloodStockLevels_Short_Info_Minimum_Title:"Stoc minim",CTS_BloodStockLevels_Info_Minimum_Description:"Donatorii sunt ruga\u021bi s\u0103 se prezinte la donare",CTS_BloodStockLevels_Short_Info_Minimum_Description:"E\u0219ti invitat la donare",CTS_BloodStockLevels_Info_Optimum_Title:"Stoc optim de s\xe2nge",CTS_BloodStockLevels_Short_Info_Optimum_Title:"Stoc optim",CTS_BloodStockLevels_Info_Optimum_Description:"Donatorii sunt ruga\u021bi s\u0103 se prezinte la donare",CTS_BloodStockLevels_Short_Info_Optimum_Description:"E\u0219ti invitat la donare",CTS_BloodStockLevels_Info_Excesseive_Title:"Stoc suficient de s\xe2nge",CTS_BloodStockLevels_Short_Info_Excesseive_Title:"Stoc suficient",CTS_BloodStockLevels_Info_Excesseive_Description:"Donatorilor le este recomandat s\u0103 temporizeze donarea",CTS_BloodStockLevels_Short_Info_Excesseive_Description:"Temporizare donare",CTS_BloodStockLevels_Image_Generation_Error:"Generarea unei imagini pentru stocul de s\xe2nge a e\u0219uat",CTS_BloodStockLevels_Image_Generation_Success:"Imagine generat\u0103 cu success",CTS_BloodStockLevels_Created:"Stocul de s\xe2nge a fost creat!",CTS_BloodStockLevels_Edited:"Stocul de s\xe2nge a fost editat!",CTS_Blood_Type_Confirmation_Last_Name_Search:"Caut\u0103 donatorul dup\u0103 nume",CTS_Blood_Type_Confirmation_First_Name_Search:"Caut\u0103 donatorul dup\u0103 prenume",CTS_Blood_Type_Confirmation_Date_Of_Birth_Search:"Caut\u0103 donatorul dup\u0103 ziua de na\u0219tere",CTS_Blood_Type_Confirmation_List_Filter_Option_All:"To\u021bi donatorii",CTS_Blood_Type_Confirmation_List_Filter_Option_RequireConfirmation:"Neconfirma\u021bi",CTS_Blood_Type_Confirmation_List_Filter_Option_HaveRequestForChange:"Solicit\u0103ri",CTS_Blood_Type_Confirmation_List_Filter_Option_Are_Confirmed:"Confirma\u021bi",CTS_Blood_Type_Confirmation_Table_Search_Button:"Caut\u0103",CTS_Blood_Type_Confirmation_Table_Last_Name:"Nume",CTS_Blood_Type_Confirmation_Table_First_Name:"Prenume",CTS_Blood_Type_Confirmation_Table_Date_Of_Birth:"Data na\u0219terii",CTS_Blood_Type_Confirmation_Table_Blood_Group:"Grupa de s\xe2nge",CTS_Blood_Type_Confirmation_Table_Current_Blood_Type:"Grupa de s\xe2nge actual\u0103",CTS_Blood_Type_Confirmation_Table_Requested_Blood_Type:"Grupa de s\xe2nge solicitat\u0103",CTS_Blood_Type_Confirmation_Table_Actions:"Ac\u021biuni",CTS_Blood_Type_Confirmation_Table_Confirmed_Label:"Modific\u0103",CTS_Blood_Type_Confirmation_Table_Popup_Title:"Alege alt\u0103 grup\u0103 de s\xe2nge",CTS_Blood_Type_Confirmation_Table_Action_Lable:"Alege o op\u021biune",CTS_Blood_Type_Confirmation_Table_Action_Confirm_Current:"Confirm\u0103 grupa actual\u0103",CTS_Blood_Type_Confirmation_Table_Action_Confirm_Requested:"Confirm\u0103 grupa solicitat\u0103",CTS_Blood_Type_Confirmation_Table_Action_Confirm_Choose:"Alege alt\u0103 grup\u0103 de s\xe2nge",CTS_Blood_Type_Confirmation_Table_Action_Dialog_Confirm_Current:"E\u0219ti sigur c\u0103 dore\u0219ti s\u0103 confirmi grupa de s\xe2nge actual\u0103?",CTS_Blood_Type_Confirmation_Table_Action_Dialog_Confirm_Requested:"E\u0219ti sigur c\u0103 dore\u0219ti s\u0103 confirmi grupa de s\xe2nge solicitat\u0103?",CTS_Blood_Type_Confirmation_Change_Saved_Succesfully:"Grupa de s\xe2nge a fost confirmat\u0103",CTS_Blood_Type_Change_Saved_Succesfully:"Grupa de s\xe2nge a fost modificat\u0103",CTS_Blood_Type_Confirmation_Select_Blood_Type:"Nu se poate confirma grupa de s\xe2nge, selecteaz\u0103 o valoare \xeenainte de confirmare",CTS_Blood_Type_Confirmation_Change_Saved_Error:"Grupa de s\xe2nge selectat\u0103 nu este valid\u0103 pentru donator ce are grupa de s\xe2nge confirmat\u0103.",CTS_Appointment_Blood_Type_Confirmation_Popup_Title:"Alege alt\u0103 grup\u0103 de s\xe2nge",CTS_Appointment_Blood_Type_Confirmation_Donor_Name_label:"Donator",CTS_Appointment_Blood_Type_Confirmation_Donor_Blood_Type_field_label:"Selecteaz\u0103 grupa de s\xe2nge",CTS_Appointment_Blood_Type_Confirmation_Donor_Submit_Button_Label:"Confirm\u0103 grupa de s\xe2nge",CTS_Appointment_Blood_Type_Confirmation_Error_Msg_Invalid_Blood_Type_Selected:"E nevoie sa selectezi una din grupele de s\xe2nge disponibile",CTS_Something_Went_Wrong:"A avut loc o eroare, te rog s\u0103 ne contactezi \xeen cazul \xeen care aceast\u0103 eroare persist\u0103.",Field_Required:"C\xe2mp obligatoriu",CTS_Form_Invalid:"Formular invalid!",Change_Password:"Schimb\u0103 parola",Change_Password_Current_Password:"Parol\u0103 curent\u0103",Change_Password_Account_New_Password:"Parol\u0103 nou\u0103",Change_Password_Confirm_Password:"Confirmare parol\u0103 nou\u0103",Change_Password_Min_Len:"Parola trebuie s\u0103 con\u021bin\u0103 cel putin 8 caractere!",Change_Password_Mismatch:"Confirmarea parolei nu e identic\u0103 cu parola!",Change_Password_Incorrect:"Parola curent\u0103 este incorect\u0103.",Change_Password_Success:"Schimbarea parolei s-a efectuat cu succes!",CTS_Change_Email_Request_New_Email:"Solicit\u0103 schimbarea email-ului",CTS_Change_Email_Field:"Email",CTS_Change_Email_Invalid:"Adresa de email nu este valid\u0103!",CTS_Change_Email_Success:"Informa\u021biile pentru schimbarea email-ului au fost trimise pe email!",Change_Email:"Schimb\u0103 adresa de email",Change_Email_Title:"Schimbare email",Change_Email_New_Email_Label:"Email nou",Change_Email_Old_Email_Label:"Email vechi",Change_Email_Button_Change_Email:"Schimb\u0103 email",Change_Email_Email_Invalid:"Adresa de email nu este valid\u0103!",Change_Email_Success:"Email actualizat cu succes!",Change_Email_Error:"A avut loc o eroare la actualizarea email-ului. Te rug\u0103m s\u0103 \xeencerci din nou.",App_Not_Installed:"Aplica\u021bia BlooDoChallenge nu este instalat\u0103 pe acest dispozitiv!",Download_App_Now:"Descarc\u0103 acum aplica\u021bia \u0219i al\u0103tur\u0103-te clubului donatorilor de s\xe2nge!",Donor_Nav_Menu_Profile:"Profil",Reset_Password:"Reseteaz\u0103 parola",Reset_Password_Email:"Email",Reset_Password_Email_Invalid:"Emailul introdus este invalid. Te rog \xeencearc\u0103 din nou.",Reset_Password_New_Password:"Parol\u0103 nou\u0103",Reset_Password_New_Password_Required:"Te rog s\u0103 adaugi noua parol\u0103.",Reset_Password_Confirm_Password:"Confirmare parol\u0103 nou\u0103",Reset_Password_Min_Len:"Parola este prea scurt\u0103. Aceasta trebuie s\u0103 con\u021bin\u0103 minim 8 caractere. Te rog \xeencearc\u0103 din nou.",Reset_Password_Mismatch:"Parolele nu se potrivesc. Te rog \xeencearc\u0103 din nou.",Reset_Password_No_Such_Email:"Adres\u0103 de email inexistent\u0103!",Reset_Password_Generic_Error:"A avut loc o eroare la resetarea parolei, te rug\u0103m s\u0103 ne contactezi \xeen cazul \xeen care aceast\u0103 eroare persist\u0103.",Reset_Password_Success:"Parola a fost resetat\u0103 cu succes.",Reset_Password_Log_In:"Te rug\u0103m s\u0103 revii \xeen aplica\u021bie \u0219i s\u0103 te loghezi cu noua parol\u0103.",Recover_Password:"Recupereaz\u0103 parola",Recover_Password_Email:"Email",Recover_Password_Invalid:"Emailul introdus este invalid",Recover_Password_No_Such_Email:"Adres\u0103 de email inexistent\u0103!",Recover_Password_Generic_Error:"A avut loc o eroare la trimiterea email-ului de resetare a parolei, te rug\u0103m s\u0103 ne contactezi \xeen cazul \xeen care aceast\u0103 eroare persist\u0103.",Recover_Password_Submit:"Trimite cod",Recover_Password_Success:"Email-ul de resetare a parolei a fost trimis.",Recover_Password_Message:"Te rug\u0103m s\u0103 verifici adresa de email \u0219i s\u0103 revii dup\u0103 resetarea acesteia.",File_Upload_Generic_Error:"A avut loc o eroare la \xeenc\u0103rcarea fi\u0219ierului, te rug\u0103m s\u0103 \xeencerci din nou.",File_Upload_Not_Supported:"Acest tip de fi\u0219ier nu este suportat.",NGO_Profile:"Profil",NGO_Profile_My_Profile:"Profilul organiza\u021biei",NGO_Profile_Organization_Field:"Nume organiza\u021bie",NGO_Profile_Contact_Email:"Email de contact",NGO_Profile_Center_Address:"Adres\u0103 centru *",NGO_Profile_Facebook_Page:"Pagin\u0103 facebook",NGO_Profile_Instagram_Page:"Pagin\u0103 instagram",NGO_Profile_Site_Url:"Site URL",NGO_Profile_Save_Changes:"Salveaz\u0103 modific\u0103rile",NGO_Profile_Changes_Saved:"Modificarile au fost salvate",NGO_Profile_Email_Invalid:"Adresa de email nu este valid\u0103!",NGO_Profile_Site_Url_Invalid:"Site-ul url nu este valid!",NGO_Profile_Confirm_Dialog_Title:"Salva\u021bi modific\u0103rile?",NGO_Appointments_List:"List\u0103 Programa\u021bi",NGO_Appointments_Hour:"Ora",NGO_Appointments_Donor:"Donator",NGO_Appointments_AmbassadorCode:"Cod ambasador",NGO_Appointments_Appointment_At:"Programare la:",NGO_Appointments_No_Raffle_Active:"Nu este nicio campanie cu program\u0103ri activ\u0103",NGO_Appointment_Donor_Scheduled:"donator programat",NGO_Appointment_Donors_Scheduled:"donatori programa\u021bi",NGO_Something_Went_Wrong:"A avut loc o eroare, te rug\u0103m s\u0103 ne contactezi \xeen cazul \xeen care aceast\u0103 eroare persist\u0103.",NGO_Campaigns_Today:"Azi",NGO_Campaigns_Finished:"S-a \xeencheiat",NGO_Campaigns_Soon:"\xcen cur\xe2nd",NGO_Campaigns_Urgent:"URGENT",NGO_Campaigns_Normal:"NORMAL",NGO_Campaigns_Published:"PUBLICAT\u0102",NGO_Campaigns_Unpublished:"NEPUBLICAT\u0102",NGO_Campaigns_Confirm_Dialog_Title:"Sunte\u021bi sigur c\u0103 dori\u021bi s\u0103 face\u021bi aceast\u0103 ac\u021biune?",NGO_Campaigns_My_Campaigns:"Campaniile mele",NGO_Campaigns_Active:"Active",NGO_Campaigns_Inactive:"Inactive",NGO_Campaigns_Title:"Titlu",NGO_Campaigns_Title_Required:"Introdu un titlu pentru campanie!",NGO_Campaigns_Starting_With:"\xcencep\xe2nd cu",NGO_Campaigns_Until:"P\xe2n\u0103 la",NGO_Campaigns_Center:"Centrul de transfuzie sanguin\u0103",NGO_Campaigns_Center_Required:"Selecteaz\u0103 centrul de transfuzie sanguin\u0103 pe care dore\u0219ti s\u0103 pui campania.",NGO_Campaigns_Headquarter:"Sediu",NGO_Campaigns_Headquarters_Required:"Introdu un sediu pentru campanie!",NGO_Campaigns_Address:"Adres\u0103",NGO_Campaigns_Address_Required:"Introdu o adres\u0103 pentru campanie!",NGO_Campaigns_Blood_Types:"Grupe sanguine",NGO_Campaigns_Description:"Descriere",NGO_Campaigns_Description_Required:"Introdu o descriere pentru campanie!",NGO_Campaigns_Image_Url:"URL-ul imaginii",NGO_Campaigns_Ambassador_Code:"Cod de ambasador",NGO_Campaigns_Create_Campaign:"Crea\u021bi o campanie",NGO_Campaigns_Campaign_Created:"Campania a fost creat\u0103!",NGO_Campaigns_Campaign_Edited:"Campania a fost modificat\u0103!",NGO_Campaigns_Edit_Campaign:"Editeaz\u0103 campania",NGO_Campaigns_No_Active_Campaign:"Nicio campanie activ\u0103",NGO_Campaigns_No_Inactive_Campaign:"Nicio campanie inactiv\u0103",NGO_Campaigns_Add_First:"Adaug-o pe prima! To\u021bi donatorii o vor vedea c\xe2nd intr\u0103 \xeen aplica\u021bie!",NGO_Campaigns_Cancel:"Anula\u021bi",NGO_Campaigns_Ok:"Ok",NGO_Campaigns_Form_Invalid:"Formular invalid!",NGO_Campaigns_Save_Changes:"Salveaz\u0103 modific\u0103rile",NGO_Campaigns_Pick_Center:"Alege centrul",NGO_Campaigns_All:"Toate",NGO_Campaigns_Back:"\xcenapoi",NGO_Campaigns_Notify:"Notific\u0103",NGO_Campaigns_Edit:"Editeaz\u0103",NGO_Campaigns_Delete:"\u0218terge",NGO_Campaigns_Unpublish:"\u0218terge publicarea",NGO_Campaigns_Publish:"Public\u0103",NGO_Campaigns_Approved:"Aprobat",NGO_Campaigns_Unapproved:"Neaprobat",NGO_Campaigns_Approve:"Aprob\u0103",NGO_Campaigns_Unapprove:"Dezaprob\u0103",NGO_Campaigns_Raffle:"Tombol\u0103",NGO_Campaigns_Raffle_Uppercase:"TOMBOL\u0102",NGO_Campaigns_Private:"Privat\u0103",NGO_Campaigns_Active_Raffles:"Tombole active",NGO_Campaigns_In_Draw:"Tombole \xeen extragere",NGO_Campaigns_Time_Left_To_Draw_Info:"Pentru fiecare tombol\u0103 ai 2 s\u0103pt\u0103m\xe2ni de la expirarea campaniei s\u0103 faci extragerea, dup\u0103 aceea va expira complet",NGO_Campaigns_No_Raffle_Registrations:"Nu exist\u0103 nici o \xeenregistrare \xeen tombol\u0103",NGO_Campaigns_Search_Registrations_After_Invitation_Codes:"Caut\u0103 mai sus \xeenregistr\u0103ri dup\u0103 codurile de invita\u021bie",NGO_Campaigns_You_Have:"Mai ai",NGO_Campaigns_Day_Left_For_Draw:"zi pentru a face extragerea",NGO_Campaigns_Days_Left_For_Draw:"zile pentru a face extragerea",NGO_Campaigns_Registrations_Will_Disappear:"dup\u0103 aceea \xeenregistr\u0103rile vor disp\u0103rea",NGO_Campaigns_Expired_Raffles:"Tombole expirate",NGO_Campaigns_No_Active_Raffles:"Nicio tombola activ\u0103",NGO_Campaigns_No_Inactive_Raffles:"Nicio tombola expirat\u0103",NGO_Campaigns_First_Name:"Prenume",NGO_Campaigns_Last_Name:"Nume",NGO_Campaigns_Invitation_Code:"Cod de invita\u021bie",NGO_Campaigns_Email:"Email",NGO_Campaigns_Phone_Number:"Nr. de telefon",NGO_Campaigns_Search:"Caut\u0103",NGO_Campaigns_Search_Invitation_Codes:"Caut\u0103 dupa codurile de invita\u021bie",NGO_Campaigns_Search_Enter_Invitation_Codes:"Introdu unul sau mai multe coduri de invita\u021bie delimitate prin spa\u021biu",NGO_Campaigns_Invitation_Code_Short:"Cod invita\u021bie",NGO_Campaigns_Phone_Number_Short:"Telefon",NGO_Campaigns_Campaign_Page_Donations:"Don\u0103ri \xeenregistrate(include \u0219i cele \xeenregistrate manual):",NGO_Campaigns_Campaign_Page_Donations_QR:"Don\u0103ri \xeenregistrate(prin scanare QR):",NGO_Campaigns_Campaign_Page_Raffle_Registered_Donors:"Donatori ce s-au \xeenregistrat la tombol\u0103:",NGO_Campaigns_Campaign_Page_New_Users:"Utilizatori noi(include 7 zile \xeenainte de \xeenceperea campaniei):",NGO_Campaigns_Campaign_Page_New_Users_Donors:"Utilizatori noi care au \u0219i donat (include 7 zile \xeenainte de \xeenceperea campaniei):",NGO_Campaigns_Raffle_Organization_Email_Message:"Adresa de email a organiza\u021biei de pe care se vor trimite mail-urile",NGO_Campaigns_Raffle_Organization_Email_Setting_Message:"o po\u021bi schimba din Profil",NGO_Campaigns_Raffle_Recipient:"Destinatar",NGO_Campaigns_Raffle_Subject:"Subiect",NGO_Campaigns_Raffle_Send:"Trimite",NGO_Campaigns_Raffle_Preview:"Trimite-mi un test \xeenainte",NGO_Campaigns_Raffle_Recipient_Label:"C\u0103tre",NGO_Campaigns_Raffle_Subiect_Label:"Subiect",NGO_Campaigns_Raffle_Message_Label:"Mesaj",NGO_Campaigns_Raffle_Recipient_Required:"Avem nevoie de codul c\xe2\u0219tig\u0103torului tombolei c\u0103tre care dore\u0219ti s\u0103 trimitem mesajul. (adaug\u0103 doar unul!)",NGO_Campaigns_Raffle_Subject_Required:"Avem nevoie de subiectul emailului.",NGO_Campaigns_Raffle_Message_Required:"Avem nevoie de mesajul pe care dore\u0219ti s\u0103-l trimitem c\u0103tre c\xe2\u0219tig\u0103torii tombolei.",NGO_Campaigns_All_Invitation_Codes:"Toate codurile de invita\u021bie",NGO_Campaigns_Raffle_Codes_Copied:"Coduri copiate!",NGO_Campaigns_Raffle_Message_Sent_Success:"Mesaj trimis catre destinatari.",NGO_Campaigns_Raffle_Message_Preview_Success:"Mesaj trimis ca test.",NGO_Campaigns_Raffle_Message_Already_Sent:"Deja s-a mai trimis un mesaj c\u0103tre acest destinatar.",NGO_Campaigns_Raffle_Message_Info:"Completeaz\u0103 formularul de mai sus, iar noi vom trimite mesajul tuturor c\xe2\u0219tig\u0103torilor ale\u0219i de tine. (te rug\u0103m s\u0103 trimi\u021bi c\xe2te un email pentru fiecare c\xe2\u0219tig\u0103tor \xeen parte)",NGO_Campaigns_Raffle_Table_Info:"Mesajul trimis este marcat c\u0103 a fost v\u0103zut dac\u0103 donatorul c\xe2\u0219tig\u0103tor a accesat aplica\u021bia dup\u0103 trimiterea mesajului.",NGO_Raffle_Message_Logs_None:"\xcenc\u0103 nu ai trimis nici un mesaj c\u0103tre c\xe2\u0219tig\u0103tori",NGO_Raffle_Message_Logs_Table_Created_At:"Data",NGO_Raffle_Message_Logs_Table_Subject:"Subiect",NGO_Raffle_Message_Logs_Table_Message:"Mesaj",NGO_Raffle_Message_Logs_Table_Recipients:"Nume c\xe2\u0219tig\u0103tor",NGO_Raffle_Message_Logs_Table_Message_Viewed:"V\u0103zut",NGO_Raffle_Message_Log_Created_At:"Trimis la data de: ",NGO_Raffle_Message_Log_Subject:"Subiect: ",NGO_Raffle_Message_Log_Mesagge:"Mesaj: ",NGO_Raffle_Message_Log_Recipients:"Trimis catre: ",NGO_Raffle_Message_Logs_Viewed_Message_True:"Mesaj v\u0103zut",NGO_Raffle_Message_Logs_Viewed_Message_False:"Mesaj nev\u0103zut",NGO_Raffle_Message_Logs_Resend_Message:"Retrimitere mesaj",NGO_Articles_My_Articles:"Articole",NGO_Articles_No_Articles:"Nu sunt articole de afisat",NGO_Articles_Create_Article:"Crea\u021bi un articol",NGO_Articles_Edit_Article:"Editeaz\u0103 articolul",NGO_Articles_Back:"\xcenapoi",NGO_Articles_Title:"Titlu",NGO_Articles_Title_Required:"Introdu un titlu pentru articol!",NGO_Articles_Description:"Descriere",NGO_Articles_Description_Required:"Introdu o descriere pentru articol!",NGO_Articles_Save_Changes:"Salveaz\u0103 modific\u0103rile",NGO_Articles_Article_Created:"Articolul a fost creat!",NGO_Articles_Article_Edited:"Articolul a fost modificat!",NGO_Articles_Publish:"Public\u0103",NGO_Articles_Unpublish:"\u0218terge publicarea",NGO_Articles_Delete:"\u0218terge",NGO_Articles_Edit:"Editeaz\u0103",NGO_Articles_Confirm_Dialog_Title:"Sunte\u021bi sigur c\u0103 dori\u021bi s\u0103 face\u021bi aceast\u0103 ac\u021biune?",NGO_Articles_Published:"Publicat\u0103",NGO_Articles_Unpublished:"Nepublicat\u0103",NGO_Articles_Filter_All:"Toate",NGO_Articles_Filter_Published:"Publicate",NGO_Articles_Filter_Unpublished:"Nepublicate",Stem_Something_Went_Wrong:"A avut loc o eroare, te rug\u0103m s\u0103 ne contactezi \xeen cazul \xeen care aceast\u0103 eroare persist\u0103.",Stem_Register_Register_Stem:"\xcenregistrare stem",Stem_Register_Search:"Caut\u0103",Stem_Register_No_Registration_Found:"Nu a fost g\u0103sit\u0103 nici o \xeenregistrare",Stem_Register_Search_Registration:"Caut\u0103 o \xeenregistrare",Stem_Register_Last_Name:"Nume",Stem_Register_First_Name:"Prenume",Stem_Register_Email:"Email",Stem_Register_Date_Of_Birth:"Data na\u0219terii",Stem_Register_Phone_Number:"Telefon",Stem_Register_Status:"Status",Stem_Register_User_Registered:"Utilizatorul a fost \xeenregistrat!",Stem_Register_Status_Processing:"\xcen procesare",Stem_Register_Status_Registered:"\xcenregistrat",Stem_Register_Status_Unregistered:"Ne\xeenregistrat",Stem_Register_Creation_Date:"Data cre\u0103rii",Stem_Registry_Confirm_Dialog_Title:"Sunte\u021bi sigur c\u0103 dori\u021bi s\u0103 schimba\u021bi statusul?",Stem_Registry_Confirm_Dialog_Accept:"Da",Stem_Registry_Confirm_Dialog_Decline:"Nu",PARTNER_Menu_Item_Home:"Home",PARTNER_Menu_Item_Feedback:"Feedback",PARTNER_Menu_Profile_Button_Text:"PRTN",PARTNER_Profile_My_Profile:"Profilul meu",PARTNER_Profile_Partner_Name:"Nume Partener",PARTNER_Profile_Website:"Website",PARTNER_Profile_Save_Changes:"Salveaz\u0103 modific\u0103rile",PARTNER_Profile_Changes_Saved:"Modificarile au fost salvate",PARTNER_Profile_Website_Invalid:"Website-ul nu este valid!",PARTNER_Something_Went_Wrong:"A avut loc o eroare, te rug\u0103m s\u0103 ne contactezi \xeen cazul \xeen care aceast\u0103 eroare persist\u0103.",PARTNER_Form_Invalid:"Completeaz\u0103 toate c\xe2mpurile obligatorii \u0219i apoi \xeencearc\u0103 din nou.",Stem_Menu_Item_Feedback:"Feedback",Global_Gender_Option_Male:"Masculin",Global_Gender_Option_Female:"Feminin",Global_Gender_Label:"Gen"};var r=i("fXoL");let s=(()=>{class t{getText(t,e,i=!1){this.text||(this.text=n);let r=i?t:"key_"+t+"_missing";return this.text[t]&&(r=this.text[t]),e&&e.length>0&&e.forEach((t,e)=>{r=r.replace(`{${e}}`,t.toString())}),r}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})()},LRne:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("z+Ro"),r=i("yCtX"),s=i("jZKg");function a(...t){let e=t[t.length-1];return Object(n.a)(e)?(t.pop(),Object(s.a)(t,e)):Object(r.a)(t)}},Lhse:function(t,e,i){"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}i.d(e,"a",function(){return r});const r=n()},Lzq4:function(t,e,i){var n=i("u/Db"),r=i("e/Dd");function s(t){this.mode=n.KANJI,this.data=t}s.getBitsLength=function(t){return 13*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){var e;for(e=0;e<this.data.length;e++){var i=r.toSJIS(this.data[e]);if(i>=33088&&i<=40956)i-=33088;else{if(!(i>=57408&&i<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");i-=49472}t.put(i=192*(i>>>8&255)+(255&i),13)}},t.exports=s},M9IT:function(t,e,i){"use strict";i.d(e,"a",function(){return k}),i.d(e,"b",function(){return S});var n=i("ofXK"),r=i("fXoL"),s=i("FKr1"),a=i("bTqV"),o=i("d3UM"),l=i("Qu3c"),c=i("8LU1"),h=i("XNiG"),d=i("kmnG");function u(t,e){if(1&t&&(r.Ub(0,"mat-option",19),r.Ec(1),r.Tb()),2&t){const t=e.$implicit;r.lc("value",t),r.Cb(1),r.Gc(" ",t," ")}}function p(t,e){if(1&t){const t=r.Vb();r.Ub(0,"mat-form-field",16),r.Ub(1,"mat-select",17),r.bc("selectionChange",function(e){return r.wc(t),r.fc(2)._changePageSize(e.value)}),r.Dc(2,u,2,2,"mat-option",18),r.Tb(),r.Tb()}if(2&t){const t=r.fc(2);r.lc("appearance",t._formFieldAppearance)("color",t.color),r.Cb(1),r.lc("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),r.Cb(1),r.lc("ngForOf",t._displayedPageSizeOptions)}}function f(t,e){if(1&t&&(r.Ub(0,"div",20),r.Ec(1),r.Tb()),2&t){const t=r.fc(2);r.Cb(1),r.Fc(t.pageSize)}}function g(t,e){if(1&t&&(r.Ub(0,"div",12),r.Ub(1,"div",13),r.Ec(2),r.Tb(),r.Dc(3,p,3,6,"mat-form-field",14),r.Dc(4,f,2,1,"div",15),r.Tb()),2&t){const t=r.fc();r.Cb(2),r.Gc(" ",t._intl.itemsPerPageLabel," "),r.Cb(1),r.lc("ngIf",t._displayedPageSizeOptions.length>1),r.Cb(1),r.lc("ngIf",t._displayedPageSizeOptions.length<=1)}}function m(t,e){if(1&t){const t=r.Vb();r.Ub(0,"button",21),r.bc("click",function(){return r.wc(t),r.fc().firstPage()}),r.ec(),r.Ub(1,"svg",7),r.Pb(2,"path",22),r.Tb(),r.Tb()}if(2&t){const t=r.fc();r.lc("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),r.Db("aria-label",t._intl.firstPageLabel)}}function b(t,e){if(1&t){const t=r.Vb();r.ec(),r.dc(),r.Ub(0,"button",23),r.bc("click",function(){return r.wc(t),r.fc().lastPage()}),r.ec(),r.Ub(1,"svg",7),r.Pb(2,"path",24),r.Tb(),r.Tb()}if(2&t){const t=r.fc();r.lc("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),r.Db("aria-label",t._intl.lastPageLabel)}}let v=(()=>{class t{constructor(){this.changes=new h.a,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const y={provide:v,deps:[[new r.C,new r.L,v]],useFactory:function(t){return t||new v}},_=new r.s("MAT_PAGINATOR_DEFAULT_OPTIONS");class x{}const w=Object(s.A)(Object(s.C)(x));let C=(()=>{class t extends w{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new r.o,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:r}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=r&&(this._showFirstLastButtons=r)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(Object(c.f)(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=Object(c.f)(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(Object(c.f)(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>Object(c.f)(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=Object(c.c)(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=Object(c.c)(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndex<t&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(t){const e=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/t)||0,this.pageSize=t,this._emitPageEvent(e)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((t,e)=>t-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(v),r.Ob(r.h),r.Ob(void 0))},t.\u0275dir=r.Jb({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[r.zb]}),t})(),k=(()=>{class t extends C{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(v),r.Ob(r.h),r.Ob(_,8))},t.\u0275cmp=r.Ib({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[r.zb],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(r.Ub(0,"div",0),r.Ub(1,"div",1),r.Dc(2,g,5,3,"div",2),r.Ub(3,"div",3),r.Ub(4,"div",4),r.Ec(5),r.Tb(),r.Dc(6,m,3,5,"button",5),r.Ub(7,"button",6),r.bc("click",function(){return e.previousPage()}),r.ec(),r.Ub(8,"svg",7),r.Pb(9,"path",8),r.Tb(),r.Tb(),r.dc(),r.Ub(10,"button",9),r.bc("click",function(){return e.nextPage()}),r.ec(),r.Ub(11,"svg",7),r.Pb(12,"path",10),r.Tb(),r.Tb(),r.Dc(13,b,3,5,"button",11),r.Tb(),r.Tb(),r.Tb()),2&t&&(r.Cb(2),r.lc("ngIf",!e.hidePageSize),r.Cb(3),r.Gc(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),r.Cb(1),r.lc("ngIf",e.showFirstLastButtons),r.Cb(1),r.lc("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),r.Db("aria-label",e._intl.previousPageLabel),r.Cb(3),r.lc("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),r.Db("aria-label",e._intl.nextPageLabel),r.Cb(3),r.lc("ngIf",e.showFirstLastButtons))},directives:[n.l,a.b,l.a,d.c,o.a,n.k,s.n],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),S=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)},providers:[y],imports:[[n.c,a.c,o.b,l.b,s.j]]}),t})()},MfXU:function(t,e,i){"use strict";i.d(e,"a",function(){return n});let n=(()=>{class t{}return t.Donor="Donor",t.Partner="Partner",t.TransfusionCenter="TransfusionCenter",t.TransfusionCenterBranch="TransfusionCenterBranch",t.Admin="Admin",t.Ngo="Ngo",t.StemRegistry="StemRegistry",t.INHT="INHT",t})()},NFeN:function(t,e,i){"use strict";i.d(e,"a",function(){return M}),i.d(e,"b",function(){return R}),i.d(e,"c",function(){return k});var n=i("fXoL"),r=i("FKr1"),s=i("8LU1"),a=i("ofXK"),o=i("LRne"),l=i("z6cu"),c=i("cp0P"),h=i("quSY"),d=i("vkgz"),u=i("lJxs"),p=i("JIr8"),f=i("nYR2"),g=i("w1tV"),m=i("IzEk"),b=i("tk/3"),v=i("jhN1");const y=["*"];function _(t){return Error(`Unable to find icon with the name "${t}"`)}function x(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function w(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class C{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let k=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new C(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,r){const s=this._sanitizer.sanitize(n.K.HTML,i);if(!s)throw w(i);return this._addSvgIconConfig(t,e,new C("",s,r))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new C(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const r=this._sanitizer.sanitize(n.K.HTML,e);if(!r)throw w(e);return this._addSvgIconSetConfig(t,new C("",r,i))}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(n.K.RESOURCE_URL,t);if(!e)throw x(t);const i=this._cachedIconsByUrl.get(e);return i?Object(o.a)(S(i)):this._loadSvgIconFromConfig(new C(t,null)).pipe(Object(d.a)(t=>this._cachedIconsByUrl.set(e,t)),Object(u.a)(t=>S(t)))}getNamedSvgIcon(t,e=""){const i=T(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):Object(l.a)(_(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Object(o.a)(S(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Object(u.a)(t=>S(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);if(i)return Object(o.a)(i);const r=e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(Object(p.a)(e=>{const i=this._sanitizer.sanitize(n.K.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),Object(o.a)(null)})));return Object(c.a)(r).pipe(Object(u.a)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw _(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Object(d.a)(e=>t.svgText=e),Object(u.a)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Object(o.a)(null):this._fetchIcon(t).pipe(Object(d.a)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const r=n.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,i);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),i);const s=this._svgElementFromString("<svg></svg>");return s.appendChild(r),this._setSvgAttributes(s,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error("<svg> tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString("<svg></svg>"),i=t.attributes;for(let n=0;n<i.length;n++){const{name:t,value:r}=i[n];"id"!==t&&e.setAttribute(t,r)}for(let n=0;n<t.childNodes.length;n++)t.childNodes[n].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[n].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:i,options:r}=t,s=null!==(e=null==r?void 0:r.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==i)throw Error(`Cannot fetch icon from URL "${i}".`);const a=this._sanitizer.sanitize(n.K.RESOURCE_URL,i);if(!a)throw x(i);const o=this._inProgressUrlFetches.get(a);if(o)return o;const l=this._httpClient.get(a,{responseType:"text",withCredentials:s}).pipe(Object(f.a)(()=>this._inProgressUrlFetches.delete(a)),Object(g.a)());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(T(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.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}_getIconConfigFromResolvers(t,e){for(let n=0;n<this._resolvers.length;n++){const r=this._resolvers[n](e,t);if(r)return(i=r).url&&i.options?new C(r.url,null,r.options):new C(r,null)}var i}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(b.b,8),n.Yb(v.b),n.Yb(a.d,8),n.Yb(n.n))},t.\u0275prov=Object(n.Kb)({factory:function(){return new t(Object(n.Yb)(b.b,8),Object(n.Yb)(v.b),Object(n.Yb)(a.d,8),Object(n.Yb)(n.n))},token:t,providedIn:"root"}),t})();function S(t){return t.cloneNode(!0)}function T(t,e){return t+":"+e}class A{constructor(t){this._elementRef=t}}const O=Object(r.y)(A),E=new n.s("mat-icon-location",{providedIn:"root",factory:function(){const t=Object(n.W)(a.d),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),D=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],P=D.map(t=>`[${t}]`).join(", "),I=/^url\(['"]?#(.*?)['"]?\)$/;let M=(()=>{class t extends O{constructor(t,e,i,n,r){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=r,this._inline=!1,this._currentIconFetch=h.a.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Object(s.c)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_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}"`)}}ngOnInit(){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 n=0;n<e.length;n++)e[n].textContent+=" ";const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){const i=t.childNodes[e];1===i.nodeType&&"svg"!==i.nodeName.toLowerCase()||t.removeChild(i)}}_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,i)=>{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(P),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n<e.length;n++)D.forEach(t=>{const r=e[n],s=r.getAttribute(t),a=s?s.match(I):null;if(a){let e=i.get(r);e||(e=[],i.set(r,e)),e.push({name:t,value:a[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe(Object(m.a)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.l),n.Ob(k),n.Zb("aria-hidden"),n.Ob(E),n.Ob(n.n))},t.\u0275cmp=n.Ib({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(n.Db("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),n.Gb("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.zb],ngContentSelectors:y,decls:1,vars:0,template:function(t,e){1&t&&(n.kc(),n.jc(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})(),R=(()=>{class t{}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)},imports:[[r.j],r.j]}),t})()},NJ4a:function(t,e,i){"use strict";function n(t){setTimeout(()=>{throw t},0)}i.d(e,"a",function(){return n})},NPxG:function(t,e,i){var n=i("ekOh"),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case n.L:return r[4*(t-1)+0];case n.M:return r[4*(t-1)+1];case n.Q:return r[4*(t-1)+2];case n.H:return r[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case n.L:return s[4*(t-1)+0];case n.M:return s[4*(t-1)+1];case n.Q:return s[4*(t-1)+2];case n.H:return s[4*(t-1)+3];default:return}}},NXyV:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("HDdC"),r=i("Cfvw"),s=i("EY2u");function a(t){return new n.a(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?Object(r.a)(i):Object(s.b)()).subscribe(e)})}},PCNd:function(t,e,i){"use strict";i.d(e,"a",function(){return ot});var n=i("FKr1"),r=i("ofXK"),s=i("tyNb"),a=i("bTqV"),o=i("Wp6s"),l=i("bSwM"),c=i("iadO"),h=i("NFeN"),d=i("qFsG"),u=i("fXoL"),p=(i("8LU1"),i("XNiG")),f=(i("1G5W"),i("JX91"),i("u47x")),g=(i("0EQZ"),i("FtGj")),m=i("3Pt+"),b=i("f0Cb");let v=(()=>{class t{}return t.\u0275mod=u.Mb({type:t}),t.\u0275inj=u.Lb({factory:function(e){return new(e||t)},imports:[[n.l,n.t,n.j,n.r,r.c],n.l,n.j,n.r,b.b]}),t})();var y=i("STbY"),_=i("M9IT"),x=i("d3UM");i("VRyK"),i("R0Ic");let w=(()=>{class t{constructor(){this.changes=new p.a,this.sortButtonLabel=t=>`Change sorting for ${t}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(u.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const C={provide:w,deps:[[new u.C,new u.L,w]],useFactory:function(t){return t||new w}};let k=(()=>{class t{}return t.\u0275mod=u.Mb({type:t}),t.\u0275inj=u.Lb({factory:function(e){return new(e||t)},providers:[C],imports:[[r.c,n.j]]}),t})();var S=i("+0xr"),T=i("GU7r"),A=i("+rOU"),O=(i("R1ws"),i("quSY"),i("xgIS"),i("LRne"),i("PqYM"),i("/uUt"),i("nLfN"),i("cH1L")),E=i("vxfF");let D=(()=>{class t{}return t.\u0275mod=u.Mb({type:t}),t.\u0275inj=u.Lb({factory:function(e){return new(e||t)},imports:[[r.c,n.j,A.f,n.t,T.c,f.a],n.j]}),t})(),P=(()=>{class t{}return t.\u0275mod=u.Mb({type:t}),t.\u0275inj=u.Lb({factory:function(e){return new(e||t)},imports:[[n.j],n.j]}),t})();var I=i("0IaG"),M=(i("IzEk"),i("kmnG"));const R=new u.s("mat-chips-default-options"),L={separatorKeyCodes:[g.f]};let N=(()=>{class t{}return t.\u0275mod=u.Mb({type:t}),t.\u0275inj=u.Lb({factory:function(e){return new(e||t)},providers:[n.d,{provide:R,useValue:L}],imports:[[n.j]]}),t})();i("NXyV");var z=i("rDax");i("eIep"),i("pLZG"),i("lJxs"),i("vkgz"),i("3E0/");const F={provide:new u.s("mat-autocomplete-scroll-strategy"),deps:[z.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let j=(()=>{class t{}return t.\u0275mod=u.Mb({type:t}),t.\u0275inj=u.Lb({factory:function(e){return new(e||t)},providers:[F],imports:[[z.f,n.o,n.j,r.c],E.a,n.o,n.j]}),t})();var U=i("Qu3c");let V=(()=>{class t{}return t.\u0275mod=u.Mb({type:t}),t.\u0275inj=u.Lb({factory:function(e){return new(e||t)},imports:[[r.c,n.j],n.j]}),t})(),B=(()=>{class t{}return t.\u0275mod=u.Mb({type:t}),t.\u0275inj=u.Lb({factory:function(e){return new(e||t)},imports:[[O.a]]}),t})(),Y=(()=>{class t{constructor(){this.changes=new p.a,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(u.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const H={provide:Y,deps:[[new u.C,new u.L,Y]],useFactory:function(t){return t||new Y}};let W=(()=>{class t{}return t.\u0275mod=u.Mb({type:t}),t.\u0275inj=u.Lb({factory:function(e){return new(e||t)},providers:[H,n.d],imports:[[n.j,r.c,A.f,a.c,B,h.b,n.t],n.j]}),t})();var X=i("dNgK");const G=[n.m,a.c,o.e,l.b,c.d,h.b,d.c,v,y.c,_.b,x.b,k,S.k,D,P,V,N,j,I.e,U.b,W,X.b,M.e];let q=(()=>{class t{}return t.\u0275mod=u.Mb({type:t}),t.\u0275inj=u.Lb({factory:function(e){return new(e||t)},imports:[[...G],n.m,a.c,o.e,l.b,c.d,h.b,d.c,v,y.c,_.b,x.b,k,S.k,D,P,V,N,j,I.e,U.b,W,X.b,M.e]}),t})();var $=i("YhS8"),K=i("CV0D"),Z=i("0hV+"),Q=i("6+lR"),J=i("h91x"),tt=i("Q1IF"),et=i("GXgC"),it=i("mefp"),nt=i("rgks");const rt=Object.assign(Object.assign({},n.f),{display:Object.assign(Object.assign({},n.f.display),{dateInput:"input"})});let st=(()=>{class t extends n.u{getFirstDayOfWeek(){return 1}format(t,e){if("input"===e){const e=`${t.getDate()}`,i=`${t.getMonth()+1}`;return`${t.getFullYear()}-${i.padStart(2,"0")}-${e.padStart(2,"0")}`}return super.format(t,e)}}return t.\u0275fac=function(e){return at(e||t)},t.\u0275prov=u.Kb({token:t,factory:t.\u0275fac}),t})();const at=u.Wb(st);let ot=(()=>{class t{}return t.\u0275mod=u.Mb({type:t}),t.\u0275inj=u.Lb({factory:function(e){return new(e||t)},providers:[r.e,Q.a,J.a,tt.a,it.a,et.a,nt.a,{provide:n.e,useValue:rt},{provide:n.c,useClass:st}],imports:[[r.c,q,s.g,m.h,m.s,K.b,$.b.forRoot(),Z.b],q]}),t})()},PqYM:function(t,e,i){"use strict";i.d(e,"a",function(){return l});var n=i("HDdC"),r=i("D0XW"),s=i("DH7j");function a(t){return!Object(s.a)(t)&&t-parseFloat(t)+1>=0}var o=i("z+Ro");function l(t=0,e,i){let s=-1;return a(e)?s=Number(e)<1?1:Number(e):Object(o.a)(e)&&(i=e),Object(o.a)(i)||(i=r.a),new n.a(e=>{const n=a(t)?t:+t-i.now();return i.schedule(c,n,{index:0,period:s,subscriber:e})})}function c(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}},Q1IF:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("MfXU"),r=i("jiyY"),s=i("fXoL");let a=(()=>{class t extends r.a{constructor(){super(...arguments),this.userRoles=[n.a.Ngo]}}return t.\u0275fac=function(e){return o(e||t)},t.\u0275prov=s.Kb({token:t,factory:t.\u0275fac}),t})();const o=s.Wb(a)},QAZZ:function(t,e,i){var n=i("Rb7d");function r(t,e){var i=t.a/255,n=e+'="'+t.hex+'"';return i<1?n+" "+e+'-opacity="'+i.toFixed(2).slice(1)+'"':n}function s(t,e,i){var n=t+e;return void 0!==i&&(n+=" "+i),n}e.render=function(t,e,i){var a=n.getOptions(e),o=t.modules.size,l=t.modules.data,c=o+2*a.margin,h=a.color.light.a?"<path "+r(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+r(a.color.dark,"stroke")+' d="'+function(t,e,i){for(var n="",r=0,a=!1,o=0,l=0;l<t.length;l++){var c=Math.floor(l%e),h=Math.floor(l/e);c||a||(a=!0),t[l]?(o++,l>0&&c>0&&t[l-1]||(n+=a?s("M",c+i,.5+h+i):s("m",r,0),r=0,a=!1),c+1<e&&t[l+1]||(n+=s("h",o),o=0)):r++}return n}(l,o,a.margin)+'"/>',u='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+'viewBox="0 0 '+c+" "+c+'" shape-rendering="crispEdges">'+h+d+"</svg>\n";return"function"==typeof i&&i(null,u),u}},QUaw:function(t,e,i){var n=i("Rb7d");e.render=function(t,e,i){var r=i,s=e;void 0!==r||e&&e.getContext||(r=e,e=void 0),e||(s=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),r=n.getOptions(r);var a=n.getImageWidth(t.modules.size,r),o=s.getContext("2d"),l=o.createImageData(a,a);return n.qrToImageData(l.data,t,r),function(t,e,i){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=i,e.width=i,e.style.height=i+"px",e.style.width=i+"px"}(o,s,a),o.putImageData(l,0,0),s},e.renderToDataURL=function(t,i,n){var r=n;return void 0!==r||i&&i.getContext||(r=i,i=void 0),r||(r={}),e.render(t,i,r).toDataURL(r.type||"image/png",(r.rendererOpts||{}).quality)}},QdIO:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("fXoL"),r=i("GNJl");let s=(()=>{class t{constructor(t){this.tokenService=t,this.baseUrl=document.getElementsByTagName("base")[0].href}isInRole(t){var e=this.tokenService.getToken();if(null!=e){if(e.roles)return e.roles.some(e=>e==t);if(e.role)return e.role==t}return!1}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(r.a))},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})()},Qu3c:function(t,e,i){"use strict";i.d(e,"a",function(){return k}),i.d(e,"b",function(){return T});var n=i("rDax"),r=i("u47x"),s=i("ofXK"),a=i("fXoL"),o=i("FKr1"),l=i("vxfF"),c=i("8LU1"),h=i("FtGj"),d=i("0MNC"),u=i("nLfN"),p=i("+rOU"),f=i("XNiG"),g=i("1G5W"),m=i("IzEk"),b=i("R0Ic"),v=i("cH1L");const y={tooltipState:Object(b.m)("state",[Object(b.j)("initial, void, hidden",Object(b.k)({opacity:0,transform:"scale(0)"})),Object(b.j)("visible",Object(b.k)({transform:"scale(1)"})),Object(b.l)("* => visible",Object(b.e)("200ms cubic-bezier(0, 0, 0.2, 1)",Object(b.g)([Object(b.k)({opacity:0,transform:"scale(0)",offset:0}),Object(b.k)({opacity:.5,transform:"scale(0.99)",offset:.5}),Object(b.k)({opacity:1,transform:"scale(1)",offset:1})]))),Object(b.l)("* => hidden",Object(b.e)("100ms cubic-bezier(0, 0, 0.2, 1)",Object(b.k)({opacity:0})))])},_=Object(u.f)({passive:!0}),x=new a.s("mat-tooltip-scroll-strategy"),w={provide:x,deps:[n.c],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},C=new a.s("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let k=(()=>{class t{constructor(t,e,i,n,r,s,a,o,l,c,d,u){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=r,this._platform=s,this._ariaDescriber=a,this._focusMonitor=o,this._dir=c,this._defaultOptions=d,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 f.a,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===h.g&&!Object(h.s)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),r.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=Object(c.c)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Object(g.a)(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,i])=>{t.removeEventListener(e,i,_)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new p.d(S,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(g.a)(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(Object(g.a)(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(Object(g.a)(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(),i=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),i.main),Object.assign(Object.assign({},e.fallback),i.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:r}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:r}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:r}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Object(m.a)(1),Object(g.a)(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()],["wheel",t=>this._wheelListener(t)]);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,_)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=(this._document||document).elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(n.c),a.Ob(a.l),a.Ob(l.b),a.Ob(a.R),a.Ob(a.B),a.Ob(u.a),a.Ob(r.c),a.Ob(r.h),a.Ob(x),a.Ob(v.b,8),a.Ob(C,8),a.Ob(s.d))},t.\u0275dir=a.Jb({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})(),S=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new f.a,this._isHandset=this._breakpointObserver.observe(d.b.Handset)}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)(a.Ob(a.h),a.Ob(d.a))},t.\u0275cmp=a.Ib({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&a.bc("click",function(){return e._handleBodyInteraction()},!1,a.uc)("auxclick",function(){return e._handleBodyInteraction()},!1,a.uc),2&t&&a.Ac("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(a.Ub(0,"div",0),a.bc("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),a.gc(1,"async"),a.Ec(2),a.Tb()),2&t){let t=null;a.Gb("mat-tooltip-handset",null==(t=a.hc(1,5,e._isHandset))?null:t.matches),a.lc("ngClass",e.tooltipClass)("@state",e._visibility),a.Cb(2),a.Fc(e.message)}},directives:[s.j],pipes:[s.b],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:[y.tooltipState]},changeDetection:0}),t})(),T=(()=>{class t{}return t.\u0275mod=a.Mb({type:t}),t.\u0275inj=a.Lb({factory:function(e){return new(e||t)},providers:[w],imports:[[r.a,s.c,n.f,o.j],o.j,l.a]}),t})()},R0Ic:function(t,e,i){"use strict";i.d(e,"a",function(){return s}),i.d(e,"b",function(){return n}),i.d(e,"c",function(){return r}),i.d(e,"d",function(){return m}),i.d(e,"e",function(){return o}),i.d(e,"f",function(){return p}),i.d(e,"g",function(){return d}),i.d(e,"h",function(){return f}),i.d(e,"i",function(){return l}),i.d(e,"j",function(){return h}),i.d(e,"k",function(){return c}),i.d(e,"l",function(){return u}),i.d(e,"m",function(){return a}),i.d(e,"n",function(){return b}),i.d(e,"o",function(){return v});class n{}class r{}const s="*";function a(t,e){return{type:7,name:t,definitions:e,options:{}}}function o(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function h(t,e,i){return{type:0,name:t,styles:e,options:i}}function d(t){return{type:5,steps:t}}function u(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function p(t=null){return{type:9,options:t}}function f(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function g(t){Promise.resolve(null).then(t)}class m{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=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(){g(()=>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){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class b{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,i=0,n=0;const r=this.players.length;0==r?g(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==r&&this._onFinish()}),t.onDestroy(()=>{++i==r&&this._onDestroy()}),t.onStart(()=>{++n==r&&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 i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}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}}const v="!"},R1ws:function(t,e,i){"use strict";i.d(e,"a",function(){return Pe}),i.d(e,"b",function(){return Me});var n=i("fXoL"),r=i("jhN1"),s=i("R0Ic");function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function o(t){switch(t.length){case 0:return new s.d;case 1:return t[0];default:return new s.n(t)}}function l(t,e,i,n,r={},a={}){const o=[],l=[];let c=-1,h=null;if(n.forEach(t=>{const i=t.offset,n=i==c,d=n&&h||{};Object.keys(t).forEach(i=>{let n=i,l=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),l){case s.o:l=r[i];break;case s.a:l=a[i];break;default:l=e.normalizeStyleValue(i,n,l,o)}d[n]=l}),n||l.push(d),h=d,c=i}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return l}function c(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&h(i,"start",t)));break;case"done":t.onDone(()=>n(i&&h(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&h(i,"destroy",t)))}}function h(t,e,i){const n=i.totalTime,r=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),s=t._data;return null!=s&&(r._data=s),r}function d(t,e,i,n,r="",s=0,a){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:s,disabled:!!a}}function u(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function p(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let f=(t,e)=>!1,g=(t,e)=>!1,m=(t,e,i)=>[];const b=a();(b||"undefined"!=typeof Element)&&(f=(t,e)=>t.contains(e),g=(()=>{if(b||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,i)=>e.apply(t,[i]):g}})(),m=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t<i.length;t++)n.push(i[t])}else{const i=t.querySelector(e);i&&n.push(i)}return n});let v=null,y=!1;function _(t){v||(v=("undefined"!=typeof document?document.body:null)||{},y=!!v.style&&"WebkitAppearance"in v.style);let e=!0;return v.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in v.style,!e&&y)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in v.style),e}const x=g,w=f,C=m;function k(t){const e={};return Object.keys(t).forEach(i=>{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let S=(()=>{class t{validateStyleProperty(t){return _(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return w(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,r,a=[],o){return new s.d(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})(),T=(()=>{class t{}return t.NOOP=new S,t})();const A="ng-enter",O="ng-leave",E="ng-trigger",D=".ng-trigger",P="ng-animating",I=".ng-animating";function M(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:R(parseFloat(e[1]),e[2])}function R(t,e){switch(e){case"s":return 1e3*t;default:return t}}function L(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,r=0,s="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=R(parseFloat(i[1]),i[2]);const a=i[3];null!=a&&(r=R(parseFloat(a),i[4]));const o=i[5];o&&(s=o)}else n=t;if(!i){let i=!1,s=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(s,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:r,easing:s}}(t,e,i)}function N(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function z(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else N(t,i);return i}function F(t,e,i){return i?e+":"+i+";":""}function j(t){let e="";for(let i=0;i<t.style.length;i++){const n=t.style.item(i);e+=F(0,n,t.style.getPropertyValue(n))}for(const i in t.style)t.style.hasOwnProperty(i)&&!i.startsWith("_")&&(e+=F(0,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[i]));t.setAttribute("style",e)}function U(t,e,i){t.style&&(Object.keys(e).forEach(n=>{const r=q(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[r]),t.style[r]=e[n]}),a()&&j(t))}function V(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=q(e);t.style[i]=""}),a()&&j(t))}function B(t){return Array.isArray(t)?1==t.length?t[0]:Object(s.i)(t):t}const Y=new RegExp("{{\\s*(.+?)\\s*}}","g");function H(t){let e=[];if("string"==typeof t){let i;for(;i=Y.exec(t);)e.push(i[1]);Y.lastIndex=0}return e}function W(t,e,i){const n=t.toString(),r=n.replace(Y,(t,n)=>{let r=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),r=""),r.toString()});return r==n?t:r}function X(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const G=/-+([a-z0-9])/g;function q(t){return t.replace(G,(...t)=>t[1].toUpperCase())}function $(t,e){return 0===t||0===e}function K(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let s=e[0],a=[];if(n.forEach(t=>{s.hasOwnProperty(t)||a.push(t),s[t]=i[t]}),a.length)for(var r=1;r<e.length;r++){let i=e[r];a.forEach(function(e){i[e]=Q(t,e)})}}return e}function Z(t,e,i){switch(e.type){case 7:return t.visitTrigger(e,i);case 0:return t.visitState(e,i);case 1:return t.visitTransition(e,i);case 2:return t.visitSequence(e,i);case 3:return t.visitGroup(e,i);case 4:return t.visitAnimate(e,i);case 5:return t.visitKeyframes(e,i);case 6:return t.visitStyle(e,i);case 8:return t.visitReference(e,i);case 9:return t.visitAnimateChild(e,i);case 10:return t.visitAnimateRef(e,i);case 11:return t.visitQuery(e,i);case 12:return t.visitStagger(e,i);default:throw new Error(`Unable to resolve animation metadata node #${e.type}`)}}function Q(t,e){return window.getComputedStyle(t)[e]}const J="*";function tt(t,e){const i=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,i){if(":"==t[0]){const n=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,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const r=n[1],s=n[2],a=n[3];e.push(nt(r,a)),"<"!=s[0]||r==J&&a==J||e.push(nt(a,r))}(t,i,e)):i.push(t),i}const et=new Set(["true","1"]),it=new Set(["false","0"]);function nt(t,e){const i=et.has(t)||it.has(t),n=et.has(e)||it.has(e);return(r,s)=>{let a=t==J||t==r,o=e==J||e==s;return!a&&i&&"boolean"==typeof r&&(a=r?et.has(t):it.has(t)),!o&&n&&"boolean"==typeof s&&(o=s?et.has(e):it.has(e)),a&&o}}const rt=new RegExp("s*:selfs*,?","g");function st(t,e,i){return new at(t).build(e,i)}class at{constructor(t){this._driver=t}build(t,e){const i=new ot(e);return this._resetContextStyleTimingState(i),Z(this,B(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const r=[],s=[];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 i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,r.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const r=this.visitTransition(t,e);i+=r.queryCount,n+=r.depCount,s.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:s,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const r=new Set,s=n||{};if(i.styles.forEach(t=>{if(lt(t)){const e=t;Object.keys(e).forEach(t=>{H(e[t]).forEach(t=>{s.hasOwnProperty(t)||r.add(t)})})}}),r.size){const i=X(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Z(this,B(t.animation),e);return{type:1,matchers:tt(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:ct(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Z(this,t,e)),options:ct(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const r=t.steps.map(t=>{e.currentTime=i;const r=Z(this,t,e);return n=Math.max(n,e.currentTime),r});return e.currentTime=n,{type:3,steps:r,options:ct(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return ht(L(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ht(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||L(n,e),ht(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let r=t.styles?t.styles:Object(s.k)({});if(5==r.type)n=this.visitKeyframes(r,e);else{let r=t.styles,a=!1;if(!r){a=!0;const t={};i.easing&&(t.easing=i.easing),r=Object(s.k)(t)}e.currentTime+=i.duration+i.delay;const o=this.visitStyle(r,e);o.isEmptyStep=a,n=o}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==s.a?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,r=null;return i.forEach(t=>{if(lt(t)){const e=t,i=e.easing;if(i&&(r=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:r,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const s=e.collectedStyles[e.currentQuerySelector],a=s[i];let o=!0;a&&(r!=n&&r>=a.startTime&&n<=a.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${a.startTime}ms" and "${a.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${n}ms"`),o=!1),r=a.startTime),o&&(s[i]={startTime:r,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},r=H(t);r.length&&r.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const r=[];let s=!1,a=!1,o=0;const l=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(lt(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(lt(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),c=0;return null!=l&&(n++,c=i.offset=l),a=a||c<0||c>1,s=s||c<o,o=c,r.push(c),i});a&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let h=0;n>0&&n<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==n&&(h=1/(c-1));const d=c-1,u=e.currentTime,p=e.currentAnimateTimings,f=p.duration;return l.forEach((t,n)=>{const s=h>0?n==d?1:h*n:r[n],a=s*f;e.currentTime=u+p.delay+a,p.duration=a,this._validateStyleAst(t,e),t.offset=s,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:Z(this,B(t.animation),e),options:ct(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ct(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ct(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[r,s]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(rt,"")),[t=t.replace(/@\*/g,D).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,I),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+r:r,u(e.collectedStyles,e.currentQuerySelector,{});const a=Z(this,B(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:ct(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:L(t.timings,e.errors,!0);return{type:12,animation:Z(this,B(t.animation),e),timings:i,options:null}}}class ot{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 lt(t){return!Array.isArray(t)&&"object"==typeof t}function ct(t){var e;return t?(t=N(t)).params&&(t.params=(e=t.params)?N(e):null):t={},t}function ht(t,e,i){return{duration:t,delay:e,easing:i}}function dt(t,e,i,n,r,s,a=null,o=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:s,totalTime:r+s,easing:a,subTimeline:o}}class ut{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 i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const pt=new RegExp(":enter","g"),ft=new RegExp(":leave","g");function gt(t,e,i,n,r,s={},a={},o,l,c=[]){return(new mt).buildKeyframes(t,e,i,n,r,s,a,o,l,c)}class mt{buildKeyframes(t,e,i,n,r,s,a,o,l,c=[]){l=l||new ut;const h=new vt(t,e,l,n,r,c,[]);h.options=o,h.currentTimeline.setStyles([s],null,h.errors,o),Z(this,i,h);const d=h.timelines.filter(t=>t.containsAnimation());if(d.length&&Object.keys(a).length){const t=d[d.length-1];t.allowOnlyTimelineStyles()||t.setStyles([a],null,h.errors,o)}return d.length?d.map(t=>t.buildKeyframes()):[dt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,n,n.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const r=null!=i.duration?M(i.duration):null,s=null!=i.delay?M(i.delay):null;return 0!==r&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,r,s);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),Z(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const r=t.options;if(r&&(r.params||r.delay)&&(n=e.createSubContext(r),n.transformIntoNewTimeline(),null!=r.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=bt);const t=M(r.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Z(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?M(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);r&&a.delayNextStep(r),Z(this,s,a),n=Math.max(n,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return L(e.params?W(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const r=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(r):i.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,r=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,t.styles.forEach(t=>{s.forwardTime((t.offset||0)*r),s.setStyles(t.styles,t.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(n+r),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},r=n.delay?M(n.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bt);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=a.length;let o=null;a.forEach((i,n)=>{e.currentQueryIndex=n;const a=e.createSubContext(t.options,i);r&&a.delayNextStep(r),i===e.element&&(o=a.currentTimeline),Z(this,t.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),a=s*(e.currentQueryTotal-1);let o=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":o=a-o;break;case"full":o=i.currentStaggerTime}const l=e.currentTimeline;o&&l.delayNextStep(o);const c=l.currentTime;Z(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-c+(n.startTime-i.currentTimeline.startTime)}}const bt={};class vt{constructor(t,e,i,n,r,s,a,o){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=r,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new yt(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=M(i.duration)),null!=i.delay&&(n.delay=M(i.delay));const r=i.params;if(r){let t=n.params;t||(t=this.options.params={}),Object.keys(r).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=W(r[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,r=new vt(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=bt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},r=new _t(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,r,s){let a=[];if(n&&a.push(this.element),t.length>0){t=(t=t.replace(pt,"."+this._enterClassName)).replace(ft,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),a.push(...e)}return r||0!=a.length||s.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),a}}class yt{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,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 yt(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]||s.a,this._currentKeyframe[t]=s.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const r=n&&n.params||{},a=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]=s.a})):z(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(a).forEach(t=>{const e=W(a[t],r,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:s.a),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 i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((r,a)=>{const o=z(r,!0);Object.keys(o).forEach(i=>{const n=o[i];n==s.o?t.add(i):n==s.a&&e.add(i)}),i||(o.offset=a/this.duration),n.push(o)});const r=t.size?X(t.values()):[],a=e.size?X(e.values()):[];if(i){const t=n[0],e=N(t);t.offset=0,e.offset=1,n=[t,e]}return dt(this.element,n,r,a,this.duration,this.startTime,this.easing,!1)}}class _t extends yt{constructor(t,e,i,n,r,s,a=!1){super(t,e,s.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=i+e,a=e/s,o=z(t[0],!1);o.offset=0,r.push(o);const l=z(t[0],!1);l.offset=xt(a),r.push(l);const c=t.length-1;for(let n=1;n<=c;n++){let a=z(t[n],!1);a.offset=xt((e+a.offset*i)/s),r.push(a)}i=s,e=0,n="",t=r}return dt(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function xt(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class wt{}class Ct extends wt{normalizePropertyName(t,e){return q(t)}normalizeStyleValue(t,e,i,n){let r="";const s=i.toString().trim();if(kt[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return s+r}}const kt=(()=>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 St(t,e,i,n,r,s,a,o,l,c,h,d,u){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:s,toState:n,toStyles:a,timelines:o,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:d,errors:u}}const Tt={};class At{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,r){return t.some(t=>t(e,i,n,r))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],r=this._stateStyles[t],s=n?n.buildStyles(e,i):{};return r?r.buildStyles(e,i):s}build(t,e,i,n,r,s,a,o,l,c){const h=[],d=this.ast.options&&this.ast.options.params||Tt,p=this.buildStyles(i,a&&a.params||Tt,h),f=o&&o.params||Tt,g=this.buildStyles(n,f,h),m=new Set,b=new Map,v=new Map,y="void"===n,_={params:Object.assign(Object.assign({},d),f)},x=c?[]:gt(t,e,this.ast.animation,r,s,p,g,_,l,h);let w=0;if(x.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return St(e,this._triggerName,i,n,y,p,g,[],[],b,v,w,h);x.forEach(t=>{const i=t.element,n=u(b,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const r=u(v,i,{});t.postStyleProps.forEach(t=>r[t]=!0),i!==e&&m.add(i)});const C=X(m.values());return St(e,this._triggerName,i,n,y,p,g,x,C,b,v,w)}}class Ot{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=N(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach(t=>{let s=r[t];s.length>1&&(s=W(s,n,e)),i[t]=s})}}),i}}class Et{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Ot(t.style,t.options&&t.options.params||{})}),Dt(this.states,"true","1"),Dt(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new At(t,e,this.states))}),this.fallbackTransition=new At(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,i,n){return this.transitionFactories.find(r=>r.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Dt(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const Pt=new ut;class It{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=st(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,r=l(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],r=this._animations[t];let a;const l=new Map;if(r?(a=gt(this._driver,e,r,A,O,{},{},i,Pt,n),a.forEach(t=>{const e=u(l,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),a=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);l.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,s.a)})});const c=o(a.map(t=>{const e=l.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,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,i,n){const r=d(e,"","","");return c(this._getPlayer(t),i,r,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const r=this._getPlayer(t);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const Mt="ng-animate-queued",Rt="ng-animate-disabled",Lt=".ng-animate-disabled",Nt=[],zt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ft={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class jt{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=N(t);delete e.value,this.options=e}else this.options={};var n;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(i=>{null==t[i]&&(t[i]=e[i])})}}}const Ut="void",Vt=new jt(Ut);class Bt{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,$t(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(r=i)&&"done"!=r)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var r;const s=u(this._elementListeners,t,[]),a={name:e,phase:i,callback:n};s.push(a);const o=u(this._engine.statesByElement,t,{});return o.hasOwnProperty(e)||($t(t,E),$t(t,"ng-trigger-"+e),o[e]=Vt),()=>{this._engine.afterFlush(()=>{const t=s.indexOf(a);t>=0&&s.splice(t,1),this._triggers[e]||delete o[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,i,n=!0){const r=this._getTrigger(e),s=new Ht(this.id,e,t);let a=this._engine.statesByElement.get(t);a||($t(t,E),$t(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,a={}));let o=a[e];const l=new jt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&o&&l.absorbOptions(o.options),a[e]=l,o||(o=Vt),l.value!==Ut&&o.value===l.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let r=0;r<i.length;r++){const n=i[r];if(!e.hasOwnProperty(n)||t[n]!==e[n])return!1}return!0}(o.params,l.params)){const e=[],i=r.matchStyles(o.value,o.params,e),n=r.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{V(t,i),U(t,n)})}return}const c=u(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=r.matchTransition(o.value,l.value,t,l.params),d=!1;if(!h){if(!n)return;h=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:o,toState:l,player:s,isFallbackTransition:d}),d||($t(t,Mt),s.onStart(()=>{Kt(t,Mt)})),s.onDone(()=>{let e=this.players.indexOf(s);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(s);t>=0&&i.splice(t,1)}}),this.players.push(s),c.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,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 i=this._engine.driver.query(t,D,!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const r=this._engine.statesByElement.get(t);if(r){const s=[];if(Object.keys(r).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,Ut,n);i&&s.push(i)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&o(s).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const i=new Set;e.forEach(e=>{const n=e.name;if(i.has(n))return;i.add(n);const r=this._triggers[n].fallbackTransition,s=this._engine.statesByElement.get(t)[n]||Vt,a=new jt(Ut),o=new Ht(this.id,n,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:r,fromState:s,toState:a,player:o,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==zt||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){$t(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const r=i.element,s=this._elementListeners.get(r);s&&s.forEach(e=>{if(e.name==i.triggerName){const n=d(r,i.triggerName,i.fromState.value,i.toState.value);n._data=t,c(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n: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 Yt{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(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 i=new Bt(t,e,this);return e.parentNode?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let r=i;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n<t.length;n++){const r=i[t[n]].namespaceId;if(r){const t=this._fetchNamespace(r);t&&e.add(t)}}}return e}trigger(t,e,i,n){if(Wt(e)){const r=this._fetchNamespace(t);if(r)return r.trigger(e,i,n),!0}return!1}insertNode(t,e,i,n){if(!Wt(e))return;const r=e.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),$t(t,Rt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Kt(t,Rt))}removeNode(t,e,i,n){if(Wt(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,r){return Wt(e)?this._fetchNamespace(t).listen(e,i,n,r):()=>{}}_buildInstruction(t,e,i,n,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,D,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,I,!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 o(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=zt,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Lt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Lt,!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 i=0;i<this.collectedEnterElements.length;i++)$t(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}finally{for(let t=0;t<i.length;t++)i[t]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?o(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 i=new ut,n=[],r=new Map,a=[],l=new Map,c=new Map,h=new Map,d=new Set;this.disabledNodes.forEach(t=>{d.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i<e.length;i++)d.add(e[i])});const p=this.bodyNode,f=Array.from(this.statesByElement.keys()),g=qt(f,this.collectedEnterElements),m=new Map;let b=0;g.forEach((t,e)=>{const i=A+b++;m.set(e,i),t.forEach(t=>$t(t,i))});const v=[],y=new Set,_=new Set;for(let s=0;s<this.collectedLeaveElements.length;s++){const t=this.collectedLeaveElements[s],e=t.__ng_removed;e&&e.setForRemoval&&(v.push(t),y.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>y.add(t)):_.add(t))}const x=new Map,w=qt(f,Array.from(y));w.forEach((t,e)=>{const i=O+b++;x.set(e,i),t.forEach(t=>$t(t,i))}),t.push(()=>{g.forEach((t,e)=>{const i=m.get(e);t.forEach(t=>Kt(t,i))}),w.forEach((t,e)=>{const i=x.get(e);t.forEach(t=>Kt(t,i))}),v.forEach(t=>{this.processLeaveNode(t)})});const C=[],k=[];for(let s=this._namespaceList.length-1;s>=0;s--)this._namespaceList[s].drainQueuedTransitions(e).forEach(t=>{const e=t.player,r=t.element;if(C.push(e),this.collectedEnterElements.length){const t=r.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const s=!p||!this.driver.containsElement(p,r),o=x.get(r),d=m.get(r),f=this._buildInstruction(t,i,d,o,s);if(f.errors&&f.errors.length)k.push(f);else{if(s)return e.onStart(()=>V(r,f.fromStyles)),e.onDestroy(()=>U(r,f.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>V(r,f.fromStyles)),e.onDestroy(()=>U(r,f.toStyles)),void n.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(r,f.timelines),a.push({instruction:f,player:e,element:r}),f.queriedElements.forEach(t=>u(l,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=c.get(e);t||c.set(e,t=new Set),i.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=h.get(e);n||h.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(k.length){const t=[];k.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),C.forEach(t=>t.destroy()),this.reportError(t)}const S=new Map,T=new Map;a.forEach(t=>{const e=t.element;i.has(e)&&(T.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,S))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{u(S,e,[]).push(t),t.destroy()})});const E=v.filter(t=>Jt(t,c,h)),D=new Map;Gt(D,this.driver,_,h,s.a).forEach(t=>{Jt(t,c,h)&&E.push(t)});const P=new Map;g.forEach((t,e)=>{Gt(P,this.driver,new Set(t),c,s.o)}),E.forEach(t=>{const e=D.get(t),i=P.get(t);D.set(t,Object.assign(Object.assign({},e),i))});const M=[],R=[],L={};a.forEach(t=>{const{element:e,player:s,instruction:a}=t;if(i.has(e)){if(d.has(e))return s.onDestroy(()=>U(e,a.toStyles)),s.disabled=!0,s.overrideTotalTime(a.totalTime),void n.push(s);let t=L;if(T.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=T.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>T.set(e,t))}const i=this._buildAnimation(s.namespaceId,a,S,r,P,D);if(s.setRealPlayer(i),t===L)M.push(s);else{const e=this.playersByElement.get(t);e&&e.length&&(s.parentPlayer=o(e)),n.push(s)}}else V(e,a.fromStyles),s.onDestroy(()=>U(e,a.toStyles)),R.push(s),d.has(e)&&n.push(s)}),R.forEach(t=>{const e=r.get(t.element);if(e&&e.length){const i=o(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let s=0;s<v.length;s++){const t=v[s],e=t.__ng_removed;if(Kt(t,O),e&&e.hasAnimation)continue;let i=[];if(l.size){let e=l.get(t);e&&e.length&&i.push(...e);let n=this.driver.query(t,I,!0);for(let t=0;t<n.length;t++){let e=l.get(n[t]);e&&e.length&&i.push(...e)}}const n=i.filter(t=>!t.destroyed);n.length?Zt(this,t,n):this.processLeaveNode(t)}return v.length=0,M.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),M}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,r){let s=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(s=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||r==Ut;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&s.push(e)})}}return(i||n)&&(s=s.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),s}_beforeAnimationBuild(t,e,i){const n=e.element,r=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName;for(const a of e.timelines){const t=a.element,o=t!==n,l=u(i,t,[]);this._getPreviousPlayers(t,o,r,s,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}V(n,e.fromStyles)}_buildAnimation(t,e,i,n,r,a){const c=e.triggerName,h=e.element,d=[],p=new Set,f=new Set,g=e.timelines.map(e=>{const o=e.element;p.add(o);const u=o.__ng_removed;if(u&&u.removedBeforeQueried)return new s.d(e.duration,e.delay);const g=o!==h,m=function(t){const e=[];return Qt(t,e),e}((i.get(o)||Nt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===o),b=r.get(o),v=a.get(o),y=l(0,this._normalizer,0,e.keyframes,b,v),_=this._buildPlayer(e,y,m);if(e.subTimeline&&n&&f.add(o),g){const e=new Ht(t,c,o);e.setRealPlayer(_),d.push(e)}return _});d.forEach(t=>{u(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),p.forEach(t=>$t(t,P));const m=o(g);return m.onDestroy(()=>{p.forEach(t=>Kt(t,P)),U(h,e.toStyles)}),f.forEach(t=>{u(n,t,[]).push(m)}),m}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new s.d(t.duration,t.delay)}}class Ht{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new s.d,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(i=>c(t,e,void 0,i))}),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){u(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 Wt(t){return t&&1===t.nodeType}function Xt(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function Gt(t,e,i,n,r){const s=[];i.forEach(t=>s.push(Xt(t)));const a=[];n.forEach((i,n)=>{const s={};i.forEach(t=>{const i=s[t]=e.computeStyle(n,t,r);i&&0!=i.length||(n.__ng_removed=Ft,a.push(n))}),t.set(n,s)});let o=0;return i.forEach(t=>Xt(t,s[o++])),a}function qt(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),r=new Map;function s(t){if(!t)return 1;let e=r.get(t);if(e)return e;const a=t.parentNode;return e=i.has(a)?a:n.has(a)?1:s(a),r.set(t,e),e}return e.forEach(t=>{const e=s(t);1!==e&&i.get(e).push(t)}),i}function $t(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Kt(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function Zt(t,e,i){o(i).onDone(()=>t.processLeaveNode(e))}function Qt(t,e){for(let i=0;i<t.length;i++){const n=t[i];n instanceof s.n?Qt(n.players,e):e.push(n)}}function Jt(t,e,i){const n=i.get(t);if(!n)return!1;let r=e.get(t);return r?n.forEach(t=>r.add(t)):e.set(t,n),i.delete(t),!0}class te{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Yt(t,e,i),this._timelineEngine=new It(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,r){const s=t+"-"+n;let a=this._triggerCache[s];if(!a){const t=[],e=st(this._driver,r,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);a=function(t,e){return new Et(t,e)}(n,e),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,n,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,r]=p(i);this._timelineEngine.command(t,e,r,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,r){if("@"==i.charAt(0)){const[t,n]=p(i);return this._timelineEngine.listen(t,e,n,r)}return this._transitionEngine.listen(t,e,i,n,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ee(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=ne(e[0]),e.length>1&&(n=ne(e[e.length-1]))):e&&(i=ne(e)),i||n?new ie(t,i,n):null}let ie=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&U(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(U(this._element,this._initialStyles),this._endStyles&&(U(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(V(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),U(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function ne(t){let e=null;const i=Object.keys(t);for(let n=0;n<i.length;n++){const r=i[n];re(r)&&(e=e||{},e[r]=t[r])}return e}function re(t){return"display"===t||"position"===t}const se="animation",ae="animationend";class oe{constructor(t,e,i,n,r,s,a){this._element=t,this._name=e,this._duration=i,this._delay=n,this._easing=r,this._fillMode=s,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const i=pe(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n<t.length;n++)","===t.charAt(n)&&i++}(i),e=`${i}, ${e}`),ue(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),de(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){le(this._element,this._name,"paused")}resume(){le(this._element,this._name,"running")}setPosition(t){const e=ce(this._element,this._name);this._position=t*this._duration,ue(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),i=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),de(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=pe(t,"").split(","),n=he(i,e);n>=0&&(i.splice(n,1),ue(t,"",i.join(",")))}(this._element,this._name))}}function le(t,e,i){ue(t,"PlayState",i,ce(t,e))}function ce(t,e){const i=pe(t,"");return i.indexOf(",")>0?he(i.split(","),e):he([i],e)}function he(t,e){for(let i=0;i<t.length;i++)if(t[i].indexOf(e)>=0)return i;return-1}function de(t,e,i){i?t.removeEventListener(ae,e):t.addEventListener(ae,e)}function ue(t,e,i,n){const r=se+e;if(null!=n){const e=t.style[r];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[r]=i}function pe(t,e){return t.style[se+e]||""}class fe{constructor(t,e,i,n,r,s,a,o){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=r,this._finalStyles=a,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=n+r,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 oe(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(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:Q(this.element,i))})}this.currentSnapshot=t}}class ge extends s.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=k(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 me{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(t){return _(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return w(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>k(t));let n=`@keyframes ${e} {\n`,r="";i.forEach(t=>{r=" ";const e=parseFloat(t.offset);n+=`${r}${100*e}% {\n`,r+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${r}animation-timing-function: ${i};\n`));default:return void(n+=`${r}${e}: ${i};\n`)}}),n+=`${r}}\n`}),n+="}\n";const s=document.createElement("style");return s.textContent=n,s}animate(t,e,i,n,r,s=[],a){const o=s.filter(t=>t instanceof fe),l={};$(i,n)&&o.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(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=K(t,e,l));if(0==i)return new ge(t,c);const h="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(d);const u=ee(t,e),p=new fe(t,e,h,i,n,r,c,u);return p.onDestroy(()=>{var t;(t=d).parentNode.removeChild(t)}),p}}class be{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(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,i){return t.animate(e,i)}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]:Q(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class ve{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ye().toString()),this._cssKeyframesDriver=new me}validateStyleProperty(t){return _(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return w(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,r,s=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,r,s);const o={duration:i,delay:n,fill:0==n?"both":"forwards"};r&&(o.easing=r);const l={},c=s.filter(t=>t instanceof be);$(i,n)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=ee(t,e=K(t,e=e.map(t=>z(t,!1)),l));return new be(t,e,o,h)}}function ye(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var _e=i("ofXK");let xe=(()=>{class t extends s.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:n.S.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?Object(s.i)(t):t;return ke(this._renderer,null,e,"register",[i]),new we(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(n.H),n.Yb(_e.d))},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})();class we extends s.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Ce(this._id,t,e||{},this._renderer)}}class Ce{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return ke(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(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function ke(t,e,i,n,r){return t.setProperty(e,`@@${i}:${n}`,r)}const Se="@",Te="@.disabled";let Ae=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,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 i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new Oe("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);const s=e=>{Array.isArray(e)?e.forEach(s):this.engine.registerTrigger(n,r,t,e.name,e)};return e.data.animation.forEach(s),new Ee(this,r,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&t<this._microtaskId?this._zone.run(()=>e(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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)(n.Yb(n.H),n.Yb(te),n.Yb(n.B))},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})();class Oe{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,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,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}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,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==Se&&e==Te?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Ee extends Oe{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==Se?"."==e.charAt(1)&&e==Te?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if(e.charAt(0)==Se){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),s="";return r.charAt(0)!=Se&&([r,s]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,n,r,s,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let De=(()=>{class t extends te{constructor(t,e,i){super(t.body,e,i)}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(_e.d),n.Yb(T),n.Yb(wt))},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})();const Pe=new n.s("AnimationModuleType"),Ie=[{provide:T,useFactory:function(){return"function"==typeof ye()?new ve:new me}},{provide:Pe,useValue:"BrowserAnimations"},{provide:s.b,useClass:xe},{provide:wt,useFactory:function(){return new Ct}},{provide:te,useClass:De},{provide:n.H,useFactory:function(t,e,i){return new Ae(t,e,i)},deps:[r.d,te,n.B]}];let Me=(()=>{class t{}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)},providers:Ie,imports:[r.a]}),t})()},Rb7d:function(t,e){function i(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");var e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");var i=parseInt(e.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});var e=t.width&&t.width>=21?t.width:void 0;return{width:e,scale:e?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:i(t.color.dark||"#000000ff"),light:i(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,i){var n=e.getScale(t,i);return Math.floor((t+2*i.margin)*n)},e.qrToImageData=function(t,i,n){for(var r=i.modules.size,s=i.modules.data,a=e.getScale(r,n),o=Math.floor((r+2*n.margin)*a),l=n.margin*a,c=[n.color.light,n.color.dark],h=0;h<o;h++)for(var d=0;d<o;d++){var u=4*(h*o+d),p=n.color.light;h>=l&&d>=l&&h<o-l&&d<o-l&&(p=c[s[Math.floor((h-l)/a)*r+Math.floor((d-l)/a)]?1:0]),t[u++]=p.r,t[u++]=p.g,t[u++]=p.b,t[u]=p.a}}},STbY:function(t,e,i){"use strict";i.d(e,"a",function(){return F}),i.d(e,"b",function(){return R}),i.d(e,"c",function(){return H}),i.d(e,"d",function(){return B});var n=i("u47x"),r=i("8LU1"),s=i("FtGj"),a=i("fXoL"),o=i("XNiG"),l=i("quSY"),c=i("VRyK"),h=i("LRne"),d=i("7Hc7"),u=i("JX91"),p=i("eIep"),f=i("IzEk"),g=i("pLZG"),m=i("1G5W"),b=i("3E0/"),v=i("R0Ic"),y=i("+rOU"),_=i("ofXK"),x=i("FKr1"),w=i("rDax"),C=i("nLfN"),k=i("vxfF"),S=i("cH1L");const T=["mat-menu-item",""],A=["*"];function O(t,e){if(1&t){const t=a.Vb();a.Ub(0,"div",0),a.bc("keydown",function(e){return a.wc(t),a.fc()._handleKeydown(e)})("click",function(){return a.wc(t),a.fc().closed.emit("click")})("@transformMenu.start",function(e){return a.wc(t),a.fc()._onAnimationStart(e)})("@transformMenu.done",function(e){return a.wc(t),a.fc()._onAnimationDone(e)}),a.Ub(1,"div",1),a.jc(2),a.Tb(),a.Tb()}if(2&t){const t=a.fc();a.lc("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),a.Db("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const E={transformMenu:Object(v.m)("transformMenu",[Object(v.j)("void",Object(v.k)({opacity:0,transform:"scale(0.8)"})),Object(v.l)("void => enter",Object(v.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(v.k)({opacity:1,transform:"scale(1)"}))),Object(v.l)("* => void",Object(v.e)("100ms 25ms linear",Object(v.k)({opacity:0})))]),fadeInItems:Object(v.m)("fadeInItems",[Object(v.j)("showing",Object(v.k)({opacity:1})),Object(v.l)("void => *",[Object(v.k)({opacity:0}),Object(v.e)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},D=new a.s("MatMenuContent"),P=new a.s("MAT_MENU_PANEL");class I{}const M=Object(x.z)(Object(x.A)(I));let R=(()=>{class t extends M{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new o.a,this._focused=new o.a,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let r=0;r<n.length;r++){const e=n[r];null===(t=e.parentNode)||void 0===t||t.removeChild(e)}return(null===(e=i.textContent)||void 0===e?void 0:e.trim())||""}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.l),a.Ob(_.d),a.Ob(n.h),a.Ob(P,8))},t.\u0275cmp=a.Ib({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,e){1&t&&a.bc("click",function(t){return e._checkDisabled(t)})("mouseenter",function(){return e._handleMouseEnter()}),2&t&&(a.Db("role",e.role)("tabindex",e._getTabIndex())("aria-disabled",e.disabled.toString())("disabled",e.disabled||null),a.Gb("mat-menu-item",!0)("mat-menu-item-highlighted",e._highlighted)("mat-menu-item-submenu-trigger",e._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[a.zb],attrs:T,ngContentSelectors:A,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(t,e){1&t&&(a.kc(),a.jc(0),a.Pb(1,"div",0)),2&t&&(a.Cb(1),a.lc("matRippleDisabled",e.disableRipple||e.disabled)("matRippleTrigger",e._getHostElement()))},directives:[x.s],encapsulation:2,changeDetection:0}),t})();const L=new a.s("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let N=0,z=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new a.F,this._tabSubscription=l.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new o.a,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new a.o,this.close=this.closed,this.panelId="mat-menu-panel-"+N++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=Object(r.c)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Object(r.c)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.g(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Object(u.a)(this._directDescendantItems),Object(p.a)(t=>Object(c.a)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Object(u.a)(this._directDescendantItems),Object(p.a)(t=>Object(c.a)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case s.g:Object(s.s)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case s.i:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case s.m:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==s.p&&e!==s.d||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Object(f.a)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Object(u.a)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.l),a.Ob(a.B),a.Ob(L))},t.\u0275dir=a.Jb({type:t,contentQueries:function(t,e,i){if(1&t&&(a.Hb(i,D,1),a.Hb(i,R,1),a.Hb(i,R,0)),2&t){let t;a.sc(t=a.cc())&&(e.lazyContent=t.first),a.sc(t=a.cc())&&(e._allItems=t),a.sc(t=a.cc())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&a.Kc(a.N,1),2&t){let t;a.sc(t=a.cc())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),F=(()=>{class t extends z{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.l),a.Ob(a.B),a.Ob(L))},t.\u0275cmp=a.Ib({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&a.Db("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[a.Bb([{provide:P,useExisting:t}]),a.zb],ngContentSelectors:A,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(a.kc(),a.Dc(0,O,3,6,"ng-template"))},directives:[_.j],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[E.transformMenu,E.fadeInItems]},changeDetection:0}),t})();const j=new a.s("mat-menu-scroll-strategy"),U={provide:j,deps:[w.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},V=Object(C.f)({passive:!0});let B=(()=>{class t{constructor(t,e,i,n,r,s,o,c){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=o,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=l.a.EMPTY,this._hoverSubscription=l.a.EMPTY,this._menuCloseSubscription=l.a.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new a.o,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.o,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=r instanceof z?r:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,V),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,V),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof z&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof z?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Object(g.a)(t=>"void"===t.toState),Object(f.a)(1),Object(m.a)(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new w.d({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,r]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[s,a]=[n,r],[o,l]=[e,i],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",i=o="end"===e?"start":"end",c="bottom"===n?8:-8):this.menu.overlapTrigger||(s="top"===n?"bottom":"top",a="top"===r?"bottom":"top"),t.withPositions([{originX:e,originY:s,overlayX:o,overlayY:n,offsetY:c},{originX:i,originY:s,overlayX:l,overlayY:n,offsetY:c},{originX:e,originY:a,overlayX:o,overlayY:r,offsetY:-c},{originX:i,originY:a,overlayX:l,overlayY:r,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:Object(h.a)(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Object(g.a)(t=>t!==this._menuItemInstance),Object(g.a)(()=>this._menuOpen)):Object(h.a)();return Object(c.a)(t,i,n,e)}_handleMousedown(t){Object(n.l)(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;e!==s.f&&e!==s.n||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===s.m&&"ltr"===this.dir||e===s.i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Object(g.a)(t=>t===this._menuItemInstance&&!t.disabled),Object(b.a)(0,d.a)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof z&&this.menu._isAnimating?this.menu._animationDone.pipe(Object(f.a)(1),Object(b.a)(0,d.a),Object(m.a)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new y.g(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(w.c),a.Ob(a.l),a.Ob(a.R),a.Ob(j),a.Ob(P,8),a.Ob(R,10),a.Ob(S.b,8),a.Ob(n.h))},t.\u0275dir=a.Jb({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&a.bc("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&a.Db("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),Y=(()=>{class t{}return t.\u0275mod=a.Mb({type:t}),t.\u0275inj=a.Lb({factory:function(e){return new(e||t)},providers:[U],imports:[x.j]}),t})(),H=(()=>{class t{}return t.\u0275mod=a.Mb({type:t}),t.\u0275inj=a.Lb({factory:function(e){return new(e||t)},providers:[U],imports:[[_.c,x.j,x.t,w.f,Y],k.a,x.j,Y]}),t})()},SeVD:function(t,e,i){"use strict";i.d(e,"a",function(){return h});var n=i("ngJS"),r=i("NJ4a"),s=i("Lhse"),a=i("kJWO"),o=i("I55L"),l=i("c2HN"),c=i("XoHu");const h=t=>{if(t&&"function"==typeof t[a.a])return h=t,t=>{const e=h[a.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(o.a)(t))return Object(n.a)(t);if(Object(l.a)(t))return i=t,t=>(i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,r.a),t);if(t&&"function"==typeof t[s.a])return e=t,t=>{const i=e[s.a]();for(;;){let e;try{e=i.next()}catch(n){return t.error(n),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=Object(c.a)(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,i,h}},SpAZ:function(t,e,i){"use strict";function n(t){return t}i.d(e,"a",function(){return n})},V35J:function(t,e,i){var n=i("Wogr");function r(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new n(t*t),this.data.fill(0),this.reservedBit=new n(t*t),this.reservedBit.fill(0)}r.prototype.set=function(t,e,i,n){var r=t*this.size+e;this.data[r]=i,n&&(this.reservedBit[r]=!0)},r.prototype.get=function(t,e){return this.data[t*this.size+e]},r.prototype.xor=function(t,e,i){this.data[t*this.size+e]^=i},r.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=r},VRyK:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i("HDdC"),r=i("z+Ro"),s=i("bHdf"),a=i("yCtX");function o(...t){let e=Number.POSITIVE_INFINITY,i=null,o=t[t.length-1];return Object(r.a)(o)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof o&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof n.a?t[0]:Object(s.a)(e)(Object(a.a)(t,i))}},WMd4:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("EY2u"),r=i("LRne"),s=i("z6cu");let a=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,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,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Object(r.a)(this.value);case"E":return Object(s.a)(this.error);case"C":return Object(n.b)()}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})()},Wgwc:function(t,e,i){t.exports=function(){"use strict";var t=6e4,e=36e5,i="millisecond",n="second",r="minute",s="hour",a="day",o="week",l="month",c="quarter",h="year",d="date",u="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|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,g={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("_"),ordinal:function(t){var e=["th","st","nd","rd"],i=t%100;return"["+t+(e[(i-20)%10]||e[i]||e[0])+"]"}},m=function(t,e,i){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(i)+t},b={s:m,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),n=Math.floor(i/60),r=i%60;return(e<=0?"+":"-")+m(n,2,"0")+":"+m(r,2,"0")},m:function t(e,i){if(e.date()<i.date())return-t(i,e);var n=12*(i.year()-e.year())+(i.month()-e.month()),r=e.clone().add(n,l),s=i-r<0,a=e.clone().add(n+(s?-1:1),l);return+(-(n+(i-r)/(s?r-a:a-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:h,w:o,d:a,D:d,h:s,m:r,s:n,ms:i,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},v="en",y={};y[v]=g;var _="$isDayjsObject",x=function(t){return t instanceof S||!(!t||!t[_])},w=function t(e,i,n){var r;if(!e)return v;if("string"==typeof e){var s=e.toLowerCase();y[s]&&(r=s),i&&(y[s]=i,r=s);var a=e.split("-");if(!r&&a.length>1)return t(a[0])}else{var o=e.name;y[o]=e,r=o}return!n&&r&&(v=r),r||!n&&v},C=function(t,e){if(x(t))return t.clone();var i="object"==typeof e?e:{};return i.date=t,i.args=arguments,new S(i)},k=b;k.l=w,k.i=x,k.w=function(t,e){return C(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function g(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[_]=!0}var m=g.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(k.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var r=n[2]-1||0,s=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(e)}(t),this.init()},m.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()},m.$utils=function(){return k},m.isValid=function(){return!(this.$d.toString()===u)},m.isSame=function(t,e){var i=C(t);return this.startOf(e)<=i&&i<=this.endOf(e)},m.isAfter=function(t,e){return C(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<C(t)},m.$g=function(t,e,i){return k.u(t)?this[e]:this.set(i,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var i=this,c=!!k.u(e)||e,u=k.p(t),p=function(t,e){var n=k.w(i.$u?Date.UTC(i.$y,e,t):new Date(i.$y,e,t),i);return c?n:n.endOf(a)},f=function(t,e){return k.w(i.toDate()[t].apply(i.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),i)},g=this.$W,m=this.$M,b=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case h:return c?p(1,0):p(31,11);case l:return c?p(1,m):p(0,m+1);case o:var y=this.$locale().weekStart||0,_=(g<y?g+7:g)-y;return p(c?b-_:b+(6-_),m);case a:case d:return f(v+"Hours",0);case s:return f(v+"Minutes",1);case r:return f(v+"Seconds",2);case n:return f(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var o,c=k.p(t),u="set"+(this.$u?"UTC":""),p=(o={},o[a]=u+"Date",o[d]=u+"Date",o[l]=u+"Month",o[h]=u+"FullYear",o[s]=u+"Hours",o[r]=u+"Minutes",o[n]=u+"Seconds",o[i]=u+"Milliseconds",o)[c],f=c===a?this.$D+(e-this.$W):e;if(c===l||c===h){var g=this.clone().set(d,1);g.$d[p](f),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[k.p(t)]()},m.add=function(i,c){var d,u=this;i=Number(i);var p=k.p(c),f=function(t){var e=C(u);return k.w(e.date(e.date()+Math.round(t*i)),u)};if(p===l)return this.set(l,this.$M+i);if(p===h)return this.set(h,this.$y+i);if(p===a)return f(1);if(p===o)return f(7);var g=(d={},d[r]=t,d[s]=e,d[n]=1e3,d)[p]||1,m=this.$d.getTime()+i*g;return k.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,i=this.$locale();if(!this.isValid())return i.invalidDate||u;var n=t||"YYYY-MM-DDTHH:mm:ssZ",r=k.z(this),s=this.$H,a=this.$m,o=this.$M,l=i.weekdays,c=i.months,h=function(t,i,r,s){return t&&(t[i]||t(e,n))||r[i].slice(0,s)},d=function(t){return k.s(s%12||12,t,"0")},p=i.meridiem||function(t,e,i){var n=t<12?"AM":"PM";return i?n.toLowerCase():n};return n.replace(f,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return k.s(e.$y,4,"0");case"M":return o+1;case"MM":return k.s(o+1,2,"0");case"MMM":return h(i.monthsShort,o,c,3);case"MMMM":return h(c,o);case"D":return e.$D;case"DD":return k.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(i.weekdaysMin,e.$W,l,2);case"ddd":return h(i.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(s);case"HH":return k.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return p(s,a,!0);case"A":return p(s,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(e.$s);case"ss":return k.s(e.$s,2,"0");case"SSS":return k.s(e.$ms,3,"0");case"Z":return r}return null}(t)||r.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(i,d,u){var p,f=this,g=k.p(d),m=C(i),b=(m.utcOffset()-this.utcOffset())*t,v=this-m,y=function(){return k.m(f,m)};switch(g){case h:p=y()/12;break;case l:p=y();break;case c:p=y()/3;break;case o:p=(v-b)/6048e5;break;case a:p=(v-b)/864e5;break;case s:p=v/e;break;case r:p=v/t;break;case n:p=v/1e3;break;default:p=v}return u?p:k.a(p)},m.daysInMonth=function(){return this.endOf(l).$D},m.$locale=function(){return y[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var i=this.clone(),n=w(t,e,!0);return n&&(i.$L=n),i},m.clone=function(){return k.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),T=S.prototype;return C.prototype=T,[["$ms",i],["$s",n],["$m",r],["$H",s],["$W",a],["$M",l],["$y",h],["$D",d]].forEach(function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),C.extend=function(t,e){return t.$i||(t(e,S,C),t.$i=!0),C},C.locale=w,C.isDayjs=x,C.unix=function(t){return C(1e3*t)},C.en=y[v],C.Ls=y,C.p={},C}()},Wogr:function(t,e,i){"use strict";var n=i("49sm"),r=(s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(e){return!1}}())?2147483647:1073741823;function s(t,e,i){return s.TYPED_ARRAY_SUPPORT||this instanceof s?"number"==typeof t?l(this,t):function(t,e,i,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,i,n){if(i<0||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");var r;return r=void 0===i&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,i):new Uint8Array(e,i,n),s.TYPED_ARRAY_SUPPORT?r.__proto__=s.prototype:r=c(t,r),r}(t,e,i,n):"string"==typeof e?function(t,e){var i=0|d(e),n=o(t,i),r=n.write(e);return r!==i&&(n=n.slice(0,r)),n}(t,e):function(t,e){if(s.isBuffer(e)){var i=0|a(e.length),n=o(t,i);return 0===n.length||e.copy(n,0,0,i),n}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?o(t,0):c(t,e);if("Buffer"===e.type&&Array.isArray(e.data))return c(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}(this,t,e,i):new s(t,e,i)}function a(t){if(t>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function o(t,e){var i;return s.TYPED_ARRAY_SUPPORT?(i=new Uint8Array(e)).__proto__=s.prototype:(null===(i=t)&&(i=new s(e)),i.length=e),i}function l(t,e){var i=o(t,e<0?0:0|a(e));if(!s.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)i[n]=0;return i}function c(t,e){for(var i=e.length<0?0:0|a(e.length),n=o(t,i),r=0;r<i;r+=1)n[r]=255&e[r];return n}function h(t,e){var i;e=e||1/0;for(var n=t.length,r=null,s=[],a=0;a<n;++a){if((i=t.charCodeAt(a))>55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&s.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&s.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&s.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;s.push(i)}else if(i<2048){if((e-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return s}function d(t){return s.isBuffer(t)?t.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)?t.byteLength:("string"!=typeof t&&(t=""+t),0===t.length?0:h(t).length)}s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),s.prototype.write=function(t,e,i){void 0===e||void 0===i&&"string"==typeof e?(i=this.length,e=0):isFinite(e)&&(e|=0,isFinite(i)?i|=0:i=void 0);var n=this.length-e;if((void 0===i||i>n)&&(i=n),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(t,e,i,n){return function(t,e,i,n){for(var r=0;r<n&&!(r+i>=e.length||r>=t.length);++r)e[r+i]=t[r];return r}(h(e,t.length-i),t,i,n)}(this,t,e,i)},s.prototype.slice=function(t,e){var i,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),s.TYPED_ARRAY_SUPPORT)(i=this.subarray(t,e)).__proto__=s.prototype;else{var r=e-t;i=new s(r,void 0);for(var a=0;a<r;++a)i[a]=this[a+t]}return i},s.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-i&&(n=t.length-e+i);var r,a=n-i;if(this===t&&i<e&&e<n)for(r=a-1;r>=0;--r)t[r+e]=this[r+i];else if(a<1e3||!s.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+a),e);return a},s.prototype.fill=function(t,e,i){if("string"==typeof t){if("string"==typeof e?(e=0,i=this.length):"string"==typeof i&&(i=this.length),1===t.length){var n=t.charCodeAt(0);n<256&&(t=n)}}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;var r;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(r=e;r<i;++r)this[r]=t;else{var a=s.isBuffer(t)?t:new s(t),o=a.length;for(r=0;r<i-e;++r)this[r+e]=a[r%o]}return this},s.concat=function(t,e){if(!n(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o(null,0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var r=l(null,e),a=0;for(i=0;i<t.length;++i){var c=t[i];if(!s.isBuffer(c))throw new TypeError('"list" argument must be an Array of Buffers');c.copy(r,a),a+=c.length}return r},s.byteLength=d,s.prototype._isBuffer=!0,s.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.exports=s},Wp6s:function(t,e,i){"use strict";i.d(e,"a",function(){return p}),i.d(e,"b",function(){return d}),i.d(e,"c",function(){return l}),i.d(e,"d",function(){return u}),i.d(e,"e",function(){return f}),i.d(e,"f",function(){return h}),i.d(e,"g",function(){return c});var n=i("R1ws"),r=i("FKr1"),s=i("fXoL");const a=["*",[["mat-card-footer"]]],o=["*","mat-card-footer"];let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),d=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&s.Gb("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),t})(),p=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(n.a,8))},t.\u0275cmp=s.Ib({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&s.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:o,decls:2,vars:0,template:function(t,e){1&t&&(s.kc(a),s.jc(0),s.jc(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275mod=s.Mb({type:t}),t.\u0275inj=s.Lb({factory:function(e){return new(e||t)},imports:[[r.j],r.j]}),t})()},XNiG:function(t,e,i){"use strict";i.d(e,"b",function(){return c}),i.d(e,"a",function(){return h});var n=i("HDdC"),r=i("7o/Q"),s=i("quSY"),a=i("9ppp"),o=i("Ylt2"),l=i("2QA8");class c extends r.a{constructor(t){super(t),this.destination=t}}let h=(()=>{class t extends n.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new c(this)}lift(t){const e=new d(this,this);return e.operator=t,e}next(t){if(this.closed)throw new a.a;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let r=0;r<i;r++)n[r].next(t)}}error(t){if(this.closed)throw new a.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,i=e.length,n=e.slice();for(let r=0;r<i;r++)n[r].error(t);this.observers.length=0}complete(){if(this.closed)throw new a.a;this.isStopped=!0;const{observers:t}=this,e=t.length,i=t.slice();for(let n=0;n<e;n++)i[n].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new a.a;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new a.a;return this.hasError?(t.error(this.thrownError),s.a.EMPTY):this.isStopped?(t.complete(),s.a.EMPTY):(this.observers.push(t),new o.a(this,t))}asObservable(){const t=new n.a;return t.source=this,t}}return t.create=(t,e)=>new d(t,e),t})();class d extends h{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):s.a.EMPTY}}},Xg9T:function(t,e,i){t.exports=function(){"use strict";return function(t,e,i){var n=function(t){return t&&(t.indexOf?t:t.s)},r=function(t,e,i,r,s){var a=t.name?t:t.$locale(),o=n(a[e]),l=n(a[i]),c=o||l.map(function(t){return t.slice(0,r)});if(!s)return c;var h=a.weekStart;return c.map(function(t,e){return c[(e+(h||0))%7]})},s=function(){return i.Ls[i.locale()]},a=function(t,e){return t.formats[e]||function(t){return t.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,i){return e||i.slice(1)})}(t.formats[e.toUpperCase()])},o=function(){var t=this;return{months:function(e){return e?e.format("MMMM"):r(t,"months")},monthsShort:function(e){return e?e.format("MMM"):r(t,"monthsShort","months",3)},firstDayOfWeek:function(){return t.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):r(t,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):r(t,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):r(t,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return a(t.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};e.prototype.localeData=function(){return o.bind(this)()},i.localeData=function(){var t=s();return{firstDayOfWeek:function(){return t.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(e){return a(t,e)},meridiem:t.meridiem,ordinal:t.ordinal}},i.months=function(){return r(s(),"months")},i.monthsShort=function(){return r(s(),"monthsShort","months",3)},i.weekdays=function(t){return r(s(),"weekdays",null,null,t)},i.weekdaysShort=function(t){return r(s(),"weekdaysShort","weekdays",3,t)},i.weekdaysMin=function(t){return r(s(),"weekdaysMin","weekdays",2,t)}}}()},XnfZ:function(t,e,i){t.exports=function(){"use strict";var t="day";return function(e,i,n){var r=function(e){return e.add(4-e.isoWeekday(),t)},s=i.prototype;s.isoWeekYear=function(){return r(this).year()},s.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),t);var i,s,a,o=r(this),l=(i=this.isoWeekYear(),a=4-(s=(this.$u?n.utc:n)().year(i).startOf("year")).isoWeekday(),s.isoWeekday()>4&&(a+=7),s.add(a,t));return o.diff(l,"week")+1},s.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var a=s.startOf;s.startOf=function(t,e){var i=this.$utils(),n=!!i.u(e)||e;return"isoweek"===i.p(t)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(t,e)}}}()},XoHu:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,"a",function(){return n})},YhS8:function(t,e,i){"use strict";i.d(e,"a",function(){return vt}),i.d(e,"b",function(){return yt});var n=i("ofXK"),r=i("fXoL"),s=i("3Pt+"),a=i("Wgwc"),o=i("Xg9T"),l=i("I631"),c=i("XnfZ");const h=["pickerContainer"],d=function(t){return{active:t}};function u(t,e){if(1&t){const t=r.Vb();r.Ub(0,"li"),r.Ub(1,"button",7),r.bc("click",function(i){r.wc(t);const n=e.$implicit;return r.fc().clickRange(i,n)}),r.Ec(2),r.Tb(),r.Tb()}if(2&t){const t=e.$implicit,i=r.fc();r.Cb(1),r.lc("disabled",i.disableRange(t))("ngClass",r.pc(3,d,t===i.chosenRange)),r.Cb(1),r.Fc(t)}}function p(t,e){1&t&&r.Pb(0,"th")}function f(t,e){if(1&t){const t=r.Vb();r.Sb(0),r.Ub(1,"th",19),r.bc("click",function(){r.wc(t);const e=r.fc(3);return e.clickPrev(e.sideEnum.left)}),r.Tb(),r.Rb()}}function g(t,e){1&t&&(r.Sb(0),r.Pb(1,"th"),r.Rb())}function m(t,e){if(1&t&&(r.Ub(0,"option",25),r.Ec(1),r.Tb()),2&t){const t=e.$implicit,i=r.fc(4);r.lc("disabled",i.calendarVariables.left.dropdowns.inMinYear&&t<i.calendarVariables.left.minDate.month()||i.calendarVariables.left.dropdowns.inMaxYear&&t>i.calendarVariables.left.maxDate.month())("value",t)("selected",i.calendarVariables.left.dropdowns.currentMonth==t),r.Cb(1),r.Gc(" ",i.locale.monthNames[t]," ")}}function b(t,e){if(1&t&&(r.Ub(0,"option",26),r.Ec(1),r.Tb()),2&t){const t=e.$implicit,i=r.fc(4);r.lc("selected",t===i.calendarVariables.left.dropdowns.currentYear),r.Cb(1),r.Gc(" ",t," ")}}function v(t,e){if(1&t){const t=r.Vb();r.Sb(0),r.Ub(1,"div",20),r.Ec(2),r.Ub(3,"select",21),r.bc("change",function(e){r.wc(t);const i=r.fc(3);return i.monthChanged(e,i.sideEnum.left)}),r.Dc(4,m,2,4,"option",22),r.Tb(),r.Tb(),r.Ub(5,"div",20),r.Ec(6),r.Ub(7,"select",23),r.bc("change",function(e){r.wc(t);const i=r.fc(3);return i.yearChanged(e,i.sideEnum.left)}),r.Dc(8,b,2,2,"option",24),r.Tb(),r.Tb(),r.Rb()}if(2&t){const t=r.fc(3);r.Cb(2),r.Gc(" ",t.locale.monthNames[null==t.calendarVariables||null==t.calendarVariables.left?null:t.calendarVariables.left.calendar[1][1].month()]," "),r.Cb(2),r.lc("ngForOf",t.calendarVariables.left.dropdowns.monthArrays),r.Cb(2),r.Gc(" ",null==t.calendarVariables||null==t.calendarVariables.left?null:t.calendarVariables.left.calendar[1][1].format(" YYYY")," "),r.Cb(2),r.lc("ngForOf",t.calendarVariables.left.dropdowns.yearArrays)}}function y(t,e){if(1&t&&(r.Sb(0),r.Ec(1),r.Rb()),2&t){const t=r.fc(3);r.Cb(1),r.Hc(" ",t.locale.monthNames[null==t.calendarVariables||null==t.calendarVariables.left?null:t.calendarVariables.left.calendar[1][1].month()]," ",null==t.calendarVariables||null==t.calendarVariables.left?null:t.calendarVariables.left.calendar[1][1].format(" YYYY")," ")}}function _(t,e){if(1&t){const t=r.Vb();r.Sb(0),r.Ub(1,"th",27),r.bc("click",function(){r.wc(t);const e=r.fc(3);return e.clickNext(e.sideEnum.left)}),r.Tb(),r.Rb()}}function x(t,e){1&t&&(r.Sb(0),r.Pb(1,"th"),r.Rb())}function w(t,e){if(1&t&&(r.Ub(0,"th",28),r.Ub(1,"span"),r.Ec(2),r.Tb(),r.Tb()),2&t){const t=r.fc(3);r.Cb(2),r.Fc(t.locale.weekLabel)}}function C(t,e){if(1&t&&(r.Ub(0,"th"),r.Ub(1,"span"),r.Ec(2),r.Tb(),r.Tb()),2&t){const t=e.$implicit;r.Cb(2),r.Fc(t)}}function k(t,e){if(1&t&&(r.Ub(0,"td",28),r.Ub(1,"span"),r.Ec(2),r.Tb(),r.Tb()),2&t){const t=r.fc().$implicit,e=r.fc(3);r.Cb(2),r.Fc(e.calendarVariables.left.calendar[t][0].week())}}function S(t,e){if(1&t&&(r.Ub(0,"td",28),r.Ub(1,"span"),r.Ec(2),r.Tb(),r.Tb()),2&t){const t=r.fc().$implicit,e=r.fc(3);r.Cb(2),r.Fc(e.calendarVariables.left.calendar[t][0].isoWeek())}}function T(t,e){if(1&t){const t=r.Vb();r.Ub(0,"td",30),r.bc("click",function(i){r.wc(t);const n=e.$implicit,s=r.fc().$implicit,a=r.fc(3);return a.clickDate(i,a.sideEnum.left,s,n)})("mouseenter",function(i){r.wc(t);const n=e.$implicit,s=r.fc().$implicit,a=r.fc(3);return a.hoverDate(i,a.sideEnum.left,s,n)}),r.Ub(1,"span"),r.Ec(2),r.Tb(),r.Tb()}if(2&t){const t=e.$implicit,i=r.fc().$implicit,n=r.fc(3);r.Eb(n.calendarVariables.left.classes[i][t]),r.Cb(2),r.Fc(n.calendarVariables.left.calendar[i][t].date())}}function A(t,e){if(1&t&&(r.Ub(0,"tr"),r.Dc(1,k,3,1,"td",16),r.Dc(2,S,3,1,"td",16),r.Dc(3,T,3,3,"td",29),r.Tb()),2&t){const t=e.$implicit,i=r.fc(3);r.Eb(i.calendarVariables.left.classes[t].classList),r.Cb(1),r.lc("ngIf",i.showWeekNumbers),r.Cb(1),r.lc("ngIf",i.showISOWeekNumbers),r.Cb(1),r.lc("ngForOf",i.calendarVariables.left.calCols)}}function O(t,e){if(1&t&&(r.Ub(0,"table",12),r.Ub(1,"thead"),r.Ub(2,"tr"),r.Dc(3,p,1,0,"th",13),r.Dc(4,f,2,0,"ng-container",13),r.Dc(5,g,2,0,"ng-container",13),r.Ub(6,"th",14),r.Dc(7,v,9,4,"ng-container",13),r.Dc(8,y,2,2,"ng-container",13),r.Tb(),r.Dc(9,_,2,0,"ng-container",13),r.Dc(10,x,2,0,"ng-container",13),r.Tb(),r.Ub(11,"tr",15),r.Dc(12,w,3,1,"th",16),r.Dc(13,C,3,1,"th",3),r.Tb(),r.Tb(),r.Ub(14,"tbody",17),r.Dc(15,A,4,5,"tr",18),r.Tb(),r.Tb()),2&t){const t=r.fc(2);r.Cb(3),r.lc("ngIf",t.showWeekNumbers||t.showISOWeekNumbers),r.Cb(1),r.lc("ngIf",!t.calendarVariables.left.minDate||t.calendarVariables.left.minDate.isBefore(t.calendarVariables.left.calendar.firstDay)&&(!t.linkedCalendars||!0)),r.Cb(1),r.lc("ngIf",!(!t.calendarVariables.left.minDate||t.calendarVariables.left.minDate.isBefore(t.calendarVariables.left.calendar.firstDay))),r.Cb(2),r.lc("ngIf",t.showDropdowns&&t.calendarVariables.left.dropdowns),r.Cb(1),r.lc("ngIf",!t.showDropdowns||!t.calendarVariables.left.dropdowns),r.Cb(1),r.lc("ngIf",(!t.calendarVariables.left.maxDate||t.calendarVariables.left.maxDate.isAfter(t.calendarVariables.left.calendar.lastDay))&&(!t.linkedCalendars||t.singleDatePicker)),r.Cb(1),r.lc("ngIf",!((!t.calendarVariables.left.maxDate||t.calendarVariables.left.maxDate.isAfter(t.calendarVariables.left.calendar.lastDay))&&(!t.linkedCalendars||t.singleDatePicker))),r.Cb(2),r.lc("ngIf",t.showWeekNumbers||t.showISOWeekNumbers),r.Cb(1),r.lc("ngForOf",t.locale.daysOfWeek),r.Cb(2),r.lc("ngForOf",t.calendarVariables.left.calRows)}}function E(t,e){if(1&t&&(r.Ub(0,"option",40),r.Ec(1),r.Tb()),2&t){const t=e.$implicit,i=r.fc(3);r.lc("value",t)("disabled",i.timepickerVariables.left.disabledHours.indexOf(t)>-1),r.Cb(1),r.Fc(t)}}function D(t,e){if(1&t&&(r.Ub(0,"option",40),r.Ec(1),r.Tb()),2&t){const t=e.$implicit,i=e.index,n=r.fc(3);r.lc("value",t)("disabled",n.timepickerVariables.left.disabledMinutes.indexOf(t)>-1),r.Cb(1),r.Fc(n.timepickerVariables.left.minutesLabel[i])}}function P(t,e){if(1&t&&(r.Ub(0,"option",40),r.Ec(1),r.Tb()),2&t){const t=e.$implicit,i=e.index,n=r.fc(4);r.lc("value",t)("disabled",n.timepickerVariables.left.disabledSeconds.indexOf(t)>-1),r.Cb(1),r.Fc(n.timepickerVariables.left.secondsLabel[i])}}function I(t,e){if(1&t){const t=r.Vb();r.Ub(0,"select",41),r.bc("ngModelChange",function(e){return r.wc(t),r.fc(3).timepickerVariables.left.selectedSecond=e})("ngModelChange",function(e){r.wc(t);const i=r.fc(3);return i.timeChanged(e,i.sideEnum.left)}),r.Dc(1,P,2,3,"option",34),r.Tb()}if(2&t){const t=r.fc(3);r.lc("disabled",!t.startDate)("ngModel",t.timepickerVariables.left.selectedSecond),r.Cb(1),r.lc("ngForOf",t.timepickerVariables.left.seconds)}}function M(t,e){if(1&t){const t=r.Vb();r.Ub(0,"select",42),r.bc("ngModelChange",function(e){return r.wc(t),r.fc(3).timepickerVariables.left.ampmModel=e})("ngModelChange",function(e){r.wc(t);const i=r.fc(3);return i.timeChanged(e,i.sideEnum.left)}),r.Ub(1,"option",43),r.Ec(2,"AM"),r.Tb(),r.Ub(3,"option",44),r.Ec(4,"PM"),r.Tb(),r.Tb()}if(2&t){const t=r.fc(3);r.lc("ngModel",t.timepickerVariables.left.ampmModel),r.Cb(1),r.lc("disabled",t.timepickerVariables.left.amDisabled),r.Cb(2),r.lc("disabled",t.timepickerVariables.left.pmDisabled)}}function R(t,e){if(1&t){const t=r.Vb();r.Ub(0,"div",31),r.Ub(1,"div",32),r.Ub(2,"select",33),r.bc("ngModelChange",function(e){return r.wc(t),r.fc(2).timepickerVariables.left.selectedHour=e})("ngModelChange",function(e){r.wc(t);const i=r.fc(2);return i.timeChanged(e,i.sideEnum.left)}),r.Dc(3,E,2,3,"option",34),r.Tb(),r.Tb(),r.Ub(4,"div",32),r.Ub(5,"select",35),r.bc("ngModelChange",function(e){return r.wc(t),r.fc(2).timepickerVariables.left.selectedMinute=e})("ngModelChange",function(e){r.wc(t);const i=r.fc(2);return i.timeChanged(e,i.sideEnum.left)}),r.Dc(6,D,2,3,"option",34),r.Tb(),r.Pb(7,"span",36),r.Pb(8,"span",37),r.Tb(),r.Ub(9,"div",32),r.Dc(10,I,2,3,"select",38),r.Pb(11,"span",36),r.Pb(12,"span",37),r.Tb(),r.Ub(13,"div",32),r.Dc(14,M,5,3,"select",39),r.Pb(15,"span",36),r.Pb(16,"span",37),r.Tb(),r.Tb()}if(2&t){const t=r.fc(2);r.Cb(2),r.lc("disabled",!t.startDate)("ngModel",t.timepickerVariables.left.selectedHour),r.Cb(1),r.lc("ngForOf",t.timepickerVariables.left.hours),r.Cb(2),r.lc("disabled",!t.startDate)("ngModel",t.timepickerVariables.left.selectedMinute),r.Cb(1),r.lc("ngForOf",t.timepickerVariables.left.minutes),r.Cb(4),r.lc("ngIf",t.timePickerSeconds),r.Cb(4),r.lc("ngIf",!t.timePicker24Hour)}}const L=function(t,e){return{right:t,left:e}};function N(t,e){if(1&t&&(r.Ub(0,"div",8),r.Ub(1,"div",9),r.Dc(2,O,16,10,"table",10),r.Tb(),r.Dc(3,R,17,8,"div",11),r.Tb()),2&t){const t=r.fc();r.lc("ngClass",r.qc(3,L,t.singleDatePicker,!t.singleDatePicker)),r.Cb(2),r.lc("ngIf",t.calendarVariables),r.Cb(1),r.lc("ngIf",t.timePicker)}}function z(t,e){1&t&&r.Pb(0,"th")}function F(t,e){if(1&t){const t=r.Vb();r.Sb(0),r.Ub(1,"th",19),r.bc("click",function(){r.wc(t);const e=r.fc(3);return e.clickPrev(e.sideEnum.right)}),r.Tb(),r.Rb()}}function j(t,e){1&t&&(r.Sb(0),r.Pb(1,"th"),r.Rb())}function U(t,e){if(1&t&&(r.Ub(0,"option",25),r.Ec(1),r.Tb()),2&t){const t=e.$implicit,i=r.fc(4);r.lc("disabled",i.calendarVariables.right.dropdowns.inMinYear&&i.calendarVariables.right.minDate&&t<i.calendarVariables.right.minDate.month()||i.calendarVariables.right.dropdowns.inMaxYear&&i.calendarVariables.right.maxDate&&t>i.calendarVariables.right.maxDate.month())("value",t)("selected",i.calendarVariables.right.dropdowns.currentMonth==t),r.Cb(1),r.Gc(" ",i.locale.monthNames[t]," ")}}function V(t,e){if(1&t&&(r.Ub(0,"option",26),r.Ec(1),r.Tb()),2&t){const t=e.$implicit,i=r.fc(4);r.lc("selected",t===i.calendarVariables.right.dropdowns.currentYear),r.Cb(1),r.Gc(" ",t," ")}}function B(t,e){if(1&t){const t=r.Vb();r.Sb(0),r.Ub(1,"div",20),r.Ec(2),r.Ub(3,"select",21),r.bc("change",function(e){r.wc(t);const i=r.fc(3);return i.monthChanged(e,i.sideEnum.right)}),r.Dc(4,U,2,4,"option",22),r.Tb(),r.Tb(),r.Ub(5,"div",20),r.Ec(6),r.Ub(7,"select",23),r.bc("change",function(e){r.wc(t);const i=r.fc(3);return i.yearChanged(e,i.sideEnum.right)}),r.Dc(8,V,2,2,"option",24),r.Tb(),r.Tb(),r.Rb()}if(2&t){const t=r.fc(3);r.Cb(2),r.Gc(" ",t.locale.monthNames[null==t.calendarVariables||null==t.calendarVariables.right?null:t.calendarVariables.right.calendar[1][1].month()]," "),r.Cb(2),r.lc("ngForOf",t.calendarVariables.right.dropdowns.monthArrays),r.Cb(2),r.Gc(" ",null==t.calendarVariables||null==t.calendarVariables.right?null:t.calendarVariables.right.calendar[1][1].format(" YYYY")," "),r.Cb(2),r.lc("ngForOf",t.calendarVariables.right.dropdowns.yearArrays)}}function Y(t,e){if(1&t&&(r.Sb(0),r.Ec(1),r.Rb()),2&t){const t=r.fc(3);r.Cb(1),r.Hc(" ",t.locale.monthNames[null==t.calendarVariables||null==t.calendarVariables.right?null:t.calendarVariables.right.calendar[1][1].month()]," ",null==t.calendarVariables||null==t.calendarVariables.right?null:t.calendarVariables.right.calendar[1][1].format(" YYYY")," ")}}function H(t,e){if(1&t){const t=r.Vb();r.Sb(0),r.Ub(1,"th",27),r.bc("click",function(){r.wc(t);const e=r.fc(3);return e.clickNext(e.sideEnum.right)}),r.Tb(),r.Rb()}}function W(t,e){1&t&&(r.Sb(0),r.Pb(1,"th"),r.Rb())}function X(t,e){if(1&t&&(r.Ub(0,"th",28),r.Ub(1,"span"),r.Ec(2),r.Tb(),r.Tb()),2&t){const t=r.fc(3);r.Cb(2),r.Fc(t.locale.weekLabel)}}function G(t,e){if(1&t&&(r.Ub(0,"th"),r.Ub(1,"span"),r.Ec(2),r.Tb(),r.Tb()),2&t){const t=e.$implicit;r.Cb(2),r.Fc(t)}}function q(t,e){if(1&t&&(r.Ub(0,"td",28),r.Ub(1,"span"),r.Ec(2),r.Tb(),r.Tb()),2&t){const t=r.fc().$implicit,e=r.fc(3);r.Cb(2),r.Fc(e.calendarVariables.right.calendar[t][0].week())}}function $(t,e){if(1&t&&(r.Ub(0,"td",28),r.Ub(1,"span"),r.Ec(2),r.Tb(),r.Tb()),2&t){const t=r.fc().$implicit,e=r.fc(3);r.Cb(2),r.Fc(e.calendarVariables.right.calendar[t][0].isoWeek())}}function K(t,e){if(1&t){const t=r.Vb();r.Ub(0,"td",30),r.bc("click",function(i){r.wc(t);const n=e.$implicit,s=r.fc().$implicit,a=r.fc(3);return a.clickDate(i,a.sideEnum.right,s,n)})("mouseenter",function(i){r.wc(t);const n=e.$implicit,s=r.fc().$implicit,a=r.fc(3);return a.hoverDate(i,a.sideEnum.right,s,n)}),r.Ub(1,"span"),r.Ec(2),r.Tb(),r.Tb()}if(2&t){const t=e.$implicit,i=r.fc().$implicit,n=r.fc(3);r.Eb(n.calendarVariables.right.classes[i][t]),r.Cb(2),r.Fc(n.calendarVariables.right.calendar[i][t].date())}}function Z(t,e){if(1&t&&(r.Ub(0,"tr"),r.Dc(1,q,3,1,"td",16),r.Dc(2,$,3,1,"td",16),r.Dc(3,K,3,3,"td",29),r.Tb()),2&t){const t=e.$implicit,i=r.fc(3);r.Eb(i.calendarVariables.right.classes[t].classList),r.Cb(1),r.lc("ngIf",i.showWeekNumbers),r.Cb(1),r.lc("ngIf",i.showISOWeekNumbers),r.Cb(1),r.lc("ngForOf",i.calendarVariables.right.calCols)}}function Q(t,e){if(1&t&&(r.Ub(0,"table",12),r.Ub(1,"thead"),r.Ub(2,"tr"),r.Dc(3,z,1,0,"th",13),r.Dc(4,F,2,0,"ng-container",13),r.Dc(5,j,2,0,"ng-container",13),r.Ub(6,"th",46),r.Dc(7,B,9,4,"ng-container",13),r.Dc(8,Y,2,2,"ng-container",13),r.Tb(),r.Dc(9,H,2,0,"ng-container",13),r.Dc(10,W,2,0,"ng-container",13),r.Tb(),r.Ub(11,"tr",15),r.Dc(12,X,3,1,"th",16),r.Dc(13,G,3,1,"th",3),r.Tb(),r.Tb(),r.Ub(14,"tbody"),r.Dc(15,Z,4,5,"tr",18),r.Tb(),r.Tb()),2&t){const t=r.fc(2);r.Cb(3),r.lc("ngIf",t.showWeekNumbers||t.showISOWeekNumbers),r.Cb(1),r.lc("ngIf",(!t.calendarVariables.right.minDate||t.calendarVariables.right.minDate.isBefore(t.calendarVariables.right.calendar.firstDay))&&!t.linkedCalendars),r.Cb(1),r.lc("ngIf",!((!t.calendarVariables.right.minDate||t.calendarVariables.right.minDate.isBefore(t.calendarVariables.right.calendar.firstDay))&&!t.linkedCalendars)),r.Cb(2),r.lc("ngIf",t.showDropdowns&&t.calendarVariables.right.dropdowns),r.Cb(1),r.lc("ngIf",!t.showDropdowns||!t.calendarVariables.right.dropdowns),r.Cb(1),r.lc("ngIf",!t.calendarVariables.right.maxDate||t.calendarVariables.right.maxDate.isAfter(t.calendarVariables.right.calendar.lastDay)&&(!t.linkedCalendars||t.singleDatePicker||!0)),r.Cb(1),r.lc("ngIf",!(!t.calendarVariables.right.maxDate||t.calendarVariables.right.maxDate.isAfter(t.calendarVariables.right.calendar.lastDay))),r.Cb(2),r.lc("ngIf",t.showWeekNumbers||t.showISOWeekNumbers),r.Cb(1),r.lc("ngForOf",t.locale.daysOfWeek),r.Cb(2),r.lc("ngForOf",t.calendarVariables.right.calRows)}}function J(t,e){if(1&t&&(r.Ub(0,"option",40),r.Ec(1),r.Tb()),2&t){const t=e.$implicit,i=r.fc(3);r.lc("value",t)("disabled",i.timepickerVariables.right.disabledHours.indexOf(t)>-1),r.Cb(1),r.Fc(t)}}function tt(t,e){if(1&t&&(r.Ub(0,"option",40),r.Ec(1),r.Tb()),2&t){const t=e.$implicit,i=e.index,n=r.fc(3);r.lc("value",t)("disabled",n.timepickerVariables.right.disabledMinutes.indexOf(t)>-1),r.Cb(1),r.Fc(n.timepickerVariables.right.minutesLabel[i])}}function et(t,e){if(1&t&&(r.Ub(0,"option",40),r.Ec(1),r.Tb()),2&t){const t=e.$implicit,i=e.index,n=r.fc(4);r.lc("value",t)("disabled",n.timepickerVariables.right.disabledSeconds.indexOf(t)>-1),r.Cb(1),r.Fc(n.timepickerVariables.right.secondsLabel[i])}}function it(t,e){if(1&t){const t=r.Vb();r.Ub(0,"select",41),r.bc("ngModelChange",function(e){return r.wc(t),r.fc(3).timepickerVariables.right.selectedSecond=e})("ngModelChange",function(e){r.wc(t);const i=r.fc(3);return i.timeChanged(e,i.sideEnum.right)}),r.Dc(1,et,2,3,"option",34),r.Tb()}if(2&t){const t=r.fc(3);r.lc("disabled",!t.startDate)("ngModel",t.timepickerVariables.right.selectedSecond),r.Cb(1),r.lc("ngForOf",t.timepickerVariables.right.seconds)}}function nt(t,e){if(1&t){const t=r.Vb();r.Ub(0,"select",42),r.bc("ngModelChange",function(e){return r.wc(t),r.fc(3).timepickerVariables.right.ampmModel=e})("ngModelChange",function(e){r.wc(t);const i=r.fc(3);return i.timeChanged(e,i.sideEnum.right)}),r.Ub(1,"option",43),r.Ec(2,"AM"),r.Tb(),r.Ub(3,"option",44),r.Ec(4,"PM"),r.Tb(),r.Tb()}if(2&t){const t=r.fc(3);r.lc("ngModel",t.timepickerVariables.right.ampmModel),r.Cb(1),r.lc("disabled",t.timepickerVariables.right.amDisabled),r.Cb(2),r.lc("disabled",t.timepickerVariables.right.pmDisabled)}}function rt(t,e){if(1&t){const t=r.Vb();r.Ub(0,"div",31),r.Ub(1,"div",32),r.Ub(2,"select",47),r.bc("ngModelChange",function(e){return r.wc(t),r.fc(2).timepickerVariables.right.selectedHour=e})("ngModelChange",function(e){r.wc(t);const i=r.fc(2);return i.timeChanged(e,i.sideEnum.right)}),r.Dc(3,J,2,3,"option",34),r.Tb(),r.Pb(4,"span",36),r.Pb(5,"span",37),r.Tb(),r.Ub(6,"div",32),r.Ub(7,"select",35),r.bc("ngModelChange",function(e){return r.wc(t),r.fc(2).timepickerVariables.right.selectedMinute=e})("ngModelChange",function(e){r.wc(t);const i=r.fc(2);return i.timeChanged(e,i.sideEnum.right)}),r.Dc(8,tt,2,3,"option",34),r.Tb(),r.Pb(9,"span",36),r.Pb(10,"span",37),r.Tb(),r.Ub(11,"div",32),r.Dc(12,it,2,3,"select",38),r.Pb(13,"span",36),r.Pb(14,"span",37),r.Tb(),r.Ub(15,"div",32),r.Dc(16,nt,5,3,"select",39),r.Pb(17,"span",36),r.Pb(18,"span",37),r.Tb(),r.Tb()}if(2&t){const t=r.fc(2);r.Cb(2),r.lc("disabled",!t.startDate)("ngModel",t.timepickerVariables.right.selectedHour),r.Cb(1),r.lc("ngForOf",t.timepickerVariables.right.hours),r.Cb(4),r.lc("disabled",!t.startDate)("ngModel",t.timepickerVariables.right.selectedMinute),r.Cb(1),r.lc("ngForOf",t.timepickerVariables.right.minutes),r.Cb(4),r.lc("ngIf",t.timePickerSeconds),r.Cb(4),r.lc("ngIf",!t.timePicker24Hour)}}function st(t,e){if(1&t&&(r.Ub(0,"div",45),r.Ub(1,"div",9),r.Dc(2,Q,16,10,"table",10),r.Tb(),r.Dc(3,rt,19,8,"div",11),r.Tb()),2&t){const t=r.fc();r.Cb(2),r.lc("ngIf",t.calendarVariables),r.Cb(1),r.lc("ngIf",t.timePicker)}}function at(t,e){if(1&t){const t=r.Vb();r.Ub(0,"button",53),r.bc("click",function(){return r.wc(t),r.fc(2).clear()}),r.Ec(1),r.ec(),r.Ub(2,"svg",54),r.Pb(3,"path",55),r.Tb(),r.Tb()}if(2&t){const t=r.fc(2);r.lc("title",t.locale.clearLabel),r.Cb(1),r.Gc(" ",t.locale.clearLabel," ")}}function ot(t,e){if(1&t){const t=r.Vb();r.Ub(0,"button",56),r.bc("click",function(e){return r.wc(t),r.fc(2).clickCancel(e)}),r.Ec(1),r.Tb()}if(2&t){const t=r.fc(2);r.Cb(1),r.Fc(t.locale.cancelLabel)}}function lt(t,e){if(1&t){const t=r.Vb();r.Ub(0,"div",48),r.Ub(1,"div",49),r.Dc(2,at,4,2,"button",50),r.Dc(3,ot,2,1,"button",51),r.Ub(4,"button",52),r.bc("click",function(e){return r.wc(t),r.fc().clickApply(e)}),r.Ec(5),r.Tb(),r.Tb(),r.Tb()}if(2&t){const t=r.fc();r.Cb(2),r.lc("ngIf",t.showClearButton),r.Cb(1),r.lc("ngIf",t.showCancel),r.Cb(1),r.lc("disabled",t.applyBtn.disabled),r.Cb(1),r.Fc(t.locale.applyLabel)}}const ct=function(t,e,i,n,r,s,a){return{ltr:t,rtl:e,shown:i,hidden:n,inline:r,double:s,"show-ranges":a}},ht=a;ht.extend(o);const dt=new r.s("daterangepicker.config"),ut={direction:"ltr",separator:" - ",weekLabel:"W",applyLabel:"Apply",cancelLabel:"Cancel",clearLabel:"Clear",customRangeLabel:"Custom range",daysOfWeek:ht.weekdaysMin(),monthNames:ht.monthsShort(),firstDay:ht.localeData().firstDayOfWeek()};let pt=(()=>{class t{constructor(t){this._config=t}get config(){return this._config?Object.assign(Object.assign({},ut),this._config):ut}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(dt))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})();const ft=a;ft.extend(o),ft.extend(l),ft.extend(c);var gt=function(t){return t.left="left",t.right="right",t}({});let mt=(()=>{class t{constructor(t,e,i){this.el=t,this._ref=e,this._localeService=i,this._old={start:null,end:null},this.calendarVariables={left:{},right:{}},this.tooltiptext=[],this.timepickerVariables={left:{},right:{}},this.daterangepicker={start:new s.e,end:new s.e},this.applyBtn={disabled:!1},this.startDate=ft().startOf("day"),this.endDate=ft().endOf("day"),this.dateLimit=null,this.sideEnum=gt,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.linkedCalendars=!1,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.maxSpan=!1,this.lockStartDate=!1,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.showClearButton=!1,this.firstMonthDayClass=null,this.lastMonthDayClass=null,this.emptyWeekRowClass=null,this.emptyWeekColumnClass=null,this.firstDayOfNextMonthClass=null,this.lastDayOfPreviousMonthClass=null,this.showCancel=!1,this.keepCalendarOpeningWithRange=!1,this.showRangeLabelOnInput=!1,this.customRangeDirection=!1,this.rangesArray=[],this.isShown=!1,this.inline=!0,this.leftCalendar={},this.rightCalendar={},this.showCalInRanges=!1,this.nowHoveredDate=null,this.pickingDate=!1,this.options={},this.closeOnAutoApply=!0,this._locale={},this._ranges={},this.choosedDate=new r.o,this.rangeClicked=new r.o,this.datesUpdated=new r.o,this.startDateChanged=new r.o,this.endDateChanged=new r.o,this.cancelClicked=new r.o}set minDate(t){this._minDate=Object(a.isDayjs)(t)?t:"string"==typeof t?ft(t):null}getMinDate(){return this._minDate}set maxDate(t){this._maxDate=Object(a.isDayjs)(t)?t:"string"==typeof t?ft(t):null}getMaxDate(){return this._maxDate}set locale(t){this._locale=Object.assign(Object.assign({},this._localeService.config),t)}get locale(){return this._locale}set ranges(t){this._ranges=t,this.renderRanges()}get ranges(){return this._ranges}ngOnInit(){this._buildLocale();const t=[...this.locale.daysOfWeek];if(this.locale.firstDay=this.locale.firstDay%7,0!==this.locale.firstDay){let e=this.locale.firstDay;for(;e>0;)t.push(t.shift()),e--}this.locale.daysOfWeek=t,this.inline&&(this._old.start=this.startDate.clone(),this._old.end=this.endDate.clone()),this.startDate&&this.timePicker&&(this.setStartDate(this.startDate),this.renderTimePicker(gt.left)),this.endDate&&this.timePicker&&(this.setEndDate(this.endDate),this.renderTimePicker(gt.right)),this.updateMonthsInView(),this.renderCalendar(gt.left),this.renderCalendar(gt.right),this.renderRanges()}renderRanges(){let t,e;if(this.rangesArray=[],"object"==typeof this.ranges){for(const i in this.ranges)if(this.ranges[i]){t="string"==typeof this.ranges[i][0]?ft(this.ranges[i][0],this.locale.format):ft(this.ranges[i][0]),e="string"==typeof this.ranges[i][1]?ft(this.ranges[i][1],this.locale.format):ft(this.ranges[i][1]),this.getMinDate()&&t.isBefore(this.getMinDate())&&(t=this.getMinDate().clone());let n=this.getMaxDate();if(this.maxSpan&&n&&t.clone().add(this.maxSpan).isAfter(n)&&(n=t.clone().add(this.maxSpan)),n&&e.isAfter(n)&&(e=n.clone()),this.getMinDate()&&e.isBefore(this.getMinDate(),this.timePicker?"minute":"day")||n&&t.isAfter(n,this.timePicker?"minute":"day"))continue;const r=document.createElement("textarea");r.innerHTML=i,this.ranges[r.value]=[t,e]}for(const t in this.ranges)this.ranges[t]&&this.rangesArray.push(t);this.showCustomRangeLabel&&this.rangesArray.push(this.locale.customRangeLabel),this.showCalInRanges=!this.rangesArray.length||this.alwaysShowCalendars,this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"))}}renderTimePicker(t){let e,i;const n=this.getMaxDate();t===gt.left?(e=this.startDate.clone(),i=this.getMinDate()):t===gt.right&&this.endDate?(e=this.endDate.clone(),i=this.startDate):t!==gt.right||this.endDate||(e=this._getDateWithTime(this.startDate,gt.right),e.isBefore(this.startDate)&&(e=this.startDate.clone()),i=this.startDate);const r=this.timePicker24Hour?0:1,s=this.timePicker24Hour?23:12;this.timepickerVariables[t]={hours:[],minutes:[],minutesLabel:[],seconds:[],secondsLabel:[],disabledHours:[],disabledMinutes:[],disabledSeconds:[],selectedHour:0,selectedMinute:0,selectedSecond:0};for(let a=r;a<=s;a++){let r=a;this.timePicker24Hour||(r=e.hour()>=12?12===a?12:a+12:12===a?0:a);const s=e.clone().hour(r);let o=!1;i&&s.minute(59).isBefore(i)&&(o=!0),n&&s.minute(0).isAfter(n)&&(o=!0),this.timepickerVariables[t].hours.push(a),r!==e.hour()||o?o&&this.timepickerVariables[t].disabledHours.push(a):this.timepickerVariables[t].selectedHour=a}for(let a=0;a<60;a+=this.timePickerIncrement){const r=a<10?"0"+a:a,s=e.clone().minute(a);let o=!1;i&&s.second(59).isBefore(i)&&(o=!0),n&&s.second(0).isAfter(n)&&(o=!0),this.timepickerVariables[t].minutes.push(a),this.timepickerVariables[t].minutesLabel.push(r),e.minute()!==a||o?o&&this.timepickerVariables[t].disabledMinutes.push(a):this.timepickerVariables[t].selectedMinute=a}if(this.timePickerSeconds)for(let a=0;a<60;a++){const r=a<10?"0"+a:a,s=e.clone().second(a);let o=!1;i&&s.isBefore(i)&&(o=!0),n&&s.isAfter(n)&&(o=!0),this.timepickerVariables[t].seconds.push(a),this.timepickerVariables[t].secondsLabel.push(r),e.second()!==a||o?o&&this.timepickerVariables[t].disabledSeconds.push(a):this.timepickerVariables[t].selectedSecond=a}this.timePicker24Hour||(i&&e.clone().hour(12).minute(0).second(0).isBefore(i)&&(this.timepickerVariables[t].amDisabled=!0),n&&e.clone().hour(0).minute(0).second(0).isAfter(n)&&(this.timepickerVariables[t].pmDisabled=!0),this.timepickerVariables[t].ampmModel=e.hour()>=12?"PM":"AM"),this.timepickerVariables[t].selected=e}renderCalendar(t){const e=t===gt.left?this.leftCalendar:this.rightCalendar,i=e.month.month(),n=e.month.year(),r=e.month.hour(),s=e.month.minute(),a=e.month.second(),o=ft(new Date(n,i)).daysInMonth(),l=ft(new Date(n,i,1)),c=ft(new Date(n,i,o)),h=ft(l).subtract(1,"month").month(),d=ft(l).subtract(1,"month").year(),u=ft(new Date(d,h)).daysInMonth(),p=l.day(),f=[];f.firstDay=l,f.lastDay=c;for(let y=0;y<6;y++)f[y]=[];let g=u-p+this.locale.firstDay+1;g>u&&(g-=7),p===this.locale.firstDay&&(g=u-6);let m=ft(new Date(d,h,g,12,s,a));for(let y=0,_=0,x=0;y<42;y++,_++,m=ft(m).add(24,"hour"))y>0&&_%7==0&&(_=0,x++),f[x][_]=m.clone().hour(r).minute(s).second(a),m=m.hour(12),this.getMinDate()&&f[x][_].format("YYYY-MM-DD")===this.getMinDate().format("YYYY-MM-DD")&&f[x][_].isBefore(this.getMinDate())&&"left"===t&&(f[x][_]=this.getMinDate().clone()),this.getMaxDate()&&f[x][_].format("YYYY-MM-DD")===this.getMaxDate().format("YYYY-MM-DD")&&f[x][_].isAfter(this.getMaxDate())&&"right"===t&&(f[x][_]=this.getMaxDate().clone());t===gt.left?this.leftCalendar.calendar=f:this.rightCalendar.calendar=f;const b="left"===t?this.getMinDate():this.startDate;let v=this.getMaxDate();if(null===this.endDate&&this.dateLimit){const t=this.startDate.clone().add(this.dateLimit,"day").endOf("day");v&&!t.isBefore(v)||(v=t)}if(this.calendarVariables[t]={month:i,year:n,hour:r,minute:s,second:a,daysInMonth:o,firstDay:l,lastDay:c,lastMonth:h,lastYear:d,daysInLastMonth:u,dayOfWeek:p,calRows:Array.from(Array(6).keys()),calCols:Array.from(Array(7).keys()),classes:{},minDate:b,maxDate:v,calendar:f},this.showDropdowns){const e=f[1][1].month(),i=f[1][1].year(),n=ft().year(),r=v&&v.year()||n+5,s=b&&b.year()||n-50,a=i===s,o=i===r,l=[];for(let t=s;t<=r;t++)l.push(t);this.calendarVariables[t].dropdowns={currentMonth:e,currentYear:i,maxYear:r,minYear:s,inMinYear:a,inMaxYear:o,monthArrays:Array.from(Array(12).keys()),yearArrays:l}}this._buildCells(f,t)}setStartDate(t){"string"==typeof t&&(this.startDate=ft(t,this.locale.format)),"object"==typeof t&&(this.pickingDate=!0,this.startDate=ft(t)),this.timePicker||(this.pickingDate=!0,this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&(this.startDate=this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.getMinDate()&&this.startDate.isBefore(this.getMinDate())&&(this.startDate=this.getMinDate().clone(),this.timePicker&&this.timePickerIncrement&&(this.startDate=this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement))),this.getMaxDate()&&this.startDate.isAfter(this.getMaxDate())&&(this.startDate=this.getMaxDate().clone(),this.timePicker&&this.timePickerIncrement&&(this.startDate=this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement))),this.isShown||this.updateElement(),this.startDateChanged.emit({startDate:this.startDate}),this.updateMonthsInView()}setEndDate(t){"string"==typeof t&&(this.endDate=ft(t,this.locale.format)),"object"==typeof t&&(this.pickingDate=!1,this.endDate=ft(t)),this.timePicker||(this.pickingDate=!1,this.endDate=this.endDate.add(1,"d").startOf("day").subtract(1,"second")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.getMaxDate()&&this.endDate.isAfter(this.getMaxDate())&&(this.endDate=this.getMaxDate().clone()),this.dateLimit&&this.startDate.clone().add(this.dateLimit,"day").isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.dateLimit,"day")),this.endDateChanged.emit({endDate:this.endDate}),this.updateMonthsInView()}isInvalidDate(t){return!1}isCustomDate(t){return!1}isTooltipDate(t){return null}updateView(){this.timePicker&&(this.renderTimePicker(gt.left),this.renderTimePicker(gt.right)),this.updateMonthsInView(),this.updateCalendars()}updateMonthsInView(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate&&this.leftCalendar&&this.startDate.format("YYYY-MM")===this.leftCalendar.month.format("YYYY-MM")||this.startDate&&this.rightCalendar&&this.startDate.format("YYYY-MM")===this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")===this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")===this.rightCalendar.month.format("YYYY-MM")))return;this.startDate&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.linkedCalendars||this.endDate.month()===this.startDate.month()&&this.endDate.year()===this.startDate.year()?this.startDate.clone().date(2).add(1,"month"):this.endDate.clone().date(2))}else this.leftCalendar.month.format("YYYY-MM")!==this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!==this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.getMaxDate()&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.getMaxDate()&&(this.rightCalendar.month=this.getMaxDate().clone().date(2),this.leftCalendar.month=this.getMaxDate().clone().date(2).subtract(1,"month"))}updateCalendars(){this.renderCalendar(gt.left),this.renderCalendar(gt.right),null!==this.endDate&&this.calculateChosenLabel()}updateElement(){const t=this.locale.displayFormat?this.locale.displayFormat:this.locale.format;!this.singleDatePicker&&this.autoUpdateInput?this.startDate&&this.endDate&&(this.chosenLabel=this.rangesArray.length&&!0===this.showRangeLabelOnInput&&this.chosenRange&&this.locale.customRangeLabel!==this.chosenRange?this.chosenRange:this.startDate.format(t)+this.locale.separator+this.endDate.format(t)):this.autoUpdateInput&&(this.chosenLabel=this.startDate.format(t))}remove(){this.isShown=!1}calculateChosenLabel(){this.locale&&this.locale.separator||this._buildLocale();let t=!0,e=0;if(this.rangesArray.length>0){for(const i in this.ranges)if(this.ranges[i]){if(this.timePicker){const n=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(n)===this.ranges[i][0].format(n)&&this.endDate.format(n)===this.ranges[i][1].format(n)){t=!1,this.chosenRange=this.rangesArray[e];break}}else if(this.startDate.format("YYYY-MM-DD")===this.ranges[i][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")===this.ranges[i][1].format("YYYY-MM-DD")){t=!1,this.chosenRange=this.rangesArray[e];break}e++}t&&(this.chosenRange=this.showCustomRangeLabel?this.locale.customRangeLabel:null,this.showCalInRanges=!0)}this.updateElement()}clickApply(t){if(this.singleDatePicker||!this.startDate||this.endDate||(this.endDate=this._getDateWithTime(this.startDate,gt.right),this.calculateChosenLabel()),this.isInvalidDate&&this.startDate&&this.endDate){let t=this.startDate.clone();for(;t.isBefore(this.endDate);){if(this.isInvalidDate(t)){this.endDate=t.subtract(1,"days"),this.calculateChosenLabel();break}t=t.add(1,"days")}}this.chosenLabel&&this.choosedDate.emit({chosenLabel:this.chosenLabel,startDate:this.startDate,endDate:this.endDate}),this.datesUpdated.emit({startDate:this.startDate,endDate:this.endDate}),(t||this.closeOnAutoApply&&!t)&&this.hide()}clickCancel(t){this.startDate=this._old.start,this.endDate=this._old.end,this.inline&&this.updateView(),this.cancelClicked.emit(),this.hide()}monthChanged(t,e){const i=this.calendarVariables[e].dropdowns.currentYear,n=parseInt(t.target.value,10);this.monthOrYearChanged(n,i,e)}yearChanged(t,e){const i=this.calendarVariables[e].dropdowns.currentMonth,n=parseInt(t.target.value,10);this.monthOrYearChanged(i,n,e)}timeChanged(t,e){let i=parseInt(this.timepickerVariables[e].selectedHour,10);const n=parseInt(this.timepickerVariables[e].selectedMinute,10),r=this.timePickerSeconds?parseInt(this.timepickerVariables[e].selectedSecond,10):0;if(!this.timePicker24Hour){const t=this.timepickerVariables[e].ampmModel;"PM"===t&&i<12&&(i+=12),"AM"===t&&12===i&&(i=0)}if(e===gt.left){let t=this.startDate.clone();t=t.hour(i),t=t.minute(n),t=t.second(r),this.setStartDate(t),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")===t.format("YYYY-MM-DD")&&this.endDate.isBefore(t)?this.setEndDate(t.clone()):!this.endDate&&this.timePicker&&this._getDateWithTime(t,gt.right).isBefore(t)&&(this.timepickerVariables[gt.right].selectedHour=i,this.timepickerVariables[gt.right].selectedMinute=n,this.timepickerVariables[gt.right].selectedSecond=r)}else if(this.endDate){let t=this.endDate.clone();t=t.hour(i),t=t.minute(n),t=t.second(r),this.setEndDate(t)}this.updateCalendars(),this.renderTimePicker(gt.left),this.renderTimePicker(gt.right),this.autoApply&&this.clickApply()}monthOrYearChanged(t,e,i){const n=i===gt.left;n||(e<this.startDate.year()||e===this.startDate.year()&&t<this.startDate.month())&&(t=this.startDate.month(),e=this.startDate.year()),this.getMinDate()&&(e<this.getMinDate().year()||e===this.getMinDate().year()&&t<this.getMinDate().month())&&(t=this.getMinDate().month(),e=this.getMinDate().year()),this.getMaxDate()&&(e>this.getMaxDate().year()||e===this.getMaxDate().year()&&t>this.getMaxDate().month())&&(t=this.getMaxDate().month(),e=this.getMaxDate().year()),this.calendarVariables[i].dropdowns.currentYear=e,this.calendarVariables[i].dropdowns.currentMonth=t,n?(this.leftCalendar.month=this.leftCalendar.month.month(t).year(e),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month=this.rightCalendar.month.month(t).year(e),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()}clickPrev(t){t===gt.left?(this.leftCalendar.month=this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&(this.rightCalendar.month=this.rightCalendar.month.subtract(1,"month"))):this.rightCalendar.month=this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()}clickNext(t){t===gt.left?this.leftCalendar.month=this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month=this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&(this.leftCalendar.month=this.leftCalendar.month.add(1,"month"))),this.updateCalendars()}hoverDate(t,e,i,n){const r=this.calendarVariables.left.calendar[i][n],s=this.calendarVariables.right.calendar[i][n];this.pickingDate&&(this.nowHoveredDate=e===gt.left?r:s,this.renderCalendar(gt.left),this.renderCalendar(gt.right));const a=e===gt.left?this.tooltiptext[r]:this.tooltiptext[s];a.length>0&&t.target.setAttribute("title",a)}clickDate(t,e,i,n){if("TD"===t.target.tagName){if(!t.target.classList.contains("available"))return}else if("SPAN"===t.target.tagName&&!t.target.parentElement.classList.contains("available"))return;this.rangesArray.length&&(this.chosenRange=this.locale.customRangeLabel);let r=e===gt.left?this.leftCalendar.calendar[i][n]:this.rightCalendar.calendar[i][n];(this.endDate||r.isBefore(this.startDate,"day")&&!1===this.customRangeDirection)&&!1===this.lockStartDate?(this.timePicker&&(r=this._getDateWithTime(r,gt.left)),this.endDate=null,this.setStartDate(r.clone())):!this.endDate&&r.isBefore(this.startDate)&&!1===this.customRangeDirection?this.setEndDate(this.startDate.clone()):(this.timePicker&&(r=this._getDateWithTime(r,gt.right)),!0===r.isBefore(this.startDate,"day")&&!0===this.customRangeDirection?(this.setEndDate(this.startDate),this.setStartDate(r.clone())):this.setEndDate(r.clone()),this.autoApply&&this.calculateChosenLabel()),this.singleDatePicker&&(this.setEndDate(this.startDate),this.updateElement(),this.autoApply&&this.clickApply()),this.updateView(),this.autoApply&&this.startDate&&this.endDate&&this.clickApply(),t.stopPropagation()}clickRange(t,e){if(this.chosenRange=e,e===this.locale.customRangeLabel)this.isShown=!0,this.showCalInRanges=!0;else{const t=this.ranges[e];if(this.startDate=t[0].clone(),this.endDate=t[1].clone(),this.showRangeLabelOnInput&&e!==this.locale.customRangeLabel?this.chosenLabel=e:this.calculateChosenLabel(),this.showCalInRanges=!this.rangesArray.length||this.alwaysShowCalendars,this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day")),this.alwaysShowCalendars||(this.isShown=!1),this.rangeClicked.emit({label:e,dates:t}),!this.keepCalendarOpeningWithRange||this.autoApply)this.clickApply();else{if(!this.alwaysShowCalendars)return this.clickApply();if(this.getMaxDate()&&this.getMaxDate().isSame(t[0],"month"))this.rightCalendar.month=this.rightCalendar.month.month(t[0].month()),this.rightCalendar.month=this.rightCalendar.month.year(t[0].year()),this.leftCalendar.month=this.leftCalendar.month.month(t[0].month()-1),this.leftCalendar.month=this.leftCalendar.month.year(t[1].year());else{this.leftCalendar.month=this.leftCalendar.month.month(t[0].month()),this.leftCalendar.month=this.leftCalendar.month.year(t[0].year());const e=t[0].clone().add(1,"month");this.rightCalendar.month=this.rightCalendar.month.month(e.month()),this.rightCalendar.month=this.rightCalendar.month.year(e.year())}this.updateCalendars(),this.timePicker&&(this.renderTimePicker(gt.left),this.renderTimePicker(gt.right))}}}show(t){this.isShown||(this._old.start=this.startDate.clone(),this._old.end=this.endDate.clone(),this.isShown=!0,this.updateView())}hide(t){this.isShown&&(this.endDate||(this._old.start&&(this.startDate=this._old.start.clone()),this._old.end&&(this.endDate=this._old.end.clone())),!this.startDate.isSame(this._old.start)||this.endDate.isSame(this._old.end),this.updateElement(),this.isShown=!1,this._ref.detectChanges())}handleInternalClick(t){t.stopPropagation()}updateLocale(t){for(const e in t)t.hasOwnProperty(e)&&(this.locale[e]=t[e],"customRangeLabel"===e&&this.renderRanges())}clear(){this.startDate=ft().startOf("day"),this.endDate=ft().endOf("day"),this.choosedDate.emit({chosenLabel:"",startDate:null,endDate:null}),this.datesUpdated.emit({startDate:null,endDate:null}),this.hide()}disableRange(t){if(t===this.locale.customRangeLabel)return!1;const e=this.ranges[t],i=e.every(t=>!!this.getMinDate()&&t.isBefore(this.getMinDate())),n=e.every(t=>!!this.getMaxDate()&&t.isAfter(this.getMaxDate()));return i||n}_getDateWithTime(t,e){let i=parseInt(this.timepickerVariables[e].selectedHour,10);if(!this.timePicker24Hour){const t=this.timepickerVariables[e].ampmModel;"PM"===t&&i<12&&(i+=12),"AM"===t&&12===i&&(i=0)}const n=parseInt(this.timepickerVariables[e].selectedMinute,10),r=this.timePickerSeconds?parseInt(this.timepickerVariables[e].selectedSecond,10):0;return t.clone().hour(i).minute(n).second(r)}_buildLocale(){this.locale=Object.assign(Object.assign({},this._localeService.config),this.locale),this.locale.format||(this.locale.format=this.timePicker?ft.localeData().longDateFormat("lll"):ft.localeData().longDateFormat("L"))}_buildCells(t,e){for(let i=0;i<6;i++){this.calendarVariables[e].classes[i]={};const n=[];this.emptyWeekRowClass&&Array.from(Array(7).keys()).some(n=>t[i][n].month()!==this.calendarVariables[e].month)&&n.push(this.emptyWeekRowClass);for(let r=0;r<7;r++){const n=[];this.emptyWeekColumnClass&&t[i][r].month()!==this.calendarVariables[e].month&&n.push(this.emptyWeekColumnClass),t[i][r].isSame(new Date,"day")&&n.push("today"),t[i][r].isoWeekday()>5&&n.push("weekend"),t[i][r].month()!==t[1][1].month()&&(n.push("off"),this.lastDayOfPreviousMonthClass&&(t[i][r].month()<t[1][1].month()||0===t[1][1].month())&&t[i][r].date()===this.calendarVariables[e].daysInLastMonth&&n.push(this.lastDayOfPreviousMonthClass),this.firstDayOfNextMonthClass&&(t[i][r].month()>t[1][1].month()||0===t[i][r].month())&&1===t[i][r].date()&&n.push(this.firstDayOfNextMonthClass)),this.firstMonthDayClass&&t[i][r].month()===t[1][1].month()&&t[i][r].date()===t.firstDay.date()&&n.push(this.firstMonthDayClass),this.lastMonthDayClass&&t[i][r].month()===t[1][1].month()&&t[i][r].date()===t.lastDay.date()&&n.push(this.lastMonthDayClass),this.getMinDate()&&t[i][r].isBefore(this.getMinDate(),"day")&&n.push("off","disabled"),this.calendarVariables[e].maxDate&&t[i][r].isAfter(this.calendarVariables[e].maxDate,"day")&&n.push("off","disabled"),this.isInvalidDate(t[i][r])&&n.push("off","disabled","invalid"),this.startDate&&t[i][r].format("YYYY-MM-DD")===this.startDate.format("YYYY-MM-DD")&&n.push("active","start-date"),null!=this.endDate&&t[i][r].format("YYYY-MM-DD")===this.endDate.format("YYYY-MM-DD")&&n.push("active","end-date"),(null!=this.nowHoveredDate&&this.pickingDate||null!=this.endDate)&&t[i][r]>this.startDate&&(t[i][r]<this.endDate||t[i][r]<this.nowHoveredDate&&this.pickingDate)&&!n.find(t=>"off"===t)&&n.push("in-range");const s=this.isCustomDate(t[i][r]);!1!==s&&("string"==typeof s?n.push(s):Array.prototype.push.apply(n,s));const a=this.isTooltipDate(t[i][r]);this.tooltiptext[t[i][r]]=a?"string"==typeof a?a:"Put the tooltip as the returned value of isTooltipDate":"";let o="",l=!1;for(let t=0;t<n.length;t++)o+=n[t]+" ","disabled"===n[t]&&(l=!0);l||(o+="available"),this.calendarVariables[e].classes[i][r]=o.replace(/^\s+|\s+$/g,"")}this.calendarVariables[e].classes[i].classList=n.join(" ")}}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.l),r.Ob(r.h),r.Ob(pt))},t.\u0275cmp=r.Ib({type:t,selectors:[["ngx-daterangepicker-material"]],viewQuery:function(t,e){if(1&t&&r.Kc(h,3),2&t){let t;r.sc(t=r.cc())&&(e.pickerContainer=t.first)}},hostBindings:function(t,e){1&t&&r.bc("click",function(t){return e.handleInternalClick(t)})},inputs:{startDate:"startDate",endDate:"endDate",dateLimit:"dateLimit",autoApply:"autoApply",singleDatePicker:"singleDatePicker",showDropdowns:"showDropdowns",showWeekNumbers:"showWeekNumbers",showISOWeekNumbers:"showISOWeekNumbers",linkedCalendars:"linkedCalendars",autoUpdateInput:"autoUpdateInput",alwaysShowCalendars:"alwaysShowCalendars",maxSpan:"maxSpan",lockStartDate:"lockStartDate",timePicker:"timePicker",timePicker24Hour:"timePicker24Hour",timePickerIncrement:"timePickerIncrement",timePickerSeconds:"timePickerSeconds",showClearButton:"showClearButton",firstMonthDayClass:"firstMonthDayClass",lastMonthDayClass:"lastMonthDayClass",emptyWeekRowClass:"emptyWeekRowClass",emptyWeekColumnClass:"emptyWeekColumnClass",firstDayOfNextMonthClass:"firstDayOfNextMonthClass",lastDayOfPreviousMonthClass:"lastDayOfPreviousMonthClass",showCancel:"showCancel",keepCalendarOpeningWithRange:"keepCalendarOpeningWithRange",showRangeLabelOnInput:"showRangeLabelOnInput",customRangeDirection:"customRangeDirection",closeOnAutoApply:"closeOnAutoApply",minDate:"minDate",maxDate:"maxDate",locale:"locale",ranges:"ranges",isInvalidDate:"isInvalidDate",isCustomDate:"isCustomDate",isTooltipDate:"isTooltipDate",showCustomRangeLabel:"showCustomRangeLabel",drops:"drops",opens:"opens"},outputs:{choosedDate:"choosedDate",rangeClicked:"rangeClicked",datesUpdated:"datesUpdated",startDateChanged:"startDateChanged",endDateChanged:"endDateChanged",cancelClicked:"cancelClicked"},features:[r.Bb([{provide:s.k,useExisting:Object(r.V)(()=>t),multi:!0}])],decls:8,vars:15,consts:[[1,"md-drppicker",3,"ngClass"],["pickerContainer",""],[1,"ranges"],[4,"ngFor","ngForOf"],["class","calendar",3,"ngClass",4,"ngIf"],["class","calendar right",4,"ngIf"],["class","buttons",4,"ngIf"],["type","button",3,"disabled","ngClass","click"],[1,"calendar",3,"ngClass"],[1,"calendar-table"],["class","table-condensed",4,"ngIf"],["class","calendar-time",4,"ngIf"],[1,"table-condensed"],[4,"ngIf"],["colspan","5",1,"month","drp-animate"],[1,"week-days"],["class","week",4,"ngIf"],[1,"drp-animate"],[3,"class",4,"ngFor","ngForOf"],[1,"prev","available",3,"click"],[1,"dropdowns"],[1,"monthselect",3,"change"],[3,"disabled","value","selected",4,"ngFor","ngForOf"],[1,"yearselect",3,"change"],[3,"selected",4,"ngFor","ngForOf"],[3,"disabled","value","selected"],[3,"selected"],[1,"next","available",3,"click"],[1,"week"],[3,"class","click","mouseenter",4,"ngFor","ngForOf"],[3,"click","mouseenter"],[1,"calendar-time"],[1,"select"],[1,"hourselect","select-item",3,"disabled","ngModel","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[1,"select-item","minuteselect",3,"disabled","ngModel","ngModelChange"],[1,"select-highlight"],[1,"select-bar"],["class","select-item secondselect",3,"disabled","ngModel","ngModelChange",4,"ngIf"],["class","select-item ampmselect",3,"ngModel","ngModelChange",4,"ngIf"],[3,"value","disabled"],[1,"select-item","secondselect",3,"disabled","ngModel","ngModelChange"],[1,"select-item","ampmselect",3,"ngModel","ngModelChange"],["value","AM",3,"disabled"],["value","PM",3,"disabled"],[1,"calendar","right"],["colspan","5",1,"month"],[1,"select-item","hourselect",3,"disabled","ngModel","ngModelChange"],[1,"buttons"],[1,"buttons_input"],["class","btn btn-default clear","type","button",3,"title","click",4,"ngIf"],["class","btn btn-default","type","button",3,"click",4,"ngIf"],["type","button",1,"btn",3,"disabled","click"],["type","button",1,"btn","btn-default","clear",3,"title","click"],["xmlns","http://www.w3.org/2000/svg","width","30","height","30","viewBox","0 -5 24 24"],["d","M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"],["type","button",1,"btn","btn-default",3,"click"]],template:function(t,e){1&t&&(r.Ub(0,"div",0,1),r.Ub(2,"div",2),r.Ub(3,"ul"),r.Dc(4,u,3,5,"li",3),r.Tb(),r.Tb(),r.Dc(5,N,4,6,"div",4),r.Dc(6,st,4,2,"div",5),r.Dc(7,lt,6,4,"div",6),r.Tb()),2&t&&(r.Eb("drops-"+e.drops+"-"+e.opens),r.lc("ngClass",r.rc(7,ct,"ltr"===e.locale.direction,"rtl"===e.locale.direction,e.isShown||e.inline,!e.isShown&&!e.inline,e.inline,!e.singleDatePicker&&e.showCalInRanges,e.rangesArray.length)),r.Cb(4),r.lc("ngForOf",e.rangesArray),r.Cb(1),r.lc("ngIf",e.showCalInRanges),r.Cb(1),r.lc("ngIf",e.showCalInRanges&&!e.singleDatePicker),r.Cb(1),r.lc("ngIf",!e.autoApply&&(!e.rangesArray.length||e.showCalInRanges&&!e.singleDatePicker)))},directives:[n.j,n.k,n.l,s.q,s.w,s.u,s.m,s.p],styles:['.md-drppicker{position:absolute;font-family:Roboto,sans-serif;color:inherit;border-radius:4px;width:278px;padding:4px;margin-top:-10px;overflow:hidden;z-index:1000;font-size:14px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(0,0,0,.16),0 2px 8px 0 rgba(0,0,0,.12)}.md-drppicker.double{width:auto}.md-drppicker.inline{position:relative;display:inline-block}.md-drppicker:after,.md-drppicker:before{position:absolute;display:inline-block;border-bottom-color:rgba(0,0,0,.2);content:""}.md-drppicker.openscenter:after,.md-drppicker.openscenter:before{left:0;right:0;width:0;margin-left:auto;margin-right:auto}.md-drppicker.single .calendar,.md-drppicker.single .ranges{float:none}.md-drppicker.shown{transform:scale(1);transition:all .1s ease-in-out;transform-origin:0 0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.md-drppicker.shown.drops-up-left{transform-origin:100% 100%}.md-drppicker.shown.drops-up-right{transform-origin:0 100%}.md-drppicker.shown.drops-down-left{transform-origin:100% 0}.md-drppicker.shown.drops-down-right{transform-origin:0 0}.md-drppicker.shown.drops-down-center{transform-origin:NaN%}.md-drppicker.shown.drops-up-center{transform-origin:50%}.md-drppicker.shown .calendar{display:block}.md-drppicker.hidden{transition:all .1s ease;transform:scale(0);transform-origin:0 0;cursor:default;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.md-drppicker.hidden.drops-up-left{transform-origin:100% 100%}.md-drppicker.hidden.drops-up-right{transform-origin:0 100%}.md-drppicker.hidden.drops-down-left{transform-origin:100% 0}.md-drppicker.hidden.drops-down-right{transform-origin:0 0}.md-drppicker.hidden.drops-down-center{transform-origin:50% 0}.md-drppicker.hidden.drops-up-center{transform-origin:50% 100%}.md-drppicker.hidden .calendar{display:none}.md-drppicker .calendar{max-width:270px;margin:4px}.md-drppicker .calendar.single .calendar-table{border:none}.md-drppicker .calendar td,.md-drppicker .calendar th{padding:0;white-space:nowrap;text-align:center;min-width:32px}.md-drppicker .calendar td span,.md-drppicker .calendar th span{pointer-events:none}.md-drppicker .calendar-table{border:1px solid #fff;padding:4px;border-radius:4px;background-color:#fff}.md-drppicker table{width:100%;margin:0}.md-drppicker th{color:#988c8c}.md-drppicker td,.md-drppicker th{text-align:center;width:20px;height:20px;border-radius:4px;border:1px solid transparent;white-space:nowrap;cursor:pointer;height:2em;width:2em}.md-drppicker td.available.prev,.md-drppicker th.available.prev{display:block;background-image:url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K");background-repeat:no-repeat;background-size:.5em;background-position:50%;opacity:.8;transition:background-color .2s ease;border-radius:2em}.md-drppicker td.available.prev:hover,.md-drppicker th.available.prev:hover{margin:0}.md-drppicker td.available.next,.md-drppicker th.available.next{transform:rotate(180deg);display:block;background-image:url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K");background-repeat:no-repeat;background-size:.5em;background-position:50%;opacity:.8;transition:background-color .2s ease;border-radius:2em}.md-drppicker td.available.next:hover,.md-drppicker th.available.next:hover{margin:0;transform:rotate(180deg)}.md-drppicker td.available:hover,.md-drppicker th.available:hover{background-color:#eee;border-color:transparent;color:inherit;background-repeat:no-repeat;background-size:.5em;background-position:50%;margin:.25em 0;opacity:.8;border-radius:2em;transform:scale(1);transition:all .45s cubic-bezier(.23,1,.32,1) 0ms}.md-drppicker td.week,.md-drppicker th.week{font-size:80%;color:#ccc}.md-drppicker td{margin:.25em 0;opacity:.8;transition:background-color .2s ease;border-radius:2em;transform:scale(1);transition:all .45s cubic-bezier(.23,1,.32,1) 0ms}.md-drppicker td.off,.md-drppicker td.off.end-date,.md-drppicker td.off.in-range,.md-drppicker td.off.start-date{background-color:#fff;border-color:transparent;color:#999}.md-drppicker td.in-range{background-color:#dde2e4;border-color:transparent;color:#000;border-radius:0}.md-drppicker td.start-date{border-radius:2em 0 0 2em}.md-drppicker td.end-date{border-radius:0 2em 2em 0}.md-drppicker td.start-date.end-date{border-radius:4px}.md-drppicker td.active{transition:background .3s ease-out;background:rgba(0,0,0,.1)}.md-drppicker td.active,.md-drppicker td.active:hover{background-color:#3f51b5;border-color:transparent;color:#fff}.md-drppicker th.month{width:auto}.md-drppicker option.disabled,.md-drppicker td.disabled{color:#999;cursor:not-allowed;text-decoration:line-through}.md-drppicker .dropdowns{background-repeat:no-repeat;background-size:10px;background-position-y:center;background-position-x:right;width:50px;background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDI1NSAyNTUiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDI1NSAyNTU7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGc+Cgk8ZyBpZD0iYXJyb3ctZHJvcC1kb3duIj4KCQk8cG9seWdvbiBwb2ludHM9IjAsNjMuNzUgMTI3LjUsMTkxLjI1IDI1NSw2My43NSAgICIgZmlsbD0iIzk4OGM4YyIvPgoJPC9nPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=)}.md-drppicker .dropdowns select{display:inline-block;background-color:hsla(0,0%,100%,.9);width:100%;padding:5px;border:1px solid #f2f2f2;border-radius:2px;height:3rem}.md-drppicker .dropdowns select.monthselect,.md-drppicker .dropdowns select.yearselect{font-size:12px;padding:1px;height:auto;cursor:default}.md-drppicker .dropdowns select.ampmselect,.md-drppicker .dropdowns select.hourselect,.md-drppicker .dropdowns select.minuteselect,.md-drppicker .dropdowns select.secondselect{width:50px;margin:0 auto;background:#eee;border:1px solid #eee;padding:2px;outline:0;font-size:12px}.md-drppicker .dropdowns select.monthselect,.md-drppicker .dropdowns select.yearselect{cursor:pointer;opacity:0;position:absolute;top:0;left:0;margin:0;padding:0}.md-drppicker th.month>div{position:relative;display:inline-block}.md-drppicker .calendar-time{text-align:center;margin:4px auto 0;line-height:30px;position:relative}.md-drppicker .calendar-time .select{display:inline}.md-drppicker .calendar-time .select .select-item{display:inline-block;width:auto;position:relative;font-family:inherit;background-color:transparent;padding:10px 10px 10px 0;font-size:18px;border-radius:0;border:none;border-bottom:1px solid rgba(0,0,0,.12)}.md-drppicker .calendar-time .select .select-item:after{position:absolute;top:18px;right:10px;width:0;height:0;padding:0;content:"";border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid rgba(0,0,0,.12);pointer-events:none}.md-drppicker .calendar-time .select .select-item:focus{outline:none}.md-drppicker .calendar-time .select .select-item .select-label{color:rgba(0,0,0,.26);font-size:16px;font-weight:400;position:absolute;pointer-events:none;left:0;top:10px;transition:all .2s ease}.md-drppicker .calendar-time select.disabled{color:#ccc;cursor:not-allowed}.md-drppicker .label-input{border:1px solid #ccc;border-radius:4px;color:#555;height:30px;line-height:30px;display:block;vertical-align:middle;margin:0 auto 5px;padding:0 0 0 28px;width:100%}.md-drppicker .label-input.active{border:1px solid #08c;border-radius:4px}.md-drppicker .md-drppicker_input{position:relative;padding:0 30px 0 0}.md-drppicker .md-drppicker_input i,.md-drppicker .md-drppicker_input svg{position:absolute;left:8px;top:8px}.md-drppicker.rtl .label-input{padding-right:28px;padding-left:6px}.md-drppicker.rtl .md-drppicker_input i,.md-drppicker.rtl .md-drppicker_input svg{left:auto;right:8px}.md-drppicker .show-ranges .drp-calendar.left{border-left:1px solid #ddd}.md-drppicker .ranges{float:none;text-align:left;margin:0}.md-drppicker .ranges ul{list-style:none;margin:0 auto;padding:0;width:100%}.md-drppicker .ranges ul li{font-size:12px}.md-drppicker .ranges ul li button{padding:8px 12px;width:100%;background:none;border:none;text-align:left;cursor:pointer}.md-drppicker .ranges ul li button.active{background-color:#3f51b5;color:#fff}.md-drppicker .ranges ul li button[disabled]{opacity:.3}.md-drppicker .ranges ul li button:active{background:transparent}.md-drppicker .ranges ul li:hover{background-color:#eee}.md-drppicker .show-calendar .ranges{margin-top:8px}.md-drppicker [hidden]{display:none}.md-drppicker .buttons{text-align:right;margin:0 5px 5px 0}.md-drppicker .btn{position:relative;overflow:hidden;outline:none;padding:0 6px;cursor:pointer;border-radius:2px;box-shadow:0 1px 4px rgba(0,0,0,.6);color:#ecf0f1;transition:background-color .4s;height:auto;text-transform:uppercase;line-height:36px;border:none}.md-drppicker .btn,.md-drppicker .btn:focus,.md-drppicker .btn:hover{background-color:#3f51b5}.md-drppicker .btn>*{position:relative}.md-drppicker .btn span{display:block;padding:12px 24px}.md-drppicker .btn:before{content:"";position:absolute;top:50%;left:50%;display:block;width:0;padding-top:0;border-radius:100%;background-color:rgba(236,240,241,.3);transform:translate(-50%,-50%)}.md-drppicker .btn:active:before{width:120%;padding-top:120%;transition:width .2s ease-out,padding-top .2s ease-out}.md-drppicker .btn:disabled{opacity:.5}.md-drppicker .btn.btn-default{color:#000;background-color:#dcdcdc}.md-drppicker .clear{box-shadow:none;background-color:#fff!important}.md-drppicker .clear svg{color:#eb3232;fill:currentColor}@media (min-width:564px){.md-drppicker{width:auto}.md-drppicker.single .calendar.left{clear:none}.md-drppicker.ltr{direction:ltr;text-align:left}.md-drppicker.ltr .calendar.left{clear:left}.md-drppicker.ltr .calendar.left .calendar-table{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.md-drppicker.ltr .calendar.right{margin-left:0}.md-drppicker.ltr .calendar.right .calendar-table{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.md-drppicker.ltr .left .md-drppicker_input,.md-drppicker.ltr .right .md-drppicker_input{padding-right:35px}.md-drppicker.ltr .calendar.left .calendar-table{padding-right:12px}.md-drppicker.ltr .calendar,.md-drppicker.ltr .ranges{float:left}.md-drppicker.rtl{direction:rtl;text-align:right}.md-drppicker.rtl .calendar.left{clear:right;margin-left:0}.md-drppicker.rtl .calendar.left .calendar-table{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.md-drppicker.rtl .calendar.right{margin-right:0}.md-drppicker.rtl .calendar.right .calendar-table{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.md-drppicker.rtl .calendar.left .calendar-table,.md-drppicker.rtl .left .md-drppicker_input{padding-left:12px}.md-drppicker.rtl .calendar,.md-drppicker.rtl .ranges{text-align:right;float:right}.drp-animate{transform:translate(0);transition:transform .2s ease,opacity .2s ease}.drp-animate.drp-picker-site-this{transition-timing-function:linear}.drp-animate.drp-animate-right{transform:translateX(10%);opacity:0}.drp-animate.drp-animate-left{transform:translateX(-10%);opacity:0}}@media (min-width:730px){.md-drppicker .ranges{width:auto}.md-drppicker.ltr .ranges{float:left}.md-drppicker.rtl .ranges{float:right}.md-drppicker .calendar.left{clear:none!important}}'],encapsulation:2}),t})();const bt=a;let vt=(()=>{class t{constructor(t,e,i,n,s,a,o,l){this.viewContainerRef=t,this._changeDetectorRef=e,this._componentFactoryResolver=i,this._el=n,this._renderer=s,this.differs=a,this._localeService=o,this.elementRef=l,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this.dateLimit=null,this.showCancel=!1,this.lockStartDate=!1,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.closeOnAutoApply=!0,this._locale={},this.notForChangesProperty=["locale","endKey","startKey"],this.onChange=new r.o,this.rangeClicked=new r.o,this.datesUpdated=new r.o,this.startDateChanged=new r.o,this.endDateChanged=new r.o,this.endKey="endDate",this.startKey="startDate",this.drops="down",this.opens="auto";const c=this._componentFactoryResolver.resolveComponentFactory(mt);t.clear();const h=t.createComponent(c);this.picker=h.instance,this.picker.inline=!1}set locale(t){this._locale=Object.assign(Object.assign({},this._localeService.config),t)}get locale(){return this._locale}set startKey(t){this._startKey=null!==t?t:"startDate"}set endKey(t){this._endKey=null!==t?t:"endDate"}get value(){return this._value||null}set value(t){this._value=t,this._onChange(t),this._changeDetectorRef.markForCheck()}get disabled(){return this._disabled}ngOnInit(){this.picker.startDateChanged.asObservable().subscribe(t=>{this.startDateChanged.emit(t)}),this.picker.endDateChanged.asObservable().subscribe(t=>{this.endDateChanged.emit(t)}),this.picker.rangeClicked.asObservable().subscribe(t=>{this.rangeClicked.emit(t)}),this.picker.datesUpdated.asObservable().subscribe(t=>{this.datesUpdated.emit(t)}),this.picker.choosedDate.asObservable().subscribe(t=>{if(t){const e={};e[this._startKey]=t.startDate,e[this._endKey]=t.endDate,this.value=e,this.onChange.emit(e),"string"==typeof t.chosenLabel&&(this._el.nativeElement.value=t.chosenLabel)}}),this.picker.firstMonthDayClass=this.firstMonthDayClass,this.picker.lastMonthDayClass=this.lastMonthDayClass,this.picker.emptyWeekRowClass=this.emptyWeekRowClass,this.picker.emptyWeekColumnClass=this.emptyWeekColumnClass,this.picker.firstDayOfNextMonthClass=this.firstDayOfNextMonthClass,this.picker.lastDayOfPreviousMonthClass=this.lastDayOfPreviousMonthClass,this.picker.drops=this.drops,this.picker.opens=this.opens,this.localeDiffer=this.differs.find(this.locale).create(),this.picker.closeOnAutoApply=this.closeOnAutoApply}ngOnChanges(t){for(const e in t)t.hasOwnProperty(e)&&-1===this.notForChangesProperty.indexOf(e)&&(this.picker[e]=t[e].currentValue)}ngDoCheck(){this.localeDiffer&&this.localeDiffer.diff(this.locale)&&this.picker.updateLocale(this.locale)}onBlur(){this._onTouched()}open(t){this.disabled||(this.picker.show(t),setTimeout(()=>{this.setPosition()}))}hide(t){this.picker.hide(t)}toggle(t){this.picker.isShown?this.hide(t):this.open(t)}clear(){this.picker.clear()}writeValue(t){this.setValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._disabled=t}setValue(t){t?(this.value=t,t[this._startKey]&&this.picker.setStartDate(t[this._startKey]),t[this._endKey]&&this.picker.setEndDate(t[this._endKey]),this.picker.calculateChosenLabel(),this.picker.chosenLabel&&(this._el.nativeElement.value=this.picker.chosenLabel)):this.picker.clear()}setPosition(){let t,e;const i=this.picker.pickerContainer.nativeElement,n=this._el.nativeElement;if(e=this.drops&&"up"===this.drops?n.offsetTop-i.clientHeight+"px":"auto","left"===this.opens)t={top:e,left:n.offsetLeft-i.clientWidth+n.clientWidth+"px",right:"auto"};else if("center"===this.opens)t={top:e,left:n.offsetLeft+n.clientWidth/2-i.clientWidth/2+"px",right:"auto"};else if("right"===this.opens)t={top:e,left:n.offsetLeft+"px",right:"auto"};else{const r=n.offsetLeft+n.clientWidth/2-i.clientWidth/2;t=r<0?{top:e,left:n.offsetLeft+"px",right:"auto"}:{top:e,left:r+"px",right:"auto"}}t&&(this._renderer.setStyle(i,"top",t.top),this._renderer.setStyle(i,"left",t.left),this._renderer.setStyle(i,"right",t.right))}inputChanged(t){if("input"!==t.target.tagName.toLowerCase())return;if(!t.target.value.length)return;const e=t.target.value.split(this.picker.locale.separator);let i=null,n=null;2===e.length&&(i=bt(e[0],this.picker.locale.format),n=bt(e[1],this.picker.locale.format)),(this.singleDatePicker||null===i||null===n)&&(i=bt(t.target.value,this.picker.locale.format),n=i),i.isValid()&&n.isValid()&&(this.picker.setStartDate(i),this.picker.setEndDate(n),this.picker.updateView())}outsideClick(t){t.target&&(t.target.classList.contains("ngx-daterangepicker-action")||this.elementRef.nativeElement.contains(t.target)||this.hide())}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.R),r.Ob(r.h),r.Ob(r.j),r.Ob(r.l),r.Ob(r.G),r.Ob(r.v),r.Ob(pt),r.Ob(r.l))},t.\u0275dir=r.Jb({type:t,selectors:[["input","ngxDaterangepickerMd",""]],hostVars:1,hostBindings:function(t,e){1&t&&r.bc("keyup.esc",function(){return e.hide()})("blur",function(){return e.onBlur()})("click",function(){return e.open()})("keyup",function(t){return e.inputChanged(t)})("click",function(t){return e.outsideClick(t)},!1,r.vc),2&t&&r.Xb("disabled",e.disabled)},inputs:{dateLimit:"dateLimit",showCancel:"showCancel",lockStartDate:"lockStartDate",timePicker:"timePicker",timePicker24Hour:"timePicker24Hour",timePickerIncrement:"timePickerIncrement",timePickerSeconds:"timePickerSeconds",closeOnAutoApply:"closeOnAutoApply",endKey:"endKey",startKey:"startKey",drops:"drops",opens:"opens",locale:"locale",_endKey:"_endKey",minDate:"minDate",maxDate:"maxDate",autoApply:"autoApply",alwaysShowCalendars:"alwaysShowCalendars",showCustomRangeLabel:"showCustomRangeLabel",linkedCalendars:"linkedCalendars",singleDatePicker:"singleDatePicker",showWeekNumbers:"showWeekNumbers",showISOWeekNumbers:"showISOWeekNumbers",showDropdowns:"showDropdowns",isInvalidDate:"isInvalidDate",isCustomDate:"isCustomDate",isTooltipDate:"isTooltipDate",showClearButton:"showClearButton",customRangeDirection:"customRangeDirection",ranges:"ranges",lastMonthDayClass:"lastMonthDayClass",emptyWeekRowClass:"emptyWeekRowClass",emptyWeekColumnClass:"emptyWeekColumnClass",firstDayOfNextMonthClass:"firstDayOfNextMonthClass",lastDayOfPreviousMonthClass:"lastDayOfPreviousMonthClass",keepCalendarOpeningWithRange:"keepCalendarOpeningWithRange",showRangeLabelOnInput:"showRangeLabelOnInput"},outputs:{onChange:"change",rangeClicked:"rangeClicked",datesUpdated:"datesUpdated",startDateChanged:"startDateChanged",endDateChanged:"endDateChanged"},features:[r.Bb([{provide:s.k,useExisting:Object(r.V)(()=>t),multi:!0}]),r.Ab]}),t})(),yt=(()=>{class t{constructor(){}static forRoot(e={}){return{ngModule:t,providers:[{provide:dt,useValue:e},{provide:pt,useClass:pt,deps:[dt]}]}}}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)},providers:[],imports:[[n.c,s.h,s.s]]}),t})()},Ylt2:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("quSY");class r extends n.a{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 i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}},Z92M:function(t,e){t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},ZOgE:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("fXoL"),r=i("LF2l");let s=(()=>{class t{constructor(t){this.textService=t}transform(t,e){return this.textService.getText(t,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(r.a))},t.\u0275pipe=n.Nb({name:"appText",type:t,pure:!0}),t})()},ZUHj:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("51Dv"),r=i("SeVD"),s=i("HDdC");function a(t,e,i,a,o=new n.a(t,i,a)){if(!o.closed)return e instanceof s.a?e.subscribe(o):Object(r.a)(e)(o)}},aZ40:function(t,e,i){var n,r,s=i("Wogr");s.alloc?(n=s.alloc(512),r=s.alloc(256)):(n=new s(512),r=new s(256)),function(){for(var t=1,e=0;e<255;e++)n[e]=t,r[t]=e,256&(t<<=1)&&(t^=285);for(e=255;e<512;e++)n[e]=n[e-255]}(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return r[t]},e.exp=function(t){return n[t]},e.mul=function(t,e){return 0===t||0===e?0:n[r[t]+r[e]]}},bHdf:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("5+tZ"),r=i("SpAZ");function s(t=Number.POSITIVE_INFINITY){return Object(n.a)(r.a,t)}},bOdf:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("5+tZ");function r(t,e){return Object(n.a)(t,e,1)}},bSwM:function(t,e,i){"use strict";i.d(e,"a",function(){return x}),i.d(e,"b",function(){return C});var n=i("8LU1"),r=i("fXoL"),s=i("3Pt+"),a=i("FKr1"),o=i("R1ws"),l=i("GU7r"),c=i("u47x");const h=["input"],d=function(){return{enterDuration:150}},u=["*"],p=new r.s("mat-checkbox-default-options",{providedIn:"root",factory:f});function f(){return{color:"accent",clickAction:"check-indeterminate"}}let g=0;const m=f(),b={provide:s.k,useExisting:Object(r.V)(()=>x),multi:!0};class v{}class y{constructor(t){this._elementRef=t}}const _=Object(a.D)(Object(a.y)(Object(a.z)(Object(a.A)(y))));let x=(()=>{class t extends _{constructor(t,e,i,n,s,a,o){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=a,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++g,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new r.o,this.indeterminateChange=new r.o,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||m,this.color=this.defaultColor=this._options.color||m.color,this.tabIndex=parseInt(s)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=Object(n.c)(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=Object(n.c)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=Object(n.c)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new v;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.l),r.Ob(r.h),r.Ob(c.h),r.Ob(r.B),r.Zb("tabindex"),r.Ob(o.a,8),r.Ob(p,8))},t.\u0275cmp=r.Ib({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(r.Kc(h,1),r.Kc(a.s,1)),2&t){let t;r.sc(t=r.cc())&&(e._inputElement=t.first),r.sc(t=r.cc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Xb("id",e.id),r.Db("tabindex",null),r.Gb("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[r.Bb([b]),r.zb],ngContentSelectors:u,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(r.kc(),r.Ub(0,"label",0,1),r.Ub(2,"span",2),r.Ub(3,"input",3,4),r.bc("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),r.Tb(),r.Ub(5,"span",5),r.Pb(6,"span",6),r.Tb(),r.Pb(7,"span",7),r.Ub(8,"span",8),r.ec(),r.Ub(9,"svg",9),r.Pb(10,"path",10),r.Tb(),r.dc(),r.Pb(11,"span",11),r.Tb(),r.Tb(),r.Ub(12,"span",12,13),r.bc("cdkObserveContent",function(){return e._onLabelTextChange()}),r.Ub(14,"span",14),r.Ec(15,"\xa0"),r.Tb(),r.jc(16),r.Tb(),r.Tb()),2&t){const t=r.tc(1),i=r.tc(13);r.Db("for",e.inputId),r.Cb(2),r.Gb("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),r.Cb(1),r.lc("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),r.Db("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),r.Cb(2),r.lc("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",r.oc(19,d))}},directives:[a.s,l.a],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})(),w=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)}}),t})(),C=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)},imports:[[a.t,a.j,l.c,w],a.j,w]}),t})()},bTqV:function(t,e,i){"use strict";i.d(e,"a",function(){return f}),i.d(e,"b",function(){return p}),i.d(e,"c",function(){return g});var n=i("FKr1"),r=i("R1ws"),s=i("fXoL"),a=i("u47x");const o=["mat-button",""],l=["*"],c=".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}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class d{constructor(t){this._elementRef=t}}const u=Object(n.y)(Object(n.A)(Object(n.z)(d)));let p=(()=>{class t extends u{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of h)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);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,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(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)(s.Ob(s.l),s.Ob(a.h),s.Ob(r.a,8))},t.\u0275cmp=s.Ib({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){if(1&t&&s.Kc(n.s,1),2&t){let t;s.sc(t=s.cc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(s.Db("disabled",e.disabled||null),s.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.zb],attrs:o,ngContentSelectors:l,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&&(s.kc(),s.Ub(0,"span",0),s.jc(1),s.Tb(),s.Pb(2,"span",1),s.Pb(3,"span",2)),2&t&&(s.Cb(2),s.Gb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.lc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[n.s],styles:[c],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t extends p{constructor(t,e,i){super(e,t,i)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(a.h),s.Ob(s.l),s.Ob(r.a,8))},t.\u0275cmp=s.Ib({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){1&t&&s.bc("click",function(t){return e._haltDisabledEvents(t)}),2&t&&(s.Db("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),s.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[s.zb],attrs:o,ngContentSelectors:l,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&&(s.kc(),s.Ub(0,"span",0),s.jc(1),s.Tb(),s.Pb(2,"span",1),s.Pb(3,"span",2)),2&t&&(s.Cb(2),s.Gb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.lc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[n.s],styles:[c],encapsulation:2,changeDetection:0}),t})(),g=(()=>{class t{}return t.\u0275mod=s.Mb({type:t}),t.\u0275inj=s.Lb({factory:function(e){return new(e||t)},imports:[[n.t,n.j],n.j]}),t})()},c2HN:function(t,e,i){"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,"a",function(){return n})},cH1L:function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return a});var n=i("fXoL"),r=i("ofXK");const s=new n.s("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(n.W)(r.d)}});let a=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new n.o,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(s,8))},t.\u0275prov=Object(n.Kb)({factory:function(){return new t(Object(n.Yb)(s,8))},token:t,providedIn:"root"}),t})(),o=(()=>{class t{}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)}}),t})()},cp0P:function(t,e,i){"use strict";i.d(e,"a",function(){return l});var n=i("HDdC"),r=i("DH7j"),s=i("lJxs"),a=i("XoHu"),o=i("Cfvw");function l(...t){if(1===t.length){const e=t[0];if(Object(r.a)(e))return c(e,null);if(Object(a.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&Object(r.a)(t[0])?t[0]:t,null).pipe(Object(s.a)(t=>e(...t)))}return c(t,null)}function c(t,e){return new n.a(i=>{const n=t.length;if(0===n)return void i.complete();const r=new Array(n);let s=0,a=0;for(let l=0;l<n;l++){const c=Object(o.a)(t[l]);let h=!1;i.add(c.subscribe({next:t=>{h||(h=!0,a++),r[l]=t},error:t=>i.error(t),complete:()=>{s++,s!==n&&h||(a===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=r[i],t),{}):r),i.complete())}}))}})}},d3UM:function(t,e,i){"use strict";i.d(e,"a",function(){return X}),i.d(e,"b",function(){return q});var n=i("rDax"),r=i("ofXK"),s=i("fXoL"),a=i("FKr1"),o=i("kmnG"),l=i("vxfF"),c=i("u47x"),h=i("8LU1"),d=i("0EQZ"),u=i("FtGj"),p=i("XNiG"),f=i("NXyV"),g=i("VRyK"),m=i("JX91"),b=i("eIep"),v=i("IzEk"),y=i("pLZG"),_=i("lJxs"),x=i("/uUt"),w=i("1G5W"),C=i("R0Ic"),k=i("cH1L"),S=i("3Pt+");const T=["trigger"],A=["panel"];function O(t,e){if(1&t&&(s.Ub(0,"span",8),s.Ec(1),s.Tb()),2&t){const t=s.fc();s.Cb(1),s.Fc(t.placeholder||"\xa0")}}function E(t,e){if(1&t&&(s.Ub(0,"span"),s.Ec(1),s.Tb()),2&t){const t=s.fc(2);s.Cb(1),s.Fc(t.triggerValue||"\xa0")}}function D(t,e){1&t&&s.jc(0,0,["*ngSwitchCase","true"])}function P(t,e){if(1&t&&(s.Ub(0,"span",9),s.Dc(1,E,2,1,"span",10),s.Dc(2,D,1,0,"ng-content",11),s.Tb()),2&t){const t=s.fc();s.lc("ngSwitch",!!t.customTrigger),s.Cb(2),s.lc("ngSwitchCase",!0)}}function I(t,e){if(1&t){const t=s.Vb();s.Ub(0,"div",12),s.Ub(1,"div",13,14),s.bc("@transformPanel.done",function(e){return s.wc(t),s.fc()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return s.wc(t),s.fc()._handleKeydown(e)}),s.jc(3,1),s.Tb(),s.Tb()}if(2&t){const t=s.fc();s.lc("@transformPanelWrap",void 0),s.Cb(1),s.Fb("mat-select-panel ",t._getPanelTheme(),""),s.Ac("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),s.lc("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),s.Db("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const M=[[["mat-select-trigger"]],"*"],R=["mat-select-trigger","*"],L={transformPanelWrap:Object(C.m)("transformPanelWrap",[Object(C.l)("* => void",Object(C.h)("@transformPanel",[Object(C.f)()],{optional:!0}))]),transformPanel:Object(C.m)("transformPanel",[Object(C.j)("void",Object(C.k)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Object(C.j)("showing",Object(C.k)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Object(C.j)("showing-multiple",Object(C.k)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Object(C.l)("void => *",Object(C.e)("120ms cubic-bezier(0, 0, 0.2, 1)")),Object(C.l)("* => void",Object(C.e)("100ms 25ms linear",Object(C.k)({opacity:0})))])};let N=0;const z=256,F=new s.s("mat-select-scroll-strategy"),j=new s.s("MAT_SELECT_CONFIG"),U={provide:F,deps:[n.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class V{constructor(t,e){this.source=t,this.value=e}}class B{constructor(t,e,i,n,r){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=r}}const Y=Object(a.z)(Object(a.D)(Object(a.A)(Object(a.B)(B)))),H=new s.s("MatSelectTrigger");let W=(()=>{class t extends Y{constructor(t,e,i,n,r,a,o,l,c,h,d,u,x,w){var C,k,S;super(r,n,o,l,h),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=a,this._parentFormField=c,this.ngControl=h,this._liveAnnouncer=x,this._defaultOptions=w,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+N++,this._triggerAriaLabelledBy=null,this._destroy=new p.a,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+N++,this._panelDoneAnimatingStream=new p.a,this._overlayPanelClass=(null===(C=this._defaultOptions)||void 0===C?void 0:C.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(S=null===(k=this._defaultOptions)||void 0===k?void 0:k.disableOptionCentering)&&void 0!==S&&S,this.ariaLabel="",this.optionSelectionChanges=Object(f.a)(()=>{const t=this.options;return t?t.changes.pipe(Object(m.a)(t),Object(b.a)(()=>Object(g.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Object(v.a)(1),Object(b.a)(()=>this.optionSelectionChanges))}),this.openedChange=new s.o,this._openedStream=this.openedChange.pipe(Object(y.a)(t=>t),Object(_.a)(()=>{})),this._closedStream=this.openedChange.pipe(Object(y.a)(t=>!t),Object(_.a)(()=>{})),this.selectionChange=new s.o,this.valueChange=new s.o,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==w?void 0:w.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=w.typeaheadDebounceInterval),this._scrollStrategyFactory=u,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(d)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=Object(h.c)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=Object(h.c)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=Object(h.c)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){t!==this._value&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Object(h.f)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new d.c(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(x.a)(),Object(w.a)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Object(w.a)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Object(m.a)(null),Object(w.a)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=e===u.d||e===u.p||e===u.i||e===u.m,n=e===u.f||e===u.n,r=this._keyManager;if(!r.isTyping()&&n&&!Object(u.s)(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;r.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=i===u.d||i===u.p,r=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(r||i!==u.f&&i!==u.n||!e.activeItem||Object(u.s)(t))if(!r&&this._multiple&&i===u.a&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(Object(v.a)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new c.b(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(w.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Object(w.a)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(g.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(w.a)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(g.a)(...this.options.map(t=>t._stateChanges)).pipe(Object(w.a)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const t=this._getLabelId();return this.ariaLabelledby?t+" "+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getLabelId(){var t;return(null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId())||""}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(l.d),s.Ob(s.h),s.Ob(s.B),s.Ob(a.d),s.Ob(s.l),s.Ob(k.b,8),s.Ob(S.o,8),s.Ob(S.g,8),s.Ob(o.a,8),s.Ob(S.l,10),s.Zb("tabindex"),s.Ob(F),s.Ob(c.k),s.Ob(j,8))},t.\u0275dir=s.Jb({type:t,viewQuery:function(t,e){if(1&t&&(s.Kc(T,1),s.Kc(A,1),s.Kc(n.a,1)),2&t){let t;s.sc(t=s.cc())&&(e.trigger=t.first),s.sc(t=s.cc())&&(e.panel=t.first),s.sc(t=s.cc())&&(e.overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[s.zb,s.Ab]}),t})(),X=(()=>{class t extends W{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Object(w.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Object(v.a)(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=Object(a.w)(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=Object(a.x)((t+e)*i,i,this.panel.nativeElement.scrollTop,z)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new V(this,t)}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let r;if(this.multiple)r=40;else{let t=this._selectionModel.selected[0]||this.options.first;r=t&&t.group?32:16}i||(r*=-1);const s=0-(t.left+r-(i?n:0)),a=t.right+r-e.width+(i?0:n);s>0?r+=s+8:a>0&&(r-=a+8),this.overlayDir.offsetX=Math.round(r),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),r=(n-this._triggerRect.height)/2,s=Math.floor(z/n);let a;return this.disableOptionCentering?0:(a=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-s))*n+(n-(this._getItemCount()*n-z)%n):e-n/2,Math.round(-1*a-r))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,r=i.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,z)-s-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):s>n?this._adjustPanelDown(s,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,z),n=e*t-i;let r;r=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),r+=Object(a.w)(r,this.options,this.optionGroups);const s=i/2;this._scrollTop=this._calculateOverlayScroll(r,s,n),this._offsetY=this._calculateOverlayOffsetY(r,s,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(e){return G(e||t)},t.\u0275cmp=s.Ib({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(s.Hb(i,H,1),s.Hb(i,a.n,1),s.Hb(i,a.g,1)),2&t){let t;s.sc(t=s.cc())&&(e.customTrigger=t.first),s.sc(t=s.cc())&&(e.options=t),s.sc(t=s.cc())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&s.bc("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(s.Db("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),s.Gb("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[s.Bb([{provide:o.d,useExisting:t},{provide:a.h,useExisting:t}]),s.zb],ngContentSelectors:R,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(s.kc(M),s.Ub(0,"div",0,1),s.bc("click",function(){return e.toggle()}),s.Ub(3,"div",2),s.Dc(4,O,2,1,"span",3),s.Dc(5,P,3,2,"span",4),s.Tb(),s.Ub(6,"div",5),s.Pb(7,"div",6),s.Tb(),s.Tb(),s.Dc(8,I,4,14,"ng-template",7),s.bc("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=s.tc(1);s.Db("aria-owns",e.panelOpen?e.id+"-panel":null),s.Cb(3),s.lc("ngSwitch",e.empty),s.Db("id",e._valueId),s.Cb(1),s.lc("ngSwitchCase",!0),s.Cb(1),s.lc("ngSwitchCase",!1),s.Cb(3),s.lc("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[n.b,r.n,r.o,n.a,r.p,r.j],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[L.transformPanelWrap,L.transformPanel]},changeDetection:0}),t})();const G=s.Wb(X);let q=(()=>{class t{}return t.\u0275mod=s.Mb({type:t}),t.\u0275inj=s.Lb({factory:function(e){return new(e||t)},providers:[U],imports:[[r.c,n.f,a.o,a.j],l.a,o.e,a.o,a.j]}),t})()},dNgK:function(t,e,i){"use strict";i.d(e,"a",function(){return A}),i.d(e,"b",function(){return S});var n=i("rDax"),r=i("+rOU"),s=i("ofXK"),a=i("fXoL"),o=i("FKr1"),l=i("bTqV"),c=i("XNiG"),h=i("IzEk"),d=i("1G5W"),u=i("R0Ic"),p=i("u47x"),f=i("0MNC"),g=i("nLfN");function m(t,e){if(1&t){const t=a.Vb();a.Ub(0,"div",1),a.Ub(1,"button",2),a.bc("click",function(){return a.wc(t),a.fc().action()}),a.Ec(2),a.Tb(),a.Tb()}if(2&t){const t=a.fc();a.Cb(2),a.Fc(t.data.action)}}function b(t,e){}const v=new a.s("MatSnackBarData");class y{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const _=Math.pow(2,31)-1;class x{constructor(t,e){this._overlayRef=e,this._afterDismissed=new c.a,this._afterOpened=new c.a,this._onAction=new c.a,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,_))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let w=(()=>{class t{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(x),a.Ob(v))},t.\u0275cmp=a.Ib({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(a.Ub(0,"span"),a.Ec(1),a.Tb(),a.Dc(2,m,3,1,"div",0)),2&t&&(a.Cb(1),a.Fc(e.data.message),a.Cb(1),a.lc("ngIf",e.hasAction))},directives:[s.l,l.b],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t})();const C={snackBarState:Object(u.m)("state",[Object(u.j)("void, hidden",Object(u.k)({transform:"scale(0.8)",opacity:0})),Object(u.j)("visible",Object(u.k)({transform:"scale(1)",opacity:1})),Object(u.l)("* => visible",Object(u.e)("150ms cubic-bezier(0, 0, 0.2, 1)")),Object(u.l)("* => void, * => hidden",Object(u.e)("75ms cubic-bezier(0.4, 0.0, 1, 1)",Object(u.k)({opacity:0})))])};let k=(()=>{class t extends r.a{constructor(t,e,i,n,r){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=i,this._platform=n,this.snackBarConfig=r,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new c.a,this._onExit=new c.a,this._onEnter=new c.a,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._live="assertive"!==r.politeness||r.announcementMessage?"off"===r.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:i}=t;if(("void"===i&&"void"!==e||"hidden"===i)&&this._completeExit(),"visible"===i){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Object(h.a)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),e=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&e){let i=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(i=document.activeElement),t.removeAttribute("aria-hidden"),e.appendChild(t),null==i||i.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(a.Ob(a.B),a.Ob(a.l),a.Ob(a.h),a.Ob(g.a),a.Ob(y))},t.\u0275cmp=a.Ib({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){if(1&t&&a.Kc(r.c,3),2&t){let t;a.sc(t=a.cc())&&(e._portalOutlet=t.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,e){1&t&&a.Bc("@state.done",function(t){return e.onAnimationEnd(t)}),2&t&&a.Cc("@state",e._animationState)},features:[a.zb],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,e){1&t&&(a.Ub(0,"div",0),a.Dc(1,b,0,0,"ng-template",1),a.Tb(),a.Pb(2,"div")),2&t&&(a.Cb(2),a.Db("aria-live",e._live)("role",e._role))},directives:[r.c],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[C.snackBarState]}}),t})(),S=(()=>{class t{}return t.\u0275mod=a.Mb({type:t}),t.\u0275inj=a.Lb({factory:function(e){return new(e||t)},imports:[[n.f,r.f,s.c,l.c,o.j],o.j]}),t})();const T=new a.s("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new y}});let A=(()=>{class t{constructor(t,e,i,n,r,s){this._overlay=t,this._live=e,this._injector=i,this._breakpointObserver=n,this._parentSnackBar=r,this._defaultConfig=s,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=w,this.snackBarContainerComponent=k,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",i){const n=Object.assign(Object.assign({},this._defaultConfig),i);return n.data={message:t,action:e},n.announcementMessage===t&&(n.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,n)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const i=a.t.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:y,useValue:e}]}),n=new r.d(this.snackBarContainerComponent,e.viewContainerRef,i),s=t.attach(n);return s.instance.snackBarConfig=e,s.instance}_attach(t,e){const i=Object.assign(Object.assign(Object.assign({},new y),this._defaultConfig),e),n=this._createOverlay(i),s=this._attachSnackBarContainer(n,i),o=new x(s,n);if(t instanceof a.N){const e=new r.g(t,null,{$implicit:i.data,snackBarRef:o});o.instance=s.attachTemplatePortal(e)}else{const e=this._createInjector(i,o),n=new r.d(t,void 0,e),a=s.attachComponentPortal(n);o.instance=a.instance}return this._breakpointObserver.observe(f.b.HandsetPortrait).pipe(Object(d.a)(n.detachments())).subscribe(t=>{const e=n.overlayElement.classList;t.matches?e.add(this.handsetCssClass):e.remove(this.handsetCssClass)}),i.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(o,i),this._openedSnackBarRef=o,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration))}_createOverlay(t){const e=new n.d;e.direction=t.direction;let i=this._overlay.position().global();const r="rtl"===t.direction,s="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!r||"end"===t.horizontalPosition&&r,a=!s&&"center"!==t.horizontalPosition;return s?i.left("0"):a?i.right("0"):i.centerHorizontally(),"top"===t.verticalPosition?i.top("0"):i.bottom("0"),e.positionStrategy=i,this._overlay.create(e)}_createInjector(t,e){return a.t.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:x,useValue:e},{provide:v,useValue:t.data}]})}}return t.\u0275fac=function(e){return new(e||t)(a.Yb(n.c),a.Yb(p.k),a.Yb(a.t),a.Yb(f.a),a.Yb(t,12),a.Yb(T))},t.\u0275prov=Object(a.Kb)({factory:function(){return new t(Object(a.Yb)(n.c),Object(a.Yb)(p.k),Object(a.Yb)(a.p),Object(a.Yb)(f.a),Object(a.Yb)(t,12),Object(a.Yb)(T))},token:t,providedIn:S}),t})()},"e/Dd":function(t,e){var i,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return n[t]},e.getBCHDigit=function(t){for(var e=0;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');i=t},e.isKanjiModeEnabled=function(){return void 0!==i},e.toSJIS=function(t){return i(t)}},e6BP:function(t,e){function i(){this.buffer=[],this.length=0}i.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var i=0;i<e;i++)this.putBit(1==(t>>>e-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=i},eIep:function(t,e,i){"use strict";i.d(e,"a",function(){return l});var n=i("l7GE"),r=i("51Dv"),s=i("ZUHj"),a=i("lJxs"),o=i("Cfvw");function l(t,e){return"function"==typeof e?i=>i.pipe(l((i,n)=>Object(o.a)(t(i,n)).pipe(Object(a.a)((t,r)=>e(i,t,n,r))))):e=>e.lift(new c(t))}class c{constructor(t){this.project=t}call(t,e){return e.subscribe(new h(t,this.project))}}class h extends n.a{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const a=new r.a(this,e,i),o=this.destination;o.add(a),this.innerSubscription=Object(s.a)(this,t,void 0,void 0,a),this.innerSubscription!==a&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,r){this.destination.next(e)}}},eQOe:function(t,e){function i(t,i,n){switch(t){case e.Patterns.PATTERN000:return(i+n)%2==0;case e.Patterns.PATTERN001:return i%2==0;case e.Patterns.PATTERN010:return n%3==0;case e.Patterns.PATTERN011:return(i+n)%3==0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(n/3))%2==0;case e.Patterns.PATTERN101:return i*n%2+i*n%3==0;case e.Patterns.PATTERN110:return(i*n%2+i*n%3)%2==0;case e.Patterns.PATTERN111:return(i*n%3+(i+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){for(var e=t.size,i=0,n=0,r=0,s=null,a=null,o=0;o<e;o++){n=r=0,s=a=null;for(var l=0;l<e;l++){var c=t.get(o,l);c===s?n++:(n>=5&&(i+=n-5+3),s=c,n=1),(c=t.get(l,o))===a?r++:(r>=5&&(i+=r-5+3),a=c,r=1)}n>=5&&(i+=n-5+3),r>=5&&(i+=r-5+3)}return i},e.getPenaltyN2=function(t){for(var e=t.size,i=0,n=0;n<e-1;n++)for(var r=0;r<e-1;r++){var s=t.get(n,r)+t.get(n,r+1)+t.get(n+1,r)+t.get(n+1,r+1);4!==s&&0!==s||i++}return 3*i},e.getPenaltyN3=function(t){for(var e=t.size,i=0,n=0,r=0,s=0;s<e;s++){n=r=0;for(var a=0;a<e;a++)n=n<<1&2047|t.get(s,a),a>=10&&(1488===n||93===n)&&i++,r=r<<1&2047|t.get(a,s),a>=10&&(1488===r||93===r)&&i++}return 40*i},e.getPenaltyN4=function(t){for(var e=0,i=t.data.length,n=0;n<i;n++)e+=t.data[n];return 10*Math.abs(Math.ceil(100*e/i/5)-10)},e.applyMask=function(t,e){for(var n=e.size,r=0;r<n;r++)for(var s=0;s<n;s++)e.isReserved(s,r)||e.xor(s,r,i(t,s,r))},e.getBestMask=function(t,i){for(var n=Object.keys(e.Patterns).length,r=0,s=1/0,a=0;a<n;a++){i(a),e.applyMask(a,t);var o=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(a,t),o<s&&(s=o,r=a)}return r}},ekOh:function(t,e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,i){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(n){return i}}},f0Cb:function(t,e,i){"use strict";i.d(e,"a",function(){return a}),i.d(e,"b",function(){return o});var n=i("8LU1"),r=i("FKr1"),s=i("fXoL");let a=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=Object(n.c)(t)}get inset(){return this._inset}set inset(t){this._inset=Object(n.c)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Ib({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(s.Db("aria-orientation",e.vertical?"vertical":"horizontal"),s.Gb("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),o=(()=>{class t{}return t.\u0275mod=s.Mb({type:t}),t.\u0275inj=s.Lb({factory:function(e){return new(e||t)},imports:[[r.j],r.j]}),t})()},fXoL:function(t,e,i){"use strict";i.d(e,"a",function(){return li}),i.d(e,"b",function(){return uc}),i.d(e,"c",function(){return oc}),i.d(e,"d",function(){return sc}),i.d(e,"e",function(){return ac}),i.d(e,"f",function(){return oh}),i.d(e,"g",function(){return $c}),i.d(e,"h",function(){return Jo}),i.d(e,"i",function(){return Cc}),i.d(e,"j",function(){return Co}),i.d(e,"k",function(){return gc}),i.d(e,"l",function(){return Ao}),i.d(e,"m",function(){return nh}),i.d(e,"n",function(){return An}),i.d(e,"o",function(){return jl}),i.d(e,"p",function(){return ms}),i.d(e,"q",function(){return Ei}),i.d(e,"r",function(){return S}),i.d(e,"s",function(){return oi}),i.d(e,"t",function(){return Is}),i.d(e,"u",function(){return Xo}),i.d(e,"v",function(){return qo}),i.d(e,"w",function(){return fc}),i.d(e,"x",function(){return hl}),i.d(e,"y",function(){return Zc}),i.d(e,"z",function(){return cl}),i.d(e,"A",function(){return Hc}),i.d(e,"B",function(){return Tc}),i.d(e,"C",function(){return Di}),i.d(e,"D",function(){return dc}),i.d(e,"E",function(){return hc}),i.d(e,"F",function(){return Vl}),i.d(e,"G",function(){return Do}),i.d(e,"H",function(){return Eo}),i.d(e,"I",function(){return Mn}),i.d(e,"J",function(){return Io}),i.d(e,"K",function(){return _n}),i.d(e,"L",function(){return Pi}),i.d(e,"M",function(){return th}),i.d(e,"N",function(){return sl}),i.d(e,"O",function(){return Mc}),i.d(e,"P",function(){return ci}),i.d(e,"Q",function(){return Mo}),i.d(e,"R",function(){return ul}),i.d(e,"S",function(){return P}),i.d(e,"T",function(){return Wc}),i.d(e,"U",function(){return Bc}),i.d(e,"V",function(){return p}),i.d(e,"W",function(){return Ti}),i.d(e,"X",function(){return Vc}),i.d(e,"Y",function(){return sh}),i.d(e,"Z",function(){return Nc}),i.d(e,"ab",function(){return pc}),i.d(e,"bb",function(){return vs}),i.d(e,"cb",function(){return lo}),i.d(e,"db",function(){return vn}),i.d(e,"eb",function(){return tn}),i.d(e,"fb",function(){return Yi}),i.d(e,"gb",function(){return Wi}),i.d(e,"hb",function(){return $i}),i.d(e,"ib",function(){return Gi}),i.d(e,"jb",function(){return Xi}),i.d(e,"kb",function(){return qi}),i.d(e,"lb",function(){return ro}),i.d(e,"mb",function(){return rh}),i.d(e,"nb",function(){return so}),i.d(e,"ob",function(){return ao}),i.d(e,"pb",function(){return Hi}),i.d(e,"qb",function(){return N}),i.d(e,"rb",function(){return Bs}),i.d(e,"sb",function(){return ua}),i.d(e,"tb",function(){return ha}),i.d(e,"ub",function(){return da}),i.d(e,"vb",function(){return no}),i.d(e,"wb",function(){return St}),i.d(e,"xb",function(){return h}),i.d(e,"yb",function(){return Bi}),i.d(e,"zb",function(){return Rs}),i.d(e,"Ab",function(){return vt}),i.d(e,"Bb",function(){return _o}),i.d(e,"Cb",function(){return yr}),i.d(e,"Db",function(){return Ks}),i.d(e,"Eb",function(){return Ma}),i.d(e,"Fb",function(){return Za}),i.d(e,"Gb",function(){return Ia}),i.d(e,"Hb",function(){return Jl}),i.d(e,"Ib",function(){return G}),i.d(e,"Jb",function(){return tt}),i.d(e,"Kb",function(){return m}),i.d(e,"Lb",function(){return b}),i.d(e,"Mb",function(){return Z}),i.d(e,"Nb",function(){return et}),i.d(e,"Ob",function(){return ta}),i.d(e,"Pb",function(){return sa}),i.d(e,"Qb",function(){return la}),i.d(e,"Rb",function(){return oa}),i.d(e,"Sb",function(){return aa}),i.d(e,"Tb",function(){return ra}),i.d(e,"Ub",function(){return na}),i.d(e,"Vb",function(){return ca}),i.d(e,"Wb",function(){return ni}),i.d(e,"Xb",function(){return Qa}),i.d(e,"Yb",function(){return Si}),i.d(e,"Zb",function(){return ri}),i.d(e,"ac",function(){return rc}),i.d(e,"bc",function(){return pa}),i.d(e,"cc",function(){return tc}),i.d(e,"dc",function(){return _e}),i.d(e,"ec",function(){return ye}),i.d(e,"fc",function(){return va}),i.d(e,"gc",function(){return Rl}),i.d(e,"hc",function(){return Ll}),i.d(e,"ic",function(){return Nl}),i.d(e,"jc",function(){return xa}),i.d(e,"kc",function(){return _a}),i.d(e,"lc",function(){return ea}),i.d(e,"mc",function(){return wa}),i.d(e,"nc",function(){return Ca}),i.d(e,"oc",function(){return Al}),i.d(e,"pc",function(){return Ol}),i.d(e,"qc",function(){return El}),i.d(e,"rc",function(){return Dl}),i.d(e,"sc",function(){return Zl}),i.d(e,"tc",function(){return Js}),i.d(e,"uc",function(){return Pn}),i.d(e,"vc",function(){return Dn}),i.d(e,"wc",function(){return Wt}),i.d(e,"xc",function(){return xn}),i.d(e,"yc",function(){return wn}),i.d(e,"zc",function(){return Q}),i.d(e,"Ac",function(){return Pa}),i.d(e,"Bc",function(){return fa}),i.d(e,"Cc",function(){return Ja}),i.d(e,"Dc",function(){return Qs}),i.d(e,"Ec",function(){return Wa}),i.d(e,"Fc",function(){return Xa}),i.d(e,"Gc",function(){return Ga}),i.d(e,"Hc",function(){return qa}),i.d(e,"Ic",function(){return $a}),i.d(e,"Jc",function(){return Ka}),i.d(e,"Kc",function(){return Ql});var n=i("XNiG"),r=i("quSY"),s=i("HDdC"),a=i("VRyK"),o=i("w1tV");function l(t){for(let e in t)if(t[e]===l)return e;throw Error("Could not find renamed property on target object.")}function c(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function h(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(h).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 i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function d(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const u=l({__forward_ref__:l});function p(t){return t.__forward_ref__=p,t.toString=function(){return h(this())},t}function f(t){return g(t)?t():t}function g(t){return"function"==typeof t&&t.hasOwnProperty(u)&&t.__forward_ref__===p}function m(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function b(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function v(t){return y(t,x)||y(t,C)}function y(t,e){return t.hasOwnProperty(e)?t[e]:null}function _(t){return t&&(t.hasOwnProperty(w)||t.hasOwnProperty(k))?t[w]:null}const x=l({"\u0275prov":l}),w=l({"\u0275inj":l}),C=l({ngInjectableDef:l}),k=l({ngInjectorDef:l});var S=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}({});let T;function A(t){const e=T;return T=t,e}function O(t,e,i){const n=v(t);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(i&S.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${h(t)}]`)}function E(t){return{toString:t}.toString()}var D=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),P=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const I="undefined"!=typeof globalThis&&globalThis,M="undefined"!=typeof window&&window,R="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,L="undefined"!=typeof global&&global,N=I||L||M||R,z={},F=[],j=l({"\u0275cmp":l}),U=l({"\u0275dir":l}),V=l({"\u0275pipe":l}),B=l({"\u0275mod":l}),Y=l({"\u0275loc":l}),H=l({"\u0275fac":l}),W=l({__NG_ELEMENT_ID__:l});let X=0;function G(t){return E(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===D.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||F,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||P.Emulated,id:"c",styles:t.styles||F,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,r=t.features,s=t.pipes;return i.id+=X++,i.inputs=J(t.inputs,e),i.outputs=J(t.outputs),r&&r.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(q):null,i.pipeDefs=s?()=>("function"==typeof s?s():s).map($):null,i})}function q(t){return it(t)||function(t){return t[U]||null}(t)}function $(t){return function(t){return t[V]||null}(t)}const K={};function Z(t){const e={type:t.type,bootstrap:t.bootstrap||F,declarations:t.declarations||F,imports:t.imports||F,exports:t.exports||F,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&E(()=>{K[t.id]=t.type}),e}function Q(t,e){return E(()=>{const i=nt(t,!0);i.declarations=e.declarations||F,i.imports=e.imports||F,i.exports=e.exports||F})}function J(t,e){if(null==t)return z;const i={};for(const n in t)if(t.hasOwnProperty(n)){let r=t[n],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),i[r]=n,e&&(e[r]=s)}return i}const tt=G;function et(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function it(t){return t[j]||null}function nt(t,e){const i=t[B]||null;if(!i&&!0===e)throw new Error(`Type ${h(t)} does not have '\u0275mod' property.`);return i}const rt=20,st=10;function at(t){return Array.isArray(t)&&"object"==typeof t[1]}function ot(t){return Array.isArray(t)&&!0===t[1]}function lt(t){return 0!=(8&t.flags)}function ct(t){return 2==(2&t.flags)}function ht(t){return 1==(1&t.flags)}function dt(t){return null!==t.template}function ut(t,e){return t.hasOwnProperty(H)?t[H]:null}class pt extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function ft(t){return"string"==typeof t?t:null==t?"":String(t)}function gt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ft(t)}function mt(t,e){const i=e?` in ${e}`:"";throw new pt("201",`No provider for ${gt(t)} found${i}`)}class bt{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function vt(){return yt}function yt(t){return t.type.prototype.ngOnChanges&&(t.setInput=xt),_t}function _t(){const t=wt(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===z)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function xt(t,e,i,n){const r=wt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:z,current:null}),s=r.current||(r.current={}),a=r.previous,o=this.declaredInputs[i],l=a[o];s[o]=new bt(l&&l.currentValue,e,a===z),t[n]=e}function wt(t){return t.__ngSimpleChanges__||null}vt.ngInherit=!0;const Ct="http://www.w3.org/2000/svg";let kt;function St(t){kt=t}function Tt(){return void 0!==kt?kt:"undefined"!=typeof document?document:void 0}function At(t){return!!t.listen}const Ot={createRenderer:(t,e)=>Tt()};function Et(t){for(;Array.isArray(t);)t=t[0];return t}function Dt(t,e){return Et(e[t])}function Pt(t,e){return Et(e[t.index])}function It(t,e){return t.data[e]}function Mt(t,e){return t[e]}function Rt(t,e){const i=e[t];return at(i)?i:i[0]}function Lt(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Nt(t){return 4==(4&t[2])}function zt(t){return 128==(128&t[2])}function Ft(t,e){return null==e?null:t[e]}function jt(t){t[18]=0}function Ut(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const Vt={lFrame:ue(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Bt(){return Vt.bindingsEnabled}function Yt(){return Vt.lFrame.lView}function Ht(){return Vt.lFrame.tView}function Wt(t){Vt.lFrame.contextLView=t}function Xt(){let t=Gt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Gt(){return Vt.lFrame.currentTNode}function qt(t,e){const i=Vt.lFrame;i.currentTNode=t,i.isParent=e}function $t(){return Vt.lFrame.isParent}function Kt(){Vt.lFrame.isParent=!1}function Zt(){return Vt.isInCheckNoChangesMode}function Qt(t){Vt.isInCheckNoChangesMode=t}function Jt(){const t=Vt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function te(){return Vt.lFrame.bindingIndex}function ee(){return Vt.lFrame.bindingIndex++}function ie(t){const e=Vt.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function ne(t,e){const i=Vt.lFrame;i.bindingIndex=i.bindingRootIndex=t,re(e)}function re(t){Vt.lFrame.currentDirectiveIndex=t}function se(t){const e=Vt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ae(){return Vt.lFrame.currentQueryIndex}function oe(t){Vt.lFrame.currentQueryIndex=t}function le(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function ce(t,e,i){if(i&S.SkipSelf){let n=e,r=t;for(;n=n.parent,!(null!==n||i&S.Host||(n=le(r),null===n)||(r=r[15],10&n.type)););if(null===n)return!1;e=n,t=r}const n=Vt.lFrame=de();return n.currentTNode=e,n.lView=t,!0}function he(t){const e=de(),i=t[1];Vt.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function de(){const t=Vt.lFrame,e=null===t?null:t.child;return null===e?ue(t):e}function ue(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function pe(){const t=Vt.lFrame;return Vt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const fe=pe;function ge(){const t=pe();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function me(){return Vt.lFrame.selectedIndex}function be(t){Vt.lFrame.selectedIndex=t}function ve(){const t=Vt.lFrame;return It(t.tView,t.selectedIndex)}function ye(){Vt.lFrame.currentNamespace=Ct}function _e(){Vt.lFrame.currentNamespace=null}function xe(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i<n;i++){const e=t.data[i].type.prototype,{ngAfterContentInit:n,ngAfterContentChecked:r,ngAfterViewInit:s,ngAfterViewChecked:a,ngOnDestroy:o}=e;n&&(t.contentHooks||(t.contentHooks=[])).push(-i,n),r&&((t.contentHooks||(t.contentHooks=[])).push(i,r),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(i,r)),s&&(t.viewHooks||(t.viewHooks=[])).push(-i,s),a&&((t.viewHooks||(t.viewHooks=[])).push(i,a),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(i,a)),null!=o&&(t.destroyHooks||(t.destroyHooks=[])).push(i,o)}}function we(t,e,i){Se(t,e,3,i)}function Ce(t,e,i,n){(3&t[2])===i&&Se(t,e,i,n)}function ke(t,e){let i=t[2];(3&i)===e&&(i&=2047,i+=1,t[2]=i)}function Se(t,e,i,n){const r=null!=n?n:-1,s=e.length-1;let a=0;for(let o=void 0!==n?65535&t[18]:0;o<s;o++)if("number"==typeof e[o+1]){if(a=e[o],null!=n&&a>=n)break}else e[o]<0&&(t[18]+=65536),(a<r||-1==r)&&(Te(t,i,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Te(t,e,i,n){const r=i[n]<0,s=i[n+1],a=t[r?-i[n]:i[n]];r?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,s.call(a)):s.call(a)}const Ae=-1;class Oe{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ee(t,e,i){const n=At(t);let r=0;for(;r<i.length;){const s=i[r];if("number"==typeof s){if(0!==s)break;r++;const a=i[r++],o=i[r++],l=i[r++];n?t.setAttribute(e,o,l,a):e.setAttributeNS(a,o,l)}else{const a=s,o=i[++r];Pe(a)?n&&t.setProperty(e,a,o):n?t.setAttribute(e,a,o):e.setAttribute(a,o),r++}}return r}function De(t){return 3===t||4===t||6===t}function Pe(t){return 64===t.charCodeAt(0)}function Ie(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let i=-1;for(let n=0;n<e.length;n++){const r=e[n];"number"==typeof r?i=r:0===i||Me(t,i,r,null,-1===i||2===i?e[++n]:null)}}return t}function Me(t,e,i,n,r){let s=0,a=t.length;if(-1===e)a=-1;else for(;s<t.length;){const i=t[s++];if("number"==typeof i){if(i===e){a=-1;break}if(i>e){a=s-1;break}}}for(;s<t.length;){const e=t[s];if("number"==typeof e)break;if(e===i){if(null===n)return void(null!==r&&(t[s+1]=r));if(n===t[s+1])return void(t[s+2]=r)}s++,null!==n&&s++,null!==r&&s++}-1!==a&&(t.splice(a,0,e),s=a+1),t.splice(s++,0,i),null!==n&&t.splice(s++,0,n),null!==r&&t.splice(s++,0,r)}function Re(t){return t!==Ae}function Le(t){return 32767&t}function Ne(t,e){let i=t>>16,n=e;for(;i>0;)n=n[15],i--;return n}let ze=!0;function Fe(t){const e=ze;return ze=t,e}let je=0;function Ue(t,e){const i=Be(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,Ve(n.data,t),Ve(e,null),Ve(n.blueprint,null));const r=Ye(t,e),s=t.injectorIndex;if(Re(r)){const t=Le(r),i=Ne(r,e),n=i[1].data;for(let r=0;r<8;r++)e[s+r]=i[t+r]|n[t+r]}return e[s+8]=r,s}function Ve(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Be(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Ye(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;null!==r;){const t=r[1],e=t.type;if(n=2===e?t.declTNode:1===e?r[6]:null,null===n)return Ae;if(i++,r=r[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return Ae}function He(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(W)&&(n=i[W]),null==n&&(n=i[W]=je++);const r=255&n;e.data[t+(r>>5)]|=1<<r}(t,e,i)}function We(t,e,i){if(i&S.Optional)return t;mt(e,"NodeInjector")}function Xe(t,e,i,n){if(i&S.Optional&&void 0===n&&(n=null),0==(i&(S.Self|S.Host))){const r=t[9],s=A(void 0);try{return r?r.get(e,n,i&S.Optional):O(e,n,i&S.Optional)}finally{A(s)}}return We(n,e,i)}function Ge(t,e,i,n=S.Default,r){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(W)?t[W]:void 0;return"number"==typeof e?e>=0?255&e:$e:e}(i);if("function"==typeof s){if(!ce(e,t,n))return n&S.Host?We(r,i,n):Xe(e,i,n,r);try{const t=s();if(null!=t||n&S.Optional)return t;mt(i)}finally{fe()}}else if("number"==typeof s){let r=null,a=Be(t,e),o=Ae,l=n&S.Host?e[16][6]:null;for((-1===a||n&S.SkipSelf)&&(o=-1===a?Ye(t,e):e[a+8],o!==Ae&&ti(n,!1)?(r=e[1],a=Le(o),e=Ne(o,e)):a=-1);-1!==a;){const t=e[1];if(Je(s,a,t.data)){const t=Ke(a,e,i,r,n,l);if(t!==qe)return t}o=e[a+8],o!==Ae&&ti(n,e[1].data[a+8]===l)&&Je(s,a,e)?(r=t,a=Le(o),e=Ne(o,e)):a=-1}}}return Xe(e,i,n,r)}const qe={};function $e(){return new ei(Xt(),Yt())}function Ke(t,e,i,n,r,s){const a=e[1],o=a.data[t+8],l=Ze(o,a,i,null==n?ct(o)&&ze:n!=a&&0!=(3&o.type),r&S.Host&&s===o);return null!==l?Qe(e,a,l,o):qe}function Ze(t,e,i,n,r){const s=t.providerIndexes,a=e.data,o=1048575&s,l=t.directiveStart,c=s>>20,h=r?o+c:t.directiveEnd;for(let d=n?o:o+c;d<h;d++){const t=a[d];if(d<l&&i===t||d>=l&&t.type===i)return d}if(r){const t=a[l];if(t&&dt(t)&&t.type===i)return l}return null}function Qe(t,e,i,n){let r=t[i];const s=e.data;if(r instanceof Oe){const a=r;a.resolving&&function(t,e){throw new pt("200",`Circular dependency in DI detected for ${t}`)}(gt(s[i]));const o=Fe(a.canSeeViewProviders);a.resolving=!0;const l=a.injectImpl?A(a.injectImpl):null;ce(t,n,S.Default);try{r=t[i]=a.factory(void 0,s,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(n){const n=yt(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}r&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,r),s&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,s),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,s))}(i,s[i],e)}finally{null!==l&&A(l),Fe(o),a.resolving=!1,fe()}}return r}function Je(t,e,i){return!!(i[e+(t>>5)]&1<<t)}function ti(t,e){return!(t&S.Self||t&S.Host&&e)}class ei{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return Ge(this._tNode,this._lView,t,void 0,e)}}function ii(t){const e=t;if(g(t))return()=>{const t=ii(f(e));return t?t():null};let i=ut(e);if(null===i){const t=_(e);i=t&&t.factory}return i||null}function ni(t){return E(()=>{const e=t.prototype.constructor,i=e[H]||ii(e),n=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){const t=r[H]||ii(r);if(t&&t!==i)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function ri(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n<t;){const r=i[n];if(De(r))break;if(0===r)n+=2;else if("number"==typeof r)for(n++;n<t&&"string"==typeof i[n];)n++;else{if(r===e)return i[n+1];n+=2}}}return null}(Xt(),t)}const si="__parameters__";function ai(t,e,i){return E(()=>{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function r(...t){if(this instanceof r)return n.apply(this,t),this;const e=new r(...t);return i.annotation=e,i;function i(t,i,n){const r=t.hasOwnProperty(si)?t[si]:Object.defineProperty(t,si,{value:[]})[si];for(;r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(e),t}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class oi{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=m({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const li=new oi("AnalyzeForEntryComponents"),ci=Function;function hi(t,e){void 0===e&&(e=t);for(let i=0;i<t.length;i++){let n=t[i];Array.isArray(n)?(e===t&&(e=t.slice(0,i)),hi(n,e)):e!==t&&e.push(n)}return e}function di(t,e){t.forEach(t=>Array.isArray(t)?di(t,e):e(t))}function ui(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function pi(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function fi(t,e){const i=[];for(let n=0;n<t;n++)i.push(e);return i}function gi(t,e,i){let n=bi(t,e);return n>=0?t[1|n]=i:(n=~n,function(t,e,i,n){let r=t.length;if(r==e)t.push(i,n);else if(1===r)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function mi(t,e){const i=bi(t,e);if(i>=0)return t[1|i]}function bi(t,e){return function(t,e,i){let n=0,r=t.length>>1;for(;r!==n;){const i=n+(r-n>>1),s=t[i<<1];if(e===s)return i<<1;s>e?r=i:n=i+1}return~(r<<1)}(t,e)}const vi={},yi=/\n/gm,_i="__source",xi=l({provide:String,useValue:l});let wi;function Ci(t){const e=wi;return wi=t,e}function ki(t,e=S.Default){if(void 0===wi)throw new Error("inject() must be called from an injection context");return null===wi?O(t,void 0,e):wi.get(t,e&S.Optional?null:void 0,e)}function Si(t,e=S.Default){return(T||ki)(f(t),e)}const Ti=Si;function Ai(t){const e=[];for(let i=0;i<t.length;i++){const n=f(t[i]);if(Array.isArray(n)){if(0===n.length)throw new Error("Arguments array must have arguments.");let t,i=S.Default;for(let e=0;e<n.length;e++){const r=n[e],s=r.__NG_DI_FLAG__;"number"==typeof s?-1===s?t=r.token:i|=s:t=r}e.push(Si(t,i))}else e.push(Si(n))}return e}function Oi(t,e){return t.__NG_DI_FLAG__=e,t.prototype.__NG_DI_FLAG__=e,t}const Ei=Oi(ai("Inject",t=>({token:t})),-1),Di=Oi(ai("Optional"),8),Pi=Oi(ai("SkipSelf"),4);let Ii,Mi;function Ri(t){var e;return(null===(e=function(){if(void 0===Ii&&(Ii=null,N.trustedTypes))try{Ii=N.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Ii}())||void 0===e?void 0:e.createHTML(t))||t}function Li(t){var e;return(null===(e=function(){if(void 0===Mi&&(Mi=null,N.trustedTypes))try{Mi=N.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Mi}())||void 0===e?void 0:e.createHTML(t))||t}class Ni{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class zi extends Ni{getTypeName(){return"HTML"}}class Fi extends Ni{getTypeName(){return"Style"}}class ji extends Ni{getTypeName(){return"Script"}}class Ui extends Ni{getTypeName(){return"URL"}}class Vi extends Ni{getTypeName(){return"ResourceURL"}}function Bi(t){return t instanceof Ni?t.changingThisBreaksApplicationSecurity:t}function Yi(t,e){const i=Hi(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function Hi(t){return t instanceof Ni&&t.getTypeName()||null}function Wi(t){return new zi(t)}function Xi(t){return new Fi(t)}function Gi(t){return new ji(t)}function qi(t){return new Ui(t)}function $i(t){return new Vi(t)}class Ki{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Ri(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Zi{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=Ri(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ri(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0<n;n--){const i=e.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||t.removeAttribute(i)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const Qi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Ji=/^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 tn(t){return(t=String(t)).match(Qi)||t.match(Ji)?t:"unsafe:"+t}function en(t){const e={};for(const i of t.split(","))e[i]=!0;return e}function nn(...t){const e={};for(const i of t)for(const t in i)i.hasOwnProperty(t)&&(e[t]=!0);return e}const rn=en("area,br,col,hr,img,wbr"),sn=en("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),an=en("rp,rt"),on=nn(an,sn),ln=nn(rn,nn(sn,en("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")),nn(an,en("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")),on),cn=en("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),hn=en("srcset"),dn=nn(cn,hn,en("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"),en("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")),un=en("script,style,template");class pn{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let 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(!ln.hasOwnProperty(e))return this.sanitizedSomething=!0,!un.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r<i.length;r++){const t=i.item(r),e=t.name,s=e.toLowerCase();if(!dn.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let a=t.value;cn[s]&&(a=tn(a)),hn[s]&&(n=a,a=(n=String(n)).split(",").map(t=>tn(t.trim())).join(", ")),this.buf.push(" ",e,'="',mn(a),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ln.hasOwnProperty(e)&&!rn.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(mn(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 fn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gn=/([^\#-~ |!])/g;function mn(t){return t.replace(/&/g,"&amp;").replace(fn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(gn,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let bn;function vn(t,e){let i=null;try{bn=bn||function(t){const e=new Zi(t);return function(){try{return!!(new window.DOMParser).parseFromString(Ri(""),"text/html")}catch(t){return!1}}()?new Ki(e):e}(t);let n=e?String(e):"";i=bn.getInertBodyElement(n);let r=5,s=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=s,s=i.innerHTML,i=bn.getInertBodyElement(n)}while(n!==s);return Ri((new pn).sanitizeChildren(yn(i)||i))}finally{if(i){const t=yn(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function yn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var _n=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 xn(t){const e=Cn();return e?Li(e.sanitize(_n.HTML,t)||""):Yi(t,"HTML")?Li(Bi(t)):vn(Tt(),ft(t))}function wn(t){const e=Cn();return e?e.sanitize(_n.URL,t)||"":Yi(t,"URL")?Bi(t):tn(ft(t))}function Cn(){const t=Yt();return t&&t[12]}function kn(t){return t.ngDebugContext}function Sn(t){return t.ngOriginalError}function Tn(t,...e){t.error(...e)}class An{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||Tn}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?kn(t)?kn(t):this._findContext(Sn(t)):null}_findOriginalError(t){let e=Sn(t);for(;e&&Sn(e);)e=Sn(e);return e}}function On(t,e){t.__ngContext__=e}const En=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(N))();function Dn(t){return{name:"document",target:t.ownerDocument}}function Pn(t){return{name:"body",target:t.ownerDocument.body}}function In(t){return t instanceof Function?t():t}var Mn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Rn(t,e){return(void 0)(t,e)}function Ln(t){const e=t[3];return ot(e)?e[3]:e}function Nn(t){return Fn(t[13])}function zn(t){return Fn(t[4])}function Fn(t){for(;null!==t&&!ot(t);)t=t[4];return t}function jn(t,e,i,n,r){if(null!=n){let s,a=!1;ot(n)?s=n:at(n)&&(a=!0,n=n[0]);const o=Et(n);0===t&&null!==i?null==r?Gn(e,i,o):Xn(e,i,o,r||null,!0):1===t&&null!==i?Xn(e,i,o,r||null,!0):2===t?function(t,e,i){const n=$n(t,e);n&&function(t,e,i,n){At(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,o,a):3===t&&e.destroyNode(o),null!=s&&function(t,e,i,n,r){const s=i[7];s!==Et(i)&&jn(e,t,n,s,r);for(let a=st;a<i.length;a++){const r=i[a];ir(r[1],r,t,e,n,s)}}(e,t,s,i,r)}}function Un(t,e,i){return At(t)?t.createElement(e,i):null===i?t.createElement(e):t.createElementNS(i,e)}function Vn(t,e){const i=t[9],n=i.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Ut(r,-1)),i.splice(n,1)}function Bn(t,e){if(t.length<=st)return;const i=st+e,n=t[i];if(n){const s=n[17];null!==s&&s!==t&&Vn(s,n),e>0&&(t[i-1][4]=n[4]);const a=pi(t,st+e);ir(n[1],r=n,r[11],2,null,null),r[0]=null,r[6]=null;const o=a[19];null!==o&&o.detachView(a[1]),n[3]=null,n[4]=null,n[2]&=-129}var r;return n}function Yn(t,e){if(!(256&e[2])){const i=e[11];At(i)&&i.destroyNode&&ir(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return Hn(t[1],t);for(;e;){let i=null;if(at(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)at(e)&&Hn(e[1],e),e=e[3];null===e&&(e=t),at(e)&&Hn(e[1],e),i=e&&e[4]}e=i}}(e)}}function Hn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n<i.length;n+=2){const t=e[i[n]];if(!(t instanceof Oe)){const e=i[n+1];if(Array.isArray(e))for(let i=0;i<e.length;i+=2)e[i+1].call(t[e[i]]);else e.call(t)}}}(t,e),function(t,e){const i=t.cleanup,n=e[7];let r=-1;if(null!==i)for(let s=0;s<i.length-1;s+=2)if("string"==typeof i[s]){const t=i[s+1],a="function"==typeof t?t(e):Et(e[t]),o=n[r=i[s+2]],l=i[s+3];"boolean"==typeof l?a.removeEventListener(i[s],o,l):l>=0?n[r=l]():n[r=-l].unsubscribe(),s+=2}else{const t=n[r=i[s+1]];i[s].call(t)}if(null!==n){for(let t=r+1;t<n.length;t++)(0,n[t])();e[7]=null}}(t,e),1===e[1].type&&At(e[11])&&e[11].destroy();const i=e[17];if(null!==i&&ot(e[3])){i!==e[3]&&Vn(i,e);const n=e[19];null!==n&&n.detachView(t)}}}function Wn(t,e,i){return function(t,e,i){let n=e;for(;null!==n&&40&n.type;)n=(e=n).parent;if(null===n)return i[0];if(2&n.flags){const e=t.data[n.directiveStart].encapsulation;if(e===P.None||e===P.Emulated)return null}return Pt(n,i)}(t,e.parent,i)}function Xn(t,e,i,n,r){At(t)?t.insertBefore(e,i,n,r):e.insertBefore(i,n,r)}function Gn(t,e,i){At(t)?t.appendChild(e,i):e.appendChild(i)}function qn(t,e,i,n,r){null!==n?Xn(t,e,i,n,r):Gn(t,e,i)}function $n(t,e){return At(t)?t.parentNode(e):e.parentNode}function Kn(t,e,i){return Zn(t,e,i)}let Zn=function(t,e,i){return 40&t.type?Pt(t,i):null};function Qn(t,e,i,n){const r=Wn(t,n,e),s=e[11],a=Kn(n.parent||e[6],n,e);if(null!=r)if(Array.isArray(i))for(let o=0;o<i.length;o++)qn(s,r,i[o],a,!1);else qn(s,r,i,a,!1)}function Jn(t,e){if(null!==e){const i=e.type;if(3&i)return Pt(e,t);if(4&i)return tr(-1,t[e.index]);if(8&i){const i=e.child;if(null!==i)return Jn(t,i);{const i=t[e.index];return ot(i)?tr(-1,i):Et(i)}}if(32&i)return Rn(e,t)()||Et(t[e.index]);{const i=t[16],n=i[6],r=Ln(i),s=n.projection[e.projection];return null!=s?Jn(r,s):Jn(t,e.next)}}return null}function tr(t,e){const i=st+t+1;if(i<e.length){const t=e[i],n=t[1].firstChild;if(null!==n)return Jn(t,n)}return e[7]}function er(t,e,i,n,r,s,a){for(;null!=i;){const o=n[i.index],l=i.type;if(a&&0===e&&(o&&On(Et(o),n),i.flags|=4),64!=(64&i.flags))if(8&l)er(t,e,i.child,n,r,s,!1),jn(e,t,r,o,s);else if(32&l){const a=Rn(i,n);let l;for(;l=a();)jn(e,t,r,l,s);jn(e,t,r,o,s)}else 16&l?nr(t,e,n,i,r,s):jn(e,t,r,o,s);i=a?i.projectionNext:i.next}}function ir(t,e,i,n,r,s){er(i,n,t.firstChild,e,r,s,!1)}function nr(t,e,i,n,r,s){const a=i[16],o=a[6].projection[n.projection];if(Array.isArray(o))for(let l=0;l<o.length;l++)jn(e,t,r,o[l],s);else er(t,e,o,a[3],r,s,!0)}function rr(t,e,i){At(t)?t.setAttribute(e,"style",i):e.style.cssText=i}function sr(t,e,i){At(t)?""===i?t.removeAttribute(e,"class"):t.setAttribute(e,"class",i):e.className=i}function ar(t,e,i){let n=t.length;for(;;){const r=t.indexOf(e,i);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const i=e.length;if(r+i===n||t.charCodeAt(r+i)<=32)return r}i=r+1}}const or="ng-template";function lr(t,e,i){let n=0;for(;n<t.length;){let r=t[n++];if(i&&"class"===r){if(r=t[n],-1!==ar(r.toLowerCase(),e,0))return!0}else if(1===r){for(;n<t.length&&"string"==typeof(r=t[n++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function cr(t){return 4===t.type&&t.value!==or}function hr(t,e,i){return e===(4!==t.type||i?t.value:or)}function dr(t,e,i){let n=4;const r=t.attrs||[],s=function(t){for(let e=0;e<t.length;e++)if(De(t[e]))return e;return t.length}(r);let a=!1;for(let o=0;o<e.length;o++){const l=e[o];if("number"!=typeof l){if(!a)if(4&n){if(n=2|1&n,""!==l&&!hr(t,l,i)||""===l&&1===e.length){if(ur(n))return!1;a=!0}}else{const c=8&n?l:e[++o];if(8&n&&null!==t.attrs){if(!lr(t.attrs,c,i)){if(ur(n))return!1;a=!0}continue}const h=pr(8&n?"class":l,r,cr(t),i);if(-1===h){if(ur(n))return!1;a=!0;continue}if(""!==c){let t;t=h>s?"":r[h+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==ar(e,c,0)||2&n&&c!==t){if(ur(n))return!1;a=!0}}}}else{if(!a&&!ur(n)&&!ur(l))return!1;if(a&&ur(l))continue;a=!1,n=l|1&n}}return ur(n)||a}function ur(t){return 0==(1&t)}function pr(t,e,i,n){if(null===e)return-1;let r=0;if(n||!i){let i=!1;for(;r<e.length;){const n=e[r];if(n===t)return r;if(3===n||6===n)i=!0;else{if(1===n||2===n){let t=e[++r];for(;"string"==typeof t;)t=e[++r];continue}if(4===n)break;if(0===n){r+=4;continue}}r+=i?1:2}return-1}return function(t,e){let i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){const n=t[i];if("number"==typeof n)return-1;if(n===e)return i;i++}return-1}(e,t)}function fr(t,e,i=!1){for(let n=0;n<e.length;n++)if(dr(t,e[n],i))return!0;return!1}function gr(t,e){t:for(let i=0;i<e.length;i++){const n=e[i];if(t.length===n.length){for(let e=0;e<t.length;e++)if(t[e]!==n[e])continue t;return!0}}return!1}function mr(t,e){return t?":not("+e.trim()+")":e}function br(t){let e=t[0],i=1,n=2,r="",s=!1;for(;i<t.length;){let a=t[i];if("string"==typeof a)if(2&n){const e=t[++i];r+="["+a+(e.length>0?'="'+e+'"':"")+"]"}else 8&n?r+="."+a:4&n&&(r+=" "+a);else""===r||ur(a)||(e+=mr(s,r),r=""),n=a,s=s||!ur(n);i++}return""!==r&&(e+=mr(s,r)),e}const vr={};function yr(t){_r(Ht(),Yt(),me()+t,Zt())}function _r(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&we(e,n,i)}else{const n=t.preOrderHooks;null!==n&&Ce(e,n,0,i)}be(i)}function xr(t,e){return t<<17|e<<2}function wr(t){return t>>17&32767}function Cr(t){return 2|t}function kr(t){return(131068&t)>>2}function Sr(t,e){return-131069&t|e<<2}function Tr(t){return 1|t}function Ar(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;n<i.length;n+=2){const r=i[n],s=i[n+1];if(-1!==s){const i=t.data[s];oe(r),i.contentQueries(2,e[s],s)}}}function Or(t,e,i,n,r,s,a,o,l,c){const h=e.blueprint.slice();return h[0]=r,h[2]=140|n,jt(h),h[3]=h[15]=t,h[8]=i,h[10]=a||t&&t[10],h[11]=o||t&&t[11],h[12]=l||t&&t[12]||null,h[9]=c||t&&t[9]||null,h[6]=s,h[16]=2==e.type?t[16]:h,h}function Er(t,e,i,n,r){let s=t.data[e];if(null===s)s=function(t,e,i,n,r){const s=Gt(),a=$t(),o=t.data[e]=function(t,e,i,n,r,s){return{type:i,index:n,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?s:s&&s.parent,i,e,n,r);return null===t.firstChild&&(t.firstChild=o),null!==s&&(a?null==s.child&&null!==o.parent&&(s.child=o):null===s.next&&(s.next=o)),o}(t,e,i,n,r),Vt.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=i,s.value=n,s.attrs=r;const t=function(){const t=Vt.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();s.injectorIndex=null===t?-1:t.injectorIndex}return qt(s,!0),s}function Dr(t,e,i,n){if(0===i)return-1;const r=e.length;for(let s=0;s<i;s++)e.push(n),t.blueprint.push(n),t.data.push(null);return r}function Pr(t,e,i){he(e);try{const n=t.viewQuery;null!==n&&os(1,n,i);const r=t.template;null!==r&&Rr(t,e,r,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Ar(t,e),t.staticViewQueries&&os(2,t.viewQuery,i);const s=t.components;null!==s&&function(t,e){for(let i=0;i<e.length;i++)is(t,e[i])}(e,s)}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),n}finally{e[2]&=-5,ge()}}function Ir(t,e,i,n){const r=e[2];if(256==(256&r))return;he(e);const s=Zt();try{jt(e),Vt.lFrame.bindingIndex=t.bindingStartIndex,null!==i&&Rr(t,e,i,2,n);const a=3==(3&r);if(!s)if(a){const i=t.preOrderCheckHooks;null!==i&&we(e,i,null)}else{const i=t.preOrderHooks;null!==i&&Ce(e,i,0,null),ke(e,0)}if(function(t){for(let e=Nn(t);null!==e;e=zn(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const i=t[e],n=i[3];0==(1024&i[2])&&Ut(n,1),i[2]|=1024}}}(e),function(t){for(let e=Nn(t);null!==e;e=zn(e))for(let t=st;t<e.length;t++){const i=e[t],n=i[1];zt(i)&&Ir(n,i,n.template,i[8])}}(e),null!==t.contentQueries&&Ar(t,e),!s)if(a){const i=t.contentCheckHooks;null!==i&&we(e,i)}else{const i=t.contentHooks;null!==i&&Ce(e,i,1),ke(e,1)}!function(t,e){const i=t.hostBindingOpCodes;if(null!==i)try{for(let t=0;t<i.length;t++){const n=i[t];if(n<0)be(~n);else{const r=n,s=i[++t],a=i[++t];ne(s,r),a(2,e[r])}}}finally{be(-1)}}(t,e);const o=t.components;null!==o&&function(t,e){for(let i=0;i<e.length;i++)ts(t,e[i])}(e,o);const l=t.viewQuery;if(null!==l&&os(2,l,n),!s)if(a){const i=t.viewCheckHooks;null!==i&&we(e,i)}else{const i=t.viewHooks;null!==i&&Ce(e,i,2),ke(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),s||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Ut(e[3],-1))}finally{ge()}}function Mr(t,e,i,n){const r=e[10],s=!Zt(),a=Nt(e);try{s&&!a&&r.begin&&r.begin(),a&&Pr(t,e,n),Ir(t,e,i,n)}finally{s&&!a&&r.end&&r.end()}}function Rr(t,e,i,n,r){const s=me();try{be(-1),2&n&&e.length>rt&&_r(t,e,rt,Zt()),i(n,r)}finally{be(s)}}function Lr(t,e,i){if(lt(e)){const n=e.directiveEnd;for(let r=e.directiveStart;r<n;r++){const e=t.data[r];e.contentQueries&&e.contentQueries(1,i[r],r)}}}function Nr(t,e,i){Bt()&&(function(t,e,i,n){const r=i.directiveStart,s=i.directiveEnd;t.firstCreatePass||Ue(i,e),On(n,e);const a=i.initialInputs;for(let o=r;o<s;o++){const n=t.data[o],s=dt(n);s&&Kr(e,i,n);const l=Qe(e,t,o,i);On(l,e),null!==a&&Zr(0,o-r,l,n,0,a),s&&(Rt(i.index,e)[8]=l)}}(t,e,i,Pt(i,e)),128==(128&i.flags)&&function(t,e,i){const n=i.directiveStart,r=i.directiveEnd,s=i.index,a=Vt.lFrame.currentDirectiveIndex;try{be(s);for(let i=n;i<r;i++){const n=t.data[i],r=e[i];re(i),null===n.hostBindings&&0===n.hostVars&&null===n.hostAttrs||Wr(n,r)}}finally{be(-1),re(a)}}(t,e,i))}function zr(t,e,i=Pt){const n=e.localNames;if(null!==n){let r=e.index+1;for(let s=0;s<n.length;s+=2){const a=n[s+1],o=-1===a?i(e,t):t[a];t[r++]=o}}}function Fr(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=jr(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function jr(t,e,i,n,r,s,a,o,l,c){const h=rt+n,d=h+r,u=function(t,e){const i=[];for(let n=0;n<e;n++)i.push(n<t?null:vr);return i}(h,d),p="function"==typeof c?c():c;return u[1]={type:t,blueprint:u,template:i,queries:null,viewQuery:o,declTNode:e,data:u.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function Ur(t,e,i,n){const r=cs(e);null===i?r.push(n):(r.push(i),t.firstCreatePass&&hs(t).push(n,r.length-1))}function Vr(t,e,i){for(let n in t)if(t.hasOwnProperty(n)){const r=t[n];(i=null===i?{}:i).hasOwnProperty(n)?i[n].push(e,r):i[n]=[e,r]}return i}function Br(t,e,i,n,r,s,a,o){const l=Pt(e,i);let c,h=e.inputs;var d;!o&&null!=h&&(c=h[n])?(ps(t,i,c,n,r),ct(e)&&function(t,e){const i=Rt(e,t);16&i[2]||(i[2]|=64)}(i,e.index)):3&e.type&&(n="class"===(d=n)?"className":"for"===d?"htmlFor":"formaction"===d?"formAction":"innerHtml"===d?"innerHTML":"readonly"===d?"readOnly":"tabindex"===d?"tabIndex":d,r=null!=a?a(r,e.value||"",n):r,At(s)?s.setProperty(l,n,r):Pe(n)||(l.setProperty?l.setProperty(n,r):l[n]=r))}function Yr(t,e,i,n){let r=!1;if(Bt()){const s=function(t,e,i){const n=t.directiveRegistry;let r=null;if(n)for(let s=0;s<n.length;s++){const a=n[s];fr(i,a.selectors,!1)&&(r||(r=[]),He(Ue(i,e),t,a.type),dt(a)?(Xr(t,i),r.unshift(a)):r.push(a))}return r}(t,e,i),a=null===n?null:{"":-1};if(null!==s){r=!0,qr(i,t.data.length,s.length);for(let t=0;t<s.length;t++){const e=s[t];e.providersResolver&&e.providersResolver(e)}let n=!1,o=!1,l=Dr(t,e,s.length,null);for(let r=0;r<s.length;r++){const c=s[r];i.mergedAttrs=Ie(i.mergedAttrs,c.hostAttrs),$r(t,i,e,l,c),Gr(l,c,a),null!==c.contentQueries&&(i.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(i.flags|=128);const h=c.type.prototype;!n&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(i.index),n=!0),o||!h.ngOnChanges&&!h.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(i.index),o=!0),l++}!function(t,e){const i=e.directiveEnd,n=t.data,r=e.attrs,s=[];let a=null,o=null;for(let l=e.directiveStart;l<i;l++){const t=n[l],i=t.inputs,c=null===r||cr(e)?null:Qr(i,r);s.push(c),a=Vr(i,l,a),o=Vr(t.outputs,l,o)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=s,e.inputs=a,e.outputs=o}(t,i)}a&&function(t,e,i){if(e){const n=t.localNames=[];for(let t=0;t<e.length;t+=2){const r=i[e[t+1]];if(null==r)throw new pt("301",`Export of name '${e[t+1]}' not found!`);n.push(e[t],r)}}}(i,n,a)}return i.mergedAttrs=Ie(i.mergedAttrs,i.attrs),r}function Hr(t,e,i,n,r,s){const a=s.hostBindings;if(a){let i=t.hostBindingOpCodes;null===i&&(i=t.hostBindingOpCodes=[]);const s=~e.index;(function(t){let e=t.length;for(;e>0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=s&&i.push(s),i.push(n,r,a)}}function Wr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Xr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Gr(t,e,i){if(i){if(e.exportAs)for(let n=0;n<e.exportAs.length;n++)i[e.exportAs[n]]=t;dt(e)&&(i[""]=t)}}function qr(t,e,i){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+i,t.providerIndexes=e}function $r(t,e,i,n,r){t.data[n]=r;const s=r.factory||(r.factory=ut(r.type)),a=new Oe(s,dt(r),null);t.blueprint[n]=a,i[n]=a,Hr(t,e,0,n,Dr(t,i,r.hostVars,vr),r)}function Kr(t,e,i){const n=Pt(e,t),r=Fr(i),s=t[10],a=ns(t,Or(t,r,null,i.onPush?64:16,n,e,s,s.createRenderer(n,i),null,null));t[e.index]=a}function Zr(t,e,i,n,r,s){const a=s[e];if(null!==a){const t=n.setInput;for(let e=0;e<a.length;){const r=a[e++],s=a[e++],o=a[e++];null!==t?n.setInput(i,o,r,s):i[s]=o}}}function Qr(t,e){let i=null,n=0;for(;n<e.length;){const r=e[n];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===i&&(i=[]),i.push(r,t[r],e[n+1])),n+=2}else n+=2;else n+=4}return i}function Jr(t,e,i,n){return new Array(t,!0,!1,e,null,0,n,i,null,null)}function ts(t,e){const i=Rt(e,t);if(zt(i)){const t=i[1];80&i[2]?Ir(t,i,t.template,i[8]):i[5]>0&&es(i)}}function es(t){for(let i=Nn(t);null!==i;i=zn(i))for(let t=st;t<i.length;t++){const e=i[t];if(1024&e[2]){const t=e[1];Ir(t,e,t.template,e[8])}else e[5]>0&&es(e)}const e=t[1].components;if(null!==e)for(let i=0;i<e.length;i++){const n=Rt(e[i],t);zt(n)&&n[5]>0&&es(n)}}function is(t,e){const i=Rt(e,t),n=i[1];!function(t,e){for(let i=e.length;i<t.blueprint.length;i++)e.push(t.blueprint[i])}(n,i),Pr(n,i,i[8])}function ns(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function rs(t){for(;t;){t[2]|=64;const e=Ln(t);if(0!=(512&t[2])&&!e)return t;t=e}return null}function ss(t,e,i){const n=e[10];n.begin&&n.begin();try{Ir(t,e,t.template,i)}catch(r){throw us(e,r),r}finally{n.end&&n.end()}}function as(t){!function(t){for(let e=0;e<t.components.length;e++){const i=t.components[e],n=Lt(i),r=n[1];Mr(r,n,r.template,i)}}(t[8])}function os(t,e,i){oe(0),e(t,i)}const ls=(()=>Promise.resolve(null))();function cs(t){return t[7]||(t[7]=[])}function hs(t){return t.cleanup||(t.cleanup=[])}function ds(t,e,i){return(null===t||dt(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function us(t,e){const i=t[9],n=i?i.get(An,null):null;n&&n.handleError(e)}function ps(t,e,i,n,r){for(let s=0;s<i.length;){const a=i[s++],o=i[s++],l=e[a],c=t.data[a];null!==c.setInput?c.setInput(l,r,n,o):l[o]=r}}function fs(t,e,i){const n=Dt(e,t);!function(t,e,i){At(t)?t.setValue(e,i):e.textContent=i}(t[11],n,i)}function gs(t,e,i){let n=i?t.styles:null,r=i?t.classes:null,s=0;if(null!==e)for(let a=0;a<e.length;a++){const t=e[a];"number"==typeof t?s=t:1==s?r=d(r,t):2==s&&(n=d(n,t+": "+e[++a]+";"))}i?t.styles=n:t.stylesWithoutHost=n,i?t.classes=r:t.classesWithoutHost=r}const ms=new oi("INJECTOR",-1);class bs{get(t,e=vi){if(e===vi){const e=new Error(`NullInjectorError: No provider for ${h(t)}!`);throw e.name="NullInjectorError",e}return e}}const vs=new oi("Set Injector scope."),ys={},_s={},xs=[];let ws;function Cs(){return void 0===ws&&(ws=new bs),ws}function ks(t,e=null,i=null,n){return new Ss(t,i,e||Cs(),n)}class Ss{constructor(t,e,i,n=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&di(e,i=>this.processProvider(i,t,e)),di([t],t=>this.processInjectorType(t,[],r)),this.records.set(ms,Os(void 0,this));const s=this.records.get(vs);this.scope=null!=s?s.value:null,this.source=n||("object"==typeof t?null:h(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=vi,i=S.Default){this.assertNotDestroyed();const n=Ci(this);try{if(!(i&S.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(r=t)||"object"==typeof r&&r instanceof oi)&&v(t);e=i&&this.injectableDefInScope(i)?Os(Ts(t),ys):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&S.Self?Cs():this.parent).get(t,e=i&S.Optional&&e===vi?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(h(t)),n)throw s;return function(t,e,i,n){const r=t.ngTempTokenPath;throw e[_i]&&r.unshift(e[_i]),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=h(e);if(Array.isArray(e))r=e.map(h).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):h(n)))}r=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${t.replace(yi,"\n  ")}`}("\n"+t.message,r,i,n),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{Ci(n)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(h(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=f(t)))return!1;let n=_(t);const r=null==n&&t.ngModule||void 0,s=void 0===r?t:r,a=-1!==i.indexOf(s);if(void 0!==r&&(n=_(r)),null==n)return!1;if(null!=n.imports&&!a){let t;i.push(s);try{di(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:i,providers:n}=t[e];di(n,t=>this.processProvider(t,i,n||xs))}}this.injectorDefTypes.add(s),this.records.set(s,Os(n.factory,ys));const o=n.providers;if(null!=o&&!a){const e=t;di(o,t=>this.processProvider(t,e,o))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,i){let n=Ds(t=f(t))?t:f(t&&t.provide);const r=function(t,e,i){return Es(t)?Os(void 0,t.useValue):Os(As(t),ys)}(t);if(Ds(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=Os(void 0,ys,!0),e.factory=()=>Ai(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,r)}hydrate(t,e){var i;return e.value===ys&&(e.value=_s,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.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 Ts(t){const e=v(t),i=null!==e?e.factory:ut(t);if(null!==i)return i;const n=_(t);if(null!==n)return n.factory;if(t instanceof oi)throw new Error(`Token ${h(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=fi(e,"?");throw new Error(`Can't resolve all parameters for ${h(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[x]||t[C]);if(e){const i=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 "${i}" 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 "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function As(t,e,i){let n;if(Ds(t)){const e=f(t);return ut(e)||Ts(e)}if(Es(t))n=()=>f(t.useValue);else if((r=t)&&r.useFactory)n=()=>t.useFactory(...Ai(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>Si(f(t.useExisting));else{const e=f(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ut(e)||Ts(e);n=()=>new e(...Ai(t.deps))}var r;return n}function Os(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function Es(t){return null!==t&&"object"==typeof t&&xi in t}function Ds(t){return"function"==typeof t}const Ps=function(t,e,i){return function(t,e=null,i=null,n){const r=ks(t,e,i,n);return r._resolveInjectorDefTypes(),r}({name:i},e,t,i)};let Is=(()=>{class t{static create(t,e){return Array.isArray(t)?Ps(t,e,""):Ps(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=vi,t.NULL=new bs,t.\u0275prov=m({token:t,providedIn:"any",factory:()=>Si(ms)}),t.__NG_ELEMENT_ID__=-1,t})();function Ms(t,e){xe(Lt(t)[1],Xt())}function Rs(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let r;if(dt(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(i){n.push(r);const e=t;e.inputs=Ls(t.inputs),e.declaredInputs=Ls(t.declaredInputs),e.outputs=Ls(t.outputs);const i=r.hostBindings;i&&Fs(t,i);const s=r.viewQuery,a=r.contentQueries;if(s&&Ns(t,s),a&&zs(t,a),c(t.inputs,r.inputs),c(t.declaredInputs,r.declaredInputs),c(t.outputs,r.outputs),dt(r)&&r.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(r.data.animation)}}const e=r.features;if(e)for(let n=0;n<e.length;n++){const r=e[n];r&&r.ngInherit&&r(t),r===Rs&&(i=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,i=null;for(let n=t.length-1;n>=0;n--){const r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=Ie(r.hostAttrs,i=Ie(i,r.hostAttrs))}}(n)}function Ls(t){return t===z?{}:t===F?[]:t}function Ns(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function zs(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,r)=>{e(t,n,r),i(t,n,r)}:e}function Fs(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let js=null;function Us(){if(!js){const t=N.Symbol;if(t&&t.iterator)js=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const i=t[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(js=i)}}}return js}class Vs{constructor(t){this.wrapped=t}static wrap(t){return new Vs(t)}static unwrap(t){return Vs.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Vs}}function Bs(t){return!!Ys(t)&&(Array.isArray(t)||!(t instanceof Map)&&Us()in t)}function Ys(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Hs(t,e,i){return t[e]=i}function Ws(t,e){return t[e]}function Xs(t,e,i){return!Object.is(t[e],i)&&(t[e]=i,!0)}function Gs(t,e,i,n){const r=Xs(t,e,i);return Xs(t,e+1,n)||r}function qs(t,e,i,n,r){const s=Gs(t,e,i,n);return Xs(t,e+2,r)||s}function $s(t,e,i,n,r,s){const a=Gs(t,e,i,n);return Gs(t,e+2,r,s)||a}function Ks(t,e,i,n){const r=Yt();return Xs(r,ee(),e)&&(Ht(),function(t,e,i,n,r,s){const a=Pt(t,e);!function(t,e,i,n,r,s,a){if(null==s)At(t)?t.removeAttribute(e,r,i):e.removeAttribute(r);else{const o=null==a?ft(s):a(s,n||"",r);At(t)?t.setAttribute(e,r,o,i):i?e.setAttributeNS(i,r,o):e.setAttribute(r,o)}}(e[11],a,s,t.value,i,n,r)}(ve(),r,t,e,i,n)),Ks}function Zs(t,e,i,n){return Xs(t,ee(),i)?e+ft(i)+n:vr}function Qs(t,e,i,n,r,s,a,o){const l=Yt(),c=Ht(),h=t+rt,d=c.firstCreatePass?function(t,e,i,n,r,s,a,o,l){const c=e.consts,h=Er(e,t,4,a||null,Ft(c,o));Yr(e,i,h,Ft(c,l)),xe(e,h);const d=h.tViews=jr(2,h,n,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,h),d.queries=e.queries.embeddedTView(h)),h}(h,c,l,e,i,n,r,s,a):c.data[h];qt(d,!1);const u=l[11].createComment("");Qn(c,l,u,d),On(u,l),ns(l,l[h]=Jr(u,l,u,d)),ht(d)&&Nr(c,l,d),null!=a&&zr(l,d,o)}function Js(t){return Mt(Vt.lFrame.contextLView,rt+t)}function ta(t,e=S.Default){const i=Yt();return null===i?Si(t,e):Ge(Xt(),i,f(t),e)}function ea(t,e,i){const n=Yt();return Xs(n,ee(),e)&&Br(Ht(),ve(),n,t,e,n[11],i,!1),ea}function ia(t,e,i,n,r){const s=r?"class":"style";ps(t,i,e.inputs[s],s,n)}function na(t,e,i,n){const r=Yt(),s=Ht(),a=rt+t,o=r[11],l=r[a]=Un(o,e,Vt.lFrame.currentNamespace),c=s.firstCreatePass?function(t,e,i,n,r,s,a){const o=e.consts,l=Er(e,t,2,r,Ft(o,s));return Yr(e,i,l,Ft(o,a)),null!==l.attrs&&gs(l,l.attrs,!1),null!==l.mergedAttrs&&gs(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(a,s,r,0,e,i,n):s.data[a];qt(c,!0);const h=c.mergedAttrs;null!==h&&Ee(o,l,h);const d=c.classes;null!==d&&sr(o,l,d);const u=c.styles;null!==u&&rr(o,l,u),64!=(64&c.flags)&&Qn(s,r,l,c),0===Vt.lFrame.elementDepthCount&&On(l,r),Vt.lFrame.elementDepthCount++,ht(c)&&(Nr(s,r,c),Lr(s,c,r)),null!==n&&zr(r,c)}function ra(){let t=Xt();$t()?Kt():(t=t.parent,qt(t,!1));const e=t;Vt.lFrame.elementDepthCount--;const i=Ht();i.firstCreatePass&&(xe(i,t),lt(t)&&i.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&ia(i,e,Yt(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&ia(i,e,Yt(),e.stylesWithoutHost,!1)}function sa(t,e,i,n){na(t,e,i,n),ra()}function aa(t,e,i){const n=Yt(),r=Ht(),s=t+rt,a=r.firstCreatePass?function(t,e,i,n,r){const s=e.consts,a=Ft(s,n),o=Er(e,t,8,"ng-container",a);return null!==a&&gs(o,a,!0),Yr(e,i,o,Ft(s,r)),null!==e.queries&&e.queries.elementStart(e,o),o}(s,r,n,e,i):r.data[s];qt(a,!0);const o=n[s]=n[11].createComment("");Qn(r,n,o,a),On(o,n),ht(a)&&(Nr(r,n,a),Lr(r,a,n)),null!=i&&zr(n,a)}function oa(){let t=Xt();const e=Ht();$t()?Kt():(t=t.parent,qt(t,!1)),e.firstCreatePass&&(xe(e,t),lt(t)&&e.queries.elementEnd(t))}function la(t,e,i){aa(t,e,i),oa()}function ca(){return Yt()}function ha(t){return!!t&&"function"==typeof t.then}function da(t){return!!t&&"function"==typeof t.subscribe}const ua=da;function pa(t,e,i=!1,n){const r=Yt(),s=Ht(),a=Xt();return ga(s,r,r[11],a,t,e,i,n),pa}function fa(t,e,i=!1,n){const r=Xt(),s=Yt(),a=Ht();return ga(a,s,ds(se(a.data),r,s),r,t,e,i,n),fa}function ga(t,e,i,n,r,s,a=!1,o){const l=ht(n),c=t.firstCreatePass&&hs(t),h=cs(e);let d=!0;if(3&n.type){const u=Pt(n,e),p=o?o(u):z,f=p.target||u,g=h.length,m=o?t=>o(Et(t[n.index])).target:n.index;if(At(i)){let a=null;if(!o&&l&&(a=function(t,e,i,n){const r=t.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const t=r[s];if(t===i&&r[s+1]===n){const t=e[7],i=r[s+2];return t.length>i?t[i]:null}"string"==typeof t&&(s+=2)}return null}(t,e,r,n.index)),null!==a)(a.__ngLastListenerFn__||a).__ngNextListenerFn__=s,a.__ngLastListenerFn__=s,d=!1;else{s=ba(n,e,s,!1);const t=i.listen(p.name||f,r,s);h.push(s,t),c&&c.push(r,m,g,g+1)}}else s=ba(n,e,s,!0),f.addEventListener(r,s,a),h.push(s),c&&c.push(r,m,g,a)}else s=ba(n,e,s,!1);const u=n.outputs;let p;if(d&&null!==u&&(p=u[r])){const t=p.length;if(t)for(let i=0;i<t;i+=2){const t=e[p[i]][p[i+1]].subscribe(s),a=h.length;h.push(s,t),c&&c.push(r,n.index,a,-(a+1))}}}function ma(t,e,i){try{return!1!==e(i)}catch(n){return us(t,n),!1}}function ba(t,e,i,n){return function r(s){if(s===Function)return i;const a=2&t.flags?Rt(t.index,e):e;0==(32&e[2])&&rs(a);let o=ma(e,i,s),l=r.__ngNextListenerFn__;for(;l;)o=ma(e,l,s)&&o,l=l.__ngNextListenerFn__;return n&&!1===o&&(s.preventDefault(),s.returnValue=!1),o}}function va(t=1){return function(t){return(Vt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Vt.lFrame.contextLView))[8]}(t)}function ya(t,e){let i=null;const n=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 r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===n?fr(t,s,!0):gr(n,s))return r}else i=r}return i}function _a(t){const e=Yt()[16][6];if(!e.projection){const i=e.projection=fi(t?t.length:1,null),n=i.slice();let r=e.child;for(;null!==r;){const e=t?ya(r,t):0;null!==e&&(n[e]?n[e].projectionNext=r:i[e]=r,n[e]=r),r=r.next}}}function xa(t,e=0,i){const n=Yt(),r=Ht(),s=Er(r,rt+t,16,null,i||null);null===s.projection&&(s.projection=e),Kt(),64!=(64&s.flags)&&function(t,e,i){nr(e[11],0,e,i,Wn(t,i,e),Kn(i.parent||e[6],i,e))}(r,n,s)}function wa(t,e,i){return Ca(t,"",e,"",i),wa}function Ca(t,e,i,n,r){const s=Yt(),a=Zs(s,e,i,n);return a!==vr&&Br(Ht(),ve(),s,t,a,s[11],r,!1),Ca}const ka=[];function Sa(t,e,i,n,r){const s=t[i+1],a=null===e;let o=n?wr(s):kr(s),l=!1;for(;0!==o&&(!1===l||a);){const i=t[o+1];Ta(t[o],e)&&(l=!0,t[o+1]=n?Tr(i):Cr(i)),o=n?wr(i):kr(i)}l&&(t[i+1]=n?Cr(s):Tr(s))}function Ta(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&bi(t,e)>=0}const Aa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Oa(t){return t.substring(Aa.key,Aa.keyEnd)}function Ea(t,e){const i=Aa.textEnd;return i===e?-1:(e=Aa.keyEnd=function(t,e,i){for(;e<i&&t.charCodeAt(e)>32;)e++;return e}(t,Aa.key=e,i),Da(t,e,i))}function Da(t,e,i){for(;e<i&&t.charCodeAt(e)<=32;)e++;return e}function Pa(t,e,i){return La(t,e,i,!1),Pa}function Ia(t,e){return La(t,e,null,!0),Ia}function Ma(t){Na(gi,Ra,t,!0)}function Ra(t,e){for(let i=function(t){return function(t){Aa.key=0,Aa.keyEnd=0,Aa.value=0,Aa.valueEnd=0,Aa.textEnd=t.length}(t),Ea(t,Da(t,0,Aa.textEnd))}(e);i>=0;i=Ea(e,i))gi(t,Oa(e),!0)}function La(t,e,i,n){const r=Yt(),s=Ht(),a=ie(2);s.firstUpdatePass&&Fa(s,t,a,n),e!==vr&&Xs(r,a,e)&&Va(s,s.data[me()],r,r[11],t,r[a+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=h(Bi(t)))),t}(e,i),n,a)}function Na(t,e,i,n){const r=Ht(),s=ie(2);r.firstUpdatePass&&Fa(r,null,s,n);const a=Yt();if(i!==vr&&Xs(a,s,i)){const o=r.data[me()];if(Ha(o,n)&&!za(r,s)){let t=n?o.classesWithoutHost:o.stylesWithoutHost;null!==t&&(i=d(t,i||"")),ia(r,o,a,i,n)}else!function(t,e,i,n,r,s,a,o){r===vr&&(r=ka);let l=0,c=0,h=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==h||null!==d;){const u=l<r.length?r[l+1]:void 0,p=c<s.length?s[c+1]:void 0;let f,g=null;h===d?(l+=2,c+=2,u!==p&&(g=d,f=p)):null===d||null!==h&&h<d?(l+=2,g=h):(c+=2,g=d,f=p),null!==g&&Va(t,e,i,n,g,f,a,o),h=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,o,a,a[11],a[s+1],a[s+1]=function(t,e,i){if(null==i||""===i)return ka;const n=[],r=Bi(i);if(Array.isArray(r))for(let s=0;s<r.length;s++)t(n,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&t(n,s,r[s]);else"string"==typeof r&&e(n,r);return n}(t,e,i),n,s)}}function za(t,e){return e>=t.expandoStartIndex}function Fa(t,e,i,n){const r=t.data;if(null===r[i+1]){const s=r[me()],a=za(t,i);Ha(s,n)&&null===e&&!a&&(e=!1),e=function(t,e,i,n){const r=se(t);let s=n?e.residualClasses:e.residualStyles;if(null===r)0===(n?e.classBindings:e.styleBindings)&&(i=Ua(i=ja(null,t,e,i,n),e.attrs,n),s=null);else{const a=e.directiveStylingLast;if(-1===a||t[a]!==r)if(i=ja(r,t,e,i,n),null===s){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==kr(n))return t[wr(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=ja(null,t,e,i[1],n),i=Ua(i,e.attrs,n),function(t,e,i,n){t[wr(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else s=function(t,e,i){let n;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)n=Ua(n,t[s].hostAttrs,i);return Ua(n,e.attrs,i)}(t,e,n)}return void 0!==s&&(n?e.residualClasses=s:e.residualStyles=s),i}(r,s,e,n),function(t,e,i,n,r,s){let a=s?e.classBindings:e.styleBindings,o=wr(a),l=kr(a);t[n]=i;let c,h=!1;if(Array.isArray(i)){const t=i;c=t[1],(null===c||bi(t,c)>0)&&(h=!0)}else c=i;if(r)if(0!==l){const e=wr(t[o+1]);t[n+1]=xr(e,o),0!==e&&(t[e+1]=Sr(t[e+1],n)),t[o+1]=131071&t[o+1]|n<<17}else t[n+1]=xr(o,0),0!==o&&(t[o+1]=Sr(t[o+1],n)),o=n;else t[n+1]=xr(l,0),0===o?o=n:t[l+1]=Sr(t[l+1],n),l=n;h&&(t[n+1]=Cr(t[n+1])),Sa(t,c,n,!0),Sa(t,c,n,!1),function(t,e,i,n,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&bi(s,e)>=0&&(i[n+1]=Tr(i[n+1]))}(e,c,t,n,s),a=xr(o,l),s?e.classBindings=a:e.styleBindings=a}(r,s,e,i,a,n)}}function ja(t,e,i,n,r){let s=null;const a=i.directiveEnd;let o=i.directiveStylingLast;for(-1===o?o=i.directiveStart:o++;o<a&&(s=e[o],n=Ua(n,s.hostAttrs,r),s!==t);)o++;return null!==t&&(i.directiveStylingLast=o),n}function Ua(t,e,i){const n=i?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const a=e[s];"number"==typeof a?r=a:r===n&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),gi(t,a,!!i||e[++s]))}return void 0===t?null:t}function Va(t,e,i,n,r,s,a,o){if(!(3&e.type))return;const l=t.data,c=l[o+1];Ya(1==(1&c)?Ba(l,e,i,r,kr(c),a):void 0)||(Ya(s)||2==(2&c)&&(s=Ba(l,null,i,r,o,a)),function(t,e,i,n,r){const s=At(t);if(e)r?s?t.addClass(i,n):i.classList.add(n):s?t.removeClass(i,n):i.classList.remove(n);else{let e=-1===n.indexOf("-")?void 0:Mn.DashCase;if(null==r)s?t.removeStyle(i,n,e):i.style.removeProperty(n);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),e|=Mn.Important),s?t.setStyle(i,n,r,e):i.style.setProperty(n,r,a?"important":"")}}}(n,a,Dt(me(),i),r,s))}function Ba(t,e,i,n,r,s){const a=null===e;let o;for(;r>0;){const e=t[r],s=Array.isArray(e),l=s?e[1]:e,c=null===l;let h=i[r+1];h===vr&&(h=c?ka:void 0);let d=c?mi(h,n):l===n?h:void 0;if(s&&!Ya(d)&&(d=mi(e,n)),Ya(d)&&(o=d,a))return o;const u=t[r+1];r=a?wr(u):kr(u)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(o=mi(t,n))}return o}function Ya(t){return void 0!==t}function Ha(t,e){return 0!=(t.flags&(e?16:32))}function Wa(t,e=""){const i=Yt(),n=Ht(),r=t+rt,s=n.firstCreatePass?Er(n,r,1,e,null):n.data[r],a=i[r]=function(t,e){return At(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Qn(n,i,a,s),qt(s,!1)}function Xa(t){return Ga("",t,""),Xa}function Ga(t,e,i){const n=Yt(),r=Zs(n,t,e,i);return r!==vr&&fs(n,me(),r),Ga}function qa(t,e,i,n,r){const s=Yt(),a=function(t,e,i,n,r,s){const a=Gs(t,te(),i,r);return ie(2),a?e+ft(i)+n+ft(r)+s:vr}(s,t,e,i,n,r);return a!==vr&&fs(s,me(),a),qa}function $a(t,e,i,n,r,s,a){const o=Yt(),l=function(t,e,i,n,r,s,a,o){const l=qs(t,te(),i,r,a);return ie(3),l?e+ft(i)+n+ft(r)+s+ft(a)+o:vr}(o,t,e,i,n,r,s,a);return l!==vr&&fs(o,me(),l),$a}function Ka(t,e,i,n,r,s,a,o,l){const c=Yt(),h=function(t,e,i,n,r,s,a,o,l,c){const h=$s(t,te(),i,r,a,l);return ie(4),h?e+ft(i)+n+ft(r)+s+ft(a)+o+ft(l)+c:vr}(c,t,e,i,n,r,s,a,o,l);return h!==vr&&fs(c,me(),h),Ka}function Za(t,e,i){Na(gi,Ra,Zs(Yt(),t,e,i),!0)}function Qa(t,e,i){const n=Yt();return Xs(n,ee(),e)&&Br(Ht(),ve(),n,t,e,n[11],i,!0),Qa}function Ja(t,e,i){const n=Yt();if(Xs(n,ee(),e)){const r=Ht(),s=ve();Br(r,s,n,t,e,ds(se(r.data),s,n),i,!0)}return Ja}const to=void 0;var eo=["en",[["a","p"],["AM","PM"],to],[["AM","PM"],to,to],[["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"]],to,[["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"]],to,[["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}",to,"{1} 'at' {0}",to],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let io={};function no(t,e,i){"string"!=typeof e&&(i=e,e=t[lo.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),io[e]=t,i&&(io[e][lo.ExtraData]=i)}function ro(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=oo(e);if(i)return i;const n=e.split("-")[0];if(i=oo(n),i)return i;if("en"===n)return eo;throw new Error(`Missing locale data for the locale "${t}".`)}function so(t){return ro(t)[lo.CurrencyCode]||null}function ao(t){return ro(t)[lo.PluralCase]}function oo(t){return t in io||(io[t]=N.ng&&N.ng.common&&N.ng.common.locales&&N.ng.common.locales[t]),io[t]}var lo=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 co="en-US";let ho=co;function uo(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(ho=t.toLowerCase().replace(/_/g,"-"))}function po(t,e,i,n,r){if(t=f(t),Array.isArray(t))for(let s=0;s<t.length;s++)po(t[s],e,i,n,r);else{const s=Ht(),a=Yt();let o=Ds(t)?t:f(t.provide),l=As(t);const c=Xt(),h=1048575&c.providerIndexes,d=c.directiveStart,u=c.providerIndexes>>20;if(Ds(t)||!t.multi){const n=new Oe(l,r,ta),p=mo(o,e,r?h:h+u,d);-1===p?(He(Ue(c,a),s,o),fo(s,t,e.length),e.push(o),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),i.push(n),a.push(n)):(i[p]=n,a[p]=n)}else{const p=mo(o,e,h+u,d),f=mo(o,e,h,h+u),g=p>=0&&i[p],m=f>=0&&i[f];if(r&&!m||!r&&!g){He(Ue(c,a),s,o);const h=function(t,e,i,n,r){const s=new Oe(t,i,ta);return s.multi=[],s.index=e,s.componentProviders=0,go(s,r,n&&!i),s}(r?vo:bo,i.length,r,n,l);!r&&m&&(i[f].providerFactory=h),fo(s,t,e.length,0),e.push(o),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),i.push(h),a.push(h)}else fo(s,t,p>-1?p:f,go(i[r?f:p],l,!r&&n));!r&&n&&m&&i[f].componentProviders++}}}function fo(t,e,i,n){const r=Ds(e);if(r||e.useClass){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const a=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=a.indexOf(i);-1===t?a.push(i,[n,s]):a[t+1].push(n,s)}else a.push(i,s)}}}function go(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function mo(t,e,i,n){for(let r=i;r<n;r++)if(e[r]===t)return r;return-1}function bo(t,e,i,n){return yo(this.multi,[])}function vo(t,e,i,n){const r=this.multi;let s;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=Qe(i,i[1],this.providerFactory.index,n);s=e.slice(0,t),yo(r,s);for(let i=t;i<e.length;i++)s.push(e[i])}else s=[],yo(r,s);return s}function yo(t,e){for(let i=0;i<t.length;i++)e.push((0,t[i])());return e}function _o(t,e=[]){return i=>{i.providersResolver=(i,n)=>function(t,e,i){const n=Ht();if(n.firstCreatePass){const r=dt(t);po(i,n.data,n.blueprint,r,!0),po(e,n.data,n.blueprint,r,!1)}}(i,n?n(t):t,e)}}class xo{}class wo{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${h(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Co=(()=>{class t{}return t.NULL=new wo,t})();function ko(...t){}function So(t,e){return new Ao(Pt(t,e))}const To=function(){return So(Xt(),Yt())};let Ao=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=To,t})();function Oo(t){return t instanceof Ao?t.nativeElement:t}class Eo{}let Do=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Po(),t})();const Po=function(){const t=Yt(),e=Rt(Xt().index,t);return function(t){return t[11]}(at(e)?e:t)};let Io=(()=>{class t{}return t.\u0275prov=m({token:t,providedIn:"root",factory:()=>null}),t})();class Mo{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ro=new Mo("11.1.1");class Lo{constructor(){}supports(t){return Bs(t)}create(t){return new zo(t)}}const No=(t,e)=>e;class zo{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||No}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,r=null;for(;e||i;){const s=!i||e&&e.currentIndex<Vo(i,n,r)?e:i,a=Vo(s,n,r),o=s.currentIndex;if(s===i)n--,i=i._nextRemoved;else if(e=e._next,null==s.previousIndex)n++;else{r||(r=[]);const t=a-n,e=o-n;if(t!=e){for(let i=0;i<t;i++){const n=i<r.length?r[i]:r[i]=0,s=n+i;e<=s&&s<t&&(r[i]=n+1)}r[s.previousIndex]=e-t}}a!==o&&t(s,a,o)}}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=[]),!Bs(t))throw new Error(`Error trying to diff '${h(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,i,n,r=this._itHead,s=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)i=t[e],n=this._trackByFn(e,i),null!==r&&Object.is(r.trackById,n)?(s&&(r=this._verifyReinsertion(r,i,n,e)),Object.is(r.item,i)||this._addIdentityChange(r,i)):(r=this._mismatch(r,i,n,e),s=!0),r=r._next}else e=0,function(t,e){if(Array.isArray(t))for(let i=0;i<t.length;i++)e(t[i]);else{const i=t[Us()]();let n;for(;!(n=i.next()).done;)e(n.value)}}(t,t=>{n=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,n)?(s&&(r=this._verifyReinsertion(r,t,n,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,n,e),s=!0),r=r._next,e++}),this.length=e;return this._truncate(r),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;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=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,n)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,n)):t=this._addAfter(new Fo(e,i),r,n),t}_verifyReinsertion(t,e,i,n){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?t=this._reinsertAfter(r,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),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,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,r=t._nextRemoved;return null===n?this._removalsHead=r:n._nextRemoved=r,null===r?this._removalsTail=n:r._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Uo),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._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 Uo),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 Fo{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 jo{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 i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Uo{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new jo,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.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 Vo(t,e,i){const n=t.previousIndex;if(null===n)return n;let r=0;return i&&n<i.length&&(r=i[n]),n+e+r}class Bo{constructor(){}supports(t){return t instanceof Map||Ys(t)}create(){return new Yo}}class Yo{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||Ys(t)))throw new Error(`Error trying to diff '${h(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,i)=>{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),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 i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._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 i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,r=i._next;return n&&(n._next=r),r&&(r._prev=n),i._next=null,i._prev=null,i}const i=new Ho(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_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(i=>e(t[i],i))}}class Ho{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}}function Wo(){return new Xo([new Lo])}let Xo=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Wo()),deps:[[t,new Pi,new Di]]}}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 '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=m({token:t,providedIn:"root",factory:Wo}),t})();function Go(){return new qo([new Bo])}let qo=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Go()),deps:[[t,new Pi,new Di]]}}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=m({token:t,providedIn:"root",factory:Go}),t})();function $o(t,e,i,n,r=!1){for(;null!==i;){const s=e[i.index];if(null!==s&&n.push(Et(s)),ot(s))for(let t=st;t<s.length;t++){const e=s[t],i=e[1].firstChild;null!==i&&$o(e[1],e,i,n)}const a=i.type;if(8&a)$o(t,e,i.child,n);else if(32&a){const t=Rn(i,e);let r;for(;r=t();)n.push(r)}else if(16&a){const t=e[16],r=t[6].projection[i.projection];if(Array.isArray(r))n.push(...r);else{const e=Ln(t);$o(e[1],e,r,n,!0)}}i=r?i.projectionNext:i.next}return n}class Ko{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return $o(e,t,e.firstChild,[])}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._attachedToViewContainer){const t=this._lView[3];if(ot(t)){const e=t[8],i=e?e.indexOf(this):-1;i>-1&&(Bn(t,i),pi(e,i))}this._attachedToViewContainer=!1}Yn(this._lView[1],this._lView)}onDestroy(t){Ur(this._lView[1],this._lView,null,t)}markForCheck(){rs(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ss(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){Qt(!0);try{ss(t,e,i)}finally{Qt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,ir(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Zo extends Ko{constructor(t){super(t),this._view=t}detectChanges(){as(this._view)}checkNoChanges(){!function(t){Qt(!0);try{as(t)}finally{Qt(!1)}}(this._view)}get context(){return null}}const Qo=tl;let Jo=(()=>{class t{}return t.__NG_ELEMENT_ID__=Qo,t.__ChangeDetectorRef__=!0,t})();function tl(t=!1){return function(t,e,i){if(!i&&ct(t)){const i=Rt(t.index,e);return new Ko(i,i)}return 47&t.type?new Ko(e[16],e):null}(Xt(),Yt(),t)}const el=[new Bo],il=new Xo([new Lo]),nl=new qo(el),rl=function(){return ll(Xt(),Yt())};let sl=(()=>{class t{}return t.__NG_ELEMENT_ID__=rl,t})();const al=sl,ol=class extends al{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Or(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),Pr(e,i,t),new Ko(i)}};function ll(t,e){return 4&t.type?new ol(e,t,So(t,e)):null}class cl{}class hl{}const dl=function(){return bl(Xt(),Yt())};let ul=(()=>{class t{}return t.__NG_ELEMENT_ID__=dl,t})();const pl=ul,fl=class extends pl{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return So(this._hostTNode,this._hostLView)}get injector(){return new ei(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ye(this._hostTNode,this._hostLView);if(Re(t)){const e=Ne(t,this._hostLView),i=Le(t);return new ei(e[1].data[i+8],e)}return new ei(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=gl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-st}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,r){const s=i||this.parentInjector;if(!r&&null==t.ngModule&&s){const t=s.get(cl,null);t&&(r=t)}const a=t.create(s,n,void 0,r);return this.insert(a.hostView,e),a}insert(t,e){const i=t._lView,n=i[1];if(ot(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new fl(e,e[6],e[3]);n.detach(n.indexOf(t))}}const r=this._adjustIndex(e),s=this._lContainer;!function(t,e,i,n){const r=st+n,s=i.length;n>0&&(i[r-1][4]=e),n<s-st?(e[4]=i[r],ui(i,st+n,e)):(i.push(e),e[4]=null),e[3]=i;const a=e[17];null!==a&&i!==a&&function(t,e){const i=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===i?t[9]=[e]:i.push(e)}(a,e);const o=e[19];null!==o&&o.insertView(t),e[2]|=128}(n,i,s,r);const a=tr(r,s),o=i[11],l=$n(o,s[7]);return null!==l&&function(t,e,i,n,r,s){n[0]=r,n[6]=e,ir(t,n,i,1,r,s)}(n,s[6],o,i,l,a),t.attachToViewContainerRef(),ui(ml(s),r,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=gl(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),i=Bn(this._lContainer,e);i&&(pi(ml(this._lContainer),e),Yn(i[1],i))}detach(t){const e=this._adjustIndex(t,-1),i=Bn(this._lContainer,e);return i&&null!=pi(ml(this._lContainer),e)?new Ko(i):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function gl(t){return t[8]}function ml(t){return t[8]||(t[8]=[])}function bl(t,e){let i;const n=e[t.index];if(ot(n))i=n;else{let r;if(8&t.type)r=Et(n);else{const i=e[11];r=i.createComment("");const n=Pt(t,e);Xn(i,$n(i,n),r,function(t,e){return At(t)?t.nextSibling(e):e.nextSibling}(i,n),!1)}e[t.index]=i=Jr(n,e,r,t),ns(e,i)}return new fl(i,t,e)}const vl={};class yl extends Co{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=it(t);return new wl(e,this.ngModule)}}function _l(t){const e=[];for(let i in t)t.hasOwnProperty(i)&&e.push({propName:t[i],templateName:i});return e}const xl=new oi("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>En});class wl extends xo{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(br).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return _l(this.componentDef.inputs)}get outputs(){return _l(this.componentDef.outputs)}create(t,e,i,n){const r=(n=n||this.ngModule)?function(t,e){return{get:(i,n,r)=>{const s=t.get(i,vl,r);return s!==vl||n===vl?s:e.get(i,n,r)}}}(t,n.injector):t,s=r.get(Eo,Ot),a=r.get(Io,null),o=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=i?function(t,e,i){if(At(t))return t.selectRootElement(e,i===P.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(o,i,this.componentDef.encapsulation):Un(s.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?Ct:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,d={components:[],scheduler:En,clean:ls,playerHandler:null,flags:0},u=jr(0,null,null,1,0,null,null,null,null,null),p=Or(null,u,d,h,null,null,s,o,a,r);let f,g;he(p);try{const t=function(t,e,i,n,r,s){const a=i[1];i[20]=t;const o=Er(a,20,2,"#host",null),l=o.mergedAttrs=e.hostAttrs;null!==l&&(gs(o,l,!0),null!==t&&(Ee(r,t,l),null!==o.classes&&sr(r,t,o.classes),null!==o.styles&&rr(r,t,o.styles)));const c=n.createRenderer(t,e),h=Or(i,Fr(e),null,e.onPush?64:16,i[20],o,n,c,null,null);return a.firstCreatePass&&(He(Ue(o,i),a,e.type),Xr(a,o),qr(o,i.length,1)),ns(i,h),i[20]=h}(c,this.componentDef,p,s,o);if(c)if(i)Ee(o,c,["ng-version",Ro.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,r=2;for(;n<t.length;){let s=t[n];if("string"==typeof s)2===r?""!==s&&e.push(s,t[++n]):8===r&&i.push(s);else{if(!ur(r))break;r=s}n++}return{attrs:e,classes:i}}(this.componentDef.selectors[0]);t&&Ee(o,c,t),e&&e.length>0&&sr(o,c,e.join(" "))}if(g=It(u,rt),void 0!==e){const t=g.projection=[];for(let i=0;i<this.ngContentSelectors.length;i++){const n=e[i];t.push(null!=n?Array.from(n):null)}}f=function(t,e,i,n,r){const s=i[1],a=function(t,e,i){const n=Xt();t.firstCreatePass&&(i.providersResolver&&i.providersResolver(i),$r(t,n,e,Dr(t,e,1,null),i));const r=Qe(e,t,n.directiveStart,n);On(r,e);const s=Pt(n,e);return s&&On(s,e),r}(s,i,e);if(n.components.push(a),t[8]=a,r&&r.forEach(t=>t(a,e)),e.contentQueries){const t=Xt();e.contentQueries(1,a,t.directiveStart)}const o=Xt();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(be(o.index),Hr(i[1],o,0,o.directiveStart,o.directiveEnd,e),Wr(e,a)),a}(t,this.componentDef,p,d,[Ms]),Pr(u,p,null)}finally{ge()}return new Cl(this.componentType,f,So(g,p),p,g)}}class Cl extends class{}{constructor(t,e,i,n,r){super(),this.location=i,this._rootLView=n,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new Zo(n),this.componentType=t}get injector(){return new ei(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const kl=new Map;class Sl extends cl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new yl(this);const i=nt(t),n=t[Y]||null;n&&uo(n),this._bootstrapComponents=In(i.bootstrap),this._r3Injector=ks(t,e,[{provide:cl,useValue:this},{provide:Co,useValue:this.componentFactoryResolver}],h(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Is.THROW_IF_NOT_FOUND,i=S.Default){return t===Is||t===cl||t===ms?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Tl extends hl{constructor(t){super(),this.moduleType=t,null!==nt(t)&&function(t){const e=new Set;!function t(i){const n=nt(i,!0),r=n.id;null!==r&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${h(e)} vs ${h(e.name)}`)}(r,kl.get(r),i),kl.set(r,i));const s=In(n.imports);for(const a of s)e.has(a)||(e.add(a),t(a))}(t)}(t)}create(t){return new Sl(this.moduleType,t)}}function Al(t,e,i){const n=Jt()+t,r=Yt();return r[n]===vr?Hs(r,n,i?e.call(i):e()):Ws(r,n)}function Ol(t,e,i,n){return Il(Yt(),Jt(),t,e,i,n)}function El(t,e,i,n,r){return Ml(Yt(),Jt(),t,e,i,n,r)}function Dl(t,e,i,n,r,s,a,o,l,c){const h=Jt()+t,d=Yt();let u=$s(d,h,i,n,r,s);return qs(d,h+4,a,o,l)||u?Hs(d,h+7,c?e.call(c,i,n,r,s,a,o,l):e(i,n,r,s,a,o,l)):Ws(d,h+7)}function Pl(t,e){const i=t[e];return i===vr?void 0:i}function Il(t,e,i,n,r,s){const a=e+i;return Xs(t,a,r)?Hs(t,a+1,s?n.call(s,r):n(r)):Pl(t,a+1)}function Ml(t,e,i,n,r,s,a){const o=e+i;return Gs(t,o,r,s)?Hs(t,o+2,a?n.call(a,r,s):n(r,s)):Pl(t,o+2)}function Rl(t,e){const i=Ht();let n;const r=t+rt;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new pt("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];const s=n.factory||(n.factory=ut(n.type)),a=A(ta);try{const t=Fe(!1),e=s();return Fe(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Yt(),r,e),e}finally{A(a)}}function Ll(t,e,i){const n=t+rt,r=Yt(),s=Mt(r,n);return Fl(r,zl(r,n)?Il(r,Jt(),e,s.transform,i,s):s.transform(i))}function Nl(t,e,i,n){const r=t+rt,s=Yt(),a=Mt(s,r);return Fl(s,zl(s,r)?Ml(s,Jt(),e,a.transform,i,n,a):a.transform(i,n))}function zl(t,e){return t[1].data[e].pure}function Fl(t,e){return Vs.isWrapped(e)&&(e=Vs.unwrap(e),t[te()]=vr),e}const jl=class extends n.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let n,s=t=>null,a=()=>null;t&&"object"==typeof t?(n=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&&(a=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(n=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),i&&(a=this.__isAsync?()=>{setTimeout(()=>i())}:()=>{i()}));const o=super.subscribe(n,s,a);return t instanceof r.a&&t.add(o),o}};function Ul(){return this._results[Us()]()}class Vl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Us(),i=Vl.prototype;i[e]||(i[e]=Ul)}get changes(){return this._changes||(this._changes=new jl)}get(t){return this._results[t]}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,e){const i=this;i.dirty=!1;const n=hi(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],s=e[n];if(i&&(r=i(r),s=i(s)),s!==r)return!1}return!0}(i._results,n,e))&&(i._results=n,i.length=n.length,i.last=n[this.length-1],i.first=n[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Bl{constructor(t){this.queryList=t,this.matches=null}clone(){return new Bl(this.queryList)}setDirty(){this.queryList.setDirty()}}class Yl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,n=[];for(let t=0;t<i;t++){const i=e.getByIndex(t);n.push(this.queries[i.indexInDeclarationView].clone())}return new Yl(n)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==nc(t,e).matches&&this.queries[e].setDirty()}}class Hl{constructor(t,e,i=null){this.predicate=t,this.flags=e,this.read=i}}class Wl{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].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 i=0;i<this.length;i++){const n=null!==e?e.length:0,r=this.getByIndex(i).embeddedTView(t,n);r&&(r.indexInDeclarationView=i,null!==e?e.push(r):e=[r])}return null!==e?new Wl(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Xl{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 Xl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let n=0;n<i.length;n++){const r=i[n];this.matchTNodeWithReadOption(t,e,Gl(e,r)),this.matchTNodeWithReadOption(t,e,Ze(e,t,r,!1,!1))}else i===sl?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Ze(e,t,i,!1,!1))}matchTNodeWithReadOption(t,e,i){if(null!==i){const n=this.metadata.read;if(null!==n)if(n===Ao||n===ul||n===sl&&4&e.type)this.addMatch(e.index,-2);else{const i=Ze(e,t,n,!1,!1);null!==i&&this.addMatch(e.index,i)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Gl(t,e){const i=t.localNames;if(null!==i)for(let n=0;n<i.length;n+=2)if(i[n]===e)return i[n+1];return null}function ql(t,e,i,n){return-1===i?function(t,e){return 11&t.type?So(t,e):4&t.type?ll(t,e):null}(e,t):-2===i?function(t,e,i){return i===Ao?So(e,t):i===sl?ll(e,t):i===ul?bl(e,t):void 0}(t,e,n):Qe(t,t[1],i,e)}function $l(t,e,i,n){const r=e[19].queries[n];if(null===r.matches){const n=t.data,s=i.matches,a=[];for(let t=0;t<s.length;t+=2){const r=s[t];a.push(r<0?null:ql(e,n[r],s[t+1],i.metadata.read))}r.matches=a}return r.matches}function Kl(t,e,i,n){const r=t.queries.getByIndex(i),s=r.matches;if(null!==s){const a=$l(t,e,r,i);for(let t=0;t<s.length;t+=2){const i=s[t];if(i>0)n.push(a[t/2]);else{const r=s[t+1],a=e[-i];for(let t=st;t<a.length;t++){const e=a[t];e[17]===e[3]&&Kl(e[1],e,r,n)}if(null!==a[9]){const t=a[9];for(let e=0;e<t.length;e++){const i=t[e];Kl(i[1],i,r,n)}}}}}return n}function Zl(t){const e=Yt(),i=Ht(),n=ae();oe(n+1);const r=nc(i,n);if(t.dirty&&Nt(e)===(2==(2&r.metadata.flags))){if(null===r.matches)t.reset([]);else{const s=r.crossesNgTemplate?Kl(i,e,n,[]):$l(i,e,r,n);t.reset(s,Oo),t.notifyOnChanges()}return!0}return!1}function Ql(t,e,i){const n=Ht();n.firstCreatePass&&(ic(n,new Hl(t,e,i),-1),2==(2&e)&&(n.staticViewQueries=!0)),ec(n,Yt(),e)}function Jl(t,e,i,n){const r=Ht();if(r.firstCreatePass){const s=Xt();ic(r,new Hl(e,i,n),s.index),function(t,e){const i=t.contentQueries||(t.contentQueries=[]);e!==(i.length?i[i.length-1]:-1)&&i.push(t.queries.length-1,e)}(r,t),2==(2&i)&&(r.staticContentQueries=!0)}ec(r,Yt(),i)}function tc(){return t=Yt(),e=ae(),t[19].queries[e].queryList;var t,e}function ec(t,e,i){const n=new Vl(4==(4&i));Ur(t,e,n,n.destroy),null===e[19]&&(e[19]=new Yl),e[19].queries.push(new Bl(n))}function ic(t,e,i){null===t.queries&&(t.queries=new Wl),t.queries.track(new Xl(e,i))}function nc(t,e){return t.queries.getByIndex(e)}function rc(t=S.Default){const e=tl(!0);if(null!=e||t&S.Optional)return e;mt("ChangeDetectorRef")}const sc=new oi("Application Initializer");let ac=(()=>{class t{constructor(t){this.appInits=t,this.resolve=ko,this.reject=ko,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 i=0;i<this.appInits.length;i++){const e=this.appInits[i]();ha(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)(Si(sc,8))},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();const oc=new oi("AppId"),lc={provide:oc,useFactory:function(){return`${cc()}${cc()}${cc()}`},deps:[]};function cc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const hc=new oi("Platform Initializer"),dc=new oi("Platform ID"),uc=new oi("appBootstrapListener");let pc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();const fc=new oi("LocaleId"),gc=new oi("DefaultCurrencyCode");class mc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const bc=function(t){return new Tl(t)},vc=bc,yc=function(t){return Promise.resolve(bc(t))},_c=function(t){const e=bc(t),i=In(nt(t).declarations).reduce((t,e)=>{const i=it(e);return i&&t.push(new wl(i)),t},[]);return new mc(e,i)},xc=_c,wc=function(t){return Promise.resolve(_c(t))};let Cc=(()=>{class t{constructor(){this.compileModuleSync=vc,this.compileModuleAsync=yc,this.compileModuleAndAllComponentsSync=xc,this.compileModuleAndAllComponentsAsync=wc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();const kc=(()=>Promise.resolve(0))();function Sc(t){"undefined"==typeof Zone?kc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Tc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new jl(!1),this.onMicrotaskEmpty=new jl(!1),this.onStable=new jl(!1),this.onError=new jl(!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.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=!i&&e,n.shouldCoalesceRunChangeDetection=i,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=N.requestAnimationFrame,e=N.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(N,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ec(t),Oc(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ec(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,s,a,o)=>{try{return Dc(t),i.invokeTask(r,s,a,o)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&e(),Pc(t)}},onInvoke:(i,n,r,s,a,o,l)=>{try{return Dc(t),i.invoke(r,s,a,o,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),Pc(t)}},onHasTask:(e,i,n,r)=>{e.hasTask(n,r),i===n&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Ec(t),Oc(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,n,r)=>(e.handleError(n,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Tc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Tc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+n,t,Ac,ko,ko);try{return r.runTask(s,e,i)}finally{r.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const Ac={};function Oc(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 Ec(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Dc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Pc(t){t._nesting--,Oc(t)}class Ic{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new jl,this.onMicrotaskEmpty=new jl,this.onStable=new jl,this.onError=new jl}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let Mc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Tc.assertNotInAngularZone(),Sc(()=>{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())Sc(()=>{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,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!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,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(Si(Tc))},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})(),Rc=(()=>{class t{constructor(){this._applications=new Map,Fc.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 Fc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();class Lc{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}function Nc(t){Fc=t}let zc,Fc=new Lc,jc=!0,Uc=!1;function Vc(){return Uc=!0,jc}function Bc(){if(Uc)throw new Error("Cannot enable prod mode after platform setup.");jc=!1}const Yc=new oi("AllowMultipleToken");class Hc{constructor(t,e){this.name=t,this.token=e}}function Wc(t,e,i=[]){const n=`Platform: ${e}`,r=new oi(n);return(e=[])=>{let s=Xc();if(!s||s.injector.get(Yc,!1))if(t)t(i.concat(e).concat({provide:r,useValue:!0}));else{const t=i.concat(e).concat({provide:r,useValue:!0},{provide:vs,useValue:"platform"});!function(t){if(zc&&!zc.destroyed&&!zc.injector.get(Yc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zc=t.get(Gc);const e=t.get(hc,null);e&&e.forEach(t=>t())}(Is.create({providers:t,name:n}))}return function(t){const e=Xc();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}(r)}}function Xc(){return zc&&!zc.destroyed?zc:null}let Gc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new Ic:("zone.js"===t?void 0:t)||new Tc({enableLongStackTrace:Vc(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:Tc,useValue:i}];return i.run(()=>{const e=Is.create({providers:n,parent:this.injector,name:t.moduleType.name}),r=t.create(e),s=r.injector.get(An,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{s.handleError(t)}});r.onDestroy(()=>{Kc(this._modules,r),t.unsubscribe()})}),function(t,e,i){try{const n=i();return ha(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(s,i,()=>{const t=r.injector.get(ac);return t.runInitializers(),t.donePromise.then(()=>(uo(r.injector.get(fc,co)||co),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const i=qc({},e);return function(t,e,i){const n=new Tl(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get($c);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${h(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)(Si(Is))},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();function qc(t,e){return Array.isArray(e)?e.reduce(qc,t):Object.assign(Object.assign({},t),e)}let $c=(()=>{class t{constructor(t,e,i,n,r,l){this._zone=t,this._console=e,this._injector=i,this._exceptionHandler=n,this._componentFactoryResolver=r,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new s.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),h=new s.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Tc.assertNotInAngularZone(),Sc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{Tc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=Object(a.a)(c,h.pipe(Object(o.a)()))}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 i;i=t instanceof xo?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(cl),r=i.create(Is.NULL,[],e||i.selector,n),s=r.location.nativeElement,a=r.injector.get(Mc,null),o=a&&r.injector.get(Rc);return a&&o&&o.registerApplication(s,a),r.onDestroy(()=>{this.detachView(r.hostView),Kc(this.components,r),o&&o.unregisterApplication(s)}),this._loadComponent(r),Vc()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}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;Kc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(uc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Si(Tc),Si(pc),Si(Is),Si(An),Si(Co),Si(ac))},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();function Kc(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Zc{}class Qc{}const Jc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let th=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Jc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i("zn8P")(e).then(t=>t[n]).then(t=>eh(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),r="NgFactory";return void 0===n&&(n="default",r=""),i("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+r]).then(t=>eh(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(Si(Cc),Si(Qc,8))},t.\u0275prov=m({token:t,factory:t.\u0275fac}),t})();function eh(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}class ih extends Jo{}class nh extends ih{}const rh=function(t){return null},sh=Wc(null,"core",[{provide:dc,useValue:"unknown"},{provide:Gc,deps:[Is]},{provide:Rc,deps:[]},{provide:pc,deps:[]}]),ah=[{provide:$c,useClass:$c,deps:[Tc,pc,Is,An,Co,ac]},{provide:xl,deps:[Tc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ac,useClass:ac,deps:[[new Di,sc]]},{provide:Cc,useClass:Cc,deps:[]},lc,{provide:Xo,useFactory:function(){return il},deps:[]},{provide:qo,useFactory:function(){return nl},deps:[]},{provide:fc,useFactory:function(t){return uo(t=t||"undefined"!=typeof $localize&&$localize.locale||co),t},deps:[[new Ei(fc),new Di,new Pi]]},{provide:gc,useValue:"USD"}];let oh=(()=>{class t{constructor(t){}}return t.\u0275mod=Z({type:t}),t.\u0275inj=b({factory:function(e){return new(e||t)(Si($c))},providers:ah}),t})()},gRHU:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("2fFW"),r=i("NJ4a");const s={closed:!0,next(t){},error(t){if(n.a.useDeprecatedSynchronousErrorHandling)throw t;Object(r.a)(t)},complete(){}}},h91x:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("MfXU"),r=i("jiyY"),s=i("fXoL");let a=(()=>{class t extends r.a{constructor(){super(...arguments),this.userRoles=[n.a.TransfusionCenter,n.a.TransfusionCenterBranch]}}return t.\u0275fac=function(e){return o(e||t)},t.\u0275prov=s.Kb({token:t,factory:t.\u0275fac}),t})();const o=s.Wb(a)},iadO:function(t,e,i){"use strict";i.d(e,"a",function(){return ct}),i.d(e,"b",function(){return vt}),i.d(e,"c",function(){return kt}),i.d(e,"d",function(){return At}),i.d(e,"e",function(){return Tt});var n=i("u47x"),r=i("rDax"),s=i("+rOU"),a=i("ofXK"),o=i("fXoL"),l=i("bTqV"),c=i("0IaG"),h=i("vxfF"),d=i("FKr1"),u=i("XNiG"),p=i("quSY"),f=i("VRyK"),g=i("LRne"),m=i("FtGj"),b=i("IzEk"),v=i("JX91"),y=i("pLZG"),_=i("8LU1"),x=i("R0Ic"),w=i("3Pt+"),C=i("kmnG"),k=i("qFsG"),S=i("cH1L");const T=["mat-calendar-body",""];function A(t,e){if(1&t&&(o.Ub(0,"tr",2),o.Ub(1,"td",3),o.Ec(2),o.Tb(),o.Tb()),2&t){const t=o.fc();o.Cb(1),o.Ac("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),o.Db("colspan",t.numCols),o.Cb(1),o.Gc(" ",t.label," ")}}function O(t,e){if(1&t&&(o.Ub(0,"td",7),o.Ec(1),o.Tb()),2&t){const t=o.fc(2);o.Ac("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),o.Db("colspan",t._firstRowOffset),o.Cb(1),o.Gc(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function E(t,e){if(1&t){const t=o.Vb();o.Ub(0,"td",8),o.bc("click",function(i){o.wc(t);const n=e.$implicit;return o.fc(2)._cellClicked(n,i)}),o.Ub(1,"div",9),o.Ec(2),o.Tb(),o.Pb(3,"div",10),o.Tb()}if(2&t){const t=e.$implicit,i=e.index,n=o.fc().index,r=o.fc();o.Ac("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),o.Gb("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",r._isActiveCell(n,i))("mat-calendar-body-range-start",r._isRangeStart(t.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",r._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(t.compareValue,n,i))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(t.compareValue,n,i))("mat-calendar-body-comparison-start",r._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",r._isInPreview(t.compareValue)),o.lc("ngClass",t.cssClasses)("tabindex",r._isActiveCell(n,i)?0:-1),o.Db("data-mat-row",n)("data-mat-col",i)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",r._isSelected(t.compareValue)),o.Cb(1),o.Gb("mat-calendar-body-selected",r._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",r.todayValue===t.compareValue),o.Cb(1),o.Gc(" ",t.displayValue," ")}}function D(t,e){if(1&t&&(o.Ub(0,"tr",4),o.Dc(1,O,2,6,"td",5),o.Dc(2,E,4,46,"td",6),o.Tb()),2&t){const t=e.$implicit,i=e.index,n=o.fc();o.Cb(1),o.lc("ngIf",0===i&&n._firstRowOffset),o.Cb(1),o.lc("ngForOf",t)}}function P(t,e){if(1&t&&(o.Ub(0,"th",5),o.Ec(1),o.Tb()),2&t){const t=e.$implicit;o.Db("aria-label",t.long),o.Cb(1),o.Fc(t.narrow)}}const I=["*"];function M(t,e){}function R(t,e){if(1&t){const t=o.Vb();o.Ub(0,"mat-month-view",5),o.bc("activeDateChange",function(e){return o.wc(t),o.fc().activeDate=e})("_userSelection",function(e){return o.wc(t),o.fc()._dateSelected(e)}),o.Tb()}if(2&t){const t=o.fc();o.lc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function L(t,e){if(1&t){const t=o.Vb();o.Ub(0,"mat-year-view",6),o.bc("activeDateChange",function(e){return o.wc(t),o.fc().activeDate=e})("monthSelected",function(e){return o.wc(t),o.fc()._monthSelectedInYearView(e)})("selectedChange",function(e){return o.wc(t),o.fc()._goToDateInView(e,"month")}),o.Tb()}if(2&t){const t=o.fc();o.lc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function N(t,e){if(1&t){const t=o.Vb();o.Ub(0,"mat-multi-year-view",7),o.bc("activeDateChange",function(e){return o.wc(t),o.fc().activeDate=e})("yearSelected",function(e){return o.wc(t),o.fc()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return o.wc(t),o.fc()._goToDateInView(e,"year")}),o.Tb()}if(2&t){const t=o.fc();o.lc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function z(t,e){}const F=["button"];function j(t,e){1&t&&(o.ec(),o.Ub(0,"svg",3),o.Pb(1,"path",4),o.Tb())}const U=[[["","matDatepickerToggleIcon",""]]],V=["[matDatepickerToggleIcon]"];let B=(()=>{class t{constructor(){this.changes=new u.a,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(o.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();class Y{constructor(t,e,i,n,r={},s=t,a){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=r,this.compareValue=s,this.rawValue=a}}let H=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new o.o,this.previewChange=new o.o,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&W(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const e=t.numCols,{rows:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Object(b.a)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return X(t,this.startValue,this.endValue)}_isRangeEnd(t){return G(t,this.startValue,this.endValue)}_isInRange(t){return q(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return X(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let n=this.rows[e][i-1];if(!n){const t=this.rows[e-1];n=t&&t[t.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let n=this.rows[e][i+1];if(!n){const t=this.rows[e+1];n=t&&t[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(t){return G(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return q(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return X(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return G(t,this.previewStart,this.previewEnd)}_isInPreview(t){return q(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(W(t)?e=t:W(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.l),o.Ob(o.B))},t.\u0275cmp=o.Ib({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[o.Ab],attrs:T,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(o.Dc(0,A,3,6,"tr",0),o.Dc(1,D,3,2,"tr",1)),2&t&&(o.lc("ngIf",e._firstRowOffset<e.labelMinRequiredCells),o.Cb(1),o.lc("ngForOf",e.rows))},directives:[a.l,a.k,a.j],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.mat-datepicker-dialog .mat-dialog-container{position:relative;overflow:visible}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function W(t){return"TD"===t.nodeName}function X(t,e,i){return null!==i&&e!==i&&t<i&&t===e}function G(t,e,i){return null!==e&&e!==i&&t>=e&&t===i}function q(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}class ${constructor(t,e){this.start=t,this.end=e}}let K=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new u.a,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,e){this.selection=t,this._selectionChanged.next({selection:t,source:e})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}clone(){return null}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(void 0),o.Ob(d.c))},t.\u0275dir=o.Jb({type:t}),t})(),Z=(()=>{class t extends K{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(o.Yb(d.c))},t.\u0275prov=o.Kb({token:t,factory:t.\u0275fac}),t})();const Q={provide:K,deps:[[new o.C,new o.L,K],d.c],useFactory:function(t,e){return t||new Z(e)}},J=new o.s("MAT_DATE_RANGE_SELECTION_STRATEGY");let tt=(()=>{class t{constructor(t,e,i,n,r){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rangeStrategy=r,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new o.o,this._userSelection=new o.o,this.activeDateChange=new o.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof $?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(v.a)(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,i=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.createDate(i,n,e);let s,a;this._selected instanceof $?(s=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):s=a=this._getDateInCurrentMonth(this._selected),s===e&&a===e||this.selectedChange.emit(r),this._userSelection.emit({value:r,event:t.event})}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case m.i:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case m.m:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case m.p:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case m.d:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case m.h:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case m.e:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case m.l:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case m.k:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case m.f:case m.n:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case m.g:return void(null==this._previewEnd||Object(m.s)(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const i=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i<t;i++,n++){7==n&&(this._weeks.push([]),n=0);const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),i+1),r=this._shouldEnableDate(t),s=this._dateAdapter.format(t,this._dateFormats.display.dateA11yLabel),a=this.dateClass?this.dateClass(t,"month"):void 0;this._weeks[this._weeks.length-1].push(new Y(i+1,e[i],s,r,a,this._getCellCompareValue(t),t))}}_shouldEnableDate(t){return!!t&&(!this.minDate||this._dateAdapter.compareDate(t,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof $?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.h),o.Ob(d.e,8),o.Ob(d.c,8),o.Ob(S.b,8),o.Ob(J,8))},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&o.Kc(H,1),2&t){let t;o.sc(t=o.cc())&&(e._matCalendarBody=t.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[o.Ab],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(o.Ub(0,"table",0),o.Ub(1,"thead",1),o.Ub(2,"tr"),o.Dc(3,P,2,2,"th",2),o.Tb(),o.Ub(4,"tr"),o.Pb(5,"th",3),o.Tb(),o.Tb(),o.Ub(6,"tbody",4),o.bc("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),o.Tb(),o.Tb()),2&t&&(o.Cb(3),o.lc("ngForOf",e._weekdays),o.Cb(3),o.lc("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[a.k,H],encapsulation:2,changeDetection:0}),t})();const et=24;let it=(()=>{class t{constructor(t,e,i){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new o.o,this.yearSelected=new o.o,this.activeDateChange=new o.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),nt(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof $?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(v.a)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-rt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,i=[];e<et;e++)i.push(t+e),4==i.length&&(this._years.push(i.map(t=>this._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case m.i:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case m.m:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case m.p:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case m.d:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case m.h:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-rt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case m.e:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,et-rt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case m.l:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case m.k:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:et);break;case m.f:case m.n:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return rt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new Y(t,i,i,this._shouldEnableYear(t),n)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let e=this._dateAdapter.createDate(t,0,1);this._dateAdapter.getYear(e)==t;e=this._dateAdapter.addCalendarDays(e,1))if(this.dateFilter(e))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(t){if(this._selectedYear=null,t instanceof $){const e=t.start||t.end;e&&(this._selectedYear=this._dateAdapter.getYear(e))}else t&&(this._selectedYear=this._dateAdapter.getYear(t))}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.h),o.Ob(d.c,8),o.Ob(S.b,8))},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-multi-year-view"]],viewQuery:function(t,e){if(1&t&&o.Kc(H,1),2&t){let t;o.sc(t=o.cc())&&(e._matCalendarBody=t.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","keydown"]],template:function(t,e){1&t&&(o.Ub(0,"table",0),o.Ub(1,"thead",1),o.Ub(2,"tr"),o.Pb(3,"th",2),o.Tb(),o.Tb(),o.Ub(4,"tbody",3),o.bc("selectedValueChange",function(t){return e._yearSelected(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),o.Tb(),o.Tb()),2&t&&(o.Cb(4),o.lc("rows",e._years)("todayValue",e._todayYear)("startValue",e._selectedYear)("endValue",e._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",e._getActiveCell()))},directives:[H],encapsulation:2,changeDetection:0}),t})();function nt(t,e,i,n,r){const s=t.getYear(e),a=t.getYear(i),o=st(t,n,r);return Math.floor((s-o)/et)===Math.floor((a-o)/et)}function rt(t,e,i,n){return((t.getYear(e)-st(t,i,n))%et+24)%24}function st(t,e,i){let n=0;return i?n=t.getYear(i)-et+1:e&&(n=t.getYear(e)),n}let at=(()=>{class t{constructor(t,e,i,n){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new o.o,this.monthSelected=new o.o,this.activeDateChange=new o.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof $?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(v.a)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(i);const n=this._dateAdapter.getNumDaysInMonth(i);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case m.i:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case m.m:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case m.p:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case m.d:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case m.h:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case m.e:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case m.l:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case m.k:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case m.f:case m.n:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),n=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),r=this.dateClass?this.dateClass(i,"year"):void 0;return new Y(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t),r)}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t<i||t===i&&e<n}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(t){this._selectedMonth=t instanceof $?this._getMonthInCurrentYear(t.start)||this._getMonthInCurrentYear(t.end):this._getMonthInCurrentYear(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.h),o.Ob(d.e,8),o.Ob(d.c,8),o.Ob(S.b,8))},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-year-view"]],viewQuery:function(t,e){if(1&t&&o.Kc(H,1),2&t){let t;o.sc(t=o.cc())&&(e._matCalendarBody=t.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","keydown"]],template:function(t,e){1&t&&(o.Ub(0,"table",0),o.Ub(1,"thead",1),o.Ub(2,"tr"),o.Pb(3,"th",2),o.Tb(),o.Tb(),o.Ub(4,"tbody",3),o.bc("selectedValueChange",function(t){return e._monthSelected(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),o.Tb(),o.Tb()),2&t&&(o.Cb(4),o.lc("label",e._yearLabel)("rows",e._months)("todayValue",e._todayMonth)("startValue",e._selectedMonth)("endValue",e._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",e._dateAdapter.getMonth(e.activeDate)))},directives:[H],encapsulation:2,changeDetection:0}),t})(),ot=0,lt=(()=>{class t{constructor(t,e,i,n,r){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this._buttonDescriptionId="mat-calendar-button-"+ot++,this.calendar.stateChanges.subscribe(()=>r.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-rt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+et-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(i,n)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:et)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):nt(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(B),o.Ob(Object(o.V)(()=>ct)),o.Ob(d.c,8),o.Ob(d.e,8),o.Ob(o.h))},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:I,decls:10,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(t,e){1&t&&(o.kc(),o.Ub(0,"div",0),o.Ub(1,"div",1),o.Ub(2,"button",2),o.bc("click",function(){return e.currentPeriodClicked()}),o.Ub(3,"span"),o.Ec(4),o.Tb(),o.Pb(5,"div",3),o.Tb(),o.Pb(6,"div",4),o.jc(7),o.Ub(8,"button",5),o.bc("click",function(){return e.previousClicked()}),o.Tb(),o.Ub(9,"button",6),o.bc("click",function(){return e.nextClicked()}),o.Tb(),o.Tb(),o.Tb()),2&t&&(o.Cb(2),o.Db("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),o.Cb(1),o.Db("id",e._buttonDescriptionId),o.Cb(1),o.Fc(e.periodButtonText),o.Cb(1),o.Gb("mat-calendar-invert","month"!==e.calendar.currentView),o.Cb(3),o.lc("disabled",!e.previousEnabled()),o.Db("aria-label",e.prevButtonLabel),o.Cb(1),o.lc("disabled",!e.nextEnabled()),o.Db("aria-label",e.nextButtonLabel))},directives:[l.b,n.d],encapsulation:2,changeDetection:0}),t})(),ct=(()=>{class t{constructor(t,e,i,n){this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new o.o,this.yearSelected=new o.o,this.monthSelected=new o.o,this.viewChanged=new o.o(!0),this._userSelection=new o.o,this.stateChanges=new u.a,this._intlChanges=t.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof $?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new s.d(this.headerComponent||lt),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){const e=t.value;(this.selected instanceof $||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(B),o.Ob(d.c,8),o.Ob(d.e,8),o.Ob(o.h))},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(o.Kc(tt,1),o.Kc(at,1),o.Kc(it,1)),2&t){let t;o.sc(t=o.cc())&&(e.monthView=t.first),o.sc(t=o.cc())&&(e.yearView=t.first),o.sc(t=o.cc())&&(e.multiYearView=t.first)}},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[o.Bb([Q]),o.Ab],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(t,e){1&t&&(o.Dc(0,M,0,0,"ng-template",0),o.Ub(1,"div",1),o.Dc(2,R,1,8,"mat-month-view",2),o.Dc(3,L,1,6,"mat-year-view",3),o.Dc(4,N,1,6,"mat-multi-year-view",4),o.Tb()),2&t&&(o.lc("cdkPortalOutlet",e._calendarHeaderPortal),o.Cb(1),o.lc("ngSwitch",e.currentView),o.Cb(1),o.lc("ngSwitchCase","month"),o.Cb(1),o.lc("ngSwitchCase","year"),o.Cb(1),o.lc("ngSwitchCase","multi-year"))},directives:[s.c,n.e,a.n,a.o,tt,at,it],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const ht={transformPanel:Object(x.m)("transformPanel",[Object(x.j)("void",Object(x.k)({opacity:0,transform:"scale(1, 0.8)"})),Object(x.l)("void => enter",Object(x.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(x.k)({opacity:1,transform:"scale(1, 1)"}))),Object(x.l)("* => void",Object(x.e)("100ms linear",Object(x.k)({opacity:0})))]),fadeInCalendar:Object(x.m)("fadeInCalendar",[Object(x.j)("void",Object(x.k)({opacity:0})),Object(x.j)("enter",Object(x.k)({opacity:1})),Object(x.l)("void => *",Object(x.e)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let dt=0;const ut=new o.s("mat-datepicker-scroll-strategy"),pt={provide:ut,deps:[r.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class ft{constructor(t){this._elementRef=t}}const gt=Object(d.y)(ft);let mt=(()=>{class t extends gt{constructor(t,e,i,n,r,s){super(t),this._changeDetectorRef=e,this._globalModel=i,this._dateAdapter=n,this._rangeSelectionStrategy=r,this._subscriptions=new p.a,this._animationState="enter",this._animationDone=new u.a,this._actionsPortal=null,this._closeButtonText=(null==s?void 0:s.closeCalendarLabel)||"Close calendar"}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){const e=this._model.selection,i=t.value,n=e instanceof $;if(n&&this._rangeSelectionStrategy){const n=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(n,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.l),o.Ob(o.h),o.Ob(K),o.Ob(d.c),o.Ob(J,8),o.Ob(B))},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){if(1&t&&o.Kc(ct,1),2&t){let t;o.sc(t=o.cc())&&(e._calendar=t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&o.Bc("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(o.Cc("@transformPanel",e._animationState),o.Gb("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[o.zb],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(t,e){1&t&&(o.Ub(0,"div",0),o.Ub(1,"mat-calendar",1),o.bc("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),o.Tb(),o.Dc(2,z,0,0,"ng-template",2),o.Ub(3,"button",3),o.bc("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),o.Ec(4),o.Tb(),o.Tb()),2&t&&(o.Gb("mat-datepicker-content-container-with-actions",e._actionsPortal),o.Cb(1),o.lc("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),o.Cb(1),o.lc("cdkPortalOutlet",e._actionsPortal),o.Cb(1),o.Gb("cdk-visually-hidden",!e._closeButtonFocused),o.lc("color",e.color||"primary"),o.Cb(1),o.Fc(e._closeButtonText))},directives:[n.f,ct,a.j,s.c,l.b],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[ht.transformPanel,ht.fadeInCalendar]},changeDetection:0}),t})(),bt=(()=>{class t{constructor(t,e,i,n,r,s,a,l,c){this._dialog=t,this._overlay=e,this._ngZone=i,this._viewContainerRef=n,this._dateAdapter=s,this._dir=a,this._document=l,this._model=c,this._inputStateChanges=p.a.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this.yearSelected=new o.o,this.monthSelected=new o.o,this.viewChanged=new o.o(!0),this.openedStream=new o.o,this.closedStream=new o.o,this._opened=!1,this.id="mat-datepicker-"+dt++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new u.a,this._scrollStrategy=r}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=Object(_.c)(t)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){const e=Object(_.c)(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=Object(_.g)(t)}get opened(){return this._opened}set opened(t){Object(_.c)(t)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(t){const e=t.xPosition||t.yPosition;e&&!e.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyPopup(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal=t}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._popupComponentRef&&this._popupRef){const t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(Object(b.a)(1)).subscribe(()=>this._destroyPopup())}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_applyPendingSelection(){var t,e;const i=(null===(t=this._popupComponentRef)||void 0===t?void 0:t.instance)||(null===(e=this._dialogRef)||void 0===e?void 0:e.componentInstance);null==i||i._applyPendingSelection()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(mt,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,backdropClass:["cdk-overlay-dark-backdrop",this._backdropHarnessClass],width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!1,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._forwardContentValues(this._dialogRef.componentInstance)}_openAsPopup(){const t=new s.d(mt,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(t),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.pipe(Object(b.a)(1)).subscribe(()=>{this._popupRef.updatePosition()})}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}_createPopup(){const t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),e=new r.d({positionStrategy:this._setConnectedPositions(t),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(e),this._popupRef.overlayElement.setAttribute("role","dialog"),Object(f.a)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Object(y.a)(t=>t.keyCode===m.g&&!Object(m.s)(t)||this.datepickerInput&&Object(m.s)(t,"altKey")&&t.keyCode===m.p))).subscribe(t=>{t&&t.preventDefault(),this.close()})}_destroyPopup(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}_setConnectedPositions(t){const e="end"===this.xPosition?"end":"start",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",r="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:r,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:r},{originX:i,originY:r,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:r}])}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(c.b),o.Ob(r.c),o.Ob(o.B),o.Ob(o.R),o.Ob(ut),o.Ob(d.c,8),o.Ob(S.b,8),o.Ob(a.d,8),o.Ob(K))},t.\u0275dir=o.Jb({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[o.Ab]}),t})(),vt=(()=>{class t extends bt{}return t.\u0275fac=function(e){return yt(e||t)},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[o.Bb([Q,{provide:bt,useExisting:t}]),o.zb],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();const yt=o.Wb(vt);class _t{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let xt=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this.dateChange=new o.o,this.dateInput=new o.o,this.stateChanges=new u.a,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=p.a.EMPTY,this._localeSubscription=p.a.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!e||this._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMinDate();return!i||!e||this._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMaxDate();return!i||!e||this._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,actual:e}}},this._lastValueValid=!1,this._localeSubscription=e.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const e=Object(_.c)(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const e=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(e),this._cvaOnChange(e),this._onTouched(),this._formatValue(e),this.dateInput.emit(new _t(this,this._elementRef.nativeElement)),this.dateChange.emit(new _t(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const i=Object.keys(t);for(let n of i){const{previousValue:i,currentValue:r}=t[n];if(!e.isDateInstance(i)||!e.isDateInstance(r))return!0;if(!e.sameDate(i,r))return!0}return!1})(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&t.keyCode===m.d&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._dateAdapter.sameDate(i,this.value)?(t&&!this.value&&this._cvaOnChange(i),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(i),this._cvaOnChange(i),this.dateInput.emit(new _t(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new _t(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){const e=this._getDateFilter();return!e||e(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.l),o.Ob(d.c,8),o.Ob(d.e,8))},t.\u0275dir=o.Jb({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[o.Ab]}),t})();const wt={provide:w.k,useExisting:Object(o.V)(()=>kt),multi:!0},Ct={provide:w.j,useExisting:Object(o.V)(()=>kt),multi:!0};let kt=(()=>{class t extends xt{constructor(t,e,i,n){super(t,e,i),this._formField=n,this._closedSubscription=p.a.EMPTY,this._validator=w.v.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._closedSubscription=t.closedStream.subscribe(()=>this._onTouched()),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._min)||(this._min=e,this._validatorOnChange())}get max(){return this._max}set max(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._max)||(this._max=e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){const e=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==e&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(o.l),o.Ob(d.c,8),o.Ob(d.e,8),o.Ob(C.a,8))},t.\u0275dir=o.Jb({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&o.bc("input",function(t){return e._onInput(t.target.value)})("change",function(){return e._onChange()})("blur",function(){return e._onBlur()})("keydown",function(t){return e._onKeydown(t)}),2&t&&(o.Xb("disabled",e.disabled),o.Db("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null)("data-mat-calendar",e._datepicker?e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[o.Bb([wt,Ct,{provide:k.a,useExisting:t}]),o.zb]}),t})(),St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Jb({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),Tt=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=p.a.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=Object(_.c)(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker.stateChanges:Object(g.a)(),e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Object(g.a)(),i=this.datepicker?Object(f.a)(this.datepicker.openedStream,this.datepicker.closedStream):Object(g.a)();this._stateChanges.unsubscribe(),this._stateChanges=Object(f.a)(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(o.Ob(B),o.Ob(o.h),o.Zb("tabindex"))},t.\u0275cmp=o.Ib({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){if(1&t&&o.Hb(i,St,1),2&t){let t;o.sc(t=o.cc())&&(e._customIcon=t.first)}},viewQuery:function(t,e){if(1&t&&o.Kc(F,1),2&t){let t;o.sc(t=o.cc())&&(e._button=t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){2&t&&(o.Db("tabindex",null)("data-mat-calendar",e.datepicker?e.datepicker.id:null),o.Gb("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],ariaLabel:["aria-label","ariaLabel"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[o.Ab],ngContentSelectors:V,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(o.kc(U),o.Ub(0,"button",0,1),o.bc("click",function(t){return e._open(t)}),o.Dc(2,j,2,0,"svg",2),o.jc(3),o.Tb()),2&t&&(o.lc("disabled",e.disabled)("disableRipple",e.disableRipple),o.Db("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e.ariaLabel||e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),o.Cb(2),o.lc("ngIf",!e._customIcon))},directives:[l.b,a.l],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),At=(()=>{class t{}return t.\u0275mod=o.Mb({type:t}),t.\u0275inj=o.Lb({factory:function(e){return new(e||t)},providers:[B,pt],imports:[[a.c,l.c,c.e,r.f,n.a,s.f,d.j],h.a]}),t})()},icpI:function(t,e,i){"use strict";i.d(e,"a",function(){return C}),i.d(e,"b",function(){return k});var n=i("XNiG"),r=i("LRne"),s=i("HDdC"),a=i("jtHE"),o=i("itXk"),l=i("xgIS"),c=i("fXoL"),h=i("5+tZ"),d=i("lJxs"),u=i("eIep"),p=i("Kj3r");i("mrSG");const f=["*"];var g=function(t){return t.AnnotationChart="AnnotationChart",t.AreaChart="AreaChart",t.Bar="Bar",t.BarChart="BarChart",t.BubbleChart="BubbleChart",t.Calendar="Calendar",t.CandlestickChart="CandlestickChart",t.ColumnChart="ColumnChart",t.ComboChart="ComboChart",t.PieChart="PieChart",t.Gantt="Gantt",t.Gauge="Gauge",t.GeoChart="GeoChart",t.Histogram="Histogram",t.Line="Line",t.LineChart="LineChart",t.Map="Map",t.OrgChart="OrgChart",t.Sankey="Sankey",t.Scatter="Scatter",t.ScatterChart="ScatterChart",t.SteppedAreaChart="SteppedAreaChart",t.Table="Table",t.Timeline="Timeline",t.TreeMap="TreeMap",t.WordTree="wordtree",t}({});const m={[g.AnnotationChart]:"annotationchart",[g.AreaChart]:"corechart",[g.Bar]:"bar",[g.BarChart]:"corechart",[g.BubbleChart]:"corechart",[g.Calendar]:"calendar",[g.CandlestickChart]:"corechart",[g.ColumnChart]:"corechart",[g.ComboChart]:"corechart",[g.PieChart]:"corechart",[g.Gantt]:"gantt",[g.Gauge]:"gauge",[g.GeoChart]:"geochart",[g.Histogram]:"corechart",[g.Line]:"line",[g.LineChart]:"corechart",[g.Map]:"map",[g.OrgChart]:"orgchart",[g.Sankey]:"sankey",[g.Scatter]:"scatter",[g.ScatterChart]:"corechart",[g.SteppedAreaChart]:"corechart",[g.Table]:"table",[g.Timeline]:"timeline",[g.TreeMap]:"treemap",[g.WordTree]:"wordtree"},b=new c.s("GOOGLE_CHARTS_CONFIG"),v=new c.s("GOOGLE_CHARTS_LAZY_CONFIG",{providedIn:"root",factory:()=>{const t=Object(c.W)(b,c.r.Optional);return Object(r.a)(Object.assign(Object.assign({},{version:"current",safeMode:!1}),t||{}))}});let y=(()=>{class t{constructor(t,e,i){this.zone=t,this.localeId=e,this.config$=i,this.scriptSource="https://www.gstatic.com/charts/loader.js",this.scriptLoadSubject=new n.a}isGoogleChartsAvailable(){return"undefined"!=typeof google&&void 0!==google.charts}loadChartPackages(...t){return this.loadGoogleCharts().pipe(Object(h.a)(()=>this.config$),Object(d.a)(t=>Object.assign(Object.assign({},{version:"current",safeMode:!1}),t||{})),Object(u.a)(e=>new s.a(i=>{google.charts.load(e.version,{packages:t,language:this.localeId,mapsApiKey:e.mapsApiKey,safeMode:e.safeMode}),google.charts.setOnLoadCallback(()=>{this.zone.run(()=>{i.next(),i.complete()})})})))}loadGoogleCharts(){if(this.isGoogleChartsAvailable())return Object(r.a)(null);if(!this.isLoadingGoogleCharts()){const t=this.createGoogleChartsScript();t.onload=()=>{this.zone.run(()=>{this.scriptLoadSubject.next(),this.scriptLoadSubject.complete()})},t.onerror=()=>{this.zone.run(()=>{console.error("Failed to load the google charts script!"),this.scriptLoadSubject.error(new Error("Failed to load the google charts script!"))})}}return this.scriptLoadSubject.asObservable()}isLoadingGoogleCharts(){return null!=this.getGoogleChartsScript()}getGoogleChartsScript(){return Array.from(document.getElementsByTagName("script")).find(t=>t.src===this.scriptSource)}createGoogleChartsScript(){const t=document.createElement("script");return t.type="text/javascript",t.src=this.scriptSource,t.async=!0,document.getElementsByTagName("head")[0].appendChild(t),t}}return t.\u0275fac=function(e){return new(e||t)(c.Yb(c.B),c.Yb(c.w),c.Yb(v))},t.\u0275prov=c.Kb({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t{create(t,e,i){if(null==t)return;let n=!0;null!=e&&(n=!1);const r=google.visualization.arrayToDataTable(this.getDataAsTable(t,e),n);return i&&this.applyFormatters(r,i),r}getDataAsTable(t,e){return e?[e,...t]:t}applyFormatters(t,e){for(const i of e)i.formatter.format(t,i.colIndex)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=c.Kb({factory:function(){return new t},token:t,providedIn:"root"}),t})(),x=(()=>{class t{constructor(t){this.loaderService=t,this.error=new c.o,this.ready=new c.o,this.stateChange=new c.o,this.id="_"+Math.random().toString(36).substr(2,9),this.wrapperReadySubject=new a.a(1)}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get controlWrapper(){if(!this._controlWrapper)throw new Error("Cannot access the control wrapper before it being initialized.");return this._controlWrapper}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.createControlWrapper()})}ngOnChanges(t){this._controlWrapper&&(t.type&&this._controlWrapper.setControlType(this.type),t.options&&this._controlWrapper.setOptions(this.options||{}),t.state&&this._controlWrapper.setState(this.state||{}))}createControlWrapper(){this._controlWrapper=new google.visualization.ControlWrapper({containerId:this.id,controlType:this.type,state:this.state,options:this.options}),this.addEventListeners(),this.wrapperReadySubject.next(this._controlWrapper)}addEventListeners(){google.visualization.events.removeAllListeners(this._controlWrapper),google.visualization.events.addListener(this._controlWrapper,"ready",t=>this.ready.emit(t)),google.visualization.events.addListener(this._controlWrapper,"error",t=>this.error.emit(t)),google.visualization.events.addListener(this._controlWrapper,"statechange",t=>this.stateChange.emit(t))}}return t.\u0275fac=function(e){return new(e||t)(c.Ob(y))},t.\u0275cmp=c.Ib({type:t,selectors:[["control-wrapper"]],hostAttrs:[1,"control-wrapper"],hostVars:1,hostBindings:function(t,e){2&t&&c.Xb("id",e.id)},inputs:{for:"for",type:"type",options:"options",state:"state"},outputs:{error:"error",ready:"ready",stateChange:"stateChange"},exportAs:["controlWrapper"],features:[c.Ab],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})(),w=(()=>{class t{constructor(t,e,i){this.element=t,this.loaderService=e,this.dataTableService=i,this.ready=new c.o,this.error=new c.o,this.initialized=!1}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.createDashboard(),this.initialized=!0})}ngOnChanges(t){this.initialized&&(t.data||t.columns||t.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.dashboard.draw(this.dataTable))}createDashboard(){const t=this.controlWrappers.map(t=>t.wrapperReady$),e=this.controlWrappers.map(t=>t.for).map(t=>Array.isArray(t)?Object(o.b)(t.map(t=>t.wrapperReady$)):t.wrapperReady$);Object(o.b)([...t,...e]).subscribe(()=>{this.dashboard=new google.visualization.Dashboard(this.element.nativeElement),this.initializeBindings(),this.registerEvents(),this.dashboard.draw(this.dataTable)})}registerEvents(){google.visualization.events.removeAllListeners(this.dashboard);const t=(t,e,i)=>{google.visualization.events.addListener(t,e,i)};t(this.dashboard,"ready",()=>this.ready.emit()),t(this.dashboard,"error",t=>this.error.emit(t))}initializeBindings(){this.controlWrappers.forEach(t=>{if(Array.isArray(t.for)){const e=t.for.map(t=>t.chartWrapper);this.dashboard.bind(t.controlWrapper,e)}else this.dashboard.bind(t.controlWrapper,t.for.chartWrapper)})}}return t.\u0275fac=function(e){return new(e||t)(c.Ob(c.l),c.Ob(y),c.Ob(_))},t.\u0275cmp=c.Ib({type:t,selectors:[["dashboard"]],contentQueries:function(t,e,i){if(1&t&&c.Hb(i,x,0),2&t){let t;c.sc(t=c.cc())&&(e.controlWrappers=t)}},hostAttrs:[1,"dashboard"],inputs:{data:"data",columns:"columns",formatters:"formatters"},outputs:{ready:"ready",error:"error"},exportAs:["dashboard"],features:[c.Ab],ngContentSelectors:f,decls:1,vars:0,template:function(t,e){1&t&&(c.kc(),c.jc(0))},encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{constructor(t,e,i,n){this.element=t,this.scriptLoaderService=e,this.dataTableService=i,this.dashboard=n,this.options={},this.dynamicResize=!1,this.ready=new c.o,this.error=new c.o,this.select=new c.o,this.mouseover=new c.o,this.mouseleave=new c.o,this.wrapperReadySubject=new a.a(1),this.initialized=!1,this.eventListeners=new Map}get chart(){return this.chartWrapper.getChart()}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get chartWrapper(){if(!this.wrapper)throw new Error("Trying to access the chart wrapper before it was fully initialized");return this.wrapper}set chartWrapper(t){this.wrapper=t,this.drawChart()}ngOnInit(){var t;this.scriptLoaderService.loadChartPackages((t=this.type,m[t])).subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper=new google.visualization.ChartWrapper({container:this.element.nativeElement,chartType:this.type,dataTable:this.dataTable,options:this.mergeOptions()}),this.registerChartEvents(),this.wrapperReadySubject.next(this.wrapper),this.initialized=!0,this.drawChart()})}ngOnChanges(t){if(t.dynamicResize&&this.updateResizeListener(),this.initialized){let e=!1;(t.data||t.columns||t.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper.setDataTable(this.dataTable),e=!0),t.type&&(this.wrapper.setChartType(this.type),e=!0),(t.options||t.width||t.height||t.title)&&(this.wrapper.setOptions(this.mergeOptions()),e=!0),e&&this.drawChart()}}addEventListener(t,e){const i=this.registerChartEvent(this.chart,t,e);return this.eventListeners.set(i,{eventName:t,callback:e,handle:i}),i}removeEventListener(t){const e=this.eventListeners.get(t);e&&(google.visualization.events.removeListener(e.handle),this.eventListeners.delete(t))}updateResizeListener(){null!=this.resizeSubscription&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=void 0),this.dynamicResize&&(this.resizeSubscription=Object(l.a)(window,"resize").pipe(Object(p.a)(100)).subscribe(()=>{this.initialized&&this.drawChart()}))}mergeOptions(){return Object.assign({title:this.title,width:this.width,height:this.height},this.options)}registerChartEvents(){google.visualization.events.removeAllListeners(this.wrapper),this.registerChartEvent(this.wrapper,"ready",()=>{google.visualization.events.removeAllListeners(this.chart),this.registerChartEvent(this.chart,"onmouseover",t=>this.mouseover.emit(t)),this.registerChartEvent(this.chart,"onmouseout",t=>this.mouseleave.emit(t)),this.registerChartEvent(this.chart,"select",()=>{const t=this.chart.getSelection();this.select.emit({selection:t})}),this.eventListeners.forEach(t=>t.handle=this.registerChartEvent(this.chart,t.eventName,t.callback)),this.ready.emit({chart:this.chart})}),this.registerChartEvent(this.wrapper,"error",t=>this.error.emit(t))}registerChartEvent(t,e,i){return google.visualization.events.addListener(t,e,i)}drawChart(){null==this.dashboard&&this.wrapper.draw()}}return t.\u0275fac=function(e){return new(e||t)(c.Ob(c.l),c.Ob(y),c.Ob(_),c.Ob(w,8))},t.\u0275cmp=c.Ib({type:t,selectors:[["google-chart"]],hostAttrs:[1,"google-chart"],inputs:{options:"options",dynamicResize:"dynamicResize",type:"type",data:"data",columns:"columns",title:"title",width:"width",height:"height",formatters:"formatters"},outputs:{ready:"ready",error:"error",select:"select",mouseover:"mouseover",mouseleave:"mouseleave"},exportAs:["googleChart"],features:[c.Ab],decls:0,vars:0,template:function(t,e){},styles:["[_nghost-%COMP%] { width: fit-content; display: block; }"],changeDetection:0}),t})(),k=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:b,useValue:e}]}}}return t.\u0275mod=c.Mb({type:t}),t.\u0275inj=c.Lb({factory:function(e){return new(e||t)},providers:[y]}),t})()},itXk:function(t,e,i){"use strict";i.d(e,"b",function(){return c}),i.d(e,"a",function(){return h});var n=i("z+Ro"),r=i("DH7j"),s=i("l7GE"),a=i("ZUHj"),o=i("yCtX");const l={};function c(...t){let e=null,i=null;return Object(n.a)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(r.a)(t[0])&&(t=t[0]),Object(o.a)(t,i).lift(new h(e))}class h{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new d(t,this.resultSelector))}}class d extends s.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(l),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 i=0;i<e;i++){const e=t[i];this.add(Object(a.a)(this,e,e,i))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,i,n,r){const s=this.values,a=this.toRespond?s[i]===l?--this.toRespond:this.toRespond:0;s[i]=e,0===a&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}},jSPq:function(t,e,i){var n=i("Wogr"),r=i("JzKC");function s(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}s.prototype.initialize=function(t){this.degree=t,this.genPoly=r.generateECPolynomial(this.degree)},s.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var e=new n(this.degree);e.fill(0);var i=n.concat([t,e],t.length+this.degree),s=r.mod(i,this.genPoly),a=this.degree-s.length;if(a>0){var o=new n(this.degree);return o.fill(0),s.copy(o,a),o}return s},t.exports=s},jZKg:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("HDdC"),r=i("quSY");function s(t,e){return new n.a(i=>{const n=new r.a;let s=0;return n.add(e.schedule(function(){s!==t.length?(i.next(t[s++]),i.closed||n.add(this.schedule())):i.complete()})),n})}},jhN1:function(t,e,i){"use strict";i.d(e,"a",function(){return z}),i.d(e,"b",function(){return P}),i.d(e,"c",function(){return L}),i.d(e,"d",function(){return x});var n=i("ofXK"),r=i("fXoL");class s extends n.x{constructor(){super()}supportsDOMEvents(){return!0}}class a extends s{static makeCurrent(){Object(n.B)(new a)}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,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!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=l||(l=document.querySelector("base"),l)?l.getAttribute("href"):null;return null==e?null:(i=e,o||(o=document.createElement("a")),o.setAttribute("href",i),"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname);var i}resetBaseElement(){l=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 Object(n.A)(document.cookie,t)}}let o,l=null;const c=new r.s("TRANSITION_ID"),h=[{provide:r.d,useFactory:function(t,e,i){return()=>{i.get(r.e).donePromise.then(()=>{const i=Object(n.z)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[c,n.d,r.t],multi:!0}];class d{static init(){Object(r.Z)(new d)}addToWindow(t){r.qb.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},r.qb.getAllAngularTestabilities=()=>t.getAllTestabilities(),r.qb.getAllAngularRootElements=()=>t.getAllRootElements(),r.qb.frameworkStabilizers||(r.qb.frameworkStabilizers=[]),r.qb.frameworkStabilizers.push(t=>{const e=r.qb.getAllAngularTestabilities();let i=e.length,n=!1;const s=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?Object(n.z)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const u=new r.s("EventManagerPlugins");let p=(()=>{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,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n<i.length;n++){const e=i[n];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)(r.Yb(u),r.Yb(r.B))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})();class f{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const r=Object(n.z)().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let g=(()=>{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=r.Kb({token:t,factory:t.\u0275fac}),t})(),m=(()=>{class t extends g{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 i=this._doc.createElement("style");i.textContent=t,this._styleNodes.add(e.appendChild(i))})}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=>Object(n.z)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(n.d))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})();const b={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/"},v=/%COMP%/g;function y(t,e,i){for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?y(t,r,i):(r=r.replace(v,t),i.push(r))}return i}function _(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let x=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new w(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.S.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new C(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case r.S.ShadowDom:return new k(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=y(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)(r.Yb(p),r.Yb(m),r.Yb(r.c))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})();class w{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(b[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,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const r=b[n];r?t.setAttributeNS(r,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=b[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(r.I.DashCase|r.I.Important)?t.style.setProperty(e,i,n&r.I.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&r.I.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,_(i)):this.eventManager.addEventListener(t,e,_(i))}}class C extends w{constructor(t,e,i,n){super(t),this.component=i;const r=y(n+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(v,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(v,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class k extends w{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=y(n.id,n.styles,[]);for(let s=0;s<r.length;s++){const t=document.createElement("style");t.textContent=r[s],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,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let S=(()=>{class t extends f{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(n.d))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})();const T=["alt","control","meta","shift"],A={"\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"},O={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"},E={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let D=(()=>{class t extends f{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const s=t.parseEventName(i),a=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(n.z)().onAndCancel(e,s.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const r=t._normalizeKey(i.pop());let s="";if(T.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),s+=t+".")}),s+=r,0!=i.length||0===r.length)return null;const a={};return a.domEventName=n,a.fullKey=s,a}static getEventFullKey(t){let e="",i=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&&O.hasOwnProperty(e)&&(e=O[e]))}return A[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),T.forEach(n=>{n!=i&&(0,E[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return r=>{t.getEventFullKey(r)===e&&n.runGuarded(()=>i(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(n.d))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})(),P=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Kb)({factory:function(){return Object(r.Yb)(M)},token:t,providedIn:"root"}),t})();function I(t){return new M(t.get(n.d))}let M=(()=>{class t extends P{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case r.K.NONE:return e;case r.K.HTML:return Object(r.fb)(e,"HTML")?Object(r.yb)(e):Object(r.db)(this._doc,String(e)).toString();case r.K.STYLE:return Object(r.fb)(e,"Style")?Object(r.yb)(e):e;case r.K.SCRIPT:if(Object(r.fb)(e,"Script"))return Object(r.yb)(e);throw new Error("unsafe value used in a script context");case r.K.URL:return Object(r.pb)(e),Object(r.fb)(e,"URL")?Object(r.yb)(e):Object(r.eb)(String(e));case r.K.RESOURCE_URL:if(Object(r.fb)(e,"ResourceURL"))return Object(r.yb)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return Object(r.gb)(t)}bypassSecurityTrustStyle(t){return Object(r.jb)(t)}bypassSecurityTrustScript(t){return Object(r.ib)(t)}bypassSecurityTrustUrl(t){return Object(r.kb)(t)}bypassSecurityTrustResourceUrl(t){return Object(r.hb)(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(n.d))},t.\u0275prov=Object(r.Kb)({factory:function(){return I(Object(r.Yb)(r.p))},token:t,providedIn:"root"}),t})();const R=[{provide:r.D,useValue:n.y},{provide:r.E,useValue:function(){a.makeCurrent(),d.init()},multi:!0},{provide:n.d,useFactory:function(){return Object(r.wb)(document),document},deps:[]}],L=Object(r.T)(r.Y,"browser",R),N=[[],{provide:r.bb,useValue:"root"},{provide:r.n,useFactory:function(){return new r.n},deps:[]},{provide:u,useClass:S,multi:!0,deps:[n.d,r.B,r.D]},{provide:u,useClass:D,multi:!0,deps:[n.d]},[],{provide:x,useClass:x,deps:[p,m,r.c]},{provide:r.H,useExisting:x},{provide:g,useExisting:m},{provide:m,useClass:m,deps:[n.d]},{provide:r.O,useClass:r.O,deps:[r.B]},{provide:p,useClass:p,deps:[u,r.B]},[]];let z=(()=>{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:r.c,useValue:e.appId},{provide:c,useExisting:r.c},h]}}}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)(r.Yb(t,12))},providers:N,imports:[n.c,r.f]}),t})();"undefined"!=typeof window&&window},jiyY:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i("MfXU"),r=i("fXoL"),s=i("QdIO"),a=i("tyNb");let o=(()=>{class t{constructor(t,e){this.applicationService=t,this.router=e,this.userRoles=[n.a.Donor]}canLoad(){return!!this.userRoles.some(t=>this.applicationService.isInRole(t))||this.router.navigateByUrl("/login")}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(s.a),r.Yb(a.c))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})()},jtHE:function(t,e,i){"use strict";i.d(e,"a",function(){return m});var n=i("XNiG"),r=i("3N8a");class s extends r.a{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,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}var a=i("IjjT");class o extends a.a{}const l=new o(s);var c=i("quSY"),h=i("7o/Q"),d=i("WMd4");class u extends h.a{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(u.dispatch,this.delay,new p(t,this.destination)))}_next(t){this.scheduleMessage(d.a.createNext(t))}_error(t){this.scheduleMessage(d.a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(d.a.createComplete()),this.unsubscribe()}}class p{constructor(t,e){this.notification=t,this.destination=e}}var f=i("9ppp"),g=i("Ylt2");class m extends n.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,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 b(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,r=i.length;let s;if(this.closed)throw new f.a;if(this.isStopped||this.hasError?s=c.a.EMPTY:(this.observers.push(t),s=new g.a(this,t)),n&&t.add(t=new u(t,n)),e)for(let a=0;a<r&&!t.closed;a++)t.next(i[a]);else for(let a=0;a<r&&!t.closed;a++)t.next(i[a].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),s}_getNow(){return(this.scheduler||l).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,i=this._windowTime,n=this._events,r=n.length;let s=0;for(;s<r&&!(t-n[s].time<i);)s++;return r>e&&(s=Math.max(s,r-e)),s>0&&n.splice(0,s),n}}class b{constructor(t,e){this.time=t,this.value=e}}},kJWO:function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},"kk9/":function(t,e,i){var n=i("e/Dd").getSymbolSize;e.getPositions=function(t){var e=n(t);return[[0,0],[e-7,0],[0,e-7]]}},kmnG:function(t,e,i){"use strict";i.d(e,"a",function(){return K}),i.d(e,"b",function(){return z}),i.d(e,"c",function(){return Z}),i.d(e,"d",function(){return j}),i.d(e,"e",function(){return Q}),i.d(e,"f",function(){return V}),i.d(e,"g",function(){return W});var n=i("GU7r"),r=i("ofXK"),s=i("fXoL"),a=i("FKr1"),o=i("8LU1"),l=i("XNiG"),c=i("VRyK"),h=i("xgIS"),d=i("JX91"),u=i("1G5W"),p=i("IzEk"),f=i("R0Ic"),g=i("R1ws"),m=i("cH1L"),b=i("nLfN");const v=["underline"],y=["connectionContainer"],_=["inputContainer"],x=["label"];function w(t,e){1&t&&(s.Sb(0),s.Ub(1,"div",14),s.Pb(2,"div",15),s.Pb(3,"div",16),s.Pb(4,"div",17),s.Tb(),s.Ub(5,"div",18),s.Pb(6,"div",15),s.Pb(7,"div",16),s.Pb(8,"div",17),s.Tb(),s.Rb())}function C(t,e){1&t&&(s.Ub(0,"div",19),s.jc(1,1),s.Tb())}function k(t,e){if(1&t&&(s.Sb(0),s.jc(1,2),s.Ub(2,"span"),s.Ec(3),s.Tb(),s.Rb()),2&t){const t=s.fc(2);s.Cb(3),s.Fc(t._control.placeholder)}}function S(t,e){1&t&&s.jc(0,3,["*ngSwitchCase","true"])}function T(t,e){1&t&&(s.Ub(0,"span",23),s.Ec(1," *"),s.Tb())}function A(t,e){if(1&t){const t=s.Vb();s.Ub(0,"label",20,21),s.bc("cdkObserveContent",function(){return s.wc(t),s.fc().updateOutlineGap()}),s.Dc(2,k,4,1,"ng-container",12),s.Dc(3,S,1,0,"ng-content",12),s.Dc(4,T,2,0,"span",22),s.Tb()}if(2&t){const t=s.fc();s.Gb("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.lc("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.Db("for",t._control.id)("aria-owns",t._control.id),s.Cb(2),s.lc("ngSwitchCase",!1),s.Cb(1),s.lc("ngSwitchCase",!0),s.Cb(1),s.lc("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function O(t,e){1&t&&(s.Ub(0,"div",24),s.jc(1,4),s.Tb())}function E(t,e){if(1&t&&(s.Ub(0,"div",25,26),s.Pb(2,"span",27),s.Tb()),2&t){const t=s.fc();s.Cb(2),s.Gb("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function D(t,e){if(1&t&&(s.Ub(0,"div"),s.jc(1,5),s.Tb()),2&t){const t=s.fc();s.lc("@transitionMessages",t._subscriptAnimationState)}}function P(t,e){if(1&t&&(s.Ub(0,"div",31),s.Ec(1),s.Tb()),2&t){const t=s.fc(2);s.lc("id",t._hintLabelId),s.Cb(1),s.Fc(t.hintLabel)}}function I(t,e){if(1&t&&(s.Ub(0,"div",28),s.Dc(1,P,2,2,"div",29),s.jc(2,6),s.Pb(3,"div",30),s.jc(4,7),s.Tb()),2&t){const t=s.fc();s.lc("@transitionMessages",t._subscriptAnimationState),s.Cb(1),s.lc("ngIf",t.hintLabel)}}const M=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],R=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let L=0;const N=new s.s("MatError");let z=(()=>{class t{constructor(){this.id="mat-error-"+L++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.Db("id",e.id)},inputs:{id:"id"},features:[s.Bb([{provide:N,useExisting:t}])]}),t})();const F={transitionMessages:Object(f.m)("transitionMessages",[Object(f.j)("enter",Object(f.k)({opacity:1,transform:"translateY(0%)"})),Object(f.l)("void => enter",[Object(f.k)({opacity:0,transform:"translateY(-100%)"}),Object(f.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t}),t})();const U=new s.s("MatHint");let V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["mat-label"]]}),t})(),B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["mat-placeholder"]]}),t})();const Y=new s.s("MatPrefix"),H=new s.s("MatSuffix");let W=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Jb({type:t,selectors:[["","matSuffix",""]],features:[s.Bb([{provide:H,useExisting:t}])]}),t})(),X=0;class G{constructor(t){this._elementRef=t}}const q=Object(a.y)(G,"primary"),$=new s.s("MAT_FORM_FIELD_DEFAULT_OPTIONS"),K=new s.s("MatFormField");let Z=(()=>{class t extends q{constructor(t,e,i,n,r,s,a,o){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=r,this._platform=s,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+X++,this._labelId="mat-form-field-label-"+X++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Object(o.c)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(Object(d.a)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(u.a)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Object(u.a)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(c.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(d.a)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(d.a)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(u.a)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(h.a)(this._label.nativeElement,"transitionend").pipe(Object(p.a)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,r=n.querySelectorAll(".mat-form-field-outline-start"),s=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const r=n.getBoundingClientRect();if(0===r.width&&0===r.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const s=this._getStartEnd(r),a=t.children,o=this._getStartEnd(a[0].getBoundingClientRect());let l=0;for(let t=0;t<a.length;t++)l+=a[t].offsetWidth;e=Math.abs(o-s)-5,i=l>0?.75*l+10:0}for(let a=0;a<r.length;a++)r[a].style.width=`${e}px`;for(let a=0;a<s.length;a++)s[a].style.width=`${i}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}_isAttachedToDOM(){const t=this._elementRef.nativeElement;if(t.getRootNode){const e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Ob(s.l),s.Ob(s.h),s.Ob(s.l),s.Ob(m.b,8),s.Ob($,8),s.Ob(b.a),s.Ob(s.B),s.Ob(g.a,8))},t.\u0275cmp=s.Ib({type:t,selectors:[["mat-form-field"]],contentQueries:function(t,e,i){if(1&t&&(s.Hb(i,j,1),s.Hb(i,j,3),s.Hb(i,V,1),s.Hb(i,V,3),s.Hb(i,B,1),s.Hb(i,N,1),s.Hb(i,U,1),s.Hb(i,Y,1),s.Hb(i,H,1)),2&t){let t;s.sc(t=s.cc())&&(e._controlNonStatic=t.first),s.sc(t=s.cc())&&(e._controlStatic=t.first),s.sc(t=s.cc())&&(e._labelChildNonStatic=t.first),s.sc(t=s.cc())&&(e._labelChildStatic=t.first),s.sc(t=s.cc())&&(e._placeholderChild=t.first),s.sc(t=s.cc())&&(e._errorChildren=t),s.sc(t=s.cc())&&(e._hintChildren=t),s.sc(t=s.cc())&&(e._prefixChildren=t),s.sc(t=s.cc())&&(e._suffixChildren=t)}},viewQuery:function(t,e){if(1&t&&(s.Kc(v,1),s.Kc(y,3),s.Kc(_,1),s.Kc(x,1)),2&t){let t;s.sc(t=s.cc())&&(e.underlineRef=t.first),s.sc(t=s.cc())&&(e._connectionContainerRef=t.first),s.sc(t=s.cc())&&(e._inputContainerRef=t.first),s.sc(t=s.cc())&&(e._label=t.first)}},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(t,e){2&t&&s.Gb("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat())("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[s.Bb([{provide:K,useExisting:t}]),s.zb],ngContentSelectors:R,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(t,e){1&t&&(s.kc(M),s.Ub(0,"div",0),s.Ub(1,"div",1,2),s.bc("click",function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)}),s.Dc(3,w,9,0,"ng-container",3),s.Dc(4,C,2,0,"div",4),s.Ub(5,"div",5,6),s.jc(7),s.Ub(8,"span",7),s.Dc(9,A,5,16,"label",8),s.Tb(),s.Tb(),s.Dc(10,O,2,0,"div",9),s.Tb(),s.Dc(11,E,3,4,"div",10),s.Ub(12,"div",11),s.Dc(13,D,2,1,"div",12),s.Dc(14,I,5,2,"div",13),s.Tb(),s.Tb()),2&t&&(s.Cb(3),s.lc("ngIf","outline"==e.appearance),s.Cb(1),s.lc("ngIf",e._prefixChildren.length),s.Cb(5),s.lc("ngIf",e._hasFloatingLabel()),s.Cb(1),s.lc("ngIf",e._suffixChildren.length),s.Cb(1),s.lc("ngIf","outline"!=e.appearance),s.Cb(1),s.lc("ngSwitch",e._getDisplayedMessages()),s.Cb(1),s.lc("ngSwitchCase","error"),s.Cb(1),s.lc("ngSwitchCase","hint"))},directives:[r.l,r.n,r.o,n.a],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[F.transitionMessages]},changeDetection:0}),t})(),Q=(()=>{class t{}return t.\u0275mod=s.Mb({type:t}),t.\u0275inj=s.Lb({factory:function(e){return new(e||t)},imports:[[r.c,a.j,n.c],a.j]}),t})()},l7GE:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("7o/Q");class r extends n.a{notifyNext(t,e,i,n,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},lJxs:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("7o/Q");function r(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new s(t,e))}}class s{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new a(t,this.project,this.thisArg))}}class a extends n.a{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}},lYJp:function(t,e,i){var n=i("e/Dd"),r=n.getBCHDigit(1335);e.getEncodedBits=function(t,e){for(var i=t.bit<<3|e,s=i<<10;n.getBCHDigit(s)-r>=0;)s^=1335<<n.getBCHDigit(s)-r;return 21522^(i<<10|s)}},mCNh:function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return s});var n=i("SpAZ");function r(...t){return s(t)}function s(t){return 0===t.length?n.a:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}},mefp:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("MfXU"),r=i("jiyY"),s=i("fXoL");let a=(()=>{class t extends r.a{constructor(){super(...arguments),this.userRoles=[n.a.Donor]}}return t.\u0275fac=function(e){return o(e||t)},t.\u0275prov=s.Kb({token:t,factory:t.\u0275fac}),t})();const o=s.Wb(a)},mrSG:function(t,e,i){"use strict";function n(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]])}return i}function r(t,e,i,n){return new(i||(i=Promise))(function(r,s){function a(t){try{l(n.next(t))}catch(e){s(e)}}function o(t){try{l(n.throw(t))}catch(e){s(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,o)}l((n=n.apply(t,e||[])).next())})}i.d(e,"b",function(){return n}),i.d(e,"a",function(){return r})},n6bG:function(t,e,i){"use strict";function n(t){return"function"==typeof t}i.d(e,"a",function(){return n})},nLfN:function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return l}),i.d(e,"c",function(){return v}),i.d(e,"d",function(){return b}),i.d(e,"e",function(){return h}),i.d(e,"f",function(){return g}),i.d(e,"g",function(){return m});var n=i("fXoL"),r=i("ofXK");let s;try{s="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(y){s=!1}let a,o=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(r.w)(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&&!s)&&"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)(n.Yb(n.D))},t.\u0275prov=Object(n.Kb)({factory:function(){return new t(Object(n.Yb)(n.D))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)}}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function h(){if(a)return a;if("object"!=typeof document||!document)return a=new Set(c),a;let t=document.createElement("input");return a=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),a}let d,u,p,f;function g(t){return function(){if(null==d&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>d=!0}))}finally{d=d||!1}return d}()?t:!!t.capture}function m(){if(null==p){if("object"!=typeof document||!document)return p=!1,p;if("scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p}function b(){if("object"!=typeof document||!document)return 0;if(null==u){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),u=0,0===t.scrollLeft&&(t.scrollLeft=1,u=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return u}function v(t){if(function(){if(null==f){const t="undefined"!=typeof document?document.head:null;f=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},nYR2:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("7o/Q"),r=i("quSY");function s(t){return e=>e.lift(new a(t))}class a{constructor(t){this.callback=t}call(t,e){return e.subscribe(new o(t,this.callback))}}class o extends n.a{constructor(t,e){super(t),this.add(new r.a(e))}}},nZSm:function(t,e,i){var n=i("u/Db"),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function s(t){this.mode=n.ALPHANUMERIC,this.data=t}s.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){var e;for(e=0;e+2<=this.data.length;e+=2){var i=45*r.indexOf(this.data[e]);i+=r.indexOf(this.data[e+1]),t.put(i,11)}this.data.length%2&&t.put(r.indexOf(this.data[e]),6)},t.exports=s},ngJS:function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=t=>e=>{for(let i=0,n=t.length;i<n&&!e.closed;i++)e.next(t[i]);e.complete()}},oB13:function(t,e,i){"use strict";i.d(e,"a",function(){return h});var n=i("XNiG"),r=i("HDdC"),s=(i("7o/Q"),i("quSY")),a=i("x+ZX");class o extends r.a{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 s.a,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t}refCount(){return Object(a.a)()(this)}}const l=(()=>{const t=o.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 c extends n.b{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 h(t,e){return function(i){let n;if(n="function"==typeof t?t:function(){return t},"function"==typeof e)return i.lift(new d(n,e));const r=Object.create(i,l);return r.source=i,r.subjectFactory=n,r}}class d{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,n=this.subjectFactory(),r=i(n).subscribe(t);return r.add(e.subscribe(n)),r}}},ofXK:function(t,e,i){"use strict";i.d(e,"a",function(){return _}),i.d(e,"b",function(){return St}),i.d(e,"c",function(){return Et}),i.d(e,"d",function(){return l}),i.d(e,"e",function(){return At}),i.d(e,"f",function(){return w}),i.d(e,"g",function(){return d}),i.d(e,"h",function(){return C}),i.d(e,"i",function(){return v}),i.d(e,"j",function(){return ot}),i.d(e,"k",function(){return ct}),i.d(e,"l",function(){return dt}),i.d(e,"m",function(){return vt}),i.d(e,"n",function(){return gt}),i.d(e,"o",function(){return mt}),i.d(e,"p",function(){return bt}),i.d(e,"q",function(){return yt}),i.d(e,"r",function(){return x}),i.d(e,"s",function(){return c}),i.d(e,"t",function(){return Ot}),i.d(e,"u",function(){return Tt}),i.d(e,"v",function(){return It}),i.d(e,"w",function(){return Pt}),i.d(e,"x",function(){return o}),i.d(e,"y",function(){return Dt}),i.d(e,"z",function(){return s}),i.d(e,"A",function(){return at}),i.d(e,"B",function(){return a});var n=i("fXoL");let r=null;function s(){return r}function a(t){r||(r=t)}class o{}const l=new n.s("DocumentToken");let c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(n.Kb)({factory:h,token:t,providedIn:"platform"}),t})();function h(){return Object(n.Yb)(u)}const d=new n.s("Location Initialized");let u=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=s().getLocation(),this._history=s().getHistory()}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(t){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){s().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,i){p()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){p()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(l))},t.\u0275prov=Object(n.Kb)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new u(Object(n.Yb)(l))}function g(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function b(t){return t&&"?"!==t[0]?"?"+t:t}let v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(n.Kb)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=Object(n.Yb)(l).location;return new x(Object(n.Yb)(c),e&&e.origin||"")}const _=new n.s("appBaseHref");let x=(()=>{class t extends v{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 g(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const r=this.prepareExternalUrl(i+b(n));this._platformLocation.pushState(t,e,r)}replaceState(t,e,i,n){const r=this.prepareExternalUrl(i+b(n));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(c),n.Yb(_,8))},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})(),w=(()=>{class t extends v{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=g(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let r=this.prepareExternalUrl(i+b(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,i,n){let r=this.prepareExternalUrl(i+b(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(c),n.Yb(_,8))},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e){this._subject=new n.o,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(S(i)),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+b(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,S(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),i)}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(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(v),n.Yb(c))},t.normalizeQueryParams=b,t.joinWithSlash=g,t.stripTrailingSlash=m,t.\u0275prov=Object(n.Kb)({factory:k,token:t,providedIn:"root"}),t})();function k(){return new C(Object(n.Yb)(v),Object(n.Yb)(c))}function S(t){return t.replace(/\/index.html$/,"")}var T=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}({}),A=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),O=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),E=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),D=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 P(t,e){return z(Object(n.lb)(t)[n.cb.DateFormat],e)}function I(t,e){return z(Object(n.lb)(t)[n.cb.TimeFormat],e)}function M(t,e){return z(Object(n.lb)(t)[n.cb.DateTimeFormat],e)}function R(t,e){const i=Object(n.lb)(t),r=i[n.cb.NumberSymbols][e];if(void 0===r){if(e===D.CurrencyDecimal)return i[n.cb.NumberSymbols][D.Decimal];if(e===D.CurrencyGroup)return i[n.cb.NumberSymbols][D.Group]}return r}const L=n.ob;function N(t){if(!t[n.cb.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[n.cb.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function z(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function F(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const j=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,U={},V=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|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 B=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Y=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}({}),H=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 W(t,e,i,n){let r=function(t){if(nt(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,i,n]=t.split("-").map(t=>+t);return new Date(e,i-1,n)}let i;if(i=t.match(j))return function(t){const e=new Date(0);let i=0,n=0;const r=t[8]?e.setUTCFullYear:e.setFullYear,s=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const a=Number(t[4]||0)-i,o=Number(t[5]||0)-n,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return s.call(e,a,o,l,c),e}(i)}const e=new Date(t);if(!nt(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=X(i,e)||e;let s,a=[];for(;e;){if(s=V.exec(e),!s){a.push(e);break}{a=a.concat(s.slice(1));const t=a.pop();if(!t)break;e=t}}let o=r.getTimezoneOffset();n&&(o=it(n,o),r=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(it(e,n)-n))}(r,n));let l="";return a.forEach(t=>{const e=function(t){if(et[t])return et[t];let e;switch(t){case"G":case"GG":case"GGG":e=K(H.Eras,O.Abbreviated);break;case"GGGG":e=K(H.Eras,O.Wide);break;case"GGGGG":e=K(H.Eras,O.Narrow);break;case"y":e=$(Y.FullYear,1,0,!1,!0);break;case"yy":e=$(Y.FullYear,2,0,!0,!0);break;case"yyy":e=$(Y.FullYear,3,0,!1,!0);break;case"yyyy":e=$(Y.FullYear,4,0,!1,!0);break;case"Y":e=tt(1);break;case"YY":e=tt(2,!0);break;case"YYY":e=tt(3);break;case"YYYY":e=tt(4);break;case"M":case"L":e=$(Y.Month,1,1);break;case"MM":case"LL":e=$(Y.Month,2,1);break;case"MMM":e=K(H.Months,O.Abbreviated);break;case"MMMM":e=K(H.Months,O.Wide);break;case"MMMMM":e=K(H.Months,O.Narrow);break;case"LLL":e=K(H.Months,O.Abbreviated,A.Standalone);break;case"LLLL":e=K(H.Months,O.Wide,A.Standalone);break;case"LLLLL":e=K(H.Months,O.Narrow,A.Standalone);break;case"w":e=J(1);break;case"ww":e=J(2);break;case"W":e=J(1,!0);break;case"d":e=$(Y.Date,1);break;case"dd":e=$(Y.Date,2);break;case"E":case"EE":case"EEE":e=K(H.Days,O.Abbreviated);break;case"EEEE":e=K(H.Days,O.Wide);break;case"EEEEE":e=K(H.Days,O.Narrow);break;case"EEEEEE":e=K(H.Days,O.Short);break;case"a":case"aa":case"aaa":e=K(H.DayPeriods,O.Abbreviated);break;case"aaaa":e=K(H.DayPeriods,O.Wide);break;case"aaaaa":e=K(H.DayPeriods,O.Narrow);break;case"b":case"bb":case"bbb":e=K(H.DayPeriods,O.Abbreviated,A.Standalone,!0);break;case"bbbb":e=K(H.DayPeriods,O.Wide,A.Standalone,!0);break;case"bbbbb":e=K(H.DayPeriods,O.Narrow,A.Standalone,!0);break;case"B":case"BB":case"BBB":e=K(H.DayPeriods,O.Abbreviated,A.Format,!0);break;case"BBBB":e=K(H.DayPeriods,O.Wide,A.Format,!0);break;case"BBBBB":e=K(H.DayPeriods,O.Narrow,A.Format,!0);break;case"h":e=$(Y.Hours,1,-12);break;case"hh":e=$(Y.Hours,2,-12);break;case"H":e=$(Y.Hours,1);break;case"HH":e=$(Y.Hours,2);break;case"m":e=$(Y.Minutes,1);break;case"mm":e=$(Y.Minutes,2);break;case"s":e=$(Y.Seconds,1);break;case"ss":e=$(Y.Seconds,2);break;case"S":e=$(Y.FractionalSeconds,1);break;case"SS":e=$(Y.FractionalSeconds,2);break;case"SSS":e=$(Y.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Z(B.Short);break;case"ZZZZZ":e=Z(B.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Z(B.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Z(B.Long);break;default:return null}return et[t]=e,e}(t);l+=e?e(r,i,o):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function X(t,e){const i=function(t){return Object(n.lb)(t)[n.cb.LocaleId]}(t);if(U[i]=U[i]||{},U[i][e])return U[i][e];let r="";switch(e){case"shortDate":r=P(t,E.Short);break;case"mediumDate":r=P(t,E.Medium);break;case"longDate":r=P(t,E.Long);break;case"fullDate":r=P(t,E.Full);break;case"shortTime":r=I(t,E.Short);break;case"mediumTime":r=I(t,E.Medium);break;case"longTime":r=I(t,E.Long);break;case"fullTime":r=I(t,E.Full);break;case"short":const e=X(t,"shortTime"),i=X(t,"shortDate");r=G(M(t,E.Short),[e,i]);break;case"medium":const n=X(t,"mediumTime"),s=X(t,"mediumDate");r=G(M(t,E.Medium),[n,s]);break;case"long":const a=X(t,"longTime"),o=X(t,"longDate");r=G(M(t,E.Long),[a,o]);break;case"full":const l=X(t,"fullTime"),c=X(t,"fullDate");r=G(M(t,E.Full),[l,c])}return r&&(U[i][e]=r),r}function G(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function q(t,e,i="-",n,r){let s="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,s=i));let a=String(t);for(;a.length<e;)a="0"+a;return n&&(a=a.substr(a.length-e)),s+a}function $(t,e,i=0,n=!1,r=!1){return function(s,a){let o=function(t,e){switch(t){case Y.FullYear:return e.getFullYear();case Y.Month:return e.getMonth();case Y.Date:return e.getDate();case Y.Hours:return e.getHours();case Y.Minutes:return e.getMinutes();case Y.Seconds:return e.getSeconds();case Y.FractionalSeconds:return e.getMilliseconds();case Y.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,s);if((i>0||o>-i)&&(o+=i),t===Y.Hours)0===o&&-12===i&&(o=12);else if(t===Y.FractionalSeconds)return l=e,q(o,3).substr(0,l);var l;const c=R(a,D.MinusSign);return q(o,e,c,n,r)}}function K(t,e,i=A.Format,r=!1){return function(s,a){return function(t,e,i,r,s,a){switch(i){case H.Months:return function(t,e,i){const r=Object(n.lb)(t),s=z([r[n.cb.MonthsFormat],r[n.cb.MonthsStandalone]],e);return z(s,i)}(e,s,r)[t.getMonth()];case H.Days:return function(t,e,i){const r=Object(n.lb)(t),s=z([r[n.cb.DaysFormat],r[n.cb.DaysStandalone]],e);return z(s,i)}(e,s,r)[t.getDay()];case H.DayPeriods:const o=t.getHours(),l=t.getMinutes();if(a){const t=function(t){const e=Object(n.lb)(t);return N(e),(e[n.cb.ExtraData][2]||[]).map(t=>"string"==typeof t?F(t):[F(t[0]),F(t[1])])}(e),i=function(t,e,i){const r=Object(n.lb)(t);N(r);const s=z([r[n.cb.ExtraData][0],r[n.cb.ExtraData][1]],e)||[];return z(s,i)||[]}(e,s,r),a=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=o>=e.hours&&l>=e.minutes,r=o<i.hours||o===i.hours&&l<i.minutes;if(e.hours<i.hours){if(n&&r)return!0}else if(n||r)return!0}else if(t.hours===o&&t.minutes===l)return!0;return!1});if(-1!==a)return i[a]}return function(t,e,i){const r=Object(n.lb)(t),s=z([r[n.cb.DayPeriodsFormat],r[n.cb.DayPeriodsStandalone]],e);return z(s,i)}(e,s,r)[o<12?0:1];case H.Eras:return function(t,e){return z(Object(n.lb)(t)[n.cb.Eras],e)}(e,r)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${i}`)}}(s,a,t,e,i,r)}}function Z(t){return function(e,i,n){const r=-1*n,s=R(i,D.MinusSign),a=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case B.Short:return(r>=0?"+":"")+q(a,2,s)+q(Math.abs(r%60),2,s);case B.ShortGMT:return"GMT"+(r>=0?"+":"")+q(a,1,s);case B.Long:return"GMT"+(r>=0?"+":"")+q(a,2,s)+":"+q(Math.abs(r%60),2,s);case B.Extended:return 0===n?"Z":(r>=0?"+":"")+q(a,2,s)+":"+q(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}function Q(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function J(t,e=!1){return function(i,n){let r;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();r=1+Math.floor((e+t)/7)}else{const t=Q(i),e=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();r=1+Math.round(n/6048e5)}return q(r,t,R(n,D.MinusSign))}}function tt(t,e=!1){return function(i,n){return q(Q(i).getFullYear(),t,R(n,D.MinusSign),e)}}const et={};function it(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function nt(t){return t instanceof Date&&!isNaN(t.valueOf())}class rt{}let st=(()=>{class t extends rt{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(L(e||this.locale)(t)){case T.Zero:return"zero";case T.One:return"one";case T.Two:return"two";case T.Few:return"few";case T.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(n.w))},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})();function at(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,r]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(r)}return null}let ot=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,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&&(Object(n.rb)(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 ${Object(n.xb)(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)(n.Ob(n.u),n.Ob(n.v),n.Ob(n.l),n.Ob(n.G))},t.\u0275dir=n.Jb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class lt{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 ct=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,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,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new lt(null,this._ngForOf,-1,-1),null===n?void 0:n),r=new ht(t,i);e.push(r)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const r=this._viewContainer.get(i);this._viewContainer.move(r,n);const s=new ht(t,r);e.push(s)}});for(let i=0;i<e.length;i++)this._perViewChange(e[i].view,e[i].record);for(let i=0,n=this._viewContainer.length;i<n;i++){const t=this._viewContainer.get(i);t.context.index=i,t.context.count=n,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)(n.Ob(n.R),n.Ob(n.N),n.Ob(n.u))},t.\u0275dir=n.Jb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ht{constructor(t,e){this.record=t,this.view=e}}let dt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new ut,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){pt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){pt("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)(n.Ob(n.R),n.Ob(n.N))},t.\u0275dir=n.Jb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class ut{constructor(){this.$implicit=null,this.ngIf=null}}function pt(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(n.xb)(e)}'.`)}class ft{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let gt=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Jb({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),mt=(()=>{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new ft(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.R),n.Ob(n.N),n.Ob(gt,1))},t.\u0275dir=n.Jb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),bt=(()=>{class t{constructor(t,e,i){i._addDefault(new ft(t,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.R),n.Ob(n.N),n.Ob(gt,1))},t.\u0275dir=n.Jb({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),vt=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,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[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_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)(n.Ob(n.l),n.Ob(n.v),n.Ob(n.G))},t.\u0275dir=n.Jb({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),yt=(()=>{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||{}),i=Object.keys(t.currentValue||{});if(e.length===i.length){for(let t of i)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)(n.Ob(n.R))},t.\u0275dir=n.Jb({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[n.Ab]}),t})();function _t(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(n.xb)(t)}'`)}class xt{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class wt{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Ct=new wt,kt=new xt;let St=(()=>{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(Object(n.tb)(e))return Ct;if(Object(n.ub)(e))return kt;throw _t(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)(n.ac())},t.\u0275pipe=n.Nb({name:"async",type:t,pure:!1}),t})(),Tt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw _t(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Nb({name:"uppercase",type:t,pure:!0}),t})(),At=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,r){if(null==e||""===e||e!=e)return null;try{return W(e,i,r||this.locale,n)}catch(s){throw _t(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(n.Ob(n.w))},t.\u0275pipe=n.Nb({name:"date",type:t,pure:!0}),t})(),Ot=(()=>{class t{transform(e,i,n){if(null==e)return null;if(!this.supports(e))throw _t(t,e);return e.slice(i,n)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Nb({name:"slice",type:t,pure:!1}),t})(),Et=(()=>{class t{}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)},providers:[{provide:rt,useClass:st}]}),t})();const Dt="browser";function Pt(t){return t===Dt}let It=(()=>{class t{}return t.\u0275prov=Object(n.Kb)({token:t,providedIn:"root",factory:()=>new Mt(Object(n.Yb)(l),window)}),t})();class Mt{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){var e;if(!this.supportsScrolling())return;const i=null!==(e=this.document.getElementById(t))&&void 0!==e?e:this.document.getElementsByName(t)[0];void 0!==i&&(this.scrollToElement(i),this.attemptFocus(i))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],n-r[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Rt(this.window.history)||Rt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Rt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},pLZG:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("7o/Q");function r(t,e){return function(i){return i.lift(new s(t,e))}}class s{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))}}class a extends n.a{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}},qFsG:function(t,e,i){"use strict";i.d(e,"a",function(){return x}),i.d(e,"b",function(){return T}),i.d(e,"c",function(){return A}),i.d(e,"d",function(){return y});var n=i("nLfN"),r=i("fXoL"),s=i("8LU1"),a=i("EY2u"),o=i("XNiG"),l=i("xgIS"),c=i("3UWI"),h=i("1G5W"),d=i("ofXK");const u=Object(n.f)({passive:!0});let p=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return a.a;const e=Object(s.e)(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new o.a,r="cdk-text-field-autofilled",l=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(r)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(r)&&(e.classList.remove(r),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(r),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",l,u),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",l,u)}}),n}stopMonitoring(t){const e=Object(s.e)(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(n.a),r.Yb(r.B))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(n.a),Object(r.Yb)(r.B))},token:t,providedIn:"root"}),t})(),f=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new o.a,this._enabled=!0,this._previousMinRows=-1,this._document=n,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=Object(s.f)(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=Object(s.f)(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=Object(s.c)(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();Object(l.a)(t,"resize").pipe(Object(c.a)(16),Object(h.a)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=e.placeholder;e.classList.add(this._measuringClass),e.placeholder="",e.style.height=e.scrollHeight-4+"px",e.classList.remove(this._measuringClass),e.placeholder=n,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.l),r.Ob(n.a),r.Ob(r.B),r.Ob(d.d,8))},t.\u0275dir=r.Jb({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&r.bc("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t})(),g=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)},imports:[[n.b]]}),t})();var m=i("FKr1"),b=i("kmnG"),v=i("3Pt+");let y=(()=>{class t extends f{get matAutosizeMinRows(){return this.minRows}set matAutosizeMinRows(t){this.minRows=t}get matAutosizeMaxRows(){return this.maxRows}set matAutosizeMaxRows(t){this.maxRows=t}get matAutosize(){return this.enabled}set matAutosize(t){this.enabled=t}get matTextareaAutosize(){return this.enabled}set matTextareaAutosize(t){this.enabled=t}}return t.\u0275fac=function(e){return _(e||t)},t.\u0275dir=r.Jb({type:t,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[r.zb]}),t})();const _=r.Wb(y),x=new r.s("MAT_INPUT_VALUE_ACCESSOR"),w=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let C=0;class k{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const S=Object(m.B)(k);let T=(()=>{class t extends S{constructor(t,e,i,r,s,a,l,c,h,d){super(a,r,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+C++,this.focused=!1,this.stateChanges=new o.a,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Object(n.e)().has(t));const u=this._elementRef.nativeElement,p=u.nodeName.toLowerCase();this._inputValueAccessor=l||u,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&h.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isNativeSelect&&(this.controlType=u.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Object(s.c)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=Object(s.c)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Object(n.e)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Object(s.c)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){w.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.l),r.Ob(n.a),r.Ob(v.l,10),r.Ob(v.o,8),r.Ob(v.g,8),r.Ob(m.d),r.Ob(x,10),r.Ob(p),r.Ob(r.B),r.Ob(b.a,8))},t.\u0275dir=r.Jb({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&r.bc("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(r.Xb("disabled",e.disabled)("required",e.required),r.Db("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),r.Gb("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[r.Bb([{provide:b.d,useExisting:t}]),r.zb,r.Ab]}),t})(),A=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)},providers:[m.d],imports:[[g,b.e,m.j],g,b.e]}),t})()},qmMu:function(t,e,i){var n=i("Wogr"),r=i("e/Dd"),s=i("ekOh"),a=i("e6BP"),o=i("V35J"),l=i("1sBl"),c=i("kk9/"),h=i("eQOe"),d=i("NPxG"),u=i("jSPq"),p=i("yKow"),f=i("lYJp"),g=i("u/Db"),m=i("vvrf"),b=i("49sm");function v(t,e,i){var n,r,s=t.size,a=f.getEncodedBits(e,i);for(n=0;n<15;n++)t.set(n<6?n:n<8?n+1:s-15+n,8,r=1==(a>>n&1),!0),t.set(8,n<8?s-n-1:n<9?15-n-1+1:15-n-1,r,!0);t.set(s-8,8,1,!0)}e.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");var i,f,y=s.M;return void 0!==e&&(y=s.from(e.errorCorrectionLevel,s.M),i=p.from(e.version),f=h.from(e.maskPattern),e.toSJISFunc&&r.setToSJISFunction(e.toSJISFunc)),function(t,e,i,s){var f;if(b(t))f=m.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");var y=e;if(!y){var _=m.rawSplit(t);y=p.getBestVersionForData(_,i)}f=m.fromString(t,y||40)}var x=p.getBestVersionForData(f,i);if(!x)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<x)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+x+".\n")}else e=x;var w=function(t,e,i){var s=new a;i.forEach(function(e){s.put(e.mode.bit,4),s.put(e.getLength(),g.getCharCountIndicator(e.mode,t)),e.write(s)});var o=8*(r.getSymbolTotalCodewords(t)-d.getTotalCodewordsCount(t,e));for(s.getLengthInBits()+4<=o&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(0);for(var l=(o-s.getLengthInBits())/8,c=0;c<l;c++)s.put(c%2?17:236,8);return function(t,e,i){for(var s=r.getSymbolTotalCodewords(e),a=s-d.getTotalCodewordsCount(e,i),o=d.getBlocksCount(e,i),l=o-s%o,c=Math.floor(s/o),h=Math.floor(a/o),p=h+1,f=c-h,g=new u(f),m=0,b=new Array(o),v=new Array(o),y=0,_=new n(t.buffer),x=0;x<o;x++){var w=x<l?h:p;b[x]=_.slice(m,m+w),v[x]=g.encode(b[x]),m+=w,y=Math.max(y,w)}var C,k,S=new n(s),T=0;for(C=0;C<y;C++)for(k=0;k<o;k++)C<b[k].length&&(S[T++]=b[k][C]);for(C=0;C<f;C++)for(k=0;k<o;k++)S[T++]=v[k][C];return S}(s,t,e)}(e,i,f),C=r.getSymbolSize(e),k=new o(C);return function(t,e){for(var i=t.size,n=c.getPositions(e),r=0;r<n.length;r++)for(var s=n[r][0],a=n[r][1],o=-1;o<=7;o++)if(!(s+o<=-1||i<=s+o))for(var l=-1;l<=7;l++)a+l<=-1||i<=a+l||t.set(s+o,a+l,o>=0&&o<=6&&(0===l||6===l)||l>=0&&l<=6&&(0===o||6===o)||o>=2&&o<=4&&l>=2&&l<=4,!0)}(k,e),function(t){for(var e=t.size,i=8;i<e-8;i++){var n=i%2==0;t.set(i,6,n,!0),t.set(6,i,n,!0)}}(k),function(t,e){for(var i=l.getPositions(e),n=0;n<i.length;n++)for(var r=i[n][0],s=i[n][1],a=-2;a<=2;a++)for(var o=-2;o<=2;o++)t.set(r+a,s+o,-2===a||2===a||-2===o||2===o||0===a&&0===o,!0)}(k,e),v(k,i,0),e>=7&&function(t,e){for(var i,n,r,s=t.size,a=p.getEncodedBits(e),o=0;o<18;o++)i=Math.floor(o/3),t.set(i,n=o%3+s-8-3,r=1==(a>>o&1),!0),t.set(n,i,r,!0)}(k,e),function(t,e){for(var i=t.size,n=-1,r=i-1,s=7,a=0,o=i-1;o>0;o-=2)for(6===o&&o--;;){for(var l=0;l<2;l++)if(!t.isReserved(r,o-l)){var c=!1;a<e.length&&(c=1==(e[a]>>>s&1)),t.set(r,o-l,c),-1==--s&&(a++,s=7)}if((r+=n)<0||i<=r){r-=n,n=-n;break}}}(k,w),isNaN(s)&&(s=h.getBestMask(k,v.bind(null,k,i))),h.applyMask(s,k),v(k,i,s),{modules:k,version:e,errorCorrectionLevel:i,maskPattern:s,segments:f}}(t,i,y,f)}},quSY:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i("DH7j"),r=i("XoHu"),s=i("n6bG");const a=(()=>{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 o=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_unsubscribe:o,_subscriptions:c}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;t<i.length;++t)i[t].remove(this);if(Object(s.a)(o))try{o.call(this)}catch(h){e=h instanceof a?l(h.errors):[h]}if(Object(n.a)(c)){let t=-1,i=c.length;for(;++t<i;){const i=c[t];if(Object(r.a)(i))try{i.unsubscribe()}catch(h){e=e||[],h instanceof a?e=e.concat(l(h.errors)):e.push(h)}}}if(e)throw new a(e)}add(e){let i=e;if(!e)return t.EMPTY;switch(typeof e){case"function":i=new t(e);case"object":if(i===this||i.closed||"function"!=typeof i.unsubscribe)return i;if(this.closed)return i.unsubscribe(),i;if(!(i instanceof t)){const e=i;i=new t,i._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:n}=i;if(null===n)i._parentOrParents=this;else if(n instanceof t){if(n===this)return i;i._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return i;n.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[i]:r.push(i),i}remove(t){const e=this._subscriptions;if(e){const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}}var e;return t.EMPTY=((e=new t).closed=!0,e),t})();function l(t){return t.reduce((t,e)=>t.concat(e instanceof a?e.errors:e),[])}},rDax:function(t,e,i){"use strict";i.d(e,"a",function(){return Z}),i.d(e,"b",function(){return K}),i.d(e,"c",function(){return G}),i.d(e,"d",function(){return A}),i.d(e,"e",function(){return R}),i.d(e,"f",function(){return J});var n=i("vxfF"),r=i("fXoL"),s=i("nLfN"),a=i("cH1L"),o=i("ofXK"),l=i("8LU1"),c=i("+rOU"),h=i("XNiG"),d=i("quSY"),u=i("VRyK"),p=i("IzEk"),f=i("1G5W"),g=i("7o/Q");class m{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new b(t,this.predicate,this.inclusive))}}class b extends g.a{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}var v=i("FtGj");const y=Object(s.g)();class _{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=Object(l.d)(-this._previousScrollPosition.left),t.style.top=Object(l.d)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",r=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),y&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),y&&(e.scrollBehavior=n,i.scrollBehavior=r)}}_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 x{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,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 w{enable(){}disable(){}attach(){}}function C(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function k(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class S{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,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:i}=this._viewportRuler.getViewportSize();C(t,[{width:e,height:i,bottom:i,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 T=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new w,this.close=t=>new x(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new _(this._viewportRuler,this._document),this.reposition=t=>new S(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(n.b),r.Yb(n.d),r.Yb(r.B),r.Yb(o.d))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(n.b),Object(r.Yb)(n.d),Object(r.Yb)(r.B),Object(r.Yb)(o.d))},token:t,providedIn:"root"}),t})();class A{constructor(t){if(this.scrollStrategy=new w,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class O{constructor(t,e,i,n,r){this.offsetX=i,this.offsetY=n,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class E{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let D=(()=>{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)(r.Yb(o.d))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(o.d))},token:t,providedIn:"root"}),t})(),P=(()=>{class t extends D{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._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)(r.Yb(o.d))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(o.d))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends D{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const r=i[n];if(!(r._outsidePointerEvents.observers.length<1)&&r.hasAttached()){if(r.overlayElement.contains(e))break;r._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)(r.Yb(o.d),r.Yb(s.a))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(o.d),Object(r.Yb)(s.a))},token:t,providedIn:"root"}),t})();const M=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let R=(()=>{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="cdk-overlay-container";if(this._platform.isBrowser||M){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const e=this._document.createElement("div");e.classList.add(t),M?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(o.d),r.Yb(s.a))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(o.d),Object(r.Yb)(s.a))},token:t,providedIn:"root"}),t})();class L{constructor(t,e,i,n,r,s,a,o,l){this._portalOutlet=t,this._host=e,this._pane=i,this._config=n,this._ngZone=r,this._keyboardDispatcher=s,this._document=a,this._location=o,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new h.a,this._attachments=new h.a,this._detachments=new h.a,this._locationChanges=d.a.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new h.a,this._outsidePointerEvents=new h.a,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.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(Object(p.a)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),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.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.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=Object(l.d)(this._config.width),t.height=Object(l.d)(this._config.height),t.minWidth=Object(l.d)(this._config.minWidth),t.minHeight=Object(l.d)(this._config.minHeight),t.maxWidth=Object(l.d)(this._config.maxWidth),t.maxHeight=Object(l.d)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"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 i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),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",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;Object(l.b)(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Object(f.a)(Object(u.a)(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 N="cdk-overlay-connected-position-bounding-box",z=/([A-Za-z%]+)$/;class F{constructor(t,e,i,n,r){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=r,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 h.a,this._resizeSubscription=d.a.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(N),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,i=this._viewportRect,n=[];let r;for(let s of this._preferredPositions){let a=this._getOriginPoint(t,s),o=this._getOverlayPoint(a,e,s),l=this._getOverlayFit(o,e,i,s);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,a);this._canFitWithFlexibleDimensions(l,o,i)?n.push({position:s,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,s)}):(!r||r.overlayFit.visibleArea<l.visibleArea)&&(r={overlayFit:l,overlayPoint:o,originPoint:a,position:s,overlayRect:e})}if(n.length){let t=null,e=-1;for(const i of n){const n=i.boundingBoxRect.width*i.boundingBoxRect.height*(i.position.weight||1);n>e&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&j(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(N),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 i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;i="start"==e.originX?n:r}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,r;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+r}}_getOverlayFit(t,e,i,n){const r=V(e);let{x:s,y:a}=t,o=this._getOffset(n,"x"),l=this._getOffset(n,"y");o&&(s+=o),l&&(a+=l);let c=0-a,h=a+r.height-i.height,d=this._subtractOverflows(r.width,0-s,s+r.width-i.width),u=this._subtractOverflows(r.height,c,h),p=d*u;return{visibleArea:p,isCompletelyWithinViewport:r.width*r.height===p,fitsInViewportVertically:u===r.height,fitsInViewportHorizontally:d==r.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,r=i.right-e.x,s=U(this._overlayRef.getConfig().minHeight),a=U(this._overlayRef.getConfig().minWidth),o=t.fitsInViewportHorizontally||null!=a&&a<=r;return(t.fitsInViewportVertically||null!=s&&s<=n)&&o}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=V(e),r=this._viewportRect,s=Math.max(t.x+n.width-r.width,0),a=Math.max(t.y+n.height-r.height,0),o=Math.max(r.top-i.top-t.y,0),l=Math.max(r.left-i.left-t.x,0);let c=0,h=0;return c=n.width<=r.width?l||-s:t.x<this._viewportMargin?r.left-i.left-t.x:0,h=n.height<=r.height?o||-a:t.y<this._viewportMargin?r.top-i.top-t.y:0,this._previousPushAmount={x:c,y:h},{x:t.x+c,y:t.y+h}}_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(),i=new E(t,e);this._positionChanges.next(i)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,n=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${i} ${n}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,n=this._isRtl();let r,s,a,o,l,c;if("top"===e.overlayY)s=t.y,r=i.height-s+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-t.y+2*this._viewportMargin,r=i.height-a+this._viewportMargin;else{const e=Math.min(i.bottom-t.y+i.top,t.y),n=this._lastBoundingBoxSize.height;r=2*e,s=t.y-e,r>n&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)c=i.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)l=t.x,o=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;o=2*e,l=t.x-e,o>n&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-n/2)}return{top:s,left:l,bottom:a,right:c,width:o,height:r}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;n.height=Object(l.d)(i.height),n.top=Object(l.d)(i.top),n.bottom=Object(l.d)(i.bottom),n.width=Object(l.d)(i.width),n.left=Object(l.d)(i.left),n.right=Object(l.d)(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=Object(l.d)(t)),r&&(n.maxWidth=Object(l.d)(r))}this._lastBoundingBoxSize=i,j(this._boundingBox.style,n)}_resetBoundingBoxStyles(){j(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){j(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();j(i,this._getExactOverlayY(e,t,n)),j(i,this._getExactOverlayX(e,t,n))}else i.position="static";let a="",o=this._getOffset(e,"x"),c=this._getOffset(e,"y");o&&(a+=`translateX(${o}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(n?i.maxHeight=Object(l.d)(s.maxHeight):r&&(i.maxHeight="")),s.maxWidth&&(n?i.maxWidth=Object(l.d)(s.maxWidth):r&&(i.maxWidth="")),j(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":n.top=Object(l.d)(r.y),n}_getExactOverlayX(t,e,i){let n,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Object(l.d)(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:k(t,i),isOriginOutsideView:C(t,i),isOverlayClipped:k(e,i),isOverlayOutsideView:C(e,i)}}_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,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.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&&Object(l.b)(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 r.l)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function j(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function U(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(z);return i&&"px"!==i?null:parseFloat(e)}return t||null}function V(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class B{constructor(t,e,i,n,r,s,a){this._preferredPositions=[],this._positionStrategy=new F(i,n,r,s,a).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,i,n){const r=new O(t,e,i,n);return this._preferredPositions.push(r),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 Y="cdk-global-overlay-wrapper";class H{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(Y),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,i=this._overlayRef.getConfig(),{width:n,height:r,maxWidth:s,maxHeight:a}=i,o=!("100%"!==n&&"100vw"!==n||s&&"100%"!==s&&"100vw"!==s),l=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=o?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,o?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,i=e.style;e.classList.remove(Y),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let W=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new H}connectedTo(t,e,i){return new B(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new F(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(n.d),r.Yb(o.d),r.Yb(s.a),r.Yb(R))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(n.d),Object(r.Yb)(o.d),Object(r.Yb)(s.a),Object(r.Yb)(R))},token:t,providedIn:"root"}),t})(),X=0,G=(()=>{class t{constructor(t,e,i,n,r,s,a,o,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=r,this._injector=s,this._ngZone=a,this._document=o,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),r=new A(t);return r.direction=r.direction||this._directionality.value,new L(n,e,i,r,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-"+X++,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(r.g)),new c.e(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(T),r.Yb(R),r.Yb(r.j),r.Yb(W),r.Yb(P),r.Yb(r.t),r.Yb(r.B),r.Yb(o.d),r.Yb(a.b),r.Yb(o.h),r.Yb(I))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})();const q=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],$=new r.s("cdk-connected-overlay-scroll-strategy");let K=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.l))},t.\u0275dir=r.Jb({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Z=(()=>{class t{constructor(t,e,i,n,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=d.a.EMPTY,this._attachSubscription=d.a.EMPTY,this._detachSubscription=d.a.EMPTY,this._positionSubscription=d.a.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new r.o,this.positionChange=new r.o,this.attach=new r.o,this.detach=new r.o,this.overlayKeydown=new r.o,this.overlayOutsideClick=new r.o,this._templatePortal=new c.g(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Object(l.c)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Object(l.c)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Object(l.c)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Object(l.c)(t)}get push(){return this._push}set push(t){this._push=Object(l.c)(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=q);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==v.g||this.disableClose||Object(v.s)(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new A({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return i=>i.lift(new m(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(G),r.Ob(r.N),r.Ob(r.R),r.Ob($),r.Ob(a.b,8))},t.\u0275dir=r.Jb({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[r.Ab]}),t})();const Q={provide:$,deps:[G],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let J=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)},providers:[G,Q],imports:[[a.a,c.f,n.c],n.c]}),t})()},rgks:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("MfXU"),r=i("jiyY"),s=i("fXoL");let a=(()=>{class t extends r.a{constructor(){super(...arguments),this.userRoles=[n.a.INHT]}}return t.\u0275fac=function(e){return o(e||t)},t.\u0275prov=s.Kb({token:t,factory:t.\u0275fac}),t})();const o=s.Wb(a)},"tk/3":function(t,e,i){"use strict";i.d(e,"a",function(){return O}),i.d(e,"b",function(){return T}),i.d(e,"c",function(){return V}),i.d(e,"d",function(){return u}),i.d(e,"e",function(){return g});var n=i("fXoL"),r=i("LRne"),s=i("HDdC"),a=i("bOdf"),o=i("pLZG"),l=i("lJxs"),c=i("ofXK");class h{}class d{}class u{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 i=t.slice(0,e),n=i.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(r):this.headers.set(n,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}: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 u?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 u;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof u?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 i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.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 p{encodeKey(t){return f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function f(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 g{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.split("&").forEach(t=>{const n=t.indexOf("="),[r,s]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],a=i.get(r)||[];a.push(s),i.set(r,a)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):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 g({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 i=e.indexOf(t.value);-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function m(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function b(t){return"undefined"!=typeof Blob&&t instanceof Blob}function v(t){return"undefined"!=typeof FormData&&t instanceof FormData}class y{constructor(t,e,i,n){let r;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)||n?(this.body=void 0!==i?i:null,r=n):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new u),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":i<e.length-1?"&":"")+t}}else this.params=new g,this.urlWithParams=e}serializeBody(){return null===this.body?null:m(this.body)||b(this.body)||v(this.body)||"string"==typeof this.body?this.body:this.body instanceof g?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||v(this.body)?null:b(this.body)?this.body.type||null:m(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof g?"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,i=t.url||this.url,n=t.responseType||this.responseType,r=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let o=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(o=Object.keys(t.setHeaders).reduce((e,i)=>e.set(i,t.setHeaders[i]),o)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),l)),new y(e,i,r,{params:l,headers:o,reportProgress:a,responseType:n,withCredentials:s})}}var _=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 x{constructor(t,e=200,i="OK"){this.headers=t.headers||new u,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class w extends x{constructor(t={}){super(t),this.type=_.ResponseHeader}clone(t={}){return new w({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})}}class C extends x{constructor(t={}){super(t),this.type=_.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new C({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})}}class k extends x{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function S(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let T=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof y)n=t;else{let r,s;r=i.headers instanceof u?i.headers:new u(i.headers),i.params&&(s=i.params instanceof g?i.params:new g({fromObject:i.params})),n=new y(t,e,void 0!==i.body?i.body:null,{headers:r,params:s,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=Object(r.a)(n).pipe(Object(a.a)(t=>this.handler.handle(t)));if(t instanceof y||"events"===i.observe)return s;const c=s.pipe(Object(o.a)(t=>t instanceof C));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return c.pipe(Object(l.a)(t=>t.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${i.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 g).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,S(i,e))}post(t,e,i={}){return this.request("POST",t,S(i,e))}put(t,e,i={}){return this.request("PUT",t,S(i,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(h))},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})();class A{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const O=new n.s("HTTP_INTERCEPTORS");let E=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})();const D=/^\)\]\}',?\n/;class P{}let I=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})(),M=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new s.a(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const e=1223===i.status?204:i.status,n=i.statusText||"OK",s=new u(i.getAllResponseHeaders()),a=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return r=new w({headers:s,status:e,statusText:n,url:a}),r},a=()=>{let{headers:n,status:r,statusText:a,url:o}=s(),l=null;204!==r&&(l=void 0===i.response?i.responseText:i.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(D,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new C({body:l,headers:n,status:r,statusText:a,url:o||void 0})),e.complete()):e.error(new k({error:l,headers:n,status:r,statusText:a,url:o||void 0}))},o=t=>{const{url:n}=s(),r=new k({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(r)};let l=!1;const c=n=>{l||(e.next(s()),l=!0);let r={type:_.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(r.total=n.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),e.next(r)},h=t=>{let i={type:_.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",a),i.addEventListener("error",o),t.reportProgress&&(i.addEventListener("progress",c),null!==n&&i.upload&&i.upload.addEventListener("progress",h)),i.send(n),e.next({type:_.Sent}),()=>{i.removeEventListener("error",o),i.removeEventListener("load",a),t.reportProgress&&(i.removeEventListener("progress",c),null!==n&&i.upload&&i.upload.removeEventListener("progress",h)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(P))},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})();const R=new n.s("XSRF_COOKIE_NAME"),L=new n.s("XSRF_HEADER_NAME");class N{}let z=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(c.A)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(c.d),n.Yb(n.D),n.Yb(R))},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(N),n.Yb(L))},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(O,[]);this.chain=t.reduceRight((t,e)=>new A(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Yb(d),n.Yb(n.t))},t.\u0275prov=n.Kb({token:t,factory:t.\u0275fac}),t})(),U=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:F,useClass:E}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:R,useValue:e.cookieName}:[],e.headerName?{provide:L,useValue:e.headerName}:[]]}}}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)},providers:[F,{provide:O,useExisting:F,multi:!0},{provide:N,useClass:z},{provide:R,useValue:"XSRF-TOKEN"},{provide:L,useValue:"X-XSRF-TOKEN"}]}),t})(),V=(()=>{class t{}return t.\u0275mod=n.Mb({type:t}),t.\u0275inj=n.Lb({factory:function(e){return new(e||t)},providers:[T,{provide:h,useClass:j},M,{provide:d,useExisting:M},I,{provide:P,useExisting:I}],imports:[[U.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},tyNb:function(t,e,i){"use strict";i.d(e,"a",function(){return Xt}),i.d(e,"b",function(){return kt}),i.d(e,"c",function(){return di}),i.d(e,"d",function(){return ui}),i.d(e,"e",function(){return gi}),i.d(e,"f",function(){return pi}),i.d(e,"g",function(){return Ti}),i.d(e,"h",function(){return mi}),i.d(e,"i",function(){return Ct});var n=i("ofXK"),r=i("fXoL"),s=i("Cfvw"),a=i("LRne"),o=i("2Vo4"),l=i("itXk"),c=i("HDdC");const h=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var d=i("GyhO"),u=i("NXyV"),p=i("EY2u"),f=i("XNiG"),g=i("lJxs"),m=i("eIep"),b=i("IzEk"),v=i("JX91"),y=i("Kqap"),_=i("pLZG"),x=i("JIr8"),w=i("bOdf"),C=i("7o/Q"),k=i("4I5i");function S(t){return function(e){return 0===t?Object(p.b)():e.lift(new T(t))}}class T{constructor(t){if(this.total=t,this.total<0)throw new k.a}call(t,e){return e.subscribe(new A(t,this.total))}}class A extends C.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length<i?e.push(t):e[n%i]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let r=0;r<i;r++){const r=e++%i;t.next(n[r])}}t.complete()}}function O(t=P){return e=>e.lift(new E(t))}class E{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new D(t,this.errorFactory))}}class D extends C.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function P(){return new h}function I(t=null){return e=>e.lift(new M(t))}class M{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new R(t,this.defaultValue))}}class R extends C.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var L=i("SpAZ");function N(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Object(_.a)((e,i)=>t(e,i,n)):L.a,Object(b.a)(1),i?I(e):O(()=>new h))}var z=i("5+tZ"),F=i("vkgz"),j=i("nYR2"),U=i("bHdf");class V{constructor(t,e){this.id=t,this.url=e}}class B extends V{constructor(t,e,i="imperative",n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Y extends V{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class H extends V{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class W extends V{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class X extends V{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class G extends V{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class q extends V{constructor(t,e,i,n,r){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class $ extends V{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class K extends V{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Z{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Q{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class J{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tt{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class et{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class it{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nt{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const rt="primary";class st{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function at(t){return new st(t)}function ot(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function lt(t,e,i){const n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.length<t.length))return null;const r={};for(let s=0;s<n.length;s++){const e=n[s],i=t[s];if(e.startsWith(":"))r[e.substring(1)]=i;else if(e!==i.path)return null}return{consumed:t.slice(0,n.length),posParams:r}}function ct(t,e){const i=t?Object.keys(t):void 0,n=e?Object.keys(e):void 0;if(!i||!n||i.length!=n.length)return!1;let r;for(let s=0;s<i.length;s++)if(r=i[s],!ht(t[r],e[r]))return!1;return!0}function ht(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const i=[...t].sort(),n=[...e].sort();return i.every((t,e)=>n[e]===t)}return t===e}function dt(t){return Array.prototype.concat.apply([],t)}function ut(t){return t.length>0?t[t.length-1]:null}function pt(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function ft(t){return Object(r.sb)(t)?t:Object(r.tb)(t)?Object(s.a)(Promise.resolve(t)):Object(a.a)(t)}function gt(t,e,i){return i?function(t,e){return ct(t,e)}(t.queryParams,e.queryParams)&&mt(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>ht(t[i],e[i]))}(t.queryParams,e.queryParams)&&bt(t.root,e.root)}function mt(t,e){if(!wt(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const i in e.children){if(!t.children[i])return!1;if(!mt(t.children[i],e.children[i]))return!1}return!0}function bt(t,e){return vt(t,e,e.segments)}function vt(t,e,i){if(t.segments.length>i.length)return!!wt(t.segments.slice(0,i.length),i)&&!e.hasChildren();if(t.segments.length===i.length){if(!wt(t.segments,i))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!bt(t.children[i],e.children[i]))return!1}return!0}{const n=i.slice(0,t.segments.length),r=i.slice(t.segments.length);return!!wt(t.segments,n)&&!!t.children.primary&&vt(t.children.primary,e,r)}}class yt{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=at(this.queryParams)),this._queryParamMap}toString(){return St.serialize(this)}}class _t{constructor(t,e){this.segments=t,this.children=e,this.parent=null,pt(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Tt(this)}}class xt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=at(this.parameters)),this._parameterMap}toString(){return Mt(this)}}function wt(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class Ct{}class kt{parse(t){const e=new Ft(t);return new yt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${At(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${Et(e)}=${Et(t)}`).join("&"):`${Et(e)}=${Et(i)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const St=new kt;function Tt(t){return t.segments.map(t=>Mt(t)).join("/")}function At(t,e){if(!t.hasChildren())return Tt(t);if(e){const e=t.children.primary?At(t.children.primary,!1):"",i=[];return pt(t.children,(t,e)=>{e!==rt&&i.push(`${e}:${At(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return pt(t.children,(t,n)=>{n===rt&&(i=i.concat(e(t,n)))}),pt(t.children,(t,n)=>{n!==rt&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>i===rt?[At(t.children.primary,!1)]:[`${i}:${At(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Tt(t)}/${e[0]}`:`${Tt(t)}/(${e.join("//")})`}}function Ot(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Et(t){return Ot(t).replace(/%3B/gi,";")}function Dt(t){return Ot(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pt(t){return decodeURIComponent(t)}function It(t){return Pt(t.replace(/\+/g,"%20"))}function Mt(t){return`${Dt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Dt(t)}=${Dt(e[t])}`).join("")}`;var e}const Rt=/^[^\/()?;=#]+/;function Lt(t){const e=t.match(Rt);return e?e[0]:""}const Nt=/^[^=?&#]+/,zt=/^[^?&#]+/;class Ft{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new _t([],{}):new _t([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new _t(t,e)),i}parseSegment(){const t=Lt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new xt(Pt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Lt(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=Lt(this.remaining);t&&(i=t,this.capture(i))}t[Pt(e)]=Pt(i)}parseQueryParam(t){const e=function(t){const e=t.match(Nt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(zt);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=It(e),r=It(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(r)}else t[n]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Lt(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let r;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=rt);const s=this.parseChildren();e[r]=1===Object.keys(s).length?s.primary:new _t([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class jt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Ut(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Ut(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Vt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Vt(t,this._root).map(t=>t.value)}}function Ut(t,e){if(t===e.value)return e;for(const i of e.children){const e=Ut(t,i);if(e)return e}return null}function Vt(t,e){if(t===e.value)return[e];for(const i of e.children){const n=Vt(t,i);if(n.length)return n.unshift(e),n}return[]}class Bt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Yt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Ht extends jt{constructor(t,e){super(t),this.snapshot=e,Kt(this,t)}toString(){return this.snapshot.toString()}}function Wt(t,e){const i=function(t,e){const i=new qt([],{},{},"",{},rt,e,null,t.root,-1,{});return new $t("",new Bt(i,[]))}(t,e),n=new o.a([new xt("",{})]),r=new o.a({}),s=new o.a({}),a=new o.a({}),l=new o.a(""),c=new Xt(n,r,a,l,s,rt,e,i.root);return c.snapshot=i.root,new Ht(new Bt(c,[]),i)}class Xt{constructor(t,e,i,n,r,s,a,o){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=r,this.outlet=s,this.component=a,this._futureSnapshot=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(g.a)(t=>at(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(g.a)(t=>at(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Gt(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class qt{constructor(t,e,i,n,r,s,a,o,l,c,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=r,this.outlet=s,this.component=a,this.routeConfig=o,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=at(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=at(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class $t extends jt{constructor(t,e){super(e),this.url=t,Kt(this,e)}toString(){return Zt(this._root)}}function Kt(t,e){e.value._routerState=t,e.children.forEach(e=>Kt(t,e))}function Zt(t){const e=t.children.length>0?` { ${t.children.map(Zt).join(", ")} } `:"";return`${t.value}${e}`}function Qt(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,ct(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),ct(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(!ct(t[i],e[i]))return!1;return!0}(e.url,i.url)||t.url.next(i.url),ct(e.data,i.data)||t.data.next(i.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Jt(t,e){var i,n;return ct(t.params,e.params)&&wt(i=t.url,n=e.url)&&i.every((t,e)=>ct(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Jt(t.parent,e.parent))}function te(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const r=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return te(t,e,n);return te(t,e)})}(t,e,i);return new Bt(n,r)}{const i=t.retrieve(e.value);if(i){const t=i.route;return ee(e,t),t}{const i=new Xt(new o.a((n=e.value).url),new o.a(n.params),new o.a(n.queryParams),new o.a(n.fragment),new o.a(n.data),n.outlet,n.component,n),r=e.children.map(e=>te(t,e));return new Bt(i,r)}}var n}function ee(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i<t.children.length;++i)ee(t.children[i],e.children[i])}function ie(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ne(t){return"object"==typeof t&&null!=t&&t.outlets}function re(t,e,i,n,r){let s={};return n&&pt(n,(t,e)=>{s[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new yt(i.root===t?e:se(i.root,t,e),s,r)}function se(t,e,i){const n={};return pt(t.children,(t,r)=>{n[r]=t===e?i:se(t,e,i)}),new _t(t.segments,n)}class ae{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&ie(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(ne);if(n&&n!==ut(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class oe{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function le(t,e,i){if(t||(t=new _t([],{})),0===t.segments.length&&t.hasChildren())return ce(t,e,i);const n=function(t,e,i){let n=0,r=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(n>=i.length)return s;const e=t.segments[r],a=i[n];if(ne(a))break;const o=`${a}`,l=n<i.length-1?i[n+1]:null;if(r>0&&void 0===o)break;if(o&&l&&"object"==typeof l&&void 0===l.outlets){if(!pe(o,l,e))return s;n+=2}else{if(!pe(o,{},e))return s;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){const e=new _t(t.segments.slice(0,n.pathIndex),{});return e.children.primary=new _t(t.segments.slice(n.pathIndex),t.children),ce(e,0,r)}return n.match&&0===r.length?new _t(t.segments,{}):n.match&&!t.hasChildren()?he(t,e,i):n.match?ce(t,0,r):he(t,e,i)}function ce(t,e,i){if(0===i.length)return new _t(t.segments,{});{const n=function(t){return ne(t[0])?t[0].outlets:{[rt]:t}}(i),r={};return pt(n,(i,n)=>{"string"==typeof i&&(i=[i]),null!==i&&(r[n]=le(t.children[n],e,i))}),pt(t.children,(t,e)=>{void 0===n[e]&&(r[e]=t)}),new _t(t.segments,r)}}function he(t,e,i){const n=t.segments.slice(0,e);let r=0;for(;r<i.length;){const s=i[r];if(ne(s)){const t=de(s.outlets);return new _t(n,t)}if(0===r&&ie(i[0])){n.push(new xt(t.segments[e].path,ue(i[0]))),r++;continue}const a=ne(s)?s.outlets.primary:`${s}`,o=r<i.length-1?i[r+1]:null;a&&o&&ie(o)?(n.push(new xt(a,ue(o))),r+=2):(n.push(new xt(a,{})),r++)}return new _t(n,{})}function de(t){const e={};return pt(t,(t,i)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=he(new _t([],{}),0,t))}),e}function ue(t){const e={};return pt(t,(t,i)=>e[i]=`${t}`),e}function pe(t,e,i){return t==i.path&&ct(e,i.parameters)}class fe{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Qt(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=Yt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),pt(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,r=e?e.value:null;if(n===r)if(n.component){const r=i.getContext(n.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,r=Yt(t);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}activateChildRoutes(t,e,i){const n=Yt(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new it(t.value.snapshot))}),t.children.length&&this.forwardEvent(new tt(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,r=e?e.value:null;if(Qt(n),n===r)if(n.component){const r=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),ge(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),r=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=r,e.outlet&&e.outlet.activateWith(n,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function ge(t){Qt(t.value),t.children.forEach(ge)}class me{constructor(t,e){this.routes=t,this.module=e}}function be(t){return"function"==typeof t}function ve(t){return t instanceof yt}const ye=Symbol("INITIAL_VALUE");function _e(){return Object(m.a)(t=>Object(l.b)(t.map(t=>t.pipe(Object(b.a)(1),Object(v.a)(ye)))).pipe(Object(y.a)((t,e)=>{let i=!1;return e.reduce((t,n,r)=>{if(t!==ye)return t;if(n===ye&&(i=!0),!i){if(!1===n)return n;if(r===e.length-1||ve(n))return n}return t},t)},ye),Object(_.a)(t=>t!==ye),Object(g.a)(t=>ve(t)?t:!0===t),Object(b.a)(1)))}let xe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Ib({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&r.Pb(0,"router-outlet")},directives:function(){return[mi]},encapsulation:2}),t})();function we(t,e=""){for(let i=0;i<t.length;i++){const n=t[i];Ce(n,ke(e,n))}}function Ce(t,e){t.children&&we(t.children,e)}function ke(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Se(t){const e=t.children&&t.children.map(Se),i=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!i.component&&(e||i.loadChildren)&&i.outlet&&i.outlet!==rt&&(i.component=xe),i}function Te(t){return t.outlet||rt}function Ae(t,e){const i=t.filter(t=>Te(t)===e);return i.push(...t.filter(t=>Te(t)!==e)),i}const Oe={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ee(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},Oe):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(e.matcher||lt)(i,t,e);if(!r)return Object.assign({},Oe);const s={};pt(r.posParams,(t,e)=>{s[e]=t.path});const a=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(n=r.posParams)&&void 0!==n?n:{}}}function De(t,e,i,n,r="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>Pe(t,e,i)&&Te(i)!==rt)}(t,i,n)){const r=new _t(e,function(t,e,i,n){const r={};r.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const s of i)if(""===s.path&&Te(s)!==rt){const i=new _t([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,r[Te(s)]=i}return r}(t,e,n,new _t(i,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>Pe(t,e,i))}(t,i,n)){const s=new _t(t.segments,function(t,e,i,n,r,s){const a={};for(const o of n)if(Pe(t,i,o)&&!r[Te(o)]){const i=new _t([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===s?t.segments.length:e.length,a[Te(o)]=i}return Object.assign(Object.assign({},r),a)}(t,e,i,n,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:i}}const s=new _t(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:i}}function Pe(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Ie(t,e,i,n){return!!(Te(t)===n||n!==rt&&Pe(e,i,t))&&("**"===t.path||Ee(e,t,i).matched)}function Me(t,e,i){return 0===e.length&&!t.children[i]}class Re{constructor(t){this.segmentGroup=t||null}}class Le{constructor(t){this.urlTree=t}}function Ne(t){return new c.a(e=>e.error(new Re(t)))}function ze(t){return new c.a(e=>e.error(new Le(t)))}function Fe(t){return new c.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class je{constructor(t,e,i,n,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(r.z)}apply(){const t=De(this.urlTree.root,[],[],this.config).segmentGroup,e=new _t(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,rt).pipe(Object(g.a)(t=>this.createUrlTree(Ue(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(x.a)(t=>{if(t instanceof Le)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Re)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,rt).pipe(Object(g.a)(e=>this.createUrlTree(Ue(e),t.queryParams,t.fragment))).pipe(Object(x.a)(t=>{if(t instanceof Re)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new _t([],{[rt]:t}):t;return new yt(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(Object(g.a)(t=>new _t([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const r of Object.keys(i.children))"primary"===r?n.unshift(r):n.push(r);return Object(s.a)(n).pipe(Object(w.a)(n=>{const r=i.children[n],s=Ae(e,n);return this.expandSegmentGroup(t,s,r,n).pipe(Object(g.a)(t=>({segment:t,outlet:n})))}),Object(y.a)((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Object(_.a)((e,i)=>t(e,i,n)):L.a,S(1),i?I(e):O(()=>new h))}())}expandSegment(t,e,i,n,r,o){return Object(s.a)(i).pipe(Object(w.a)(s=>this.expandSegmentAgainstRoute(t,e,i,s,n,r,o).pipe(Object(x.a)(t=>{if(t instanceof Re)return Object(a.a)(null);throw t}))),N(t=>!!t),Object(x.a)((t,i)=>{if(t instanceof h||"EmptyError"===t.name){if(Me(e,n,r))return Object(a.a)(new _t([],{}));throw new Re(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,r,s,a){return Ie(n,e,r,s)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,r,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,r,s):Ne(e):Ne(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,r,s){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?ze(r):this.lineralizeSegments(i,r).pipe(Object(z.a)(i=>{const r=new _t(i,{});return this.expandSegment(t,r,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,r,s){const{matched:a,consumedSegments:o,lastChild:l,positionalParamSegments:c}=Ee(e,n,r);if(!a)return Ne(e);const h=this.applyRedirectCommands(o,n.redirectTo,c);return n.redirectTo.startsWith("/")?ze(h):this.lineralizeSegments(n,h).pipe(Object(z.a)(n=>this.expandSegment(t,e,i,n.concat(r.slice(l)),s,!1)))}matchSegmentAgainstRoute(t,e,i,n,r){if("**"===i.path)return i.loadChildren?this.configLoader.load(t.injector,i).pipe(Object(g.a)(t=>(i._loadedConfig=t,new _t(n,{})))):Object(a.a)(new _t(n,{}));const{matched:s,consumedSegments:o,lastChild:l}=Ee(e,i,n);if(!s)return Ne(e);const c=n.slice(l);return this.getChildConfig(t,i,n).pipe(Object(z.a)(t=>{const n=t.module,s=t.routes,{segmentGroup:l,slicedSegments:h}=De(e,o,c,s),d=new _t(l.segments,l.children);if(0===h.length&&d.hasChildren())return this.expandChildren(n,s,d).pipe(Object(g.a)(t=>new _t(o,t)));if(0===s.length&&0===h.length)return Object(a.a)(new _t(o,{}));const u=Te(i)===r;return this.expandSegment(n,d,s,h,u?rt:r,!0).pipe(Object(g.a)(t=>new _t(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Object(a.a)(new me(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(a.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(Object(z.a)(i=>i?this.configLoader.load(t.injector,e).pipe(Object(g.a)(t=>(e._loadedConfig=t,t))):function(t){return new c.a(e=>e.error(ot(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(a.a)(new me([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;if(!n||0===n.length)return Object(a.a)(!0);const r=n.map(n=>{const r=t.get(n);let s;if(function(t){return t&&be(t.canLoad)}(r))s=r.canLoad(e,i);else{if(!be(r))throw new Error("Invalid CanLoad guard");s=r(e,i)}return ft(s)});return Object(a.a)(r).pipe(_e(),Object(F.a)(t=>{if(!ve(t))return;const e=ot(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),Object(g.a)(t=>!0===t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Object(a.a)(i);if(n.numberOfChildren>1||!n.children.primary)return Fe(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const r=this.createSegmentGroup(t,e.root,i,n);return new yt(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return pt(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);i[n]=e[r]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const r=this.createSegments(t,e.segments,i,n);let s={};return pt(e.children,(e,r)=>{s[r]=this.createSegmentGroup(t,e,i,n)}),new _t(r,s)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function Ue(t){const e={};for(const i of Object.keys(t.children)){const n=Ue(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new _t(t.segments.concat(e.segments),e.children)}return t}(new _t(t.segments,e))}class Ve{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Be{constructor(t,e){this.component=t,this.route=e}}function Ye(t,e,i){const n=t._root;return We(n,e?e._root:null,i,[n.value])}function He(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function We(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Yt(e);return t.children.forEach(t=>{!function(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,a=e?e.value:null,o=i?i.getContext(t.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){const l=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!wt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!wt(t.url,e.url)||!ct(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Jt(t,e)||!ct(t.queryParams,e.queryParams);case"paramsChange":default:return!Jt(t,e)}}(a,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Ve(n)):(s.data=a.data,s._resolvedData=a._resolvedData),We(t,e,s.component?o?o.children:null:i,n,r),l&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new Be(o.outlet.component,a))}else a&&Xe(e,o,r),r.canActivateChecks.push(new Ve(n)),We(t,null,s.component?o?o.children:null:i,n,r)}(t,s[t.value.outlet],i,n.concat([t.value]),r),delete s[t.value.outlet]}),pt(s,(t,e)=>Xe(t,i.getContext(e),r)),r}function Xe(t,e,i){const n=Yt(t),r=t.value;pt(n,(t,n)=>{Xe(t,r.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Be(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}class Ge{}function qe(t){return new c.a(e=>e.error(t))}class $e{constructor(t,e,i,n,r,s){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){const t=De(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,rt);if(null===e)return null;const i=new qt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},rt,this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Bt(i,e),r=new $t(this.url,n);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,i=Gt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const r of Object.keys(e.children)){const n=e.children[r],s=Ae(t,r),a=this.processSegmentGroup(s,n,r);if(null===a)return null;i.push(...a)}const n=function(t){const e=[];for(const i of t){if(!Ke(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?t.children.push(...i.children):e.push(i)}return e}(i);return n.sort((t,e)=>t.value.outlet===rt?-1:e.value.outlet===rt?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const r of t){const t=this.processSegmentAgainstRoute(r,e,i,n);if(null!==t)return t}return Me(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!Ie(t,e,i,n))return null;let r,s=[],a=[];if("**"===t.path){const n=i.length>0?ut(i).parameters:{};r=new qt(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Je(t),Te(t),t.component,t,Ze(e),Qe(e)+i.length,ti(t))}else{const n=Ee(e,t,i);if(!n.matched)return null;s=n.consumedSegments,a=i.slice(n.lastChild),r=new qt(s,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Je(t),Te(t),t.component,t,Ze(e),Qe(e)+s.length,ti(t))}const o=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=De(e,s,a,o.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(o,l);return null===t?null:[new Bt(r,t)]}if(0===o.length&&0===c.length)return[new Bt(r,[])];const h=Te(t)===n,d=this.processSegment(o,l,c,h?rt:n);return null===d?null:[new Bt(r,d)]}}function Ke(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Ze(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Qe(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function Je(t){return t.data||{}}function ti(t){return t.resolve||{}}function ei(t){return Object(m.a)(e=>{const i=t(e);return i?Object(s.a)(i).pipe(Object(g.a)(()=>e)):Object(a.a)(e)})}class ii extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const ni=new r.s("ROUTES");class ri{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(g.a)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new me(dt(n.injector.get(ni,void 0,r.r.Self|r.r.Optional)).map(Se),n)}))}loadModuleFactory(t){return"string"==typeof t?Object(s.a)(this.loader.load(t)):ft(t()).pipe(Object(z.a)(t=>t instanceof r.x?Object(a.a)(t):Object(s.a)(this.compiler.compileModuleAsync(t))))}}class si{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ai,this.attachRef=null}}class ai{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new si,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class oi{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function li(t){throw t}function ci(t,e,i){return e.parse("/")}function hi(t,e){return Object(a.a)(null)}let di=(()=>{class t{constructor(t,e,i,n,s,a,l,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new f.a,this.errorHandler=li,this.malformedUriErrorHandler=ci,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:hi,afterPreactivation:hi},this.urlHandlingStrategy=new oi,this.routeReuseStrategy=new ii,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(r.z),this.console=s.get(r.ab);const h=s.get(r.B);this.isNgZoneEnabled=h instanceof r.B&&r.B.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new yt(new _t([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ri(a,l,t=>this.triggerEvent(new Z(t)),t=>this.triggerEvent(new Q(t))),this.routerState=Wt(this.currentUrlTree,this.rootComponentType),this.transitions=new o.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Object(_.a)(t=>0!==t.id),Object(g.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(m.a)(t=>{let i=!1,n=!1;return Object(a.a)(t).pipe(Object(F.a)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(m.a)(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(a.a)(t).pipe(Object(m.a)(t=>{const i=this.transitions.getValue();return e.next(new B(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?p.a:Promise.resolve(t)}),(n=this.ngModule.injector,r=this.configLoader,s=this.urlSerializer,o=this.config,Object(m.a)(t=>function(t,e,i,n,r){return new je(t,e,i,n,r).apply()}(n,r,s,t.extractedUrl,o).pipe(Object(g.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),Object(F.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,r){return Object(z.a)(s=>function(t,e,i,n,r="emptyOnly",s="legacy"){try{const o=new $e(t,e,i,n,r,s).recognize();return null===o?qe(new Ge):Object(a.a)(o)}catch(o){return qe(o)}}(t,e,s.urlAfterRedirects,i(s.urlAfterRedirects),n,r).pipe(Object(g.a)(t=>Object.assign(Object.assign({},s),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(F.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects);const i=new X(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,r,s,o;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:r,restoredState:s,extras:o}=t,l=new B(i,this.serializeUrl(n),r,s);e.next(l);const c=Wt(n,this.rootComponentType).snapshot;return Object(a.a)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.a}),ei(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:a}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!a})}),Object(F.a)(t=>{const e=new G(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(g.a)(t=>Object.assign(Object.assign({},t),{guards:Ye(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return Object(z.a)(i=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:l}}=i;return 0===l.length&&0===o.length?Object(a.a)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return Object(s.a)(t).pipe(Object(z.a)(t=>function(t,e,i,n,r){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||0===s.length)return Object(a.a)(!0);const o=s.map(s=>{const a=He(s,e,r);let o;if(function(t){return t&&be(t.canDeactivate)}(a))o=ft(a.canDeactivate(t,e,i,n));else{if(!be(a))throw new Error("Invalid CanDeactivate guard");o=ft(a(t,e,i,n))}return o.pipe(N())});return Object(a.a)(o).pipe(_e())}(t.component,t.route,i,e,n)),N(t=>!0!==t,!0))}(l,n,r,t).pipe(Object(z.a)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return Object(s.a)(e).pipe(Object(w.a)(e=>Object(d.a)(function(t,e){return null!==t&&e&&e(new J(t)),Object(a.a)(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new et(t)),Object(a.a)(!0)}(e.route,n),function(t,e,i){const n=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Object(u.a)(()=>{const r=e.guards.map(r=>{const s=He(r,e.node,i);let a;if(function(t){return t&&be(t.canActivateChild)}(s))a=ft(s.canActivateChild(n,t));else{if(!be(s))throw new Error("Invalid CanActivateChild guard");a=ft(s(n,t))}return a.pipe(N())});return Object(a.a)(r).pipe(_e())}));return Object(a.a)(r).pipe(_e())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return Object(a.a)(!0);const r=n.map(n=>Object(u.a)(()=>{const r=He(n,e,i);let s;if(function(t){return t&&be(t.canActivate)}(r))s=ft(r.canActivate(e,t));else{if(!be(r))throw new Error("Invalid CanActivate guard");s=ft(r(e,t))}return s.pipe(N())}));return Object(a.a)(r).pipe(_e())}(t,e.route,i))),N(t=>!0!==t,!0))}(n,o,t,e):Object(a.a)(i)),Object(g.a)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(F.a)(t=>{if(ve(t.guardsResult)){const e=ot(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(_.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const i=new H(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(i),t.resolve(!1),!1}return!0}),ei(t=>{if(t.guards.canActivateChecks.length)return Object(a.a)(t).pipe(Object(F.a)(t=>{const e=new $(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(m.a)(t=>{let i=!1;return Object(a.a)(t).pipe((n=this.paramsInheritanceStrategy,r=this.ngModule.injector,Object(z.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:i}}=t;if(!i.length)return Object(a.a)(t);let o=0;return Object(s.a)(i).pipe(Object(w.a)(t=>function(t,e,i,n){return function(t,e,i,n){const r=Object.keys(t);if(0===r.length)return Object(a.a)({});const o={};return Object(s.a)(r).pipe(Object(z.a)(r=>function(t,e,i,n){const r=He(t,e,n);return ft(r.resolve?r.resolve(e,i):r(e,i))}(t[r],e,i,n).pipe(Object(F.a)(t=>{o[r]=t}))),S(1),Object(z.a)(()=>Object.keys(o).length===r.length?Object(a.a)(o):p.a))}(t._resolve,t,e,n).pipe(Object(g.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Gt(t,i).resolve),null)))}(t.route,e,n,r)),Object(F.a)(()=>o++),S(1),Object(z.a)(e=>o===i.length?Object(a.a)(t):p.a))})),Object(F.a)({next:()=>i=!0,complete:()=>{if(!i){const i=new H(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(i),t.resolve(!1)}}}));var n,r}),Object(F.a)(t=>{const e=new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),ei(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:a}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!a})}),Object(g.a)(t=>{const e=function(t,e,i){const n=te(t,e._root,i?i._root:void 0);return new Ht(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(F.a)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(r=this.rootContexts,o=this.routeReuseStrategy,l=t=>this.triggerEvent(t),Object(g.a)(t=>(new fe(o,t.targetRouterState,t.currentRouterState,l).activate(r),t))),Object(F.a)({next(){i=!0},complete(){i=!0}}),Object(j.a)(()=>{if(!i&&!n){this.resetUrlToCurrentUrlTree();const i=new H(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(i),t.resolve(!1)}this.currentNavigation=null}),Object(x.a)(i=>{if(n=!0,(r=i)&&r.ngNavigationCancelingError){const n=ve(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new H(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(r),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new W(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(s){t.reject(s)}}var r;return p.a}));var r,o,l}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,r={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(n,t,i,r)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){we(t),this.config=t.map(Se),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:i,queryParams:n,fragment:r,queryParamsHandling:s,preserveFragment:a}=e,o=i||this.routerState.root,l=a?this.currentUrlTree.fragment:r;let c=null;switch(s){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=n||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,i,n,r){if(0===i.length)return re(e.root,e.root,e,n,r);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ae(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,r)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return pt(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===r?(n.split("/").forEach((n,r)=>{0==r&&"."===n||(0==r&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new ae(i,e,n)}(i);if(s.toRoot())return re(e.root,new _t([],{}),e,n,r);const a=function(t,e,i){if(t.isAbsolute)return new oe(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new oe(t,t===e.root,0)}const n=ie(t.commands[0])?0:1;return function(t,e,i){let n=t,r=e,s=i;for(;s>r;){if(s-=r,n=n.parent,!n)throw new Error("Invalid number of '../'");r=n.segments.length}return new oe(n,!1,r-s)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(s,e,t),o=a.processChildren?ce(a.segmentGroup,a.index,s.commands):le(a.segmentGroup,a.index,s.commands);return re(a.segmentGroup,o,e,n,r)}(o,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const i=ve(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const i=t[e];if(null==i)throw new Error(`The requested path contains ${i} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(i){e=this.malformedUriErrorHandler(i,this.urlSerializer,t)}return e}isActive(t,e){if(ve(t))return gt(this.currentUrlTree,t,e);const i=this.parseUrl(t);return gt(this.currentUrlTree,i,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,i)=>{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,r){const s=this.getTransition(),a="imperative"!==e&&"imperative"===(null==s?void 0:s.source),o=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===t.toString();if(a&&o)return Promise.resolve(!0);let l,c,h;r?(l=r.resolve,c=r.reject,h=r.promise):h=new Promise((t,e)=>{l=t,c=e});const d=++this.navigationId;return this.setTransition({id:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:l,reject:c,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,i,n){const r=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},n),{navigationId:i})):this.location.go(r,"",Object.assign(Object.assign({},n),{navigationId:i}))}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(r.P),r.Yb(Ct),r.Yb(ai),r.Yb(n.h),r.Yb(r.t),r.Yb(r.y),r.Yb(r.i),r.Yb(void 0))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})(),ui=(()=>{class t{constructor(t,e,i,n,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new f.a,null==i&&n.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:fi(this.skipLocationChange),replaceUrl:fi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:fi(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(di),r.Ob(Xt),r.Zb("tabindex"),r.Ob(r.G),r.Ob(r.l))},t.\u0275dir=r.Jb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&r.bc("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.Ab]}),t})(),pi=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new f.a,this.subscription=t.events.subscribe(t=>{t instanceof Y&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,r){if(0!==t||e||i||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:fi(this.skipLocationChange),replaceUrl:fi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:fi(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(di),r.Ob(Xt),r.Ob(n.i))},t.\u0275dir=r.Jb({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.bc("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(r.Xb("href",e.href,r.yc),r.Db("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.Ab]}),t})();function fi(t){return""===t||!!t}let gi=(()=>{class t{constructor(t,e,i,n,r,s){this.router=t,this.element=e,this.renderer=i,this.cdr=n,this.link=r,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof Y&&this.update()})}ngAfterContentInit(){Object(a.a)(this.links.changes,this.linksWithHrefs.changes,Object(a.a)(null)).pipe(Object(U.a)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=Object(s.a)(e).pipe(Object(U.a)()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(di),r.Ob(r.l),r.Ob(r.G),r.Ob(r.h),r.Ob(ui,8),r.Ob(pi,8))},t.\u0275dir=r.Jb({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){if(1&t&&(r.Hb(i,ui,1),r.Hb(i,pi,1)),2&t){let t;r.sc(t=r.cc())&&(e.links=t),r.sc(t=r.cc())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[r.Ab]}),t})(),mi=(()=>{class t{constructor(t,e,i,n,s){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.o,this.deactivateEvents=new r.o,this.name=n||rt,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,r=new bi(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(ai),r.Ob(r.R),r.Ob(r.j),r.Zb("name"),r.Ob(r.h))},t.\u0275dir=r.Jb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class bi{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Xt?this.route:t===ai?this.childContexts:this.parent.get(t,e)}}class vi{}class yi{preload(t,e){return Object(a.a)(null)}}let _i=(()=>{class t{constructor(t,e,i,n,r){this.router=t,this.injector=n,this.preloadingStrategy=r,this.loader=new ri(e,i,e=>t.triggerEvent(new Z(e)),e=>t.triggerEvent(new Q(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(_.a)(t=>t instanceof Y),Object(w.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(r.z);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return Object(s.a)(i).pipe(Object(U.a)(),Object(g.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(z.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(di),r.Yb(r.y),r.Yb(r.i),r.Yb(r.t),r.Yb(vi))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})(),xi=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof B?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Y&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof nt&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new nt(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(di),r.Yb(n.v),r.Yb(void 0))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})();const wi=new r.s("ROUTER_CONFIGURATION"),Ci=new r.s("ROUTER_FORROOT_GUARD"),ki=[n.h,{provide:Ct,useClass:kt},{provide:di,useFactory:function(t,e,i,r,s,a,o,l={},c,h){const d=new di(null,t,e,i,r,s,a,dt(o));if(c&&(d.urlHandlingStrategy=c),h&&(d.routeReuseStrategy=h),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(l,d),l.enableTracing){const t=Object(n.z)();d.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return d},deps:[Ct,ai,n.h,r.t,r.y,r.i,ni,wi,[class{},new r.C],[class{},new r.C]]},ai,{provide:Xt,useFactory:function(t){return t.routerState.root},deps:[di]},{provide:r.y,useClass:r.M},_i,yi,class{preload(t,e){return e().pipe(Object(x.a)(()=>Object(a.a)(null)))}},{provide:wi,useValue:{enableTracing:!1}}];function Si(){return new r.A("Router",di)}let Ti=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[ki,Di(e),{provide:Ci,useFactory:Ei,deps:[[di,new r.C,new r.L]]},{provide:wi,useValue:i||{}},{provide:n.i,useFactory:Oi,deps:[n.s,[new r.q(n.a),new r.C],wi]},{provide:xi,useFactory:Ai,deps:[di,n.v,wi]},{provide:vi,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:yi},{provide:r.A,multi:!0,useFactory:Si},[Pi,{provide:r.d,multi:!0,useFactory:Ii,deps:[Pi]},{provide:Ri,useFactory:Mi,deps:[Pi]},{provide:r.b,multi:!0,useExisting:Ri}]]}}static forChild(e){return{ngModule:t,providers:[Di(e)]}}}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)(r.Yb(Ci,8),r.Yb(di,8))}}),t})();function Ai(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new xi(t,e,i)}function Oi(t,e,i={}){return i.useHash?new n.f(t,e):new n.r(t,e)}function Ei(t){return"guarded"}function Di(t){return[{provide:r.a,multi:!0,useValue:t},{provide:ni,multi:!0,useValue:t}]}let Pi=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new f.a}appInitializer(){return this.injector.get(n.g,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(di),n=this.injector.get(wi);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?Object(a.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(wi),i=this.injector.get(_i),n=this.injector.get(xi),s=this.injector.get(di),a=this.injector.get(r.g);t===a.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),i.setUpPreloading(),n.init(),s.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(r.t))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})();function Ii(t){return t.appInitializer.bind(t)}function Mi(t){return t.bootstrapListener.bind(t)}const Ri=new r.s("Router Initializer")},"u/Db":function(t,e,i){var n=i("J6Nv"),r=i("BCVQ");e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!n.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return r.testNumeric(t)?e.NUMERIC:r.testAlphanumeric(t)?e.ALPHANUMERIC:r.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,i){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(n){return i}}},u47x:function(t,e,i){"use strict";i.d(e,"a",function(){return $}),i.d(e,"b",function(){return A}),i.d(e,"c",function(){return C}),i.d(e,"d",function(){return F}),i.d(e,"e",function(){return H}),i.d(e,"f",function(){return R}),i.d(e,"g",function(){return O}),i.d(e,"h",function(){return B}),i.d(e,"i",function(){return M}),i.d(e,"j",function(){return q}),i.d(e,"k",function(){return z}),i.d(e,"l",function(){return j});var n=i("ofXK"),r=i("fXoL"),s=i("XNiG"),a=i("quSY"),o=i("LRne"),l=i("FtGj"),c=i("vkgz"),h=i("Kj3r"),d=i("pLZG"),u=i("lJxs"),p=i("IzEk"),f=i("8LU1"),g=i("nLfN"),m=i("GU7r");function b(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const v="cdk-describedby-message-container",y="cdk-describedby-host";let _=0;const x=new Map;let w=null,C=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=k(e,i);"string"!=typeof e?(S(e),x.set(n,{messageElement:e,referenceCount:0})):x.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=k(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=x.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}w&&0===w.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(y);w&&this._deleteMessagesContainer(),x.clear()}_createMessageElement(t,e){const i=this._document.createElement("div");S(i),i.textContent=t,e&&i.setAttribute("role",e),this._createMessagesContainer(),w.appendChild(i),x.set(k(t,e),{messageElement:i,referenceCount:0})}_deleteMessageElement(t){const e=x.get(t),i=e&&e.messageElement;w&&i&&w.removeChild(i),x.delete(t)}_createMessagesContainer(){if(!w){const t=this._document.getElementById(v);t&&t.parentNode&&t.parentNode.removeChild(t),w=this._document.createElement("div"),w.id=v,w.style.visibility="hidden",w.classList.add("cdk-visually-hidden"),this._document.body.appendChild(w)}}_deleteMessagesContainer(){w&&w.parentNode&&(w.parentNode.removeChild(w),w=null)}_removeCdkDescribedByReferenceIds(t){const e=b(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=x.get(e);!function(t,e,i){const n=b(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute(y,""),i.referenceCount++}_removeMessageReference(t,e){const i=x.get(e);i.referenceCount--,function(t,e,i){const n=b(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute(y)}_isElementDescribedByMessage(t,e){const i=b(t,"aria-describedby"),n=x.get(e),r=n&&n.messageElement.id;return!!r&&-1!=i.indexOf(r)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(n.d))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(n.d))},token:t,providedIn:"root"}),t})();function k(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function S(t){t.id||(t.id="cdk-describedby-message-"+_++)}class T{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new s.a,this._typeaheadSubscription=a.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new s.a,this.change=new s.a,t instanceof r.F&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(c.a)(t=>this._pressedLetters.push(t)),Object(h.a)(t),Object(d.a)(()=>this._pressedLetters.length>0),Object(u.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i<e.length+1;i++){const n=(this._activeItemIndex+i)%e.length,r=e[n];if(!this._skipPredicateFn(r)&&0===r.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(n);break}}this._pressedLetters=[]}),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(e=>!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case l.o:return void this.tabOut.next();case l.d:if(this._vertical&&i){this.setNextItemActive();break}return;case l.p:if(this._vertical&&i){this.setPreviousItemActive();break}return;case l.m:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.i:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.h:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case l.e:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Object(l.s)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=l.a&&e<=l.q||e>=l.r&&e<=l.j)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof r.F?this._items.toArray():this._items}}class A extends T{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class O extends T{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let E=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===P(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),r=P(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==r:"video"===n?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||D(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(g.a))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(g.a))},token:t,providedIn:"root"}),t})();function D(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function P(t){if(!D(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class I{constructor(t,e,i,n,r=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i<e.length;i++)e[i].hasAttribute(`cdk-focus-${t}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[i]):e[i].hasAttribute(`cdk-focus-region-${t}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[i]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",t),!this._checker.isFocusable(t)){const e=this._getFirstTabbableElement(t);return null==e||e.focus(),!!e}return t.focus(),!0}return this.focusFirstTabbableElement()}focusFirstTabbableElement(){const t=this._getRegionBoundary("start");return t&&t.focus(),!!t}focusLastTabbableElement(){const t=this._getRegionBoundary("end");return t&&t.focus(),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let i=0;i<e.length;i++){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(t)return t}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let i=e.length-1;i>=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Object(p.a)(1)).subscribe(t)}}let M=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new I(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(E),r.Yb(r.B),r.Yb(n.d))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(E),Object(r.Yb)(r.B),Object(r.Yb)(n.d))},token:t,providedIn:"root"}),t})(),R=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=i,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=Object(f.c)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=Object(f.c)(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.l),r.Ob(M),r.Ob(n.d))},t.\u0275dir=r.Jb({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[r.Ab]}),t})();"undefined"!=typeof Element&&Element;const L=new r.s("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),N=new r.s("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let z=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,r;return 1===e.length&&"number"==typeof e[0]?r=e[0]:[n,r]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==r&&i&&(r=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),i=this._document.createElement("div");for(let n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);return i.classList.add(t),i.classList.add("cdk-visually-hidden"),i.setAttribute("aria-atomic","true"),i.setAttribute("aria-live","polite"),this._document.body.appendChild(i),i}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(L,8),r.Yb(r.B),r.Yb(n.d),r.Yb(N,8))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(L,8),Object(r.Yb)(r.B),Object(r.Yb)(n.d),Object(r.Yb)(N,8))},token:t,providedIn:"root"}),t})(),F=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.l),r.Ob(z),r.Ob(m.b),r.Ob(r.B))},t.\u0275dir=r.Jb({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function j(t){return 0===t.buttons}const U=new r.s("cdk-focus-monitor-default-options"),V=Object(g.f)({passive:!0,capture:!0});let B=(()=>{class t{constructor(t,e,i,n){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=j(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=Y(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=Y(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=Object(f.e)(t);if(!this._platform.isBrowser||1!==i.nodeType)return Object(o.a)(null);const n=Object(g.c)(i)||this._getDocument(),r=this._elementInfo.get(i);if(r)return e&&(r.checkChildren=!0),r.subject;const a={checkChildren:e,subject:new s.a,rootNode:n};return this._elementInfo.set(i,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const e=Object(f.e)(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=Object(f.e)(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?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=Y(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===Y(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,V),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,V)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,V),t.addEventListener("mousedown",this._documentMousedownListener,V),t.addEventListener("touchstart",this._documentTouchstartListener,V),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,V),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,V),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,V),t.removeEventListener("mousedown",this._documentMousedownListener,V),t.removeEventListener("touchstart",this._documentTouchstartListener,V),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(r.B),r.Yb(g.a),r.Yb(n.d,8),r.Yb(U,8))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(r.B),Object(r.Yb)(g.a),Object(r.Yb)(n.d,8),Object(r.Yb)(U,8))},token:t,providedIn:"root"}),t})();function Y(t){return t.composedPath?t.composedPath()[0]:t.target}let H=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new r.o}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(r.l),r.Ob(B))},t.\u0275dir=r.Jb({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const W="cdk-high-contrast-black-on-white",X="cdk-high-contrast-white-on-black",G="cdk-high-contrast-active";let q=(()=>{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,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){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(G),t.remove(W),t.remove(X);const e=this.getHighContrastMode();1===e?(t.add(G),t.add(W)):2===e&&(t.add(G),t.add(X))}}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(g.a),r.Yb(n.d))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(g.a),Object(r.Yb)(n.d))},token:t,providedIn:"root"}),t})(),$=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)(r.Yb(q))},imports:[[g.b,m.c]]}),t})()},ujAs:function(t,e,i){"use strict";var n;function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e,i){return e&&a(t.prototype,e),i&&a(t,i),t}function l(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function c(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function h(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?c(Object(i),!0).forEach(function(e){l(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var i,n=u(t);if(e){var r=u(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return f(this,i)}}function m(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?b(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var v=function(){function t(){s(this,t)}return o(t,[{key:"shadeRGBColor",value:function(t,e){var i=e.split(","),n=t<0?0:255,r=t<0?-1*t:t,s=parseInt(i[0].slice(4),10),a=parseInt(i[1],10),o=parseInt(i[2],10);return"rgb("+(Math.round((n-s)*r)+s)+","+(Math.round((n-a)*r)+a)+","+(Math.round((n-o)*r)+o)+")"}},{key:"shadeHexColor",value:function(t,e){var i=parseInt(e.slice(1),16),n=t<0?0:255,r=t<0?-1*t:t,s=i>>16,a=i>>8&255,o=255&i;return"#"+(16777216+65536*(Math.round((n-s)*r)+s)+256*(Math.round((n-a)*r)+a)+(Math.round((n-o)*r)+o)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,i){return t.isColorHex(i)?this.shadeHexColor(e,i):this.shadeRGBColor(e,i)}}],[{key:"bind",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:"isObject",value:function(t){return t&&"object"===r(t)&&!Array.isArray(t)&&null!=t}},{key:"listToArray",value:function(t){var e,i=[];for(e=0;e<t.length;e++)i[e]=t[e];return i}},{key:"extend",value:function(t,e){var i=this;"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e});var n=Object.assign({},t);return this.isObject(t)&&this.isObject(e)&&Object.keys(e).forEach(function(r){i.isObject(e[r])&&r in t?n[r]=i.extend(t[r],e[r]):Object.assign(n,l({},r,e[r]))}),n}},{key:"extendArray",value:function(e,i){var n=[];return e.map(function(e){n.push(t.extend(i,e))}),n}},{key:"monthMod",value:function(t){return t%12}},{key:"clone",value:function(t){if("[object Array]"===Object.prototype.toString.call(t)){for(var e=[],i=0;i<t.length;i++)e[i]=this.clone(t[i]);return e}if("[object Null]"===Object.prototype.toString.call(t))return null;if("[object Date]"===Object.prototype.toString.call(t))return t;if("object"===r(t)){var n={};for(var s in t)t.hasOwnProperty(s)&&(n[s]=this.clone(t[s]));return n}return t}},{key:"log10",value:function(t){return Math.log(t)/Math.LN10}},{key:"roundToBase10",value:function(t){return Math.pow(10,Math.floor(Math.log10(t)))}},{key:"roundToBase",value:function(t,e){return Math.pow(e,Math.floor(Math.log(t)/Math.log(e)))}},{key:"parseNumber",value:function(t){return null===t?t:parseFloat(t)}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(t){var e=String(t).split(/[eE]/);if(1===e.length)return e[0];var i="",n=t<0?"-":"",r=e[0].replace(".",""),s=Number(e[1])+1;if(s<0){for(i=n+"0.";s++;)i+="0";return i+r.replace(/^-/,"")}for(s-=r.length;s--;)i+="0";return r+i}},{key:"getDimensions",value:function(t){var e=getComputedStyle(t,null),i=t.clientHeight,n=t.clientWidth;return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),[n-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),i]}},{key:"getBoundingClientRect",value:function(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:t.clientWidth,height:t.clientHeight,x:e.left,y:e.top}}},{key:"getLargestStringFromArr",value:function(t){return t.reduce(function(t,e){return Array.isArray(e)&&(e=e.reduce(function(t,e){return t.length>e.length?t:e})),t.length>e.length?t:e},0)}},{key:"hexToRgba",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==t.substring(0,1)&&(t="#999999");var i=t.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var n=0;n<i.length;n++)i[n]=parseInt(1===i[n].length?i[n]+i[n]:i[n],16);return void 0!==e&&i.push(e),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(t){return parseFloat(t.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(t)}},{key:"getPolygonPos",value:function(t,e){for(var i=[],n=2*Math.PI/e,r=0;r<e;r++){var s={};s.x=t*Math.sin(r*n),s.y=-t*Math.cos(r*n),i.push(s)}return i}},{key:"polarToCartesian",value:function(t,e,i,n){var r=(n-90)*Math.PI/180;return{x:t+i*Math.cos(r),y:e+i*Math.sin(r)}}},{key:"escapeString",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",i=t.toString().slice();return i.replace(/[` ~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi,e)}},{key:"negToZero",value:function(t){return t<0?0:t}},{key:"moveIndexInArray",value:function(t,e,i){if(i>=t.length)for(var n=i-t.length+1;n--;)t.push(void 0);return t.splice(i,0,t.splice(e,1)[0]),t}},{key:"extractNumber",value:function(t){return parseFloat(t.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}},{key:"setELstyles",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style.key=e[i])}},{key:"isNumber",value:function(t){return!isNaN(t)&&parseFloat(Number(t))===t&&!isNaN(parseInt(t,10))}},{key:"isFloat",value:function(t){return Number(t)===t&&t%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var n=t.indexOf("Edge/");return n>0&&parseInt(t.substring(n+5,t.indexOf(".",n)),10)}},{key:"sanitizeDom",value:function(t){return String(t).replace(/\&/g,"&amp;").replace(/\</g,"&lt;").replace(/\>/g,"&gt;").replace(/\"/g,"&quot;")}}]),t}(),y=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w,this.setEasingFunctions()}return o(t,[{key:"setEasingFunctions",value:function(){var t;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":t="-";break;case"easein":t="<";break;case"easeout":t=">";break;case"easeinout":t="<>";break;case"swing":t=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1};break;case"bounce":t=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375};break;case"elastic":t=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1};break;default:t="<>"}this.w.globals.easing=t}}},{key:"animateLine",value:function(t,e,i,n){t.attr(e).animate(n).attr(i)}},{key:"animateMarker",value:function(t,e,i,n,r,s){e||(e=0),t.attr({r:e,width:e,height:e}).animate(n,r).attr({r:i,width:i.width,height:i.height}).afterAll(function(){s()})}},{key:"animateCircle",value:function(t,e,i,n,r){t.attr({r:e.r,cx:e.cx,cy:e.cy}).animate(n,r).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(t,e,i,n,r){t.attr(e).animate(n).attr(i).afterAll(function(){return r()})}},{key:"animatePathsGradually",value:function(t){var e=this.w,i=0;e.config.chart.animations.animateGradually.enabled&&(i=e.config.chart.animations.animateGradually.delay),e.config.chart.animations.dynamicAnimation.enabled&&e.globals.dataChanged&&"bar"!==e.config.chart.type&&(i=0),this.morphSVG(t.el,t.realIndex,t.j,"line"!==e.config.chart.type||e.globals.comboCharts?t.fill:"stroke",t.pathFrom,t.pathTo,t.speed,t.delay*i)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(t){t.el.classList.remove("apexcharts-element-hidden")})}},{key:"animationCompleted",value:function(t){var e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof e.config.chart.events.animationEnd&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e}))}},{key:"morphSVG",value:function(t,e,i,n,r,s,a,o){var l=this,c=this.w;r||(r=t.attr("pathFrom")),s||(s=t.attr("pathTo"));var h=function(t){return"radar"===c.config.chart.type&&(a=1),"M 0 ".concat(c.globals.gridHeight)};(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=h()),(!s||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=h()),c.globals.shouldAnimate||(a=1),t.plot(r).animate(1,c.globals.easing,o).plot(r).animate(a,c.globals.easing,o).plot(s).afterAll(function(){v.isNumber(i)?i===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(t):"none"!==n&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&e===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(t),l.showDelayedElements()})}}]),t}(),_=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"getDefaultFilter",value:function(t,e){var i=this.w;t.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==i.config.states.normal.filter?this.applyFilter(t,e,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addNormalFilter",value:function(t,e){var i=this.w;i.config.chart.dropShadow.enabled&&!t.node.classList.contains("apexcharts-marker")&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addLightenFilter",value:function(t,e,i){var n=this,r=this.w,s=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter(function(t){var i=r.config.chart.dropShadow;(i.enabled?n.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:s}})}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"addDarkenFilter",value:function(t,e,i){var n=this,r=this.w,s=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter(function(t){var i=r.config.chart.dropShadow;(i.enabled?n.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:s}})}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"applyFilter",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(t,e);break;case"lighten":this.addLightenFilter(t,e,{intensity:n});break;case"darken":this.addDarkenFilter(t,e,{intensity:n})}}},{key:"addShadow",value:function(t,e,i){var n=i.blur,r=i.top,s=i.left,a=i.color,o=i.opacity,l=t.flood(Array.isArray(a)?a[e]:a,o).composite(t.sourceAlpha,"in").offset(s,r).gaussianBlur(n).merge(t.source);return t.blend(t.source,l)}},{key:"dropShadow",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=e.top,r=e.left,s=e.blur,a=e.color,o=e.opacity,l=e.noUserSpaceOnUse,c=this.w;return t.unfilter(!0),v.isIE()&&"radialBar"===c.config.chart.type||(a=Array.isArray(a)?a[i]:a,t.filter(function(t){var e;e=v.isSafari()||v.isFirefox()||v.isIE()?t.flood(a,o).composite(t.sourceAlpha,"in").offset(r,n).gaussianBlur(s):t.flood(a,o).composite(t.sourceAlpha,"in").offset(r,n).gaussianBlur(s).merge(t.source),t.blend(t.source,e)}),l||t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)),t}},{key:"setSelectionFilter",value:function(t,e,i){var n=this.w;if(void 0!==n.globals.selectedDataPoints[e]&&n.globals.selectedDataPoints[e].indexOf(i)>-1){t.node.setAttribute("selected",!0);var r=n.config.states.active.filter;"none"!==r&&this.applyFilter(t,e,r.type,r.value)}}},{key:"_scaleFilterSize",value:function(t){!function(e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),t}(),x=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"drawLine",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=this.w,l=o.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:n,stroke:r,"stroke-dasharray":s,"stroke-width":a});return l}},{key:"drawRect",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,h=this.w,d=h.globals.dom.Paper.rect();return d.attr({x:t,y:e,width:i>0?i:0,height:n>0?n:0,rx:r,ry:r,opacity:a,"stroke-width":null!==o?o:0,stroke:null!==l?l:"none","stroke-dasharray":c}),d.node.setAttribute("fill",s),d}},{key:"drawPolygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",r=this.w,s=r.globals.dom.Paper.polygon(t).attr({fill:n,stroke:e,"stroke-width":i});return s}},{key:"drawCircle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;t<0&&(t=0);var n=i.globals.dom.Paper.circle(2*t);return null!==e&&n.attr(e),n}},{key:"drawPath",value:function(t){var e=t.d,i=void 0===e?"":e,n=t.stroke,r=void 0===n?"#a8a8a8":n,s=t.strokeWidth,a=void 0===s?1:s,o=t.fill,l=t.fillOpacity,c=void 0===l?1:l,h=t.strokeOpacity,d=void 0===h?1:h,u=t.classes,p=t.strokeLinecap,f=void 0===p?null:p,g=t.strokeDashArray,m=void 0===g?0:g,b=this.w;return null===f&&(f=b.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(b.globals.gridHeight)),b.globals.dom.Paper.path(i).attr({fill:o,"fill-opacity":c,stroke:r,"stroke-opacity":d,"stroke-linecap":f,"stroke-width":a,"stroke-dasharray":m,class:u})}},{key:"group",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=e.globals.dom.Paper.group();return null!==t&&i.attr(t),i}},{key:"move",value:function(t,e){return["M",t,e].join(" ")}},{key:"line",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=null;return null===i?n=["L",t,e].join(" "):"H"===i?n=["H",t].join(" "):"V"===i&&(n=["V",e].join(" ")),n}},{key:"curve",value:function(t,e,i,n,r,s){return["C",t,e,i,n,r,s].join(" ")}},{key:"quadraticCurve",value:function(t,e,i,n){return["Q",t,e,i,n].join(" ")}},{key:"arc",value:function(t,e,i,n,r,s,a){var o=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l="A";o&&(l="a");var c=[l,t,e,i,n,r,s,a].join(" ");return c}},{key:"renderPaths",value:function(t){var e,i=t.j,n=t.realIndex,r=t.pathFrom,s=t.pathTo,a=t.stroke,o=t.strokeWidth,l=t.strokeLinecap,c=t.fill,d=t.animationDelay,u=t.initialSpeed,p=t.dataChangeSpeed,f=t.className,g=t.shouldClipToGrid,m=void 0===g||g,b=t.bindEventsOnPaths,v=void 0===b||b,x=t.drawShadow,w=void 0===x||x,C=this.w,k=new _(this.ctx),S=new y(this.ctx),T=this.w.config.chart.animations.enabled,A=T&&this.w.config.chart.animations.dynamicAnimation.enabled,O=!!(T&&!C.globals.resized||A&&C.globals.dataChanged&&C.globals.shouldAnimate);O?e=r:(e=s,C.globals.animationEnded=!0);var E,D=C.config.stroke.dashArray;E=Array.isArray(D)?D[n]:C.config.stroke.dashArray;var P=this.drawPath({d:e,stroke:a,strokeWidth:o,fill:c,fillOpacity:1,classes:f,strokeLinecap:l,strokeDashArray:E});P.attr("index",n),m&&P.attr({"clip-path":"url(#gridRectMask".concat(C.globals.cuid,")")}),"none"!==C.config.states.normal.filter.type?k.getDefaultFilter(P,n):C.config.chart.dropShadow.enabled&&w&&(!C.config.chart.dropShadow.enabledOnSeries||C.config.chart.dropShadow.enabledOnSeries&&-1!==C.config.chart.dropShadow.enabledOnSeries.indexOf(n))&&k.dropShadow(P,C.config.chart.dropShadow,n),v&&(P.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,P)),P.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,P)),P.node.addEventListener("mousedown",this.pathMouseDown.bind(this,P))),P.attr({pathTo:s,pathFrom:r});var I={el:P,j:i,realIndex:n,pathFrom:r,pathTo:s,fill:c,strokeWidth:o,delay:d};return!T||C.globals.resized||C.globals.dataChanged?!C.globals.resized&&C.globals.dataChanged||S.showDelayedElements():S.animatePathsGradually(h(h({},I),{},{speed:u})),C.globals.dataChanged&&A&&O&&S.animatePathsGradually(h(h({},I),{},{speed:p})),P}},{key:"drawPattern",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=this.w,a=s.globals.dom.Paper.pattern(e,i,function(s){"horizontalLines"===t?s.line(0,0,i,0).stroke({color:n,width:r+1}):"verticalLines"===t?s.line(0,0,0,e).stroke({color:n,width:r+1}):"slantedLines"===t?s.line(0,0,e,i).stroke({color:n,width:r}):"squares"===t?s.rect(e,i).fill("none").stroke({color:n,width:r}):"circles"===t&&s.circle(e).fill("none").stroke({color:n,width:r})});return a}},{key:"drawGradient",value:function(t,e,i,n,r){var s,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,h=this.w;e.length<9&&0===e.indexOf("#")&&(e=v.hexToRgba(e,n)),i.length<9&&0===i.indexOf("#")&&(i=v.hexToRgba(i,r));var d=0,u=1,p=1,f=null;null!==o&&(d=void 0!==o[0]?o[0]/100:0,u=void 0!==o[1]?o[1]/100:1,p=void 0!==o[2]?o[2]/100:1,f=void 0!==o[3]?o[3]/100:null);var g=!("donut"!==h.config.chart.type&&"pie"!==h.config.chart.type&&"polarArea"!==h.config.chart.type&&"bubble"!==h.config.chart.type);if(s=h.globals.dom.Paper.gradient(g?"radial":"linear",null===l||0===l.length?function(t){t.at(d,e,n),t.at(u,i,r),t.at(p,i,r),null!==f&&t.at(f,e,n)}:function(t){(Array.isArray(l[c])?l[c]:l).forEach(function(e){t.at(e.offset/100,e.color,e.opacity)})}),g){var m=h.globals.gridWidth/2,b=h.globals.gridHeight/2;s.attr("bubble"!==h.config.chart.type?{gradientUnits:"userSpaceOnUse",cx:m,cy:b,r:a}:{cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===t?s.from(0,0).to(0,1):"diagonal"===t?s.from(0,0).to(1,1):"horizontal"===t?s.from(0,1).to(1,1):"diagonal2"===t&&s.from(1,0).to(0,1);return s}},{key:"drawText",value:function(t){var e,i=t.x,n=t.y,r=t.text,s=t.textAnchor,a=t.fontSize,o=t.fontFamily,l=t.fontWeight,c=t.foreColor,h=t.opacity,d=t.cssClass,u=void 0===d?"":d,p=t.isPlainText,f=void 0===p||p,g=this.w;return void 0===r&&(r=""),s||(s="start"),c&&c.length||(c=g.config.chart.foreColor),o=o||g.config.chart.fontFamily,l=l||"regular",(e=Array.isArray(r)?g.globals.dom.Paper.text(function(t){for(var e=0;e<r.length;e++)0===e?t.tspan(r[e]):t.tspan(r[e]).newLine()}):f?g.globals.dom.Paper.plain(r):g.globals.dom.Paper.text(function(t){return t.tspan(r)})).attr({x:i,y:n,"text-anchor":s,"dominant-baseline":"auto","font-size":a,"font-family":o,"font-weight":l,fill:c,class:"apexcharts-text "+u}),e.node.style.fontFamily=o,e.node.style.opacity=h,e}},{key:"drawMarker",value:function(t,e,i){t=t||0;var n=i.pSize||0,r=null;if("square"===i.shape||"rect"===i.shape){var s=void 0===i.pRadius?n/2:i.pRadius;null!==e&&n||(n=0,s=0);var a=1.2*n+s,o=this.drawRect(a,a,a,a,s);o.attr({x:t-a/2,y:e-a/2,cx:t,cy:e,class:i.class?i.class:"",fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,stroke:i.pointStrokeColor,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}),r=o}else"circle"!==i.shape&&i.shape||(v.isNumber(e)||(n=0,e=0),r=this.drawCircle(n,{cx:t,cy:e,class:i.class?i.class:"",stroke:i.pointStrokeColor,fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}));return r}},{key:"pathMouseEnter",value:function(t,e){var i=this.w,n=new _(this.ctx),r=parseInt(t.node.getAttribute("index"),10),s=parseInt(t.node.getAttribute("j"),10);if("function"==typeof i.config.chart.events.dataPointMouseEnter&&i.config.chart.events.dataPointMouseEnter(e,this.ctx,{seriesIndex:r,dataPointIndex:s,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[e,this.ctx,{seriesIndex:r,dataPointIndex:s,w:i}]),("none"===i.config.states.active.filter.type||"true"!==t.node.getAttribute("selected"))&&"none"!==i.config.states.hover.filter.type&&"none"!==i.config.states.active.filter.type&&!i.globals.isTouchDevice){var a=i.config.states.hover.filter;n.applyFilter(t,r,a.type,a.value)}}},{key:"pathMouseLeave",value:function(t,e){var i=this.w,n=new _(this.ctx),r=parseInt(t.node.getAttribute("index"),10),s=parseInt(t.node.getAttribute("j"),10);"function"==typeof i.config.chart.events.dataPointMouseLeave&&i.config.chart.events.dataPointMouseLeave(e,this.ctx,{seriesIndex:r,dataPointIndex:s,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[e,this.ctx,{seriesIndex:r,dataPointIndex:s,w:i}]),"none"!==i.config.states.active.filter.type&&"true"===t.node.getAttribute("selected")||"none"!==i.config.states.hover.filter.type&&n.getDefaultFilter(t,r)}},{key:"pathMouseDown",value:function(t,e){var i=this.w,n=new _(this.ctx),r=parseInt(t.node.getAttribute("index"),10),s=parseInt(t.node.getAttribute("j"),10),a="false";if("true"===t.node.getAttribute("selected")){if(t.node.setAttribute("selected","false"),i.globals.selectedDataPoints[r].indexOf(s)>-1){var o=i.globals.selectedDataPoints[r].indexOf(s);i.globals.selectedDataPoints[r].splice(o,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var l=i.globals.dom.Paper.select(".apexcharts-series path").members,c=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,h=function(t){Array.prototype.forEach.call(t,function(t){t.node.setAttribute("selected","false"),n.getDefaultFilter(t,r)})};h(l),h(c)}t.node.setAttribute("selected","true"),a="true",void 0===i.globals.selectedDataPoints[r]&&(i.globals.selectedDataPoints[r]=[]),i.globals.selectedDataPoints[r].push(s)}if("true"===a){var d=i.config.states.active.filter;"none"!==d&&n.applyFilter(t,r,d.type,d.value)}else"none"!==i.config.states.active.filter.type&&n.getDefaultFilter(t,r);"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:s,w:i}),e&&this.ctx.events.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:s,w:i}])}},{key:"rotateAroundCenter",value:function(t){var e=t.getBBox();return{x:e.x+e.width/2,y:e.y+e.height/2}}},{key:"getTextRects",value:function(t,e,i,n){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=this.w,a=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:i,foreColor:"#fff",opacity:0});n&&a.attr("transform",n),s.globals.dom.Paper.add(a);var o=a.bbox();return r||(o=a.node.getBoundingClientRect()),a.remove(),{width:o.width,height:o.height}}},{key:"placeTextWithEllipsis",value:function(t,e,i){if("function"==typeof t.getComputedTextLength&&(t.textContent=e,e.length>0&&t.getComputedTextLength()>=i/1.1)){for(var n=e.length-3;n>0;n-=3)if(t.getSubStringLength(0,n)<=i/1.1)return void(t.textContent=e.substring(0,n)+"...");t.textContent="."}}}],[{key:"setAttrs",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}}]),t}(),w=function(){function t(e){s(this,t),this.w=e.w,this.annoCtx=e}return o(t,[{key:"setOrientations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;if("vertical"===t.label.orientation){var n=null!==e?e:0,r=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(n,"']"));if(null!==r){var s=r.getBoundingClientRect();r.setAttribute("x",parseFloat(r.getAttribute("x"))-s.height+4),r.setAttribute("y","top"===t.label.position?parseFloat(r.getAttribute("y"))+s.width:parseFloat(r.getAttribute("y"))-s.width);var a=this.annoCtx.graphics.rotateAroundCenter(r),o=a.x,l=a.y;r.setAttribute("transform","rotate(-90 ".concat(o," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(t,e){var i=this.w;if(!t||!e.label.text||e.label.text&&!e.label.text.trim())return null;var n=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),r=t.getBoundingClientRect(),s=e.label.style.padding.left,a=e.label.style.padding.right,o=e.label.style.padding.top,l=e.label.style.padding.bottom;"vertical"===e.label.orientation&&(o=e.label.style.padding.left,l=e.label.style.padding.right,s=e.label.style.padding.top,a=e.label.style.padding.bottom);var c=this.annoCtx.graphics.drawRect(r.left-n.left-s-i.globals.barPadForNumericAxis,r.top-n.top-o,r.width+s+a,r.height+o+l,e.label.borderRadius,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0);return e.id&&c.node.classList.add(e.id),c}},{key:"annotationsBackground",value:function(){var t=this,e=this.w,i=function(i,n,r){var s=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations .apexcharts-").concat(r,"-annotation-label[rel='").concat(n,"']"));if(s){var a=s.parentNode,o=t.addBackgroundToAnno(s,i);o&&a.insertBefore(o.node,s)}};e.config.annotations.xaxis.map(function(t,e){i(t,e,"xaxis")}),e.config.annotations.yaxis.map(function(t,e){i(t,e,"yaxis")}),e.config.annotations.points.map(function(t,e){i(t,e,"point")})}},{key:"getStringX",value:function(t){var e=this.w,i=t;e.config.xaxis.convertedCatToNumeric&&e.globals.categoryLabels.length&&(t=e.globals.categoryLabels.indexOf(t)+1);var n=e.globals.labels.indexOf(t),r=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(n+1)+")");return r&&(i=parseFloat(r.getAttribute("x"))),i}}]),t}(),C=function(){function t(e){s(this,t),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis}return o(t,[{key:"addXaxisAnnotation",value:function(t,e,i){var n=this.w,r=this.invertAxis?n.globals.minY:n.globals.minX,s=this.invertAxis?n.globals.maxY:n.globals.maxX,a=this.invertAxis?n.globals.yRange[0]:n.globals.xRange,o=(t.x-r)/(a/n.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(o=(s-t.x)/(a/n.globals.gridWidth));var l=t.label.text;"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.invertAxis||n.globals.dataFormatXNumeric||(o=this.annoCtx.helpers.getStringX(t.x));var c=t.strokeDashArray;if(v.isNumber(o)){if(null==t.x2){var h=this.annoCtx.graphics.drawLine(o+t.offsetX,0+t.offsetY,o+t.offsetX,n.globals.gridHeight+t.offsetY,t.borderColor,c,t.borderWidth);e.appendChild(h.node),t.id&&h.node.classList.add(t.id)}else{var d=(t.x2-r)/(a/n.globals.gridWidth);if(this.annoCtx.inversedReversedAxis&&(d=(s-t.x2)/(a/n.globals.gridWidth)),"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.invertAxis||n.globals.dataFormatXNumeric||(d=this.annoCtx.helpers.getStringX(t.x2)),d<o){var u=o;o=d,d=u}var p=this.annoCtx.graphics.drawRect(o+t.offsetX,0+t.offsetY,d-o,n.globals.gridHeight+t.offsetY,0,t.fillColor,t.opacity,1,t.borderColor,c);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(n.globals.cuid,")")),e.appendChild(p.node),t.id&&p.node.classList.add(t.id)}var f="top"===t.label.position?4:n.globals.gridHeight,g=this.annoCtx.graphics.getTextRects(l,parseFloat(t.label.style.fontSize)),m=this.annoCtx.graphics.drawText({x:o+t.label.offsetX,y:f+t.label.offsetY-("vertical"===t.label.orientation?"top"===t.label.position?g.width/2-12:-g.width/2:0),text:l,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});m.attr({rel:i}),e.appendChild(m.node),this.annoCtx.helpers.setOrientations(t,i)}}},{key:"drawXAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return e.config.annotations.xaxis.map(function(e,n){t.addXaxisAnnotation(e,i.node,n)}),i}}]),t}(),k=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"getStackedSeriesTotals",value:function(){var t=this.w,e=[];if(0===t.globals.series.length)return e;for(var i=0;i<t.globals.series[t.globals.maxValsInArrayIndex].length;i++){for(var n=0,r=0;r<t.globals.series.length;r++)void 0!==t.globals.series[r][i]&&(n+=t.globals.series[r][i]);e.push(n)}return t.globals.stackedSeriesTotals=e,e}},{key:"getSeriesTotalByIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===t?this.w.config.series.reduce(function(t,e){return t+e},0):this.w.globals.series[t].reduce(function(t,e){return t+e},0)}},{key:"isSeriesNull",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===t?this.w.config.series.filter(function(t){return null!==t}):this.w.config.series[t].data.filter(function(t){return null!==t})).length}},{key:"seriesHaveSameValues",value:function(t){return this.w.globals.series[t].every(function(t,e,i){return t===i[0]})}},{key:"getCategoryLabels",value:function(t){var e=this.w,i=t.slice();return e.config.xaxis.convertedCatToNumeric&&(i=t.map(function(t,i){return e.config.xaxis.labels.formatter(t-e.globals.minX+1)})),i}},{key:"getLargestSeries",value:function(){var t=this.w;t.globals.maxValsInArrayIndex=t.globals.series.map(function(t){return t.length}).indexOf(Math.max.apply(Math,t.globals.series.map(function(t){return t.length})))}},{key:"getLargestMarkerSize",value:function(){var t=this.w,e=0;return t.globals.markers.size.forEach(function(t){e=Math.max(e,t)}),t.globals.markers.largestSize=e,e}},{key:"getSeriesTotals",value:function(){var t=this.w;t.globals.seriesTotals=t.globals.series.map(function(t,e){var i=0;if(Array.isArray(t))for(var n=0;n<t.length;n++)i+=t[n];else i+=t;return i})}},{key:"getSeriesTotalsXRange",value:function(t,e){var i=this.w;return i.globals.series.map(function(n,r){for(var s=0,a=0;a<n.length;a++)i.globals.seriesX[r][a]>t&&i.globals.seriesX[r][a]<e&&(s+=n[a]);return s})}},{key:"getPercentSeries",value:function(){var t=this.w;t.globals.seriesPercent=t.globals.series.map(function(e,i){var n=[];if(Array.isArray(e))for(var r=0;r<e.length;r++){var s=t.globals.stackedSeriesTotals[r],a=0;s&&(a=100*e[r]/s),n.push(a)}else{var o=100*e/t.globals.seriesTotals.reduce(function(t,e){return t+e},0);n.push(o)}return n})}},{key:"getCalculatedRatios",value:function(){var t,e,i,n,r=this.w.globals,s=[],a=0,o=[],l=.1,c=0;if(r.yRange=[],r.isMultipleYAxis)for(var h=0;h<r.minYArr.length;h++)r.yRange.push(Math.abs(r.minYArr[h]-r.maxYArr[h])),o.push(0);else r.yRange.push(Math.abs(r.minY-r.maxY));r.xRange=Math.abs(r.maxX-r.minX),r.zRange=Math.abs(r.maxZ-r.minZ);for(var d=0;d<r.yRange.length;d++)s.push(r.yRange[d]/r.gridHeight);if(e=r.xRange/r.gridWidth,i=Math.abs(r.initialMaxX-r.initialMinX)/r.gridWidth,t=r.yRange/r.gridWidth,n=r.xRange/r.gridHeight,(a=r.zRange/r.gridHeight*16)||(a=1),r.minY!==Number.MIN_VALUE&&0!==Math.abs(r.minY)&&(r.hasNegs=!0),r.isMultipleYAxis){o=[];for(var u=0;u<s.length;u++)o.push(-r.minYArr[u]/s[u])}else o.push(-r.minY/s[0]),r.minY!==Number.MIN_VALUE&&0!==Math.abs(r.minY)&&(l=-r.minY/t,c=r.minX/e);return{yRatio:s,invertedYRatio:t,zRatio:a,xRatio:e,initialXRatio:i,invertedXRatio:n,baseLineInvertedY:l,baseLineY:o,baseLineX:c}}},{key:"getLogSeries",value:function(t){var e=this,i=this.w;return i.globals.seriesLog=t.map(function(t,n){return i.config.yaxis[n]&&i.config.yaxis[n].logarithmic?t.map(function(t){return null===t?null:e.getLogVal(t,n)}):t}),i.globals.invalidLogScale?t:i.globals.seriesLog}},{key:"getLogVal",value:function(t,e){var i=this.w;return(Math.log(t)-Math.log(i.globals.minYArr[e]))/(Math.log(i.globals.maxYArr[e])-Math.log(i.globals.minYArr[e]))}},{key:"getLogYRatios",value:function(t){var e=this,i=this.w,n=this.w.globals;return n.yLogRatio=t.slice(),n.logYRange=n.yRange.map(function(t,r){if(i.config.yaxis[r]&&e.w.config.yaxis[r].logarithmic){var s,a=-Number.MAX_VALUE,o=Number.MIN_VALUE;return n.seriesLog.forEach(function(t,e){t.forEach(function(t){i.config.yaxis[e]&&i.config.yaxis[e].logarithmic&&(a=Math.max(t,a),o=Math.min(t,o))})}),s=Math.pow(n.yRange[r],Math.abs(o-a)/n.yRange[r]),n.yLogRatio[r]=s/n.gridHeight,s}}),n.invalidLogScale?t.slice():n.yLogRatio}}],[{key:"checkComboSeries",value:function(t){var e=!1,i=0,n=0;return t.length&&void 0!==t[0].type&&t.forEach(function(t){"bar"!==t.type&&"column"!==t.type&&"candlestick"!==t.type&&"boxPlot"!==t.type||i++,void 0!==t.type&&n++}),n>1&&(e=!0),{comboBarCount:i,comboCharts:e}}},{key:"extendArrayProps",value:function(t,e,i){return e.yaxis&&(e=t.extendYAxis(e,i)),e.annotations&&(e.annotations.yaxis&&(e=t.extendYAxisAnnotations(e)),e.annotations.xaxis&&(e=t.extendXAxisAnnotations(e)),e.annotations.points&&(e=t.extendPointAnnotations(e))),e}}]),t}(),S=function(){function t(e){s(this,t),this.w=e.w,this.annoCtx=e}return o(t,[{key:"addYaxisAnnotation",value:function(t,e,i){var n,r=this.w,s=t.strokeDashArray,a=this._getY1Y2("y1",t),o=t.label.text;if(null==t.y2){var l=this.annoCtx.graphics.drawLine(0+t.offsetX,a+t.offsetY,this._getYAxisAnnotationWidth(t),a+t.offsetY,t.borderColor,s,t.borderWidth);e.appendChild(l.node),t.id&&l.node.classList.add(t.id)}else{if((n=this._getY1Y2("y2",t))>a){var c=a;a=n,n=c}var h=this.annoCtx.graphics.drawRect(0+t.offsetX,n+t.offsetY,this._getYAxisAnnotationWidth(t),a-n,0,t.fillColor,t.opacity,1,t.borderColor,s);h.node.classList.add("apexcharts-annotation-rect"),h.attr("clip-path","url(#gridRectMask".concat(r.globals.cuid,")")),e.appendChild(h.node),t.id&&h.node.classList.add(t.id)}var d=this.annoCtx.graphics.drawText({x:("right"===t.label.position?r.globals.gridWidth:0)+t.label.offsetX,y:(n||a)+t.label.offsetY-3,text:o,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});d.attr({rel:i}),e.appendChild(d.node)}},{key:"_getY1Y2",value:function(t,e){var i,n="y1"===t?e.y:e.y2,r=this.w;if(this.annoCtx.invertAxis){var s=r.globals.labels.indexOf(n);r.config.xaxis.convertedCatToNumeric&&(s=r.globals.categoryLabels.indexOf(n));var a=r.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(s+1)+")");a&&(i=parseFloat(a.getAttribute("y")))}else{var o;o=r.config.yaxis[e.yAxisIndex].logarithmic?(n=new k(this.annoCtx.ctx).getLogVal(n,e.yAxisIndex))/r.globals.yLogRatio[e.yAxisIndex]:(n-r.globals.minYArr[e.yAxisIndex])/(r.globals.yRange[e.yAxisIndex]/r.globals.gridHeight),i=r.globals.gridHeight-o,r.config.yaxis[e.yAxisIndex]&&r.config.yaxis[e.yAxisIndex].reversed&&(i=o)}return i}},{key:"_getYAxisAnnotationWidth",value:function(t){var e=this.w;return(t.width.indexOf("%")>-1?e.globals.gridWidth*parseInt(t.width,10)/100:parseInt(t.width,10))+t.offsetX}},{key:"drawYAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.map(function(e,n){t.addYaxisAnnotation(e,i.node,n)}),i}}]),t}(),T=function(){function t(e){s(this,t),this.w=e.w,this.annoCtx=e}return o(t,[{key:"addPointAnnotation",value:function(t,e,i){var n=this.w,r=0,s=0,a=0;this.annoCtx.invertAxis&&console.warn("Point annotation is not supported in horizontal bar charts.");var o=parseFloat(t.y);if("string"==typeof t.x){var l=n.globals.labels.indexOf(t.x);n.config.xaxis.convertedCatToNumeric&&(l=n.globals.categoryLabels.indexOf(t.x)),r=this.annoCtx.helpers.getStringX(t.x),null===t.y&&(o=n.globals.series[t.seriesIndex][l])}else r=(t.x-n.globals.minX)/(n.globals.xRange/n.globals.gridWidth);for(var c,h=[],d=0,u=0;u<=t.seriesIndex;u++){var p=n.config.yaxis[u].seriesName;if(p)for(var f=u+1;f<=t.seriesIndex;f++)n.config.yaxis[f].seriesName===p&&-1===h.indexOf(p)&&(d++,h.push(p))}if(n.config.yaxis[t.yAxisIndex].logarithmic)c=(o=new k(this.annoCtx.ctx).getLogVal(o,t.yAxisIndex))/n.globals.yLogRatio[t.yAxisIndex];else{var g=t.yAxisIndex+d;c=(o-n.globals.minYArr[g])/(n.globals.yRange[g]/n.globals.gridHeight)}if(s=n.globals.gridHeight-c-parseFloat(t.label.style.fontSize)-t.marker.size,a=n.globals.gridHeight-c,n.config.yaxis[t.yAxisIndex]&&n.config.yaxis[t.yAxisIndex].reversed&&(s=c+parseFloat(t.label.style.fontSize)+t.marker.size,a=c),v.isNumber(r)){var m={pSize:t.marker.size,pointStrokeWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,pRadius:t.marker.radius,class:"apexcharts-point-annotation-marker ".concat(t.marker.cssClass," ").concat(t.id?t.id:"")},b=this.annoCtx.graphics.drawMarker(r+t.marker.offsetX,a+t.marker.offsetY,m);e.appendChild(b.node);var y=this.annoCtx.graphics.drawText({x:r+t.label.offsetX,y:s+t.label.offsetY,text:t.label.text?t.label.text:"",textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});if(y.attr({rel:i}),e.appendChild(y.node),t.customSVG.SVG){var _=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass});_.attr({transform:"translate(".concat(r+t.customSVG.offsetX,", ").concat(s+t.customSVG.offsetY,")")}),_.node.innerHTML=t.customSVG.SVG,e.appendChild(_.node)}if(t.image.path){var x=t.image.width?t.image.width:20,w=t.image.height?t.image.height:20;this.annoCtx.addImage({x:r+t.image.offsetX-x/2,y:s+t.image.offsetY-w/2,width:x,height:w,path:t.image.path,appendTo:".apexcharts-point-annotations"})}}}},{key:"drawPointAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map(function(e,n){t.addPointAnnotation(e,i.node,n)}),i}}]),t}(),A={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},O=function(){function t(){s(this,t),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,tickAmount:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={x:0,y:null,yAxisIndex:0,seriesIndex:0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return o(t,[{key:"init",value:function(){return{annotations:{position:"front",yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[A],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0},stacked:!1,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(t){return new Date(t).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,rangeBarOverlap:!0,rangeBarGroupRows:!1,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal"}},bubble:{minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(t){return t}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(t){return t+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce(function(t,e){return t+e},0)/t.globals.series.length+"%"}}}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(t){return t}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(t){return t}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce(function(t,e){return t+e},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(t){return null!==t?t:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(t){return t?t+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),t}(),E=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w,this.graphics=new x(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new w(this),this.xAxisAnnotations=new C(this),this.yAxisAnnotations=new S(this),this.pointsAnnotations=new T(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return o(t,[{key:"drawAxesAnnotations",value:function(){var t=this.w;if(t.globals.axisCharts){for(var e=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),n=this.pointsAnnotations.drawPointAnnotations(),r=t.config.chart.animations.enabled,s=[e,i,n],a=[i.node,e.node,n.node],o=0;o<3;o++)t.globals.dom.elGraphical.add(s[o]),!r||t.globals.resized||t.globals.dataChanged||"scatter"!==t.config.chart.type&&"bubble"!==t.config.chart.type&&t.globals.dataPoints>1&&a[o].classList.add("apexcharts-element-hidden"),t.globals.delayedElements.push({el:a[o],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var t=this;this.w.config.annotations.images.map(function(e,i){t.addImage(e,i)})}},{key:"drawTextAnnos",value:function(){var t=this;this.w.config.annotations.texts.map(function(e,i){t.addText(e,i)})}},{key:"addXaxisAnnotation",value:function(t,e,i){this.xAxisAnnotations.addXaxisAnnotation(t,e,i)}},{key:"addYaxisAnnotation",value:function(t,e,i){this.yAxisAnnotations.addYaxisAnnotation(t,e,i)}},{key:"addPointAnnotation",value:function(t,e,i){this.pointsAnnotations.addPointAnnotation(t,e,i)}},{key:"addText",value:function(t,e){var i=t.text,n=t.backgroundColor,r=t.borderWidth,s=t.strokeDashArray,a=t.borderRadius,o=t.borderColor,l=t.appendTo,c=void 0===l?".apexcharts-annotations":l,h=t.paddingLeft,d=void 0===h?4:h,u=t.paddingRight,p=void 0===u?4:u,f=t.paddingBottom,g=void 0===f?2:f,m=t.paddingTop,b=void 0===m?2:m,v=this.w,y=this.graphics.drawText({x:t.x,y:t.y,text:i,textAnchor:t.textAnchor||"start",fontSize:t.fontSize||"12px",fontWeight:t.fontWeight||"regular",fontFamily:t.fontFamily||v.config.chart.fontFamily,foreColor:t.foreColor||v.config.chart.foreColor,cssClass:t.cssClass}),_=v.globals.dom.baseEl.querySelector(c);_&&_.appendChild(y.node);var x=y.bbox();if(i){var w=this.graphics.drawRect(x.x-d,x.y-b,x.width+d+p,x.height+g+b,a,n||"transparent",1,r,o,s);_.insertBefore(w.node,y.node)}}},{key:"addImage",value:function(t,e){var i=this.w,n=t.x,r=void 0===n?0:n,s=t.y,a=void 0===s?0:s,o=t.width,l=void 0===o?20:o,c=t.height,h=void 0===c?20:c,d=t.appendTo,u=void 0===d?".apexcharts-annotations":d,p=i.globals.dom.Paper.image(t.path);p.size(l,h).move(r,a);var f=i.globals.dom.baseEl.querySelector(u);f&&f.appendChild(p.node)}},{key:"addXaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(t,e,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(t){var e=t.params,i=t.pushToMemory,n=t.context,r=t.type,s=t.contextMethod,a=n,o=a.w,l=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations")),c=l.childNodes.length+1,h=new O,d=Object.assign({},"xaxis"===r?h.xAxisAnnotation:"yaxis"===r?h.yAxisAnnotation:h.pointAnnotation),u=v.extend(d,e);switch(r){case"xaxis":this.addXaxisAnnotation(u,l,c);break;case"yaxis":this.addYaxisAnnotation(u,l,c);break;case"point":this.addPointAnnotation(u,l,c)}var p=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations .apexcharts-").concat(r,"-annotation-label[rel='").concat(c,"']")),f=this.helpers.addBackgroundToAnno(p,u);return f&&l.insertBefore(f.node,p),i&&o.globals.memory.methodsToExec.push({context:a,id:u.id?u.id:v.randomId(),method:s,label:"addAnnotation",params:e}),n}},{key:"clearAnnotations",value:function(t){var e=t.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");e.globals.memory.methodsToExec.map(function(t,i){"addText"!==t.label&&"addAnnotation"!==t.label||e.globals.memory.methodsToExec.splice(i,1)}),i=v.listToArray(i),Array.prototype.forEach.call(i,function(t){for(;t.firstChild;)t.removeChild(t.firstChild)})}},{key:"removeAnnotation",value:function(t,e){var i=t.w,n=i.globals.dom.baseEl.querySelectorAll(".".concat(e));n&&(i.globals.memory.methodsToExec.map(function(t,n){t.id===e&&i.globals.memory.methodsToExec.splice(n,1)}),Array.prototype.forEach.call(n,function(t){t.parentElement.removeChild(t)}))}}]),t}(),D=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0}return o(t,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,n=parseInt(e.globals.gridWidth,10),r=parseInt(e.globals.gridHeight,10),s=n>r?n:r,a=t.image,o=0,l=0;void 0===t.width&&void 0===t.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(o=i.fill.image.width+1,l=i.fill.image.height):(o=s+1,l=s):(o=t.width,l=t.height);var c=document.createElementNS(e.globals.SVGNS,"pattern");x.setAttrs(c,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:o+"px",height:l+"px"});var h=document.createElementNS(e.globals.SVGNS,"image");c.appendChild(h),h.setAttributeNS(window.SVG.xlink,"href",a),x.setAttrs(h,{x:0,y:0,preserveAspectRatio:"none",width:o+"px",height:l+"px"}),h.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(t){var e=this.w;return this.seriesIndex=("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&e.config.plotOptions.bar.distributed||"heatmap"===e.config.chart.type||"treemap"===e.config.chart.type?t.seriesNumber:t.seriesNumber%e.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(t){var e=this.w;this.opts=t;var i,n,r,s=this.w.config;this.seriesIndex=this.getSeriesIndex(t);var a=this.getFillColors()[this.seriesIndex];void 0!==e.globals.seriesColors[this.seriesIndex]&&(a=e.globals.seriesColors[this.seriesIndex]),"function"==typeof a&&(a=a({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:e}));var o=this.getFillType(this.seriesIndex),l=Array.isArray(s.fill.opacity)?s.fill.opacity[this.seriesIndex]:s.fill.opacity;t.color&&(a=t.color);var c=a;if(-1===a.indexOf("rgb")?a.length<9&&(c=v.hexToRgba(a,l)):a.indexOf("rgba")>-1&&(l=v.getOpacityFromRGBA(a)),t.opacity&&(l=t.opacity),"pattern"===o&&(n=this.handlePatternFill(n,a,l,c)),"gradient"===o&&(r=this.handleGradientFill(a,l,this.seriesIndex)),"image"===o){var h=s.fill.image.src,d=t.patternID?t.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(h)?t.seriesNumber<h.length?h[t.seriesNumber]:h[0]:h,width:t.width?t.width:void 0,height:t.height?t.height:void 0,patternUnits:t.patternUnits,patternID:"pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(d)}),i="url(#pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(d,")")}else i="gradient"===o?r:"pattern"===o?n:c;return t.solid&&(i=c),i}},{key:"getFillType",value:function(t){var e=this.w;return Array.isArray(e.config.fill.type)?e.config.fill.type[t]:e.config.fill.type}},{key:"getFillColors",value:function(){var t=this.w,e=t.config,i=this.opts,n=[];return t.globals.comboCharts?"line"===t.config.series[this.seriesIndex].type?Array.isArray(t.globals.stroke.colors)?n=t.globals.stroke.colors:n.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?n=t.globals.fill.colors:n.push(t.globals.fill.colors):"line"===e.chart.type?Array.isArray(t.globals.stroke.colors)?n=t.globals.stroke.colors:n.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?n=t.globals.fill.colors:n.push(t.globals.fill.colors),void 0!==i.fillColors&&(n=[],Array.isArray(i.fillColors)?n=i.fillColors.slice():n.push(i.fillColors)),n}},{key:"handlePatternFill",value:function(t,e,i,n){var r=this.w.config,s=this.opts,a=new x(this.ctx),o=void 0===r.fill.pattern.strokeWidth?Array.isArray(r.stroke.width)?r.stroke.width[this.seriesIndex]:r.stroke.width:Array.isArray(r.fill.pattern.strokeWidth)?r.fill.pattern.strokeWidth[this.seriesIndex]:r.fill.pattern.strokeWidth,l=e;return Array.isArray(r.fill.pattern.style)?void 0!==r.fill.pattern.style[s.seriesNumber]?a.drawPattern(r.fill.pattern.style[s.seriesNumber],r.fill.pattern.width,r.fill.pattern.height,l,o,i):n:a.drawPattern(r.fill.pattern.style,r.fill.pattern.width,r.fill.pattern.height,l,o,i)}},{key:"handleGradientFill",value:function(t,e,i){var n,r=this.w.config,s=this.opts,a=new x(this.ctx),o=new v,l=r.fill.gradient.type,c=t,h=void 0===r.fill.gradient.opacityFrom?e:Array.isArray(r.fill.gradient.opacityFrom)?r.fill.gradient.opacityFrom[i]:r.fill.gradient.opacityFrom;c.indexOf("rgba")>-1&&(h=v.getOpacityFromRGBA(c));var d=void 0===r.fill.gradient.opacityTo?e:Array.isArray(r.fill.gradient.opacityTo)?r.fill.gradient.opacityTo[i]:r.fill.gradient.opacityTo;if(void 0===r.fill.gradient.gradientToColors||0===r.fill.gradient.gradientToColors.length)n=o.shadeColor("dark"===r.fill.gradient.shade?-1*parseFloat(r.fill.gradient.shadeIntensity):parseFloat(r.fill.gradient.shadeIntensity),t.indexOf("rgb")>-1?v.rgb2hex(t):t);else if(r.fill.gradient.gradientToColors[s.seriesNumber]){var u=r.fill.gradient.gradientToColors[s.seriesNumber];n=u,u.indexOf("rgba")>-1&&(d=v.getOpacityFromRGBA(u))}else n=t;if(r.fill.gradient.inverseColors){var p=c;c=n,n=p}return c.indexOf("rgb")>-1&&(c=v.rgb2hex(c)),n.indexOf("rgb")>-1&&(n=v.rgb2hex(n)),a.drawGradient(l,c,n,h,d,s.size,r.fill.gradient.stops,r.fill.gradient.colorStops,i)}}]),t}(),P=function(){function t(e,i){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"setGlobalMarkerSize",value:function(){var t=this.w;if(t.globals.markers.size=Array.isArray(t.config.markers.size)?t.config.markers.size:[t.config.markers.size],t.globals.markers.size.length>0){if(t.globals.markers.size.length<t.globals.series.length+1)for(var e=0;e<=t.globals.series.length;e++)void 0===t.globals.markers.size[e]&&t.globals.markers.size.push(t.globals.markers.size[0])}else t.globals.markers.size=t.config.series.map(function(e){return t.config.markers.size})}},{key:"plotChartMarkers",value:function(t,e,i,n){var r,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=this.w,o=e,l=t,c=null,h=new x(this.ctx);if((a.globals.markers.size[e]>0||s)&&(c=h.group({class:s?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(a.globals.cuid,")")),Array.isArray(l.x))for(var d=0;d<l.x.length;d++){var u=i;1===i&&0===d&&(u=0),1===i&&1===d&&(u=1);var p="apexcharts-marker";"line"!==a.config.chart.type&&"area"!==a.config.chart.type||a.globals.comboCharts||a.config.tooltip.intersect||(p+=" no-pointer-events");var f=Array.isArray(a.config.markers.size)?a.globals.markers.size[e]>0:a.config.markers.size>0;if(f||s){v.isNumber(l.y[d])?p+=" w".concat(v.randomId()):p="apexcharts-nullpoint";var g=this.getMarkerConfig(p,e,u);a.config.series[o].data[u]&&(a.config.series[o].data[u].fillColor&&(g.pointFillColor=a.config.series[o].data[u].fillColor),a.config.series[o].data[u].strokeColor&&(g.pointStrokeColor=a.config.series[o].data[u].strokeColor)),n&&(g.pSize=n),(r=h.drawMarker(l.x[d],l.y[d],g)).attr("rel",u),r.attr("j",u),r.attr("index",e),r.node.setAttribute("default-marker-size",g.pSize);var m=new _(this.ctx);m.setSelectionFilter(r,e,u),this.addEvents(r),c&&c.add(r)}else void 0===a.globals.pointsArray[e]&&(a.globals.pointsArray[e]=[]),a.globals.pointsArray[e].push([l.x[d],l.y[d]])}return c}},{key:"getMarkerConfig",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.w,r=this.getMarkerStyle(e),s=n.globals.markers.size[e],a=n.config.markers;return null!==i&&a.discrete.length&&a.discrete.map(function(t){t.seriesIndex===e&&t.dataPointIndex===i&&(r.pointStrokeColor=t.strokeColor,r.pointFillColor=t.fillColor,s=t.size,r.pointShape=t.shape)}),{pSize:s,pRadius:a.radius,width:Array.isArray(a.width)?a.width[e]:a.width,height:Array.isArray(a.height)?a.height[e]:a.height,pointStrokeWidth:Array.isArray(a.strokeWidth)?a.strokeWidth[e]:a.strokeWidth,pointStrokeColor:r.pointStrokeColor,pointFillColor:r.pointFillColor,shape:r.pointShape||(Array.isArray(a.shape)?a.shape[e]:a.shape),class:t,pointStrokeOpacity:Array.isArray(a.strokeOpacity)?a.strokeOpacity[e]:a.strokeOpacity,pointStrokeDashArray:Array.isArray(a.strokeDashArray)?a.strokeDashArray[e]:a.strokeDashArray,pointFillOpacity:Array.isArray(a.fillOpacity)?a.fillOpacity[e]:a.fillOpacity,seriesIndex:e}}},{key:"addEvents",value:function(t){var e=this.w,i=new x(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,t)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,t)),t.node.addEventListener("click",e.config.markers.onClick),t.node.addEventListener("dblclick",e.config.markers.onDblClick),t.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,t),{passive:!0})}},{key:"getMarkerStyle",value:function(t){var e=this.w,i=e.globals.markers.colors,n=e.config.markers.strokeColor||e.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(n)?n[t]:n,pointFillColor:Array.isArray(i)?i[t]:i}}}]),t}(),I=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return o(t,[{key:"draw",value:function(t,e,i){var n=this.w,r=new x(this.ctx),s=i.realIndex,a=i.pointsPos,o=i.zRatio,l=i.elParent,c=r.group({class:"apexcharts-series-markers apexcharts-series-".concat(n.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(n.globals.cuid,")")),Array.isArray(a.x))for(var h=0;h<a.x.length;h++){var d=e+1,u=!0;0===e&&0===h&&(d=0),0===e&&1===h&&(d=1);var p=0,f=n.globals.markers.size[s];if(o!==1/0){f=n.globals.seriesZ[s][d]/o;var g=n.config.plotOptions.bubble;g.minBubbleRadius&&f<g.minBubbleRadius&&(f=g.minBubbleRadius),g.maxBubbleRadius&&f>g.maxBubbleRadius&&(f=g.maxBubbleRadius)}n.config.chart.animations.enabled||(p=f);var m=a.y[h];if(p=p||0,null!==m&&void 0!==n.globals.series[s][d]||(u=!1),u){var b=this.drawPoint(a.x[h],m,p,f,s,d,e);c.add(b)}l.add(c)}}},{key:"drawPoint",value:function(t,e,i,n,r,s,a){var o,l=this.w,c=r,h=new y(this.ctx),d=new _(this.ctx),u=new D(this.ctx),p=new P(this.ctx),f=new x(this.ctx),g=p.getMarkerConfig("apexcharts-marker",c),m=u.fillPath({seriesNumber:r,dataPointIndex:s,patternUnits:"objectBoundingBox",value:l.globals.series[r][a]});if("circle"===g.shape?o=f.drawCircle(i):"square"!==g.shape&&"rect"!==g.shape||(o=f.drawRect(0,0,g.width-g.pointStrokeWidth/2,g.height-g.pointStrokeWidth/2,g.pRadius)),l.config.series[c].data[s]&&l.config.series[c].data[s].fillColor&&(m=l.config.series[c].data[s].fillColor),o.attr({x:t-g.width/2-g.pointStrokeWidth/2,y:e-g.height/2-g.pointStrokeWidth/2,cx:t,cy:e,fill:m,"fill-opacity":g.pointFillOpacity,stroke:g.pointStrokeColor,r:n,"stroke-width":g.pointStrokeWidth,"stroke-dasharray":g.pointStrokeDashArray,"stroke-opacity":g.pointStrokeOpacity}),l.config.chart.dropShadow.enabled&&d.dropShadow(o,l.config.chart.dropShadow,r),!this.initialAnim||l.globals.dataChanged||l.globals.resized?l.globals.animationEnded=!0:h.animateMarker(o,0,"circle"===g.shape?n:{width:g.width,height:g.height},l.config.chart.animations.speed,l.globals.easing,function(){window.setTimeout(function(){h.animationCompleted(o)},100)}),l.globals.dataChanged&&"circle"===g.shape)if(this.dynamicAnim){var b,v,w,C,k=l.config.chart.animations.dynamicAnimation.speed;null!=(C=l.globals.previousPaths[r]&&l.globals.previousPaths[r][a])&&(b=C.x,v=C.y,w=void 0!==C.r?C.r:n);for(var S=0;S<l.globals.collapsedSeries.length;S++)l.globals.collapsedSeries[S].index===r&&(k=1,n=0);0===t&&0===e&&(n=0),h.animateCircle(o,{cx:b,cy:v,r:w},{cx:t,cy:e,r:n},k,l.globals.easing)}else o.attr({r:n});return o.attr({rel:s,j:s,index:r,"default-marker-size":n}),d.setSelectionFilter(o,r,s),p.addEvents(o),o.node.classList.add("apexcharts-marker"),o}},{key:"centerTextInBubble",value:function(t){return{y:t+=parseInt(this.w.config.dataLabels.style.fontSize,10)/4}}}]),t}(),M=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"dataLabelsCorrection",value:function(t,e,i,n,r,s,a){var o=this.w,l=!1,c=new x(this.ctx).getTextRects(i,a),h=c.width,d=c.height;if(e<0&&(e=0),e>o.globals.gridHeight+d&&(e=o.globals.gridHeight+d/2),void 0===o.globals.dataLabelsRects[n]&&(o.globals.dataLabelsRects[n]=[]),o.globals.dataLabelsRects[n].push({x:t,y:e,width:h,height:d}),void 0!==o.globals.dataLabelsRects[n][o.globals.dataLabelsRects[n].length-2]){var u=o.globals.dataLabelsRects[n][void 0!==o.globals.lastDrawnDataLabelsIndexes[n]?o.globals.lastDrawnDataLabelsIndexes[n][o.globals.lastDrawnDataLabelsIndexes[n].length-1]:0];(t>u.x+u.width+2||e>u.y+u.height+2||t+h<u.x)&&(l=!0)}return(0===r||s)&&(l=!0),{x:t,y:e,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(t,e,i){var n=this,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,s=this.w,a=new x(this.ctx),o=s.config.dataLabels,l=0,c=0,h=i,d=null;if(!o.enabled||!Array.isArray(t.x))return d;d=a.group({class:"apexcharts-data-labels"});for(var u=0;u<t.x.length;u++)if(l=t.x[u]+o.offsetX,c=t.y[u]+o.offsetY+r,!isNaN(l)){1===i&&0===u&&(h=0),1===i&&1===u&&(h=1);var p=s.globals.series[e][h],f="",g=function(t){return s.config.dataLabels.formatter(t,{ctx:n.ctx,seriesIndex:e,dataPointIndex:h,w:s})};if("bubble"===s.config.chart.type){f=g(p=s.globals.seriesZ[e][h]),c=t.y[u];var m=new I(this.ctx),b=m.centerTextInBubble(c,e,h);c=b.y}else void 0!==p&&(f=g(p));this.plotDataLabelsText({x:l,y:c,text:f,i:e,j:h,parent:d,offsetCorrection:!0,dataLabelsConfig:s.config.dataLabels})}return d}},{key:"plotDataLabelsText",value:function(t){var e=this.w,i=new x(this.ctx),n=t.x,r=t.y,s=t.i,a=t.j,o=t.text,l=t.textAnchor,c=t.fontSize,h=t.parent,d=t.dataLabelsConfig,u=t.color,p=t.alwaysDrawDataLabel,f=t.offsetCorrection;if(!(Array.isArray(e.config.dataLabels.enabledOnSeries)&&e.config.dataLabels.enabledOnSeries.indexOf(s)<0)){var g={x:n,y:r,drawnextLabel:!0};f&&(g=this.dataLabelsCorrection(n,r,o,s,a,p,parseInt(d.style.fontSize,10))),e.globals.zoomed||(n=g.x,r=g.y),g.textRects&&(n<-10-g.textRects.width||n>e.globals.gridWidth+g.textRects.width+10)&&(o="");var m=e.globals.dataLabels.style.colors[s];(("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&e.config.plotOptions.bar.distributed||e.config.dataLabels.distributed)&&(m=e.globals.dataLabels.style.colors[a]),"function"==typeof m&&(m=m({series:e.globals.series,seriesIndex:s,dataPointIndex:a,w:e})),u&&(m=u);var b=d.offsetX,v=d.offsetY;if("bar"!==e.config.chart.type&&"rangeBar"!==e.config.chart.type||(b=0,v=0),g.drawnextLabel){var y=i.drawText({width:100,height:parseInt(d.style.fontSize,10),x:n+b,y:r+v,foreColor:m,textAnchor:l||d.textAnchor,text:o,fontSize:c||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"});if(y.attr({class:"apexcharts-datalabel",cx:n,cy:r}),d.dropShadow.enabled){var w=d.dropShadow;new _(this.ctx).dropShadow(y,w)}h.add(y),void 0===e.globals.lastDrawnDataLabelsIndexes[s]&&(e.globals.lastDrawnDataLabelsIndexes[s]=[]),e.globals.lastDrawnDataLabelsIndexes[s].push(a)}}}},{key:"addBackgroundToDataLabel",value:function(t,e){var i=this.w,n=i.config.dataLabels.background,r=n.padding,s=n.padding/2,a=e.width,o=e.height,l=new x(this.ctx).drawRect(e.x-r,e.y-s/2,a+2*r,o+s,n.borderRadius,"transparent"===i.config.chart.background?"#fff":i.config.chart.background,n.opacity,n.borderWidth,n.borderColor);return n.dropShadow.enabled&&new _(this.ctx).dropShadow(l,n.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var t=this.w;if("bubble"!==t.config.chart.type)for(var e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i<e.length;i++){var n=e[i],r=n.getBBox(),s=null;if(r.width&&r.height&&(s=this.addBackgroundToDataLabel(n,r)),s){n.parentNode.insertBefore(s.node,n);var a=n.getAttribute("fill");!t.config.chart.animations.enabled||t.globals.resized||t.globals.dataChanged?s.attr({fill:a}):s.animate().attr({fill:a}),n.setAttribute("fill",t.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var t=this.w,e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=t.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),n=0;n<e.length;n++)i&&i.insertBefore(e[n],i.nextSibling)}}]),t}(),R=function(){function t(e){s(this,t),this.w=e.w,this.barCtx=e}return o(t,[{key:"handleBarDataLabels",value:function(t){var e=t.x,i=t.y,n=t.y1,r=t.y2,s=t.i,a=t.j,o=t.realIndex,l=t.series,c=t.barHeight,h=t.barWidth,d=t.barYPosition,u=t.visibleSeries,p=t.renderedPath,f=this.w,g=new x(this.barCtx.ctx),m=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[o]:this.barCtx.strokeWidth,b=e+parseFloat(h*u),v=i+parseFloat(c*u);f.globals.isXNumeric&&!f.globals.isBarHorizontal&&(b=e+parseFloat(h*(u+1)),v=i+parseFloat(c*(u+1))-m);var y,_=e,w=i,C=f.config.dataLabels,k=this.barCtx.barOptions.dataLabels;void 0!==d&&this.barCtx.isTimelineBar&&(v=d,w=d);var S=C.offsetX,T=C.offsetY,A={width:0,height:0};f.config.dataLabels.enabled&&(A=g.getTextRects(f.globals.yLabelFormatters[0](this.barCtx.series[s][a]),parseFloat(C.style.fontSize)));var O={x:e,y:i,i:s,j:a,renderedPath:p,bcx:b,bcy:v,barHeight:c,barWidth:h,textRects:A,strokeWidth:m,dataLabelsX:_,dataLabelsY:w,barDataLabelsConfig:k,offX:S,offY:T};return y=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(O):this.calculateColumnsDataLabelsPosition(O),p.attr({cy:y.bcy,cx:y.bcx,j:a,val:l[s][a],barHeight:c,barWidth:h}),this.drawCalculatedDataLabels({x:y.dataLabelsX,y:y.dataLabelsY,val:this.barCtx.isTimelineBar?[n,r]:l[s][a],i:o,j:a,barWidth:h,barHeight:c,textRects:A,dataLabelsConfig:C})}},{key:"calculateColumnsDataLabelsPosition",value:function(t){var e,i=this.w,n=t.i,r=t.j,s=t.y,a=t.bcx,o=t.barWidth,l=t.barHeight,c=t.textRects,h=t.dataLabelsY,d=t.barDataLabelsConfig,u=t.strokeWidth,p=t.offX,f=t.offY;l=Math.abs(l);var g="vertical"===i.config.plotOptions.bar.dataLabels.orientation;a-=u/2,e=i.globals.isXNumeric?a-o/2+p:a-i.globals.gridWidth/i.globals.dataPoints+o/2+p,g&&(e=e+c.height/2-u/2-2);var m=this.barCtx.series[n][r]<0,b=s;switch(this.barCtx.isReversed&&(b=s-l+(m?2*l:0),s-=l),d.position){case"center":h=g?m?b+l/2+f:b+l/2-f:m?b-l/2+c.height/2+f:b+l/2+c.height/2-f;break;case"bottom":h=g?m?b+l+f:b+l-f:m?b-l+c.height+u+f:b+l-c.height/2+u-f;break;case"top":h=g?m?b+f:b-f:m?b-c.height/2-f:b+c.height+f}return i.config.chart.stacked||(h<0?h=0+u:h+c.height/3>i.globals.gridHeight&&(h=i.globals.gridHeight-u)),{bcx:a,bcy:s,dataLabelsX:e,dataLabelsY:h}}},{key:"calculateBarsDataLabelsPosition",value:function(t){var e=this.w,i=t.x,n=t.i,r=t.j,s=t.bcy,a=t.barHeight,o=t.barWidth,l=t.textRects,c=t.dataLabelsX,h=t.strokeWidth,d=t.barDataLabelsConfig,u=t.offX,p=t.offY,f=e.globals.gridHeight/e.globals.dataPoints;o=Math.abs(o);var g=s-(this.barCtx.isTimelineBar?0:f)+a/2+l.height/2+p-3,m=this.barCtx.series[n][r]<0,b=i;switch(this.barCtx.isReversed&&(b=i+o-(m?2*o:0),i=e.globals.gridWidth-o),d.position){case"center":c=m?b+o/2-u:Math.max(l.width/2,b-o/2)+u;break;case"bottom":c=m?b+o-h-Math.round(l.width/2)-u:b-o+h+Math.round(l.width/2)+u;break;case"top":c=m?b-h+Math.round(l.width/2)-u:b-h-Math.round(l.width/2)+u}return e.config.chart.stacked||(c<0?c=c+l.width+h:c+l.width/2>e.globals.gridWidth&&(c=e.globals.gridWidth-l.width-h)),{bcx:i,bcy:s,dataLabelsX:c,dataLabelsY:g}}},{key:"drawCalculatedDataLabels",value:function(t){var e=t.x,i=t.y,n=t.val,r=t.i,s=t.j,a=t.textRects,o=t.barHeight,l=t.barWidth,c=t.dataLabelsConfig,d=this.w,u="rotate(0)";"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&(u="rotate(-90, ".concat(e,", ").concat(i,")"));var p=new M(this.barCtx.ctx),f=new x(this.barCtx.ctx),g=c.formatter,m=null,b=d.globals.collapsedSeriesIndices.indexOf(r)>-1;if(c.enabled&&!b){m=f.group({class:"apexcharts-data-labels",transform:u});var v="";void 0!==n&&(v=g(n,{seriesIndex:r,dataPointIndex:s,w:d}));var y=d.globals.series[r][s]<0,_=d.config.plotOptions.bar.dataLabels.position;"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&("top"===_&&(c.textAnchor=y?"end":"start"),"center"===_&&(c.textAnchor="middle"),"bottom"===_&&(c.textAnchor=y?"end":"start")),this.barCtx.isTimelineBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&l<f.getTextRects(v,parseFloat(c.style.fontSize)).width&&(v=""),d.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?(l>0&&a.width/1.6>l||l<0&&a.width/1.6<l)&&(v=""):a.height/1.6>o&&(v=""));var w=h({},c);this.barCtx.isHorizontal&&n<0&&("start"===c.textAnchor?w.textAnchor="end":"end"===c.textAnchor&&(w.textAnchor="start")),p.plotDataLabelsText({x:e,y:i,text:v,i:r,j:s,parent:m,dataLabelsConfig:w,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return m}}]),t}(),L=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w,this.legendInactiveClass="legend-mouseover-inactive"}return o(t,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(t){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(v.escapeString(t),"']"))}},{key:"isSeriesHidden",value:function(t){var e=this.getSeriesByName(t),i=parseInt(e.getAttribute("data:realIndex"),10);return{isHidden:e.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(t,e){var i=this.w;function n(i){for(var n=0;n<i.length;n++)i[n].index===e&&t.node.classList.add("apexcharts-series-collapsed")}n(i.globals.collapsedSeries),n(i.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(t){var e=this.isSeriesHidden(t);return this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,e.isHidden),e.isHidden}},{key:"showSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!0)}},{key:"hideSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!1)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.w,r=v.clone(n.globals.initialSeries);n.globals.previousPaths=[],i?(n.globals.collapsedSeries=[],n.globals.ancillaryCollapsedSeries=[],n.globals.collapsedSeriesIndices=[],n.globals.ancillaryCollapsedSeriesIndices=[]):r=this.emptyCollapsedSeries(r),n.config.series=r,t&&(e&&(n.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(r,n.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(t){for(var e=this.w,i=0;i<t.length;i++)e.globals.collapsedSeriesIndices.indexOf(i)>-1&&(t[i].data=[]);return t}},{key:"toggleSeriesOnHover",value:function(t,e){var i=this.w,n=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if("mousemove"===t.type){var r=parseInt(e.getAttribute("rel"),10)-1,s=null,a=null;i.globals.axisCharts||"radialBar"===i.config.chart.type?i.globals.axisCharts?(s=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(r,"']")),a=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(r,"']"))):s=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"']")):s=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"'] path"));for(var o=0;o<n.length;o++)n[o].classList.add(this.legendInactiveClass);null!==s&&(i.globals.axisCharts||s.parentNode.classList.remove(this.legendInactiveClass),s.classList.remove(this.legendInactiveClass),null!==a&&a.classList.remove(this.legendInactiveClass))}else if("mouseout"===t.type)for(var l=0;l<n.length;l++)n[l].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(t,e){var i=this,n=this.w,r=n.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),s=function(t){for(var e=0;e<r.length;e++)r[e].classList[t](i.legendInactiveClass)};if("mousemove"===t.type){var a=parseInt(e.getAttribute("rel"),10)-1;s("add"),function(t){for(var e=0;e<r.length;e++){var n=parseInt(r[e].getAttribute("val"),10);n>=t.from&&n<=t.to&&r[e].classList.remove(i.legendInactiveClass)}}(n.config.plotOptions.heatmap.colorScale.ranges[a])}else"mouseout"===t.type&&s("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc",i=this.w,n=0;if(i.config.series.length>1)for(var r=i.config.series.map(function(e,n){var r=!1;return t&&(r="bar"===i.config.series[n].type||"column"===i.config.series[n].type),e.data&&e.data.length>0&&!r?n:-1}),s="asc"===e?0:r.length-1;"asc"===e?s<r.length:s>=0;"asc"===e?s++:s--)if(-1!==r[s]){n=r[s];break}return n}},{key:"getPreviousPaths",value:function(){var t=this.w;function e(e,i,n){for(var r=e[i].childNodes,s={type:n,paths:[],realIndex:e[i].getAttribute("data:realIndex")},a=0;a<r.length;a++)if(r[a].hasAttribute("pathTo")){var o=r[a].getAttribute("pathTo");s.paths.push({d:o})}t.globals.previousPaths.push(s)}t.globals.previousPaths=[],["line","area","bar","rangebar","candlestick","radar"].forEach(function(i){for(var n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(i,"-series .apexcharts-series")),r=0;r<n.length;r++)e(n,r,i)}),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series"));if(i.length>0)for(var n=function(e){for(var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(e,"'] rect")),n=[],r=function(t){var e=function(e){return i[t].getAttribute(e)},r={x:parseFloat(e("x")),y:parseFloat(e("y")),width:parseFloat(e("width")),height:parseFloat(e("height"))};n.push({rect:r,color:i[t].getAttribute("color")})},s=0;s<i.length;s++)r(s);t.globals.previousPaths.push(n)},r=0;r<i.length;r++)n(r);t.globals.axisCharts||(t.globals.previousPaths=t.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(t){var e=this.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series"));if(i.length>0)for(var n=0;n<i.length;n++){for(var r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series[data\\:realIndex='").concat(n,"'] circle")),s=[],a=0;a<r.length;a++)s.push({x:r[a].getAttribute("cx"),y:r[a].getAttribute("cy"),r:r[a].getAttribute("r")});e.globals.previousPaths.push(s)}}},{key:"clearPreviousPaths",value:function(){var t=this.w;t.globals.previousPaths=[],t.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var t=this.w,e=t.config.noData,i=new x(this.ctx),n=t.globals.svgWidth/2,r=t.globals.svgHeight/2,s="middle";if(t.globals.noData=!0,t.globals.animationEnded=!0,"left"===e.align?(n=10,s="start"):"right"===e.align&&(n=t.globals.svgWidth-10,s="end"),"top"===e.verticalAlign?r=50:"bottom"===e.verticalAlign&&(r=t.globals.svgHeight-50),n+=e.offsetX,r=r+parseInt(e.style.fontSize,10)+2+e.offsetY,void 0!==e.text&&""!==e.text){var a=i.drawText({x:n,y:r,text:e.text,textAnchor:s,fontSize:e.style.fontSize,fontFamily:e.style.fontFamily,foreColor:e.style.color,opacity:1,class:"apexcharts-text-nodata"});t.globals.dom.Paper.add(a)}}},{key:"setNullSeriesToZeroValues",value:function(t){for(var e=this.w,i=0;i<t.length;i++)if(0===t[i].length)for(var n=0;n<t[e.globals.maxValsInArrayIndex].length;n++)t[i].push(0);return t}},{key:"hasAllSeriesEqualX",value:function(){for(var t=!0,e=this.w,i=this.filteredSeriesX(),n=0;n<i.length-1;n++)if(i[n][0]!==i[n+1][0]){t=!1;break}return e.globals.allSeriesHasEqualX=t,t}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map(function(t){return t.length>0?t:[]})}}]),t}(),N=function(){function t(e){s(this,t),this.w=e.w,this.barCtx=e}return o(t,[{key:"initVariables",value:function(t){var e=this.w;this.barCtx.series=t,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i<t.length;i++)if(t[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=t[i].length),e.globals.isXNumeric)for(var n=0;n<t[i].length;n++)e.globals.seriesX[i][n]>e.globals.minX&&e.globals.seriesX[i][n]<e.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=e.globals.dataPoints;0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],this.barCtx.radiusOnSeriesNumber=t.length-1,e.globals.comboCharts||this.checkZeroSeries({series:t})}},{key:"initialPositions",value:function(){var t,e,i,n,r,s,a,o,l=this.w,c=l.globals.dataPoints;this.barCtx.isTimelineBar&&(c=l.globals.labels.length);var h=this.barCtx.seriesLen;if(l.config.plotOptions.bar.rangeBarGroupRows&&(h=1),this.barCtx.isHorizontal)r=(i=l.globals.gridHeight/c)/h,l.globals.isXNumeric&&(r=(i=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),r=r*parseInt(this.barCtx.barOptions.barHeight,10)/100,o=this.barCtx.baseLineInvertedY+l.globals.padHorizontal+(this.barCtx.isReversed?l.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),e=(i-r*this.barCtx.seriesLen)/2;else{if(n=l.globals.gridWidth/this.barCtx.visibleItems,l.config.xaxis.convertedCatToNumeric&&(n=l.globals.gridWidth/l.globals.dataPoints),s=n/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100,l.globals.isXNumeric){var d=this.barCtx.xRatio;l.config.xaxis.convertedCatToNumeric&&(d=this.barCtx.initialXRatio),l.globals.minXDiff&&.5!==l.globals.minXDiff&&l.globals.minXDiff/d>0&&(n=l.globals.minXDiff/d),(s=n/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(s=1)}a=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),t=l.globals.padHorizontal+(n-s*this.barCtx.seriesLen)/2}return{x:t,y:e,yDivision:i,xDivision:n,barHeight:r,barWidth:s,zeroH:a,zeroW:o}}},{key:"getPathFillColor",value:function(t,e,i,n){var r=this.w,s=new D(this.barCtx.ctx),a=null,o=this.barCtx.barOptions.distributed?i:e;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(n){t[e][i]>=n.from&&t[e][i]<=n.to&&(a=n.color)}),r.config.series[e].data[i]&&r.config.series[e].data[i].fillColor&&(a=r.config.series[e].data[i].fillColor),s.fillPath({seriesNumber:this.barCtx.barOptions.distributed?o:n,dataPointIndex:i,color:a,value:t[e][i]})}},{key:"getStrokeWidth",value:function(t,e,i){var n=0,r=this.w;return this.barCtx.isNullValue=null==this.barCtx.series[t][e],r.config.stroke.show&&(this.barCtx.isNullValue||(n=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),n}},{key:"barBackground",value:function(t){var e=t.j,i=t.i,n=t.x1,r=t.x2,s=t.y1,a=t.y2,o=t.elSeries,l=this.w,c=new x(this.barCtx.ctx),h=new L(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&h===i){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e-=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=c.drawRect(void 0!==n?n:0,void 0!==s?s:0,void 0!==r?r:l.globals.gridWidth,void 0!==a?a:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,this.barCtx.barOptions.colors.backgroundBarColors[e],this.barCtx.barOptions.colors.backgroundBarOpacity);o.add(d),d.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(t){var e=t.barWidth,i=t.barXPosition,n=t.yRatio,r=t.y1,s=t.y2,a=t.strokeWidth,o=t.series,l=t.realIndex,c=t.i,h=t.j,d=t.w,u=new x(this.barCtx.ctx);(a=Array.isArray(a)?a[l]:a)||(a=0);var p=this.getRoundedBars(d,{barWidth:e,strokeWidth:a,yRatio:n,barXPosition:i,y1:r,y2:s},o,c,h),f=i,g=i+e,m=u.move(f,r),b=u.move(f,r),v=u.line(g-a,r);return d.globals.previousPaths.length>0&&(b=this.barCtx.getPreviousPath(l,h,!1)),m=m+u.line(f,p.y2)+p.pathWithRadius+u.line(g-a,p.y2)+v+v+"z",b=b+u.line(f,r)+v+v+v+v+v+u.line(f,r),d.config.chart.stacked&&(this.barCtx.yArrj.push(p.y2),this.barCtx.yArrjF.push(Math.abs(r-p.y2)),this.barCtx.yArrjVal.push(this.barCtx.series[c][h])),{pathTo:m,pathFrom:b}}},{key:"getBarpaths",value:function(t){var e=t.barYPosition,i=t.barHeight,n=t.x1,r=t.x2,s=t.strokeWidth,a=t.series,o=t.realIndex,l=t.i,c=t.j,h=t.w,d=new x(this.barCtx.ctx);(s=Array.isArray(s)?s[o]:s)||(s=0);var u=this.getRoundedBars(h,{barHeight:i,strokeWidth:s,barYPosition:e,x2:r,x1:n},a,l,c),p=d.move(n,e),f=d.move(n,e);h.globals.previousPaths.length>0&&(f=this.barCtx.getPreviousPath(o,c,!1));var g=e,m=e+i,b=d.line(n,m-s);return p=p+d.line(u.x2,g)+u.pathWithRadius+d.line(u.x2,m-s)+b+b+"z",f=f+d.line(n,g)+b+b+b+b+b+d.line(n,g),h.config.chart.stacked&&(this.barCtx.xArrj.push(u.x2),this.barCtx.xArrjF.push(Math.abs(n-u.x2)),this.barCtx.xArrjVal.push(this.barCtx.series[l][c])),{pathTo:p,pathFrom:f}}},{key:"getRoundedBars",value:function(t,e,i,n,r){var s=new x(this.barCtx.ctx),a=t.config.plotOptions.bar.borderRadius;if(t.config.chart.stacked&&i.length>1&&n!==this.barCtx.radiusOnSeriesNumber&&(a=0),this.barCtx.isHorizontal){var o="",l=e.x2;if(Math.abs(e.x1-e.x2)<a&&(a=Math.abs(e.x1-e.x2)),void 0!==i[n][r]||null!==i[n][r]){var c=this.barCtx.isReversed?i[n][r]>0:i[n][r]<0;c&&(a*=-1),o=s.quadraticCurve((l-=a)+a,e.barYPosition,l+a,e.barYPosition+(c?-1*a:a))+s.line(l+a,e.barYPosition+e.barHeight-e.strokeWidth-(c?-1*a:a))+s.quadraticCurve(l+a,e.barYPosition+e.barHeight-e.strokeWidth,l,e.barYPosition+e.barHeight-e.strokeWidth)}return{pathWithRadius:o,x2:l}}var h="",d=e.y2;if(Math.abs(e.y1-e.y2)<a&&(a=Math.abs(e.y1-e.y2)),void 0!==i[n][r]||null!==i[n][r]){var u=i[n][r]<0;u&&(a*=-1),h=s.quadraticCurve(e.barXPosition,(d+=a)-a,e.barXPosition+(u?-1*a:a),d-a)+s.line(e.barXPosition+e.barWidth-e.strokeWidth-(u?-1*a:a),d-a)+s.quadraticCurve(e.barXPosition+e.barWidth-e.strokeWidth,d-a,e.barXPosition+e.barWidth-e.strokeWidth,d)}return{pathWithRadius:h,y2:d}}},{key:"checkZeroSeries",value:function(t){for(var e=t.series,i=this.w,n=0;n<e.length;n++){for(var r=0,s=0;s<e[i.globals.maxValsInArrayIndex].length;s++)r+=e[n][s];0===r&&this.barCtx.zeroSerieses.push(n)}for(var a=e.length-1;a>=0;a--)this.barCtx.zeroSerieses.indexOf(a)>-1&&a===this.radiusOnSeriesNumber&&(this.barCtx.radiusOnSeriesNumber-=1);for(var o=e.length-1;o>=0;o--)i.globals.collapsedSeriesIndices.indexOf(this.barCtx.radiusOnSeriesNumber)>-1&&(this.barCtx.radiusOnSeriesNumber-=1)}},{key:"getXForValue",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=i?e:null;return null!=t&&(n=e+t/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?t/this.barCtx.invertedYRatio:0)),n}},{key:"getYForValue",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=i?e:null;return null!=t&&(n=e-t/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?t/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),n}},{key:"getGoalValues",value:function(t,e,i,n,r){var s=this,a=this.w,o=[];return a.globals.seriesGoals[n]&&a.globals.seriesGoals[n][r]&&Array.isArray(a.globals.seriesGoals[n][r])&&a.globals.seriesGoals[n][r].forEach(function(n){var r;o.push((l(r={},t,"x"===t?s.getXForValue(n.value,e,!1):s.getYForValue(n.value,i,!1)),l(r,"attrs",n),r))}),o}},{key:"drawGoalLine",value:function(t){var e=t.barXPosition,i=t.barYPosition,n=t.goalX,r=t.goalY,s=t.barWidth,a=t.barHeight,o=new x(this.barCtx.ctx),l=o.group({className:"apexcharts-bar-goals-groups"}),c=null;return this.barCtx.isHorizontal?Array.isArray(n)&&n.forEach(function(t){c=o.drawLine(t.x,i,t.x,i+a,t.attrs.strokeColor?t.attrs.strokeColor:void 0,0,t.attrs.strokeWidth?t.attrs.strokeWidth:2),l.add(c)}):Array.isArray(r)&&r.forEach(function(t){c=o.drawLine(e,t.y,e+s,t.y,t.attrs.strokeColor?t.attrs.strokeColor:void 0,0,t.attrs.strokeWidth?t.attrs.strokeWidth:2),l.add(c)}),l}}]),t}(),z=function(){function t(e,i){s(this,t),this.ctx=e,this.w=e.w;var n=this.w;this.barOptions=n.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=n.config.stroke.width,this.isNullValue=!1,this.isTimelineBar="datetime"===n.config.xaxis.type&&n.globals.seriesRangeBarTimeline.length,this.xyRatios=i,null!==this.xyRatios&&(this.xRatio=i.xRatio,this.initialXRatio=i.initialXRatio,this.yRatio=i.yRatio,this.invertedXRatio=i.invertedXRatio,this.invertedYRatio=i.invertedYRatio,this.baseLineY=i.baseLineY,this.baseLineInvertedY=i.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.barHelpers=new N(this)}return o(t,[{key:"draw",value:function(t,e){var i=this.w,n=new x(this.ctx),r=new k(this.ctx,i);t=r.getLogSeries(t),this.series=t,this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);var s=n.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.");for(var a=0,o=0;a<t.length;a++,o++){var l,c,d,u,p=void 0,f=void 0,g=[],m=[],b=i.globals.comboCharts?e[a]:a,y=n.group({class:"apexcharts-series",rel:a+1,seriesName:v.escapeString(i.globals.seriesNames[b]),"data:realIndex":b});this.ctx.series.addCollapsedClassToSeries(y,b),t[a].length>0&&(this.visibleI=this.visibleI+1);var _=0,w=0;this.yRatio.length>1&&(this.yaxisIndex=b),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var C=this.barHelpers.initialPositions();f=C.y,_=C.barHeight,c=C.yDivision,u=C.zeroW,p=C.x,w=C.barWidth,l=C.xDivision,d=C.zeroH,this.horizontal||m.push(p+w/2);for(var S=n.group({class:"apexcharts-datalabels","data:realIndex":b}),T=n.group({class:"apexcharts-bar-goals-markers",style:"pointer-events: none"}),A=0;A<i.globals.dataPoints;A++){var O=this.barHelpers.getStrokeWidth(a,A,b),E=null,D={indexes:{i:a,j:A,realIndex:b,bc:o},x:p,y:f,strokeWidth:O,elSeries:y};this.isHorizontal?(E=this.drawBarPaths(h(h({},D),{},{barHeight:_,zeroW:u,yDivision:c})),w=this.series[a][A]/this.invertedYRatio):(E=this.drawColumnPaths(h(h({},D),{},{xDivision:l,barWidth:w,zeroH:d})),_=this.series[a][A]/this.yRatio[this.yaxisIndex]);var P=this.barHelpers.drawGoalLine({barXPosition:E.barXPosition,barYPosition:E.barYPosition,goalX:E.goalX,goalY:E.goalY,barHeight:_,barWidth:w});P&&T.add(P),f=E.y,p=E.x,A>0&&m.push(p+w/2),g.push(f);var I=this.barHelpers.getPathFillColor(t,a,A,b);this.renderSeries({realIndex:b,pathFill:I,j:A,i:a,pathFrom:E.pathFrom,pathTo:E.pathTo,strokeWidth:O,elSeries:y,x:p,y:f,series:t,barHeight:_,barWidth:w,elDataLabelsWrap:S,elGoalsMarkers:T,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[b]=m,i.globals.seriesYvalues[b]=g,s.add(y)}return s}},{key:"renderSeries",value:function(t){var e=t.realIndex,i=t.pathFill,n=t.lineFill,r=t.j,s=t.i,a=t.pathFrom,o=t.pathTo,l=t.strokeWidth,c=t.elSeries,h=t.x,d=t.y,u=t.y1,p=t.y2,f=t.series,g=t.barHeight,m=t.barWidth,b=t.barYPosition,v=t.elDataLabelsWrap,y=t.elGoalsMarkers,w=t.visibleSeries,C=t.type,k=this.w,S=new x(this.ctx);n||(n=this.barOptions.distributed?k.globals.stroke.colors[r]:k.globals.stroke.colors[e]),k.config.series[s].data[r]&&k.config.series[s].data[r].strokeColor&&(n=k.config.series[s].data[r].strokeColor),this.isNullValue&&(i="none");var T=S.renderPaths({i:s,j:r,realIndex:e,pathFrom:a,pathTo:o,stroke:n,strokeWidth:l,strokeLineCap:k.config.stroke.lineCap,fill:i,animationDelay:r/k.config.chart.animations.animateGradually.delay*(k.config.chart.animations.speed/k.globals.dataPoints)/2.4,initialSpeed:k.config.chart.animations.speed,dataChangeSpeed:k.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(C,"-area")});T.attr("clip-path","url(#gridRectMask".concat(k.globals.cuid,")"));var A=k.config.forecastDataPoints;A.count>0&&r>=k.globals.dataPoints-A.count&&(T.node.setAttribute("stroke-dasharray",A.dashArray),T.node.setAttribute("stroke-width",A.strokeWidth),T.node.setAttribute("fill-opacity",A.fillOpacity)),void 0!==u&&void 0!==p&&(T.attr("data-range-y1",u),T.attr("data-range-y2",p)),new _(this.ctx).setSelectionFilter(T,e,r),c.add(T);var O=new R(this).handleBarDataLabels({x:h,y:d,y1:u,y2:p,i:s,j:r,series:f,realIndex:e,barHeight:g,barWidth:m,barYPosition:b,renderedPath:T,visibleSeries:w});return null!==O&&v.add(O),c.add(v),y&&c.add(y),c}},{key:"drawBarPaths",value:function(t){var e,i=t.indexes,n=t.barHeight,r=t.strokeWidth,s=t.zeroW,a=t.y,o=t.yDivision,l=t.elSeries,c=this.w,h=i.i,d=i.j;c.globals.isXNumeric&&(a=(c.globals.seriesX[h][d]-c.globals.minX)/this.invertedXRatio-n);var u=a+n*this.visibleI;e=this.barHelpers.getXForValue(this.series[h][d],s);var p=this.barHelpers.getBarpaths({barYPosition:u,barHeight:n,x1:s,x2:e,strokeWidth:r,series:this.series,realIndex:i.realIndex,i:h,j:d,w:c});return c.globals.isXNumeric||(a+=o),this.barHelpers.barBackground({j:d,i:h,y1:u-n*this.visibleI,y2:n*this.seriesLen,elSeries:l}),{pathTo:p.pathTo,pathFrom:p.pathFrom,x:e,y:a,goalX:this.barHelpers.getGoalValues("x",s,null,h,d),barYPosition:u}}},{key:"drawColumnPaths",value:function(t){var e,i=t.indexes,n=t.x,r=t.xDivision,s=t.barWidth,a=t.zeroH,o=t.strokeWidth,l=t.elSeries,c=this.w,h=i.realIndex,d=i.i,u=i.j,p=i.bc;if(c.globals.isXNumeric){var f=h;c.globals.seriesX[h].length||(f=c.globals.maxValsInArrayIndex),n=(c.globals.seriesX[f][u]-c.globals.minX)/this.xRatio-s*this.seriesLen/2}var g=n+s*this.visibleI;e=this.barHelpers.getYForValue(this.series[d][u],a);var m=this.barHelpers.getColumnPaths({barXPosition:g,barWidth:s,y1:a,y2:e,strokeWidth:o,series:this.series,realIndex:i.realIndex,i:d,j:u,w:c});return c.globals.isXNumeric||(n+=r),this.barHelpers.barBackground({bc:p,j:u,i:d,x1:g-o/2-s*this.visibleI,x2:s*this.seriesLen+o/2,elSeries:l}),{pathTo:m.pathTo,pathFrom:m.pathFrom,x:n,y:e,goalY:this.barHelpers.getGoalValues("y",null,a,d,u),barXPosition:g}}},{key:"getPreviousPath",value:function(t,e){for(var i,n=this.w,r=0;r<n.globals.previousPaths.length;r++){var s=n.globals.previousPaths[r];s.paths&&s.paths.length>0&&parseInt(s.realIndex,10)===parseInt(t,10)&&void 0!==n.globals.previousPaths[r].paths[e]&&(i=n.globals.previousPaths[r].paths[e].d)}return i}}]),t}(),F=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return o(t,[{key:"isValidDate",value:function(t){return!isNaN(this.parseDate(t))}},{key:"getTimeStamp",value:function(t){return Date.parse(t)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toISOString().substr(0,25)).getTime():new Date(t).getTime():t}},{key:"getDate",value:function(t){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toUTCString()):new Date(t)}},{key:"parseDate",value:function(t){var e=Date.parse(t);if(!isNaN(e))return this.getTimeStamp(t);var i=Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(t){return Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(t,e){var i=this.w.globals.locale,n=this.w.config.xaxis.labels.datetimeUTC,r=["\0"].concat(m(i.months)),s=["\x01"].concat(m(i.shortMonths)),a=["\x02"].concat(m(i.days)),o=["\x03"].concat(m(i.shortDays));function l(t,e){var i=t+"";for(e=e||2;i.length<e;)i="0"+i;return i}var c=n?t.getUTCFullYear():t.getFullYear();e=(e=(e=e.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);var h=(n?t.getUTCMonth():t.getMonth())+1;e=(e=(e=(e=e.replace(/(^|[^\\])MMMM+/g,"$1"+r[0])).replace(/(^|[^\\])MMM/g,"$1"+s[0])).replace(/(^|[^\\])MM/g,"$1"+l(h))).replace(/(^|[^\\])M/g,"$1"+h);var d=n?t.getUTCDate():t.getDate();e=(e=(e=(e=e.replace(/(^|[^\\])dddd+/g,"$1"+a[0])).replace(/(^|[^\\])ddd/g,"$1"+o[0])).replace(/(^|[^\\])dd/g,"$1"+l(d))).replace(/(^|[^\\])d/g,"$1"+d);var u=n?t.getUTCHours():t.getHours(),p=u>12?u-12:0===u?12:u;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+l(u))).replace(/(^|[^\\])H/g,"$1"+u)).replace(/(^|[^\\])hh+/g,"$1"+l(p))).replace(/(^|[^\\])h/g,"$1"+p);var f=n?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+l(f))).replace(/(^|[^\\])m/g,"$1"+f);var g=n?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+l(g))).replace(/(^|[^\\])s/g,"$1"+g);var b=n?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+l(b,3)),b=Math.round(b/10),e=e.replace(/(^|[^\\])ff/g,"$1"+l(b)),b=Math.round(b/10);var v=u<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+b)).replace(/(^|[^\\])TT+/g,"$1"+v)).replace(/(^|[^\\])T/g,"$1"+v.charAt(0));var y=v.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+y)).replace(/(^|[^\\])t/g,"$1"+y.charAt(0));var _=-t.getTimezoneOffset(),x=n||!_?"Z":_>0?"+":"-";if(!n){var w=(_=Math.abs(_))%60;x+=l(Math.floor(_/60))+":"+l(w)}e=e.replace(/(^|[^\\])K/g,"$1"+x);var C=(n?t.getUTCDay():t.getDay())+1;return(e=(e=(e=(e=e.replace(new RegExp(a[0],"g"),a[C])).replace(new RegExp(o[0],"g"),o[C])).replace(new RegExp(r[0],"g"),r[h])).replace(new RegExp(s[0],"g"),s[h])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e,i){var n=this.w;void 0!==n.config.xaxis.min&&(t=n.config.xaxis.min),void 0!==n.config.xaxis.max&&(e=n.config.xaxis.max);var r=this.getDate(t),s=this.getDate(e),a=this.formatDate(r,"yyyy MM dd HH mm ss fff").split(" "),o=this.formatDate(s,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(a[6],10),maxMillisecond:parseInt(o[6],10),minSecond:parseInt(a[5],10),maxSecond:parseInt(o[5],10),minMinute:parseInt(a[4],10),maxMinute:parseInt(o[4],10),minHour:parseInt(a[3],10),maxHour:parseInt(o[3],10),minDate:parseInt(a[2],10),maxDate:parseInt(o[2],10),minMonth:parseInt(a[1],10)-1,maxMonth:parseInt(o[1],10)-1,minYear:parseInt(a[0],10),maxYear:parseInt(o[0],10)}}},{key:"isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"calculcateLastDaysOfMonth",value:function(t,e,i){return this.determineDaysOfMonths(t,e)-i}},{key:"determineDaysOfYear",value:function(t){var e=365;return this.isLeapYear(t)&&(e=366),e}},{key:"determineRemainingDaysOfYear",value:function(t,e,i){var n=this.daysCntOfYear[e]+i;return e>1&&this.isLeapYear()&&n++,n}},{key:"determineDaysOfMonths",value:function(t,e){var i=30;switch(t=v.monthMod(t),!0){case this.months30.indexOf(t)>-1:2===t&&(i=this.isLeapYear(e)?29:28);break;case this.months31.indexOf(t)>-1:default:i=31}return i}}]),t}(),j=function(t){d(i,z);var e=g(i);function i(){return s(this,i),e.apply(this,arguments)}return o(i,[{key:"draw",value:function(t,e){var i=this.w,n=new x(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=t,this.seriesRangeStart=i.globals.seriesRangeStart,this.seriesRangeEnd=i.globals.seriesRangeEnd,this.barHelpers.initVariables(t);for(var r=n.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),s=0;s<t.length;s++){var a,o,l,c=void 0,d=void 0,u=void 0,p=i.globals.comboCharts?e[s]:s,f=n.group({class:"apexcharts-series",seriesName:v.escapeString(i.globals.seriesNames[p]),rel:s+1,"data:realIndex":p});t[s].length>0&&(this.visibleI=this.visibleI+1);var g=0,m=0;this.yRatio.length>1&&(this.yaxisIndex=p);var b=this.barHelpers.initialPositions();d=b.y,l=b.zeroW,c=b.x,m=b.barWidth,a=b.xDivision,o=b.zeroH;for(var y=n.group({class:"apexcharts-datalabels","data:realIndex":p}),_=n.group({class:"apexcharts-rangebar-goals-markers",style:"pointer-events: none"}),w=0;w<i.globals.dataPoints;w++){var C=this.barHelpers.getStrokeWidth(s,w,p),k=this.seriesRangeStart[s][w],S=this.seriesRangeEnd[s][w],T=null,A=null,O={x:c,y:d,strokeWidth:C,elSeries:f};if(u=b.yDivision,g=b.barHeight,this.isHorizontal){A=d+g*this.visibleI;var E=this.seriesLen;i.config.plotOptions.bar.rangeBarGroupRows&&(E=1);var D=(u-g*E)/2;if(void 0===i.config.series[s].data[w])break;if(this.isTimelineBar&&i.config.series[s].data[w].x){var P=this.detectOverlappingBars({i:s,j:w,barYPosition:A,srty:D,barHeight:g,yDivision:u,initPositions:b});g=P.barHeight,A=P.barYPosition}m=(T=this.drawRangeBarPaths(h({indexes:{i:s,j:w,realIndex:p},barHeight:g,barYPosition:A,zeroW:l,yDivision:u,y1:k,y2:S},O))).barWidth}else g=(T=this.drawRangeColumnPaths(h({indexes:{i:s,j:w,realIndex:p},zeroH:o,barWidth:m,xDivision:a},O))).barHeight;var I=this.barHelpers.drawGoalLine({barXPosition:T.barXPosition,barYPosition:A,goalX:T.goalX,goalY:T.goalY,barHeight:g,barWidth:m});I&&_.add(I),d=T.y,c=T.x;var M=this.barHelpers.getPathFillColor(t,s,w,p);this.renderSeries({realIndex:p,pathFill:M,lineFill:i.globals.stroke.colors[p],j:w,i:s,x:c,y:d,y1:k,y2:S,pathFrom:T.pathFrom,pathTo:T.pathTo,strokeWidth:C,elSeries:f,series:t,barHeight:g,barYPosition:A,barWidth:m,elDataLabelsWrap:y,elGoalsMarkers:_,visibleSeries:this.visibleI,type:"rangebar"})}r.add(f)}return r}},{key:"detectOverlappingBars",value:function(t){var e=t.i,i=t.j,n=t.barYPosition,r=t.srty,s=t.barHeight,a=t.yDivision,o=t.initPositions,l=this.w,c=[],h=l.config.series[e].data[i].rangeName,d=l.config.series[e].data[i].x,u=l.globals.labels.indexOf(d),p=l.globals.seriesRangeBarTimeline[e].findIndex(function(t){return t.x===d&&t.overlaps.length>0});return n=l.config.plotOptions.bar.rangeBarGroupRows?r+a*u:r+s*this.visibleI+a*u,p>-1&&!l.config.plotOptions.bar.rangeBarOverlap&&(c=l.globals.seriesRangeBarTimeline[e][p].overlaps).indexOf(h)>-1&&(n=(s=o.barHeight/c.length)*this.visibleI+a*(100-parseInt(this.barOptions.barHeight,10))/100/2+s*(this.visibleI+c.indexOf(h))+a*u),{barYPosition:n,barHeight:s}}},{key:"drawRangeColumnPaths",value:function(t){var e=t.indexes,i=t.x,n=t.xDivision,r=t.barWidth,s=t.zeroH,a=this.w,o=e.i,l=e.j,c=this.yRatio[this.yaxisIndex],h=e.realIndex,d=this.getRangeValue(h,l),u=Math.min(d.start,d.end),p=Math.max(d.start,d.end);a.globals.isXNumeric&&(i=(a.globals.seriesX[o][l]-a.globals.minX)/this.xRatio-r/2);var f=i+r*this.visibleI;null==this.series[o][l]?u=s:(u=s-u/c,p=s-p/c);var g=Math.abs(p-u),m=this.barHelpers.getColumnPaths({barXPosition:f,barWidth:r,y1:u,y2:p,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:e.realIndex,i:h,j:l,w:a});return a.globals.isXNumeric||(i+=n),{pathTo:m.pathTo,pathFrom:m.pathFrom,barHeight:g,x:i,y:p,goalY:this.barHelpers.getGoalValues("y",null,s,o,l),barXPosition:f}}},{key:"drawRangeBarPaths",value:function(t){var e=t.indexes,i=t.y,n=t.yDivision,r=t.barHeight,s=t.barYPosition,a=t.zeroW,o=this.w,l=a+t.y1/this.invertedYRatio,c=a+t.y2/this.invertedYRatio,h=Math.abs(c-l),d=this.barHelpers.getBarpaths({barYPosition:s,barHeight:r,x1:l,x2:c,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:e.realIndex,realIndex:e.realIndex,j:e.j,w:o});return o.globals.isXNumeric||(i+=n),{pathTo:d.pathTo,pathFrom:d.pathFrom,barWidth:h,x:c,goalX:this.barHelpers.getGoalValues("x",a,null,e.realIndex,e.j),y:i}}},{key:"getRangeValue",value:function(t,e){var i=this.w;return{start:i.globals.seriesRangeStart[t][e],end:i.globals.seriesRangeEnd[t][e]}}},{key:"getTooltipValues",value:function(t){var e=t.ctx,i=t.seriesIndex,n=t.dataPointIndex,r=t.y1,s=t.y2,a=t.w,o=a.globals.seriesRangeStart[i][n],l=a.globals.seriesRangeEnd[i][n],c=a.globals.labels[n],h=a.config.series[i].name?a.config.series[i].name:"",d=a.config.tooltip.y.formatter,u=a.config.tooltip.y.title.formatter,p={w:a,seriesIndex:i,dataPointIndex:n,start:o,end:l};"function"==typeof u&&(h=u(h,p)),Number.isFinite(r)&&Number.isFinite(s)&&(o=r,l=s,a.config.series[i].data[n].x&&(c=a.config.series[i].data[n].x+":"),"function"==typeof d&&(c=d(c,p)));var f="",g="",m=a.globals.colors[i];if(void 0===a.config.tooltip.x.formatter)if("datetime"===a.config.xaxis.type){var b=new F(e);f=b.formatDate(b.getDate(o),a.config.tooltip.x.format),g=b.formatDate(b.getDate(l),a.config.tooltip.x.format)}else f=o,g=l;else f=a.config.tooltip.x.formatter(o),g=a.config.tooltip.x.formatter(l);return{start:o,end:l,startVal:f,endVal:g,ylabel:c,color:m,seriesName:h}}},{key:"buildCustomTooltipHTML",value:function(t){return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t.color+'">'+(t.seriesName||"")+'</span></div><div> <span class="category">'+t.ylabel+' </span> <span class="value start-value">'+t.start+'</span> <span class="separator">-</span> <span class="value end-value">'+t.end+"</span></div></div>"}}]),i}(),U=function(){function t(e){s(this,t),this.opts=e}return o(t,[{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(t){return this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0,v.extend(t,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"candlestick",value:function(){var t=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){return t._getBoxTooltip(e.w,e.seriesIndex,e.dataPointIndex,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var t=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){return t._getBoxTooltip(e.w,e.seriesIndex,e.dataPointIndex,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(t,e){var i=e.seriesIndex,n=e.dataPointIndex,r=e.w;return r.globals.seriesRangeEnd[i][n]-r.globals.seriesRangeStart[i][n]},background:{enabled:!1},style:{colors:["#fff"]}},tooltip:{shared:!1,followCursor:!0,custom:function(t){return t.w.config.plotOptions&&t.w.config.plotOptions.bar&&t.w.config.plotOptions.bar.horizontal?function(t){var e=new j(t.ctx,null),i=e.getTooltipValues(t);return e.buildCustomTooltipHTML({color:i.color,seriesName:i.seriesName,ylabel:i.ylabel,start:i.startVal,end:i.endVal})}(t):function(t){var e=new j(t.ctx,null),i=e.getTooltipValues(t);return e.buildCustomTooltipHTML({color:i.color,seriesName:i.seriesName,ylabel:i.ylabel,start:i.start,end:i.end})}(t)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"area",value:function(){return{stroke:{width:4},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"brush",value:function(t){return v.extend(t,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(t){t.dataLabels=t.dataLabels||{},t.dataLabels.formatter=t.dataLabels.formatter||void 0;var e=t.dataLabels.formatter;return t.yaxis.forEach(function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100}),"bar"===t.chart.type&&(t.dataLabels.formatter=e||function(t){return"number"==typeof t&&t?t.toFixed(0)+"%":t}),t}},{key:"convertCatToNumeric",value:function(t){return t.xaxis.convertedCatToNumeric=!0,t}},{key:"convertCatToNumericXaxis",value:function(t,e,i){t.xaxis.type="numeric",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(t){return v.isNumber(t)?Math.floor(t):t};var n=t.xaxis.labels.formatter,r=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return i&&i.length&&(r=i.map(function(t){return Array.isArray(t)?t:String(t)})),r&&r.length&&(t.xaxis.labels.formatter=function(t){return v.isNumber(t)?n(r[Math.floor(t)-1]):n(t)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",t}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(t){return t},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(t,e,i,n,r){var s=t.globals.seriesCandleO[e][i],a=t.globals.seriesCandleH[e][i],o=t.globals.seriesCandleM[e][i],l=t.globals.seriesCandleL[e][i],c=t.globals.seriesCandleC[e][i];return t.config.series[e].type&&t.config.series[e].type!==r?'<div class="apexcharts-custom-tooltip">\n          '.concat(t.config.series[e].name?t.config.series[e].name:"series-"+(e+1),": <strong>").concat(t.globals.series[e][i],"</strong>\n        </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(t.config.chart.type,'">')+"<div>".concat(n[0],': <span class="value">')+s+"</span></div>"+"<div>".concat(n[1],': <span class="value">')+a+"</span></div>"+(o?"<div>".concat(n[2],': <span class="value">')+o+"</span></div>":"")+"<div>".concat(n[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(n[4],': <span class="value">')+c+"</span></div></div>"}}]),t}(),V=function(){function t(e){s(this,t),this.opts=e}return o(t,[{key:"init",value:function(t){var e=t.responsiveOverride,i=this.opts,n=new O,s=new U(i);this.chartType=i.chart.type,"histogram"===this.chartType&&(i.chart.type="bar",i=v.extend({plotOptions:{bar:{columnWidth:"99.99%"}}},i)),i=this.extendYAxis(i),i=this.extendAnnotations(i);var a=n.init(),o={};if(i&&"object"===r(i)){var l={};l=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","histogram","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)?s[i.chart.type]():s.line(),i.chart.brush&&i.chart.brush.enabled&&(l=s.brush(l)),i.chart.stacked&&"100%"===i.chart.stackType&&(i=s.stacked100(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},e||(i.xaxis.convertedCatToNumeric=!1),((i=this.checkForCatToNumericXAxis(this.chartType,l,i)).chart.sparkline&&i.chart.sparkline.enabled||window.Apex.chart&&window.Apex.chart.sparkline&&window.Apex.chart.sparkline.enabled)&&(l=s.sparkline(l)),o=v.extend(a,l)}var c=v.extend(o,window.Apex);return a=v.extend(c,i),this.handleUserInputErrors(a)}},{key:"checkForCatToNumericXAxis",value:function(t,e,i){var n=new U(i);return"bar"===t&&i.plotOptions&&i.plotOptions.bar&&i.plotOptions.bar.horizontal||"pie"===t||"polarArea"===t||"donut"===t||"radar"===t||"radialBar"===t||"heatmap"===t||!("datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type)||"between"===(i.xaxis.tickPlacement?i.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement)||(i=n.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(t,e){var i=new O;(void 0===t.yaxis||!t.yaxis||Array.isArray(t.yaxis)&&0===t.yaxis.length)&&(t.yaxis={}),t.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(t.yaxis=v.extend(t.yaxis,window.Apex.yaxis)),t.yaxis=t.yaxis.constructor!==Array?[v.extend(i.yAxis,t.yaxis)]:v.extendArray(t.yaxis,i.yAxis);var n=!1;t.yaxis.forEach(function(t){t.logarithmic&&(n=!0)});var r=t.series;return e&&!r&&(r=e.config.series),n&&r.length!==t.yaxis.length&&r.length&&(t.yaxis=r.map(function(e,n){if(e.name||(r[n].name="series-".concat(n+1)),t.yaxis[n])return t.yaxis[n].seriesName=r[n].name,t.yaxis[n];var s=v.extend(i.yAxis,t.yaxis[0]);return s.show=!1,s})),n&&r.length>1&&r.length!==t.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both."),t}},{key:"extendAnnotations",value:function(t){return void 0===t.annotations&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),this.extendPointAnnotations(t)}},{key:"extendYAxisAnnotations",value:function(t){var e=new O;return t.annotations.yaxis=v.extendArray(void 0!==t.annotations.yaxis?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var e=new O;return t.annotations.xaxis=v.extendArray(void 0!==t.annotations.xaxis?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var e=new O;return t.annotations.points=v.extendArray(void 0!==t.annotations.points?t.annotations.points:[],e.pointAnnotation),t}},{key:"checkForDarkTheme",value:function(t){t.theme&&"dark"===t.theme.mode&&(t.tooltip||(t.tooltip={}),"light"!==t.tooltip.theme&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.chart.background||(t.chart.background="#424242"),t.theme.palette||(t.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(t){var e=t;if(e.tooltip.shared&&e.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===e.chart.type&&e.plotOptions.bar.horizontal){if(e.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return"bar"!==e.chart.type&&"rangeBar"!==e.chart.type||e.tooltip.shared&&"barWidth"===e.xaxis.crosshairs.width&&e.series.length>1&&(e.xaxis.crosshairs.width="tickWidth"),"candlestick"!==e.chart.type&&"boxPlot"!==e.chart.type||e.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(e.chart.type," chart is not supported.")),e.yaxis[0].reversed=!1),e.chart.group&&0===e.yaxis[0].labels.minWidth&&console.warn("It looks like you have multiple charts in synchronization. You must provide yaxis.labels.minWidth which must be EQUAL for all grouped charts to prevent incorrect behaviour."),Array.isArray(e.stroke.width)&&"line"!==e.chart.type&&"area"!==e.chart.type&&(console.warn("stroke.width option accepts array only for line and area charts. Reverted back to Number"),e.stroke.width=e.stroke.width[0]),e}}]),t}(),B=function(){function t(){s(this,t)}return o(t,[{key:"initGlobalVars",value:function(t){t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleM=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRangeBarTimeline=[],t.seriesPercent=[],t.seriesGoals=[],t.seriesX=[],t.seriesZ=[],t.seriesNames=[],t.seriesTotals=[],t.seriesLog=[],t.seriesColors=[],t.stackedSeriesTotals=[],t.seriesXvalues=[],t.seriesYvalues=[],t.labels=[],t.categoryLabels=[],t.timescaleLabels=[],t.noLabelsProvided=!1,t.resizeTimer=null,t.selectionResizeTimer=null,t.delayedElements=[],t.pointsArray=[],t.dataLabelsRects=[],t.isXNumeric=!1,t.xaxisLabelsCount=0,t.skipLastTimelinelabel=!1,t.skipFirstTimelinelabel=!1,t.isDataXYZ=!1,t.isMultiLineX=!1,t.isMultipleYAxis=!1,t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE,t.minYArr=[],t.maxYArr=[],t.maxX=-Number.MAX_VALUE,t.minX=Number.MAX_VALUE,t.initialMaxX=-Number.MAX_VALUE,t.initialMinX=Number.MAX_VALUE,t.maxDate=0,t.minDate=Number.MAX_VALUE,t.minZ=Number.MAX_VALUE,t.maxZ=-Number.MAX_VALUE,t.minXDiff=Number.MAX_VALUE,t.yAxisScale=[],t.xAxisScale=null,t.xAxisTicksPositions=[],t.yLabelsCoords=[],t.yTitleCoords=[],t.barPadForNumericAxis=0,t.padHorizontal=0,t.xRange=0,t.yRange=[],t.zRange=0,t.dataPoints=0,t.xTickAmount=0}},{key:"globalVars",value:function(t){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:t.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:"pan"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.pan,selectionEnabled:"selection"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(t){var e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=v.extend({},t),e.initialSeries=v.clone(t.series),e.lastXAxis=v.clone(e.initialConfig.xaxis),e.lastYAxis=v.clone(e.initialConfig.yaxis),e}}]),t}(),Y=function(){function t(e){s(this,t),this.opts=e}return o(t,[{key:"init",value:function(){var t=new V(this.opts).init({responsiveOverride:!1});return{config:t,globals:(new B).init(t)}}}]),t}(),H=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new k(this.ctx)}return o(t,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new L(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&null!==t[this.activeSeriesIndex].data[0]&&void 0!==t[this.activeSeriesIndex].data[0].x&&null!==t[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var t=this.w.config.series.slice(),e=new L(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&null!=t[this.activeSeriesIndex].data[0]&&t[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(t,e){for(var i=this.w.config,n=this.w.globals,r="boxPlot"===i.chart.type||"boxPlot"===i.series[e].type,s=0;s<t[e].data.length;s++)if(void 0!==t[e].data[s][1]&&(Array.isArray(t[e].data[s][1])&&4===t[e].data[s][1].length&&!r?this.twoDSeries.push(v.parseNumber(t[e].data[s][1][3])):this.twoDSeries.push(v.parseNumber(t[e].data[s].length>=5?t[e].data[s][4]:t[e].data[s][1])),n.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){var a=new Date(t[e].data[s][0]);a=new Date(a).getTime(),this.twoDSeriesX.push(a)}else this.twoDSeriesX.push(t[e].data[s][0]);for(var o=0;o<t[e].data.length;o++)void 0!==t[e].data[o][2]&&(this.threeDSeries.push(t[e].data[o][2]),n.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(t,e){var i=this.w.config,n=this.w.globals,r=new F(this.ctx),s=e;n.collapsedSeriesIndices.indexOf(e)>-1&&(s=this.activeSeriesIndex);for(var a=0;a<t[e].data.length;a++)void 0!==t[e].data[a].y&&(Array.isArray(t[e].data[a].y)?this.twoDSeries.push(v.parseNumber(t[e].data[a].y[t[e].data[a].y.length-1])):this.twoDSeries.push(v.parseNumber(t[e].data[a].y))),void 0!==t[e].data[a].goals&&Array.isArray(t[e].data[a].goals)?(void 0===this.seriesGoals[e]&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(t[e].data[a].goals)):(void 0===this.seriesGoals[e]&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(null));for(var o=0;o<t[s].data.length;o++){var l="string"==typeof t[s].data[o].x,c=Array.isArray(t[s].data[o].x),h=!c&&!!r.isValidDate(t[s].data[o].x.toString());l||h?l||i.xaxis.convertedCatToNumeric?"datetime"!==i.xaxis.type||n.isBarHorizontal&&n.isRangeData?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[s].data[o].x)):this.twoDSeriesX.push(r.parseDate(t[s].data[o].x)):"datetime"===i.xaxis.type?this.twoDSeriesX.push(r.parseDate(t[s].data[o].x.toString())):(n.dataFormatXNumeric=!0,n.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(t[s].data[o].x))):c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[s].data[o].x)):(n.isXNumeric=!0,n.dataFormatXNumeric=!0,this.twoDSeriesX.push(t[s].data[o].x))}if(t[e].data[0]&&void 0!==t[e].data[0].z){for(var d=0;d<t[e].data.length;d++)this.threeDSeries.push(t[e].data[d].z);n.isDataXYZ=!0}}},{key:"handleRangeData",value:function(t,e){var i=this.w.config,n=this.w.globals,r={};return this.isFormat2DArray()?r=this.handleRangeDataFormat("array",t,e):this.isFormatXY()&&(r=this.handleRangeDataFormat("xy",t,e)),n.seriesRangeStart.push(r.start),n.seriesRangeEnd.push(r.end),"datetime"===i.xaxis.type&&n.seriesRangeBarTimeline.push(r.rangeUniques),n.seriesRangeBarTimeline.forEach(function(t,e){t&&t.forEach(function(t,e){t.y.forEach(function(e,i){for(var n=0;n<t.y.length;n++)i!==n&&e.y1<=t.y[n].y2&&t.y[n].y1<=e.y2&&(t.overlaps.indexOf(e.rangeName)<0&&t.overlaps.push(e.rangeName),t.overlaps.indexOf(t.y[n].rangeName)<0&&t.overlaps.push(t.y[n].rangeName))})})}),r}},{key:"handleCandleStickBoxData",value:function(t,e){var i=this.w.globals,n={};return this.isFormat2DArray()?n=this.handleCandleStickBoxDataFormat("array",t,e):this.isFormatXY()&&(n=this.handleCandleStickBoxDataFormat("xy",t,e)),i.seriesCandleO[e]=n.o,i.seriesCandleH[e]=n.h,i.seriesCandleM[e]=n.m,i.seriesCandleL[e]=n.l,i.seriesCandleC[e]=n.c,n}},{key:"handleRangeDataFormat",value:function(t,e,i){var n=[],r=[],s=e[i].data.filter(function(t,e,i){return e===i.findIndex(function(e){return e.x===t.x})}).map(function(t,e){return{x:t.x,overlaps:[],y:[]}}),a="Please provide [Start, End] values in valid format. Read more https://apexcharts.com/docs/series/#rangecharts",o=new L(this.ctx).getActiveConfigSeriesIndex();if("array"===t){if(2!==e[o].data[0][1].length)throw new Error(a);for(var l=0;l<e[i].data.length;l++)n.push(e[i].data[l][1][0]),r.push(e[i].data[l][1][1])}else if("xy"===t){if(2!==e[o].data[0].y.length)throw new Error(a);for(var c=function(t){var a=v.randomId(),o=e[i].data[t].x,l={y1:e[i].data[t].y[0],y2:e[i].data[t].y[1],rangeName:a};e[i].data[t].rangeName=a;var c=s.findIndex(function(t){return t.x===o});s[c].y.push(l),n.push(l.y1),r.push(l.y2)},h=0;h<e[i].data.length;h++)c(h)}return{start:n,end:r,rangeUniques:s}}},{key:"handleCandleStickBoxDataFormat",value:function(t,e,i){var n=this.w,r="boxPlot"===n.config.chart.type||"boxPlot"===n.config.series[i].type,s=[],a=[],o=[],l=[],c=[];if("array"===t)if(r&&6===e[i].data[0].length||!r&&5===e[i].data[0].length)for(var h=0;h<e[i].data.length;h++)s.push(e[i].data[h][1]),a.push(e[i].data[h][2]),r?(o.push(e[i].data[h][3]),l.push(e[i].data[h][4]),c.push(e[i].data[h][5])):(l.push(e[i].data[h][3]),c.push(e[i].data[h][4]));else for(var d=0;d<e[i].data.length;d++)Array.isArray(e[i].data[d][1])&&(s.push(e[i].data[d][1][0]),a.push(e[i].data[d][1][1]),r?(o.push(e[i].data[d][1][2]),l.push(e[i].data[d][1][3]),c.push(e[i].data[d][1][4])):(l.push(e[i].data[d][1][2]),c.push(e[i].data[d][1][3])));else if("xy"===t)for(var u=0;u<e[i].data.length;u++)Array.isArray(e[i].data[u].y)&&(s.push(e[i].data[u].y[0]),a.push(e[i].data[u].y[1]),r?(o.push(e[i].data[u].y[2]),l.push(e[i].data[u].y[3]),c.push(e[i].data[u].y[4])):(l.push(e[i].data[u].y[2]),c.push(e[i].data[u].y[3])));return{o:s,h:a,m:o,l:l,c:c}}},{key:"parseDataAxisCharts",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,n=this.w.config,r=this.w.globals,s=new F(i),a=n.labels.length>0?n.labels.slice():n.xaxis.categories.slice();r.isTimelineBar="rangeBar"===n.chart.type&&"datetime"===n.xaxis.type;for(var o=function(){for(var t=0;t<a.length;t++)if("string"==typeof a[t]){if(!s.isValidDate(a[t]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");e.twoDSeriesX.push(s.parseDate(a[t]))}else e.twoDSeriesX.push(a[t])},l=0;l<t.length;l++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===t[l].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");if("rangeBar"!==n.chart.type&&"rangeArea"!==n.chart.type&&"rangeBar"!==t[l].type&&"rangeArea"!==t[l].type||(r.isRangeData=!0,this.handleRangeData(t,l)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(t,l):this.isFormatXY()&&this.handleFormatXY(t,l),"candlestick"!==n.chart.type&&"candlestick"!==t[l].type&&"boxPlot"!==n.chart.type&&"boxPlot"!==t[l].type||this.handleCandleStickBoxData(t,l),r.series.push(this.twoDSeries),r.labels.push(this.twoDSeriesX),r.seriesX.push(this.twoDSeriesX),r.seriesGoals=this.seriesGoals,l!==this.activeSeriesIndex||this.fallbackToCategory||(r.isXNumeric=!0);else{"datetime"===n.xaxis.type?(r.isXNumeric=!0,o(),r.seriesX.push(this.twoDSeriesX)):"numeric"===n.xaxis.type&&(r.isXNumeric=!0,a.length>0&&(this.twoDSeriesX=a,r.seriesX.push(this.twoDSeriesX))),r.labels.push(this.twoDSeriesX);var c=t[l].data.map(function(t){return v.parseNumber(t)});r.series.push(c)}r.seriesZ.push(this.threeDSeries),r.seriesNames.push(void 0!==t[l].name?t[l].name:"series-"+parseInt(l+1,10)),r.seriesColors.push(void 0!==t[l].color?t[l].color:void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(t){var e=this.w.globals,i=this.w.config;e.series=t.slice(),e.seriesNames=i.labels.slice();for(var n=0;n<e.series.length;n++)void 0===e.seriesNames[n]&&e.seriesNames.push("series-"+(n+1));return this.w}},{key:"handleExternalLabelsData",value:function(t){var e=this.w.config,i=this.w.globals;e.xaxis.categories.length>0?i.labels=e.xaxis.categories:e.labels.length>0?i.labels=e.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRangeBarTimeline.length&&(i.seriesRangeBarTimeline.map(function(t){t.forEach(function(t){i.labels.indexOf(t.x)<0&&t.x&&i.labels.push(t.x)})}),i.labels=i.labels.filter(function(t,e,i){return i.indexOf(t)===e})),e.xaxis.convertedCatToNumeric&&(new U(e).convertCatToNumericXaxis(e,this.ctx,i.seriesX[0]),this._generateExternalLabels(t))):this._generateExternalLabels(t)}},{key:"_generateExternalLabels",value:function(t){var e=this.w.globals,i=this.w.config,n=[];if(e.axisCharts){if(e.series.length>0)for(var r=0;r<e.series[e.maxValsInArrayIndex].length;r++)n.push(r+1);e.seriesX=[];for(var s=0;s<t.length;s++)e.seriesX.push(n);e.isXNumeric=!0}if(0===n.length){n=e.axisCharts?[]:e.series.map(function(t,e){return e+1});for(var a=0;a<t.length;a++)e.seriesX.push(n)}e.labels=n,i.xaxis.convertedCatToNumeric&&(e.categoryLabels=n.map(function(t){return i.xaxis.labels.formatter(t)})),e.noLabelsProvided=!0}},{key:"parseData",value:function(t){var e=this.w,i=e.config,n=e.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),n.axisCharts?this.parseDataAxisCharts(t):this.parseDataNonAxisCharts(t),this.coreUtils.getLargestSeries(),"bar"===i.chart.type&&i.chart.stacked){var r=new L(this.ctx);n.series=r.setNullSeriesToZeroValues(n.series)}this.coreUtils.getSeriesTotals(),n.axisCharts&&this.coreUtils.getStackedSeriesTotals(),this.coreUtils.getPercentSeries(),n.dataFormatXNumeric||n.isXNumeric&&("numeric"!==i.xaxis.type||0!==i.labels.length||0!==i.xaxis.categories.length)||this.handleExternalLabelsData(t);for(var s=this.coreUtils.getCategoryLabels(n.labels),a=0;a<s.length;a++)if(Array.isArray(s[a])){n.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var t=this,e=this.w;e.globals.ignoreYAxisIndexes=e.globals.collapsedSeries.map(function(i,n){if(t.w.globals.isMultipleYAxis&&!e.config.chart.stacked)return i.index})}}]),t}(),W=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return o(t,[{key:"xLabelFormat",value:function(t,e,i,n){var r=this.w;if("datetime"===r.config.xaxis.type&&void 0===r.config.xaxis.labels.formatter&&void 0===r.config.tooltip.x.formatter){var s=new F(this.ctx);return s.formatDate(s.getDate(e),r.config.tooltip.x.format)}return t(e,i,n)}},{key:"defaultGeneralFormatter",value:function(t){return Array.isArray(t)?t.map(function(t){return t}):t}},{key:"defaultYFormatter",value:function(t,e,i){var n=this.w;return v.isNumber(t)&&(t=t.toFixed(0!==n.globals.yValueDecimal?void 0!==e.decimalsInFloat?e.decimalsInFloat:n.globals.yValueDecimal:n.globals.maxYArr[i]-n.globals.minYArr[i]<5?1:0)),t}},{key:"setLabelFormatters",value:function(){var t=this,e=this.w;return e.globals.xaxisTooltipFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttKeyFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttZFormatter=function(t){return t},e.globals.legendFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.xLabelFormatter=void 0!==e.config.xaxis.labels.formatter?e.config.xaxis.labels.formatter:function(t){if(v.isNumber(t)){if(!e.config.xaxis.convertedCatToNumeric&&"numeric"===e.config.xaxis.type){if(v.isNumber(e.config.xaxis.decimalsInFloat))return t.toFixed(e.config.xaxis.decimalsInFloat);var i=e.globals.maxX-e.globals.minX;return t.toFixed(i>0&&i<100?1:0)}return t.toFixed(e.globals.isBarHorizontal&&e.globals.maxY-e.globals.minYArr<4?1:0)}return t},e.globals.ttKeyFormatter="function"==typeof e.config.tooltip.x.formatter?e.config.tooltip.x.formatter:e.globals.xLabelFormatter,"function"==typeof e.config.xaxis.tooltip.formatter&&(e.globals.xaxisTooltipFormatter=e.config.xaxis.tooltip.formatter),(Array.isArray(e.config.tooltip.y)||void 0!==e.config.tooltip.y.formatter)&&(e.globals.ttVal=e.config.tooltip.y),void 0!==e.config.tooltip.z.formatter&&(e.globals.ttZFormatter=e.config.tooltip.z.formatter),void 0!==e.config.legend.formatter&&(e.globals.legendFormatter=e.config.legend.formatter),e.config.yaxis.forEach(function(i,n){e.globals.yLabelFormatters[n]=void 0!==i.labels.formatter?i.labels.formatter:function(r){return e.globals.xyCharts?Array.isArray(r)?r.map(function(e){return t.defaultYFormatter(e,i,n)}):t.defaultYFormatter(r,i,n):r}}),e.globals}},{key:"heatmapLabelFormatters",value:function(){var t=this.w;if("heatmap"===t.config.chart.type){t.globals.yAxisScale[0].result=t.globals.seriesNames.slice();var e=t.globals.seriesNames.reduce(function(t,e){return t.length>e.length?t:e},0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e}}}]),t}(),X=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"getLabel",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",a=this.w,o=void 0===t[n]?"":t[n],l=o,c=a.globals.xLabelFormatter,h=a.config.xaxis.labels.formatter,d=!1,u=new W(this.ctx),p=o;l=u.xLabelFormat(c,o,p,{i:n,dateFormatter:new F(this.ctx).formatDate,w:a}),void 0!==h&&(l=h(o,t[n],{i:n,dateFormatter:new F(this.ctx).formatDate,w:a}));var f=function(t){var i=null;return e.forEach(function(t){"month"===t.unit?i="year":"day"===t.unit?i="month":"hour"===t.unit?i="day":"minute"===t.unit&&(i="hour")}),i===t};e.length>0?(d=f(e[n].unit),i=e[n].position,l=e[n].value):"datetime"===a.config.xaxis.type&&void 0===h&&(l=""),void 0===l&&(l=""),l=Array.isArray(l)?l:l.toString();var g=new x(this.ctx),m={};m=a.globals.rotateXLabels?g.getTextRects(l,parseInt(s,10),null,"rotate(".concat(a.config.xaxis.labels.rotate," 0 0)"),!1):g.getTextRects(l,parseInt(s,10));var b=!a.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(l)&&(0===l.indexOf("NaN")||0===l.toLowerCase().indexOf("invalid")||l.toLowerCase().indexOf("infinity")>=0||r.indexOf(l)>=0&&b)&&(l=""),{x:i,text:l,textRect:m,isBold:d}}},{key:"checkLabelBasedOnTickamount",value:function(t,e,i){var n=this.w,r=n.config.xaxis.tickAmount;return"dataPoints"===r&&(r=Math.round(n.globals.gridWidth/120)),r>i||t%Math.round(i/(r+1))==0||(e.text=""),e}},{key:"checkForOverflowingLabels",value:function(t,e,i,n,r){var s=this.w;if(0===t&&s.globals.skipFirstTimelinelabel&&(e.text=""),t===i-1&&s.globals.skipLastTimelinelabel&&(e.text=""),s.config.xaxis.labels.hideOverlappingLabels&&n.length>0){var a=r[r.length-1];e.x<a.textRect.width/(s.globals.rotateXLabels?Math.abs(s.config.xaxis.labels.rotate)/12:1.01)+a.x&&(e.text="")}return e}},{key:"checkForReversedLabels",value:function(t,e){var i=this.w;return i.config.yaxis[t]&&i.config.yaxis[t].reversed&&e.reverse(),e}},{key:"isYAxisHidden",value:function(t){var e=this.w,i=new k(this.ctx);return!e.config.yaxis[t].show||!e.config.yaxis[t].showForNullSeries&&i.isSeriesNull(t)&&-1===e.globals.collapsedSeriesIndices.indexOf(t)}},{key:"getYAxisForeColor",value:function(t,e){var i=this.w;return Array.isArray(t)&&i.globals.yAxisScale[e]&&this.ctx.theme.pushExtraColors(t,i.globals.yAxisScale[e].result.length,!1),t}},{key:"drawYAxisTicks",value:function(t,e,i,n,r,s,a){var o=this.w,l=new x(this.ctx),c=o.globals.translateY;if(n.show&&e>0){!0===o.config.yaxis[r].opposite&&(t+=n.width);for(var h=e;h>=0;h--){var d=c+e/10+o.config.yaxis[r].labels.offsetY-1;o.globals.isBarHorizontal&&(d=s*h),"heatmap"===o.config.chart.type&&(d+=s/2);var u=l.drawLine(t+i.offsetX-n.width+n.offsetX,d+n.offsetY,t+i.offsetX+n.offsetX,d+n.offsetY,n.color);a.add(u),c+=s}}}}]),t}(),G=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"scaleSvgNode",value:function(t,e){var i=parseFloat(t.getAttributeNS(null,"width")),n=parseFloat(t.getAttributeNS(null,"height"));t.setAttributeNS(null,"width",i*e),t.setAttributeNS(null,"height",n*e),t.setAttributeNS(null,"viewBox","0 0 "+i+" "+n)}},{key:"fixSvgStringForIe11",value:function(t){if(!v.isIE11())return t;var e=0,i=t.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(t){return 2==++e?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs"':t});return(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(t){var e=this.w.globals.dom.Paper.svg();if(1!==t){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,t),e=(new XMLSerializer).serializeToString(i)}return this.fixSvgStringForIe11(e)}},{key:"cleanup",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=t.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(n,function(t){t.setAttribute("width",0)}),e&&e[0]&&(e[0].setAttribute("x",-500),e[0].setAttribute("x1",-500),e[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var t=this.getSvgString(),e=new Blob([t],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(e)}},{key:"dataURI",value:function(t){var e=this;return new Promise(function(i){var n=e.w,r=t?t.scale||t.width/n.globals.svgWidth:1;e.cleanup();var s=document.createElement("canvas");s.width=n.globals.svgWidth*r,s.height=parseInt(n.globals.dom.elWrap.style.height,10)*r;var a="transparent"===n.config.chart.background?"#fff":n.config.chart.background,o=s.getContext("2d");o.fillStyle=a,o.fillRect(0,0,s.width*r,s.height*r);var l=e.getSvgString(r);if(window.canvg&&v.isIE11()){var c=window.canvg.Canvg.fromString(o,l,{ignoreClear:!0,ignoreDimensions:!0});c.start();var h=s.msToBlob();c.stop(),i({blob:h})}else{var d="data:image/svg+xml,"+encodeURIComponent(l),u=new Image;u.crossOrigin="anonymous",u.onload=function(){if(o.drawImage(u,0,0),s.msToBlob){var t=s.msToBlob();i({blob:t})}else{var e=s.toDataURL("image/png");i({imgURI:e})}},u.src=d}})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var t=this;this.dataURI().then(function(e){var i=e.imgURI,n=e.blob;n?navigator.msSaveOrOpenBlob(n,t.w.globals.chartID+".png"):t.triggerDownload(i,t.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(t){var e=this,i=t.series,n=t.columnDelimiter,r=t.lineDelimiter,s=void 0===r?"\n":r,a=this.w,o=[],l=[],c="data:text/csv;charset=utf-8,\ufeff",h=new H(this.ctx),d=new X(this.ctx),u=function(t){var i="";if(a.globals.axisCharts){if("category"===a.config.xaxis.type||a.config.xaxis.convertedCatToNumeric)if(a.globals.isBarHorizontal){var r=a.globals.yLabelFormatters[0],s=new L(e.ctx).getActiveConfigSeriesIndex();i=r(a.globals.labels[t],{seriesIndex:s,dataPointIndex:t,w:a})}else i=d.getLabel(a.globals.labels,a.globals.timescaleLabels,0,t).text;"datetime"===a.config.xaxis.type&&(a.config.xaxis.categories.length?i=a.config.xaxis.categories[t]:a.config.labels.length&&(i=a.config.labels[t]))}else i=a.config.labels[t];return Array.isArray(i)&&(i=i.join(" ")),v.isNumber(i)?i:i.split(n).join("")};o.push(a.config.chart.toolbar.export.csv.headerCategory),i.map(function(t,e){var i=t.name?t.name:"series-".concat(e);a.globals.axisCharts&&o.push(i.split(n).join("")?i.split(n).join(""):"series-".concat(e))}),a.globals.axisCharts||(o.push(a.config.chart.toolbar.export.csv.headerValue),l.push(o.join(n))),i.map(function(t,e){a.globals.axisCharts?function(t,e){if(o.length&&0===e&&l.push(o.join(n)),t.data&&t.data.length)for(var r=0;r<t.data.length;r++){o=[];var s=u(r);if(s||(h.isFormatXY()?s=i[e].data[r].x:h.isFormat2DArray()&&(s=i[e].data[r]?i[e].data[r][0]:"")),0===e){o.push("datetime"===a.config.xaxis.type&&String(s).length>=10?a.config.chart.toolbar.export.csv.dateFormatter(s):v.isNumber(s)?s:s.split(n).join(""));for(var c=0;c<a.globals.series.length;c++)o.push(a.globals.series[c][r])}("candlestick"===a.config.chart.type||t.type&&"candlestick"===t.type)&&(o.pop(),o.push(a.globals.seriesCandleO[e][r]),o.push(a.globals.seriesCandleH[e][r]),o.push(a.globals.seriesCandleL[e][r]),o.push(a.globals.seriesCandleC[e][r])),("boxPlot"===a.config.chart.type||t.type&&"boxPlot"===t.type)&&(o.pop(),o.push(a.globals.seriesCandleO[e][r]),o.push(a.globals.seriesCandleH[e][r]),o.push(a.globals.seriesCandleM[e][r]),o.push(a.globals.seriesCandleL[e][r]),o.push(a.globals.seriesCandleC[e][r])),"rangeBar"===a.config.chart.type&&(o.pop(),o.push(a.globals.seriesRangeStart[e][r]),o.push(a.globals.seriesRangeEnd[e][r])),o.length&&l.push(o.join(n))}}(t,e):((o=[]).push(a.globals.labels[e].split(n).join("")),o.push(a.globals.series[e]),l.push(o.join(n)))}),c+=l.join(s),this.triggerDownload(encodeURI(c),a.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(t,e,i){var n=document.createElement("a");n.href=t,n.download=(e||this.w.globals.chartID)+i,document.body.appendChild(n),n.click(),document.body.removeChild(n)}}]),t}(),q=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.axesUtils=new X(e),this.xaxisLabels=i.globals.labels.slice(),i.globals.timescaleLabels.length>0&&!i.globals.isBarHorizontal&&(this.xaxisLabels=i.globals.timescaleLabels.slice()),i.config.xaxis.overwriteCategories&&(this.xaxisLabels=i.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],this.offY="top"===i.config.xaxis.position?0:i.globals.gridHeight+1,this.offY=this.offY+i.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===i.config.chart.type&&i.config.plotOptions.bar.horizontal,this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.xaxisBorderWidth=i.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=i.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth=this.xaxisBorderWidth.indexOf("%")>-1?i.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=i.config.xaxis.axisBorder.height,this.yaxis=i.config.yaxis[0]}return o(t,[{key:"drawXaxis",value:function(){var t,e=this,i=this.w,n=new x(this.ctx),r=n.group({class:"apexcharts-xaxis",transform:"translate(".concat(i.config.xaxis.offsetX,", ").concat(i.config.xaxis.offsetY,")")}),s=n.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(i.globals.translateXAxisX,", ").concat(i.globals.translateXAxisY,")")});r.add(s);for(var a=i.globals.padHorizontal,o=[],l=0;l<this.xaxisLabels.length;l++)o.push(this.xaxisLabels[l]);var c=o.length;a=i.globals.isXNumeric?a+(t=i.globals.gridWidth/(c>1?c-1:c))/2+i.config.xaxis.labels.offsetX:a+(t=i.globals.gridWidth/o.length)+i.config.xaxis.labels.offsetX;for(var h=function(r){var l=a-t/2+i.config.xaxis.labels.offsetX;0===r&&1===c&&t/2===a&&1===i.globals.dataPoints&&(l=i.globals.gridWidth/2);var h=e.axesUtils.getLabel(o,i.globals.timescaleLabels,l,r,e.drawnLabels,e.xaxisFontSize),d=28;if(i.globals.rotateXLabels&&(d=22),(h=void 0!==i.config.xaxis.tickAmount&&"dataPoints"!==i.config.xaxis.tickAmount&&"datetime"!==i.config.xaxis.type?e.axesUtils.checkLabelBasedOnTickamount(r,h,c):e.axesUtils.checkForOverflowingLabels(r,h,c,e.drawnLabels,e.drawnLabelsRects)).text&&i.globals.xaxisLabelsCount++,i.config.xaxis.labels.show){var u=n.drawText({x:h.x,y:e.offY+i.config.xaxis.labels.offsetY+d-("top"===i.config.xaxis.position?i.globals.xAxisHeight+i.config.xaxis.axisTicks.height-2:0),text:h.text,textAnchor:"middle",fontWeight:h.isBold?600:i.config.xaxis.labels.style.fontWeight,fontSize:e.xaxisFontSize,fontFamily:e.xaxisFontFamily,foreColor:Array.isArray(e.xaxisForeColors)?i.config.xaxis.convertedCatToNumeric?e.xaxisForeColors[i.globals.minX+r-1]:e.xaxisForeColors[r]:e.xaxisForeColors,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+i.config.xaxis.labels.style.cssClass});s.add(u);var p=document.createElementNS(i.globals.SVGNS,"title");p.textContent=Array.isArray(h.text)?h.text.join(" "):h.text,u.node.appendChild(p),""!==h.text&&(e.drawnLabels.push(h.text),e.drawnLabelsRects.push(h))}a+=t},d=0;d<=c-1;d++)h(d);if(void 0!==i.config.xaxis.title.text){var u=n.group({class:"apexcharts-xaxis-title"}),p=n.drawText({x:i.globals.gridWidth/2+i.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+i.globals.xAxisLabelsHeight+i.config.xaxis.title.offsetY,text:i.config.xaxis.title.text,textAnchor:"middle",fontSize:i.config.xaxis.title.style.fontSize,fontFamily:i.config.xaxis.title.style.fontFamily,fontWeight:i.config.xaxis.title.style.fontWeight,foreColor:i.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+i.config.xaxis.title.style.cssClass});u.add(p),r.add(u)}if(i.config.xaxis.axisBorder.show){var f=i.globals.barPadForNumericAxis,g=n.drawLine(i.globals.padHorizontal+i.config.xaxis.axisBorder.offsetX-f,this.offY,this.xaxisBorderWidth+f,this.offY,i.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);r.add(g)}return r}},{key:"drawXaxisInversed",value:function(t){var e,i,n=this,r=this.w,s=new x(this.ctx),a=r.config.yaxis[0].opposite?r.globals.translateYAxisX[t]:0,o=s.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:t}),l=s.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+a+", 0)"});o.add(l);var c=[];if(r.config.yaxis[t].show)for(var h=0;h<this.xaxisLabels.length;h++)c.push(this.xaxisLabels[h]);i=-(e=r.globals.gridHeight/c.length)/2.2;var d=r.globals.yLabelFormatters[0],u=r.config.yaxis[0].labels;if(u.show)for(var p=function(a){var o=void 0===c[a]?"":c[a];o=d(o,{seriesIndex:t,dataPointIndex:a,w:r});var h=n.axesUtils.getYAxisForeColor(u.style.colors,t),p=0;Array.isArray(o)&&(p=o.length/2*parseInt(u.style.fontSize,10));var f=s.drawText({x:u.offsetX-15,y:i+e+u.offsetY-p,text:o,textAnchor:n.yaxis.opposite?"start":"end",foreColor:Array.isArray(h)?h[a]:h,fontSize:u.style.fontSize,fontFamily:u.style.fontFamily,fontWeight:u.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+u.style.cssClass});l.add(f);var g=document.createElementNS(r.globals.SVGNS,"title");if(g.textContent=Array.isArray(o)?o.join(" "):o,f.node.appendChild(g),0!==r.config.yaxis[t].labels.rotate){var m=s.rotateAroundCenter(f.node);f.node.setAttribute("transform","rotate(".concat(r.config.yaxis[t].labels.rotate," 0 ").concat(m.y,")"))}i+=e},f=0;f<=c.length-1;f++)p(f);if(void 0!==r.config.yaxis[0].title.text){var g=s.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+a+", 0)"}),m=s.drawText({x:0,y:r.globals.gridHeight/2,text:r.config.yaxis[0].title.text,textAnchor:"middle",foreColor:r.config.yaxis[0].title.style.color,fontSize:r.config.yaxis[0].title.style.fontSize,fontWeight:r.config.yaxis[0].title.style.fontWeight,fontFamily:r.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+r.config.yaxis[0].title.style.cssClass});g.add(m),o.add(g)}var b=0;this.isCategoryBarHorizontal&&r.config.yaxis[0].opposite&&(b=r.globals.gridWidth);var v=r.config.xaxis.axisBorder;if(v.show){var y=s.drawLine(r.globals.padHorizontal+v.offsetX+b,1+v.offsetY,r.globals.padHorizontal+v.offsetX+b,r.globals.gridHeight+v.offsetY,v.color,0);o.add(y)}return r.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(b,c.length,r.config.yaxis[0].axisBorder,r.config.yaxis[0].axisTicks,0,e,o),o}},{key:"drawXaxisTicks",value:function(t,e){var i=this.w,n=t;if(!(t<0||t-2>i.globals.gridWidth)){var r=this.offY+i.config.xaxis.axisTicks.offsetY,s=r+i.config.xaxis.axisTicks.height;if("top"===i.config.xaxis.position&&(s=r-i.config.xaxis.axisTicks.height),i.config.xaxis.axisTicks.show){var a=new x(this.ctx).drawLine(t+i.config.xaxis.axisTicks.offsetX,r+i.config.xaxis.offsetY,n+i.config.xaxis.axisTicks.offsetX,s+i.config.xaxis.offsetY,i.config.xaxis.axisTicks.color);e.add(a),a.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var t=this.w,e=[],i=this.xaxisLabels.length,n=t.globals.padHorizontal;if(t.globals.timescaleLabels.length>0)for(var r=0;r<i;r++)e.push(n=this.xaxisLabels[r].position);else for(var s=i,a=0;a<s;a++){var o=s;t.globals.isXNumeric&&"bar"!==t.config.chart.type&&(o-=1),e.push(n+=t.globals.gridWidth/o)}return e}},{key:"xAxisLabelCorrections",value:function(){var t=this.w,e=new x(this.ctx),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text"),r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(t.globals.rotateXLabels||t.config.xaxis.labels.rotateAlways)for(var a=0;a<n.length;a++){var o=e.rotateAroundCenter(n[a]);o.y=o.y-1,o.x=o.x+1,n[a].setAttribute("transform","rotate(".concat(t.config.xaxis.labels.rotate," ").concat(o.x," ").concat(o.y,")")),n[a].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")")),t.config.xaxis.labels.trim&&Array.prototype.forEach.call(n[a].childNodes,function(i){e.placeTextWithEllipsis(i,i.textContent,t.globals.xAxisLabelsHeight-("bottom"===t.config.legend.position?20:10))})}else!function(){for(var i=t.globals.gridWidth/(t.globals.labels.length+1),r=0;r<n.length;r++)t.config.xaxis.labels.trim&&"datetime"!==t.config.xaxis.type&&Array.prototype.forEach.call(n[r].childNodes,function(t){e.placeTextWithEllipsis(t,t.textContent,i)})}();if(r.length>0){var l=r[r.length-1].getBBox(),c=r[0].getBBox();l.x<-20&&r[r.length-1].parentNode.removeChild(r[r.length-1]),c.x+c.width>t.globals.gridWidth&&!t.globals.isBarHorizontal&&r[0].parentNode.removeChild(r[0]);for(var h=0;h<s.length;h++)e.placeTextWithEllipsis(s[h],s[h].textContent,t.config.yaxis[0].labels.maxWidth-2*parseFloat(t.config.yaxis[0].title.style.fontSize)-20)}}}]),t}(),$=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.xaxisLabels=i.globals.labels.slice(),this.axesUtils=new X(e),this.isTimelineBar="datetime"===i.config.xaxis.type&&i.globals.seriesRangeBarTimeline.length,i.globals.timescaleLabels.length>0&&(this.xaxisLabels=i.globals.timescaleLabels.slice())}return o(t,[{key:"drawGridArea",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=new x(this.ctx);null===t&&(t=i.group({class:"apexcharts-grid"}));var n=i.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.globals.gridHeight,"transparent"),r=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,"transparent");return t.add(r),t.add(n),t}},{key:"drawGrid",value:function(){var t=null;return this.w.globals.axisCharts&&(t=this.renderGrid(),this.drawGridArea(t.el)),t}},{key:"createGridMask",value:function(){var t=this.w,e=t.globals,i=new x(this.ctx),n=Array.isArray(t.config.stroke.width)?0:t.config.stroke.width;if(Array.isArray(t.config.stroke.width)){var r=0;t.config.stroke.width.forEach(function(t){r=Math.max(r,t)}),n=r}e.dom.elGridRectMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(e.cuid)),e.dom.elGridRectMarkerMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(e.cuid)),e.dom.elForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elForecastMask.setAttribute("id","forecastMask".concat(e.cuid)),e.dom.elNonForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(e.cuid));var s=t.config.chart.type,a=0,o=0;("bar"===s||"rangeBar"===s||"candlestick"===s||"boxPlot"===s||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&(o=t.config.grid.padding.right,e.barPadForNumericAxis>(a=t.config.grid.padding.left)&&(a=e.barPadForNumericAxis,o=e.barPadForNumericAxis)),e.dom.elGridRect=i.drawRect(-n/2-a-2,-n/2,e.gridWidth+n+o+a+4,e.gridHeight+n,0,"#fff"),new k(this).getLargestMarkerSize();var l=t.globals.markers.largestSize+1;e.dom.elGridRectMarker=i.drawRect(2*-l,2*-l,e.gridWidth+4*l,e.gridHeight+4*l,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);var c=e.dom.baseEl.querySelector("defs");c.appendChild(e.dom.elGridRectMask),c.appendChild(e.dom.elForecastMask),c.appendChild(e.dom.elNonForecastMask),c.appendChild(e.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(t){var e=t.i,i=t.x1,n=this.w;0===e&&n.globals.skipFirstTimelinelabel||e===t.xCount-1&&n.globals.skipLastTimelinelabel&&!n.config.xaxis.labels.formatter||"radar"===n.config.chart.type||(n.config.grid.xaxis.lines.show&&this._drawGridLine({x1:i,y1:t.y1,x2:t.x2,y2:t.y2,parent:t.parent}),new q(this.ctx).drawXaxisTicks(i,this.elg))}},{key:"_drawGridLine",value:function(t){var e=t.x1,i=t.y1,n=t.x2,r=t.y2,s=t.parent,a=this.w,o=s.node.classList.contains("apexcharts-gridlines-horizontal"),l=a.config.grid.strokeDashArray,c=a.globals.barPadForNumericAxis,h=new x(this).drawLine(e-(o?c:0),i,n+(o?c:0),r,a.config.grid.borderColor,l);h.node.classList.add("apexcharts-gridline"),s.add(h)}},{key:"_drawGridBandRect",value:function(t){var e=t.c,i=t.x1,n=t.y1,r=t.x2,s=t.y2,a=t.type,o=this.w,l=new x(this.ctx),c=o.globals.barPadForNumericAxis;if("column"!==a||"datetime"!==o.config.xaxis.type){var h=l.drawRect(i-("row"===a?c:0),n,r+("row"===a?2*c:0),s,0,o.config.grid[a].colors[e],o.config.grid[a].opacity);this.elg.add(h),h.attr("clip-path","url(#gridRectMask".concat(o.globals.cuid,")")),h.node.classList.add("apexcharts-grid-".concat(a))}}},{key:"_drawXYLines",value:function(t){var e=this,i=t.xCount,n=t.tickAmount,r=this.w;if(r.config.grid.xaxis.lines.show||r.config.xaxis.axisTicks.show){var s,a=r.globals.padHorizontal,o=r.globals.gridHeight;r.globals.timescaleLabels.length?function(t){for(var n=t.xC,r=t.y1,s=t.y2,a=0;a<n;a++)e._drawGridLines({i:a,x1:e.xaxisLabels[a].position,y1:r,x2:e.xaxisLabels[a].position,y2:s,xCount:i,parent:e.elgridLinesV})}({xC:i,x1:a,y1:0,x2:s,y2:o}):(r.globals.isXNumeric&&(i=r.globals.xAxisScale.result.length),r.config.xaxis.convertedCatToNumeric&&(i=r.globals.xaxisLabelsCount),function(t){var n=t.xC,s=t.x1,a=t.y1,o=t.x2,l=t.y2;if(void 0!==r.config.xaxis.tickAmount&&"dataPoints"!==r.config.xaxis.tickAmount)r.globals.dom.baseEl.querySelectorAll(".apexcharts-text.apexcharts-xaxis-label tspan:not(:empty)").forEach(function(t,n){var r=t.getBBox();e._drawGridLines({i:n,x1:r.x+r.width/2,y1:a,x2:r.x+r.width/2,y2:l,xCount:i,parent:e.elgridLinesV})});else for(var c=0;c<n+(r.globals.isXNumeric?0:1);c++)0===c&&1===n&&1===r.globals.dataPoints&&(o=s=r.globals.gridWidth/2),e._drawGridLines({i:c,x1:s,y1:a,x2:o,y2:l,xCount:i,parent:e.elgridLinesV}),o=s+=r.globals.gridWidth/(r.globals.isXNumeric?n-1:n)}({xC:i,x1:a,y1:0,x2:s,y2:o}))}if(r.config.grid.yaxis.lines.show){var l=0,c=0,h=r.globals.gridWidth,d=n+1;this.isTimelineBar&&(d=r.globals.labels.length);for(var u=0;u<d+(this.isTimelineBar?1:0);u++)this._drawGridLine({x1:0,y1:l,x2:h,y2:c,parent:this.elgridLinesH}),c=l+=r.globals.gridHeight/(this.isTimelineBar?d:n)}}},{key:"_drawInvertedXYLines",value:function(t){var e=t.xCount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show)for(var n,r=i.globals.padHorizontal,s=i.globals.gridHeight,a=0;a<e+1;a++)i.config.grid.xaxis.lines.show&&this._drawGridLine({x1:r,y1:0,x2:n,y2:s,parent:this.elgridLinesV}),new q(this.ctx).drawXaxisTicks(r,this.elg),n=r=r+i.globals.gridWidth/e+.3;if(i.config.grid.yaxis.lines.show)for(var o=0,l=0,c=i.globals.gridWidth,h=0;h<i.globals.dataPoints+1;h++)this._drawGridLine({x1:0,y1:o,x2:c,y2:l,parent:this.elgridLinesH}),l=o+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var t=this.w,e=new x(this.ctx);this.elg=e.group({class:"apexcharts-grid"}),this.elgridLinesH=e.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=e.group({class:"apexcharts-gridlines-vertical"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),t.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide());for(var i,n=t.globals.yAxisScale.length?t.globals.yAxisScale[0].result.length-1:5,r=0;r<t.globals.series.length&&(void 0!==t.globals.yAxisScale[r]&&(n=t.globals.yAxisScale[r].result.length-1),!(n>2));r++);return!t.globals.isBarHorizontal||this.isTimelineBar?(i=this.xaxisLabels.length,this.isTimelineBar&&(n=t.globals.labels.length,t.config.xaxis.tickAmount&&t.config.xaxis.labels.formatter&&(i=t.config.xaxis.tickAmount)),this._drawXYLines({xCount:i,tickAmount:n})):this._drawInvertedXYLines({xCount:i=n,tickAmount:n=t.globals.xTickAmount}),this.drawGridBands(i,n),{el:this.elg,xAxisTickWidth:t.globals.gridWidth/i}}},{key:"drawGridBands",value:function(t,e){var i=this.w;if(void 0!==i.config.grid.row.colors&&i.config.grid.row.colors.length>0)for(var n=0,r=i.globals.gridHeight/e,s=i.globals.gridWidth,a=0,o=0;a<e;a++,o++)o>=i.config.grid.row.colors.length&&(o=0),this._drawGridBandRect({c:o,x1:0,y1:n,x2:s,y2:r,type:"row"}),n+=i.globals.gridHeight/e;if(void 0!==i.config.grid.column.colors&&i.config.grid.column.colors.length>0)for(var l=i.globals.isBarHorizontal||"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric?t:t-1,c=i.globals.padHorizontal,h=i.globals.padHorizontal+i.globals.gridWidth/l,d=i.globals.gridHeight,u=0,p=0;u<t;u++,p++)p>=i.config.grid.column.colors.length&&(p=0),this._drawGridBandRect({c:p,x1:c,y1:0,x2:h,y2:d,type:"column"}),c+=i.globals.gridWidth/l}}]),t}(),K=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"niceScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4?arguments[4]:void 0,s=this.w,a=Math.abs(e-t);if("dataPoints"===(i=this._adjustTicksForSmallRange(i,n,a))&&(i=s.globals.dataPoints-1),t===Number.MIN_VALUE&&0===e||!v.isNumber(t)&&!v.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE){var o=this.linearScale(t=0,e=i,i);return o}t>e?(console.warn("axis.min cannot be greater than axis.max"),e=t+.1):t===e&&(t=0===t?0:t-.5,e=0===e?2:e+.5);var l=[];a<1&&r&&("candlestick"===s.config.chart.type||"candlestick"===s.config.series[n].type||"boxPlot"===s.config.chart.type||"boxPlot"===s.config.series[n].type||s.globals.isRangeData)&&(e*=1.01);var c=i+1;c<2?c=2:c>2&&(c-=2);var h=a/c,d=Math.floor(v.log10(h)),u=Math.pow(10,d),p=Math.round(h/u);p<1&&(p=1);var f=p*u,g=f*Math.floor(t/f),m=f*Math.ceil(e/f),b=g;if(r&&a>2){for(;l.push(b),!((b+=f)>m););return{result:l,niceMin:l[0],niceMax:l[l.length-1]}}var y=t;(l=[]).push(y);for(var _=Math.abs(e-t)/i,x=0;x<=i;x++)l.push(y+=_);return l[l.length-2]>=e&&l.pop(),{result:l,niceMin:l[0],niceMax:l[l.length-1]}}},{key:"linearScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n=arguments.length>3?arguments[3]:void 0,r=Math.abs(e-t);"dataPoints"===(i=this._adjustTicksForSmallRange(i,n,r))&&(i=this.w.globals.dataPoints-1);var s=r/i;i===Number.MAX_VALUE&&(i=10,s=1);for(var a=[],o=t;i>=0;)a.push(o),o+=s,i-=1;return{result:a,niceMin:a[0],niceMax:a[a.length-1]}}},{key:"logarithmicScale",value:function(t){for(var e=[],i=Math.ceil(Math.log10(t))+1,n=0;n<i;n++)e.push(Math.pow(10,n));return{result:e,niceMin:e[0],niceMax:e[e.length-1]}}},{key:"_adjustTicksForSmallRange",value:function(t,e,i){var n=t;if(void 0!==e&&this.w.config.yaxis[e].labels.formatter&&void 0===this.w.config.yaxis[e].tickAmount){var r=this.w.config.yaxis[e].labels.formatter(1);v.isNumber(Number(r))&&!v.isFloat(r)&&(n=Math.ceil(i))}return n<t?n:t}},{key:"setYScaleForIndex",value:function(t,e,i){var n=this.w.globals,r=this.w.config,s=n.isBarHorizontal?r.xaxis:r.yaxis[t];void 0===n.yAxisScale[t]&&(n.yAxisScale[t]=[]);var a=Math.abs(i-e);s.logarithmic&&a<=5&&(n.invalidLogScale=!0),s.logarithmic&&a>5?(n.allSeriesCollapsed=!1,n.yAxisScale[t]=this.logarithmicScale(i)):i!==-Number.MAX_VALUE&&v.isNumber(i)?(n.allSeriesCollapsed=!1,n.yAxisScale[t]=void 0===s.min&&void 0===s.max||s.forceNiceScale?this.niceScale(e,i,s.tickAmount?s.tickAmount:a<5&&a>1?a+1:5,t,void 0===r.yaxis[t].max&&void 0===r.yaxis[t].min||r.yaxis[t].forceNiceScale):this.linearScale(e,i,s.tickAmount,t)):n.yAxisScale[t]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(t,e){var i=this.w,n=i.globals,r=i.config.xaxis,s=Math.abs(e-t);return n.xAxisScale=e!==-Number.MAX_VALUE&&v.isNumber(e)?this.linearScale(t,e,r.tickAmount?r.tickAmount:s<5&&s>1?s+1:5,0):this.linearScale(0,5,5),n.xAxisScale}},{key:"setMultipleYScales",value:function(){var t=this,e=this.w.globals,i=this.w.config,n=e.minYArr.concat([]),r=e.maxYArr.concat([]),s=[];i.yaxis.forEach(function(e,a){var o=a;i.series.forEach(function(t,i){t.name===e.seriesName&&(o=i,s.push(a!==i?{index:i,similarIndex:a,alreadyExists:!0}:{index:i}))}),t.setYScaleForIndex(a,n[o],r[o])}),this.sameScaleInMultipleAxes(n,r,s)}},{key:"sameScaleInMultipleAxes",value:function(t,e,i){var n=this,r=this.w.config,s=this.w.globals,a=[];i.forEach(function(t){t.alreadyExists&&(void 0===a[t.index]&&(a[t.index]=[]),a[t.index].push(t.index),a[t.index].push(t.similarIndex))}),s.yAxisSameScaleIndices=a,a.forEach(function(t,e){a.forEach(function(i,n){var r,s;e!==n&&(r=t,s=i,r.filter(function(t){return-1!==s.indexOf(t)})).length>0&&(a[e]=a[e].concat(a[n]))})});var o=a.map(function(t){return t.filter(function(e,i){return t.indexOf(e)===i})}).map(function(t){return t.sort()});a=a.filter(function(t){return!!t});var l=o.slice(),c=l.map(function(t){return JSON.stringify(t)});l=l.filter(function(t,e){return c.indexOf(JSON.stringify(t))===e});var h=[],d=[];t.forEach(function(t,i){l.forEach(function(n,r){n.indexOf(i)>-1&&(void 0===h[r]&&(h[r]=[],d[r]=[]),h[r].push({key:i,value:t}),d[r].push({key:i,value:e[i]}))})});var u=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),p=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);h.forEach(function(t,e){t.forEach(function(t,i){u[e]=Math.min(t.value,u[e])})}),d.forEach(function(t,e){t.forEach(function(t,i){p[e]=Math.max(t.value,p[e])})}),t.forEach(function(t,e){d.forEach(function(t,i){var a=u[i],o=p[i];r.chart.stacked&&(o=0,t.forEach(function(t,e){t.value!==-Number.MAX_VALUE&&(o+=t.value),a!==Number.MIN_VALUE&&(a+=h[i][e].value)})),t.forEach(function(i,l){t[l].key===e&&(void 0!==r.yaxis[e].min&&(a="function"==typeof r.yaxis[e].min?r.yaxis[e].min(s.minY):r.yaxis[e].min),void 0!==r.yaxis[e].max&&(o="function"==typeof r.yaxis[e].max?r.yaxis[e].max(s.maxY):r.yaxis[e].max),n.setYScaleForIndex(e,a,o))})})})}},{key:"autoScaleY",value:function(t,e,i){t||(t=this);var n=t.w;if(n.globals.isMultipleYAxis||n.globals.collapsedSeries.length)return console.warn("autoScaleYaxis is not supported in a multi-yaxis chart."),e;var r=n.globals.seriesX[0],s=n.config.chart.stacked;return e.forEach(function(t,a){for(var o=0,l=0;l<r.length;l++)if(r[l]>=i.xaxis.min){o=l;break}var c,h,d=n.globals.minYArr[a],u=n.globals.maxYArr[a],p=n.globals.stackedSeriesTotals;n.globals.series.forEach(function(a,l){var f=a[o];s?(c=h=f=p[o],p.forEach(function(t,e){r[e]<=i.xaxis.max&&r[e]>=i.xaxis.min&&(t>h&&null!==t&&(h=t),a[e]<c&&null!==a[e]&&(c=a[e]))})):(c=h=f,a.forEach(function(t,e){if(r[e]<=i.xaxis.max&&r[e]>=i.xaxis.min){var s=t,a=t;n.globals.series.forEach(function(i,n){null!==t&&(s=Math.min(i[e],s),a=Math.max(i[e],a))}),a>h&&null!==a&&(h=a),s<c&&null!==s&&(c=s)}})),void 0===c&&void 0===h&&(c=d,h=u),(h*=h<0?.9:1.1)<0&&h<u&&(h=u),(c*=c<0?1.1:.9)<0&&c>d&&(c=d),e.length>1?(e[l].min=void 0===t.min?c:t.min,e[l].max=void 0===t.max?h:t.max):(e[0].min=void 0===t.min?c:t.min,e[0].max=void 0===t.max?h:t.max)})}),e}}]),t}(),Z=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w,this.scales=new K(e)}return o(t,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=this.w.config,s=this.w.globals,a=-Number.MAX_VALUE,o=Number.MIN_VALUE;null===n&&(n=t+1);var l=s.series,c=l,h=l;"candlestick"===r.chart.type?(c=s.seriesCandleL,h=s.seriesCandleH):"boxPlot"===r.chart.type?(c=s.seriesCandleO,h=s.seriesCandleC):s.isRangeData&&(c=s.seriesRangeStart,h=s.seriesRangeEnd);for(var d=t;d<n;d++){s.dataPoints=Math.max(s.dataPoints,l[d].length);for(var u=0;u<s.series[d].length;u++){var p=l[d][u];null!==p&&v.isNumber(p)?(void 0!==h[d][u]&&(a=Math.max(a,h[d][u])),void 0!==c[d][u]&&(e=Math.min(e,c[d][u]),i=Math.max(i,c[d][u])),"candlestick"!==this.w.config.chart.type&&"boxPlot"!==this.w.config.chart.type||(void 0!==s.seriesCandleC[d][u]&&(a=Math.max(a,s.seriesCandleO[d][u]),a=Math.max(a,s.seriesCandleH[d][u]),a=Math.max(a,s.seriesCandleL[d][u]),a=Math.max(a,s.seriesCandleC[d][u]),"boxPlot"===this.w.config.chart.type&&(a=Math.max(a,s.seriesCandleM[d][u]))),!r.series[d].type||"candlestick"===r.series[d].type&&"boxPlot"===r.series[d].type||(a=Math.max(a,s.series[d][u]),e=Math.min(e,s.series[d][u])),i=a),s.seriesGoals[d]&&s.seriesGoals[d][u]&&Array.isArray(s.seriesGoals[d][u])&&s.seriesGoals[d][u].forEach(function(t){o!==Number.MIN_VALUE&&(o=Math.min(o,t.value),e=o),a=Math.max(a,t.value),i=a}),v.isFloat(p)&&(p=v.noExponents(p),s.yValueDecimal=Math.max(s.yValueDecimal,p.toString().split(".")[1].length)),o>c[d][u]&&c[d][u]<0&&(o=c[d][u])):s.hasNullValues=!0}}return"rangeBar"===r.chart.type&&s.seriesRangeStart.length&&s.isBarHorizontal&&"datetime"===r.xaxis.type&&(o=e),"bar"===r.chart.type&&(o<0&&a<0&&(a=0),o===Number.MIN_VALUE&&(o=0)),{minY:o,maxY:a,lowestY:e,highestY:i}}},{key:"setYRange",value:function(){var t=this.w.globals,e=this.w.config;t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(t.isMultipleYAxis)for(var n=0;n<t.series.length;n++){var r=this.getMinYMaxY(n,i,null,n+1);t.minYArr.push(r.minY),t.maxYArr.push(r.maxY),i=r.lowestY}var s=this.getMinYMaxY(0,i,null,t.series.length);if(t.minY=s.minY,t.maxY=s.maxY,i=s.lowestY,e.chart.stacked&&this._setStackedMinMax(),("line"===e.chart.type||"area"===e.chart.type||"candlestick"===e.chart.type||"boxPlot"===e.chart.type||"rangeBar"===e.chart.type&&!t.isBarHorizontal)&&t.minY===Number.MIN_VALUE&&i!==-Number.MAX_VALUE&&i!==t.maxY){var a=t.maxY-i;(i>=0&&i<=10||void 0!==e.yaxis[0].min||void 0!==e.yaxis[0].max)&&(a=0),t.minY=i-5*a/100,i>0&&t.minY<0&&(t.minY=0),t.maxY=t.maxY+5*a/100}return e.yaxis.forEach(function(e,i){void 0!==e.max&&("number"==typeof e.max?t.maxYArr[i]=e.max:"function"==typeof e.max&&(t.maxYArr[i]=e.max(t.isMultipleYAxis?t.maxYArr[i]:t.maxY)),t.maxY=t.maxYArr[i]),void 0!==e.min&&("number"==typeof e.min?t.minYArr[i]=e.min:"function"==typeof e.min&&(t.minYArr[i]=e.min(t.isMultipleYAxis?t.minYArr[i]===Number.MIN_VALUE?0:t.minYArr[i]:t.minY)),t.minY=t.minYArr[i])}),t.isBarHorizontal&&["min","max"].forEach(function(i){void 0!==e.xaxis[i]&&"number"==typeof e.xaxis[i]&&("min"===i?t.minY=e.xaxis[i]:t.maxY=e.xaxis[i])}),t.isMultipleYAxis?(this.scales.setMultipleYScales(),t.minY=i,t.yAxisScale.forEach(function(e,i){t.minYArr[i]=e.niceMin,t.maxYArr[i]=e.niceMax})):(this.scales.setYScaleForIndex(0,t.minY,t.maxY),t.minY=t.yAxisScale[0].niceMin,t.maxY=t.yAxisScale[0].niceMax,t.minYArr[0]=t.yAxisScale[0].niceMin,t.maxYArr[0]=t.yAxisScale[0].niceMax),{minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,yAxisScale:t.yAxisScale}}},{key:"setXRange",value:function(){var t=this.w.globals,e=this.w.config,i="numeric"===e.xaxis.type||"datetime"===e.xaxis.type||"category"===e.xaxis.type&&!t.noLabelsProvided||t.noLabelsProvided||t.isXNumeric;if(t.isXNumeric&&function(){for(var e=0;e<t.series.length;e++)if(t.labels[e])for(var i=0;i<t.labels[e].length;i++)null!==t.labels[e][i]&&v.isNumber(t.labels[e][i])&&(t.maxX=Math.max(t.maxX,t.labels[e][i]),t.initialMaxX=Math.max(t.maxX,t.labels[e][i]),t.minX=Math.min(t.minX,t.labels[e][i]),t.initialMinX=Math.min(t.minX,t.labels[e][i]))}(),t.noLabelsProvided&&0===e.xaxis.categories.length&&(t.maxX=t.labels[t.labels.length-1],t.initialMaxX=t.labels[t.labels.length-1],t.minX=1,t.initialMinX=1),t.isXNumeric||t.noLabelsProvided||t.dataFormatXNumeric){var n;if(void 0===e.xaxis.tickAmount?(n=Math.round(t.svgWidth/150),"numeric"===e.xaxis.type&&t.dataPoints<30&&(n=t.dataPoints-1),n>t.dataPoints&&0!==t.dataPoints&&(n=t.dataPoints-1)):"dataPoints"===e.xaxis.tickAmount?(t.series.length>1&&(n=t.series[t.maxValsInArrayIndex].length-1),t.isXNumeric&&(n=t.maxX-t.minX-1)):n=e.xaxis.tickAmount,t.xTickAmount=n,void 0!==e.xaxis.max&&"number"==typeof e.xaxis.max&&(t.maxX=e.xaxis.max),void 0!==e.xaxis.min&&"number"==typeof e.xaxis.min&&(t.minX=e.xaxis.min),void 0!==e.xaxis.range&&(t.minX=t.maxX-e.xaxis.range),t.minX!==Number.MAX_VALUE&&t.maxX!==-Number.MAX_VALUE)if(e.xaxis.convertedCatToNumeric&&!t.dataFormatXNumeric){for(var r=[],s=t.minX-1;s<t.maxX;s++)r.push(s+1);t.xAxisScale={result:r,niceMin:r[0],niceMax:r[r.length-1]}}else t.xAxisScale=this.scales.setXScale(t.minX,t.maxX);else t.xAxisScale=this.scales.linearScale(1,n,n),t.noLabelsProvided&&t.labels.length>0&&(t.xAxisScale=this.scales.linearScale(1,t.labels.length,n-1),t.seriesX=t.labels.slice());i&&(t.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&t.labels.length&&(t.xTickAmount=t.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.maxX}}},{key:"setZRange",value:function(){var t=this.w.globals;if(t.isDataXYZ)for(var e=0;e<t.series.length;e++)if(void 0!==t.seriesZ[e])for(var i=0;i<t.seriesZ[e].length;i++)null!==t.seriesZ[e][i]&&v.isNumber(t.seriesZ[e][i])&&(t.maxZ=Math.max(t.maxZ,t.seriesZ[e][i]),t.minZ=Math.min(t.minZ,t.seriesZ[e][i]))}},{key:"_handleSingleDataPoint",value:function(){var t=this.w.globals,e=this.w.config;if(t.minX===t.maxX){var i=new F(this.ctx);if("datetime"===e.xaxis.type){var n=i.getDate(t.minX);n.setUTCDate(n.getDate()-2),t.minX=new Date(n).getTime();var r=i.getDate(t.maxX);r.setUTCDate(r.getDate()+2),t.maxX=new Date(r).getTime()}else("numeric"===e.xaxis.type||"category"===e.xaxis.type&&!t.noLabelsProvided)&&(t.minX=t.minX-2,t.initialMinX=t.minX,t.maxX=t.maxX+2,t.initialMaxX=t.maxX)}}},{key:"_getMinXDiff",value:function(){var t=this.w.globals;t.isXNumeric&&t.seriesX.forEach(function(e,i){1===e.length&&e.push(t.seriesX[t.maxValsInArrayIndex][t.seriesX[t.maxValsInArrayIndex].length-1]);var n=e.slice();n.sort(function(t,e){return t-e}),n.forEach(function(e,i){if(i>0){var r=e-n[i-1];r>0&&(t.minXDiff=Math.min(r,t.minXDiff))}}),1===t.dataPoints&&t.minXDiff===Number.MAX_VALUE&&(t.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var t=this.w.globals,e=[],i=[];if(t.series.length)for(var n=0;n<t.series[t.maxValsInArrayIndex].length;n++)for(var r=0,s=0,a=0;a<t.series.length;a++)null!==t.series[a][n]&&v.isNumber(t.series[a][n])&&(t.series[a][n]>0?r=r+parseFloat(t.series[a][n])+1e-4:s+=parseFloat(t.series[a][n])),a===t.series.length-1&&(e.push(r),i.push(s));for(var o=0;o<e.length;o++)t.maxY=Math.max(t.maxY,e[o]),t.minY=Math.min(t.minY,i[o])}}]),t}(),Q=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.axisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===i.config.chart.type&&i.config.plotOptions.bar.horizontal,this.xAxisoffX=0,"bottom"===i.config.xaxis.position&&(this.xAxisoffX=i.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new X(e)}return o(t,[{key:"drawYaxis",value:function(t){var e=this,i=this.w,n=new x(this.ctx),r=i.config.yaxis[t].labels.style,s=r.fontSize,a=r.fontFamily,o=r.fontWeight,l=n.group({class:"apexcharts-yaxis",rel:t,transform:"translate("+i.globals.translateYAxisX[t]+", 0)"});if(this.axesUtils.isYAxisHidden(t))return l;var c=n.group({class:"apexcharts-yaxis-texts-g"});l.add(c);var h=i.globals.yAxisScale[t].result.length-1,d=i.globals.gridHeight/h,u=i.globals.translateY,p=i.globals.yLabelFormatters[t],f=i.globals.yAxisScale[t].result.slice();f=this.axesUtils.checkForReversedLabels(t,f);var g="";if(i.config.yaxis[t].labels.show)for(var m=function(l){var m=f[l];m=p(m,l,i);var b=i.config.yaxis[t].labels.padding;i.config.yaxis[t].opposite&&0!==i.config.yaxis.length&&(b*=-1);var v=e.axesUtils.getYAxisForeColor(r.colors,t),y=n.drawText({x:b,y:u+h/10+i.config.yaxis[t].labels.offsetY+1,text:m,textAnchor:i.config.yaxis[t].opposite?"start":"end",fontSize:s,fontFamily:a,fontWeight:o,foreColor:Array.isArray(v)?v[l]:v,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+r.cssClass});l===h&&(g=y),c.add(y);var _=document.createElementNS(i.globals.SVGNS,"title");if(_.textContent=Array.isArray(m)?m.join(" "):m,y.node.appendChild(_),0!==i.config.yaxis[t].labels.rotate){var x=n.rotateAroundCenter(g.node),w=n.rotateAroundCenter(y.node);y.node.setAttribute("transform","rotate(".concat(i.config.yaxis[t].labels.rotate," ").concat(x.x," ").concat(w.y,")"))}u+=d},b=h;b>=0;b--)m(b);if(void 0!==i.config.yaxis[t].title.text){var v=n.group({class:"apexcharts-yaxis-title"}),y=0;i.config.yaxis[t].opposite&&(y=i.globals.translateYAxisX[t]);var _=n.drawText({x:y,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[t].title.offsetY,text:i.config.yaxis[t].title.text,textAnchor:"end",foreColor:i.config.yaxis[t].title.style.color,fontSize:i.config.yaxis[t].title.style.fontSize,fontWeight:i.config.yaxis[t].title.style.fontWeight,fontFamily:i.config.yaxis[t].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[t].title.style.cssClass});v.add(_),l.add(v)}var w=i.config.yaxis[t].axisBorder,C=31+w.offsetX;if(i.config.yaxis[t].opposite&&(C=-31-w.offsetX),w.show){var k=n.drawLine(C,i.globals.translateY+w.offsetY-2,C,i.globals.gridHeight+i.globals.translateY+w.offsetY+2,w.color,0,w.width);l.add(k)}return i.config.yaxis[t].axisTicks.show&&this.axesUtils.drawYAxisTicks(C,h,w,i.config.yaxis[t].axisTicks,t,d,l),l}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new x(this.ctx),n=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),r=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});n.add(r);var s=e.globals.yAxisScale[t].result.length-1,a=e.globals.gridWidth/s+.1,o=a+e.config.xaxis.labels.offsetX,l=e.globals.xLabelFormatter,c=e.globals.yAxisScale[t].result.slice(),h=e.globals.timescaleLabels;h.length>0&&(this.xaxisLabels=h.slice(),s=(c=h.slice()).length),c=this.axesUtils.checkForReversedLabels(t,c);var d=h.length;if(e.config.xaxis.labels.show)for(var u=d?0:s;d?u<d:u>=0;d?u++:u--){var p=c[u];p=l(p,u,e);var f=e.globals.gridWidth+e.globals.padHorizontal-(o-a+e.config.xaxis.labels.offsetX);if(h.length){var g=this.axesUtils.getLabel(c,h,f,u,this.drawnLabels,this.xaxisFontSize);f=g.x,p=g.text,this.drawnLabels.push(g.text),0===u&&e.globals.skipFirstTimelinelabel&&(p=""),u===c.length-1&&e.globals.skipLastTimelinelabel&&(p="")}var m=i.drawText({x:f,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30-("top"===e.config.xaxis.position?e.globals.xAxisHeight+e.config.xaxis.axisTicks.height-2:0),text:p,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:e.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+e.config.xaxis.labels.style.cssClass});r.add(m),m.tspan(p);var b=document.createElementNS(e.globals.SVGNS,"title");b.textContent=p,m.node.appendChild(b),o+=a}return this.inversedYAxisTitleText(n),this.inversedYAxisBorder(n),n}},{key:"inversedYAxisBorder",value:function(t){var e=this.w,i=new x(this.ctx),n=e.config.xaxis.axisBorder;if(n.show){var r=0;"bar"===e.config.chart.type&&e.globals.isXNumeric&&(r-=15);var s=i.drawLine(e.globals.padHorizontal+r+n.offsetX,this.xAxisoffX,e.globals.gridWidth,this.xAxisoffX,n.color,0,n.height);t.add(s)}}},{key:"inversedYAxisTitleText",value:function(t){var e=this.w,i=new x(this.ctx);if(void 0!==e.config.xaxis.title.text){var n=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),r=i.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(e.config.xaxis.title.style.fontSize)+e.config.xaxis.title.offsetY+20,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});n.add(r),t.add(n)}}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,n=new x(this.ctx),r={width:0,height:0},s={width:0,height:0},a=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-texts-g"));null!==a&&(r=a.getBoundingClientRect());var o=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-title text"));if(null!==o&&(s=o.getBoundingClientRect()),null!==o){var l=this.xPaddingForYAxisTitle(t,r,s,e);o.setAttribute("x",l.xPos-(e?10:0))}if(null!==o){var c=n.rotateAroundCenter(o);o.setAttribute("transform","rotate(".concat(e?-1*i.config.yaxis[t].title.rotate:i.config.yaxis[t].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(t,e,i,n){var r=this.w,s=0,a=0,o=10;return void 0===r.config.yaxis[t].title.text||t<0?{xPos:a,padd:0}:(n?(a=e.width+r.config.yaxis[t].title.offsetX+i.width/2+o/2,0===(s+=1)&&(a-=o/2)):(a=-1*e.width+r.config.yaxis[t].title.offsetX+o/2+i.width/2,r.globals.isBarHorizontal&&(a=-1*e.width-r.config.yaxis[t].title.offsetX-(o=25))),{xPos:a,padd:o})}},{key:"setYAxisXPosition",value:function(t,e){var i=this.w,n=0,r=0,s=18,a=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map(function(o,l){var c=i.globals.ignoreYAxisIndexes.indexOf(l)>-1||!o.show||o.floating||0===t[l].width,h=t[l].width+e[l].width;o.opposite?i.globals.isBarHorizontal?i.globals.translateYAxisX[l]=(r=i.globals.gridWidth+i.globals.translateX-1)-o.labels.offsetX:(r=i.globals.gridWidth+i.globals.translateX+a,c||(a=a+h+20),i.globals.translateYAxisX[l]=r-o.labels.offsetX+20):(n=i.globals.translateX-s,c||(s=s+h+20),i.globals.translateYAxisX[l]=n+o.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(e=v.listToArray(e)).forEach(function(e,i){var n=t.config.yaxis[i];if(n&&void 0!==n.labels.align){var r=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-texts-g")),s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-label"));s=v.listToArray(s);var a=r.getBoundingClientRect();"left"===n.labels.align?(s.forEach(function(t,e){t.setAttribute("text-anchor","start")}),n.opposite||r.setAttribute("transform","translate(-".concat(a.width,", 0)"))):"center"===n.labels.align?(s.forEach(function(t,e){t.setAttribute("text-anchor","middle")}),r.setAttribute("transform","translate(".concat(a.width/2*(n.opposite?1:-1),", 0)"))):"right"===n.labels.align&&(s.forEach(function(t,e){t.setAttribute("text-anchor","end")}),n.opposite&&r.setAttribute("transform","translate(".concat(a.width,", 0)")))}})}}]),t}(),J=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w,this.documentEvent=v.bind(this.documentEvent,this)}return o(t,[{key:"addEventListener",value:function(t,e){var i=this.w;i.globals.events.hasOwnProperty(t)?i.globals.events[t].push(e):i.globals.events[t]=[e]}},{key:"removeEventListener",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){var n=i.globals.events[t].indexOf(e);-1!==n&&i.globals.events[t].splice(n,1)}}},{key:"fireEvent",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){e&&e.length||(e=[]);for(var n=i.globals.events[t],r=n.length,s=0;s<r;s++)n[s].apply(null,e)}}},{key:"setupEventHandlers",value:function(){var t=this,e=this.w,i=this.ctx,n=e.globals.dom.baseEl.querySelector(e.globals.chartClass);this.ctx.eventList.forEach(function(t){n.addEventListener(t,function(t){var n=Object.assign({},e,{seriesIndex:e.globals.capturedSeriesIndex,dataPointIndex:e.globals.capturedDataPointIndex});"mousemove"===t.type||"touchmove"===t.type?"function"==typeof e.config.chart.events.mouseMove&&e.config.chart.events.mouseMove(t,i,n):"mouseleave"===t.type||"touchleave"===t.type?"function"==typeof e.config.chart.events.mouseLeave&&e.config.chart.events.mouseLeave(t,i,n):("mouseup"===t.type&&1===t.which||"touchend"===t.type)&&("function"==typeof e.config.chart.events.click&&e.config.chart.events.click(t,i,n),i.ctx.events.fireEvent("click",[t,i,n]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(i){e.globals.dom.baseEl.addEventListener(i,t.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(t){var e=this.w,i=t.target.className;if("click"===t.type){var n=e.globals.dom.baseEl.querySelector(".apexcharts-menu");n&&n.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==i&&n.classList.remove("apexcharts-menu-open")}e.globals.clientX="touchmove"===t.type?t.touches[0].clientX:t.clientX,e.globals.clientY="touchmove"===t.type?t.touches[0].clientY:t.clientY}}]),t}(),tt=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"setCurrentLocaleValues",value:function(t){var e=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(e=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=e.filter(function(e){return e.name===t})[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var n=v.extend(A,i);this.w.globals.locale=n.options}}]),t}(),et=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"drawAxis",value:function(t,e){var i,n,r=this.w.globals,s=this.w.config,a=new q(this.ctx),o=new Q(this.ctx);r.axisCharts&&"radar"!==t&&(r.isBarHorizontal?(n=o.drawYaxisInversed(0),i=a.drawXaxisInversed(0),r.dom.elGraphical.add(i),r.dom.elGraphical.add(n)):(i=a.drawXaxis(),r.dom.elGraphical.add(i),s.yaxis.map(function(t,e){-1===r.ignoreYAxisIndexes.indexOf(e)&&(n=o.drawYaxis(e),r.dom.Paper.add(n))})))}}]),t}(),it=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new x(this.ctx),i=new _(this.ctx),n=t.config.xaxis.crosshairs.fill.gradient,r=t.config.xaxis.crosshairs.dropShadow,s=r.enabled,a=r.left,o=r.top,l=r.blur,c=r.color,h=r.opacity,d=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){"gradient"===t.config.xaxis.crosshairs.fill.type&&(d=e.drawGradient("vertical",n.colorFrom,n.colorTo,n.opacityFrom,n.opacityTo,null,n.stops,null));var u=e.drawRect();1===t.config.xaxis.crosshairs.width&&(u=e.drawLine());var p=t.globals.gridHeight;(!v.isNumber(p)||p<0)&&(p=0);var f=t.config.xaxis.crosshairs.width;(!v.isNumber(f)||f<0)&&(f=0),u.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:p,width:f,height:p,fill:d,filter:"none","fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),s&&(u=i.dropShadow(u,{left:a,top:o,blur:l,color:c,opacity:h})),t.globals.dom.elGraphical.add(u)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new x(this.ctx),i=t.config.yaxis[0].crosshairs,n=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){var r=e.drawLine(-n,0,t.globals.gridWidth+n,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);r.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(r)}var s=e.drawLine(-n,0,t.globals.gridWidth+n,0,i.stroke.color,0,0);s.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(s)}}]),t}(),nt=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"checkResponsiveConfig",value:function(t){var e=this,i=this.w,n=i.config;if(0!==n.responsive.length){var r=n.responsive.slice();r.sort(function(t,e){return t.breakpoint>e.breakpoint?1:e.breakpoint>t.breakpoint?-1:0}).reverse();var s=new V({}),a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r[0].breakpoint,a=window.innerWidth>0?window.innerWidth:screen.width;if(a>n){var o=k.extendArrayProps(s,i.globals.initialConfig,i);t=v.extend(o,t),t=v.extend(i.config,t),e.overrideResponsiveOptions(t)}else for(var l=0;l<r.length;l++)a<r[l].breakpoint&&(t=k.extendArrayProps(s,r[l].options,i),t=v.extend(i.config,t),e.overrideResponsiveOptions(t))};if(t){var o=k.extendArrayProps(s,t,i);o=v.extend(i.config,o),a(o=v.extend(o,t))}else a({})}}},{key:"overrideResponsiveOptions",value:function(t){var e=new V(t).init({responsiveOverride:!0});this.w.config=e}}]),t}(),rt=function(){function t(e){s(this,t),this.ctx=e,this.colors=[],this.w=e.w;var i=this.w;this.isColorFn=!1,this.isHeatmapDistributed="treemap"===i.config.chart.type&&i.config.plotOptions.treemap.distributed||"heatmap"===i.config.chart.type&&i.config.plotOptions.heatmap.distributed,this.isBarDistributed=i.config.plotOptions.bar.distributed&&("bar"===i.config.chart.type||"rangeBar"===i.config.chart.type)}return o(t,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var t=this,e=this.w,i=new v;if(e.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(e.config.theme.mode)),void 0===e.config.colors?e.globals.colors=this.predefined():(e.globals.colors=e.config.colors,Array.isArray(e.config.colors)&&e.config.colors.length>0&&"function"==typeof e.config.colors[0]&&(e.globals.colors=e.config.series.map(function(i,n){var r=e.config.colors[n];return r||(r=e.config.colors[0]),"function"==typeof r?(t.isColorFn=!0,r({value:e.globals.axisCharts?e.globals.series[n][0]?e.globals.series[n][0]:0:e.globals.series[n],seriesIndex:n,dataPointIndex:n,w:e})):r}))),e.globals.seriesColors.map(function(t,i){t&&(e.globals.colors[i]=t)}),e.config.theme.monochrome.enabled){var n=[],r=e.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(r=e.globals.series[0].length*e.globals.series.length);for(var s=e.config.theme.monochrome.color,a=1/(r/e.config.theme.monochrome.shadeIntensity),o=e.config.theme.monochrome.shadeTo,l=0,c=0;c<r;c++){var h=void 0;"dark"===o?(h=i.shadeColor(-1*l,s),l+=a):(h=i.shadeColor(l,s),l+=a),n.push(h)}e.globals.colors=n.slice()}var d=e.globals.colors.slice();this.pushExtraColors(e.globals.colors),["fill","stroke"].forEach(function(i){e.globals[i].colors=void 0===e.config[i].colors?t.isColorFn?e.config.colors:d:e.config[i].colors.slice(),t.pushExtraColors(e.globals[i].colors)}),e.globals.dataLabels.style.colors=void 0===e.config.dataLabels.style.colors?d:e.config.dataLabels.style.colors.slice(),this.pushExtraColors(e.globals.dataLabels.style.colors,50),e.globals.radarPolygons.fill.colors=void 0===e.config.plotOptions.radar.polygons.fill.colors?["dark"===e.config.theme.mode?"#424242":"none"]:e.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(e.globals.radarPolygons.fill.colors,20),e.globals.markers.colors=void 0===e.config.markers.colors?d:e.config.markers.colors.slice(),this.pushExtraColors(e.globals.markers.colors)}},{key:"pushExtraColors",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.w,r=e||n.globals.series.length;if(null===i&&(i=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===n.config.chart.type&&n.config.plotOptions.heatmap.colorScale.inverse),i&&n.globals.series.length&&(r=n.globals.series[n.globals.maxValsInArrayIndex].length*n.globals.series.length),t.length<r)for(var s=r-t.length,a=0;a<s;a++)t.push(t[a])}},{key:"updateThemeOptions",value:function(t){t.chart=t.chart||{},t.tooltip=t.tooltip||{};var e=t.theme.mode||"light",i=t.theme.palette?t.theme.palette:"dark"===e?"palette4":"palette1",n=t.chart.foreColor?t.chart.foreColor:"dark"===e?"#f6f7f8":"#373d3f";return t.tooltip.theme=e,t.chart.foreColor=n,t.theme.palette=i,t}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"];break;default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"]}return this.colors}}]),t}(),st=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(t){var e=this.w,i="title"===t?e.config.title:e.config.subtitle,n=e.globals.svgWidth/2,r=i.offsetY,s="middle";if("left"===i.align?(n=10,s="start"):"right"===i.align&&(n=e.globals.svgWidth-10,s="end"),n+=i.offsetX,r=r+parseInt(i.style.fontSize,10)+i.margin/2,void 0!==i.text){var a=new x(this.ctx).drawText({x:n,y:r,text:i.text,textAnchor:s,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});a.node.setAttribute("class","apexcharts-".concat(t,"-text")),e.globals.dom.Paper.add(a)}}}]),t}(),at=function(){function t(e){s(this,t),this.w=e.w,this.dCtx=e}return o(t,[{key:"getTitleSubtitleCoords",value:function(t){var e=this.w,i=0,n=0,r="title"===t?e.config.title.floating:e.config.subtitle.floating,s=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(t,"-text"));if(null!==s&&!r){var a=s.getBoundingClientRect();i=a.width,n=e.globals.axisCharts?a.height+5:a.height}return{width:i,height:n}}},{key:"getLegendsRect",value:function(){var t=this.w,e=t.globals.dom.baseEl.querySelector(".apexcharts-legend");t.config.legend.height||"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||(e.style.maxHeight=t.globals.svgHeight/2+"px");var i=Object.assign({},v.getBoundingClientRect(e));return this.dCtx.lgRect=null!==e&&!t.config.legend.floating&&t.config.legend.show?{x:i.x,y:i.y,height:i.height,width:0===i.height?0:i.width}:{x:0,y:0,height:0,width:0},"left"!==t.config.legend.position&&"right"!==t.config.legend.position||1.5*this.dCtx.lgRect.width>t.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(t,e){var i=t;if(this.w.globals.isMultiLineX){var n=e.map(function(t,e){return Array.isArray(t)?t.length:1}),r=Math.max.apply(Math,m(n));i=e[n.indexOf(r)]}return i}}]),t}(),ot=function(){function t(e){s(this,t),this.w=e.w,this.dCtx=e}return o(t,[{key:"getxAxisLabelsCoords",value:function(){var t,e=this.w,i=e.globals.labels.slice();if(e.config.xaxis.convertedCatToNumeric&&0===i.length&&(i=e.globals.categoryLabels),e.globals.timescaleLabels.length>0){var n=this.getxAxisTimeScaleLabelsCoords();t={width:n.width,height:n.height},e.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==e.config.legend.position&&"right"!==e.config.legend.position||e.config.legend.floating?0:this.dCtx.lgRect.width;var r=e.globals.xLabelFormatter,s=v.getLargestStringFromArr(i),a=this.dCtx.dimHelpers.getLargestStringFromMultiArr(s,i);e.globals.isBarHorizontal&&(a=s=e.globals.yAxisScale[0].result.reduce(function(t,e){return t.length>e.length?t:e},0));var o=new W(this.dCtx.ctx),l=s;s=o.xLabelFormat(r,s,l,{i:void 0,dateFormatter:new F(this.dCtx.ctx).formatDate,w:e}),a=o.xLabelFormat(r,a,l,{i:void 0,dateFormatter:new F(this.dCtx.ctx).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&void 0===s||""===String(s).trim())&&(a=s="1");var c=new x(this.dCtx.ctx),h=c.getTextRects(s,e.config.xaxis.labels.style.fontSize),d=h;if(s!==a&&(d=c.getTextRects(a,e.config.xaxis.labels.style.fontSize)),(t={width:h.width>=d.width?h.width:d.width,height:h.height>=d.height?h.height:d.height}).width*i.length>e.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==e.config.xaxis.labels.rotate||e.config.xaxis.labels.rotateAlways){if(!e.globals.isBarHorizontal){e.globals.rotateXLabels=!0;var u=function(t){return c.getTextRects(t,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,"rotate(".concat(e.config.xaxis.labels.rotate," 0 0)"),!1)};h=u(s),s!==a&&(d=u(a)),t.height=(h.height>d.height?h.height:d.height)/1.5,t.width=h.width>d.width?h.width:d.width}}else e.globals.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;if(void 0!==t.config.xaxis.title.text){var n=new x(this.dCtx.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=n.width,i=n.height}return{width:e,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var t,e=this.w;this.dCtx.timescaleLabels=e.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map(function(t){return t.value}),n=i.reduce(function(t,e){return void 0===t?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):t.length>e.length?t:e},0);return 1.05*(t=new x(this.dCtx.ctx).getTextRects(n,e.config.xaxis.labels.style.fontSize)).width*i.length>e.globals.gridWidth&&0!==e.config.xaxis.labels.rotate&&(e.globals.overlappingXLabels=!0),t}},{key:"additionalPaddingXLabels",value:function(t){var e=this,i=this.w,n=i.globals,r=i.config,s=r.xaxis.type,a=t.width;n.skipLastTimelinelabel=!1,n.skipFirstTimelinelabel=!1;var o=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,l=function(t,o){(function(t){return-1!==n.collapsedSeriesIndices.indexOf(t)})(o)||function(t){if(e.dCtx.timescaleLabels&&e.dCtx.timescaleLabels.length){var o=e.dCtx.timescaleLabels[0].position-a/1.75+e.dCtx.yAxisWidthLeft;e.dCtx.timescaleLabels[e.dCtx.timescaleLabels.length-1].position+a/1.75-e.dCtx.yAxisWidthRight>n.svgWidth-n.translateX-("right"===i.config.legend.position&&e.dCtx.lgRect.width>0?e.dCtx.lgRect.width:0)&&(n.skipLastTimelinelabel=!0),o<-(t.show&&!t.floating||"bar"!==r.chart.type&&"candlestick"!==r.chart.type&&"rangeBar"!==r.chart.type&&"boxPlot"!==r.chart.type?10:a/1.75)&&(n.skipFirstTimelinelabel=!0)}else"datetime"===s?e.dCtx.gridPad.right<a&&!n.rotateXLabels&&(n.skipLastTimelinelabel=!0):"datetime"!==s&&e.dCtx.gridPad.right<a/2-e.dCtx.yAxisWidthRight&&!n.rotateXLabels&&!i.config.xaxis.labels.trim&&("between"!==i.config.xaxis.tickPlacement||i.globals.isBarHorizontal)&&(e.dCtx.xPadRight=a/2+1)}(t)};r.yaxis.forEach(function(t,i){o?(e.dCtx.gridPad.left<a&&(e.dCtx.xPadLeft=a/2+1),e.dCtx.xPadRight=a/2+1):l(t,i)})}}]),t}(),lt=function(){function t(e){s(this,t),this.w=e.w,this.dCtx=e}return o(t,[{key:"getyAxisLabelsCoords",value:function(){var t=this,e=this.w,i=[],n=10,r=new X(this.dCtx.ctx);return e.config.yaxis.map(function(s,a){var o=e.globals.yAxisScale[a],l=0;if(!r.isYAxisHidden(a)&&s.labels.show&&void 0!==s.labels.minWidth&&(l=s.labels.minWidth),!r.isYAxisHidden(a)&&s.labels.show&&o.result.length){var c=e.globals.yLabelFormatters[a],h=o.niceMin===Number.MIN_VALUE?0:o.niceMin,d=String(h).length>String(o.niceMax).length?h:o.niceMax,u=c(d,{seriesIndex:a,dataPointIndex:-1,w:e}),p=u;if(void 0!==u&&0!==u.length||(u=d),e.globals.isBarHorizontal){n=0;var f=e.globals.labels.slice();u=c(u=v.getLargestStringFromArr(f),{seriesIndex:a,dataPointIndex:-1,w:e}),p=t.dCtx.dimHelpers.getLargestStringFromMultiArr(u,f)}var g=new x(t.dCtx.ctx),m="rotate(".concat(s.labels.rotate," 0 0)"),b=g.getTextRects(u,s.labels.style.fontSize,s.labels.style.fontFamily,m,!1),y=b;u!==p&&(y=g.getTextRects(p,s.labels.style.fontSize,s.labels.style.fontFamily,m,!1)),i.push({width:(l>y.width||l>b.width?l:y.width>b.width?y.width:b.width)+n,height:y.height>b.height?y.height:b.height})}else i.push({width:0,height:0})}),i}},{key:"getyAxisTitleCoords",value:function(){var t=this,e=[];return this.w.config.yaxis.map(function(i,n){if(i.show&&void 0!==i.title.text){var r=new x(t.dCtx.ctx),s="rotate(".concat(i.title.rotate," 0 0)"),a=r.getTextRects(i.title.text,i.title.style.fontSize,i.title.style.fontFamily,s,!1);e.push({width:a.width,height:a.height})}else e.push({width:0,height:0})}),e}},{key:"getTotalYAxisWidth",value:function(){var t=this.w,e=0,i=0,n=0,r=t.globals.yAxisScale.length>1?10:0,s=new X(this.dCtx.ctx),a=function(a,o){var l=t.config.yaxis[o].floating,c=0;a.width>0&&!l?(c=a.width+r,function(e){return t.globals.ignoreYAxisIndexes.indexOf(e)>-1}(o)&&(c=c-a.width-r)):c=l||s.isYAxisHidden(o)?0:5,t.config.yaxis[o].opposite?n+=c:i+=c,e+=c};return t.globals.yLabelsCoords.map(function(t,e){a(t,e)}),t.globals.yTitleCoords.map(function(t,e){a(t,e)}),t.globals.isBarHorizontal&&!t.config.yaxis[0].floating&&(e=t.globals.yLabelsCoords[0].width+t.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=n,e}}]),t}(),ct=function(){function t(e){s(this,t),this.w=e.w,this.dCtx=e}return o(t,[{key:"gridPadForColumnsInNumericAxis",value:function(t){var e=this.w;if(e.globals.noData||e.globals.allSeriesCollapsed)return 0;var i=function(t){return"bar"===t||"rangeBar"===t||"candlestick"===t||"boxPlot"===t},n=e.config.chart.type,r=0,s=i(n)?e.config.series.length:1;if(e.globals.comboBarCount>0&&(s=e.globals.comboBarCount),e.globals.collapsedSeries.forEach(function(t){i(t.type)&&(s-=1)}),e.config.chart.stacked&&(s=1),(i(n)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&s>0){var a,o,l=Math.abs(e.globals.initialMaxX-e.globals.initialMinX);l<=3&&(l=e.globals.dataPoints),a=l/t,e.globals.minXDiff&&e.globals.minXDiff/a>0&&(o=e.globals.minXDiff/a),o>t/2&&(o/=2),(r=o/s*parseInt(e.config.plotOptions.bar.columnWidth,10)/100)<1&&(r=1),e.globals.barPadForNumericAxis=r=r/(s>1?1:1.5)+5}return r}},{key:"gridPadFortitleSubtitle",value:function(){var t=this,e=this.w,i=e.globals,n=this.dCtx.isSparkline||!e.globals.axisCharts?0:10;["title","subtitle"].forEach(function(i){n+=void 0!==e.config[i].text?e.config[i].margin:t.dCtx.isSparkline||!e.globals.axisCharts?0:5}),!e.config.legend.show||"bottom"!==e.config.legend.position||e.config.legend.floating||e.globals.axisCharts||(n+=10);var r=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),s=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-r.height-s.height-n,i.translateY=i.translateY+r.height+s.height+n}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w,n=new X(this.dCtx.ctx);i.config.yaxis.map(function(r,s){-1!==i.globals.ignoreYAxisIndexes.indexOf(s)||r.floating||n.isYAxisHidden(s)||(r.opposite&&(i.globals.translateX=i.globals.translateX-(e[s].width+t[s].width)-parseInt(i.config.yaxis[s].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))})}}]),t}(),ht=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new at(this),this.dimYAxis=new lt(this),this.dimXAxis=new ot(this),this.dimGrid=new ct(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return o(t,[{key:"plotCoords",value:function(){var t=this.w.globals;this.lgRect=this.dimHelpers.getLegendsRect(),t.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),t.gridHeight=t.gridHeight-this.gridPad.top-this.gridPad.bottom,t.gridWidth=t.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var e=this.dimGrid.gridPadForColumnsInNumericAxis(t.gridWidth);t.gridWidth=t.gridWidth-2*e,t.translateX=t.translateX+this.gridPad.left+this.xPadLeft+(e>0?e+4:0),t.translateY=t.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var t=this,e=this.w,i=e.globals,n=this.dimYAxis.getyAxisLabelsCoords(),r=this.dimYAxis.getyAxisTitleCoords();e.globals.yLabelsCoords=[],e.globals.yTitleCoords=[],e.config.yaxis.map(function(t,i){e.globals.yLabelsCoords.push({width:n[i].width,index:i}),e.globals.yTitleCoords.push({width:r[i].width,index:i})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var s=this.dimXAxis.getxAxisLabelsCoords(),a=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(s,a),i.translateXAxisY=e.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=e.globals.rotateXLabels&&e.globals.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,e.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(e.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+e.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+e.config.xaxis.labels.offsetX;var o=this.yAxisWidth,l=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-a.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var c=10;("radar"===e.config.chart.type||this.isSparkline)&&(o=0,l=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===e.config.chart.type)&&(o=0,l=0,c=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(s);var h=function(){i.translateX=o,i.gridHeight=i.svgHeight-t.lgRect.height-l-(t.isSparkline||"treemap"===e.config.chart.type?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-o};switch("top"===e.config.xaxis.position&&(c=i.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case"bottom":i.translateY=c,h();break;case"top":i.translateY=this.lgRect.height+c,h();break;case"left":i.translateY=c,i.translateX=this.lgRect.width+o,i.gridHeight=i.svgHeight-l-12,i.gridWidth=i.svgWidth-this.lgRect.width-o;break;case"right":i.translateY=c,i.translateX=o,i.gridHeight=i.svgHeight-l-12,i.gridWidth=i.svgWidth-this.lgRect.width-o-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(r,n),new Q(this.ctx).setYAxisXPosition(n,r)}},{key:"setDimensionsForNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=t.config,n=0;t.config.legend.show&&!t.config.legend.floating&&(n=20);var r="pie"===i.chart.type||"polarArea"===i.chart.type||"donut"===i.chart.type?"pie":"radialBar",s=i.plotOptions[r].offsetY,a=i.plotOptions[r].offsetX;if(!i.legend.show||i.legend.floating)return e.gridHeight=e.svgHeight-i.grid.padding.left+i.grid.padding.right,e.gridWidth=e.gridHeight,e.translateY=s,void(e.translateX=a+(e.svgWidth-e.gridWidth)/2);switch(i.legend.position){case"bottom":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=s-10,e.translateX=a+(e.svgWidth-e.gridWidth)/2;break;case"top":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=this.lgRect.height+s+10,e.translateX=a+(e.svgWidth-e.gridWidth)/2;break;case"left":e.gridWidth=e.svgWidth-this.lgRect.width-n,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=s,e.translateX=a+this.lgRect.width+n;break;case"right":e.gridWidth=e.svgWidth-this.lgRect.width-n-5,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=s,e.translateX=a+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(t,e){var i=this.w;this.xAxisHeight=(t.height+e.height)*(i.globals.isMultiLineX?1.2:i.globals.LINE_HEIGHT_RATIO)+(i.globals.rotateXLabels?22:10),this.xAxisWidth=t.width,this.xAxisHeight-e.height>i.config.xaxis.labels.maxHeight&&(this.xAxisHeight=i.config.xaxis.labels.maxHeight),i.config.xaxis.labels.minHeight&&this.xAxisHeight<i.config.xaxis.labels.minHeight&&(this.xAxisHeight=i.config.xaxis.labels.minHeight),i.config.xaxis.floating&&(this.xAxisHeight=0);var n=0,r=0;i.config.yaxis.forEach(function(t){n+=t.labels.minWidth,r+=t.labels.maxWidth}),this.yAxisWidth<n&&(this.yAxisWidth=n),this.yAxisWidth>r&&(this.yAxisWidth=r)}}]),t}(),dt=function(){function t(e){s(this,t),this.w=e.w,this.lgCtx=e}return o(t,[{key:"getLegendStyles",value:function(){var t=document.createElement("style");t.setAttribute("type","text/css");var e=document.createTextNode("\t\n    \t\n      .apexcharts-legend {\t\n        display: flex;\t\n        overflow: auto;\t\n        padding: 0 10px;\t\n      }\t\n      .apexcharts-legend.position-bottom, .apexcharts-legend.position-top {\t\n        flex-wrap: wrap\t\n      }\t\n      .apexcharts-legend.position-right, .apexcharts-legend.position-left {\t\n        flex-direction: column;\t\n        bottom: 0;\t\n      }\t\n      .apexcharts-legend.position-bottom.apexcharts-align-left, .apexcharts-legend.position-top.apexcharts-align-left, .apexcharts-legend.position-right, .apexcharts-legend.position-left {\t\n        justify-content: flex-start;\t\n      }\t\n      .apexcharts-legend.position-bottom.apexcharts-align-center, .apexcharts-legend.position-top.apexcharts-align-center {\t\n        justify-content: center;  \t\n      }\t\n      .apexcharts-legend.position-bottom.apexcharts-align-right, .apexcharts-legend.position-top.apexcharts-align-right {\t\n        justify-content: flex-end;\t\n      }\t\n      .apexcharts-legend-series {\t\n        cursor: pointer;\t\n        line-height: normal;\t\n      }\t\n      .apexcharts-legend.position-bottom .apexcharts-legend-series, .apexcharts-legend.position-top .apexcharts-legend-series{\t\n        display: flex;\t\n        align-items: center;\t\n      }\t\n      .apexcharts-legend-text {\t\n        position: relative;\t\n        font-size: 14px;\t\n      }\t\n      .apexcharts-legend-text *, .apexcharts-legend-marker * {\t\n        pointer-events: none;\t\n      }\t\n      .apexcharts-legend-marker {\t\n        position: relative;\t\n        display: inline-block;\t\n        cursor: pointer;\t\n        margin-right: 3px;\t\n        border-style: solid;\n      }\t\n      \t\n      .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{\t\n        display: inline-block;\t\n      }\t\n      .apexcharts-legend-series.apexcharts-no-click {\t\n        cursor: auto;\t\n      }\t\n      .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\t\n        display: none !important;\t\n      }\t\n      .apexcharts-inactive-legend {\t\n        opacity: 0.45;\t\n      }");return t.appendChild(e),t}},{key:"getLegendBBox",value:function(){var t=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect();return{clwh:t.height,clww:t.width}}},{key:"appendToForeignObject",value:function(){var t=this.w.globals;t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject");var e=t.dom.elLegendForeign;e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("width",t.svgWidth),e.setAttribute("height",t.svgHeight),t.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),e.appendChild(t.dom.elLegendWrap),e.appendChild(this.getLegendStyles()),t.dom.Paper.node.insertBefore(e,t.dom.elGraphical.node)}},{key:"toggleDataSeries",value:function(t,e){var i=this,n=this.w;if(n.globals.axisCharts||"radialBar"===n.config.chart.type){n.globals.resized=!0;var r=null,s=null;n.globals.risingSeries=[],n.globals.axisCharts?(r=n.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),s=parseInt(r.getAttribute("data:realIndex"),10)):(r=n.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),s=parseInt(r.getAttribute("rel"),10)-1),e?[{cs:n.globals.collapsedSeries,csi:n.globals.collapsedSeriesIndices},{cs:n.globals.ancillaryCollapsedSeries,csi:n.globals.ancillaryCollapsedSeriesIndices}].forEach(function(t){i.riseCollapsedSeries(t.cs,t.csi,s)}):this.hideSeries({seriesEl:r,realIndex:s})}else{var a=n.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(t+1,"'] path")),o=n.config.chart.type;if("pie"===o||"polarArea"===o||"donut"===o){var l=n.config.plotOptions.pie.donut.labels;new x(this.lgCtx.ctx).pathMouseDown(a.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(a.members[0].node,l)}a.fire("click")}}},{key:"hideSeries",value:function(t){var e=t.seriesEl,i=t.realIndex,n=this.w,r=v.clone(n.config.series);if(n.globals.axisCharts){var s=!1;if(n.config.yaxis[i]&&n.config.yaxis[i].show&&n.config.yaxis[i].showAlways&&(s=!0,n.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(n.globals.ancillaryCollapsedSeries.push({index:i,data:r[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),n.globals.ancillaryCollapsedSeriesIndices.push(i))),!s){n.globals.collapsedSeries.push({index:i,data:r[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),n.globals.collapsedSeriesIndices.push(i);var a=n.globals.risingSeries.indexOf(i);n.globals.risingSeries.splice(a,1)}}else n.globals.collapsedSeries.push({index:i,data:r[i]}),n.globals.collapsedSeriesIndices.push(i);for(var o=e.childNodes,l=0;l<o.length;l++)o[l].classList.contains("apexcharts-series-markers-wrap")&&(o[l].classList.contains("apexcharts-hide")?o[l].classList.remove("apexcharts-hide"):o[l].classList.add("apexcharts-hide"));n.globals.allSeriesCollapsed=n.globals.collapsedSeries.length===n.config.series.length,r=this._getSeriesBasedOnCollapsedState(r),this.lgCtx.ctx.updateHelpers._updateSeries(r,n.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(t,e,i){var n=this.w,r=v.clone(n.config.series);if(t.length>0){for(var s=0;s<t.length;s++)t[s].index===i&&(n.globals.axisCharts?(r[i].data=t[s].data.slice(),t.splice(s,1),e.splice(s,1),n.globals.risingSeries.push(i)):(r[i]=t[s].data,t.splice(s,1),e.splice(s,1),n.globals.risingSeries.push(i)));r=this._getSeriesBasedOnCollapsedState(r),this.lgCtx.ctx.updateHelpers._updateSeries(r,n.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(t){var e=this.w;return t.forEach(e.globals.axisCharts?function(i,n){e.globals.collapsedSeriesIndices.indexOf(n)>-1&&(t[n].data=[])}:function(i,n){e.globals.collapsedSeriesIndices.indexOf(n)>-1&&(t[n]=0)}),t}}]),t}(),ut=function(){function t(e,i){s(this,t),this.ctx=e,this.w=e.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new dt(this)}return o(t,[{key:"init",value:function(){var t=this.w,e=t.globals,i=t.config;if((i.legend.showForSingleSeries&&1===e.series.length||this.isBarsDistributed||e.series.length>1||!e.axisCharts)&&i.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(),v.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var t=this,e=this.w,i=e.config.legend.fontFamily,n=e.globals.seriesNames,r=e.globals.colors.slice();if("heatmap"===e.config.chart.type){var s=e.config.plotOptions.heatmap.colorScale.ranges;n=s.map(function(t){return t.name?t.name:t.from+" - "+t.to}),r=s.map(function(t){return t.color})}else this.isBarsDistributed&&(n=e.globals.labels.slice());e.config.legend.customLegendItems.length&&(n=e.config.legend.customLegendItems);for(var a=e.globals.legendFormatter,o=e.config.legend.inverseOrder,l=o?n.length-1:0;o?l>=0:l<=n.length-1;o?l--:l++){var c=a(n[l],{seriesIndex:l,w:e}),h=!1,d=!1;if(e.globals.collapsedSeries.length>0)for(var u=0;u<e.globals.collapsedSeries.length;u++)e.globals.collapsedSeries[u].index===l&&(h=!0);if(e.globals.ancillaryCollapsedSeriesIndices.length>0)for(var p=0;p<e.globals.ancillaryCollapsedSeriesIndices.length;p++)e.globals.ancillaryCollapsedSeriesIndices[p]===l&&(d=!0);var f=document.createElement("span");f.classList.add("apexcharts-legend-marker");var g=e.config.legend.markers.offsetX,m=e.config.legend.markers.offsetY,b=e.config.legend.markers.height,y=e.config.legend.markers.width,_=e.config.legend.markers.strokeWidth,w=e.config.legend.markers.strokeColor,C=e.config.legend.markers.radius,S=f.style;S.background=r[l],S.color=r[l],S.setProperty("background",r[l],"important"),e.config.legend.markers.fillColors&&e.config.legend.markers.fillColors[l]&&(S.background=e.config.legend.markers.fillColors[l]),void 0!==e.globals.seriesColors[l]&&(S.background=e.globals.seriesColors[l],S.color=e.globals.seriesColors[l]),S.height=Array.isArray(b)?parseFloat(b[l])+"px":parseFloat(b)+"px",S.width=Array.isArray(y)?parseFloat(y[l])+"px":parseFloat(y)+"px",S.left=(Array.isArray(g)?parseFloat(g[l]):parseFloat(g))+"px",S.top=(Array.isArray(m)?parseFloat(m[l]):parseFloat(m))+"px",S.borderWidth=Array.isArray(_)?_[l]:_,S.borderColor=Array.isArray(w)?w[l]:w,S.borderRadius=Array.isArray(C)?parseFloat(C[l])+"px":parseFloat(C)+"px",e.config.legend.markers.customHTML&&(Array.isArray(e.config.legend.markers.customHTML)?e.config.legend.markers.customHTML[l]&&(f.innerHTML=e.config.legend.markers.customHTML[l]()):f.innerHTML=e.config.legend.markers.customHTML()),x.setAttrs(f,{rel:l+1,"data:collapsed":h||d}),(h||d)&&f.classList.add("apexcharts-inactive-legend");var T=document.createElement("div"),A=document.createElement("span");A.classList.add("apexcharts-legend-text"),A.innerHTML=Array.isArray(c)?v.sanitizeDom(c.join(" ")):v.sanitizeDom(c);var O=e.config.legend.labels.useSeriesColors?e.globals.colors[l]:e.config.legend.labels.colors;O||(O=e.config.chart.foreColor),A.style.color=O,A.style.fontSize=parseFloat(e.config.legend.fontSize)+"px",A.style.fontWeight=e.config.legend.fontWeight,A.style.fontFamily=i||e.config.chart.fontFamily,x.setAttrs(A,{rel:l+1,i:l,"data:default-text":encodeURIComponent(c),"data:collapsed":h||d}),T.appendChild(f),T.appendChild(A);var E=new k(this.ctx);e.config.legend.showForZeroSeries||0===E.getSeriesTotalByIndex(l)&&E.seriesHaveSameValues(l)&&!E.isSeriesNull(l)&&-1===e.globals.collapsedSeriesIndices.indexOf(l)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&T.classList.add("apexcharts-hidden-zero-series"),e.config.legend.showForNullSeries||E.isSeriesNull(l)&&-1===e.globals.collapsedSeriesIndices.indexOf(l)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&T.classList.add("apexcharts-hidden-null-series"),e.globals.dom.elLegendWrap.appendChild(T),e.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(e.config.legend.horizontalAlign)),e.globals.dom.elLegendWrap.classList.add("position-"+e.config.legend.position),T.classList.add("apexcharts-legend-series"),T.style.margin="".concat(e.config.legend.itemMargin.vertical,"px ").concat(e.config.legend.itemMargin.horizontal,"px"),e.globals.dom.elLegendWrap.style.width=e.config.legend.width?e.config.legend.width+"px":"",e.globals.dom.elLegendWrap.style.height=e.config.legend.height?e.config.legend.height+"px":"",x.setAttrs(T,{rel:l+1,seriesName:v.escapeString(n[l]),"data:collapsed":h||d}),(h||d)&&T.classList.add("apexcharts-inactive-legend"),e.config.legend.onItemClick.toggleDataSeries||T.classList.add("apexcharts-no-click")}e.globals.dom.elWrap.addEventListener("click",t.onLegendClick,!0),e.config.legend.onItemHover.highlightDataSeries&&0===e.config.legend.customLegendItems.length&&(e.globals.dom.elWrap.addEventListener("mousemove",t.onLegendHovered,!0),e.globals.dom.elWrap.addEventListener("mouseout",t.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(t,e){var i=this.w,n=i.globals.dom.baseEl.querySelector(".apexcharts-legend"),r=n.getBoundingClientRect(),s=0,a=0;if("bottom"===i.config.legend.position)a+=i.globals.svgHeight-r.height/2;else if("top"===i.config.legend.position){var o=new ht(this.ctx),l=o.dimHelpers.getTitleSubtitleCoords("title").height,c=o.dimHelpers.getTitleSubtitleCoords("subtitle").height;a=a+(l>0?l-10:0)+(c>0?c-10:0)}n.style.position="absolute",a=a+e+i.config.legend.offsetY,n.style.left=(s=s+t+i.config.legend.offsetX)+"px",n.style.top=a+"px","bottom"===i.config.legend.position?(n.style.top="auto",n.style.bottom=5-i.config.legend.offsetY+"px"):"right"===i.config.legend.position&&(n.style.left="auto",n.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach(function(t){n.style[t]&&(n.style[t]=parseInt(i.config.legend[t],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var t=this.w;t.globals.dom.baseEl.querySelector(".apexcharts-legend").style.right=0;var e=this.legendHelpers.getLegendBBox(),i=new ht(this.ctx),n=i.dimHelpers.getTitleSubtitleCoords("title"),r=i.dimHelpers.getTitleSubtitleCoords("subtitle"),s=0;"bottom"===t.config.legend.position?s=-e.clwh/1.8:"top"===t.config.legend.position&&(s=n.height+r.height+t.config.title.margin+t.config.subtitle.margin-10),this.setLegendWrapXY(20,s)}},{key:"legendAlignVertical",value:function(){var t=this.w,e=this.legendHelpers.getLegendBBox(),i=0;"left"===t.config.legend.position&&(i=20),"right"===t.config.legend.position&&(i=t.globals.svgWidth-e.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(t){var e=this.w,i=t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker");if("heatmap"===e.config.chart.type||this.isBarsDistributed){if(i){var n=parseInt(t.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,n,this.w]),new L(this.ctx).highlightRangeInSeries(t,t.target)}}else!t.target.classList.contains("apexcharts-inactive-legend")&&i&&new L(this.ctx).toggleSeriesOnHover(t,t.target)}},{key:"onLegendClick",value:function(t){var e=this.w;if(!e.config.legend.customLegendItems.length&&(t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(t.target.getAttribute("rel"),10)-1,n="true"===t.target.getAttribute("data:collapsed"),r=this.w.config.chart.events.legendClick;"function"==typeof r&&r(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var s=this.w.config.legend.markers.onClick;"function"==typeof s&&t.target.classList.contains("apexcharts-legend-marker")&&(s(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),"treemap"!==e.config.chart.type&&"heatmap"!==e.config.chart.type&&!this.isBarsDistributed&&e.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,n)}}}]),t}(),pt=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=i.globals.minX,this.maxX=i.globals.maxX}return o(t,[{key:"createToolbar",value:function(){var t=this,e=this.w,i=function(){return document.createElement("div")},n=i();if(n.setAttribute("class","apexcharts-toolbar"),n.style.top=e.config.chart.toolbar.offsetY+"px",n.style.right=3-e.config.chart.toolbar.offsetX+"px",e.globals.dom.elWrap.appendChild(n),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=e.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var r=0;r<this.t.customIcons.length;r++)this.elCustomIcons.push(i());var s=[],a=function(i,n,r){var a=i.toLowerCase();t.t[a]&&e.config.chart.zoom.enabled&&s.push({el:n,icon:"string"==typeof t.t[a]?t.t[a]:r,title:t.localeValues[i],class:"apexcharts-".concat(a,"-icon")})};a("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n'),a("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n');var o=function(i){t.t[i]&&e.config.chart[i].enabled&&s.push({el:"zoom"===i?t.elZoom:t.elSelection,icon:"string"==typeof t.t[i]?t.t[i]:"zoom"===i?'<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>\n    <path d="M0 0h24v24H0V0z" fill="none"/>\n    <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n</svg>':'<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>\n</svg>',title:t.localeValues["zoom"===i?"selectionZoom":"selection"],class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(i,"-icon")})};o("zoom"),o("selection"),this.t.pan&&e.config.chart.zoom.enabled&&s.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <defs>\n        <path d="M0 0h24v24H0z" id="a"/>\n    </defs>\n    <clipPath id="b">\n        <use overflow="visible" xlink:href="#a"/>\n    </clipPath>\n    <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>\n</svg>',title:this.localeValues.pan,class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),a("reset",this.elZoomReset,'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n    <path d="M0 0h24v24H0z" fill="none"/>\n</svg>'),this.t.download&&s.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l<this.elCustomIcons.length;l++)s.push({el:this.elCustomIcons[l],icon:this.t.customIcons[l].icon,title:this.t.customIcons[l].title,index:this.t.customIcons[l].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[l].class});s.forEach(function(t,e){t.index&&v.moveIndexInArray(s,e,t.index)});for(var c=0;c<s.length;c++)x.setAttrs(s[c].el,{class:s[c].class,title:s[c].title}),s[c].el.innerHTML=s[c].icon,n.appendChild(s[c].el);this._createHamburgerMenu(n),e.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):e.globals.panEnabled?this.elPan.classList.add(this.selectedClass):e.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(t){this.elMenuItems=[],t.appendChild(this.elMenu),x.setAttrs(this.elMenu,{class:"apexcharts-menu"});var e=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}];this.w.globals.allSeriesHasEqualX||e.splice(2,1);for(var i=0;i<e.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=e[i].title,x.setAttrs(this.elMenuItems[i],{class:"apexcharts-menu-item ".concat(e[i].name),title:e[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{key:"addToolbarEventListeners",value:function(){var t=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(e){e.classList.contains("exportSVG")?e.addEventListener("click",t.handleDownload.bind(t,"svg")):e.classList.contains("exportPNG")?e.addEventListener("click",t.handleDownload.bind(t,"png")):e.classList.contains("exportCSV")&&e.addEventListener("click",t.handleDownload.bind(t,"csv"))});for(var e=0;e<this.t.customIcons.length;e++)this.elCustomIcons[e].addEventListener("click",this.t.customIcons[e].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(t){this.ctx.getSyncedCharts().forEach(function(e){e.ctx.toolbar.toggleOtherControls();var i="selection"===t?e.ctx.toolbar.elSelection:e.ctx.toolbar.elZoom,n="selection"===t?"selectionEnabled":"zoomEnabled";e.w.globals[n]=!e.w.globals[n],i.classList.contains(e.ctx.toolbar.selectedClass)?i.classList.remove(e.ctx.toolbar.selectedClass):i.classList.add(e.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var t=this.w;this.elZoom||(this.elZoom=t.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=t.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=t.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(t){this.toggleOtherControls(),"pan"===t?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var e="pan"===t?this.elPan:this.elZoom,i="pan"===t?this.elZoom:this.elPan;e&&e.classList.add(this.selectedClass),i&&i.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(t){t.ctx.toolbar.toggleOtherControls(),t.w.globals.panEnabled=!t.w.globals.panEnabled,t.ctx.toolbar.elPan.classList.contains(t.ctx.toolbar.selectedClass)?t.ctx.toolbar.elPan.classList.remove(t.ctx.toolbar.selectedClass):t.ctx.toolbar.elPan.classList.add(t.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var t=this,e=this.w;e.globals.panEnabled=!1,e.globals.zoomEnabled=!1,e.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(e){e&&e.classList.remove(t.selectedClass)})}},{key:"handleZoomIn",value:function(){var t=this.w;t.globals.isTimelineBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY);var e=(this.minX+this.maxX)/2,i=this._getNewMinXMaxX((this.minX+e)/2,(this.maxX+e)/2);t.globals.disableZoomIn||this.zoomUpdateOptions(i.minX,i.maxX)}},{key:"handleZoomOut",value:function(){var t=this.w;if(t.globals.isTimelineBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY),!("datetime"===t.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3)){var e=(this.minX+this.maxX)/2,i=this._getNewMinXMaxX(this.minX-(e-this.minX),this.maxX-(e-this.maxX));t.globals.disableZoomOut||this.zoomUpdateOptions(i.minX,i.maxX)}}},{key:"_getNewMinXMaxX",value:function(t,e){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(t):t,maxX:i?Math.floor(e):e}}},{key:"zoomUpdateOptions",value:function(t,e){var i=this.w;if(void 0!==t||void 0!==e){if(!(i.config.xaxis.convertedCatToNumeric&&(t<1&&(t=1,e=i.globals.dataPoints),e-t<2))){var n={min:t,max:e},r=this.getBeforeZoomRange(n);r&&(n=r.xaxis);var s={xaxis:n},a=v.clone(i.globals.initialConfig.yaxis);i.config.chart.zoom.autoScaleYaxis&&(a=new K(this.ctx).autoScaleY(this.ctx,a,{xaxis:n})),i.config.chart.group||(s.yaxis=a),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(s,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(n,a)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(t,e){"function"==typeof this.ev.zoomed&&this.ev.zoomed(this.ctx,{xaxis:t,yaxis:e})}},{key:"getBeforeZoomRange",value:function(t,e){var i=null;return"function"==typeof this.ev.beforeZoom&&(i=this.ev.beforeZoom(this,{xaxis:t,yaxis:e})),i}},{key:"toggleMenu",value:function(){var t=this;window.setTimeout(function(){t.elMenu.classList.contains("apexcharts-menu-open")?t.elMenu.classList.remove("apexcharts-menu-open"):t.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(t){var e=this.w,i=new G(this.ctx);switch(t){case"svg":i.exportToSVG(this.ctx);break;case"png":i.exportToPng(this.ctx);break;case"csv":i.exportToCSV({series:e.config.series,columnDelimiter:e.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(t){this.ctx.getSyncedCharts().forEach(function(t){var e=t.w;if(e.globals.lastXAxis.min=void 0,e.globals.lastXAxis.max=void 0,t.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof e.config.chart.events.beforeResetZoom){var i=e.config.chart.events.beforeResetZoom(t,e);i&&t.updateHelpers.revertDefaultAxisMinMax(i)}"function"==typeof e.config.chart.events.zoomed&&t.ctx.toolbar.zoomCallback({min:e.config.xaxis.min,max:e.config.xaxis.max}),e.globals.zoomed=!1;var n=t.ctx.series.emptyCollapsedSeries(v.clone(e.globals.initialSeries));t.updateHelpers._updateSeries(n,e.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),t}(),ft=function(t){d(i,pt);var e=g(i);function i(t){var n;return s(this,i),(n=e.call(this,t)).ctx=t,n.w=t.w,n.dragged=!1,n.graphics=new x(n.ctx),n.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],n.clientX=0,n.clientY=0,n.startX=0,n.endX=0,n.dragX=0,n.startY=0,n.endY=0,n.dragY=0,n.moveDirection="none",n}return o(i,[{key:"init",value:function(t){var e=this,i=t.xyRatios,n=this.w,r=this;this.xyRatios=i,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=n.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),n.globals.dom.elGraphical.add(this.zoomRect),n.globals.dom.elGraphical.add(this.selectionRect),this.slDraggableRect="x"===n.config.chart.selection.type?this.selectionRect.draggable({minX:0,minY:0,maxX:n.globals.gridWidth,maxY:n.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):"y"===n.config.chart.selection.type?this.selectionRect.draggable({minX:0,maxX:n.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=n.globals.dom.baseEl.querySelector("".concat(n.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(t){e.hoverArea.addEventListener(t,r.svgMouseEvents.bind(r,i),{capture:!1,passive:!0})})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(t,e){var i=this.w,n=this,r=this.ctx.toolbar,s=i.globals.zoomEnabled?i.config.chart.zoom.type:i.config.chart.selection.type,a=i.config.chart.toolbar.autoSelected;e.shiftKey?(this.shiftWasPressed=!0,r.enableZoomPanFromToolbar("pan"===a?"zoom":"pan")):this.shiftWasPressed&&(r.enableZoomPanFromToolbar(a),this.shiftWasPressed=!1);var o=e.target.classList;if(!(o.contains("apexcharts-selection-rect")||o.contains("apexcharts-legend-marker")||o.contains("apexcharts-legend-text")||e.target.parentNode.classList.contains("apexcharts-toolbar"))){if(n.clientX="touchmove"===e.type||"touchstart"===e.type?e.touches[0].clientX:"touchend"===e.type?e.changedTouches[0].clientX:e.clientX,n.clientY="touchmove"===e.type||"touchstart"===e.type?e.touches[0].clientY:"touchend"===e.type?e.changedTouches[0].clientY:e.clientY,"mousedown"===e.type&&1===e.which){var l=n.gridRect.getBoundingClientRect();n.startX=n.clientX-l.left,n.startY=n.clientY-l.top,n.dragged=!1,n.w.globals.mousedown=!0}if(("mousemove"===e.type&&1===e.which||"touchmove"===e.type)&&(n.dragged=!0,i.globals.panEnabled?(i.globals.selection=null,n.w.globals.mousedown&&n.panDragging({context:n,zoomtype:s,xyRatios:t})):(n.w.globals.mousedown&&i.globals.zoomEnabled||n.w.globals.mousedown&&i.globals.selectionEnabled)&&(n.selection=n.selectionDrawing({context:n,zoomtype:s}))),"mouseup"===e.type||"touchend"===e.type||"mouseleave"===e.type){var c=n.gridRect.getBoundingClientRect();n.w.globals.mousedown&&(n.endX=n.clientX-c.left,n.endY=n.clientY-c.top,n.dragX=Math.abs(n.endX-n.startX),n.dragY=Math.abs(n.endY-n.startY),(i.globals.zoomEnabled||i.globals.selectionEnabled)&&n.selectionDrawn({context:n,zoomtype:s}),i.globals.panEnabled&&i.config.xaxis.convertedCatToNumeric&&n.delayedPanScrolled()),i.globals.zoomEnabled&&n.hideSelectionRect(this.selectionRect),n.dragged=!1,n.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}},{key:"makeSelectionRectDraggable",value:function(){var t=this.w;if(this.selectionRect){var e=this.selectionRect.node.getBoundingClientRect();e.width>0&&e.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:t.globals.gridWidth,maxY:t.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var t=this.w,e=this.xyRatios;if(!t.globals.zoomEnabled)if(null!=t.globals.selection)this.drawSelectionRect(t.globals.selection);else if(void 0!==t.config.chart.selection.xaxis.min&&void 0!==t.config.chart.selection.xaxis.max){var i=(t.config.chart.selection.xaxis.min-t.globals.minX)/e.xRatio;this.drawSelectionRect({x:i,y:0,width:t.globals.gridWidth-(t.globals.maxX-t.config.chart.selection.xaxis.max)/e.xRatio-i,height:t.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0}),this.makeSelectionRectDraggable(),"function"==typeof t.config.chart.events.selection&&t.config.chart.events.selection(this.ctx,{xaxis:{min:t.config.chart.selection.xaxis.min,max:t.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(t){var e=t.x,i=t.y,n=t.width,r=t.height,s=t.translateX,a=t.translateY,o=this.w,l=this.zoomRect,c=this.selectionRect;if(this.dragged||null!==o.globals.selection){var h={transform:"translate("+(void 0===s?0:s)+", "+(void 0===a?0:a)+")"};o.globals.zoomEnabled&&this.dragged&&(n<0&&(n=1),l.attr({x:e,y:i,width:n,height:r,fill:o.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":o.config.chart.zoom.zoomedArea.fill.opacity,stroke:o.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":o.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":o.config.chart.zoom.zoomedArea.stroke.opacity}),x.setAttrs(l.node,h)),o.globals.selectionEnabled&&(c.attr({x:e,y:i,width:n>0?n:0,height:r>0?r:0,fill:o.config.chart.selection.fill.color,"fill-opacity":o.config.chart.selection.fill.opacity,stroke:o.config.chart.selection.stroke.color,"stroke-width":o.config.chart.selection.stroke.width,"stroke-dasharray":o.config.chart.selection.stroke.dashArray,"stroke-opacity":o.config.chart.selection.stroke.opacity}),x.setAttrs(c.node,h))}}},{key:"hideSelectionRect",value:function(t){t&&t.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(t){var e,i=t.zoomtype,n=this.w,r=t.context,s=this.gridRect.getBoundingClientRect(),a=r.startX-1,o=r.startY,l=!1,c=!1,h=r.clientX-s.left-a,d=r.clientY-s.top-o;return Math.abs(h+a)>n.globals.gridWidth?h=n.globals.gridWidth-a:r.clientX-s.left<0&&(h=a),a>r.clientX-s.left&&(l=!0,h=Math.abs(h)),o>r.clientY-s.top&&(c=!0,d=Math.abs(d)),r.drawSelectionRect(e="x"===i?{x:l?a-h:a,y:0,width:h,height:n.globals.gridHeight}:"y"===i?{x:0,y:c?o-d:o,width:n.globals.gridWidth,height:d}:{x:l?a-h:a,y:c?o-d:o,width:h,height:d}),r.selectionDragging("resizing"),e}},{key:"selectionDragging",value:function(t,e){var i=this,n=this.w,r=this.xyRatios,s=this.selectionRect,a=0;"resizing"===t&&(a=30);var o=function(t){return parseFloat(s.node.getAttribute(t))},l={x:o("x"),y:o("y"),width:o("width"),height:o("height")};n.globals.selection=l,"function"==typeof n.config.chart.events.selection&&n.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var t=i.gridRect.getBoundingClientRect(),e=s.node.getBoundingClientRect(),a={xaxis:{min:n.globals.xAxisScale.niceMin+(e.left-t.left)*r.xRatio,max:n.globals.xAxisScale.niceMin+(e.right-t.left)*r.xRatio},yaxis:{min:n.globals.yAxisScale[0].niceMin+(t.bottom-e.bottom)*r.yRatio[0],max:n.globals.yAxisScale[0].niceMax-(e.top-t.top)*r.yRatio[0]}};n.config.chart.events.selection(i.ctx,a),n.config.chart.brush.enabled&&void 0!==n.config.chart.events.brushScrolled&&n.config.chart.events.brushScrolled(i.ctx,a)},a))}},{key:"selectionDrawn",value:function(t){var e=t.zoomtype,i=this.w,n=t.context,r=this.xyRatios,s=this.ctx.toolbar;if(n.startX>n.endX){var a=n.startX;n.startX=n.endX,n.endX=a}if(n.startY>n.endY){var o=n.startY;n.startY=n.endY,n.endY=o}var l=void 0,c=void 0;i.globals.isTimelineBar?(l=i.globals.yAxisScale[0].niceMin+n.startX*r.invertedYRatio,c=i.globals.yAxisScale[0].niceMin+n.endX*r.invertedYRatio):(l=i.globals.xAxisScale.niceMin+n.startX*r.xRatio,c=i.globals.xAxisScale.niceMin+n.endX*r.xRatio);var h=[],d=[];if(i.config.yaxis.forEach(function(t,e){h.push(i.globals.yAxisScale[e].niceMax-r.yRatio[e]*n.startY),d.push(i.globals.yAxisScale[e].niceMax-r.yRatio[e]*n.endY)}),n.dragged&&(n.dragX>10||n.dragY>10)&&l!==c)if(i.globals.zoomEnabled){var u=v.clone(i.globals.initialConfig.yaxis),p=v.clone(i.globals.initialConfig.xaxis);if(i.globals.zoomed=!0,i.config.xaxis.convertedCatToNumeric&&(l=Math.floor(l),c=Math.floor(c),l<1&&(l=1,c=i.globals.dataPoints),c-l<2&&(c=l+1)),"xy"!==e&&"x"!==e||(p={min:l,max:c}),"xy"!==e&&"y"!==e||u.forEach(function(t,e){u[e].min=d[e],u[e].max=h[e]}),i.config.chart.zoom.autoScaleYaxis){var f=new K(n.ctx);u=f.autoScaleY(n.ctx,u,{xaxis:p})}if(s){var g=s.getBeforeZoomRange(p,u);g&&(p=g.xaxis?g.xaxis:p,u=g.yaxis?g.yaxis:u)}var m={xaxis:p};i.config.chart.group||(m.yaxis=u),n.ctx.updateHelpers._updateOptions(m,!1,n.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof i.config.chart.events.zoomed&&s.zoomCallback(p,u)}else if(i.globals.selectionEnabled){var b,y=null;b={min:l,max:c},"xy"!==e&&"y"!==e||(y=v.clone(i.config.yaxis)).forEach(function(t,e){y[e].min=d[e],y[e].max=h[e]}),i.globals.selection=n.selection,"function"==typeof i.config.chart.events.selection&&i.config.chart.events.selection(n.ctx,{xaxis:b,yaxis:y})}}},{key:"panDragging",value:function(t){var e=this.w,i=t.context;if(void 0!==e.globals.lastClientPosition.x){var n=e.globals.lastClientPosition.x-i.clientX,r=e.globals.lastClientPosition.y-i.clientY;Math.abs(n)>Math.abs(r)&&n>0?this.moveDirection="left":Math.abs(n)>Math.abs(r)&&n<0?this.moveDirection="right":Math.abs(r)>Math.abs(n)&&r>0?this.moveDirection="up":Math.abs(r)>Math.abs(n)&&r<0&&(this.moveDirection="down")}e.globals.lastClientPosition={x:i.clientX,y:i.clientY},e.config.xaxis.convertedCatToNumeric||i.panScrolled(e.globals.isTimelineBar?e.globals.minY:e.globals.minX,e.globals.isTimelineBar?e.globals.maxY:e.globals.maxX)}},{key:"delayedPanScrolled",value:function(){var t=this.w,e=t.globals.minX,i=t.globals.maxX,n=(t.globals.maxX-t.globals.minX)/2;"left"===this.moveDirection?(e=t.globals.minX+n,i=t.globals.maxX+n):"right"===this.moveDirection&&(e=t.globals.minX-n,i=t.globals.maxX-n),e=Math.floor(e),i=Math.floor(i),this.updateScrolledChart({xaxis:{min:e,max:i}},e,i)}},{key:"panScrolled",value:function(t,e){var i=this.w,n=this.xyRatios,r=v.clone(i.globals.initialConfig.yaxis),s=n.xRatio,a=i.globals.minX,o=i.globals.maxX;i.globals.isTimelineBar&&(s=n.invertedYRatio,a=i.globals.minY,o=i.globals.maxY),"left"===this.moveDirection?(t=a+i.globals.gridWidth/15*s,e=o+i.globals.gridWidth/15*s):"right"===this.moveDirection&&(t=a-i.globals.gridWidth/15*s,e=o-i.globals.gridWidth/15*s),i.globals.isTimelineBar||(t<i.globals.initialMinX||e>i.globals.initialMaxX)&&(t=a,e=o);var l={min:t,max:e};i.config.chart.zoom.autoScaleYaxis&&(r=new K(this.ctx).autoScaleY(this.ctx,r,{xaxis:l}));var c={xaxis:{min:t,max:e}};i.config.chart.group||(c.yaxis=r),this.updateScrolledChart(c,t,e)}},{key:"updateScrolledChart",value:function(t,e,i){var n=this.w;this.ctx.updateHelpers._updateOptions(t,!1,!1),"function"==typeof n.config.chart.events.scrolled&&n.config.chart.events.scrolled(this.ctx,{xaxis:{min:e,max:i}})}}]),i}(),gt=function(){function t(e){s(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return o(t,[{key:"getNearestValues",value:function(t){var e=t.hoverArea,i=t.clientX,n=t.clientY,r=this.w,s=r.globals.gridWidth,a=s/(r.globals.dataPoints-1),o=r.globals.gridHeight/r.globals.dataPoints,l=t.elGrid.getBoundingClientRect(),c=this.hasBars();!r.globals.comboCharts&&!c||r.config.xaxis.convertedCatToNumeric||(a=s/r.globals.dataPoints);var h=i-l.left-r.globals.barPadForNumericAxis,d=n-l.top;h<0||d<0||h>r.globals.gridWidth||d>r.globals.gridHeight?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):r.globals.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):r.globals.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));var u=Math.round(h/a),p=Math.floor(d/o);c&&!r.config.xaxis.convertedCatToNumeric&&(u=Math.ceil(h/a),u-=1);for(var f,g=null,m=null,b=[],y=0;y<r.globals.seriesXvalues.length;y++)b.push([r.globals.seriesXvalues[y][0]-1e-6].concat(r.globals.seriesXvalues[y]));return b=b.map(function(t){return t.filter(function(t){return t})}),f=r.globals.seriesYvalues.map(function(t){return t.filter(function(t){return v.isNumber(t)})}),r.globals.isXNumeric&&(g=(m=this.closestInMultiArray(h,d,b,f)).index,u=m.j,null!==g&&(u=(m=this.closestInArray(h,b=r.globals.seriesXvalues[g])).index)),r.globals.capturedSeriesIndex=null===g?-1:g,(!u||u<1)&&(u=0),r.globals.capturedDataPointIndex=u,{capturedSeries:g,j:r.globals.isBarHorizontal?p:u,hoverX:h,hoverY:d}}},{key:"closestInMultiArray",value:function(t,e,i,n){var r=0,s=null,a=-1;this.w.globals.series.length>1?r=this.getFirstActiveXArray(i):s=0;var o=n[r][0],l=Math.abs(t-i[r][0]),c=Math.abs(e-o),h=c+l;return n.map(function(r,o){r.map(function(r,d){var u=Math.abs(e-n[o][d]),p=Math.abs(t-i[o][d]),f=p+u;f<h&&(h=f,l=p,c=u,s=o,a=d)})}),{index:s,j:a}}},{key:"getFirstActiveXArray",value:function(t){for(var e=0,i=t.map(function(t,e){return t.length>0?e:-1}),n=0;n<i.length;n++)if(-1!==i[n]){e=i[n];break}return e}},{key:"closestInArray",value:function(t,e){for(var i=null,n=Math.abs(t-e[0]),r=0;r<e.length;r++){var s=Math.abs(t-e[r]);s<n&&(n=s,i=r)}return{index:i}}},{key:"isXoverlap",value:function(t){var e=[],i=this.w.globals.seriesX.filter(function(t){return void 0!==t[0]});if(i.length>0)for(var n=0;n<i.length-1;n++)void 0!==i[n][t]&&void 0!==i[n+1][t]&&i[n][t]!==i[n+1][t]&&e.push("unEqual");return 0===e.length}},{key:"isInitialSeriesSameLen",value:function(){for(var t=!0,e=this.w.globals.initialSeries,i=0;i<e.length-1;i++)if(e[i].data.length!==e[i+1].data.length){t=!1;break}return t}},{key:"getBarsHeight",value:function(t){return m(t).reduce(function(t,e){return t+e.getBBox().height},0)}},{key:"getElMarkers",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(" .apexcharts-series-markers")}},{key:"getAllMarkers",value:function(){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(t=m(t)).sort(function(t,e){return Number(e.getAttribute("data:realIndex"))<Number(t.getAttribute("data:realIndex"))?0:-1});var e=[];return t.forEach(function(t){e.push(t.querySelector(".apexcharts-marker"))}),e}},{key:"hasMarkers",value:function(){return this.getElMarkers().length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series,  .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(t){var e=this.w,i=e.config.markers.hover.size;return void 0===i&&(i=e.globals.markers.size[t]+e.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(t){var e=this.w,i=this.ttCtx;0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=e.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var n=i.allTooltipSeriesGroups,r=0;r<n.length;r++)"enable"===t?(n[r].classList.add("apexcharts-active"),n[r].style.display=e.config.tooltip.items.display):(n[r].classList.remove("apexcharts-active"),n[r].style.display="none")}}]),t}(),mt=function(){function t(e){s(this,t),this.w=e.w,this.ctx=e.ctx,this.ttCtx=e,this.tooltipUtil=new gt(e)}return o(t,[{key:"drawSeriesTexts",value:function(t){var e=t.shared,i=void 0===e||e,n=t.ttItems,r=t.i,s=void 0===r?0:r,a=t.j,o=void 0===a?null:a,l=t.e,c=this.w;void 0!==c.config.tooltip.custom?this.handleCustomTooltip({i:s,j:o,y1:t.y1,y2:t.y2,w:c}):this.toggleActiveInactiveSeries(i);var h=this.getValuesToPrint({i:s,j:o});this.printLabels({i:s,j:o,values:h,ttItems:n,shared:i,e:l});var d=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=d.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=d.getBoundingClientRect().height}},{key:"printLabels",value:function(t){var e,i=this,n=t.i,r=t.j,s=t.values,a=t.ttItems,o=t.shared,l=t.e,c=this.w,d=[],u=function(t){return c.globals.seriesGoals[t]&&c.globals.seriesGoals[t][r]&&Array.isArray(c.globals.seriesGoals[t][r])},p=s.xVal,f=s.zVal,g=s.xAxisTTVal,m="",b=c.globals.colors[n];null!==r&&c.config.plotOptions.bar.distributed&&(b=c.globals.colors[r]);for(var v=function(t,s){var v=i.getFormatters(n);m=i.getSeriesName({fn:v.yLbTitleFormatter,index:n,seriesIndex:n,j:r}),"treemap"===c.config.chart.type&&(m=v.yLbTitleFormatter(String(c.config.series[n].data[r].x),{series:c.globals.series,seriesIndex:n,dataPointIndex:r,w:c}));var y=c.config.tooltip.inverseOrder?s:t;if(c.globals.axisCharts){var _=function(t){return v.yLbFormatter(c.globals.series[t][r],{series:c.globals.series,seriesIndex:t,dataPointIndex:r,w:c})};o?(v=i.getFormatters(y),m=i.getSeriesName({fn:v.yLbTitleFormatter,index:y,seriesIndex:n,j:r}),b=c.globals.colors[y],e=_(y),u(y)&&(d=c.globals.seriesGoals[y][r].map(function(t){return{attrs:t,val:v.yLbFormatter(t.value,{seriesIndex:y,dataPointIndex:r,w:c})}}))):(l&&l.target&&l.target.getAttribute("fill")&&(b=l.target.getAttribute("fill")),e=_(n),u(n)&&Array.isArray(c.globals.seriesGoals[n][r])&&(d=c.globals.seriesGoals[n][r].map(function(t){return{attrs:t,val:v.yLbFormatter(t.value,{seriesIndex:n,dataPointIndex:r,w:c})}})))}null===r&&(e=v.yLbFormatter(c.globals.series[n],h(h({},c),{},{seriesIndex:n,dataPointIndex:n}))),i.DOMHandling({i:n,t:y,j:r,ttItems:a,values:{val:e,goalVals:d,xVal:p,xAxisTTVal:g,zVal:f},seriesName:m,shared:o,pColor:b})},y=0,_=c.globals.series.length-1;y<c.globals.series.length;y++,_--)v(y,_)}},{key:"getFormatters",value:function(t){var e,i=this.w,n=i.globals.yLabelFormatters[t];return void 0!==i.globals.ttVal?Array.isArray(i.globals.ttVal)?(n=i.globals.ttVal[t]&&i.globals.ttVal[t].formatter,e=i.globals.ttVal[t]&&i.globals.ttVal[t].title&&i.globals.ttVal[t].title.formatter):(n=i.globals.ttVal.formatter,"function"==typeof i.globals.ttVal.title.formatter&&(e=i.globals.ttVal.title.formatter)):e=i.config.tooltip.y.title.formatter,"function"!=typeof n&&(n=i.globals.yLabelFormatters[0]?i.globals.yLabelFormatters[0]:function(t){return t}),"function"!=typeof e&&(e=function(t){return t}),{yLbFormatter:n,yLbTitleFormatter:e}}},{key:"getSeriesName",value:function(t){var e=t.seriesIndex,i=t.j,n=this.w;return(0,t.fn)(String(n.globals.seriesNames[t.index]),{series:n.globals.series,seriesIndex:e,dataPointIndex:i,w:n})}},{key:"DOMHandling",value:function(t){var e=t.t,i=t.j,n=t.ttItems,r=t.values,s=t.seriesName,a=t.shared,o=t.pColor,l=this.w,c=this.ttCtx;Object.keys(r).forEach(function(t){"string"==typeof r[t]&&(r[t]=v.sanitizeDom(r[t]))});var h=r.val,d=r.goalVals,u=r.xVal,p=r.xAxisTTVal,f=r.zVal,g=null;g=n[e].children,l.config.tooltip.fillSeriesColor&&(n[e].style.backgroundColor=o,g[0].style.display="none"),c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=u),c.blxaxisTooltip&&(c.xaxisTooltipText.innerHTML=""!==p?p:u);var m=n[e].querySelector(".apexcharts-tooltip-text-y-label");m&&(m.innerHTML=s?v.sanitizeDom(s):"");var b=n[e].querySelector(".apexcharts-tooltip-text-y-value");b&&(b.innerHTML=void 0!==h?h:""),g[0]&&g[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(o=l.config.tooltip.marker.fillColors[e]),g[0].style.backgroundColor=o),l.config.tooltip.marker.show||(g[0].style.display="none");var y=n[e].querySelector(".apexcharts-tooltip-text-goals-label"),_=n[e].querySelector(".apexcharts-tooltip-text-goals-value");if(d.length&&l.globals.seriesGoals[e]){var x=function(){var t="<div >",e="<div>";d.forEach(function(i,n){t+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(i.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(i.attrs.name,"</div>"),e+="<div>".concat(i.val,"</div>")}),y.innerHTML=t+"</div>",_.innerHTML=e+"</div>"};a?l.globals.seriesGoals[e][i]&&Array.isArray(l.globals.seriesGoals[e][i])?x():(y.innerHTML="",_.innerHTML=""):x()}else y.innerHTML="",_.innerHTML="";null!==f&&(n[e].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,n[e].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==f?f:""),a&&g[0]&&(g[0].parentNode.style.display=null==h||l.globals.collapsedSeriesIndices.indexOf(e)>-1?"none":l.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(t){var e=this.w;if(t)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=e.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=e.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(t){var e=t.i,i=t.j,n=this.w,r=this.ctx.series.filteredSeriesX(),s="",a="",o=null,l=null,c={series:n.globals.series,seriesIndex:e,dataPointIndex:i,w:n},h=n.globals.ttZFormatter;null===i?l=n.globals.series[e]:n.globals.isXNumeric&&"treemap"!==n.config.chart.type?(s=r[e][i],0===r[e].length&&(s=r[this.tooltipUtil.getFirstActiveXArray(r)][i])):s=void 0!==n.globals.labels[i]?n.globals.labels[i]:"";var d=s;return s=n.globals.isXNumeric&&"datetime"===n.config.xaxis.type?new W(this.ctx).xLabelFormat(n.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new F(this.ctx).formatDate,w:this.w}):n.globals.isBarHorizontal?n.globals.yLabelFormatters[0](d,c):n.globals.xLabelFormatter(d,c),void 0!==n.config.tooltip.x.formatter&&(s=n.globals.ttKeyFormatter(d,c)),n.globals.seriesZ.length>0&&n.globals.seriesZ[e].length>0&&(o=h(n.globals.seriesZ[e][i],n)),a="function"==typeof n.config.xaxis.tooltip.formatter?n.globals.xaxisTooltipFormatter(d,c):s,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(s)?s.join(" "):s,xAxisTTVal:Array.isArray(a)?a.join(" "):a,zVal:o}}},{key:"handleCustomTooltip",value:function(t){var e=t.i,i=t.j,n=t.y1,r=t.y2,s=t.w,a=this.ttCtx.getElTooltip(),o=s.config.tooltip.custom;Array.isArray(o)&&o[e]&&(o=o[e]),a.innerHTML=o({ctx:this.ctx,series:s.globals.series,seriesIndex:e,dataPointIndex:i,y1:n,y2:r,w:s})}}]),t}(),bt=function(){function t(e){s(this,t),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return o(t,[{key:"moveXCrosshairs",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,n=this.w,r=i.getElXCrosshairs(),s=t-i.xcrosshairsWidth/2,a=n.globals.labels.slice().length;if(null!==e&&(s=n.globals.gridWidth/a*e),null!==r&&(r.setAttribute("x",s),r.setAttribute("x1",s),r.setAttribute("x2",s),r.setAttribute("y2",n.globals.gridHeight),r.classList.add("apexcharts-active")),s<0&&(s=0),s>n.globals.gridWidth&&(s=n.globals.gridWidth),i.blxaxisTooltip){var o=s;"tickWidth"!==n.config.xaxis.crosshairs.width&&"barWidth"!==n.config.xaxis.crosshairs.width||(o=s+i.xcrosshairsWidth/2),this.moveXAxisTooltip(o)}}},{key:"moveYCrosshairs",value:function(t){var e=this.ttCtx;null!==e.ycrosshairs&&x.setAttrs(e.ycrosshairs,{y1:t,y2:t}),null!==e.ycrosshairsHidden&&x.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}},{key:"moveXAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;if(null!==i.xaxisTooltip){i.xaxisTooltip.classList.add("apexcharts-active");var n,r=i.xaxisOffY+e.config.xaxis.tooltip.offsetY+e.globals.translateY+1+e.config.xaxis.offsetY;t-=i.xaxisTooltip.getBoundingClientRect().width/2,isNaN(t)||(t+=e.globals.translateX,n=new x(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=n.width+"px",i.xaxisTooltip.style.left=t+"px",i.xaxisTooltip.style.top=r+"px")}}},{key:"moveYAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;null===i.yaxisTTEls&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var n=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),r=e.globals.translateY+n,s=i.yaxisTTEls[t].getBoundingClientRect().height,a=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(a-=26),r-=s/2,-1===e.globals.ignoreYAxisIndexes.indexOf(t)?(i.yaxisTTEls[t].classList.add("apexcharts-active"),i.yaxisTTEls[t].style.top=r+"px",i.yaxisTTEls[t].style.left=a+e.config.yaxis[t].tooltip.offsetX+"px"):i.yaxisTTEls[t].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.w,r=this.ttCtx,s=r.getElTooltip(),a=r.tooltipRect,o=null!==i?parseFloat(i):1,l=parseFloat(t)+o+5,c=parseFloat(e)+o/2;if(l>n.globals.gridWidth/2&&(l=l-a.ttWidth-o-15),l>n.globals.gridWidth-a.ttWidth-10&&(l=n.globals.gridWidth-a.ttWidth),l<-20&&(l=-20),n.config.tooltip.followCursor){var h=r.getElGrid(),d=h.getBoundingClientRect();c=r.e.clientY+n.globals.translateY-d.top-a.ttHeight/2}else n.globals.isBarHorizontal?c-=a.ttHeight:(a.ttHeight/2+c>n.globals.gridHeight&&(c=n.globals.gridHeight-a.ttHeight+n.globals.translateY),c<0&&(c=0));isNaN(l)||(s.style.left=(l+=n.globals.translateX)+"px",s.style.top=c+"px")}},{key:"moveMarkers",value:function(t,e){var i=this.w,n=this.ttCtx;if(i.globals.markers.size[t]>0)for(var r=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-marker")),s=0;s<r.length;s++)parseInt(r[s].getAttribute("rel"),10)===e&&(n.marker.resetPointsSize(),n.marker.enlargeCurrentPoint(e,r[s]));else n.marker.resetPointsSize(),this.moveDynamicPointOnHover(e,t)}},{key:"moveDynamicPointOnHover",value:function(t,e){var i,n,r=this.w,s=this.ttCtx,a=r.globals.pointsArray,o=s.tooltipUtil.getHoverMarkerSize(e),l=r.config.series[e].type;if(!l||"column"!==l&&"candlestick"!==l&&"boxPlot"!==l){i=a[e][t][0],n=a[e][t][1]?a[e][t][1]:0;var c=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers circle"));c&&n<r.globals.gridHeight&&n>0&&(c.setAttribute("r",o),c.setAttribute("cx",i),c.setAttribute("cy",n)),this.moveXCrosshairs(i),s.fixedTooltip||this.moveTooltip(i,n,o)}}},{key:"moveDynamicPointsOnHover",value:function(t){var e,i=this.ttCtx,n=i.w,r=0,s=0,a=n.globals.pointsArray;e=new L(this.ctx).getActiveConfigSeriesIndex(!0);var o=i.tooltipUtil.getHoverMarkerSize(e);a[e]&&(r=a[e][t][0],s=a[e][t][1]);var l=i.tooltipUtil.getAllMarkers();if(null!==l)for(var c=0;c<n.globals.series.length;c++){var h=a[c];if(n.globals.comboCharts&&void 0===h&&l.splice(c,0,null),h&&h.length){var d=a[c][t][1];l[c].setAttribute("cx",r),null!==d&&!isNaN(d)&&d<n.globals.gridHeight&&d>0?(l[c]&&l[c].setAttribute("r",o),l[c]&&l[c].setAttribute("cy",d)):l[c]&&l[c].setAttribute("r",0)}}this.moveXCrosshairs(r),i.fixedTooltip||this.moveTooltip(r,s||n.globals.gridHeight,o)}},{key:"moveStickyTooltipOverBars",value:function(t){var e=this.w,i=this.ttCtx,n=e.globals.columnSeries?e.globals.columnSeries.length:e.globals.series.length,r=n>=2&&n%2==0?Math.floor(n/2):Math.floor(n/2)+1;e.globals.isBarHorizontal&&(r=new L(this.ctx).getActiveConfigSeriesIndex(!1,"desc")+1);var s=e.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(r,"'] path[j='").concat(t,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"']")),a=s?parseFloat(s.getAttribute("cx")):0,o=s?parseFloat(s.getAttribute("cy")):0,l=s?parseFloat(s.getAttribute("barWidth")):0,c=s?parseFloat(s.getAttribute("barHeight")):0,h=i.getElGrid().getBoundingClientRect();e.globals.isXNumeric?(a-=n%2!=0?l/2:0,s&&(s.classList.contains("apexcharts-candlestick-area")||s.classList.contains("apexcharts-boxPlot-area"))&&e.globals.comboCharts&&(a-=l/2)):e.globals.isBarHorizontal||(a=i.xAxisTicksPositions[t-1]+i.dataPointsDividedWidth/2,isNaN(a)&&(a=i.xAxisTicksPositions[t]-i.dataPointsDividedWidth/2)),e.globals.isBarHorizontal?o+=c/3:o=i.e.clientY-h.top-i.tooltipRect.ttHeight/2,e.globals.isBarHorizontal||this.moveXCrosshairs(a),i.fixedTooltip||this.moveTooltip(a,o||e.globals.gridHeight)}}]),t}(),vt=function(){function t(e){s(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new bt(e)}return o(t,[{key:"drawDynamicPoints",value:function(){var t=this.w,e=new x(this.ctx),i=new P(this.ctx),n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");n=m(n),t.config.chart.stacked&&n.sort(function(t,e){return parseFloat(t.getAttribute("data:realIndex"))-parseFloat(e.getAttribute("data:realIndex"))});for(var r=0;r<n.length;r++){var s=n[r].querySelector(".apexcharts-series-markers-wrap");if(null!==s){var a=void 0,o="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));"line"!==t.config.chart.type&&"area"!==t.config.chart.type||t.globals.comboCharts||t.config.tooltip.intersect||(o+=" no-pointer-events");var l=i.getMarkerConfig(o,r);(a=e.drawMarker(0,0,l)).node.setAttribute("default-marker-size",0);var c=document.createElementNS(t.globals.SVGNS,"g");c.classList.add("apexcharts-series-markers"),c.appendChild(a.node),s.appendChild(c)}}}},{key:"enlargeCurrentPoint",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=this.w;"bubble"!==r.config.chart.type&&this.newPointSize(t,e);var s=e.getAttribute("cx"),a=e.getAttribute("cy");if(null!==i&&null!==n&&(s=i,a=n),this.tooltipPosition.moveXCrosshairs(s),!this.fixedTooltip){if("radar"===r.config.chart.type){var o=this.ttCtx.getElGrid(),l=o.getBoundingClientRect();s=this.ttCtx.e.clientX-l.left}this.tooltipPosition.moveTooltip(s,a,r.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var e=this.w,i=this,n=this.ttCtx,r=t,s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),a=e.config.markers.hover.size,o=0;o<s.length;o++){var l=s[o].getAttribute("rel"),c=s[o].getAttribute("index");if(void 0===a&&(a=e.globals.markers.size[c]+e.config.markers.hover.sizeOffset),r===parseInt(l,10)){i.newPointSize(r,s[o]);var h=s[o].getAttribute("cx"),d=s[o].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(h),n.fixedTooltip||i.tooltipPosition.moveTooltip(h,d,a)}else i.oldPointSize(s[o])}}},{key:"newPointSize",value:function(t,e){var i=this.w,n=i.config.markers.hover.size,r=0===t?e.parentNode.firstChild:e.parentNode.lastChild;if("0"!==r.getAttribute("default-marker-size")){var s=parseInt(r.getAttribute("index"),10);void 0===n&&(n=i.globals.markers.size[s]+i.config.markers.hover.sizeOffset),n<0&&(n=0),r.setAttribute("r",n)}}},{key:"oldPointSize",value:function(t){var e=parseFloat(t.getAttribute("default-marker-size"));t.setAttribute("r",e)}},{key:"resetPointsSize",value:function(){for(var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),e=0;e<t.length;e++){var i=parseFloat(t[e].getAttribute("default-marker-size"));v.isNumber(i)&&i>=0?t[e].setAttribute("r",i):t[e].setAttribute("r",0)}}}]),t}(),yt=function(){function t(e){s(this,t),this.w=e.w,this.ttCtx=e}return o(t,[{key:"getAttr",value:function(t,e){return parseFloat(t.target.getAttribute(e))}},{key:"handleHeatTreeTooltip",value:function(t){var e=t.e,i=t.opt,n=t.x,r=t.y,s=this.ttCtx,a=this.w;if(e.target.classList.contains("apexcharts-".concat(t.type,"-rect"))){var o=this.getAttr(e,"i"),l=this.getAttr(e,"j"),c=this.getAttr(e,"cx"),h=this.getAttr(e,"cy"),d=this.getAttr(e,"width"),u=this.getAttr(e,"height");if(s.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:o,j:l,shared:!1,e:e}),a.globals.capturedSeriesIndex=o,a.globals.capturedDataPointIndex=l,n=c+s.tooltipRect.ttWidth/2+d,r=h+s.tooltipRect.ttHeight/2-u/2,s.tooltipPosition.moveXCrosshairs(c+d/2),n>a.globals.gridWidth/2&&(n=c-s.tooltipRect.ttWidth/2+d),s.w.config.tooltip.followCursor){var p=a.globals.dom.elWrap.getBoundingClientRect();n=a.globals.clientX-p.left-s.tooltipRect.ttWidth/2,r=a.globals.clientY-p.top-s.tooltipRect.ttHeight-5}}return{x:n,y:r}}},{key:"handleMarkerTooltip",value:function(t){var e,i,n=t.e,r=t.opt,s=t.x,a=t.y,o=this.w,l=this.ttCtx;if(n.target.classList.contains("apexcharts-marker")){var c=parseInt(r.paths.getAttribute("cx"),10),h=parseInt(r.paths.getAttribute("cy"),10),d=parseFloat(r.paths.getAttribute("val"));if(i=parseInt(r.paths.getAttribute("rel"),10),e=parseInt(r.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var u=v.findAncestor(r.paths,"apexcharts-series");u&&(e=parseInt(u.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:e,j:i,shared:!l.showOnIntersect&&o.config.tooltip.shared,e:n}),"mouseup"===n.type&&l.markerClick(n,e,i),o.globals.capturedSeriesIndex=e,o.globals.capturedDataPointIndex=i,s=c,a=h+o.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var p=l.getElGrid().getBoundingClientRect();a=l.e.clientY+o.globals.translateY-p.top}d<0&&(a=h),l.marker.enlargeCurrentPoint(i,r.paths,s,a)}return{x:s,y:a}}},{key:"handleBarTooltip",value:function(t){var e,i,n=t.e,r=t.opt,s=this.w,a=this.ttCtx,o=a.getElTooltip(),l=0,c=0,h=0,d=this.getBarTooltipXY({e:n,opt:r}),u=d.barHeight,p=d.j;s.globals.capturedSeriesIndex=e=d.i,s.globals.capturedDataPointIndex=p,s.globals.isBarHorizontal&&a.tooltipUtil.hasBars()||!s.config.tooltip.shared?(c=d.x,h=d.y,i=Array.isArray(s.config.stroke.width)?s.config.stroke.width[e]:s.config.stroke.width,l=c):s.globals.comboCharts||s.config.tooltip.shared||(l/=2),isNaN(h)?h=s.globals.svgHeight-a.tooltipRect.ttHeight:h<0&&(h=0);var f=parseInt(r.paths.parentNode.getAttribute("data:realIndex"),10),g=s.globals.isMultipleYAxis?s.config.yaxis[f]&&s.config.yaxis[f].reversed:s.config.yaxis[0].reversed;if(c+a.tooltipRect.ttWidth>s.globals.gridWidth&&!g?c-=a.tooltipRect.ttWidth:c<0&&(c=0),a.w.config.tooltip.followCursor){var m=a.getElGrid().getBoundingClientRect();h=a.e.clientY-m.top}null===a.tooltip&&(a.tooltip=s.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),s.config.tooltip.shared||a.tooltipPosition.moveXCrosshairs(s.globals.comboBarCount>0?l+i/2:l),!a.fixedTooltip&&(!s.config.tooltip.shared||s.globals.isBarHorizontal&&a.tooltipUtil.hasBars())&&(g&&(c-=a.tooltipRect.ttWidth)<0&&(c=0),o.style.left=c+s.globals.translateX+"px",!g||s.globals.isBarHorizontal&&a.tooltipUtil.hasBars()||(h=h+u-2*(s.globals.series[e][p]<0?u:0)),o.style.top=a.tooltipRect.ttHeight+h>s.globals.gridHeight?(h=s.globals.gridHeight-a.tooltipRect.ttHeight+s.globals.translateY)+"px":h+s.globals.translateY-a.tooltipRect.ttHeight/2+"px")}},{key:"getBarTooltipXY",value:function(t){var e=t.e,i=t.opt,n=this.w,r=null,s=this.ttCtx,a=0,o=0,l=0,c=0,h=0,d=e.target.classList;if(d.contains("apexcharts-bar-area")||d.contains("apexcharts-candlestick-area")||d.contains("apexcharts-boxPlot-area")||d.contains("apexcharts-rangebar-area")){var u=e.target,p=u.getBoundingClientRect(),f=i.elGrid.getBoundingClientRect(),g=p.height;h=p.height;var m=p.width,b=parseInt(u.getAttribute("cx"),10),v=parseInt(u.getAttribute("cy"),10);c=parseFloat(u.getAttribute("barWidth"));var y="touchmove"===e.type?e.touches[0].clientX:e.clientX;r=parseInt(u.getAttribute("j"),10),a=parseInt(u.parentNode.getAttribute("rel"),10)-1;var _=u.getAttribute("data-range-y1"),x=u.getAttribute("data-range-y2");n.globals.comboCharts&&(a=parseInt(u.parentNode.getAttribute("data:realIndex"),10)),s.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:a,j:r,y1:_?parseInt(_,10):null,y2:x?parseInt(x,10):null,shared:!s.showOnIntersect&&n.config.tooltip.shared,e:e}),n.config.tooltip.followCursor?n.globals.isBarHorizontal?(o=y-f.left+15,l=v-s.dataPointsDividedHeight+g/2-s.tooltipRect.ttHeight/2):(o=n.globals.isXNumeric?b-m/2:b-s.dataPointsDividedWidth+m/2,l=e.clientY-f.top-s.tooltipRect.ttHeight/2-15):n.globals.isBarHorizontal?((o=b)<s.xyRatios.baseLineInvertedY&&(o=b-s.tooltipRect.ttWidth),l=v-s.dataPointsDividedHeight+g/2-s.tooltipRect.ttHeight/2):(o=n.globals.isXNumeric?b-m/2:b-s.dataPointsDividedWidth+m/2,l=v)}return{x:o,y:l,barHeight:h,barWidth:c,i:a,j:r}}}]),t}(),_t=function(){function t(e){s(this,t),this.w=e.w,this.ttCtx=e}return o(t,[{key:"drawXaxisTooltip",value:function(){var t=this.w,e=this.ttCtx,i="bottom"===t.config.xaxis.position;e.xaxisOffY=i?t.globals.gridHeight+1:-t.globals.xAxisHeight-t.config.xaxis.axisTicks.height+3;var n=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",r=t.globals.dom.elWrap;e.blxaxisTooltip&&null===t.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(e.xaxisTooltip=document.createElement("div"),e.xaxisTooltip.setAttribute("class",n+" apexcharts-theme-"+t.config.tooltip.theme),r.appendChild(e.xaxisTooltip),e.xaxisTooltipText=document.createElement("div"),e.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),e.xaxisTooltipText.style.fontFamily=t.config.xaxis.tooltip.style.fontFamily||t.config.chart.fontFamily,e.xaxisTooltipText.style.fontSize=t.config.xaxis.tooltip.style.fontSize,e.xaxisTooltip.appendChild(e.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var t=this.w,e=this.ttCtx,i=function(i){var n=t.config.yaxis[i].opposite||t.config.yaxis[i].crosshairs.opposite;e.yaxisOffX=n?t.globals.gridWidth+1:1;var r="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i,n?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");t.globals.yAxisSameScaleIndices.map(function(e,n){e.map(function(e,n){n===i&&(r+=t.config.yaxis[n].show?" ":" apexcharts-yaxistooltip-hidden")})});var s=t.globals.dom.elWrap;null===t.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i))&&(e.yaxisTooltip=document.createElement("div"),e.yaxisTooltip.setAttribute("class",r+" apexcharts-theme-"+t.config.tooltip.theme),s.appendChild(e.yaxisTooltip),0===i&&(e.yaxisTooltipText=[]),e.yaxisTooltipText[i]=document.createElement("div"),e.yaxisTooltipText[i].classList.add("apexcharts-yaxistooltip-text"),e.yaxisTooltip.appendChild(e.yaxisTooltipText[i]))},n=0;n<t.config.yaxis.length;n++)i(n)}},{key:"setXCrosshairWidth",value:function(){var t=this.w,e=this.ttCtx,i=e.getElXCrosshairs();if(e.xcrosshairsWidth=parseInt(t.config.xaxis.crosshairs.width,10),t.globals.comboCharts){var n=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==n&&"barWidth"===t.config.xaxis.crosshairs.width){var r=parseFloat(n.getAttribute("barWidth"));e.xcrosshairsWidth=r}else"tickWidth"===t.config.xaxis.crosshairs.width&&(e.xcrosshairsWidth=t.globals.gridWidth/t.globals.labels.length)}else if("tickWidth"===t.config.xaxis.crosshairs.width)e.xcrosshairsWidth=t.globals.gridWidth/t.globals.labels.length;else if("barWidth"===t.config.xaxis.crosshairs.width){var s=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==s){var a=parseFloat(s.getAttribute("barWidth"));e.xcrosshairsWidth=a}else e.xcrosshairsWidth=1}t.globals.isBarHorizontal&&(e.xcrosshairsWidth=0),null!==i&&e.xcrosshairsWidth>0&&i.setAttribute("width",e.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var t=this.w,e=this.ttCtx;e.ycrosshairs=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(t,e,i){var n=this.ttCtx,r=this.w,s=r.globals.yLabelFormatters[t];if(n.yaxisTooltips[t]){var a=n.getElGrid().getBoundingClientRect(),o=r.globals.minYArr[t]+(r.globals.maxYArr[t]-r.globals.minYArr[t]-(e-a.top)*i.yRatio[t]);n.tooltipPosition.moveYCrosshairs(e-a.top),n.yaxisTooltipText[t].innerHTML=s(o),n.tooltipPosition.moveYAxisTooltip(t)}}}]),t}(),xt=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.tConfig=i.config.tooltip,this.tooltipUtil=new gt(this),this.tooltipLabels=new mt(this),this.tooltipPosition=new bt(this),this.marker=new vt(this),this.intersect=new yt(this),this.axesTooltip=new _t(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!i.globals.isBarHorizontal&&this.tConfig.shared}return o(t,[{key:"getElTooltip",value:function(t){return t||(t=this),t.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip")}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(t){var e=this.w;this.xyRatios=t,this.blxaxisTooltip=e.config.xaxis.tooltip.enabled&&e.globals.axisCharts,this.yaxisTooltips=e.config.yaxis.map(function(t,i){return!!(t.show&&t.tooltip.enabled&&e.globals.axisCharts)}),this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),e.globals.dom.elWrap.appendChild(i),e.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var n=new q(this.ctx);this.xAxisTicksPositions=n.getXAxisTicksPositions()}if(!e.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==e.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==e.config.markers.size&&0!==e.globals.markers.largestSize||this.marker.drawDynamicPoints(this),e.globals.collapsedSeries.length!==e.globals.series.length){this.dataPointsDividedHeight=e.globals.gridHeight/e.globals.dataPoints,this.dataPointsDividedWidth=e.globals.gridWidth/e.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var r=e.globals.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(r=this.showOnIntersect?1:e.globals.series.length),this.legendLabels=e.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(r),this.addSVGEvents()}}},{key:"createTTElements",value:function(t){for(var e=this,i=this.w,n=[],r=this.getElTooltip(),s=function(s){var a=document.createElement("div");a.classList.add("apexcharts-tooltip-series-group"),a.style.order=i.config.tooltip.inverseOrder?t-s:s+1,e.tConfig.shared&&e.tConfig.enabledOnSeries&&Array.isArray(e.tConfig.enabledOnSeries)&&e.tConfig.enabledOnSeries.indexOf(s)<0&&a.classList.add("apexcharts-tooltip-series-group-hidden");var o=document.createElement("span");o.classList.add("apexcharts-tooltip-marker"),o.style.backgroundColor=i.globals.colors[s],a.appendChild(o);var l=document.createElement("div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=e.tConfig.style.fontFamily||i.config.chart.fontFamily,l.style.fontSize=e.tConfig.style.fontSize,["y","goals","z"].forEach(function(t){var e=document.createElement("div");e.classList.add("apexcharts-tooltip-".concat(t,"-group"));var i=document.createElement("span");i.classList.add("apexcharts-tooltip-text-".concat(t,"-label")),e.appendChild(i);var n=document.createElement("span");n.classList.add("apexcharts-tooltip-text-".concat(t,"-value")),e.appendChild(n),l.appendChild(e)}),a.appendChild(l),r.appendChild(a),n.push(a)},a=0;a<t;a++)s(a);return n}},{key:"addSVGEvents",value:function(){var t=this.w,e=t.config.chart.type,i=this.getElTooltip(),n=!("bar"!==e&&"candlestick"!==e&&"boxPlot"!==e&&"rangeBar"!==e),r="area"===e||"line"===e||"scatter"===e||"bubble"===e||"radar"===e,s=t.globals.dom.Paper.node,a=this.getElGrid();a&&(this.seriesBound=a.getBoundingClientRect());var o,l=[],c=[],h={hoverArea:s,elGrid:a,tooltipEl:i,tooltipY:l,tooltipX:c,ttItems:this.ttItems};if(t.globals.axisCharts&&(r?o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):n?o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==e&&"treemap"!==e||(o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),o&&o.length))for(var d=0;d<o.length;d++)l.push(o[d].getAttribute("cy")),c.push(o[d].getAttribute("cx"));if(t.globals.xyCharts&&!this.showOnIntersect||t.globals.comboCharts&&!this.showOnIntersect||n&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([s],h);else if(n&&!t.globals.comboCharts||r&&this.showOnIntersect)this.addDatapointEventsListeners(h);else if(!t.globals.axisCharts||"heatmap"===e||"treemap"===e){var u=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(u,h)}if(this.showOnIntersect){var p=t.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");p.length>0&&this.addPathsEventListeners(p,h),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(h)}}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=this.getElTooltip(),i=e.getBoundingClientRect(),n=i.width+10,r=i.height+10,s=this.tConfig.fixed.offsetX,a=this.tConfig.fixed.offsetY,o=this.tConfig.fixed.position.toLowerCase();return o.indexOf("right")>-1&&(s=s+t.globals.svgWidth-n+10),o.indexOf("bottom")>-1&&(a=a+t.globals.svgHeight-r-10),e.style.left=s+"px",e.style.top=a+"px",{x:s,y:a,ttWidth:n,ttHeight:r}}},{key:"addDatapointEventsListeners",value:function(t){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(e,t)}},{key:"addPathsEventListeners",value:function(t,e){for(var i=this,n=function(n){var r={paths:t[n],tooltipEl:e.tooltipEl,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:e.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(e){return t[n].addEventListener(e,i.seriesHover.bind(i,r),{capture:!1,passive:!0})})},r=0;r<t.length;r++)n(r)}},{key:"seriesHover",value:function(t,e){var i=this,n=[],r=this.w;r.config.chart.group&&(n=this.ctx.getGroupedCharts()),r.globals.axisCharts&&(r.globals.minX===-1/0&&r.globals.maxX===1/0||0===r.globals.dataPoints)||(n.length?n.forEach(function(n){var r=i.getElTooltip(n);n.w.globals.minX===i.w.globals.minX&&n.w.globals.maxX===i.w.globals.maxX&&n.w.globals.tooltip.seriesHoverByContext({chartCtx:n,ttCtx:n.w.globals.tooltip,opt:{paths:t.paths,tooltipEl:r,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:n.w.globals.tooltip.ttItems},e:e})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:t,e:e}))}},{key:"seriesHoverByContext",value:function(t){var e=t.chartCtx,i=t.ttCtx,n=t.opt,r=t.e,s=e.w,a=this.getElTooltip();i.tooltipRect={x:0,y:0,ttWidth:a.getBoundingClientRect().width,ttHeight:a.getBoundingClientRect().height},i.e=r,!i.tooltipUtil.hasBars()||s.globals.comboCharts||i.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new L(e).toggleSeriesOnHover(r,r.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),s.globals.axisCharts?i.axisChartsTooltips({e:r,opt:n,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:r,opt:n,tooltipRect:i.tooltipRect})}},{key:"axisChartsTooltips",value:function(t){var e,i,n=t.e,r=t.opt,s=this.w,a=r.elGrid.getBoundingClientRect(),o="touchmove"===n.type?n.touches[0].clientX:n.clientX,l="touchmove"===n.type?n.touches[0].clientY:n.clientY;if(this.clientY=l,this.clientX=o,s.globals.capturedSeriesIndex=-1,s.globals.capturedDataPointIndex=-1,l<a.top||l>a.top+a.height)this.handleMouseOut(r);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!s.config.tooltip.shared){var c=parseInt(r.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(r)}var h=this.getElTooltip(),d=this.getElXCrosshairs(),u=s.globals.xyCharts||"bar"===s.config.chart.type&&!s.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||s.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===n.type||"touchmove"===n.type||"mouseup"===n.type){null!==d&&d.classList.add("apexcharts-active");var p=this.yaxisTooltips.filter(function(t){return!0===t});if(null!==this.ycrosshairs&&p.length&&this.ycrosshairs.classList.add("apexcharts-active"),u&&!this.showOnIntersect)this.handleStickyTooltip(n,o,l,r);else if("heatmap"===s.config.chart.type||"treemap"===s.config.chart.type){var f=this.intersect.handleHeatTreeTooltip({e:n,opt:r,x:e,y:i,type:s.config.chart.type});i=f.y,h.style.left=(e=f.x)+"px",h.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:n,opt:r}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:n,opt:r,x:e,y:i});if(this.yaxisTooltips.length)for(var g=0;g<s.config.yaxis.length;g++)this.axesTooltip.drawYaxisTooltipText(g,l,this.xyRatios);r.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==n.type&&"touchend"!==n.type||this.handleMouseOut(r)}}},{key:"nonAxisChartsTooltips",value:function(t){var e=t.e,i=t.opt,n=t.tooltipRect,r=this.w,s=i.paths.getAttribute("rel"),a=this.getElTooltip(),o=r.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===e.type||"touchmove"===e.type){a.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(s,10)-1,shared:!1});var l=r.globals.clientY-o.top-n.ttHeight-10;if(a.style.left=r.globals.clientX-o.left-n.ttWidth/2+"px",a.style.top=l+"px",r.config.legend.tooltipHoverFormatter){var c=s-1,h=(0,r.config.legend.tooltipHoverFormatter)(this.legendLabels[c].getAttribute("data:default-text"),{seriesIndex:c,dataPointIndex:c,w:r});this.legendLabels[c].innerHTML=h}}else"mouseout"!==e.type&&"touchend"!==e.type||(a.classList.remove("apexcharts-active"),r.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}))}},{key:"handleStickyTooltip",value:function(t,e,i,n){var r=this.w,s=this.tooltipUtil.getNearestValues({context:this,hoverArea:n.hoverArea,elGrid:n.elGrid,clientX:e,clientY:i}),a=s.j,o=s.capturedSeries;s.hoverX<0||s.hoverX>r.globals.gridWidth?this.handleMouseOut(n):null!==o?this.handleStickyCapturedSeries(t,o,n,a):(this.tooltipUtil.isXoverlap(a)||r.globals.isBarHorizontal)&&this.create(t,this,0,a,n.ttItems)}},{key:"handleStickyCapturedSeries",value:function(t,e,i,n){var r=this.w;null===r.globals.series[e][n]?this.handleMouseOut(i):void 0!==r.globals.series[e][n]?this.tConfig.shared&&this.tooltipUtil.isXoverlap(n)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,n,i.ttItems):this.create(t,this,e,n,i.ttItems,!1):this.tooltipUtil.isXoverlap(n)&&this.create(t,this,0,n,i.ttItems)}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new x(this.ctx),i=t.globals.dom.Paper.select(".apexcharts-bar-area"),n=0;n<i.length;n++)e.pathMouseLeave(i[n])}},{key:"handleMouseOut",value:function(t){var e=this.w,i=this.getElXCrosshairs();if(t.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==e.config.chart.type&&this.marker.resetPointsSize(),null!==i&&i.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.blxaxisTooltip&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var n=0;n<this.yaxisTTEls.length;n++)this.yaxisTTEls[n].classList.remove("apexcharts-active")}e.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)})}},{key:"markerClick",value:function(t,e,i){var n=this.w;"function"==typeof n.config.chart.events.markerClick&&n.config.chart.events.markerClick(t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:n}),this.ctx.events.fireEvent("markerClick",[t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:n}])}},{key:"create",value:function(t,e,i,n,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=this.w,o=e;"mouseup"===t.type&&this.markerClick(t,i,n),null===s&&(s=this.tConfig.shared);var l=this.tooltipUtil.hasMarkers(),c=this.tooltipUtil.getElBars();if(a.config.legend.tooltipHoverFormatter){var h=a.config.legend.tooltipHoverFormatter,d=Array.from(this.legendLabels);d.forEach(function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)});for(var u=0;u<d.length;u++){var p=d[u],f=parseInt(p.getAttribute("i"),10),g=decodeURIComponent(p.getAttribute("data:default-text")),m=h(g,{seriesIndex:s?f:i,dataPointIndex:n,w:a});if(s)p.innerHTML=a.globals.collapsedSeriesIndices.indexOf(f)<0?m:g;else if(p.innerHTML=f===i?m:g,i===f)break}}if(s){if(o.tooltipLabels.drawSeriesTexts({ttItems:r,i:i,j:n,shared:!this.showOnIntersect&&this.tConfig.shared}),l&&(a.globals.markers.largestSize>0?o.marker.enlargePoints(n):o.tooltipPosition.moveDynamicPointsOnHover(n)),this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(c),this.barSeriesHeight>0)){var b=new x(this.ctx),v=a.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(n,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(n);for(var y=0;y<v.length;y++)b.pathMouseEnter(v[y])}}else o.tooltipLabels.drawSeriesTexts({shared:!1,ttItems:r,i:i,j:n}),this.tooltipUtil.hasBars()&&o.tooltipPosition.moveStickyTooltipOverBars(n),l&&o.tooltipPosition.moveMarkers(i,n)}}]),t}(),wt=function(t){d(i,z);var e=g(i);function i(){return s(this,i),e.apply(this,arguments)}return o(i,[{key:"draw",value:function(t,e){var i=this,n=this.w;this.graphics=new x(this.ctx),this.bar=new z(this.ctx,this.xyRatios);var r=new k(this.ctx,n);t=r.getLogSeries(t),this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t),"100%"===n.config.chart.stackType&&(t=n.globals.seriesPercent.slice()),this.series=t,this.totalItems=0,this.prevY=[],this.prevX=[],this.prevYF=[],this.prevXF=[],this.prevYVal=[],this.prevXVal=[],this.xArrj=[],this.xArrjF=[],this.xArrjVal=[],this.yArrj=[],this.yArrjF=[],this.yArrjVal=[];for(var s=0;s<t.length;s++)t[s].length>0&&(this.totalItems+=t[s].length);for(var a=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),o=0,l=0,c=function(r,s){var c=void 0,d=void 0,u=void 0,p=void 0,f=[],g=[],m=n.globals.comboCharts?e[r]:r;i.yRatio.length>1&&(i.yaxisIndex=m),i.isReversed=n.config.yaxis[i.yaxisIndex]&&n.config.yaxis[i.yaxisIndex].reversed;var b=i.graphics.group({class:"apexcharts-series",seriesName:v.escapeString(n.globals.seriesNames[m]),rel:r+1,"data:realIndex":m});i.ctx.series.addCollapsedClassToSeries(b,m);var y=i.graphics.group({class:"apexcharts-datalabels","data:realIndex":m}),_=0,x=0,w=i.initialPositions(o,l,c,d,u,p);l=w.y,_=w.barHeight,d=w.yDivision,p=w.zeroW,o=w.x,x=w.barWidth,c=w.xDivision,u=w.zeroH,i.yArrj=[],i.yArrjF=[],i.yArrjVal=[],i.xArrj=[],i.xArrjF=[],i.xArrjVal=[],1===i.prevY.length&&i.prevY[0].every(function(t){return isNaN(t)})&&(i.prevY[0]=i.prevY[0].map(function(t){return u}),i.prevYF[0]=i.prevYF[0].map(function(t){return 0}));for(var C=0;C<n.globals.dataPoints;C++){var k=i.barHelpers.getStrokeWidth(r,C,m),S={indexes:{i:r,j:C,realIndex:m,bc:s},strokeWidth:k,x:o,y:l,elSeries:b},T=null;i.isHorizontal?(T=i.drawStackedBarPaths(h(h({},S),{},{zeroW:p,barHeight:_,yDivision:d})),x=i.series[r][C]/i.invertedYRatio):(T=i.drawStackedColumnPaths(h(h({},S),{},{xDivision:c,barWidth:x,zeroH:u})),_=i.series[r][C]/i.yRatio[i.yaxisIndex]),l=T.y,f.push(o=T.x),g.push(l);var A=i.barHelpers.getPathFillColor(t,r,C,m);b=i.renderSeries({realIndex:m,pathFill:A,j:C,i:r,pathFrom:T.pathFrom,pathTo:T.pathTo,strokeWidth:k,elSeries:b,x:o,y:l,series:t,barHeight:_,barWidth:x,elDataLabelsWrap:y,type:"bar",visibleSeries:0})}n.globals.seriesXvalues[m]=f,n.globals.seriesYvalues[m]=g,i.prevY.push(i.yArrj),i.prevYF.push(i.yArrjF),i.prevYVal.push(i.yArrjVal),i.prevX.push(i.xArrj),i.prevXF.push(i.xArrjF),i.prevXVal.push(i.xArrjVal),a.add(b)},d=0,u=0;d<t.length;d++,u++)c(d,u);return a}},{key:"initialPositions",value:function(t,e,i,n,r,s){var a,o,l=this.w;return this.isHorizontal?(a=(a=n=l.globals.gridHeight/l.globals.dataPoints)*parseInt(l.config.plotOptions.bar.barHeight,10)/100,s=this.baseLineInvertedY+l.globals.padHorizontal+(this.isReversed?l.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),e=(n-a)/2):(o=i=l.globals.gridWidth/l.globals.dataPoints,o=l.globals.isXNumeric&&l.globals.dataPoints>1?(i=l.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:o*parseInt(l.config.plotOptions.bar.columnWidth,10)/100,r=this.baseLineY[this.yaxisIndex]+(this.isReversed?l.globals.gridHeight:0)-(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),t=l.globals.padHorizontal+(i-o)/2),{x:t,y:e,yDivision:n,xDivision:i,barHeight:a,barWidth:o,zeroH:r,zeroW:s}}},{key:"drawStackedBarPaths",value:function(t){for(var e,i,n=t.indexes,r=t.barHeight,s=t.strokeWidth,a=t.zeroW,o=t.y,l=t.yDivision,c=t.elSeries,h=this.w,d=o,u=n.i,p=n.j,f=0,g=0;g<this.prevXF.length;g++)f+=this.prevXF[g][p];if(u>0){var m=a;this.prevXVal[u-1][p]<0?m=this.series[u][p]>=0?this.prevX[u-1][p]+f-2*(this.isReversed?f:0):this.prevX[u-1][p]:this.prevXVal[u-1][p]>=0&&(m=this.series[u][p]>=0?this.prevX[u-1][p]:this.prevX[u-1][p]-f+2*(this.isReversed?f:0)),e=m}else e=a;var b=this.barHelpers.getBarpaths({barYPosition:d,barHeight:r,x1:e,x2:i=null===this.series[u][p]?e:e+this.series[u][p]/this.invertedYRatio-2*(this.isReversed?this.series[u][p]/this.invertedYRatio:0),strokeWidth:s,series:this.series,realIndex:n.realIndex,i:u,j:p,w:h});return this.barHelpers.barBackground({j:p,i:u,y1:d,y2:r,elSeries:c}),{pathTo:b.pathTo,pathFrom:b.pathFrom,x:i,y:o+=l}}},{key:"drawStackedColumnPaths",value:function(t){var e,i=t.indexes,n=t.x,r=t.xDivision,s=t.barWidth,a=t.zeroH,o=t.elSeries,l=this.w,c=i.i,h=i.j,d=i.bc;if(l.globals.isXNumeric){var u=l.globals.seriesX[c][h];u||(u=0),n=(u-l.globals.minX)/this.xRatio-s/2}for(var p,f=n,g=0,m=0;m<this.prevYF.length;m++)g+=isNaN(this.prevYF[m][h])?0:this.prevYF[m][h];if(c>0&&!l.globals.isXNumeric||c>0&&l.globals.isXNumeric&&l.globals.seriesX[c-1][h]===l.globals.seriesX[c][h]){var b,v,y=Math.min(this.yRatio.length+1,c+1);if(void 0!==this.prevY[c-1])for(var _=1;_<y;_++)if(!isNaN(this.prevY[c-_][h])){v=this.prevY[c-_][h];break}for(var x=1;x<y;x++){if(this.prevYVal[c-x][h]<0){b=this.series[c][h]>=0?v-g+2*(this.isReversed?g:0):v;break}if(this.prevYVal[c-x][h]>=0){b=this.series[c][h]>=0?v:v+g-2*(this.isReversed?g:0);break}}void 0===b&&(b=l.globals.gridHeight),p=this.prevYF[0].every(function(t){return 0===t})&&this.prevYF.slice(1,c).every(function(t){return t.every(function(t){return isNaN(t)})})?l.globals.gridHeight-a:b}else p=l.globals.gridHeight-a;var w=this.barHelpers.getColumnPaths({barXPosition:f,barWidth:s,y1:p,y2:e=p-this.series[c][h]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[c][h]/this.yRatio[this.yaxisIndex]:0),yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,realIndex:i.realIndex,i:c,j:h,w:l});return this.barHelpers.barBackground({bc:d,j:h,i:c,x1:f,x2:s,elSeries:o}),n+=r,{pathTo:w.pathTo,pathFrom:w.pathFrom,x:l.globals.isXNumeric?n-r:n,y:e}}}]),i}(),Ct=function(t){d(i,z);var e=g(i);function i(){return s(this,i),e.apply(this,arguments)}return o(i,[{key:"draw",value:function(t,e){var i=this,n=this.w,r=new x(this.ctx),s=new D(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot;var a=new k(this.ctx,n);t=a.getLogSeries(t),this.series=t,this.yRatio=a.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);for(var o=r.group({class:"apexcharts-".concat(n.config.chart.type,"-series apexcharts-plot-series")}),l=function(a){i.isBoxPlot="boxPlot"===n.config.chart.type||"boxPlot"===n.config.series[a].type;var l,c,h,d,u=void 0,p=void 0,f=[],g=[],m=n.globals.comboCharts?e[a]:a,b=r.group({class:"apexcharts-series",seriesName:v.escapeString(n.globals.seriesNames[m]),rel:a+1,"data:realIndex":m});t[a].length>0&&(i.visibleI=i.visibleI+1),i.yRatio.length>1&&(i.yaxisIndex=m);var y=i.barHelpers.initialPositions();p=y.y,h=y.barHeight,l=y.xDivision,c=y.zeroH,g.push((u=y.x)+(d=y.barWidth)/2);for(var _=r.group({class:"apexcharts-datalabels","data:realIndex":m}),x=function(e){var r=i.barHelpers.getStrokeWidth(a,e,m),o=i.drawBoxPaths({indexes:{i:a,j:e,realIndex:m},x:u,y:p,xDivision:l,barWidth:d,zeroH:c,strokeWidth:r,elSeries:b});p=o.y,u=o.x,e>0&&g.push(u+d/2),f.push(p),o.pathTo.forEach(function(l,c){var f=!i.isBoxPlot&&i.candlestickOptions.wick.useFillColor?o.color[c]:n.globals.stroke.colors[a],g=s.fillPath({seriesNumber:m,dataPointIndex:e,color:o.color[c],value:t[a][e]});i.renderSeries({realIndex:m,pathFill:g,lineFill:f,j:e,i:a,pathFrom:o.pathFrom,pathTo:l,strokeWidth:r,elSeries:b,x:u,y:p,series:t,barHeight:h,barWidth:d,elDataLabelsWrap:_,visibleSeries:i.visibleI,type:n.config.chart.type})})},w=0;w<n.globals.dataPoints;w++)x(w);n.globals.seriesXvalues[m]=g,n.globals.seriesYvalues[m]=f,o.add(b)},c=0;c<t.length;c++)l(c);return o}},{key:"drawBoxPaths",value:function(t){var e=t.indexes,i=t.x,n=t.xDivision,r=t.barWidth,s=t.zeroH,a=t.strokeWidth,o=this.w,l=new x(this.ctx),c=e.i,h=e.j,d=!0,u=o.config.plotOptions.candlestick.colors.upward,p=o.config.plotOptions.candlestick.colors.downward,f="";this.isBoxPlot&&(f=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var g=this.yRatio[this.yaxisIndex],m=e.realIndex,b=this.getOHLCValue(m,h),v=s,y=s;b.o>b.c&&(d=!1);var _=Math.min(b.o,b.c),w=Math.max(b.o,b.c),C=b.m;o.globals.isXNumeric&&(i=(o.globals.seriesX[m][h]-o.globals.minX)/this.xRatio-r/2);var k=i+r*this.visibleI;null==this.series[c][h]?(_=s,w=s):(_=s-_/g,w=s-w/g,v=s-b.h/g,y=s-b.l/g,C=s-b.m/g);var S=l.move(k,s),T=l.move(k+r/2,_);return o.globals.previousPaths.length>0&&(T=this.getPreviousPath(m,h,!0)),S=this.isBoxPlot?[l.move(k,_)+l.line(k+r/2,_)+l.line(k+r/2,v)+l.line(k+r/4,v)+l.line(k+r-r/4,v)+l.line(k+r/2,v)+l.line(k+r/2,_)+l.line(k+r,_)+l.line(k+r,C)+l.line(k,C)+l.line(k,_+a/2),l.move(k,C)+l.line(k+r,C)+l.line(k+r,w)+l.line(k+r/2,w)+l.line(k+r/2,y)+l.line(k+r-r/4,y)+l.line(k+r/4,y)+l.line(k+r/2,y)+l.line(k+r/2,w)+l.line(k,w)+l.line(k,C)+"z"]:[l.move(k,w)+l.line(k+r/2,w)+l.line(k+r/2,v)+l.line(k+r/2,w)+l.line(k+r,w)+l.line(k+r,_)+l.line(k+r/2,_)+l.line(k+r/2,y)+l.line(k+r/2,_)+l.line(k,_)+l.line(k,w-a/2)],T+=l.move(k,_),o.globals.isXNumeric||(i+=n),{pathTo:S,pathFrom:T,x:i,y:w,barXPosition:k,color:this.isBoxPlot?f:d?[u]:[p]}}},{key:"getOHLCValue",value:function(t,e){var i=this.w;return{o:this.isBoxPlot?i.globals.seriesCandleH[t][e]:i.globals.seriesCandleO[t][e],h:this.isBoxPlot?i.globals.seriesCandleO[t][e]:i.globals.seriesCandleH[t][e],m:i.globals.seriesCandleM[t][e],l:this.isBoxPlot?i.globals.seriesCandleC[t][e]:i.globals.seriesCandleL[t][e],c:this.isBoxPlot?i.globals.seriesCandleL[t][e]:i.globals.seriesCandleC[t][e]}}}]),i}(),kt=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"checkColorRange",value:function(){var t=this.w,e=!1,i=t.config.plotOptions[t.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map(function(t,i){t.from<=0&&(e=!0)}),e}},{key:"getShadeColor",value:function(t,e,i,n){var r=this.w,s=1,a=r.config.plotOptions[t].shadeIntensity,o=this.determineColor(t,e,i);r.globals.hasNegs||n?s=r.config.plotOptions[t].reverseNegativeShade?o.percent<0?o.percent/100*(1.25*a):1.25*a*(1-o.percent/100):o.percent<=0?1-(1+o.percent/100)*a:(1-o.percent/100)*a:(s=1-o.percent/100,"treemap"===t&&(s=1.25*a*(1-o.percent/100)));var l=o.color,c=new v;return r.config.plotOptions[t].enableShades&&(l=v.hexToRgba(c.shadeColor("dark"===this.w.config.theme.mode?-1*s:s,o.color),r.config.fill.opacity)),{color:l,colorProps:o}}},{key:"determineColor",value:function(t,e,i){var n=this.w,r=n.globals.series[e][i],s=n.config.plotOptions[t],a=s.colorScale.inverse?i:e;n.config.plotOptions[t].distributed&&(a=i);var o=n.globals.colors[a],l=null,c=Math.min.apply(Math,m(n.globals.series[e])),h=Math.max.apply(Math,m(n.globals.series[e]));s.distributed||"heatmap"!==t||(c=n.globals.minY,h=n.globals.maxY),void 0!==s.colorScale.min&&(c=s.colorScale.min<n.globals.minY?s.colorScale.min:n.globals.minY,h=s.colorScale.max>n.globals.maxY?s.colorScale.max:n.globals.maxY);var d=Math.abs(h)+Math.abs(c),u=100*r/(0===d?d-1e-6:d);return s.colorScale.ranges.length>0&&s.colorScale.ranges.map(function(t,e){if(r>=t.from&&r<=t.to){o=t.color,l=t.foreColor?t.foreColor:null,c=t.from,h=t.to;var i=Math.abs(h)+Math.abs(c);u=100*r/(0===i?i-1e-6:i)}}),{color:o,foreColor:l,percent:u}}},{key:"calculateDataLabels",value:function(t){var e=t.text,i=t.x,n=t.y,r=t.i,s=t.j,a=t.colorProps,o=t.fontSize,l=this.w.config.dataLabels,c=new x(this.ctx),h=new M(this.ctx),d=null;if(l.enabled){d=c.group({class:"apexcharts-data-labels"});var u=l.offsetY,p=i+l.offsetX,f=n+parseFloat(l.style.fontSize)/3+u;h.plotDataLabelsText({x:p,y:f,text:e,i:r,j:s,color:a.foreColor,parent:d,fontSize:o,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(t){var e=new x(this.ctx);t.node.addEventListener("mouseenter",e.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",e.pathMouseLeave.bind(this,t)),t.node.addEventListener("mousedown",e.pathMouseDown.bind(this,t))}}]),t}(),St=function(){function t(e,i){s(this,t),this.ctx=e,this.w=e.w,this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new kt(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return o(t,[{key:"draw",value:function(t){var e=this.w,i=new x(this.ctx),n=i.group({class:"apexcharts-heatmap"});n.attr("clip-path","url(#gridRectMask".concat(e.globals.cuid,")"));var r=e.globals.gridWidth/e.globals.dataPoints,s=e.globals.gridHeight/e.globals.series.length,a=0,o=!1;this.negRange=this.helpers.checkColorRange();var l=t.slice();e.config.yaxis[0].reversed&&(o=!0,l.reverse());for(var c=o?0:l.length-1;o?c<l.length:c>=0;o?c++:c--){var h=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:v.escapeString(e.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(h,c),e.config.chart.dropShadow.enabled){var d=e.config.chart.dropShadow;new _(this.ctx).dropShadow(h,d,c)}for(var u=0,p=e.config.plotOptions.heatmap.shadeIntensity,f=0;f<l[c].length;f++){var g=this.helpers.getShadeColor(e.config.chart.type,c,f,this.negRange),m=g.color,b=g.colorProps;"image"===e.config.fill.type&&(m=new D(this.ctx).fillPath({seriesNumber:c,dataPointIndex:f,opacity:e.globals.hasNegs?b.percent<0?1-(1+b.percent/100):p+b.percent/100:b.percent/100,patternID:v.randomId(),width:e.config.fill.image.width?e.config.fill.image.width:r,height:e.config.fill.image.height?e.config.fill.image.height:s}));var y=i.drawRect(u,a,r,s,this.rectRadius);if(y.attr({cx:u,cy:a}),y.node.classList.add("apexcharts-heatmap-rect"),h.add(y),y.attr({fill:m,i:c,index:c,j:f,val:l[c][f],"stroke-width":this.strokeWidth,stroke:e.config.plotOptions.heatmap.useFillColorAsStroke?m:e.globals.stroke.colors[0],color:m}),this.helpers.addListeners(y),e.config.chart.animations.enabled&&!e.globals.dataChanged){var w=1;e.globals.resized||(w=e.config.chart.animations.speed),this.animateHeatMap(y,u,a,r,s,w)}if(e.globals.dataChanged){var C=1;if(this.dynamicAnim.enabled&&e.globals.shouldAnimate){C=this.dynamicAnim.speed;var k=e.globals.previousPaths[c]&&e.globals.previousPaths[c][f]&&e.globals.previousPaths[c][f].color;k||(k="rgba(255, 255, 255, 0)"),this.animateHeatColor(y,v.isColorHex(k)?k:v.rgb2hex(k),v.isColorHex(m)?m:v.rgb2hex(m),C)}}var S=(0,e.config.dataLabels.formatter)(e.globals.series[c][f],{value:e.globals.series[c][f],seriesIndex:c,dataPointIndex:f,w:e}),T=this.helpers.calculateDataLabels({text:S,x:u+r/2,y:a+s/2,i:c,j:f,colorProps:b,series:l});null!==T&&h.add(T),u+=r}a+=s,n.add(h)}var A=e.globals.yAxisScale[0].result.slice();return e.config.yaxis[0].reversed?A.unshift(""):A.push(""),e.globals.yAxisScale[0].result=A,e.config.yaxis[0].labels.offsetY=-e.globals.gridHeight/e.globals.series.length/2,n}},{key:"animateHeatMap",value:function(t,e,i,n,r,s){var a=new y(this.ctx);a.animateRect(t,{x:e+n/2,y:i+r/2,width:0,height:0},{x:e,y:i,width:n,height:r},s,function(){a.animationCompleted(t)})}},{key:"animateHeatColor",value:function(t,e,i,n){t.attr({fill:e}).animate(n).attr({fill:i})}}]),t}(),Tt=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"drawYAxisTexts",value:function(t,e,i,n){var r=this.w,s=r.config.yaxis[0],a=r.globals.yLabelFormatters[0];return new x(this.ctx).drawText({x:t+s.labels.offsetX,y:e+s.labels.offsetY,text:a(n,i),textAnchor:"middle",fontSize:s.labels.style.fontSize,fontFamily:s.labels.style.fontFamily,foreColor:Array.isArray(s.labels.style.colors)?s.labels.style.colors[i]:s.labels.style.colors})}}]),t}(),At=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=Math.min(i.globals.gridWidth,i.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=i.globals.gridWidth/2,this.fullAngle="radialBar"===i.config.chart.type?360:Math.abs(i.config.plotOptions.pie.endAngle-i.config.plotOptions.pie.startAngle),this.initialAngle=i.config.plotOptions.pie.startAngle%this.fullAngle,i.globals.radialSize=this.defaultSize/2.05-i.config.stroke.width-(i.config.chart.sparkline.enabled?0:i.config.chart.dropShadow.blur),this.donutSize=i.globals.radialSize*parseInt(i.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return o(t,[{key:"draw",value:function(t){var e=this,i=this.w,n=new x(this.ctx);if(this.ret=n.group({class:"apexcharts-pie"}),i.globals.noData)return this.ret;for(var r=0,s=0;s<t.length;s++)r+=v.negToZero(t[s]);var a=[],o=n.group();0===r&&(r=1e-5),t.forEach(function(t){e.maxY=Math.max(e.maxY,t)}),i.config.yaxis[0].max&&(this.maxY=i.config.yaxis[0].max),"back"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret);for(var l=0;l<t.length;l++){var c=this.fullAngle*v.negToZero(t[l])/r;a.push(c),"polarArea"===this.chartType?(a[l]=this.fullAngle/t.length,this.sliceSizes.push(i.globals.radialSize*t[l]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var h,d=0,u=0;u<i.globals.previousPaths.length;u++)d+=v.negToZero(i.globals.previousPaths[u]);for(var p=0;p<i.globals.previousPaths.length;p++)h=this.fullAngle*v.negToZero(i.globals.previousPaths[p])/d,this.prevSectorAngleArr.push(h)}this.donutSize<0&&(this.donutSize=0);var f=i.config.plotOptions.pie.customScale,g=i.globals.gridWidth/2-i.globals.gridWidth/2*f,m=i.globals.gridHeight/2-i.globals.gridHeight/2*f;if("donut"===this.chartType){var b=n.drawCircle(this.donutSize);b.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),o.add(b)}var y=this.drawArcs(a,t);if(this.sliceLabels.forEach(function(t){y.add(t)}),o.attr({transform:"translate(".concat(g,", ").concat(m,") scale(").concat(f,")")}),o.add(y),this.ret.add(o),this.donutDataLabels.show){var _=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:g,translateY:m});this.ret.add(_)}return"front"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(t,e){var i=this.w,n=new _(this.ctx),r=new x(this.ctx),s=new D(this.ctx),a=r.group({class:"apexcharts-slices"}),o=this.initialAngle,l=this.initialAngle,c=this.initialAngle,h=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var d=0;d<t.length;d++){var u=r.group({class:"apexcharts-series apexcharts-pie-series",seriesName:v.escapeString(i.globals.seriesNames[d]),rel:d+1,"data:realIndex":d});a.add(u),c=(o=c)+t[d],h=(l=h)+this.prevSectorAngleArr[d];var p=c<o?this.fullAngle+c-o:c-o,f=s.fillPath({seriesNumber:d,size:this.sliceSizes[d],value:e[d]}),g=this.getChangedPath(l,h),m=r.drawPath({d:g,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[d]:this.lineColorArr,strokeWidth:0,fill:f,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(d)});m.attr({index:0,j:d}),n.setSelectionFilter(m,0,d),i.config.chart.dropShadow.enabled&&n.dropShadow(m,i.config.chart.dropShadow,d),this.addListeners(m,this.donutDataLabels),x.setAttrs(m.node,{"data:angle":p,"data:startAngle":o,"data:strokeWidth":this.strokeWidth,"data:value":e[d]});var b={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?b=v.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(o+p/2)%this.fullAngle):"donut"===this.chartType&&(b=v.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(o+p/2)%this.fullAngle)),u.add(m);var y=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):(0==(y=p/this.fullAngle*i.config.chart.animations.speed)&&(y=1),this.animDur=y+this.animDur,this.animBeginArr.push(this.animDur)),this.animatePaths(m,this.dynamicAnim&&i.globals.dataChanged?{size:this.sliceSizes[d],endAngle:c,startAngle:o,prevStartAngle:l,prevEndAngle:h,animateStartingPos:!0,i:d,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}:{size:this.sliceSizes[d],endAngle:c,startAngle:o,i:d,totalItems:t.length-1,animBeginArr:this.animBeginArr,dur:y}),i.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&m.click(this.pieClicked.bind(this,d)),void 0!==i.globals.selectedDataPoints[0]&&i.globals.selectedDataPoints[0].indexOf(d)>-1&&this.pieClicked(d),i.config.dataLabels.enabled){var w=b.x,C=b.y,k=100*p/this.fullAngle+"%";if(0!==p&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<t[d]){var S=i.config.dataLabels.formatter;void 0!==S&&(k=S(i.globals.seriesPercent[d][0],{seriesIndex:d,w:i}));var T=i.globals.dataLabels.style.colors[d],A=r.group({class:"apexcharts-datalabels"}),O=r.drawText({x:w,y:C,text:k,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:T});A.add(O),i.config.dataLabels.dropShadow.enabled&&n.dropShadow(O,i.config.dataLabels.dropShadow),O.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&!1===i.globals.resized&&(O.node.classList.add("apexcharts-pie-label-delay"),O.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(A)}}}return a}},{key:"addListeners",value:function(t,e){var i=new x(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,t)),t.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this,t)),this.donutDataLabels.total.showAlways||(t.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,t.node,e)))}},{key:"animatePaths",value:function(t,e){var i=e.endAngle<e.startAngle?this.fullAngle+e.endAngle-e.startAngle:e.endAngle-e.startAngle,n=i,r=e.startAngle,s=e.startAngle;void 0!==e.prevStartAngle&&void 0!==e.prevEndAngle&&(r=e.prevEndAngle,n=e.prevEndAngle<e.prevStartAngle?this.fullAngle+e.prevEndAngle-e.prevStartAngle:e.prevEndAngle-e.prevStartAngle),e.i===this.w.config.series.length-1&&(i+s>this.fullAngle?e.endAngle=e.endAngle-(i+s):i+s<this.fullAngle&&(e.endAngle=e.endAngle+(this.fullAngle-(i+s)))),i===this.fullAngle&&(i=this.fullAngle-.01),this.animateArc(t,r,s,i,n,e)}},{key:"animateArc",value:function(t,e,i,n,r,s){var a,o=this,l=this.w,c=new y(this.ctx),h=s.size;(isNaN(e)||isNaN(r))&&(e=i,r=n,s.dur=0);var d=n,u=i,p=e<i?this.fullAngle+e-i:e-i;l.globals.dataChanged&&s.shouldSetPrevPaths&&s.prevEndAngle&&(a=o.getPiePath({me:o,startAngle:s.prevStartAngle,angle:s.prevEndAngle<s.prevStartAngle?this.fullAngle+s.prevEndAngle-s.prevStartAngle:s.prevEndAngle-s.prevStartAngle,size:h}),t.attr({d:a})),0!==s.dur?t.animate(s.dur,l.globals.easing,s.animBeginArr[s.i]).afterAll(function(){"pie"!==o.chartType&&"donut"!==o.chartType&&"polarArea"!==o.chartType||this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":o.strokeWidth}),s.i===l.config.series.length-1&&c.animationCompleted(t)}).during(function(l){d=p+(n-p)*l,s.animateStartingPos&&(d=r+(n-r)*l,u=e-r+(i-(e-r))*l),a=o.getPiePath({me:o,startAngle:u,angle:d,size:h}),t.node.setAttribute("data:pathOrig",a),t.attr({d:a})}):(a=o.getPiePath({me:o,startAngle:u,angle:n,size:h}),s.isTrack||(l.globals.animationEnded=!0),t.node.setAttribute("data:pathOrig",a),t.attr({d:a,"stroke-width":o.strokeWidth}))}},{key:"pieClicked",value:function(t){var e,i=this.w,n=this,r=n.sliceSizes[t]+(i.config.plotOptions.pie.expandOnClick?4:0),s=i.globals.dom.Paper.select(".apexcharts-".concat(n.chartType.toLowerCase(),"-slice-").concat(t)).members[0];if("true"!==s.attr("data:pieClicked")){var a=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(a,function(t){t.setAttribute("data:pieClicked","false");var e=t.getAttribute("data:pathOrig");t.setAttribute("d",e)}),s.attr("data:pieClicked","true");var o=parseInt(s.attr("data:startAngle"),10),l=parseInt(s.attr("data:angle"),10);e=n.getPiePath({me:n,startAngle:o,angle:l,size:r}),360!==l&&s.plot(e)}else{s.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(s.node,this.donutDataLabels);var c=s.attr("data:pathOrig");s.attr({d:c})}}},{key:"getChangedPath",value:function(t,e){var i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:t,angle:e-t,size:this.size})),i}},{key:"getPiePath",value:function(t){var e=t.me,i=t.startAngle,n=t.angle,r=t.size,s=i,a=Math.PI*(s-90)/180,o=n+i;Math.ceil(o)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(o=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(o)>this.fullAngle&&(o-=this.fullAngle);var l=Math.PI*(o-90)/180,c=e.centerX+r*Math.cos(a),h=e.centerY+r*Math.sin(a),d=e.centerX+r*Math.cos(l),u=e.centerY+r*Math.sin(l),p=v.polarToCartesian(e.centerX,e.centerY,e.donutSize,o),f=v.polarToCartesian(e.centerX,e.centerY,e.donutSize,s),g=n>180?1:0,m=["M",c,h,"A",r,r,0,g,1,d,u];return"donut"===e.chartType?[].concat(m,["L",p.x,p.y,"A",e.donutSize,e.donutSize,0,g,0,f.x,f.y,"L",c,h,"z"]).join(" "):"pie"===e.chartType||"polarArea"===e.chartType?[].concat(m,["L",e.centerX,e.centerY,"L",c,h]).join(" "):[].concat(m).join(" ")}},{key:"drawPolarElements",value:function(t){var e=this.w,i=new K(this.ctx),n=new x(this.ctx),r=new Tt(this.ctx),s=n.group(),a=n.group(),o=i.niceScale(0,Math.ceil(this.maxY),e.config.yaxis[0].tickAmount,0,!0),l=o.result.reverse(),c=o.result.length;this.maxY=o.niceMax;for(var h=e.globals.radialSize,d=h/(c-1),u=0;u<c-1;u++){var p=n.drawCircle(h);if(p.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":e.config.plotOptions.polarArea.rings.strokeWidth,stroke:e.config.plotOptions.polarArea.rings.strokeColor}),e.config.yaxis[0].show){var f=r.drawYAxisTexts(this.centerX,this.centerY-h+parseInt(e.config.yaxis[0].labels.style.fontSize,10)/2,u,l[u]);a.add(f)}s.add(p),h-=d}this.drawSpokes(t),t.add(s),t.add(a)}},{key:"renderInnerDataLabels",value:function(t,e){var i=this.w,n=new x(this.ctx),r=n.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(e.translateX?e.translateX:0,", ").concat(e.translateY?e.translateY:0,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),s=t.total.show;r.node.style.opacity=e.opacity;var a,o,l=e.centerX,c=e.centerY;a=void 0===t.name.color?i.globals.colors[0]:t.name.color;var h=t.name.fontSize,d=t.name.fontFamily,u=t.value.fontWeight;o=void 0===t.value.color?i.config.chart.foreColor:t.value.color;var p=t.value.formatter,f="",g="";if(s?(a=t.total.color,h=t.total.fontSize,d=t.total.fontFamily,u=t.total.fontWeight,g=t.total.label,f=t.total.formatter(i)):1===i.globals.series.length&&(f=p(i.globals.series[0],i),g=i.globals.seriesNames[0]),g&&(g=t.name.formatter(g,t.total.show,i)),t.name.show){var m=n.drawText({x:l,y:c+parseFloat(t.name.offsetY),text:g,textAnchor:"middle",foreColor:a,fontSize:h,fontWeight:u,fontFamily:d});m.node.classList.add("apexcharts-datalabel-label"),r.add(m)}if(t.value.show){var b=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,v=n.drawText({x:l,y:c+b,text:f,textAnchor:"middle",foreColor:o,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});v.node.classList.add("apexcharts-datalabel-value"),r.add(v)}return r}},{key:"printInnerLabels",value:function(t,e,i,n){var r,s=this.w;n?r=void 0===t.name.color?s.globals.colors[parseInt(n.parentNode.getAttribute("rel"),10)-1]:t.name.color:s.globals.series.length>1&&t.total.show&&(r=t.total.color);var a=s.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),o=s.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,t.value.formatter)(i,s),n||"function"!=typeof t.total.formatter||(i=t.total.formatter(s)),e=t.name.formatter(e,e===t.total.label,s),null!==a&&(a.textContent=e),null!==o&&(o.textContent=i),null!==a&&(a.style.fill=r)}},{key:"printDataLabelsInner",value:function(t,e){var i=this.w,n=t.getAttribute("data:value"),r=i.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(e,r,n,t);var s=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==s&&(s.style.opacity=1)}},{key:"drawSpokes",value:function(t){var e=this,i=this.w,n=new x(this.ctx),r=i.config.plotOptions.polarArea.spokes;if(0!==r.strokeWidth){for(var s=[],a=360/i.globals.series.length,o=0;o<i.globals.series.length;o++)s.push(v.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+a*o));s.forEach(function(i,s){var a=n.drawLine(i.x,i.y,e.centerX,e.centerY,Array.isArray(r.connectorColors)?r.connectorColors[s]:r.connectorColors);t.add(a)})}}},{key:"revertDataLabelsInner",value:function(t,e,i){var n=this,r=this.w,s=r.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),a=!1,o=r.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),l=function(t){var i=t.makeSliceOut,r=t.printLabel;Array.prototype.forEach.call(o,function(t){"true"===t.getAttribute("data:pieClicked")&&(i&&(a=!0),r&&n.printDataLabelsInner(t,e))})};if(l({makeSliceOut:!0,printLabel:!1}),e.total.show&&r.globals.series.length>1)a&&!e.total.showAlways?l({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(e,e.total.label,e.total.formatter(r));else if(l({makeSliceOut:!1,printLabel:!0}),!a)if(r.globals.selectedDataPoints.length&&r.globals.series.length>1)if(r.globals.selectedDataPoints[0].length>0){var c=r.globals.selectedDataPoints[0],h=r.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(c));this.printDataLabelsInner(h,e)}else s&&r.globals.selectedDataPoints.length&&0===r.globals.selectedDataPoints[0].length&&(s.style.opacity=0);else s&&r.globals.series.length>1&&(s.style.opacity=0)}}]),t}(),Ot=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var i=this.w;this.graphics=new x(this.ctx),this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=i.globals.svgHeight<i.globals.svgWidth?i.globals.gridHeight+1.5*i.globals.goldenPadding:i.globals.gridWidth,this.isLog=i.config.yaxis[0].logarithmic,this.coreUtils=new k(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(i.globals.maxY,0):i.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):i.globals.minY,this.polygons=i.config.plotOptions.radar.polygons,this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-i.config.chart.dropShadow.blur,i.config.xaxis.labels.show&&(this.size=this.size-i.globals.xAxisLabelsWidth/1.75),void 0!==i.config.plotOptions.radar.size&&(this.size=i.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return o(t,[{key:"draw",value:function(t){var e=this,i=this.w,n=new D(this.ctx),r=[],s=new M(this.ctx);t.length&&(this.dataPointsLen=t[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var a=i.globals.gridHeight/2+i.config.plotOptions.radar.offsetY,o=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(i.globals.gridWidth/2+i.config.plotOptions.radar.offsetX||0,", ").concat(a||0,")")}),l=[],c=null,d=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),t.forEach(function(t,a){var o=t.length===i.globals.dataPoints,u=e.graphics.group().attr({class:"apexcharts-series","data:longestSeries":o,seriesName:v.escapeString(i.globals.seriesNames[a]),rel:a+1,"data:realIndex":a});e.dataRadiusOfPercent[a]=[],e.dataRadius[a]=[],e.angleArr[a]=[],t.forEach(function(t,i){var n=Math.abs(e.maxValue-e.minValue);t+=Math.abs(e.minValue),e.isLog&&(t=e.coreUtils.getLogVal(t,0)),e.dataRadiusOfPercent[a][i]=t/n,e.dataRadius[a][i]=e.dataRadiusOfPercent[a][i]*e.size,e.angleArr[a][i]=i*e.disAngle}),l=e.getDataPointsPos(e.dataRadius[a],e.angleArr[a]);var p=e.createPaths(l,{x:0,y:0});c=e.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),d=e.graphics.group({class:"apexcharts-datalabels","data:realIndex":a}),i.globals.delayedElements.push({el:c.node,index:a});var f={i:a,realIndex:a,animationDelay:a,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:i.globals.stroke.colors[a],strokeLineCap:i.config.stroke.lineCap},g=null;i.globals.previousPaths.length>0&&(g=e.getPreviousPath(a));for(var m=0;m<p.linePathsTo.length;m++){var b=e.graphics.renderPaths(h(h({},f),{},{pathFrom:null===g?p.linePathsFrom[m]:g,pathTo:p.linePathsTo[m],strokeWidth:Array.isArray(e.strokeWidth)?e.strokeWidth[a]:e.strokeWidth,fill:"none",drawShadow:!1}));u.add(b);var y=n.fillPath({seriesNumber:a}),x=e.graphics.renderPaths(h(h({},f),{},{pathFrom:null===g?p.areaPathsFrom[m]:g,pathTo:p.areaPathsTo[m],strokeWidth:0,fill:y,drawShadow:!1}));i.config.chart.dropShadow.enabled&&new _(e.ctx).dropShadow(x,Object.assign({},i.config.chart.dropShadow,{noUserSpaceOnUse:!0}),a),u.add(x)}t.forEach(function(t,n){var r=new P(e.ctx).getMarkerConfig("apexcharts-marker",a,n),o=e.graphics.drawMarker(l[n].x,l[n].y,r);o.attr("rel",n),o.attr("j",n),o.attr("index",a),o.node.setAttribute("default-marker-size",r.pSize);var p=e.graphics.group({class:"apexcharts-series-markers"});p&&p.add(o),c.add(p),u.add(c);var f=i.config.dataLabels;if(f.enabled){var g=f.formatter(i.globals.series[a][n],{seriesIndex:a,dataPointIndex:n,w:i});s.plotDataLabelsText({x:l[n].x,y:l[n].y,text:g,textAnchor:"middle",i:a,j:a,parent:d,offsetCorrection:!1,dataLabelsConfig:h({},f)})}u.add(d)}),r.push(u)}),this.drawPolygons({parent:o}),i.config.xaxis.labels.show){var u=this.drawXAxisTexts();o.add(u)}return r.forEach(function(t){o.add(t)}),o.add(this.yaxisLabels),o}},{key:"drawPolygons",value:function(t){for(var e=this,i=this.w,n=t.parent,r=new Tt(this.ctx),s=i.globals.yAxisScale[0].result.reverse(),a=s.length,o=[],l=this.size/(a-1),c=0;c<a;c++)o[c]=l*c;o.reverse();var h=[],d=[];o.forEach(function(t,i){var n=v.getPolygonPos(t,e.dataPointsLen),r="";n.forEach(function(t,n){if(0===i){var s=e.graphics.drawLine(t.x,t.y,0,0,Array.isArray(e.polygons.connectorColors)?e.polygons.connectorColors[n]:e.polygons.connectorColors);d.push(s)}0===n&&e.yaxisLabelsTextsPos.push({x:t.x,y:t.y}),r+=t.x+","+t.y+" "}),h.push(r)}),h.forEach(function(t,r){var s=e.polygons.strokeColors,a=e.polygons.strokeWidth,o=e.graphics.drawPolygon(t,Array.isArray(s)?s[r]:s,Array.isArray(a)?a[r]:a,i.globals.radarPolygons.fill.colors[r]);n.add(o)}),d.forEach(function(t){n.add(t)}),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(t,i){var n=r.drawYAxisTexts(t.x,t.y,i,s[i]);e.yaxisLabels.add(n)})}},{key:"drawXAxisTexts",value:function(){var t=this,e=this.w,i=e.config.xaxis.labels,n=this.graphics.group({class:"apexcharts-xaxis"}),r=v.getPolygonPos(this.size,this.dataPointsLen);return e.globals.labels.forEach(function(s,a){var o=e.config.xaxis.labels.formatter,l=new M(t.ctx);if(r[a]){var c=t.getTextPos(r[a],t.size),d=o(s,{seriesIndex:-1,dataPointIndex:a,w:e});l.plotDataLabelsText({x:c.newX,y:c.newY,text:d,textAnchor:c.textAnchor,i:a,j:a,parent:n,color:Array.isArray(i.style.colors)&&i.style.colors[a]?i.style.colors[a]:"#a8a8a8",dataLabelsConfig:h({textAnchor:c.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1})}}),n}},{key:"createPaths",value:function(t,e){var i=this,n=[],r=[],s=[],a=[];if(t.length){r=[this.graphics.move(e.x,e.y)],a=[this.graphics.move(e.x,e.y)];var o=this.graphics.move(t[0].x,t[0].y),l=this.graphics.move(t[0].x,t[0].y);t.forEach(function(e,n){o+=i.graphics.line(e.x,e.y),l+=i.graphics.line(e.x,e.y),n===t.length-1&&(o+="Z",l+="Z")}),n.push(o),s.push(l)}return{linePathsFrom:r,linePathsTo:n,areaPathsFrom:a,areaPathsTo:s}}},{key:"getTextPos",value:function(t,e){var i="middle",n=t.x,r=t.y;return Math.abs(t.x)>=10?t.x>0?(i="start",n+=10):t.x<0&&(i="end",n-=10):i="middle",Math.abs(t.y)>=e-10&&(t.y<0?r-=10:t.y>0&&(r+=10)),{textAnchor:i,newX:n,newY:r}}},{key:"getPreviousPath",value:function(t){for(var e=this.w,i=null,n=0;n<e.globals.previousPaths.length;n++){var r=e.globals.previousPaths[n];r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(t,10)&&void 0!==e.globals.previousPaths[n].paths[0]&&(i=e.globals.previousPaths[n].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;t=t||[],e=e||[];for(var n=[],r=0;r<i;r++){var s={};s.x=t[r]*Math.sin(e[r]),s.y=-t[r]*Math.cos(e[r]),n.push(s)}return n}}]),t}(),Et=function(t){d(i,At);var e=g(i);function i(t){var n;s(this,i),(n=e.call(this,t)).ctx=t,n.w=t.w,n.animBeginArr=[0],n.animDur=0;var r=n.w;return n.startAngle=r.config.plotOptions.radialBar.startAngle,n.endAngle=r.config.plotOptions.radialBar.endAngle,n.totalAngle=Math.abs(r.config.plotOptions.radialBar.endAngle-r.config.plotOptions.radialBar.startAngle),n.trackStartAngle=r.config.plotOptions.radialBar.track.startAngle,n.trackEndAngle=r.config.plotOptions.radialBar.track.endAngle,n.radialDataLabels=r.config.plotOptions.radialBar.dataLabels,n.trackStartAngle||(n.trackStartAngle=n.startAngle),n.trackEndAngle||(n.trackEndAngle=n.endAngle),360===n.endAngle&&(n.endAngle=359.99),n.margin=parseInt(r.config.plotOptions.radialBar.track.margin,10),n}return o(i,[{key:"draw",value:function(t){var e=this.w,i=new x(this.ctx),n=i.group({class:"apexcharts-radialbar"});if(e.globals.noData)return n;var r=i.group(),s=this.defaultSize/2,a=e.globals.gridWidth/2,o=this.defaultSize/2.05;e.config.chart.sparkline.enabled||(o=o-e.config.stroke.width-e.config.chart.dropShadow.blur);var l=e.globals.fill.colors;if(e.config.plotOptions.radialBar.track.show){var c=this.drawTracks({size:o,centerX:a,centerY:s,colorArr:l,series:t});r.add(c)}var h=this.drawArcs({size:o,centerX:a,centerY:s,colorArr:l,series:t}),d=360;e.config.plotOptions.radialBar.startAngle<0&&(d=this.totalAngle);var u=(360-d)/360;if(e.globals.radialSize=o-o*u,this.radialDataLabels.value.show){var p=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);e.globals.radialSize+=p*u}return r.add(h.g),"front"===e.config.plotOptions.radialBar.hollow.position&&(h.g.add(h.elHollow),h.dataLabels&&h.g.add(h.dataLabels)),n.add(r),n}},{key:"drawTracks",value:function(t){var e=this.w,i=new x(this.ctx),n=i.group({class:"apexcharts-tracks"}),r=new _(this.ctx),s=new D(this.ctx),a=this.getStrokeWidth(t);t.size=t.size-a/2;for(var o=0;o<t.series.length;o++){var l=i.group({class:"apexcharts-radialbar-track apexcharts-track"});n.add(l),l.attr({rel:o+1}),t.size=t.size-a-this.margin;var c=e.config.plotOptions.radialBar.track,h=s.fillPath({seriesNumber:0,size:t.size,fillColors:Array.isArray(c.background)?c.background[o]:c.background,solid:!0}),d=this.trackStartAngle,u=this.trackEndAngle;Math.abs(u)+Math.abs(d)>=360&&(u=360-Math.abs(this.startAngle)-.1);var p=i.drawPath({d:"",stroke:h,strokeWidth:a*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});c.dropShadow.enabled&&r.dropShadow(p,c.dropShadow),l.add(p),p.attr("id","apexcharts-radialbarTrack-"+o),this.animatePaths(p,{centerX:t.centerX,centerY:t.centerY,endAngle:u,startAngle:d,size:t.size,i:o,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:e.globals.easing})}return n}},{key:"drawArcs",value:function(t){var e=this.w,i=new x(this.ctx),n=new D(this.ctx),r=new _(this.ctx),s=i.group(),a=this.getStrokeWidth(t);t.size=t.size-a/2;var o=e.config.plotOptions.radialBar.hollow.background,l=t.size-a*t.series.length-this.margin*t.series.length-a*parseInt(e.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,c=l-e.config.plotOptions.radialBar.hollow.margin;void 0!==e.config.plotOptions.radialBar.hollow.image&&(o=this.drawHollowImage(t,s,l,o));var h=this.drawHollow({size:c,centerX:t.centerX,centerY:t.centerY,fill:o||"transparent"});e.config.plotOptions.radialBar.hollow.dropShadow.enabled&&r.dropShadow(h,e.config.plotOptions.radialBar.hollow.dropShadow);var d=1;!this.radialDataLabels.total.show&&e.globals.series.length>1&&(d=0);var u=null;this.radialDataLabels.show&&(u=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:t.centerX,centerY:t.centerY,opacity:d})),"back"===e.config.plotOptions.radialBar.hollow.position&&(s.add(h),u&&s.add(u));var p=!1;e.config.plotOptions.radialBar.inverseOrder&&(p=!0);for(var f=p?t.series.length-1:0;p?f>=0:f<t.series.length;p?f--:f++){var g=i.group({class:"apexcharts-series apexcharts-radial-series",seriesName:v.escapeString(e.globals.seriesNames[f])});s.add(g),g.attr({rel:f+1,"data:realIndex":f}),this.ctx.series.addCollapsedClassToSeries(g,f),t.size=t.size-a-this.margin;var m=n.fillPath({seriesNumber:f,size:t.size,value:t.series[f]}),b=this.startAngle,y=void 0,w=v.negToZero(t.series[f]>100?100:t.series[f])/100,C=Math.round(this.totalAngle*w)+this.startAngle,k=void 0;e.globals.dataChanged&&(y=this.startAngle,k=Math.round(this.totalAngle*v.negToZero(e.globals.previousPaths[f])/100)+y),Math.abs(C)+Math.abs(b)>=360&&(C-=.01),Math.abs(k)+Math.abs(y)>=360&&(k-=.01);var S=C-b,T=Array.isArray(e.config.stroke.dashArray)?e.config.stroke.dashArray[f]:e.config.stroke.dashArray,A=i.drawPath({d:"",stroke:m,strokeWidth:a,fill:"none",fillOpacity:e.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+f,strokeDashArray:T});x.setAttrs(A.node,{"data:angle":S,"data:value":t.series[f]}),e.config.chart.dropShadow.enabled&&r.dropShadow(A,e.config.chart.dropShadow,f),r.setSelectionFilter(A,0,f),this.addListeners(A,this.radialDataLabels),g.add(A),A.attr({index:0,j:f});var O=0;!this.initialAnim||e.globals.resized||e.globals.dataChanged||(this.animDur=(O=(C-b)/360*e.config.chart.animations.speed)/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),e.globals.dataChanged&&(this.animDur=(O=(C-b)/360*e.config.chart.animations.dynamicAnimation.speed)/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),this.animatePaths(A,{centerX:t.centerX,centerY:t.centerY,endAngle:C,startAngle:b,prevEndAngle:k,prevStartAngle:y,size:t.size,i:f,totalItems:2,animBeginArr:this.animBeginArr,dur:O,shouldSetPrevPaths:!0,easing:e.globals.easing})}return{g:s,elHollow:h,dataLabels:u}}},{key:"drawHollow",value:function(t){var e=new x(this.ctx).drawCircle(2*t.size);return e.attr({class:"apexcharts-radialbar-hollow",cx:t.centerX,cy:t.centerY,r:t.size,fill:t.fill}),e}},{key:"drawHollowImage",value:function(t,e,i,n){var r=this.w,s=new D(this.ctx),a=v.randomId(),o=r.config.plotOptions.radialBar.hollow.image;if(r.config.plotOptions.radialBar.hollow.imageClipped)s.clippedImgArea({width:i,height:i,image:o,patternID:"pattern".concat(r.globals.cuid).concat(a)}),n="url(#pattern".concat(r.globals.cuid).concat(a,")");else{var l=r.config.plotOptions.radialBar.hollow.imageWidth,c=r.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===c){var h=r.globals.dom.Paper.image(o).loaded(function(e){this.move(t.centerX-e.width/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-e.height/2+r.config.plotOptions.radialBar.hollow.imageOffsetY)});e.add(h)}else{var d=r.globals.dom.Paper.image(o).loaded(function(e){this.move(t.centerX-l/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-c/2+r.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,c)});e.add(d)}}return n}},{key:"getStrokeWidth",value:function(t){return t.size*(100-parseInt(this.w.config.plotOptions.radialBar.hollow.size,10))/100/(t.series.length+1)-this.margin}}]),i}(),Dt=function(){function t(e){s(this,t),this.w=e.w,this.lineCtx=e}return o(t,[{key:"sameValueSeriesFix",value:function(t,e){var i=this.w;if("line"===i.config.chart.type&&("gradient"===i.config.fill.type||"gradient"===i.config.fill.type[t])&&new k(this.lineCtx.ctx,i).seriesHaveSameValues(t)){var n=e[t].slice();n[n.length-1]=n[n.length-1]+1e-6,e[t]=n}return e}},{key:"calculatePoints",value:function(t){var e=t.series,i=t.x,n=t.y,r=t.i,s=t.j,a=t.prevY,o=this.w,l=[],c=[];if(0===s){var h=this.lineCtx.categoryAxisCorrection+o.config.markers.offsetX;o.globals.isXNumeric&&(h=(o.globals.seriesX[t.realIndex][0]-o.globals.minX)/this.lineCtx.xRatio+o.config.markers.offsetX),l.push(h),c.push(v.isNumber(e[r][0])?a+o.config.markers.offsetY:null),l.push(i+o.config.markers.offsetX),c.push(v.isNumber(e[r][s+1])?n+o.config.markers.offsetY:null)}else l.push(i+o.config.markers.offsetX),c.push(v.isNumber(e[r][s+1])?n+o.config.markers.offsetY:null);return{x:l,y:c}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,n=t.realIndex,r=this.w,s=0;s<r.globals.previousPaths.length;s++){var a=r.globals.previousPaths[s];("line"===a.type||"area"===a.type)&&a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(n,10)&&("line"===a.type?(this.lineCtx.appendPathFrom=!1,e=r.globals.previousPaths[s].paths[0].d):"area"===a.type&&(this.lineCtx.appendPathFrom=!1,i=r.globals.previousPaths[s].paths[0].d,r.config.stroke.show&&r.globals.previousPaths[s].paths[1]&&(e=r.globals.previousPaths[s].paths[1].d)))}return{pathFromLine:e,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(t){var e=t.i,i=t.series,n=t.prevY,r=t.lineYPosition,s=this.w;if(void 0!==i[e][0])n=(r=s.config.chart.stacked&&e>0?this.lineCtx.prevSeriesY[e-1][0]:this.lineCtx.zeroY)-i[e][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?i[e][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(s.config.chart.stacked&&e>0&&void 0===i[e][0])for(var a=e-1;a>=0;a--)if(null!=i[a][0]){n=r=this.lineCtx.prevSeriesY[a][0];break}return{prevY:n,lineYPosition:r}}}]),t}(),Pt=function(){function t(e,i,n){s(this,t),this.ctx=e,this.w=e.w,this.xyRatios=i,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||n,this.scatter=new I(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Dt(this),this.markers=new P(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return o(t,[{key:"draw",value:function(t,e,i){var n=this.w,r=new x(this.ctx),s=n.globals.comboCharts?e:n.config.chart.type,a=r.group({class:"apexcharts-".concat(s,"-series apexcharts-plot-series")}),o=new k(this.ctx,n);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,t=o.getLogSeries(t),this.yRatio=o.getLogYRatios(this.yRatio);for(var l=[],c=0;c<t.length;c++){t=this.lineHelpers.sameValueSeriesFix(c,t);var h=n.globals.comboCharts?i[c]:c;this._initSerieVariables(t,c,h);var d=[],u=[],p=n.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,h),n.globals.isXNumeric&&n.globals.seriesX.length>0&&(p=(n.globals.seriesX[h][0]-n.globals.minX)/this.xRatio),u.push(p);var f,g=p,m=g,b=this.zeroY;b=this.lineHelpers.determineFirstPrevY({i:c,series:t,prevY:b,lineYPosition:0}).prevY,d.push(b),f=b;var v=this._calculatePathsFrom({series:t,i:c,realIndex:h,prevX:m,prevY:b}),y=this._iterateOverDataPoints({series:t,realIndex:h,i:c,x:p,y:1,pX:g,pY:f,pathsFrom:v,linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:u,yArrj:d});this._handlePaths({type:s,realIndex:h,i:c,paths:y}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),l.push(this.elSeries)}if(n.config.chart.stacked)for(var _=l.length;_>0;_--)a.add(l[_-1]);else for(var w=0;w<l.length;w++)a.add(l[w]);return a}},{key:"_initSerieVariables",value:function(t,e,i){var n=this.w,r=new x(this.ctx);this.xDivision=n.globals.gridWidth/(n.globals.dataPoints-("on"===n.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(n.config.stroke.width)?n.config.stroke.width[i]:n.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=i),this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed,this.zeroY=n.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?n.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>n.globals.gridHeight||"end"===n.config.plotOptions.area.fillTo)&&(this.areaBottomY=n.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=r.group({class:"apexcharts-series",seriesName:v.escapeString(n.globals.seriesNames[i])}),this.elPointsMain=r.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=r.group({class:"apexcharts-datalabels","data:realIndex":i}),this.elSeries.attr({"data:longestSeries":t[e].length===n.globals.dataPoints,rel:e+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(t){var e,i,n,r,s=t.series,a=t.i,o=t.realIndex,l=t.prevX,c=t.prevY,h=this.w,d=new x(this.ctx);if(null===s[a][0]){for(var u=0;u<s[a].length;u++)if(null!==s[a][u]){e=d.move(l=this.xDivision*u,c=this.zeroY-s[a][u]/this.yRatio[this.yaxisIndex]),i=d.move(l,this.areaBottomY);break}}else e=d.move(l,c),i=d.move(l,this.areaBottomY)+d.line(l,c);if(n=d.move(-1,this.zeroY)+d.line(-1,this.zeroY),r=d.move(-1,this.zeroY)+d.line(-1,this.zeroY),h.globals.previousPaths.length>0){var p=this.lineHelpers.checkPreviousPaths({pathFromLine:n,pathFromArea:r,realIndex:o});n=p.pathFromLine,r=p.pathFromArea}return{prevX:l,prevY:c,linePath:e,areaPath:i,pathFromLine:n,pathFromArea:r}}},{key:"_handlePaths",value:function(t){var e=t.type,i=t.realIndex,n=t.i,r=t.paths,s=this.w,a=new x(this.ctx),o=new D(this.ctx);this.prevSeriesY.push(r.yArrj),s.globals.seriesXvalues[i]=r.xArrj,s.globals.seriesYvalues[i]=r.yArrj;var l=s.config.forecastDataPoints;if(l.count>0){var c=s.globals.seriesXvalues[i][s.globals.seriesXvalues[i].length-l.count-1],d=a.drawRect(c,0,s.globals.gridWidth,s.globals.gridHeight,0);s.globals.dom.elForecastMask.appendChild(d.node);var u=a.drawRect(0,0,c,s.globals.gridHeight,0);s.globals.dom.elNonForecastMask.appendChild(u.node)}this.pointsChart||s.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var p={i:n,realIndex:i,animationDelay:n,initialSpeed:s.config.chart.animations.speed,dataChangeSpeed:s.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(e)};if("area"===e)for(var f=o.fillPath({seriesNumber:i}),g=0;g<r.areaPaths.length;g++){var m=a.renderPaths(h(h({},p),{},{pathFrom:r.pathFromArea,pathTo:r.areaPaths[g],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:f}));this.elSeries.add(m)}if(s.config.stroke.show&&!this.pointsChart){var b;b="line"===e?o.fillPath({seriesNumber:i,i:n}):s.globals.stroke.colors[i];for(var v=0;v<r.linePaths.length;v++){var y=h(h({},p),{},{pathFrom:r.pathFromLine,pathTo:r.linePaths[v],stroke:b,strokeWidth:this.strokeWidth,strokeLineCap:s.config.stroke.lineCap,fill:"none"}),_=a.renderPaths(y);if(this.elSeries.add(_),l.count>0){var w=a.renderPaths(y);w.node.setAttribute("stroke-dasharray",l.dashArray),l.strokeWidth&&w.node.setAttribute("stroke-width",l.strokeWidth),this.elSeries.add(w),w.attr("clip-path","url(#forecastMask".concat(s.globals.cuid,")")),_.attr("clip-path","url(#nonForecastMask".concat(s.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(t){for(var e=t.series,i=t.realIndex,n=t.i,r=t.x,s=t.y,a=t.pX,o=t.pY,l=t.pathsFrom,c=t.linePaths,h=t.areaPaths,d=t.seriesIndex,u=t.lineYPosition,p=t.xArrj,f=t.yArrj,g=this.w,m=new x(this.ctx),b=this.yRatio,y=l.prevY,_=l.linePath,w=l.areaPath,C=l.pathFromLine,k=l.pathFromArea,S=v.isNumber(g.globals.minYArr[i])?g.globals.minYArr[i]:g.globals.minY,T=g.globals.dataPoints>1?g.globals.dataPoints-1:g.globals.dataPoints,A=0;A<T;A++){var O=null==e[n][A+1];if(g.globals.isXNumeric){var E=g.globals.seriesX[i][A+1];void 0===g.globals.seriesX[i][A+1]&&(E=g.globals.seriesX[i][T-1]),r=(E-g.globals.minX)/this.xRatio}else r+=this.xDivision;u=g.config.chart.stacked&&n>0&&g.globals.collapsedSeries.length<g.config.series.length-1?this.prevSeriesY[function(t){for(var e=t,i=0;i<g.globals.series.length;i++)if(g.globals.collapsedSeriesIndices.indexOf(t)>-1){e--;break}return e>=0?e:0}(n-1)][A+1]:this.zeroY,s=O?u-S/b[this.yaxisIndex]+2*(this.isReversed?S/b[this.yaxisIndex]:0):u-e[n][A+1]/b[this.yaxisIndex]+2*(this.isReversed?e[n][A+1]/b[this.yaxisIndex]:0),p.push(r),f.push(s);var D=this.lineHelpers.calculatePoints({series:e,x:r,y:s,realIndex:i,i:n,j:A,prevY:y}),P=this._createPaths({series:e,i:n,realIndex:i,j:A,x:r,y:s,pX:a,pY:o,linePath:_,areaPath:w,linePaths:c,areaPaths:h,seriesIndex:d});h=P.areaPaths,c=P.linePaths,a=P.pX,o=P.pY,w=P.areaPath,_=P.linePath,this.appendPathFrom&&(C+=m.line(r,this.zeroY),k+=m.line(r,this.zeroY)),this.handleNullDataPoints(e,D,n,A,i),this._handleMarkersAndLabels({pointsPos:D,series:e,x:r,y:s,prevY:y,i:n,j:A,realIndex:i})}return{yArrj:f,xArrj:p,pathFromArea:k,areaPaths:h,pathFromLine:C,linePaths:c}}},{key:"_handleMarkersAndLabels",value:function(t){var e=t.pointsPos,i=t.i,n=t.j,r=t.realIndex,s=this.w,a=new M(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,n,{realIndex:r,pointsPos:e,zRatio:this.zRatio,elParent:this.elPointsMain});else{s.globals.series[i].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var o=this.markers.plotChartMarkers(e,r,n+1);null!==o&&this.elPointsMain.add(o)}var l=a.drawDataLabel(e,r,n+1,null);null!==l&&this.elDataLabelsWrap.add(l)}},{key:"_createPaths",value:function(t){var e=t.series,i=t.i,n=t.realIndex,r=t.j,s=t.x,a=t.y,o=t.pX,l=t.pY,c=t.linePath,h=t.areaPath,d=t.linePaths,u=t.areaPaths,p=t.seriesIndex,f=this.w,g=new x(this.ctx),m=f.config.stroke.curve,b=this.areaBottomY;if(Array.isArray(f.config.stroke.curve)&&(m=Array.isArray(p)?f.config.stroke.curve[p[i]]:f.config.stroke.curve[i]),"smooth"===m){var v=.35*(s-o);f.globals.hasNullValues?(null!==e[i][r]&&(null!==e[i][r+1]?(c=g.move(o,l)+g.curve(o+v,l,s-v,a,s+1,a),h=g.move(o+1,l)+g.curve(o+v,l,s-v,a,s+1,a)+g.line(s,b)+g.line(o,b)+"z"):(c=g.move(o,l),h=g.move(o,l)+"z")),d.push(c),u.push(h)):(c+=g.curve(o+v,l,s-v,a,s,a),h+=g.curve(o+v,l,s-v,a,s,a)),o=s,l=a,r===e[i].length-2&&(h=h+g.curve(o,l,s,a,s,b)+g.move(s,a)+"z",f.globals.hasNullValues||(d.push(c),u.push(h)))}else null===e[i][r+1]&&(c+=g.move(s,a),h=h+g.line(f.globals.isXNumeric?(f.globals.seriesX[n][r]-f.globals.minX)/this.xRatio:s-this.xDivision,b)+g.move(s,a)+"z"),null===e[i][r]&&(c+=g.move(s,a),h+=g.move(s,b)),"stepline"===m?(c=c+g.line(s,null,"H")+g.line(null,a,"V"),h=h+g.line(s,null,"H")+g.line(null,a,"V")):"straight"===m&&(c+=g.line(s,a),h+=g.line(s,a)),r===e[i].length-2&&(h=h+g.line(s,b)+g.move(s,a)+"z",d.push(c),u.push(h));return{linePaths:d,areaPaths:u,pX:o,pY:l,linePath:c,areaPath:h}}},{key:"handleNullDataPoints",value:function(t,e,i,n,r){var s=this.w;if(null===t[i][n]&&s.config.markers.showNullDataPoints||1===t[i].length){var a=this.markers.plotChartMarkers(e,r,n+1,this.strokeWidth-s.config.markers.strokeWidth/2,!0);null!==a&&this.elPointsMain.add(a)}}}]),t}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function t(e,i,n,r){this.xoffset=e,this.yoffset=i,this.height=r,this.width=n,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(t){var e,i=[],n=this.xoffset,r=this.yoffset,a=s(t)/this.height,o=s(t)/this.width;if(this.width>=this.height)for(e=0;e<t.length;e++)i.push([n,r,n+a,r+t[e]/a]),r+=t[e]/a;else for(e=0;e<t.length;e++)i.push([n,r,n+t[e]/o,r+o]),n+=t[e]/o;return i},this.cutArea=function(e){var i;if(this.width>=this.height){var n=e/this.height;i=new t(this.xoffset+n,this.yoffset,this.width-n,this.height)}else{var r=e/this.width;i=new t(this.xoffset,this.yoffset+r,this.width,this.height-r)}return i}}function e(e,n,r,a,o){return a=void 0===a?0:a,o=void 0===o?0:o,function(t){var e,i,n=[];for(e=0;e<t.length;e++)for(i=0;i<t[e].length;i++)n.push(t[e][i]);return n}(i(function(t,e){var i,n=[],r=e/s(t);for(i=0;i<t.length;i++)n[i]=t[i]*r;return n}(e,n*r),[],new t(a,o,n,r),[]))}function i(t,e,r,a){var o,l,c;if(0!==t.length)return o=r.shortestEdge(),function(t,e,i){var r;return 0===t.length||((r=t.slice()).push(e),n(t,i)>=n(r,i))}(e,l=t[0],o)?(e.push(l),i(t.slice(1),e,r,a)):(c=r.cutArea(s(e),a),a.push(r.getCoordinates(e)),i(t,[],c,a)),a;a.push(r.getCoordinates(e))}function n(t,e){var i=Math.min.apply(Math,t),n=Math.max.apply(Math,t),r=s(t);return Math.max(Math.pow(e,2)*n/Math.pow(r,2),Math.pow(r,2)/(Math.pow(e,2)*i))}function r(t){return t&&t.constructor===Array}function s(t){var e,i=0;for(e=0;e<t.length;e++)i+=t[e];return i}function a(t){var e,i=0;if(r(t[0]))for(e=0;e<t.length;e++)i+=a(t[e]);else i=s(t);return i}return function t(i,n,s,o,l){o=void 0===o?0:o,l=void 0===l?0:l;var c,h,d=[],u=[];if(r(i[0])){for(h=0;h<i.length;h++)d[h]=a(i[h]);for(c=e(d,n,s,o,l),h=0;h<i.length;h++)u.push(t(i[h],c[h][2]-c[h][0],c[h][3]-c[h][1],c[h][0],c[h][1]))}else u=e(i,n,s,o,l);return u}}();var It,Mt,Rt=function(){function t(e,i){s(this,t),this.ctx=e,this.w=e.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new kt(e),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return o(t,[{key:"draw",value:function(t){var e=this,i=this.w,n=new x(this.ctx),r=new D(this.ctx),s=n.group({class:"apexcharts-treemap"});if(i.globals.noData)return s;var a=[];return t.forEach(function(t){var e=t.map(function(t){return Math.abs(t)});a.push(e)}),this.negRange=this.helpers.checkColorRange(),i.config.series.forEach(function(t,i){t.data.forEach(function(t){Array.isArray(e.labels[i])||(e.labels[i]=[]),e.labels[i].push(t.x)})}),window.TreemapSquared.generate(a,i.globals.gridWidth,i.globals.gridHeight).forEach(function(a,o){var l=n.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:v.escapeString(i.globals.seriesNames[o]),rel:o+1,"data:realIndex":o});if(i.config.chart.dropShadow.enabled){var c=i.config.chart.dropShadow;new _(e.ctx).dropShadow(s,c,o)}var h=n.group({class:"apexcharts-data-labels"});a.forEach(function(s,a){var c=s[0],h=s[1],d=s[2],u=s[3],p=n.drawRect(c,h,d-c,u-h,0,"#fff",1,e.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?g:i.globals.stroke.colors[o]);p.attr({cx:c,cy:h,index:o,i:o,j:a,width:d-c,height:u-h});var f=e.helpers.getShadeColor(i.config.chart.type,o,a,e.negRange),g=f.color;void 0!==i.config.series[o].data[a]&&i.config.series[o].data[a].fillColor&&(g=i.config.series[o].data[a].fillColor);var m=r.fillPath({color:g,seriesNumber:o,dataPointIndex:a});p.node.classList.add("apexcharts-treemap-rect"),p.attr({fill:m}),e.helpers.addListeners(p);var b={x:c+(d-c)/2,y:h+(u-h)/2,width:0,height:0},v={x:c,y:h,width:d-c,height:u-h};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var y=1;i.globals.resized||(y=i.config.chart.animations.speed),e.animateTreemap(p,b,v,y)}i.globals.dataChanged&&e.dynamicAnim.enabled&&i.globals.shouldAnimate&&(i.globals.previousPaths[o]&&i.globals.previousPaths[o][a]&&i.globals.previousPaths[o][a].rect&&(b=i.globals.previousPaths[o][a].rect),e.animateTreemap(p,b,v,e.dynamicAnim.speed));var _=e.getFontSize(s),x=i.config.dataLabels.formatter(e.labels[o][a],{value:i.globals.series[o][a],seriesIndex:o,dataPointIndex:a,w:i}),w=e.helpers.calculateDataLabels({text:x,x:(c+d)/2,y:(h+u)/2+e.strokeWidth/2+_/3,i:o,j:a,colorProps:f,fontSize:_,series:t});i.config.dataLabels.enabled&&w&&e.rotateToFitLabel(w,x,c,h,d,u),l.add(p),null!==w&&l.add(w)}),l.add(h),s.add(l)}),s}},{key:"getFontSize",value:function(t){var e,i=this.w,n=function t(e){var i,n=0;if(Array.isArray(e[0]))for(i=0;i<e.length;i++)n+=t(e[i]);else for(i=0;i<e.length;i++)n+=e[i].length;return n}(this.labels)/function t(e){var i,n=0;if(Array.isArray(e[0]))for(i=0;i<e.length;i++)n+=t(e[i]);else for(i=0;i<e.length;i++)n+=1;return n}(this.labels);return e=Math.pow((t[2]-t[0])*(t[3]-t[1]),.5),Math.min(e/n,parseInt(i.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(t,e,i,n,r,s){var a=new x(this.ctx),o=a.getTextRects(e);if(o.width+5>r-i&&o.width<=s-n){var l=a.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(-90 ".concat(l.x," ").concat(l.y,")"))}}},{key:"animateTreemap",value:function(t,e,i,n){var r=new y(this.ctx);r.animateRect(t,{x:e.x,y:e.y,width:e.width,height:e.height},{x:i.x,y:i.y,width:i.width,height:i.height},n,function(){r.animationCompleted(t)})}}]),t}(),Lt=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return o(t,[{key:"calculateTimeScaleTicks",value:function(t,e){var i=this,n=this.w;if(n.globals.allSeriesCollapsed)return n.globals.labels=[],n.globals.timescaleLabels=[],[];var r=new F(this.ctx),s=(e-t)/864e5;this.determineInterval(s),n.globals.disableZoomIn=!1,n.globals.disableZoomOut=!1,s<.00011574074074074075?n.globals.disableZoomIn=!0:s>5e4&&(n.globals.disableZoomOut=!0);var a=r.getTimeUnitsfromTimestamp(t,e,this.utc),o=n.globals.gridWidth/s,l=o/24,c=l/60,d=c/60,u=Math.floor(24*s),p=Math.floor(1440*s),f=Math.floor(86400*s),g=Math.floor(s),m=Math.floor(s/30),b=Math.floor(s/365),v={minMillisecond:a.minMillisecond,minSecond:a.minSecond,minMinute:a.minMinute,minHour:a.minHour,minDate:a.minDate,minMonth:a.minMonth,minYear:a.minYear},y={firstVal:v,currentMillisecond:v.minMillisecond,currentSecond:v.minSecond,currentMinute:v.minMinute,currentHour:v.minHour,currentMonthDate:v.minDate,currentDate:v.minDate,currentMonth:v.minMonth,currentYear:v.minYear,daysWidthOnXAxis:o,hoursWidthOnXAxis:l,minutesWidthOnXAxis:c,secondsWidthOnXAxis:d,numberOfSeconds:f,numberOfMinutes:p,numberOfHours:u,numberOfDays:g,numberOfMonths:m,numberOfYears:b};switch(this.tickInterval){case"years":this.generateYearScale(y);break;case"months":case"half_year":this.generateMonthScale(y);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(y);break;case"hours":this.generateHourScale(y);break;case"minutes_fives":case"minutes":this.generateMinuteScale(y);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(y)}var _=this.timeScaleArray.map(function(t){var e={position:t.position,unit:t.unit,year:t.year,day:t.day?t.day:1,hour:t.hour?t.hour:0,month:t.month+1};return"month"===t.unit?h(h({},e),{},{day:1,value:t.value+1}):"day"===t.unit||"hour"===t.unit?h(h({},e),{},{value:t.value}):"minute"===t.unit?h(h({},e),{},{value:t.value,minute:t.value}):"second"===t.unit?h(h({},e),{},{value:t.value,minute:t.minute,second:t.second}):t});return _.filter(function(t){var e=1,r=Math.ceil(n.globals.gridWidth/120),s=t.value;void 0!==n.config.xaxis.tickAmount&&(r=n.config.xaxis.tickAmount),_.length>r&&(e=Math.floor(_.length/r));var a=!1,o=!1;switch(i.tickInterval){case"years":"year"===t.unit&&(a=!0);break;case"half_year":e=7,"year"===t.unit&&(a=!0);break;case"months":e=1,"year"===t.unit&&(a=!0);break;case"months_fortnight":e=15,"year"!==t.unit&&"month"!==t.unit||(a=!0),30===s&&(o=!0);break;case"months_days":e=10,"month"===t.unit&&(a=!0),30===s&&(o=!0);break;case"week_days":e=8,"month"===t.unit&&(a=!0);break;case"days":e=1,"month"===t.unit&&(a=!0);break;case"hours":"day"===t.unit&&(a=!0);break;case"minutes_fives":s%5!=0&&(o=!0);break;case"seconds_tens":s%10!=0&&(o=!0);break;case"seconds_fives":s%5!=0&&(o=!0)}if("hours"===i.tickInterval||"minutes_fives"===i.tickInterval||"seconds_tens"===i.tickInterval||"seconds_fives"===i.tickInterval){if(!o)return!0}else if((s%e==0||a)&&!o)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(t,e){var i=this.w,n=this.formatDates(t),r=this.removeOverlappingTS(n);i.globals.timescaleLabels=r.slice(),new ht(this.ctx).plotCoords()}},{key:"determineInterval",value:function(t){var e=24*t,i=60*e;switch(!0){case t/365>5:this.tickInterval="years";break;case t>800:this.tickInterval="half_year";break;case t>180:this.tickInterval="months";break;case t>90:this.tickInterval="months_fortnight";break;case t>60:this.tickInterval="months_days";break;case t>30:this.tickInterval="week_days";break;case t>2:this.tickInterval="days";break;case e>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(t){var e=t.firstVal,i=t.currentMonth,n=t.currentYear,r=t.daysWidthOnXAxis,s=t.numberOfYears,a=e.minYear,o=0,l=new F(this.ctx),c="year";if(e.minDate>1||e.minMonth>0){var h=l.determineRemainingDaysOfYear(e.minYear,e.minMonth,e.minDate);o=(l.determineDaysOfYear(e.minYear)-h+1)*r,this.timeScaleArray.push({position:o,value:a=e.minYear+1,unit:c,year:a,month:v.monthMod(i+1)})}else 1===e.minDate&&0===e.minMonth&&this.timeScaleArray.push({position:o,value:a,unit:c,year:n,month:v.monthMod(i+1)});for(var d=a,u=o,p=0;p<s;p++)d++,u=l.determineDaysOfYear(d-1)*r+u,this.timeScaleArray.push({position:u,value:d,unit:c,year:d,month:1})}},{key:"generateMonthScale",value:function(t){var e=t.firstVal,i=t.currentMonthDate,n=t.currentMonth,r=t.currentYear,s=t.daysWidthOnXAxis,a=t.numberOfMonths,o=n,l=0,c=new F(this.ctx),h="month",d=0;if(e.minDate>1){l=(c.determineDaysOfMonths(n+1,e.minYear)-i+1)*s,o=v.monthMod(n+1);var u=r+d,p=v.monthMod(o),f=o;0===o&&(h="year",f=u,p=1,u+=d+=1),this.timeScaleArray.push({position:l,value:f,unit:h,year:u,month:p})}else this.timeScaleArray.push({position:l,value:o,unit:h,year:r,month:v.monthMod(n)});for(var g=o+1,m=l,b=0,y=1;b<a;b++,y++){0===(g=v.monthMod(g))?(h="year",d+=1):h="month";var _=this._getYear(r,g,d);m=c.determineDaysOfMonths(g,_)*s+m,this.timeScaleArray.push({position:m,value:0===g?_:g,unit:h,year:_,month:0===g?1:g}),g++}}},{key:"generateDayScale",value:function(t){var e=t.firstVal,i=t.currentMonth,n=t.currentYear,r=t.hoursWidthOnXAxis,s=t.numberOfDays,a=new F(this.ctx),o="day",l=e.minDate+1,c=l,h=function(t,e,i){return t>a.determineDaysOfMonths(e+1,i)?(c=1,o="month",u=e+=1,e):e},d=(24-e.minHour)*r,u=l,p=h(c,i,n);0===e.minHour&&1===e.minDate?(d=0,u=v.monthMod(e.minMonth),o="month",c=e.minDate,s++):1!==e.minDate&&0===e.minHour&&0===e.minMinute&&(d=0,u=l=e.minDate,p=h(c=l,i,n)),this.timeScaleArray.push({position:d,value:u,unit:o,year:this._getYear(n,p,0),month:v.monthMod(p),day:c});for(var f=d,g=0;g<s;g++){o="day",p=h(c+=1,p,this._getYear(n,p,0));var m=this._getYear(n,p,0);f=24*r+f;var b=1===c?v.monthMod(p):c;this.timeScaleArray.push({position:f,value:b,unit:o,year:m,month:v.monthMod(p),day:b})}}},{key:"generateHourScale",value:function(t){var e=t.firstVal,i=t.currentDate,n=t.currentMonth,r=t.currentYear,s=t.minutesWidthOnXAxis,a=t.numberOfHours,o=new F(this.ctx),l="hour",c=function(t,e){return t>o.determineDaysOfMonths(e+1,r)&&(g=1,e+=1),{month:e,date:g}},h=function(t,e){return t>o.determineDaysOfMonths(e+1,r)?e+=1:e},d=60-(e.minMinute+e.minSecond/60),u=d*s,p=e.minHour+1,f=p+1;60===d&&(u=0,f=(p=e.minHour)+1);var g=i,m=h(g,n);this.timeScaleArray.push({position:u,value:p,unit:l,day:g,hour:f,year:r,month:v.monthMod(m)});for(var b=u,y=0;y<a;y++){l="hour",f>=24&&(f=0,l="day",m=c(g+=1,m).month,m=h(g,m));var _=this._getYear(r,m,0);this.timeScaleArray.push({position:b=0===f&&0===y?d*s:60*s+b,value:0===f?g:f,unit:l,hour:f,day:g,year:_,month:v.monthMod(m)}),f++}}},{key:"generateMinuteScale",value:function(t){for(var e=t.minutesWidthOnXAxis,i=t.numberOfMinutes,n=t.currentMinute+1,r=t.currentDate,s=t.currentMonth,a=t.currentYear,o=t.currentHour,l=(60-t.currentSecond-t.currentMillisecond/1e3)*t.secondsWidthOnXAxis,c=0;c<i;c++)n>=60&&(n=0,24===(o+=1)&&(o=0)),this.timeScaleArray.push({position:l,value:n,unit:"minute",hour:o,minute:n,day:r,year:this._getYear(a,s,0),month:v.monthMod(s)}),l+=e,n++}},{key:"generateSecondScale",value:function(t){for(var e=t.secondsWidthOnXAxis,i=t.numberOfSeconds,n=t.currentSecond+1,r=t.currentMinute,s=t.currentDate,a=t.currentMonth,o=t.currentYear,l=t.currentHour,c=(1e3-t.currentMillisecond)/1e3*e,h=0;h<i;h++)n>=60&&(n=0,++r>=60&&(r=0,24==++l&&(l=0))),this.timeScaleArray.push({position:c,value:n,unit:"second",hour:l,minute:r,second:n,day:s,year:this._getYear(o,a,0),month:v.monthMod(a)}),c+=e,n++}},{key:"createRawDateString",value:function(t,e){var i=t.year;return 0===t.month&&(t.month=1),i+="-"+("0"+t.month.toString()).slice(-2),i+="day"===t.unit?"day"===t.unit?"-"+("0"+e).slice(-2):"-01":"-"+("0"+(t.day?t.day:"1")).slice(-2),i+="hour"===t.unit?"hour"===t.unit?"T"+("0"+e).slice(-2):"T00":"T"+("0"+(t.hour?t.hour:"0")).slice(-2),i+="minute"===t.unit?":"+("0"+e).slice(-2):":"+(t.minute?("0"+t.minute).slice(-2):"00"),i+="second"===t.unit?":"+("0"+e).slice(-2):":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(t){var e=this,i=this.w;return t.map(function(t){var n=t.value.toString(),r=new F(e.ctx),s=e.createRawDateString(t,n),a=r.getDate(r.parseDate(s));if(e.utc||(a=r.getDate(r.parseDateWithTimezone(s))),void 0===i.config.xaxis.labels.format){var o="dd MMM",l=i.config.xaxis.labels.datetimeFormatter;"year"===t.unit&&(o=l.year),"month"===t.unit&&(o=l.month),"day"===t.unit&&(o=l.day),"hour"===t.unit&&(o=l.hour),"minute"===t.unit&&(o=l.minute),"second"===t.unit&&(o=l.second),n=r.formatDate(a,o)}else n=r.formatDate(a,i.config.xaxis.labels.format);return{dateString:s,position:t.position,value:n,unit:t.unit,year:t.year,month:t.month}})}},{key:"removeOverlappingTS",value:function(t){var e,i=this,n=new x(this.ctx),r=!1;t.length>0&&t[0].value&&t.every(function(e){return e.value.length===t[0].value.length})&&(r=!0,e=n.getTextRects(t[0].value).width);var s=0;return t.map(function(a,o){if(o>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var l=r?e:n.getTextRects(t[s].value).width;return a.position>t[s].position+l+10?(s=o,a):null}return a}).filter(function(t){return null!==t})}},{key:"_getYear",value:function(t,e,i){return t+Math.floor(e/12)+i}}]),t}(),Nt=function(){function t(e,i){s(this,t),this.ctx=i,this.w=i.w,this.el=e}return o(t,[{key:"setupElements",value:function(){var t=this.w.globals,e=this.w.config,i=e.chart.type;t.axisCharts=["line","area","bar","rangeBar","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,t.xyCharts=["line","area","bar","rangeBar","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,t.isBarHorizontal=("bar"===e.chart.type||"rangeBar"===e.chart.type)&&e.plotOptions.bar.horizontal,t.chartClass=".apexcharts"+t.chartID,t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),x.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas "+t.chartClass.substring(1)}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=new window.SVG.Doc(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(e.chart.offsetX,", ").concat(e.chart.offsetY,")")}),t.dom.Paper.node.style.background=e.chart.background,this.setSVGDimensions(),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elAnnotations=t.dom.Paper.group().attr({class:"apexcharts-annotations"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elWrap.appendChild(t.dom.elLegendWrap),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(t,e){var i=this.w,n=i.config,r=i.globals,s={series:[],i:[]},a={series:[],i:[]},o={series:[],i:[]},l={series:[],i:[]},c={series:[],i:[]},h={series:[],i:[]},d={series:[],i:[]};r.series.map(function(e,u){var p=0;void 0!==t[u].type?("column"===t[u].type||"bar"===t[u].type?(r.series.length>1&&n.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),c.series.push(e),c.i.push(u),p++,i.globals.columnSeries=c.series):"area"===t[u].type?(a.series.push(e),a.i.push(u),p++):"line"===t[u].type?(s.series.push(e),s.i.push(u),p++):"scatter"===t[u].type?(o.series.push(e),o.i.push(u)):"bubble"===t[u].type?(l.series.push(e),l.i.push(u),p++):"candlestick"===t[u].type?(h.series.push(e),h.i.push(u),p++):"boxPlot"===t[u].type?(d.series.push(e),d.i.push(u),p++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble"),p>1&&(r.comboCharts=!0)):(s.series.push(e),s.i.push(u))});var u=new Pt(this.ctx,e),p=new Ct(this.ctx,e);this.ctx.pie=new At(this.ctx);var f=new Et(this.ctx);this.ctx.rangeBar=new j(this.ctx,e);var g=new Ot(this.ctx),m=[];if(r.comboCharts){if(a.series.length>0&&m.push(u.draw(a.series,"area",a.i)),c.series.length>0)if(i.config.chart.stacked){var b=new wt(this.ctx,e);m.push(b.draw(c.series,c.i))}else this.ctx.bar=new z(this.ctx,e),m.push(this.ctx.bar.draw(c.series,c.i));if(s.series.length>0&&m.push(u.draw(s.series,"line",s.i)),h.series.length>0&&m.push(p.draw(h.series,h.i)),d.series.length>0&&m.push(p.draw(d.series,d.i)),o.series.length>0){var v=new Pt(this.ctx,e,!0);m.push(v.draw(o.series,"scatter",o.i))}if(l.series.length>0){var y=new Pt(this.ctx,e,!0);m.push(y.draw(l.series,"bubble",l.i))}}else switch(n.chart.type){case"line":m=u.draw(r.series,"line");break;case"area":m=u.draw(r.series,"area");break;case"bar":n.chart.stacked?m=new wt(this.ctx,e).draw(r.series):(this.ctx.bar=new z(this.ctx,e),m=this.ctx.bar.draw(r.series));break;case"candlestick":case"boxPlot":m=new Ct(this.ctx,e).draw(r.series);break;case"rangeBar":m=this.ctx.rangeBar.draw(r.series);break;case"heatmap":m=new St(this.ctx,e).draw(r.series);break;case"treemap":m=new Rt(this.ctx,e).draw(r.series);break;case"pie":case"donut":case"polarArea":m=this.ctx.pie.draw(r.series);break;case"radialBar":m=f.draw(r.series);break;case"radar":m=g.draw(r.series);break;default:m=u.draw(r.series)}return m}},{key:"setSVGDimensions",value:function(){var t=this.w.globals,e=this.w.config;t.svgWidth=e.chart.width,t.svgHeight=e.chart.height;var i=v.getDimensions(this.el),n=e.chart.width.toString().split(/[0-9]+/g).pop();"%"===n?v.isNumber(i[0])&&(0===i[0].width&&(i=v.getDimensions(this.el.parentNode)),t.svgWidth=i[0]*parseInt(e.chart.width,10)/100):"px"!==n&&""!==n||(t.svgWidth=parseInt(e.chart.width,10));var r=e.chart.height.toString().split(/[0-9]+/g).pop();if("auto"!==t.svgHeight&&""!==t.svgHeight)if("%"===r){var s=v.getDimensions(this.el.parentNode);t.svgHeight=s[1]*parseInt(e.chart.height,10)/100}else t.svgHeight=parseInt(e.chart.height,10);else t.svgHeight=t.axisCharts?t.svgWidth/1.61:t.svgWidth/1.2;t.svgWidth<0&&(t.svgWidth=0),t.svgHeight<0&&(t.svgHeight=0),x.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),"%"!==r&&(t.dom.Paper.node.parentNode.parentNode.style.minHeight=t.svgHeight+(e.chart.sparkline.enabled?0:t.axisCharts?e.chart.parentHeightOffset:0)+"px"),t.dom.elWrap.style.width=t.svgWidth+"px",t.dom.elWrap.style.height=t.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var t=this.w.globals;x.setAttrs(t.dom.elGraphical.node,{transform:"translate("+t.translateX+", "+t.translateY+")"})}},{key:"resizeNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=0,n=t.config.chart.sparkline.enabled?1:15;n+=t.config.grid.padding.bottom,"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||!t.config.legend.show||t.config.legend.floating||(i=new ut(this.ctx).legendHelpers.getLegendBBox().clwh+10);var r=t.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),s=2.05*t.globals.radialSize;if(r&&!t.config.chart.sparkline.enabled){var a=v.getBoundingClientRect(r);s=a.bottom,s=Math.max(2.05*t.globals.radialSize,a.bottom-a.top)}var o=s+e.translateY+i+n;e.dom.elLegendForeign&&e.dom.elLegendForeign.setAttribute("height",o),e.dom.elWrap.style.height=o+"px",x.setAttrs(e.dom.Paper.node,{height:o}),e.dom.Paper.node.parentNode.parentNode.style.minHeight=o+"px"}},{key:"coreCalculations",value:function(){new Z(this.ctx).init()}},{key:"resetGlobals",value:function(){var t=this,e=function(){return t.w.config.series.map(function(t){return[]})},i=new B,n=this.w.globals;i.initGlobalVars(n),n.seriesXvalues=e(),n.seriesYvalues=e()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var t=null,e=this.w;if(e.globals.axisCharts){if("back"===e.config.xaxis.crosshairs.position&&new it(this.ctx).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new it(this.ctx).drawYCrosshairs(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter){this.ctx.timeScale=new Lt(this.ctx);var i=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}t=new k(this.ctx).getCalculatedRatios()}return t}},{key:"updateSourceChart",value:function(t){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:t.w.globals.minX,max:t.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var t=this,e=this.w;if(e.config.chart.brush.enabled&&"function"!=typeof e.config.chart.events.selection){var i=e.config.chart.brush.targets||[e.config.chart.brush.target];i.forEach(function(e){var i=ApexCharts.getChartByID(e);i.w.globals.brushSource=t.ctx,"function"!=typeof i.w.config.chart.events.zoomed&&(i.w.config.chart.events.zoomed=function(){t.updateSourceChart(i)}),"function"!=typeof i.w.config.chart.events.scrolled&&(i.w.config.chart.events.scrolled=function(){t.updateSourceChart(i)})}),e.config.chart.events.selection=function(t,n){i.forEach(function(t){var i=ApexCharts.getChartByID(t),r=v.clone(e.config.yaxis);if(e.config.chart.brush.autoScaleYaxis&&1===i.w.globals.series.length){var s=new K(i);r=s.autoScaleY(i,r,n)}var a=i.w.config.yaxis.reduce(function(t,e,n){return[].concat(m(t),[h(h({},i.w.config.yaxis[n]),{},{min:r[0].min,max:r[0].max})])},[]);i.ctx.updateHelpers._updateOptions({xaxis:{min:n.xaxis.min,max:n.xaxis.max},yaxis:a},!1,!1,!1,!1)})}}}}]),t}(),zt=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"_updateOptions",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=[this.ctx];s&&(o=this.ctx.getSyncedCharts()),this.ctx.w.globals.isExecCalled&&(o=[this.ctx],this.ctx.w.globals.isExecCalled=!1),o.forEach(function(s){var o=s.w;return o.globals.shouldAnimate=n,i||(o.globals.resized=!0,o.globals.dataChanged=!0,n&&s.series.getPreviousPaths()),t&&"object"===r(t)&&(s.config=new V(t),t=k.extendArrayProps(s.config,t,o),s.w.globals.chartID!==e.ctx.w.globals.chartID&&delete t.series,o.config=v.extend(o.config,t),a&&(o.globals.lastXAxis=t.xaxis?v.clone(t.xaxis):[],o.globals.lastYAxis=t.yaxis?v.clone(t.yaxis):[],o.globals.initialConfig=v.extend({},o.config),o.globals.initialSeries=v.clone(o.config.series))),s.update(t)})}},{key:"_updateSeries",value:function(t,e){var i,n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=this.w;return s.globals.shouldAnimate=e,s.globals.dataChanged=!0,e&&this.ctx.series.getPreviousPaths(),s.globals.axisCharts?(0===(i=t.map(function(t,e){return n._extendSeries(t,e)})).length&&(i=[{data:[]}]),s.config.series=i):s.config.series=t.slice(),r&&(s.globals.initialSeries=v.clone(s.config.series)),this.ctx.update()}},{key:"_extendSeries",value:function(t,e){var i=this.w,n=i.config.series[e];return h(h({},i.config.series[e]),{},{name:t.name?t.name:n&&n.name,color:t.color?t.color:n&&n.color,type:t.type?t.type:n&&n.type,data:t.data?t.data:n&&n.data})}},{key:"toggleDataPointSelection",value:function(t,e){var i=this.w,n=null,r=".apexcharts-series[data\\:realIndex='".concat(t,"']");return i.globals.axisCharts?n=i.globals.dom.Paper.select("".concat(r," path[j='").concat(e,"'], ").concat(r," circle[j='").concat(e,"'], ").concat(r," rect[j='").concat(e,"']")).members[0]:void 0===e&&(n=i.globals.dom.Paper.select("".concat(r," path[j='").concat(t,"']")).members[0],"pie"!==i.config.chart.type&&"polarArea"!==i.config.chart.type&&"donut"!==i.config.chart.type||this.ctx.pie.pieClicked(t)),n?(new x(this.ctx).pathMouseDown(n,null),n.node?n.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(t){var e=this.w;if(["min","max"].forEach(function(i){void 0!==t.xaxis[i]&&(e.config.xaxis[i]=t.xaxis[i],e.globals.lastXAxis[i]=t.xaxis[i])}),t.xaxis.categories&&t.xaxis.categories.length&&(e.config.xaxis.categories=t.xaxis.categories),e.config.xaxis.convertedCatToNumeric){var i=new U(t);t=i.convertCatToNumericXaxis(t,this.ctx)}return t}},{key:"forceYAxisUpdate",value:function(t){var e=this.w;return e.config.chart.stacked&&"100%"===e.config.chart.stackType&&(Array.isArray(t.yaxis)?t.yaxis.forEach(function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100}):(t.yaxis.min=0,t.yaxis.max=100)),t}},{key:"revertDefaultAxisMinMax",value:function(t){var e=this,i=this.w,n=i.globals.lastXAxis,r=i.globals.lastYAxis;t&&t.xaxis&&(n=t.xaxis),t&&t.yaxis&&(r=t.yaxis),i.config.xaxis.min=n.min,i.config.xaxis.max=n.max,i.config.yaxis.map(function(t,n){i.globals.zoomed||void 0!==r[n]?function(t){void 0!==r[t]&&(i.config.yaxis[t].min=r[t].min,i.config.yaxis[t].max=r[t].max)}(n):void 0!==e.ctx.opts.yaxis[n]&&(t.min=e.ctx.opts.yaxis[n].min,t.max=e.ctx.opts.yaxis[n].max)})}}]),t}();It="undefined"!=typeof window?window:void 0,Mt=function(t,e){var i=(void 0!==this?this:t).SVG=function(t){if(i.supported)return t=new i.Doc(t),i.parser.draw||i.prepare(),t};if(i.ns="http://www.w3.org/2000/svg",i.xmlns="http://www.w3.org/2000/xmlns/",i.xlink="http://www.w3.org/1999/xlink",i.svgjs="http://svgjs.com/svgjs",i.supported=!0,!i.supported)return!1;i.did=1e3,i.eid=function(t){return"Svgjs"+d(t)+i.did++},i.create=function(t){var i=e.createElementNS(this.ns,t);return i.setAttribute("id",this.eid(t)),i},i.extend=function(){var t,e;e=(t=[].slice.call(arguments)).pop();for(var n=t.length-1;n>=0;n--)if(t[n])for(var r in e)t[n].prototype[r]=e[r];i.Set&&i.Set.inherit&&i.Set.inherit()},i.invent=function(t){var e="function"==typeof t.create?t.create:function(){this.constructor.call(this,i.create(t.create))};return t.inherit&&(e.prototype=new t.inherit),t.extend&&i.extend(e,t.extend),t.construct&&i.extend(t.parent||i.Container,t.construct),e},i.adopt=function(e){return e?e.instance?e.instance:((n="svg"==e.nodeName?e.parentNode instanceof t.SVGElement?new i.Nested:new i.Doc:"linearGradient"==e.nodeName?new i.Gradient("linear"):"radialGradient"==e.nodeName?new i.Gradient("radial"):i[d(e.nodeName)]?new(i[d(e.nodeName)]):new i.Element(e)).type=e.nodeName,n.node=e,e.instance=n,n instanceof i.Doc&&n.namespace().defs(),n.setData(JSON.parse(e.getAttribute("svgjs:data"))||{}),n):null;var n},i.prepare=function(){var t=e.getElementsByTagName("body")[0],n=(t?new i.Doc(t):i.adopt(e.documentElement).nested()).size(2,0);i.parser={body:t||e.documentElement,draw:n.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:n.polyline().node,path:n.path().node,native:i.create("svg")}},i.parser={native:i.create("svg")},e.addEventListener("DOMContentLoaded",function(){i.parser.draw||i.prepare()},!1),i.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},i.utils={map:function(t,e){for(var i=t.length,n=[],r=0;r<i;r++)n.push(e(t[r]));return n},filter:function(t,e){for(var i=t.length,n=[],r=0;r<i;r++)e(t[r])&&n.push(t[r]);return n},filterSVGElements:function(e){return this.filter(e,function(e){return e instanceof t.SVGElement})}},i.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},i.Color=function(t){var e,n;this.r=0,this.g=0,this.b=0,t&&("string"==typeof t?i.regex.isRgb.test(t)?(e=i.regex.rgb.exec(t.replace(i.regex.whitespace,"")),this.r=parseInt(e[1]),this.g=parseInt(e[2]),this.b=parseInt(e[3])):i.regex.isHex.test(t)&&(e=i.regex.hex.exec(4==(n=t).length?["#",n.substring(1,2),n.substring(1,2),n.substring(2,3),n.substring(2,3),n.substring(3,4),n.substring(3,4)].join(""):n),this.r=parseInt(e[1],16),this.g=parseInt(e[2],16),this.b=parseInt(e[3],16)):"object"===r(t)&&(this.r=t.r,this.g=t.g,this.b=t.b))},i.extend(i.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+u(this.r)+u(this.g)+u(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(t){return this.destination=new i.Color(t),this},at:function(t){return this.destination?new i.Color({r:~~(this.r+(this.destination.r-this.r)*(t=t<0?0:t>1?1:t)),g:~~(this.g+(this.destination.g-this.g)*t),b:~~(this.b+(this.destination.b-this.b)*t)}):this}}),i.Color.test=function(t){return i.regex.isHex.test(t+="")||i.regex.isRgb.test(t)},i.Color.isRgb=function(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b},i.Color.isColor=function(t){return i.Color.isRgb(t)||i.Color.test(t)},i.Array=function(t,e){0==(t=(t||[]).valueOf()).length&&e&&(t=e.valueOf()),this.value=this.parse(t)},i.extend(i.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(t){return t=t.valueOf(),Array.isArray(t)?t:this.split(t)}}),i.PointArray=function(t,e){i.Array.call(this,t,e||[[0,0]])},i.PointArray.prototype=new i.Array,i.PointArray.prototype.constructor=i.PointArray;for(var n={M:function(t,e,i){return e.x=i.x=t[0],e.y=i.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},Z:function(t,e,i){return e.x=i.x,e.y=i.y,["Z"]}},s="mlhvqtcsaz".split(""),a=0,o=s.length;a<o;++a)n[s[a]]=function(t){return function(e,i,r){if("H"==t)e[0]=e[0]+i.x;else if("V"==t)e[0]=e[0]+i.y;else if("A"==t)e[5]=e[5]+i.x,e[6]=e[6]+i.y;else for(var s=0,a=e.length;s<a;++s)e[s]=e[s]+(s%2?i.y:i.x);return n[t](e,i,r)}}(s[a].toUpperCase());i.PathArray=function(t,e){i.Array.call(this,t,e||[["M",0,0]])},i.PathArray.prototype=new i.Array,i.PathArray.prototype.constructor=i.PathArray,i.extend(i.PathArray,{toString:function(){return function(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e][0],null!=t[e][1]&&(n+=t[e][1],null!=t[e][2]&&(n+=" ",n+=t[e][2],null!=t[e][3]&&(n+=" ",n+=t[e][3],n+=" ",n+=t[e][4],null!=t[e][5]&&(n+=" ",n+=t[e][5],n+=" ",n+=t[e][6],null!=t[e][7]&&(n+=" ",n+=t[e][7])))));return n+" "}(this.value)},move:function(t,e){return this.bbox(),this},at:function(t){if(!this.destination)return this;for(var e=this.value,n=this.destination.value,r=[],s=new i.PathArray,a=0,o=e.length;a<o;a++){r[a]=[e[a][0]];for(var l=1,c=e[a].length;l<c;l++)r[a][l]=e[a][l]+(n[a][l]-e[a][l])*t;"A"===r[a][0]&&(r[a][4]=+(0!=r[a][4]),r[a][5]=+(0!=r[a][5]))}return s.value=r,s},parse:function(t){if(t instanceof i.PathArray)return t.valueOf();var e,r={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};t="string"==typeof t?t.replace(i.regex.numbersWithDots,c).replace(i.regex.pathLetters," $& ").replace(i.regex.hyphen,"$1 -").trim().split(i.regex.delimiter):t.reduce(function(t,e){return[].concat.call(t,e)},[]);var s=[],a=new i.Point,o=new i.Point,l=0,h=t.length;do{i.regex.isPathLetter.test(t[l])?(e=t[l],++l):"M"==e?e="L":"m"==e&&(e="l"),s.push(n[e].call(null,t.slice(l,l+=r[e.toUpperCase()]).map(parseFloat),a,o))}while(h>l);return s},bbox:function(){return i.parser.draw||i.prepare(),i.parser.path.setAttribute("d",this.toString()),i.parser.path.getBBox()}}),i.Number=i.invent({create:function(t,e){this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(i.regex.numberAndUnit))&&(this.value=parseFloat(e[1]),"%"==e[5]?this.value/=100:"s"==e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof i.Number&&(this.value=t.valueOf(),this.unit=t.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(t){return t=new i.Number(t),new i.Number(this+t,this.unit||t.unit)},minus:function(t){return t=new i.Number(t),new i.Number(this-t,this.unit||t.unit)},times:function(t){return t=new i.Number(t),new i.Number(this*t,this.unit||t.unit)},divide:function(t){return t=new i.Number(t),new i.Number(this/t,this.unit||t.unit)},to:function(t){var e=new i.Number(this);return"string"==typeof t&&(e.unit=t),e},morph:function(t){return this.destination=new i.Number(t),t.relative&&(this.destination.value+=this.value),this},at:function(t){return this.destination?new i.Number(this.destination).minus(this).times(t).plus(this):this}}}),i.Element=i.invent({create:function(t){this._stroke=i.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=t)&&(this.type=t.nodeName,this.node.instance=this,this._stroke=t.getAttribute("stroke")||this._stroke)},extend:{x:function(t){return this.attr("x",t)},y:function(t){return this.attr("y",t)},cx:function(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)},cy:function(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)},move:function(t,e){return this.x(t).y(e)},center:function(t,e){return this.cx(t).cy(e)},width:function(t){return this.attr("width",t)},height:function(t){return this.attr("height",t)},size:function(t,e){var n=p(this,t,e);return this.width(new i.Number(n.width)).height(new i.Number(n.height))},clone:function(t){this.writeDataToDom();var e=m(this.node.cloneNode(!0));return t?t.add(e):this.after(e),e},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(t){return this.after(t).remove(),t},addTo:function(t){return t.put(this)},putIn:function(t){return t.add(this)},id:function(t){return this.attr("id",t)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var t=this.attr("class");return null==t?[]:t.trim().split(i.regex.delimiter)},hasClass:function(t){return-1!=this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){var e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter(function(e){return e!=t}).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)},reference:function(t){return i.get(this.attr(t))},parent:function(e){var n=this;if(!n.node.parentNode)return null;if(n=i.adopt(n.node.parentNode),!e)return n;for(;n&&n.node instanceof t.SVGElement;){if("string"==typeof e?n.matches(e):n instanceof e)return n;if(!n.node.parentNode||"#document"==n.node.parentNode.nodeName)return null;n=i.adopt(n.node.parentNode)}},doc:function(){return this instanceof i.Doc?this:this.parent(i.Doc)},parents:function(t){var e=[],i=this;do{if(!(i=i.parent(t))||!i.node)break;e.push(i)}while(i.parent);return e},matches:function(t){return function(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector).call(t,e)}(this.node,t)},native:function(){return this.node},svg:function(t){var n=e.createElement("svg");if(!(t&&this instanceof i.Parent))return n.appendChild(t=e.createElement("svg")),this.writeDataToDom(),t.appendChild(this.node.cloneNode(!0)),n.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");n.innerHTML="<svg>"+t.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var r=0,s=n.firstChild.childNodes.length;r<s;r++)this.node.appendChild(n.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each(function(){this.writeDataToDom()}),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(t){return this.dom=t,this},is:function(t){return function(t,e){return t instanceof e}(this,t)}}}),i.easing={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)}},i.morph=function(t){return function(e,n){return new i.MorphObj(e,n).at(t)}},i.Situation=i.invent({create:function(t){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new i.Number(t.duration).valueOf(),this.delay=new i.Number(t.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=t.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),i.FX=i.invent({create:function(t){this._target=t,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(t,e,n){"object"===r(t)&&(e=t.ease,n=t.delay,t=t.duration);var s=new i.Situation({duration:t||1e3,delay:n||0,ease:i.easing[e||"-"]||e});return this.queue(s),this},target:function(t){return t&&t instanceof i.Element?(this._target=t,this):this._target},timeToAbsPos:function(t){return(t-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(t){return this.situation.duration/this._speed*t+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=t.requestAnimationFrame((function(){this.step()}).bind(this))},stopAnimFrame:function(){t.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(t){return("function"==typeof t||t instanceof i.Situation)&&this.situations.push(t),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof i.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var t,e=this.situation;if(e.init)return this;for(var n in e.animations){t=this.target()[n](),Array.isArray(t)||(t=[t]),Array.isArray(e.animations[n])||(e.animations[n]=[e.animations[n]]);for(var r=t.length;r--;)e.animations[n][r]instanceof i.Number&&(t[r]=new i.Number(t[r])),e.animations[n][r]=t[r].morph(e.animations[n][r])}for(var n in e.attrs)e.attrs[n]=new i.MorphObj(this.target().attr(n),e.attrs[n]);for(var n in e.styles)e.styles[n]=new i.MorphObj(this.target().style(n),e.styles[n]);return e.initialTransformation=this.target().matrixify(),e.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(t,e){var i=this.active;return this.active=!1,e&&this.clearQueue(),t&&this.situation&&(!i&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(t){var e=this.last();return this.target().on("finished.fx",function i(n){n.detail.situation==e&&(t.call(this,e),this.off("finished.fx",i))}),this._callStart()},during:function(t){var e=this.last(),n=function(n){n.detail.situation==e&&t.call(this,n.detail.pos,i.morph(n.detail.pos),n.detail.eased,e)};return this.target().off("during.fx",n).on("during.fx",n),this.after(function(){this.off("during.fx",n)}),this._callStart()},afterAll:function(t){var e=function e(i){t.call(this),this.off("allfinished.fx",e)};return this.target().off("allfinished.fx",e).on("allfinished.fx",e),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(t,e,i){return this.last()[i||"animations"][t]=e,this._callStart()},step:function(t){var e,i,n;t||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(e=Math.max(this.absPos,0),i=Math.floor(e),!0===this.situation.loops||i<this.situation.loops?(this.pos=e-i,n=this.situation.loop,this.situation.loop=i):(this.absPos=this.situation.loops,this.pos=1,n=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=Boolean((this.situation.loop-n)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var r=this.situation.ease(this.pos);for(var s in this.situation.once)s>this.lastPos&&s<=r&&(this.situation.once[s].call(this.target(),this.pos,r),delete this.situation.once[s]);return this.active&&this.target().fire("during",{pos:this.pos,eased:r,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=r,this):this},eachAt:function(){var t,e=this,n=this.target(),r=this.situation;for(var s in r.animations)t=[].concat(r.animations[s]).map(function(t){return"string"!=typeof t&&t.at?t.at(r.ease(e.pos),e.pos):t}),n[s].apply(n,t);for(var s in r.attrs)t=[s].concat(r.attrs[s]).map(function(t){return"string"!=typeof t&&t.at?t.at(r.ease(e.pos),e.pos):t}),n.attr.apply(n,t);for(var s in r.styles)t=[s].concat(r.styles[s]).map(function(t){return"string"!=typeof t&&t.at?t.at(r.ease(e.pos),e.pos):t}),n.style.apply(n,t);if(r.transforms.length){t=r.initialTransformation,s=0;for(var a=r.transforms.length;s<a;s++){var o=r.transforms[s];o instanceof i.Matrix?t=o.relative?t.multiply((new i.Matrix).morph(o).at(r.ease(this.pos))):t.morph(o).at(r.ease(this.pos)):(o.relative||o.undo(t.extract()),t=t.multiply(o.at(r.ease(this.pos))))}n.matrix(t)}return this},once:function(t,e,i){var n=this.last();return i||(t=n.ease(t)),n.once[t]=e,this},_callStart:function(){return setTimeout((function(){this.start()}).bind(this),0),this}},parent:i.Element,construct:{animate:function(t,e,n){return(this.fx||(this.fx=new i.FX(this))).animate(t,e,n)},delay:function(t){return(this.fx||(this.fx=new i.FX(this))).delay(t)},stop:function(t,e){return this.fx&&this.fx.stop(t,e),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),i.MorphObj=i.invent({create:function(t,e){return i.Color.isColor(e)?new i.Color(t).morph(e):i.regex.delimiter.test(t)?i.regex.pathLetters.test(t)?new i.PathArray(t).morph(e):new i.Array(t).morph(e):i.regex.numberAndUnit.test(e)?new i.Number(t).morph(e):(this.value=t,void(this.destination=e))},extend:{at:function(t,e){return e<1?this.value:this.destination},valueOf:function(){return this.value}}}),i.extend(i.FX,{attr:function(t,e,i){if("object"===r(t))for(var n in t)this.attr(n,t[n]);else this.add(t,e,"attrs");return this},plot:function(t,e,i,n){return 4==arguments.length?this.plot([t,e,i,n]):this.add("plot",new(this.target().morphArray)(t))}}),i.Box=i.invent({create:function(t,e,n,s){if(!("object"!==r(t)||t instanceof i.Element))return i.Box.call(this,null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height);4==arguments.length&&(this.x=t,this.y=e,this.width=n,this.height=s),b(this)}}),i.BBox=i.invent({create:function(t){if(i.Box.apply(this,[].slice.call(arguments)),t instanceof i.Element){var n;try{if(!e.documentElement.contains){for(var r=t.node;r.parentNode;)r=r.parentNode;if(r!=e)throw new Error("Element not in the dom")}n=t.node.getBBox()}catch(e){if(t instanceof i.Shape){i.parser.draw||i.prepare();var s=t.clone(i.parser.draw.instance).show();n=s.node.getBBox(),s.remove()}else n={x:t.node.clientLeft,y:t.node.clientTop,width:t.node.clientWidth,height:t.node.clientHeight}}i.Box.call(this,n)}},inherit:i.Box,parent:i.Element,construct:{bbox:function(){return new i.BBox(this)}}}),i.BBox.prototype.constructor=i.BBox,i.Matrix=i.invent({create:function(t){var e=g([1,0,0,1,0,0]);t=null===t?e:t instanceof i.Element?t.matrixify():"string"==typeof t?g(t.split(i.regex.delimiter).map(parseFloat)):6==arguments.length?g([].slice.call(arguments)):Array.isArray(t)?g(t):t&&"object"===r(t)?t:e;for(var n=y.length-1;n>=0;--n)this[y[n]]=null!=t[y[n]]?t[y[n]]:e[y[n]]},extend:{extract:function(){var t=f(this,0,1);f(this,1,0);var e=180/Math.PI*Math.atan2(t.y,t.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(e*Math.PI/180)+this.f*Math.sin(e*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(e*Math.PI/180)+this.e*Math.sin(-e*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new i.Matrix(this)}},clone:function(){return new i.Matrix(this)},morph:function(t){return this.destination=new i.Matrix(t),this},multiply:function(t){return new i.Matrix(this.native().multiply(function(t){return t instanceof i.Matrix||(t=new i.Matrix(t)),t}(t).native()))},inverse:function(){return new i.Matrix(this.native().inverse())},translate:function(t,e){return new i.Matrix(this.native().translate(t||0,e||0))},native:function(){for(var t=i.parser.native.createSVGMatrix(),e=y.length-1;e>=0;e--)t[y[e]]=this[y[e]];return t},toString:function(){return"matrix("+v(this.a)+","+v(this.b)+","+v(this.c)+","+v(this.d)+","+v(this.e)+","+v(this.f)+")"}},parent:i.Element,construct:{ctm:function(){return new i.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof i.Nested){var t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new i.Matrix(e)}return new i.Matrix(this.node.getScreenCTM())}}}),i.Point=i.invent({create:function(t,e){var i;i=Array.isArray(t)?{x:t[0],y:t[1]}:"object"===r(t)?{x:t.x,y:t.y}:null!=t?{x:t,y:null!=e?e:t}:{x:0,y:0},this.x=i.x,this.y=i.y},extend:{clone:function(){return new i.Point(this)},morph:function(t,e){return this.destination=new i.Point(t,e),this}}}),i.extend(i.Element,{point:function(t,e){return new i.Point(t,e).transform(this.screenCTM().inverse())}}),i.extend(i.Element,{attr:function(t,e,n){if(null==t){for(t={},n=(e=this.node.attributes).length-1;n>=0;n--)t[e[n].nodeName]=i.regex.isNumber.test(e[n].nodeValue)?parseFloat(e[n].nodeValue):e[n].nodeValue;return t}if("object"===r(t))for(var s in t)this.attr(s,t[s]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?i.defaults.attrs[t]:i.regex.isNumber.test(e)?parseFloat(e):e;"stroke-width"==t?this.attr("stroke",parseFloat(e)>0?this._stroke:null):"stroke"==t&&(this._stroke=e),"fill"!=t&&"stroke"!=t||(i.regex.isImage.test(e)&&(e=this.doc().defs().image(e,0,0)),e instanceof i.Image&&(e=this.doc().defs().pattern(0,0,function(){this.add(e)}))),"number"==typeof e?e=new i.Number(e):i.Color.isColor(e)?e=new i.Color(e):Array.isArray(e)&&(e=new i.Array(e)),"leading"==t?this.leading&&this.leading(e):"string"==typeof n?this.node.setAttributeNS(n,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!=t&&"x"!=t||this.rebuild(t,e)}return this}}),i.extend(i.Element,{transform:function(t,e){var n;return"object"!==r(t)?(n=new i.Matrix(this).extract(),"string"==typeof t?n[t]:n):(n=new i.Matrix(this),e=!!e||!!t.relative,null!=t.a&&(n=e?n.multiply(new i.Matrix(t)):new i.Matrix(t)),this.attr("transform",n))}}),i.extend(i.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(i.regex.transforms).slice(0,-1).map(function(t){var e=t.trim().split("(");return[e[0],e[1].split(i.regex.delimiter).map(function(t){return parseFloat(t)})]}).reduce(function(t,e){return"matrix"==e[0]?t.multiply(g(e[1])):t[e[0]].apply(t,e[1])},new i.Matrix)},toParent:function(t){if(this==t)return this;var e=this.screenCTM(),i=t.screenCTM().inverse();return this.addTo(t).untransform().transform(i.multiply(e)),this},toDoc:function(){return this.toParent(this.doc())}}),i.Transformation=i.invent({create:function(t,e){if(arguments.length>1&&"boolean"!=typeof e)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(t))for(var i=0,n=this.arguments.length;i<n;++i)this[this.arguments[i]]=t[i];else if(t&&"object"===r(t))for(i=0,n=this.arguments.length;i<n;++i)this[this.arguments[i]]=t[this.arguments[i]];this.inversed=!1,!0===e&&(this.inversed=!0)}}),i.Translate=i.invent({parent:i.Matrix,inherit:i.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),i.extend(i.Element,{style:function(t,e){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"===r(t))for(var n in t)this.style(n,t[n]);else{if(!i.regex.isCss.test(t))return this.node.style[h(t)];for(t=t.split(/\s*;\s*/).filter(function(t){return!!t}).map(function(t){return t.split(/\s*:\s*/)});e=t.pop();)this.style(e[0],e[1])}else this.node.style[h(t)]=null===e||i.regex.isBlank.test(e)?"":e;return this}}),i.Parent=i.invent({create:function(t){this.constructor.call(this,t)},inherit:i.Element,extend:{children:function(){return i.utils.map(i.utils.filterSVGElements(this.node.childNodes),function(t){return i.adopt(t)})},add:function(t,e){return null==e?this.node.appendChild(t.node):t.node!=this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this},put:function(t,e){return this.add(t,e),t},has:function(t){return this.index(t)>=0},index:function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)},get:function(t){return i.adopt(this.node.childNodes[t])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(t,e){for(var n=this.children(),r=0,s=n.length;r<s;r++)n[r]instanceof i.Element&&t.apply(n[r],[r,n]),e&&n[r]instanceof i.Container&&n[r].each(t,e);return this},removeElement:function(t){return this.node.removeChild(t.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),i.extend(i.Parent,{ungroup:function(t,e){return 0===e||this instanceof i.Defs||this.node==i.parser.draw||(t=t||(this instanceof i.Doc?this:this.parent(i.Parent)),e=e||1/0,this.each(function(){return this instanceof i.Defs?this:this instanceof i.Parent?this.ungroup(t,e-1):this.toParent(t)}),this.node.firstChild||this.remove()),this},flatten:function(t,e){return this.ungroup(t,e)}}),i.Container=i.invent({create:function(t){this.constructor.call(this,t)},inherit:i.Parent}),i.ViewBox=i.invent({parent:i.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(t){i.Element.prototype[t]=function(e){return i.on(this.node,t,e),this}}),i.listeners=[],i.handlerMap=[],i.listenerId=0,i.on=function(t,e,n,r,s){var a=n.bind(r||t.instance||t),o=(i.handlerMap.indexOf(t)+1||i.handlerMap.push(t))-1,l=e.split(".")[0],c=e.split(".")[1]||"*";i.listeners[o]=i.listeners[o]||{},i.listeners[o][l]=i.listeners[o][l]||{},i.listeners[o][l][c]=i.listeners[o][l][c]||{},n._svgjsListenerId||(n._svgjsListenerId=++i.listenerId),i.listeners[o][l][c][n._svgjsListenerId]=a,t.addEventListener(l,a,s||{passive:!0})},i.off=function(t,e,n){var r=i.handlerMap.indexOf(t),s=e&&e.split(".")[0],a=e&&e.split(".")[1],o="";if(-1!=r)if(n){if("function"==typeof n&&(n=n._svgjsListenerId),!n)return;i.listeners[r][s]&&i.listeners[r][s][a||"*"]&&(t.removeEventListener(s,i.listeners[r][s][a||"*"][n],!1),delete i.listeners[r][s][a||"*"][n])}else if(a&&s){if(i.listeners[r][s]&&i.listeners[r][s][a]){for(var l in i.listeners[r][s][a])i.off(t,[s,a].join("."),l);delete i.listeners[r][s][a]}}else if(a)for(var c in i.listeners[r])for(var o in i.listeners[r][c])a===o&&i.off(t,[c,a].join("."));else if(s){if(i.listeners[r][s]){for(var o in i.listeners[r][s])i.off(t,[s,o].join("."));delete i.listeners[r][s]}}else{for(var c in i.listeners[r])i.off(t,c);delete i.listeners[r],delete i.handlerMap[r]}},i.extend(i.Element,{on:function(t,e,n,r){return i.on(this.node,t,e,n,r),this},off:function(t,e){return i.off(this.node,t,e),this},fire:function(e,n){return this.node.dispatchEvent(e instanceof t.Event?e:e=new i.CustomEvent(e,{detail:n,cancelable:!0})),this._event=e,this},event:function(){return this._event}}),i.Defs=i.invent({create:"defs",inherit:i.Container}),i.G=i.invent({create:"g",inherit:i.Container,extend:{x:function(t){return null==t?this.transform("x"):this.transform({x:t-this.x()},!0)}},construct:{group:function(){return this.put(new i.G)}}}),i.Doc=i.invent({create:function(t){t&&("svg"==(t="string"==typeof t?e.getElementById(t):t).nodeName?this.constructor.call(this,t):(this.constructor.call(this,i.create("svg")),t.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:i.Container,extend:{namespace:function(){return this.attr({xmlns:i.ns,version:"1.1"}).attr("xmlns:xlink",i.xlink,i.xmlns).attr("xmlns:svgjs",i.svgjs,i.xmlns)},defs:function(){var t;return this._defs||(this._defs=(t=this.node.getElementsByTagName("defs")[0])?i.adopt(t):new i.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,i.parser.draw&&!i.parser.draw.parentNode&&this.node.appendChild(i.parser.draw),this},clone:function(t){this.writeDataToDom();var e=this.node,i=m(e.cloneNode(!0));return t?(t.node||t).appendChild(i.node):e.parentNode.insertBefore(i.node,e.nextSibling),i}}}),i.extend(i.Element,{}),i.Gradient=i.invent({create:function(t){this.constructor.call(this,i.create(t+"Gradient")),this.type=t},inherit:i.Container,extend:{at:function(t,e,n){return this.put(new i.Stop).update(t,e,n)},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(t,e,n){return"transform"==t&&(t="gradientTransform"),i.Container.prototype.attr.call(this,t,e,n)}},construct:{gradient:function(t,e){return this.defs().gradient(t,e)}}}),i.extend(i.Gradient,i.FX,{from:function(t,e){return this.attr("radial"==(this._target||this).type?{fx:new i.Number(t),fy:new i.Number(e)}:{x1:new i.Number(t),y1:new i.Number(e)})},to:function(t,e){return this.attr("radial"==(this._target||this).type?{cx:new i.Number(t),cy:new i.Number(e)}:{x2:new i.Number(t),y2:new i.Number(e)})}}),i.extend(i.Defs,{gradient:function(t,e){return this.put(new i.Gradient(t)).update(e)}}),i.Stop=i.invent({create:"stop",inherit:i.Element,extend:{update:function(t){return("number"==typeof t||t instanceof i.Number)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new i.Number(t.offset)),this}}}),i.Pattern=i.invent({create:"pattern",inherit:i.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},toString:function(){return this.fill()},attr:function(t,e,n){return"transform"==t&&(t="patternTransform"),i.Container.prototype.attr.call(this,t,e,n)}},construct:{pattern:function(t,e,i){return this.defs().pattern(t,e,i)}}}),i.extend(i.Defs,{pattern:function(t,e,n){return this.put(new i.Pattern).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}}),i.Shape=i.invent({create:function(t){this.constructor.call(this,t)},inherit:i.Element}),i.Symbol=i.invent({create:"symbol",inherit:i.Container,construct:{symbol:function(){return this.put(new i.Symbol)}}}),i.Use=i.invent({create:"use",inherit:i.Shape,extend:{element:function(t,e){return this.attr("href",(e||"")+"#"+t,i.xlink)}},construct:{use:function(t,e){return this.put(new i.Use).element(t,e)}}}),i.Rect=i.invent({create:"rect",inherit:i.Shape,construct:{rect:function(t,e){return this.put(new i.Rect).size(t,e)}}}),i.Circle=i.invent({create:"circle",inherit:i.Shape,construct:{circle:function(t){return this.put(new i.Circle).rx(new i.Number(t).divide(2)).move(0,0)}}}),i.extend(i.Circle,i.FX,{rx:function(t){return this.attr("r",t)},ry:function(t){return this.rx(t)}}),i.Ellipse=i.invent({create:"ellipse",inherit:i.Shape,construct:{ellipse:function(t,e){return this.put(new i.Ellipse).size(t,e).move(0,0)}}}),i.extend(i.Ellipse,i.Rect,i.FX,{rx:function(t){return this.attr("rx",t)},ry:function(t){return this.attr("ry",t)}}),i.extend(i.Circle,i.Ellipse,{x:function(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())},y:function(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())},cx:function(t){return null==t?this.attr("cx"):this.attr("cx",t)},cy:function(t){return null==t?this.attr("cy"):this.attr("cy",t)},width:function(t){return null==t?2*this.rx():this.rx(new i.Number(t).divide(2))},height:function(t){return null==t?2*this.ry():this.ry(new i.Number(t).divide(2))},size:function(t,e){var n=p(this,t,e);return this.rx(new i.Number(n.width).divide(2)).ry(new i.Number(n.height).divide(2))}}),i.Line=i.invent({create:"line",inherit:i.Shape,extend:{array:function(){return new i.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(t,e,n,r){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:n,y2:r}:new i.PointArray(t).toLine(),this.attr(t))},move:function(t,e){return this.attr(this.array().move(t,e).toLine())},size:function(t,e){var i=p(this,t,e);return this.attr(this.array().size(i.width,i.height).toLine())}},construct:{line:function(t,e,n,r){return i.Line.prototype.plot.apply(this.put(new i.Line),null!=t?[t,e,n,r]:[0,0,0,0])}}}),i.Polyline=i.invent({create:"polyline",inherit:i.Shape,construct:{polyline:function(t){return this.put(new i.Polyline).plot(t||new i.PointArray)}}}),i.Polygon=i.invent({create:"polygon",inherit:i.Shape,construct:{polygon:function(t){return this.put(new i.Polygon).plot(t||new i.PointArray)}}}),i.extend(i.Polyline,i.Polygon,{array:function(){return this._array||(this._array=new i.PointArray(this.attr("points")))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new i.PointArray(t))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("points",this.array().move(t,e))},size:function(t,e){var i=p(this,t,e);return this.attr("points",this.array().size(i.width,i.height))}}),i.extend(i.Line,i.Polyline,i.Polygon,{morphArray:i.PointArray,x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},width:function(t){var e=this.bbox();return null==t?e.width:this.size(t,e.height)},height:function(t){var e=this.bbox();return null==t?e.height:this.size(e.width,t)}}),i.Path=i.invent({create:"path",inherit:i.Shape,extend:{morphArray:i.PathArray,array:function(){return this._array||(this._array=new i.PathArray(this.attr("d")))},plot:function(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new i.PathArray(t))},clear:function(){return delete this._array,this}},construct:{path:function(t){return this.put(new i.Path).plot(t||new i.PathArray)}}}),i.Image=i.invent({create:"image",inherit:i.Shape,extend:{load:function(e){if(!e)return this;var n=this,r=new t.Image;return i.on(r,"load",function(){i.off(r);var t=n.parent(i.Pattern);null!==t&&(0==n.width()&&0==n.height()&&n.size(r.width,r.height),t&&0==t.width()&&0==t.height()&&t.size(n.width(),n.height()),"function"==typeof n._loaded&&n._loaded.call(n,{width:r.width,height:r.height,ratio:r.width/r.height,url:e}))}),i.on(r,"error",function(t){i.off(r),"function"==typeof n._error&&n._error.call(n,t)}),this.attr("href",r.src=this.src=e,i.xlink)},loaded:function(t){return this._loaded=t,this},error:function(t){return this._error=t,this}},construct:{image:function(t,e,n){return this.put(new i.Image).load(t).size(e||0,n||e||0)}}}),i.Text=i.invent({create:function(){this.constructor.call(this,i.create("text")),this.dom.leading=new i.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",i.defaults.attrs["font-family"])},inherit:i.Shape,extend:{x:function(t){return null==t?this.attr("x"):this.attr("x",t)},text:function(t){if(void 0===t){t="";for(var e=this.node.childNodes,n=0,r=e.length;n<r;++n)0!=n&&3!=e[n].nodeType&&1==i.adopt(e[n]).dom.newLined&&(t+="\n"),t+=e[n].textContent;return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else{n=0;for(var s=(t=t.split("\n")).length;n<s;n++)this.tspan(t[n]).newLine()}return this.build(!1).rebuild()},size:function(t){return this.attr("font-size",t).rebuild()},leading:function(t){return null==t?this.dom.leading:(this.dom.leading=new i.Number(t),this.rebuild())},lines:function(){var t=(this.textPath&&this.textPath()||this).node,e=i.utils.map(i.utils.filterSVGElements(t.childNodes),function(t){return i.adopt(t)});return new i.Set(e)},rebuild:function(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){var e=this,n=0,r=this.dom.leading*new i.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(e.textPath()||this.attr("x",e.attr("x")),"\n"==this.text()?n+=r:(this.attr("dy",r+n),n=0))}),this.fire("rebuild")}return this},build:function(t){return this._build=!!t,this},setData:function(t){return this.dom=t,this.dom.leading=new i.Number(t.leading||1.3),this}},construct:{text:function(t){return this.put(new i.Text).text(t)},plain:function(t){return this.put(new i.Text).plain(t)}}}),i.Tspan=i.invent({create:"tspan",inherit:i.Shape,extend:{text:function(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?t.call(this,this):this.plain(t),this)},dx:function(t){return this.attr("dx",t)},dy:function(t){return this.attr("dy",t)},newLine:function(){var t=this.parent(i.Text);return this.dom.newLined=!0,this.dy(t.dom.leading*t.attr("font-size")).attr("x",t.x())}}}),i.extend(i.Text,i.Tspan,{plain:function(t){return!1===this._build&&this.clear(),this.node.appendChild(e.createTextNode(t)),this},tspan:function(t){var e=(this.textPath&&this.textPath()||this).node,n=new i.Tspan;return!1===this._build&&this.clear(),e.appendChild(n.node),n.text(t)},clear:function(){for(var t=(this.textPath&&this.textPath()||this).node;t.hasChildNodes();)t.removeChild(t.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),i.TextPath=i.invent({create:"textPath",inherit:i.Parent,parent:i.Text,construct:{morphArray:i.PathArray,array:function(){var t=this.track();return t?t.array():null},plot:function(t){var e=this.track(),i=null;return e&&(i=e.plot(t)),null==t?i:this},track:function(){var t=this.textPath();if(t)return t.reference("href")},textPath:function(){if(this.node.firstChild&&"textPath"==this.node.firstChild.nodeName)return i.adopt(this.node.firstChild)}}}),i.Nested=i.invent({create:function(){this.constructor.call(this,i.create("svg")),this.style("overflow","visible")},inherit:i.Container,construct:{nested:function(){return this.put(new i.Nested)}}});var l={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"==e?t:t+"-"+e}};function c(t,e,n,r){return n+r.replace(i.regex.dots," .")}function h(t){return t.toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()})}function d(t){return t.charAt(0).toUpperCase()+t.slice(1)}function u(t){var e=t.toString(16);return 1==e.length?"0"+e:e}function p(t,e,i){if(null==e||null==i){var n=t.bbox();null==e?e=n.width/n.height*i:null==i&&(i=n.height/n.width*e)}return{width:e,height:i}}function f(t,e,i){return{x:e*t.a+i*t.c+0,y:e*t.b+i*t.d+0}}function g(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}function m(e){for(var n=e.childNodes.length-1;n>=0;n--)e.childNodes[n]instanceof t.SVGElement&&m(e.childNodes[n]);return i.adopt(e).id(i.eid(e.nodeName))}function b(t){return null==t.x&&(t.x=0,t.y=0,t.width=0,t.height=0),t.w=t.width,t.h=t.height,t.x2=t.x+t.width,t.y2=t.y+t.height,t.cx=t.x+t.width/2,t.cy=t.y+t.height/2,t}function v(t){return Math.abs(t)>1e-37?t:0}["fill","stroke"].forEach(function(t){var e={};e[t]=function(e){if(void 0===e)return this;if("string"==typeof e||i.Color.isRgb(e)||e&&"function"==typeof e.fill)this.attr(t,e);else for(var n=l[t].length-1;n>=0;n--)null!=e[l[t][n]]&&this.attr(l.prefix(t,l[t][n]),e[l[t][n]]);return this},i.extend(i.Element,i.FX,e)}),i.extend(i.Element,i.FX,{translate:function(t,e){return this.transform({x:t,y:e})},matrix:function(t){return this.attr("transform",new i.Matrix(6==arguments.length?[].slice.call(arguments):t))},opacity:function(t){return this.attr("opacity",t)},dx:function(t){return this.x(new i.Number(t).plus(this instanceof i.FX?0:this.x()),!0)},dy:function(t){return this.y(new i.Number(t).plus(this instanceof i.FX?0:this.y()),!0)}}),i.extend(i.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(t){return this.node.getPointAtLength(t)}}),i.Set=i.invent({create:function(t){Array.isArray(t)?this.members=t:this.clear()},extend:{add:function(){for(var t=[].slice.call(arguments),e=0,i=t.length;e<i;e++)this.members.push(t[e]);return this},remove:function(t){var e=this.index(t);return e>-1&&this.members.splice(e,1),this},each:function(t){for(var e=0,i=this.members.length;e<i;e++)t.apply(this.members[e],[e,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(t){return this.index(t)>=0},index:function(t){return this.members.indexOf(t)},get:function(t){return this.members[t]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(t){return new i.Set(t)}}}),i.FX.Set=i.invent({create:function(t){this.set=t}}),i.Set.inherit=function(){var t=[];for(var e in i.Shape.prototype)"function"==typeof i.Shape.prototype[e]&&"function"!=typeof i.Set.prototype[e]&&t.push(e);for(var e in t.forEach(function(t){i.Set.prototype[t]=function(){for(var e=0,n=this.members.length;e<n;e++)this.members[e]&&"function"==typeof this.members[e][t]&&this.members[e][t].apply(this.members[e],arguments);return"animate"==t?this.fx||(this.fx=new i.FX.Set(this)):this}}),t=[],i.FX.prototype)"function"==typeof i.FX.prototype[e]&&"function"!=typeof i.FX.Set.prototype[e]&&t.push(e);t.forEach(function(t){i.FX.Set.prototype[t]=function(){for(var e=0,i=this.set.members.length;e<i;e++)this.set.members[e].fx[t].apply(this.set.members[e].fx,arguments);return this}})},i.extend(i.Element,{}),i.extend(i.Element,{remember:function(t,e){if("object"===r(arguments[0]))for(var i in t)this.remember(i,t[i]);else{if(1==arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory||(this._memory={})}}),i.get=function(t){var n=e.getElementById(function(t){var e=(t||"").toString().match(i.regex.reference);if(e)return e[1]}(t)||t);return i.adopt(n)},i.select=function(t,n){return new i.Set(i.utils.map((n||e).querySelectorAll(t),function(t){return i.adopt(t)}))},i.extend(i.Parent,{select:function(t){return i.select(t,this.node)}});var y="abcdef".split("");if("function"!=typeof t.CustomEvent){var _=function(t,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var n=e.createEvent("CustomEvent");return n.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),n};_.prototype=t.Event.prototype,i.CustomEvent=_}else i.CustomEvent=t.CustomEvent;return i},void 0!==(n=(function(){return Mt(It,It.document)}).call(e,i,e,t))&&(t.exports=n),(function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(t,e){return this.add(t,e),!t.attr("in")&&this.autoSetIn&&t.attr("in",this.source),t.attr("result")||t.attr("result",t),t},blend:function(t,e,i){return this.put(new SVG.BlendEffect(t,e,i))},colorMatrix:function(t,e){return this.put(new SVG.ColorMatrixEffect(t,e))},convolveMatrix:function(t){return this.put(new SVG.ConvolveMatrixEffect(t))},componentTransfer:function(t){return this.put(new SVG.ComponentTransferEffect(t))},composite:function(t,e,i){return this.put(new SVG.CompositeEffect(t,e,i))},flood:function(t,e){return this.put(new SVG.FloodEffect(t,e))},offset:function(t,e){return this.put(new SVG.OffsetEffect(t,e))},image:function(t){return this.put(new SVG.ImageEffect(t))},merge:function(){var t=[void 0];for(var e in arguments)t.push(arguments[e]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,t)))},gaussianBlur:function(t,e){return this.put(new SVG.GaussianBlurEffect(t,e))},morphology:function(t,e){return this.put(new SVG.MorphologyEffect(t,e))},diffuseLighting:function(t,e,i){return this.put(new SVG.DiffuseLightingEffect(t,e,i))},displacementMap:function(t,e,i,n,r){return this.put(new SVG.DisplacementMapEffect(t,e,i,n,r))},specularLighting:function(t,e,i,n){return this.put(new SVG.SpecularLightingEffect(t,e,i,n))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(t,e,i,n,r){return this.put(new SVG.TurbulenceEffect(t,e,i,n,r))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(t){var e=this.put(new SVG.Filter);return"function"==typeof t&&t.call(e,e),e}}),SVG.extend(SVG.Container,{filter:function(t){return this.defs().filter(t)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(t){return this.filterer=t instanceof SVG.Element?t:this.doc().filter(t),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(t){return this.filterer&&!0===t&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}});var t={blend:function(t,e){return this.parent()&&this.parent().blend(this,t,e)},colorMatrix:function(t,e){return this.parent()&&this.parent().colorMatrix(t,e).in(this)},convolveMatrix:function(t){return this.parent()&&this.parent().convolveMatrix(t).in(this)},componentTransfer:function(t){return this.parent()&&this.parent().componentTransfer(t).in(this)},composite:function(t,e){return this.parent()&&this.parent().composite(this,t,e)},flood:function(t,e){return this.parent()&&this.parent().flood(t,e)},offset:function(t,e){return this.parent()&&this.parent().offset(t,e).in(this)},image:function(t){return this.parent()&&this.parent().image(t)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(t,e){return this.parent()&&this.parent().gaussianBlur(t,e).in(this)},morphology:function(t,e){return this.parent()&&this.parent().morphology(t,e).in(this)},diffuseLighting:function(t,e,i){return this.parent()&&this.parent().diffuseLighting(t,e,i).in(this)},displacementMap:function(t,e,i,n){return this.parent()&&this.parent().displacementMap(this,t,e,i,n)},specularLighting:function(t,e,i,n){return this.parent()&&this.parent().specularLighting(t,e,i,n).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(t,e,i,n,r){return this.parent()&&this.parent().turbulence(t,e,i,n,r).in(this)}};SVG.extend(SVG.Effect,t),SVG.extend(SVG.ParentEffect,t),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(t){this.attr("in",t)}}});var e={blend:function(t,e,i){this.attr({in:t,in2:e,mode:i||"normal"})},colorMatrix:function(t,e){"matrix"==t&&(e=r(e)),this.attr({type:t,values:void 0===e?null:e})},convolveMatrix:function(t){t=r(t),this.attr({order:Math.sqrt(t.split(" ").length),kernelMatrix:t})},composite:function(t,e,i){this.attr({in:t,in2:e,operator:i})},flood:function(t,e){this.attr("flood-color",t),null!=e&&this.attr("flood-opacity",e)},offset:function(t,e){this.attr({dx:t,dy:e})},image:function(t){this.attr("href",t,SVG.xlink)},displacementMap:function(t,e,i,n,r){this.attr({in:t,in2:e,scale:i,xChannelSelector:n,yChannelSelector:r})},gaussianBlur:function(t,e){this.attr("stdDeviation",null!=t||null!=e?s(Array.prototype.slice.call(arguments)):"0 0")},morphology:function(t,e){this.attr({operator:t,radius:e})},tile:function(){},turbulence:function(t,e,i,n,r){this.attr({numOctaves:e,seed:i,stitchTiles:n,baseFrequency:t,type:r})}},i={merge:function(){var t;if(arguments[0]instanceof SVG.Set){var e=this;arguments[0].each(function(t){this instanceof SVG.MergeNode?e.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&e.put(new SVG.MergeNode(this))})}else{t=Array.isArray(arguments[0])?arguments[0]:arguments;for(var i=0;i<t.length;i++)t[i]instanceof SVG.MergeNode?this.put(t[i]):this.put(new SVG.MergeNode(t[i]))}},componentTransfer:function(t){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach((function(t){this[t]=new(SVG["Func"+t.toUpperCase()])("identity"),this.rgb.add(this[t]),this.node.appendChild(this[t].node)}).bind(this)),t)for(var e in t.rgb&&(["r","g","b"].forEach((function(e){this[e].attr(t.rgb)}).bind(this)),delete t.rgb),t)this[e].attr(t[e])},diffuseLighting:function(t,e,i){this.attr({surfaceScale:t,diffuseConstant:e,kernelUnitLength:i})},specularLighting:function(t,e,i,n){this.attr({surfaceScale:t,diffuseConstant:e,specularExponent:i,kernelUnitLength:n})}},n={distantLight:function(t,e){this.attr({azimuth:t,elevation:e})},pointLight:function(t,e,i){this.attr({x:t,y:e,z:i})},spotLight:function(t,e,i,n,r,s){this.attr({x:t,y:e,z:i,pointsAtX:n,pointsAtY:r,pointsAtZ:s})},mergeNode:function(t){this.attr("in",t)}};function r(t){return Array.isArray(t)&&(t=new SVG.Array(t)),t.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function s(t){if(!Array.isArray(t))return t;for(var e=0,i=t.length,n=[];e<i;e++)n.push(t[e]);return n.join(" ")}function a(){var t=function(){};for(var e in"function"==typeof arguments[arguments.length-1]&&(t=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var i in arguments[e])t(arguments[e][i],i,arguments[e])}["r","g","b","a"].forEach(function(t){n["Func"+t.toUpperCase()]=function(t){switch(this.attr("type",t),t){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}}),a(e,function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})}),a(i,function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})}),a(n,function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})}),SVG.extend(SVG.MergeEffect,{in:function(t){return t instanceof SVG.MergeNode?this.add(t,0):this.add(new SVG.MergeNode(t),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",t)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}).call(void 0),function(){function t(t,r,s,a,o,l,c){for(var h=t.slice(r,s||c),d=a.slice(o,l||c),u=0,p={pos:[0,0],start:[0,0]},f={pos:[0,0],start:[0,0]};h[u]=e.call(p,h[u]),d[u]=e.call(f,d[u]),h[u][0]!=d[u][0]||"M"==h[u][0]||"A"==h[u][0]&&(h[u][4]!=d[u][4]||h[u][5]!=d[u][5])?(Array.prototype.splice.apply(h,[u,1].concat(n.call(p,h[u]))),Array.prototype.splice.apply(d,[u,1].concat(n.call(f,d[u])))):(h[u]=i.call(p,h[u]),d[u]=i.call(f,d[u])),++u!=h.length||u!=d.length;)u==h.length&&h.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]),u==d.length&&d.push(["C",f.pos[0],f.pos[1],f.pos[0],f.pos[1],f.pos[0],f.pos[1]]);return{start:h,dest:d}}function e(t){switch(t[0]){case"z":case"Z":t[0]="L",t[1]=this.start[0],t[2]=this.start[1];break;case"H":t[0]="L",t[2]=this.pos[1];break;case"V":t[0]="L",t[2]=t[1],t[1]=this.pos[0];break;case"T":t[0]="Q",t[3]=t[1],t[4]=t[2],t[1]=this.reflection[1],t[2]=this.reflection[0];break;case"S":t[0]="C",t[6]=t[4],t[5]=t[3],t[4]=t[2],t[3]=t[1],t[2]=this.reflection[1],t[1]=this.reflection[0]}return t}function i(t){var e=t.length;return this.pos=[t[e-2],t[e-1]],-1!="SCQT".indexOf(t[0])&&(this.reflection=[2*this.pos[0]-t[e-4],2*this.pos[1]-t[e-3]]),t}function n(t){var e=[t];switch(t[0]){case"M":return this.pos=this.start=[t[1],t[2]],e;case"L":t[5]=t[3]=t[1],t[6]=t[4]=t[2],t[1]=this.pos[0],t[2]=this.pos[1];break;case"Q":t[6]=t[4],t[5]=t[3],t[4]=1*t[4]/3+2*t[2]/3,t[3]=1*t[3]/3+2*t[1]/3,t[2]=1*this.pos[1]/3+2*t[2]/3,t[1]=1*this.pos[0]/3+2*t[1]/3;break;case"A":t=(e=function(t,e){var i,n,r,s,a,o,l,c,h,d,u,p,f,g,m,b,v,y,_,x,w,C,k,S,T,A,O=Math.abs(e[1]),E=Math.abs(e[2]),D=e[3]%360,P=e[4],I=e[5],M=e[6],R=e[7],L=new SVG.Point(t),N=new SVG.Point(M,R),z=[];if(0===O||0===E||L.x===N.x&&L.y===N.y)return[["C",L.x,L.y,N.x,N.y,N.x,N.y]];for((n=(i=new SVG.Point((L.x-N.x)/2,(L.y-N.y)/2).transform((new SVG.Matrix).rotate(D))).x*i.x/(O*O)+i.y*i.y/(E*E))>1&&(O*=n=Math.sqrt(n),E*=n),r=(new SVG.Matrix).rotate(D).scale(1/O,1/E).rotate(-D),L=L.transform(r),o=(s=[(N=N.transform(r)).x-L.x,N.y-L.y])[0]*s[0]+s[1]*s[1],a=Math.sqrt(o),s[0]/=a,s[1]/=a,l=o<4?Math.sqrt(1-o/4):0,P===I&&(l*=-1),c=new SVG.Point((N.x+L.x)/2+l*-s[1],(N.y+L.y)/2+l*s[0]),h=new SVG.Point(L.x-c.x,L.y-c.y),d=new SVG.Point(N.x-c.x,N.y-c.y),u=Math.acos(h.x/Math.sqrt(h.x*h.x+h.y*h.y)),h.y<0&&(u*=-1),p=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(p*=-1),I&&u>p&&(p+=2*Math.PI),!I&&u<p&&(p-=2*Math.PI),b=[],v=u,f=(p-u)/(g=Math.ceil(2*Math.abs(u-p)/Math.PI)),m=4*Math.tan(f/4)/3,w=0;w<=g;w++)_=Math.cos(v),y=Math.sin(v),x=new SVG.Point(c.x+_,c.y+y),b[w]=[new SVG.Point(x.x+m*y,x.y-m*_),x,new SVG.Point(x.x-m*y,x.y+m*_)],v+=f;for(b[0][0]=b[0][1].clone(),b[b.length-1][2]=b[b.length-1][1].clone(),r=(new SVG.Matrix).rotate(D).scale(O,E).rotate(-D),w=0,C=b.length;w<C;w++)b[w][0]=b[w][0].transform(r),b[w][1]=b[w][1].transform(r),b[w][2]=b[w][2].transform(r);for(w=1,C=b.length;w<C;w++)k=(x=b[w-1][2]).x,S=x.y,T=(x=b[w][0]).x,A=x.y,M=(x=b[w][1]).x,z.push(["C",k,S,T,A,M,R=x.y]);return z}(this.pos,t))[0]}return t[0]="C",this.pos=[t[5],t[6]],this.reflection=[2*t[5]-t[3],2*t[6]-t[4]],e}function r(t,e){if(!1===e)return!1;for(var i=e,n=t.length;i<n;++i)if("M"==t[i][0])return i;return!1}SVG.extend(SVG.PathArray,{morph:function(e){for(var i=this.value,n=this.parse(e),s=0,a=0,o=!1,l=!1;!1!==s||!1!==a;){var c;o=r(i,!1!==s&&s+1),l=r(n,!1!==a&&a+1),!1===s&&(s=0==(c=new SVG.PathArray(h.start).bbox()).height||0==c.width?i.push(i[0])-1:i.push(["M",c.x+c.width/2,c.y+c.height/2])-1),!1===a&&(a=0==(c=new SVG.PathArray(h.dest).bbox()).height||0==c.width?n.push(n[0])-1:n.push(["M",c.x+c.width/2,c.y+c.height/2])-1);var h=t(i,s,o,n,a,l);i=i.slice(0,s).concat(h.start,!1===o?[]:i.slice(o)),n=n.slice(0,a).concat(h.dest,!1===l?[]:n.slice(l)),s=!1!==o&&s+h.start.length,a=!1!==l&&a+h.dest.length}return this.value=i,this.destination=new SVG.PathArray,this.destination.value=n,this}})}(),(function(){function t(t){t.remember("_draggable",this),this.el=t}t.prototype.init=function(t,e){var i=this;this.constraint=t,this.value=e,this.el.on("mousedown.drag",function(t){i.start(t)}),this.el.on("touchstart.drag",function(t){i.start(t)})},t.prototype.transformPoint=function(t,e){var i=(t=t||window.event).changedTouches&&t.changedTouches[0]||t;return this.p.x=i.clientX-(e||0),this.p.y=i.clientY,this.p.matrixTransform(this.m)},t.prototype.getBBox=function(){var t=this.el.bbox();return this.el instanceof SVG.Nested&&(t=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(t.x=this.el.x(),t.y=this.el.y()),t},t.prototype.start=function(t){if("click"!=t.type&&"mousedown"!=t.type&&"mousemove"!=t.type||1==(t.which||t.buttons)){var e=this;if(this.el.fire("beforedrag",{event:t,handler:this}),!this.el.event().defaultPrevented){t.preventDefault(),t.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var i,n=this.getBBox();if(this.el instanceof SVG.Text)switch(i=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":i/=2;break;case"start":i=0}this.startPoints={point:this.transformPoint(t,i),box:n,transform:this.el.transform()},SVG.on(window,"mousemove.drag",function(t){e.drag(t)}),SVG.on(window,"touchmove.drag",function(t){e.drag(t)}),SVG.on(window,"mouseup.drag",function(t){e.end(t)}),SVG.on(window,"touchend.drag",function(t){e.end(t)}),this.el.fire("dragstart",{event:t,p:this.startPoints.point,m:this.m,handler:this})}}},t.prototype.drag=function(t){var e=this.getBBox(),i=this.transformPoint(t),n=this.startPoints.box.x+i.x-this.startPoints.point.x,r=this.startPoints.box.y+i.y-this.startPoints.point.y,s=this.constraint,a=i.x-this.startPoints.point.x,o=i.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:t,p:i,m:this.m,handler:this}),this.el.event().defaultPrevented)return i;if("function"==typeof s){var l=s.call(this.el,n,r,this.m);"boolean"==typeof l&&(l={x:l,y:l}),!0===l.x?this.el.x(n):!1!==l.x&&this.el.x(l.x),!0===l.y?this.el.y(r):!1!==l.y&&this.el.y(l.y)}else"object"==typeof s&&(null!=s.minX&&n<s.minX?a=(n=s.minX)-this.startPoints.box.x:null!=s.maxX&&n>s.maxX-e.width&&(a=(n=s.maxX-e.width)-this.startPoints.box.x),null!=s.minY&&r<s.minY?o=(r=s.minY)-this.startPoints.box.y:null!=s.maxY&&r>s.maxY-e.height&&(o=(r=s.maxY-e.height)-this.startPoints.box.y),null!=s.snapToGrid&&(n-=n%s.snapToGrid,r-=r%s.snapToGrid,a-=a%s.snapToGrid,o-=o%s.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:a,y:o},!0):this.el.move(n,r));return i},t.prototype.end=function(t){var e=this.drag(t);this.el.fire("dragend",{event:t,p:e,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(e,i){"function"!=typeof e&&"object"!=typeof e||(i=e,e=!0);var n=this.remember("_draggable")||new t(this);return(e=void 0===e||e)?n.init(i||{},e):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}).call(void 0),function(){function t(t){this.el=t,t.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(t,e,i){var n="string"!=typeof t?t:e[t];return i?n/2:n},this.pointCoords=function(t,e){var i=this.pointsList[t];return{x:this.pointCoord(i[0],e,"t"===t||"b"===t),y:this.pointCoord(i[1],e,"r"===t||"l"===t)}}}t.prototype.init=function(t,e){var i=this.el.bbox();this.options={};var n=this.el.selectize.defaults.points;for(var r in this.el.selectize.defaults)this.options[r]=this.el.selectize.defaults[r],void 0!==e[r]&&(this.options[r]=e[r]);var s=["points","pointsExclude"];for(var r in s){var a=this.options[s[r]];"string"==typeof a?a=a.length>0?a.split(/\s*,\s*/i):[]:"boolean"==typeof a&&"points"===s[r]&&(a=a?n:[]),this.options[s[r]]=a}this.options.points=[n,this.options.points].reduce(function(t,e){return t.filter(function(t){return e.indexOf(t)>-1})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(t,e){return t.filter(function(t){return e.indexOf(t)<0})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(t):this.selectRect(t),this.observe(),this.cleanup()},t.prototype.selectPoints=function(t){return this.pointSelection.isSelected=t,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},t.prototype.getPointArray=function(){var t=this.el.bbox();return this.el.array().valueOf().map(function(e){return[e[0]-t.x,e[1]-t.y]})},t.prototype.drawPoints=function(){for(var t=this,e=this.getPointArray(),i=0,n=e.length;i<n;++i){var r=function(e){return function(i){(i=i||window.event).preventDefault?i.preventDefault():i.returnValue=!1,i.stopPropagation(),t.el.fire("point",{x:i.pageX||i.touches[0].pageX,y:i.pageY||i.touches[0].pageY,i:e,event:i})}}(i),s=this.drawPoint(e[i][0],e[i][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",r).on("mousedown",r);this.pointSelection.set.add(s)}},t.prototype.drawPoint=function(t,e){var i=this.options.pointType;switch(i){case"circle":return this.drawCircle(t,e);case"rect":return this.drawRect(t,e);default:if("function"==typeof i)return i.call(this,t,e);throw new Error("Unknown "+i+" point type!")}},t.prototype.drawCircle=function(t,e){return this.nested.circle(this.options.pointSize).center(t,e)},t.prototype.drawRect=function(t,e){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(t,e)},t.prototype.updatePointSelection=function(){var t=this.getPointArray();this.pointSelection.set.each(function(e){this.cx()===t[e][0]&&this.cy()===t[e][1]||this.center(t[e][0],t[e][1])})},t.prototype.updateRectSelection=function(){var t=this,e=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:e.width,height:e.height}),this.options.points.length&&this.options.points.map(function(i,n){var r=t.pointCoords(i,e);t.rectSelection.set.get(n+1).center(r.x,r.y)}),this.options.rotationPoint){var i=this.rectSelection.set.length();this.rectSelection.set.get(i-1).center(e.width/2,20)}},t.prototype.selectRect=function(t){var e=this,i=this.el.bbox();function n(t){return function(i){(i=i||window.event).preventDefault?i.preventDefault():i.returnValue=!1,i.stopPropagation(),e.el.fire(t,{x:i.pageX||i.touches[0].pageX,y:i.pageY||i.touches[0].pageY,event:i})}}if(this.rectSelection.isSelected=t,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(i.width,i.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map(function(t,r){var s=e.pointCoords(t,i),a=e.drawPoint(s.x,s.y).attr("class",e.options.classPoints+"_"+t).on("mousedown",n(t)).on("touchstart",n(t));e.rectSelection.set.add(a)}),this.rectSelection.set.each(function(){this.addClass(e.options.classPoints)})),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var r=function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation(),e.el.fire("rot",{x:t.pageX||t.touches[0].pageX,y:t.pageY||t.touches[0].pageY,event:t})},s=this.drawPoint(i.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",r).on("mousedown",r);this.rectSelection.set.add(s)}},t.prototype.handler=function(){var t=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(t.x,t.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},t.prototype.observe=function(){var t=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver(function(){t.handler()}),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch(t){}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",function(){t.handler()})},t.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each(function(){this.remove()}),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each(function(){this.remove()}),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(e,i){return"object"==typeof e&&(i=e,e=!0),(this.remember("_selectHandler")||new t(this)).init(void 0===e||e,i||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function t(t){t.remember("_resizeHandler",this),this.el=t,this.parameters={},this.lastUpdateCall=null,this.p=t.doc().node.createSVGPoint()}t.prototype.transformPoint=function(t,e,i){return this.p.x=t-(this.offset.x-window.pageXOffset),this.p.y=e-(this.offset.y-window.pageYOffset),this.p.matrixTransform(i||this.m)},t.prototype._extractPosition=function(t){return{x:null!=t.clientX?t.clientX:t.touches[0].clientX,y:null!=t.clientY?t.clientY:t.touches[0].clientY}},t.prototype.init=function(t){var e=this;if(this.stop(),"stop"!==t){for(var i in this.options={},this.el.resize.defaults)this.options[i]=this.el.resize.defaults[i],void 0!==t[i]&&(this.options[i]=t[i]);this.el.on("lt.resize",function(t){e.resize(t||window.event)}),this.el.on("rt.resize",function(t){e.resize(t||window.event)}),this.el.on("rb.resize",function(t){e.resize(t||window.event)}),this.el.on("lb.resize",function(t){e.resize(t||window.event)}),this.el.on("t.resize",function(t){e.resize(t||window.event)}),this.el.on("r.resize",function(t){e.resize(t||window.event)}),this.el.on("b.resize",function(t){e.resize(t||window.event)}),this.el.on("l.resize",function(t){e.resize(t||window.event)}),this.el.on("rot.resize",function(t){e.resize(t||window.event)}),this.el.on("point.resize",function(t){e.resize(t||window.event)}),this.update()}},t.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},t.prototype.resize=function(t){var e=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var i=this._extractPosition(t.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(i.x,i.y),x:t.detail.x,y:t.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},"text"===this.el.type&&(this.parameters.fontSize=this.el.attr()["font-size"]),void 0!==t.detail.i){var n=this.el.array().valueOf();this.parameters.i=t.detail.i,this.parameters.pointCoords=[n[t.detail.i][0],n[t.detail.i][1]]}switch(t.type){case"lt":this.calc=function(t,e){var i=this.snapToGrid(t,e);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y+i[1]).size(this.parameters.box.width-i[0],this.parameters.box.height-i[1])}};break;case"rt":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).size(this.parameters.box.width+i[0],this.parameters.box.height-i[1])}};break;case"rb":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+i[0],this.parameters.box.height+i[1])}};break;case"lb":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i,!0),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).size(this.parameters.box.width-i[0],this.parameters.box.height+i[1])}};break;case"t":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).height(this.parameters.box.height-i[1])}};break;case"r":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+i[0])}};break;case"b":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+i[1])}};break;case"l":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).width(this.parameters.box.width-i[0])}};break;case"rot":this.calc=function(t,e){var i=t+this.parameters.p.x,n=e+this.parameters.p.y,r=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),s=Math.atan2(n-this.parameters.box.y-this.parameters.box.height/2,i-this.parameters.box.x-this.parameters.box.width/2),a=this.parameters.rotation+180*(s-r)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(a-a%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(t,e){var i=this.snapToGrid(t,e,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),n=this.el.array().valueOf();n[this.parameters.i][0]=this.parameters.pointCoords[0]+i[0],n[this.parameters.i][1]=this.parameters.pointCoords[1]+i[1],this.el.plot(n)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:t}),SVG.on(window,"touchmove.resize",function(t){e.update(t||window.event)}),SVG.on(window,"touchend.resize",function(){e.done()}),SVG.on(window,"mousemove.resize",function(t){e.update(t||window.event)}),SVG.on(window,"mouseup.resize",function(){e.done()})},t.prototype.update=function(t){if(t){var e=this._extractPosition(t),i=this.transformPoint(e.x,e.y),n=i.x-this.parameters.p.x,r=i.y-this.parameters.p.y;this.lastUpdateCall=[n,r],this.calc(n,r),this.el.fire("resizing",{dx:n,dy:r,event:t})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},t.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},t.prototype.snapToGrid=function(t,e,i,n){var r;return r=void 0!==n?[(i+t)%this.options.snapToGrid,(n+e)%this.options.snapToGrid]:[(this.parameters.box.x+t+(1&(i=null==i?3:i)?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+e+(2&i?0:this.parameters.box.height))%this.options.snapToGrid],t<0&&(r[0]-=this.options.snapToGrid),e<0&&(r[1]-=this.options.snapToGrid),t-=Math.abs(r[0])<this.options.snapToGrid/2?r[0]:r[0]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),e-=Math.abs(r[1])<this.options.snapToGrid/2?r[1]:r[1]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(t,e,i,n)},t.prototype.constraintToBox=function(t,e,i,n){var r,s,a=this.options.constraint||{};return void 0!==n?(r=i,s=n):(r=this.parameters.box.x+(1&i?0:this.parameters.box.width),s=this.parameters.box.y+(2&i?0:this.parameters.box.height)),void 0!==a.minX&&r+t<a.minX&&(t=a.minX-r),void 0!==a.maxX&&r+t>a.maxX&&(t=a.maxX-r),void 0!==a.minY&&s+e<a.minY&&(e=a.minY-s),void 0!==a.maxY&&s+e>a.maxY&&(e=a.maxY-s),[t,e]},t.prototype.checkAspectRatio=function(t,e){if(!this.options.saveAspectRatio)return t;var i=t.slice(),n=this.parameters.box.width/this.parameters.box.height,r=this.parameters.box.width+t[0],s=this.parameters.box.height-t[1],a=r/s;return a<n?(i[1]=r/n-this.parameters.box.height,e&&(i[1]=-i[1])):a>n&&(i[0]=this.parameters.box.width-s*n,e&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(e){return(this.remember("_resizeHandler")||new t(this)).init(e||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),function(t,e){void 0===e&&(e={});var i=e.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}}('.apexcharts-canvas {\n  position: relative;\n  user-select: none;\n  /* cannot give overflow: hidden as it will crop tooltips which overflow outside chart area */\n}\n\n\n/* scrollbar is not visible by default for legend, hence forcing the visibility */\n.apexcharts-canvas ::-webkit-scrollbar {\n  -webkit-appearance: none;\n  width: 6px;\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n  border-radius: 4px;\n  background-color: rgba(0, 0, 0, .5);\n  box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n}\n\n\n.apexcharts-inner {\n  position: relative;\n}\n\n.apexcharts-text tspan {\n  font-family: inherit;\n}\n\n.legend-mouseover-inactive {\n  transition: 0.15s ease all;\n  opacity: 0.20;\n}\n\n.apexcharts-series-collapsed {\n  opacity: 0;\n}\n\n.apexcharts-tooltip {\n  border-radius: 5px;\n  box-shadow: 2px 2px 6px -4px #999;\n  cursor: default;\n  font-size: 14px;\n  left: 62px;\n  opacity: 0;\n  pointer-events: none;\n  position: absolute;\n  top: 20px;\n  display: flex;\n  flex-direction: column;\n  overflow: hidden;\n  white-space: nowrap;\n  z-index: 12;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip.apexcharts-active {\n  opacity: 1;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n  border: 1px solid #e3e3e3;\n  background: rgba(255, 255, 255, 0.96);\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n  color: #fff;\n  background: rgba(30, 30, 30, 0.8);\n}\n\n.apexcharts-tooltip * {\n  font-family: inherit;\n}\n\n\n.apexcharts-tooltip-title {\n  padding: 6px;\n  font-size: 15px;\n  margin-bottom: 4px;\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n  background: #ECEFF1;\n  border-bottom: 1px solid #ddd;\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n  background: rgba(0, 0, 0, 0.7);\n  border-bottom: 1px solid #333;\n}\n\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-z-value {\n  display: inline-block;\n  font-weight: 600;\n  margin-left: 5px;\n}\n\n.apexcharts-tooltip-text-y-label:empty,\n.apexcharts-tooltip-text-y-value:empty,\n.apexcharts-tooltip-text-goals-label:empty,\n.apexcharts-tooltip-text-goals-value:empty,\n.apexcharts-tooltip-text-z-value:empty {\n  display: none;\n}\n\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-z-value {\n  font-weight: 600;\n}\n\n.apexcharts-tooltip-text-goals-label, \n.apexcharts-tooltip-text-goals-value {\n  padding: 6px 0 5px;\n}\n\n.apexcharts-tooltip-goals-group, \n.apexcharts-tooltip-text-goals-label, \n.apexcharts-tooltip-text-goals-value {\n  display: flex;\n}\n.apexcharts-tooltip-text-goals-label:not(:empty),\n.apexcharts-tooltip-text-goals-value:not(:empty) {\n  margin-top: -6px;\n}\n\n.apexcharts-tooltip-marker {\n  width: 12px;\n  height: 12px;\n  position: relative;\n  top: 0px;\n  margin-right: 10px;\n  border-radius: 50%;\n}\n\n.apexcharts-tooltip-series-group {\n  padding: 0 10px;\n  display: none;\n  text-align: left;\n  justify-content: left;\n  align-items: center;\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n  opacity: 1;\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n  padding-bottom: 4px;\n}\n\n.apexcharts-tooltip-series-group-hidden {\n  opacity: 0;\n  height: 0;\n  line-height: 0;\n  padding: 0 !important;\n}\n\n.apexcharts-tooltip-y-group {\n  padding: 6px 0 5px;\n}\n\n.apexcharts-tooltip-box, .apexcharts-custom-tooltip {\n  padding: 4px 8px;\n}\n\n.apexcharts-tooltip-boxPlot {\n  display: flex;\n  flex-direction: column-reverse;\n}\n\n.apexcharts-tooltip-box>div {\n  margin: 4px 0;\n}\n\n.apexcharts-tooltip-box span.value {\n  font-weight: bold;\n}\n\n.apexcharts-tooltip-rangebar {\n  padding: 5px 8px;\n}\n\n.apexcharts-tooltip-rangebar .category {\n  font-weight: 600;\n  color: #777;\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n  font-weight: bold;\n  display: block;\n  margin-bottom: 5px;\n}\n\n.apexcharts-xaxistooltip {\n  opacity: 0;\n  padding: 9px 10px;\n  pointer-events: none;\n  color: #373d3f;\n  font-size: 13px;\n  text-align: center;\n  border-radius: 2px;\n  position: absolute;\n  z-index: 10;\n  background: #ECEFF1;\n  border: 1px solid #90A4AE;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n  background: rgba(0, 0, 0, 0.7);\n  border: 1px solid rgba(0, 0, 0, 0.5);\n  color: #fff;\n}\n\n.apexcharts-xaxistooltip:after,\n.apexcharts-xaxistooltip:before {\n  left: 50%;\n  border: solid transparent;\n  content: " ";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none;\n}\n\n.apexcharts-xaxistooltip:after {\n  border-color: rgba(236, 239, 241, 0);\n  border-width: 6px;\n  margin-left: -6px;\n}\n\n.apexcharts-xaxistooltip:before {\n  border-color: rgba(144, 164, 174, 0);\n  border-width: 7px;\n  margin-left: -7px;\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n  bottom: 100%;\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n  top: 100%;\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n  border-bottom-color: #ECEFF1;\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n  border-bottom-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after {\n  border-bottom-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n  border-bottom-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-top:after {\n  border-top-color: #ECEFF1\n}\n\n.apexcharts-xaxistooltip-top:before {\n  border-top-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after {\n  border-top-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n  border-top-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n  opacity: 1;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-yaxistooltip {\n  opacity: 0;\n  padding: 4px 10px;\n  pointer-events: none;\n  color: #373d3f;\n  font-size: 13px;\n  text-align: center;\n  border-radius: 2px;\n  position: absolute;\n  z-index: 10;\n  background: #ECEFF1;\n  border: 1px solid #90A4AE;\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n  background: rgba(0, 0, 0, 0.7);\n  border: 1px solid rgba(0, 0, 0, 0.5);\n  color: #fff;\n}\n\n.apexcharts-yaxistooltip:after,\n.apexcharts-yaxistooltip:before {\n  top: 50%;\n  border: solid transparent;\n  content: " ";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none;\n}\n\n.apexcharts-yaxistooltip:after {\n  border-color: rgba(236, 239, 241, 0);\n  border-width: 6px;\n  margin-top: -6px;\n}\n\n.apexcharts-yaxistooltip:before {\n  border-color: rgba(144, 164, 174, 0);\n  border-width: 7px;\n  margin-top: -7px;\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n  left: 100%;\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n  right: 100%;\n}\n\n.apexcharts-yaxistooltip-left:after {\n  border-left-color: #ECEFF1;\n}\n\n.apexcharts-yaxistooltip-left:before {\n  border-left-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after {\n  border-left-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n  border-left-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-right:after {\n  border-right-color: #ECEFF1;\n}\n\n.apexcharts-yaxistooltip-right:before {\n  border-right-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after {\n  border-right-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n  border-right-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n  opacity: 1;\n}\n\n.apexcharts-yaxistooltip-hidden {\n  display: none;\n}\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n  pointer-events: none;\n  opacity: 0;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n  opacity: 1;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-ycrosshairs-hidden {\n  opacity: 0;\n}\n\n.apexcharts-selection-rect {\n  cursor: move;\n}\n\n.svg_select_boundingRect, .svg_select_points_rot {\n  pointer-events: none;\n  opacity: 0;\n  visibility: hidden;\n}\n.apexcharts-selection-rect + g .svg_select_boundingRect,\n.apexcharts-selection-rect + g .svg_select_points_rot {\n  opacity: 0;\n  visibility: hidden;\n}\n\n.apexcharts-selection-rect + g .svg_select_points_l,\n.apexcharts-selection-rect + g .svg_select_points_r {\n  cursor: ew-resize;\n  opacity: 1;\n  visibility: visible;\n}\n\n.svg_select_points {\n  fill: #efefef;\n  stroke: #333;\n  rx: 2;\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n  cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n  cursor: move\n}\n\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon,\n.apexcharts-reset-icon,\n.apexcharts-pan-icon,\n.apexcharts-selection-icon,\n.apexcharts-menu-icon,\n.apexcharts-toolbar-custom-icon {\n  cursor: pointer;\n  width: 20px;\n  height: 20px;\n  line-height: 24px;\n  color: #6E8192;\n  text-align: center;\n}\n\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-menu-icon svg {\n  fill: #6E8192;\n}\n\n.apexcharts-selection-icon svg {\n  fill: #444;\n  transform: scale(0.76)\n}\n\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg {\n  fill: #f3f4f5;\n}\n\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg {\n  fill: #008FFB;\n}\n\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg {\n  fill: #333;\n}\n\n.apexcharts-selection-icon,\n.apexcharts-menu-icon {\n  position: relative;\n}\n\n.apexcharts-reset-icon {\n  margin-left: 5px;\n}\n\n.apexcharts-zoom-icon,\n.apexcharts-reset-icon,\n.apexcharts-menu-icon {\n  transform: scale(0.85);\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n  transform: scale(0.7)\n}\n\n.apexcharts-zoomout-icon {\n  margin-right: 3px;\n}\n\n.apexcharts-pan-icon {\n  transform: scale(0.62);\n  position: relative;\n  left: 1px;\n  top: 0px;\n}\n\n.apexcharts-pan-icon svg {\n  fill: #fff;\n  stroke: #6E8192;\n  stroke-width: 2;\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n  stroke: #008FFB;\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n  stroke: #333;\n}\n\n.apexcharts-toolbar {\n  position: absolute;\n  z-index: 11;\n  max-width: 176px;\n  text-align: right;\n  border-radius: 3px;\n  padding: 0px 6px 2px 6px;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n}\n\n.apexcharts-menu {\n  background: #fff;\n  position: absolute;\n  top: 100%;\n  border: 1px solid #ddd;\n  border-radius: 3px;\n  padding: 3px;\n  right: 10px;\n  opacity: 0;\n  min-width: 110px;\n  transition: 0.15s ease all;\n  pointer-events: none;\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n  opacity: 1;\n  pointer-events: all;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-menu-item {\n  padding: 6px 7px;\n  font-size: 12px;\n  cursor: pointer;\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n  background: #eee;\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n  background: rgba(0, 0, 0, 0.7);\n  color: #fff;\n}\n\n@media screen and (min-width: 768px) {\n  .apexcharts-canvas:hover .apexcharts-toolbar {\n    opacity: 1;\n  }\n}\n\n.apexcharts-datalabel.apexcharts-element-hidden {\n  opacity: 0;\n}\n\n.apexcharts-pie-label,\n.apexcharts-datalabels,\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value {\n  cursor: default;\n  pointer-events: none;\n}\n\n.apexcharts-pie-label-delay {\n  opacity: 0;\n  animation-name: opaque;\n  animation-duration: 0.3s;\n  animation-fill-mode: forwards;\n  animation-timing-function: ease;\n}\n\n.apexcharts-canvas .apexcharts-element-hidden {\n  opacity: 0;\n}\n\n.apexcharts-hide .apexcharts-series-points {\n  opacity: 0;\n}\n\n.apexcharts-gridline,\n.apexcharts-annotation-rect,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-line,\n.apexcharts-zoom-rect,\n.apexcharts-toolbar svg,\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-radar-series path,\n.apexcharts-radar-series polygon {\n  pointer-events: none;\n}\n\n\n/* markers */\n\n.apexcharts-marker {\n  transition: 0.15s ease all;\n}\n\n@keyframes opaque {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n\n\n/* Resize generated styles */\n\n@keyframes resizeanim {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 0;\n  }\n}\n\n.resize-triggers {\n  animation: 1ms resizeanim;\n  visibility: hidden;\n  opacity: 0;\n}\n\n.resize-triggers,\n.resize-triggers>div,\n.contract-trigger:before {\n  content: " ";\n  display: block;\n  position: absolute;\n  top: 0;\n  left: 0;\n  height: 100%;\n  width: 100%;\n  overflow: hidden;\n}\n\n.resize-triggers>div {\n  background: #eee;\n  overflow: auto;\n}\n\n.contract-trigger:before {\n  width: 200%;\n  height: 200%;\n}'),function(){function t(t){var e=t.__resizeTriggers__,i=e.firstElementChild,n=e.lastElementChild,r=i?i.firstElementChild:null;n&&(n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight),r&&(r.style.width=i.offsetWidth+1+"px",r.style.height=i.offsetHeight+1+"px"),i&&(i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight)}function e(e){var i=this;t(this),this.__resizeRAF__&&s(this.__resizeRAF__),this.__resizeRAF__=r(function(){(function(t){return t.offsetWidth!=t.__resizeLast__.width||t.offsetHeight!=t.__resizeLast__.height})(i)&&(i.__resizeLast__.width=i.offsetWidth,i.__resizeLast__.height=i.offsetHeight,i.__resizeListeners__.forEach(function(t){t.call(e)}))})}var i,n,r=(i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return window.setTimeout(t,20)},function(t){return i(t)}),s=(n=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout,function(t){return n(t)}),a=!1,o="animationstart",l="Webkit Moz O ms".split(" "),c="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h=document.createElement("fakeelement");if(void 0!==h.style.animationName&&(a=!0),!1===a)for(var d=0;d<l.length;d++)if(void 0!==h.style[l[d]+"AnimationName"]){o=c[d];break}window.addResizeListener=function(i,n){i.__resizeTriggers__||("static"==getComputedStyle(i).position&&(i.style.position="relative"),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=document.createElement("div")).className="resize-triggers",i.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',i.appendChild(i.__resizeTriggers__),t(i),i.addEventListener("scroll",e,!0),o&&i.__resizeTriggers__.addEventListener(o,function(e){"resizeanim"==e.animationName&&t(i)})),i.__resizeListeners__.push(n)},window.removeResizeListener=function(t,i){t&&(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(i),1),t.__resizeListeners__.length||(t.removeEventListener("scroll",e),t.__resizeTriggers__.parentNode&&(t.__resizeTriggers__=!t.removeChild(t.__resizeTriggers__))))}}(),void 0===window.Apex&&(window.Apex={});var Ft=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new y(this.ctx),this.ctx.axes=new et(this.ctx),this.ctx.core=new Nt(this.ctx.el,this.ctx),this.ctx.config=new V({}),this.ctx.data=new H(this.ctx),this.ctx.grid=new $(this.ctx),this.ctx.graphics=new x(this.ctx),this.ctx.coreUtils=new k(this.ctx),this.ctx.crosshairs=new it(this.ctx),this.ctx.events=new J(this.ctx),this.ctx.exports=new G(this.ctx),this.ctx.localization=new tt(this.ctx),this.ctx.options=new O,this.ctx.responsive=new nt(this.ctx),this.ctx.series=new L(this.ctx),this.ctx.theme=new rt(this.ctx),this.ctx.formatters=new W(this.ctx),this.ctx.titleSubtitle=new st(this.ctx),this.ctx.legend=new ut(this.ctx),this.ctx.toolbar=new pt(this.ctx),this.ctx.dimensions=new ht(this.ctx),this.ctx.updateHelpers=new zt(this.ctx),this.ctx.zoomPanSelection=new ft(this.ctx),this.ctx.w.globals.tooltip=new xt(this.ctx)}}]),t}(),jt=function(){function t(e){s(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"clear",value:function(t){var e=t.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:e})}},{key:"killSVG",value:function(t){t.each(function(t,e){this.removeClass("*"),this.off(),this.stop()},!0),t.ungroup(),t.clear()}},{key:"clearDomElements",value:function(t){var e=this,i=this.w.globals.dom.Paper.node;i.parentNode&&i.parentNode.parentNode&&!t.isUpdating&&(i.parentNode.parentNode.style.minHeight="unset");var n=this.w.globals.dom.baseEl;n&&this.ctx.eventList.forEach(function(t){n.removeEventListener(t,e.ctx.events.documentEvent)});var r=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(r.Paper),r.Paper.remove(),r.elWrap=null,r.elGraphical=null,r.elAnnotations=null,r.elLegendWrap=null,r.baseEl=null,r.elGridRect=null,r.elGridRectMask=null,r.elGridRectMarkerMask=null,r.elForecastMask=null,r.elNonForecastMask=null,r.elDefs=null}}]),t}(),Ut=function(){function t(e,i){s(this,t),this.opts=i,this.ctx=this,this.w=new Y(i).init(),this.el=e,this.w.globals.cuid=v.randomId(),this.w.globals.chartID=this.w.config.chart.id?v.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Ft(this).initModules(),this.create=v.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return o(t,[{key:"render",value:function(){var t=this;return new Promise(function(e,i){if(null!==t.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),t.w.config.chart.id&&Apex._chartInstances.push({id:t.w.globals.chartID,group:t.w.config.chart.group,chart:t}),t.setLocale(t.w.config.chart.defaultLocale);var n=t.w.config.chart.events.beforeMount;"function"==typeof n&&n(t,t.w),t.events.fireEvent("beforeMount",[t,t.w]),window.addEventListener("resize",t.windowResizeHandler),window.addResizeListener(t.el.parentNode,t.parentResizeHandler);var r=t.create(t.w.config.series,{});if(!r)return e(t);t.mount(r).then(function(){"function"==typeof t.w.config.chart.events.mounted&&t.w.config.chart.events.mounted(t,t.w),t.events.fireEvent("mounted",[t,t.w]),e(r)}).catch(function(t){i(t)})}else i(new Error("Element not found"))})}},{key:"create",value:function(t,e){var i=this.w;new Ft(this).initModules();var n=this.w.globals;if(n.noData=!1,n.animationEnded=!1,this.responsive.checkResponsiveConfig(e),i.config.xaxis.convertedCatToNumeric&&new U(i.config).convertCatToNumericXaxis(i.config,this.ctx),null===this.el)return n.animationEnded=!0,null;if(this.core.setupElements(),"treemap"===i.config.chart.type&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),0===n.svgWidth)return n.animationEnded=!0,null;var r=k.checkComboSeries(t);n.comboCharts=r.comboCharts,n.comboBarCount=r.comboBarCount;var s=t.every(function(t){return t.data&&0===t.data.length});(0===t.length||s)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(t),this.theme.init(),new P(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),n.noData&&n.collapsedSeries.length!==n.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),n.axisCharts&&(this.core.coreCalculations(),"category"!==i.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),this.dimensions.plotCoords();var a=this.core.xySettings();this.grid.createGridMask();var o=this.core.plotChartType(t,a),l=new M(this);return l.bringForward(),i.config.dataLabels.background.enabled&&l.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:o,xyRatios:a,elInner:i.globals.dom.elGraphical,dimensions:{plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}}}}},{key:"mount",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=this,n=i.w;return new Promise(function(r,s){if(null===i.el)return s(new Error("Not enough data to display or target element not found"));(null===e||n.globals.allSeriesCollapsed)&&i.series.handleNoData(),"treemap"!==n.config.chart.type&&i.axes.drawAxis(n.config.chart.type,e.xyRatios),i.grid=new $(i);var a=i.grid.drawGrid();i.annotations=new E(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),"back"===n.config.grid.position&&a&&n.globals.dom.elGraphical.add(a.el);var o=new q(t.ctx),l=new Q(t.ctx);if(null!==a&&(o.xAxisLabelCorrections(a.xAxisTickWidth),l.setYAxisTextAlignments(),n.config.yaxis.map(function(t,e){-1===n.globals.ignoreYAxisIndexes.indexOf(e)&&l.yAxisTitleRotate(e,t.opposite)})),"back"===n.config.annotations.position&&(n.globals.dom.Paper.add(n.globals.dom.elAnnotations),i.annotations.drawAxesAnnotations()),Array.isArray(e.elGraph))for(var c=0;c<e.elGraph.length;c++)n.globals.dom.elGraphical.add(e.elGraph[c]);else n.globals.dom.elGraphical.add(e.elGraph);if("front"===n.config.grid.position&&a&&n.globals.dom.elGraphical.add(a.el),"front"===n.config.xaxis.crosshairs.position&&i.crosshairs.drawXCrosshairs(),"front"===n.config.yaxis[0].crosshairs.position&&i.crosshairs.drawYCrosshairs(),"front"===n.config.annotations.position&&(n.globals.dom.Paper.add(n.globals.dom.elAnnotations),i.annotations.drawAxesAnnotations()),!n.globals.noData){if(n.config.tooltip.enabled&&!n.globals.noData&&i.w.globals.tooltip.drawTooltip(e.xyRatios),n.globals.axisCharts&&(n.globals.isXNumeric||n.config.xaxis.convertedCatToNumeric||n.globals.isTimelineBar))(n.config.chart.zoom.enabled||n.config.chart.selection&&n.config.chart.selection.enabled||n.config.chart.pan&&n.config.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:e.xyRatios});else{var h=n.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(t){h[t]=!1})}n.config.chart.toolbar.show&&!n.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}n.globals.memory.methodsToExec.length>0&&n.globals.memory.methodsToExec.forEach(function(t){t.method(t.params,!1,t.context)}),n.globals.axisCharts||n.globals.noData||i.core.resizeNonAxisCharts(),r(i)})}},{key:"destroy",value:function(){window.removeEventListener("resize",this.windowResizeHandler),window.removeResizeListener(this.el.parentNode,this.parentResizeHandler);var t=this.w.config.chart.id;t&&Apex._chartInstances.forEach(function(e,i){e.id===v.escapeString(t)&&Apex._chartInstances.splice(i,1)}),new jt(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.w;return a.globals.selection=void 0,t.series&&(this.series.resetSeries(!1,!0,!1),t.series.length&&t.series[0].data&&(t.series=t.series.map(function(t,i){return e.updateHelpers._extendSeries(t,i)})),this.updateHelpers.revertDefaultAxisMinMax()),t.xaxis&&(t=this.updateHelpers.forceXAxisUpdate(t)),t.yaxis&&(t=this.updateHelpers.forceYAxisUpdate(t)),a.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),t.theme&&(t=this.theme.updateThemeOptions(t)),this.updateHelpers._updateOptions(t,i,n,r,s)}},{key:"updateSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(t,e,i)}},{key:"appendSeries",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.w.config.series.slice();return n.push(t),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(n,e,i)}},{key:"appendData",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var n=i.w.config.series.slice(),r=0;r<n.length;r++)if(null!=t[r])for(var s=0;s<t[r].data.length;s++)n[r].data.push(t[r].data[s]);return i.w.config.series=n,e&&(i.w.globals.initialSeries=v.clone(i.w.config.series)),this.update()}},{key:"update",value:function(t){var e=this;return new Promise(function(i,n){new jt(e.ctx).clear({isUpdating:!0});var r=e.create(e.w.config.series,t);if(!r)return i(e);e.mount(r).then(function(){"function"==typeof e.w.config.chart.events.updated&&e.w.config.chart.events.updated(e,e.w),e.events.fireEvent("updated",[e,e.w]),e.w.globals.isDirty=!0,i(e)}).catch(function(t){n(t)})})}},{key:"getSyncedCharts",value:function(){var t=this.getGroupedCharts(),e=[this];return t.length&&(e=[],t.forEach(function(t){e.push(t)})),e}},{key:"getGroupedCharts",value:function(){var t=this;return Apex._chartInstances.filter(function(t){if(t.group)return!0}).map(function(e){return t.w.config.chart.group===e.group?e.chart:t})}},{key:"toggleSeries",value:function(t){return this.series.toggleSeries(t)}},{key:"showSeries",value:function(t){this.series.showSeries(t)}},{key:"hideSeries",value:function(t){this.series.hideSeries(t)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(t,e)}},{key:"addEventListener",value:function(t,e){this.events.addEventListener(t,e)}},{key:"removeEventListener",value:function(t,e){this.events.removeEventListener(t,e)}},{key:"addXaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this;i&&(n=i),n.annotations.addXaxisAnnotationExternal(t,e,n)}},{key:"addYaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this;i&&(n=i),n.annotations.addYaxisAnnotationExternal(t,e,n)}},{key:"addPointAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this;i&&(n=i),n.annotations.addPointAnnotationExternal(t,e,n)}},{key:"clearAnnotations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this;t&&(e=t),e.annotations.clearAnnotations(e)}},{key:"removeAnnotation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=this;e&&(i=e),i.annotations.removeAnnotation(i,t)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(t,e){return this.coreUtils.getSeriesTotalsXRange(t,e)}},{key:"getHighestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=new Z(this.ctx);return e.getMinYMaxY(t).highestY}},{key:"getLowestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=new Z(this.ctx);return e.getMinYMaxY(t).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(t,e){return this.updateHelpers.toggleDataPointSelection(t,e)}},{key:"zoomX",value:function(t,e){this.ctx.toolbar.zoomUpdateOptions(t,e)}},{key:"setLocale",value:function(t){this.localization.setCurrentLocaleValues(t)}},{key:"dataURI",value:function(t){return new G(this.ctx).dataURI(t)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var t=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){t.w.globals.resized=!0,t.w.globals.dataChanged=!1,t.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var t=this.w.config.chart.redrawOnWindowResize;"function"==typeof t&&(t=t()),t&&this._windowResize()}}],[{key:"getChartByID",value:function(t){var e=v.escapeString(t),i=Apex._chartInstances.filter(function(t){return t.id===e})[0];return i&&i.chart}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),i=0;i<e.length;i++)new t(e[i],JSON.parse(e[i].getAttribute("data-options"))).render()}},{key:"exec",value:function(t,e){var i=this.getChartByID(t);if(i){i.w.globals.isExecCalled=!0;var n=null;if(-1!==i.publicMethods.indexOf(e)){for(var r=arguments.length,s=new Array(r>2?r-2:0),a=2;a<r;a++)s[a-2]=arguments[a];n=i[e].apply(i,s)}return n}}},{key:"merge",value:function(t,e){return v.extend(t,e)}}]),t}();t.exports=Ut},vkgz:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("7o/Q");function r(){}var s=i("n6bG");function a(t,e,i){return function(n){return n.lift(new o(t,e,i))}}class o{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends n.a{constructor(t,e,i,n){super(t),this._tapNext=r,this._tapError=r,this._tapComplete=r,this._tapError=i||r,this._tapComplete=n||r,Object(s.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||r,this._tapError=e.error||r,this._tapComplete=e.complete||r)}_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()}}},vvrf:function(t,e,i){var n=i("u/Db"),r=i("3X7Y"),s=i("nZSm"),a=i("AZa5"),o=i("Lzq4"),l=i("BCVQ"),c=i("e/Dd"),h=i("ELBg");function d(t){return unescape(encodeURIComponent(t)).length}function u(t,e,i){for(var n,r=[];null!==(n=t.exec(i));)r.push({data:n[0],index:n.index,mode:e,length:n[0].length});return r}function p(t){var e,i,r=u(l.NUMERIC,n.NUMERIC,t),s=u(l.ALPHANUMERIC,n.ALPHANUMERIC,t);return c.isKanjiModeEnabled()?(e=u(l.BYTE,n.BYTE,t),i=u(l.KANJI,n.KANJI,t)):(e=u(l.BYTE_KANJI,n.BYTE,t),i=[]),r.concat(s,e,i).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function f(t,e){switch(e){case n.NUMERIC:return r.getBitsLength(t);case n.ALPHANUMERIC:return s.getBitsLength(t);case n.KANJI:return o.getBitsLength(t);case n.BYTE:return a.getBitsLength(t)}}function g(t,e){var i,l=n.getBestModeForData(t);if((i=n.from(e,l))!==n.BYTE&&i.bit<l.bit)throw new Error('"'+t+'" cannot be encoded with mode '+n.toString(i)+".\n Suggested mode is: "+n.toString(l));switch(i!==n.KANJI||c.isKanjiModeEnabled()||(i=n.BYTE),i){case n.NUMERIC:return new r(t);case n.ALPHANUMERIC:return new s(t);case n.KANJI:return new o(t);case n.BYTE:return new a(t)}}e.fromArray=function(t){return t.reduce(function(t,e){return"string"==typeof e?t.push(g(e,null)):e.data&&t.push(g(e.data,e.mode)),t},[])},e.fromString=function(t,i){for(var r=function(t,e){for(var i={},r={start:{}},s=["start"],a=0;a<t.length;a++){for(var o=t[a],l=[],c=0;c<o.length;c++){var h=o[c],d=""+a+c;l.push(d),i[d]={node:h,lastCount:0},r[d]={};for(var u=0;u<s.length;u++){var p=s[u];i[p]&&i[p].node.mode===h.mode?(r[p][d]=f(i[p].lastCount+h.length,h.mode)-f(i[p].lastCount,h.mode),i[p].lastCount+=h.length):(i[p]&&(i[p].lastCount=h.length),r[p][d]=f(h.length,h.mode)+4+n.getCharCountIndicator(h.mode,e))}}s=l}for(u=0;u<s.length;u++)r[s[u]].end=0;return{map:r,table:i}}(function(t){for(var e=[],i=0;i<t.length;i++){var r=t[i];switch(r.mode){case n.NUMERIC:e.push([r,{data:r.data,mode:n.ALPHANUMERIC,length:r.length},{data:r.data,mode:n.BYTE,length:r.length}]);break;case n.ALPHANUMERIC:e.push([r,{data:r.data,mode:n.BYTE,length:r.length}]);break;case n.KANJI:e.push([r,{data:r.data,mode:n.BYTE,length:d(r.data)}]);break;case n.BYTE:e.push([{data:r.data,mode:n.BYTE,length:d(r.data)}])}}return e}(p(t,c.isKanjiModeEnabled())),i),s=h.find_path(r.map,"start","end"),a=[],o=1;o<s.length-1;o++)a.push(r.table[s[o]].node);return e.fromArray(a.reduce(function(t,e){var i=t.length-1>=0?t[t.length-1]:null;return i&&i.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[]))},e.rawSplit=function(t){return e.fromArray(p(t,c.isKanjiModeEnabled()))}},vxfF:function(t,e,i){"use strict";i.d(e,"a",function(){return m}),i.d(e,"b",function(){return f}),i.d(e,"c",function(){return b}),i.d(e,"d",function(){return g});var n=i("8LU1"),r=i("fXoL"),s=i("XNiG"),a=i("LRne"),o=i("HDdC"),l=i("xgIS");i("3N8a"),i("IjjT"),i("7Hc7");var c=(i("quSY"),i("7+OI"),i("/uUt"),i("3UWI")),h=i("pLZG");i("1G5W"),i("JX91"),i("7o/Q"),i("eIep"),i("jtHE");var d=i("nLfN"),u=i("ofXK"),p=i("cH1L");i("0EQZ");let f=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new s.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}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 o.a(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(Object(c.a)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(a.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(h.a)(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=Object(n.e)(e),r=t.getElementRef().nativeElement;do{if(i==r)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return Object(l.a)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(r.B),r.Yb(d.a),r.Yb(u.d,8))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(r.B),Object(r.Yb)(d.a),Object(r.Yb)(u.d,8))},token:t,providedIn:"root"}),t})(),g=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new s.a,this._changeListener=t=>{this._change.next(t)},this._document=i,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:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Object(c.a)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(d.a),r.Yb(r.B),r.Yb(u.d,8))},t.\u0275prov=Object(r.Kb)({factory:function(){return new t(Object(r.Yb)(d.a),Object(r.Yb)(r.B),Object(r.Yb)(u.d,8))},token:t,providedIn:"root"}),t})(),m=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)}}),t})(),b=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)},imports:[[p.a,d.b,m],p.a,m]}),t})()},w1tV:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i("oB13"),r=i("x+ZX"),s=i("XNiG");function a(){return new s.a}function o(){return t=>Object(r.a)()(Object(n.a)(a)(t))}},"x+ZX":function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("7o/Q");function r(){return function(t){return t.lift(new s(t))}}class s{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new a(t,i),r=e.subscribe(n);return n.closed||(n.connection=i.connect()),r}}class a extends n.a{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:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}},xgIS:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i("HDdC"),r=i("DH7j"),s=i("n6bG"),a=i("lJxs");function o(t,e,i,c){return Object(s.a)(i)&&(c=i,i=void 0),c?o(t,e,i).pipe(Object(a.a)(t=>Object(r.a)(t)?c(...t):c(t))):new n.a(n=>{l(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function l(t,e,i,n,r){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,r),s=()=>n.removeEventListener(e,i,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),s=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),s=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,a=t.length;s<a;s++)l(t[s],e,i,n,r)}n.add(s)}},yCtX:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("HDdC"),r=i("ngJS"),s=i("jZKg");function a(t,e){return e?Object(s.a)(t,e):new n.a(Object(r.a)(t))}},yKow:function(t,e,i){var n=i("e/Dd"),r=i("NPxG"),s=i("ekOh"),a=i("u/Db"),o=i("J6Nv"),l=i("49sm"),c=n.getBCHDigit(7973);function h(t,e){return a.getCharCountIndicator(t,e)+4}function d(t,e){var i=0;return t.forEach(function(t){var n=h(t.mode,e);i+=n+t.getBitsLength()}),i}e.from=function(t,e){return o.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,i){if(!o.isValid(t))throw new Error("Invalid QR Code version");void 0===i&&(i=a.BYTE);var s=8*(n.getSymbolTotalCodewords(t)-r.getTotalCodewordsCount(t,e));if(i===a.MIXED)return s;var l=s-h(i,t);switch(i){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},e.getBestVersionForData=function(t,i){var n,r=s.from(i,s.M);if(l(t)){if(t.length>1)return function(t,i){for(var n=1;n<=40;n++)if(d(t,n)<=e.getCapacity(n,i,a.MIXED))return n}(t,r);if(0===t.length)return 1;n=t[0]}else n=t;return function(t,i,n){for(var r=1;r<=40;r++)if(i<=e.getCapacity(r,n,t))return r}(n.mode,n.getLength(),r)},e.getEncodedBits=function(t){if(!o.isValid(t)||t<7)throw new Error("Invalid QR Code version");for(var e=t<<12;n.getBCHDigit(e)-c>=0;)e^=7973<<n.getBCHDigit(e)-c;return t<<12|e}},"z+Ro":function(t,e,i){"use strict";function n(t){return t&&"function"==typeof t.schedule}i.d(e,"a",function(){return n})},z6cu:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("HDdC");function r(t,e){return new n.a(e?i=>e.schedule(s,0,{error:t,subscriber:i}):e=>e.error(t))}function s({error:t,subscriber:e}){e.error(t)}},zUnb:function(t,e,i){"use strict";i.r(e);var n=i("jhN1"),r=i("fXoL"),s=i("R1ws"),a=i("tk/3"),o=i("icpI"),l=i("tyNb");let c=(()=>{class t{constructor(){this.title="WebApp"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Ib({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(t,e){1&t&&r.Pb(0,"router-outlet")},directives:[l.h],encapsulation:2}),t})();var h=i("PCNd"),d=i("ofXK"),u=i("QdIO"),p=i("LF2l"),f=i("GNJl"),g=i("LRne"),m=i("z6cu"),b=i("JIr8");let v=(()=>{class t{constructor(t,e){this.router=t,this.tokenService=e}intercept(t,e){var i=this.tokenService.getToken();return t=i?t.clone({headers:t.headers.set("Authorization","Bearer "+i.value)}):t,e.handle(t).pipe(Object(b.a)((t,e)=>401===t.status?(this.router.navigate(["/login"]),Object(g.a)()):403===t.status?(this.router.navigate(["/forbidden"]),Object(g.a)()):Object(m.a)(t)))}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(l.c),r.Yb(f.a))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})();var y=i("HDdC");let _=(()=>{class t{constructor(t,e){this.httpClient=t,this.tokenService=e,this.baseUrl="security"}login(t){return new y.a(e=>{this.httpClient.post(`${this.baseUrl}/Login`,t).subscribe(t=>{this.tokenService.saveToken(t),e.next(t),e.complete()},t=>{e.error(t),e.complete()})})}register(t){return new y.a(e=>{this.httpClient.post(`${this.baseUrl}/Register`,t).subscribe(t=>{this.tokenService.saveToken(t),e.next(t),e.complete()},t=>{e.error(t),e.complete()})})}deleteAccount(t){return this.httpClient.post("Account/DeleteAccount",t)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(a.b),r.Yb(f.a))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})();var x=i("3G0t"),w=i("FFoR");let C=(()=>{class t{constructor(t){this.httpClient=t,this.baseUrl="account"}changePassword(t){return this.httpClient.post(this.baseUrl+"/ChangePassword",t)}resetPassword(t){return this.httpClient.post(this.baseUrl+"/ResetPassword",t)}requestResetPassword(t){return this.httpClient.post(this.baseUrl+"/RequestResetPasswordCode",{email:t})}requestChangeEmail(t){return this.httpClient.post(this.baseUrl+"/RequestChangeEmail",t)}changeEmail(t){return this.httpClient.post(this.baseUrl+"/ChangeEmail",t)}}return t.\u0275fac=function(e){return new(e||t)(r.Yb(a.b))},t.\u0275prov=r.Kb({token:t,factory:t.\u0275fac}),t})();var k=i("25+x");let S=(()=>{class t{constructor(t){if(t)throw new Error("Module is already loaded. Import it in the AppModule only")}}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)(r.Yb(t,12))},providers:[f.a,_,p.a,x.a,w.a,C,u.a,k.a,{provide:a.a,useClass:v,multi:!0}],imports:[[d.c]]}),t})();var T=i("3Pt+"),A=i("dNgK"),O=i("kmnG"),E=i("qFsG"),D=i("d3UM"),P=i("FKr1"),I=i("bSwM"),M=i("bTqV"),R=i("ZOgE");function L(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1," Este nevoie de prenumele t\u0103u. "),r.Tb())}function N(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1," Este nevoie de numele t\u0103u. "),r.Tb())}function z(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1," Alege genul. "),r.Tb())}function F(t,e){if(1&t&&(r.Ub(0,"mat-option",18),r.Ec(1),r.Tb()),2&t){const t=e.$implicit;r.lc("value",t.id),r.Cb(1),r.Gc(" ",t.name," ")}}function j(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1," Alege \u021bara \xeen care tr\u0103ie\u0219ti. "),r.Tb())}function U(t,e){if(1&t&&(r.Ub(0,"mat-option",18),r.Ec(1),r.Tb()),2&t){const t=e.$implicit;r.lc("value",t.id),r.Cb(1),r.Gc(" ",t.name," ")}}function V(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1," Alege transfuzie sanguin\u0103 de care apar\u021bi. "),r.Tb())}function B(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1),r.gc(2,"appText"),r.Tb()),2&t&&(r.Cb(1),r.Gc(" ",r.hc(2,1,"Login_Invalid_Email")," "))}function Y(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1),r.gc(2,"appText"),r.Tb()),2&t&&(r.Cb(1),r.Gc(" ",r.hc(2,1,"Login_Invalid_Email")," "))}function H(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1),r.gc(2,"appText"),r.Tb()),2&t&&(r.Cb(1),r.Gc(" ",r.hc(2,1,"Login_Enter_Password")," "))}function W(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1," Parola trebuie s\u0103 con\u021bin\u0103 minim 8 caractere. "),r.Tb())}function X(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1),r.gc(2,"appText"),r.Tb()),2&t&&(r.Cb(1),r.Gc(" ",r.hc(2,1,"Reset_Password_Mismatch")," "))}const G=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;class q{isErrorState(t,e){var i,n,r;const s=!(!(null==t?void 0:t.invalid)||!(null===(i=null==t?void 0:t.parent)||void 0===i?void 0:i.dirty)),a=!(!(null===(n=null==t?void 0:t.parent)||void 0===n?void 0:n.invalid)||!(null===(r=null==t?void 0:t.parent)||void 0===r?void 0:r.dirty));return t.parent.errors&&(s||a)}}let K=(()=>{class t{constructor(t,e,i,n,r,s,a){this.formBuilder=t,this.securityService=e,this.textService=i,this.router=n,this.snackBar=r,this.localStorageService=s,this.profileService=a,this.matcher=new q,this.passwordMatch=t=>{var e,i;return(null===(e=t.get("password"))||void 0===e?void 0:e.value)===(null===(i=t.get("passwordConfirmation"))||void 0===i?void 0:i.value)?null:{mismatch:!0}}}ngOnInit(){var t;let e,i,n=new Map;null===(t=location.href.split("?")[1])||void 0===t||t.split("&").forEach(t=>{let e=t.split("=");n.set(e[0],e[1])}),n.get("invitationId")&&(e=n.get("invitationId"),this.channel="invitation-link"),n.get("ambassadorCode")&&(i=n.get("ambassadorCode"),this.channel="invitation-link"),this.registerForm=this.formBuilder.group({firstName:["",T.v.required],lastName:["",T.v.required],gender:["",T.v.required],countryId:["",T.v.required],transfusionCenterId:["",T.v.required],email:["",[T.v.required,T.v.pattern(G)]],password:["",[T.v.required,T.v.minLength(8)]],passwordConfirmation:[""],invitationId:[e],ambassadorCode:[i],pPandToSAccepted:[!1]},{validators:this.passwordMatch}),this.profileService.loadCountries().subscribe(t=>{this.countries=t,this.profileService.loadTransfusionCenters(this.countries[0].id).subscribe(t=>{this.transfusionCenters=t})})}submitForm(){if(this.registerForm.valid){const t=this.registerForm.value;this.channel||!t.invitationId&&!t.ambassadorCode||(this.channel="invitation"),t.platform="web",t.channel=this.channel,t.pPandToSAccepted?this.securityService.register(t).subscribe(t=>{this.profileService.loadProfile().subscribe(t=>{this.localStorageService.addOrUpdate("user",t),this.onSnackbar(this.textService.getText("Login_Welcome")),this.router.navigateByUrl("/donor")})},t=>{this.onSnackbar("DuplicateUserName"==t.error?"Exist\u0103 deja un cont cu aceast\u0103 adres\u0103 de email.":"A avut loc o eroare la \xeenregistrare, te rug\u0103m s\u0103 \xeencerci din nou.")}):this.onSnackbar("PP and ToS have to be accepted!")}}onSnackbar(t){this.snackBar.open(t,"",{duration:3e3})}onCountryChange(t){this.profileService.loadTransfusionCenters(t).subscribe(t=>{this.transfusionCenters=t,this.registerForm.get("transfusionCenterId").setValue("")})}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(T.d),r.Ob(_),r.Ob(p.a),r.Ob(l.c),r.Ob(A.a),r.Ob(x.a),r.Ob(w.a))},t.\u0275cmp=r.Ib({type:t,selectors:[["app-register"]],decls:79,vars:28,consts:[[1,"split-view"],[1,"container","left-view"],["src","/assets/img/login/logo.png","alt","BloodDo",1,"logo"],["src","/assets/img/login/login_image.png","alt","BloodDo",1,"login_image"],[1,"center-block","form","container","right-view"],[1,"title-logo"],["src","/assets/img/fav-icon.jpg","alt",""],[1,"title"],[3,"formGroup","ngSubmit","keyup.enter"],["appearance","outline",1,"form-field"],["for","firstName"],["matInput","","type","text","id","firstName","formControlName","firstName","required","","name","firstName"],[4,"ngIf"],["for","lastName"],["matInput","","type","text","id","lastName","formControlName","lastName","required","","name","lastName"],[1,"form-field"],["for","gender"],["id","gender","formControlName","gender","required","","name","gender"],[3,"value"],["for","countryId"],["id","countryId","formControlName","countryId","required","","name","countryId",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["for","transfusionCenterId"],["id","transfusionCenterId","formControlName","transfusionCenterId","required","","name","transfusionCenterId"],["for","email"],["matInput","","type","text","id","email","formControlName","email","required","","name","email"],["for","password"],["matInput","","type","password","id","password","formControlName","password","minlength","8","required","","name","password"],["for","passwordConfirmation"],["matInput","","formControlName","passwordConfirmation","type","password",3,"errorStateMatcher"],["for","invitationId"],["matInput","","type","text","id","invitationId","formControlName","invitationId","name","invitationId"],["for","ambassadorCode"],["matInput","","type","text","id","ambassadorCode","formControlName","ambassadorCode","name","ambassadorCode"],["formControlName","pPandToSAccepted"],["href","terms","target","_blank"],["href","privacy","target","_blank"],["mat-button","","type","submit",1,"form-submit"]],template:function(t,e){1&t&&(r.Ub(0,"div",0),r.Ub(1,"div",1),r.Pb(2,"img",2),r.Pb(3,"img",3),r.Tb(),r.Ub(4,"div",4),r.Ub(5,"div",5),r.Pb(6,"img",6),r.Tb(),r.Ub(7,"h1",7),r.Ec(8),r.gc(9,"appText"),r.Tb(),r.Ub(10,"form",8),r.bc("ngSubmit",function(){return e.submitForm()})("keyup.enter",function(){return e.submitForm()}),r.Ub(11,"mat-form-field",9),r.Ub(12,"mat-label",10),r.Ec(13,"Prenume"),r.Tb(),r.Pb(14,"input",11),r.Dc(15,L,2,0,"mat-error",12),r.Tb(),r.Ub(16,"mat-form-field",9),r.Ub(17,"mat-label",13),r.Ec(18,"Nume"),r.Tb(),r.Pb(19,"input",14),r.Dc(20,N,2,0,"mat-error",12),r.Tb(),r.Ub(21,"mat-form-field",15),r.Ub(22,"mat-label",16),r.Ec(23,"Alege genul"),r.Tb(),r.Ub(24,"mat-select",17),r.Ub(25,"mat-option",18),r.Ec(26,"Masculin"),r.Tb(),r.Ub(27,"mat-option",18),r.Ec(28,"Feminin"),r.Tb(),r.Tb(),r.Dc(29,z,2,0,"mat-error",12),r.Tb(),r.Ub(30,"mat-form-field",15),r.Ub(31,"mat-label",19),r.Ec(32,"Alege \u021bara"),r.Tb(),r.Ub(33,"mat-select",20),r.bc("selectionChange",function(t){return e.onCountryChange(t.value)}),r.Dc(34,F,2,2,"mat-option",21),r.Tb(),r.Dc(35,j,2,0,"mat-error",12),r.Tb(),r.Ub(36,"mat-form-field",15),r.Ub(37,"mat-label",22),r.Ec(38,"Alege centrul de transfuzie sanguin\u0103 de care apar\u021bi"),r.Tb(),r.Ub(39,"mat-select",23),r.Dc(40,U,2,2,"mat-option",21),r.Tb(),r.Dc(41,V,2,0,"mat-error",12),r.Tb(),r.Ub(42,"mat-form-field",9),r.Ub(43,"mat-label",24),r.Ec(44),r.gc(45,"appText"),r.Tb(),r.Pb(46,"input",25),r.Dc(47,B,3,3,"mat-error",12),r.Dc(48,Y,3,3,"mat-error",12),r.Tb(),r.Ub(49,"mat-form-field",9),r.Ub(50,"mat-label",26),r.Ec(51),r.gc(52,"appText"),r.Tb(),r.Pb(53,"input",27),r.Dc(54,H,3,3,"mat-error",12),r.Dc(55,W,2,0,"mat-error",12),r.Tb(),r.Ub(56,"mat-form-field",9),r.Ub(57,"mat-label",28),r.Ec(58,"Confirmarea parolei"),r.Tb(),r.Pb(59,"input",29),r.Dc(60,X,3,3,"mat-error",12),r.Tb(),r.Ub(61,"mat-form-field",9),r.Ub(62,"mat-label",30),r.Ec(63,"Cod invita\u021bie (op\u021bional)"),r.Tb(),r.Pb(64,"input",31),r.Tb(),r.Ub(65,"mat-form-field",9),r.Ub(66,"mat-label",32),r.Ec(67,"Cod de ambasador (op\u021bional)"),r.Tb(),r.Pb(68,"input",33),r.Tb(),r.Ub(69,"mat-checkbox",34),r.Ec(70,"Sunt de acord cu "),r.Ub(71,"a",35),r.Ec(72,"Termenii \u0219i condi\u021biile"),r.Tb(),r.Ec(73," \u0219i "),r.Ub(74,"a",36),r.Ec(75,"Politica de confiden\u021bialitate"),r.Tb(),r.Tb(),r.Ub(76,"button",37),r.Ec(77),r.gc(78,"appText"),r.Tb(),r.Tb(),r.Tb(),r.Tb()),2&t&&(r.Cb(8),r.Fc(r.hc(9,20,"Login_Title")),r.Cb(2),r.lc("formGroup",e.registerForm),r.Cb(5),r.lc("ngIf",e.registerForm.hasError("required","firstName")),r.Cb(5),r.lc("ngIf",e.registerForm.hasError("required","lastName")),r.Cb(5),r.lc("value",1),r.Cb(2),r.lc("value",2),r.Cb(2),r.lc("ngIf",e.registerForm.hasError("required","gender")),r.Cb(5),r.lc("ngForOf",e.countries),r.Cb(1),r.lc("ngIf",e.registerForm.hasError("required","transfusionCenterId")),r.Cb(5),r.lc("ngForOf",e.transfusionCenters),r.Cb(1),r.lc("ngIf",e.registerForm.hasError("required","transfusionCenterId")),r.Cb(3),r.Fc(r.hc(45,22,"Login_Email")),r.Cb(3),r.lc("ngIf",e.registerForm.hasError("required","email")),r.Cb(1),r.lc("ngIf",e.registerForm.hasError("pattern","email")),r.Cb(3),r.Fc(r.hc(52,24,"Login_Password")),r.Cb(3),r.lc("ngIf",e.registerForm.hasError("required","password")),r.Cb(1),r.lc("ngIf",e.registerForm.hasError("minlength","password")),r.Cb(4),r.lc("errorStateMatcher",e.matcher),r.Cb(1),r.lc("ngIf",e.registerForm.hasError("mismatch")),r.Cb(17),r.Gc(" ",r.hc(78,26,"Login_Button_Text")," "))},directives:[T.x,T.n,T.g,O.c,O.f,E.b,T.c,T.m,T.f,T.t,d.l,D.a,P.n,d.k,T.i,I.a,M.b,O.b],pipes:[R.a],styles:[".split-view[_ngcontent-%COMP%]{display:flex;height:100%;width:100%}.left-view[_ngcontent-%COMP%]{max-width:50%;background:transparent linear-gradient(90deg,#ff2a73,#f6033d) 0 0 no-repeat padding-box;margin:0}.title[_ngcontent-%COMP%]{color:#ff2156;height:45px;padding-bottom:100px;font-weight:700}.terms-policy[_ngcontent-%COMP%]{text-align:center;padding-bottom:30px}.form[_ngcontent-%COMP%]{width:600px;margin:auto}.form-submit[_ngcontent-%COMP%]{background:transparent linear-gradient(90deg,#ff2a73,#f6033d) 0 0 no-repeat padding-box;border-radius:30px;height:55px;width:100%;color:#fff;margin:50px 0;font-weight:700;font-family:Poppins,sans-serif}.title-logo[_ngcontent-%COMP%]{display:none;text-align:center;padding-bottom:50px}.title-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100px;width:100px}.logo[_ngcontent-%COMP%]{top:15%;height:50px}.login_image[_ngcontent-%COMP%], .logo[_ngcontent-%COMP%]{display:block;position:relative;margin-left:auto;margin-right:auto}.login_image[_ngcontent-%COMP%]{top:35%;max-height:70%;max-width:100%}a[_ngcontent-%COMP%]{color:#ff2156;font-weight:700}a[_ngcontent-%COMP%]:hover{color:#ff1493}@media (max-width:1025px){.left-view[_ngcontent-%COMP%]{display:none}.title-logo[_ngcontent-%COMP%]{display:block}.title[_ngcontent-%COMP%]{text-align:center}}"]}),t})();var Z=i("MfXU");function Q(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1),r.gc(2,"appText"),r.Tb()),2&t&&(r.Cb(1),r.Gc(" ",r.hc(2,1,"Login_Invalid_Email")," "))}function J(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1),r.gc(2,"appText"),r.Tb()),2&t&&(r.Cb(1),r.Gc(" ",r.hc(2,1,"Login_Enter_Password")," "))}const tt=function(){return["/recover-password"]},et=function(t){return{email:t}},it=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;let nt=(()=>{class t{constructor(t,e,i,n,r,s,a){this.formBuilder=t,this.securityService=e,this.textService=i,this.router=n,this.snackBar=r,this.localStorageService=s,this.profileService=a}ngOnInit(){this.loginForm=this.formBuilder.group({email:["",T.v.required],password:["",T.v.required]})}submitForm(){if(this.validateEmail())if(this.loginForm.valid){const t={email:this.loginForm.get("email").value,password:this.loginForm.get("password").value};this.securityService.login(t).subscribe(t=>{this.profileService.loadProfile().subscribe(e=>{this.localStorageService.addOrUpdate("user",e),this.onSnackbar(this.textService.getText("Login_Welcome")),t.redirectToOrganization?window.location.href="/endless/org":t.redirectToStemRegistry?window.location.href="/endless/stem":t.redirectToAdmin?window.location.href="/endless/admin":t.redirectToTransfusionCenter?window.location.href="/endless/centers":t.roles.some(t=>t==Z.a.Admin)?this.router.navigateByUrl("/admin"):t.roles.some(t=>t==Z.a.Donor)?this.router.navigateByUrl("/donor"):t.roles.some(t=>t==Z.a.TransfusionCenter||t==Z.a.TransfusionCenterBranch)?this.router.navigateByUrl("/cts"):t.roles.some(t=>t==Z.a.Partner)?this.router.navigateByUrl("/partner"):t.roles.some(t=>t==Z.a.Ngo)?this.router.navigateByUrl("/ngo"):t.roles.some(t=>t==Z.a.StemRegistry)&&this.router.navigateByUrl("/stem")})},t=>{this.onSnackbar(this.textService.getText("Login_Wrong_Credentials"))})}else this.onSnackbar(this.textService.getText("Login_Enter_Password"));else this.onSnackbar(this.textService.getText("Login_Invalid_Email"))}onSnackbar(t){this.snackBar.open(t,"",{duration:3e3})}validateEmail(){return it.test(this.loginForm.get("email").value)}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(T.d),r.Ob(_),r.Ob(p.a),r.Ob(l.c),r.Ob(A.a),r.Ob(x.a),r.Ob(w.a))},t.\u0275cmp=r.Ib({type:t,selectors:[["app-login"]],decls:37,vars:23,consts:[[1,"split-view"],[1,"container","left-view"],["src","/assets/img/login/logo.png","alt","BloodDo",1,"logo"],["src","/assets/img/login/login_image.png","alt","BloodDo",1,"login_image"],[1,"center-block","form","container","right-view"],[1,"title-logo"],["src","/assets/img/fav-icon.jpg","alt",""],[1,"title"],[3,"formGroup","ngSubmit","keyup.enter"],["appearance","outline",1,"form-field"],["for","email"],["matInput","","type","text","id","email","formControlName","email","required","","name","email"],[4,"ngIf"],["for","password"],["matInput","","type","password","id","password","formControlName","password","required","","name","password"],[1,"recover-password",3,"routerLink","queryParams"],["mat-button","","type","submit",1,"form-submit"],[1,"terms-policy"],["href","terms"],["href","privacy"]],template:function(t,e){1&t&&(r.Ub(0,"div",0),r.Ub(1,"div",1),r.Pb(2,"img",2),r.Pb(3,"img",3),r.Tb(),r.Ub(4,"div",4),r.Ub(5,"div",5),r.Pb(6,"img",6),r.Tb(),r.Ub(7,"h1",7),r.Ec(8),r.gc(9,"appText"),r.Tb(),r.Ub(10,"form",8),r.bc("ngSubmit",function(){return e.submitForm()})("keyup.enter",function(){return e.submitForm()}),r.Ub(11,"mat-form-field",9),r.Ub(12,"mat-label",10),r.Ec(13),r.gc(14,"appText"),r.Tb(),r.Pb(15,"input",11),r.Dc(16,Q,3,3,"mat-error",12),r.Tb(),r.Ub(17,"mat-form-field",9),r.Ub(18,"mat-label",13),r.Ec(19),r.gc(20,"appText"),r.Tb(),r.Pb(21,"input",14),r.Dc(22,J,3,3,"mat-error",12),r.Tb(),r.Ub(23,"a",15),r.Ub(24,"p"),r.Ec(25),r.gc(26,"appText"),r.Tb(),r.Tb(),r.Ub(27,"button",16),r.Ec(28),r.gc(29,"appText"),r.Tb(),r.Tb(),r.Ub(30,"p",17),r.Ec(31,"Citi\u021bi "),r.Ub(32,"a",18),r.Ec(33,"Termenii \u0219i condi\u021biile"),r.Tb(),r.Ec(34," \u0219i "),r.Ub(35,"a",19),r.Ec(36,"Politica de confiden\u021bialitate"),r.Tb(),r.Tb(),r.Tb(),r.Tb()),2&t&&(r.Cb(8),r.Fc(r.hc(9,10,"Login_Title")),r.Cb(2),r.lc("formGroup",e.loginForm),r.Cb(3),r.Fc(r.hc(14,12,"Login_Email")),r.Cb(3),r.lc("ngIf",e.loginForm.hasError("required","email")),r.Cb(3),r.Fc(r.hc(20,14,"Login_Password")),r.Cb(3),r.lc("ngIf",e.loginForm.hasError("required","password")),r.Cb(1),r.lc("routerLink",r.oc(20,tt))("queryParams",r.pc(21,et,e.loginForm.get("email").value)),r.Cb(2),r.Fc(r.hc(26,16,"Login_Recover_Password")),r.Cb(3),r.Gc(" ",r.hc(29,18,"Login_Button_Text")," "))},directives:[T.x,T.n,T.g,O.c,O.f,E.b,T.c,T.m,T.f,T.t,d.l,l.f,M.b,O.b],pipes:[R.a],styles:[".split-view[_ngcontent-%COMP%]{display:flex;height:100%;width:100%}.left-view[_ngcontent-%COMP%]{max-width:50%;background:transparent linear-gradient(90deg,#ff2a73,#f6033d) 0 0 no-repeat padding-box;margin:0}.title[_ngcontent-%COMP%]{color:#ff2156;height:45px;padding-bottom:100px;font-weight:700}.terms-policy[_ngcontent-%COMP%]{text-align:center;padding-bottom:30px}.form[_ngcontent-%COMP%]{width:600px;margin:auto}.recover-password[_ngcontent-%COMP%]{float:right}.form-submit[_ngcontent-%COMP%]{background:transparent linear-gradient(90deg,#ff2a73,#f6033d) 0 0 no-repeat padding-box;border-radius:30px;height:55px;width:100%;color:#fff;margin:50px 0;font-weight:700;font-family:Poppins,sans-serif}.title-logo[_ngcontent-%COMP%]{display:none;text-align:center;padding-bottom:50px}.title-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100px;width:100px}.logo[_ngcontent-%COMP%]{top:15%;height:50px}.login_image[_ngcontent-%COMP%], .logo[_ngcontent-%COMP%]{display:block;position:relative;margin-left:auto;margin-right:auto}.login_image[_ngcontent-%COMP%]{top:35%;max-height:70%;max-width:100%}a[_ngcontent-%COMP%]{color:#ff2156;font-weight:700}a[_ngcontent-%COMP%]:hover{color:#ff1493}@media (max-width:1025px){.left-view[_ngcontent-%COMP%]{display:none}.title-logo[_ngcontent-%COMP%]{display:block}.title[_ngcontent-%COMP%]{text-align:center}}"]}),t})();function rt(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1),r.gc(2,"appText"),r.Tb()),2&t&&(r.Cb(1),r.Gc(" ",r.hc(2,1,"Recover_Password_Invalid")," "))}function st(t,e){if(1&t){const t=r.Vb();r.Ub(0,"div",2),r.Ub(1,"div",3),r.Pb(2,"img",4),r.Pb(3,"img",5),r.Tb(),r.Ub(4,"div",6),r.Ub(5,"div",7),r.Pb(6,"img",8),r.Tb(),r.Ub(7,"h1",9),r.Ec(8),r.gc(9,"appText"),r.Tb(),r.Ub(10,"form",10),r.bc("ngSubmit",function(){return r.wc(t),r.fc().submitForm()})("keyup.enter",function(){return r.wc(t),r.fc().submitForm()}),r.Ub(11,"mat-form-field",11),r.Ub(12,"mat-label"),r.Ec(13),r.gc(14,"appText"),r.Tb(),r.Pb(15,"input",12),r.Dc(16,rt,3,3,"mat-error",13),r.Tb(),r.Ub(17,"button",14),r.Ec(18),r.gc(19,"appText"),r.Tb(),r.Tb(),r.Tb(),r.Tb()}if(2&t){const t=r.fc();r.Cb(8),r.Fc(r.hc(9,5,"Recover_Password")),r.Cb(2),r.lc("formGroup",t.recoverPasswordForm),r.Cb(3),r.Fc(r.hc(14,7,"Recover_Password_Email")),r.Cb(3),r.lc("ngIf",t.recoverPasswordForm.hasError("required","email")||t.recoverPasswordForm.hasError("pattern","email")),r.Cb(2),r.Fc(r.hc(19,9,"Recover_Password_Submit"))}}function at(t,e){1&t&&(r.Ub(0,"div",15),r.Ub(1,"div",16),r.Pb(2,"img",8),r.Ub(3,"p"),r.Ec(4),r.gc(5,"appText"),r.Tb(),r.Pb(6,"br"),r.Pb(7,"br"),r.Ub(8,"p"),r.Ec(9),r.gc(10,"appText"),r.Tb(),r.Pb(11,"br"),r.Ub(12,"p"),r.Ec(13),r.gc(14,"appText"),r.Tb(),r.Tb(),r.Tb()),2&t&&(r.Cb(4),r.Fc(r.hc(5,3,"Global_BlooDoChallenge")),r.Cb(5),r.Fc(r.hc(10,5,"Recover_Password_Success")),r.Cb(4),r.Fc(r.hc(14,7,"Recover_Password_Message")))}const ot=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;let lt=(()=>{class t{constructor(t,e,i,n,r){this.formBuilder=t,this.activatedRoute=e,this.accountService=i,this.snackBar=n,this.textService=r,this.subscriptions=[],this.recoverSuccessful=!1}ngOnInit(){this.subscriptions.push(this.activatedRoute.queryParams.subscribe(t=>{this.initForm(t.email)}))}initForm(t){this.recoverPasswordForm=this.formBuilder.group({email:[t,[T.v.required,T.v.pattern(ot)]]})}submitForm(){this.recoverPasswordForm.valid&&this.subscriptions.push(this.accountService.requestResetPassword(this.recoverPasswordForm.get("email").value).subscribe(()=>{this.recoverSuccessful=!0},t=>{(t.error="NoSuchEmail")?this.onSnackbar("Recover_Password_No_Such_Email"):this.onSnackbar("Recover_Password_Generic_Error")}))}onSnackbar(t){this.snackBar.open(this.textService.getText(t),"",{duration:3e3})}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(T.d),r.Ob(l.a),r.Ob(C),r.Ob(A.a),r.Ob(p.a))},t.\u0275cmp=r.Ib({type:t,selectors:[["app-recover-password"]],decls:2,vars:2,consts:[["class","split-view",4,"ngIf"],["class","form-success",4,"ngIf"],[1,"split-view"],[1,"container","left-view"],["src","/assets/img/login/logo.png","alt","BloodDo",1,"logo"],["src","/assets/img/login/login_image.png","alt","BloodDo",1,"login_image"],[1,"center-block","form","container"],[1,"fav-icon","title-logo"],["src","/assets/img/fav-icon.jpg","alt",""],[1,"title"],[3,"formGroup","ngSubmit","keyup.enter"],["appearance","outline",1,"form-field"],["matInput","","formControlName","email","placeholder","Enter your email"],[4,"ngIf"],["mat-button","","type","submit",1,"form-submit"],[1,"form-success"],[1,"fav-icon"]],template:function(t,e){1&t&&(r.Dc(0,st,20,11,"div",0),r.Dc(1,at,15,9,"div",1)),2&t&&(r.lc("ngIf",!e.recoverSuccessful),r.Cb(1),r.lc("ngIf",e.recoverSuccessful))},directives:[d.l,T.x,T.n,T.g,O.c,O.f,E.b,T.c,T.m,T.f,M.b,O.b],pipes:[R.a],styles:[".split-view[_ngcontent-%COMP%]{display:flex;height:100%;width:100%}.left-view[_ngcontent-%COMP%]{max-width:50%;background:transparent linear-gradient(90deg,#ff2a73,#f6033d) 0 0 no-repeat padding-box;margin:0}.title[_ngcontent-%COMP%]{color:#ff2156;height:45px;padding-bottom:100px;font-weight:700}.form[_ngcontent-%COMP%]{width:600px;margin:auto}.form-submit[_ngcontent-%COMP%]{background:transparent linear-gradient(90deg,#ff2a73,#f6033d) 0 0 no-repeat padding-box;border-radius:30px;height:55px;width:100%;color:#fff;margin:50px 0;font-weight:700;font-family:Poppins,sans-serif}.form-success[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.title-logo[_ngcontent-%COMP%]{display:none}.fav-icon[_ngcontent-%COMP%]{text-align:center;padding-bottom:50px}.fav-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100px;width:100px}.fav-icon[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:24px;line-height:28px;text-align:center;max-width:750px;margin:auto;color:#727272;padding-top:23px}.logo[_ngcontent-%COMP%]{top:15%;height:50px}.login_image[_ngcontent-%COMP%], .logo[_ngcontent-%COMP%]{display:block;position:relative;margin-left:auto;margin-right:auto}.login_image[_ngcontent-%COMP%]{top:35%;max-height:70%;max-width:100%}@media (max-width:1025px){.left-view[_ngcontent-%COMP%]{display:none}.fav-icon[_ngcontent-%COMP%]{display:block}.title[_ngcontent-%COMP%]{text-align:center}}"]}),t})();function ct(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1),r.gc(2,"appText"),r.Tb()),2&t&&(r.Cb(1),r.Gc(" ",r.hc(2,1,"Reset_Password_Email_Invalid")," "))}function ht(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1),r.gc(2,"appText"),r.Tb()),2&t&&(r.Cb(1),r.Gc(" ",r.hc(2,1,"Reset_Password_New_Password_Required")," "))}function dt(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1),r.gc(2,"appText"),r.Tb()),2&t&&(r.Cb(1),r.Gc(" ",r.hc(2,1,"Reset_Password_Min_Len")," "))}function ut(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1),r.gc(2,"appText"),r.Tb()),2&t&&(r.Cb(1),r.Gc(" ",r.hc(2,1,"Reset_Password_Mismatch")," "))}function pt(t,e){if(1&t){const t=r.Vb();r.Ub(0,"form",11),r.bc("ngSubmit",function(){return r.wc(t),r.fc(2).submitForm()})("keyup.enter",function(){return r.wc(t),r.fc(2).submitForm()}),r.Ub(1,"div",12),r.Pb(2,"input",13),r.Ub(3,"mat-form-field",14),r.Ub(4,"mat-label",15),r.Ec(5),r.gc(6,"appText"),r.Tb(),r.Pb(7,"input",16),r.Dc(8,ct,3,3,"mat-error",17),r.Tb(),r.Ub(9,"mat-form-field",14),r.Ub(10,"mat-label",18),r.Ec(11),r.gc(12,"appText"),r.Tb(),r.Pb(13,"input",19),r.Dc(14,ht,3,3,"mat-error",17),r.Dc(15,dt,3,3,"mat-error",17),r.Tb(),r.Ub(16,"mat-form-field",14),r.Ub(17,"mat-label",20),r.Ec(18),r.gc(19,"appText"),r.Tb(),r.Pb(20,"input",21),r.Dc(21,ut,3,3,"mat-error",17),r.Tb(),r.Ub(22,"button",22),r.Ec(23),r.gc(24,"appText"),r.Tb(),r.Tb(),r.Tb()}if(2&t){const t=r.fc(2);r.lc("formGroup",t.resetPasswordForm),r.Cb(5),r.Gc(" ",r.hc(6,10,"Reset_Password_Email")," "),r.Cb(3),r.lc("ngIf",t.resetPasswordForm.hasError("pattern","email")),r.Cb(3),r.Gc(" ",r.hc(12,12,"Reset_Password_New_Password")," "),r.Cb(3),r.lc("ngIf",t.resetPasswordForm.hasError("required","newPassword")),r.Cb(1),r.lc("ngIf",t.resetPasswordForm.hasError("minlength","newPassword")),r.Cb(3),r.Gc(" ",r.hc(19,14,"Reset_Password_Confirm_Password")," "),r.Cb(2),r.lc("errorStateMatcher",t.matcher),r.Cb(1),r.lc("ngIf",t.resetPasswordForm.hasError("mismatch")),r.Cb(2),r.Gc(" ",r.hc(24,16,"Reset_Password")," ")}}function ft(t,e){if(1&t&&(r.Ub(0,"div",2),r.Ub(1,"div",3),r.Pb(2,"img",4),r.Pb(3,"img",5),r.Tb(),r.Ub(4,"div",6),r.Ub(5,"div",7),r.Pb(6,"img",8),r.Tb(),r.Ub(7,"h1",9),r.Ec(8),r.gc(9,"appText"),r.Tb(),r.Dc(10,pt,25,18,"form",10),r.Tb(),r.Tb()),2&t){const t=r.fc();r.Cb(8),r.Fc(r.hc(9,2,"Reset_Password")),r.Cb(2),r.lc("ngIf",t.resetPasswordForm)}}function gt(t,e){1&t&&(r.Ub(0,"div",23),r.Ub(1,"div",24),r.Pb(2,"img",8),r.Ub(3,"p"),r.Ec(4),r.gc(5,"appText"),r.Tb(),r.Pb(6,"br"),r.Pb(7,"br"),r.Ub(8,"p"),r.Ec(9),r.gc(10,"appText"),r.Tb(),r.Pb(11,"br"),r.Ub(12,"p"),r.Ec(13),r.gc(14,"appText"),r.Tb(),r.Tb(),r.Tb()),2&t&&(r.Cb(4),r.Fc(r.hc(5,3,"Global_BlooDoChallenge")),r.Cb(5),r.Fc(r.hc(10,5,"Reset_Password_Success")),r.Cb(4),r.Fc(r.hc(14,7,"Reset_Password_Log_In")))}const mt=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;class bt{isErrorState(t,e){var i,n,r;const s=!(!(null==t?void 0:t.invalid)||!(null===(i=null==t?void 0:t.parent)||void 0===i?void 0:i.dirty)),a=!(!(null===(n=null==t?void 0:t.parent)||void 0===n?void 0:n.invalid)||!(null===(r=null==t?void 0:t.parent)||void 0===r?void 0:r.dirty));return t.parent.errors&&(s||a)}}let vt=(()=>{class t{constructor(t,e,i,n,r){this.formBuilder=t,this.textService=e,this.accountService=i,this.snackBar=n,this.activatedRoute=r,this.subscriptions=[],this.matcher=new bt,this.resetSuccessful=!1,this.passwordMatch=t=>{var e,i;return(null===(e=t.get("newPassword"))||void 0===e?void 0:e.value)===(null===(i=t.get("newPasswordConfirmation"))||void 0===i?void 0:i.value)?null:{mismatch:!0}}}ngOnInit(){this.subscriptions.push(this.activatedRoute.queryParams.subscribe(t=>{this.initForm(t.email,t.code)}))}initForm(t,e){this.resetPasswordForm=this.formBuilder.group({code:[e],email:[t,[T.v.required,T.v.pattern(mt)]],newPassword:["",[T.v.required,T.v.minLength(8)]],newPasswordConfirmation:[""]},{validators:this.passwordMatch})}submitForm(){this.resetPasswordForm.valid&&this.subscriptions.push(this.accountService.resetPassword(this.resetPasswordForm.value).subscribe(()=>{this.resetSuccessful=!0},t=>{this.onSnackbar("NoSuchUser"===t.error?"Reset_Password_No_Such_Email":"Reset_Password_Generic_Error")}))}onSnackbar(t){this.snackBar.open(this.textService.getText(t),"",{duration:3e3})}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(T.d),r.Ob(p.a),r.Ob(C),r.Ob(A.a),r.Ob(l.a))},t.\u0275cmp=r.Ib({type:t,selectors:[["app-reset-password"]],decls:2,vars:2,consts:[["class","split-view ",4,"ngIf"],["class","form-success",4,"ngIf"],[1,"split-view"],[1,"container","left-view"],["src","/assets/img/login/logo.png","alt","BloodDo",1,"logo"],["src","/assets/img/login/login_image.png","alt","BloodDo",1,"login_image"],[1,"center-block","form","container"],[1,"fav-icon","title-logo"],["src","/assets/img/fav-icon.jpg","alt",""],[1,"title"],[3,"formGroup","ngSubmit","keyup.enter",4,"ngIf"],[3,"formGroup","ngSubmit","keyup.enter"],[1,"form-group"],["name","code","type","hidden"],["appearance","outline",1,"form-field"],["for","email"],["matInput","","formControlName","email"],[4,"ngIf"],["for","newPassword"],["matInput","","formControlName","newPassword","type","password"],["for","newPasswordConfirmation"],["matInput","","formControlName","newPasswordConfirmation","type","password",3,"errorStateMatcher"],["mat-button","","type","submit",1,"form-submit"],[1,"form-success"],[1,"fav-icon"]],template:function(t,e){1&t&&(r.Dc(0,ft,11,4,"div",0),r.Dc(1,gt,15,9,"div",1)),2&t&&(r.lc("ngIf",!e.resetSuccessful),r.Cb(1),r.lc("ngIf",e.resetSuccessful))},directives:[d.l,T.x,T.n,T.g,O.c,O.f,E.b,T.c,T.m,T.f,M.b,O.b],pipes:[R.a],styles:[".split-view[_ngcontent-%COMP%]{display:flex;height:100%;width:100%}.left-view[_ngcontent-%COMP%]{max-width:50%;background:transparent linear-gradient(90deg,#ff2a73,#f6033d) 0 0 no-repeat padding-box;margin:0}.title[_ngcontent-%COMP%]{color:#ff2156;height:45px;padding-bottom:100px;font-weight:700}.terms-policy[_ngcontent-%COMP%]{text-align:center;padding-bottom:30px}.form[_ngcontent-%COMP%]{width:600px;margin:auto}.form-submit[_ngcontent-%COMP%]{background:transparent linear-gradient(90deg,#ff2a73,#f6033d) 0 0 no-repeat padding-box;border-radius:30px;height:55px;width:100%;color:#fff;margin:50px 0;font-weight:700;font-family:Poppins,sans-serif}.form-success[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.title-logo[_ngcontent-%COMP%]{display:none}.fav-icon[_ngcontent-%COMP%]{text-align:center;padding-bottom:50px}.fav-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100px;width:100px}.fav-icon[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:24px;line-height:28px;text-align:center;max-width:750px;margin:auto;color:#727272;padding-top:23px}.logo[_ngcontent-%COMP%]{top:15%;height:50px}.login_image[_ngcontent-%COMP%], .logo[_ngcontent-%COMP%]{display:block;position:relative;margin-left:auto;margin-right:auto}.login_image[_ngcontent-%COMP%]{top:35%;max-height:70%;max-width:100%}@media (max-width:1025px){.left-view[_ngcontent-%COMP%]{display:none}.fav-icon[_ngcontent-%COMP%]{display:block}.title[_ngcontent-%COMP%]{text-align:center}}"]}),t})();function yt(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1),r.gc(2,"appText"),r.Tb()),2&t&&(r.Cb(1),r.Gc(" ",r.hc(2,1,"Change_Email_Email_Invalid")," "))}function _t(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1),r.gc(2,"appText"),r.Tb()),2&t&&(r.Cb(1),r.Gc(" ",r.hc(2,1,"Change_Email_Email_Invalid")," "))}function xt(t,e){if(1&t){const t=r.Vb();r.Ub(0,"form",11),r.bc("ngSubmit",function(){return r.wc(t),r.fc(2).submitForm()})("keyup.enter",function(){return r.wc(t),r.fc(2).submitForm()}),r.Ub(1,"div",12),r.Pb(2,"input",13),r.Ub(3,"mat-form-field",14),r.Ub(4,"mat-label",15),r.Ec(5),r.gc(6,"appText"),r.Tb(),r.Pb(7,"input",16),r.Dc(8,yt,3,3,"mat-error",17),r.Tb(),r.Ub(9,"mat-form-field",14),r.Ub(10,"mat-label",18),r.Ec(11),r.gc(12,"appText"),r.Tb(),r.Pb(13,"input",19),r.Dc(14,_t,3,3,"mat-error",17),r.Tb(),r.Ub(15,"button",20),r.Ec(16),r.gc(17,"appText"),r.Tb(),r.Tb(),r.Tb()}if(2&t){const t=r.fc(2);r.lc("formGroup",t.changeEmailForm),r.Cb(5),r.Gc(" ",r.hc(6,6,"Change_Email_Old_Email_Label")," "),r.Cb(3),r.lc("ngIf",t.changeEmailForm.hasError("required","oldEmail")),r.Cb(3),r.Gc(" ",r.hc(12,8,"Change_Email_New_Email_Label")," "),r.Cb(3),r.lc("ngIf",t.changeEmailForm.hasError("required","newEmail")),r.Cb(2),r.Gc(" ",r.hc(17,10,"Change_Email_Button_Change_Email")," ")}}function wt(t,e){if(1&t&&(r.Ub(0,"div",2),r.Ub(1,"div",3),r.Pb(2,"img",4),r.Pb(3,"img",5),r.Tb(),r.Ub(4,"div",6),r.Ub(5,"div",7),r.Pb(6,"img",8),r.Tb(),r.Ub(7,"h1",9),r.Ec(8),r.gc(9,"appText"),r.Tb(),r.Dc(10,xt,18,12,"form",10),r.Tb(),r.Tb()),2&t){const t=r.fc();r.Cb(8),r.Fc(r.hc(9,2,"Change_Email_Title")),r.Cb(2),r.lc("ngIf",t.changeEmailForm)}}function Ct(t,e){1&t&&(r.Ub(0,"div",21),r.Ub(1,"div",22),r.Pb(2,"img",8),r.Ub(3,"p"),r.Ec(4),r.gc(5,"appText"),r.Tb(),r.Pb(6,"br"),r.Pb(7,"br"),r.Ub(8,"p"),r.Ec(9),r.gc(10,"appText"),r.Tb(),r.Tb(),r.Tb()),2&t&&(r.Cb(4),r.Fc(r.hc(5,2,"Global_BlooDoChallenge")),r.Cb(5),r.Fc(r.hc(10,4,"Change_Email_Success")))}let kt=(()=>{class t{constructor(t,e,i,n,r){this.formBuilder=t,this.textService=e,this.accountService=i,this.snackBar=n,this.activatedRoute=r,this.subscriptions=[],this.changeEmailSuccessful=!1}ngOnInit(){this.subscriptions.push(this.activatedRoute.queryParams.subscribe(t=>{this.initForm(t.token,t.oldEmail,t.email)}))}initForm(t,e,i){this.changeEmailForm=this.formBuilder.group({token:[t],oldEmail:[e,T.v.required],newEmail:[i,T.v.required]})}submitForm(){this.changeEmailForm.valid&&this.subscriptions.push(this.accountService.changeEmail(this.changeEmailForm.value).subscribe(()=>{this.changeEmailSuccessful=!0},t=>{this.onSnackbar("Change_Email_Error")}))}onSnackbar(t){this.snackBar.open(this.textService.getText(t),"",{duration:3e3})}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(T.d),r.Ob(p.a),r.Ob(C),r.Ob(A.a),r.Ob(l.a))},t.\u0275cmp=r.Ib({type:t,selectors:[["app-change-email"]],decls:2,vars:2,consts:[["class","split-view ",4,"ngIf"],["class","form-success",4,"ngIf"],[1,"split-view"],[1,"container","left-view"],["src","/assets/img/login/logo.png","alt","BloodDo",1,"logo"],["src","/assets/img/login/login_image.png","alt","BloodDo",1,"login_image"],[1,"center-block","form","container"],[1,"fav-icon","title-logo"],["src","/assets/img/fav-icon.jpg","alt",""],[1,"title"],[3,"formGroup","ngSubmit","keyup.enter",4,"ngIf"],[3,"formGroup","ngSubmit","keyup.enter"],[1,"form-group"],["name","code","type","hidden"],["appearance","outline",1,"form-field"],["for","oldEmail"],["matInput","","formControlName","oldEmail","readonly",""],[4,"ngIf"],["for","newEmail"],["matInput","","formControlName","newEmail","readonly",""],["mat-button","","type","submit",1,"form-submit"],[1,"form-success"],[1,"fav-icon"]],template:function(t,e){1&t&&(r.Dc(0,wt,11,4,"div",0),r.Dc(1,Ct,11,6,"div",1)),2&t&&(r.lc("ngIf",!e.changeEmailSuccessful),r.Cb(1),r.lc("ngIf",e.changeEmailSuccessful))},directives:[d.l,T.x,T.n,T.g,O.c,O.f,E.b,T.c,T.m,T.f,M.b,O.b],pipes:[R.a],styles:[".split-view[_ngcontent-%COMP%]{display:flex;height:100%;width:100%}.left-view[_ngcontent-%COMP%]{max-width:50%;background:transparent linear-gradient(90deg,#ff2a73,#f6033d) 0 0 no-repeat padding-box;margin:0}.title[_ngcontent-%COMP%]{color:#ff2156;height:45px;padding-bottom:100px;font-weight:700}.terms-policy[_ngcontent-%COMP%]{text-align:center;padding-bottom:30px}.form[_ngcontent-%COMP%]{width:600px;margin:auto}.form-submit[_ngcontent-%COMP%]{background:transparent linear-gradient(90deg,#ff2a73,#f6033d) 0 0 no-repeat padding-box;border-radius:30px;height:55px;width:100%;color:#fff;margin:50px 0;font-weight:700;font-family:Poppins,sans-serif}.form-success[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.title-logo[_ngcontent-%COMP%]{display:none}.fav-icon[_ngcontent-%COMP%]{text-align:center;padding-bottom:50px}.fav-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100px;width:100px}.fav-icon[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:24px;line-height:28px;text-align:center;max-width:750px;margin:auto;color:#727272;padding-top:23px}.logo[_ngcontent-%COMP%]{top:15%;height:50px}.login_image[_ngcontent-%COMP%], .logo[_ngcontent-%COMP%]{display:block;position:relative;margin-left:auto;margin-right:auto}.login_image[_ngcontent-%COMP%]{top:35%;max-height:70%;max-width:100%}@media (max-width:1025px){.left-view[_ngcontent-%COMP%]{display:none}.fav-icon[_ngcontent-%COMP%]{display:block}.title[_ngcontent-%COMP%]{text-align:center}}"]}),t})(),St=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Ib({type:t,selectors:[["app-privacy"]],decls:417,vars:0,consts:[[1,"content-area"],[1,"container"],[1,"content-title"],["src","/assets/img/fav-icon.jpg","alt",""],[1,"content"],["type","1"],[1,"content-button"],["href",""]],template:function(t,e){1&t&&(r.Ub(0,"section",0),r.Ub(1,"div",1),r.Ub(2,"div",2),r.Pb(3,"img",3),r.Ub(4,"p"),r.Ec(5,"BlooDoChallenge"),r.Tb(),r.Tb(),r.Ub(6,"div",2),r.Ub(7,"h2"),r.Ec(8,"POLITICA DE CONFIDEN\u0162IALITATE"),r.Tb(),r.Tb(),r.Tb(),r.Ub(9,"div",4),r.Ub(10,"p"),r.Ec(11," Aceast\u0103 Politic\u0103 se adreseaz\u0103 tuturor utilizatorilor Aplica\u021biei mobile BlooDoChallenge, \xeen concordan\u021b\u0103 cu cerin\u021bele legislative de protec\u021bie a datelor (GDPR). "),r.Tb(),r.Pb(12,"br"),r.Ub(13,"p"),r.Ub(14,"span"),r.Ec(15,"Operator: "),r.Tb(),r.Ec(16,"Aplica\u021bia BlooDoChallenge a fost creat\u0103 de o echip\u0103 de voluntari din cadrul ONG-ului . Dorim s\u0103 amintim \u0219i ideile faine cu care au contribuit to\u021bi cu care am stat de vorb\u0103 de-a lungul dezvolt\u0103rii platformei: medici, donatori, prieteni, centre de transfuzie sanguin\u0103, ONG-uri, companii; am putea spune, \xeentreaga societate civil\u0103. Mul\u021bumim!. "),r.Tb(),r.Pb(17,"br"),r.Ub(18,"p"),r.Ub(19,"span"),r.Ec(20,"Email: "),r.Tb(),r.Ec(21,"gdpr@bloodochallenge.com "),r.Tb(),r.Ub(22,"p"),r.Ub(23,"span"),r.Ec(24,"Adresa: "),r.Tb(),r.Ec(25,"Oradea, Bihor, Romania "),r.Tb(),r.Tb(),r.Ub(26,"div",4),r.Ub(27,"h4"),r.Ec(28,"Tipuri de date cu caracter personal colectate/prelucrate; scop;"),r.Tb(),r.Ub(29,"p"),r.Ec(30," Aplica\u021bia BlooDoChallenge presupune \xeenregistrarea utilizatorilor pe platform\u0103 pentru a facilita comunicarea \xeentre persoanele fizice (donatorii de s\xe2nge) \u0219i centrele de transfuzie sanguin\u0103. Astfel, sunt colectate \u0219i prelucrate o serie de date cu caracter personal, pentru mai multe module, precum: "),r.Tb(),r.Pb(31,"br"),r.Ub(32,"b"),r.Ec(33,"Date colectate \xeen vederea \xeenregistr\u0103rii \xeen platform\u0103"),r.Tb(),r.Ub(34,"ol",5),r.Ub(35,"li"),r.Ec(36,"Email - obligatoriu - utilizat pentru autentificare"),r.Tb(),r.Ub(37,"li"),r.Ec(38,"Parol\u0103 - obligatoriu - stocat\u0103 \xeen mod securizat (criptat); utilizat\u0103 la autentificare"),r.Tb(),r.Ub(39,"li"),r.Ec(40,"Prenume \u0219i Nume - obligatoriu \u2013 notific\u0103ri personalizate"),r.Tb(),r.Ub(41,"li"),r.Ec(42,"Sex - obligatoriu - calculul num\u0103rului de zile de a\u0219teptare \xeentre don\u0103ri"),r.Tb(),r.Ub(43,"li"),r.Ec(44,"Limba - obligatoriu - utilizat\u0103 pentru a identifica \xeen ce limb\u0103 s\u0103 fie prezentat\u0103 aplica\u021bia \u021bi toate mesajele c\u0103tre utilizator"),r.Tb(),r.Ub(45,"li"),r.Ec(46,"Token de dispozitiv - obligatoriu \u2013 trimitere notific\u0103ri personalizate"),r.Tb(),r.Ub(47,"li"),r.Ec(48,"Alte informa\u021bii de sistem pentru a p\u0103stra o bun\u0103 func\u021bionare a platformei la to\u021bi utilizatorii (ex: versiunea aplica\u021biei, sistemul de operare) - se colecteaz\u0103 automat"),r.Tb(),r.Tb(),r.Pb(49,"br"),r.Ub(50,"b"),r.Ec(51,'Date colectate \xeen vederea utiliz\u0103rii modului modului "\xcenregistrarea don\u0103rii"'),r.Tb(),r.Ub(52,"ol",5),r.Ub(53,"li"),r.Ec(54,"Don\u0103rile \xeenregistrate (manual / prin scanarea codului unic QR) - op\u021bional -> pentru eviden\u021ba donatorului \u0219i acordarea punctelor donatorului (\xeen cazul \xeenregistr\u0103rii prin scanarea codului unic QR)"),r.Tb(),r.Ub(55,"li"),r.Ec(56,"Codul unic QR - op\u021bional -> utilizat la \xeenregistrarea donarii de s\xe2nge / aferez\u0103 la centrul de transfuzie sanguin\u0103"),r.Tb(),r.Ub(57,"b"),r.Ec(58,"Datele cu caracter personal la care au acces urmatoarele entit\u0103\u021bi:"),r.Tb(),r.Ub(59,"ol",5),r.Ub(60,"span"),r.Ec(61,"Centrul de transfuzie sanguin\u0103:"),r.Tb(),r.Ub(62,"ol",5),r.Ub(63,"li"),r.Ec(64,"Don\u0103rile \xeenregistrare prin scanarea codului unic QR"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Pb(65,"br"),r.Ub(66,"b"),r.Ec(67,'Date colectate \xeen vederea utiliz\u0103rii modului modului "Programare la donare"'),r.Tb(),r.Ub(68,"ol",5),r.Ub(69,"li"),r.Ec(70,"Ora programarii - op\u021bional -> utilizat pentru afiseaza catre donator, si celelalte entitati a orei programate"),r.Tb(),r.Ub(71,"li"),r.Ec(72,"Campanie \xeen care se doneaz\u0103 - op\u021bional -> pentru afisarea \xeen lista corect\u0103 de programa\u021bi la o anumit\u0103 loca\u021bie"),r.Tb(),r.Ub(73,"b"),r.Ec(74,"Datele cu caracter personal la care au acces urmatoarele entit\u0103\u021bi:"),r.Tb(),r.Ub(75,"ol",5),r.Ub(76,"span"),r.Ec(77,"Centrul de transfuzie sanguin\u0103:"),r.Tb(),r.Ub(78,"ol",5),r.Ub(79,"li"),r.Ec(80,"Nume \u0219i prenume"),r.Tb(),r.Ub(81,"li"),r.Ec(82,"Ora program\u0103rii"),r.Tb(),r.Ub(83,"li"),r.Ec(84,"Campanie \xeen care se doneaz\u0103 / Donarea la centru de transfuzie sanguin\u0103"),r.Tb(),r.Tb(),r.Tb(),r.Ub(85,"ol",5),r.Ub(86,"span"),r.Ec(87,"ONG/Companie (organizatorul campaniei) - accesul la datele cu caracter personal este disponibil doar pe durata campaniei (donatorul trebuie s\u0103-\u0219i dea explicit acordul pentru prelucrarea datelor cu caracter personal de c\u0103tre organizator):"),r.Tb(),r.Ub(88,"ol",5),r.Ub(89,"li"),r.Ec(90,"Ini\u021bialele numelui \u0219i a prenumelui"),r.Tb(),r.Ub(91,"li"),r.Ec(92,"Ora program\u0103rii"),r.Tb(),r.Ub(93,"li"),r.Ec(94,"Campanie \xeen care se doneaz\u0103"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Pb(95,"br"),r.Ub(96,"b"),r.Ec(97,'Date colectate \xeen vederea utiliz\u0103rii modului modului "Validarea don\u0103rii"'),r.Tb(),r.Ub(98,"ol",5),r.Ub(99,"li"),r.Ec(100,"Starea unita\u021bii de s\xe2nge donat\u0103 (validat\u0103, nevalidat\u0103, nevalidat\u0103 cu rechemare, neg\u0103sit \xeen baza de date) -> introdus\u0103 \xeen sistem de c\u0103tre personalul centrului de transfuzie sanguin\u0103 care se ocupa de validarea don\u0103rii"),r.Tb(),r.Ub(101,"b"),r.Ec(102,"Datele cu caracter personal la care au acces urmatoarele entit\u0103\u021bi:"),r.Tb(),r.Ub(103,"ol",5),r.Ub(104,"span"),r.Ec(105,"Centrul de transfuzie sanguin\u0103:"),r.Tb(),r.Ub(106,"ol",5),r.Ub(107,"li"),r.Ec(108,"Nume \u0219i prenume"),r.Tb(),r.Ub(109,"li"),r.Ec(110,"Starea unit\u0103\u021bii de s\xe2nge donat\u0103"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Pb(111,"br"),r.Ub(112,"b"),r.Ec(113,'Date colectate \xeen vederea utiliz\u0103rii modului modului "Feedback"'),r.Tb(),r.Ub(114,"ol",5),r.Ub(115,"li"),r.Ec(116,"Rating - obligatoriu -> rating dat de c\u0103tre utilizatorul platformei BlooDoChallenge"),r.Tb(),r.Ub(117,"li"),r.Ec(118,"Mesaj text feedback - op\u021bional -> l\u0103sat de c\u0103tre utilizatorul platformei BlooDoChallenge"),r.Tb(),r.Ub(119,"li"),r.Ec(120,"Dat\u0103 feedback - obligatoriu -> colectat automat"),r.Tb(),r.Ub(121,"li"),r.Ec(122,"Email - obligatoriu -> colectat automat"),r.Tb(),r.Ub(123,"b"),r.Ec(124,"Datele cu caracter personal la care au acces urmatoarele entit\u0103\u021bi:"),r.Tb(),r.Ub(125,"ol",5),r.Ub(126,"span"),r.Ec(127,"Centrul de transfuzie sanguin\u0103:"),r.Tb(),r.Ub(128,"ol",5),r.Ub(129,"li"),r.Ec(130,"Dat\u0103 feedback"),r.Tb(),r.Ub(131,"li"),r.Ec(132,"Mesaj text feedback"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Pb(133,"br"),r.Ub(134,"b"),r.Ec(135,'Date colectate \xeen vederea utiliz\u0103rii modului modului "Tombola"'),r.Tb(),r.Ub(136,"ol",5),r.Ub(137,"li"),r.Ec(138,"\xcenscrierea la tombol\u0103 a donatorului - op\u021bional -> tombola(campania) \xeen care s-a \xeenscris donatorul"),r.Tb(),r.Ub(139,"b"),r.Ec(140,"Datele cu caracter personal la care au acces urmatoarele entit\u0103\u021bi:"),r.Tb(),r.Ub(141,"ol",5),r.Ub(142,"span"),r.Ec(143,"ONG/Companie (organizatorul campaniei cu tombola) - accesul la datele cu caracter personal este disponibil pe durata campaniei c\xe2t \u0219i 14 dup\u0103 \xeencheierea acesteia (donatorul trebuie s\u0103-\u021bi dea explicit acordul pentru prelucrarea datelor de c\u0103tre organizator):"),r.Tb(),r.Ub(144,"ol",5),r.Ub(145,"li"),r.Ec(146,"Nume \u0219i prenume -> pentru a facilita contactarea c\xe2\u0219tig\u0103torului)"),r.Tb(),r.Ub(147,"li"),r.Ec(148,"Email -> pentru a facilita contactarea c\xe2\u0219tig\u0103torului"),r.Tb(),r.Ub(149,"li"),r.Ec(150,"Cod invita\u021bie donator -> pentru a facilita extragerea c\xe2\u0219tig\u0103torului (majoritatea extragerilor vor fi filmate public de c\u0103tre Organizator, iar acest cod fiind public, poate aparea \xeen filmare)"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Pb(151,"br"),r.Ub(152,"b"),r.Ec(153,'Date colectate \xeen vederea utiliz\u0103rii modului modului de "Ambasador" (modul experimental)'),r.Tb(),r.Ub(154,"ol",5),r.Ub(155,"li"),r.Ec(156,"Codul de ambasador - op\u021bional -> pentru afilierea tuturor don\u0103rilor cu acest ambasador"),r.Tb(),r.Ub(157,"b"),r.Ec(158,"Datele cu caracter personal la care au acces urmatoarele entit\u0103\u021bi:"),r.Tb(),r.Ub(159,"ol",5),r.Ub(160,"span"),r.Ec(161," ONG/Companie (posesorul codului de ambasador): "),r.Tb(),r.Ub(162,"ol",5),r.Ub(163,"li"),r.Ec(164,"Num\u0103rul de don\u0103ri - op\u021bional (la cererea Ambasadorului)"),r.Tb(),r.Ub(165,"li"),r.Ec(166,"Nume \u0219i prenume - op\u021bional (la cererea Ambasadorului)"),r.Tb(),r.Tb(),r.Tb(),r.Ub(167,"span"),r.Ec(168,"Acesta este un modul experimental. Folosirea acestuia se face cu acordul donatorilor ce const\u0103 \xeen libera introducere, de c\u0103tre utilizatorul platformei BlooDoChallenge, a codului de ambasador."),r.Tb(),r.Tb(),r.Pb(169,"br"),r.Ub(170,"b"),r.Ec(171,'Date colectate \xeen vederea utiliz\u0103rii modului modului "Puncte"'),r.Tb(),r.Ub(172,"ol",5),r.Ub(173,"li"),r.Ec(174,"Puncte donator - op\u021bional -> colectate automat \xeen momemtul folosirii modulelor ce acord\u0103 puncte"),r.Tb(),r.Ub(175,"li"),r.Ec(176,"Istoric folosire puncte - op\u021bional -> colectat automat \xeen momentul folosirii punctelor \xeen platform\u0103; folosit la calculul de puncte r\u0103mase"),r.Tb(),r.Ub(177,"b"),r.Ec(178,"Datele cu caracter personal la care au acces urmatoarele entit\u0103\u021bi: Punctele sunt vizibile \xeen clasamentul donatorilor (dac\u0103 se dore\u0219te, se poate ascunde numele din clasament pentru anonomitate)"),r.Tb(),r.Tb(),r.Pb(179,"br"),r.Ub(180,"b"),r.Ec(181,'Date colectate \xeen vederea utiliz\u0103rii modului "Centru de transfuzie" (dedicat strict centrelor de tranfuzie sanguin\u0103 din platform\u0103)'),r.Tb(),r.Ub(182,"ol",5),r.Ub(183,"li"),r.Ec(184,"Informa\u021bii publice despre centrul de transfuzie sanguin\u0103 (nume, adres\u0103, orar programare la donare, website, etc)"),r.Tb(),r.Ub(185,"b"),r.Ec(186,"Majoritatea datelor sunt disponbile public"),r.Tb(),r.Tb(),r.Pb(187,"br"),r.Ub(188,"b"),r.Ec(189,'Date colectate in vederea utilizatorii modului "Partener" (dedicat strict partenerilor din platform\u0103)'),r.Tb(),r.Ub(190,"ol",5),r.Ub(191,"li"),r.Ec(192,"Website - op\u021bional -> folosit pentru configurarea contului de Partener"),r.Tb(),r.Ub(193,"li"),r.Ec(194,"Logo - op\u021bional -> folosit pentru configurarea contului de Partener"),r.Tb(),r.Ub(195,"li"),r.Ec(196,"Oferte - op\u021bional -> la configurarea ofertelor \xeen platform\u0103"),r.Tb(),r.Ub(197,"li"),r.Ec(198,"Num\u0103r acces\u0103ri - op\u021bional -> colectat automat la accesarea ofertelor"),r.Tb(),r.Ub(199,"li"),r.Ec(200,"Num\u0103r puncte - optional -> colectat automat la accesarea ofertelor"),r.Tb(),r.Ub(201,"b"),r.Ec(202,"Datele cu caracter personal cu acces public: Website, Logo, Oferte"),r.Tb(),r.Tb(),r.Pb(203,"br"),r.Ub(204,"b"),r.Ec(205,'Date colectate \xeen vederea utiliz\u0103rii modului "ONG/Companii" (dedicat strict ONG-urilor / Companiilor din platform\u0103)'),r.Tb(),r.Ub(206,"ol",5),r.Ub(207,"li"),r.Ec(208,"Campanii - op\u021bional -> campaniile configurate de c\u0103tre ONG/companie (con\u021bine tombola + programarea la donare)"),r.Tb(),r.Ub(209,"b"),r.Ec(210,"Majoritatea datelor sunt disponbile public"),r.Tb(),r.Ec(211,"> "),r.Tb(),r.Pb(212,"br"),r.Ub(213,"b"),r.Ec(214,"Date colectate \xeen vederea utiliz\u0103rii modului modului Registru Celule Stem"),r.Tb(),r.Ub(215,"ol",5),r.Ub(216,"li"),r.Ec(217,"Nume - obligatoriu -> folosit pentru identificare de c\u0103tre personalul RNDVCSH"),r.Tb(),r.Ub(218,"li"),r.Ec(219,"Prenume - obligatoriu -> folosit pentru identificare de c\u0103tre personalul RNDVCSH"),r.Tb(),r.Ub(220,"li"),r.Ec(221,"Email - obligatoriu -> folosit pentru identificare de c\u0103tre personalul RNDVCSH"),r.Tb(),r.Ub(222,"li"),r.Ec(223,"Telefon - obligatoriu -> folosit pentru identificare de c\u0103tre personalul RNDVCSH"),r.Tb(),r.Ub(224,"li"),r.Ec(225,"Moment \xeenscriere \xeen registru - obligatoriu -> folosit pentru identificare de c\u0103tre personalul RNDVCSH"),r.Tb(),r.Ub(226,"li"),r.Ec(227,"Dat\u0103 \xeenscriere cerere -> colectat automat; folosit pentru a r\u0103spunde la cele mai vechi mai repede"),r.Tb(),r.Ub(228,"b"),r.Ec(229,"Datele cu caracter personal la care au acces urmatoarele entit\u0103\u021bi:"),r.Tb(),r.Ub(230,"ol",5),r.Ub(231,"span"),r.Ec(232,"Registru Celule Stem Rom\xe2nia:"),r.Tb(),r.Ub(233,"ol",5),r.Ub(234,"li"),r.Ec(235,"Nume"),r.Tb(),r.Ub(236,"li"),r.Ec(237,"Prenume"),r.Tb(),r.Ub(238,"li"),r.Ec(239,"Email"),r.Tb(),r.Ub(240,"li"),r.Ec(241,"Telefon"),r.Tb(),r.Ub(242,"li"),r.Ec(243,"Moment \xeenscriere \xeen registru"),r.Tb(),r.Ub(244,"li"),r.Ec(245,"Dat\u0103 \xeenscriere cerere"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Pb(246,"br"),r.Ub(247,"b"),r.Ec(248,"Alte date colectate in momentul utilizarii celorlalte module din aplicatie:"),r.Tb(),r.Ub(249,"ol",5),r.Ub(250,"li"),r.Ec(251,"Invita\u021biile prietenilor - se colecteaz\u0103 automat \xeen dou\u0103 momente: 1. prietenii invita\u021bi accept\u0103 invita\u021bia; 2. prietenii invita\u021bi \xee\u0219i \xeenregistreaz\u0103 pentru prima dat\u0103 donarea"),r.Tb(),r.Ub(252,"li"),r.Ec(253,"Invita\u021biile partenerilor - se colecteaz\u0103 automat, partenerii invita\u021bi accept\u0103 invita\u021bia;"),r.Tb(),r.Ub(254,"li"),r.Ec(255,"Cod donator - op\u021bional -> pentru eviden\u021ba donatorului"),r.Tb(),r.Ub(256,"li"),r.Ec(257,"Grupa sanguin\u0103 - op\u021bional -> pentru eviden\u021ba donatorului"),r.Tb(),r.Tb(),r.Pb(258,"br"),r.Ub(259,"p"),r.Ec(260," Datele cu caracter personal ce se fac publice c\u0103tre ter\u021be p\u0103r\u021bi(organizatori de campanii, tombole, etc), sunt \xeenso\u021bite de un accept \xeen plus din partea donatorilor pentru ca acest lucru s\u0103 se \xeentample (se exclud cazurile c\xe2nd datele cu caracter personal sunt transmise c\u0103tre centrul de transfuzie sanguin\u0103) "),r.Tb(),r.Ub(261,"p"),r.Ec(262," Se pot face publice informa\u021bii statistice despre oricare modul \xeen parte, sau combinarea dintre module. "),r.Tb(),r.Ub(263,"p"),r.Ec(264," Informa\u021bii statistice despre activitatea \xeen platforma BlooDoChallenge pot fi f\u0103cute publice (la libera alegere a dezvoltatorului platformei BlooDoChallenge). Informa\u021biile statistice nu vor con\u021bine date ce pot identifica direct vreun utilizator al platformei BlooDoChallenge. "),r.Tb(),r.Pb(265,"br"),r.Ub(266,"p"),r.Ec(267," Datele personale prezentate mai sus sunt colectate \xeen mod direct de la utilizator c\xe2t \u0219i \xeen mod automat atunci c\xe2nd este utilizata Aplica\u021bia (ex: token). "),r.Tb(),r.Pb(268,"br"),r.Ub(269,"p"),r.Ec(270," Datele sensibile legate de s\u0103n\u0103tate nu sunt prelucrate. Ve\u021bi vedea notific\u0103ri legate de validitatea don\u0103rii, detaliile suplimentare fiind furnizate de c\u0103tre centrul de transfuzie sanguin\u0103(dup\u0103 caz) direct c\u0103tre dumneavoastr\u0103, donatorul. "),r.Tb(),r.Pb(271,"br"),r.Ub(272,"p"),r.Ec(273," Cu excep\u021bia cazului \xeen care se specific\u0103 altfel, toate datele solicitate sunt obligatorii, iar nefurnizarea acestor date poate face imposibil\u0103 utilizarea Aplica\u021biei. \xcen cazurile \xeen care aceast\u0103 Aplica\u021bie afirm\u0103 \xeen mod specific c\u0103 unele date nu sunt obligatorii, utilizatorii sunt liberi s\u0103 nu comunice aceste date f\u0103r\u0103 a exista \xeens\u0103 consecin\u021be asupra disponibilit\u0103\u021bii sau func\u021bion\u0103rii Aplica\u021biei. "),r.Tb(),r.Pb(274,"br"),r.Ub(275,"p"),r.Ec(276," Utilizatorii care nu sunt siguri cu privire la care din datele personale sunt obligatorii pot contacta Operatorul pentru detalii suplimentare. "),r.Tb(),r.Ub(277,"p"),r.Ec(278," Utilizatorii sunt responsabili pentru orice date cu caracter personal ob\u021binute, publicate sau partajate prin intermediul acestei aplica\u021bii \u0219i confirm\u0103 faptul c\u0103 au acordul ter\u021bilor respectivi pentru a furniza datele c\u0103tre Operator. "),r.Tb(),r.Pb(279,"br"),r.Ub(280,"p"),r.Ub(281,"span"),r.Ec(282,"Notific\u0103ri"),r.Tb(),r.Tb(),r.Ub(283,"p"),r.Ec(284," Aceast\u0103 aplica\u021bie trimite notific\u0103ri utilizatorilor s\u0103i pentru a-i informa despre mai multe evenimente care s-au \xeent\xe2mplat recent, cum ar fi(informa\u021bia despre notificare este stocat\u0103 pentru o vizualizare ulterioar\u0103): "),r.Tb(),r.Ub(285,"ol",5),r.Ub(286,"li"),r.Ec(287,"A fost publicat\u0103 o campanie de donare"),r.Tb(),r.Ub(288,"li"),r.Ec(289,"Unitatea de s\xe2nge donat\u0103 a donatorului a fost validat\u0103 / nevalidat\u0103 / nevalidat\u0103 cu rechemare"),r.Tb(),r.Ub(290,"li"),r.Ec(291,"Prietenii utilizatorului care s-au al\u0103turat aplica\u021biei"),r.Tb(),r.Ub(292,"li"),r.Ec(293,"C\xe2nd po\u021bi dona din nou(se trimite cu aproximativ 7 zile \xeenainte pentru o aducere aminte)"),r.Tb(),r.Ub(294,"li"),r.Ec(295,"C\xe2nd ai o programare la donare (\xeen ziua anterioar\u0103 don\u0103rii, seara)"),r.Tb(),r.Ub(296,"li"),r.Ec(297,'Notific\u0103ri de mul\u021bumire pentru donarea efectuat\u0103 cu o zi \xeenainte(c\xe2nd modulul "Validarea don\u0103rii" nu este activ la centrul de transfuzie la care ai donat s\xe2nge)'),r.Tb(),r.Tb(),r.Pb(298,"br"),r.Ub(299,"p"),r.Ub(300,"span"),r.Ec(301,"Clasament"),r.Tb(),r.Tb(),r.Ub(302,"p"),r.Ec(303," Exist\u0103 \u0219i un sistem de ranking al donatorilor(pe judet), care afi\u0219eaz\u0103 punctele c\xe2\u0219tigate \xeen urma don\u0103rii de s\xe2nge. Datele cu caracter personal sunt: "),r.Tb(),r.Ub(304,"ol",5),r.Ub(305,"li"),r.Ec(306,"Nume \u0219i prenume"),r.Tb(),r.Ub(307,"li"),r.Ec(308,"Scor"),r.Tb(),r.Ub(309,"li"),r.Ec(310,"Pozi\u021bia \xeen clasament"),r.Tb(),r.Pb(311,"br"),r.Ub(312,"b"),r.Ec(313,"Utilizatorul poate s\u0103-\u0219i ascund\u0103 numele din clasament dac\u0103 dore\u0219te"),r.Tb(),r.Tb(),r.Pb(314,"br"),r.Ub(315,"p"),r.Ec(316," Aceasta Aplica\u021bie nu utilizeaz\u0103 Cookie-uri. "),r.Tb(),r.Pb(317,"br"),r.Ub(318,"p"),r.Ec(319," \xcen scop de operare \u0219i \xeentre\u021binere, aceast\u0103 Aplica\u021bie \u0219i orice servicii ter\u021be pot colecta fi\u0219iere care \xeenregistreaz\u0103 interac\u021biunea cu aceast\u0103 Aplica\u021bie (jurnalele de sistem \u2013 log-uri) folosind alte date cu caracter personal (cum ar fi adresa IP) \xeen acest scop. "),r.Tb(),r.Pb(320,"br"),r.Ub(321,"p"),r.Ec(322,"Pentru claritate, entit\u0103\u021bile la care se face referire mai sus sunt: Centre de transfuzie sanguin\u0103, Parteneri, ONG-uri/Companii"),r.Tb(),r.Ub(323,"p"),r.Ub(324,"b"),r.Ec(325,"Datele cu caracter personal la care au acces oricare dintre aceste entit\u0103\u021bi se oblig\u0103 s\u0103 le utilizeze strict \xeen scopul prelucr\u0103rii a\u0219a cum persoana vizat\u0103 a fost informat\u0103 (pentru claritate, persoana vizat\u0103 fiind utilizatorul platformei BlooDoChallenge)"),r.Tb(),r.Tb(),r.Tb(),r.Ub(326,"div",4),r.Ub(327,"h4"),r.Ec(328,"Bazele legale ale prelucr\u0103rii datelor cu caracter personal"),r.Tb(),r.Ub(329,"p"),r.Ec(330," Operatorul prelucreaz\u0103 datele cu caracter personal referitoare la utilizatori dac\u0103 se aplic\u0103 una dintre urm\u0103toarele: "),r.Tb(),r.Ub(331,"ol",5),r.Ub(332,"li"),r.Ec(333,"Utilizatorii \u0219i-au dat consim\u021b\u0103m\xe2ntul pentru unul sau mai multe scopuri specifice"),r.Tb(),r.Ub(334,"li"),r.Ec(335,"Furnizarea de date este necesar\u0103 pentru \xeendeplinirea unui acord cu Utilizatorul \u0219i / sau pentru orice obliga\u021bii precontractuale sau contractuale cu acesta (ex: utilizare Aplica\u021bie)"),r.Tb(),r.Ub(336,"li"),r.Ec(337,"Prelucrarea este necesar\u0103 pentru respectarea unei obliga\u021bii legale la care este supus Operatorul"),r.Tb(),r.Ub(338,"li"),r.Ec(339,"Prelucrarea este legat\u0103 de o sarcin\u0103 care este realizat\u0103 \xeen interes public sau \xeen exercitarea autorit\u0103\u021bii oficiale \xeenvestite de Operator"),r.Tb(),r.Ub(340,"li"),r.Ec(341,"Prelucrarea este necesar\u0103 \xeen scopul intereselor legitime urm\u0103rite de Operator sau de c\u0103tre un ter\u021b"),r.Tb(),r.Tb(),r.Tb(),r.Ub(342,"div",4),r.Ub(343,"h4"),r.Ec(344,"Securitatea datelor; loca\u021bii de prelucrare"),r.Tb(),r.Ub(345,"p"),r.Ec(346," Operatorul ia m\u0103suri de securitate adecvate pentru a preveni accesul, dezv\u0103luirea, modificarea sau distrugerea neautorizat\u0103 a datelor. "),r.Tb(),r.Pb(347,"br"),r.Ub(348,"p"),r.Ec(349," Prelucrarea datelor se realizeaz\u0103 folosind sistemele IT adecvate \u0219i aplic\xe2nd m\u0103suri tehnice \u0219i organizatorice astfel \xeenc\xe2t s\u0103 fie asigurata securitatea informa\u021biei din punct de vedere al confiden\u021bialit\u0103\u021bii, integrit\u0103\u021bii \u0219i disponibilit\u0103\u021bii datelor. "),r.Tb(),r.Pb(350,"br"),r.Ub(351,"p"),r.Ec(352," \xcen afar\u0103 de Operator, \xeen unele cazuri, datele pot fi accesibile pentru anumite tipuri de persoane responsabile, implicate \xeen func\u021bionarea acestei Aplica\u021bii (administrare, v\xe2nz\u0103ri, marketing, administrare juridic\u0103, sistem) sau p\u0103r\u021bi externe (cum ar fi p\u0103r\u021bile ter\u021be- furnizori de servicii tehnice, furnizori de g\u0103zduire, companii IT, agen\u021bii de comunica\u021bii) desemna\u021bi, dac\u0103 este necesar, ca persoane \xeemputernicite de c\u0103tre Operator. Accesul la date din partea p\u0103r\u021bilor ter\u021be se realizeaz\u0103 strict \xeen scop limitat \u0219i necesar pentru buna func\u021bionare \u0219i administrare a Aplica\u021biei. Lista actualizat\u0103 a acestor p\u0103r\u021bi poate fi solicitat\u0103 Operatorului \xeen orice moment. Men\u021bion\u0103m c\u0103 datele Aplica\u021biei sunt stocate \xeen cloud, utiliz\xe2nd serviciile Azure (furnizor Microsoft). "),r.Tb(),r.Pb(353,"br"),r.Ub(354,"p"),r.Ec(355," Datele sunt prelucrate de c\u0103tre Operator \xeen Rom\xe2nia \u0219i \xeen orice alte locuri unde se afl\u0103 p\u0103r\u021bile implicate \xeen prelucrare, cum ar fi serverele cloud corespunz\u0103toare serviciului Azure Microsoft. Datele nu p\u0103r\u0103sesc spa\u021biul UE/EEA. "),r.Tb(),r.Tb(),r.Ub(356,"div",4),r.Ub(357,"h4"),r.Ec(358,"Durata de p\u0103strare a datelor"),r.Tb(),r.Ub(359,"p"),r.Ec(360," Datele cu caracter personal sunt prelucrate \u0219i stocate at\xe2t timp c\xe2t este necesar \xeen scopul pentru care au fost colectate. Prin urmare: "),r.Tb(),r.Ub(361,"ol",5),r.Ub(362,"li"),r.Ec(363,"Datele cu caracter personal colectate \xeen scopuri legate de executarea unui contract \xeentre Proprietar \u0219i Utilizator se p\u0103streaz\u0103 p\xe2n\u0103 la \xeendeplinirea complet\u0103 a acestui contract"),r.Tb(),r.Ub(364,"li"),r.Ec(365,"Datele cu caracter personal colectate \xeen scopul intereselor legitime ale Proprietarului vor fi p\u0103strate at\xe2t timp c\xe2t este necesar pentru \xeendeplinirea acestor scopuri. Utilizatorii pot g\u0103si informa\u021bii specifice cu privire la interesele legitime urm\u0103rite de Proprietar \xeen sec\u021biunile relevante ale acestui document sau contact\xe2nd Proprietarul"),r.Tb(),r.Tb(),r.Pb(366,"br"),r.Ub(367,"p"),r.Ec(368," Operatorul poate p\u0103stra datele cu caracter personal pentru o perioad\u0103 mai lung\u0103 ori de c\xe2te ori utilizatorul \u0219i-a acordat consim\u021b\u0103m\xe2ntul pentru o astfel de prelucrare, at\xe2ta timp c\xe2t acest consim\u021b\u0103m\xe2nt nu este retras. Mai mult, Operatorul poate fi obligat s\u0103 p\u0103streze datele cu caracter personal pentru o perioad\u0103 mai lung\u0103, ori de c\xe2te ori i se cere acest lucru pentru \xeendeplinirea unei obliga\u021bii legale sau la ordinul unei autorit\u0103\u021bi. "),r.Tb(),r.Pb(369,"br"),r.Ub(370,"p"),r.Ec(371," Dup\u0103 expirarea perioadei de p\u0103strare, datele personale sunt \u0219terse. "),r.Tb(),r.Pb(372,"br"),r.Ub(373,"p"),r.Ec(374," Contul unui utilizator este p\u0103strat pe o perioada de zece ani de la ultima activitate. La expirarea acestui termen, utilizatorul va fi informat \xeen leg\u0103tur\u0103 cu posibilitatea extinderii existen\u021bei contului. "),r.Tb(),r.Tb(),r.Ub(375,"div",4),r.Ub(376,"h4"),r.Ec(377,"Drepturile utilizatorilor"),r.Tb(),r.Ub(378,"p"),r.Ec(379," Utilizatorii pot exercita anumite drepturi cu privire la Datele lor prelucrate de Operator. \xcen special, utilizatorii au dreptul s\u0103 fac\u0103 urm\u0103toarele: "),r.Tb(),r.Ub(380,"ol",5),r.Ub(381,"li"),r.Ec(382,"Dreptul de a fi informat \u2013 \xeen leg\u0103tur\u0103 cu scopul \u0219i metodele de prelucrare a datelor"),r.Tb(),r.Ub(383,"li"),r.Ec(384,"Dreptul de acces la date - utilizatorii au dreptul s\u0103 solicite informa\u021bii despre modul \xeen care sunt prelucrate datele lor de c\u0103tre Operator, precum \u0219i o copie dup\u0103 aceste date"),r.Tb(),r.Ub(385,"li"),r.Ec(386,"Dreptul de rectificare a datelor \u2013 utilizatorul are posibilitatea de editare a profilului s\u0103u"),r.Tb(),r.Ub(387,"li"),r.Ec(388,"Dreptul de \u0219tergere a datelor - \xeen vederea elimin\u0103rii datelor personale din evidenta Operatorului/ Aplica\u021biei, atunci c\xe2nd acest lucru este aplicabil"),r.Tb(),r.Ub(389,"li"),r.Ec(390,"Dreptul de obiec\u021bie cu privire la modul \xeen care datele sunt prelucrate"),r.Tb(),r.Ub(391,"li"),r.Ec(392,"Dreptul de portabilitate a datelor - Operatorul poate sa va transmit\u0103 datele \xeentr-un format automat, \xeen func\u021bie de posibilitate"),r.Tb(),r.Ub(393,"li"),r.Ec(394,"Drepturi de obiec\u021bie privire la decizii automate si profilare, care pot avea efecte semnificative (Operatorul nu utilizeaz\u0103 algoritmi de profilare care pot avea astfel de efecte)"),r.Tb(),r.Ub(395,"li"),r.Ec(396,"Dreptul de adresare direct\u0103 c\u0103tre Autoritatea de Supraveghere, \xeen vederea formul\u0103rii unei pl\xe2ngeri (www.dataprotection.ro)"),r.Tb(),r.Tb(),r.Pb(397,"br"),r.Ub(398,"p"),r.Ec(399," Orice solicit\u0103ri de exercitare a drepturilor utilizatorului pot fi direc\u021bionate c\u0103tre Operator (la adresa de email specificata) prin datele de contact prev\u0103zute \xeen acest document. Aceste solicit\u0103ri pot fi exercitate gratuit \u0219i vor fi adresate de Operator c\xe2t mai devreme \u0219i \xeentotdeauna \xeen maxim o lun\u0103 de zile. "),r.Tb(),r.Tb(),r.Ub(400,"div",4),r.Ub(401,"h4"),r.Ec(402,"Alte informa\u021bii \u0219i schimb\u0103ri cu privire la aceasta Politica de confiden\u021bialitate"),r.Tb(),r.Ub(403,"p"),r.Ec(404," Operatorul \xee\u0219i rezerv\u0103 dreptul de a efectua modific\u0103ri ale acestei politici de confiden\u021bialitate \xeen orice moment, notific\xe2nd utilizatorii s\u0103i pe aceast\u0103 pagin\u0103 \u0219i, eventual, \xeen cadrul acestei Aplica\u021bii \u0219i / sau - \xeen m\u0103sura posibilit\u0103\u021bilor tehnice \u0219i juridice - trimi\u021b\xe2nd o notificare c\u0103tre utilizatori prin orice informa\u021bii de contact. disponibile Operatorului. "),r.Tb(),r.Pb(405,"br"),r.Ub(406,"p"),r.Ec(407," Este recomandat ca utilizatorii sa verifice deseori aceast\u0103 pagin\u0103, cu referire la data ultimei modific\u0103ri enumerate \xeen partea de jos. "),r.Tb(),r.Pb(408,"br"),r.Ub(409,"p"),r.Ec(410," \xcen cazul \xeen care modific\u0103rile afecteaz\u0103 activit\u0103\u021bile de prelucrare efectuate pe baza consim\u021b\u0103m\xe2ntului utilizatorului, Operatorul colecteaz\u0103 un nou acord din partea utilizatorului, acolo unde este necesar. "),r.Tb(),r.Tb(),r.Ub(411,"div",4),r.Ub(412,"h5"),r.Ec(413,"Ultima actualizare: 25.03.2024"),r.Tb(),r.Tb(),r.Ub(414,"div",6),r.Ub(415,"a",7),r.Ec(416,"\xceNAPOI"),r.Tb(),r.Tb(),r.Tb())},styles:['.content-area[_ngcontent-%COMP%]{background:#f5f4f4;padding:5vw 0;overflow:hidden;font-family:Montserrat}.content-title[_ngcontent-%COMP%]{text-align:center;font-size:30px;padding-bottom:50px}.content-title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:30px;text-transform:uppercase;color:#232323;font-weight:400;position:relative;padding-bottom:25px}.content-title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]:before{content:"";left:50%;transform:translateX(-50%);bottom:0;position:absolute;width:50px;height:1px;background:#000}.content-title[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:24px;line-height:28px;text-align:center;max-width:750px;margin:auto;color:#727272;padding-top:23px}.content-title[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100px;width:100px}.content[_ngcontent-%COMP%]{margin:50px 5vw 30px}.content[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:22px;line-height:26px}.content[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%], .content[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{text-align:left;margin-bottom:15px}.content[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{font-weight:700}.content[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%], .content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;line-height:25px}.content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:justify;text-indent:4vw}.content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.content-area[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{padding:8px 0 0 5vw}.content-area[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:14px;line-height:24px;text-align:justify;padding-left:8px}.content-button[_ngcontent-%COMP%]{text-align:center;margin:auto;font-size:18px}.content-button[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-align:center;padding:5px 20px;border-radius:5px;border:1px solid #727272;background-color:#f5f4f4}']}),t})(),Tt=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Ib({type:t,selectors:[["app-terms"]],decls:170,vars:0,consts:[[1,"content-area"],[1,"container"],[1,"content-title"],["src","/assets/img/fav-icon.jpg","alt",""],[1,"content"],["type","1"],[1,"content-button"],["href",""]],template:function(t,e){1&t&&(r.Ub(0,"div",0),r.Ub(1,"div",1),r.Ub(2,"div",2),r.Pb(3,"img",3),r.Ub(4,"p"),r.Ec(5,"BlooDoChallenge"),r.Tb(),r.Tb(),r.Ub(6,"div",2),r.Ub(7,"h2"),r.Ec(8,"Termeni \u0219i condi\u021bii"),r.Tb(),r.Tb(),r.Tb(),r.Ub(9,"div",4),r.Ub(10,"p"),r.Ec(11," Ace\u0219ti Termeni \u0219i condi\u021bii stabilesc rela\u021bia dvs. cu aplica\u021bia mobil\u0103 BlooDoChallenge (colectivul, Serviciul). "),r.Tb(),r.Pb(12,"br"),r.Ub(13,"p"),r.Ec(14," V\u0103 rug\u0103m s\u0103 citi\u021bi cu aten\u021bie \xeenainte de a utiliza Serviciul. "),r.Tb(),r.Pb(15,"br"),r.Ub(16,"p"),r.Ec(17," Accesul \u0219i utilizarea dvs. a Serviciului se bazeaz\u0103 pe acceptarea \u0219i respectarea acestor Termeni. Acestea se aplic\u0103 tuturor vizitatorilor, utilizatorilor \u0219i altor persoane care acceseaz\u0103 sau utilizeaz\u0103 Serviciul. "),r.Tb(),r.Pb(18,"br"),r.Ub(19,"p"),r.Ec(20," \xcen baza accept\u0103rii Termenilor, acces\xe2nd sau utiliz\xe2nd Serviciul, v\u0103 da\u021bi acordul accept\u0103rii tuturor consecin\u021belor legale.Dac\u0103 nu sunte\u021bi de acord cu termenii \u0219i condi\u021biile specificate, \xeen \xeentregime sau par\u021bial, nu utiliza\u021bi Serviciul. "),r.Tb(),r.Tb(),r.Ub(21,"div",4),r.Ub(22,"h4"),r.Ec(23,"1. Disponibilitate, erori \u0219i incorectitudini"),r.Tb(),r.Ub(24,"p"),r.Ec(25," Pentru a oferi cele mai bune servicii precum \u0219i acurate\u021be, ne actualiz\u0103m constant produsele \u0219i serviciile. "),r.Tb(),r.Pb(26,"br"),r.Ub(27,"p"),r.Ec(28," Nu putem \u0219i nu garant\u0103m exactitatea \u0219i deplin\u0103tatea informa\u021biilor, imaginile produsului, specifica\u021biile, disponibilitatea \u0219i serviciile. Ne rezerv\u0103m dreptul de a modifica sau actualiza informa\u021biile \u0219i de a corecta erorile, incorectitudinile sau omisiunile \xeen orice moment, f\u0103r\u0103 notificare prealabil\u0103. "),r.Tb(),r.Pb(29,"br"),r.Ub(30,"p"),r.Ec(31," \xcen ciuda celor mai bune eforturi, produsele \u0219i serviciile disponibile prin Serviciul nostru pot avea erori, pot fi descrise inexact sau indisponibile. "),r.Tb(),r.Pb(32,"br"),r.Ub(33,"p"),r.Ec(34," Este posibil s\u0103 avem \xeent\xe2rzieri \xeen actualizarea informa\u021biilor despre Serviciu \u0219i \xeen publicitatea noastr\u0103 pe alte site-uri web. "),r.Tb(),r.Pb(35,"br"),r.Ub(36,"p"),r.Ub(37,"span"),r.Ec(38,"Modific\u0103ri"),r.Tb(),r.Tb(),r.Ub(39,"p"),r.Ec(40," BlooDoChallenge \xee\u0219i rezerv\u0103 dreptul de a revizui ace\u0219ti Termeni \u0219i Condi\u021bii \xeen orice moment \u0219i la discre\u021bia noastr\u0103. BlooDoChallenge va indica \xeen partea de sus a acestui document data la care a fost revizuit\u0103 ultima dat\u0103. Orice modificare va intra \xeen vigoare imediat dup\u0103 publicarea versiunii revizuite (sau a datei de intrare \xeen vigoare ulterioare, care se indica \xeen partea de sus a Termenilor \u0219i condi\u021biilor revizuite). R\u0103spunderea de a verifica regulat acest document pentru a afla dac\u0103 au existat modific\u0103ri \u0219i revizuiri revine utilizatorului. Utilizarea continu\u0103 a Serviciului dup\u0103 publicarea oric\u0103rei modific\u0103ri la acest document constituie acceptarea dvs. a oric\u0103ror astfel de modific\u0103ri. Dac\u0103 utilizatorul nu este de acord cu modific\u0103rile, Serviciul nu se recomand\u0103 s\u0103 fie utilizat. "),r.Tb(),r.Tb(),r.Ub(41,"div",4),r.Ub(42,"h4"),r.Ec(43,"2. Accesul \u0219i securitatea contului"),r.Tb(),r.Ub(44,"p"),r.Ec(45," BlooDoChallenge v\u0103 ofer\u0103 o licen\u021b\u0103 revocabil\u0103 personal\u0103, limitat\u0103, neexclusiv\u0103, netransmisibil\u0103 pentru accesarea \u0219i utilizarea serviciului. "),r.Tb(),r.Pb(46,"br"),r.Ub(47,"p"),r.Ec(48," Pentru a accesa anumite zone ale Serviciului, vi se poate solicita sau trebuie s\u0103 furniza\u021bi anumite detalii de \xeenregistrare sau alte informa\u021bii. Utilizarea Serviciului este o condi\u021bie ca toate aceste detalii pe care le oferi\u021bi s\u0103 fie corecte, actuale \u0219i complete. Sunte\u021bi de acord ca toate informa\u021biile pe care le furniza\u021bi pentru a v\u0103 \xeenregistra la BlooDoChallenge sunt supuse condi\u021biilor din Politica de confiden\u021bialitate a BlooDoChallenge \u0219i sunte\u021bi de acord cu toate ac\u021biunile pe care le realiz\u0103m cu privire la informa\u021biile dvs. \xeen concordan\u021b\u0103 cu Politica de confiden\u021bialitate de la BlooDoChallenge. "),r.Tb(),r.Pb(49,"br"),r.Ub(50,"p"),r.Ec(51," Dac\u0103 alege\u021bi sau vi se ofer\u0103 un nume de utilizator, o parol\u0103 sau orice alte informa\u021bii ca parte a caracteristicilor de securitate ale Serviciului, sunte\u021bi de acord s\u0103 trata\u021bi aceste informa\u021bii ca fiind confiden\u021biale \u0219i sunte\u021bi de acord s\u0103 nu le dezv\u0103lui\u021bi niciunei alte persoane sau entit\u0103\u021bi. Contul dvs. de utilizator, este personal pentru dvs. \u0219i sunte\u021bi de acord s\u0103 nu oferi\u021bi oric\u0103rei alte persoane acces la Serviciu prin contul de utilizator. Sunte\u021bi de acord s\u0103 ne anun\u021ba\u021bi imediat dac\u0103 lua\u021bi la cuno\u0219tin\u021b\u0103 vreun acces sau vreo utilizare neautorizat\u0103 a numelui dvs. de utilizator, a parolei sau a altor informa\u021bii de securitate. "),r.Tb(),r.Pb(52,"br"),r.Ub(53,"p"),r.Ec(54," Ne rezerv\u0103m dreptul de a bara accesul la Serviciu de c\u0103tre orice utilizator neautorizat sau orice utilizator despre care avem motive s\u0103 credem c\u0103 \xeencalc\u0103 ace\u0219ti Termeni \u0219i condi\u021bii. "),r.Tb(),r.Tb(),r.Ub(55,"div",4),r.Ub(56,"h4"),r.Ec(57,"3. Comunicare electronic\u0103"),r.Tb(),r.Ub(58,"p"),r.Ec(59," \xcenregistr\xe2ndu-v\u0103 la Serviciul nostru, sunte\u021bi de acord s\u0103 primi\u021bi informa\u021bii sub form\u0103 electronic\u0103 de la BlooDoChallenge \u0219i \xeen cazuri rare de la afilia\u021bii \u0219i partenerii s\u0103i. Vom comunica cu dvs. prin e-mail sau prin publicarea de notific\u0103ri \xeen aplica\u021bie despre acest serviciu (f\u0103r\u0103 e-mail de marketing). Sunte\u021bi de acord c\u0103 toate acordurile, notific\u0103rile, prezent\u0103rile \u0219i alte comunic\u0103ri care v\u0103 sunt furnizate electronic satisfac orice cerin\u021b\u0103 legal\u0103. "),r.Tb(),r.Pb(60,"br"),r.Ub(61,"p"),r.Ec(62," Mai multe detalii privind comunicarea sunt disponibile \xeen Politica de confiden\u021bialitate. \xcen\u021belege\u021bi \u0219i recunoa\u0219te\u021bi c\u0103 a\u021bi citit \u0219i accepta\u021bi termenii din Politica de confiden\u021bialitate. "),r.Tb(),r.Tb(),r.Ub(63,"div",4),r.Ub(64,"h4"),r.Ec(65,"4. Utiliz\u0103ri interzise"),r.Tb(),r.Ub(66,"p"),r.Ec(67," \xcen leg\u0103tur\u0103 cu utilizarea aplica\u021biei, sunte\u021bi de acord s\u0103 nu: "),r.Tb(),r.Ub(68,"ol",5),r.Ub(69,"li"),r.Ec(70,"Desc\u0103rca\u021bi sau copia\u021bi Serviciul sau oricare dintre p\u0103r\u021bile sale sau informa\u021biile contului, \xeen beneficiul altui furnizor sau al oric\u0103rui alt ter\u021b."),r.Tb(),r.Ub(71,"li"),r.Ec(72,"Utiliza\u021bi nici o metod\u0103 de extragere a datelor, robo\u021bi sau alte dispozitive automate, procese sau mijloace pentru a accesa, monitoriza sau copia orice parte a Serviciului sau orice materiale puse la dispozi\u021bie prin intermediul Serviciului."),r.Tb(),r.Ub(73,"li"),r.Ec(74,"Evita\u021bi orice m\u0103suri utilizate de BlooDoChallenge pentru a preveni sau restric\u021biona accesul la Serviciu."),r.Tb(),r.Ub(75,"li"),r.Ec(76,"Posta\u021bi, transmite\u021bi vreun material \xeen\u0219el\u0103tor, def\u0103im\u0103tor, obscen, indecent, abuziv, jignitor, h\u0103r\u021buitor, explicit sexual, discriminatoriu sau de alt\u0103 natur\u0103."),r.Tb(),r.Ub(77,"li"),r.Ec(78,"Publica\u021bi, transmite\u021bi sau face\u021bi leg\u0103tura cu orice date confiden\u021biale, personale, care nu sunt obligatorii \xeen mod specific pentru a utiliza orice caracteristic\u0103 a Serviciului."),r.Tb(),r.Ub(79,"li"),r.Ec(80,"Imprima\u021bi sau \xeencerca\u021bi s\u0103 \xeenlocui\u021bi BlooDoChallenge, un angajat BlooDoChallenge, un alt utilizator sau orice alt\u0103 persoan\u0103, entitate sau crea\u021bi orice impresie de avizare de c\u0103tre BlooDoChallenge sau de orice alt\u0103 persoan\u0103 f\u0103r\u0103 acordul scris al acestei persoane."),r.Tb(),r.Ub(81,"li"),r.Ec(82,"Utiliza\u021bi Serviciul \xeen orice mod care ar putea dezactiva, supra\xeenc\u0103rca, deteriora Serviciul sau interfera cu utilizarea oric\u0103rei alte p\u0103r\u021bi a Serviciului."),r.Tb(),r.Ub(83,"li"),r.Ec(84,"\xcencerca\u021bi s\u0103 interfera\u021bi cu buna func\u021bionare a Serviciului."),r.Tb(),r.Tb(),r.Tb(),r.Ub(85,"div",4),r.Ub(86,"h4"),r.Ec(87,"5. Finalizarea"),r.Tb(),r.Ub(88,"p"),r.Ec(89," \xcen\u021belege\u021bi \u0219i lua\u021bi la cuno\u0219tin\u021b\u0103 c\u0103 BlooDoChallenge are dreptul s\u0103: "),r.Tb(),r.Ub(90,"ol",5),r.Ub(91,"li"),r.Ec(92,"\xcenl\u0103ture sau s\u0103 refuze s\u0103 posta\u021bi sau s\u0103 transmite\u021bi orice Con\u021binut al utilizatorului, pentru orice motiv, la discre\u021bia sa."),r.Tb(),r.Ub(93,"li"),r.Ec(94,"Recurg\u0103 la orice m\u0103sur\u0103 cu privire la vreun con\u021binut al utilizatorului pe care BlooDoChallenge o consider\u0103 necesar\u0103 sau adecvat\u0103, la discre\u021bia sa, inclusiv dac\u0103 consider\u0103 c\u0103 un astfel de con\u021binut al utilizatorului \xeencalc\u0103 ace\u0219ti Termeni \u0219i Condi\u021bii, \xeencalc\u0103 orice drept de proprietate intelectual\u0103 sau alt drept al oric\u0103rei persoane sau entit\u0103\u021bi, amenin\u021b\u0103 siguran\u021ba personal\u0103 a utilizatorilor Serviciului sau ar putea crea r\u0103spundere pentru BlooDoChallenge sau pentru clien\u021bii acestuia sau al\u021bi utilizatori."),r.Tb(),r.Ub(95,"li"),r.Ec(96,"Dezv\u0103luie identitatea dvs. sau alte informa\u021bii despre dvs. oric\u0103rei p\u0103r\u021bi ter\u021be care sus\u021bin c\u0103 materialele postate de dvs. le \xeencalc\u0103 drepturile, inclusiv drepturile de proprietate intelectual\u0103 sau drepturile lor de confiden\u021bialitate."),r.Tb(),r.Ub(97,"li"),r.Ec(98,"Efectueze m\u0103suri legale adecvate, trimiterea la aplicarea legii, pentru orice utilizare ilegal\u0103 sau neautorizat\u0103 a Serviciului."),r.Tb(),r.Ub(99,"li"),r.Ec(100,"\xcencheie sau suspende accesul dvs. la Serviciu (\xeentreg sau par\u021bial), inclusiv pentru orice \xeenc\u0103lcare a acestor Termeni \u0219i Condi\u021bii, sub rezerva dispozi\u021biilor de reziliere a oric\u0103rui Acord aplicabil pentru clien\u021bi \xeentre organiza\u021bia dvs. \u0219i BlooDoChallenge."),r.Tb(),r.Tb(),r.Tb(),r.Ub(101,"div",4),r.Ub(102,"h4"),r.Ec(103,"6. Renun\u021barea la garan\u021bii"),r.Tb(),r.Ub(104,"p"),r.Ec(105," BlooDoChallenge va depune eforturi rezonabile din punct de vedere comercial \xeen concordan\u021b\u0103 cu standardele industriale existente pentru a men\u021bine Serviciul \xeentr-o manier\u0103 care urm\u0103re\u0219te s\u0103 minimizeze erorile \u0219i \xeentreruperile Serviciului. Cu excep\u021bia garan\u021biei limitate men\u021bionate anterior \u0219i a oric\u0103rei garan\u021bii con\u021binute \xeen Acordul cu clien\u021bii organiza\u021biei dvs., dac\u0103 este cazul, utilizarea dvs. de c\u0103tre Serviciu, con\u021binutul sau obiectele ob\u021binute prin alte servicii este pe riscul dvs., iar Serviciul, con\u021binutul sau obiectele ob\u021binute prin intermediul altor serviciile sunt furnizate \u201ea\u0219a cum sunt\u201d \u0219i \u201edisponibile\u201d, f\u0103r\u0103 alte garan\u021bii de niciun fel, expres sau implicit. Nici BlooDoChallenge \u0219i nici o persoan\u0103 asociat\u0103 cu BlooDoChallenge nu ofer\u0103 nicio garan\u021bie cu privire la securitatea, fiabilitatea, calitatea, exactitatea sau disponibilitatea Serviciului. F\u0103r\u0103 a limita cele de mai sus, nici BlooDoChallenge, nici nimeni asociat cu BlooDoChallenge nu reprezint\u0103 sau garanteaz\u0103 c\u0103 Serviciul va fi f\u0103r\u0103 erori ,ne\xeentrerupt, c\u0103 defectele vor fi corectate sau c\u0103 Serviciul va r\u0103spunde altor nevoi sau a\u0219tept\u0103ri ale dvs. "),r.Tb(),r.Pb(106,"br"),r.Ub(107,"p"),r.Ec(108," BlooDoChallenge renun\u021b\u0103 la toate celelalte garan\u021bii de orice fel, fie c\u0103 sunt exprese sau implicite, statutare sau de alt\u0103 natur\u0103, inclusiv, f\u0103r\u0103 a se limita la garan\u021bii de comercializare, ne\xeendeplinirea obliga\u021biilor pentru un scop special. "),r.Tb(),r.Pb(109,"br"),r.Ub(110,"p"),r.Ec(111," Cele de mai sus nu afecteaz\u0103 vreo garan\u021bie care nu poate fi exclus\u0103 sau limitat\u0103 \xeen conformitate cu legisla\u021bia \xeen vigoare. "),r.Tb(),r.Tb(),r.Ub(112,"div",4),r.Ub(113,"h4"),r.Ec(114,"7. Limitarea r\u0103spunderii"),r.Tb(),r.Ub(115,"p"),r.Ec(116," BlooDoChallenge \u0219i membrii s\u0103i, nu vor fi responsabili pentru nici o pierdere sau daun\u0103, direct\u0103 sau indirect\u0103, daune speciale, consecin\u021biale sau punitive, inclusiv, f\u0103r\u0103 limitare, pierdere economic\u0103, pierdere sau deteriorare a mijloacelor electronice sau a datelor, sau alte pierderi rezult\xe2nd din: "),r.Tb(),r.Ub(117,"ol",5),r.Ub(118,"li"),r.Ec(119,"Accesul dvs. sau utilizarea serviciului."),r.Tb(),r.Ub(120,"li"),r.Ec(121,"Incapacitatea dvs. de a accesa sau utiliza serviciul."),r.Tb(),r.Ub(122,"li"),r.Ec(123,"Orice conduit\u0103 sau con\u021binut al oric\u0103rui ter\u021b al Serviciului."),r.Tb(),r.Ub(124,"li"),r.Ec(125,"Orice con\u021binut ob\u021binut de la sau prin intermediul Serviciului."),r.Tb(),r.Ub(126,"li"),r.Ec(127,"Accesul neautorizat, utilizarea sau modificarea transmisiilor sau a con\u021binutului dvs., fie c\u0103 se bazeaz\u0103 pe garan\u021bie, contract (inclusiv neglijen\u021b\u0103) sau orice alt\u0103 cerere legal\u0103, indiferent dac\u0103 am fost sau nu informa\u021bi despre posibilitatea unor astfel de daune \u0219i chiar dac\u0103 se constat\u0103 c\u0103 un remediu prezentat nu \u0219i-a \xeendeplinit scopul s\u0103u esen\u021bial."),r.Tb(),r.Tb(),r.Tb(),r.Ub(128,"div",4),r.Ub(129,"h4"),r.Ec(130,"8. Desp\u0103gubire"),r.Tb(),r.Ub(131,"p"),r.Ec(132," Sunte\u021bi de acord s\u0103 desp\u0103gubi\u021bi, s\u0103 ap\u0103ra\u021bi \u0219i s\u0103 folosi\u021bi inofensiv BlooDoChallenge, membrii s\u0103i, autoriza\u021bii de licen\u021b\u0103, furnizorii de licen\u021be, furnizorii \u0219i agen\u021bii \xeempotriva oric\u0103ror pierderi, daune, obliga\u021bii, costuri, ac\u021biuni sau cereri. Acestea includ, dar nu se limiteaz\u0103 la: "),r.Tb(),r.Ub(133,"ol",5),r.Ub(134,"li"),r.Ec(135,"Taxele legale \u0219i contabile rezultate din utilizarea serviciului dvs."),r.Tb(),r.Ub(136,"li"),r.Ec(137,"\xcenc\u0103lcarea dvs. a oricare dintre ace\u0219ti Termeni \u0219i condi\u021bii."),r.Tb(),r.Ub(138,"li"),r.Ec(139,"Nimic din ceea ce posta\u021bi sau \xeenc\u0103rca\u021bi la Serviciu \u0219i orice activitate legat\u0103 de contul dvs. Aceasta include orice conduit\u0103 neglijent\u0103 sau ilegal\u0103 de c\u0103tre dvs., orice persoan\u0103 sau entitate care acceseaz\u0103 Serviciul folosind contul dvs., dac\u0103 acest acces este ob\u021binut prin mijloace frauduloase sau ilegale."),r.Tb(),r.Tb(),r.Tb(),r.Ub(140,"div",4),r.Ub(141,"h4"),r.Ec(142,"9. Drepturi de proprietate intelectual\u0103 \u0219i m\u0103rci comerciale"),r.Tb(),r.Ub(143,"p"),r.Ec(144," Cu excep\u021bia cazului \xeen care se specific\u0103 altfel \xeen ace\u0219ti Termeni \u0219i Condi\u021bii, Serviciul \u0219i \xeentregul con\u021binut, caracteristici \u0219i func\u021bionalitate (inclusiv, f\u0103r\u0103 a se limita la, toate informa\u021biile, software-ul, textul, afi\u0219ajele, imaginile, media \u0219i designul, selec\u021bia \u0219i aranjarea acestora) , sunt de\u021binute de BlooDoChallenge, licen\u021bia\u021bii s\u0103i sau al\u021bi furnizori de astfel de materiale \u0219i sunt proteja\u021bi de drepturi de autor, m\u0103rci comerciale, brevete, secrete comerciale \u0219i alte drepturi de proprietate intelectual\u0103 sau de drepturi de proprietate europene \u0219i interna\u021bionale. Niciun drept, titlu sau interes pentru, sau c\u0103tre Serviciu nu v\u0103 este transferat \u0219i toate drepturile care nu v\u0103 sunt \xeen mod expres acordate \xeen ace\u0219ti Termeni \u0219i Condi\u021bii sunt rezervate de BlooDoChallenge. "),r.Tb(),r.Tb(),r.Ub(145,"div",4),r.Ub(146,"h4"),r.Ec(147,"10. Con\u021binutul utilizatorului"),r.Tb(),r.Ub(148,"p"),r.Ec(149," Por\u021biuni ale serviciului includ func\u021bii interactive, cum ar fi func\u021bii de mesagerie (notific\u0103ri), zone personalizate \u0219i alte zone care permit utilizatorilor \xeenregistra\u021bi s\u0103 posteze \u0219i s\u0103 afi\u0219eze mesaje, con\u021binut \u0219i alte materiale (colectiv, \u201eCon\u021binut utilizator\u201d). "),r.Tb(),r.Pb(150,"br"),r.Ub(151,"p"),r.Ec(152," BlooDoChallenge nu are nicio obliga\u021bie de a revizui vreun Con\u021binut al utilizatorului \u0219i nu \xee\u0219i asum\u0103 nicio responsabilitate sau r\u0103spundere cu privire la niciun con\u021binut al utilizatorului. Putem bloca, respinge \u0219i / sau elimina orice con\u021binut al utilizatorului \xeen orice moment. "),r.Tb(),r.Pb(153,"br"),r.Ub(154,"p"),r.Ec(155," Dumneavoastr\u0103 reprezenta\u021bi \u0219i garanta\u021bi c\u0103 de\u021bine\u021bi sau controla\u021bi toate drepturile asupra \xeentregului Con\u021binut al utilizatorului pe care \xeel posta\u021bi, afi\u0219a\u021bi sau transfera\u021bi prin intermediul Serviciului \u0219i c\u0103 ave\u021bi dreptul de a acorda licen\u021ba de mai jos pentru noi \u0219i pentru licen\u021bia\u021bi, succesori \u0219i atribuirile noastre. De asemenea, reprezenta\u021bi \u0219i garanta\u021bi c\u0103 tot con\u021binutul dvs. de utilizatori va respecta ace\u0219ti Termenii \u0219i condi\u021bii. \xcen\u021belege\u021bi \u0219i recunoa\u0219te\u021bi c\u0103 sunte\u021bi responsabil pentru orice con\u021binut al utilizatorului pe care \xeel trimite\u021bi, iar dvs., nu BlooDoChallenge, va fi responsabil pentru un astfel de con\u021binut al utilizatorului, inclusiv legalitatea, fiabilitatea, exactitatea acestuia. "),r.Tb(),r.Pb(156,"br"),r.Ub(157,"p"),r.Ec(158," Tot con\u021binutul utilizatorului pe care \xeel posta\u021bi, afi\u0219at sau transmis prin intermediul serviciului poate fi vizibil pentru al\u021bi utilizatori autoriza\u021bi din contul organiza\u021biei dvs. Prin furnizarea oric\u0103rui Con\u021binut utilizator, acorda\u021bi BlooDoChallenge \u0219i licen\u021bia\u021bilor s\u0103i, succesorilor \u0219i le atribui\u021bi dreptul de a utiliza, reproduce, modifica, efectua, afi\u0219a \u0219i distribui orice astfel de Con\u021binut utilizator, dar numai pentru (1) scopuri de operare \u0219i furnizare a Serviciului dvs. \u0219i organiza\u021biei dvs. \u0219i a altor utilizatori autoriza\u021bi din organiza\u021bia dvs., dac\u0103 este cazul \xeen func\u021bie de set\u0103rile contului sau de termenii Acordului cu clien\u021bii organiza\u021biei dvs. \u0219i (2) scopurile de afaceri interne ale BlooDoChallenge, inclusiv f\u0103r\u0103 limitare pentru analizarea utiliz\u0103rii \u0219i \xeembun\u0103t\u0103\u021birea Serviciului. "),r.Tb(),r.Tb(),r.Ub(159,"div",4),r.Ub(160,"h4"),r.Ec(161,"11. Diverse"),r.Tb(),r.Ub(162,"p"),r.Ec(163," \xcen cazul \xeen care o dispozi\u021bie a acestui TOS este considerat\u0103 de o instan\u021b\u0103 competent\u0103 ca fiind invalid\u0103, nul\u0103 sau neaplicabil\u0103, p\u0103r\u021bile convin c\u0103 instan\u021ba ar trebui s\u0103 se str\u0103duiasc\u0103 s\u0103 pun\u0103 \xeen practic\u0103 inten\u021biilor p\u0103r\u021bilor, a\u0219a cum se reflect\u0103 \xeen dispozi\u021bia aplicabil\u0103, \u0219i care nu afecteaz\u0103 valabilitatea \u0219i executarea oric\u0103rei dispozi\u021bii r\u0103mase. "),r.Tb(),r.Tb(),r.Ub(164,"div",4),r.Ub(165,"h5"),r.Ec(166,"Ultima actualizare: 13.07.2020"),r.Tb(),r.Tb(),r.Ub(167,"div",6),r.Ub(168,"a",7),r.Ec(169,"\xceNAPOI"),r.Tb(),r.Tb(),r.Tb())},styles:['.content-area[_ngcontent-%COMP%]{background:#f5f4f4;padding:5vw 0;overflow:hidden;font-family:Montserrat}.content-title[_ngcontent-%COMP%]{text-align:center;font-size:30px;padding-bottom:50px}.content-title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:30px;text-transform:uppercase;color:#232323;font-weight:400;position:relative;padding-bottom:25px}.content-title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]:before{content:"";left:50%;transform:translateX(-50%);bottom:0;position:absolute;width:50px;height:1px;background:#000}.content-title[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:24px;line-height:28px;text-align:center;max-width:750px;margin:auto;color:#727272;padding-top:23px}.content-title[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100px;width:100px}.content[_ngcontent-%COMP%]{margin:50px 5vw 30px}.content[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:22px;line-height:26px}.content[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%], .content[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{text-align:left;margin-bottom:15px}.content[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{font-weight:700}.content[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%], .content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;line-height:25px}.content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:justify;text-indent:4vw}.content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.content-area[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{padding:8px 0 0 5vw}.content-area[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:14px;line-height:24px;text-align:justify;padding-left:8px}.content-button[_ngcontent-%COMP%]{text-align:center;margin:auto;font-size:18px}.content-button[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-align:center;padding:5px 20px;border-radius:5px;border:1px solid #727272;background-color:#f5f4f4}']}),t})();var At=i("6+lR"),Ot=i("h91x"),Et=i("Q1IF"),Dt=i("mefp"),Pt=i("GXgC"),It=i("rgks");function Mt(t,e){1&t&&(r.Ub(0,"mat-error"),r.Ec(1),r.gc(2,"appText"),r.Tb()),2&t&&(r.Cb(1),r.Gc(" ",r.hc(2,1,"DeleteAccount_Reason_Required")," "))}const Rt=["mapBox"],Lt=["mapBox"],Nt=[{path:"accept-invitation",component:K},{path:"login",component:nt},{path:"recover-password",component:lt},{path:"delete-account/:id",component:(()=>{class t{constructor(t,e,i,n,r){this.formBuilder=t,this.securityService=e,this.textService=i,this.activatedRoute=n,this.snackBar=r}ngOnInit(){this.activatedRoute.params.subscribe(t=>{this.id=t.id}),this.deleteAccountForm=this.formBuilder.group({reason:["",T.v.required]})}submitForm(){if(this.deleteAccountForm.valid){const t={id:this.id,reason:this.deleteAccountForm.get("reason").value};this.securityService.deleteAccount(t).subscribe(t=>{if(0==t.length)this.onSnackbar(this.textService.getText("DeleteAccount_Success"));else for(var e=0;e<t.length;e++)"DeleteAccount_Request_Expired"==t[e].key&&this.onSnackbar(this.textService.getText("DeleteAccount_Request_Expired"))},t=>{this.onSnackbar(this.textService.getText("DeleteAccount_Error"))})}else this.onSnackbar(this.textService.getText("DeleteAccount_Form_Invalid"))}onSnackbar(t){this.snackBar.open(t,"",{duration:3e3})}}return t.\u0275fac=function(e){return new(e||t)(r.Ob(T.d),r.Ob(_),r.Ob(p.a),r.Ob(l.a),r.Ob(A.a))},t.\u0275cmp=r.Ib({type:t,selectors:[["app-delete-account"]],decls:23,vars:14,consts:[[1,"split-view"],[1,"container","left-view"],["src","/assets/img/login/logo.png","alt","BloodDo",1,"logo"],["src","/assets/img/login/login_image.png","alt","BloodDo",1,"login_image"],[1,"center-block","form","container","right-view"],[1,"title-logo"],["src","/assets/img/fav-icon.jpg","alt",""],[1,"title"],[1,"final-words"],[3,"formGroup","ngSubmit","keyup.enter"],["appearance","outline",1,"form-field"],["for","reason"],["matInput","","type","text","id","reason","formControlName","reason","required","","name","reason",1,"min-height-textarea"],[4,"ngIf"],["mat-button","","type","submit",1,"form-submit"]],template:function(t,e){1&t&&(r.Ub(0,"div",0),r.Ub(1,"div",1),r.Pb(2,"img",2),r.Pb(3,"img",3),r.Tb(),r.Ub(4,"div",4),r.Ub(5,"div",5),r.Pb(6,"img",6),r.Tb(),r.Ub(7,"h1",7),r.Ec(8),r.gc(9,"appText"),r.Tb(),r.Ub(10,"h4",8),r.Ec(11),r.gc(12,"appText"),r.Tb(),r.Ub(13,"form",9),r.bc("ngSubmit",function(){return e.submitForm()})("keyup.enter",function(){return e.submitForm()}),r.Ub(14,"mat-form-field",10),r.Ub(15,"mat-label",11),r.Ec(16),r.gc(17,"appText"),r.Tb(),r.Pb(18,"textarea",12),r.Dc(19,Mt,3,3,"mat-error",13),r.Tb(),r.Ub(20,"button",14),r.Ec(21),r.gc(22,"appText"),r.Tb(),r.Tb(),r.Tb(),r.Tb()),2&t&&(r.Cb(8),r.Fc(r.hc(9,6,"DeleteAccount_Title")),r.Cb(3),r.Fc(r.hc(12,8,"DeleteAccount_FinalWords")),r.Cb(2),r.lc("formGroup",e.deleteAccountForm),r.Cb(3),r.Fc(r.hc(17,10,"DeleteAccount_Reason")),r.Cb(3),r.lc("ngIf",e.deleteAccountForm.hasError("required","reason")),r.Cb(2),r.Gc(" ",r.hc(22,12,"DeleteAccount_Button_Text")," "))},directives:[T.x,T.n,T.g,O.c,O.f,E.b,T.c,T.m,T.f,T.t,d.l,M.b,O.b],pipes:[R.a],styles:[".split-view[_ngcontent-%COMP%]{display:flex;height:100%;width:100%}.left-view[_ngcontent-%COMP%]{max-width:50%;background:transparent linear-gradient(90deg,#ff2a73,#f6033d) 0 0 no-repeat padding-box;margin:0}.title[_ngcontent-%COMP%]{color:#ff2156;height:45px;padding-bottom:100px;font-weight:700}.final-words[_ngcontent-%COMP%]{color:#ff2156;padding-bottom:20px}.terms-policy[_ngcontent-%COMP%]{text-align:center;padding-bottom:30px}.form[_ngcontent-%COMP%]{width:600px;margin:auto}.form-submit[_ngcontent-%COMP%]{background:transparent linear-gradient(90deg,#ff2a73,#f6033d) 0 0 no-repeat padding-box;border-radius:30px;height:55px;width:100%;color:#fff;margin:50px 0;font-weight:700;font-family:Poppins,sans-serif}.title-logo[_ngcontent-%COMP%]{display:none;text-align:center;padding-bottom:50px}.title-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100px;width:100px}.logo[_ngcontent-%COMP%]{top:15%;height:50px}.login_image[_ngcontent-%COMP%], .logo[_ngcontent-%COMP%]{display:block;position:relative;margin-left:auto;margin-right:auto}.login_image[_ngcontent-%COMP%]{top:35%;max-height:70%;max-width:100%}a[_ngcontent-%COMP%]{color:#ff2156;font-weight:700}a[_ngcontent-%COMP%]:hover{color:#ff1493}.min-height-textarea[_ngcontent-%COMP%]{min-height:51px}@media (max-width:1025px){.left-view[_ngcontent-%COMP%]{display:none}.title-logo[_ngcontent-%COMP%]{display:block}.title[_ngcontent-%COMP%]{text-align:center}}"]}),t})()},{path:"reset-password",component:vt},{path:"change-email",component:kt},{path:"privacy",component:St},{path:"terms",component:Tt},{path:"",loadChildren:()=>i.e(10).then(i.bind(null,"TDBs")).then(t=>t.DashboardModule)},{path:"stats-ro",loadChildren:()=>i.e(16).then(i.bind(null,"Vb5T")).then(t=>t.StatsModule)},{path:"donor",loadChildren:()=>Promise.all([i.e(0),i.e(12)]).then(i.bind(null,"MCsL")).then(t=>t.DonorModule),canLoad:[Dt.a]},{path:"partner",loadChildren:()=>Promise.all([i.e(0),i.e(15)]).then(i.bind(null,"Bms8")).then(t=>t.PartnerModule)},{path:"cts",loadChildren:()=>Promise.all([i.e(2),i.e(0),i.e(7)]).then(i.bind(null,"x4y/")).then(t=>t.CtsModule),canLoad:[Ot.a]},{path:"ngo",loadChildren:()=>Promise.all([i.e(2),i.e(0),i.e(14)]).then(i.bind(null,"77bt")).then(t=>t.NgoModule),canLoad:[Et.a]},{path:"stem",loadChildren:()=>Promise.all([i.e(0),i.e(17)]).then(i.bind(null,"joCq")).then(t=>t.StemModule),canLoad:[Pt.a]},{path:"admin",loadChildren:()=>Promise.all([i.e(0),i.e(9)]).then(i.bind(null,"jkDv")).then(t=>t.AdminModule),canLoad:[At.a]},{path:"diagnostics",loadChildren:()=>Promise.all([i.e(2),i.e(11)]).then(i.bind(null,"SnBo")).then(t=>t.DiagnosticsModule)},{path:"inht",loadChildren:()=>i.e(13).then(i.bind(null,"m7D/")).then(t=>t.INHTModule),canLoad:[It.a]},{path:"angular/cts",redirectTo:"cts"},{path:"participa-alaturi-de-noi-in-comunitate",component:(()=>{class t{constructor(){this.lat=47.0746479,this.lon=21.902425,this.zoom=10,this.coordinates=new google.maps.LatLng(this.lat,this.lon),this.mapOptions={center:this.coordinates,zoom:this.zoom}}ngOnInit(){}ngAfterViewInit(){this.mapInitializer(),$(document).ready(function(){$(".slider_moblie, .feature_mobile_slider, .clients_slider").length&&$(".slider_moblie, .feature_mobile_slider, .clients_slider").owlCarousel({loop:!0,margin:0,items:1,nav:!1,autoplay:!0,smartSpeed:1500}),$(".sponsor_slider").length&&$(".sponsor_slider").owlCarousel({loop:!0,margin:0,items:4,nav:!1,autoplay:!0,smartSpeed:1500,responsiveClass:!0,responsive:{0:{items:1},360:{items:2},550:{items:3},767:{items:4}}}),$(".3d_screenshot_inner").flipster({scrollwheel:!1,spacing:-.7,style:"coverflow",loop:!0,start:"center",touch:!0}),$(".benefits_right .video_row iframe").css({height:$(".benefits_left").height()+"px"}),$(".benefits_right .video_row iframe").css({width:$(".benefits_left").width()+"px"});var t={pop:null,frame:null,popBox:null,closeBut:null,powerUp:function(){var e=document.createElement("link"),i=document.head;e.rel="stylesheet",e.type="text/css",e.href="https://formular230.ro/share/css",e.addEventListener("load",t.initAll),window.addEventListener("message",t.comResize),window.addEventListener("resize",t.comPortrait),i.appendChild(e)},initAll:function(){t.initPop();var e=document.body.querySelector(".f230ro-formular");if(e&&e instanceof Element)return t.getForm(e),window.addEventListener("resize",t.comOffset),void document.addEventListener("scroll",t.comOffset);var i=document.body.querySelectorAll(".f230ro-lansare");if(i&&i.length>0)for(var n=0,r=i.length;n<r;n++)i[n].addEventListener("click",function(){t.getForm(null)})},div:function(t,e){var i=document.createElement("div");return i.className=t,e&&e.appendChild(i),i},highestZ:function(t){if(t){for(var e,i=1,n=document.getElementsByTagName("*"),r=0,s=n.length;r<s;r++)e=Number.parseInt(document.defaultView.getComputedStyle(n[r],null).getPropertyValue("z-index"),10),n[r]!=t&&e>i&&(i=e);return(!t.style.zIndex||t.style.zIndex/1<i/1)&&(t.style.zIndex=++i),i}},getForm:function(e){e||(e=t.popBox,t.pop.className=t.pop.className.replace(" f230ro-show",""),t.pop.style.display="none"),t.frame&&t.frame.parentNode.removeChild(t.frame),t.frame=document.createElement("iframe"),t.frame.addEventListener("load",t.frameLoad),t.frame.src="https://formular230.ro/api/share/1cefff7640",e.appendChild(t.frame)},frameLoad:function(e){t.comRegister();var i=e.target.parentNode;i.className.indexOf("formular")<0?(setTimeout(t.comResizeRequest,100),t.showPop()):(setTimeout(t.comInit,100),i.className+=" f230ro-show")},initPop:function(){t.pop=t.div("f230ro-pop-bg",document.body),t.highestZ(t.pop),t.pop.style.display="none",t.popBox=t.div("f230ro-pop",t.pop),t.closeBut=t.div("f230ro-pop-close",t.popBox),t.closeBut.addEventListener("mousedown",t.closePopDown),t.pop.addEventListener("mousedown",t.closePopDown),t.closeBut.addEventListener("mouseup",t.closePopUp),t.pop.addEventListener("mouseup",t.closePopUp)},canClose:!1,closePopDown:function(e){t.canClose=e.target===t.pop||e.target===t.closeBut},closePopUp:function(e){t.canClose&&t.closePop(),t.canClose=!1},closePop:function(){t.pop.className=t.pop.className.replace(" f230ro-show",""),setTimeout(t.closedPop,600)},closedPop:function(){t.pop.style.display="none"},showPop:function(){t.pop.className=t.pop.className.replace(" f230ro-show",""),t.pop.style.display="block",setTimeout(t.shownPop,50)},shownPop:function(){t.pop.className.indexOf(" f230ro-show")<0&&(t.pop.className+=" f230ro-show")},comPortraitLast:!1,comOffsetTimeout:null,comRegister:function(){t.frame.contentWindow.postMessage(0,"https://formular230.ro")},comInit:function(){t.comResizeRequest(),t.comPortrait(),t.comOffset()},comResizeRequest:function(){t.frame.contentWindow.postMessage(1,"https://formular230.ro")},comResize:function(e){t.frame&&(!t.frame||!e.origin||"https://formular230.ro"!==e.origin||e.data.indexOf("px")<0||(t.frame.style.height=e.data))},comOffset:function(){if(t.frame){t.comOffsetTimeout||(t.comOffsetTimeout=window.setTimeout(t.comOffset,400));var e=t.frame.getBoundingClientRect();t.frame.contentWindow.postMessage([2,e.y,window.innerHeight],"https://formular230.ro")}},comPortrait:function(){var e=window.innerHeight>window.innerWidth;e!=t.comPortraitLast&&(t.comPortraitLast=e,t.frame.contentWindow.postMessage([3,e],"https://formular230.ro"))}};t.powerUp()})}mapInitializer(){this.map=new google.maps.Map(this.gmap.nativeElement,this.mapOptions),this.marker=new google.maps.Marker({position:this.coordinates,map:this.map}),this.marker.setMap(this.map)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Ib({type:t,selectors:[["app-donate"]],viewQuery:function(t,e){if(1&t&&r.Kc(Rt,1),2&t){let t;r.sc(t=r.cc())&&(e.gmap=t.first)}},decls:477,vars:0,consts:[[1,"our_service_area","purple_service",2,"padding","50px"],[1,"container"],[1,"main_title","purple_title"],[1,"row"],[1,"col-md-3"],[1,"service_item"],[1,"lnr","lnr-heart-pulse"],[1,"bloodo-icon","bloodo-icon-accident"],[1,"bloodo-icon","bloodo-icon-blood"],[1,"bloodo-icon","bloodo-icon-corona"],[1,"our_service_area","download_area","purple_service",2,"padding","50px"],["href","https://formular230.ro/asociatia-medx","target","_blank"],["href","https://www.anaf.ro/anaf/internet/ANAF/servicii_online/inreg_inrol_pf_pj_spv","target","_blank"],["href","https://www.facebook.com/bloodochallenge","target","_blank"],["href","https://www.instagram.com/bloodochallenge/","target","_blank"],[2,"text-align","center"],[2,"color","#ff4d4d"],["id","feature",1,"our_service_area","our_service_area","purple_feature",2,"padding","50px"],[1,"col-md-6"],[1,"right_side_feature"],[1,"media"],[1,"media-left"],[1,"lnr","lnr-earth"],[1,"media-body"],[1,"lnr","lnr-laptop-phone"],[1,"lnr","lnr-checkmark-circle"],[1,"lnr","lnr-thumbs-up"],[1,"lnr","lnr-apartment"],[1,"lnr","lnr-funnel"],[1,"lnr","lnr-book"],[1,"lnr","lnr-alarm"],[1,"container",2,"padding-top","75px"],[1,"lnr","lnr-dice"],["id","download",1,"download_area","purple_dd"],[1,"download_inner"],["href","https://play.google.com/store/apps/details?id=com.fourgirlsforchange.bloodochallenge","target","_blank"],["src","/assets/img/download-2.png","alt",""],["href","https://apps.apple.com/ro/app/bloodochallenge/id1543200460?l=ro#?platform=iphone","target","_blank"],["src","/assets/img/download-1.png","alt",""],["id","about",1,"our_benefits_area","display_table","purple_benefits",2,"background-color","#fff"],[1,"our_benefits_inner","display_table_row"],[1,"benefits_left","display_table_cell"],["src","/assets/img/about/about1.jpg","alt",""],[1,"benefits_right","display_table_cell"],[1,"benefits_content"],[1,"content_title","purple_content"],["target","_blank","href","https://technovationchallenge.org/"],["target","_blank","href","https://www.facebook.com/TechnovationGirlsRomania/"],["target","_blank","href","https://adfaber.org/"],[1,"our_benefits_area","display_table","purple_benefits",2,"background-color","#fff"],["target","_blank","href","https://www.facebook.com/CentrulDeTransfuzieSanguinaOradea/"],["src","/assets/img/about/about2.jpg","alt",""],["id","contact",1,"map_area","purple_map"],[1,"mapBox","row","m0"],["mapBox",""],[1,"contact_info"],[1,"contact_form_left",2,"display","none"],["action","contact_process.php","method","post","id","contactForm",1,"comment_form_inner"],[1,"form-group","col-md-12"],["type","text","id","name","name","name","placeholder","Name",1,"form-control"],["type","email","id","email","name","email","placeholder","Email",1,"form-control"],["type","text","id","subject","name","subject","placeholder","Subject",1,"form-control"],["name","message","id","message","rows","1","placeholder","Message",1,"form-control"],["type","submit",1,"btn","btn-default","submit_btn","purple_submit"],["id","success"],["id","error"],[1,"contact_details"],[1,"fa","fa-map-marker"],[1,"media",2,"display","none"],[1,"fa","fa-phone"],[1,"media-left",2,"padding-right","31px"],[1,"fa","fa-envelope"],[1,"media-left",2,"padding-right","34px"],[1,"fa","fa-clock-o"],["href","https://www.facebook.com/BlooDoChallenge-114915456928304","target","_blank"],[1,"fa","fa-facebook"],["href","https://twitter.com/do_bloo","target","_blank"],[1,"fa","fa-twitter"],[1,"fa","fa-instagram"],[1,"footer_area","purple_footer"],[1,"pull-left"],["aria-hidden","true",1,"fa","fa-heart-o"],["href","https://colorlib.com","target","_blank"],[1,"pull-right"],["href","terms"],["href","privacy"]],template:function(t,e){1&t&&(r.Ub(0,"section",0),r.Ub(1,"div",1),r.Ub(2,"div",2),r.Ub(3,"h2"),r.Ec(4,"Facilit\u0103\u021bi pentru comunitate"),r.Tb(),r.Tb(),r.Ub(5,"div",3),r.Ub(6,"div",4),r.Ub(7,"div",5),r.Pb(8,"i",6),r.Ub(9,"h3"),r.Ec(10,"Carnetul donatorului"),r.Tb(),r.Ub(11,"p"),r.Ec(12,"Digitaliz\u0103m carnetul donatorului pentru ca tu, donatorul, s\u0103-l ai cu tine tot timpul. \xcen buzunar!"),r.Tb(),r.Tb(),r.Tb(),r.Ub(13,"div",4),r.Ub(14,"div",5),r.Pb(15,"i",7),r.Ub(16,"h3"),r.Ec(17,"Campanii de donare"),r.Tb(),r.Ub(18,"p"),r.Ec(19,"Construim interfa\u021ba centrele de transfuzie cu donatorul, astfel ele pot comunica mai u\u0219or nevoie de s\xe2nge"),r.Tb(),r.Tb(),r.Tb(),r.Ub(20,"div",4),r.Ub(21,"div",5),r.Pb(22,"i",8),r.Ub(23,"h3"),r.Ec(24,"Validarea don\u0103rii"),r.Tb(),r.Ub(25,"p"),r.Ec(26,"Dup\u0103 donare, rezultatele analizelor \xee\u021bi sunt interpretate \u0219i trimise pe telefon"),r.Tb(),r.Tb(),r.Tb(),r.Ub(27,"div",4),r.Ub(28,"div",5),r.Pb(29,"i",9),r.Ub(30,"h3"),r.Ec(31,"Informa\u021bii donare"),r.Tb(),r.Ub(32,"p"),r.Ec(33,"E\u0219ti informat mereu de timpul \xeentre don\u0103ri, campanii c\xe2t \u0219i ce trebuie s\u0103 faci pentru a putea dona"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(34,"section",10),r.Ub(35,"div",1),r.Ub(36,"div",2),r.Ub(37,"h2"),r.Ec(38,"Redirec\u021bioneaz\u0103 gratuit 3.5% din impozitul pe venit"),r.Tb(),r.Tb(),r.Ub(39,"p"),r.Ec(40,' "Num\u0103rul mediu de don\u0103ri din regiunea european\u0103 variaz\u0103 de la 6 la 67,6/ 1000 de locuitori. Se estimeaz\u0103 c\u0103 o \u021bar\u0103 trebuie s\u0103 aib\u0103 o medie minim\u0103 de 20-25 de donatori la 1000 de locuitori, pentru ca stocul de s\xe2nge s\u0103 poat\u0103 acoperi nevoia existent\u0103. \xcen Rom\xe2nia, anual, mai pu\u021bin de 2% din popula\u021bie doneaz\u0103 s\xe2nge, de aproape 4 ori mai pu\u021bin dec\xe2t media european\u0103." - World Health Organization '),r.Tb(),r.Pb(41,"br"),r.Ub(42,"p"),r.Ec(43," Misiunea noastr\u0103 este s\u0103 acceler\u0103m digitalizarea sistemului medical din Rom\xe2nia, astfel \xeenc\xe2t beneficiul s\u0103 ajung\u0103 la c\xe2t mai mul\u021bi oameni. Aici \xeencepem cu donarea de s\xe2nge. "),r.Tb(),r.Pb(44,"br"),r.Ub(45,"p"),r.Ub(46,"b"),r.Ec(47," Dac\u0103 te reg\u0103se\u0219ti \u0219i tu printre noi, ne po\u021bi ajuta s\u0103 ducem mai departe efortul \xeempreun\u0103, prin a redirec\u021biona cei 3.5% din impozitul pe venit \xeen 4 simplu pa\u0219i. "),r.Tb(),r.Tb(),r.Pb(48,"br"),r.Ub(49,"p"),r.Ec(50," 1. Accesezi "),r.Ub(51,"a",11),r.Ec(52,"https://formular230.ro/asociatia-medx"),r.Tb(),r.Ec(53," (con\u021bine datele asocia\u021biei pre-completate) "),r.Tb(),r.Ub(54,"p"),r.Ec(55," 2. Completezi datele tale \xeen formular. Apoi \xeel semnezi (func\u021bioneaz\u0103 \u0219i de pe telefon). "),r.Tb(),r.Ub(56,"p"),r.Ec(57," 3. Generezi PDF-ul prin ap\u0103sarea butonului de la finalul formularului. (\xeen prime\u0219ti \u0219i pe email) "),r.Tb(),r.Ub(58,"p"),r.Ec(59," 4. \xcel depui personal la ANAF (po\u021bi \u0219i prin "),r.Ub(60,"a",12),r.Ec(61,"SPV"),r.Tb(),r.Ec(62,") sau ni-l trimi\u021bi nou\u0103 pe adresa "),r.Ub(63,"b"),r.Ec(64,"contact@bloodochallenge.com"),r.Tb(),r.Ec(65," \u0219i ne ocup\u0103m noi mai departe "),r.Tb(),r.Pb(66,"br"),r.Ub(67,"b"),r.Ec(68," Not\u0103: Data limit\u0103 de trimitere a formularului este 24 mai 2024. "),r.Tb(),r.Pb(69,"br"),r.Pb(70,"br"),r.Ub(71,"p"),r.Ec(72," Pentru mai multe detalii, poti sa ne urmaresti activitatea pe pagina de facebook "),r.Ub(73,"a",13),r.Ec(74,"https://www.facebook.com/bloodochallenge"),r.Tb(),r.Ec(75," \u0219i instagram "),r.Ub(76,"a",14),r.Ec(77,"https://www.instagram.com/bloodochallenge/"),r.Tb(),r.Tb(),r.Pb(78,"br"),r.Ub(79,"b"),r.Ec(80," \xcen caz c\u0103 dore\u0219ti s\u0103 contribui \u0219i mai mult, acum po\u021bi prin transfer bancar: "),r.Tb(),r.Ub(81,"p"),r.Ec(82," Beneficiar: Asociatia MedX "),r.Tb(),r.Ub(83,"p"),r.Ec(84," IBAN: RO78BTRLRONCRT0603530701 "),r.Tb(),r.Ub(85,"p"),r.Ec(86," Banca: Banca Transilvania "),r.Tb(),r.Ub(87,"p"),r.Ec(88," Cod fiscal: 44208837 "),r.Tb(),r.Ub(89,"div",15),r.Ub(90,"b",16),r.Ec(91," \xcempreun\u0103 am reu\u0219it toate aceste rezultate incredibile. Ajut\u0103-ne s\u0103 ducem povestea mai departe. "),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(92,"section",17),r.Ub(93,"div",1),r.Ub(94,"div",2),r.Ub(95,"h2"),r.Ec(96,"REZULTATE 2023"),r.Tb(),r.Tb(),r.Ub(97,"div",3),r.Ub(98,"div",18),r.Ub(99,"div",19),r.Ub(100,"div",20),r.Ub(101,"div",21),r.Pb(102,"i",22),r.Tb(),r.Ub(103,"div",23),r.Ub(104,"h4"),r.Ec(105,"2 \u021b\u0103ri"),r.Tb(),r.Ub(106,"p"),r.Ec(107,"\xeen care am ajuns la donatori, centre, parteneri \u0219i organiza\u021bii (Rom\xe2nia, Republica Moldova)"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(108,"div",19),r.Ub(109,"div",20),r.Ub(110,"div",21),r.Pb(111,"i",24),r.Tb(),r.Ub(112,"div",23),r.Ub(113,"h4"),r.Ec(114,"30+ organiza\u021bii"),r.Tb(),r.Ub(115,"p"),r.Ec(116,"ce sprijin\u0103 activ donarea de s\xe2nge prin campanii de donare \u0219i informare asupra beneficiilor don\u0103rii"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(117,"div",19),r.Ub(118,"div",20),r.Ub(119,"div",21),r.Pb(120,"i",25),r.Tb(),r.Ub(121,"div",23),r.Ub(122,"h4"),r.Ec(123,"600+ campanii de donare"),r.Tb(),r.Ub(124,"p"),r.Ec(125,"derulate prin platforma BlooDoChallenge de c\u0103tre centrele de transfuzie sanguin\u0103 \u0219i organiza\u021bii"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(126,"div",19),r.Ub(127,"div",20),r.Ub(128,"div",21),r.Pb(129,"i",26),r.Tb(),r.Ub(130,"div",23),r.Ub(131,"h4"),r.Ec(132,"100.000+ mesaje de mul\u021bumire"),r.Tb(),r.Ub(133,"p"),r.Ec(134,"trimise c\u0103tre donatori \xeen semn de apreciere pentru gestul altruist"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(135,"div",18),r.Ub(136,"div",19),r.Ub(137,"div",20),r.Ub(138,"div",21),r.Pb(139,"i",27),r.Tb(),r.Ub(140,"div",23),r.Ub(141,"h4"),r.Ec(142,"60+ centre de transfuzie sanguin\u0103"),r.Tb(),r.Ub(143,"p"),r.Ec(144,"\xeenrolate \u0219i dotate cu infrastructura necesar\u0103 pentru a-\u0219i putea desf\u0103\u0219ura activitatea prin platform\u0103"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(145,"div",19),r.Ub(146,"div",20),r.Ub(147,"div",21),r.Pb(148,"i",28),r.Tb(),r.Ub(149,"div",23),r.Ub(150,"h4"),r.Ec(151,"70+ parteneri"),r.Tb(),r.Ub(152,"p"),r.Ec(153,"\xeen platform\u0103 ce sprijin\u0103 donarea de s\xe2nge pe Rom\xe2nia \u0219i Republica Moldova"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(154,"div",19),r.Ub(155,"div",20),r.Ub(156,"div",21),r.Pb(157,"i",29),r.Tb(),r.Ub(158,"div",23),r.Ub(159,"h4"),r.Ec(160,"3.000+ persoane"),r.Tb(),r.Ub(161,"p"),r.Ec(162,"\xeenscrise \xeen registru celule stem hematopoietice din Rom\xe2nia prin intermediul platformei"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(163,"div",19),r.Ub(164,"div",20),r.Ub(165,"div",21),r.Pb(166,"i",30),r.Tb(),r.Ub(167,"div",23),r.Ub(168,"h4"),r.Ec(169,"400.000+ notific\u0103ri"),r.Tb(),r.Ub(170,"p"),r.Ec(171,"trimise c\u0103tre donatori ca reminder pentru donare de s\xe2nge \u0219i aferez\u0103"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(172,"div",31),r.Ub(173,"div",2),r.Ub(174,"h2"),r.Ec(175,"REZULTATE 2022"),r.Tb(),r.Tb(),r.Ub(176,"div",3),r.Ub(177,"div",18),r.Ub(178,"div",19),r.Ub(179,"div",20),r.Ub(180,"div",21),r.Pb(181,"i",22),r.Tb(),r.Ub(182,"div",23),r.Ub(183,"h4"),r.Ec(184,"2 \u021b\u0103ri"),r.Tb(),r.Ub(185,"p"),r.Ec(186,"\xeen care am ajuns la donatori, centre, parteneri \u0219i organiza\u021bii (Rom\xe2nia, Republica Moldova)"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(187,"div",19),r.Ub(188,"div",20),r.Ub(189,"div",21),r.Pb(190,"i",24),r.Tb(),r.Ub(191,"div",23),r.Ub(192,"h4"),r.Ec(193,"20+ organiza\u021bii"),r.Tb(),r.Ub(194,"p"),r.Ec(195,"ce sprijin\u0103 activ donarea de s\xe2nge prin campanii de donare \u0219i informare asupra beneficiilor don\u0103rii"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(196,"div",19),r.Ub(197,"div",20),r.Ub(198,"div",21),r.Pb(199,"i",25),r.Tb(),r.Ub(200,"div",23),r.Ub(201,"h4"),r.Ec(202,"350+ campanii de donare"),r.Tb(),r.Ub(203,"p"),r.Ec(204,"derulate prin platforma BlooDoChallenge de c\u0103tre centrele de transfuzie sanguin\u0103 \u0219i organiza\u021bii"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(205,"div",19),r.Ub(206,"div",20),r.Ub(207,"div",21),r.Pb(208,"i",26),r.Tb(),r.Ub(209,"div",23),r.Ub(210,"h4"),r.Ec(211,"45.000+ mesaje de mul\u021bumire"),r.Tb(),r.Ub(212,"p"),r.Ec(213,"trimise c\u0103tre donatori \xeen semn de apreciere pentru gestul altruist"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(214,"div",18),r.Ub(215,"div",19),r.Ub(216,"div",20),r.Ub(217,"div",21),r.Pb(218,"i",27),r.Tb(),r.Ub(219,"div",23),r.Ub(220,"h4"),r.Ec(221,"50+ centre de transfuzie sanguin\u0103"),r.Tb(),r.Ub(222,"p"),r.Ec(223,"\xeenrolate \u0219i dotate cu infrastructura necesar\u0103 pentru a-\u0219i putea desf\u0103\u0219ura activitatea prin platform\u0103"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(224,"div",19),r.Ub(225,"div",20),r.Ub(226,"div",21),r.Pb(227,"i",28),r.Tb(),r.Ub(228,"div",23),r.Ub(229,"h4"),r.Ec(230,"50+ parteneri"),r.Tb(),r.Ub(231,"p"),r.Ec(232,"\xeen platform\u0103 ce sprijin\u0103 donarea de s\xe2nge pe Rom\xe2nia \u0219i Republica Moldova"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(233,"div",19),r.Ub(234,"div",20),r.Ub(235,"div",21),r.Pb(236,"i",29),r.Tb(),r.Ub(237,"div",23),r.Ub(238,"h4"),r.Ec(239,"1.000+ persoane"),r.Tb(),r.Ub(240,"p"),r.Ec(241,"\xeenscrise \xeen registru celule stem hematopoietice din Rom\xe2nia prin intermediul platformei"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(242,"div",19),r.Ub(243,"div",20),r.Ub(244,"div",21),r.Pb(245,"i",30),r.Tb(),r.Ub(246,"div",23),r.Ub(247,"h4"),r.Ec(248,"110.000+ notific\u0103ri"),r.Tb(),r.Ub(249,"p"),r.Ec(250,"trimise c\u0103tre donatori ca reminder pentru donare de s\xe2nge \u0219i aferez\u0103"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(251,"div",31),r.Ub(252,"div",2),r.Ub(253,"h2"),r.Ec(254,"REZULTATE 2021"),r.Tb(),r.Tb(),r.Ub(255,"div",3),r.Ub(256,"div",18),r.Ub(257,"div",19),r.Ub(258,"div",20),r.Ub(259,"div",21),r.Pb(260,"i",27),r.Tb(),r.Ub(261,"div",23),r.Ub(262,"h4"),r.Ec(263,"25+ centre de transfuzie sanguin\u0103"),r.Tb(),r.Ub(264,"p"),r.Ec(265,"\xeenrolate \u0219i dotate cu infrastructura necesar\u0103 pentru a-\u0219i putea desf\u0103\u0219ura activitatea prin platform\u0103"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(266,"div",19),r.Ub(267,"div",20),r.Ub(268,"div",21),r.Pb(269,"i",24),r.Tb(),r.Ub(270,"div",23),r.Ub(271,"h4"),r.Ec(272,"+10 organiza\u021bii"),r.Tb(),r.Ub(273,"p"),r.Ec(274,"ce sprijin\u0103 activ donarea de s\xe2nge prin campanii de donare \u0219i informare asupra beneficiilor don\u0103rii"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(275,"div",19),r.Ub(276,"div",20),r.Ub(277,"div",21),r.Pb(278,"i",26),r.Tb(),r.Ub(279,"div",23),r.Ub(280,"h4"),r.Ec(281,"15.000+ mesaje de mul\u021bumire"),r.Tb(),r.Ub(282,"p"),r.Ec(283,"trimise c\u0103tre donatori"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(284,"div",18),r.Ub(285,"div",19),r.Ub(286,"div",20),r.Ub(287,"div",21),r.Pb(288,"i",25),r.Tb(),r.Ub(289,"div",23),r.Ub(290,"h4"),r.Ec(291,"90+ campanii de donare"),r.Tb(),r.Ub(292,"p"),r.Ec(293,"derulate prin platforma BlooDoChallenge de c\u0103tre centrele de transfuzie sanguin\u0103 \u0219i organiza\u021bii din Rom\xe2nia"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(294,"div",19),r.Ub(295,"div",20),r.Ub(296,"div",21),r.Pb(297,"i",28),r.Tb(),r.Ub(298,"div",23),r.Ub(299,"h4"),r.Ec(300,"30+ parteneri"),r.Tb(),r.Ub(301,"p"),r.Ec(302,"\xeen platform\u0103 ce sprijin\u0103 donarea de s\xe2nge"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(303,"div",19),r.Ub(304,"div",20),r.Ub(305,"div",21),r.Pb(306,"i",32),r.Tb(),r.Ub(307,"div",23),r.Ub(308,"h4"),r.Ec(309,"9.000+ don\u0103ri procesate"),r.Tb(),r.Ub(310,"p"),r.Ec(311,"spre validare \u0219i donatori notifica\u021bi de \xeendat\u0103"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(312,"section",33),r.Ub(313,"div",1),r.Ub(314,"div",34),r.Ub(315,"h3"),r.Ec(316,"Descarc\u0103 acum"),r.Tb(),r.Ub(317,"p"),r.Ec(318," Descarc\u0103 acum aplica\u021bia \u0219i al\u0103tur\u0103-ni-te clubului donatorilor de s\xe2nge!"),r.Pb(319,"br"),r.Ec(320," Aplica\u021bia e disponibil\u0103 pe sisteme de operare Android 5 \u0219i iOS 13 sau mai recente. "),r.Tb(),r.Ub(321,"a",35),r.Pb(322,"img",36),r.Tb(),r.Ub(323,"a",37),r.Pb(324,"img",38),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(325,"section",39),r.Ub(326,"div",40),r.Ub(327,"div",41),r.Pb(328,"img",42),r.Tb(),r.Ub(329,"div",43),r.Ub(330,"div",44),r.Ub(331,"div",45),r.Ub(332,"h2"),r.Ec(333,"Despre noi"),r.Tb(),r.Tb(),r.Ub(334,"p"),r.Ec(335," Suntem un grup de tineri voluntari din Oradea ce ne-am propus s\u0103 unim comunit\u0103\u021bile locale \xeen jurul unei aplica\u021bii mobile prin intermediul c\u0103reia s\u0103 se distribuie activ \u0219i controlat informa\u021bii legate despre nevoia mare de s\xe2nge cu care se confrunt\u0103 centrele de transfuzie. "),r.Pb(336,"br"),r.Pb(337,"br"),r.Ec(338," Ini\u021biativa noastr\u0103 a pornit de la participarea \xeen cadrul competi\u021biei interna\u021bionale de tehnologie \u0219i antreprenoriat "),r.Ub(339,"b"),r.Ub(340,"a",46),r.Ec(341,"Technovation"),r.Tb(),r.Tb(),r.Ec(342,", competi\u021bie ce se desf\u0103\u0219oar\u0103 \xeen fiecare an la nivel mondial \u0219i care este promovat\u0103 \xeen Rom\xe2nia de c\u0103tre "),r.Ub(343,"b"),r.Ub(344,"a",47),r.Ec(345,"Technovation Girls Romania"),r.Tb(),r.Tb(),r.Ec(346," \xeempreun\u0103 cu "),r.Ub(347,"b"),r.Ub(348,"a",48),r.Ec(349,"Adfaber.org"),r.Tb(),r.Tb(),r.Ec(350,". "),r.Pb(351,"br"),r.Pb(352,"br"),r.Ec(353," Tema concursului fiind "),r.Ub(354,"b"),r.Ec(355,"rezolvarea unei probleme locale prin intermediul tehnologiei"),r.Tb(),r.Ec(356,". "),r.Pb(357,"br"),r.Pb(358,"br"),r.Ec(359," \xcempreun\u0103 am reu\u0219it s\u0103 c\xe2\u0219tigam faza na\u021bional\u0103 a concursului la Bucure\u0219ti \xeen luna mai 2019 propun\xe2ndu-ne s\u0103 ducem mai departe aplica\u021bia construit\u0103 \u0219i s\u0103 ajut\u0103m comunitatea local\u0103. "),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(360,"section",49),r.Ub(361,"div",40),r.Ub(362,"div",43),r.Ub(363,"div",44),r.Ub(364,"div",45),r.Ub(365,"h2"),r.Ec(366,"Echipa"),r.Tb(),r.Tb(),r.Ub(367,"p"),r.Ec(368," Echipa a fost format\u0103 din 4 fete de liceu: Paula, Cosmina, Alexandra, Maria \u0219i mentorul: Alex. "),r.Pb(369,"br"),r.Pb(370,"br"),r.Ec(371," Astfel, pentru a reu\u0219i s\u0103 ne punem ideea \xeen aplicare, ne-am bucurat de sprijinul \u0219i ajutorul voluntarilor din diverse domenii care s-au al\u0103turat echipei. "),r.Pb(372,"br"),r.Pb(373,"br"),r.Ec(374," Printre cei mai activ implica\u021bi se remarc\u0103: Vlad, C\u0103lin, Simina, Norbert, Alexandra, Andrei, Ionu\u021b, Titus, Diana. "),r.Pb(375,"br"),r.Pb(376,"br"),r.Ec(377," Ne-am bucurat, de asemenea, de sprijinul \u0219i deschiderea "),r.Ub(378,"b"),r.Ub(379,"a",50),r.Ec(380,"Centrului de transfuzie sanguin\u0103 Oradea"),r.Tb(),r.Tb(),r.Ec(381," \xeen aceast\u0103 ini\u021biativ\u0103 \u0219i \xeen special din partea Ligiei \u0219i a lui Beatrice. "),r.Pb(382,"br"),r.Pb(383,"br"),r.Tb(),r.Tb(),r.Tb(),r.Ub(384,"div",41),r.Pb(385,"img",51),r.Tb(),r.Tb(),r.Tb(),r.Ub(386,"section",52),r.Pb(387,"div",53,54),r.Ub(389,"div",55),r.Ub(390,"div",1),r.Ub(391,"div",3),r.Ub(392,"div",18),r.Ub(393,"div",56),r.Ub(394,"div",3),r.Ub(395,"form",57),r.Ub(396,"div",58),r.Pb(397,"input",59),r.Tb(),r.Ub(398,"div",58),r.Pb(399,"input",60),r.Tb(),r.Ub(400,"div",58),r.Pb(401,"input",61),r.Tb(),r.Ub(402,"div",58),r.Pb(403,"textarea",62),r.Tb(),r.Ub(404,"div",58),r.Ub(405,"button",63),r.Ec(406,"Send"),r.Tb(),r.Tb(),r.Tb(),r.Ub(407,"div",64),r.Ub(408,"p"),r.Ec(409,"Your text message sent successfully!"),r.Tb(),r.Tb(),r.Ub(410,"div",65),r.Ub(411,"p"),r.Ec(412,"Sorry! Message not sent. Something went wrong!!"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(413,"div",18),r.Ub(414,"div",66),r.Ub(415,"div",20),r.Ub(416,"div",21),r.Pb(417,"i",67),r.Tb(),r.Ub(418,"div",23),r.Ub(419,"h4"),r.Ec(420,"Loca\u021bia noastr\u0103"),r.Tb(),r.Ub(421,"h5"),r.Ec(422,"Oradea, Bihor, Rom\xe2nia"),r.Tb(),r.Tb(),r.Tb(),r.Ub(423,"div",68),r.Ub(424,"div",21),r.Pb(425,"i",69),r.Tb(),r.Ub(426,"div",23),r.Ub(427,"h4"),r.Ec(428,"Call Us On"),r.Tb(),r.Ub(429,"h5"),r.Ec(430,"(+1) 234 567 7890"),r.Tb(),r.Ub(431,"h5"),r.Ec(432,"(+1) 234 567 7890"),r.Tb(),r.Tb(),r.Tb(),r.Ub(433,"div",20),r.Ub(434,"div",70),r.Pb(435,"i",71),r.Tb(),r.Ub(436,"div",23),r.Ub(437,"h4"),r.Ec(438,"Trimite-ne un mesaj"),r.Tb(),r.Ub(439,"h5"),r.Ec(440,"contact@bloodochallenge.com"),r.Tb(),r.Tb(),r.Tb(),r.Ub(441,"div",20),r.Ub(442,"div",72),r.Pb(443,"i",73),r.Tb(),r.Ub(444,"div",23),r.Ub(445,"h4"),r.Ec(446,"Program"),r.Tb(),r.Ub(447,"h5"),r.Ec(448,"24/7"),r.Tb(),r.Tb(),r.Tb(),r.Ub(449,"ul"),r.Ub(450,"li"),r.Ub(451,"a",74),r.Pb(452,"i",75),r.Tb(),r.Tb(),r.Ub(453,"li"),r.Ub(454,"a",76),r.Pb(455,"i",77),r.Tb(),r.Tb(),r.Ub(456,"li"),r.Ub(457,"a",14),r.Pb(458,"i",78),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(459,"footer",79),r.Ub(460,"div",1),r.Ub(461,"div",80),r.Ub(462,"h4"),r.Ub(463,"p"),r.Ec(464,"Copyright @2020 All rights reserved | This template is made with "),r.Pb(465,"i",81),r.Ec(466," by "),r.Ub(467,"a",82),r.Ec(468,"Colorlib"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(469,"div",83),r.Ub(470,"ul"),r.Ub(471,"li"),r.Ub(472,"a",84),r.Ec(473,"TERMENI \u015eI CONDI\u0162II"),r.Tb(),r.Tb(),r.Ub(474,"li"),r.Ub(475,"a",85),r.Ec(476,"POLITICA DE CONFIDEN\u0162IALITATE"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb())},directives:[T.x,T.n,T.o],styles:['.content-area[_ngcontent-%COMP%]{background:#f5f4f4;padding:5vw 0;overflow:hidden;font-family:Montserrat}.content-title[_ngcontent-%COMP%]{text-align:center;font-size:30px;padding-bottom:50px}.content-title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:30px;text-transform:uppercase;color:#232323;font-weight:400;position:relative;padding-bottom:25px}.content-title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]:before{content:"";left:50%;transform:translateX(-50%);bottom:0;position:absolute;width:50px;height:1px;background:#000}.content-title[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:24px;line-height:28px;text-align:center;max-width:750px;margin:auto;color:#727272;padding-top:23px}.content-title[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100px;width:100px}.content[_ngcontent-%COMP%]{margin:50px 5vw 30px}.content[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:22px;line-height:26px}.content[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%], .content[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{text-align:left;margin-bottom:15px}.content[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{font-weight:700}.content[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%], .content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;line-height:25px}.content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:justify;text-indent:4vw}.content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.content-area[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{padding:8px 0 0 5vw}.content-area[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:14px;line-height:24px;text-align:justify;padding-left:8px}.content-button[_ngcontent-%COMP%]{text-align:center;margin:auto;font-size:18px}.content-button[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-align:center;padding:5px 20px;border-radius:5px;border:1px solid #727272;background-color:#f5f4f4}']}),t})()},{path:"participare-pentru-companii",component:(()=>{class t{constructor(){this.lat=47.0746479,this.lon=21.902425,this.zoom=10,this.coordinates=new google.maps.LatLng(this.lat,this.lon),this.mapOptions={center:this.coordinates,zoom:this.zoom}}ngOnInit(){}ngAfterViewInit(){this.mapInitializer(),$(document).ready(function(){$(".slider_moblie, .feature_mobile_slider, .clients_slider").length&&$(".slider_moblie, .feature_mobile_slider, .clients_slider").owlCarousel({loop:!0,margin:0,items:1,nav:!1,autoplay:!0,smartSpeed:1500}),$(".sponsor_slider").length&&$(".sponsor_slider").owlCarousel({loop:!0,margin:0,items:4,nav:!1,autoplay:!0,smartSpeed:1500,responsiveClass:!0,responsive:{0:{items:1},360:{items:2},550:{items:3},767:{items:4}}}),$(".3d_screenshot_inner").flipster({scrollwheel:!1,spacing:-.7,style:"coverflow",loop:!0,start:"center",touch:!0}),$(".benefits_right .video_row iframe").css({height:$(".benefits_left").height()+"px"}),$(".benefits_right .video_row iframe").css({width:$(".benefits_left").width()+"px"});var t={pop:null,frame:null,popBox:null,closeBut:null,powerUp:function(){var e=document.createElement("link"),i=document.head;e.rel="stylesheet",e.type="text/css",e.href="https://formular230.ro/share/css",e.addEventListener("load",t.initAll),window.addEventListener("message",t.comResize),window.addEventListener("resize",t.comPortrait),i.appendChild(e)},initAll:function(){t.initPop();var e=document.body.querySelector(".f230ro-formular");if(e&&e instanceof Element)return t.getForm(e),window.addEventListener("resize",t.comOffset),void document.addEventListener("scroll",t.comOffset);var i=document.body.querySelectorAll(".f230ro-lansare");if(i&&i.length>0)for(var n=0,r=i.length;n<r;n++)i[n].addEventListener("click",function(){t.getForm(null)})},div:function(t,e){var i=document.createElement("div");return i.className=t,e&&e.appendChild(i),i},highestZ:function(t){if(t){for(var e,i=1,n=document.getElementsByTagName("*"),r=0,s=n.length;r<s;r++)e=Number.parseInt(document.defaultView.getComputedStyle(n[r],null).getPropertyValue("z-index"),10),n[r]!=t&&e>i&&(i=e);return(!t.style.zIndex||t.style.zIndex/1<i/1)&&(t.style.zIndex=++i),i}},getForm:function(e){e||(e=t.popBox,t.pop.className=t.pop.className.replace(" f230ro-show",""),t.pop.style.display="none"),t.frame&&t.frame.parentNode.removeChild(t.frame),t.frame=document.createElement("iframe"),t.frame.addEventListener("load",t.frameLoad),t.frame.src="https://formular230.ro/api/share/1cefff7640",e.appendChild(t.frame)},frameLoad:function(e){t.comRegister();var i=e.target.parentNode;i.className.indexOf("formular")<0?(setTimeout(t.comResizeRequest,100),t.showPop()):(setTimeout(t.comInit,100),i.className+=" f230ro-show")},initPop:function(){t.pop=t.div("f230ro-pop-bg",document.body),t.highestZ(t.pop),t.pop.style.display="none",t.popBox=t.div("f230ro-pop",t.pop),t.closeBut=t.div("f230ro-pop-close",t.popBox),t.closeBut.addEventListener("mousedown",t.closePopDown),t.pop.addEventListener("mousedown",t.closePopDown),t.closeBut.addEventListener("mouseup",t.closePopUp),t.pop.addEventListener("mouseup",t.closePopUp)},canClose:!1,closePopDown:function(e){t.canClose=e.target===t.pop||e.target===t.closeBut},closePopUp:function(e){t.canClose&&t.closePop(),t.canClose=!1},closePop:function(){t.pop.className=t.pop.className.replace(" f230ro-show",""),setTimeout(t.closedPop,600)},closedPop:function(){t.pop.style.display="none"},showPop:function(){t.pop.className=t.pop.className.replace(" f230ro-show",""),t.pop.style.display="block",setTimeout(t.shownPop,50)},shownPop:function(){t.pop.className.indexOf(" f230ro-show")<0&&(t.pop.className+=" f230ro-show")},comPortraitLast:!1,comOffsetTimeout:null,comRegister:function(){t.frame.contentWindow.postMessage(0,"https://formular230.ro")},comInit:function(){t.comResizeRequest(),t.comPortrait(),t.comOffset()},comResizeRequest:function(){t.frame.contentWindow.postMessage(1,"https://formular230.ro")},comResize:function(e){t.frame&&(!t.frame||!e.origin||"https://formular230.ro"!==e.origin||e.data.indexOf("px")<0||(t.frame.style.height=e.data))},comOffset:function(){if(t.frame){t.comOffsetTimeout||(t.comOffsetTimeout=window.setTimeout(t.comOffset,400));var e=t.frame.getBoundingClientRect();t.frame.contentWindow.postMessage([2,e.y,window.innerHeight],"https://formular230.ro")}},comPortrait:function(){var e=window.innerHeight>window.innerWidth;e!=t.comPortraitLast&&(t.comPortraitLast=e,t.frame.contentWindow.postMessage([3,e],"https://formular230.ro"))}};t.powerUp()})}mapInitializer(){this.map=new google.maps.Map(this.gmap.nativeElement,this.mapOptions),this.marker=new google.maps.Marker({position:this.coordinates,map:this.map}),this.marker.setMap(this.map)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Ib({type:t,selectors:[["app-donate-as-company"]],viewQuery:function(t,e){if(1&t&&r.Kc(Lt,1),2&t){let t;r.sc(t=r.cc())&&(e.gmap=t.first)}},decls:363,vars:0,consts:[[1,"our_service_area","purple_service",2,"padding","50px"],[1,"container"],[1,"main_title","purple_title"],[1,"row"],[1,"col-md-3"],[1,"service_item"],[1,"lnr","lnr-heart-pulse"],[1,"bloodo-icon","bloodo-icon-accident"],[1,"bloodo-icon","bloodo-icon-blood"],[1,"bloodo-icon","bloodo-icon-corona"],[1,"our_service_area","download_area","purple_service",2,"padding","50px"],["id","feature",1,"our_service_area","our_service_area","purple_feature",2,"padding","50px"],[1,"col-md-6"],[1,"right_side_feature"],[1,"media"],[1,"media-left"],[1,"lnr","lnr-earth"],[1,"media-body"],[1,"lnr","lnr-laptop-phone"],[1,"lnr","lnr-checkmark-circle"],[1,"lnr","lnr-thumbs-up"],[1,"lnr","lnr-apartment"],[1,"lnr","lnr-funnel"],[1,"lnr","lnr-book"],[1,"lnr","lnr-alarm"],[2,"text-align","center","padding-top","50px"],[2,"color","#ff4d4d"],[2,"text-align","center"],[1,"container",2,"padding-top","75px"],[1,"lnr","lnr-dice"],["id","download",1,"download_area","purple_dd"],[1,"download_inner"],["href","https://play.google.com/store/apps/details?id=com.fourgirlsforchange.bloodochallenge","target","_blank"],["src","/assets/img/download-2.png","alt",""],["href","https://apps.apple.com/ro/app/bloodochallenge/id1543200460?l=ro#?platform=iphone","target","_blank"],["src","/assets/img/download-1.png","alt",""],["id","about",1,"our_benefits_area","display_table","purple_benefits",2,"background-color","#fff"],[1,"our_benefits_inner","display_table_row"],[1,"benefits_left","display_table_cell"],["src","/assets/img/about/about1.jpg","alt",""],[1,"benefits_right","display_table_cell"],[1,"benefits_content"],[1,"content_title","purple_content"],["target","_blank","href","https://technovationchallenge.org/"],["target","_blank","href","https://www.facebook.com/TechnovationGirlsRomania/"],["target","_blank","href","https://adfaber.org/"],[1,"our_benefits_area","display_table","purple_benefits",2,"background-color","#fff"],["target","_blank","href","https://www.facebook.com/CentrulDeTransfuzieSanguinaOradea/"],["src","/assets/img/about/about2.jpg","alt",""],["id","contact",1,"map_area","purple_map"],[1,"mapBox","row","m0"],["mapBox",""],[1,"contact_info"],[1,"contact_form_left",2,"display","none"],["action","contact_process.php","method","post","id","contactForm",1,"comment_form_inner"],[1,"form-group","col-md-12"],["type","text","id","name","name","name","placeholder","Name",1,"form-control"],["type","email","id","email","name","email","placeholder","Email",1,"form-control"],["type","text","id","subject","name","subject","placeholder","Subject",1,"form-control"],["name","message","id","message","rows","1","placeholder","Message",1,"form-control"],["type","submit",1,"btn","btn-default","submit_btn","purple_submit"],["id","success"],["id","error"],[1,"contact_details"],[1,"fa","fa-map-marker"],[1,"media",2,"display","none"],[1,"fa","fa-phone"],[1,"media-left",2,"padding-right","31px"],[1,"fa","fa-envelope"],[1,"media-left",2,"padding-right","34px"],[1,"fa","fa-clock-o"],["href","https://www.facebook.com/BlooDoChallenge-114915456928304","target","_blank"],[1,"fa","fa-facebook"],["href","https://twitter.com/do_bloo","target","_blank"],[1,"fa","fa-twitter"],["href","https://www.instagram.com/bloodochallenge/","target","_blank"],[1,"fa","fa-instagram"],[1,"footer_area","purple_footer"],[1,"pull-left"],["aria-hidden","true",1,"fa","fa-heart-o"],["href","https://colorlib.com","target","_blank"],[1,"pull-right"],["href","terms"],["href","privacy"]],template:function(t,e){1&t&&(r.Ub(0,"section",0),r.Ub(1,"div",1),r.Ub(2,"div",2),r.Ub(3,"h2"),r.Ec(4,"Facilit\u0103\u021bi pentru comunitate"),r.Tb(),r.Tb(),r.Ub(5,"div",3),r.Ub(6,"div",4),r.Ub(7,"div",5),r.Pb(8,"i",6),r.Ub(9,"h3"),r.Ec(10,"Carnetul donatorului"),r.Tb(),r.Ub(11,"p"),r.Ec(12,"Digitaliz\u0103m carnetul donatorului pentru ca tu, donatorul, s\u0103-l ai cu tine tot timpul. \xcen buzunar!"),r.Tb(),r.Tb(),r.Tb(),r.Ub(13,"div",4),r.Ub(14,"div",5),r.Pb(15,"i",7),r.Ub(16,"h3"),r.Ec(17,"Campanii de donare"),r.Tb(),r.Ub(18,"p"),r.Ec(19,"Construim interfa\u021ba centrele de transfuzie cu donatorul, astfel ele pot comunica mai u\u0219or nevoie de s\xe2nge"),r.Tb(),r.Tb(),r.Tb(),r.Ub(20,"div",4),r.Ub(21,"div",5),r.Pb(22,"i",8),r.Ub(23,"h3"),r.Ec(24,"Validarea don\u0103rii"),r.Tb(),r.Ub(25,"p"),r.Ec(26,"Dup\u0103 donare, rezultatele analizelor \xee\u021bi sunt interpretate \u0219i trimise pe telefon"),r.Tb(),r.Tb(),r.Tb(),r.Ub(27,"div",4),r.Ub(28,"div",5),r.Pb(29,"i",9),r.Ub(30,"h3"),r.Ec(31,"Informa\u021bii donare"),r.Tb(),r.Ub(32,"p"),r.Ec(33,"E\u0219ti informat mereu de timpul \xeentre don\u0103ri, campanii c\xe2t \u0219i ce trebuie s\u0103 faci pentru a putea dona"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(34,"section",10),r.Ub(35,"div",1),r.Ub(36,"div",2),r.Ub(37,"h2"),r.Ec(38,"Redirec\u021bioneaz\u0103 gratuit din impozit"),r.Tb(),r.Tb(),r.Ub(39,"b"),r.Ec(40," \xcen caz c\u0103 dore\u0219ti s\u0103 contribui \u0219i mai mult, acum po\u021bi prin transfer bancar: "),r.Tb(),r.Ub(41,"p"),r.Ec(42," Beneficiar: Asociatia MedX "),r.Tb(),r.Ub(43,"p"),r.Ec(44," IBAN: RO78BTRLRONCRT0603530701 "),r.Tb(),r.Ub(45,"p"),r.Ec(46," Banca: Banca Transilvania "),r.Tb(),r.Ub(47,"p"),r.Ec(48," Cod fiscal: 44208837 "),r.Tb(),r.Tb(),r.Tb(),r.Ub(49,"section",11),r.Ub(50,"div",1),r.Ub(51,"div",2),r.Ub(52,"h2"),r.Ec(53,"REZULTATE 2022"),r.Tb(),r.Tb(),r.Ub(54,"div",3),r.Ub(55,"div",12),r.Ub(56,"div",13),r.Ub(57,"div",14),r.Ub(58,"div",15),r.Pb(59,"i",16),r.Tb(),r.Ub(60,"div",17),r.Ub(61,"h4"),r.Ec(62,"2 \u021b\u0103ri"),r.Tb(),r.Ub(63,"p"),r.Ec(64,"\xeen care am ajuns la donatori, centre, parteneri \u0219i organiza\u021bii (Rom\xe2nia, Republica Moldova)"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(65,"div",13),r.Ub(66,"div",14),r.Ub(67,"div",15),r.Pb(68,"i",18),r.Tb(),r.Ub(69,"div",17),r.Ub(70,"h4"),r.Ec(71,"20+ organiza\u021bii"),r.Tb(),r.Ub(72,"p"),r.Ec(73,"ce sprijin\u0103 activ donarea de s\xe2nge prin campanii de donare \u0219i informare asupra beneficiilor don\u0103rii"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(74,"div",13),r.Ub(75,"div",14),r.Ub(76,"div",15),r.Pb(77,"i",19),r.Tb(),r.Ub(78,"div",17),r.Ub(79,"h4"),r.Ec(80,"350+ campanii de donare"),r.Tb(),r.Ub(81,"p"),r.Ec(82,"derulate prin platforma BlooDoChallenge de c\u0103tre centrele de transfuzie sanguin\u0103 \u0219i organiza\u021bii"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(83,"div",13),r.Ub(84,"div",14),r.Ub(85,"div",15),r.Pb(86,"i",20),r.Tb(),r.Ub(87,"div",17),r.Ub(88,"h4"),r.Ec(89,"45.000+ mesaje de mul\u021bumire"),r.Tb(),r.Ub(90,"p"),r.Ec(91,"trimise c\u0103tre donatori \xeen semn de apreciere pentru gestul altruist"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(92,"div",12),r.Ub(93,"div",13),r.Ub(94,"div",14),r.Ub(95,"div",15),r.Pb(96,"i",21),r.Tb(),r.Ub(97,"div",17),r.Ub(98,"h4"),r.Ec(99,"50+ centre de transfuzie sanguin\u0103"),r.Tb(),r.Ub(100,"p"),r.Ec(101,"\xeenrolate \u0219i dotate cu infrastructura necesar\u0103 pentru a-\u0219i putea desf\u0103\u0219ura activitatea prin platform\u0103"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(102,"div",13),r.Ub(103,"div",14),r.Ub(104,"div",15),r.Pb(105,"i",22),r.Tb(),r.Ub(106,"div",17),r.Ub(107,"h4"),r.Ec(108,"50+ parteneri"),r.Tb(),r.Ub(109,"p"),r.Ec(110,"\xeen platform\u0103 ce sprijin\u0103 donarea de s\xe2nge pe Rom\xe2nia \u0219i Republica Moldova"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(111,"div",13),r.Ub(112,"div",14),r.Ub(113,"div",15),r.Pb(114,"i",23),r.Tb(),r.Ub(115,"div",17),r.Ub(116,"h4"),r.Ec(117,"1.000+ persoane"),r.Tb(),r.Ub(118,"p"),r.Ec(119,"\xeenscrise \xeen registru celule stem hematopoietice din Rom\xe2nia prin intermediul platformei"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(120,"div",13),r.Ub(121,"div",14),r.Ub(122,"div",15),r.Pb(123,"i",24),r.Tb(),r.Ub(124,"div",17),r.Ub(125,"h4"),r.Ec(126,"110.000+ notific\u0103ri"),r.Tb(),r.Ub(127,"p"),r.Ec(128,"trimise c\u0103tre donatori ca reminder pentru donare de s\xe2nge \u0219i aferez\u0103"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(129,"p",25),r.Ec(130," Tot cu sprijinul vostru am reu\u0219it p\xe2n\u0103 \xeen prezent s\u0103 ajut\u0103m "),r.Ub(131,"b",26),r.Ec(132," 2 cazuri sociale din Rom\xe2nia. "),r.Tb(),r.Tb(),r.Ub(133,"p",27),r.Ec(134," \xcen numele lor, "),r.Ub(135,"b",26),r.Ec(136," V\u0102 MUL\u021aUMIM! "),r.Tb(),r.Tb(),r.Tb(),r.Ub(137,"div",28),r.Ub(138,"div",2),r.Ub(139,"h2"),r.Ec(140,"REZULTATE 2021"),r.Tb(),r.Tb(),r.Ub(141,"div",3),r.Ub(142,"div",12),r.Ub(143,"div",13),r.Ub(144,"div",14),r.Ub(145,"div",15),r.Pb(146,"i",21),r.Tb(),r.Ub(147,"div",17),r.Ub(148,"h4"),r.Ec(149,"25+ centre de transfuzie sanguin\u0103"),r.Tb(),r.Ub(150,"p"),r.Ec(151,"\xeenrolate \u0219i dotate cu infrastructura necesar\u0103 pentru a-\u0219i putea desf\u0103\u0219ura activitatea prin platform\u0103"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(152,"div",13),r.Ub(153,"div",14),r.Ub(154,"div",15),r.Pb(155,"i",18),r.Tb(),r.Ub(156,"div",17),r.Ub(157,"h4"),r.Ec(158,"+10 organiza\u021bii"),r.Tb(),r.Ub(159,"p"),r.Ec(160,"ce sprijin\u0103 activ donarea de s\xe2nge prin campanii de donare \u0219i informare asupra beneficiilor don\u0103rii"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(161,"div",13),r.Ub(162,"div",14),r.Ub(163,"div",15),r.Pb(164,"i",20),r.Tb(),r.Ub(165,"div",17),r.Ub(166,"h4"),r.Ec(167,"15.000+ mesaje de mul\u021bumire"),r.Tb(),r.Ub(168,"p"),r.Ec(169,"trimise c\u0103tre donatori"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(170,"div",12),r.Ub(171,"div",13),r.Ub(172,"div",14),r.Ub(173,"div",15),r.Pb(174,"i",19),r.Tb(),r.Ub(175,"div",17),r.Ub(176,"h4"),r.Ec(177,"90+ campanii de donare"),r.Tb(),r.Ub(178,"p"),r.Ec(179,"derulate prin platforma BlooDoChallenge de c\u0103tre centrele de transfuzie sanguin\u0103 \u0219i organiza\u021bii din Rom\xe2nia"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(180,"div",13),r.Ub(181,"div",14),r.Ub(182,"div",15),r.Pb(183,"i",22),r.Tb(),r.Ub(184,"div",17),r.Ub(185,"h4"),r.Ec(186,"30+ parteneri"),r.Tb(),r.Ub(187,"p"),r.Ec(188,"\xeen platform\u0103 ce sprijin\u0103 donarea de s\xe2nge"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(189,"div",13),r.Ub(190,"div",14),r.Ub(191,"div",15),r.Pb(192,"i",29),r.Tb(),r.Ub(193,"div",17),r.Ub(194,"h4"),r.Ec(195,"9.000+ don\u0103ri procesate"),r.Tb(),r.Ub(196,"p"),r.Ec(197,"spre validare \u0219i donatori notifica\u021bi de \xeendat\u0103"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(198,"section",30),r.Ub(199,"div",1),r.Ub(200,"div",31),r.Ub(201,"h3"),r.Ec(202,"Descarc\u0103 acum"),r.Tb(),r.Ub(203,"p"),r.Ec(204," Descarc\u0103 acum aplica\u021bia \u0219i al\u0103tur\u0103-ni-te clubului donatorilor de s\xe2nge!"),r.Pb(205,"br"),r.Ec(206," Aplica\u021bia e disponibil\u0103 pe sisteme de operare Android 5 \u0219i iOS 13 sau mai recente. "),r.Tb(),r.Ub(207,"a",32),r.Pb(208,"img",33),r.Tb(),r.Ub(209,"a",34),r.Pb(210,"img",35),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(211,"section",36),r.Ub(212,"div",37),r.Ub(213,"div",38),r.Pb(214,"img",39),r.Tb(),r.Ub(215,"div",40),r.Ub(216,"div",41),r.Ub(217,"div",42),r.Ub(218,"h2"),r.Ec(219,"Despre noi"),r.Tb(),r.Tb(),r.Ub(220,"p"),r.Ec(221," Suntem un grup de tineri voluntari din Oradea ce ne-am propus s\u0103 unim comunit\u0103\u021bile locale \xeen jurul unei aplica\u021bii mobile prin intermediul c\u0103reia s\u0103 se distribuie activ \u0219i controlat informa\u021bii legate despre nevoia mare de s\xe2nge cu care se confrunt\u0103 centrele de transfuzie. "),r.Pb(222,"br"),r.Pb(223,"br"),r.Ec(224," Ini\u021biativa noastr\u0103 a pornit de la participarea \xeen cadrul competi\u021biei interna\u021bionale de tehnologie \u0219i antreprenoriat "),r.Ub(225,"b"),r.Ub(226,"a",43),r.Ec(227,"Technovation"),r.Tb(),r.Tb(),r.Ec(228,", competi\u021bie ce se desf\u0103\u0219oar\u0103 \xeen fiecare an la nivel mondial \u0219i care este promovat\u0103 \xeen Rom\xe2nia de c\u0103tre "),r.Ub(229,"b"),r.Ub(230,"a",44),r.Ec(231,"Technovation Girls Romania"),r.Tb(),r.Tb(),r.Ec(232," \xeempreun\u0103 cu "),r.Ub(233,"b"),r.Ub(234,"a",45),r.Ec(235,"Adfaber.org"),r.Tb(),r.Tb(),r.Ec(236,". "),r.Pb(237,"br"),r.Pb(238,"br"),r.Ec(239," Tema concursului fiind "),r.Ub(240,"b"),r.Ec(241,"rezolvarea unei probleme locale prin intermediul tehnologiei"),r.Tb(),r.Ec(242,". "),r.Pb(243,"br"),r.Pb(244,"br"),r.Ec(245," \xcempreun\u0103 am reu\u0219it s\u0103 c\xe2\u0219tigam faza na\u021bional\u0103 a concursului la Bucure\u0219ti \xeen luna mai 2019 propun\xe2ndu-ne s\u0103 ducem mai departe aplica\u021bia construit\u0103 \u0219i s\u0103 ajut\u0103m comunitatea local\u0103. "),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(246,"section",46),r.Ub(247,"div",37),r.Ub(248,"div",40),r.Ub(249,"div",41),r.Ub(250,"div",42),r.Ub(251,"h2"),r.Ec(252,"Echipa"),r.Tb(),r.Tb(),r.Ub(253,"p"),r.Ec(254," Echipa a fost format\u0103 din 4 fete de liceu: Paula, Cosmina, Alexandra, Maria \u0219i mentorul: Alex. "),r.Pb(255,"br"),r.Pb(256,"br"),r.Ec(257," Astfel, pentru a reu\u0219i s\u0103 ne punem ideea \xeen aplicare, ne-am bucurat de sprijinul \u0219i ajutorul voluntarilor din diverse domenii care s-au al\u0103turat echipei. "),r.Pb(258,"br"),r.Pb(259,"br"),r.Ec(260," Printre cei mai activ implica\u021bi se remarc\u0103: Vlad, C\u0103lin, Simina, Norbert, Alexandra, Andrei, Ionu\u021b, Titus, Diana. "),r.Pb(261,"br"),r.Pb(262,"br"),r.Ec(263," Ne-am bucurat, de asemenea, de sprijinul \u0219i deschiderea "),r.Ub(264,"b"),r.Ub(265,"a",47),r.Ec(266,"Centrului de transfuzie sanguin\u0103 Oradea"),r.Tb(),r.Tb(),r.Ec(267," \xeen aceast\u0103 ini\u021biativ\u0103 \u0219i \xeen special din partea Ligiei \u0219i a lui Beatrice. "),r.Pb(268,"br"),r.Pb(269,"br"),r.Tb(),r.Tb(),r.Tb(),r.Ub(270,"div",38),r.Pb(271,"img",48),r.Tb(),r.Tb(),r.Tb(),r.Ub(272,"section",49),r.Pb(273,"div",50,51),r.Ub(275,"div",52),r.Ub(276,"div",1),r.Ub(277,"div",3),r.Ub(278,"div",12),r.Ub(279,"div",53),r.Ub(280,"div",3),r.Ub(281,"form",54),r.Ub(282,"div",55),r.Pb(283,"input",56),r.Tb(),r.Ub(284,"div",55),r.Pb(285,"input",57),r.Tb(),r.Ub(286,"div",55),r.Pb(287,"input",58),r.Tb(),r.Ub(288,"div",55),r.Pb(289,"textarea",59),r.Tb(),r.Ub(290,"div",55),r.Ub(291,"button",60),r.Ec(292,"Send"),r.Tb(),r.Tb(),r.Tb(),r.Ub(293,"div",61),r.Ub(294,"p"),r.Ec(295,"Your text message sent successfully!"),r.Tb(),r.Tb(),r.Ub(296,"div",62),r.Ub(297,"p"),r.Ec(298,"Sorry! Message not sent. Something went wrong!!"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(299,"div",12),r.Ub(300,"div",63),r.Ub(301,"div",14),r.Ub(302,"div",15),r.Pb(303,"i",64),r.Tb(),r.Ub(304,"div",17),r.Ub(305,"h4"),r.Ec(306,"Loca\u021bia noastr\u0103"),r.Tb(),r.Ub(307,"h5"),r.Ec(308,"Oradea, Bihor, Rom\xe2nia"),r.Tb(),r.Tb(),r.Tb(),r.Ub(309,"div",65),r.Ub(310,"div",15),r.Pb(311,"i",66),r.Tb(),r.Ub(312,"div",17),r.Ub(313,"h4"),r.Ec(314,"Call Us On"),r.Tb(),r.Ub(315,"h5"),r.Ec(316,"(+1) 234 567 7890"),r.Tb(),r.Ub(317,"h5"),r.Ec(318,"(+1) 234 567 7890"),r.Tb(),r.Tb(),r.Tb(),r.Ub(319,"div",14),r.Ub(320,"div",67),r.Pb(321,"i",68),r.Tb(),r.Ub(322,"div",17),r.Ub(323,"h4"),r.Ec(324,"Trimite-ne un mesaj"),r.Tb(),r.Ub(325,"h5"),r.Ec(326,"contact@bloodochallenge.com"),r.Tb(),r.Tb(),r.Tb(),r.Ub(327,"div",14),r.Ub(328,"div",69),r.Pb(329,"i",70),r.Tb(),r.Ub(330,"div",17),r.Ub(331,"h4"),r.Ec(332,"Program"),r.Tb(),r.Ub(333,"h5"),r.Ec(334,"24/7"),r.Tb(),r.Tb(),r.Tb(),r.Ub(335,"ul"),r.Ub(336,"li"),r.Ub(337,"a",71),r.Pb(338,"i",72),r.Tb(),r.Tb(),r.Ub(339,"li"),r.Ub(340,"a",73),r.Pb(341,"i",74),r.Tb(),r.Tb(),r.Ub(342,"li"),r.Ub(343,"a",75),r.Pb(344,"i",76),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(345,"footer",77),r.Ub(346,"div",1),r.Ub(347,"div",78),r.Ub(348,"h4"),r.Ub(349,"p"),r.Ec(350,"Copyright @2020 All rights reserved | This template is made with "),r.Pb(351,"i",79),r.Ec(352," by "),r.Ub(353,"a",80),r.Ec(354,"Colorlib"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Ub(355,"div",81),r.Ub(356,"ul"),r.Ub(357,"li"),r.Ub(358,"a",82),r.Ec(359,"TERMENI \u015eI CONDI\u0162II"),r.Tb(),r.Tb(),r.Ub(360,"li"),r.Ub(361,"a",83),r.Ec(362,"POLITICA DE CONFIDEN\u0162IALITATE"),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb(),r.Tb())},directives:[T.x,T.n,T.o],styles:['.content-area[_ngcontent-%COMP%]{background:#f5f4f4;padding:5vw 0;overflow:hidden;font-family:Montserrat}.content-title[_ngcontent-%COMP%]{text-align:center;font-size:30px;padding-bottom:50px}.content-title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:30px;text-transform:uppercase;color:#232323;font-weight:400;position:relative;padding-bottom:25px}.content-title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]:before{content:"";left:50%;transform:translateX(-50%);bottom:0;position:absolute;width:50px;height:1px;background:#000}.content-title[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:24px;line-height:28px;text-align:center;max-width:750px;margin:auto;color:#727272;padding-top:23px}.content-title[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100px;width:100px}.content[_ngcontent-%COMP%]{margin:50px 5vw 30px}.content[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:22px;line-height:26px}.content[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%], .content[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{text-align:left;margin-bottom:15px}.content[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{font-weight:700}.content[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%], .content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:14px;line-height:25px}.content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:justify;text-indent:4vw}.content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.content-area[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{padding:8px 0 0 5vw}.content-area[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:14px;line-height:24px;text-align:justify;padding-left:8px}.content-button[_ngcontent-%COMP%]{text-align:center;margin:auto;font-size:18px}.content-button[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-align:center;padding:5px 20px;border-radius:5px;border:1px solid #727272;background-color:#f5f4f4}']}),t})()},{path:"**",redirectTo:""}];let zt=(()=>{class t{}return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)},imports:[[d.c,T.h,h.a,T.s,l.g.forRoot(Nt)],l.g]}),t})();class Ft{constructor(){this._defaultUrlSerializer=new l.b}parse(t){return t=t.replace(/\+/gi,"%2B"),this._defaultUrlSerializer.parse(t)}serialize(t){return this._defaultUrlSerializer.serialize(t).replace(/\+/gi,"%2B")}}let jt=(()=>{class t{}return t.\u0275mod=r.Mb({type:t,bootstrap:[c]}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)},providers:[{provide:l.i,useClass:Ft}],imports:[[n.a,s.b,zt,S,h.a,a.c,o.b]]}),t})();Object(r.U)(),n.c().bootstrapModule(jt).catch(t=>console.error(t))},zn8P:function(t,e){function i(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}i.keys=function(){return[]},i.resolve=i,t.exports=i,i.id="zn8P"}},[[0,1]]]);